]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
gcc * config.gcc (extra_gcc_objs): Define for MSP430.
[gcc.git] / gcc / ChangeLog
1 2015-11-25 Nick Clifton <nickc@redhat.com>
2
3 * config.gcc (extra_gcc_objs): Define for MSP430.
4 * common/config/msp430/msp430-common.c (msp430_handle_option):
5 Pass both -mmcu and -mcpu on to the back end if they are both
6 defined.
7 * config/msp430/msp430.c (hwmult_name): New function.
8 (msp430_option_override): If an unrecognised MCU name is
9 detected only warn if the user has not provided suitable
10 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
11 warning messages. Generate warnings about conflicts between
12 -mmcu and -mcpu and -mhwmult options.
13 If neither -mcpu nor -mmcu have been specified but -mhwmult=
14 f5series has the select the 430X isa.
15 (msp430_no_hwmult): If -mmcu has not been specified and
16 msp430_hwmult_type is AUTO then return true.
17 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
18 (LIB_SPEC): Add hardware multiply library selection.
19 * config/msp430/t-msp430: Delete hardware multiply multilibs.
20 Add rule to build driver-msp430.o
21 * config/msp430/driver-msp430.c: New file.
22 * config/msp430/msp430.opt (warn-mcu): New option.
23 * doc/invoke.texi: Update description of -mhwmult=auto.
24 Document -mwarn-mcu option.
25
26 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
27
28 * (cstore<mode>4_signed): New expander.
29 (cstore<mode>4): Call it.
30
31 2015-12-04 Jakub Jelinek <jakub@redhat.com>
32
33 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
34
35 PR tree-optimization/68680
36 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
37 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
38 by name.
39
40 PR tree-optimization/68671
41 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
42 blocks starting with the successor of first bb we've modified
43 and ending with last_bb call reset_flow_sensitive_info_in_bb.
44
45 2015-12-04 Jeff Law <law@redhat.com>
46
47 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
48 indicating if a gimple conditional was optimized to true/false.
49 (reassociate_bb): Bubble up return value from
50 maybe_optimize_range_tests.
51 (do_reassoc): Similarly, but for reassociate_bb.
52 (execute_reassoc): Return TODO_cleanup_cfg as needed.
53
54 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
55
56 * config/aarch64/aarch64.c (aarch64_override_options_internal):
57 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
58 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
59 does not affect the assembler directives.
60
61 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
62
63 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
64 emit .machine and .machinemode to the top of the assembler file.
65 (TARGET_ASM_FILE_START): Provide target hook.
66 (s390_asm_output_machine_for_arch): Protect with
67 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
68
69 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
70
71 * config/s390/s390.opt (s390_arch_string): Remove.
72 (s390_tune_string): Likewise.
73 (s390_cost_pointer): Add Variable.
74 (s390_tune_flags): Add TargetVariable.
75 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
76 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
77 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
78 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
79 (mwarn-framesize=): Save option.
80 (mno-stack-guard, mno-stack-guard): New option.
81 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
82 (mwarn-framesize=): Convert to UInteger (negative values are rejected
83 now).
84 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
85 macros changeable through the GCC target pragma into a separate
86 function.
87 (s390_cpu_cpp_builtins): Likewise.
88 (s390_pragma_target_parse): New function, implement GCC target pragma
89 if enabled.
90 (s390_register_target_pragmas): Register s390_pragma_target_parse if
91 available.
92 * common/config/s390/s390-common.c (s390_handle_option):
93 Export.
94 Move setting s390_arch_flags to s390.c.
95 Remove s390_tune_flags.
96 Allow 0 as argument to -mstack-size (switch to default value).
97 Allow 0 as argument to -mstack-guard (switch off).
98 Remove now unnecessary explicit parsing code for -mwarn-framesize.
99 * config/s390/s390-protos.h (s390_handle_option): Export.
100 (s390_valid_target_attribute_tree): Export.
101 (s390_reset_previous_fndecl): Export.
102 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
103 and end of HTM and VX builtins.
104 (s390_asm_output_function_prefix): Declare hook.
105 (s390_asm_declare_function_size): Likewise.
106 * config/s390/s390-builtins.h (B_GROUP): Use macro.
107 * config/s390/s390-opts.h: Add comment about processor_type usage.
108 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
109 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
110 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
111 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
112 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
113 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
114 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
115 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
116 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
117 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
118 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
119 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
120 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
121 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
122 undefined.
123 (vec_all_nan): Rewrite as macro using statement expressions to avoid
124 that the vector keyword needs to be defined when including the file.
125 (vec_all_numeric): Likewise.
126 (vec_any_nan): Likewise.
127 (vec_any_numeric): Likewise.
128 * config/s390/s390.c (s390_previous_fndecl): New static variable.
129 (s390_set_current_function): New function.
130 (s390_cost): Wrapper macro to allow defining the cost table pointer in
131 the options file.
132 (processor_table): Table for march= and mtune= parsing.
133 (s390_init_builtins): Enable all builtins and types unconditionally.
134 (s390_expand_builtin): Generate an error message if builtin is not
135 supported by current options.
136 Correct an error message.
137 (s390_function_specific_restore): New function to set s390_cost.
138 (s390_asm_output_machine_for_arch): New function for emitting .machine
139 and .machinmode directives to the assembler file.
140 (s390_asm_output_function_prefix): Likewise.
141 (s390_asm_declare_function_size): Likewise.
142 (s390_asm_output_function_label): Add mdebug output for feature testing.
143 (s390_option_override): Move implementation into internal function.
144 (s390_option_override_internal): Likewise.
145 Implement option overriding based on current options.
146 (s390_valid_target_attribute_inner_p): New function implementing target
147 attribute logic.
148 (s390_valid_target_attribute_tree): Likewise.
149 (s390_valid_target_attribute_p): Likewise.
150 (s390_reset_previous_fndecl): Likewise.
151 (s390_set_current_function): Likewise.
152 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
153 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
154 (TARGET_OPTION_RESTORE): Likewise.
155 * doc/extend.texi: S390: Document target attribute and pragma.
156 * config.in: Regenerated.
157 * configure: Regenerated.
158 * configure.ac: S390: Check for .machinemode and .machine in gas.
159 S390: Check for architecture modifiers support in gas.
160
161 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
162
163 * c-family/c-common.c (c_common_attribute_table[]): Update max arguments
164 count for "simd" attribute.
165 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
166 * doc/extend.texi ("simd"): Describe new flags.
167
168 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
169
170 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
171 operand checked for alignment.
172
173 2015-12-04 Nathan Sidwell <nathan@acm.org>
174
175 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
176 emission too. Change 'no_arg_types' to 'prototyped'.
177 (write_fn_proto): Use write_one_arg for stdarg, static chain &
178 main.
179 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
180
181 2015-12-04 Richard Biener <rguenther@suse.de>
182
183 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
184 member and initialize it.
185 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
186 if necessary.
187 (sccvn_dom_walker::before_dom_children): If unreachable_dom
188 is set BB is not reachable either. Set unreachable_dom
189 if not set and BB is unreachable.
190
191 2015-12-04 Richard Biener <rguenther@suse.de>
192
193 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
194 query with GATHER_STATISTICS.
195
196 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
197
198 PR middle-end/65958
199 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
200 fields, add keep_stack and reorder them.
201 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
202 set it to false. Do not insert a stack save/restore pair if it has
203 been set to true by the gimplification of the statements.
204 Restore it to the saved value on exit if it is still false.
205 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
206 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
207 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
208 * doc/extend.texi (Variable Length): Document new behavior.
209 * doc/generic.texi (Blocks): Document new handling of VLAs.
210
211 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
212 Tristan Gingold <gingold@adacore.com>
213
214 PR middle-end/65958
215 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
216 Declare.
217 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
218 UNSPEC_PROBE_STACK_RANGE.
219 (blockage): New instruction.
220 (probe_stack_range_<PTR:mode>): Likewise.
221 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
222 function.
223 (aarch64_output_probe_stack_range): Likewise.
224 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
225 static builtin stack checking is enabled.
226 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
227 Define to 1.
228
229 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
230
231 PR target/68214
232 * config/arm/arm.md (*call_mem): Delete pattern.
233 (*call_value_mem): Likewise.
234 * config/arm/arm.c (output_call_mem): Delete.
235 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
236
237 2015-12-04 Bin Cheng <bin.cheng@arm.com>
238
239 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
240 aarch64_sync_memory_operand.
241
242 2015-12-04 Jakub Jelinek <jakub@redhat.com>
243
244 PR target/68655
245 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
246 (expand_vec_perm_1): Use it and recurse if everything else
247 failed. Use nd.perm instead of perm2.
248 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
249 instead of gen_lowpart for the target.
250 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
251 and recurse if everything else failed.
252
253 2015-12-04 Richard Biener <rguenther@suse.de>
254
255 PR middle-end/68636
256 * builtins.c (get_pointer_alignment_1): Take care of byte to
257 bit alignment computation overflow.
258
259 2015-12-04 Richard Biener <rguenther@suse.de>
260
261 PR middle-end/67438
262 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
263 a constant with single_use.
264
265 2015-12-04 Bin Cheng <bin.cheng@arm.com>
266 Jiong Wang <jiong.wang@arm.com>
267
268 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
269 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
270
271 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
272
273 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p)
274 Short circuit for !flag_strict_aliasing
275 (get_alias_set): Remove flag_strict_aliasing check.
276 (new_alias_set): Likewise.
277
278 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
279
280 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
281 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
282 (exynosm1_regmove_cost): Likewise.
283 (exynosm1_vector_cost): Likewise.
284 (exynosm1_tunings): Likewise.
285 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
286 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
287
288 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
289 Richard Biener <richard.guenther@gmail.com>
290
291 * cfgexpand.c (pass_expand::execute): Replace call to
292 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
293 * tree-ssa.c (delete_tree_ssa): Likewise.
294 * function.c (set_cfun): Call redirect_edge_var_map_empty.
295 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
296 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
297 (redirect_edge_var_map_empty): New.
298 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
299 (redirect_edge_var_map_empty): New.
300
301 2015-12-03 Jeff Law <law@redhat.com>
302
303 PR tree-optimization/68599
304 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
305 in call to loop_optimizer_init.
306 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
307 optimization to drop the assumptions/infinite notations if
308 the loop has a single exit.
309
310 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
311
312 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
313 the pattern cannot FAIL.
314 (vec_store_lanes@var{m}@var{n}): Likewise.
315 (maskload@var{m}@var{n}): Likewise.
316 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
317 in the name of the pattern.
318 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
319 floating-point mode and that all operands have that mode.
320 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
321 pattern cannot FAIL.
322 (sqrt@var{m}2): Document that mode m must be a scalar or vector
323 floating-point mode, that all operands have that mode, and that
324 the patterns cannot FAIL. Remove previous documentation referring
325 to @code{double} and @code{float}.
326 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
327 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
328 (copysign@var{m}3): Likewise.
329 (exp@var{m}2): Likewise. Explicitly state the base.
330 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
331 (btrunc@var{m}2, rint@var{m}2): Likewise.
332 (round@var{m}2): Likewise. Fix incorrect description of rounding
333 effect.
334 (ceil@var{m}2): As for round@var{m}2.
335 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
336 the instruction must not raise an inexact condition.
337 (scalb@var{m}3): Document previously-undocumented pattern
338 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
339 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
340 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
341 (significand@var{m}2): Likewise.
342 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
343 mode m and operand 0 is defined more freely. Document that @var{m}
344 can be a scalar or vector integer mode and that the pattern is not
345 allowed to FAIL.
346 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
347 (clrsb@var{m}2): Likewise, except that the description of the
348 mode was missing in this case.
349
350 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
351
352 * internal-fn.def (RSQRT): New function.
353 * optabs.def (rsqrt_optab): New optab.
354 * doc/md.texi (rsqrtM2): Document.
355 * target.def (builtin_reciprocal): Replace gcall argument with
356 a function decl. Restrict hook to machine functions.
357 * doc/tm.texi: Regenerate.
358 * targhooks.h (default_builtin_reciprocal): Update prototype.
359 * targhooks.c (default_builtin_reciprocal): Likewise.
360 * tree-ssa-math-opts.c: Include internal-fn.h.
361 (internal_fn_reciprocal): New function.
362 (pass_cse_reciprocals::execute): Call it, and build a call to an
363 internal function on success. Only call targetm.builtin_reciprocal
364 for machine functions.
365 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
366 second argument.
367 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
368 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
369 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
370 machine functions.
371 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
372 (aarch64_builtin_reciprocal): Replace gcall argument with a
373 function decl. Use use_rsqrt_p. Remove optimize_size check.
374 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
375 (aarch64_optab_supported_p): New function.
376 (TARGET_OPTAB_SUPPORTED_P): Define.
377 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
378 (rsqrt<mode>2): ...this.
379 * config/i386/i386.c (use_rsqrt_p): New function.
380 (ix86_builtin_reciprocal): Replace gcall argument with a
381 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
382 check. Only handle machine functions.
383 (ix86_optab_supported_p): Handle rsqrt_optab.
384 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
385 (rs6000_builtin_reciprocal): Replace gcall argument with a
386 function decl. Remove optimize_insn_for_size_p check.
387 Only handle machine functions.
388 (rs6000_optab_supported_p): New function.
389
390 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
391
392 PR target/68471
393 PR target/68472
394 * config/i386/i386.c (ix86_mitigate_rop): Don't call
395 compute_bb_for_insn again. Call df_insn_rescan_all.
396 * config/i386/i386.md (set_got_rex64): Override modrm_class.
397
398 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
399
400 2015-12-03 Nathan Sidwell <nathan@acm.org>
401
402 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
403 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
404 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
405 (nvptx_option_override): Set data ares for worker vars.
406 (nvptx_addr_space_from_sym): Delete.
407 (nvptx_encode_section_info): New.
408 (section_for_sym, section_for_decl): New.
409 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol
410 flags,
411 (nvptx_section_from_addr_space): Delete.
412 (nvptx_section_for_decl): Delete.
413 (nvptx_output_aligned, nvptx_declare_object_name,
414 nvptx_assemble_undefined_decl): Use section_for_decl, remove
415 unnecessary checks.
416 (nvptx_print_operand): Add 'D', adjust 'A'.
417 (nvptx_expand_worker_addr): Adjust unspec generation.
418 (TARGET_ENCODE_SECTION_INFO): Override.
419 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
420 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
421 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
422 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
423 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
424 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
425 (UNSPEC_TO_GENERIC): New.
426 (nvptx_register_or_symbolic_operand): Delete.
427 (cvt_code, cvt_name, cvt_str): Delete.
428 (convaddr_<cvt_name><mode> [P]): Delete.
429 (convaddr_<mode> [P]): New.
430
431 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
432
433 PR rtl-optimization/68624
434 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
435 blocks if they exist and simplify the logic choosing the order to emit
436 them in.
437
438 2015-12-03 Richard Biener <rguenther@suse.de>
439
440 PR tree-optimization/66051
441 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
442 on load group size. Do not pass in vectorization_factor.
443 (vect_transform_slp_perm_load): Do not require any permute support.
444 (vect_build_slp_tree): Do not pass in vectorization factor.
445 (vect_analyze_slp_instance): Do not compute vectorization
446 factor estimate. Use vector size instead of vectorization factor
447 estimate to split store groups for BB vectorization.
448
449 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
450
451 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
452 DECL as return value is allowed to have NULL bounds.
453
454 2015-12-03 Tom de Vries <tom@codesourcery.com>
455
456 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
457 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
458 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
459
460 2015-12-03 Richard Biener <rguenther@suse.de>
461
462 PR tree-optimization/67800
463 PR tree-optimization/68333
464 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
465 restriction to reduction contexts but allow SLP reductions as well.
466 (vect_recog_sad_pattern): Likewise.
467 (vect_recog_widen_sum_pattern): Likewise.
468
469 2015-12-03 Richard Biener <rguenther@suse.de>
470
471 PR tree-optimization/68639
472 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
473 belonging to different loops.
474 (vect_analyze_data_ref_accesses): Likewise.
475
476 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
477
478 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
479 Remove "prefix_extra".
480 (define_insn "vec_extract_hi_<mode>_mask"): New.
481 (define_insn "vec_extract_hi_<mode>"): Remove masking.
482
483 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
484
485 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
486 (propagate_pure_const): Use it; fix comments and optimize loops.
487
488 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
489
490 * ipa-pure-const.c (ignore_edge): Rename to ...
491 (ignore_edge_for_nothrow) ... this one; also ignore eges to
492 interposable functions or ones that can not throw.
493 (propagate_nothrow): Fix handling of availability.
494
495 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
496
497 PR ipa/68184
498 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
499
500 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
501 Sebastian Pop <s.pop@samsung.com>
502
503 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle isl_ast_op_zdiv_r.
504 (gcc_expression_from_isl_expr_op): Same.
505
506 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
507 Sebastian Pop <s.pop@samsung.com>
508
509 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
510 that insertion point is still in the region.
511
512 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
513 Sebastian Pop <s.pop@samsung.com>
514
515 PR tree-optimization/68550
516 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
517 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
518 statements.
519
520 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
521
522 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
523 * configure: Regenerate.
524 * config.in: Regenerate.
525 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
526 function.
527 (rs6000_output_function_prologue): Use it instead of checking
528 cfun->machine->r2_setup_needed. Use internal labels instead of
529 GNU as local label extension. Handle ELFv2 large code model.
530 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
531 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
532
533 2015-12-02 Jakub Jelinek <jakub@redhat.com>
534
535 PR target/68647
536 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
537 New functions.
538 (expand_unop): Use them.
539
540 2015-12-02 Marek Polacek <polacek@redhat.com>
541
542 PR c++/68653
543 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
544
545 2015-12-02 Nathan Sidwell <nathan@acm.org>
546
547 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
548 SHUFFLE defines.
549 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
550
551 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
552 Sebastian Pop <s.pop@samsung.com>
553
554 * graphite-dependences.c (scop_get_reads): Add extra dumps.
555 (scop_get_must_writes): Same.
556 (scop_get_may_writes): Same.
557 (compute_deps): Same.
558 * graphite-sese-to-poly.c (bounds_are_valid): New.
559 (pdr_add_data_dimensions): Call bounds_are_valid.
560
561 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
562 Sebastian Pop <s.pop@samsung.com>
563
564 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
565 * graphite-poly.c (apply_poly_transforms): Same.
566 * graphite.c (gate_graphite_transforms): Same.
567 * toplev.c (process_options): Same.
568
569 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
570
571 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
572 (mips_output_probe_stack_range): Rotate the loop and simplify.
573
574 2015-12-02 David Sherwood <david.sherwood@arm.com>
575
576 * config/aarch64/aarch64.md: New pattern.
577 * config/aarch64/aarch64-simd.md: Likewise.
578 * config/aarch64/iterators.md: New unspecs, iterators.
579
580 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
581
582 * dwarf2out.c (dwar2out_var_location): In addition to notes,
583 process indirect calls whose target is compile-time known.
584 Enhance pattern matching to get the SYMBOL_REF they embed.
585 (gen_subprogram_die): Handle such calls.
586 * final.c (final_scan_insn): For call instructions, invoke the
587 var_location debug hook only after the call has been emitted.
588
589 2015-12-02 Tom de Vries <tom@codesourcery.com>
590
591 * gimplify.c (enum gimplify_omp_var_data): Add enum value
592 GOVD_MAP_FORCE.
593 (oacc_default_clause): Fix default for scalars in oacc kernels.
594 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
595
596 2015-12-02 Tom de Vries <tom@codesourcery.com>
597
598 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
599 parameter base_pointers_restrict.
600 (omp_target_base_pointers_restrict_p): New function.
601 (scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
602 arg.
603
604 2015-12-02 Nathan Sidwell <nathan@acm.org>
605
606 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
607 (nvptx_underlying_object_mode): Delete.
608 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
609 (output_reg): New.
610 (nvptx_declare_function_name): Use output_reg. Remove punning
611 buffer.
612 (nvptx_output_mov_insn): New.
613 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
614 Use output_reg. Merge 't' and 'u' handling.
615 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
616 (struct machine_function): Remvoe punning_buffer_size.
617 (REGISTER_NAMES): Remove %punbuffer.
618 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
619 UNSPEC_CPLX_HIGHPART): Delete.
620 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
621 nvptx_output_mov_insn.
622 (*mov<mode>_insn [SDFM): Reorder constraints to match integer
623 moc. Use nvptx_output_mov_insn.
624 (highpartscsf2, set_highpartscsf2, lowpartscsf2,
625 set_lowpartscsf2): Delete.
626 (mov<mode> [SDCM]): Delete.
627
628 2015-12-02 Richard Biener <rguenther@suse.de>
629
630 * tree.h (tree_invariant_p): Declare.
631 * tree.c (tree_invariant_p): Export.
632 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
633 create SAVE_EXPRs but reject patterns if we would need to.
634
635 2015-12-02 Tom de Vries <tom@codesourcery.com>
636
637 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
638 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
639
640 >>>>>>> .r231221
641 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
642
643 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
644 (cstore<mode>4): Use it.
645
646 2015-12-02 Richard Biener <rguenther@suse.de>
647
648 PR tree-optimization/68625
649 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
650 cleanup_control_flow_bb.
651 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
652 on all BBs, then cleanup_tree_cfg_bb and finally iterate
653 over the worklist doing both.
654
655 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
656
657 PR tree-optimization/68432
658 * coretypes.h (optimization_type): New enum.
659 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
660 * doc/tm.texi: Regenerate.
661 * target.def (optab_supported_p): New hook.
662 * targhooks.h (default_optab_supported_p): Declare.
663 * targhooks.c (default_optab_supported_p): New function.
664 * predict.h (function_optimization_type): Declare.
665 (bb_optimization_type): Likewise.
666 * predict.c (function_optimization_type): New function.
667 (bb_optimization_type): Likewise.
668 * optabs-query.h (convert_optab_handler): Define an overload
669 that takes an optimization type.
670 (direct_optab_handler): Likewise.
671 * optabs-query.c (convert_optab_handler): Likewise.
672 (direct_optab_handler): Likewise.
673 * internal-fn.h (direct_internal_fn_supported_p): Take an
674 optimization_type argument.
675 * internal-fn.c (direct_optab_supported_p): Likewise.
676 (multi_vector_optab_supported_p): Likewise.
677 (direct_internal_fn_supported_p): Likewise.
678 * builtins.c (replacement_internal_fn): Update call to
679 direct_internal_fn_supported_p.
680 * gimple-match-head.c (build_call_internal): Likewise.
681 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
682 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
683 * tree.c (maybe_build_call_expr_loc): Likewise.
684 * config/i386/i386.c (ix86_optab_supported_p): New function.
685 (TARGET_OPTAB_SUPPORTED_P): Define.
686 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
687 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
688 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
689 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
690 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
691 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
692
693 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
694
695 * Makefile.in (GENSUPPORT_H): New macro.
696 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
697 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
698 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
699 (build/genconstants.o, build/genextract.o, build/genflags.o)
700 (build/gentarget-def.o): Use it.
701 (build/genemit.o): Likewise. Depend on internal-fn.def.
702 * genopinit.c: Move block comment to optabs.def.
703 (optab_tag, optab_def): Move to gensupport.h
704 (pattern): Likewise, renaming to optab_pattern.
705 (match_pattern): Move to gensupport.c
706 (gen_insn): Use find_optab.
707 (patterns, pattern_cmp): Replace pattern with optab_pattern.
708 (main): Likewise. Use num_optabs.
709 * optabs.def: Add comment that was previously in genopinit.c.
710 * gensupport.h (optab_tag): Moved from genopinit.c
711 (optab_def): Likewise, expanding commentary.
712 (optab_pattern): Likewise, after renaming from pattern.
713 (optabs, num_optabs, find_optab): Declare.
714 * gensupport.c (optabs): Moved from genopinit.c.
715 (num_optabs): New variable.
716 (match_pattern): Moved from genopinit.c.
717 (find_optab): New function, extracted from genopinit.c:gen_insn.
718 * genemit.c (nofail_optabs): New variable.
719 (emit_c_code): New function.
720 (gen_expand): Check whether the instruction is an optab that isn't
721 allowed to fail. Call emit_c_code.
722 (gen_split): Call emit_c_code here too.
723 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
724
725 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
726
727 * config/s390/predicates.md (const_mask_operand): New predicate.
728 * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
729 * config/s390/vector.md: Change predicate from immediate_operand
730 to either const_int_operand or const_mask_operand. Add special
731 insn conditions on patterns which have to exclude certain values.
732 * config/s390/vx-builtins.md: Likewise.
733
734 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
735
736 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
737 mode from DI to SI.
738
739 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
740
741 * config/s390/s390-builtin-types.def: New builtin types added.
742 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
743 * config/s390/s390.c (s390_expand_builtin): Always truncate
744 constants to the mode in the pattern.
745 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
746 respective builtin __builtin_s390_vec_splat_*.
747
748 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
749
750 * config/s390/s390-builtin-types.def: Sort builtin types.
751
752 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
753
754 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
755 condition for the RT flag.
756
757 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
758
759 * config/s390/constraints.md ("jKK"): New constraint.
760 * config/s390/s390.c (tm-constrs.h): Include for
761 satisfies_constraint_*.
762 (s390_legitimate_constant_p): Allow jKK constants. Use
763 satisfies_constraint_* also for the others.
764 (legitimate_reload_vector_constant_p): Likewise.
765 (print_operand): Allow h output modifier on vectors.
766 * config/s390/vector.md ("mov<mode>"): Add vrepi.
767
768 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
769
770 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
771 latter I->K.
772
773 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
774
775 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
776 strvg.
777 ("bswaphi2"): New pattern.
778 New splitter for HI reg-reg bswap.
779
780 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
781
782 PR driver/68029
783 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
784 if it is the first parameter.
785
786 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
787
788 PR tree-optimization/68577
789 * tree-vect-stmts.c (simple_integer_narrowing): New function.
790 (vectorizable_call): Restrict internal function handling
791 to NONE and NARROW cases, using simple_integer_narrowing
792 to test for the latter. Add cost of narrowing operation
793 and insert it where necessary.
794
795 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
796
797 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
798 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
799 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
800
801 2015-12-01 Nathan Sidwell <nathan@acm.org>
802
803 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
804 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
805 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
806 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
807 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
808 (init_output_initializer): Call write_var_marker.
809 (nvptx_output_aligned_decl): New.
810 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
811
812 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
813
814 * c-common.c (parse_optimize_options): Do not silently ignore
815 -fstrict-aliasing changes.
816
817 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
818
819 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
820 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
821 stream TYPE_ALIAS_SET.
822 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
823 stream TYPE_ALIAS_SET.
824
825 2015-12-01 Nathan Sidwell <nathan@acm.org>
826
827 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
828 consider mode.
829
830 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
831
832 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
833 indirection for large and small code models.
834 (adjust_vperm): Likewise.
835
836 2015-12-01 Julian Brown <julian@codesourcery.com>
837 Cesar Philippidis <cesar@codesourcery.com>
838 James Norris <James_Norris@mentor.com>
839
840 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
841 support.
842 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
843 (is_gimple_omp_oacc): Add support for above.
844 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
845 (omp_notice_variable): Diagnose undefined implicit uses of
846 use_device variables in offloaded regions.
847 (gimplify_scan_omp_clauses): Add host_data, use_device
848 support. Diagnose undefined mapping of use_device variables in
849 OpenACC clauses.
850 (gimplify_omp_workshare): Add host_data support.
851 (gimplify_expr): Likewise.
852 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
853 * omp-low.c (lookup_decl_in_outer_ctx)
854 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
855 host_data regions.
856 (scan_sharing_clauses): Support use_device.
857 (check_omp_nesting_restrictions): Support host_data.
858 (expand_omp_target): Support host_data.
859 (lower_omp_target): Skip over outer host_data regions when looking
860 up decls. Support use_device.
861 (make_gimple_omp_edges): Support host_data.
862 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
863 clause.
864
865 2015-12-01 Marek Polacek <polacek@redhat.com>
866
867 PR middle-end/68582
868 * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
869 for VAR_DECLs.
870
871 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
872
873 PR tree-optimization/68474
874 * tree-call-cdce.c (use_internal_fn): Protect call to
875 gen_shrink_wrap_conditions.
876
877 2015-12-01 Christian Bruel <christian.bruel@st.com>
878
879 PR target/68617
880 * config/arm/arm.opt (unaligned_access): Save.
881 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
882 * config/arm/arm.c (arm_option_override): Move unaligned_access setting
883 (arm_option_override_internal): ... here.
884 * config/arm/arm.h (TARGET_32BIT_P): New macro.
885
886 2015-12-01 Richard Biener <rguenther@suse.de>
887
888 PR tree-optimization/68379
889 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
890 always base loads on the first used DR of a group.
891 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
892 Compute alignment of the first scalar element unconditionally.
893
894 2015-12-01 Richard Biener <rguenther@suse.de>
895
896 PR middle-end/68590
897 * genmatch.c (struct capture_info): Add match_use_count.
898 (capture_info::walk_match): Increment match_use_count.
899 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
900 replacements in a save_expr if they occur more often than
901 in the original expression.
902
903 2015-12-01 Richard Biener <rguenther@suse.de>
904
905 PR ipa/68470
906 * ipa-split.c (split_function): Handle main part not returning.
907
908 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
909
910 PR middle-end/68595
911 * tree-vect-stmts.c (vect_init_vector): Cast boolean
912 scalars to a proper value before building a vector.
913
914 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
915
916 * genattrtab.c (check_attr_test): Take an attr_desc instead of
917 an is_const flag. Put the file_location argument first.
918 Update recursive calls. Improve error messages.
919 (check_attr_value): Take a file location and use it instead
920 of attr->loc. Improve error messages. Update calls to
921 check_attr_test.
922 (check_defs): Update call to check_attr_value.
923 (make_canonical): Likewise.
924 (gen_attr): Likewise.
925 (main): Likewise.
926 (gen_insn_reserv): Update call to check_attr_test.
927
928 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
929
930 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
931
932 2015-12-01 Richard Biener <rguenther@suse.de>
933
934 PR middle-end/68590
935 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
936
937 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
938
939 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
940 odr_type_p): Move to ...
941 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
942 odr_type_p): here; miscro-optimize.
943
944 2015-12-01 Bin Cheng <bin.cheng@arm.com>
945
946 PR tree-optimization/68529
947 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
948 Compute no-overflow information for control iv.
949 (number_of_iterations_lt, number_of_iterations_le): Add new param.
950 (number_of_iterations_cond): Pass new argument to above functions.
951
952 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
953
954 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
955 inlining -fno-strict-aliasing into -fstrict-aliasing body.
956
957 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
958 Sebastian Pop <s.pop@samsung.com>
959
960 PR tree-optimization/68565
961 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
962 codegen_error. Fail when rhs of division operations is integer_zerop.
963 (ternary_op_to_tree): Early return on codegen_error.
964 (unary_op_to_tree): Same.
965 (nary_op_to_tree): Same.
966 (gcc_expression_from_isl_expr_op): Same.
967 (gcc_expression_from_isl_expression): Same.
968 (graphite_create_new_loop): On codegen_error continue generating
969 wrong code.
970 (graphite_create_new_loop_guard): Same.
971 (build_iv_mapping): Same.
972 (graphite_create_new_guard): Same.
973
974 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
975 Sebastian Pop <s.pop@samsung.com>
976
977 * graphite-isl-ast-to-gimple.c: Fix dump messages.
978 * graphite-scop-detection.c: Same.
979 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
980
981 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
982
983 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
984 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
985 (convert_local_omp_clauses): Likewise.
986
987 2015-11-30 Tom de Vries <tom@codesourcery.com>
988
989 PR tree-optimization/46032
990 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
991 factored out of ...
992 (find_func_aliases_for_call): ... here.
993 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
994 BUILT_IN_GOMP_PARALLEL.
995 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
996 function.
997
998 2015-11-30 Jakub Jelinek <jakub@redhat.com>
999
1000 PR tree-optimization/68501
1001 * target.def (builtin_reciprocal): Replace the 3 arguments with
1002 a gcall * one, adjust description.
1003 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1004 with a gcall * one.
1005 * targhooks.c (default_builtin_reciprocal): Likewise.
1006 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1007 targetm.builtin_reciprocal even on internal functions, adjust
1008 the arguments and allow replacing an internal function with normal
1009 built-in.
1010 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1011 with a gcall * one. Handle internal fns too.
1012 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1013 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1014 * doc/tm.texi (builtin_reciprocal): Document.
1015
1016 2015-11-30 Richard Biener <rguenther@suse.de>
1017
1018 PR tree-optimization/68592
1019 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1020 on the pattern def sequence.
1021
1022 2015-11-30 Nathan Sidwell <nathan@acm.org>
1023
1024 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1025 (write_one_arg): Reorder parms, add 'sep' param.
1026 (nvptx_write_function_decl): Rename to ...
1027 (write_fn_proto): ... here. Do name replacement. Emit linaer
1028 comment marker. Deal with both decls and defns. Simplify argument
1029 formatting.
1030 (write_function_decl_and_comment): Delete.
1031 (write_func_decl_from_insn): Rename to ...
1032 (write_fn_proto_from_insn): ... here. Don't do name replacement.
1033 (nvptx_record_fndecl): Call write_fn_proto.
1034 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1035 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1036 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1037
1038 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
1039
1040 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1041 (define_insn "*k<logic><mode>"): Use new iterator.
1042
1043 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1044
1045 PR target/28115
1046 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1047 (sparc_adjust_cost): Add missing space.
1048
1049 2015-11-30 Richard Biener <rguenther@suse.de>
1050
1051 PR c/68162
1052 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
1053 of arrays.
1054
1055 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1056
1057 * tree-if-conv.c (struct ifc_dr): Add new tree
1058 base_predicate field.
1059 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1060 base ref, DR pairs and store base_predicate for write type DRs.
1061 (ifcvt_memrefs_wont_trap): Guard checks with
1062 -ftree-loop-if-convert-stores flag.
1063
1064 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1065
1066 * cgraph.c (cgraph_node::make_local): No name is unique during
1067 incremental linking.
1068 * cgraph.h (can_be_discarded_p): Update comment; also common and
1069 WEAK in named sections can be discarded; when doing incremental
1070 link do not rely on resolution being the final one.
1071 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1072 When symbol can be discarded, do not rely on resolution info.
1073 * symtab.c (symtab_node::nonzero_address): Take into account that
1074 symbol can be discarded.
1075 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1076 definition correctly.
1077 (function_and_variable_visibility): Do not set unique_name when
1078 incrementally linking.
1079
1080 2015-11-29 Nathan Sidwell <nathan@acm.org>
1081
1082 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1083 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1084 (ctrap<mode>): Use const0_operand.
1085
1086 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1087
1088 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
1089 dump
1090
1091 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1092
1093 PR target/28115
1094 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1095 recog_memoized test for insn and check recog_memoized for dep_insn.
1096
1097 2015-11-28 Nathan Sidwell <nathan@acm.org>
1098
1099 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1100 (FRAME_POINTER_CFA_OFFSET): Define.
1101 (struct nvptx_args): Use 'tree' type.
1102 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1103
1104 2015-11-28 Tom de Vries <tom@codesourcery.com>
1105
1106 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1107
1108 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1109
1110 * doc/invoke.texi (Option Summary): Use negative form of
1111 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1112 sort alphabetically and re-justify.
1113
1114 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1115
1116 PR rtl-optimization/68536
1117 * lra.c (lra_emit_add): Add code for null base.
1118 * lra-constraints.c (curr_insn_transform): Skip operators for
1119 subreg reloads.
1120
1121 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1122
1123 Revert
1124 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1125
1126 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1127 multiple_sets.
1128 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1129 are not modified by the final modified insns in the basic blocks.
1130
1131 2015-11-27 Nathan Sidwell <nathan@acm.org>
1132
1133 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1134 Don't declare.
1135 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1136 (nvptx_maybe_convert_symbolic_operand): Simplify.
1137 (nvptx_addr_space_from_address): Delete.
1138 (nvptx_print_operand): Adjust 'A' case.
1139
1140 2015-11-27 Richard Biener <rguenther@suse.de>
1141
1142 PR tree-optimization/68559
1143 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1144 peeling for gap checks ...
1145 * tree-vect-stmts.c (vectorizable_load): ... here and relax
1146 for SLP.
1147 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1148 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1149
1150 2015-11-27 Nathan Sidwell <nathan@acm.org>
1151
1152 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
1153 declare.
1154 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1155 (nvptx_record_fndecl): Don't return value, remove force
1156 argument. Require fndecl.
1157 (nvptx_record_libfunc): New.
1158 (nvptx_record_needed_decl): Deteermine how to record decl here.
1159 (nvptx_maybe_record_fnsym): New.
1160 (nvptx_expand_call): Don't record libfuncs here,
1161 (nvptx_maybe_convert_symbolic_operand): Use
1162 nvptx_maye_record_fnsym.
1163 (nvptx_assemble_integer): Reimplement with single switch.
1164 (nvptx_output_call_insn): Register libfuncs here.
1165 (nvptx_file_end): Adjust nvptx_record_fndecl call.
1166 * config/nvptx/nvptx.md (expand_movdi): Don't call
1167 nvptx_record_needed_decl.
1168
1169 2015-11-27 Richard Biener <rguenther@suse.de>
1170
1171 PR tree-optimization/68553
1172 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1173 generation for 1:1 permutations.
1174 (vect_transform_slp_perm_load): Detect 1:1 permutations.
1175
1176 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
1177
1178 * gimple.h (nonbarrier_call_p): Declare.
1179 * gimple.c (nonbarrier_call_p): New function.
1180 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1181 Also increment call phase for ASMs with vdef and potential barrier
1182 calls.
1183
1184 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1185
1186 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1187 multiple_sets.
1188 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1189 are not modified by the final modified insns in the basic blocks.
1190
1191 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1192
1193 PR rtl-optimization/68506
1194 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1195 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
1196 blocks.
1197
1198 2015-11-27 Martin Liska <mliska@suse.cz>
1199
1200 PR c++/68312
1201 * vec.h (release_vec_vec): New function.
1202
1203 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1204
1205 PR tree-optimization/68552
1206 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1207 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
1208 or whether v0 == v1.
1209
1210 2015-11-27 Martin Liska <mliska@suse.cz>
1211
1212 * tree-ssa-uninit.c: Fix whitespaces in the source file.
1213 The change is just automatical.
1214
1215 2015-11-27 Martin Liska <mliska@suse.cz>
1216
1217 * tree-chkp.c (chkp_make_static_bounds): Release buffer
1218 used for string.
1219
1220 2015-11-27 Martin Liska <mliska@suse.cz>
1221
1222 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1223 Do not release memory for comp_alias_ddrs.
1224 * tree-vect-loop.c (destroy_loop_vec_info): Release
1225 the memory for all loop_vec_info.
1226
1227 2015-11-27 Martin Liska <mliska@suse.cz>
1228
1229 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1230 of a local-scope vec.
1231 (struct final_warning_record): Use auto_vec instead
1232 of vec.
1233
1234 2015-11-27 Richard Biener <rguenther@suse.de>
1235
1236 PR tree-optimization/68553
1237 * tree-vect-slp.c (vect_get_mask_element): Remove.
1238 (vect_transform_slp_perm_load): Implement in a simpler way.
1239
1240 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
1241
1242 PR rtl-optimization/67753
1243 PR rtl-optimization/64164
1244 * function.c (assign_parm_setup_block): Right-shift
1245 upward-padded big-endian args when bypassing the stack slot.
1246
1247 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
1248
1249 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1250 `-mcompact-branches='.
1251 (MIPS Options): Likewise.
1252
1253 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1254
1255 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1256
1257 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1258
1259 * doc/install.texi (Prerequisites): Increase ISL requirement to
1260 0.14 or 0.15.
1261
1262 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1263
1264 * config/aarch64/arm_neon.h
1265 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1266 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1267 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1268 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1269 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1270 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1271 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1272 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1273 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1274 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1275 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1276 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1277
1278 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1279
1280 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1281 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1282 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1283 (vqrdmlshq_s16, vqrdmlshq_s32): New.
1284
1285 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1286
1287 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1288 ARM_FEATURE_QRDMX.
1289
1290 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
1291
1292 PR debug/53927
1293 * tree-nested.c (finalize_nesting_tree_1): Append a field to
1294 hold the frame base address.
1295 * dwarf2out.c (gen_subprogram_die): Generate for
1296 DW_AT_static_link a location description that computes the value
1297 of this field.
1298
1299 2015-11-26 Tom de Vries <tom@codesourcery.com>
1300
1301 revert:
1302 2015-11-25 Tom de Vries <tom@codesourcery.com>
1303
1304 * cfgloop.c (find_single_latch): New function, factored out of ...
1305 (flow_loops_find): ... here.
1306 (verify_loop_structure): Improve verification of loop->latch.
1307 * cfgloop.h (find_single_latch): Declare.
1308 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1309
1310 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1311
1312 * config/aarch64/aarch64-simd-builtins.def:
1313 Add missing changes from r230962.
1314
1315 2015-11-26 Nathan Sidwell <nathan@acm.org>
1316
1317 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1318 arg with name. Don't deal with split regs. Tweak formatting.
1319 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1320 (nvptx_output_call_insn): Don't deal with split regs here.
1321
1322 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1323
1324 * config/aarch64/aarch64-simd-builtins.def
1325 (sqrdmlah, sqrdmlsh): New.
1326 (sqrdmlah_lane, sqrdmlsh_lane): New.
1327 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1328
1329 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1330
1331 * config/aarch64/aarch64-simd.md
1332 (aarch64_sqmovun<mode>): Fix some white-space.
1333 (aarch64_<sur>qmovun<mode>): Likewise.
1334 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1335 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1336 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1337 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1338 (UNSPEC_SQRDMLSH): New.
1339 (SQRDMLH_AS): New.
1340 (rdma_as): New.
1341
1342 2015-11-26 Richard Biener <rguenther@suse.de>
1343
1344 PR tree-optimization/66721
1345 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1346 iteration cost earlier. Re-do analysis without SLP when
1347 vectorization using SLP fails and without has a chance to succeed.
1348
1349 2015-11-26 Richard Biener <rguenther@suse.de>
1350
1351 * genmatch.c (dt_simplify::gen_1): For generic wrap all
1352 multi-result-use captures in a SAVE_EXPR.
1353
1354 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1355
1356 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1357 (TARGET_SIMD_RDMA): New.
1358
1359 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1360
1361 * combine.c (subst): Do not return clobber of zero in widening mult
1362 case. Just return x unchanged if it is a no-op substitution.
1363
1364 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
1365
1366 PR target/68416
1367 * config/i386/i386.h (enum reg_class): Add
1368 bounds registers to ALL_REGS.
1369
1370 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1371
1372 PR tree-optimization/68128
1373 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1374 * gimplify.c: Include gimple-walk.h.
1375 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1376 (omp_notice_variable): Set flags to n->value if n already
1377 exists in target region, but we need to jump to do_outer.
1378 (omp_shared_to_firstprivate_optimizable_decl_p,
1379 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1380 functions.
1381 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1382 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1383 not modified in the body. Call omp_mark_stores for outer
1384 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1385 in the body or on OMP_CLAUSE_LASTPRIVATE.
1386 (gimplify_adjust_omp_clauses): Add body argument, call
1387 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1388 Set OMP_CLAUSE_SHARED_READONLY
1389 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1390 not modified in the body. Call omp_mark_stores for outer
1391 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1392 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1393 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1394 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1395 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1396 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1397 * tree-nested.c (convert_nonlocal_omp_clauses,
1398 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1399 non-local vars or local vars referenced from nested routines.
1400 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1401 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
1402 TREE_READONLY, don't call use_pointer_for_field with non-NULL
1403 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1404
1405 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
1406
1407 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1408 about signed left shift stronger and clarify the cases when they're
1409 broken.
1410
1411 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1412 Bernd Schmidt <bschmidt@redhat.com>
1413
1414 PR rtl-optimization/67226
1415 * calls.c (store_one_arg): Take into account
1416 crtl->args.pretend_args_size when checking for overlap between
1417 arg->value and argblock + arg->locate.offset during sibcall
1418 optimization.
1419
1420 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1421
1422 * config/aarch64/aarch64.md (cbranch<mode>4): Use
1423 aarch64_fp_compare_operand.
1424 (store_pairsf): Use aarch64_reg_or_fp_zero.
1425 (store_pairdf): Likewise.
1426 (cstore<mode>4): Use aarch64_fp_compare_operand.
1427 (cmov<mode>6): Likewise.
1428 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1429
1430 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
1431 Sebastian Pop <s.pop@samsung.com>
1432
1433 PR tree-optimization/68453
1434 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1435 not redirect edges already pointing to their destination.
1436 (translate_isl_ast_node_for): Split edges after loops to create
1437 basic blocks for close phi nodes. Save merge points at the end of
1438 a loop guard.
1439 (translate_isl_ast_node_if): Save merge points at the end of the
1440 if region.
1441 (add_close_phis_to_outer_loops): New.
1442 (add_close_phis_to_merge_points): New.
1443 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1444 (copy_bb_and_scalar_dependences): Do not split basic blocks on
1445 loop close phi locations.
1446
1447 2015-11-25 Jan Hubicka <jh@suse.cz>
1448
1449 * ipa-visibility.c (cgraph_externally_visible_p,
1450 varpool_node::externally_visible_p): When doing incremental linking,
1451 hidden symbols may be still used later.
1452 (update_visibility_by_resolution_info): Do not drop weak during
1453 incremental link.
1454 (function_and_variable_visibility): Fix formating.
1455 * flag-types.h (lto_linker_output): Declare.
1456 * common.opt 9flag_incremental_link): New flag.
1457
1458 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1459
1460 * config/rs6000/constraints.md (wb constraint): New constraint for
1461 ISA 3.0 d-form scalar addressing.
1462
1463 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1464 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1465 Altivec registers. Add wb constraint for Altivec registers with
1466 D-form addressing. If we have ISA 3.0 d-form support, undo
1467 secondary reload support for using FPR registers if we want to do
1468 D-form addressing.
1469 (rs6000_debug_reg_global): Likewise.
1470 (rs6000_setup_reg_addr_masks): Likewise.
1471 (rs6000_init_hard_regno_mode_ok): Likewise.
1472 (rs6000_secondary_reload): Likewise.
1473 (rs6000_preferred_reload_class): Likewise.
1474 (rs6000_secondary_reload_class): Likewise.
1475
1476 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1477 constraint.
1478
1479 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1480 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1481 (f32_lm2): Likewise.
1482 (f32_li2): Likewise.
1483 (f32_sr2): Likewise.
1484 (f32_sm2): Likewise.
1485 (f32_si2): Likewise.
1486 (f64_p9): Likewise.
1487 (extendsfdf2_fpr): Likewise.
1488 (mov<mode>_hardfloat): Likewise.
1489 (mov<mode>_hardfloat32): Likewise.
1490 (mov<mode>_hardfloat64): Likewise.
1491
1492 * doc/md.texi (RS/6000 constraints): Document wb constraint.
1493 Fixup we constraint documentation.
1494
1495 2015-11-25 Tom de Vries <tom@codesourcery.com>
1496
1497 * omp-low.c (pass_expand_omp_ssa::clone): New function.
1498 * passes.def: Add pass_oacc_kernels pass group.
1499 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1500
1501 2015-11-25 Tom de Vries <tom@codesourcery.com>
1502
1503 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1504 Declare.
1505 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1506 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1507 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1508 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1509
1510 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1511
1512 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1513 TV_IPA_LTO_OUTPUT): New.
1514 * lto-compress.c: Include timevar.h
1515 (lto_end_compression, lto_end_uncompression): Add timers.
1516 * langhooks.c: Include timevar.h
1517 (lhd_append_data): Add timer.
1518
1519 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1520
1521 * varasm.c (default_elf_asm_output_limited_string,
1522 default_elf_asm_output_ascii): Replace fprintf by putc.
1523
1524 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
1525
1526 PR rtl-optimization/67954
1527 * lra-constraints.c (curr_insn_transform): Add check on scratch
1528 pseudo when change class to NO_REGS. Add an assert.
1529
1530 2015-11-25 Nathan Sidwell <nathan@acm.org>
1531
1532 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1533 constraint is 'n'.
1534 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
1535 number.
1536 (nvptx_write_function_decl): Number args from 0.
1537 (nvptx_declare_function_name): Likewise.
1538 (nvptx_function_incoming_arg): Likewise.
1539 (nvptx_output_call_insn): Correct formatting.
1540
1541 2015-11-25 David Sherwood <david.sherwood@arm.com>
1542
1543 * optabs.def: Add new optabs fmax_optab/fmin_optab.
1544 * internal-fn.def: Add new fmax/fmin internal functions.
1545 * doc/md.texi: Add fmin and fmax patterns.
1546
1547 2015-11-25 Jason Merrill <jason@redhat.com>
1548
1549 PR c++/68385
1550 * tree.c (integer_zerop, integer_onep, integer_each_onep)
1551 (integer_all_onesp, integer_minus_onep, integer_pow2p)
1552 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1553 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1554
1555 2015-11-25 Richard Biener <rguenther@suse.de>
1556
1557 PR middle-end/68528
1558 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1559 on stripped operands.
1560
1561 2015-11-25 Nathan Sidwell <nathan@acm.org>
1562
1563 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1564 (nvptx_declare_function_name): Move assignments next to register
1565 declarations, and process params here.
1566
1567 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
1568
1569 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1570 both the symbol and the "dot" symbol for function descriptors. Fix
1571 inversion for rename of symbols with dollar sign.
1572
1573 2015-11-25 Tom de Vries <tom@codesourcery.com>
1574
1575 * cfgloop.c (find_single_latch): New function, factored out of ...
1576 (flow_loops_find): ... here.
1577 (verify_loop_structure): Improve verification of loop->latch.
1578 * cfgloop.h (find_single_latch): Declare.
1579 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1580
1581 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1582
1583 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1584 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1585 (STARTFILE_SPEC): Use %(startfile_vtv).
1586 (ENDFILE_SPEC): Use %(endfile_vtv).
1587 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1588 ENDFILE_VTV_SPEC.
1589
1590 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1591
1592 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
1593
1594 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1595 noce_can_store_speculate): Delete.
1596 (noce_process_if_block): Don't try to handle single MEM stores.
1597 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1598 * alias.c (memory_must_be_modified_in_insn_p): Delete.
1599
1600 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1601
1602 PR rtl-optimization/68435
1603 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1604 for conflicts between a, b and the set destinations.
1605
1606 2015-11-25 Richard Biener <rguenther@suse.de>
1607
1608 PR tree-optimization/68517
1609 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1610 Properly handle zero-sized types.
1611
1612 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1613
1614 * ipa-inline-analysis.c: Include gimplify.h
1615 (set_cond_stmt_execution_predicate,
1616 set_switch_stmt_execution_predicate): Be sure to not leak locations
1617 to function body.
1618
1619 2015-11-25 Jakub Jelinek <jakub@redhat.com>
1620
1621 PR target/67089
1622 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1623 match_uaddsub_overflow): New functions.
1624 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1625
1626 2015-11-25 Richard Biener <rguenther@suse.de>
1627
1628 PR tree-optimization/68492
1629 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1630 op from scalars after operand swapping.
1631
1632 2015-11-25 Richard Biener <rguenther@suse.de>
1633
1634 PR tree-optimization/68502
1635 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1636 check that the step is a multiple of the type size.
1637
1638 2015-11-24 Michael Collison <michael.collison@linaro.org>
1639
1640 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1641 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1642 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1643
1644 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
1645
1646 * frame-header-opt.c (gate): Check for optimize > 0.
1647 (has_inlined_assembly): New function.
1648 (needs_frame_header_p): Remove is_leaf_function check,
1649 add argument type check.
1650 (callees_functions_use_frame_header): Add is_leaf_function
1651 and has_inlined_assembly calls..
1652 (set_callers_may_not_allocate_frame): New function.
1653 (frame_header_opt): Add is_leaf_function call, add
1654 set_callers_may_not_allocate_frame call.
1655 * config/mips/mips.c (mips_compute_frame_info): Add check
1656 to see if callee saved regs can be put in frame header.
1657 (mips_expand_prologue): Add check to see if step1 is zero,
1658 fix cfa restores when using frame header to store regs.
1659 (mips_can_use_return_insn): Check to see if registers are
1660 stored in frame header.
1661 * config/mips/mips.h (machine_function): Add
1662 callers_may_not_allocate_frame and
1663 use_frame_header_for_callee_saved_regs fields.
1664
1665 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1666
1667 PR rtl-optimization/68520
1668 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
1669 its bit was already set in BB_WITH.
1670
1671 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1672
1673 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
1674 double check that type is main variant.
1675 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
1676 variant.
1677 (verify_type_variant): Verify that variants have no
1678 TYPE_ALIAS_SET_KNOWN_P set
1679 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
1680 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
1681 only for main variants; stream TYPE_ALIAS_SET as a bit.
1682 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
1683 accordingly.
1684
1685 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1686
1687 * tree.c (make_vector_type): Properly compute canonical type of the
1688 main variant.
1689 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
1690 a main variant.
1691
1692 2015-11-24 Nathan Sidwell <nathan@acm.org>
1693
1694 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1695 VOIDmode, don't alter incoming mode.
1696 (nvptx_split_reg_p): Delete.
1697 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1698 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1699 maybe_split_mode calls.
1700 (nvptx_print_operand): Use maybe_split_mode.
1701
1702 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1703
1704 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1705 only for types where LTO sets them.
1706 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1707 (make_vector_type): Likewise.
1708 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1709 * tree.h (canonical_type_used_p): New inline.
1710 * alias.c (get_alias_set): Handle structural equality for all
1711 types that pass canonical_type_used_p.
1712 (record_component_aliases): Look through all types with
1713 record_component_aliases for possible pointers; sanity check that
1714 the alias sets match.
1715
1716 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1717
1718 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1719
1720 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1721
1722 * tree.c (free_node): New function.
1723 (type_hash_canon): Use it.
1724 * tree.h (free_node): Declare.
1725
1726 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
1727 Michael Meissner <meissner@linux.vnet.ibm.com>
1728
1729 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1730 (Fv2): New mode attribute to be used when ISA 2.07 instructions
1731 are used on SF values, and ISA 2.06 instructions on DF values.
1732 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1733 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1734 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1735 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1736 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1737 (fre<Fs>): Use <Fv2> instead of <Fv>.
1738 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1739 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1740 (xsrdpi<mode>): Add support for the lround function.
1741 (lround<mode>di2): Likewise.
1742 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1743 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1744 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1745 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1746
1747 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1748 Sebastian Pop <s.pop@samsung.com>
1749
1750 PR tree-optimization/67984
1751 * graphite-isl-ast-to-gimple.c (is_constant): New.
1752 (get_rename): Call is_constant.
1753 (get_new_name): Same.
1754
1755 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1756 Sebastian Pop <s.pop@samsung.com>
1757
1758 * graphite-dependences.c: Only include graphite.h.
1759 * graphite-isl-ast-to-gimple.c: Same.
1760 * graphite-optimize-isl.c: Same.
1761 * graphite-poly.c: Same.
1762 * graphite-scop-detection.c: Same.
1763 * graphite-sese-to-poly.c: Same.
1764 * graphite.c: Same.
1765 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1766 * graphite-poly.h: Same.
1767 * graphite-scop-detection.h: Same.
1768 * graphite.h: New.
1769
1770 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
1771
1772 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1773 DW_TAG_namespace for IMPORTED_DECL declarations. Call
1774 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1775 function already takes care of checking what it can emit.
1776
1777 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1778
1779 * doc/invoke.texi (-fpic): Add the AArch64 limit.
1780 (-fPIC): Add AArch64.
1781
1782 2015-11-24 Tom de Vries <tom@codesourcery.com>
1783
1784 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1785 (pass_lim::execute): Allow to run outside pass_tree_loop.
1786
1787 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
1788
1789 * config/aarch64/aarch64.md (add<mode>3):
1790 Block early expansion into 2 add instructions.
1791 (add<mode>3_pluslong): New pattern to combine complex
1792 immediates into 2 additions.
1793
1794 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1795
1796 PR target/66217
1797 PR target/67677
1798 PR target/68332
1799 * config/rs6000/predicates.md (and_operand): Check that the operand
1800 is a const_int before calling rs6000_is_valid_and_mask.
1801
1802 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1803
1804 * config/aarch64/aarch64.md (*condjump): Rename to...
1805 (condjump): ... This.
1806 (*compare_condjump<mode>): New define_insn_and_split.
1807 (*compare_cstore<mode>_insn): Likewise.
1808 (*cstore<mode>_insn): Rename to...
1809 (cstore<mode>_insn): ... This.
1810 * config/aarch64/iterators.md (CMP): Handle ne code.
1811 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1812
1813 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
1814
1815 PR target/68497
1816 * config/i386/i386.c (output_387_binary_op): Fix assertion for
1817 -fno-checking case.
1818
1819 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1820
1821 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1822 (val_ssa_equiv_hash_traits::remove): Likewise.
1823 (pass_uncprop::execute): Adjust.
1824
1825 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1826
1827 * hash-map-traits.h (simple_hashmap_traits ::remove): call
1828 destructors on values that are being removed.
1829 * mem-stats.h (hash_map): Pass type of values to
1830 simple_hashmap_traits.
1831 * tree-sra.c (sra_deinitialize): Remove work around for hash
1832 maps not destructing values.
1833 * genmatch.c (sinfo_hashmap_traits): Adjust.
1834 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1835
1836 2015-11-24 Richard Biener <rguenther@suse.de>
1837 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1838
1839 PR middle-end/68375
1840 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1841 bogus assertion.
1842
1843 2015-11-24 Jakub Jelinek <jakub@redhat.com>
1844
1845 PR target/68483
1846 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1847 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1848 returns false.
1849 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1850 whenever first is nelt or above. Don't mask expected with
1851 2 * nelt - 1.
1852
1853 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1854
1855 PR c/68337
1856 * gimple-fold.c: Include ipa-chkp.h.
1857 (gimple_fold_builtin_memory_op): Don't fold call if we
1858 are going to instrument it and it may copy pointers.
1859
1860 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
1861 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1862
1863 PR rtl-optimization/68194
1864 PR rtl-optimization/68328
1865 PR rtl-optimization/68185
1866 * ree.c (combine_reaching_defs): Reject copy_needed case if
1867 copies_list is not empty.
1868
1869 2015-11-24 Richard Biener <rguenther@suse.de>
1870
1871 PR middle-end/68221
1872 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1873 use mem_ref_offset.
1874
1875 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1876
1877 PR rtl-optimization/68381
1878 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1879 is poisoned.
1880
1881 2015-11-23 Nick Clifton <nickc@redhat.com>
1882 Jeff Law <law@redhat.com>
1883
1884 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1885 the source/dest of the target extension require a different number of
1886 hard registers.
1887 (combine_set_extension): Remove #if 0 code.
1888
1889 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1890 Sebastian Pop <s.pop@samsung.com>
1891
1892 PR tree-optimization/68314
1893 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1894 * graphite-poly.c (new_scop): Remove original_schedule.
1895 (free_scop): Same.
1896 * graphite-poly.h (struct scop): Same.
1897 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1898 (build_pbb_scattering_polyhedrons): Add back.
1899 (build_scop_minimal_scattering): Remove.
1900 (build_scop_scattering): Add back.
1901 (build_scop_original_schedule): Remove.
1902 (build_poly_scop): Revert to only call build_scop_scattering.
1903
1904 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1905 Sebastian Pop <s.pop@samsung.com>
1906
1907 PR tree-optimization/68493
1908 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1909 missing early return when codegen_error is set.
1910
1911 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1912 Sebastian Pop <s.pop@samsung.com>
1913
1914 PR tree-optimization/68279
1915 * graphite-poly.c (new_scop): Remove poly_scop_p.
1916 * graphite-poly.h (struct scop): Same.
1917 (build_poly_scop): Declare.
1918 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1919 (cleanup_loop_iter_dom): New.
1920 (build_loop_iteration_domains): Early return when scev analysis fails.
1921 (create_pw_aff_from_tree): Same.
1922 (add_condition_to_pbb): Same.
1923 (add_conditions_to_domain): Same.
1924 (add_conditions_to_constraints): Same.
1925 (build_scop_iteration_domain): Same.
1926 (build_poly_scop): Same. Do not initialize poly_scop_p.
1927 * graphite-sese-to-poly.h: Remove.
1928 * graphite.c: Do not include graphite-sese-to-poly.h.
1929 (graphite_transform_loops): Stop before code generation when
1930 build_poly_scop fails.
1931 * sese.c (scalar_evolution_in_region): Add fixme note about scev
1932 analysis.
1933
1934 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1935 Sebastian Pop <s.pop@samsung.com>
1936
1937 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1938 Remove call to update_ssa.
1939 * sese.c (sese_insert_phis_for_liveouts): Same.
1940
1941 2015-11-23 Marek Polacek <polacek@redhat.com>
1942
1943 PR tree-optimization/68455
1944 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1945 extract_range_from_multiplicative_op_1 on symbolic ranges.
1946
1947 2015-11-23 Richard Henderson <rth@redhat.com>
1948
1949 * optabs.def (uaddv4_optab, usubv4_optab): New.
1950 * internal-fn.c (expand_addsub_overflow): Use them.
1951 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1952
1953 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1954 to reversed operands.
1955 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1956 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1957 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1958 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1959 (*add<SWI>3_cconly_overflow_2): New.
1960 (*add<SWI>3_cc_overflow_2): New.
1961 (*addsi3_zext_cc_overflow_2): New.
1962
1963 2015-11-23 Richard Biener <rguenther@suse.de>
1964
1965 PR tree-optimization/68465
1966 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1967 Also record equalities from multiple predecessor blocks if
1968 only one non-backedge exists.
1969
1970 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1971
1972 PR target/68363
1973 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1974 that are not INSN_P.
1975
1976 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
1977
1978 * config/aarch64/aarch64-builtins.c
1979 (aarch64_gimple_fold_builtin): Fold FMULX.
1980
1981 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
1982
1983 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1984 * graphite-dependences.c: Define USES_ISL. Include ISL header files
1985 after GCC header files and before graphite header files.
1986 * graphite-dependences.c: Same.
1987 * graphite-isl-ast-to-gimple.c: Same.
1988 * graphite-optimize-isl.c: Same.
1989 * graphite-poly.c: Same.
1990 * graphite-scop-detection.c: Same.
1991 * graphite-sese-to-poly.c: Same.
1992 * graphite.c: Same.
1993
1994 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
1995 Jiong Wang <jiong.wang@arm.com>
1996
1997 PR tree-optimization/68317
1998 PR tree-optimization/68326
1999 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2000 final min and max are not infinity.
2001
2002 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2003 Richard Biener <rguenther@suse.de>
2004
2005 PR tree-optimization/68327
2006 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2007 compute vectype for non-relevant mask producers.
2008 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2009 relevance earlier.
2010
2011 2015-11-23 Tom de Vries <tom@codesourcery.com>
2012
2013 PR tree-optimization/68460
2014 * tree-parloops.c (gather_scalar_reductions): Also call
2015 free_stmt_vec_info_vec if simple_loop_info == NULL.
2016
2017 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2018
2019 * opts.c (finish_options): Allow -fsanitize-recover=address for
2020 userspace sanitization.
2021 * asan.c (asan_expand_check_ifn): Redefine recover_p.
2022 * doc/invoke.texi (fsanitize-recover): Update documentation.
2023
2024 2015-11-23 Tom de Vries <tom@codesourcery.com>
2025
2026 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2027
2028 2015-11-23 Richard Biener <rguenther@suse.de>
2029
2030 PR tree-optimization/68445
2031 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2032 two different strides.
2033
2034 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
2035
2036 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2037 * config/s390/s390.c (s390_check_symref_alignment): Use new
2038 symref flags, early abort on wrong alignment
2039 (s390_secondary_reload): Use new symref flags.
2040 (s390_encode_section_info): Likewise.
2041 * config/s390/predicates.md: Likewise.
2042
2043 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2044
2045 PR target/68390
2046 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2047 for indirect function call.
2048
2049 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
2050
2051 * config/aarch64/aarch64-simd.md
2052 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2053 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2054 (*aarch64_mulx_elt_to_64v2df): Likewise.
2055 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2056 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2057 (vmulx_lane_f64): Likewise.
2058 (vmulxq_lane_f32): Refactored & moved.
2059 (vmulxq_lane_f64): Likewise.
2060 (vmulx_laneq_f32): New.
2061 (vmulx_laneq_f64): Likewise.
2062 (vmulxq_laneq_f32): Likewise.
2063 (vmulxq_laneq_f64): Likewise.
2064 (vmulxs_lane_f32): Likewise.
2065 (vmulxs_laneq_f32): Likewise.
2066 (vmulxd_lane_f64): Likewise.
2067 (vmulxd_laneq_f64): Likewise.
2068
2069 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2070
2071 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2072 In LTO we do not compute TYPE_CANONICAL of pointers.
2073 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2074 that pointers do not have canonical type that would make us believe
2075 they are different.
2076 * alias.c (get_alias_set): Do structural type equality on pointers;
2077 enable pointer path for LTO; also glob pointer to vector with pointer
2078 to vector element; glob pointers and references for LTO; do more strict
2079 sanity checking about build_pointer_type returning the canonical type
2080 which is also the main variant.
2081 (record_component_aliases): When component type is pointer and we
2082 do LTO; record void_type_node alias set.
2083
2084 2015-11-21 Nathan Sidwell <nathan@acm.org>
2085
2086 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2087
2088 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2089 leading blank line.
2090 (write_func_decl_from_insn): Likewise.
2091 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2092 (nvptx_file_end): Likewise.
2093 (nvptx_function_end): Undent output.
2094 (nvptx_expand_call): Fix formatting.
2095 (nvptx_output_call_insn): Indent output.
2096 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2097 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2098
2099 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2100
2101 PR debug/66432
2102 * tree-inline.c (copy_debug_stmt): If
2103 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2104 in decl_debug_args, don't call remap_gimple_op_r on it.
2105
2106 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2107
2108 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2109 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2110 Check that all record types are complete.
2111 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2112 compare alias sets for types w/o alias sets.
2113
2114 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2115
2116 * config/sparc/sparc.md (umulxhi_vis): Move around.
2117 (*umulxhi_sp64): Likewise.
2118 (umulxhi_v8plus): Likewise.
2119 (xmulx_vis): Likewise.
2120 (*xmulx_sp64): Likewise.
2121 (xmulx_v8plus): Likewise.
2122 (xmulxhi_vis): Likewise.
2123 (*xmulxhi_sp64): Likewise.
2124 (xmulxhi_v8plus): Likewise.
2125
2126 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2127
2128 PR 62314
2129 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2130 (class layout): Update comment
2131 (layout::print_any_fixits): New method.
2132 (layout::move_to_column): New method.
2133 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2134
2135 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2136
2137 PR middle-end/68221
2138 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2139 has non-zero bias, subtract it in integer type instead of
2140 pointer plus of negated bias.
2141
2142 PR middle-end/68339
2143 * omp-low.c (expand_simd_clones): Call node->get_body () before
2144 allocating stuff in GC.
2145
2146 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
2147
2148 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2149
2150 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
2151
2152 * config/aarch64/aarch64.md (predicated): Copy attribute from
2153 "arm.md".
2154 * config/arm/arm.md (predicated): Added description.
2155
2156 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2157
2158 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2159 for unaligned_access.
2160 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2161 from matching condition.
2162 (unaligned_loadhis): Likewise.
2163 (unaligned_loadhiu): Likewise.
2164 (unaligned_storesi): Likewise.
2165 (unaligned_storehi): Likewise.
2166
2167 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2168
2169 PR target/68149
2170 * config/arm/arm.md (unaligned_loaddi): Delete.
2171 (unaligned_storedi): Likewise.
2172 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2173 unaligned DImode memory ops. Instead perform two back-to-back
2174 unaligned SImode ops.
2175
2176 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
2177 James Norris <jnorris@codesourcery.com>
2178
2179 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2180 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2181
2182 2015-11-20 Alan Hayward <alan.hayward@arm.com>
2183
2184 PR tree-optimization/68413
2185 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2186 evolution base
2187 (vectorizable_reduction): Use cached base
2188
2189 2015-11-20 Tom de Vries <tom@codesourcery.com>
2190
2191 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2192 dump-file string.
2193 (try_create_reduction_list): Same. Fix typo in dump-file string.
2194
2195 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2196
2197 * doc/md.texi (Standard Names): Move entry for addptr3 around,
2198 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2199 glitch in entries for cbranch4 and jump.
2200
2201 2015-11-20 Tom de Vries <tom@codesourcery.com>
2202
2203 PR tree-optimization/68373
2204 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2205 of ...
2206 (scev_const_prop): ... here.
2207 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2208 * tree-parloops.c (try_create_reduction_list): Call
2209 final_value_replacement_loop.
2210
2211 2015-11-20 Bin Cheng <bin.cheng@arm.com>
2212
2213 PR tree-optimization/52272
2214 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2215 (struct iv_common_cand_hasher): New struct.
2216 (iv_common_cand_hasher::hash): New function.
2217 (iv_common_cand_hasher::equal): New function.
2218 (struct ivopts_data): New fields, iv_common_cand_tab and
2219 iv_common_cands.
2220 (tree_ssa_iv_optimize_init): Initialize above fields.
2221 (record_common_cand, common_cand_cmp): New functions.
2222 (add_iv_candidate_derived_from_uses): New function.
2223 (add_iv_candidate_for_use): Record iv_common_cands derived from
2224 iv use in hash table, instead of adding candidates directly.
2225 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2226 (record_important_candidates): Add important candidates to iv uses'
2227 related_cands. Always keep related_cands for future use.
2228 (try_add_cand_for): Use iv uses' related_cands.
2229 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2230 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2231
2232 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2233
2234 * config/s390/s390.md ("bswaphi2"): New pattern.
2235
2236 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
2237
2238 * config/s390/s390.md (GPR1_REGNUM): New constant.
2239 ("*trunc<BFP:mode><DFP_ALL:mode>2")
2240 ("*trunc<DFP_ALL:mode><BFP:mode>2")
2241 ("trunc<BFP:mode><DFP_ALL:mode>2")
2242 ("trunc<DFP_ALL:mode><BFP:mode>2")
2243 ("*extend<BFP:mode><DFP_ALL:mode>2")
2244 ("*extend<DFP_ALL:mode><BFP:mode>2")
2245 ("extend<BFP:mode><DFP_ALL:mode>2")
2246 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2247
2248 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2249 Sebastian Pop <s.pop@samsung.com>
2250
2251 PR tree-optimization/68428
2252 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2253 over basic blocks outside the scop.
2254
2255 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2256 Sebastian Pop <s.pop@samsung.com>
2257
2258 PR tree-optimization/68341
2259 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2260 gcc_unreachable and safely fail codegen.
2261 (copy_loop_close_phi_args): Do not insert merge phis in a basic
2262 block with loop phi nodes.
2263 (edge_for_new_close_phis): New.
2264 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2265
2266 2015-11-19 Nathan Sidwell <nathan@acm.org>
2267
2268 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2269 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2270 (nvptx_declare_objec_name): Likewise.
2271
2272 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2273
2274 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2275 (get_false_edge_from_guard_bb): Move...
2276 * sese.c (get_false_edge_from_guard_bb)
2277 (get_true_edge_from_guard_bb): ... here.
2278
2279 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
2280
2281 Revert
2282 2015-11-18 Alan Modra <amodra@gmail.com>
2283
2284 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2285 type-limits warning.
2286
2287
2288 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2289
2290 * tree.h (desired_pro_or_demotion_p): New function.
2291 * tree-vrp.c (simplify_cond_using_ranges): Call it.
2292
2293 2015-11-19 Michael Matz <matz@suse.de>
2294
2295 * fwprop.c (update_uses): Use flag_checking instead of
2296 gcc_checking_assert.
2297
2298 2015-11-19 David Malcolm <dmalcolm@redhat.com>
2299
2300 * doc/gty.texi (Support for inheritance): Fix missing
2301 parentheses in example.
2302
2303 2015-11-19 Marek Polacek <polacek@redhat.com>
2304
2305 PR tree-optimization/68431
2306 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2307
2308 2015-11-19 Nathan Sidwell <nathan@acm.org>
2309
2310 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2311 atomic_exchange<mode>): Input values can be immediates.
2312
2313 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2314
2315 PR lto/61313
2316 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2317 by the user.
2318 * configure: Regenerate.
2319
2320 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2321
2322 PR target/68408
2323 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2324 (DTORS_SECTION_ASM_OP): Likewise.
2325
2326 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2327
2328 PR rtl-optimization/68376
2329 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2330 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2331
2332 2015-11-19 Richard Biener <rguenther@suse.de>
2333
2334 PR middle-end/68117
2335 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2336 redirect_edge_var_map_destroy.
2337
2338 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2339
2340 PR target/67770
2341 * config/i386/i386.md (simple_return): Disable if
2342 ix86_static_chain_on_stack is true.
2343
2344 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
2345
2346 PR bootstrap/68393
2347 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2348 destinations.
2349
2350 2015-11-18 Jeff Law <law@redhat.com>
2351
2352 PR tree-optimization/68198
2353 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2354 between threading a multi-way branch and a thread path that contains
2355 a multi-way branch. Disallow the case where a path contains a
2356 multi-way branch and does not thread a multi-way branch.
2357 (thread_through_all_blocks): Update comment.
2358
2359 2015-11-18 Joseph Myers <joseph@codesourcery.com>
2360
2361 PR c/65083
2362 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2363 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2364 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2365 functions before defining as macros.
2366
2367 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2368
2369 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2370 (nvptx_record_offload_symbol): Remove code compensating for lack
2371 of default dimension handling.
2372 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2373
2374 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2375
2376 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2377 type to bool for early exit.
2378 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2379 in case of error.
2380 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2381 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2382 predecessor dominates the other.
2383 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2384 element is not found it returns -1.
2385 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2386 out early when codegen fails.
2387 (graphite_regenerate_ast_isl): Remove codegen region when pending
2388 phis could not be generated.
2389
2390 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2391
2392 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2393 semicolon.
2394 (class translate_isl_ast_to_gimple): Indentation.
2395 (translate_pending_phi_nodes): Comment.
2396 (add_parameters_to_ivs_params): Moved from sese.c inside class
2397 translate_isl_ast_to_gimple.
2398 (get_max_schedule_dimensions): Same.
2399 (generate_isl_context): Same.
2400 (extend_schedule): Same.
2401 (generate_isl_schedule): Same.
2402 (set_options): Same.
2403 (scop_to_isl_ast): Same.
2404 (is_valid_rename): Same.
2405 (get_rename): Same.
2406 (get_rename_from_scev): Same.
2407 (get_def_bb_for_const): Same.
2408 (get_new_name): Same.
2409 (collect_all_ssa_names): Same.
2410 (copy_loop_phi_args): Same.
2411 (copy_loop_phi_nodes): Same.
2412 (copy_loop_close_phi_args): Same.
2413 (copy_loop_close_phi_nodes): Same.
2414 (copy_cond_phi_args): Same.
2415 (copy_cond_phi_nodes): Same.
2416 (graphite_copy_stmts_from_block): Same.
2417 (copy_bb_and_scalar_dependences): Same.
2418 (add_phi_arg_for_new_expr): Same.
2419 (rename_uses): Same.
2420 (set_rename): Same.
2421 (set_rename_for_each_def): Same.
2422 (gsi_insert_earliest): Same.
2423 (rename_all_uses): Same.
2424 (codegen_error_p): Same.
2425 (print_isl_ast_node): Same.
2426 (translate_isl_ast_for_loop): Call function codegen_error_p.
2427 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2428 (translate_isl_ast_node_user): Make nb_loops const and release
2429 iv_map before exit.
2430 (get_true_edge_from_guard_bb): Move all free-functions early.
2431 (get_false_edge_from_guard_bb): Same.
2432 (bb_contains_loop_close_phi_nodes): Same.
2433 (bb_contains_loop_phi_nodes): Same.
2434 (is_loop_closed_ssa_use): Same.
2435 (number_of_phi_nodes): Same.
2436 (phi_uses_name): Same.
2437 (later_of_the_two): Same.
2438 (substitute_ssa_name):
2439 (get_edges): Same.
2440 (get_loc): Same.
2441 (get_loop_init_value): Same.
2442 (find_init_value): Same.
2443 (find_init_value_close_phi): Same.
2444 (ast_build_before_for): Same.
2445 (graphite_regenerate_ast_isl): Formatting changes.
2446 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2447 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2448 (set_rename): Same.
2449 (gsi_insert_earliest): Same.
2450 (collect_all_ssa_names): Same.
2451 (rename_all_uses): Same.
2452 (rename_uses): Same.
2453 (get_def_bb_for_const): Same.
2454 (copy_loop_phi_nodes): Same.
2455 (copy_loop_close_phi_args): Same.
2456 (copy_loop_close_phi_nodes): Same.
2457 (copy_cond_phi_args): Same.
2458 (copy_cond_phi_nodes): Same.
2459 (set_rename_for_each_def): Same.
2460 (graphite_copy_stmts_from_block): Same.
2461 (copy_bb_and_scalar_dependences): Same.
2462 (if_region_set_false_region): Same.
2463 (scev_analyzable_p): Same.
2464 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2465
2466 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
2467
2468 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2469 commit from r125920 for FreeBSD.
2470
2471 2015-11-18 Jason Merrill <jason@redhat.com>
2472
2473 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2474 to be vecs of vecs.
2475 (add_finalizer): Split out from ggc_internal_alloc.
2476 (ggc_handle_finalizers): Run finalizers for the current depth.
2477 (init_ggc, ggc_pch_read): Reserve space for finalizers.
2478
2479 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
2480
2481 PR target/68410
2482 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2483 from || expression.
2484
2485 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2486
2487 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2488 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2489 and atmega328pb.
2490 * doc/avr-mmcu.texi: Regenerate.
2491
2492 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2493
2494 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2495 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2496 (struct bb_sese): New struct.
2497 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2498 (BB_GET_SESE, BB_SET_SESE): Define.
2499 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2500 (nvptx_find_sese): New.
2501 (nvptx_neuter_pars): Find SESE regions when optimizing.
2502
2503 2015-11-18 Alan Modra <amodra@gmail.com>
2504
2505 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2506 type-limits warning.
2507
2508 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
2509
2510 PR bootstrap/68406
2511 * hash-set.h (hash_set::traverse): Expand Key typedef.
2512
2513 2015-11-18 Martin Liska <mliska@suse.cz>
2514
2515 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2516 options struct.
2517
2518 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2519
2520 * config/nvptx/nvptx.c (global_lock_var): New.
2521 (nvptx_global_lock_addr): New.
2522 (nvptx_lockless_update): Recomment and adjust for clarity.
2523 (nvptx_lockfull_update): New.
2524 (nvptx_reduction_update): New.
2525 (nvptx_goacc_reduction_fini): Call it.
2526
2527 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
2528
2529 * regrename.h (struct du_head): Add target_data_1 and target_data_2
2530 fields.
2531 * regrename.c (create_new_chain): Clear entire struct after allocating.
2532
2533 * config/i386/i386.opt (mmitigate-rop): New option.
2534 * doc/invoke.texi (mmitigate-rop): Document.
2535 * config/i386/i386.c: Include "regrename.h".
2536 (ix86_rop_should_change_byte_p, reg_encoded_number,
2537 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2538 static functions.
2539 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2540 * config/i386/i386.md (attr "modrm_class"): New.
2541 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2542 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2543 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2544
2545 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2546
2547 PR target/68405
2548 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2549
2550 2015-11-18 Jakub Jelinek <jakub@redhat.com>
2551
2552 PR tree-optimization/68157
2553 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2554 pow_stmt or mul_stmt from stmt's uid.
2555 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2556
2557 2015-11-18 Martin Liska <mliska@suse.cz>
2558
2559 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2560
2561 2015-11-18 Martin Liska <mliska@suse.cz>
2562
2563 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2564 Fix GNU coding style.
2565 (find_def_preds): Use auto_vec.
2566 (destroy_predicate_vecs): Change signature of the function.
2567 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2568 new signature.
2569 (simplify_preds_4): Use destroy_predicate_vecs instread of
2570 just releasing preds vector.
2571 (normalize_preds): Likewise.
2572 (is_use_properly_guarded): Use new signature of
2573 destroy_predicate_vecs.
2574 (find_uninit_use): Likewise.
2575
2576 2015-11-18 Richard Biener <rguenther@suse.de>
2577
2578 PR tree-optimization/67790
2579 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2580 IL rewrite for MINUS_EXPR reductions, rename back to ...
2581 (vect_is_simple_reduction): ... this, removing the wrapper.
2582 (vect_force_simple_reduction): Adjust.
2583 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2584 reductions and make use if reduc_index in all places. For
2585 the final reduction of MINUS_EXPR use PLUS_EXPR.
2586
2587 2015-11-18 Alan Modra <amodra@gmail.com>
2588
2589 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2590 to ld.
2591 * configure: Regenerate.
2592
2593 2015-11-17 Tom de Vries <tom@codesourcery.com>
2594
2595 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2596
2597 2015-11-17 Tom de Vries <tom@codesourcery.com>
2598
2599 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2600 uses of ssa_name with constant.
2601
2602 2015-11-17 Tom de Vries <tom@codesourcery.com>
2603
2604 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2605 something changed.
2606
2607 2015-11-17 Tom de Vries <tom@codesourcery.com>
2608
2609 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2610 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2611 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2612
2613 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
2614
2615 * regrename.c (regrename_find_superclass): New function, code moved
2616 from ...
2617 (rename_chains): ... here. Call it.
2618 * regrename.h (regrename_find_superclass): Declare.
2619
2620 * regrename.c (record_out_operands): Terminate earlyclobbered
2621 operands here.
2622
2623 PR target/66785
2624 * regrename.c (record_operand_use): Keep track of failed operands
2625 and stop appending if we see any.
2626 * regrename.h (struct operand_rr_info): Add a failed field and shrink
2627 n_chains to short.
2628
2629 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2630
2631 PR 48568
2632 * doc/extend.texi (Common Function Attributes) [visibility]:
2633 Add cross-references to matching variable and type attributes.
2634 (Common Variable Attributes) [visibility]: Add missing entry.
2635
2636 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2637
2638 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2639 entries that map directly to optabs.
2640
2641 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2642
2643 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2644 entries that map directly to optabs.
2645
2646 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2647
2648 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2649 * internal-fn.c (direct_internal_fn_array): Update accordingly.
2650 * tree-vectorizer.h (vectorizable_function): Delete.
2651 * tree-vect-stmts.c: Include internal-fn.h.
2652 (vectorizable_internal_function): New function.
2653 (vectorizable_function): Inline into...
2654 (vectorizable_call): ...here. Explicitly reject calls that read
2655 from or write to memory. Try using an internal function before
2656 falling back on the old vectorizable_function behavior.
2657
2658 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2659
2660 * target.def (builtin_vectorized_function): Take a combined_fn (in
2661 the form of an unsigned int) rather than a function decl.
2662 (builtin_md_vectorized_function): New.
2663 * targhooks.h (default_builtin_vectorized_function): Replace the
2664 fndecl argument with an unsigned int.
2665 (default_builtin_md_vectorized_function): Declare.
2666 * targhooks.c (default_builtin_vectorized_function): Replace the
2667 fndecl argument with an unsigned int.
2668 (default_builtin_md_vectorized_function): New function.
2669 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
2670 New hook.
2671 * doc/tm.texi: Regenerate.
2672 * tree-vect-stmts.c (vectorizable_function): Update call to
2673 builtin_vectorized_function, also passing internal functions.
2674 Call builtin_md_vectorized_function for target-specific builtins.
2675 * config/aarch64/aarch64-protos.h
2676 (aarch64_builtin_vectorized_function): Replace fndecl argument
2677 with an unsigned int.
2678 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
2679 (aarch64_builtin_vectorized_function): Update after above changes.
2680 Use CASE_CFN_*.
2681 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
2682 fndecl argument with an unsigned int.
2683 * config/arm/arm-builtins.c: Include case-cfn-macros.h
2684 (arm_builtin_vectorized_function): Update after above changes.
2685 Use CASE_CFN_*.
2686 * config/i386/i386.c: Include case-cfn-macros.h
2687 (ix86_veclib_handler): Take a combined_fn rather than a
2688 built_in_function.
2689 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
2690 mathfn_built_in rather than calling builtin_decl_implicit directly.
2691 (ix86_builtin_vectorized_function) Update after above changes.
2692 Use CASE_CFN_*.
2693 * config/rs6000/rs6000.c: Include case-cfn-macros.h
2694 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2695 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
2696 than calling builtin_decl_implicit directly.
2697 (rs6000_builtin_vectorized_function): Update after above changes.
2698 Use CASE_CFN_*. Move BUILT_IN_MD to...
2699 (rs6000_builtin_md_vectorized_function): ...this new function.
2700 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2701
2702 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2703
2704 * tree-vect-patterns.c: Include internal-fn.h.
2705 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2706
2707 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2708
2709 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2710 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2711
2712 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2713
2714 * builtins.c (expand_errno_check, expand_builtin_mathfn)
2715 (expand_builtin_mathfn_2): Delete.
2716 (expand_builtin): Remove handling of functions with
2717 internal function equivalents.
2718 * internal-fn.def (SET_EDOM): New internal function.
2719 * internal-fn.h (set_edom_supported_p): Declare.
2720 * internal-fn.c (expand_SET_EDOM): New function.
2721 (set_edom_supported_p): Likewise.
2722 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2723 Rewrite comment at head of file.
2724 (is_call_dce_candidate): Rename to...
2725 (can_test_argument_range): ...this. Don't check gimple_call_lhs
2726 or gimple_call_builtin_p here.
2727 (edom_only_function): New function.
2728 (shrink_wrap_one_built_in_call_with_conds): New function, split out
2729 from...
2730 (shrink_wrap_one_built_in_call): ...here.
2731 (can_use_internal_fn, use_internal_fn): New functions.
2732 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2733 for calls that have an lhs.
2734 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2735 (pass_call_cdce::execute): Skip blocks that are optimized for size.
2736 Check gimple_call_builtin_p here. Use can_use_internal_fn for
2737 calls with an lhs.
2738 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2739 at -O and above.
2740
2741 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2742
2743 * builtins.h (called_as_built_in): Declare.
2744 * builtins.c (called_as_built_in): Make external.
2745 * internal-fn.h (expand_internal_call): Define a variant that
2746 specifies the internal function explicitly.
2747 * internal-fn.c (expand_load_lanes_optab_fn)
2748 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2749 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2750 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2751 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2752 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2753 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2754 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2755 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2756 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2757 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2758 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2759 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2760 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2761 argument.
2762 (internal_fn_expanders): Update prototype.
2763 (expand_internal_call): Define a variant that specifies the
2764 internal function explicitly. Use it to implement the previous
2765 interface.
2766 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2767 functions as calls to internal functions.
2768
2769 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2770
2771 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2772 (generated_files): Likewise.
2773 (s-cfn-operators, cfn-operators.pd): New rules.
2774 (s-match): Depend on cfn-operators.pd.
2775 * gencfn-macros.c: Expand comment to describe -o behavior.
2776 (print_define_operator_list): New function.
2777 (main): Accept -o. Call print_define_operator_list.
2778 * genmatch.c (main): Add the current directory to the include path.
2779 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
2780 instead.
2781
2782 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2783
2784 * doc/match-and-simplify.texi: Document the "null" identifier.
2785 * genmatch.c (id_base::NULL_ID): New kind.
2786 (null_id): New variable.
2787 (get_operator): Add a parameter that says whether null identifiers
2788 are allowed.
2789 (contains_id): New function.
2790 (lower_for): Skip substitutions that would have a null_id in
2791 either the match or the result.
2792 (parser::parse_for): Allow the null identifier to be used.
2793 (parser::parse_operator_list): Likewise.
2794 (main): Initialize null_id.
2795
2796 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2797
2798 * match.pd: Use HYPOT and COS rather than hypot and cos.
2799 Use CASE_CFN_* macros. Guard log/exp folds with
2800 SCALAR_FLOAT_TYPE_P.
2801 * genmatch.c (internal_fn): New enum.
2802 (fn_id::fn): Change to an unsigned int.
2803 (fn_id::fn_id): Accept internal_fn too.
2804 (add_builtin): Rename to...
2805 (add_function): ...this and turn into a template.
2806 (get_operator): Only try one variation if the original name fails.
2807 Only add _EXPR if the original name was all lower case.
2808 Try converting internal and built-in function names to their
2809 CFN equivalents.
2810 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2811 (dt_simplify::gen_1): Likewise.
2812 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2813 and get_call_combined_fn for generic.
2814 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2815 (decision_tree::gen): Likewise.
2816 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2817 Use add_function rather than add_builtin. Register internal
2818 functions too.
2819 * generic-match-head.c: Include case-cfn-macros.h.
2820 * gimple-fold.c (replace_stmt_with_simplification): Use
2821 gimple_call_combined_fn to test whether we can keep an
2822 existing call.
2823 * gimple-match.h (code_helper): Replace built_in_function
2824 with combined_fn.
2825 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2826 and case-fn-macros.h.
2827 (gimple_resimplify1): Use fold_const_call.
2828 (gimple_resimplify2, gimple_resimplify3): Likewise.
2829 (build_call_internal, build_call): New functions.
2830 (maybe_push_res_to_seq): Use them.
2831 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
2832 rather than a built-in function.
2833 * tree.h (build_call_expr_internal_loc): Declare.
2834 (maybe_build_call_expr_loc): Likewise.
2835 * tree.c (build_call_expr_internal_loc_array): New function.
2836 (maybe_build_call_expr_loc): Likewise.
2837
2838 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2839
2840 * builtins.h (mathfn_built_in): Add a variant that takes
2841 a combined_fn.
2842 * builtins.c: Include case-cfn-macros.h.
2843 (CASE_MATHFN): Use CASE_CFN_*.
2844 (CASE_MATHFN_REENT): Use CFN_ codes.
2845 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2846 argument with a combined_fn.
2847 (mathfn_built_in): Add a variant that takes a combined_fn.
2848 (expand_builtin_int_roundingfn_2): Update callers accordingly.
2849 (fold_builtin_sincos, fold_builtin_classify): Likewise.
2850
2851 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2852
2853 * tree-vect-patterns.c: Include case-cfn-macros.h.
2854 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2855
2856 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2857
2858 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2859 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2860 (pass_cse_sincos::execute): Likewise.
2861
2862 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2863
2864 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2865 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2866 (decrement_power, acceptable_pow_call): Likewise.
2867 (attempt_builtin_copysign): Likewise.
2868
2869 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2870
2871 * tree-vrp.c: Include case-cfn-macros.h.
2872 (extract_range_basic): Switch on combined_fn rather than handling
2873 built-in functions and internal functions separately.
2874
2875 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2876
2877 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2878 than a built_in_function.
2879 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2880 a function decl.
2881 (integer_valued_real_call_p): Likewise.
2882 * fold-const.c: Include case-cfn-macros.h
2883 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2884 (negate_expr_p): Update accordingly.
2885 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2886 a function decl.
2887 (integer_valued_real_call_p): Likewise.
2888 (tree_invalid_nonnegative_warnv_p): Update accordingly.
2889 (integer_valued_real_p): Likewise.
2890 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2891 to tree_call_nonnegative_warnv_p.
2892 (gimple_call_integer_valued_real_p): Likewise
2893 integer_valued_real_call_p.
2894 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2895 (backprop::process_builtin_call_use): Extend to combined_fn.
2896 (strip_sign_op_1): Likewise.
2897 (backprop::process_use): Don't check for built-in calls here.
2898 (backprop::execute): Likewise.
2899 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2900
2901 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2902
2903 * fold-const-call.h (fold_const_call): Replace built_in_function
2904 arguments with combined_fn arguments.
2905 * fold-const-call.c: Include case-cfn-macros.h.
2906 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2907 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2908 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2909 built_in_function arguments with combined_fn arguments.
2910 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2911 (fold_builtin_3): Update calls to fold_const_call.
2912
2913 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2914
2915 * Makefile.in (HASH_TABLE_H): Add GGC_H.
2916 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2917 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2918 (build/gencfn-macros$(build_exeext): New rules.
2919 (genprogerr): Add cfn-macros.
2920 * hash-set.h (hash_set): Use the traits value_type as the key.
2921 * gencfn-macros.c: New file.
2922
2923 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2924
2925 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2926 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2927 * builtins.c (associated_internal_fn): Handle them.
2928
2929 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2930
2931 * builtins.h (associated_internal_fn): Declare.
2932 (replacement_internal_fn): Likewise.
2933 * builtins.c: Include internal-fn.h
2934 (associated_internal_fn, replacement_internal_fn): New functions.
2935 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2936 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2937 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2938 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2939 (LDEXP): New functions.
2940 * internal-fn.c: Include recog.h.
2941 (unary_direct, binary_direct): New macros.
2942 (expand_direct_optab_fn): New function.
2943 (expand_unary_optab_fn): New macro.
2944 (expand_binary_optab_fn): Likewise.
2945 (direct_unary_optab_supported_p): Likewise.
2946 (direct_binary_optab_supported_p): Likewise.
2947
2948 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2949
2950 * coretypes.h (tree_pair): New type.
2951 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
2952 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2953 * internal-fn.h (direct_internal_fn_info): New structure.
2954 (direct_internal_fn_array): Declare.
2955 (direct_internal_fn_p, direct_internal_fn): New functions.
2956 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2957 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2958 (mask_store_direct, store_lanes_direct): New macros.
2959 (direct_internal_fn_array) New array.
2960 (get_multi_vector_move): Return the optab handler without asserting
2961 that it is available.
2962 (expand_LOAD_LANES): Rename to...
2963 (expand_load_lanes_optab_fn): ...this and add an optab argument.
2964 (expand_STORE_LANES): Rename to...
2965 (expand_store_lanes_optab_fn): ...this and add an optab argument.
2966 (expand_MASK_LOAD): Rename to...
2967 (expand_mask_load_optab_fn): ...this and add an optab argument.
2968 (expand_MASK_STORE): Rename to...
2969 (expand_mask_store_optab_fn): ...this and add an optab argument.
2970 (direct_internal_fn_types, direct_optab_supported_p)
2971 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2972 (direct_internal_fn_supported_p): New functions.
2973 (direct_mask_load_optab_supported_p): New macro.
2974 (direct_load_lanes_optab_supported_p): Likewise.
2975 (direct_mask_store_optab_supported_p): Likewise.
2976 (direct_store_lanes_optab_supported_p): Likewise.
2977
2978 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2979
2980 * tree-core.h (internal_fn): Move immediately after the definition
2981 of built_in_function.
2982 (combined_fn): New enum.
2983 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2984 (internal_fn_p, as_internal_fn): New functions.
2985 (get_call_combined_fn, combined_fn_name): Declare.
2986 * tree.c (get_call_combined_fn): New function.
2987 (combined_fn_name): Likewise.
2988 * gimple.h (gimple_call_combined_fn): Declare.
2989 * gimple.c (gimple_call_combined_fn): New function.
2990
2991 2015-11-17 Martin Sebor <msebor@redhat.com>
2992
2993 PR c++/68308
2994 * cp/init.c (build_new_1): Check for expression constness
2995 the right way.
2996
2997 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2998
2999 PR target/53587
3000 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3001 option list.
3002 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
3003 discussion of the Microsoft structure layout details here from
3004 its former home in extend.texi.
3005 * doc/extend.texi (x86 Variable Attributes): Replace detailed
3006 discussion with pointer to its new location. Add cross-reference
3007 to corresponding type attributes.
3008 (x86 Type Attributes): Add cross-references to command-line options
3009 and variable attributes.
3010
3011 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3012
3013 PR middle-end/68134
3014 * targhooks.c (default_get_mask_mode): Filter out
3015 scalar modes returned by mode_for_vector.
3016
3017 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3018
3019 PR target/68143
3020 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3021 offset from dstbase and use it appropriately in
3022 adjust_automodify_address.
3023 (arm_block_set_aligned_vect): Likewise.
3024
3025 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
3026
3027 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3028 (MULTILIB_DIRNAMES): Adjust accordingly.
3029
3030 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
3031
3032 * config/aarch64/aarch64-cores.def (cortex-a35): New.
3033 * config/aarch64/aarch64.c (cortexa35_tunings): New.
3034 * config/aarch64/aarch64-tune.md: Regenerate.
3035 * doc/invoke.texi (-mcpu): Add Cortex-A35
3036
3037 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
3038
3039 PR target/68263
3040 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3041 to 32 for IAMCU.
3042 * config/i386/sse.md (*mov<mode>_internal): Always enable
3043 AVX and SSE unaligned moves for IAMCU.
3044
3045 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3046
3047 * tree-if-conv.c: Include varasm.h
3048 (ref_DR_map): Define.
3049 (baseref_DR_map): Like wise
3050 (struct ifc_dr): Add new tree predicate field.
3051 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3052 (memrefs_read_or_written_unconditionally): Remove.
3053 (write_memrefs_written_at_least_once): Remove.
3054 (ifcvt_memrefs_wont_trap): Use hash maps to query
3055 unconditional read/written information.
3056 (if_convertible_loop_p_1): Initialize hash maps and predicates
3057 before hashing data references and delete hashmaps at the end.
3058
3059 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3060
3061 PR 56036
3062 * doc/invoke.texi (Optimize Options): Move @end table to the right
3063 place.
3064
3065 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3066
3067 PR 65129
3068 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3069 return value.
3070
3071 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3072
3073 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3074 128-bit types, just types that fit in a single vector.
3075 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3076
3077 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3078
3079 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3080 in the user documentation.
3081 (define_peephole2, define_split): Similarly.
3082
3083 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3084
3085 * lto-streamer-out.c (write_global_references): Adjust integer type.
3086 (lto_output_decl_state_refs): Likewise.
3087
3088 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3089
3090 * config/arm/arm-cores.def (cortex-a35): New.
3091 * config/arm/arm.c (arm_cortex_a35_tune): New.
3092 * config/arm/arm-tables.opt: Regenerate.
3093 * config/arm/arm-tune.md: Regenerate.
3094 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3095 * config/arm/t-aprofile: Likewise.
3096 * doc/invoke.texi (-mcpu): Likewise.
3097
3098 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3099
3100 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3101 and qdf24xx and xgene1 to match -march=armv8-a.
3102
3103 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3104
3105 PR rtl-optimization/68330
3106 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3107 of LSHIFTRT by a non-zero constant integer.
3108
3109 2015-11-16 Richard Biener <rguenther@suse.de>
3110
3111 PR tree-optimization/68306
3112 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3113 bogus copying from verify_data_ref_alignment and use continue
3114 instead of return.
3115
3116 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3117 Kaz Kojima <kkojima@gcc.gnu.org>
3118
3119 PR target/68277
3120 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3121 operands[2].
3122 (*addsi3): Add another insn_and_split variant for reload.
3123
3124 2015-11-16 Richard Biener <rguenther@suse.de>
3125
3126 PR middle-end/68117
3127 * cfgexpand.c (pass_expand::execute): Destroy the edge
3128 redirection var map before setting RTL CFG hooks.
3129
3130 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3131
3132 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3133 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3134
3135 (reduc_splus_v4df): Rename to...
3136 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3137
3138 (reduc_splus_v2df): Rename to...
3139 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3140
3141 (reduc_splus_v16sf): Rename to...
3142 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3143
3144 (reduc_splus_v8sf): Rename to...
3145 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3146
3147 (reduc_splus_v4sf): Rename to...
3148 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3149
3150 (reduc_<code>_<mode>, all 3 variants): Rename each to...
3151 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3152
3153 (reduc_umin_v8hf): Rename to...
3154 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3155
3156 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3157
3158 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3159 without additional conditions.
3160 * doc/extend.texi (@item simd): New.
3161
3162 2015-11-16 Tom de Vries <tom@codesourcery.com>
3163
3164 * passes.c (first_pass_instance): Remove variable.
3165 (execute_todo): Remove setting of first_pass_instance.
3166 * tree-pass.h (first_pass_instance): Remove declaration.
3167
3168 2015-11-16 Tom de Vries <tom@codesourcery.com>
3169
3170 * passes.def: Add arg to pass_ccp pass instantiation.
3171 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
3172 instead of first_pass_instance.
3173 (do_ssa_ccp): Add and handle param nonzero_p.
3174 (pass_ccp::pass_ccp): Initialize nonzero_p.
3175 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
3176 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3177 (pass_ccp::nonzero_p): New private member.
3178
3179 2015-11-16 Tom de Vries <tom@codesourcery.com>
3180
3181 * passes.def: Add arg to pass_object_sizes pass instantiation.
3182 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3183 insert_min_max_p.
3184 (pass_object_sizes::set_pass_param): New member function. Set
3185 insert_min_max_p.
3186 (pass_object_sizes::insert_min_max_p): New private member.
3187 (pass_object_sizes::execute): Use insert_min_max_p instead of
3188 first_pass_instance.
3189
3190 2015-11-16 Tom de Vries <tom@codesourcery.com>
3191
3192 * passes.def: Add arg to pass_dominator pass instantiation.
3193 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3194 of comment.
3195 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3196 may_peel_loop_headers_p.
3197 (pass_dominator::set_pass_param): New member function. Set
3198 may_peel_loop_headers_p.
3199 (pass_dominator::may_peel_loop_headers_p): New private member.
3200 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3201 first_pass_instance.
3202
3203 2015-11-16 Tom de Vries <tom@codesourcery.com>
3204
3205 * passes.def: Add arg to pass_reassoc pass instantiation.
3206 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3207 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3208 of first_pass_instance.
3209 (execute_reassoc): Add and handle insert_powi_p parameter.
3210 (pass_reassoc::insert_powi_p): New private member.
3211 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3212 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
3213 (pass_reassoc::execute): Call execute_reassoc with extra arg.
3214
3215 2015-11-16 Tom de Vries <tom@codesourcery.com>
3216
3217 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3218 * gen-pass-instances.awk (handle_line): Same.
3219 * pass_manager.h (class pass_manager): Define and undefine
3220 NEXT_PASS_WITH_ARG.
3221 * passes.c (opt_pass::set_pass_param): New function.
3222 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3223 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3224 * tree-pass.h (gimple_opt::set_pass_param): Declare.
3225 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3226 warn_array_bounds_p parameter.
3227 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3228 (pass_vrp::set_pass_param): New function.
3229 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3230 (pass_vrp::warn_array_bounds_p): New private member.
3231
3232 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3233
3234 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3235 (output_probe_stack_range): Rotate the loop and simplify.
3236
3237 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3238
3239 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3240 (output_probe_stack_range): Rotate the loop and simplify.
3241
3242 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3243
3244 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3245 an lea instruction when possible.
3246 (output_adjust_stack_and_probe): Rotate the loop and simplify.
3247 (ix86_emit_probe_stack_range): Adjust.
3248 (output_probe_stack_range): Rotate the loop and simplify.
3249
3250 2015-11-16 Christian Bruel <christian.bruel@st.com>
3251
3252 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3253 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3254 with appropriate pragma GCC target.
3255
3256 2015-11-16 Christian Bruel <christian.bruel@st.com>
3257
3258 PR target/65837
3259 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3260 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3261
3262 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3263
3264 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3265 (cortexa57_tunings): Use it.
3266
3267 2015-11-16 Christian Bruel <christian.bruel@st.com>
3268
3269 PR target/65837
3270 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3271 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3272 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3273 undefine __ARM_FP.
3274 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3275 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3276 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3277 * doc/extend.texi (-mfpu=): Describe attribute.
3278
3279 2015-11-16 Christian Bruel <christian.bruel@st.com>
3280
3281 PR target/65837
3282 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3283 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3284 arm_init_neon_builtins.
3285 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3286 (arm_init_neon_builtins_internal)
3287 (arm_init_crypto_builtins_internal):
3288 Test and set neon_set_p, neon_crypto_set_p.
3289 (neon_set_p, neon_crypto_set_p): New static booleans.
3290
3291 2015-11-16 Christian Bruel <christian.bruel@st.com>
3292
3293 PR target/65837
3294 * config/arm/arm.c (arm_fpu_desc): Remove.
3295 (all_fpus): Make global.
3296 (arm_option_override): Use FPU TARGET accessors.
3297 (arm_declare_function_name): Likewise.
3298 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3299 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3300 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3301 (TARGET_NEON): Likewise.
3302 (all_fpus): Declare extern.
3303 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3304 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3305
3306 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3307
3308 PR middle-end/68366
3309 * sdbout.c: Include emit-rtl.h and function.h.
3310
3311 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
3312
3313 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3314 Remove support for FreeBSD 5 and earlier.
3315
3316 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3317
3318 * configure: Regenerate.
3319 * configure.ac: Always define ENABLE_OFFLOADING.
3320 * cgraph.c (cgraph_node::create): Adjust.
3321 * gcc.c (process_command): Likewise.
3322 * omp-low.c (create_omp_child_function): Likewise.
3323 (expand_omp_target): Likewise.
3324 * varpool.c (varpool_node::get_create): Likewise.
3325
3326 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3327
3328 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3329 * df-scan.c (df_get_exit_block_use_set): Adjust.
3330 * except.c (expand_eh_return): Likewise.
3331
3332 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3333
3334 * config/i386/i386.h (TARGET_PECOFF): Remove define.
3335 * defaults.h (TARGET_PECOFF): New default definition.
3336 * varasm.c (handle_vtv_comdat_section): Adjust.
3337
3338 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3339
3340 * defaults.h: New definition of SDB_DEBUGGING_INFO.
3341 * doc/tm.texi: Regenerate.
3342 * doc/tm.texi.in: Adjust.
3343 * final.c (rest_of_clean_state): Remove check if
3344 SDB_DEBUGGING_INFO is defined.
3345 * function.c (number_blocks): Likewise.
3346 * output.h: Likewise.
3347 * sdbout.c: Likewise.
3348 * toplev.c (process_options): Likewise.
3349
3350 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3351
3352 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3353 (enum sdb_masks): Likewise.
3354 * sdbout.c (plain_type_1): Likewise.
3355 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3356
3357 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3358
3359 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3360 internal calls - 0 if ordered simd and 1 for ordered threads simd.
3361 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3362 argument is 1, replace it with GOMP_ordered_* call instead of removing
3363 it.
3364
3365 2015-11-13 Rich Felker <dalias@libc.org>
3366
3367 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3368 address loading hack for FDPIC targets.
3369
3370 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
3371 Jeff Law <law@redhat.com>
3372
3373 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3374 * common.opt (-fsplit-paths): New flag controlling path splitting.
3375 * doc/invoke.texi (fsplit-paths): Document.
3376 * opts.c (default_options_table): Add -fsplit-paths to -O2.
3377 * passes.def: Add split_paths pass.
3378 * timevar.def (TV_SPLIT_PATHS): New timevar.
3379 * tracer.c: Include "tracer.h"
3380 (ignore_bb_p): No longer static.
3381 (transform_duplicate): New function, broken out of tail_duplicate.
3382 (tail_duplicate): Use transform_duplicate.
3383 * tracer.h (ignore_bb_p): Declare
3384 (transform_duplicate): Likewise.
3385 * tree-pass.h (make_pass_split_paths): Declare.
3386 * gimple-ssa-split-paths.c: New file.
3387
3388 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3389 Marek Polacek <polacek@redhat.com>
3390 Jason Merrill <jason@redhat.com>
3391
3392 * convert.c (maybe_fold_build1_loc): New.
3393 (maybe_fold_build2_loc): New.
3394 (convert_to_pointer_1): Split out from convert_to_pointer.
3395 (convert_to_pointer_nofold): New.
3396 (convert_to_real_1): Split out from convert_to_real.
3397 (convert_to_real_nofold): New.
3398 (convert_to_integer_1): Split out from convert_to_integer.
3399 (convert_to_integer_nofold): New.
3400 (convert_to_complex_1): Split out from convert_to_complex.
3401 (convert_to_complex_nofold): New.
3402 * convert.h: Declare new functions.
3403 * tree-complex.c (create_one_component_var): Break up line to
3404 avoid sequence point issues.
3405
3406 2015-11-13 Jason Merrill <jason@redhat.com>
3407
3408 * fold-const.c (fold_convert_const): Fold changing cv-quals on
3409 VECTOR_CST.
3410
3411 * hash-map.h (hash_map::empty): New.
3412
3413 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3414
3415 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3416 (oacc_loop_fixed_partitions): Correct return type to bool.
3417 (oacc_loop_auto_partitions): New.
3418 (oacc_loop_partition): Take mask argument, call
3419 oacc_loop_auto_partitions.
3420 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3421
3422 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3423
3424 * config/rs6000/constraints.md (we constraint): New constraint for
3425 64-bit power9 vector support.
3426 (wL constraint): New constraint for the element in a vector that
3427 can be addressed by the MFVSRLD instruction.
3428
3429 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3430 declaration.
3431 (convert_int_to_float128): Likewise.
3432 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3433 hardware support for IEEE 128-bit floating point.
3434 (rs6000_expand_float128_convert): Likewise.
3435 (convert_float128_to_int): Likewise.
3436 (convert_int_to_float128): Likewise.
3437
3438 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3439 ISA 3.0 hardware IEEE 128-bit floating point.
3440 (UNSPEC_IEEE128_MOVE): Likewise.
3441 (UNSPEC_IEEE128_CONVERT): Likewise.
3442 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3443 (Ff): Add support for DImode.
3444 (Fv): Likewise.
3445 (any_fix code iterator): New and updated iterators for IEEE
3446 128-bit floating point hardware support.
3447 (any_float code iterator): Likewise.
3448 (s code attribute): Likewise.
3449 (su code attribute): Likewise.
3450 (az code attribute): Likewise.
3451 (uns code attribute): Likewise.
3452 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3453 floating point hardware support.
3454 (abs<mode>2, FLOAT128 iterator): Likewise.
3455 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3456 floating point hardware.
3457 (sub<mode>3, IEEE128 iterator): Likewise.
3458 (mul<mode>3, IEEE128 iterator): Likewise.
3459 (div<mode>3, IEEE128 iterator): Likewise.
3460 (copysign<mode>3, IEEE128 iterator): Likewise.
3461 (sqrt<mode>2, IEEE128 iterator): Likewise.
3462 (neg<mode>2, IEEE128 iterator): Likewise.
3463 (abs<mode>2, IEEE128 iterator): Likewise.
3464 (nabs<mode>2, IEEE128 iterator): Likewise.
3465 (fma<mode>4_hw, IEEE128 iterator): Likewise.
3466 (fms<mode>4_hw, IEEE128 iterator): Likewise.
3467 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3468 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3469 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3470 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3471 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3472 (fix_fixuns code attribute): Likewise.
3473 (float_floatuns code attribute): Likewise.
3474 (fix<uns>_<mode>si2_hw): Likewise.
3475 (fix<uns>_<mode>di2_hw): Likewise.
3476 (float<uns>_<mode>si2_hw): Likewise.
3477 (float<uns>_<mode>di2_hw): Likewise.
3478 (xscvqp<su>wz_<mode>): Likewise.
3479 (xscvqp<su>dz_<mode>): Likewise.
3480 (xscv<su>dqp_<mode): Likewise.
3481 (ieee128_mfvsrd): Likewise.
3482 (ieee128_mfvsrwz): Likewise.
3483 (ieee128_mtvsrw): Likewise.
3484 (ieee128_mtvsrd): Likewise.
3485 (trunc<mode>df2_odd): Likewise.
3486 (cmp<mode>_h): Likewise.
3487 (128-bit GPR splitters): Don't split a 128-bit move that is a
3488 direct move between GPR and vector registers using ISA 3.0 direct
3489 move instructions.
3490 (maddld4): Add support for the ISA 3.0 integer multiply-add
3491 instruction.
3492
3493 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3494 debugging.
3495 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3496 constraint. Disable the VSX<->GPR direct move helpers if we have
3497 the MFVSRLD and MTVSRDD instructions.
3498 (rs6000_secondary_reload_simple_move): Add support for doing
3499 vector direct moves directly without additional scratch registers
3500 if we have ISA 3.0 instructions.
3501 (rs6000_secondary_reload_direct_move): Update comments.
3502 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3503 instructions.
3504
3505 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3506 direct move instructions.
3507 (vsx_movti_64bit): Likewise.
3508 (vsx_extract_<mode>): Likewise.
3509
3510 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3511 macros for ISA 3.0 direct move instructions.
3512 (TARGET_DIRECT_MOVE_128): Likewise.
3513 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3514 instruction.
3515
3516 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3517 constraints. Update wa documentation to say not to use %x<n> on
3518 instructions that only take Altivec registers.
3519
3520 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3521
3522 * Makefile.in (OBJS): Add gcc-rich-location.o.
3523 * diagnostic.c (diagnostic_append_note): Pass line_table to
3524 rich_location ctor.
3525 (emit_diagnostic): Likewise.
3526 (inform): Likewise.
3527 (inform_n): Likewise.
3528 (warning): Likewise.
3529 (warning_at): Likewise.
3530 (warning_n): Likewise.
3531 (pedwarn): Likewise.
3532 (permerror): Likewise.
3533 (error): Likewise.
3534 (error_n): Likewise.
3535 (error_at): Likewise.
3536 (sorry): Likewise.
3537 (fatal_error): Likewise.
3538 (internal_error): Likewise.
3539 (internal_error_no_backtrace): Likewise.
3540 (source_range::debug): Likewise.
3541 * gcc-rich-location.c: New file.
3542 * gcc-rich-location.h: New file.
3543 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3544 (warning_at): Likewise.
3545 * gimple.h (gimple_set_block): Use set_block function.
3546 * input.c (dump_line_table_statistics): Dump stats on how many
3547 ranges were optimized vs how many needed ad-hoc table.
3548 (write_digit_row): Add "map" param; use its range_bits
3549 to calculate the per-character offset.
3550 (dump_location_info): Print the range and column bits for each
3551 ordinary map. Use the range bits to calculate the per-character
3552 offset. Pass the map as a new param to the various calls to
3553 write_digit_row. Eliminate uses of
3554 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3555 * print-tree.c (print_node): Print any source range information.
3556 * rtl-error.c (diagnostic_for_asm): Likewise.
3557 * toplev.c (general_init): Initialize line_table's
3558 default_range_bits.
3559 * tree-cfg.c (move_block_to_fn): Likewise.
3560 (move_block_to_fn): Likewise.
3561 * tree-inline.c (copy_phis_for_bb): Likewise.
3562 * tree.c (tree_set_block): Likewise.
3563 (get_pure_location): New function.
3564 (set_source_range): New functions.
3565 (set_block): New function.
3566 (set_source_range): New functions.
3567 * tree.h (CAN_HAVE_RANGE_P): New.
3568 (EXPR_LOCATION_RANGE): New.
3569 (EXPR_HAS_RANGE): New.
3570 (get_expr_source_range): New inline function.
3571 (DECL_LOCATION_RANGE): New.
3572 (set_source_range): New decls.
3573 (get_decl_source_range): New inline function.
3574
3575 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
3576
3577 PR tree-optimization/67682
3578 * tree-vect-slp.c (vect_split_slp_store_group): New.
3579 (vect_analyze_slp_instance): During basic block SLP, recurse on
3580 subgroups if vect_build_slp_tree fails after 1st vector.
3581
3582 2015-11-13 Christian Bruel <christian.bruel@st.com>
3583
3584 PR target/65837
3585 * config/arm/arm.c (arm_option_override): Move NEON check...
3586 (arm_option_check_internal): here
3587 (arm_file_start): Move .fpu print...
3588 (arm_declare_function_name): here
3589 (arm_option_print): Dump current fpu name.
3590 * config/arm/arm.opt (arm_fpu_index): Mark Save.
3591
3592 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
3593 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3594
3595 * combine.c (subst): Don't substitute or simplify when
3596 handling register-wise widening multiply.
3597 (force_to_mode): Likewise.
3598
3599 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
3600
3601 PR tree-optimization/68264
3602 * tree-call-cdce.c (gen_one_condition): Update commentary.
3603 (gen_conditions_for_pow_int_base): Invert the sense of the tests
3604 passed to gen_one_condition.
3605 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
3606 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3607 using EDGE_FALSE_VALUE for edges to the call block and
3608 EDGE_TRUE_VALUE for the others.
3609
3610 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3611
3612 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3613 complex types.
3614
3615 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3616
3617 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3618
3619 2015-11-13 Tom de Vries <tom@codesourcery.com>
3620
3621 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3622 len_of_prefix.
3623
3624 2015-11-13 Tom de Vries <tom@codesourcery.com>
3625
3626 * gen-pass-instances.awk (handle_line): Add args_str variable.
3627
3628 2015-11-13 Martin Liska <mliska@suse.cz>
3629
3630 * graphite-poly.c (free_scop): Release scop->drs vector.
3631 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3632 Release dom vector.
3633 (try_generate_gimple_bb): Use vNULL as a default initialization
3634 for vectors.
3635
3636 2015-11-13 Martin Liska <mliska@suse.cz>
3637
3638 PR ipa/68311
3639 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3640 Replace array initialization (using a variable post-increment)
3641 that possible triggers multiple unsequenced modifications
3642 with a pair of pushes to a vector.
3643
3644 2015-11-13 Richard Biener <rguenther@suse.de>
3645
3646 PR tree-optimization/68306
3647 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3648 loop related checks ...
3649 (vect_verify_datarefs_alignment): ... here.
3650 (vect_slp_analyze_and_verify_node_alignment): Compute and
3651 verify alignment of the single DR that it matters.
3652 * tree-vect-stmts.c (vectorizable_store): Add an assert.
3653 (vectorizable_load): Add a comment.
3654 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
3655 for determining load cost.
3656
3657 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3658
3659 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
3660 mix of boolean and integer vectors in a single statement.
3661 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
3662 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
3663 determine constant type.
3664 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
3665 for loop invariants.
3666
3667 2015-11-13 Alan Hayward <alan.hayward@arm.com>
3668
3669 PR tree-optimization/66558
3670 * tree-vect-loop.c (is_integer_induction):Add.
3671 (vectorizable_reduction): Add integer induction checks.
3672
3673 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
3674
3675 Revert [ARM] Remove neon-testgen.ml and generated tests.
3676
3677 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3678
3679 [ARM] Remove neon-testgen.ml and generated tests.
3680
3681 * config/arm/neon-testgen.ml: Remove.
3682
3683 2015-11-13 Richard Biener <rguenther@suse.de>
3684
3685 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
3686 Signal fatal failure if early checks fail.
3687 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
3688 do not bother testing further vector sizes.
3689
3690 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
3691
3692 * config/i386/predicates.md (misaligned_operand): Return true if
3693 operand is aligned to less than its natural alignmnet.
3694
3695 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3696
3697 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3698 (vec_cmpu@var{m}@var{n}): New item.
3699 (vcond@var{m}@var{n}): Specify comparison is signed.
3700 (vcondu@var{m}@var{n}): New item.
3701 (vcond_mask_@var{m}@var{n}): New item.
3702 (maskload@var{m}@var{n}): New item.
3703 (maskstore@var{m}@var{n}): New item.
3704
3705 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3706
3707 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3708 types of stored value and storage are compatible.
3709
3710 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
3711
3712 * gcc.c (POST_LINK_SPEC): Define if not already defined.
3713 (LINK_COMMAND_SPEC): Use post_link.
3714 (post_link_spec): New, initialize to POST_LINK_SPEC.
3715 (post_link): Initialize new static spec.
3716 * doc/tm.texi.in (POST_LINK_SPEC): Document.
3717 * doc/tm.texi: Regenerated.
3718
3719 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3720
3721 PR driver/67613
3722 * Makefile.in (GCC_OBJS): Add spellcheck.o.
3723 (OBJS): Add spellcheck-tree.o.
3724 * gcc.c: Include "spellcheck.h".
3725 (suggest_option): New function.
3726 (driver::handle_unrecognized_options): Call suggest_option to
3727 provide a hint about misspelled options.
3728 * spellcheck.c: Update file comment.
3729 (levenshtein_distance): Convert 4-param implementation from static
3730 to extern scope. Remove note about unit tests from leading
3731 comment for const char * implementation. Move tree
3732 implementation to...
3733 * spellcheck-tree.c: New file.
3734 * spellcheck.h (levenshtein_distance): Add 4-param decl.
3735
3736 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3737
3738 * Makefile.in (OBJS): Add spellcheck.o.
3739 * spellcheck.c: New file.
3740 * spellcheck.h: New file.
3741
3742 2015-11-13 James Bowman <james.bowman@ftdichip.com>
3743
3744 * config/ft32/ft32.md (*sne): New insn pattern.
3745
3746 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
3747
3748 * cprop.c (is_too_expensive): Remove.
3749 (gcse.h): Include.
3750 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3751 is_too_expensive.
3752 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3753 * gcse.c (is_too_expensive): Rename to ...
3754 (gcse_or_cprop_is_too_expensive): ... this.
3755 Expand warning to add required size of max-gcse-memory.
3756 (one_pre_gcse_pass): Use it.
3757 (one_code_hoisting_pass): Use it.
3758 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3759
3760 2015-11-12 James Norris <jnorris@codesourcery.com>
3761 Joseph Myers <joseph@codesourcery.com>
3762
3763 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3764 GF_OMP_TARGET_KIND_OACC_DECLARE.
3765 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3766 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3767 * gimplify.c (oacc_declare_returns): New.
3768 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3769 (device_resident_p): New function.
3770 (oacc_default_clause): Handle device_resident clause.
3771 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3772 (gimplify_expr): Handle OACC_DECLARE.
3773 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3774 * omp-low.c (expand_omp_target): Handle
3775 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3776 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3777 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3778 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3779 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3780 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3781 GOMP_MAP_DEVICE_RESIDENT.
3782
3783 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3784
3785 [ARM] Remove neon-testgen.ml and generated tests.
3786
3787 * config/arm/neon-testgen.ml: Remove.
3788
3789 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
3790
3791 * config/aarch64/aarch64-cores.def (qdf24xx): New.
3792 * config/aarch64/aarch64-tune.md: Regenerated.
3793 * config/arm/arm-cores.def (qdf24xx): New.
3794 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3795 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3796 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3797 (ARM Options/-mtune): Likewise.
3798
3799 2015-11-12 Martin Liska <mliska@suse.cz>
3800
3801 * config/i386/i386.c (ix86_valid_target_attribute_p):
3802 Finalize options at the of the function.
3803 * gcc.c (driver_get_configure_time_options): Call newly
3804 introduced init_opts_obstack.
3805 * lto-wrapper.c (main): Likewise.
3806 * opts.c (init_opts_obstack): New function.
3807 (init_options_struct): Call newly introduced init_opts_obstack.
3808 * opts.h (init_options_struct): Declare.
3809
3810 2015-11-12 Martin Liska <mliska@suse.cz>
3811
3812 PR ipa/68035
3813 * ipa-icf.c (void sem_item::set_hash): New function.
3814 (sem_function::get_hash): Use renamed m_hash member variable.
3815 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3816 (sem_item::update_hash_by_local_refs): Likewise.
3817 (sem_variable::get_hash): Use renamed m_hash member variable.
3818 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3819 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3820 (sem_item_optimizer::build_graph): As the hash value of an item
3821 is lazy initialized, force the calculation.
3822 * ipa-icf.h (set_hash): Declare new function and rename hash member
3823 variable to m_hash.
3824
3825 2015-11-12 Richard Biener <rguenther@suse.de>
3826
3827 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3828 Rename to vect_slp_analyze_instance_dependence.
3829 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3830 Remove WAR special-case.
3831 (vect_slp_analyze_node_dependences): Instead add more specific
3832 code here, not relying on other instances being vectorized.
3833 (vect_slp_analyze_instance_dependence): Adjust accordingly.
3834 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3835 vertical space in dump files.
3836 (vect_print_slp_tree): Likewise.
3837 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3838 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3839 not vectorized stmts until after dependence analysis removed
3840 instances. Merge alignment and dependence checks.
3841 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3842 flag on all stmts.
3843
3844 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
3845
3846 * config/aarch64/aarch64-protos.h (tune_params): Add new members
3847 "max_case_values" and "cache_line_size".
3848 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3849 function.
3850 (aarch64_override_options_internal): Tune heuristics based on new
3851 members in "tune_params".
3852 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3853
3854 2015-11-12 Richard Biener <rguenther@suse.de>
3855
3856 PR tree-optimization/68306
3857 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3858 relevant and vectorizable checks here.
3859 (vect_verify_datarefs_alignment): Add relevant check here.
3860
3861 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
3862
3863 * gimplify.c (oacc_default_clause): New.
3864 (omp_notice_variable): Call it.
3865
3866 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3867
3868 PR tree-optimization/68305
3869 * tree-vect-slp.c (vect_get_constant_vectors): Support
3870 COND_EXPR with SSA_NAME as a condition.
3871
3872 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3873
3874 * config/visium/visium-protos.h (notice_update_cc): Delete.
3875 (print_operand): Likewise.
3876 (print_operand_address): Likewise.
3877
3878 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3879
3880 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3881 FUNCTION_VALUE_REGNO_P): Remove.
3882 * config/alpha/alpha-protos.h (function_value): Remove.
3883 * config/alpha/alpha.c (function_value): Rename to...
3884 (alpha_function_value_1): ... this. Make static.
3885 (alpha_function_value, alpha_libcall_value,
3886 alpha_function_value_regno_p): New functions.
3887 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3888 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3889
3890 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3891
3892 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3893 * config/alpha/alpha.c (alpha_memory_latency): Make static.
3894 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3895 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3896
3897 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3898
3899 PR target/67265
3900 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3901 assertion on the CFA register.
3902
3903 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3904
3905 * expr.c (do_store_flag): Expand vector comparison as
3906 VEC_COND_EXPR if vector comparison is not supported by target.
3907
3908 2015-11-12 Renlin Li <renlin.li@arm.com>
3909
3910 * config/arm/arm.md (addsi3_compare_op2): Make the order of
3911 assembly pattern consistent with constraint order.
3912
3913 2015-11-12 Tom de Vries <tom@codesourcery.com>
3914
3915 * gen-pass-instances.awk (handle_line): Simplify match regexp.
3916
3917 2015-11-12 Tom de Vries <tom@codesourcery.com>
3918
3919 * gen-pass-instances.awk (handle_line): Simplify init of
3920 postfix_starts_at.
3921
3922 2015-11-12 Tom de Vries <tom@codesourcery.com>
3923
3924 * gen-pass-instances.awk (handle_line): Rename var where to
3925 call_starts_at.
3926
3927 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
3928
3929 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3930 do not expand to rtl.
3931
3932 2015-11-12 Richard Biener <rguenther@suse.de>
3933
3934 PR tree-optimization/58497
3935 * tree-vect-generic.c: Include gimplify.h.
3936 (tree_vec_extract): Lookup constant/constructor DEFs.
3937 (do_cond): Unshare cond.
3938
3939 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3940
3941 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3942 combined insn if the alignment of vector mode memory operand
3943 is less than ssememalign.
3944
3945 2015-11-12 Tom de Vries <tom@codesourcery.com>
3946
3947 * gen-pass-instances.awk (handle_line): Print parentheses and
3948 pass_name explicitly.
3949
3950 2015-11-12 Tom de Vries <tom@codesourcery.com>
3951
3952 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3953 and postfix vars.
3954
3955 2015-11-12 Tom de Vries <tom@codesourcery.com>
3956
3957 * gen-pass-instances.awk (handle_line): Add comments.
3958
3959 2015-11-12 Tom de Vries <tom@codesourcery.com>
3960
3961 * gen-pass-instances.awk (handle_line): Rename len_of_end to
3962 len_of_close.
3963
3964 2015-11-12 Tom de Vries <tom@codesourcery.com>
3965
3966 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3967
3968 2015-11-12 Tom de Vries <tom@codesourcery.com>
3969
3970 * gen-pass-instances.awk (handle_line): Restructure using early-out.
3971
3972 2015-11-12 Tom de Vries <tom@codesourcery.com>
3973
3974 * gen-pass-instances.awk (handle_line): Unify semicolon use.
3975
3976 2015-11-12 Tom de Vries <tom@codesourcery.com>
3977
3978 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3979
3980 2015-11-12 Tom de Vries <tom@codesourcery.com>
3981
3982 * gen-pass-instances.awk: Add emacs indent setting.
3983
3984 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3985
3986 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3987 to match.pd.
3988 Move Convert A/(B/C) to (A/B)*C to match.pd.
3989 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3990 Move Optimize (X & (-A)) / A where A is a power of 2, to
3991 X >> log2(A) to match.pd.
3992
3993 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3994 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3995 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3996 New simplifier.
3997 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3998
3999 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
4000
4001 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4002 variable.
4003 (neon_vst2_lane<mode>): Likewise.
4004 (neon_vld3_lane<mode>): Likewise.
4005 (neon_vst3_lane<mode>): Likewise.
4006 (neon_vld4_lane<mode>): Likewise.
4007 (neon_vst4_lane<mode>): Likewise.
4008
4009 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
4010 Sebastian Pop <s.pop@samsung.com>
4011
4012 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4013 New member codegen_error
4014 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4015 early return.
4016 (translate_isl_ast_node_user): Early return in case of error.
4017 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4018 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4019 (add_parameters_to_ivs_params): Remove macro.
4020 (graphite_regenerate_ast_isl): Add if_region pointer to region.
4021 * graphite-poly.c (new_poly_dr): Remove macro.
4022 (print_pdr): Same.
4023 (new_gimple_poly_bb): Same.
4024 (free_gimple_poly_bb): Same.
4025 (print_scop_params): Same.
4026 * graphite-poly.h (struct poly_dr): Same.
4027 (struct poly_bb): Add new_bb.
4028 (gbb_from_bb): Remove dead code.
4029 (pbb_from_bb): Same.
4030 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4031 (parameter_index_in_region): Same.
4032 (find_scop_parameters): Same.
4033 (build_cross_bb_scalars_def): New.
4034 (build_cross_bb_scalars_use): New.
4035 (graphite_find_cross_bb_scalar_vars): New
4036 (try_generate_gimple_bb): Reads and Writes.
4037 (build_alias_set): Move.
4038 (gather_bbs::before_dom_children): Gather bbs visited.
4039 (build_scops): call build_alias_set.
4040 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4041 (remove_simple_copy_phi): Delete.
4042 (remove_invariant_phi): Delete.
4043 (simple_copy_phi_p): Delete.
4044 (reduction_phi_p): Delete.
4045 (isl_id_for_dr): Remove unused param.
4046 (parameter_index_in_region_1): Remove macro usage.
4047 (set_scop_parameter_dim): Same.
4048 (add_param_constraints): Same.
4049 (add_conditions_to_constraints): Same
4050 (build_scop_iteration_domain): Same.
4051 (pdr_add_alias_set): Comment.
4052 (add_scalar_version_numbers): New.
4053 (build_poly_dr): ISL id.
4054 (build_scop_drs): Move.
4055 (build_poly_sr_1): Same.
4056 (insert_stmts): Remove.
4057 (build_poly_sr): New.
4058 (new_pbb_from_pbb): Delete.
4059 (insert_out_of_ssa_copy_on_edge): Delete.
4060 (create_zero_dim_array): Delete.
4061 (scalar_close_phi_node_p): Delete.
4062 (propagate_expr_outside_region): Delete.
4063 (rewrite_close_phi_out_of_ssa): Delete.
4064 (rewrite_phi_out_of_ssa): Delete.
4065 (rewrite_degenerate_phi): Delete.
4066 (rewrite_reductions_out_of_ssa): Delete.
4067 (rewrite_cross_bb_scalar_dependence): Delete.
4068 (handle_scalar_deps_crossing_scop_limits):
4069 (rewrite_cross_bb_scalar_deps): Delete.
4070 (build_poly_scop): Remove calls to out-of-ssa functions.
4071 * graphite.c (graphite_transform_loops): Early return in case of
4072 codegen error.
4073 * sese.c (debug_rename_map_1): Delete.
4074 (debug_rename_map): Delete.
4075 (sese_record_loop): Remove macro.
4076 (build_sese_loop_nests): Same.
4077 (new_sese_info): Same.
4078 (free_sese_info): Same.
4079 (sese_insert_phis_for_liveouts):
4080 (is_loop_closed_ssa_use): New.
4081 (number_of_phi_nodes): New.
4082 (bb_contains_loop_close_phi_nodes): New.
4083 (bb_contains_loop_phi_nodes): New.
4084 (phi_uses_name): New.
4085 (is_valid_rename):
4086 (get_rename): Add old_bb and loop_phi for more precise matching of
4087 exprs.
4088 (set_rename): Pass region.
4089 (later_of_the_two): New.
4090 (gsi_insert_earliest): New.
4091 (collect_all_ssa_names): New.
4092 (substitute_ssa_name): New.
4093 (rename_all_uses): New.
4094 (get_rename_from_scev): New.
4095 (rename_uses): Pass old_bb for more precise matching of exprs.
4096 (get_def_bb_for_const): New.
4097 (get_new_name): New.
4098 (get_loc): New.
4099 (get_edges): New.
4100 (copy_loop_phi_args): New.
4101 (copy_loop_phi_nodes): New.
4102 (get_loop_init_value): New.
4103 (find_init_value): New.
4104 (find_init_value_close_phi): New.
4105 (copy_loop_close_phi_args): New.
4106 (copy_loop_close_phi_nodes): New.
4107 (add_phi_arg_for_new_expr): New.
4108 (copy_cond_phi_args): New.
4109 (copy_cond_phi_nodes): New.
4110 (copy_phi_nodes): New.
4111 (should_copy_to_new_region): New.
4112 (set_rename_for_each_def): New.
4113 (graphite_copy_stmts_from_block): Early return in case of error.
4114 (copy_bb_and_scalar_dependences): Same.
4115 * sese.h (vec_find): New.
4116 (SESE_PARAMS): Delete.
4117 (SESE_LOOPS): Delete.
4118 (SESE_LOOP_NEST): Delete.
4119 (sese_contains_loop): Remove macro usage.
4120 (sese_nb_params): Same.
4121 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4122
4123 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4124
4125 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4126 isl_union_map_add_map on every pbb->schedule.
4127
4128 2015-11-11 Tom de Vries <tom@codesourcery.com>
4129
4130 * tree-parloops.c (create_parallel_loop): Return void.
4131
4132 2015-11-11 Tom de Vries <tom@codesourcery.com>
4133
4134 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4135 block only when needed.
4136
4137 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4138
4139 * config/alpha/alpha-protos.h (print_operand): Remove.
4140 (print_operand_address): Remove.
4141 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4142 (PRINT_OPERAND_ADDRESS): Remove.
4143 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4144 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4145 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4146 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4147 (print_operand_address): Rename to...
4148 (alpha_print_operand_address): ...this and make static.
4149 (print_operand): Rename to...
4150 (alpha_print_operand): ...this and make static.
4151 (alpha_print_operand_punct_valid_p): New static function.
4152
4153 2015-11-11 Richard Biener <rguenther@suse.de>
4154
4155 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4156 Declare.
4157 (vect_analyze_data_refs_alignment): Make loop vect specific.
4158 (vect_verify_datarefs_alignment): Likewise.
4159 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4160 Add missing continue.
4161 (vect_compute_data_ref_alignment): Export.
4162 (vect_compute_data_refs_alignment): Merge into...
4163 (vect_analyze_data_refs_alignment): ... this.
4164 (verify_data_ref_alignment): Split out from ...
4165 (vect_verify_datarefs_alignment): ... here.
4166 (vect_slp_analyze_and_verify_node_alignment): New function.
4167 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4168 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4169 misplaced checks on alignment.
4170 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
4171 alignment analysis after SLP discovery and do it per instance.
4172 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4173 bother to re-try using different vector sizes.
4174
4175 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
4176 Cesar Philippidis <cesar@codesourcery.com>
4177
4178 * gimplify.c (enum omp_region_type): Add ORT_ACC,
4179 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
4180 (gimple_add_tmp_var): Add ORT_ACC checks.
4181 (gimplify_var_or_parm_decl): Likewise.
4182 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4183 (omp_add_variable): Look in outer contexts for openacc and allow
4184 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4185 (omp_notice_variable, omp_is_private, omp_check_private): Add
4186 ORT_ACC checks.
4187 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4188 Permit private openacc reductions.
4189 (gimplify_oacc_cache): Specify ORT_ACC.
4190 (gimplify_omp_workshare): Adjust OpenACC region types.
4191 (gimplify_omp_target_update): Likewise.
4192 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4193 (lower-rec_input_clauses): Don't handle openacc firstprivate
4194 references here.
4195 (lower_omp_target): Emit initializers for openacc firstprivate vars.
4196
4197 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
4198
4199 PR target/67265
4200 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4201 frame pointer for stack checking if non-call exceptions aren't used.
4202 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4203
4204 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
4205
4206 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4207 [LA]SHIFTRT.
4208
4209 2015-11-11 Martin Liska <mliska@suse.cz>
4210 Richard Biener <rguenther@suse.de>
4211
4212 PR rtl-optimization/68287
4213 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4214 number of elements.
4215
4216 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
4217
4218 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4219 (mips_break_sequence): New function.
4220 (mips_reorg_process_insns): Use them. Use compact branches in selected
4221 situations.
4222
4223 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
4224
4225 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4226
4227 2015-11-11 Jiong Wang <jiong.wang@arm.com>
4228 Jim Wilson <wilson@gcc.gnu.org>
4229
4230 PR target/67305
4231 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4232 be true and eliminable registers mentioned.
4233
4234 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
4235
4236 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4237 options.
4238 * config/arc/arc-opts.h: Add ARCv2 CPUs.
4239 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4240 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4241 situation, and store instructions with large offsets.
4242 (arc_secondary_reload_conv): New function.
4243 (arc_init): Add ARCv2 options.
4244 (arc_conditional_register_usage): Select the proper register usage
4245 for ARCv2 processors.
4246 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4247 architecture.
4248 (arc_compute_function_type): Likewise.
4249 (arc_print_operand): Handle new ARCv2 punctuation characters.
4250 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4251 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4252 function.
4253 (arc_reorg, arc_hazard): Use it.
4254 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4255 (ASM_SPEC): Add ARCv2 options.
4256 (TARGET_NORM): ARC HS has norm instructions by default.
4257 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4258 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4259 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4260 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4261 Likewise.
4262 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4263 (TARGET_LP_WR_INTERLOCK): Likewise.
4264 * config/arc/arc.md
4265 (commutative_binary_mult_comparison_result_used, movsicc_insn)
4266 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4267 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4268 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4269 Use it for ARCv2.
4270 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4271 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4272 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4273 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4274 (extzvsi): New pattern.
4275 * config/arc/arc.opt: New ARCv2 options.
4276 * config/arc/arcEM.md: New file.
4277 * config/arc/arcHS.md: Likewise.
4278 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4279 values.
4280 (Cm2): A signed 9-bit integer constant constraint.
4281 (C62): An unsigned 6-bit integer constant constraint.
4282 (C16): A signed 16-bit integer constant constraint.
4283 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4284 (short_const_int_operand): New predicate.
4285 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4286 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4287 -mcode-density and -mdiv-rem.
4288
4289 2015-11-11 Julia Koval <julia.koval@intel.com>
4290
4291 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4292
4293 2015-11-11 Julia Koval <julia.koval@intel.com>
4294
4295 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4296
4297 2015-11-11 Martin Liska <mliska@suse.cz>
4298
4299 * gimple-ssa-strength-reduction.c (create_phi_basis):
4300 Use auto_vec.
4301 * passes.c (release_dump_file_name): New function.
4302 (pass_init_dump_file): Used from this function.
4303 (pass_fini_dump_file): Likewise.
4304 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4305 * var-tracking.c (vt_initialize): Use pool_allocator.
4306
4307 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
4308 Jiong Wang <jiong.wang@arm.com>
4309
4310 PR tree-optimization/68234
4311 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4312 node which estimiated to be VR_VARYING initially.
4313
4314 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
4315
4316 * regname.c (scan_rtx_reg): Check the matching number of consecutive
4317 registers when tying chains.
4318 (build_def_use): Move terminated_this_insn earlier in the function.
4319
4320 2015-11-10 Mike Frysinger <vapier@gentoo.org>
4321
4322 * configure.ac: Use = with test and not ==.
4323 * configure: Regenerated.
4324
4325 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
4326
4327 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4328 machine asserts. Update defines for 64 bit.
4329
4330 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4331
4332 PR target/63870
4333 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4334 lane number.
4335 (neon_vst1_lane<mode>): Likewise.
4336 (neon_vld2_lane<mode>): Likewise.
4337 (neon_vst2_lane<mode>): Likewise.
4338 (neon_vld3_lane<mode>): Likewise.
4339 (neon_vst3_lane<mode>): Likewise.
4340 (neon_vld4_lane<mode>): Likewise.
4341 (neon_vst4_lane<mode>): Likewise.
4342
4343 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4344
4345 PR target/63870
4346 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4347 qualifier_struct_load_store_lane_index.
4348 (arm_storestruct_lane_qualifiers) Likewise.
4349 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4350 big-endian.
4351 (neon_vst1_lane<mode>) Likewise.
4352 (neon_vld2_lane<mode>) Likewise.
4353 (neon_vst2_lane<mode>) Likewise.
4354 (neon_vld3_lane<mode>) Likewise.
4355 (neon_vst3_lane<mode>) Likewise.
4356 (neon_vld4_lane<mode>) Likewise.
4357 (neon_vst4_lane<mode>) Likewise.
4358
4359 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4360
4361 PR target/63870
4362 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4363 qualifier_struct_load_store_lane_index.
4364 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4365 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4366 argument qualifiers.
4367 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4368 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4369
4370 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
4371
4372 * config/nvptx/nvptx.opt (moptimize): New flag.
4373 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4374 default.
4375 (nvptx_optimize_inner): New.
4376 (nvptx_process_pars): Call it when optimizing.
4377 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4378
4379 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4380
4381 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4382 Remove redundant code.
4383
4384 2015-11-10 Jeff Law <law@redhat.com>
4385
4386 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4387 call to output_address.
4388 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4389 Add unnamed machine_mode argument.
4390
4391 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4392
4393 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4394 default to 64-bit.
4395
4396 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4397
4398 * config/i386/i386.md (*movabs<mode>_1): Add explicit
4399 size directives for -masm=intel.
4400 (*movabs<mode>_2): Ditto.
4401
4402 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4403
4404 * config/i386/i386.c (ix86_print_operand): Remove dead code that
4405 tried to avoid (%rip) for call operands.
4406
4407 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4408
4409 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4410 argument. Do not use RIP relative addressing when no_rip is set.
4411 (ix86_print_operand): Update call to ix86_print_operand_address_as.
4412 (ix86_print_operand_address): Ditto.
4413 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4414 absolute movabs operand 0. Add square braces for -masm=intel.
4415 (*movabs<mode>_2): Ditto for operand 1.
4416
4417 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4418
4419 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4420 combine_vcvtf2i pattern.
4421
4422 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4423
4424 * config/arm/arm.c (neon_valid_immediate): Remove integer
4425 CONST_DOUBLE handling. It should never occur.
4426
4427 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
4428
4429 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4430 (ATOMIC_LDOP): Likewise.
4431 (atomic_ldop): Likewise.
4432 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4433 (ATOMIC_LDOP): Likewise.
4434 (atomic_ldop): Likewise.
4435
4436 2015-11-10 Martin Liska <mliska@suse.cz>
4437
4438 * alloc-pool.h (allocate_raw): New function.
4439 (operator new (size_t, object_allocator<T> &a)): Use the
4440 function instead of object_allocator::allocate).
4441
4442 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4443
4444 * config/i386/sse.md (HALFMASKMODE): New attribute.
4445 (DOUBLEMASKMODE): New attribute.
4446 (vec_pack_trunc_qi): New.
4447 (vec_pack_trunc_<mode>): New.
4448 (vec_unpacks_lo_hi): New.
4449 (vec_unpacks_lo_si): New.
4450 (vec_unpacks_lo_di): New.
4451 (vec_unpacks_hi_hi): New.
4452 (vec_unpacks_hi_<mode>): New.
4453
4454 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4455
4456 * optabs.c (expand_binop_directly): Allow scalar mode for
4457 vec_pack_trunc_optab.
4458 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4459 boolean vector producers from pattern sequence when computing VF.
4460 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4461 vect_recog_mask_conversion_pattern.
4462 (search_type_for_mask): Choose the smallest
4463 type if different size types are mixed.
4464 (build_mask_conversion): New.
4465 (vect_recog_mask_conversion_pattern): New.
4466 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4467 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4468 load with pattern.
4469 (vectorizable_conversion): Support boolean vectors.
4470 (free_stmt_vec_info): Allow patterns for statements with no lhs.
4471 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4472
4473 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4474
4475 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4476 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4477 Cast mask to FP mode if required.
4478 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4479 (vcond_mask_<mode><avx512fmaskmodelower>): New.
4480 (vcond_mask_<mode><sseintvecmodelower>): New.
4481 (vcond_mask_<mode><sseintvecmodelower>): New.
4482 (vcond_mask_v2div2di): New.
4483 (vcond_mask_<mode><sseintvecmodelower>): New.
4484 (vcond_mask_<mode><sseintvecmodelower>): New.
4485
4486 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4487
4488 * optabs-query.h (get_vcond_mask_icode): New.
4489 * optabs-tree.c (expand_vec_cond_expr_p): Use
4490 get_vcond_mask_icode for VEC_COND_EXPR with mask.
4491 * optabs.c (expand_vec_cond_mask_expr): New.
4492 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4493 * optabs.def (vcond_mask_optab): New.
4494 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4495 generate redundant comparison for COND_EXPR.
4496 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4497 as a condition.
4498 (vectorizable_condition): Likewise.
4499 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4500 cond_exp with no embedded comparison.
4501 (vect_build_slp_tree_1): Likewise.
4502
4503 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4504
4505 * config/i386/sse.md (maskload<mode>): Rename to ...
4506 (maskload<mode><sseintvecmodelower>): ... this.
4507 (maskstore<mode>): Rename to ...
4508 (maskstore<mode><sseintvecmodelower>): ... this.
4509 (maskload<mode><avx512fmaskmodelower>): New.
4510 (maskstore<mode><avx512fmaskmodelower>): New.
4511
4512 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4513
4514 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4515 (expand_MASK_STORE): Adjust to maskstore optab changes.
4516 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4517 Adjust to maskload, maskstore optab changes.
4518 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4519 * optabs.def (maskload_optab): Transform into convert optab.
4520 (maskstore_optab): Likewise.
4521 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4522 can_vec_mask_load_store_p signature change.
4523 (predicate_mem_writes): Use boolean mask.
4524 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4525 can_vec_mask_load_store_p signature change. Allow invariant masks.
4526 (vectorizable_operation): Ignore type precision for boolean vectors.
4527
4528 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4529
4530 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4531 (const_vector_mask_from_tree): New.
4532 (const_vector_from_tree): Use const_vector_mask_from_tree
4533 for boolean vectors.
4534 * optabs-query.h (get_vec_cmp_icode): New.
4535 * optabs-tree.c (expand_vec_cmp_expr_p): New.
4536 * optabs-tree.h (expand_vec_cmp_expr_p): New.
4537 * optabs.c (vector_compare_rtx): Add OPNO arg.
4538 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4539 (expand_vec_cmp_expr): New.
4540 * optabs.def (vec_cmp_optab): New.
4541 (vec_cmpu_optab): New.
4542 * optabs.h (expand_vec_cmp_expr): New.
4543 * tree-vect-generic.c (expand_vector_comparison): Add vector
4544 comparison optabs check.
4545 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
4546 operations for VF. Add mask type computation.
4547 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4548 (vectorizable_comparison): New.
4549 (vect_analyze_stmt): Add vectorizable_comparison.
4550 (vect_transform_stmt): Likewise.
4551 (vect_init_vector): Support boolean vector invariants.
4552 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4553 (vectorizable_condition): Directly provide vectype for invariants
4554 used in comparison.
4555 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4556 (enum vect_var_kind): Add vect_mask_var.
4557 (enum stmt_vec_info_type): Add comparison_vec_info_type.
4558 (vectorizable_comparison): New.
4559 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4560 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4561 (vect_create_destination_var): Likewise.
4562 * tree-vect-patterns.c (check_bool_pattern): Check fails
4563 if we can vectorize comparison directly.
4564 (search_type_for_mask): New.
4565 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4566 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4567 comparison statements.
4568 (vect_get_constant_vectors): Support boolean vector constants.
4569 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4570 (ix86_expand_int_vec_cmp): New.
4571 (ix86_expand_fp_vec_cmp): New.
4572 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4573 op_true and op_false.
4574 (ix86_int_cmp_code_to_pcmp_immediate): New.
4575 (ix86_fp_cmp_code_to_pcmp_immediate): New.
4576 (ix86_cmp_code_to_pcmp_immediate): New.
4577 (ix86_expand_mask_vec_cmp): New.
4578 (ix86_expand_fp_vec_cmp): New.
4579 (ix86_expand_int_sse_cmp): New.
4580 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4581 (ix86_expand_int_vec_cmp): New.
4582 (ix86_get_mask_mode): New.
4583 (TARGET_VECTORIZE_GET_MASK_MODE): New.
4584 * config/i386/sse.md (avx512fmaskmodelower): New.
4585 (vec_cmp<mode><avx512fmaskmodelower>): New.
4586 (vec_cmp<mode><sseintvecmodelower>): New.
4587 (vec_cmpv2div2di): New.
4588 (vec_cmpu<mode><avx512fmaskmodelower>): New.
4589 (vec_cmpu<mode><sseintvecmodelower>): New.
4590 (vec_cmpuv2div2di): New.
4591
4592 2015-11-10 Richard Biener <rguenther@suse.de>
4593
4594 PR tree-optimization/68240
4595 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4596 properly.
4597 (visit_phi): For PHIs with just a single executable edge
4598 take its value directly.
4599 (expressions_equal_p): Handle VN_TOP properly.
4600
4601 2015-11-10 Richard Biener <rguenther@suse.de>
4602
4603 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4604 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4605 conservatively.
4606
4607 2015-11-10 Richard Biener <rguenther@suse.de>
4608
4609 PR tree-optimization/56118
4610 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4611 cost favor vectorized version.
4612
4613 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4614
4615 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4616 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4617 (neg_not_op): New code attribute.
4618
4619 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4620
4621 * ifcvt.c (noce_try_inverse_constants): New function.
4622 (noce_process_if_block): Call it.
4623 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4624 * optabs.def (negcc_optab, notcc_optab): Declare.
4625 * optabs.c (emit_conditional_neg_or_complement): New function.
4626 * doc/tm.texi (Standard Names): Document negcc, notcc names.
4627
4628 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4629
4630 PR rtl-optimization/68236
4631 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4632 if insn_queue doesn't exist.
4633 (haifa_sched_finish): Reset insn_queue to NULL.
4634
4635 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
4636
4637 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4638 (build_def_use): Initialize terminated_this_insn.
4639 (find_best_rename_reg): Pick and check register from the tied chain.
4640 (regrename_do_replace): Mark head as renamed.
4641 (struct du_head *terminated_this_insn). New static variable.
4642 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
4643 * regrename.h (struct du_head): Add tied_chain, renamed members.
4644
4645 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4646
4647 PR bootstrap/68256
4648 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4649 Return false.
4650
4651 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4652
4653 PR target/57845
4654 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
4655 not promote the mode for aggregate types.
4656
4657 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4658
4659 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
4660 * omp-low.c (build_oacc_routine_dims): New.
4661
4662 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4663
4664 * config/rs6000/constraints.md (wF constraint): New constraints
4665 for power9/toc fusion.
4666 (wG constraint): Likewise.
4667
4668 * config/rs6000/predicates.md (u6bit_cint_operand): New
4669 predicate, recognize 0..63.
4670 (upper16_cint_operand): New predicate for power9 and toc fusion.
4671 (fpr_reg_operand): Likewise.
4672 (toc_fusion_or_p9_reg_operand): Likewise.
4673 (toc_fusion_mem_raw): Likewise.
4674 (toc_fusion_mem_wrapped): Likewise.
4675 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
4676 address range.
4677 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
4678 instead.
4679 (fusion_addis_mem_combo_load): Add support for power9 fusion of
4680 floating point loads, floating point stores, and gpr stores.
4681 (fusion_addis_mem_combo_store): Likewise.
4682 (fusion_offsettable_mem_operand): Likewise.
4683
4684 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
4685 (emit_fusion_load_store): Likewise.
4686 (fusion_p9_p): Likewise.
4687 (expand_fusion_p9_load): Likewise.
4688 (expand_fusion_p9_store): Likewise.
4689 (emit_fusion_p9_load): Likewise.
4690 (emit_fusion_p9_store): Likewise.
4691 (fusion_wrap_memory_address): Likewise.
4692
4693 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4694 elements for power9 fusion.
4695 (rs6000_debug_print_mode): Rework debug information to print more
4696 information about fusion.
4697 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4698 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4699 offsettable memory address.
4700 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4701 (emit_fusion_gpr_load): Move most of the code from
4702 emit_fusion_gpr_load into emit_fusion-addis that handles both
4703 power8 and power9 fusion.
4704 (emit_fusion_addis): Likewise.
4705 (emit_fusion_load_store): Likewise.
4706 (fusion_wrap_memory_address): Add support for TOC fusion.
4707 (fusion_split_address): Likewise.
4708 (fusion_p9_p): Add support for power9 fusion.
4709 (expand_fusion_p9_load): Likewise.
4710 (expand_fusion_p9_store): Likewise.
4711 (emit_fusion_p9_load): Likewise.
4712 (emit_fusion_p9_store): Likewise.
4713
4714 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4715 new instructions in ISA 3.0.
4716 (TARGET_CTZ): Likewise.
4717 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4718 (TARGET_TOC_FUSION_FP): Likewise.
4719
4720 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4721 fusion unspecs.
4722 (UNSPEC_FUSION_ADDIS): Likewise.
4723 (QHSI mode iterator): New iterator for power9 fusion.
4724 (GPR_FUSION): Likewise.
4725 (FPR_FUSION): Likewise.
4726 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4727 (umod<mode>3): Likewise.
4728 (divmod peephole): Likewise.
4729 (udivmod peephole): Likewise.
4730 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4731 instructions.
4732 (ctz<mode>2_h): Likewise.
4733 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4734 (ashdi3_extswsli_dot): Likewise.
4735 (ashdi3_extswsli_dot2): Likewise.
4736 (power9 fusion splitter): New power9/toc fusion support.
4737 (toc_fusionload_<mode>): Likewise.
4738 (toc_fusionload_di): Likewise.
4739 (fusion_gpr_load_<mode>): Update predicate function.
4740 (power9 fusion peephole2s): New power9/toc fusion support.
4741 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4742 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4743 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4744 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4745 (fusion_p9_<mode>_constant): Likewise.
4746
4747 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
4748
4749 * optabs.c (prepare_libcall_arg): New function.
4750 (expand_fixed_convert): Add call to prepare_libcall_arg.
4751
4752 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
4753
4754 * sched-int.h (dump_rgn_dependencies_dot): Declare
4755 * sched-rgn.c (dump_rgn_dependencies_dot): New function
4756 * print-rtl.h (print_insn): Add prototype
4757
4758 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4759 * common.opt (-fsched-verbose): Set default value to 1.
4760 * invoke.texi (-fsched-verbose): Update the option's description.
4761
4762 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4763
4764 * config/visium/visium.h (PRINT_OPERAND): Delete.
4765 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4766 (PRINT_OPERAND_ADDRESS): Likewise.
4767 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4768 to...
4769 (visium_print_operand_punct_valid_p): ...this. New function.
4770 (TARGET_PRINT_OPERAND): Define to...
4771 (print_operand): Rename to...
4772 (visium_print_operand): ...this.
4773 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4774 (visium_output_address): Rename to...
4775 (visium_print_operand_address): ...this.
4776 (print_operand_address): Delete.
4777
4778 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4779
4780 PR middle-end/68259
4781 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4782 Check that the type of the first operand is an aggregate type.
4783
4784 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4785
4786 * omp-low.c: Fix some OpenACC comment typos.
4787 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4788 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4789 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4790
4791 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
4792
4793 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4794
4795 2015-11-09 Jeff Law <law@redhat.com>
4796
4797 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4798 being in gimple/ssa form. Remove redundant check for SSA_NAME.
4799 Fix comment typo.
4800
4801 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4802 Peter Bergner <bergner@vnet.ibm.com>
4803
4804 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4805 ISA 3.0 (power9).
4806 (-mpower9-vector): Likewise.
4807 (-mpower9-dform): Likewise.
4808 (-mpower9-minmax): Likewise.
4809 (-mtoc-fusion): Likewise.
4810 (-mmodulo): Likewise.
4811 (-mfloat128-hardware): Likewise.
4812
4813 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4814 mask for ISA 3.0 (power9).
4815 (POWERPC_MASKS): Add new ISA 3.0 switches.
4816 (power9 cpu): Add power9 cpu.
4817
4818 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4819 (ASM_CPU_SPEC): Likewise.
4820 (EXTRA_SPECS): Likewise.
4821
4822 * config/rs6000/rs6000-opts.h (enum processor_type): Add
4823 PROCESSOR_POWER9.
4824
4825 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4826 (rs6000_debug_reg_global): Add support for power9 fusion.
4827 (rs6000_setup_reg_addr_masks): Cache mode size.
4828 (rs6000_option_override_internal): Until real power9 tuning is
4829 added, use -mtune=power8 for -mcpu=power9.
4830 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4831 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4832 of Altivec registers.
4833 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4834 (rs6000_loop_align): Add support for power9 cpu.
4835 (rs6000_file_start): Likewise.
4836 (rs6000_adjust_cost): Likewise.
4837 (rs6000_issue_rate): Likewise.
4838 (insn_must_be_first_in_group): Likewise.
4839 (insn_must_be_last_in_group): Likewise.
4840 (force_new_group): Likewise.
4841 (rs6000_register_move_cost): Likewise.
4842 (rs6000_opt_masks): Likewise.
4843
4844 * config/rs6000/rs6000.md (cpu attribute): Add power9.
4845 * config/rs6000/rs6000-tables.opt: Regenerate.
4846
4847 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4848 _ARCH_PWR9 if power9 support is available.
4849
4850 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4851 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4852
4853 * configure.ac: Determine if the assembler supports the ISA 3.0
4854 instructions.
4855 * config.in (HAVE_AS_POWER9): Likewise.
4856 * configure: Regenerate.
4857
4858 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4859 switches.
4860
4861 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4862
4863 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4864 Remove integer CONST_DOUBLE handling. It should never occur.
4865
4866 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4867
4868 PR target/68129
4869 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4870 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4871 Delete VOIDmode case. Assert that mode is not VOIDmode.
4872 * config/aarch64/predicates.md (const0_operand): Remove const_double
4873 match.
4874
4875 2015-11-09 Martin Liska <mliska@suse.cz>
4876
4877 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4878 body_info release function.
4879 * ipa-prop.c (ipa_release_body_info): New function.
4880 (ipa_analyze_node): Call the function.
4881 (ipa_node_params::~ipa_node_params): Release known_csts.
4882 * ipa-prop.h (ipa_release_body_info): Declare.
4883
4884 2015-11-09 Martin Liska <mliska@suse.cz>
4885
4886 * gcc.c (record_temp_file): Release name string.
4887 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4888 * lra-lives.c (free_live_range_list): Utilize
4889 lra_live_range_pool for allocation and deallocation.
4890 (create_live_range): Likewise.
4891 (copy_live_range): Likewise.
4892 (lra_merge_live_ranges): Likewise.
4893 (remove_some_program_points_and_update_live_ranges): Likewise.
4894 (lra_create_live_ranges_1): Release point_freq_vec that can
4895 be not freed from previous iteration of the function.
4896 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4897 * tree-sra.c (sra_deinitialize): Release all vectors in
4898 base_access_vec.
4899 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4900 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4901 Release edge_info for a removed edge.
4902 (thread_through_all_blocks): Free region vector.
4903 * tree-ssa.h (free_dom_edge_info): Declare function extern.
4904
4905 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
4906
4907 * optabs.c (expand_vec_cond_expr): Always get sign from type.
4908 * tree.c (wide_int_to_tree): Support negative values for boolean.
4909 (build_nonstandard_boolean_type): Use signed type for booleans.
4910
4911 2015-11-09 Richard Biener <rguenther@suse.de>
4912
4913 PR tree-optimization/68248
4914 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4915
4916 2015-11-09 Richard Biener <rguenther@suse.de>
4917
4918 PR tree-optimization/56118
4919 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4920 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4921 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4922 function.
4923 (vect_slp_analyze_data_ref_dependences): Instead of computing
4924 all dependences of the region DRs just analyze the code motions
4925 SLP vectorization will perform. Remove SLP instances that
4926 cannot have their store/load motions applied.
4927 (vect_analyze_data_refs): Allow DRs without a vectype
4928 in BB vectorization.
4929
4930 2015-11-09 Julian Brown <julian@codesourcery.com>
4931
4932 * final.c (output_asm_insn): Pass VOIDmode to output_address.
4933 (output_address): Add MODE argument. Pass to print_operand_address
4934 hook.
4935 * targhooks.c (default_print_operand_address): Add MODE argument.
4936 * targhooks.h (default_print_operand_address): Update prototype.
4937 * output.h (output_address): Update prototype.
4938 * target.def (print_operand_address): Add MODE argument.
4939 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4940 output_address.
4941 (print_operand): Pass access mode to output_address.
4942 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4943 argument.
4944 (mcore_print_operand): Update calls to mcore_print_operand_address.
4945 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4946 output_address.
4947 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4948 output_address.
4949 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4950 global.
4951 (tilegx_print_operand): Don't set above global. Update calls to
4952 output_address.
4953 (tilegx_print_operand_address): Add MODE argument. Use instead of
4954 output_memory_reference_mode global.
4955 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4956 (frv_print_operand): Pass mode to frv_print_operand_address calls.
4957 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4958 output_address.
4959 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4960 (cris_print_operand): Pass mode to output_address calls.
4961 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4962 * config/aarch64/aarch64.h (aarch64_print_operand)
4963 (aarch64_print_operand_address): Remove prototypes.
4964 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4965 global.
4966 (aarch64_print_operand): Make static. Update calls to output_address.
4967 (aarch64_print_operand_address): Add MODE argument. Use instead of
4968 aarch64_memory_reference_mode global.
4969 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4970 hooks.
4971 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4972 Delete macro definitions.
4973 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4974 * config/xtensa/xtensa.c (print_operand): Pass mode in
4975 output_address calls.
4976 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4977 argument.
4978 (h83000_print_operand): Update calls to h8300_print_operand_address
4979 and output_address.
4980 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4981 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4982 global.
4983 (tilepro_print_operand): Pass mode to output_address.
4984 (tilepro_print_operand_address): Add MODE argument. Use instead of
4985 output_memory_reference_mode.
4986 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4987 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4988 to output_address calls.
4989 (nvptx_print_operand_address): Add MODE argument.
4990 * config/alpha/alpha.c (print_operand): Pass mode argument in
4991 output_address calls.
4992 * config/m68k/m68k.c (print_operand): Pass mode argument in
4993 output_address call.
4994 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4995 (avr_print_operand): Update calls to avr_print_operand_address.
4996 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4997 argument. Update calls to output_address.
4998 (sparc_print_operand): Pass mode to output_address.
4999 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5000 argument.
5001 (iq2000_print_operand): Pass mode in output_address calls.
5002 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5003 MODE argument.
5004 (xstormy16_print_operand): Pass mode to
5005 xstormy16_print_operand_address calls.
5006 * config/mips/mips.c (mips_print_operand): Update calls to
5007 output_address.
5008 (mips_print_operand_address): Add MODE argument.
5009 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5010 to output_address.
5011 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5012 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5013 output_address.
5014 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5015 (rx_print_operand): Update calls to output_address,
5016 rx_print_operand_address.
5017 * config/nds32/nds32.c (nds32_print_operand): Update calls to
5018 output_address.
5019 (nds32_print_operand_address): Add MODE argument.
5020 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5021 output_address calls.
5022 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5023 output_address call.
5024 (c6x_print_address_operand): Update calls to output_address.
5025 (c6x_print_operand_address): Pass mode to above.
5026 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5027 (v850_print_operand): Pass mode to v850_print_operand_address,
5028 output_address.
5029 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5030 (mmix_print_operand): Pass mode in output_address calls.
5031 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5032 (sh_print_operand): Pass mem mode to output_address,
5033 sh_print_operand_address.
5034 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5035 (cr16_print_operand): Pass mode to output_address,
5036 cr16_print_operand_address.
5037 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5038 output_address.
5039 * config/microblaze/microblaze.c (print_operand): Pass mode to
5040 output_address.
5041 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5042 output_address.
5043 (nios2_print_operand_address): Add MODE argument. Update call to
5044 nios2_print_operand_address.
5045 * config/s390/s390.c (print_operand): Pass mode to output_address.
5046 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5047 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5048 output_address.
5049 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5050 Use instead of output_memory_reference_mode.
5051 (output_memory_reference_mode): Delete global.
5052 (arm_print_operand): Pass mem mode to output_address.
5053 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5054 (m32r_print_operand): Pass mode to output_address.
5055 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5056 argument.
5057 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5058 * config/i386/i386.c (ix86_print_operand): Pass mode to
5059 output_address calls.
5060 (ix86_print_operand_address): Add MODE argument.
5061
5062 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5063
5064 PR middle-end/68251
5065 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5066 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5067 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5068 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5069
5070 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5071
5072 PR rtl-optimization/67749
5073 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5074 case before emitting the two blocks. Instead modify the register
5075 in the corresponding final insn of the basic block.
5076
5077 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5078
5079 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5080 assembler syntax.
5081 Support Solaris ld.
5082 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5083
5084 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5085 HAVE_INITFINI_ARRAY_SUPPORT.
5086 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5087
5088 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5089 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5090 Don't check HAVE_AS_SPARC_NOBITS.
5091 Heed SECTION_NOTYPE.
5092
5093 * configure: Regenerate.
5094 * config.in: Regenerate.
5095
5096 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5097
5098 PR middle-end/68253
5099 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5100
5101 2015-11-09 Richard Henderson <rth@redhat.com>
5102
5103 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5104 __SEG_GS, __SEG_TLS.
5105 (ix86_register_pragmas): Register address spaces __seg_fs,
5106 __seg_gs, __seg_tls.
5107 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5108 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5109 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5110 * config/i386/i386.c (ix86_decompose_address): Likewise.
5111 (ix86_legitimate_address_p): Likewise.
5112 (memory_address_length): Likewise. Check mem address space too.
5113 (ix86_print_operand): Use ix86_print_operand_address_as.
5114 (ix86_print_operand_address_as): Rename from
5115 ix86_print_operand_address, add new addr_space_t parameter.
5116 Validate that either the parameter or the ix86_address segment
5117 is default address space. Handle ADDR_SPACE_SEG_TLS.
5118 (ix86_print_operand_address): New.
5119 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5120 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5121 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5122 (ix86_addr_space_zero_address_valid): New.
5123 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5124 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5125 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5126 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5127 (vsib_address_operand): Likewise.
5128 (address_mpx_no_base_operand): Likewise.
5129 (address_mpx_no_index_operand): Likewise.
5130 * doc/extend.texi (x86 Named Address Spaces): New section.
5131
5132 * config/i386/i386.c (ix86_check_no_addr_space): New.
5133 (decide_alg): Add have_as parameter.
5134 (alg_usable_p): Likewise; disable rep algorithms if set.
5135 (ix86_expand_set_or_movmem): Notice if either MEM has a
5136 non-default address space.
5137 (ix86_expand_strlen): Likewise.
5138 * config/i386/i386.md (strmov, strset): Likewise.
5139 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5140 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5141 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5142 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5143 *cmpstrnqi_1, *strlenqi_1): Likewise.
5144
5145 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5146 (*movabs<mode>_2): Likewise.
5147
5148 * dwarf2out.c (modified_type_die): Pass the address space number
5149 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5150 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5151 * targhooks.c (default_addr_space_debug): New.
5152 * targhooks.h (default_addr_space_debug): Declare.
5153 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5154 * doc/tm.texi: Rebuild.
5155
5156 * gimple.c (check_loadstore): Return false when 0 is a valid address.
5157 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5158 null when 0 is valid in the source address space.
5159 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5160 * targhooks.c (default_addr_space_zero_address_valid): New.
5161 * targhooks.h (default_addr_space_zero_address_valid): Declare.
5162 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5163 * doc/tm.texi: Rebuild.
5164
5165 * cselib.c (add_mem_for_addr): Compare address spaces when
5166 matching memories.
5167 (cselib_lookup_mem): Likewise.
5168 * fold-const.c (operand_equal_p): Check address spaces of
5169 pointer types before checking integer constants.
5170
5171 PR tree-opt/66768
5172 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5173 the correct type for the base.
5174
5175 2015-11-09 Jeff Law <law@redhat.com>
5176
5177 * tree-into-ssa.c (names_to_release): No longer static.
5178 * tree-into-ssa.h (names_to_release): Declare.
5179 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5180 (release_free_names_and_compact_live_names): New function extracted
5181 from pass_release_ssa_names::execute.
5182 (pass_release_ssa_names::execute): Use it.
5183
5184 2015-11-09 Alan Modra <amodra@gmail.com>
5185
5186 * gensupport.c (add_mnemonic_string): Make len param a size_t.
5187 (gen_mnemonic_setattr): Make "size" var a size_t. Use
5188 obstack_blank_fast to shrink obstack. Cast obstack_next_free
5189 return value.
5190
5191 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5192
5193 PR rtl-optimization/68182
5194 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5195 branch with only one successor just like unconditional branches.
5196
5197 2015-11-08 Jeff Law <law@redhat.com>
5198
5199 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5200 non-FSM path has no edges marked with EDGE_DFS_BACK.
5201 (ssa_redirect_edges): No longer call mark_loop_for_removal.
5202 (thread_single_edge, def_split_header_continue_p): Remove.
5203 (bb_ends_with_multiway_branch): Likewise.
5204 (thread_through_loop_header): Remove cases of threading from
5205 latch through the header. Simplify knowing we won't thread
5206 the latch.
5207 (thread_through_all_blocks): Simplify knowing that only the FSM
5208 threader needs to handle backedges.
5209
5210 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5211
5212 * doc/extend.texi (type attributes): Document scalar_storage_order.
5213 (Structure-Packing Pragmas): Rename into...
5214 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
5215 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5216 (Warnings): Document -Wno-scalar-storage-order.
5217 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5218 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5219 extract_bit_field and store_bit_field.
5220 (initialize_argument_information): Adjust call to store_expr.
5221 (load_register_parameters): Adjust call to extract_bit_field.
5222 * expmed.c (check_reverse_storage_order_support): New function.
5223 (check_reverse_float_storage_order_support): Likewise.
5224 (flip_storage_order): Likewise.
5225 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
5226 of the value if it is true. Pass REVERSE to recursive call after
5227 adjusting the target offset.
5228 Do not use extraction or movstrict instruction if REVERSE is true.
5229 Pass REVERSE to store_fixed_bit_field.
5230 (store_bit_field): Add REVERSE parameter and pass to it to above.
5231 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5232 store_split_bit_field and store_fixed_bit_field_1.
5233 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5234 order of the value if it is true and adjust the target offset.
5235 (store_split_bit_field): Add REVERSE parameter and pass it to
5236 store_fixed_bit_field. Adjust the target offset if it is true.
5237 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
5238 of the value if it is true. Pass REVERSE to recursive call after
5239 adjusting the target offset.
5240 Do not use extraction or subreg instruction if REVERSE is true.
5241 Pass REVERSE to extract_fixed_bit_field.
5242 (extract_bit_field): Add REVERSE parameter and pass to it to above.
5243 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5244 extract_split_bit_field and extract_fixed_bit_field_1.
5245 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5246 order of the value if it is true and adjust the target offset.
5247 (extract_split_bit_field): Add REVERSE parameter and pass it to
5248 extract_fixed_bit_field. Adjust the target offset if it is true.
5249 * expmed.h (flip_storage_order): Declare.
5250 (store_bit_field): Adjust prototype.
5251 (extract_bit_field): Likewise.
5252 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5253 (emit_group_store): Adjust call to store_bit_field.
5254 (copy_blkmode_from_reg): Likewise.
5255 (copy_blkmode_to_reg): Likewise.
5256 (write_complex_part): Likewise.
5257 (read_complex_part): Likewise.
5258 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
5259 that it isn't true if the target is a register.
5260 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5261 and flip the storage order of the value.
5262 <BIT_IOR_EXPR>: Flip the storage order of the value.
5263 (get_bit_range): Adjust call to get_inner_reference.
5264 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5265 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
5266 with reverse storage order.
5267 (store_expr_with_bounds): Add REVERSE parameter and pass it to
5268 recursive calls and call to store_bit_field. Force the value into a
5269 register if it is true and then flip the storage order of the value.
5270 (store_expr): Add REVERSE parameter and pass it to above.
5271 (categorize_ctor_elements_1): Adjust call to
5272 initializer_constant_valid_p.
5273 (store_constructor_field): Add REVERSE parameter and pass it to
5274 recursive calls and call to store_field.
5275 (store_constructor): Add REVERSE parameter and pass it to calls to
5276 store_constructor_field and store_expr. Set it to true for an
5277 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5278 (store_field): Add REVERSE parameter and pass it to recursive calls
5279 and calls to store_expr and store_bit_field. Temporarily flip the
5280 storage order of the value with record type and integral mode and
5281 adjust the shift if it is true.
5282 (get_inner_reference): Add PREVERSEP parameter and set it to true
5283 upon encoutering a reference with reverse storage order.
5284 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5285 (expand_constructor): Adjust call to store_constructor.
5286 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5287 of the union type to store_expr in the MEM case and assert that it
5288 isn't set in the REG case. Adjust call to store_field.
5289 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5290 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5291 get_inner_reference and extract_bit_field. Temporarily flip the
5292 storage order of the value with record type and integral mode and
5293 adjust the shift if it is true. Flip the storage order of the value
5294 at the end if it is true.
5295 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5296 get_inner_reference. Do not fetch an inner reference if it is true.
5297 * expr.h (store_expr_with_bounds): Ajust prototype.
5298 (store_expr): Likewise.
5299 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5300 REF_REVERSE_STORAGE_ORDER on the reference according to it.
5301 (optimize_bit_field_compare): Deal with reverse storage order.
5302 Adjust calls to get_inner_reference and make_bit_field_ref.
5303 (decode_field_reference): Add PREVERSEP parameter and adjust call to
5304 get_inner_reference.
5305 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
5306 to decode_field_reference and make_bit_field_ref.
5307 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5308 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5309 (fold_comparison): Adjust call to get_inner_reference.
5310 (split_address_to_core_and_offset): Adjust call to
5311 get_inner_reference.
5312 * gimple-expr.c (useless_type_conversion_p): Return false for array
5313 types with different TYPE_REVERSE_STORAGE_ORDER flag.
5314 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5315 REF_REVERSE_STORAGE_ORDER flag.
5316 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5317 * output.h (assemble_real): Adjust prototype.
5318 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5319 * stor-layout.c (finish_record_layout): Propagate the
5320 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5321 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5322 (TYPE_SATURATING): Adjust.
5323 (REF_REVERSE_STORAGE_ORDER): Document.
5324 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5325 set it to true upon encoutering a reference with reverse storage order.
5326 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5327 * tree-inline.c (remap_gimple_op_r): Propagate the
5328 REF_REVERSE_STORAGE_ORDER flag.
5329 (copy_tree_body_r): Likewise.
5330 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5331 store_expr.
5332 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5333 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5334 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5335 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5336 REF_REVERSE_STORAGE_ORDER flag.
5337 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5338 (gimple_canonical_types_compatible_p): Likewise.
5339 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5340 (TYPE_SATURATING): Adjust.
5341 (REF_REVERSE_STORAGE_ORDER): New flag.
5342 (reverse_storage_order_for_component_p): New inline predicate.
5343 (storage_order_barrier_p): Likewise.
5344 (get_inner_reference): Adjust prototype.
5345 * varasm.c: Include expmed.h.
5346 (assemble_variable_contents): Adjust call to output_constant.
5347 (assemble_real): Add REVERSE parameter. Flip the storage
5348 order of the value if REVERSE is true.
5349 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5350 (assemble_constant_contents): Adjust call to output_constant.
5351 (output_constant_pool_2): Adjust call to assemble_real.
5352 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5353 TYPE_REVERSE_STORAGE_ORDER.
5354 (initializer_constant_valid_p): Add REVERSE parameter.
5355 (output_constant): Add REVERSE parameter.
5356 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5357 <REAL_TYPE>: Adjust call to assemble_real.
5358 <COMPLEX_TYPE>: Pass it to recursive calls.
5359 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
5360 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
5361 (struct oc_local_state): Add REVERSE field.
5362 (output_constructor_array_range): Adjust calls to output_constant.
5363 (output_constructor_regular_field): Likewise.
5364 (output_constructor_bitfield): Adjust call to output_constructor.
5365 Flip the storage order of the value if REVERSE is true.
5366 (output_constructor): Add REVERSE parameter. Set it to true for an
5367 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
5368 output_constructor_bitfield.
5369 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5370 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5371 * builtins.c (get_object_alignment_2): Likewise.
5372 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5373 and get_ref_base_and_extent.
5374 * dbxout.c (dbxout_expand_expr): Likewise.
5375 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5376 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5377 (loc_list_from_tree): Likewise.
5378 (fortran_common): Likewise.
5379 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5380 get_ref_base_and_extent.
5381 (get_base_constructor): Likewise.
5382 (fold_const_aggregate_ref_1): Likewise.
5383 * gimple-laddress.c (pass_laddress::execute): Adjust call to
5384 get_inner_reference.
5385 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5386 get_inner_reference and bail out on reverse storage order.
5387 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5388 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5389 build_ref_for_offset.
5390 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5391 get_ref_base_and_extent.
5392 (ipa_polymorphic_call_context): Likewise.
5393 (extr_type_from_vtbl_ptr_store): Likewise.
5394 (check_stmt_for_type_change): Likewise.
5395 (get_dynamic_type): Likewise.
5396 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5397 get_ref_base_and_extent.
5398 (compute_complex_assign_jump_func): Likewise.
5399 (get_ancestor_addr_info): Likewise.
5400 (compute_known_type_jump_func): Likewise.
5401 (determine_known_aggregate_parts): Likewise.
5402 (ipa_get_adjustment_candidate): Likewise.
5403 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5404 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5405 (build_ref_for_offset): Adjust prototype.
5406 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5407 get_inner_reference.
5408 * tree-affine.c (tree_to_aff_combination): Adjust call to
5409 get_inner_reference.
5410 (get_inner_reference_aff): Likewise.
5411 * tree-data-ref.c (split_constant_offset_1): Likewise.
5412 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
5413 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5414 get_inner_reference.
5415 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5416 (dump_access): Print new fields.
5417 (create_access): Adjust call to get_ref_base_and_extent and set the
5418 REVERSE flag according to the result.
5419 (completely_scalarize_record): Set the REVERSE flag.
5420 (scalarize_elem): Add REVERSE parameter.
5421 (build_access_from_expr_1): Preserve storage order barriers.
5422 (build_accesses_from_assign): Likewise.
5423 (build_ref_for_offset): Add REVERSE parameter and set the
5424 REF_REVERSE_STORAGE_ORDER flag accordingly.
5425 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5426 the REF_REVERSE_STORAGE_ORDER flag if there are components.
5427 (analyze_access_subtree): Likewise.
5428 (create_artificial_child_access): Set the REVERSE flag.
5429 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5430 (turn_representatives_into_adjustments): Propagate REVERSE flag.
5431 (ipa_sra_check_caller): Adjust call to get_inner_reference.
5432 * tree-ssa-alias.c (ao_ref_base): Adjust call to
5433 get_ref_base_and_extent.
5434 (aliasing_component_refs_p): Likewise.
5435 (stmt_kills_ref_p_1): Likewise.
5436 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5437 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5438 Return true if reverse storage order.
5439 <BIT_FIELD_REF>: Likewise.
5440 <COMPONENT_REF>: Likewise.
5441 <ARRAY_REF>: Likewise.
5442 <ARRAY_RANGE_REF>: Likewise.
5443 (split_address_cost): Likewise. Bail out if reverse storage order.
5444 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5445 get_inner_reference. Bail out if reverse storage order.
5446 (bswap_replace): Adjust call to get_inner_reference.
5447 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5448 the REF_REVERSE_STORAGE_ORDER flag.
5449 <BIT_FIELD_REF>: Likewise.
5450 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5451 barriers.
5452 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5453 to the REF_REVERSE_STORAGE_ORDER flag.
5454 <BIT_FIELD_REF>: Likewise.
5455 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5456 (contains_storage_order_barrier_p): New predicate.
5457 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5458 Punt on storage order barriers if necessary.
5459 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5460 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5461 call to get_ref_base_and_extent.
5462 (do_structure_copy): Likewise.
5463 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5464 get_inner_reference.
5465 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
5466 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5467 * ubsan.c (instrument_bool_enum_load): Likewise.
5468 (instrument_object_size): Likewise.
5469 * var-tracking.c (track_expr_p): Adjust call to
5470 get_ref_base_and_extent.
5471 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5472 get_inner_reference.
5473 * config/s390/s390.c (s390_expand_atomic): Adjust call to
5474 store_bit_field.
5475 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5476 extract_bit_field.
5477 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5478
5479 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
5480
5481 * config/sparc/sparc.opt (mfix-at697f): Add final period.
5482
5483 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5484
5485 PR rtl-optimization/67864
5486 * common/config/i386/i386-common.c (ix86_option_optimization_table)
5487 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5488 at -Os and up.
5489
5490 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5491
5492 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5493 internal functions.
5494
5495 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5496
5497 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5498 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5499
5500 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5501
5502 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5503 * internal-fn.c: Don't undef it here.
5504 * tree-core.h: Likewise.
5505
5506 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5507
5508 * builtins.c (fold_builtin_nan): Delete.
5509 (fold_builtin_memcmp): Remove case where both arguments are constant.
5510 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5511 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5512 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5513 * fold-const-call.c: Include fold-const.h.
5514 (host_size_t_cst_p): New function.
5515 (build_cmp_result, fold_const_builtin_nan): Likewise.
5516 (fold_const_call_1): New function, split out from...
5517 (fold_const_call): ...here (for all three interfaces). Handle
5518 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5519
5520 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5521
5522 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5523 (fold_builtin_1): Don't call them.
5524 * fold-const-call.c: Include tm.h.
5525 (fold_const_call_ss): New variant for integer-to-integer folds.
5526 (fold_const_call): Call it.
5527
5528 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5529
5530 * builtins.c (fold_builtin_classify): Move constant cases to...
5531 * fold-const-call.c (fold_const_call_ss): ...here.
5532
5533 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5534
5535 * builtins.h (c_getstr): Move to...
5536 * fold-const.h (c_getstr): ...here.
5537 * builtins.c (c_getstr): Move to...
5538 * fold-const.c (c_getstr): ...here.
5539
5540 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5541
5542 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5543 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5544
5545 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5546
5547 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5548 the dominance info; free it if we can't.
5549 (pass_call_cdce::execute): Don't free the dominance info here.
5550
5551 2015-11-06 Jeff Law <law@redhat.com>
5552
5553 * tree-ssa-threadedge.c (dummy_simplify): Remove.
5554 (thread_around_empty_blocks): Remove backedge_seen_p argument.
5555 If we thread to a backedge, then return false. Update recursive
5556 call to eliminate backedge_seen_p argument.
5557 (thread_through_normal_block): Remove backedge_seen_p argument.
5558 Remove backedge_seen_p argument from calls to
5559 thread_around_empty_blocks. Remove checks on backedge_seen_p.
5560 If we thread to a backedge, then return 0.
5561 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
5562 pass it to thread_through_normal_block or thread_through_empty_blocks.
5563 For joiner handling, if we see a backedge, do not try normal
5564 threading.
5565
5566 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5567
5568 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5569 * graphite-poly.c (new_scop): Initialize original_schedule.
5570 (free_scop): Free original_schedule.
5571 * graphite-poly.h (struct scop): Add field original_schedule.
5572 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5573 (build_poly_scop): Call build_scop_original_schedule.
5574
5575 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5576
5577 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5578 (build_pbb_minimal_scattering_polyhedrons): New.
5579 (build_scop_scattering): Remove.
5580 (build_scop_minimal_scattering): New.
5581 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5582 (build_poly_scop): Call build_scop_minimal_scattering.
5583
5584 2015-11-06 Jeff Law <law@redhat.com>
5585
5586 * cfg-flags.def (IGNORE): New edge flag.
5587 * tree-vrp.c (identify_jump_threads): Mark and clear edges
5588 scheduled for removal with EDGE_IGNORE around call into
5589 jump threader. Do no thread across edges with EDGE_IGNORE,
5590 but do allow threading across those with EDGE_DFS_BACK.
5591
5592 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
5593
5594 * doc/md.texi (multi-alternative constraints): Don't document
5595 alternatives inherently tied to reload for the user documentation.
5596
5597 2015-11-06 Michael Collison <michael.collison@linaro.org>
5598 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5599
5600 Revert:
5601 2015-08-01 Michael Collison <michael.collison@linaro.org
5602 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5603
5604 * config/arm/arm.md (*arm_smin_cmp): New pattern.
5605 (*arm_umin_cmp): Likewise.
5606
5607 2015-11-06 Jakub Jelinek <jakub@redhat.com>
5608
5609 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5610 * omp-low.c (check_omp_nesting_restrictions): Update for the
5611 various new OpenMP 4.5 nesting restrictions, clarified
5612 nesting glossary, closely nested region relationship clarified
5613 to mean explicit or implicit parallel regions (target/teams),
5614 use %</%> or %qs where appropriate.
5615
5616 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5617 Sebastian Pop <s.pop@samsung.com>
5618
5619 * graphite-scop-detection.c (loop_is_valid_scop): Call
5620 optimize_loop_nest_for_speed_p.
5621
5622 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5623 Sebastian Pop <s.pop@samsung.com>
5624
5625 * graphite-optimize-isl.c (optimize_isl): Call
5626 isl_options_set_schedule_maximize_band_depth.
5627
5628 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5629 Sebastian Pop <s.pop@samsung.com>
5630
5631 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5632 and exit edges should not be a part of irreducible loop.
5633 (scop_detection::can_represent_loop_1): Loops should not be
5634 irreducible.
5635 (scop_detection::harmful_stmt_in_region): All the basic block
5636 should belong to reducible loops.
5637
5638 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
5639
5640 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5641 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5642 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5643 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5644 (aarch64_tbx4v8qi): Rename to...
5645 aarch64_tbx4<mode>): ... this.
5646 (aarch64_qtbl3<mode>): New pattern.
5647 (aarch64_qtbx3<mode>): New pattern.
5648 (aarch64_qtbl4<mode>): New pattern.
5649 (aarch64_qtbx4<mode>): New pattern.
5650 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5651 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5652 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5653 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5654 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
5655 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
5656 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
5657 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
5658 functions.
5659
5660 2015-11-06 Mike Stump <mikestump@comcast.net>
5661
5662 PR debug/66728
5663 * dwarf2out.c (get_full_len): Return a value based upon the actual
5664 precision needed for the value.
5665 (add_const_value_attribute): Use a maximal wide-int for
5666 CONST_WIDE_INTs, not VOIDmode.
5667 (output_die): Don't ever output NULL with printf.
5668
5669 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
5670 BLKmode nor VOIDmode values.
5671
5672 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5673
5674 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
5675 and "range2".
5676 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
5677 * diagnostic-core.h (warning_at_rich_loc): New declaration.
5678 (error_at_rich_loc): New declaration.
5679 (permerror_at_rich_loc): New declaration.
5680 (inform_at_rich_loc): New declaration.
5681 * diagnostic-show-locus.c (adjust_line): Delete.
5682 (struct point_state): New struct.
5683 (class colorizer): New class.
5684 (class layout_point): New class.
5685 (class layout_range): New class.
5686 (struct line_bounds): New.
5687 (class layout): New class.
5688 (colorizer::colorizer): New ctor.
5689 (colorizer::~colorizer): New dtor.
5690 (layout::layout): New ctor.
5691 (layout::print_source_line): New method.
5692 (layout::print_annotation_line): New method.
5693 (layout::get_state_at_point): New method.
5694 (layout::get_x_bound_for_row): New method.
5695 (diagnostic_show_locus): Reimplement in terms of class layout.
5696 (diagnostic_print_caret_line): Delete.
5697 * diagnostic.c (diagnostic_initialize): Replace
5698 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5699 (diagnostic_set_info_translated): Convert param from location_t
5700 to rich_location *. Eliminate calls to set_location on the
5701 message in favor of storing the rich_location ptr there.
5702 (diagnostic_set_info): Convert param from location_t to
5703 rich_location *.
5704 (diagnostic_build_prefix): Break out array into...
5705 (diagnostic_kind_color): New variable.
5706 (diagnostic_get_color_for_kind): New function.
5707 (diagnostic_report_diagnostic): Colorize the option_text
5708 using the color for the severity.
5709 (diagnostic_append_note): Update for change in signature of
5710 diagnostic_set_info.
5711 (diagnostic_append_note_at_rich_loc): New function.
5712 (emit_diagnostic): Update for change in signature of
5713 diagnostic_set_info.
5714 (inform): Likewise.
5715 (inform_at_rich_loc): New function.
5716 (inform_n): Update for change in signature of diagnostic_set_info.
5717 (warning): Likewise.
5718 (warning_at): Likewise.
5719 (warning_at_rich_loc): New function.
5720 (warning_n): Update for change in signature of diagnostic_set_info.
5721 (pedwarn): Likewise.
5722 (permerror): Likewise.
5723 (permerror_at_rich_loc): New function.
5724 (error): Update for change in signature of diagnostic_set_info.
5725 (error_n): Likewise.
5726 (error_at): Likewise.
5727 (error_at_rich_loc): New function.
5728 (sorry): Update for change in signature of diagnostic_set_info.
5729 (fatal_error): Likewise.
5730 (internal_error): Likewise.
5731 (internal_error_no_backtrace): Likewise.
5732 (source_range::debug): New function.
5733 * diagnostic.h (struct diagnostic_info): Eliminate field
5734 "override_column". Add field "richloc".
5735 (struct diagnostic_context): Add field "colorize_source_p".
5736 (diagnostic_override_column): Delete.
5737 (diagnostic_set_info): Convert param from location_t to
5738 rich_location *.
5739 (diagnostic_set_info_translated): Likewise.
5740 (diagnostic_append_note_at_rich_loc): New function.
5741 (diagnostic_num_locations): New function.
5742 (diagnostic_expand_location): Get the location from the
5743 rich_location.
5744 (diagnostic_print_caret_line): Delete.
5745 (diagnostic_get_color_for_kind): New declaration.
5746 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5747 (error_cb): Update for change in signature of "error" callback.
5748 (fatal_at): Likewise.
5749 (warning_at): Likewise.
5750 * input.c (linemap_client_expand_location_to_spelling_point): New.
5751 * pretty-print.c (text_info::set_range): New method.
5752 (text_info::get_location): New method.
5753 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5754 (struct text_info): Eliminate "locations" array in favor of
5755 "m_richloc", a rich_location *.
5756 (textinfo::set_location): Add a "caret_p" param, and reimplement
5757 in terms of a call to set_range.
5758 (textinfo::get_location): Eliminate inline implementation in favor of
5759 an out-of-line reimplementation.
5760 (textinfo::set_range): New method.
5761 * rtl-error.c (diagnostic_for_asm): Update for change in signature
5762 of diagnostic_set_info.
5763 * tree-diagnostic.c (default_tree_printer): Update for new
5764 "caret_p" param for textinfo::set_location.
5765 * tree-pretty-print.c (percent_K_format): Likewise.
5766
5767 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5768
5769 Properly apply.
5770 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5771 * config/aarch64/aarch64.c
5772 (aarch64_can_use_per_function_literal_pools_p): New.
5773 (aarch64_use_blocks_for_constant_p): Adjust declaration
5774 and use aarch64_can_use_function_literal_pools_p.
5775 (aarch64_select_rtx_section): Update.
5776
5777 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5778
5779 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5780 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5781 (arm_output_multireg_pop): Likewise.
5782 (output_move_double): Likewise.
5783 (output_move_quad): Likewise.
5784 (output_return_instruction): Likewise.
5785 (arm_print_operand): Remove support for %( and %. print modifiers.
5786 (arm_output_shift): Make unified asm.
5787 (arm_declare_function_name): Likewise.
5788 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5789 (ASM_APP_OFF): Adjust.
5790 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5791 (ASM_OUTPUT_REG_POP): Likewise.
5792 * config/arm/arm.md: Adjust uses of %., %(, %)
5793 * config/arm/sync.md: Likewise.
5794 * config/arm/thumb2.md: Likewise.
5795 * config/arm/ldmstm.md: Regenerate.
5796 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5797 * doc/invoke.texi (masm-unified-syntax): Update documentation.
5798
5799 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5800
5801 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5802
5803 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5804
5805 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5806 add OEP_MATCH_SIDE_EFFECTS.
5807 * fold-const.c (operand_equal_p): Update documentation; handle
5808 OEP_MATCH_SIDE_EFFECTS.
5809 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5810 OEP_MATCH_SIDE_EFFECTS.
5811
5812 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
5813 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5814
5815 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5816 * config/aarch64/aarch64-protos.h: Declare.
5817 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5818 frsqrts.
5819 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5820 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5821 code when applicable.
5822 * config/aarch64/aarch64.md: Added enum entries.
5823 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5824
5825 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5826
5827 PR ipa/68057
5828 PR ipa/68220
5829 * ipa-polymorphic-call.c
5830 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5831 issue when offset is out of range.
5832 (contains_type_p): Fix out of range check, clear dynamic flag.
5833
5834 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
5835
5836 * config.gcc (e6500): Fix cpu_is_64bit typo.
5837
5838 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
5839
5840 * tree-sra.c (completely_scalarize): Properly handle negative array
5841 indices using offset_int.
5842
5843 2015-11-06 Richard Biener <rguenther@suse.de>
5844
5845 * alloc-pool.h (object_allocator::allocate): Default-initialize
5846 object.
5847
5848 2015-11-06 Richard Biener <rguenther@suse.de>
5849
5850 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5851 * lra.c (init_reg_info): Truncate copy_vec instead of
5852 re-allocating a new one and leaking the old.
5853 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5854 bb_infos vec.
5855 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5856 * postreload-gcse.c (free_mem): Free modify_mem_list and
5857 canon_modify_mem_list.
5858
5859 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
5860
5861 PR tree-optimization/68145
5862 * tree-vect-stmts.c (vectorizable_operation): Fix
5863 determination for booleans.
5864
5865 2015-11-06 Tom de Vries <tom@codesourcery.com>
5866
5867 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5868 cond_jump, instead of split after last nondebug insn before cond_jump.
5869 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5870 returning.
5871
5872 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5873
5874 PR target/68088
5875 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5876 subregs from accumulator and make sure it's a register.
5877
5878 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
5879
5880 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5881 low part to scalar.
5882 (reduc_uplus_<mode>): Remove.
5883 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5884 loongson_extract_lo_<mode>.
5885 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5886 reduc_smax_<mode>, reduc_smax_<mode>, use vec
5887 loongson_extract_lo_<mode>.
5888 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5889
5890 2015-11-06 Richard Biener <rguenther@suse.de>
5891
5892 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5893 members.
5894 (vect_stmt_in_region_p): Declare.
5895 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5896 (destroy_bb_vec_info): Likewise.
5897 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5898 (vect_get_and_check_slp_defs): Likewise.
5899 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5900 (vect_slp_bb): Likewise.
5901 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5902 in terms of vect_stmt_in_region_p.
5903 (vect_pattern_recog): Iterate over the BB region.
5904 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5905 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5906 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5907 * config/i386/i386.c: Include gimple-iterator.h.
5908 * config/aarch64/aarch64.c: Likewise.
5909
5910 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
5911
5912 PR rtl-optimization/67753
5913 PR rtl-optimization/64164
5914 * function.c (assign_parm_setup_block): Avoid allocating a
5915 stack slot if we don't have an ABI-reserved one. Emit the
5916 copy to target_reg in the conversion seq if the copy from
5917 entry_parm is in it too. Don't use the conversion seq to copy
5918 a PARALLEL to a REG or a CONCAT.
5919
5920 2015-11-06 Richard Biener <rguenther@suse.de>
5921
5922 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5923 equal_keys.
5924
5925 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
5926 Thomas Schwinge <thomas@codesourcery.com>
5927 James Norris <jnorris@codesourcery.com>
5928
5929
5930 * gimplify.c (gimplify_scan_omp_clauses): Add support for
5931 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
5932 (gimplify_adjust_omp_clauses): Likewise.
5933 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5934 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5935 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5936 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5937 (omp_clause_code_name): Likewise.
5938 (walk_tree_1): Handle OMP_CLAUSE_TILE.
5939 * tree.h (OMP_TILE_LIST): New macro.
5940
5941 2015-11-05 Martin Sebor <msebor@redhat.com>
5942
5943 PR c++/67942
5944 * doc/invoke.texi (-Wplacement-new): Document new option.
5945
5946 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
5947
5948 PR tree-optimization/65963
5949 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5950 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5951
5952 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
5953
5954 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5955 (noce_convert_multiple_sets): Likewise.
5956 (noce_process_if_block): Call them.
5957
5958 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5959
5960 * gimple-fold.c: Include omp-low.h.
5961 (fold_internal_goacc_dim): New.
5962 (gimple_fold_call): Call it.
5963
5964 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5965 Ilya Verbin <ilya.verbin@intel.com>
5966
5967 * builtin-types.def
5968 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5969 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5970 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5971 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5972 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5973 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5974 (struct cgraph_simd_clone_arg): Adjust comment.
5975 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5976 to GOMP_target_ext. Add num_teams and thread_limit arguments.
5977 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5978 to GOMP_target_data_ext.
5979 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5980 to GOMP_target_update_ext.
5981 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5982 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5983 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5984 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5985 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5986 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5987 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5988 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5989 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5990 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5991 * tree-core.h (enum omp_clause_schedule_kind): Add
5992 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5993 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5994 OMP_CLAUSE_SCHEDULE_LAST value.
5995 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5996 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5997 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5998 OMP_FOR_CHECK. Remove comment.
5999 * tree-pretty-print.c (dump_omp_clause): Handle
6000 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6001 Simplify. Print schedule clause modifiers.
6002 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6003 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6004 cases.
6005 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6006 (omp_default_clause): Tweak for
6007 private/firstprivate/is_device_ptr variables on target
6008 construct and use_device_ptr on target data.
6009 (omp_check_private): Likewise.
6010 (omp_notice_variable): For references check whether what it refers
6011 to has mappable type, rather than the reference itself.
6012 (omp_is_private): Diagnose linear iteration variables on non-simd
6013 constructs.
6014 (omp_no_lastprivate): Return true only for Fortran.
6015 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6016 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6017 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6018 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6019 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
6020 lastprivate and linear when combined with distribute. Gimplify
6021 variable low-bound for array reduction. Look through
6022 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6023 reductions.
6024 (gimplify_adjust_omp_clauses_1): For implicit references to
6025 variables with reference type and when not ref to scalar or
6026 ref to pointer, map what they refer to using tofrom and
6027 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6028 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6029 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6030 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
6031 Diagnose the same var on both firstprivate and lastprivate on
6032 distribute construct.
6033 (gimplify_omp_for): Fix up handling of predetermined
6034 lastprivate or linear iter vars when combined with distribute.
6035 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6036 functions.
6037 (gimplify_omp_workshare): Call optimize_target_teams.
6038 * omp-low.c (struct omp_region): Add sched_modifiers field.
6039 (struct omp_for_data): Likewise.
6040 (omp_any_child_fn_dumped): New variable.
6041 (extract_omp_for_data): Fill in sched_modifiers, and mask out
6042 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6043 from sched_kind.
6044 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6045 bits of OMP_CLAUSE_SCHED_KIND.
6046 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6047 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
6048 for array section reductions.
6049 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6050 for distribute parallel for, if there are lastprivate clauses on the
6051 for.
6052 (lower_rec_input_clauses): Handle non-zero low-bound on array
6053 section reductions.
6054 (lower_reduction_clauses): Likewise.
6055 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6056 for array section reductions.
6057 (expand_parallel_call): Use nonmonotonic entrypoints for
6058 nonmonotonic: dynamic/guided.
6059 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6060 child_fn if current_function_decl has assembler name set, but child_fn
6061 does not. Dump the header and IL of the child function when not in SSA
6062 form.
6063 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6064 arguments to BUILT_IN_GOMP_TARGET.
6065 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6066 Initialize the extra _looptemp_ clause to fd->loop.n2.
6067 (expand_omp_for): Use nonmonotonic entrypoints for
6068 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6069 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6070 again if we have dumped any child functions.
6071 (lower_omp_for_lastprivate): Determine the right count variable
6072 for distribute simd, or distribute parallel for{, simd}.
6073 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6074 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6075 support.
6076 (simd_clone_clauses_extract): Handle variable step
6077 for references and arguments passed by reference.
6078 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6079 (simd_clone_adjust_argument_types): Handle
6080 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6081 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6082 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6083 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6084 (simd_clone_linear_addend): New function.
6085 (simd_clone_adjust): Handle variable step like similarly
6086 to constant step, use simd_clone_linear_addend to determine
6087 the actual step at runtime.
6088
6089 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6090
6091 * target.def (goacc.dim_limit): New hook.
6092 * targhooks.h (default_goacc_dim_limit): Declare.
6093 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6094 * doc/tm.texi: Rebuilt.
6095 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6096 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6097 (default_goacc_dim_limit): New.
6098 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6099 (nvptx_goacc_dim_limit) New.
6100 (TARGET_GOACC_DIM_LIMIT): Override.
6101 * tree-vrp.c: Include omp-low.h, target.h.
6102 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6103 IFN_GOACC_DIM_POS.
6104
6105 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6106
6107 * tree-vect-generic.c (do_compare): Use -1 for true
6108 result instead of 1.
6109
6110 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6111
6112 * config/aarch64/aarch64.c
6113 (aarch64_can_use_per_function_literal_pools_p): New.
6114 (aarch64_use_blocks_for_constant_p): Adjust declaration
6115 and use aarch64_can_use_function_literal_pools_p.
6116 (aarch64_select_rtx_section): Update.
6117
6118 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6119
6120 * targhooks.c (default_get_mask_mode): Use BLKmode in
6121 case target doesn't support required vector mode.
6122 * stor-layout.c (layout_type); Check for BLKmode.
6123
6124 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6125 Sebastian Pop <s.pop@samsung.com>
6126
6127 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6128 Remove use of parameter_rename_map.
6129 (copy_def): Remove.
6130 (copy_internal_parameters): Remove.
6131 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6132 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6133 (free_sese_info): Do not free parameter_rename_map.
6134 (set_rename): Do not use parameter_rename_map.
6135 (rename_uses): Update call to set_rename.
6136 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6137 * sese.h (parameter_rename_map_t): Remove.
6138 (struct sese_info_t): Remove field parameter_rename_map.
6139
6140 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6141 Sebastian Pop <s.pop@samsung.com>
6142
6143 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6144 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6145 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6146 anonymous namespace.
6147 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6148 (isl_id_for_pbb): Use a buffer of size 10.
6149 (isl_id_for_ssa_name): Same.
6150 * sese.c (set_rename): Add more dumps.
6151
6152 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6153
6154 * omp-low.c (struct omp_context): Remove reduction_map field.
6155 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6156 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6157 reduction_map handling.
6158 (lower_omp_target): Remove obsolete openacc reduction handling.
6159
6160 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6161
6162 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6163
6164 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6165 Cesar Philippidis <cesar@codesourcery.com>
6166
6167 * config/nvptx/nvptx.c: Include gimple headers.
6168 (worker_red_size, worker_red_align, worker_red_name,
6169 worker_red_sym): New.
6170 (nvptx_option_override): Initialize worker reduction buffer.
6171 (nvptx_file_end): Write out worker reduction buffer var.
6172 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6173 nvptx_expand_cmp_swap): New builtin expanders.
6174 (enum nvptx_builtins): New.
6175 (nvptx_builtin_decls): New.
6176 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6177 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6178 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6179 nvptx_lockless_update): New helpers.
6180 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6181 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6182 (nvptx_goacc_reduction): New.
6183 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6184 TARGET_BUILTIN_DECL): Override.
6185 (TARGET_GOACC_REDUCTION): Override.
6186
6187 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6188 Cesar Philippidis <cesar@codesourcery.com>
6189
6190 * internal-fn.def (GOACC_REDUCTION): New.
6191 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6192 * internal-fn.c (expand_GOACC_REDUCTION): New.
6193 * target.def (goacc.reduction): New OpenACC hook.
6194 * targhooks.h (default_goacc_reduction): Declare.
6195 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6196 * doc/tm.texi: Rebuilt.
6197 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6198 scan_sharing_clauses): Remove oacc reduction handling here.
6199 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6200 (oacc_lower_reduction_var_helper): Delete.
6201 (lower_oacc_reductions): New.
6202 (lower_reduction_clauses): Don't handle OpenACC reductions here.
6203 (lower_oacc_head_tail): Call lower_oacc_reductions.
6204 (oacc_gimple_assign, oacc_init_reduction_array,
6205 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6206 oacc_process_reduction_data): Delete.
6207 (lower_omp_target): Remove old OpenACC reduction handling. Insert
6208 dummy OpenACC gang reduction for reductions at outer level.
6209 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6210 (default_goacc_reduction): New.
6211 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6212
6213 2015-11-04 Martin Liska <mliska@suse.cz>
6214
6215 * cgraphunit.c (cgraph_node::expand_thunk): Call
6216 allocate_struct_function before init_function_start.
6217 (cgraph_node::expand): Use push_cfun and pop_cfun.
6218 * config/i386/i386.c (ix86_code_end): Call
6219 allocate_struct_function before init_function_start.
6220 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6221 * function.c (init_function_start): Move preamble to all
6222 callers.
6223 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6224 (execute_one_pass): Handle newly added TODO_discard_function.
6225 (execute_pass_list_1): Terminate if cfun equals to NULL.
6226 (execute_pass_list): Do not push and pop cfun, expect that
6227 cfun is set.
6228 * tree-pass.h (TODO_discard_function): Define.
6229
6230 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6231
6232 * cfganal.c (inverted_post_order_compute): Remove conditional
6233 compilation, use flag_checking.
6234 * config.in: Regenerate.
6235 * configure: Regenerate.
6236 * configure.ac: Remove ENABLE_CHECKING.
6237 * genconditions.c: Do not #undef ENABLE_CHECKING.
6238 * sese.h (bb_in_region): Comment out broken check.
6239 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6240 conditional compilation, use flag_checking.
6241
6242 2015-11-04 Tom de Vries <tom@codesourcery.com>
6243
6244 PR tree-optimization/67742
6245 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6246 field.
6247 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6248 (create_variable_info_for_1): Add and handle handle_param parameter.
6249 Add restrict handling.
6250 (create_variable_info_for): Call create_variable_info_for_1 with extra
6251 arg.
6252 (make_param_constraints): Drop restrict_name parameter. Ignore
6253 vi->only_restrict_pointers.
6254 (intra_create_variable_infos): Call create_variable_info_for_1 with
6255 extra arg. Remove restrict handling. Call make_param_constraints with
6256 one fewer arg.
6257
6258 2015-11-04 Tom de Vries <tom@codesourcery.com>
6259
6260 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6261 variable.
6262
6263 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6264
6265 * config/arm/coff.h: Remove.
6266
6267 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
6268
6269 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6270 check for aggregate types and beef up comment for mode check.
6271
6272 2015-11-03 Richard Biener <rguenther@suse.de>
6273
6274 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6275 data references here.
6276 * tree-vect-loop.c: Include cgraph.h.
6277 (vect_analyze_loop_2): Collect data references here.
6278 * tree-vect-slp.c (find_bb_location): Inline ...
6279 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
6280 Factor in vect_slp_transform_bb.
6281 (vect_slp_transform_bb): Removed.
6282 (vect_slp_analyze_bb_1): Collect data references here.
6283 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6284 vect_slp_bb.
6285 * tree-vectorizer.h (vect_slp_bb): Declare.
6286 (vect_slp_analyze_bb): Remove.
6287 (vect_slp_transform_bb): Remove.
6288 (find_bb_location): Remove.
6289 (vect_analyze_data_refs): Remove stmt count reference parameter.
6290
6291 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
6292
6293 * multiple_target.c (create_dispatcher_calls): Add target check
6294 on ifunc.
6295 (create_target_clone): Change assembler name for versioned declarations.
6296
6297 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6298 Chung-Lin Tang <cltang@codesourcery.com>
6299
6300 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6301 * omp-low.c (check_omp_nesting_restrictions): Allow
6302 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6303 contexts.
6304
6305 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
6306
6307 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6308 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6309 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6310 builtin.
6311 (vmulxq_f32): Likewise.
6312 (vmulx_f64): New.
6313 (vmulxq_f64): Rewrite to call fmulx builtin.
6314 (vmulxs_f32): Likewise.
6315 (vmulxd_f64): Likewise.
6316 (vmulx_lane_f32): Remove.
6317 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6318
6319 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
6320
6321 * config/aarch64/aarch64.md (*movhf_aarch64): Use
6322 aarch64_reg_or_fp_zero for second operand.
6323
6324 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
6325
6326 * gimple-expr.c: Include hash-set.h and rtl.h.
6327 (mark_addressable_queue): New var.
6328 (mark_addressable): Factor actual marking into...
6329 (mark_addressable_1): ... this. Queue it up during expand.
6330 (mark_addressable_2): New.
6331 (flush_mark_addressable_queue): New.
6332 * gimple-expr.h (flush_mark_addressable_queue): Declare.
6333 * cfgexpand.c: Include gimple-expr.h.
6334 (pass_expand::execute): Flush mark_addressable queue.
6335
6336 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
6337
6338 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6339 bb_no_side_effects_p tests...
6340 (tree_ssa_ifcombine_bb): ... here.
6341
6342 PR tree-optimization/68083
6343 * tree-ssa-ifcombine.c: Include tree-ssa.h.
6344 (bb_no_side_effects_p): Test for undefined uses too.
6345 * tree-ssa.c (gimple_uses_undefined_value_p): New.
6346 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6347
6348 2015-11-02 Jeff Law <law@redhat.com>
6349
6350 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6351 cases where the loop latch edge is in the middle of an FSM path.
6352
6353 2015-11-03 Tom de Vries <tom@codesourcery.com>
6354
6355 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6356 (make_param_constraints): ... this. Add and handle restrict_name
6357 parameter. Handle is_full_var case.
6358 (intra_create_variable_infos): Use make_param_constraints.
6359
6360 2015-11-03 Tom de Vries <tom@codesourcery.com>
6361
6362 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6363 make_copy_constraint call with make_constraint_from call.
6364
6365 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
6366
6367 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6368 PIE executables.
6369
6370 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
6371
6372 * builtins.h (fold_fma): Move to fold-const-call.h.
6373 * builtins.c: Include fold-const-call.h.
6374 (mathfn_built_in_2): New function, split out from...
6375 (mathfn_built_in_1): ...here.
6376 (do_real_to_int_conversion, fold_const_builtin_pow)
6377 (fold_const_builtin_logb, fold_const_builtin_significand)
6378 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6379 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6380 (fold_builtin_sincos): Use fold_const_call to handle constants.
6381 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6382 checks for ERROR_MARK. Use fold_const_call to handle constant
6383 folds for math functions.
6384 (fold_fma): Move to fold-const-call.c.
6385 * fold-const.c: Include fold-const-call.h.
6386 * Makefile.in (OBJS): Add fold-const-call.o.
6387 (PLUGIN_HEADERS): Add fold-const-call.h.
6388 * realmpfr.h (real_from_mpfr): Allow the format to be specified
6389 directly.
6390 * realmpfr.c (real_from_mpfr): Likewise.
6391 * fold-const-call.h, fold-const-call.c: New files.
6392
6393 2015-11-02 Julian Brown <julian@codesourcery.com>
6394
6395 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6396 brackets and semicolon.
6397
6398 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
6399
6400 Revert:
6401 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6402
6403 PR tree-optimization/65963
6404 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6405 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6406
6407 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
6408
6409 PR middle-end/68166
6410 * fold-const.c: Include "md5.h".
6411
6412 2015-11-01 Jeff Law <law@redhat.com>
6413
6414 * vmsdbgout.c: Revert unused header file reduction patch.
6415
6416 * config/mcore/mcore.c: Include regs.h.
6417
6418 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6419
6420 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6421
6422 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6423
6424 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6425 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6426 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6427
6428 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6429
6430 * ggc-common.c: Restore needed header for checking=release.
6431
6432 2015-10-31 Tom de Vries <tom@codesourcery.com>
6433
6434 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6435
6436 2015-10-31 Tom de Vries <tom@codesourcery.com>
6437
6438 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6439 existing varinfo for arguments.
6440
6441 2015-10-31 Tom de Vries <tom@codesourcery.com>
6442
6443 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6444 create_function_info_for. Dump constraints generated during
6445 create_function_info_for. Move intra_create_variable_infos call and
6446 function-return-values-escape bit to ...
6447 (create_function_info_for): ... here, and merge
6448 intra_create_variable_infos call with argument loop. Add and handle
6449 nonlocal_p parameter.
6450
6451 2015-10-31 Tom de Vries <tom@codesourcery.com>
6452
6453 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6454 updating is alap, and seperated from preceding code. Make sure
6455 insert_vi_for_tree is seperated from surrounding code.
6456
6457 2015-10-31 Tom de Vries <tom@codesourcery.com>
6458
6459 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6460
6461 2015-10-30 Jeff Law <law@redhat.com>
6462 Nathan Sidwell <nathan@acm.org>
6463
6464 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6465 args.
6466 (MOVE_MAX): Set to 8.
6467
6468 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
6469
6470 * cgraph.c: Include context.h for offloading.
6471 * varpool.c: Include context.h and omp-low.h.
6472
6473 2015-10-30 Anatoly Sokolov <aesok@post.ru>
6474
6475 * rtl.h (contains_symbol_ref_p): Declare.
6476 (SYMBOL_REF_P): Define.
6477 * rtlanal.c (contains_symbol_ref_p: New function.
6478 * lra-constraints.c (contains_symbol_ref_p): Remove.
6479 * var-tracking.c (contains_symbol_ref): Remove.
6480 (track_expr_p): Use contains_symbol_ref_p instead of
6481 contains_symbol_ref.
6482
6483 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6484
6485 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6486 * fold-const.c (get_array_ctor_element_at_index): New.
6487 (fold): Remove binary-search through CONSTRUCTOR, call previous.
6488
6489 * fold-const.h (get_array_ctor_element_at_index): New.
6490
6491 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6492
6493 * Makefile.in (OBJS): Add multiple_target.o.
6494 * attrib.c (make_attribute): Moved from config/i386/i386.c
6495 * config/i386/i386.c (make_attribute): Deleted.
6496 * multiple_target.c (create_dispatcher_calls): New.
6497 (get_attr_len): Ditto.
6498 (get_attr_str): Ditto.
6499 (separate_attrs): Ditto.
6500 (is_valid_asm_symbol): Ditto.
6501 (create_new_asm_name): Ditto.
6502 (create_target_clone): Ditto.
6503 (expand_target_clones): Ditto.
6504 (ipa_target_clone): Ditto.
6505 (ipa_dispatcher_calls): Ditto.
6506 * passes.def (pass_target_clone): Two new ipa passes.
6507 * tree-pass.h (make_pass_target_clone): Ditto.
6508 * doc/extend.texi (target_clones): New attribute description.
6509
6510 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
6511
6512 PR rtl-optimization/68106
6513 * lra-remat.c (input_regno_present_p): Process hard regs
6514 explicitly present in machine description insns.
6515 (call_used_input_regno_present_p): Ditto.
6516 (calculate_gen_cands): Ditto.
6517 (do_remat): Ditto.
6518
6519 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
6520
6521 * config/arm/neon-testgen.ml: Fix comment typo.
6522
6523 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6524
6525 * rtlanal.c (reg_set_p): Expand function comment.
6526
6527 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
6528
6529 * alias.c: Remove unused headers.
6530 * asan.c: Likewise.
6531 * attribs.c: Likewise.
6532 * auto-inc-dec.c: Likewise.
6533 * auto-profile.c: Likewise.
6534 * bb-reorder.c: Likewise.
6535 * bitmap.c: Likewise.
6536 * bt-load.c: Likewise.
6537 * builtins.c: Likewise.
6538 * caller-save.c: Likewise.
6539 * calls.c: Likewise.
6540 * ccmp.c: Likewise.
6541 * cfg.c: Likewise.
6542 * cfganal.c: Likewise.
6543 * cfgbuild.c: Likewise.
6544 * cfgcleanup.c: Likewise.
6545 * cfgexpand.c: Likewise.
6546 * cfghooks.c: Likewise.
6547 * cfgloop.c: Likewise.
6548 * cfgloopanal.c: Likewise.
6549 * cfgloopmanip.c: Likewise.
6550 * cfgrtl.c: Likewise.
6551 * cgraph.c: Likewise.
6552 * cgraphbuild.c: Likewise.
6553 * cgraphclones.c: Likewise.
6554 * cgraphunit.c: Likewise.
6555 * cilk-common.c: Likewise.
6556 * combine-stack-adj.c: Likewise.
6557 * combine.c: Likewise.
6558 * compare-elim.c: Likewise.
6559 * convert.c: Likewise.
6560 * coverage.c: Likewise.
6561 * cppbuiltin.c: Likewise.
6562 * cprop.c: Likewise.
6563 * cse.c: Likewise.
6564 * cselib.c: Likewise.
6565 * data-streamer-in.c: Likewise.
6566 * data-streamer-out.c: Likewise.
6567 * data-streamer.c: Likewise.
6568 * dbxout.c: Likewise.
6569 * dce.c: Likewise.
6570 * ddg.c: Likewise.
6571 * debug.c: Likewise.
6572 * df-core.c: Likewise.
6573 * df-problems.c: Likewise.
6574 * df-scan.c: Likewise.
6575 * dfp.c: Likewise.
6576 * dojump.c: Likewise.
6577 * dominance.c: Likewise.
6578 * domwalk.c: Likewise.
6579 * double-int.c: Likewise.
6580 * dse.c: Likewise.
6581 * dumpfile.c: Likewise.
6582 * dwarf2asm.c: Likewise.
6583 * dwarf2cfi.c: Likewise.
6584 * dwarf2out.c: Likewise.
6585 * emit-rtl.c: Likewise.
6586 * except.c: Likewise.
6587 * explow.c: Likewise.
6588 * expmed.c: Likewise.
6589 * expr.c: Likewise.
6590 * final.c: Likewise.
6591 * fixed-value.c: Likewise.
6592 * fold-const.c: Likewise.
6593 * function.c: Likewise.
6594 * fwprop.c: Likewise.
6595 * gcse.c: Likewise.
6596 * generic-match-head.c: Likewise.
6597 * ggc-common.c: Likewise.
6598 * gimple-builder.c: Likewise.
6599 * gimple-expr.c: Likewise.
6600 * gimple-fold.c: Likewise.
6601 * gimple-iterator.c: Likewise.
6602 * gimple-low.c: Likewise.
6603 * gimple-match-head.c: Likewise.
6604 * gimple-pretty-print.c: Likewise.
6605 * gimple-ssa-isolate-paths.c: Likewise.
6606 * gimple-ssa-strength-reduction.c: Likewise.
6607 * gimple-streamer-in.c: Likewise.
6608 * gimple-streamer-out.c: Likewise.
6609 * gimple-walk.c: Likewise.
6610 * gimple.c: Likewise.
6611 * gimplify-me.c: Likewise.
6612 * gimplify.c: Likewise.
6613 * godump.c: Likewise.
6614 * graph.c: Likewise.
6615 * graphds.c: Likewise.
6616 * haifa-sched.c: Likewise.
6617 * hw-doloop.c: Likewise.
6618 * ifcvt.c: Likewise.
6619 * init-regs.c: Likewise.
6620 * internal-fn.c: Likewise.
6621 * ipa-chkp.c: Likewise.
6622 * ipa-comdats.c: Likewise.
6623 * ipa-cp.c: Likewise.
6624 * ipa-devirt.c: Likewise.
6625 * ipa-icf-gimple.c: Likewise.
6626 * ipa-icf.c: Likewise.
6627 * ipa-inline-analysis.c: Likewise.
6628 * ipa-inline-transform.c: Likewise.
6629 * ipa-inline.c: Likewise.
6630 * ipa-polymorphic-call.c: Likewise.
6631 * ipa-profile.c: Likewise.
6632 * ipa-prop.c: Likewise.
6633 * ipa-pure-const.c: Likewise.
6634 * ipa-ref.c: Likewise.
6635 * ipa-reference.c: Likewise.
6636 * ipa-split.c: Likewise.
6637 * ipa-utils.c: Likewise.
6638 * ipa-visibility.c: Likewise.
6639 * ipa.c: Likewise.
6640 * ira-build.c: Likewise.
6641 * ira-color.c: Likewise.
6642 * ira-conflicts.c: Likewise.
6643 * ira-costs.c: Likewise.
6644 * ira-emit.c: Likewise.
6645 * ira-lives.c: Likewise.
6646 * ira.c: Likewise.
6647 * jump.c: Likewise.
6648 * langhooks.c: Likewise.
6649 * lcm.c: Likewise.
6650 * lists.c: Likewise.
6651 * loop-doloop.c: Likewise.
6652 * loop-init.c: Likewise.
6653 * loop-invariant.c: Likewise.
6654 * loop-iv.c: Likewise.
6655 * loop-unroll.c: Likewise.
6656 * lower-subreg.c: Likewise.
6657 * lra-assigns.c: Likewise.
6658 * lra-coalesce.c: Likewise.
6659 * lra-constraints.c: Likewise.
6660 * lra-eliminations.c: Likewise.
6661 * lra-lives.c: Likewise.
6662 * lra-remat.c: Likewise.
6663 * lra-spills.c: Likewise.
6664 * lra.c: Likewise.
6665 * lto-cgraph.c: Likewise.
6666 * lto-compress.c: Likewise.
6667 * lto-opts.c: Likewise.
6668 * lto-section-in.c: Likewise.
6669 * lto-section-out.c: Likewise.
6670 * lto-streamer-in.c: Likewise.
6671 * lto-streamer-out.c: Likewise.
6672 * lto-streamer.c: Likewise.
6673 * mcf.c: Likewise.
6674 * mode-switching.c: Likewise.
6675 * modulo-sched.c: Likewise.
6676 * optabs.c: Likewise.
6677 * opts-global.c: Likewise.
6678 * passes.c: Likewise.
6679 * plugin.c: Likewise.
6680 * postreload-gcse.c: Likewise.
6681 * postreload.c: Likewise.
6682 * predict.c: Likewise.
6683 * print-tree.c: Likewise.
6684 * profile.c: Likewise.
6685 * real.c: Likewise.
6686 * realmpfr.c: Likewise.
6687 * recog.c: Likewise.
6688 * ree.c: Likewise.
6689 * reg-stack.c: Likewise.
6690 * regcprop.c: Likewise.
6691 * reginfo.c: Likewise.
6692 * regrename.c: Likewise.
6693 * regstat.c: Likewise.
6694 * reload.c: Likewise.
6695 * reload1.c: Likewise.
6696 * reorg.c: Likewise.
6697 * resource.c: Likewise.
6698 * rtl-chkp.c: Likewise.
6699 * rtl-error.c: Likewise.
6700 * rtlanal.c: Likewise.
6701 * rtlhooks.c: Likewise.
6702 * sanopt.c: Likewise.
6703 * sched-deps.c: Likewise.
6704 * sched-ebb.c: Likewise.
6705 * sched-rgn.c: Likewise.
6706 * sdbout.c: Likewise.
6707 * sel-sched-dump.c: Likewise.
6708 * sel-sched-ir.c: Likewise.
6709 * sel-sched.c: Likewise.
6710 * sese.c: Likewise.
6711 * shrink-wrap.c: Likewise.
6712 * simplify-rtx.c: Likewise.
6713 * stack-ptr-mod.c: Likewise.
6714 * statistics.c: Likewise.
6715 * stmt.c: Likewise.
6716 * stor-layout.c: Likewise.
6717 * store-motion.c: Likewise.
6718 * stringpool.c: Likewise.
6719 * symtab.c: Likewise.
6720 * target-globals.c: Likewise.
6721 * targhooks.c: Likewise.
6722 * toplev.c: Likewise.
6723 * tracer.c: Likewise.
6724 * trans-mem.c: Likewise.
6725 * tree-affine.c: Likewise.
6726 * tree-call-cdce.c: Likewise.
6727 * tree-cfg.c: Likewise.
6728 * tree-cfgcleanup.c: Likewise.
6729 * tree-chkp-opt.c: Likewise.
6730 * tree-chkp.c: Likewise.
6731 * tree-chrec.c: Likewise.
6732 * tree-complex.c: Likewise.
6733 * tree-data-ref.c: Likewise.
6734 * tree-dfa.c: Likewise.
6735 * tree-diagnostic.c: Likewise.
6736 * tree-dump.c: Likewise.
6737 * tree-eh.c: Likewise.
6738 * tree-emutls.c: Likewise.
6739 * tree-if-conv.c: Likewise.
6740 * tree-inline.c: Likewise.
6741 * tree-into-ssa.c: Likewise.
6742 * tree-iterator.c: Likewise.
6743 * tree-loop-distribution.c: Likewise.
6744 * tree-nested.c: Likewise.
6745 * tree-nrv.c: Likewise.
6746 * tree-object-size.c: Likewise.
6747 * tree-outof-ssa.c: Likewise.
6748 * tree-parloops.c: Likewise.
6749 * tree-phinodes.c: Likewise.
6750 * tree-predcom.c: Likewise.
6751 * tree-pretty-print.c: Likewise.
6752 * tree-profile.c: Likewise.
6753 * tree-scalar-evolution.c: Likewise.
6754 * tree-sra.c: Likewise.
6755 * tree-ssa-address.c: Likewise.
6756 * tree-ssa-alias.c: Likewise.
6757 * tree-ssa-ccp.c: Likewise.
6758 * tree-ssa-coalesce.c: Likewise.
6759 * tree-ssa-copy.c: Likewise.
6760 * tree-ssa-dce.c: Likewise.
6761 * tree-ssa-dse.c: Likewise.
6762 * tree-ssa-forwprop.c: Likewise.
6763 * tree-ssa-ifcombine.c: Likewise.
6764 * tree-ssa-live.c: Likewise.
6765 * tree-ssa-loop-ch.c: Likewise.
6766 * tree-ssa-loop-im.c: Likewise.
6767 * tree-ssa-loop-ivcanon.c: Likewise.
6768 * tree-ssa-loop-ivopts.c: Likewise.
6769 * tree-ssa-loop-manip.c: Likewise.
6770 * tree-ssa-loop-niter.c: Likewise.
6771 * tree-ssa-loop-prefetch.c: Likewise.
6772 * tree-ssa-loop-unswitch.c: Likewise.
6773 * tree-ssa-loop.c: Likewise.
6774 * tree-ssa-math-opts.c: Likewise.
6775 * tree-ssa-operands.c: Likewise.
6776 * tree-ssa-phiopt.c: Likewise.
6777 * tree-ssa-phiprop.c: Likewise.
6778 * tree-ssa-pre.c: Likewise.
6779 * tree-ssa-propagate.c: Likewise.
6780 * tree-ssa-reassoc.c: Likewise.
6781 * tree-ssa-scopedtables.c: Likewise.
6782 * tree-ssa-sink.c: Likewise.
6783 * tree-ssa-strlen.c: Likewise.
6784 * tree-ssa-structalias.c: Likewise.
6785 * tree-ssa-tail-merge.c: Likewise.
6786 * tree-ssa-ter.c: Likewise.
6787 * tree-ssa-threadupdate.c: Likewise.
6788 * tree-ssa-uncprop.c: Likewise.
6789 * tree-ssa-uninit.c: Likewise.
6790 * tree-ssa.c: Likewise.
6791 * tree-ssanames.c: Likewise.
6792 * tree-stdarg.c: Likewise.
6793 * tree-streamer-in.c: Likewise.
6794 * tree-streamer-out.c: Likewise.
6795 * tree-streamer.c: Likewise.
6796 * tree-switch-conversion.c: Likewise.
6797 * tree-tailcall.c: Likewise.
6798 * tree-vect-data-refs.c: Likewise.
6799 * tree-vect-generic.c: Likewise.
6800 * tree-vect-loop-manip.c: Likewise.
6801 * tree-vect-loop.c: Likewise.
6802 * tree-vect-patterns.c: Likewise.
6803 * tree-vect-slp.c: Likewise.
6804 * tree-vect-stmts.c: Likewise.
6805 * tree-vectorizer.c: Likewise.
6806 * tree-vrp.c: Likewise.
6807 * tree.c: Likewise.
6808 * tsan.c: Likewise.
6809 * ubsan.c: Likewise.
6810 * value-prof.c: Likewise.
6811 * var-tracking.c: Likewise.
6812 * varasm.c: Likewise.
6813 * varpool.c: Likewise.
6814 * vmsdbgout.c: Likewise.
6815 * vtable-verify.c: Likewise.
6816 * web.c: Likewise.
6817 * wide-int-print.cc: Likewise.
6818 * wide-int.cc: Likewise.
6819 * xcoffout.c: Likewise.
6820
6821 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
6822
6823 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6824 between pass numbering and execution order.
6825
6826 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6827
6828 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6829 check for dependencies.
6830
6831 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6832
6833 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6834 CDI_DOMINATORS.
6835
6836 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6837
6838 * real.h (format_helper): New.
6839 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6840 (real_from_target, real_nan, real_2expN, real_value_truncate)
6841 (significand_size, real_from_string2, exact_real_inverse)
6842 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6843 (real_round, real_isinteger, real_from_integer): Replace
6844 machine_mode arguments with format_helper arguments.
6845 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6846 (real_from_integer, real_nan, real_2expN, real_convert)
6847 (real_value_truncate, exact_real_truncate, real_to_target)
6848 (real_from_target, significand_size, real_powi, real_trunc)
6849 (real_floor, real_ceil, real_round, real_isinteger): Replace
6850 machine_mode arguments with format_helper arguments.
6851 (real_to_target_fmt, real_from_target_fmt): Delete.
6852 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6853 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6854 argument with real_format.
6855 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6856
6857 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6858
6859 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6860 (fixed_to_decimal, fixed_convert_from_real)
6861 (real_convert_from_fixed): Fix mode arguments to real_2expN.
6862
6863 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6864
6865 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6866 SCALAR_FLOAT_MODE_P.
6867
6868 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6869
6870 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6871 (completely_scalarize): Comment zero-length arrays.
6872 (get_access_replacement): Correct comment re. precondition.
6873
6874 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6875
6876 * config/i386/i386.c (get_builtin_code_for_version): Set priority
6877 for PROCESSOR_ZNVER1.
6878 (enum processor_model): Add M_AMDFAM17H_znver1.
6879 (struct arch_names_table): Likewise.
6880 * doc/extend.texi: ADD znver1.
6881
6882 2015-10-30 Richard Biener <rguenther@suse.de>
6883
6884 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6885 fold () on single RHSs. Allow CONSTRUCTORS with trailing
6886 zeros to be folded to VECTOR_CSTs.
6887 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6888 * fold-const.c (fold): Use build_vector_from_ctor.
6889
6890 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
6891
6892 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6893 "mov %0.h[0], %1.h[0] to "neon_move".
6894 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6895 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6896 "mov_imm".
6897 (*cmovsi_insn_uxtw): Likewise.
6898
6899 2015-10-30 Tom de Vries <tom@codesourcery.com>
6900
6901 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6902 unsigned, and initialize, and use initial value instead of hardcoded
6903 constant. Add generic constraints dumping section. Don't dump global
6904 initializers constraints dumping section if empty. Don't update
6905 variable from if unused.
6906
6907 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6908
6909 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6910 flag_checking and/or CHECKING_P to eliminate conditional compilation
6911 on ENABLE_CHECKING.
6912 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6913 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6914 * config/i386/i386.c (ix86_print_operand_address): Likewise.
6915 (output_387_binary_op): Likewise.
6916 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6917 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6918 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6919 Likewise.
6920 * config/rs6000/rs6000.h: Likewise.
6921 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6922
6923 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
6924
6925 * config/sh/sh.opt (mfdpic): Add missing period.
6926
6927 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6928
6929 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6930 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6931 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6932 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6933 mcore_base_register_rtx_p, mcore_legitimate_index_p,
6934 mcore_legitimate_address_p): New functions.
6935 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6936
6937 2015-10-29 Jeff Law <law@redhat.com>
6938
6939 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6940 method.
6941 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6942 * tree-ssa-threadedge.c
6943 (record_temporary_equivalences_from_stmts_at_dest): Remove
6944 backedge_seen argument and associated code which invalidated
6945 equivalences based on the value of that argument.
6946 (thread_through_normal_block): Corresponding changes.
6947
6948 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6949
6950 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6951 function earlier in the file.
6952 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6953 df_regs_ever_live_p.
6954
6955 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6956
6957 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6958 by ignoring it.
6959
6960 2015-10-29 Richard Henderson <rth@redhat.com>
6961
6962 PR target/68124
6963 PR rtl-opt/67609
6964 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6965 sse check to the exact conditions of PR 67609.
6966
6967 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6968
6969 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6970 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6971 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6972 of the traditional names that TFmode uses for handling IEEE
6973 extended double. If -mfloat128, add KFmode functions for all of
6974 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6975 make TFmode use the same emulation functions as KFmode.
6976 (init_float128_ibm): Likewise.
6977 (init_float128_ieee): Likewise.
6978 (rs6000_generate_compare): For IEEE 128-bit floating point
6979 comparisons, call the unordered comparison function instead of the
6980 ordered comparison function.
6981 (rs6000_expand_float128_convert): Deal with operands that are
6982 memory operands. Restructure the code to use a switch statement on
6983 the mode. Add support for TFmode defaulting to either IBM extended
6984 double or IEEE 128-bit floating point. If the underlying types are
6985 the same, use a move instead of a conversion function.
6986 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6987 use for IEEE 128-bit floating point constants with -mfloat128.
6988 (rs6000_c_mode_for_suffix): Likewise.
6989 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6990 128-bit floating point with IBM extended double floating point.
6991 (rs6000_invalid_binary_op): Likewise.
6992 (rs6000_gen_le_vsx_permute): On little endian systems generate a
6993 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6994 types that can go in vector registers.
6995 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6996 point types that can go in vector registers on little endian
6997 PowerPC systems.
6998 (mark_swaps_for_removal): Likewise.
6999 (rs6000_analyze_swaps): Likewise.
7000 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7001
7002 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7003 rework IEEE 128-bit floating point insns to deal with TFmode being
7004 either IBM extended double or IEEE 128-bit floating point.
7005 (IFKF): Likewise.
7006 (IBM128): Update iterator to add condition that the mode is IBM
7007 extended double.
7008 (IEEE128): New iterator for IEEE 128-bit floating point.
7009 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7010 (FLOAT128): Likewise.
7011 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7012 iterator.
7013 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7014 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7015 instead of hard coding TFmode or KFmode.
7016 (negtf2_internal): Likewise.
7017 (neg<mode>2_internal): Likewise.
7018 (abs<mode>2): Likewise.
7019 (abstf2_internal): Likewise.
7020 (abs<mode>2_internal): Likewise.
7021 (ieee_128bit_neg<mode>2): Likewise.
7022 (ieee_128bit_neg<mode>2_internal): Likewise.
7023 (ieee_128bit_abs<mode>2): Likewise.
7024 (ieee_128bit_abs<mode>2_internal): Likewise.
7025 (ieee_128bit_nabs<mode>2): Likewise.
7026 (ieee_128bit_nabs<mode>2_internal): Likewise.
7027 (extendiftf2): Add explicit conversions between 128-bit floating
7028 point types. Drop the old conversions that had become unwieldy.
7029 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7030 (extendifkf2): Likewise.
7031 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7032 (extendtfkf2): Likewise.
7033 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7034 (trunciftf2): Likewise.
7035 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7036 (truncifkf2): Likewise.
7037 (float<SDI:mode><IFKF:mode>2): Likewise.
7038 (trunckftf2): Likewise.
7039 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7040 (trunctfif2): Likewise.
7041 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7042 (extenddftf2): Rework 128-bit floating point conversions to
7043 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7044 KFmode expanders into one function.
7045 (extenddf<mode>2): Likewise.
7046 (extenddftf2_fprs): Likewise.
7047 (extenddf<mode>2_fprs): Likewise.
7048 (extenddftf2_vsx): Likewise.
7049 (extenddf<mode>2_vsx): Likewise.
7050 (extendsftf2): Likewise.
7051 (extendsf<mode>2): Likewise.
7052 (trunctfdf2): Likewise.
7053 (trunc<mode>df2): Likewise.
7054 (trunctfdf2_internal1): Likewise.
7055 (trunc<mode>df2_internal1): Likewise.
7056 (trunctfdf2_internal2): Likewise.
7057 (trunc<mode>df2_internal2): Likewise.
7058 (trunctfsf2): Likewise.
7059 (trunc<mode>sf2): Likewise.
7060 (trunctfsf2_fprs): Likewise.
7061 (trunc<mode>sf2_fprs): Likewise.
7062 (floatsit2f): Likewise.
7063 (floatsi<mode>2): Likewise.
7064 (fix_trunc_helper): Likewise.
7065 (fix_trunc_helper<mode>): Likewise.
7066 (fix_trunctfsi2): Likewise.
7067 (fix_trunc<mode>si2): Likewise.
7068 (fix_trunctfsi2_fprs): Likewise.
7069 (fix_trunc<mode>si2_fprs): Likewise.
7070 (fix_trunctfsi2_internal): Likewise.
7071 (fix_trunc<mode>si2_internal): Likewise.
7072 (fix_trunctfdi2): Likewise.
7073 (fix_trunc<mode>di2): Likewise.
7074 (fixuns_trunctf<mode>2): Likewise.
7075 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7076 (floatditf2): Likewise.
7077 (floatdi<mode>2): Likewise.
7078 (floatuns<mode>tf2): Likewise.
7079 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7080 (cmptf_internal1): Use a mode iterator to add support for both
7081 types (IFmode, TFmode) that support IBM extended double.
7082 (cmp<mode>_internal1): Likewise.
7083 (cmptf_internal2): Likewise.
7084 (cmp<mode>_internal2): Likewise.
7085
7086 * doc/extend.texi (Floating Types): Document __ibm128 and
7087 __float128 on PowerPC.
7088
7089 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7090 -mfloat128 and -mno-float128.
7091
7092 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7093
7094 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7095 floating point modes that can go in vector registers.
7096 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7097 scalar floating point, so that IEEE 128-bit floating point that
7098 can go in vector registers bind with vectors and not FP.
7099 (struct rs6000_args): Add libcall field.
7100
7101 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7102 and -mfloat128-software switches. Replace them with a binary
7103 -mfloat128 switch.
7104 (-mfloat128): Likewise.
7105
7106 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7107 128-bit floating point types in GPRs, even if the appropriate
7108 option enabling the type was not used.
7109 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7110 debugging.
7111 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7112 pre-decrement on IEEE 128-bit floating point values.
7113 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7114 is IEEE 128-bit floating point.
7115 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7116 128-bit floating point types that can go in vector registers.
7117 (rs6000_option_override_internal): Change -mfloat128-none and
7118 -mfloat128-software to -mfloat128, and move code to be near other
7119 VSX option handling.
7120 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7121 have the Altivec ABI.
7122 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7123 KFmode floating point nodes. Instead, have three separate nodes.
7124 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7125 eventually moving the long double default to IEEE 128-bit floating
7126 point.
7127 (rs6000_opt_masks): Add -mfloat128.
7128 (struct rs6000_opt_var): Fix typo in comment.
7129 (init_cumulative_args): Initialize libcall field in
7130 CUMULATIVE_ARGS.
7131 (rs6000_function_arg): Treat library functions as if they had
7132 prototypes to prevent IEEE 128-bit support functions from passing
7133 arguments in both GPRs and vector registers.
7134 (rs6000_arg_partial_bytes): Likewise.
7135
7136 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7137 an option that can be turned on via -mcpu=<xxx>.
7138
7139 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7140 longer used.
7141
7142 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7143 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7144 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7145 double is IBM extended double.
7146
7147 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7148 SUBREGs.
7149
7150 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7151
7152 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7153 * genconditions.c: Define CHECKING_P in the generated code.
7154 * genextract.c: Use flag_checking in insn_extract.
7155 * gengtype.c (main): Remove conditional compilation.
7156 * gengtype.h: Likewise.
7157
7158 2015-10-29 Jeff Law <law@redhat.com>
7159
7160 PR tree-optimization/67892
7161 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7162 in comment.
7163 (thread_through_normal_block): If we have seen a backedge, then
7164 do nothing. No longer call find_jump_threads_backwards here.
7165 (thread_across_edge): Use find_jump_threads_backwards to find
7166 jump threads if the old style threader was not successful.
7167 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7168 gsi_last_nondebug_bb. Return NULL if the block does not end
7169 with a control statement.
7170 (find_jump_threads_backwards): Setup code moved here from
7171 tree-ssa-threadedge.c::thread_through_normal_block. Accept
7172 single edge argument instead of name & block.
7173 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7174 prototype.
7175
7176 2015-10-29 Tom de Vries <tom@codesourcery.com>
7177
7178 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7179 types.
7180
7181 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7182
7183 * omp-low.c (lower_omp_target): Remove unreachable code & merge
7184 ifs.
7185
7186 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
7187
7188 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7189
7190 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7191
7192 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7193 guard_bb0 and use guard_bb throughout.
7194
7195 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7196
7197 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7198 unnecessary label.
7199
7200 2015-10-29 Richard Biener <rguenther@suse.de>
7201
7202 PR middle-end/68142
7203 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7204 overflow.
7205
7206 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7207
7208 * alias.c: Reorder #include statements and remove duplicates.
7209 * asan.c: Likewise.
7210 * attribs.c: Likewise.
7211 * auto-inc-dec.c: Likewise.
7212 * auto-profile.c: Likewise.
7213 * bb-reorder.c: Likewise.
7214 * bt-load.c: Likewise.
7215 * builtins.c: Likewise.
7216 * caller-save.c: Likewise.
7217 * calls.c: Likewise.
7218 * ccmp.c: Likewise.
7219 * cfg.c: Likewise.
7220 * cfganal.c: Likewise.
7221 * cfgbuild.c: Likewise.
7222 * cfgcleanup.c: Likewise.
7223 * cfgexpand.c: Likewise.
7224 * cfghooks.c: Likewise.
7225 * cfgloop.c: Likewise.
7226 * cfgloopanal.c: Likewise.
7227 * cfgloopmanip.c: Likewise.
7228 * cfgrtl.c: Likewise.
7229 * cgraph.c: Likewise.
7230 * cgraphbuild.c: Likewise.
7231 * cgraphclones.c: Likewise.
7232 * cgraphunit.c: Likewise.
7233 * cilk-common.c: Likewise.
7234 * combine-stack-adj.c: Likewise.
7235 * combine.c: Likewise.
7236 * compare-elim.c: Likewise.
7237 * convert.c: Likewise.
7238 * coverage.c: Likewise.
7239 * cppbuiltin.c: Likewise.
7240 * cprop.c: Likewise.
7241 * cse.c: Likewise.
7242 * cselib.c: Likewise.
7243 * data-streamer-in.c: Likewise.
7244 * data-streamer-out.c: Likewise.
7245 * data-streamer.c: Likewise.
7246 * dbxout.c: Likewise.
7247 * dce.c: Likewise.
7248 * ddg.c: Likewise.
7249 * debug.c: Likewise.
7250 * df-core.c: Likewise.
7251 * df-problems.c: Likewise.
7252 * df-scan.c: Likewise.
7253 * dfp.c: Likewise.
7254 * dojump.c: Likewise.
7255 * dominance.c: Likewise.
7256 * double-int.c: Likewise.
7257 * dse.c: Likewise.
7258 * dumpfile.c: Likewise.
7259 * dwarf2asm.c: Likewise.
7260 * dwarf2cfi.c: Likewise.
7261 * dwarf2out.c: Likewise.
7262 * emit-rtl.c: Likewise.
7263 * except.c: Likewise.
7264 * explow.c: Likewise.
7265 * expmed.c: Likewise.
7266 * expr.c: Likewise.
7267 * final.c: Likewise.
7268 * fixed-value.c: Likewise.
7269 * fold-const.c: Likewise.
7270 * function.c: Likewise.
7271 * fwprop.c: Likewise.
7272 * gcse.c: Likewise.
7273 * generic-match-head.c: Likewise.
7274 * ggc-common.c: Likewise.
7275 * gimple-builder.c: Likewise.
7276 * gimple-expr.c: Likewise.
7277 * gimple-fold.c: Likewise.
7278 * gimple-iterator.c: Likewise.
7279 * gimple-low.c: Likewise.
7280 * gimple-match-head.c: Likewise.
7281 * gimple-pretty-print.c: Likewise.
7282 * gimple-ssa-isolate-paths.c: Likewise.
7283 * gimple-ssa-strength-reduction.c: Likewise.
7284 * gimple-streamer-in.c: Likewise.
7285 * gimple-streamer-out.c: Likewise.
7286 * gimple-walk.c: Likewise.
7287 * gimple.c: Likewise.
7288 * gimplify-me.c: Likewise.
7289 * gimplify.c: Likewise.
7290 * godump.c: Likewise.
7291 * graph.c: Likewise.
7292 * graphite-poly.c: Likewise.
7293 * haifa-sched.c: Likewise.
7294 * hw-doloop.c: Likewise.
7295 * ifcvt.c: Likewise.
7296 * incpath.c: Likewise.
7297 * init-regs.c: Likewise.
7298 * internal-fn.c: Likewise.
7299 * ipa-chkp.c: Likewise.
7300 * ipa-comdats.c: Likewise.
7301 * ipa-cp.c: Likewise.
7302 * ipa-devirt.c: Likewise.
7303 * ipa-icf-gimple.c: Likewise.
7304 * ipa-icf.c: Likewise.
7305 * ipa-inline-analysis.c: Likewise.
7306 * ipa-inline-transform.c: Likewise.
7307 * ipa-inline.c: Likewise.
7308 * ipa-polymorphic-call.c: Likewise.
7309 * ipa-profile.c: Likewise.
7310 * ipa-prop.c: Likewise.
7311 * ipa-pure-const.c: Likewise.
7312 * ipa-ref.c: Likewise.
7313 * ipa-reference.c: Likewise.
7314 * ipa-split.c: Likewise.
7315 * ipa-utils.c: Likewise.
7316 * ipa-visibility.c: Likewise.
7317 * ipa.c: Likewise.
7318 * ira-build.c: Likewise.
7319 * ira-color.c: Likewise.
7320 * ira-conflicts.c: Likewise.
7321 * ira-costs.c: Likewise.
7322 * ira-emit.c: Likewise.
7323 * ira-lives.c: Likewise.
7324 * ira.c: Likewise.
7325 * jump.c: Likewise.
7326 * langhooks.c: Likewise.
7327 * lcm.c: Likewise.
7328 * lists.c: Likewise.
7329 * loop-doloop.c: Likewise.
7330 * loop-init.c: Likewise.
7331 * loop-invariant.c: Likewise.
7332 * loop-iv.c: Likewise.
7333 * loop-unroll.c: Likewise.
7334 * lower-subreg.c: Likewise.
7335 * lra-assigns.c: Likewise.
7336 * lra-coalesce.c: Likewise.
7337 * lra-constraints.c: Likewise.
7338 * lra-eliminations.c: Likewise.
7339 * lra-lives.c: Likewise.
7340 * lra-remat.c: Likewise.
7341 * lra-spills.c: Likewise.
7342 * lra.c: Likewise.
7343 * lto-cgraph.c: Likewise.
7344 * lto-compress.c: Likewise.
7345 * lto-opts.c: Likewise.
7346 * lto-section-in.c: Likewise.
7347 * lto-section-out.c: Likewise.
7348 * lto-streamer-in.c: Likewise.
7349 * lto-streamer-out.c: Likewise.
7350 * lto-streamer.c: Likewise.
7351 * mode-switching.c: Likewise.
7352 * modulo-sched.c: Likewise.
7353 * omp-low.c: Likewise.
7354 * optabs.c: Likewise.
7355 * opts-global.c: Likewise.
7356 * passes.c: Likewise.
7357 * plugin.c: Likewise.
7358 * postreload-gcse.c: Likewise.
7359 * postreload.c: Likewise.
7360 * predict.c: Likewise.
7361 * print-tree.c: Likewise.
7362 * profile.c: Likewise.
7363 * real.c: Likewise.
7364 * realmpfr.c: Likewise.
7365 * recog.c: Likewise.
7366 * ree.c: Likewise.
7367 * reg-stack.c: Likewise.
7368 * regcprop.c: Likewise.
7369 * reginfo.c: Likewise.
7370 * regrename.c: Likewise.
7371 * regstat.c: Likewise.
7372 * reload.c: Likewise.
7373 * reload1.c: Likewise.
7374 * reorg.c: Likewise.
7375 * resource.c: Likewise.
7376 * rtl-chkp.c: Likewise.
7377 * rtl-error.c: Likewise.
7378 * rtlanal.c: Likewise.
7379 * rtlhooks.c: Likewise.
7380 * sanopt.c: Likewise.
7381 * sched-deps.c: Likewise.
7382 * sched-ebb.c: Likewise.
7383 * sched-rgn.c: Likewise.
7384 * sese.c: Likewise.
7385 * shrink-wrap.c: Likewise.
7386 * simplify-rtx.c: Likewise.
7387 * stack-ptr-mod.c: Likewise.
7388 * statistics.c: Likewise.
7389 * stmt.c: Likewise.
7390 * stor-layout.c: Likewise.
7391 * store-motion.c: Likewise.
7392 * stringpool.c: Likewise.
7393 * symtab.c: Likewise.
7394 * target-globals.c: Likewise.
7395 * targhooks.c: Likewise.
7396 * toplev.c: Likewise.
7397 * tracer.c: Likewise.
7398 * trans-mem.c: Likewise.
7399 * tree-affine.c: Likewise.
7400 * tree-call-cdce.c: Likewise.
7401 * tree-cfg.c: Likewise.
7402 * tree-cfgcleanup.c: Likewise.
7403 * tree-chkp-opt.c: Likewise.
7404 * tree-chkp.c: Likewise.
7405 * tree-chrec.c: Likewise.
7406 * tree-complex.c: Likewise.
7407 * tree-data-ref.c: Likewise.
7408 * tree-dfa.c: Likewise.
7409 * tree-diagnostic.c: Likewise.
7410 * tree-dump.c: Likewise.
7411 * tree-eh.c: Likewise.
7412 * tree-emutls.c: Likewise.
7413 * tree-if-conv.c: Likewise.
7414 * tree-inline.c: Likewise.
7415 * tree-into-ssa.c: Likewise.
7416 * tree-iterator.c: Likewise.
7417 * tree-loop-distribution.c: Likewise.
7418 * tree-nested.c: Likewise.
7419 * tree-nrv.c: Likewise.
7420 * tree-object-size.c: Likewise.
7421 * tree-outof-ssa.c: Likewise.
7422 * tree-parloops.c: Likewise.
7423 * tree-phinodes.c: Likewise.
7424 * tree-predcom.c: Likewise.
7425 * tree-pretty-print.c: Likewise.
7426 * tree-profile.c: Likewise.
7427 * tree-scalar-evolution.c: Likewise.
7428 * tree-sra.c: Likewise.
7429 * tree-ssa-address.c: Likewise.
7430 * tree-ssa-alias.c: Likewise.
7431 * tree-ssa-ccp.c: Likewise.
7432 * tree-ssa-coalesce.c: Likewise.
7433 * tree-ssa-copy.c: Likewise.
7434 * tree-ssa-dce.c: Likewise.
7435 * tree-ssa-dom.c: Likewise.
7436 * tree-ssa-dse.c: Likewise.
7437 * tree-ssa-forwprop.c: Likewise.
7438 * tree-ssa-ifcombine.c: Likewise.
7439 * tree-ssa-live.c: Likewise.
7440 * tree-ssa-loop-ch.c: Likewise.
7441 * tree-ssa-loop-im.c: Likewise.
7442 * tree-ssa-loop-ivcanon.c: Likewise.
7443 * tree-ssa-loop-ivopts.c: Likewise.
7444 * tree-ssa-loop-manip.c: Likewise.
7445 * tree-ssa-loop-niter.c: Likewise.
7446 * tree-ssa-loop-prefetch.c: Likewise.
7447 * tree-ssa-loop-unswitch.c: Likewise.
7448 * tree-ssa-loop.c: Likewise.
7449 * tree-ssa-math-opts.c: Likewise.
7450 * tree-ssa-operands.c: Likewise.
7451 * tree-ssa-phiopt.c: Likewise.
7452 * tree-ssa-phiprop.c: Likewise.
7453 * tree-ssa-pre.c: Likewise.
7454 * tree-ssa-propagate.c: Likewise.
7455 * tree-ssa-reassoc.c: Likewise.
7456 * tree-ssa-sccvn.c: Likewise.
7457 * tree-ssa-scopedtables.c: Likewise.
7458 * tree-ssa-sink.c: Likewise.
7459 * tree-ssa-strlen.c: Likewise.
7460 * tree-ssa-structalias.c: Likewise.
7461 * tree-ssa-tail-merge.c: Likewise.
7462 * tree-ssa-ter.c: Likewise.
7463 * tree-ssa-threadedge.c: Likewise.
7464 * tree-ssa-threadupdate.c: Likewise.
7465 * tree-ssa-uncprop.c: Likewise.
7466 * tree-ssa-uninit.c: Likewise.
7467 * tree-ssa.c: Likewise.
7468 * tree-ssanames.c: Likewise.
7469 * tree-stdarg.c: Likewise.
7470 * tree-streamer-in.c: Likewise.
7471 * tree-streamer-out.c: Likewise.
7472 * tree-streamer.c: Likewise.
7473 * tree-switch-conversion.c: Likewise.
7474 * tree-tailcall.c: Likewise.
7475 * tree-vect-data-refs.c: Likewise.
7476 * tree-vect-generic.c: Likewise.
7477 * tree-vect-loop-manip.c: Likewise.
7478 * tree-vect-loop.c: Likewise.
7479 * tree-vect-patterns.c: Likewise.
7480 * tree-vect-slp.c: Likewise.
7481 * tree-vect-stmts.c: Likewise.
7482 * tree-vectorizer.c: Likewise.
7483 * tree-vrp.c: Likewise.
7484 * tree.c: Likewise.
7485 * tsan.c: Likewise.
7486 * ubsan.c: Likewise.
7487 * value-prof.c: Likewise.
7488 * var-tracking.c: Likewise.
7489 * varasm.c: Likewise.
7490 * varpool.c: Likewise.
7491 * vtable-verify.c: Likewise.
7492 * web.c: Likewise.
7493 * wide-int-print.cc: Likewise.
7494 * wide-int.cc: Likewise.
7495 * xcoffout.c: Likewise.
7496
7497 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
7498
7499 * Makefile.in (NO_PIE_CFLAGS): New.
7500 (NO_PIE_FLAG): Likewise.
7501 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7502 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7503 (BUILD_NO_PIE_CFLAGS): Likewise.
7504 (BUILD_NO_PIE_FLAG): Likewise.
7505 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7506 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7507 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7508 $(BUILD_NO_PIE_CFLAGS).
7509 (BUILD_CXXFLAGS): Likewise.
7510 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7511 $(BUILD_NO_PIE_FLAG).
7512 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
7513 (BUILD_NO_PIE_FLAG): Likewise.
7514 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7515 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7516 * configure: Regenerated.
7517
7518 2015-10-29 Richard Biener <rguenther@suse.de>
7519
7520 PR middle-end/56956
7521 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7522 unsigned conditonal negation to ABS_EXPR.
7523
7524 2015-10-29 Richard Biener <rguenther@suse.de>
7525
7526 * gimple-match-head.c (gimple_simplify): Remove premature checking
7527 of builtin_decl_implicit of function calls we simplify.
7528
7529 2015-10-29 Bin Cheng <bin.cheng@arm.com>
7530
7531 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7532 (get_computation_cost_at): Ditto.
7533 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7534 and inv_expr_id.
7535
7536 2015-10-28 Tom de Vries <tom@codesourcery.com>
7537
7538 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7539 superfluous code.
7540
7541 2015-10-28 Jason Merrill <jason@redhat.com>
7542
7543 * Makefile.in (TAGS): Include libcpp and libiberty.
7544
7545 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7546
7547 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7548 (extract_omp_for_data): Remove OpenACC special handling of
7549 chunking.
7550
7551 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7552 (struct parallel): Update comment.
7553 (nvptx_reorg): Likewise.
7554 (nvptx_neuter): Cleanup whitespace.
7555
7556 2015-10-28 Richard Henderson <rth@redhat.com>
7557
7558 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7559
7560 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7561
7562 PR target/67839
7563 * config/avr/predicates.md (low_io_address_operand): Don't
7564 consider MODE when computing upper bound.
7565 (io_address_operand): Likewise.
7566
7567 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
7568
7569 * fold-const.c (operand_equal_p): Do not verify that types are
7570 compatible for MEM_REFs.
7571
7572 2015-10-28 Richard Biener <rguenther@suse.de>
7573
7574 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7575 in simplifying VEC_COND_EXPR conditions.
7576
7577 2015-10-28 Tom de Vries <tom@codesourcery.com>
7578
7579 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7580 into vi_next of a full_var.
7581
7582 2015-10-28 Tom de Vries <tom@codesourcery.com>
7583
7584 * tree-ssa-structalias.c (new_var_info, make_heapvar)
7585 (make_constraint_from_restrict, make_constraint_from_global_restrict)
7586 (create_function_info_for, create_variable_info_for_1)
7587 (create_variable_info_for): Add and handle add_id parameter.
7588 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7589 (init_base_vars): Add extra argument to calls to new_var_info.
7590 (get_vi_for_tree): Add extra argument to call to
7591 create_variable_info_for.
7592 (process_constraint, do_deref, process_all_all_constraints): Add extra
7593 argument to calls to new_scalar_tmp_constraint_exp.
7594 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7595 argument to calls to make_heapvar.
7596 (make_restrict_var_constraints): Add extra argument to call to
7597 make_constraint_from_global_restrict.
7598 (intra_create_variable_infos): Add extra argument to call to
7599 create_variable_info_for_1.
7600 (ipa_pta_execute): Add extra argument to call to
7601 create_function_info_for.
7602
7603 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7604
7605 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7606 (sibcall_value): Likewise.
7607
7608 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7609
7610 * config/nvptx/nvptx.h (struct machine_function): Add
7611 axis_predicate.
7612 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7613 nvptx_expand_oacc_join): Declare.
7614 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7615 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7616 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7617 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7618 UNSPECV_JOINING, UNSPECV_JOIN): New.
7619 (BITS, BITD): New mode iterators.
7620 (br_true_uni, br_false_uni): New.
7621 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7622 (oacc_dim_size, oacc_dim_pos): New.
7623 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7624 (oacc_fork, oacc_join): New.
7625 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7626 (worker_load<mode>, worker_store<mode>): New.
7627 (nvptx_barsync): New.
7628 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7629 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7630 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7631 worker_bcast_sym): New.
7632 (nvptx_option_override): Initialize worker broadcast buffer.
7633 (nvptx_emit_forking, nvptx_emit_joining): New.
7634 (nvptx_init_axis_predicate): New.
7635 (nvptx_declare_function_name): Init axis predicates.
7636 (nvptx_expand_call): Add fork/join markers around routine call.
7637 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7638 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7639 (nvptx_gen_vcast): New.
7640 (struct wcast_data_t): New.
7641 (enum propagate_mask): New.
7642 (nvptx_gen_wcast): New.
7643 (nvptx_print_operand): Add 'S' case.
7644 (struct parallel): New.
7645 (parallel::parallel, parallel::~parallel): New.
7646 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7647 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7648 nvptx_find_par, nvptx_discover_pars): New.
7649 (nvptx_propagate): New.
7650 (vprop_gen, nvptx_vpropagate): New.
7651 (wprop_gen, nvptx_wpropagate): New.
7652 (nvptx_wsync): New.
7653 (nvptx_single, nvptx_skip_par): New.
7654 (nvptx_process_pars, nvptx_neuter_pars): New.
7655 (ntptx_reorg): Split blocks, generate parallel structure, apply
7656 neutering.
7657 (nvptx_cannot_copy_insn_p): New.
7658 (nvptx_file_end): Emit worker broadcast decl.
7659 (nvptx_goacc_fork_join): New.
7660 (TARGET_CANNOT_COPY_INSN_P): Override.
7661 (TARGET_GOACC_FORK_JOIN): Override.
7662
7663 2015-10-28 Richard Biener <rguenther@suse.de>
7664
7665 * fold-const.c (negate_expr_p): Adjust the division case to
7666 properly avoid introducing undefined overflow.
7667 (fold_negate_expr): Likewise.
7668
7669 2015-10-28 Richard Biener <rguenther@suse.de>
7670
7671 PR tree-optimization/65962
7672 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7673 Avoid creating loop carried dependences also for outer loops
7674 of the loop a use to replace is in.
7675
7676 2015-10-28 Richard Biener <rguenther@suse.de>
7677
7678 * common.opt (fchecking): New flag controlling flag_checking.
7679 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
7680 * timevar.c (timer::print): Adjust output.
7681 * doc/invoke.texi (fchecking): Document.
7682
7683 2015-10-28 Richard Biener <rguenther@suse.de>
7684
7685 PR middle-end/68067
7686 * fold-const.c (negate_expr_p): We cannot negate plus or minus
7687 if overflow is not wrapping. Likewise multiplication unless
7688 one operand is constant and not power of two.
7689 (fold_negate_expr): Adjust accordingly.
7690
7691 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7692
7693 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7694 fields.
7695 (is_oacc_parallel, is_oacc_kernels): New.
7696 (enclosing_target_ctx): May return NULL.
7697 (ctx_in_oacc_kernels_region): New.
7698 (check_oacc_kernel_gwv): New.
7699 (oacc_loop_or_target_p): Delete.
7700 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
7701 operands. Strip reductions fro kernels.
7702 (scan_omp_target): Don't calculate gwv mask.
7703 (lower_oacc_head_mark, lower_oacc_loop_marker,
7704 lower_oacc_head_tail): New.
7705 (struct oacc_collapse): New.
7706 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7707 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7708 Remove OpenACC handling.
7709 (expand_oacc_for): New.
7710 (expand_omp_for): Call expand_oacc_for.
7711 (lower_omp_for): Call lower_oacc_head_tail.
7712
7713 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
7714
7715 * attribs.c (check_attribute_tables): New function, broken out from...
7716 (init_attributes): Use it.
7717 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7718 gcc_checking_assert and checking_* functions to eliminate
7719 ENABLE_CHECKING conditionals.
7720 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7721 (pass_expand::execute): Likewise.
7722 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7723 * cgraphunit.c (mark_functions_to_output): Likewise.
7724 (cgraph_node::expand_thunk): Likewise.
7725 (symbol_table::compile): Likewise.
7726 * ddg.c (add_cross_iteration_register_deps): Likewise.
7727 (create_ddg_all_sccs): Likewise.
7728 * df-core.c (df_finish_pass, df_analyze): Likewise.
7729 * diagnostic-core.h: Likewise.
7730 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7731 * dominance.c (calculate_dominance_info): Likewise.
7732 * dwarf2out.c (add_AT_die_ref): Likewise.
7733 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7734 (loc_list_from_tree, gen_lexical_block_die): Likewise.
7735 gen_type_die_with_usage, gen_type_die): Likewise.
7736 (dwarf2out_decl): Likewise.
7737 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7738 * except.c (duplicate_eh_regions): Likewise.
7739 * fwprop.c (register_active_defs, update_df_init): Likewise.
7740 (fwprop_init, fwprop_done): Likewise.
7741 (update_uses): Likewise.
7742 * ggc-page.c (ggc_grow): Likewise.
7743 * gimplify.c (gimplify_body): Likewise.
7744 (gimplify_hasher::equal): Likewise.
7745 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7746 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7747 Likewise.
7748 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7749 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7750 * hash-table.h (::find_empty_slot_for_expand): Likewise.
7751 * ifcvt.c (if_convert): Likewise.
7752 * ipa-cp.c (ipcp_propagate_stage): Likewise.
7753 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7754 (odr_type_p, odr_types_equivalent_p): Likewise.
7755 (add_type_duplicate, get_odr_type): Likewise.
7756 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7757 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7758 (sem_item_optimizer::verify_classes): Likewise.
7759 (sem_item_optimizer::traverse_congruence_split): Likewise.
7760 (sem_item_optimizer::checking_verify_classes): New.
7761 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7762 method.
7763 * cfgrtl.c (commit_edge_insertions): Likewise.
7764 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7765 (rtl_flow_call_edges_add): Likewise.
7766 * cgraph.c (symbol_table::create_edge): Likewise.
7767 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7768 * cgraph.h (symtab_node): Likewise.
7769 (symtab_node::checking_verify_symtab_nodes): Define.
7770 (cgraph_node::checking_verify_cgraph_nodes): Define.
7771 * cfghooks.h (checking_verify_flow_info): Define.
7772 * cfgloop.h (checking_verify_loop_structure): Define.
7773 * dominance.h (checking_verify_dominators): Define.
7774 * et-forest.c: Fix comment.
7775 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7776 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7777 ENABLE_CHECKING conditionals.
7778 * ipa-inline-transform.c (save_inline_function_body): Likewise.
7779 * ipa-inline.c (inline_small_functions): Likewise.
7780 (early_inliner): Likewise.
7781 * ipa-inline.h (estimate_edge_growth): Likewise.
7782 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7783 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7784 (ipa_single_use): Likewise.
7785 * ira-int.h: Likewise.
7786 * ira.c (ira): Likewise.
7787 * loop-doloop.c (doloop_optimize_loops): Likewise.
7788 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7789 * loop-invariant.c (move_loop_invariants): Likewise.
7790 * lra-assigns.c (lra_assign): Likewise.
7791 * lra-constraints.c (lra_constraints): Likewise.
7792 * lra-eliminations.c (lra_eliminate): Likewise.
7793 * lra-int.h (struct lra_reg): Likewise.
7794 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7795 (lra_create_live_ranges_1): Likewise.
7796 * lra-remat.c (create_remat_bb_data): Likewise.
7797 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7798 (lra): Likewise.
7799 (check_rtl): Always define. Remove incorrect guard around
7800 extract_constrain_insn call.
7801 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7802 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7803 ENABLE_CHECKING conditionals.
7804 * lto-streamer-out.c (DFS::DFS): Likewise.
7805 (lto_output): Likewise.
7806 * lto-streamer.c (lto_streamer_init): Likewise.
7807 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7808 expand_omp_target, execute_expand_omp): Likewise.
7809 (lower_omp_target): Likewise.
7810 * passes.c (execute_function_todo): Likewise.
7811 (execute_todo, execute_one_pass): Likewise.
7812 (verify_curr_properties): Always define.
7813 * predict.c (tree_estimate_probability: Use flag_checking,
7814 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7815 ENABLE_CHECKING conditionals.
7816 (propagate_freq): Likewise.
7817 * pretty-print.c (pp_format): Likewise.
7818 * real.c (real_to_decimal_for_mode): Likewise.
7819 * recog.c (split_all_insns): Likewise.
7820 * regcprop.c (kill_value_one_regno): Likewise.
7821 (copy_value): Likewise.
7822 (validate_value_data): Define unconditionally.
7823 * reload.c: Fix comment.
7824 * timevar.c: Include options.h
7825 * tree-ssa.h (checking_verify_ssa): Define.
7826 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7827 * sched-deps.c (CHECK): Remove unused macro.
7828 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7829 gcc_checking_assert and checking_* functions to eliminate
7830 ENABLE_CHECKING conditionals.
7831 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7832 * sel-sched.c (struct moveop_static_params): Likewise.
7833 (find_best_reg_for_expr, move_cond_jump): Likewise.
7834 (move_op_orig_expr_not_found): Likewise.
7835 (code_motion_process_successors, move_op): Likewise.
7836 * ssa-iterators.h (first_readonly_imm_use): Likewise.
7837 (next_readonly_imm_use): Likewise.
7838 * store-motion.c (compute_store_table): Likewise.
7839 * symbol-summary.h (function_summary::function_summary): Likewise.
7840 * target.h (cumulative_args_t): Likewise.
7841 (get_cumulative_args, pack_cumulative_args): Likewise.
7842 * timevar.c: (timer::print): Likewise.
7843 * trans-mem.c (ipa_tm_execute): Likewise.
7844 * tree-cfg.c (move_stmt_op): Likewise.
7845 (move_sese_region_to_fn): Likewise.
7846 (gimple_flow_call_edges_add): Likewise.
7847 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7848 Likewise.
7849 * tree-eh.c (remove_unreachable_handlers): Likewise.
7850 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7851 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7852 * tree-into-ssa.c (update_ssa): Likewise.
7853 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7854 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7855 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7856 * tree-predcom.c (suitable_component_p): Likewise.
7857 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7858 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7859 * tree-ssa-live.c (verify_live_on_entry): Likewise.
7860 * tree-ssa-live.h (register_ssa_partition): Likewise.
7861 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7862 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7863 (tree_transform_and_unroll_loop): Likewise.
7864 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7865 * tree-ssa-operands.c (get_expr_operands): Likewise.
7866 * tree-ssa-propagate.c (replace_exp_1): Likewise.
7867 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7868 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7869 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7870 * tree-ssanames.c (release_ssa_name_fn): Likewise.
7871 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7872 * tree-vect-loop-manip.c
7873 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7874 (slpeel_checking_verify_cfg_after_peeling): Likewise.
7875 (vect_do_peeling_for_loop_bound): Likewise.
7876 (vect_do_peeling_for_alignment): Likewise.
7877 * tree-vrp.c (supports_overflow_infinity): Likewise.
7878 (set_value_range): Likewise.
7879 * tree.c (free_lang_data_in_cgraph): Likewise.
7880 * value-prof.c (gimple_remove_histogram_value): Likewise.
7881 (free_hist): Likewise.
7882 * var-tracking.c (canonicalize_values_star): Likewise.
7883 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7884
7885 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7886
7887 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7888 IFN_GOACC_LOOP): New.
7889 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7890 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7891 IFN_UNIQUE_OACC_TAIL_MARK.
7892 (enum ifn_goacc_loop_kind): New.
7893 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7894 IFN_UNIQUE_OACC_JOIN cases.
7895 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7896 (expand_GOACC_LOOP): New.
7897 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7898 * omp-low.c: Include gimple-pretty-print.h.
7899 (struct oacc_loop): New.
7900 (enum oacc_loop_flags): New.
7901 (oacc_thread_numbers): New.
7902 (oacc_xform_loop): New.
7903 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7904 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7905 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7906 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7907 oacc_loop_discovery): New.
7908 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7909 oacc_loop_process): New.
7910 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7911 (execute_oacc_device_lower): Discover & process loops. Process
7912 internal fns.
7913 * target.def (goacc.fork_join): Change sense of hook, clarify
7914 documentation.
7915 * doc/tm.texi: Regenerated.
7916
7917 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7918
7919 * target-insns.def (oacc_fork, oacc_join): Define.
7920 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7921 (goacc.fork_join): New GOACC hook.
7922 * targhooks.h (default_goacc_fork_join): Declare.
7923 * omp-low.c (default_goacc_forkjoin): New.
7924 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7925 * doc/tm.texi: Regenerate.
7926
7927 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7928
7929 * omp-low.c (oacc_init_rediction_array): New.
7930 (oacc_initialize_reduction_data): Initialize array.
7931
7932 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7933
7934 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7935
7936 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7937
7938 * internal-fn.c (expand_UNIQUE): New.
7939 * internal-fn.h (enum ifn_unique_kind): New.
7940 * internal-fn.def (IFN_UNIQUE): New.
7941 * target-insns.def (unique): Define.
7942 * gimple.h (gimple_call_internal_unique_p): New.
7943 * gimple.c (gimple_call_same_target_p): Check internal fn
7944 uniqueness.
7945 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7946 * tree-ssa-threadedge.c
7947 (record_temporary_equivalences_from_stmts): Likewise.
7948 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7949
7950 2015-10-27 Richard Henderson <rth@redhat.com>
7951
7952 PR rtl-opt/67609
7953 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7954 narrowing subregs on SSE and MMX registers.
7955 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7956 appear to be sub-words of multi-register pseudos must be rejected.
7957 * doc/tm.texi: Regenerate.
7958
7959 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7960
7961 PR target/68102
7962 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7963 operands[0] is a reg before taking its REGNO in split condition.
7964 (*movdi_aarch64): Likewise.
7965
7966 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7967
7968 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7969 Handle floating point inner modes properly.
7970
7971 2015-10-27 Alan Hayward <alan.hayward@arm.com>
7972
7973 * tree-vect-looop.c
7974 (vectorizable_live_operation): Change iterator.
7975
7976 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7977 Aditya Kumar <aditya.k7@samsung.com>
7978
7979 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7980 function to schedule based on isl_schedule_node.
7981 (get_schedule_map_st): New schedule optimizer based on
7982 isl_schedule_node.
7983 (scop_get_domains): New. Return the isl_union_set containing the
7984 domains of all the pbbs.
7985 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7986
7987 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
7988
7989 PR target/67215
7990 * calls.c (prepare_call_address): Don't handle -fno-plt here.
7991 * config/i386/i386.c (ix86_expand_call): Generate indirect call
7992 via GOT for -fno-plt. Support indirect call via GOT for x32.
7993 * config/i386/predicates.md (sibcall_memory_operand): Allow
7994 GOT memory operand.
7995
7996 2015-10-27 Richard Biener <rguenther@suse.de>
7997
7998 PR tree-optimization/68104
7999 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8000 strided access check ...
8001 (vect_compute_data_refs_alignment): ... here.
8002
8003 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
8004 Joseph Myers <joseph@codesourcery.com>
8005 Mark Shinwell <shinwell@codesourcery.com>
8006 Andrew Stubbs <ams@codesourcery.com>
8007 Rich Felker <dalias@libc.org>
8008
8009 * config.gcc: Handle --enable-fdpic.
8010 * config/sh/constraints.md (Ccl): New constraint.
8011 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8012 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8013 __SH_FDPIC__.
8014 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8015 library functions.
8016 * config/sh/sh-protos.h (function_symbol_result): New struct.
8017 (function_symbol): Return function_symbol_result.
8018 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8019 declarations.
8020 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8021 target hook.
8022 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8023 (sh_option_override): Force -fPIC if FDPIC is in effect.
8024 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8025 UNSPEC_GOTOFFFUNCDESC cases.
8026 (prepare_move_operands): Use FDPIC initial GOT register for
8027 TLS-related GOT access; inhibit cross-section address offset constants
8028 for FDPIC.
8029 (sh_assemble_integer): New function.
8030 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8031 PC-relative call sites.
8032 (expand_ashiftrt): Adapt invocation of function_symbol.
8033 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8034 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8035 UNSPEC_GOTOFFFUNCDESC.
8036 (legitimize_pic_address): Resolve function symbols to function
8037 descriptors for FDPIC. Do not use GOT-relative addressing for local
8038 data that may be read-only on FDPIC.
8039 (sh_emit_storesi, sh_emit_storehi): New functions.
8040 (sh_trampoline_init): Generate FDPIC trampolines.
8041 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8042 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8043 (sh_output_mi_thunk): Generate FDPIC call.
8044 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
8045 FDPIC, generate call site labels to use PC-relative addressing rather
8046 than GOT-relative addressing.
8047 (sh_conditional_register_usage): Make PIC register fixed and call used
8048 when FDPIC is in effect.
8049 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8050 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8051 sh_get_fdpic_reg_initial_val): New functions.
8052 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8053 Handle -mfdpic.
8054 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8055 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8056 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8057 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8058 FDPIC_SELF_SPECS.
8059 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8060 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8061 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8062 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8063 constants.
8064 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8065 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8066 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8067 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8068 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8069 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8070 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8071 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8072 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8073 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8074 block_move_real, block_lump_real, block_move_real_i4,
8075 block_lump_real_i4): Add support for FDPIC calls.
8076 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8077 call_value_pop): Adjust for new function_symbol signature.
8078 * config/sh/sh.opt (-mfdpic): New option.
8079 * doc/install.texi (Options specification): Document --enable-fdpic.
8080 * doc/invoke.texi (SH Options): Document -mfdpic.
8081
8082
8083 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8084
8085 PR tree-optimization/65963
8086 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8087 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8088
8089 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8090
8091 PR target/67929
8092 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8093 * config/arm/constraints.md (Dp): Update callsite.
8094 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8095
8096 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8097
8098 * builtins.c (fold_builtin_load_exponent): Rename to...
8099 (fold_const_builtin_load_exponent): ...this and only handle
8100 constant arguments.
8101 (fold_builtin_2): Update accordingly.
8102 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8103
8104 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8105
8106 * builtins.c (fold_builtin_logb): Rename to...
8107 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8108 (fold_builtin_significand): Rename to...
8109 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8110 (fold_builtin_1): Update accordingly.
8111
8112 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8113
8114 * builtins.c (fold_builtin_fmin_fmax): Delete.
8115 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8116 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8117
8118 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8119
8120 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8121 for register extension into sign and zero register extension.
8122 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8123 for sign and zero register extension.
8124 (cortexa57_addrcost_table): Likewise.
8125 (xgene1_addrcost_table): Likewise.
8126
8127 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8128
8129 * fold-const.c (fold_minmax): Delete.
8130 (fold_binary_loc): Don't call it.
8131 * match.pd: Add rules previously handled by fold_minmax.
8132
8133 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8134
8135 * builtins.c (fold_builtin_fma): Remove constant handling.
8136 (fold_builtin_3): Handle constant fma arguments here.
8137
8138 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8139
8140 * builtins.c (fold_builtin_fabs): Remove constant handling.
8141 (fold_builtin_abs): Likewise.
8142
8143 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8144
8145 * builtins.c (fold_builtin_copysign): Delete.
8146 (fold_builtin_2): Handle constant copysign arguments here.
8147 * match.pd: Add rules previously handled by fold_builtin_copysign.
8148
8149 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8150
8151 * builtins.c (fold_builtin_signbit): Delete.
8152 (fold_builtin_2): Handle constant signbit arguments here.
8153 * match.pd: Add rules previously handled by fold_builtin_signbit.
8154
8155 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8156
8157 * match.pd: Handle sqrt(x) cmp 0 specially.
8158
8159 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
8160
8161 * tree-vect-generic.c (expand_vector_operations_1): Check
8162 optab type before using it.
8163
8164 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8165
8166 * config/aarch64/aarch64-protos.h
8167 (struct tune_params): Add autoprefetcher_model field.
8168 * config/aarch64/aarch64.c: Include params.h
8169 (generic_tunings): Specify autoprefetcher_model value.
8170 (cortexa53_tunings): Likewise.
8171 (cortexa57_tunings): Likewise.
8172 (cortexa72_tunings): Likewise.
8173 (thunderx_tunings): Likewise.
8174 (xgene1_tunings): Likewise.
8175 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8176 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8177 (aarch64_override_options_internal): Set
8178 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8179
8180 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8181
8182 * builtins.c (fold_builtin_exponent): Delete.
8183 (fold_builtin_2): Handle constant expN arguments here.
8184 * match.pd: Fold expN(logN(x)) -> x.
8185
8186 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8187
8188 * builtins.c (fold_builtin_powi): Delete.
8189 (fold_builtin_2): Handle constant powi arguments here.
8190 * match.pd: Add rules previously handled by fold_builtin_powi.
8191
8192 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8193
8194 * builtins.c (fold_builtin_pow): Delete in favor of...
8195 (fold_const_builtin_pow): ...this new function. Only handle constant
8196 arguments.
8197 (fold_builtin_2): Update accordingly.
8198 * match.pd: Add rules previously handled by fold_builtin_pow.
8199
8200 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8201
8202 * builtins.c (fold_builtin_hypot): Delete.
8203 (fold_builtin_2): Handle constant hypot arguments here.
8204 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
8205 hypot(x, x) to fabs(x)*sqrt(2).
8206
8207 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8208
8209 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8210 instead of make_ssa_name if not yet in SSA form.
8211
8212 2015-10-27 Richard Biener <rguenther@suse.de>
8213
8214 * cfg.c (free_edge): Add function argument and use it instead of cfun.
8215 (clear_edges): Likewise.
8216 * cfg.h (clear_edges): Adjust prototype.
8217 * cfgexpand.c (pass_expand::execute): Adjust.
8218 * cfgloop.c (release_recorded_exits): Add function argument and use
8219 it instead of cfun.
8220 * cfgloop.h (release_recorded_exits): Adjust prototype.
8221 (loops_state_satisfies_p): Add overload with function argument.
8222 (loops_state_set): Likewise.
8223 (loops_state_clear): Likewise.
8224 (struct loop_iterator): Add function argument to constructor
8225 and iterator and use it instead of cfun.
8226 (FOR_EACH_LOOP_FN): New macro.
8227 (loop_optimizer_finalize): Add overload with function argument.
8228 * loop-init.c (loop_optimizer_init): Adjust.
8229 (fix_loop_structure): Likewise.
8230 (loop_optimizer_finaliz): Add function argument and use it
8231 instead of cfun.
8232 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8233 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8234 * cgraph.c (release_function_body): Do not push/pop cfun.
8235 * final.c (rest_of_clean_state): Adjust.
8236 * graphite.c (graphite_finalize): Likewise.
8237 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8238 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8239 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8240 (tree_unroll_loops_completely): Likewise.
8241 (pass_complete_unrolli::execute): Likewise.
8242 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8243 Add function argument and use it instead of cfun.
8244 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8245 Adjust prototype.
8246 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8247 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8248 instead of cfun.
8249 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8250 * tree-ssanames.c (fini_ssanames): Add function argument and use it
8251 instead of cfun.
8252 * tree-ssanames.c (fini_ssanames): Adjust prototype.
8253 * tree-vrp.c (execute_vrp): Adjust.
8254 * value-prof.c (free_histograms): Add function argument and use it
8255 instead of cfun.
8256 * value-prof.h (free_histograms): Adjust prototype.
8257
8258 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8259
8260 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8261 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8262 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
8263
8264 2015-10-27 Tom de Vries <tom@codesourcery.com>
8265
8266 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8267 field_type.
8268
8269 2015-10-27 Bin Cheng <bin.cheng@arm.com>
8270
8271 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8272 (inv_can_prop_to_addr_use): New function.
8273 (record_use): Call can_prop_to_addr_uses, set the new field.
8274 (get_inv_cost): Count cost if inv can't be propagated into its
8275 address uses.
8276
8277 2015-10-26 Doug Evans <dje@google.com>
8278
8279 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8280
8281 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
8282
8283 * match.pd (fold_widened_comparison): Apply simplifications to all
8284 integral types.
8285
8286 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
8287
8288 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8289 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8290 * doc/tm.texi: Regenerated.
8291 * reorg.c (dbr_schedule): Use new hook.
8292 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8293
8294 2015-10-26 Jeff Law <law@redhat.com>
8295
8296 PR tree-optimization/68013
8297 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8298 Make sure the first block in the path is in VISITED_BBs.
8299
8300 2015-10-26 Richard Biener <rguenther@suse.de>
8301 Dominik Vogt <vogt@linux.vnet.ibm.com>
8302
8303 PR middle-end/67443
8304 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8305 Properly prune ref->ref for accesses outside of ref.
8306
8307 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8308
8309 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8310 new statements to be inserted if inplace. Allow calls to have
8311 nonempty sequences.
8312
8313 2015-10-26 Richard Biener <rguenther@suse.de>
8314
8315 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8316 (do_valueize): New function.
8317 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8318 replace_uses_by.
8319 * tree-ssa-threadedge.c: Remove builtins.h include, include
8320 gimple-fold.h
8321 (fold_assignment_stmt): Remove.
8322 (threadedge_valueize): New function.
8323 (record_temporary_equivalences_from_stmts): Use
8324 gimple_fold_stmt_to_constant_1, note additional cleanup
8325 opportunities.
8326
8327 2015-10-26 Richard Biener <rguenther@suse.de>
8328
8329 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8330 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8331
8332 2015-10-26 Alan Hayward <alan.hayward@arm.com>
8333
8334 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8335 VEC_COND_EXPR types.
8336
8337 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8338
8339 * auto-inc-dec.c (insert_move_insn_before): Delete.
8340 (attempt_change): Remember to cost the simple move in the
8341 FORM_PRE_ADD and FORM_POST_ADD cases.
8342
8343 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
8344
8345 PR target/68091
8346 * config/sh/sh.c (sh_vector_mode_supported_p): Use
8347 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8348
8349 2015-10-26 Tom de Vries <tom@codesourcery.com>
8350
8351 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8352 factored out of ...
8353 (intra_create_variable_infos): ... here.
8354
8355 2015-10-26 Tom de Vries <tom@codesourcery.com>
8356
8357 * tree-ssa-structalias.c (intra_create_variable_infos): Add
8358 restrict_pointer_p and recursive_restrict_p variables.
8359
8360 2015-10-26 Tom de Vries <tom@codesourcery.com>
8361
8362 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8363 get_vi_for_tree call.
8364
8365 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8366
8367 PR middle-end/67989
8368 * optabs.c (expand_atomic_compare_and_swap): Handle case when
8369 ptarget_oval or ptarget_bool are const0_rtx.
8370
8371 2015-10-26 Christian Bruel <christian.bruel@st.com>
8372
8373 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8374 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8375 * cp/method.c (implicitly_declare_fn): Likewise.
8376 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8377 * java/class.c (add_method_1): Likewise.
8378
8379 2015-10-26 Richard Biener <rguenther@suse.de>
8380
8381 * alloc-pool.h (base_pool_allocator): Use placement new.
8382 (base_pool_allocator::remove): Likewise. Compute size outside of
8383 flag_checking.
8384
8385 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8386
8387 * builtins.c (do_real_to_int_conversion): New function.
8388 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8389 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8390 arguments here.
8391 * match.pd: Add rules previously handled by fold_fixed_mathfn
8392 and fold_builtin_int_roundingfn.
8393
8394 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8395
8396 * match.pd: Use macros to define built-in operator lists.
8397
8398 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
8399 Richard Biener <rguenther@suse.de>
8400
8401 * genmatch.c (dt_simplify::gen): Skip captures that are
8402 part of the result.
8403 (parser::parse_expr): Allow captures in results too.
8404 * builtins.c (fold_builtin_cexp): Delete.
8405 (fold_builtin_1): Handle constant cexp arguments here.
8406 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8407
8408 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
8409
8410 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8411 conditional compilation.
8412 (base_pool_allocator::remove): Use flag_checking.
8413
8414 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
8415
8416 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8417
8418 PR middle-end/68079
8419 * dojump.c (do_compare_and_jump): Canonicalize both function and
8420 method types.
8421
8422 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
8423
8424 PR target/68084
8425 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8426 for =@ccae.
8427
8428 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8429
8430 PR ipa/pr67600
8431 * ipa-polymorphic-call.c
8432 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8433 instance offset with offset of outer type.
8434
8435 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8436
8437 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8438
8439 2015-10-23 Caroline Tice <cmtice@google.com>
8440
8441 (from Richard Biener
8442 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
8443 call to iterative_hash_host_wide_int.
8444
8445 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8446
8447 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8448 Define as yes.
8449
8450 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8451
8452 * tree-vect-generic.c (expand_vector_operations_1): Check
8453 optab exists before use it.
8454
8455 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8456
8457 * tree-vect-generic.c (expand_vector_condition): Avoid
8458 uninitialized variable warning.
8459
8460 2015-10-23 Jeff Law <law@redhat.com>
8461
8462 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8463 here. Instead...
8464 (execute_todo): Call it here.
8465 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8466 statistics
8467 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8468
8469 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8470 Szabolcs Nagy <szabolcs.nagy@arm.com>
8471
8472 * config.gcc (enable_secureplt): Add *-linux*-musl*.
8473
8474 2015-10-23 Jeff Law <law@redhat.com>
8475
8476 PR tree-optimization/67830
8477 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8478 Explicitly verify the mask has no bits outside the type of
8479 the innermost operands.
8480
8481 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8482 Szabolcs Nagy <szabolcs.nagy@arm.com>
8483
8484 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8485 (MUSL_DYNAMIC_LINKER64): Define.
8486 (GNU_USER_DYNAMIC_LINKER32): Update.
8487 (GNU_USER_DYNAMIC_LINKER64): Update.
8488 (CHOOSE_DYNAMIC_LINKER): Update.
8489
8490 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8491 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8492 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8493 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8494 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8495 (CHOOSE_DYNAMIC_LINKER): Update.
8496 (INCLUDE_DEFAULTS): Redefine.
8497
8498 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8499
8500 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8501
8502 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8503 comparing addresses.
8504
8505 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8506
8507 * fold-const.c (operand_equal_p): Handle matching of vector
8508 constructors.
8509
8510 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8511
8512 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8513
8514 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
8515 Andrew Pinski <apinski@cavium.com>
8516
8517 PR rtl-optimization/67736
8518 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8519 of gen_lowpart.
8520
8521 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8522
8523 PR middle-end/68066
8524 * tree.c (build_truth_vector_type): Support BLK mode
8525 returned for boolean vector.
8526
8527 2015-10-23 Alan Hayward <alan.hayward@arm.com>
8528
8529 PR tree-optimization/65947
8530 * tree-vect-loop.c
8531 (vect_is_simple_reduction_1): Find condition reductions.
8532 (vect_model_reduction_cost): Add condition reduction costs.
8533 (get_initial_def_for_reduction): Add condition reduction initial var.
8534 (vect_create_epilog_for_reduction): Add condition reduction epilog.
8535 (vectorizable_reduction): Condition reduction support.
8536 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8537 * doc/sourcebuild.texi (Vector-specific attributes): Document
8538 vect_max_reduc
8539
8540 2015-10-23 Richard Biener <rguenther@suse.de>
8541
8542 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8543 and builtins.def.
8544
8545 2015-10-23 Richard Biener <rguenther@suse.de>
8546 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8547
8548 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8549 into (A ^ B) - B to match.pd
8550 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8551
8552 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8553 New simplifier.
8554 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8555 New simplifier.
8556 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8557 New simplifier.
8558 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8559 New simplifier.
8560 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8561 INTEGER_CST@1)): New simplifier.
8562
8563 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
8564
8565 * builtins.c (integer_valued_real_p): Move to fold-const.c.
8566 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8567 (fold_builtin_ceil, fold_builtin_round): Delete.
8568 (fold_builtin_1): Handle constant trunc, floor, ceil and round
8569 arguments here.
8570 * convert.c (convert_to_real): Remove narrowing of rounding
8571 functions.
8572 * fold-const.h (integer_valued_real_unary_p)
8573 (integer_valued_real_binary_p, integer_valued_real_call_p)
8574 (integer_valued_real_single_p, integer_valued_real_p): Declare.
8575 * fold-const.c (tree_single_nonnegative_warnv_p): Move
8576 name_registered_for_update_p check to SSA_NAME case statement.
8577 Don't call tree_simple_nonnegative_warnv_p for SSA names.
8578 (integer_valued_real_unary_p, integer_valued_real_binary_p)
8579 (integer_valued_real_call_p, integer_valued_real_single_p)
8580 (integer_valued_real_invalid_p): New functions.
8581 (integer_valued_real_p): Move from fold-const.c and rework
8582 to call the functions above. Handle SSA names.
8583 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8584 * gimple-fold.c (gimple_assign_integer_valued_real_p)
8585 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8586 (gimple_stmt_integer_valued_real_p): New functions.
8587 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8588 Fold f(x)->x for the same f if x is known to be integer-valued.
8589 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8590 the result. Canonicalize floor(x) as trunc(x) if x is
8591 nonnegative.
8592
8593 2015-10-23 Tom de Vries <tom@codesourcery.com>
8594
8595 * tree-ssa-structalias.c (intra_create_variable_infos): Use
8596 make_constraint_from.
8597
8598 2015-10-23 Tom de Vries <tom@codesourcery.com>
8599
8600 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8601 setting of is_full_var in case of a single field.
8602
8603 2015-10-22 Martin Sebor <msebor@redhat.com>
8604
8605 PR driver/68043
8606 * config/i386/i386.opt: Add missing periods to the ends of sentences.
8607 * config/msp430/msp430.opt: Same.
8608
8609 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8610
8611 * doc/extend.exp (Global Register Variables): Rewrite.
8612
8613 2015-10-22 Jeff Law <law@redhat.com>
8614
8615 * genattrtab.c (main): If we do not have any annul-true or annul-false
8616 slots, then write out a dummy eligible_for_annul_true or
8617 eligible_for_annul_false as needed.
8618
8619 2015-10-22 Nick Clifton <nickc@redhat.com>
8620
8621 * config/msp430/msp430.opt: Add -msilicon-errata and
8622 -msilicon-errata-warn.
8623 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8624 assembler.
8625 * doc/invoke.texi: Document new options.
8626
8627 2015-10-22 Richard Biener <rguenther@suse.de>
8628
8629 PR tree-optimization/58497
8630 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8631 (expand_vector_operations_1): Use it. Lower operations on
8632 all uniform vectors to scalar operations if the HW supports it.
8633
8634 2015-10-22 Richard Biener <rguenther@suse.de>
8635
8636 PR tree-optimization/19049
8637 PR tree-optimization/65962
8638 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8639 to strided accesses if single-element interleaving doesn't work.
8640
8641 2015-10-22 Richard Biener <rguenther@suse.de>
8642
8643 PR middle-end/68046
8644 PR middle-end/61893
8645 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8646 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8647 (expand_unop): Likewise.
8648
8649 2015-10-22 Richard Biener <rguenther@suse.de>
8650
8651 * fold-const.c (fold_addr_of_array_ref_difference): Properly
8652 convert operands before folding a MINUS_EXPR.
8653 (fold_binary_loc): Move simplification of MINUS_EXPR on
8654 converted POINTER_PLUS_EXPRs ...
8655 * match.pd: ... here.
8656
8657 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8658
8659 * builtins.c (fold_builtin_tan): Delete.
8660 (fold_builtin_1): Handle constant tan arguments here.
8661 * match.pd: Simplify (tan (atan x)) to x.
8662
8663 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8664
8665 * builtins.c (fold_builtin_cproj): Delete.
8666 (fold_builtin_1): Handle constant arguments here.
8667 (build_complex_cproj): Move and rename to...
8668 * tree.c: (build_complex_inf): ...this.
8669 * tree.h (build_complex_inf): Declare.
8670 * match.pd: Fold cproj(x)->x if x has no infinity.
8671 Use build_complex_inf for existing cproj rules.
8672
8673 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8674
8675 PR target/68015
8676 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
8677 already have a comparison result.
8678
8679 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8680
8681 PR target/63304
8682 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
8683 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
8684 (aarch64_classify_address): Likewise.
8685 (aarch64_secondary_reload): Likewise.
8686 (aarch64_override_options_after_change_1): Adjust.
8687 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8688 Use aarch64_nopcrelative_literal_loads.
8689 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8690 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8691 Declare.
8692
8693 2015-10-21 Martin Sebor <msebor@redhat.com>
8694
8695 PR driver/68043
8696 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8697 (print_filtered_help): Reference aliased option's name and encourage
8698 readers to use it in preference to the alias if the former is not
8699 documented. Mention when using an option is diagnosed.
8700 * gcc.c (display_help): End each sentence with a period.
8701
8702 * common.opt: End each sentence that describes an option with
8703 a period.
8704 * config/aarch64/aarch64.opt: Same.
8705 * config/alpha/alpha.opt: Same.
8706 * config/arc/arc.opt: Same.
8707 * config/arm/arm.opt: Same.
8708 * config/avr/avr.opt: Same.
8709 * config/bfin/bfin.opt: Same.
8710 * config/c6x/c6x.opt: Same.
8711 * config/cr16/cr16.opt: Same.
8712 * config/cris/cris.opt: Same.
8713 * config/cris/linux.opt: Same.
8714 * config/darwin.opt: Same.
8715 * config/epiphany/epiphany.opt: Same.
8716 * config/fr30/fr30.opt: Same.
8717 * config/frv/frv.opt: Same.
8718 * config/ft32/ft32.opt: Same.
8719 * config/g.opt: Same.
8720 * config/h8300/h8300.opt: Same.
8721 * config/i386/cygming.opt: Same.
8722 * config/i386/djgpp.opt: Same.
8723 * config/i386/i386.opt: Same.
8724 * config/i386/interix.opt: Same.
8725 * config/i386/mingw-w64.opt: Same.
8726 * config/i386/mingw.opt: Same.
8727 * config/ia64/ia64.opt: Same.
8728 * config/ia64/ilp32.opt: Same.
8729 * config/iq2000/iq2000.opt: Same.
8730 * config/linux.opt: Same.
8731 * config/lm32/lm32.opt: Same.
8732 * config/lynx.opt: Same.
8733 * config/m32c/m32c.opt: Same.
8734 * config/m32r/m32r.opt: Same.
8735 * config/m68k/ieee.opt: Same.
8736 * config/m68k/m68k.opt: Same.
8737 * config/mcore/mcore.opt: Same.
8738 * config/mep/mep.opt: Same.
8739 * config/microblaze/microblaze.opt: Same.
8740 * config/mips/mips.opt: Same.
8741 * config/mmix/mmix.opt: Same.
8742 * config/mn10300/mn10300.opt: Same.
8743 * config/moxie/moxie.opt: Same.
8744 * config/msp430/msp430.opt: Same.
8745 * config/nios2/elf.opt: Same.
8746 * config/nios2/nios2.opt: Same.
8747 * config/nvptx/nvptx.opt: Same.
8748 * config/pa/pa-hpux.opt: Same.
8749 * config/pa/pa-hpux1010.opt: Same.
8750 * config/pa/pa-hpux1111.opt: Same.
8751 * config/pa/pa-hpux1131.opt: Same.
8752 * config/pa/pa.opt: Same.
8753 * config/pa/pa64-hpux.opt: Same.
8754 * config/pdp11/pdp11.opt: Same.
8755 * config/rl78/rl78.opt: Same.
8756 * config/rs6000/476.opt: Same.
8757 * config/rs6000/aix64.opt: Same.
8758 * config/rs6000/darwin.opt: Same.
8759 * config/rs6000/linux64.opt: Same.
8760 * config/rs6000/rs6000.opt: Same.
8761 * config/rs6000/sysv4.opt: Same.
8762 * config/s390/s390.opt: Same.
8763 * config/s390/tpf.opt: Same.
8764 * config/sh/sh.opt: Same.
8765 * config/sol2.opt: Same.
8766 * config/sparc/long-double-switch.opt: Same.
8767 * config/sparc/sparc.opt: Same.
8768 * config/spu/spu.opt: Same.
8769 * config/stormy16/stormy16.opt: Same.
8770 * config/tilegx/tilegx.opt: Same.
8771 * config/tilepro/tilepro.opt: Same.
8772 * config/v850/v850.opt: Same.
8773 * config/vax/vax.opt: Same.
8774 * config/visium/visium.opt: Same.
8775 * config/vms/vms.opt: Same.
8776 * config/vxworks.opt: Same.
8777 * config/xtensa/xtensa.opt: Same.
8778
8779 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8780 Sebastian Pop <s.pop@samsung.com>
8781
8782 * graphite-scop-detection.c (parameter_index_in_region): Update call to
8783 invariant_in_sese_p_rec.
8784 * graphite-sese-to-poly.c (extract_affine): Same.
8785 * sese.c (invariant_in_sese_p_rec): Pass in an extra
8786 parameter has_vdefs.
8787 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8788 variable depends on virtual definitions in the current region.
8789 * sese.h (invariant_in_sese_p_rec): Update declaration.
8790
8791 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8792 Sebastian Pop <s.pop@samsung.com>
8793
8794 * graphite-scop-detection.c (build_scops): Do not handle scops
8795 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8796 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8797
8798 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
8799
8800 * config.in: Regenerate.
8801 * configure: Regenerate.
8802 * configure.ac (CHECKING_P): Define.
8803 * system.h: Use CHECKING_P.
8804
8805 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8806
8807 PR ipa/67056
8808 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8809 is negative we don't know the type.
8810 (check_stmt_for_type_change): Skip constructors of non-polymorphic
8811 types as those won't help devirutalization.
8812
8813 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8814
8815 * fold-const.c (operand_equal_p): Add code matching empty constructors.
8816
8817 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
8818
8819 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8820 comments.
8821 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8822 Add comments on sign of the result.
8823 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8824 Recurse on operand #1 instead of operand #0.
8825 <CEIL_MOD_EXPR>: Do not recurse.
8826 <ROUND_MOD_EXPR>: Likewise.
8827
8828 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8829
8830 * cfgrtl.c (pass_free_cfg::execute): Adjust.
8831 * final.c (dbr_sequence_length): Always define.
8832 (shorten_branches): Adjust.
8833 * genattr-common.c (main): Always define DELAY_SLOTS.
8834 * genattr.c (main): Unconditionally declare functions and define
8835 macros related to delay slots.
8836 * genattrtab.c (write_eligible_delay): Adjust.
8837 (main): Always write out delay slot functions.
8838 * opts.c (default_options_table): Adjust.
8839 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8840 (redirect_with_delay_list_safe_p): Likewise.
8841 (fill_simple_delay_slots): Likewise.
8842 (fill_slots_from_thread): Likewise.
8843 (make_return_insns): Likewise.
8844 (dbr_schedule): Likewise.
8845 (rest_of_handle_delay_slots): Likewise.
8846 (pass_delay_slots::gate): Likewise.
8847 * toplev.c (process_options): Likewise.
8848
8849 2015-10-21 Richard Henderson <rth@redhat.com>
8850
8851 * targhooks.c (default_addr_space_pointer_mode): Remove check
8852 for generic address space.
8853 (default_addr_space_address_mode): Likewise.
8854 (default_addr_space_valid_pointer_mode): Likewise.
8855 (default_addr_space_legitimate_address_p): Likewise.
8856 (default_addr_space_legitimize_address): Likewise.
8857 * target.def (addr_space.pointer_mode): Update documentation
8858 of default behavior.
8859 (addr_space.address_mode): Likewise.
8860 * tm.texi: Update.
8861
8862 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8863 address spaces.
8864
8865 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8866
8867 * builtins.c (fold_builtin_cabs): Delete.
8868 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8869 * match.pd: Add rules previously handled by fold_builtin_cabs.
8870
8871 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8872
8873 * fold-const.h (fold_strip_sign_ops): Delete.
8874 * fold-const.c (fold_strip_sign_ops): Likewise.
8875 (fold_unary_loc, fold_binary_loc): Remove calls to it.
8876 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8877 (fold_builtin_ccos): Delete.
8878 (fold_builtin_pow): Don't call fold_strip_sign_ops.
8879 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8880 Remove fndecl argument.
8881 (fold_builtin_1): Update calls accordingly. Handle constant
8882 cos, cosh, ccos and ccosh here.
8883
8884 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8885
8886 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8887 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8888 * common.opt (fssa-backprop): New option.
8889 * fold-const.h (negate_mathfn_p): Declare.
8890 * fold-const.c (negate_mathfn_p): Make public.
8891 * timevar.def (TV_TREE_BACKPROP): New.
8892 * tree-pass.h (make_pass_backprop): Declare.
8893 * passes.def (pass_backprop): Add.
8894 * gimple-ssa-backprop.c: New file.
8895
8896 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8897 Sebastian Pop <s.pop@samsung.com>
8898
8899 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8900 Do not call create_empty_if_region_on_edge when cond_expr is true.
8901 (translate_isl_ast_node_for): Check whether a guard has been generated.
8902
8903 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8904
8905 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8906 (operator=): Removed.
8907 (dr_info): Make alias_set number the last argument with default
8908 value of invalid_alias_set.
8909 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8910 of dr_info.
8911 (rewrite_reductions_out_of_ssa): Iterate only through the
8912 basic blocks which are inside region.
8913 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8914 * sese.h (struct sese_l): Removed assignment operator.
8915 (split_region_for_bb): Removed dead code.
8916
8917 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8918
8919 * graphite-poly.h (struct dr_info): Removed conversion constructor.
8920 (struct scop): Renamed scop::region to scop::scop_info
8921 (scop_set_region): Same.
8922 (SCOP_REGION): Removed
8923 (SCOP_CONTEXT): Removed.
8924 (POLY_SCOP_P): Removed.
8925 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8926 Rename scop->region to scop->scop_info.
8927 (add_parameters_to_ivs_params): Same.
8928 (graphite_regenerate_ast_isl): Same.
8929 * graphite-poly.c (new_scop): Same.
8930 (free_scop): Same.
8931 (print_scop_params): Same.
8932 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8933 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8934 (dot_all_scops_1): Rename scop->region to scop->scop_info.
8935 (scop_detection::nb_pbbs_in_loops): Same.
8936 (find_scop_parameters): Same.
8937 (try_generate_gimple_bb): Same.
8938 (gather_bbs::before_dom_children): Same.
8939 (gather_bbs::after_dom_children): Same.
8940 (build_scops): Same.
8941 * graphite-sese-to-poly.c (build_scop_scattering): Same.
8942 (extract_affine_chrec): Same.
8943 (extract_affine): Same.
8944 (set_scop_parameter_dim): Same.
8945 (build_loop_iteration_domains): Same.
8946 (create_pw_aff_from_tree): Same.
8947 (add_param_constraints): Same.
8948 (build_scop_iteration_domain): Same.
8949 (build_scop_drs): Same.
8950 (analyze_drs_in_stmts): Same.
8951 (insert_out_of_ssa_copy_on_edge): Same.
8952 (rewrite_close_phi_out_of_ssa):Same.
8953 (rewrite_reductions_out_of_ssa):Same.
8954 (handle_scalar_deps_crossing_scop_limits):Same.
8955 (rewrite_cross_bb_scalar_deps):Same.
8956 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8957 (build_poly_scop):Same.
8958 (build_alias_set): Use pointer to dr_info.
8959 * graphite.c (print_graphite_scop_statistics):
8960 (graphite_transform_loops):
8961 * sese.h (struct sese_l): Remove conversion constructor.
8962
8963 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8964
8965 PR middle-end/67966
8966 * tree.c (verify_type): Verify that TYPE_MODE match
8967 between TYPE_CANONICAL and type.
8968 * expr.c (store_expr_with_bounds): Revert my previous change.
8969 * expmed.c (store_bit_field_1): Revert prevoius change.
8970 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8971 to match for all types.
8972
8973 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
8974
8975 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8976 nesting.
8977
8978 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8979
8980 * doc/tm.texi: Regenerated.
8981 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8982 * stor-layout.c (layout_type): Use mode to get vector mask size.
8983 * target.def (get_mask_mode): New.
8984 * targhooks.c (default_get_mask_mode): New.
8985 * targhooks.h (default_get_mask_mode): New.
8986 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8987 for boolean vector.
8988 * tree.c (MAX_BOOL_CACHED_PREC): New.
8989 (nonstandard_boolean_type_cache): New.
8990 (build_nonstandard_boolean_type): New.
8991 (make_vector_type): Vector mask has no canonical type.
8992 (build_truth_vector_type): New.
8993 (build_same_sized_truth_vector_type): New.
8994 (truth_type_for): Support vector masks.
8995 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8996 (build_truth_vector_type): New.
8997 (build_same_sized_truth_vector_type): New.
8998 (build_nonstandard_boolean_type): New.
8999 * tree-cfg.c (verify_gimple_comparison) Require boolean
9000 vector type for vector comparison.
9001 (verify_gimple_assign_ternary): Likewise.
9002 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9003 condition operand.
9004 * tree-vect-stmts.c (vectorizable_condition): Use boolean
9005 vector type for vector comparison.
9006 * tree-vect-generic.c (elem_op_func): Add new operand to hold
9007 vector type.
9008 (do_unop): Adjust to modified function type.
9009 (do_binop): Likewise.
9010 (do_plus_minus): Likewise.
9011 (do_negate); Likewise.
9012 (expand_vector_piecewise): Likewise.
9013 (do_cond): Likewise.
9014 (do_compare): Use comparison instead of condition.
9015 (expand_vector_divmod): Use boolean vector type for comparison.
9016 (expand_vector_operations_1): Skip scalar mask operations.
9017
9018 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9019
9020 * omp-low.c (simd_clone_create): Set in_other_partition
9021 for created clones.
9022
9023 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9024
9025 * doc/extend.exp (Local Register Variables): Rewrite.
9026
9027 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9028
9029 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9030 and x*x in cases where the operands are sign ops. Extend these
9031 rules to handle copysign as a sign op (including for cos, cosh
9032 and pow, which already treated negate and abs as sign ops).
9033
9034 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
9035
9036 PR target/68018
9037 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9038 for 64-bit MS_ABI targets also when default incoming stack boundary
9039 is overriden.
9040
9041 2015-10-21 Richard Biener <rguenther@suse.de>
9042
9043 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9044 cond stmts, enhanced and split out from ...
9045 (vn_phi_eq): ... here.
9046
9047 2015-10-21 Richard Biener <rguenther@suse.de>
9048
9049 PR middle-end/68031
9050 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9051 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9052 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9053 make sure they are not registered for update.
9054
9055 2015-10-21 Richard Biener <rguenther@suse.de>
9056
9057 PR tree-optimization/68026
9058 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9059 unsigned VARYING values.
9060
9061 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9062
9063 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9064 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9065 NULL and use local stack than.
9066 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9067 in addition to __asan_init.
9068 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9069 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9070 * asan.h (asan_intercepted_p): Handle new string builtins.
9071 * ubsan.c (ubsan_use_new_style_p): New function.
9072 (ubsan_instrument_float_cast): If location is unknown, assign
9073 input_location to loc. Propagate loc to ubsan_create_data if
9074 ubsan_use_new_style_p returned true.
9075
9076 2015-10-21 Jeff Law <law@redhat.com>
9077
9078 * Makefile.in (OBJS): Remove sched-vis.c
9079 * sched-vis.c: Removed. Code moved into...
9080 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9081 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9082 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9083 * auto-inc-dec.c: Include print-rtl.h
9084 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9085 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9086
9087 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9088 ATTRIBUTE_UNUSED.
9089
9090 2015-10-21 Richard Biener <rguenther@suse.de>
9091 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9092
9093 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9094 to match.pd.
9095 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9096 about signed left shift stronger and clarify the cases when they're
9097 broken.
9098 Move (a * (1 << b)) is (a << b) to match.pd.
9099 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9100 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9101 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9102
9103 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9104 New simplifier.
9105 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9106 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9107 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9108 : New simplifier.
9109 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9110 New simplifier.
9111 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9112
9113 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9114 Szabolcs Nagy <szabolcs.nagy@arm.com>
9115 Alan Modra <amodra@gmail.com>
9116
9117 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9118 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9119 (LINK_SPEC): Add %(link_secure_plt).
9120 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9121 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9122
9123 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9124 Szabolcs Nagy <szabolcs.nagy@arm.com>
9125
9126 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9127 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9128
9129 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9130
9131 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9132 New function.
9133 (fusion_load_store): Use it.
9134 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9135 ldp and stp in VD modes.
9136 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9137 (store_pair<mode>, VD): Likewise.
9138
9139 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9140
9141 PR rtl-optimization/67609
9142 * lra-splill.c (lra_final_code_change): Don't remove all
9143 sub-registers.
9144
9145 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9146
9147 * simplify-rtx.c (simplify_binary_operation): If either operand was
9148 a constant pool reference use them if all other simplifications failed.
9149
9150 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9151
9152 * config/aarch64/aarch64.md
9153 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9154 * config/aarch64/aarch64-simd.md
9155 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9156 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9157 (aarch64_fpconst_pow_of_2): New function.
9158 (aarch64_vec_fpconst_pow_of_2): Likewise.
9159 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9160 prototype.
9161 (aarch64_vec_fpconst_pow_of_2): Likewise.
9162 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9163 (aarch64_fp_vec_pow2): Likewise.
9164
9165 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
9166
9167 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9168 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
9169 * config/alpha/alpha.c (alpha_function_arg_advance): Update
9170 ALPHA_ARG_SIZE usage.
9171 (alpha_arg_partial_bytes): Ditto.
9172
9173 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9174
9175 PR target/66810
9176 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9177 error_mark_node decls.
9178
9179 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9180
9181 PR target/67963
9182 PR target/67985
9183 * common/config/i386/i386-common.c (ix86_handle_option): Remove
9184 OPT_miamcu handling.
9185 * config/i386/i386.c (PTA_NO_80387): New macro.
9186 (processor_alias_table): Add PTA_NO_80387 to lakemont.
9187 (ix86_option_override_internal): Update MASK_80387 from
9188 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
9189 SSE math only if 80387 is supported. Don't change
9190 MASK_FLOAT_RETURNS.
9191 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9192 80387 is supported.
9193 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9194 if TARGET_80387 is true and TARGET_IAMCU is false.
9195 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9196 is true and TARGET_IAMCU_P is false.
9197
9198 2015-10-20 Richard Biener <rguenther@suse.de>
9199
9200 PR tree-optimization/68017
9201 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9202
9203 2015-10-20 Martin Liska <mliska@suse.cz>
9204
9205 * cgraphclones.c (cgraph_node::create_virtual_clone):
9206 Verify cgraph_node.local.versionable instead of calling
9207 tree_versionable_function_p.
9208 * ipa-cp.c (determine_versionability): Save the information
9209 to ipa_node_params summary.
9210 (ipcp_versionable_function_p): Use it.
9211 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9212 (ipcp_generate_summary): Do not compute cgraph_node
9213 versionability.
9214 * ipa-inline-analysis.c (inline_generate_summary): Compute
9215 versionability for all cgraph nodes.
9216 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9217 ipa_node_params::versionability.
9218 * ipa-prop.h (struct ipa_node_params): Declare it.
9219
9220 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9221
9222 PR other/67868
9223 * varasm.c (assemble_variable): Move special vtv handling to..
9224 (handle_vtv_comdat_sections): .. here. New function.
9225 (output_object_block): Handle vtv sections.
9226
9227 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
9228
9229 PR target/66912
9230 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9231
9232 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
9233
9234 * doc/extend.texi: Update documentation WRT inline functions.
9235
9236 2015-10-20 Alan Modra <amodra@gmail.com>
9237
9238 PR go/66870
9239 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9240 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9241 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9242
9243 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
9244
9245 PR rtl-optimization/66790
9246 * df.h (DF_MIR): New macro.
9247 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9248 (DF_MIR_INFO_BB): New macro.
9249 (DF_MIR_IN, DF_MIR_OUT): New macros.
9250 (struct df_mir_bb_info): New.
9251 (df_mir): New macro.
9252 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9253 declarations.
9254 (df_mir_get_bb_info): New.
9255 * df-problems.c (struct df_mir_problem_data): New.
9256 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9257 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9258 df_mir_confluence_0, df_mir_confluence_n,
9259 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9260 df_mir_bottom_dump, df_mir_verify_solution_start,
9261 df_mir_verify_solution_end): New.
9262 (problem_MIR): New.
9263 (df_mir_add_problem, df_mir_simulate_one_insn): New.
9264 * timevar.def (TV_DF_MIR): New.
9265 * ree.c: Include bitmap.h
9266 (add_removable_extension): Add an INIT_REGS parameter. Use it
9267 to skip zero-extensions that may get an uninitialized register.
9268 (find_removable_extensions): Compute must-initialized registers
9269 using the MIR dataflow problem. Update the call to
9270 add_removable_extension.
9271 (find_and_remove_re): Call df_mir_add_problem.
9272
9273 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
9274
9275 * common/config/mn10300/mn10300-common.c
9276 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9277 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9278
9279 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
9280
9281 * doc/extend.texi (Explicit Register Variables): Simplify and
9282 avoid unnecessary and confusion abbreviations. Update cross
9283 references.
9284 doc/implement-c.tex: Update cross reference.
9285
9286 2015-10-19 Jeff Law <law@redhat.com>
9287
9288 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9289 that create irreducible loops unless the path elimiantes a multiway
9290 branch.
9291
9292 2015-10-19 Richard Biener <rguenther@suse.de>
9293
9294 PR tree-optimization/67975
9295 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9296 * tree-cfg.c (extract_true_false_controlled_edges): Split out
9297 core worker from ...
9298 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9299 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9300 instead of block number for PHIs with two or one args.
9301 (vn_phi_eq): Compare edge predicates of PHIs that are in different
9302 blocks.
9303
9304 2015-10-19 Richard Biener <rguenther@suse.de>
9305
9306 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9307 (gimple_stmt_nonnegative_warnv_p): Use it.
9308 * match.pd (CPROJ): New operator list.
9309 (cproj (complex ...)): Move simplifications from ...
9310 * builtins.c (fold_builtin_cproj): ... here.
9311
9312 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9313
9314 * config/i386/i386.c (ix86_expand_vector_move): Use
9315 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9316 alignment.
9317
9318 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9319
9320 * doc/invoke.texi: Replace @optindex with @opindex.
9321
9322 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9323
9324 PR target/67995
9325 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9326 arch= is set, clear all bits in x_ix86_isa_flags, except for
9327 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9328
9329 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
9330
9331 PR middle-end/68002
9332 * common.opt (fkeep-static-functions): New option.
9333 * doc/invoke.texi: Document it.
9334 * cgraphunit.c (cgraph_node::finalize_function): Use it.
9335
9336 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9337
9338 * sched-int.h (struct autopref_multipass_data_): Remove offset
9339 field. Add min_offset, max_offset, multi_mem_insn_p fields.
9340 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9341 (autopref_multipass_init): Use it. Handle PARALLEL sets.
9342 (autopref_rank_data): New function.
9343 (autopref_rank_for_schedule): Use it.
9344 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9345
9346 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
9347
9348 PR other/65800
9349 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9350
9351 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9352
9353 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9354 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
9355 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9356 (STANDARD_STARTFILE_PREFIX_1): New.
9357 (STANDARD_STARTFILE_PREFIX_2): New.
9358
9359 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9360
9361 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9362 (darwin_driver_init): Note a version-min when provided on the c/l.
9363 * config/darwin.h (%darwin_minversion): Remove.
9364 * config/i386/darwin.h: Likewise.
9365 * config/rs6000/darwin.h: Likewise.
9366 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9367 rather than an arbitrary constant.
9368
9369 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9370
9371 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9372 PPC, detect conflicts between -arch and multilib settings. Detect
9373 and warn about conflicts between multiple -arch definitions.
9374
9375 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9376
9377 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9378
9379 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9380
9381 * lra-constraints.c (add_next_usage_insn): Change argument type
9382 from rtx to rtx_insn *.
9383
9384 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
9385
9386 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9387 for Lakemont.
9388
9389 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
9390
9391 * config/tilepro/gen-mul-tables.cc: Adjust include files.
9392 * config/tilegx/mul-tables.c: Regenerate.
9393 * config/tilepro/mul-tables.c: Regenerate.
9394
9395 * config/tilegx/tilegx-c.c: Adjust include files.
9396 * config/tilegx/tilegx.c: Likewise.
9397 * config/tilepro/tilepro-c.c: Likewise.
9398 * config/tilepro/tilepro.c: Likewise.
9399 * config/aarch64/aarch64-builtins.c: Likewise.
9400 * config/aarch64/aarch64.c: Likewise.
9401 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9402 * config/alpha/alpha.c: Likewise.
9403 * config/arc/arc.c: Likewise.
9404 * config/arm/aarch-common.c: Likewise.
9405 * config/arm/arm-builtins.c: Likewise.
9406 * config/arm/arm-c.c: Likewise.
9407 * config/arm/arm.c: Likewise.
9408 * config/avr/avr-c.c: Likewise.
9409 * config/avr/avr-devices.c: Likewise.
9410 * config/avr/avr-log.c: Likewise.
9411 * config/avr/avr.c: Likewise.
9412 * config/bfin/bfin.c: Likewise.
9413 * config/c6x/c6x.c: Likewise.
9414 * config/cr16/cr16.c: Likewise.
9415 * config/cris/cris.c: Likewise.
9416 * config/darwin-c.c: Likewise.
9417 * config/darwin-driver.c: Likewise.
9418 * config/darwin.c: Likewise.
9419 * config/default-c.c: Likewise.
9420 * config/epiphany/epiphany.c: Likewise.
9421 * config/epiphany/mode-switch-use.c: Likewise.
9422 * config/epiphany/resolve-sw-modes.c: Likewise.
9423 * config/fr30/fr30.c: Likewise.
9424 * config/frv/frv.c: Likewise.
9425 * config/ft32/ft32.c: Likewise.
9426 * config/glibc-c.c: Likewise.
9427 * config/h8300/h8300.c: Likewise.
9428 * config/i386/host-cygwin.c: Likewise.
9429 * config/i386/host-mingw32.c: Likewise.
9430 * config/i386/i386-c.c: Likewise.
9431 * config/i386/i386.c: Likewise.
9432 * config/i386/msformat-c.c: Likewise.
9433 * config/i386/winnt-cxx.c: Likewise.
9434 * config/i386/winnt-stubs.c: Likewise.
9435 * config/i386/winnt.c: Likewise.
9436 * config/ia64/ia64-c.c: Likewise.
9437 * config/ia64/ia64.c: Likewise.
9438 * config/iq2000/iq2000.c: Likewise.
9439 * config/lm32/lm32.c: Likewise.
9440 * config/m32c/m32c-pragma.c: Likewise.
9441 * config/m32c/m32c.c: Likewise.
9442 * config/m32r/m32r.c: Likewise.
9443 * config/mcore/mcore.c: Likewise.
9444 * config/mep/mep-pragma.c: Likewise.
9445 * config/mep/mep.c: Likewise.
9446 * config/microblaze/microblaze-c.c: Likewise.
9447 * config/microblaze/microblaze.c: Likewise.
9448 * config/mips/mips-tables.opt
9449 * config/mips/mips.c: Likewise.
9450 * config/mmix/mmix.c: Likewise.
9451 * config/mn10300/mn10300.c: Likewise.
9452 * config/moxie/moxie.c: Likewise.
9453 * config/msp430/msp430-c.c: Likewise.
9454 * config/msp430/msp430.c: Likewise.
9455 * config/nds32/nds32-cost.c: Likewise.
9456 * config/nds32/nds32-fp-as-gp.c: Likewise.
9457 * config/nds32/nds32-intrinsic.c: Likewise.
9458 * config/nds32/nds32-isr.c: Likewise.
9459 * config/nds32/nds32-md-auxiliary.c: Likewise.
9460 * config/nds32/nds32-memory-manipulation.c: Likewise.
9461 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9462 * config/nds32/nds32-predicates.c: Likewise.
9463 * config/nds32/nds32.c: Likewise.
9464 * config/nios2/nios2.c: Likewise.
9465 * config/nvptx/mkoffload.c: Likewise.
9466 * config/nvptx/nvptx.c: Likewise.
9467 * config/pa/pa.c: Likewise.
9468 * config/pdp11/pdp11.c: Likewise.
9469 * config/rl78/rl78-c.c: Likewise.
9470 * config/rl78/rl78.c: Likewise.
9471 * config/rs6000/host-darwin.c: Likewise.
9472 * config/rs6000/rs6000-c.c: Likewise.
9473 * config/rs6000/rs6000-linux.c: Likewise.
9474 * config/rs6000/rs6000.c: Likewise.
9475 * config/rx/rx.c: Likewise.
9476 * config/s390/s390-c.c: Likewise.
9477 * config/s390/s390.c: Likewise.
9478 * config/sh/sh-c.c: Likewise.
9479 * config/sh/sh-mem.cc: Likewise.
9480 * config/sh/sh.c: Likewise.
9481 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9482 * config/sh/sh_treg_combine.cc: Likewise.
9483 * config/sol2-c.c: Likewise.
9484 * config/sol2-cxx.c: Likewise.
9485 * config/sol2-stubs.c: Likewise.
9486 * config/sol2.c: Likewise.
9487 * config/sparc/sparc-c.c: Likewise.
9488 * config/sparc/sparc.c: Likewise.
9489 * config/spu/spu-c.c: Likewise.
9490 * config/spu/spu.c: Likewise.
9491 * config/stormy16/stormy16.c: Likewise.
9492 * config/v850/v850-c.c: Likewise.
9493 * config/v850/v850.c: Likewise.
9494 * config/vax/vax.c: Likewise.
9495 * config/visium/visium.c: Likewise.
9496 * config/vms/vms-c.c: Likewise.
9497 * config/vms/vms.c: Likewise.
9498 * config/vxworks.c: Likewise.
9499 * config/winnt-c.c: Likewise.
9500 * config/xtensa/xtensa.c: Likewise.
9501
9502 2015-10-16 Christian Bruel <christian.bruel@st.com>
9503
9504 PR target/67745
9505 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9506 (FUNCTION_BOUNDARY_P): New macro:
9507 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9508 New hook.
9509 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9510 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9511 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9512 * function.c (allocate_struct_function): Call
9513 relayout_function hook.
9514 * passes.c (rest_of_decl_compilation): Likewise.
9515
9516 2015-10-16 Christian Bruel <christian.bruel@st.com>
9517
9518 PR target/67745
9519 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9520 * config/arm/arm.c (arm_option_override_internal): Call
9521 arm_override_options_after_change_1.
9522 (arm_override_options_after_change): New function.
9523 (arm_override_options_after_change_1): Likewise.
9524 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9525
9526 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9527
9528 Revert:
9529 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9530 empty constructors.
9531
9532 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
9533
9534 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9535 argument is an ADDR_EXPR.
9536
9537 2015-10-16 Richard Biener <rguenther@suse.de>
9538
9539 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9540 and get rid of force_gimple_operand_gsi.
9541 (gimple_fold_builtin_memory_chk): Likewise.
9542 (gimple_fold_builtin_stxcpy_chk): Likewise.
9543 (rewrite_to_defined_overflow): Likewise.
9544 (gimple_convert_to_ptrofftype): New function.
9545 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9546
9547 2015-10-16 Richard Biener <rguenther@suse.de>
9548
9549 * tree-nested.h (build_addr): Adjust prototype.
9550 * tree-nested.c (build_addr): Remove context argument and use
9551 mark_addressable.
9552 (get_static_chain): Adjust calls to build_addr.
9553 (convert_nl_goto_reference): Likewise.
9554 (convert_tramp_reference_op): Likewise.
9555 (finalize_nesting_tree_1): Likewise.
9556 * value-prof.c (gimple_ic): Likewise.
9557 * gimple-low.c (lower_builtin_setjmp): Likewise.
9558 * tree-parloops.c (take_address_of): Likewise.
9559 (create_call_for_reduction_1): Likewise.
9560 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9561 (gimple_gen_ic_func_profiler): Likewise.
9562
9563 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9564
9565 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9566 empty constructors.
9567
9568 2015-10-16 Michael Collison <michael.collison@linaro.org>
9569 Andrew Pinski <andrew.pinski@caviumnetworks.com>
9570
9571 * match.pd ((x < y) && (x < z) -> x < min (y,z),
9572 (x > y) and (x > z) -> x > max (y,z))
9573
9574 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
9575 Szabolcs Nagy <szabolcs.nagy@arm.com>
9576
9577 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9578 (DYNAMIC_LINKER): Renamed to ...
9579 (GLIBC_DYNAMIC_LINKER): This.
9580 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9581
9582 2015-10-15 Marek Polacek <polacek@redhat.com>
9583
9584 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9585 gimple_call_builtin instead of is_gimple_call.
9586
9587 2015-10-15 Richard Biener <rguenther@suse.de>
9588
9589 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9590
9591 2015-10-15 Richard Biener <rguenther@suse.de>
9592
9593 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9594 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9595 * tree-vect-loop.c (get_initial_def_for_induction): Drop
9596 use of force_gimple_operand in favor of gimple_build.
9597 Use vect_get_new_ssa_name.
9598 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9599 (vectorizable_mask_load_store): Likewise.
9600 (vectorizable_call): Likewise.
9601 (vectorizable_store): Likewise.
9602 (vectorizable_load): Likewise.
9603 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9604
9605 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
9606
9607 PR tree-optimization/67945
9608 * tree-pass.h (PROP_gimple_opt_math): New property flag.
9609 * generic-match-head.c (canonicalize_math_p): New function.
9610 * gimple-match-head.c: Include tree-pass.h.
9611 (canonicalize_math_p): New function.
9612 * match.pd: Group math built-in rules into simplifications
9613 and canonicalizations. Guard the latter with canonicalize_math_p.
9614 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9615 PROP_gimple_opt_math property.
9616
9617 2015-10-15 Marek Polacek <polacek@redhat.com>
9618
9619 PR tree-optimization/67953
9620 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9621
9622 2015-10-15 Jiong Wang <jiong.wang@arm.com>
9623
9624 * config.gcc: Recognize "." in architecture base name for AArch64.
9625
9626 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9627
9628 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9629 ROUND_UP macro.
9630 * config/mips/mips.c (mips_setup_incoming_varargs): Use
9631 ROUND_DOWN to calculate off.
9632 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9633 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9634 rounded_size.
9635
9636 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
9637
9638 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9639
9640 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
9641 Torvald Riegel <triegel@redhat.com>
9642
9643 PR target/67281
9644 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9645 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9646 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9647 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9648 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
9649 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9650 trechkpt, treclaim, tsr, ttest): New define_expands.
9651 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9652 __TM_FENCE__ for htm.
9653 * doc/extend.texi: Update documentation for htm builtins.
9654
9655 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9656
9657 PR target/67967
9658 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
9659 REG_CFA_EXPRESSION to aligned SSE stores.
9660
9661 2015-10-14 Jeff Law <law@redhat.com>
9662
9663 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
9664 num_threaded_edges for successful FSM threads too.
9665
9666 2015-10-14 Richard Biener <rguenther@suse.de>
9667
9668 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
9669 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
9670 (vect_get_vec_def_for_operand): Remove unused parameter.
9671 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
9672 (vect_create_epilog_for_reduction): Likewise.
9673 (vectorizable_reduction): Likewise.
9674 (vectorizable_live_operation): Likewise.
9675 * tree-vect-patterns.c (type_conversion_p): Likewise.
9676 (vect_recog_vector_vector_shift_pattern): Likewise.
9677 (check_bool_pattern): Likewise.
9678 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9679 (vect_analyze_slp_cost_1): Likewise.
9680 * tree-vect-stmts.c (process_use): Likewise.
9681 (vect_get_vec_def_for_operand): Do not handle reductions.
9682 (vect_get_vec_defs): Adjust.
9683 (vectorizable_mask_load_store): Likewise.
9684 (vectorizable_call): Likewise.
9685 (vectorizable_simd_clone_call): Likewise.
9686 (vect_get_loop_based_defs): Likewise.
9687 (vectorizable_conversion): Likewise.
9688 (vectorizable_assignment): Likewise.
9689 (vectorizable_shift): Likewise.
9690 (vectorizable_operation): Likewise.
9691 (vectorizable_store): Likewise.
9692 (vectorizable_load): Likewise.
9693 (vect_is_simple_cond): Likewise.
9694 (vectorizable_condition): Likewise.
9695 (vect_is_simple_use): Remove unused parameters.
9696 (vect_is_simple_use_1): Adjust and rename.
9697
9698 2015-10-14 Richard Biener <rguenther@suse.de>
9699
9700 PR tree-optimization/67915
9701 * match.pd: Handle comparisons of addresses of STRING_CSTs.
9702 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9703 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9704 stmt folding in favor of GIMPLE one.
9705
9706 2015-10-14 Marek Polacek <polacek@redhat.com>
9707
9708 PR tree-optimization/67815
9709 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9710 (reassociate_bb): Call it.
9711
9712 2015-10-14 Richard Biener <rguenther@suse.de>
9713
9714 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9715 Reset info at start.
9716 (vect_analyze_group_access_1): Add debug print.
9717 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9718 (vect_compute_single_scalar_iteration_cost): ... to this.
9719 (vect_analyze_loop_2): Adjust.
9720 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9721 * tree-vectorizer.h: ... here.
9722 (add_stmt_info_to_vec): Remove.
9723 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9724
9725 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
9726
9727 * targhooks.c (default_target_option_pragma_parse): Do not warn if
9728 called on behalf of "#pragma GCC pop_options".
9729
9730 2015-10-14 Tom de Vries <tom@codesourcery.com>
9731
9732 * cfganal.c (verify_no_unreachable_blocks): New function.
9733 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9734 verify_no_unreachable_blocks.
9735 cfganal.h (verify_no_unreachable_blocks): Declare.
9736
9737 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
9738
9739 * common.opt: Add flag_checking.
9740 * system.h (CHECKING_P): Define.
9741
9742 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9743 Aldy Hernandez <aldyh@redhat.com>
9744 Ilya Verbin <ilya.verbin@intel.com>
9745
9746 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9747 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9748 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9749 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9750 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9751 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9752 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9753 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9754 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9755 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9756 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9757 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9758 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9759 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9760 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9761 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9762 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9763 (struct cgraph_simd_clone_arg): Adjust comment.
9764 * coretypes.h (struct gomp_ordered): New forward decl.
9765 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9766 set critical clauses to it.
9767 (gimple_build_omp_ordered): Return gomp_ordered * instead of
9768 gimple *. Add CLAUSES argument, set ordered clauses to it.
9769 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9770 GIMPLE_OMP_ORDERED.
9771 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9772 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9773 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
9774 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9775 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
9776 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9777 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
9778 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9779 renumber
9780 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9781 (gomp_critical): Add clauses field.
9782 (gomp_ordered): New struct.
9783 (is_a_helper <gomp_ordered *>::test): New inline.
9784 (gimple_build_omp_critical): Add CLAUSES argument.
9785 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
9786 instead of gimple *.
9787 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9788 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9789 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9790 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9791 inline functions.
9792 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9793 (dump_gimple_omp_target): Handle enter data and exit data.
9794 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9795 (dump_gimple_omp_critical): Print clauses.
9796 (dump_gimple_omp_ordered): New function.
9797 (dump_gimple_omp_task): Handle taskloop.
9798 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9799 GIMPLE_OMP_ORDERED.
9800 * gimple-walk.c (walk_gimple_op): Walk clauses on
9801 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9802 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9803 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9804 (struct gimplify_omp_ctx): Add loop_iter_var,
9805 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9806 and target_firstprivatize_array_bases fields.
9807 (delete_omp_context): Release loop_iter_var.
9808 (gimplify_bind_expr): Handle ORT_NONE.
9809 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9810 ORT_COMBINED_TARGET.
9811 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9812 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9813 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
9814 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
9815 ctx->target_map_scalars_firstprivate.
9816 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
9817 data sharing clauses. For data sharing clause with VLA decl
9818 on omp target/target data don't add firstprivate for the pointer.
9819 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9820 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9821 the addition of ORT_COMBINED_TARGET.
9822 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
9823 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
9824 pointers as zero length array sections and
9825 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9826 data sharing.
9827 (omp_check_private): Handle omp_member_access_dummy_var vars.
9828 (find_decl_expr): New function.
9829 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
9830 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9831 Handle OMP_CLAUSE_GANG separately. Handle
9832 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9833 clauses. Diagnose linear clause on combined
9834 distribute {, parallel for} simd construct, unless it is the loop
9835 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9836 Handle map clauses with COMPONENT_REF. Initialize
9837 ctx->target_map_scalars_firstprivate,
9838 ctx->target_firstprivatize_array_bases and
9839 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
9840 linear clause even to target region if combined. Remove
9841 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9842 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
9843 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9844 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
9845 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9846 For linear clause on worksharing loop combined with parallel add
9847 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
9848 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
9849 omp_member_access_dummy_var vars. Add lastprivate clause to outer
9850 taskloop if needed.
9851 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9852 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9853 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9854 GOMP_MAP_POINTER.
9855 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
9856 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9857 in target body. Handle removal of struct mapping if struct is not
9858 seen in target body. Remove GOMP_MAP_STRUCT map clause on
9859 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
9860 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
9861 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9862 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9863 clause appear together. Handle
9864 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
9865 clause if it has map-type-modifier always. Handle
9866 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9867 clauses.
9868 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9869 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9870 callers.
9871 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
9872 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
9873 iterators in doacross loops.
9874 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9875 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
9876 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
9877 for the addition of ORT_COMBINED_TARGET.
9878 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9879 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
9880 and OMP_TARGET_EXIT_DATA.
9881 (gimplify_omp_ordered): New function.
9882 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9883 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
9884 Gimplify clauses on OMP_CRITICAL.
9885 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9886 expand_GOMP_SIMD_ORDERED_END): New functions.
9887 * internal-fn.def (GOMP_SIMD_ORDERED_START,
9888 GOMP_SIMD_ORDERED_END): New internal functions.
9889 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9890 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9891 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9892 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9893 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9894 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9895 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9896 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9897 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9898 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9899 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9900 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9901 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9902 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9903 adjust type.
9904 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9905 GOMP_target_data_41, adjust type.
9906 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9907 GOMP_target_update_41, adjust type.
9908 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9909 field.
9910 (struct omp_for_data): Add ordered and simd_schedule fields.
9911 (omp_member_access_dummy_var, unshare_and_remap_1,
9912 unshare_and_remap, is_taskloop_ctx): New functions.
9913 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9914 (extract_omp_for_data): Handle taskloops and doacross loops
9915 and simd schedule modifier.
9916 (omp_adjust_chunk_size): New function.
9917 (get_ws_args_for): Use it.
9918 (lookup_sfield): Change first argument to splay_tree_key,
9919 add overload with first argument tree.
9920 (maybe_lookup_field): Likewise.
9921 (use_pointer_for_field): Handle omp_member_access_dummy_var.
9922 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9923 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9924 (build_outer_var_ref): Add LASTPRIVATE argument, handle
9925 taskloops and omp_member_access_dummy_var vars.
9926 (build_sender_ref): Change first argument to splay_tree_key,
9927 add overload with first argument tree.
9928 (install_var_field): For mask & 8 use &DECL_UID as key instead
9929 of the tree itself.
9930 (fixup_child_record_type): Const qualify *.omp_data_i.
9931 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9932 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9933 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9934 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9935 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9936 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9937 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9938 kinds.
9939 (add_taskreg_looptemp_clauses): New function.
9940 (scan_omp_parallel): Use it.
9941 (scan_omp_task): Likewise.
9942 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9943 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9944 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9945 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
9946 sandwiched taskloop constructs. Type check
9947 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
9948 region. Diagnose depend(source) or depend(sink:...) on
9949 target constructs or task/taskloop.
9950 (handle_simd_reference): Use get_name.
9951 (lower_rec_input_clauses): Likewise. Ignore all
9952 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9953 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
9954 before passing it to omp_clause_{default,copy}_ctor. Handle
9955 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
9956 lastprivate_firstprivate flag for linear that needs copyin and
9957 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9958 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9959 on taskloop lookup decl in outer context. Pass true to
9960 build_outer_var_ref lastprivate argument. Handle
9961 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9962 outside of outer taskloop for.
9963 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9964 OMP_CLAUSE_DECL.
9965 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9966 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
9967 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
9968 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
9969 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9970 abstract origin. Handle omp_member_access_dummy_var vars.
9971 (expand_parallel_call): Use expand_omp_build_assign.
9972 (expand_task_call): Handle taskloop construct expansion. Add
9973 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
9974 integers. Add priority argument to GOMP_task* calls. Or in
9975 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9976 GOMP_task call.
9977 (expand_omp_build_assign): Add prototype. Add AFTER
9978 argument, if true emit statements after *GSI_P and continue linking.
9979 (expand_omp_taskreg): Adjust expand_task_call caller.
9980 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9981 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9982 zero_iter2_bb and first_zero_iter2 arguments, handle computation
9983 of counts even for ordered loops.
9984 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9985 (expand_omp_ordered_source, expand_omp_ordered_sink,
9986 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9987 functions.
9988 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
9989 clauses on worksharing loop. Handle DOACROSS loop expansion.
9990 (expand_omp_for_static_nochunk): Handle linear clauses on
9991 worksharing loop. Adjust expand_omp_for_init_counts
9992 callers.
9993 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
9994 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
9995 expand_omp_for_init_counts callers.
9996 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9997 functions.
9998 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9999 Handle doacross loops.
10000 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10001 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
10002 GOMP_target_{41,update_41,enter_exit_data} libcalls.
10003 (expand_omp): Don't expand ordered depend constructs here, record
10004 ord_stmt instead for later expand_omp_for_generic.
10005 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10006 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10007 clause as stand-alone directive.
10008 (lower_omp_ordered_clauses): New function.
10009 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10010 don't lower anything.
10011 (lower_omp_for_lastprivate): Use last _looptemp_ clause
10012 on taskloop for comparison.
10013 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
10014 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10015 expansion for linear adjustments.
10016 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10017 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10018 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
10019 to tree * pointing to the stmt's clauses.
10020 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10021 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10022 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10023 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10024 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10025 clauses. Always use short kind and 8-bit align shift.
10026 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10027 (struct lower_omp_regimplify_operands_data): New type.
10028 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10029 New functions.
10030 (lower_omp_1): Use lower_omp_regimplify_operands instead of
10031 gimple_regimplify_operands.
10032 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10033 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10034 clause as stand-alone directive.
10035 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10036 (simd_clone_mangle): Mangle the various linear kinds
10037 per the new ABI.
10038 (simd_clone_adjust_argument_types): Handle
10039 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10040 (simd_clone_init_simd_arrays): Don't do anything for uval.
10041 (simd_clone_adjust): Handle
10042 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10043 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10044 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10045 * omp-low.h (omp_member_access_dummy_var): New prototype.
10046 * passes.def (pass_simduid_cleanup): Schedule another copy of the
10047 pass after all optimizations.
10048 * tree.c (omp_clause_code_name): Add entries for
10049 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10050 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10051 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
10052 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10053 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10054 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10055 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10056 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10057 clauses.
10058 * tree-core.h (enum omp_clause_linear_kind): New.
10059 (struct tree_omp_clause): Change type of map_kind
10060 from unsigned char to unsigned int. Add subcode.if_modifier
10061 and subcode.linear_kind fields.
10062 (enum omp_clause_code): Add
10063 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10064 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10065 (OMP_CLAUSE_REDUCTION): Document
10066 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10067 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10068 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10069 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10070 operand.
10071 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10072 operand.
10073 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10074 codes.
10075 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10076 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10077 char.
10078 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10079 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10080 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10081 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10082 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10083 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10084 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10085 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10086 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10087 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10088 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10089 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10090 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10091 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10092 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10093 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10094 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10095 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10096 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10097 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10098 (convert_local_omp_clauses): Likewise.
10099 * tree-pretty-print.c (dump_omp_clause): Handle
10100 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10101 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10102 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10103 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10104 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10105 GOMP_MAP_FORCE_DEALLOC. Handle
10106 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10107 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10108 and clauses on OMP_ORDERED and OMP_CRITICAL.
10109 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10110 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10111 (vectorize_loops): Adjust comments.
10112 (pass_simduid_cleanup::execute): Likewise.
10113 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10114 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10115 * wide-int.h (wi::gcd): New.
10116
10117 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10118
10119 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10120 (ix86_function_arg_advance): Ditto.
10121 (ix86_function_arg): Ditto.
10122 (ix86_gimplify_va_arg): Ditto.
10123 (ix86_class_max_nregs): Ditto.
10124 (inline_memory_move_cost): Ditto.
10125 (ix86_set_reg_reg_cost): Ditto.
10126 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10127
10128 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10129
10130 PR middle-end/67912
10131 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10132
10133 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10134
10135 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10136 ROUND_UP macro and UNITS_PER_WORD * 2.
10137 * config/sparc/sparc.c (sparc_compute_frame_size):
10138 Use ROUND_UP and ROUND_DOWN macros where applicable.
10139 (function_arg_record_value, function_arg_record_value_1)
10140 (function_arg_record_value_1): Ditto.
10141 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10142 alignment to double-word.
10143 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10144 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10145 rounded_size.
10146
10147 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
10148
10149 * rtl.h (print_insn): Fix prototype.
10150
10151 2015-10-13 Tom de Vries <tom@codesourcery.com>
10152
10153 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10154 -1. Add assert that returned entry matches phi argument.
10155 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10156 free_stmt_vec_info_vec ...
10157 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
10158 with -1.
10159
10160 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
10161
10162 PR tree-optimization/67909, 67947
10163 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10164 really skip the inner loop.
10165
10166 2015-10-13 Jeff Law <law@redhat.com>
10167
10168 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10169 Allow single block jump threading paths.
10170
10171 2015-10-13 Tom de Vries <tom@codesourcery.com>
10172
10173 PR tree-optimization/67476
10174 * doc/invoke.texi (@item parloops-schedule): New item.
10175 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10176 * tree-parloops.c: Include params-enum.h.
10177 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10178
10179 2015-10-13 Tom de Vries <tom@codesourcery.com>
10180
10181 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10182 * params-enum.h: New file.
10183 * opts.c (handle_param): Handle case that param arg is a string.
10184 * params-list.h: Handle DEFPARAMENUM5 in params.def.
10185 * params.c (find_param): New function, factored out of ...
10186 (set_param_value): ... here.
10187 (param_string_value_p): New function.
10188 * params.h (struct param_info): Add value_names field.
10189 (find_param, param_string_value_p): Declare.
10190
10191 2015-10-13 Tom de Vries <tom@codesourcery.com>
10192
10193 PR tree-optimization/67476
10194 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10195
10196 2015-10-13 Richard Biener <rguenther@suse.de>
10197
10198 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10199 the data dependence vector.
10200 (vect_peeling_hash_insert): Get the peeling hash table as argument.
10201 (vect_peeling_hash_get_lowest_cost): Likewise.
10202 (vect_enhance_data_refs_alignment): Adjust.
10203 (struct _vect_peel_info, struct _vect_peel_extended_info,
10204 struct peel_info_hasher): Move from ...
10205 * tree-vectorizer.h: ... here.
10206 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10207 (LOOP_VINFO_PEELING_HTAB): Likewise.
10208 (struct _loop_vec_info): Remove min_profitable_iters and
10209 peeling_htab members.
10210 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10211 here.
10212 (destroy_loop_vec_info): Adjust.
10213 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10214 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10215 to estimate alias versioning cost.
10216 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10217
10218 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
10219
10220 * real.h (real_isinteger): Declare.
10221 * real.c (real_isinteger): New function.
10222 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10223 if y is an even integer.
10224
10225 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10226
10227 revert:
10228 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10229 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10230 counts when these are more informative.
10231
10232 2015-10-12 Jeff Law <law@redhat.com>
10233
10234 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10235 (fsm_find_control_stmt_paths): Change name of first argument to
10236 more accurately relfect what it really is. Handle simplification
10237 of GIMPLE_COND after finding a thread path for NAME.
10238 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10239 nontrivial conditions to be handled by FSM threader.
10240 (thread_through_normal_block): Extract the name to looup via
10241 FSM threader from COND_EXPR.
10242
10243 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10244 restriction that traced SSA_NAME is a user variable.
10245
10246 2015-10-12 Tom de Vries <tom@codesourcery.com>
10247
10248 PR tree-optimization/67476
10249 * omp-low.c (expand_omp_for_generic): Add missing phis.
10250
10251 2015-10-12 Tom de Vries <tom@codesourcery.com>
10252
10253 PR tree-optimization/67476
10254 * omp-low.c (expand_omp_for_generic): Handle simple latch.
10255
10256 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
10257
10258 * config/aarch64/aarch64-simd-builtins.def: Update builtins
10259 tables: add tbl3 and tbx4.
10260 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10261 (aarch64_tbx4v8qi): New.
10262 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10263 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10264 Rewrite using builtin functions.
10265 * config/aarch64/iterators.md (UNSPEC_TBX): New.
10266
10267 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10268
10269 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10270 ROUND_UP macro.
10271 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10272 Use ROUND_UP and ROUND_DOWN macros where applicable.
10273 (rs6000_darwin64_record_arg_flush): Ditto.
10274 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10275 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10276 rounded_size.
10277
10278 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10279
10280 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10281 (AARCH64_ROUND_DOWN): Ditto.
10282 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10283
10284 2015-10-12 Richard Biener <rguenther@suse.de>
10285
10286 PR ipa/67783
10287 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10288 code that analyzes IVs on each stmt but in a cheaper way avoiding
10289 quadratic behavior.
10290
10291 2015-10-12 Nick Clifton <nickc@redhat.com>
10292
10293 * config/msp430/msp430.c (msp430_mcu_names): Rename to
10294 msp430_mcu_data, add fields for ISA and hardware multiply
10295 support. Import latest data from the devices.csv file.
10296 (msp430_override_option): Use the data from the new array.
10297 (msp430_use_f5_series_hwmult): Likewise.
10298 (use_32bit_hwmult): Likewise.
10299 (msp430_no_hwmult): Likewise.
10300 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10301 MCU names.
10302 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10303 not recognised then no hardware multiply support is assumed and
10304 that only the MSP430 ISA is allowed.
10305
10306 2015-10-12 Richard Biener <rguenther@suse.de>
10307
10308 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10309 related code ...
10310 (vect_analyze_loop_2): ... here.
10311
10312 2015-10-11 Jason Merrill <jason@redhat.com>
10313
10314 PR c++/67557
10315 * expr.c (store_field): Call store_constructor directly when
10316 storing a CONSTRUCTOR into a target smaller than its type.
10317 Guard against unsafe bitwise copy.
10318
10319 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10320
10321 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10322 counts when these are more informative.
10323
10324 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10325
10326 * tree-profile.c (tree_profiling): Do not clear
10327 pure/const when not instrumenting.
10328 (pass tree_profile): Add dump of symtab.
10329
10330 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10331
10332 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10333 addresses.
10334 (fold_addr_of_array_ref_difference): Likewise.
10335
10336 2015-10-11 Jeff Law <law@redhat.com>
10337
10338 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10339 tree-ssa-threadbackward.c.
10340 (fsm_find_control_statement_thread_paths): Likewise.
10341 (thread_through_normal_block): Break out FSM bits and move them
10342 into a new function in tree-ssa-threadbackward.c. Call new function
10343 instead.
10344 Minimize header file usage.
10345 * tree-ssa-threadbackward.h: New file.
10346 * tree-ssa-threadbackward.c: Likewise.
10347 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10348
10349 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
10350
10351 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10352
10353 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
10354
10355 PR rtl-optimization/67864
10356 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10357 fallthrough edges for conditional jumps. Don't sort candidate
10358 edges if not optimizing for speed.
10359
10360 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10361
10362 * defaults.h (REVERSE_CONDITION): New default definition.
10363 * jump.c (reversed_comparison_code_parts): Adjust.
10364
10365 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10366
10367 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10368 check HARD_FRAME_POINTER_IS_ARG_POINTER.
10369
10370 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10371
10372 * defaults.h (FRAME_ADDR_RTX): New default definition.
10373 * builtins.c (expand_builtin_return_addr): Adjust.
10374
10375 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10376
10377 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10378 * builtins.c (expand_builtin_return_addr): Adjust.
10379
10380 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10381
10382 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10383 * builtins.c (expand_builtin_return_addr): Adjust.
10384 * doc/tm.texi: Likewise.
10385 * doc/tm.texi.in: Likewise.
10386 * except.c (expand_builtin_unwind_init): Likewise.
10387
10388 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10389
10390 * builtins.c (expand_builtin_return_addr): Adjust.
10391 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10392
10393 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10394
10395 * tree.c (type_with_interoperable_signedness): New.
10396 (gimple_canonical_types_compatible_p): Use it.
10397 * tree.h (type_with_interoperable_signedness): Declare
10398
10399 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10400
10401 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10402 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10403 when OEP_ADDRESS_OF is se.
10404
10405 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10406 Sebastian Pop <s.pop@samsung.com>
10407
10408 * graphite-dependences.c (scop_get_dependences): Add dump of the
10409 data dependence graph.
10410 * graphite-poly.c (print_isl_union_map): New.
10411 (debug_isl_union_map): New.
10412 * graphite-poly.h (print_isl_union_map): Declare.
10413 (debug_isl_union_map): Declare.
10414
10415 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10416 Sebastian Pop <s.pop@samsung.com>
10417
10418 * graphite-poly.c (print_iteration_domain): Remove verbosity.
10419 Remove OpenScop formatting.
10420 (print_iteration_domains): Same.
10421 (debug_iteration_domain): Same.
10422 (debug_iteration_domains): Same.
10423 (print_pdr): Same.
10424 (debug_pdr): Same.
10425 (dump_gbb_cases): Same.
10426 (dump_gbb_conditions): Same.
10427 (print_pdrs): Same.
10428 (debug_pdrs): Same.
10429 (print_pbb_body): Same.
10430 (print_pbb): Same.
10431 (print_scop_params): Same.
10432 (print_scop_context): Same.
10433 (print_scop): Same.
10434 (debug_pbb_domain): Same.
10435 (debug_pbb): Same.
10436 (debug_scop_context): Same.
10437 (debug_scop): Same.
10438 (debug_scop_params): Same.
10439 * graphite-poly.h: Same.
10440 * graphite.c (graphite_transform_loops): Same.
10441
10442 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10443
10444 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10445 call that isn't needed.
10446
10447 2015-10-09 Jeff Law <law@redhat.com>
10448
10449 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10450 rather than moving each name to the freelist individually.
10451
10452 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
10453
10454 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10455 * frame-header-opt.c: New file.
10456 * config/mips/mips-proto.h (mips_register_frame_header_opt):
10457 Add prototype.
10458 * config/mips/mips.c (mips_compute_frame_info): Check
10459 optimize_call_stack flag.
10460 (mips_option_override): Register new frame_header_opt pass.
10461 (mips_frame_info, mips_int_mask, mips_shadow_set,
10462 machine_function): Move these types to...
10463 * config/mips/mips.h: here.
10464 (machine_function): Add does_not_use_frame_header and
10465 optimize_call_stack fields.
10466 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10467 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10468 Document new flags.
10469 * config/mips/mips.opt (mframe-header-opt): Add new option.
10470
10471 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
10472
10473 * config/i386/i386.c
10474 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10475 ROUND_DOWN where applicable.
10476
10477 2015-10-09 Jeff Law <law@redhat.com>
10478
10479 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10480 correct statement.
10481
10482 2015-10-09 Renlin Li <renlin.li@arm.com>
10483
10484 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10485 operands[0] and operands[2].
10486 (neon_vtrn<mode>_insn): Likewise.
10487 (neon_vzip<mode>_insn): Likewise.
10488
10489 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
10490
10491 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10492 ((X & C2) << C1): Expand to...
10493 (X {&,^,|} C2 << C1): ...This.
10494 ((X & C2) >> C1): Expand to...
10495 (X {&,^,|} C2 >> C1): ...This.
10496
10497 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
10498
10499 PR target/67895
10500 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10501 Adjust embedded rounding/SAE specifier position.
10502 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10503 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10504 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10505 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10506 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10507 Likewise.
10508 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10509
10510 2015-10-09 Martin Jambor <mjambor@suse.cz>
10511
10512 tree-optimization/67794
10513 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10514 between types of state,ents but accept original definitions as a
10515 parameter.
10516 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10517 iterate over definitions.
10518
10519 2015-10-09 James Norris <jnorris@codesourcery.com>
10520
10521 * config/rs6000/rs6000.c (rs6000_offload_options): New.
10522 (TARGET_OFFLOAD_OPTIONS): New.
10523
10524 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
10525
10526 PR middle-end/67891
10527 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10528
10529 PR middle-end/67766
10530 * function.c (expand_function_end): Move return value
10531 promotion past the handling of PARALLELs and CONCATs.
10532
10533 PR rtl-optimization/67828
10534 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10535 (tree_may_unswitch_on): Don't unswitch on expressions
10536 involving undefined values.
10537
10538 2015-10-09 Richard Biener <rguenther@suse.de>
10539
10540 * genmatch.c (print_operand): Fix formatting.
10541 (dt_node::append_simplify): Warn for multiple simplifiers
10542 that match the same pattern.
10543 * match.pd (log (exp @0)): Remove duplicates.
10544
10545 2015-10-09 Richard Biener <rguenth@suse.de>
10546
10547 PR target/67366
10548 * gimple-fold.c (optabs-query.h): Include
10549 (gimple_fold_builtin_memory_op): Allow unaligned stores
10550 when movmisalign_optabs are available.
10551
10552 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10553
10554 PR target/67366
10555 * config/arm/arm.md (movmisalign<mode>): New.
10556 * config/arm/iterators.md (HSI): New.
10557
10558 2015-10-09 Richard Biener <rguenther@suse.de>
10559
10560 PR tree-optimization/67891
10561 * gimple-match.h (gimple_simplified_result_is_gimple_val):
10562 New helper.
10563 (gimple_resimplify1): Declare.
10564 (gimple_resimplify2): Likewise.
10565 (gimple_resimplify3): Likewise.
10566 * gimple-match-head.c (gimple_resimplify1): Export.
10567 (gimple_resimplify2): Likewise.
10568 (gimple_resimplify3): Likewise.
10569 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10570 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10571 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10572 to avoid creating stmts without VN info.
10573
10574 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
10575
10576 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10577 of availability.
10578
10579 2015-10-08 Jeff Law <law@redhat.com>
10580
10581 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10582 and release_ssa_name in two places.
10583 (gimple_stringop_fixed_value): Similarly.
10584
10585 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10586 release_defs.
10587
10588 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10589 unlink_stmt_vdef and release_ssa_name_fn.
10590
10591 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10592 release_defs.
10593
10594 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
10595
10596 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10597 SSE register save area to 16 bytes only if the incoming stack
10598 boundary is no less than 16 bytes.
10599
10600 2015-10-08 Jeff Law <law@redhat.com>
10601
10602 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10603 release_ssa_name. Fix typo in comment.
10604
10605 2015-10-08 Nathan Sidwell <nathan@acm.org>
10606
10607 * config/nvptx/nvptx.h (struct machine_function): Add comment.
10608 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10609 may return pointer as well as in memory.
10610 (nvptx_output_return): Likewise.
10611
10612 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10613
10614 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10615 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10616 * match.pd: Add rules previously handled by fold_builtin_sqrt
10617 and fold_builtin_cbrt.
10618
10619 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10620
10621 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10622 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10623 * fold-const.h (tree_unary_nonnegative_warnv_p)
10624 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10625 (tree_expr_nonnegative_warnv_p): Add depth parameters.
10626 * fold-const.c: Include gimple-fold.h and params.h.
10627 (tree_ssa_name_nonnegative_warnv_p): New function.
10628 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10629 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10630 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10631 Add a depth parameter and increment it for recursive calls to
10632 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
10633 to handle SSA names.
10634 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10635 (gimple_stmt_nonnegative_warnv_p): Declare.
10636 * tree-vrp.c (remove_range_assertions): Remove assert that condition
10637 cannot be proven false.
10638 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10639 (gimple_stmt_nonnegative_warnv_p): Move to...
10640 * gimple-fold.c: ...here. Add depth parameters and pass them
10641 down to the tree routines. Accept statements that aren't
10642 assignments or calls but just return false for them.
10643 (gimple_val_nonnegative_real_p): Delete.
10644 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10645 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10646 Check HONOR_NANs first.
10647
10648 2015-10-08 Martin Jambor <mjambor@suse.cz>
10649
10650 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
10651 unnecessary MIN.
10652
10653 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10654
10655 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
10656 in the tail of outer-loop.
10657
10658 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
10659
10660 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
10661 return UI_NONE.
10662
10663 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10664
10665 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
10666 "cfghooks.h", add prototypes for introduced new functions.
10667 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
10668 checks on ability of loop unswitching to tree_unswitch_single_loop;
10669 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
10670 on innermost loop check.
10671 (tree_unswitch_single_loop): Add all required checks on ability of
10672 loop unswitching under zero recursive level guard.
10673 (tree_unswitch_outer_loop): New function.
10674 (find_loop_guard): Likewise.
10675 (empty_bb_without_guard_p): Likewise.
10676 (used_outside_loop_p): Likewise.
10677 (get_vop_from_header): Likewise.
10678 (hoist_guard): Likewise.
10679 (check_exit_phi): Likewise.
10680
10681 2015-10-08 Marek Polacek <polacek@redhat.com>
10682
10683 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
10684 ops element.
10685
10686 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10687
10688 PR c/65345
10689 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
10690 create_tmp_var_raw instead of create_tmp_var.
10691
10692 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
10693
10694 * expr.c (store_expr_with_bounds): Handle aggregate moves from
10695 BLKmode.
10696 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10697 to define gimple type system; compare aggregates only by size.
10698
10699 2015-10-07 Jeff Law <law@redhat.com>
10700
10701 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10702 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10703 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
10704 unnecessarily.
10705
10706 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10707 Sebastian Pop <s.pop@samsung.com>
10708
10709 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10710 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10711 (generate_isl_schedule): Same.
10712 * graphite-optimize-isl.c (scop_get_domains): Same.
10713 (apply_schedule_map_to_scop): Same.
10714 * graphite-poly.c (print_iteration_domains): Same.
10715 (remove_gbbs_in_scop): Same.
10716 (new_scop): Same.
10717 (free_scop): Same.
10718 (print_scop): Same.
10719 * graphite-poly.h (struct scop): Rename bbs to pbbs.
10720 (SCOP_BBS): Remove.
10721 * graphite-scop-detection.c (compare_bb_depths): Remove.
10722 (graphite_sort_dominated_info): Remove.
10723 (try_generate_gimple_bb): Move out of scop_detection.
10724 (all_non_dominated_preds_marked_p): Remove.
10725 (build_scop_bbs_1): Remove.
10726 (build_scop_bbs): Remove.
10727 (nb_pbbs_in_loops): Do not use SCOP_BBS.
10728 (find_scop_parameters): Same.
10729 (sese_dom_walker): Rename gather_bbs.
10730 (before_dom_children): Call try_generate_gimple_bb and collect gbb
10731 and pbb.
10732 (build_scops): Call gather_bbs.
10733 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10734 (add_conditions_to_constraints): Same.
10735 (build_scop_iteration_domain): Same.
10736 (build_scop_drs): Same.
10737 (new_pbb_from_pbb): Same.
10738 * sese.c (new_sese_info): Create bbs.
10739 * sese.h (struct sese_info_t): Add bbs.
10740
10741 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
10742
10743 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10744 encoding in 64-bit mode.
10745
10746 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
10747
10748 PR target/66697
10749 * config/i386/i386.c (ix86_option_override_internal): Always use
10750 8-byte minimum stack boundary in 64-bit mode.
10751 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10752 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10753 Add a REG_CFA_EXPRESSION note if needed.
10754 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10755 (ix86_handle_force_align_arg_pointer_attribute): New.
10756 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10757 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10758 with ix86_handle_force_align_arg_pointer_attribute.
10759 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10760
10761 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10762 Sebastian Pop <s.pop@samsung.com>
10763
10764 * graphite-scop-detection.c (parameter_index_in_region): Remove
10765 use of SESE_ADD_PARAMS.
10766 (find_scop_parameters): Same.
10767 * sese.c (new_sese_info): Same.
10768 * sese.h (struct sese_info_t): Remove add_params.
10769 (SESE_ADD_PARAMS): Remove.
10770
10771 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10772 Sebastian Pop <s.pop@samsung.com>
10773
10774 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10775 an sese_info_p.
10776 (copy_def): Same.
10777 (copy_internal_parameters): Same.
10778 (translate_isl_ast_to_gimple): Use an sese_l.
10779 (build_iv_mapping): Same.
10780 * graphite-poly.c (new_sese): Rename new_sese_info.
10781 (free_sese): Rename free_sese_info.
10782 * graphite-poly.h (struct scop): Use an sese_info_p.
10783 (scop_set_region): Same.
10784 * graphite-scop-detection.c (struct sese_l): Moved...
10785 (get_entry_bb): Moved...
10786 (get_exit_bb): Moved...
10787 (parameter_index_in_region_1): Use an sese_info_p.
10788 (parameter_index_in_region): Same.
10789 (scan_tree_for_params): Same.
10790 (find_params_in_bb): Same.
10791 (sese_dom_walker): Use an sese_l.
10792 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10793 (reduction_phi_p): Same.
10794 (parameter_index_in_region_1): Use an sese_info_p.
10795 (propagate_expr_outside_region): Use an sese_l.
10796 * graphite.c: Replace uses of SCOP_REGION.
10797 * sese.c (sese_record_loop): Use an sese_info_p.
10798 (build_sese_loop_nests): Same.
10799 (sese_build_liveouts_use): Same.
10800 (sese_build_liveouts_bb): Same.
10801 (sese_build_liveouts_bb): Same.
10802 (sese_bad_liveouts_use): Same.
10803 (sese_reset_debug_liveouts_bb): Same.
10804 (sese_build_liveouts): Same.
10805 (new_sese): Renamed new_sese_info.
10806 (free_sese): Renamed free_sese_info.
10807 (set_rename): Use an sese_info_p.
10808 (graphite_copy_stmts_from_block): Same.
10809 (copy_bb_and_scalar_dependences): Same.
10810 (outermost_loop_in_sese_1): Use an sese_l.
10811 (outermost_loop_in_sese): Same.
10812 (if_region_set_false_region): Use an sese_info_p.
10813 (move_sese_in_condition): Same.
10814 (scalar_evolution_in_region): Use an sese_l.
10815 * sese.h (struct sese_l): ... here.
10816 (SESE_ENTRY): Remove.
10817 (SESE_ENTRY_BB): Remove.
10818 (SESE_EXIT): Remove.
10819 (SESE_EXIT_BB): Remove.
10820 (sese_contains_loop): Use an sese_info_p.
10821 (sese_nb_params): Same.
10822 (bb_in_sese_p): Use an sese_l.
10823 (stmt_in_sese_p): Same.
10824 (defined_in_sese_p): Same.
10825 (loop_in_sese_p): Same.
10826 (sese_loop_depth): Same.
10827 (struct ifsese_s): Use an sese_info_p.
10828 (gbb_loop_at_index): Use an sese_l.
10829 (nb_common_loops): Same.
10830 (scev_analyzable_p): Same.
10831
10832 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10833
10834 * config/i386/i386.c (ix86_conditional_register_usage): Use
10835 CALL_USED_REGISTERS_MASK.
10836 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10837
10838 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10839
10840 PR bootstrap/67385
10841 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10842 * configure: Regenerated.
10843
10844 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10845
10846 PR target/67850
10847 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10848 (ix86_set_current_function): This.
10849 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10850
10851 2015-10-07 Richard Biener <rguenther@suse.de>
10852
10853 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10854 (vinfo_for_stmt): Adjust.
10855 (set_vinfo_for_stmt): Likewise.
10856 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10857 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10858 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10859 of inner loop.
10860 (vect_analyze_loop_1): Remove.
10861 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10862 inner loop when vectorizing an outer loop by splitting out from ...
10863 (vect_analyze_loop_form): ... here.
10864
10865 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10866
10867 PR c/65345
10868 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10869 Use create_tmp_var_raw instead of create_tmp_var.
10870
10871 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
10872
10873 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10874 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10875 * real.c (CACHED_FRACTION): New helper macro.
10876 (dconst_third_ptr): Use it.
10877 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10878 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10879 dconst_sixth.
10880 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10881
10882 2015-10-06 Jeff Law <law@redhat.com>
10883
10884 PR tree-optimization/67816
10885 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10886 from remove_jump_threads_starting_at. Accept an edge rather than
10887 a basic block.
10888 * tree-ssa-threadupdate.c (removed_edges): New hash table.
10889 (remove_jump_threads_including): Note edges that get removed from
10890 the CFG for later pruning of jump threading paths including them.
10891 (thread_through_all_blocks): Remove paths which include edges that
10892 have been removed.
10893 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10894 on each outgoing edges when optimizing away a control statement.
10895
10896 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10897
10898 * reorg.c (emit_delay_sequence): Store list of delay slot insns
10899 in a vector instead of rtx_insn_list.
10900 (add_to_delay_list): Likewise.
10901 (delete_from_delay_slot): Likewise.
10902 (optimize_skip): Likewise.
10903 (redirect_with_delay_list_safe_p): Likewise.
10904 (check_annul_list_true_false): Likewise.
10905 (steal_delay_list_from_target): Likewise.
10906 (steal_delay_list_from_fallthrough): Likewise.
10907 (redundant_insn): Likewise.
10908 (fill_simple_delay_slots): Likewise.
10909 (fill_slots_from_thread): Likewise.
10910 (fill_eager_delay_slots): Likewise.
10911 (relax_delay_slots): Likewise.
10912
10913 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
10914
10915 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10916 For -mgpopt=local, also exclude unintialized common symbols.
10917 * doc/invoke.texi (Nios II Options): Document the change.
10918
10919 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10920
10921 * config/aarch64/iterators.md (vwcore): Add missing cases for
10922 V4HF/V8HF modes.
10923
10924 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10925 Sebastian Pop <s.pop@samsung.com>
10926
10927 * graphite-poly.c (new_scop): Initialize drs.
10928 * graphite-poly.h (struct dr_info): New.
10929 (struct scop): Add drs.
10930 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10931 (pdr_add_memory_accesses): Same.
10932 (build_poly_dr): Same.
10933 (build_alias_set): Same.
10934 (build_scop_drs): Same.
10935 (build_pbb_drs): Remove.
10936 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10937 * tree-data-ref.h (data_reference): Remove alias_set.
10938
10939 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10940 Sebastian Pop <s.pop@samsung.com>
10941
10942 * graphite-poly.c (free_data_refs_aux): Remove.
10943 (free_gimple_poly_bb): Do not call free_data_refs_aux.
10944 * graphite-poly.h (struct base_alias_pair): Remove.
10945 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10946 base_alias_pair and dr->aux.
10947 (build_alias_set): Same.
10948 * tree-data-ref.c (create_data_ref): Initialize alias_set.
10949 * tree-data-ref.h (data_reference): Add alias_set.
10950
10951 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10952 Sebastian Pop <s.pop@samsung.com>
10953
10954 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10955 Do not set PDR_BASE_OBJECT_SET.
10956 * graphite-poly.h (poly_dr): Same.
10957 (PDR_BASE_OBJECT_SET): Remove.
10958 (new_poly_dr): Update decl.
10959 * graphite-sese-to-poly.c (build_poly_dr): Update call to
10960 new_poly_dr.
10961 (write_alias_graph_to_ascii_dimacs): Remove.
10962 (write_alias_graph_to_ascii_dot): Remove.
10963 (write_alias_graph_to_ascii_ecc): Remove.
10964 (dr_same_base_object_p): Remove.
10965 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
10966 code.
10967 (build_base_obj_set_for_drs): Remove.
10968 (dump_alias_graphs): Remove.
10969 (build_scop_drs): Remove dead code.
10970
10971 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10972 Peter Bergner <bergner@vnet.ibm.com>
10973
10974 PR target/67808
10975 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10976 allow registers, but provide insns for the combiner to create for
10977 loads from memory. Separate VSX code from non-VSX code. For
10978 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10979 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10980 so that registers come before memory operations. Drop support from
10981 converting DFmode to TFmode, if the DFmode value is in a GPR
10982 register.
10983 (extenddftf2_fprs): Likewise.
10984 (extenddftf2_internal): Likewise.
10985 (extenddftf2_vsx): Likewise.
10986 (extendsftf2): In the expander, only allow registers, but provide
10987 insns for the combiner to create for stores and loads.
10988
10989 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10990
10991 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10992 from the decl parameter.
10993
10994 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
10995
10996 PR 67861
10997 * gimple-fold.c (gimple_fold_builtin): Add break after
10998 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10999
11000 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
11001
11002 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11003 to scop->isl_context.
11004
11005 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11006
11007 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11008 (output_probe_stack_range): Rotate the loop and simplify.
11009 (thumb1_expand_prologue): Tweak sorry message.
11010 * config/arm/arm.md (probe_stack): Use bare string.
11011
11012 2015-10-06 Nick Clifton <nickc@redhat.com>
11013
11014 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11015
11016 2015-10-06 Nick Clifton <nickc@redhat.com>
11017
11018 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11019 (ATTR_PERSIST): New constant.
11020 (msp430_data_attr): New function - verifies an attribute that only
11021 applies to variables.
11022 (msp430_attributes): Add noinit and persistent attributes.
11023 (noinit_section): New variable.
11024 (presis_section): New variable.
11025 (TARGET_ASM_INIT_SECTIONS): Define.
11026 (msp430_init_sections): New function - initialises the noinit and
11027 persist section variables.
11028 (msp430_select_section): Add support for noinit and persist
11029 attributes.
11030 (msp430_section_type_flags): Likewise.
11031 * doc/extend.texi: Document the reent, critical, wakeup, noinit
11032 and persistent attributes.
11033
11034 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11035 Sebastian Pop <s.pop@samsung.com>
11036
11037 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11038 (no_violations): Remove.
11039 (subtract_commutative_associative_deps): Remove.
11040 (compute_deps): Do not call subtract_commutative_associative_deps.
11041 (transform_is_safe): Remove.
11042 (graphite_legal_transform): Remove.
11043 * graphite-poly.h (graphite_legal_transform): Remove.
11044
11045 2015-10-05 Aditya Kumar <hiraditya@msn.com>
11046
11047 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11048 which are in this region are passed so gcc_assert and remove redundant
11049 computation.
11050 * sese.c (sese_build_liveouts): Pass only those bbs which are not
11051 in region.
11052 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11053 gcc_assert on that and remove unnecessary computation.
11054 (sese_build_liveouts_use): Same.
11055
11056 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11057
11058 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11059 to scop->param_context.
11060 (scop_get_must_writes): Same.
11061 (scop_get_may_writes): Same.
11062 (scop_get_original_schedule): Same.
11063 (scop_get_transformed_schedule): Same.
11064 (subtract_commutative_associative_deps): Same.
11065 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11066 (generate_isl_context): Same.
11067 (generate_isl_schedule): Same.
11068 (scop_to_isl_ast): Same.
11069 (graphite_regenerate_ast_isl): Same.
11070 * graphite-optimize-isl.c (scop_get_domains): Same.
11071 (optimize_isl): Renamed scop->context to scop->param_context.
11072 * graphite-poly.c (new_poly_bb): Change the type of argument to
11073 gimple_poly_bb_p.
11074 (new_scop): Renamed scop->context to scop->param_context.
11075 (free_scop): Same.
11076 (print_scop_context): Same.
11077 * graphite-poly.h (new_poly_dr): Change the type of argument from
11078 void* to data_reference_p.
11079 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11080 (new_poly_bb): Change the type of argument from void* to
11081 gimple_poly_bb_p.
11082 (pbb_set_black_box): Same.
11083 (struct scop): Rename context to param_context, ctx to isl_context.
11084 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11085 Move declarations closer to assignment.
11086 (find_params_in_bb): Same.
11087 (find_scop_parameters): Same.
11088 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11089 Global to be used for statement IDs.
11090 (isl_id_for_pbb): Use ssa_name_version_typesize.
11091 (simple_copy_phi_p): Move declarations closer to assignment.
11092 (build_pbb_scattering_polyhedrons): Same.
11093 (build_scop_scattering): Same.
11094 (isl_id_for_ssa_name): Same.
11095 (extract_affine_name): Same.
11096 (extract_affine_int): Same.
11097 (extract_affine): Same.
11098 (set_scop_parameter_dim): Use renamed member.
11099 (build_loop_iteration_domains): Same.
11100 (add_param_constraints): Same.
11101 (build_scop_iteration_domain): Same.
11102 (pdr_add_data_dimensions): Same.
11103 (build_poly_dr): Same.
11104 (build_scop_drs): Move declarations closer to assignment.
11105 (analyze_drs_in_stmts): Same.
11106 (insert_out_of_ssa_copy): Same.
11107 (insert_out_of_ssa_copy_on_edge): Same.
11108 (propagate_expr_outside_region): Same.
11109 (rewrite_phi_out_of_ssa): Same.
11110 (rewrite_degenerate_phi): Same.
11111 (rewrite_reductions_out_of_ssa): Same.
11112 (rewrite_cross_bb_scalar_dependence): Same.
11113 (handle_scalar_deps_crossing_scop_limits): Same.
11114 (rewrite_cross_bb_scalar_deps): Same.
11115 * graphite.c (graphite_transform_loops): Use renamed member.
11116
11117 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11118
11119 PR c/65345
11120 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11121 create_tmp_var_raw instead of create_tmp_var.
11122
11123 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11124
11125 PR c/65345
11126 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11127 Use create_tmp_var_raw instead of create_tmp_var.
11128
11129 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11130
11131 PR target/67849
11132 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11133 split for upper-bank registers when target does not support
11134 AVX512VL.
11135 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11136 split when target does not support AVX512VL.
11137
11138 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11139
11140 PR c/65345
11141 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11142 Adjust to use create_tmp_var_raw instead of create_tmp_var.
11143
11144 2015-10-06 Nick Clifton <nickc@redhat.com>
11145
11146 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11147 multiplication.
11148
11149 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11150
11151 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11152 (case ${target}): Add znver1.
11153 * config/i386/cpuid.h(bit_CLZERO): Define.
11154 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11155 -march=native recognize znver1 processors.
11156 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11157 znver1, clzero def_and_undef.
11158 * config/i386/i386.c (struct processor_costs znver1_cost): New.
11159 (m_znver1): New definition.
11160 (m_AMD_MULTIPLE): Includes m_znver1.
11161 (processor_target_table): Add znver1 entry.
11162 (ix86_target_string) : Add clzero entry.
11163 (static const char *const cpu_names): Add znver1 entry.
11164 (ix86_option_override_internal): Add znver1 instruction sets.
11165 (PTA_CLZERO) : New definition.
11166 (ix86_option_override_internal): Handle new clzerooption.
11167 (ix86_issue_rate): Add znver1.
11168 (ix86_adjust_cost): Add znver1.
11169 (ia32_multipass_dfa_lookahead): Add znver1.
11170 (has_dispatch): Add znver1.
11171 * config/i386/i386.h (TARGET_znver1): New definition.
11172 (TARGET_CLZERO): Define.
11173 (TARGET_CLZERO_P): Define.
11174 (struct ix86_size_cost): Add TARGET_ZNVER1.
11175 (enum processor_type): Add PROCESSOR_znver1.
11176 * config/i386/i386.md (define_attr "cpu"): Add znver1.
11177 (set_attr znver1_decode): New definitions for znver1.
11178 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11179 (mclzero): New.
11180 * config/i386/mmx.md (set_attr znver1_decode): New definitions
11181 for znver1.
11182 * config/i386/sse.md (set_attr znver1_decode): Likewise.
11183 * config/i386/x86-tune.def: Add znver1 tunings.
11184 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11185 * doc/invoke.texi: Add details about znver1
11186
11187 2015-10-06 Richard Biener <rguenther@suse.de>
11188
11189 PR tree-optimization/67859
11190 * tree-ssa-pre.c (create_expression_by_pieces): Properly
11191 discard not inserted stmts.
11192
11193 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
11194
11195 * doc/extend.texi (Template Instantiation): Reorder options and
11196 de-emphasize -frepo.
11197 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11198 example instead of -frepo.
11199
11200 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11201
11202 PR c/65345
11203 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11204 use create_tmp_var_raw rather than create_tmp_var.
11205
11206 2015-10-06 Richard Biener <rguenther@suse.de>
11207
11208 * tree-vectorizer.h (vec_info): New base class for...
11209 (_loop_vec_info): ... this and ...
11210 (_bb_vec_info): ... this.
11211 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11212 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11213 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11214 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11215 vect_destroy_datarefs): Adjust interface to take a vec_info *
11216 rather than both a loop_vec_info and a bb_vec_info argument.
11217 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11218 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11219 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11220 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11221 accordingly.
11222 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11223 (destroy_loop_vec_info, vect_analyze_loop_2,
11224 vect_is_simple_reduction_1, get_initial_def_for_induction,
11225 vect_create_epilog_for_reduction, vectorizable_reduction,
11226 vectorizable_live_operation, vect_transform_loop): Adjust.
11227 * tree-vect-patterns.c (type_conversion_p,
11228 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11229 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11230 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11231 check_bool_pattern, vect_recog_bool_pattern,
11232 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11233 * tree-vect-slp.c (vect_get_and_check_slp_defs,
11234 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11235 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11236 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11237 (new_bb_vec_info): Initialize base classs.
11238 * tree-vect-stmts.c (record_stmt_cost, process_use,
11239 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11240 vectorizable_mask_load_store, vectorizable_call,
11241 vectorizable_simd_clone_call, vectorizable_conversion,
11242 vectorizable_assignment, vectorizable_shift,
11243 vectorizable_operation, vectorizable_store,
11244 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11245 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11246 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11247
11248 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
11249
11250 PR c/65345
11251 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11252 create_tmp_var_raw rather than create_tmp_var.
11253
11254 2015-10-05 Marek Polacek <polacek@redhat.com>
11255
11256 * tree-ssa-loop-im.c
11257 (move_computations_dom_walker::before_dom_children): Don't set
11258 SSA_NAME_ANTI_RANGE_P.
11259 * tree-ssa-phiopt.c (value_replacement): Likewise.
11260
11261 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11262 Sebastian Pop <s.pop@samsung.com>
11263
11264 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11265
11266 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11267 Sebastian Pop <s.pop@samsung.com>
11268
11269 * graphite-poly.c (new_gimple_poly_bb): ... here.
11270 (free_data_refs_aux): ... here.
11271 (free_gimple_poly_bb): ... here.
11272 (remove_gbbs_in_scop): ... here.
11273 (new_scop): Call new_sese.
11274 (free_scop): Call remove_gbbs_in_scop and free_sese.
11275 * graphite-poly.h (base_alias_pair): ... here.
11276 (new_gimple_poly_bb): Declare.
11277 (free_gimple_poly_bb): Declare.
11278 * graphite-scop-detection.c (parameter_index_in_region_1):
11279 (parameter_index_in_region): ... here.
11280 (scan_tree_for_params): ... here.
11281 (find_params_in_bb): ... here.
11282 (find_scop_parameters): ... here.
11283 (build_scops): Call find_scop_parameters.
11284 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11285 (free_scops): Move...
11286 (single_pred_cond_non_loop_exit): Move...
11287 (sese_dom_walker::before_dom_children): Move...
11288 (sese_dom_walker::after_dom_children): Move...
11289 (build_poly_scop): Move...
11290 * graphite-sese-to-poly.h (base_alias_pair): Move...
11291 * graphite.c (free_scops): ... here.
11292
11293 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11294 Sebastian Pop <s.pop@samsung.com>
11295
11296 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11297 (trivially_empty_bb_p): Move...
11298 (same_close_phi_node): Move...
11299 (new_gimple_poly_bb): Move...
11300 (compare_bb_depths): Move...
11301 (graphite_sort_dominated_info): Move...
11302 (remove_duplicate_close_phi): Move...
11303 (make_close_phi_nodes_unique): Move...
11304 (canonicalize_loop_closed_ssa): Move...
11305 (canonicalize_loop_closed_ssa_form): Move...
11306 (loop_ivs_can_be_represented): Move...
11307 (single_pred_cond_non_loop_exit): Move...
11308 (graphite_can_represent_init): Move...
11309 (graphite_can_represent_scev): Move...
11310 (stmt_has_simple_data_refs_p): Move...
11311 (stmt_has_side_effects): Move...
11312 (graphite_can_represent_stmt): Move...
11313 (scop_detection): ... here.
11314 (sese_dom_walker): ... and here.
11315 (build_scops): Call all moved functions.
11316 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11317 (all_non_dominated_preds_marked_p): Move...
11318 (build_scop_bbs_1): Move...
11319 (build_scop_bbs): Move...
11320 (set_scop_parameter_dim): Move...
11321 (nb_pbbs_in_loops): Move...
11322 (build_poly_scop): Do not call all the moved functions.
11323
11324 2015-10-05 Martin Jambor <mjambor@suse.cz>
11325 Jan Hubicka <hubicka@ucw.cz>
11326
11327 * ipa-cp.c (ipcp_alignment_lattice): New type.
11328 (ipcp_param_lattices): Use the above to represent alignment.
11329 (ipcp_alignment_lattice::print): New function.
11330 (print_all_lattices): Use it to print alignment information.
11331 (ipcp_alignment_lattice::top_p): New function.
11332 (ipcp_alignment_lattice::bottom_p): Likewise.
11333 (ipcp_alignment_lattice::set_to_bottom): Likewise.
11334 (ipcp_alignment_lattice::meet_with_1): Likewise.
11335 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11336 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11337 (initialize_node_lattices): Likewise.
11338 (propagate_alignment_accross_jump_function): Work with the new class
11339 for alignment lattices.
11340 (propagate_constants_accross_call): Pass only the alignment lattice to
11341 propagate_alignment_accross_jump_function.
11342 (ipcp_store_alignment_results): Work with the new class for alignment
11343 lattices.
11344
11345 2015-10-05 Marek Polacek <polacek@redhat.com>
11346
11347 PR tree-optimization/67821
11348 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11349
11350 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
11351
11352 PR other/65021
11353 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11354 function to...
11355 (mkoffload_cleanup): ... this. Adjust all users.
11356 (maybe_unlink): Look at save_temps and verbose flags instead of
11357 debug flag.
11358 (main): Parse "-save-temps" flag.
11359 (generate_target_descr_file, generate_target_offloadend_file)
11360 (generate_host_descr_file, prepare_target_image): Pass it on.
11361 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11362 (mkoffload_cleanup): New function.
11363 (maybe_unlink): Look at save_temps and verbose flags instead of
11364 debug flag.
11365 (main): Instead of calling utils_cleanup, register atexit handler
11366 for mkoffload_cleanup.
11367 (main): Parse "-save-temps" flag.
11368 (compile_native, main): Pass it on.
11369 * lto-wrapper.c (compile_offload_image): Likewise.
11370
11371 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11372
11373 * gimple.h (gimple_op_ptr): Require a non const gimple *.
11374 (gimple_assign_lhs_ptr): Likewise.
11375 (gimple_assign_rhs1_ptr): Likewise.
11376 (gimple_assign_rhs2_ptr): Likewise.
11377 (gimple_assign_rhs3_ptr): Likewise.
11378 (gimple_call_lhs_ptr): Likewise.
11379 (gimple_call_fn_ptr): Likewise.
11380 (gimple_call_chain_ptr): Likewise.
11381 (gimple_call_arg_ptr): Likewise.
11382 (gimple_cond_lhs_ptr): Likewise.
11383 (gimple_cond_rhs_ptr): Likewise.
11384 (gimple_switch_index_ptr): Likewise.
11385 (gimple_return_retval_ptr): Likewise.
11386
11387 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11388
11389 * gimple.h (gimple_asm_input_op_ptr): Remove.
11390 (gimple_asm_output_op_ptr): Likewise.
11391
11392 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11393
11394 * gimple.h (gimple_location_ptr): Remove.
11395 * tree-vrp.c (check_all_array_refs): Adjust.
11396
11397 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11398
11399 * tree-ssa-operands.c (build_uses): store tree * instead of
11400 tree.
11401 (finalize_ssa_uses): Adjust.
11402 (append_use): Likewise.
11403 (verify_ssa_operands): Likewise.
11404
11405 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11406
11407 * real.h (build_real_truncate): Declare.
11408 * tree.c (build_real_truncate): New function.
11409 (strip_float_extensions): Use it.
11410 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11411 (fold_builtin_hypot, fold_builtin_pow): Likewise.
11412 * match.pd: Likewise.
11413
11414 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11415 Jiong Wang <jiong.wang@arm.com>
11416
11417 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11418
11419 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11420
11421 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11422 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11423 (aarch64_print_operand, aarch64_float_const_representable_p)
11424 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11425 instead of REAL_VALUE_FROM_CONST_DOUBLE.
11426 * config/arc/arc.c (arc_print_operand): Likewise.
11427 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11428 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11429 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11430 Likewise.
11431 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11432 (consttable_16): Likewise.
11433 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11434 * config/avr/avr.c (avr_print_operand): Likewise.
11435 * config/bfin/bfin.md: Likewise (in a define_split).
11436 * config/c6x/c6x.md: Likewise (in a define_split).
11437 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11438 (cr16_print_operand): Likewise.
11439 * config/cris/cris.c (cris_print_operand): Likewise.
11440 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11441 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11442 (fr30_const_double_is_zero): Likewise.
11443 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11444 * config/frv/frv.md: Likewise (in a define_split).
11445 * config/frv/predicates.md (int_2word_operand): Likewise.
11446 * config/h8300/h8300.c (h8300_print_operand): Likewise.
11447 * config/i386/i386.c (standard_80387_constant_p): Likewise.
11448 (ix86_print_operand, ix86_split_to_parts): Likewise.
11449 * config/i386/i386.md: Likewise (in a define_split).
11450 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11451 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11452 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11453 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11454 (print_operand): Likewise.
11455 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11456 * config/mep/mep.md: Likewise (in define_split).
11457 * config/microblaze/microblaze.c (microblaze_const_double_ok)
11458 (print_operand): Likewise.
11459 * config/mips/mips.md (consttable_float): Likewise.
11460 * config/mmix/mmix.c (mmix_intval): Likewise.
11461 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11462 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11463 * config/pa/pa.c (pa_singlemove_string): Likewise.
11464 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11465 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11466 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11467 (output_toc): Likewise.
11468 * config/rs6000/rs6000.md: Likewise (in define_splits).
11469 * config/rx/rx.c (rx_print_operand): Likewise.
11470 * config/s390/s390.c (s390_output_pool_entry): Likewise.
11471 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11472 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11473 (and also in define_splits).
11474 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11475 (fp_high_losum_p): Likewise.
11476 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11477 (*movsf_high): Likewise.
11478 * config/spu/spu.c (const_double_to_hwint): Likewise.
11479 * config/v850/v850.c (const_double_split): Likewise.
11480 * config/vax/vax.c (vax_float_literal): Likewise.
11481 * config/visium/visium.c (visium_expand_copysign): Likewise.
11482 * config/visium/visium.md: Likewise (in define_split).
11483 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11484 * config/xtensa/xtensa.c (print_operand): Likewise.
11485 (xtensa_output_literal): Likewise.
11486 * cprop.c (implicit_set_cond_p): Likewise.
11487 * dwarf2out.c (insert_float): Likewise.
11488 * expmed.c (expand_mult, make_tree): Likewise.
11489 * expr.c (compress_float_constant): Likewise.
11490 * rtlanal.c (split_double): Likewise.
11491 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11492 (simplify_const_unary_operation, simplify_binary_operation_1)
11493 (simplify_const_binary_operation): Likewise.
11494 (simplify_const_relational_operation): Likewise.
11495 * varasm.c (output_constant_pool_2): Likewise.
11496
11497 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11498
11499 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11500 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11501 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11502 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11503 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11504 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11505 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11506 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11507 (ix86_emit_swsqrtsf): Likewise.
11508 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11509 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11510 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11511 * config/pa/pa.c (pa_expand_builtin): Likewise.
11512 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11513 (rs6000_scale_v2df): Likewise.
11514 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11515 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11516 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11517 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11518 (vec_ctul): Likewise.
11519 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11520 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11521 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11522 * cse.c (fold_rtx): Likewise.
11523 * emit-rtl.c (immed_double_const): Likewise (in comments).
11524 (init_emit_once): Likewise.
11525 * expr.c (compress_float_constant, expand_expr_real_1)
11526 (const_vector_from_tree): Likewise.
11527 * optabs.c (expand_float, expand_fix): Likewise.
11528 * reg-stack.c (reg_to_stack): Likewise.
11529 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11530 (simplify_const_unary_operation, simplify_binary_operation_1)
11531 (simplify_const_binary_operation, simplify_relational_operation)
11532 (simplify_immed_subreg): Likewise.
11533
11534 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11535
11536 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11537 * doc/tm.texi: Regenerate.
11538 * real.h (REAL_ARITHMETIC): Delete.
11539 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11540 (ix86_expand_round_sse4): Use real_arithmetic instead of
11541 REAL_ARITHMETIC.
11542 * config/i386/sse.md (round<mode>2): Likewise.
11543 * rtl.h (rtx_to_tree_code): Likewise (in comment).
11544 * explow.c (rtx_to_tree_code): Likewise (in comment).
11545 * match.pd: Likewise.
11546 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11547 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11548 (expand_pow_as_sqrts): Likewise.
11549 * tree-pretty-print.c (dump_generic_node): Remove code that
11550 was conditional on REAL_ARITHMETIC being undefined.
11551
11552 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11553
11554 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11555 * doc/tm.texi: Regenerate.
11556 * real.h (real_less): Declare.
11557 (REAL_VALUES_LESS): Delete.
11558 * real.c (real_less): New function.
11559 (real_compare): Use it.
11560 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11561 of REAL_VALUES_LESS.
11562 * config/microblaze/microblaze.c (microblaze_const_double_ok):
11563 Likewise.
11564 * fold-const.c (fold_convert_const_int_from_real): Likewise.
11565 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11566 (simplify_const_relational_operation): Likewise.
11567 * tree-call-cdce.c (check_pow): Likewise.
11568 (gen_conditions_for_pow_cst_base): Likewise.
11569
11570 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11571
11572 * real.h (REAL_VALUES_IDENTICAL): Delete.
11573 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11574 instead of REAL_VALUES_IDENTICAL.
11575 * fold-const.c (operand_equal_p): Likewise.
11576 * ipa-icf.c (sem_variable::equals): Likewise.
11577 * tree-complex.c (some_nonzerop): Likewise.
11578 (expand_complex_multiplication): Likewise.
11579 * tree.c (simple_cst_equal): Likewise.
11580 * varasm.c (compare_constant): Likewise.
11581
11582 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11583
11584 * real.h (real_equal): Declare.
11585 (REAL_VALUES_EQUAL): Delete.
11586 * real.c (real_equal): New function.
11587 (real_compare): Use it.
11588 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11589 * doc/tm.texi: Regenerate.
11590 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11591 real_equal instead of REAL_VALUES_EQUAL.
11592 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11593 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11594 (fp_const_from_val): Likewise.
11595 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11596 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11597 (floating_exact_log2): Likewise.
11598 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11599 * config/vax/vax.c (vax_float_literal): Likewise.
11600 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11601 * cprop.c (implicit_set_cond_p): Likewise.
11602 * expmed.c (expand_mult): Likewise.
11603 * fold-const.c (const_binop): Likewise.
11604 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11605 (simplify_const_binary_operation): Likewise.
11606 (simplify_const_relational_operation): Likewise.
11607 * tree-call-cdce.c (check_pow): Likewise.
11608 (gen_conditions_for_pow_cst_base): Likewise.
11609 * tree-inline.c (estimate_num_insns): Likewise.
11610 * tree-ssa-dom.c (record_equality): Likewise.
11611 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11612 (gimple_expand_builtin_pow): Likewise.
11613 (pass_optimize_widening_mul::execute): Likewise.
11614 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11615 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11616 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11617
11618 2015-10-05 Richard Biener <rguenther@suse.de>
11619
11620 PR ipa/67783
11621 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11622 consider loop header PHI defs as IVs.
11623
11624 2015-10-05 Richard Biener <rguenther@suse.de>
11625
11626 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11627 call handling ...
11628 (create_expression_by_pieces): ... here and build GIMPLE
11629 calls directly. Use gimple_build API and avoid force_gimple_operand.
11630 (insert_into_preds_of_block): Simplify.
11631 (do_regular_insertion): Add comment.
11632
11633 2015-10-04 Jason Merrill <jason@redhat.com>
11634
11635 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11636
11637 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
11638
11639 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11640 check for general register.
11641 (ix86_emit_save_regs): Ditto.
11642 (ix86_emit_save_regs_using_mov): Ditto.
11643 (ix86_emit_restore_regs_using_pop): Ditto.
11644 (ix86_emit_restore_regs_using_mov): Ditto.
11645
11646 2015-10-03 Marek Polacek <polacek@redhat.com>
11647
11648 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11649 (insn-dfatab.o): Likewise.
11650
11651 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
11652
11653 * config.gcc (xtensa*-*-uclinux*): New configuration.
11654 * config/xtensa/uclinux.h: New file.
11655 * config/xtensa/uclinux.opt: New file.
11656
11657 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
11658
11659 * doc/cpp.texi (Standard Predefined Macros): Document value of
11660 __cplusplus for C++14.
11661
11662 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
11663
11664 * gcc.c (process_command): Use spec_machine rather than
11665 spec_host_machine to build tooldir_prefix2.
11666
11667 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11668 Bernd Schmidt <bernds@codesourcery.com>
11669
11670 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
11671 (Token, Stmt): Remove structs.
11672 (decls, vars, fns): Remove variables.
11673 (alloc_comment, append_stmt, is_keyword): Remove macros.
11674 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
11675 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
11676 (parse_init, parse_file): Remove functions.
11677 (read_file): Accept a pointer to a length and store into it.
11678 (process): Don't try to parse the input file, just write it out as
11679 a string, but looking for maps. Also write out the length.
11680 (main): Don't use "-S" to compile PTX code.
11681
11682 2015-10-02 Jeff Law <law@redhat.com>
11683
11684 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
11685 fixups.
11686
11687 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11688
11689 PR target/67822
11690 * config/nvptx/mkoffload.c (main): Scan the argument vector for
11691 -fopenmp, and skip generating an offloading image if specified.
11692
11693 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
11694
11695 * system.h (ROUND_UP): New macro definition.
11696 (ROUND_DOWN): Ditto.
11697 * ggc-page.c (ROUND_UP): Remove local macro definition.
11698 (PAGE_ALIGN): Implement using ROUND_UP macro.
11699
11700 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11701 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11702 to align values.
11703 (ix86_compute_frame_layout): Ditto.
11704 (ix86_expand_prologue): Ditto.
11705 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11706 to round down values.
11707 (expand_set_or_movmem_via_rep): Ditto.
11708
11709 2015-10-02 Marek Polacek <polacek@redhat.com>
11710
11711 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11712
11713 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
11714
11715 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11716 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11717 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11718 (free_gimple_bb): Renamed free_gimple_poly_bb.
11719 (try_generate_gimple_bb): Hoist loop invariant code.
11720 (analyze_drs_in_stmts): Same.
11721 (build_scop_drs): Call renamed functions.
11722 (new_pbb_from_pbb): Same.
11723 (scop_ivs_can_be_represented): Delete as functionality now moved to
11724 graphite-scop-detection.c
11725 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11726
11727 2015-10-02 Aditya Kumar <hiraditya@msn.com>
11728
11729 * graphite-scop-detection.c (stmt_has_side_effects): New function
11730 outlined from stmt_simple_for_scop_p.
11731 (graphite_can_represent_stmt): Same.
11732 (stmt_simple_for_scop_p): Moved code out of this function for better
11733 readability.
11734
11735 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11736
11737 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11738 F_AVX512IFMA.
11739 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11740
11741 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11742
11743 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11744
11745 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
11746
11747 PR rtl-optimization/67756
11748 * lra-constraints.c (match_reload): Add a new parameter. Use it
11749 for creating a pseudo with the same value.
11750 (curr_insn_transform): Pass a new argument to match_reload.
11751
11752 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11753
11754 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11755 (expand_vec_perm_even_odd_1): Handle V64QImode.
11756 (ix86_expand_vec_perm_const_1): Try expansion with
11757 expand_vec_perm_even_odd_trunc as well.
11758 * config/i386/sse.md (VI124_AVX512F): Rename to ...
11759 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11760 to V54QI.
11761 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11762 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11763 to V32HI and V16SI.
11764 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11765 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11766 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11767 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11768 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11769 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11770
11771 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11772
11773 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11774 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11775
11776 2015-10-02 Jason Merrill <jason@redhat.com>
11777
11778 PR c/59218
11779 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11780 (diagnose_tm_1_op): Also diagnose volatile accesses in
11781 transaction_safe function.
11782
11783 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
11784
11785 * system.h (malloc.h): Don't include obsolete header.
11786
11787 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11788
11789 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11790 (TLS_SECTION_ASM_FLAG): Delete.
11791
11792 2015-10-02 Marek Polacek <polacek@redhat.com>
11793
11794 PR c/64249
11795 * doc/invoke.texi: Document -Wduplicated-cond.
11796 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11797 (insn-dfatab.o): Likewise.
11798 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11799 warning.
11800
11801 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
11802
11803 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11804 sequences.
11805
11806 2015-10-02 Renlin Li <renlin.li@arm.com>
11807
11808 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11809
11810 2015-10-02 Renlin Li <renlin.li@arm.com>
11811
11812 PR target/66776
11813 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11814
11815 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11816
11817 PR rtl-optimization/67786
11818 PR rtl-optimization/67787
11819 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11820 it modifies a reg used in the condition calculation.
11821
11822 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
11823
11824 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11825 alternatives for reads from memory and moves from general-purpose
11826 registers.
11827 (*aarch64_combinez_be<mode>): Likewise.
11828
11829 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
11830
11831 PR target/51726
11832 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11833 selectany within this function without need to keep attribute.
11834 (i386_pe_encode_section_info): Remove selectany-code.
11835
11836 2015-10-02 Richard Biener <rguenther@suse.de>
11837
11838 * tree-ssa-sccvn.c (has_VN_INFO): New function.
11839 (free_scc_vn): Use it.
11840 (visit_use): Remove dead code and refactor to use gassign
11841 and use less indentation.
11842
11843 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11844
11845 PR target/67788
11846 PR target/67789
11847 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11848 (rs6000_cannot_copy_insn_p): New function.
11849 * config/rs6000/rs6000.md (cannot_copy): New attribute.
11850 (load_toc_v4_PIC_1_normal): Set cannot_copy.
11851 (load_toc_v4_PIC_1_476): Ditto.
11852
11853 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11854
11855 * graphite-scop-detection.c (struct sese_l): New conversion constructor
11856 so that this type can be pushed into a vec.
11857 (class scop_builder): use sese_l to collect scops.
11858 (get_scops): New getter function.
11859 (remove_intersecting_scops): Use sese_l instead of scops_p.
11860 (intersects): Same.
11861 (add_scop): Same.
11862 (subsumes): Same.
11863 (remove_subscops): Same.
11864 (build_scops): Add scops to vec<scops_p> once all the scops have been
11865 detected.
11866
11867 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11868
11869 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11870 Renamed type from gimple_bb_p to gimple_poly_bb_p.
11871 (translate_isl_ast_node_user): Same.
11872 * graphite-poly.c (new_poly_bb): Same.
11873 * graphite-poly.h (gbb_from_bb): Same.
11874 * sese.h: Same.
11875 * graphite-sese-to-poly.c (new_gimple_bb):
11876 gimple_bb_p -> gimple_poly_bb_p
11877 (build_scop_scattering): Same.
11878 (find_params_in_bb): Same.
11879 (add_conditions_to_domain): Same.
11880 (sese_dom_walker::before_dom_children): Same.
11881 (analyze_drs_in_stmts): Same.
11882 (new_pbb_from_pbb): Same.
11883 (free_data_refs_aux): New pointer to type base_alias_pair.
11884 * graphite-sese-to-poly.h: Same.
11885 * sese.c (if_region_set_false_region): Fixed Indentation.
11886 (move_sese_in_condition): Same.
11887
11888 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11889 Aditya Kumar <aditya.k7@samsung.com>
11890
11891 PR tree-optimization/66980
11892 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11893 when data reference analysis has failed.
11894
11895 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11896 Aditya Kumar <aditya.k7@samsung.com>
11897
11898 PR tree-optimization/67754
11899 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11900 scev analysis on the same loop nest as analyze_drs_in_stmts.
11901 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11902 renamed...
11903 (try_generate_gimple_bb): Call outermost_loop_in_sese.
11904 (analyze_drs_in_stmts): Same.
11905 * sese.c (outermost_loop_in_sese): ...here.
11906
11907 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11908 Aditya Kumar <aditya.k7@samsung.com>
11909
11910 PR tree-optimization/67754
11911 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11912 recursion on the inner loops.
11913
11914 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11915
11916 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11917 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11918 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11919 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11920 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11921
11922 2015-10-01 Marek Polacek <polacek@redhat.com>
11923
11924 PR c/65345
11925 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11926 create_tmp_var_raw rather than create_tmp_var.
11927
11928 2015-10-01 Marek Polacek <polacek@redhat.com>
11929
11930 PR tree-optimization/67769
11931 * tree-ssa-phiopt.c (conditional_replacement): Call
11932 reset_flow_sensitive_info_in_bb.
11933 (minmax_replacement): Likewise.
11934 (abs_replacement): Likewise.
11935
11936 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
11937
11938 * builtins.c: Don't include gomp-constants.h.
11939 (fold_builtin_1): Don't fold acc_on_device here.
11940 * gimple-fold.c: Include gomp-constants.h.
11941 (gimple_fold_builtin_acc_on_device): New.
11942 (gimple_fold_builtin): Call it.
11943
11944 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
11945
11946 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11947 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11948
11949 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
11950
11951 * config/arm/aarch-common-protos.h
11952 (aarch_accumulator_forwarding): New.
11953 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11954 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11955 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11956 * config/arm/cortex-a53.md: Rewrite.
11957
11958 2015-10-01 Richard Biener <rguenther@suse.de>
11959
11960 * gimple-match.h (mprts_hook): Declare.
11961 * gimple-match.head.c (mprts_hook): Define.
11962 (maybe_push_res_to_seq): Use new hook.
11963 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11964 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11965 (vn_ssa_aux::has_constants): Remove.
11966 * tree-ssa-sccvn.c: Include gimple-match.h.
11967 (VN_INFO_GET): Assert we don't re-use SSA names.
11968 (vn_get_expr_for): Remove.
11969 (expr_has_constants): Likewise.
11970 (stmt_has_constants): Likewise.
11971 (simplify_binary_expression): Likewise.
11972 (simplify_unary_expression): Likewise.
11973 (vn_lookup_simplify_result): New hook.
11974 (visit_copy): Adjust.
11975 (visit_reference_op_call): Likewise.
11976 (visit_phi): Likewise.
11977 (visit_use): Likewise.
11978 (process_scc): Likewise.
11979 (init_scc_vn): Likewise.
11980 (visit_reference_op_load): Likewise. Use match-and-simplify and
11981 a gimple seq for inserted expressions.
11982 (try_to_simplify): Remove GENERIC stmt combining code.
11983 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11984 * tree-ssa-pre.c (eliminate_insert): Adjust.
11985 (eliminate_dom_walker::before_dom_children): Likewise.
11986
11987 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11988
11989 * doc/invoke.texi (Optimization Options): Add
11990 -freorder-blocks-algorithm=.
11991 (Optimize Options) <-O>: Add -freorder-blocks.
11992 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
11993 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11994 <-freorder-blocks>: Also enabled at levels -O and -Os.
11995 <-freorder-blocks-algorithm=>: Document new option.
11996
11997 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11998
11999 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12000 with flag_reorder_blocks_algorithm.
12001 * common.opt (freorder-blocks-algorithm=): New flag.
12002 (reorder_blocks_algorithm): New enum.
12003 * flag-types.h (reorder_blocks_algorithm): New enum.
12004 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12005 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12006
12007 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12008
12009 * bb-reorder.c: Add intro comment.
12010 (reorder_basic_blocks_software_trace_cache): Print a header to
12011 the dump file.
12012 (edge_order): New function.
12013 (reorder_basic_blocks_simple): New function.
12014 (reorder_basic_blocks): Choose between the STC and the simple
12015 algorithms (always choose the former).
12016
12017 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12018
12019 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12020 function, factored out from ...
12021 (reorder_basic_blocks): ... here.
12022
12023 2015-10-01 Tom de Vries <tom@codesourcery.com>
12024
12025 * tree-cfg.c (dump_function_to_file): Dump function attributes using
12026 __attribute__(()) string. Move dumping of function attributes to before
12027 function name.
12028
12029 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
12030
12031 PR target/66870
12032 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12033 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12034 based on gold linker version.
12035 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12036 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12037 * configure, config.in: Regenerate.
12038
12039 2015-10-01 Alan Modra <amodra@gmail.com>
12040
12041 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12042 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12043 (rs6000_output_mi_thunk): Likewise.
12044
12045 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12046
12047 * config/nvptx/mkoffload.c (process): Change offload data format.
12048
12049 2015-09-30 Jeff Law <law@redhat.com>
12050
12051 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12052 with constant conditions.
12053 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12054 (remove_ctrl_stmt_and_useless_edges): No longer static.
12055 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12056 (remove_ctrl_stmt_and_useless_edges): Likewise.
12057
12058 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12059 Cesar Philippidis <cesar@codesourcery.com>
12060
12061 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12062 (TARGET_GOACC_VALIDATE_DIMS): Override.
12063 * target.def (TARGET_GOACC): New target hook prefix.
12064 (validate_dims): New hook.
12065 * targhooks.h (default_goacc_validate_dims): New.
12066 * omp-low.c (oacc_validate_dims): New.
12067 (execute_oacc_device_lower): New.
12068 (default_goacc_validate_dims): New.
12069 (pass_data_oacc_device_lower): New.
12070 (pass_oacc_device_lower): New pass.
12071 (make_pass_oacc_device_lower): New.
12072 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12073 * passes.def (pass_oacc_device_lower): Add it.
12074 * doc/tm.texi: Rebuilt.
12075 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12076 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12077
12078 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12079
12080 PR rtl-optimization/67037
12081 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12082
12083 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12084
12085 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12086 * passes.c: Include tree-ssanames.h.
12087 (execute_function_todo): Flush the pending free SSA_NAMEs after
12088 eliminating unreachable basic blocks.
12089 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12090 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12091 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12092 (flush_ssanames_freelist): New function.
12093 (release_ssaname_fn): Put released names on the queue.
12094 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12095 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12096
12097 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12098
12099 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12100 (generate_target_descr_file, generate_target_offloadend_file)
12101 (generate_host_descr_file, prepare_target_image): Pass it on.
12102 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12103 (compile_native, main): Pass it on.
12104 * lto-wrapper.c (compile_offload_image): Likewise.
12105
12106 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12107 Ilya Verbin <ilya.verbin@intel.com>
12108 Andrey Turetskiy <andrey.turetskiy@intel.com>
12109
12110 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12111 (prepare_target_image, main): Refactor argv building to use
12112 obstacks.
12113
12114 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12115
12116 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12117 * config/spu/spu.c (spu_expand_atomic_op): New function.
12118 * config/spu/spu.md (AINT): New mode iterator.
12119 (ATOMIC): New code iterator.
12120 (atomic_name, atomic_pred): New code predicates.
12121 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12122 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12123 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12124 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12125
12126 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12127
12128 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12129 debug insns.
12130 (scalar_chain::convert_reg): Likewise.
12131
12132 2015-09-30 Richard Biener <rguenther@suse.de>
12133
12134 * builtins.c: Add comment that no new simplifications should
12135 be added here.
12136
12137 2015-09-30 Marek Polacek <polacek@redhat.com>
12138
12139 PR tree-optimization/67690
12140 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12141 reset_flow_sensitive_info_in_bb.
12142 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12143 * tree-ssanames.c: Include "gimple-iterator.h".
12144 (reset_flow_sensitive_info_in_bb): New function.
12145 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12146
12147 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12148
12149 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12150 variable, replacing it with...
12151 (offload_abi): ... this new variable. Adjust all users.
12152 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12153
12154 2015-09-30 Matthias Klose <doko@ubuntu.com>
12155
12156 * configure.ac: Remove extraneous ;;.
12157 * configure: Regenerate.
12158
12159 2015-09-29 James Bowman <james.bowman@ftdichip.com>
12160
12161 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12162 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12163 predicate, disallow register for operand 2.
12164
12165 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
12166
12167 * graphite-dependences.c (scop_get_dependences): Moved in down
12168 in order to be visible to its caller.
12169 * graphite-poly.h: Removed compute_deps, and extend_schedule.
12170
12171 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12172 Aditya Kumar <aditya.k7@samsung.com>
12173
12174 PR tree-optimization/67754
12175 * graphite-optimize-isl.c (optimize_isl): Call
12176 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12177
12178 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12179
12180 * builtins.c (expand_builtin_acc_on_device): Delete.
12181 (expand_builtin): Don't call it.
12182 (fold_builtin_1): Fold acc_on_device.
12183
12184 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
12185
12186 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12187 (ix86_nsaved_sseregs): Likewise.
12188
12189 2015-09-29 Jeff Law <law@redhat.com>
12190
12191 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12192 computation of unused value.
12193
12194 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12195 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12196 inline macro expansion.
12197
12198 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12199
12200 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12201 (gen_shl_sext): Likewise.
12202 * config/sh/sh.md (divsi3): Likewise.
12203 (imm->ext_dest_operand splitter): Likewise.
12204
12205 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12206 Aditya Kumar <aditya.k7@samsung.com>
12207
12208 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12209 (nb_data_writes_in_bb): Remove.
12210 (split_pbb): Remove.
12211 (split_reduction_stmt): Remove.
12212 (is_reduction_operation_p): Remove.
12213 (phi_contains_arg): Remove.
12214 (follow_ssa_with_commutative_ops): Remove.
12215 (detect_commutative_reduction_arg): Remove.
12216 (detect_commutative_reduction_assign): Remove.
12217 (follow_inital_value_to_phi): Remove.
12218 (edge_initial_value_for_loop_phi): Remove.
12219 (initial_value_for_loop_phi): Remove.
12220 (used_outside_reduction): Remove.
12221 (detect_commutative_reduction): Remove.
12222 (translate_scalar_reduction_to_array_for_stmt): Remove.
12223 (remove_phi): Remove.
12224 (dr_indices_valid_in_loop): Remove.
12225 (close_phi_written_to_memory): Remove.
12226 (translate_scalar_reduction_to_array): Remove.
12227 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12228 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12229 (rewrite_commutative_reductions_out_of_ssa): Remove.
12230 (build_poly_scop): Remove call to
12231 rewrite_commutative_reductions_out_of_ssa.
12232
12233 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
12234
12235 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12236 Add new insn types for vector load and store pairs.
12237 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12238 types "neon_ldp{,_q}".
12239 * config/arm/cortex-a57.md (neon_load_c): Add insn types
12240 "neon_ldp{,_q}".
12241 (neon_store_complex): Add insn types "neon_stp{,_q}".
12242 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12243 "neon_{ldp,stp}_q".
12244
12245 2015-09-29 Jeff Law <law@redhat.com>
12246
12247 * config/rx/constraints.md (Int08): Fix undefined left shift
12248 behaviour.
12249 (Sint08, Sint16, Sint24): Likewise.
12250 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12251
12252 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12253 behaviour.
12254
12255 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12256 left shift behaviour.
12257 * config/msp430/constraints.md ('L' constraint): Similarly.
12258 ('Ys' constraint): Similarly.
12259
12260 2015-09-29 Richard Biener <rguenther@suse.de>
12261
12262 PR tree-optimization/67170
12263 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12264 the translate function pointer parameter to get the
12265 bool whether to disambiguate only by reference.
12266 (walk_non_aliased_vuses): Likewise.
12267 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12268 (get_continuation_for_phi_1): Likewise.
12269 (get_continuation_for_phi): Likewise.
12270 (walk_non_aliased_vuses): Likewise.
12271 * tree-ssa-sccvn.c (const_parms): New bitmap.
12272 (vn_reference_lookup_3): Adjust for interface change.
12273 Disambiguate parameters pointing to readonly memory.
12274 (free_scc_vn): Free const_parms.
12275 (run_scc_vn): Initialize const_parms from a fn spec attribute.
12276
12277 2015-09-29 Richard Biener <rguenther@suse.de>
12278
12279 PR tree-optimization/67741
12280 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12281 builtin calls with correct signature.
12282
12283 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
12284
12285 PR target/65105
12286 * config/i386/i386.c: Include dbgcnt.h.
12287 (has_non_address_hard_reg): New.
12288 (convertible_comparison_p): New.
12289 (scalar_to_vector_candidate_p): New.
12290 (remove_non_convertible_regs): New.
12291 (scalar_chain): New.
12292 (scalar_chain::scalar_chain): New.
12293 (scalar_chain::~scalar_chain): New.
12294 (scalar_chain::add_to_queue): New.
12295 (scalar_chain::mark_dual_mode_def): New.
12296 (scalar_chain::analyze_register_chain): New.
12297 (scalar_chain::add_insn): New.
12298 (scalar_chain::build): New.
12299 (scalar_chain::compute_convert_gain): New.
12300 (scalar_chain::replace_with_subreg): New.
12301 (scalar_chain::replace_with_subreg_in_insn): New.
12302 (scalar_chain::emit_conversion_insns): New.
12303 (scalar_chain::make_vector_copies): New.
12304 (scalar_chain::convert_reg): New.
12305 (scalar_chain::convert_op): New.
12306 (scalar_chain::convert_insn): New.
12307 (scalar_chain::convert): New.
12308 (convert_scalars_to_vector): New.
12309 (pass_data_stv): New.
12310 (pass_stv): New.
12311 (make_pass_stv): New.
12312 (ix86_option_override): Created and register stv pass.
12313 (flag_opts): Add -mstv.
12314 (ix86_option_override_internal): Likewise.
12315 * config/i386/i386.md (SWIM1248x): New.
12316 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12317 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12318 (*anddi3_doubleword): New.
12319 (*zext<mode>_doubleword): New.
12320 (*zextsi_doubleword): New.
12321 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12322 (*<code>di3_doubleword): New.
12323 * config/i386/i386.opt (mstv): New.
12324 * dbgcnt.def (stv_conversion): New.
12325
12326 2015-09-29 Tom de Vries <tom@codesourcery.com>
12327
12328 * tree-cfg.c (dump_function_to_file): Dump function attributes.
12329
12330 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
12331
12332 PR target/67716
12333 * config/sh/sh.c (sh_override_options_after_change): New.
12334 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12335 (sh_option_override): Move align_loops, align_jumps and
12336 align_functions handling into sh_override_options_after_change.
12337
12338 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12339
12340 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12341 (nvptx_record_offload_symbol): Record function execution geometry.
12342 * config/nvptx/mkoffload.c (process): Include launch geometry in
12343 function data.
12344 * omp-low.c (oacc_launch_pack): New.
12345 (replace_oacc_fn_attrib): New.
12346 (set_oacc_fn_attrib): New.
12347 (get_oacc_fn_attrib): New.
12348 (expand_omp_target): Create keyed varargs for GOACC_parallel call
12349 generation.
12350 * omp-low.h (get_oacc_fn_attrib): Declare.
12351 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12352 (DEF_FUNCTION_TYPE_VAR_11): Delete.
12353 * tree.h (OMP_CLAUSE_EXPR): New.
12354 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12355
12356 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12357 Sebastian Pop <s.pop@samsung.com>
12358
12359 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12360
12361 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12362 Sebastian Pop <s.pop@samsung.com>
12363
12364 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12365 * graphite-scop-detection.c (struct sese_l): New type.
12366 (get_entry_bb): API for getting entry bb of SESE.
12367 (get_exit_bb): API for getting exit bb of SESE.
12368 (class debug_printer): New type. Simple printer in debug mode.
12369 (trivially_empty_bb_p): New. Return true when BB is empty or
12370 contains only debug instructions.
12371 (graphite_can_represent_expr): Call scalar_evoution_in_region
12372 instead of analyze_scalar_evolution. Pass in scop instead of only
12373 the scop entry.
12374 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12375 scop entry.
12376 (stmt_simple_for_scop_p): Same.
12377 (harmful_stmt_in_bb): Same.
12378 (graphite_can_represent_loop): Deleted.
12379 (struct scopdet_info): Deleted.
12380 (scopdet_basic_block_info): Deleted.
12381 (build_scops_1): Deleted.
12382 (bb_in_sd_region): Deleted.
12383 (find_single_entry_edge): Deleted.
12384 (find_single_exit_edge): Deleted.
12385 (create_single_entry_edge): Deleted.
12386 (sd_region_without_exit): Deleted.
12387 (create_single_exit_edge): Deleted.
12388 (unmark_exit_edges): Deleted.
12389 (mark_exit_edges): Deleted.
12390 (create_sese_edges): Deleted.
12391 (build_graphite_scops): Deleted.
12392 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12393 (build_scops): Use the new scop_builder to build scops.
12394 (dot_all_scops_1): Use the new pretty printer. Print loop father
12395 as well.
12396 (loop_body_is_valid_scop): New. Return true if loop body is a
12397 valid scop.
12398 (class scop_builder): New. Builds SCoPs for polyhedral
12399 optimizations.
12400 (scop_builder): New constructor.
12401 (static sese_l invalid_sese): sese_l with invalid edges.
12402 (get_sese): Get an sese (from a loop) if possible, invalid_sese
12403 otherwise.
12404 (get_nearest_dom_with_single_entry): Get nearest dominator of a
12405 basic_block with single entry. Return NULL if we get to the
12406 beginning of a function.
12407 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12408 a basic_block with single exit. Return NULL if we get to the
12409 beginning of a function.
12410 (print_sese): Pretty-print SESE.
12411 (merge_sese): Merge two SESEs if possible and return the new SESE.
12412 (build_scop_depth): Start building the SCoP within a loop nest.
12413 (build_scop_breadth): Start building the SCoP at a single loop
12414 depth. Merge adjacent SESEs if valid.
12415 (can_represent_loop_1): Returns true if Graphite can represent
12416 loop inside SCoP. Helper for can_represent_loop.
12417 (can_represent_loop): Returns true if Graphite can represent LOOP
12418 and all its nested loops in SCoP.
12419 (loop_is_valid_scop): Returns true if LOOP and all its nests
12420 constitute a valid SCoP.
12421 (region_has_one_loop): Returns true of a region has only one loop.
12422 (add_scop): Add SCoP to the list of valid scops. Removes an
12423 already existing scop if it intersects with or subsumed by this one.
12424 (harmful_stmt_in_region): Returns true if SCoP has any statment
12425 which cannot be represented by Graphite.
12426 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12427 (remove_subscops): Remove any SCoP from the list of already found
12428 SCoPs, if subsumed by S1.
12429 (intersects): Return true if region bounded by SCoPs S1 and S2
12430 intersect.
12431 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12432 * graphite.c (print_graphite_scop_statistics):
12433 (print_graphite_statistics): Print SCoP info while debugging.
12434 (graphite_initialize): Early exit in case number of loops in a
12435 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12436 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12437 (graphite_finalize):
12438 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12439 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12440 (recompute_all_dominators): Recalculate POST_DOMINATORS.
12441 * tree-cfg.c (print_loops): Print the function name while printing
12442 loops.
12443
12444 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12445 Sebastian Pop <s.pop@samsung.com>
12446
12447 PR tree-optimization/67700
12448 * graphite-sese-to-poly.c (parameter_index_in_region): Call
12449 invariant_in_sese_p_rec.
12450 (extract_affine): Same.
12451 (rewrite_cross_bb_scalar_deps): Call update_ssa.
12452 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
12453 * sese.h (invariant_in_sese_p_rec): Declare.
12454
12455 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
12456
12457 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12458
12459 2015-09-28 Jiong Wang <jiong.wang@arm.com>
12460
12461 Revert:
12462 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12463 Jiong Wang <jiong.wang@arm.com>
12464
12465 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12466 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12467 (REG_CLASS_NAMES): Likewise.
12468 (REG_CLASS_CONTENTS): Likewise.
12469 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12470 (aarch64_register_move_cost): Likewise.
12471 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12472 possible.
12473 * config/aarch64/constraints.md (Uc0): New constraint.
12474
12475 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
12476
12477 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12478
12479 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
12480
12481 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12482 SECTION_EXCLUDE in XO mapping class.
12483
12484 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12485
12486 PR target/54236
12487 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12488 and handle ne and eq codes.
12489 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12490 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
12491 CONST_INT_P. Use reverse_condition.
12492 (sh_split_treg_set_expr): Likewise.
12493
12494 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
12495
12496 * config/arm/types.md (type): Add rotate_imm.
12497 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12498 ROR immediate case.
12499 (*rorsi3_insn_uxtw): Likewise.
12500 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12501 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12502 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12503
12504 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12505
12506 PR rtl-optimization/67481
12507 * ifcvt.c (contains_ccmode_rtx_p): New function.
12508 (insn_valid_noce_process_p): Use it.
12509
12510 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12511
12512 PR rtl-optimization/67456
12513 PR rtl-optimization/67464
12514 PR rtl-optimization/67465
12515 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12516 move in the mode of x. Handle combination of complex and simple
12517 block pairs as well as the case when one is empty.
12518
12519 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12520
12521 * doc/gimple.texi: Update references to gimple_statement_base.
12522 * gdbhooks.py: Likewise.
12523 * gimple.h: Likewise.
12524
12525 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12526
12527 * config/sparc/driver-sparc.c: map LEON to leon3
12528
12529 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12530
12531 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12532 and make it inverse to change default
12533 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12534 supervisor mode
12535 * doc/invoke.texi: Document change of default
12536
12537 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12538
12539 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12540 true on %f0 for a target without FPU.
12541 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12542 without FPU.
12543 (untyped_return): Do not load %f0 for a target without FPU.
12544
12545 2015-09-28 Andrew Pinski <apinski@cavium.com>
12546
12547 * config/aarch64/aarch64.md (prefetch):
12548 Change the predicate of operand 0 to register_operand.
12549
12550 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
12551
12552 * config/i386/predicates.md (register_sse4nonimm_operand): New
12553 predicate.
12554 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12555 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12556 Use register_sse4nonimm_operand as operand 0 predicate.
12557 (*vec_extractv8hi_sse2): Remove insn pattern.
12558 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12559 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12560
12561 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
12562 Kaz Kojima <kkojima@gcc.gnu.org>
12563
12564 PR target/67391
12565 * config/sh/sh-protos.h (sh_lra_p): Declare.
12566 * config/sh/sh.c (sh_lra_p): Make non-static.
12567 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12568 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
12569 Expand into addsi3_scr if operands[2] if needed.
12570 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
12571 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
12572 (addsi3_scr, *addsi3): New insn_and_split patterns.
12573
12574 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
12575
12576 PR rtl-optimization/64164
12577 PR tree-optimization/67312
12578 PR middle-end/67340
12579 PR middle-end/67490
12580 PR bootstrap/67597
12581 * cfgexpand.c (parm_in_stack_slot_p): Remove.
12582 (ssa_default_def_partition): Remove.
12583 (get_rtl_for_parm_ssa_default_def): Remove.
12584 (set_rtl): Check that RTL assignments match expectations.
12585 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
12586 default def location for params and results. Record SSA names
12587 or types in REG and MEM attrs, respectively.
12588 (set_parm_rtl): New.
12589 (expand_one_ssa_partition): Drop logic that assigned MEMs with
12590 unassigned addresses.
12591 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12592 deferred stack alloc vars.
12593 (expand_used_vars): Skip partitions holding parm default defs.
12594 Move adjust_one_expanded_partition_var loop...
12595 (pass_expand::execute): ... here. Drop redundant assert.
12596 Adjust comments before the final loop over all ssa names.
12597 Require assigned rtl of parms and results to match exactly.
12598 Reset its attributes to match them, not any other variables in
12599 the same partition.
12600 (expand_debug_expr): Use entry value for PARM's default defs
12601 only iff they have zero nondebug uses.
12602 * cfgexpand.h (parm_in_stack_slot_p): Remove.
12603 (get_rtl_for_parm_ssa_default_def): Remove.
12604 (set_parm_rtl): Declare.
12605 * doc/invoke.texi: Improve wording.
12606 * explow.c (promote_decl_mode): Fix promote_function_mode for
12607 result decls not by reference.
12608 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12609 bypass TYPE_MODE to get the actual vector mode.
12610 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
12611 2015-08-19's changes as follows. Drop include of
12612 basic-block.h and df.h.
12613 (rtl_for_parm): Remove.
12614 (maybe_reset_rtl_for_parm): Remove.
12615 (parm_in_unassigned_mem_p): Remove.
12616 (use_register_for_decl): Add logic for RESULT_DECLs matching
12617 assign_parms' behavior.
12618 (split_complex_args): Revert.
12619 (assign_parms_augmented_arg_list): Revert. Add comment
12620 referencing the logic above.
12621 (assign_parm_adjust_stack_rtl): Revert.
12622 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
12623 of SET_DECL_RTL. Set up a REG if the parm demands so.
12624 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
12625 calls into a single set_parm_rtl. Set up a temporary RTL
12626 temporarily for expand_assignment.
12627 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
12628 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
12629 (assign_bounds): Revert.
12630 (assign_parms): Revert. Use set_parm_rtl.
12631 (allocate_struct_function): Relayout result and parms of
12632 non-abstruct functions.
12633 (expand_function_start): Revert. Use set_parm_rtl. If the
12634 result is not a hard reg, create a pseudo from the promoted
12635 mode of the default def. Promote static chain mode.
12636 * tree-outof-ssa.c (remove_ssa_form): Drop unused
12637 partition_has_default_def. Set up
12638 partitions_for_parm_default_defs.
12639 (finish_out_of_ssa): Remove partition_has_default_def.
12640 Release partitions_for_parm_default_defs.
12641 * tree-outof-ssa.h (struct ssaexpand): Remove
12642 partition_has_default_def. Add
12643 partitions_for_parm_default_defs.
12644 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12645 stor-layout.h.
12646 (build_ssa_conflict_graph): Fix conflict-detection of default
12647 defs of even unused default defs of params and results.
12648 (for_all_parms): New.
12649 (create_default_def): New.
12650 (register_default_def): New.
12651 (coalesce_with_default): New.
12652 (create_outofssa_var_map): Create default defs for all parms
12653 and results, and register their partitions. Add GIMPLE_RETURN
12654 operands as coalesce candidates with results. Add default
12655 defs of each parm or result as coalesce candidates with its
12656 other defs. Mark each result def, and each default def of
12657 parms, as used_in_copy.
12658 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
12659 with the ssa names, even anonymous ones. Drop
12660 parm_in_stack_slot_p calls. Require same signedness and
12661 alignment.
12662 (coalesce_ssa_name): Add coalesce candidates for all defs of
12663 each parm and result, even unused ones.
12664 (parm_default_def_partition_arg): New type.
12665 (set_parm_default_def_partition): New.
12666 (get_parm_default_def_partitions): New.
12667 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
12668 * tree-ssa-live.c (partition_view_init): Regard unused defs of
12669 parms and results as used.
12670 (verify_live_on_entry): Don't error out just because they're
12671 not live.
12672
12673 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
12674
12675 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12676 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
12677 (output_fde): Don't output length for debug_frame on AIX.
12678 (output_call_frame_info): Don't output length for debug_frame on AIX.
12679 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
12680 HAVE_XCOFF_DWARF_EXTRAS.
12681 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
12682 HAVE_XCOFF_DWARF_EXTRAS.
12683 (output_compilation_unit_header): Don't output length on AIX.
12684 (output_pubnames): Don't output length on AIX.
12685 (output_aranges): Delete argument. Compute length locally. Don't
12686 output length on AIX.
12687 (output_line_info): Don't output length on AIX.
12688 (dwarf2out_finish): Don't compute aranges_length.
12689 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12690 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
12691 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12692 symbol decoration for AIX.
12693 (rs6000_xcoff_debug_unwind_info): New.
12694 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12695 for SECTION_DEBUG.
12696 (rs6000_xcoff_declare_function_name): Emit different
12697 .function pseudo-op when DWARF2_DEBUG. Don't call
12698 xcoffout_declare_function for DWARF2_DEBUG.
12699 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12700 Redefine.
12701 * config/rs6000/aix71.h: New.
12702 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12703 locations support.
12704 * configure: Regenerate.
12705 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12706 DWARF support.
12707
12708 2015-09-26 Jeff Law <law@redhat.com>
12709
12710 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12711 behaviour.
12712 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12713 behaviour.
12714
12715 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12716 behaviour
12717
12718 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12719 undefined behaviour.
12720
12721 * config/cris/cris.md (asrandb): Fix left shift undefined
12722 behaviour.
12723 (asrandw): Likewise.
12724
12725 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
12726
12727 PR target/61578
12728 * lra-constarints.c (match_reload): Check presence of the input pseudo
12729 in the output operand.
12730
12731 2015-09-25 Tobias Burnus <burnus@net-b.de>
12732
12733 * doc/invoke.texi (-fsanitize): Minor wording tweak.
12734
12735 2015-09-25 Tobias Burnus <burnus@net-b.de>
12736
12737 * doc/invoke.texi (-fsanitize): Update URLs.
12738
12739 2015-09-25 Teresa Johnson <tejohnson@google.com>
12740
12741 * opts.c (finish_options): Unset -freorder-blocks-and-partition
12742 if not using profile.
12743
12744 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12745
12746 PR pretty-print/67567
12747 * pretty-print.c (pp_string): Add gcc_checking_assert.
12748 * pretty-print.h (output_buffer_append_r): Likewise.
12749
12750 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
12751
12752 PR target/67675
12753 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12754 addr2 individually. Don't emit logical or insn if one is known to
12755 be aligned approriately.
12756 (sh_expand_cmpnstr): Likewise.
12757
12758 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
12759
12760 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12761 __builtin_aarch64_fp[sc]r arguments into a register.
12762
12763 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
12764
12765 * config.gcc (x86_archs): Replace lakemount with lakemont.
12766 (with_cpu): Likewise.
12767 (with_arch): Likewise.
12768 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12769 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
12770 __tune_lakemount__ with __tune_lakemont__.
12771 * config/i386/i386.c (lakemount_cost): Renamed to ...
12772 (lakemont_cost): This.
12773 (m_LAKEMOUNT): Renamed to ...
12774 (m_LAKEMONT): This.
12775 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12776 (processor_target_table): Replace "lakemount" with "lakemont".
12777 (processor_alias_table): Likewise.
12778 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12779 PROCESSOR_LAKEMONT.
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_LAKEMOUNT with m_LAKEMONT.
12784 * doc/invoke.texi: Replace lakemount with lakemont. Replace
12785 Lakemount with Lakemont.
12786
12787 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
12788
12789 * config.gcc (x86_archs): Replace iamcu with lakemount.
12790 (with_cpu): Likewise.
12791 (with_arch): Likewise.
12792 * doc/invoke.texi: Likewise.
12793 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12794 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
12795 __tune_iamcu__ with __tune_lakemount__.
12796 * config/i386/i386.c (iamcu_cost): Renamed to ...
12797 (lakemount_cost): This.
12798 (m_IAMCU): Renamed to ...
12799 (m_LAKEMOUNT): This.
12800 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12801 (processor_target_table): Replace "iamcu" with "lakemount".
12802 (processor_alias_table): Likewise.
12803 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12804 PROCESSOR_LAKEMOUNT.
12805 (ix86_adjust_cost): Likewise.
12806 (ia32_multipass_dfa_lookahead): Likewise.
12807 * config/i386/i386.h (processor_type): Likewise.
12808 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12809
12810 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
12811
12812 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12813 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12814 Declare.
12815 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12816 (pa_expand_compare_and_swap_loop): New.
12817 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12818 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12819 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12820 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12821 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12822 Revise.
12823
12824 2015-09-24 Michael Collison <michael.collison@linaro.org>
12825
12826 PR other/57195
12827 * read-md.c (read_name): Allow mode iterators inside angle
12828 brackets in rtl expressions.
12829
12830 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
12831
12832 PR target/61578
12833 * ira-color.c (update_allocno_cost): Add parameter.
12834 (update_costs_from_allocno): Decrease conflict cost. Pass the new
12835 parameter.
12836
12837 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12838
12839 PR driver/67640
12840 * opts-common.c (prune_options): Discard all -fdiagnostics-color
12841 but the last one, which is moved to the front to be processed
12842 first.
12843 * opts.c (enable_warning_as_error): Reject options that do not
12844 control warnings.
12845
12846 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12847
12848 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12849
12850 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12851
12852 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12853 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12854 (aarch64_cannot_force_const_mem): Likewise.
12855 (aarch64_classify_address): Likewise.
12856 (aarch64_classify_symbolic_expression): Likewise.
12857 (aarch64_print_operand): Likewise.
12858 (aarch64_classify_symbol): Likewise.
12859 (aarch64_mov_operand_p): Likewise.
12860 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12861 (aarch64_mov_operand): Likewise.
12862
12863 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
12864
12865 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12866 for info->spe_gp_size.
12867
12868 2015-09-24 Richard Biener <rguenther@suse.de>
12869
12870 PR lto/67699
12871 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12872 abstract origins.
12873
12874 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
12875
12876 * tree-object-size.c (plus_stmt_object_size)
12877 (cond_expr_object_size): Change the formal parameters from gimple
12878 to gimple *.
12879 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12880 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12881 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12882
12883 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12884
12885 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12886 Check for ld -type pie on Solaris 11.x and 12.
12887 * configure: Regenerate.
12888 * config.in: Regenerate.
12889
12890 * gcc.c (LD_PIE_SPEC): Allow redefinition.
12891
12892 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12893 (STARTFILE_SPEC): Use it.
12894 (ENDFILE_CRTEND_SPEC): Define.
12895 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12896 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12897 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12898 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12899 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12900 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12901 (ENDFILE_ARCH_SPEC): Define.
12902 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12903
12904 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12905
12906 * configure.ac (gcc_cv_solaris_crts): New test.
12907 * configure. Regenerate.
12908 * config.in: Regenerate.
12909 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12910 HAVE_SOLARIS_CRTS variant.
12911
12912 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12913
12914 * tree-inline.h (count_insns_seq): Delete prototype.
12915 (estimate_num_insns_seq): Define prototype.
12916 * tree-inline.c (count_insns_seq): Delete.
12917 (estimate_num_insns_seq): Remove static qualifier.
12918 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12919 with estimate_num_insns_seq.
12920
12921 2015-09-24 Richard Biener <rguenther@suse.de>
12922
12923 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12924 members.
12925 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12926 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
12927 offset.
12928 (ao_ref_init_from_vn_reference): Record clique and base in the
12929 built base.
12930 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12931
12932 2015-09-24 Richard Biener <rguenther@suse.de>
12933
12934 PR tree-optimization/48885
12935 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12936 as not including any restrict tags from other pointers.
12937
12938 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12939
12940 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12941 character when appending to offload_targets.
12942
12943 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12944 offload targets by commas, not colons.
12945 * config.in: Regenerate.
12946 * configure: Likewise.
12947 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12948 instead of setting up the default offload targets here...
12949 (process_command): ..., do it here.
12950 libgomp/
12951 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12952 targets are separated by commas.
12953 * config.h.in: Regenerate.
12954
12955 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12956 Nathan Sidwell <nathan@codesourcery.com>
12957
12958 * omp-low.h (omp_reduction_init_op): Declare.
12959 * omp-low.c (omp_reduction_init_op): New, broken out of ...
12960 (omp_reduction_init): ... here. Call it.
12961 * tree-parloops.c (initialize_reductions): Use
12962 omp_reduction_init_op.
12963
12964 2015-09-23 Richard Biener <rguenther@suse.de>
12965
12966 PR middle-end/67662
12967 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12968 undefined overflow unless they will cancel out.
12969
12970 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12971
12972 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12973 insn emit.
12974
12975 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12976
12977 PR c/49655
12978 * opts.h (write_langs): Declare.
12979 * opts-global.c (write_langs): Make it extern.
12980
12981 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
12982
12983 PR target/67391
12984 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12985 overlapping regs when matching the pattern.
12986
12987 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12988
12989 * config/aarch64/aarch64-simd.md
12990 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12991 (aarch64_float_truncate_hi_v4sf_le): New.
12992 (aarch64_float_truncate_hi_v4sf_be): Likewise.
12993
12994 2015-09-23 Richard Biener <rguenther@suse.de>
12995
12996 * tree-ssa-structalias.c (intra_create_variable_infos): Build
12997 representatives for all restrict qualified pointer destinations.
12998
12999 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13000
13001 * config/i386/i386.md (define_code_attr mshift): New.
13002 (define_mode_iterator SWI1248_AVX512BW): Rename ...
13003 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13004 only.
13005 (define_insn "*k<logic><mode>"): Use new iterator name.
13006 (define_insn "*<mshift><mode>3"): New.
13007
13008 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
13009
13010 PR middle-end/67649
13011 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13012 mark the block as accessible.
13013
13014 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
13015
13016 * function.c (thread_prologue_and_epilogue_insns): Delete
13017 orig_entry_edge argument to try_shrink_wrapping.
13018 * shrink-wrap.c (can_get_prologue): New function.
13019 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13020 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
13021 can_get_prologue where needed. Remove code that finds a single
13022 edge for the prologue. Remove code that tests if any reg clobbered
13023 by the prologue is live on the prologue edge. Remove code that finds
13024 the new prologue edge after duplicating blocks. Make a new prologue
13025 block and edge.
13026 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13027
13028 2015-09-22 Jeff Law <law@redhat.com>
13029
13030 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13031 behavior.
13032
13033 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
13034
13035 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
13036 -Wtemplates, -Wnamespaces): Document.
13037
13038 2015-09-22 Tom de Vries <tom@codesourcery.com>
13039
13040 PR tree-optimization/67671
13041 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13042 pointer references as restrict.
13043
13044 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13045
13046 * config/nios2/nios2.c (nios2_legitimize_address): When handling
13047 'reg + reloc' cases, allow first operand to be non-REG, and use
13048 force_reg() to enforce address pattern.
13049
13050 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
13051
13052 PR target/67480
13053 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13054 (define_mode_iterator VI12_AVX_AVX512F): New.
13055 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13056 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13057 (define_insn "*<code><mode>3"): ... Into new pattern using
13058 VI12_AVX_AVX512F iterators without masking.
13059
13060 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13061
13062 * config.gcc: Support "skylake-avx512".
13063 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13064 PROCESSOR_SKYLAKE_AVX512.
13065 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13066 (processor_target_table): Add "skylake-avx512".
13067 (PTA_SKYLAKE_AVX512): Define.
13068 (ix86_option_override_internal): Add "skylake_avx512".
13069 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13070 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13071 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13072 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13073 * doc/invoke.texi (skylake-avx512): New.
13074
13075 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13076
13077 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13078 operand in pattern.
13079 (define_insn "kunpcksi"): Ditto.
13080 (define_insn "kunpckdi"): Ditto.
13081
13082 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13083
13084 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13085 iterator instead of fixed modes.
13086
13087 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13088
13089 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13090 Adjust declaration.
13091 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13092 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13093 out_result. Update to support update-fetch operations.
13094 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13095 Adjust for change to aarch64_gen_atomic_ldop.
13096 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13097 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13098 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13099 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13100 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13101
13102 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13103
13104 * config/aarch64/aarch64-protos.h
13105 (aarch64_atomic_ldop_supported_p): Declare.
13106 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13107 (enum aarch64_atomic_load_op_code): New.
13108 (aarch64_emit_atomic_load_op): New.
13109 (aarch64_gen_atomic_ldop): Update to support load-operate
13110 patterns.
13111 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13112 to an expander.
13113 (aarch64_atomic_<atomic_optab><mode>): New.
13114 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13115 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13116 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13117 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13118
13119 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13120
13121 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13122 (UNSPECV_ATOMIC_LDOP_OR): New.
13123 (UNSPECV_ATOMIC_LDOP_BIC): New.
13124 (UNSPECV_ATOMIC_LDOP_XOR): New.
13125 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13126 (ATOMIC_LDOP): New.
13127 (atomic_ldop): New.
13128 (aarch64_atomic_load<atomic_ldop><mode>): New.
13129
13130 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13131
13132 * config/aarch64/aarch64.md
13133 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13134 pattern.
13135
13136 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13137
13138 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13139 Declare.
13140 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13141 (aarch64_gen_atomic_ldop): New.
13142 (aarch64_split_atomic_op): Fix whitespace and add a comment.
13143 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13144 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13145 (atomic_exchange<mode>): Replace with an expander.
13146 (aarch64_atomic_exchange<mode>): New.
13147 (aarch64_atomic_exchange<mode>_lse): New.
13148 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13149 (aarch64_atomic_swp<mode>): New.
13150
13151 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13152
13153 * tree-inline.c (expand_call_inline): Use inform for extra note.
13154 Do not give a note with UNKNOWN_LOCATION.
13155 Replace input_location with gimple_location (stmt).
13156 Use true/false instead of TRUE/FALSE.
13157
13158 2015-09-22 Tom de Vries <tom@codesourcery.com>
13159
13160 PR tree-optimization/67666
13161 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13162 with single field non-conservative.
13163
13164 2015-09-21 David S. Miller <davem@davemloft.net>
13165
13166 PR/67622
13167 Revert:
13168 2015-09-11 David S. Miller <davem@davemloft.net>
13169
13170 * config/sparc/constraints.md: Make "U" constraint a real register
13171 constraint.
13172 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13173 (D_MODES, DF_MODES): Add missing cast.
13174 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13175 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13176 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13177 cost to 8.
13178 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13179 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13180 provide these insn when flag_pic.
13181
13182 2015-09-17 David S. Miller <davem@davemloft.net>
13183
13184 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13185 Declare.
13186 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13187 function.
13188 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13189 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13190 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13191 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13192 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13193 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13194 provide when flag_pic.
13195
13196 2015-09-21 Jeff Law <law@redhat.com>
13197
13198 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13199 behavior.
13200
13201 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13202
13203 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13204
13205 2015-09-21 Richard Biener <rguenther@suse.de>
13206
13207 * passes.c (rest_of_decl_compilation): Do not call
13208 dwarf2out_early_global_decl for aliases.
13209
13210 2015-09-21 Richard Biener <rguenther@suse.de>
13211
13212 PR debug/67664
13213 * dwarf2out.c (add_location_or_const_value_attribute): Remove
13214 attribute parameter. Early exit if either DW_AT_const_value
13215 or DW_AT_location are present already.
13216 (gen_variable_die): Adjust caller.
13217 (dwarf2out_late_global_decl): Likewise.
13218
13219 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13220
13221 PR target/67657
13222 * config/sh/sh.c (sh_remove_overlapping_post_inc,
13223 sh_peephole_emit_move_insn): Add new functions.
13224 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13225 sh_peephole_emit_move_insn): Declere them.
13226 * config/sh/sh.md: Use them in various peephole2 patterns.
13227
13228 2015-09-21 Richard Biener <rguenther@suse.de>
13229
13230 PR middle-end/67651
13231 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13232 address with -fno-delete-null-pointer-checks.
13233
13234 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
13235
13236 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13237 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13238 (reduc_uplus_v16qi): Remove.
13239
13240 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13241 (reduc_<VEC_reduc_name>_v2df): Remove.
13242 (reduc_<VEC_reduc_name>_v4sf): Remove.
13243 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13244
13245 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13246 gen_ function by removing * prefix.
13247 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13248
13249 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13250
13251 PR middle-end/60832
13252 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13253 Print i_bound without converting it to a tree.
13254
13255 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
13256
13257 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13258 operands[4] operands[5] swap with std::swap, removed tmp variable.
13259 (arm_evpc_neon_vzip): Replaced in0/in1 and
13260 out0/out1 swaps with std::swap, removed x variable.
13261 (arm_evpc_neon_vtrn): Replaced in0/int1 and
13262 out0/out1 swaos with std::swap, removed x variable.
13263 (arm_expand_vec_perm_const_1): Replaced
13264 d->op0/d->op1 swap with std::swap, removed x variable.
13265 (arm_evpc_neon_vuzp): Replaced in0/in1 and
13266 out0/out1 swaps with std::swap, removed x variable.
13267
13268 2015-09-21 Jonathan Yong <10walls@gmail.com>
13269
13270 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13271 sysroot/usr/lib/32api for additional win32 libraries,
13272 fixes failing Cygwin bootstrapping.
13273
13274 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13275
13276 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13277
13278 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13279
13280 PR target/67126
13281 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13282 (*mov_t_msb_neg): Rewrite negc pattern.
13283
13284 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13285
13286 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13287 immediate generation code.
13288
13289 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13290
13291 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13292 redundant immediate generation code.
13293
13294 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13295
13296 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13297 (AARCH64_NUM_BITMASKS): Remove.
13298 (aarch64_bitmasks_cmp): Remove.
13299 (aarch64_build_bitmask_table): Remove.
13300
13301 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13302
13303 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13304 slow immediate matching loops with a faster algorithm.
13305
13306 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13307
13308 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13309 faster algorithm.
13310
13311 2015-09-20 Jeff Law <law@redhat.com>
13312
13313 PR tree-optimization/47679
13314 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13315 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13316 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13317 (thread_through_normal_block): Use record_temporary_equivalences.
13318
13319 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
13320
13321 * coretypes.h (gimple): Change typedef to be a forward declaration.
13322 * gimple.h (gimple_statement_base): rename to gimple.
13323 * (all functions and types using gimple): Adjust.
13324 * *.[ch]: Likewise.
13325
13326 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
13327 David Edelsohn <dje.gcc@gmail.com>
13328
13329 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13330 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13331 (EH_FRAME_THROUGH_COLLECT2): Define.
13332 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13333 (ASM_OUTPUT_DWARF_PCREL): Define.
13334 (ASM_OUTPUT_DWARF_DATAREL): Define.
13335
13336 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
13337
13338 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13339 of TARGET_ELF32.
13340
13341 2015-09-18 Jeff Law <law@redhat.com>
13342
13343 PR tree-optimization/47679
13344 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
13345 it here ...
13346 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13347 object. Update constructor.
13348 (pass_dominator::execute): Corresponding chagnes to declaration
13349 and initialization of avail_exprs_stack. Update constructor call
13350 for dom_opt_dom_walker object.
13351 (lookup_avail_expr, record_cond): Accept additional argument. Pass
13352 it down to children as needed.
13353 (record_equivalences_from_incoming_edge): Likewise.
13354 (eliminate_redundant_computations): Likewise.
13355 (record_equivalences_from_stmt): Likewise.
13356 (simplify_stmt_for_jump_threading): Likewise.
13357 (record_temporary_equivalences): Likewise.
13358 (optimize_stmt): Likewise.
13359 (dom_opt_dom_walker::thread_across_edge): Update access to
13360 avail_exprs_stack object and pass it to children as needed.
13361 (dom_opt_dom_walker::before_dom_children): Similarly.
13362 (dom_opt_dom_walker::after_dom_children): Similarly.
13363 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13364 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13365 Add avail_expr_stack argument. Pass it to children as needed.
13366 (dummy_simplify): Likewise.
13367 (simplify_control_stmt_condition): Likewise.
13368 (thread_around_empty_blocks): Likewise.
13369 (thread_through_normal_block): Likewise.
13370 (thread_across_edge): Likewise.
13371 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13372 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13373
13374 PR tree-optimization/47679
13375 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
13376 it here ...
13377 (dom_opt_dom_walker): New private member holding the const_and_copies
13378 object. Update constructor.
13379 (pass_dominator::execute): Corresponding changes to declaration
13380 and initialization of const_and_copies. Update constructor call
13381 for the dom_opt_dom_walker object.
13382 (record_temporary_equivalences): Accept const_and_copies argument
13383 pass it down to children as needed.
13384 (record_equality): Likewise.
13385 (record_equivalences_from_incoming_edge): Likewise.
13386 (cprop_into_successor_phis, optimize_stmt): Likewise.
13387 (eliminate_redundant_computations): Likewise.
13388 (dom_opt_dom_walker::thread_across_edge): Update access to
13389 const_and_copies object and pass it to children as needed.
13390 (dom_opt_dom_walker::before_dom_children): Similarly.
13391 (dom_opt_dom_walker::after_dom_children): Similarly.
13392
13393 PR tree-optimization/47679
13394 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
13395 it into the avail_exprs_stack class.
13396 (pass_dominator::execute): Corresponding changes to declaration
13397 and initialization of avail_exprs. Pass avail_exprs to
13398 dump_dominator_optimization_stats.
13399 (record_cond): Extract avail_exprs from avail_exprs_stack.
13400 (lookup_avail_expr): Similarly.
13401 (htab_staticstics): Remove unnecessary prototype. Move to earlier
13402 position in file.
13403 (dump_dominator_optimization_stats): Make static and prototype.
13404 Add argument for the hash table to dump.
13405 (debug_dominator_optimization_stats): Remove.
13406 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13407 prototype.
13408 (debug_dominator_optimization_stats): Similarly.
13409 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13410 "void" in prototype for pop_to_marker method. Add accessor method
13411 for the underlying avail_exprs table.
13412
13413 * tree-ssa-threadedge.c: Remove trailing whitespace.
13414
13415 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
13416
13417 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13418 unsigned.
13419 (pa_ldil_cint_p): Likewise.
13420 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13421 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13422 Update callers.
13423 * config/pa/pa.md: Likewise.
13424
13425 2015-09-18 David Malcolm <dmalcolm@redhat.com>
13426
13427 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13428 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13429 (diagnostic_show_locus): Likewise.
13430 (diagnostic_print_caret_line): Likewise.
13431 * diagnostic-show-locus.c: New file.
13432
13433 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
13434
13435 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13436 "back" parameter. Declare label in #if block.
13437
13438 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
13439
13440 PR middle-end/67619
13441 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13442 the address to a register.
13443
13444 2015-09-18 Jeff Law <law@redhat.com>
13445
13446 PR tree-optimization/47679
13447 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13448 * tree-ssa-dom.c: Remove unnecessary header includes.
13449 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13450 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13451 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13452 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13453 (pass_phi_only_cprop::execute): Likewise.
13454 (make_pass_phi_only_cprop): Likewise.
13455 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
13456 uses of file scoped statics by passing the required objects
13457 as parameters wherever needed.
13458
13459 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
13460 David Edelsohn <dje.gcc@gmail.com>
13461
13462 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13463 EH_FRAME_THROUGH_COLLECT2.
13464 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13465 DW_EH_PE_datarel.
13466 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13467 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
13468 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13469 * except.c (switch_to_exception_section): Use a read-only section
13470 even if EH_FRAME_SECTION_NAME is undefined.
13471 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13472 * collect2.c (write_c_file_stat): Provide dbase on AIX.
13473 (scan_prog_file): Don't export __dso_handle nor
13474 __gcc_unwind_dbase.
13475 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13476 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13477 (ASM_OUTPUT_DWARF_PCREL): Define.
13478 (ASM_OUTPUT_DWARF_DATAREL): Define.
13479 (EH_FRAME_THROUGH_COLLECT2): Define.
13480 (EH_FRAME_IN_DATA_SECTION): Delete.
13481 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13482 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13483 Declare.
13484 (rs6000_asm_output_dwarf_datarel): Declare.
13485 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13486 (rs6000_aix_asm_output_dwarf_datarel): New.
13487 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13488 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13489 (EH_FRAME_THROUGH_COLLECT2): Define.
13490 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13491 (EH_FRAME_THROUGH_COLLECT2): Define.
13492 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13493 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13494 (EH_FRAME_THROUGH_COLLECT2): New.
13495 (ASM_OUTPUT_DWARF_DATAREL): New.
13496 * doc/tm.texi: Regenerate.
13497
13498 2015-09-18 Richard Biener <rguenther@suse.de>
13499
13500 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13501 we're in early phase.
13502 (schedule_generic_params_dies_gen): Likewise.
13503 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13504 work as possible, retaining unhandled cases.
13505 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13506 clear out generic_type_instances at the end.
13507 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13508 (dwarf2out_early_finish): ... here. Do most of
13509 gen_remaining_tmpl_value_param_die_attribute here.
13510
13511 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
13512
13513 PR tree-optimization/67283
13514 * tree-sra.c (type_consists_of_records_p): Rename to...
13515 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13516 (completely_scalarize_record): Rename to...
13517 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13518 (scalarize_elem): New.
13519 (analyze_all_variable_accesses): Follow renamings.
13520
13521 2015-09-18 Richard Biener <rguenther@suse.de>
13522
13523 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13524 in early-dwarf.
13525
13526 2015-09-18 Richard Biener <rguenther@suse.de>
13527
13528 PR tree-optimization/66142
13529 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13530 treat MEM[&x] and x the same.
13531 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13532 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13533 when we simplified sth.
13534 (vn_reference_maybe_forwprop_address): Likewise.
13535 (valueize_refs_1): When we simplified through
13536 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13537 set valueized_anything to true.
13538 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13539 one ref kills the other instead of just a offset-based test.
13540 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13541 for the operand_equal_p test to compare bases and also compare
13542 sizes.
13543
13544 2015-09-17 Christian Bruel <christian.bruel@st.com>
13545
13546 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13547
13548 2015-09-17 Richard Henderson <rth@redhat.com>
13549
13550 PR libstdc++/65913
13551 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13552 pointers that encode the alignment of the object.
13553
13554 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13555
13556 PR rtl-optimization/66790
13557 * df-problems.c (LIVE): Amend documentation.
13558
13559 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
13560
13561 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13562 and optabs-tree.o.
13563 (GTFILES): Replace optabs.c with optabs-libfunc.c.
13564 * genopinit.c (main): Add an include guard to insn-opinit.h.
13565 Protect the rtx_code parts with NUM_RTX_CODE.
13566 * optabs.h: Split parts out to...
13567 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13568 * optabs.c: Split parts out to...
13569 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13570 * cilk-common.c: Include optabs-query.h rather than optabs.h.
13571 * fold-const.c: Likewise.
13572 * target-globals.c: Likewise.
13573 * tree-if-conv.c: Likewise.
13574 * tree-ssa-forwprop.c: Likewise.
13575 * tree-ssa-loop-prefetch.c: Likewise.
13576 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13577 Remove unncessary include files.
13578 * tree-ssa-phiopt.c: Likewise.
13579 * tree-ssa-reassoc.c: Likewise.
13580 * tree-switch-conversion.c: Likewise.
13581 * tree-vect-data-refs.c: Likewise.
13582 * tree-vect-generic.c: Likewise.
13583 * tree-vect-loop.c: Likewise.
13584 * tree-vect-patterns.c: Likewise.
13585 * tree-vect-slp.c: Likewise.
13586 * tree-vect-stmts.c: Likewise.
13587 * tree-vrp.c: Likewise.
13588 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13589 rather than optabs.h.
13590 * expr.c: Include optabs-tree.h.
13591 * function.c: Likewise.
13592
13593 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13594
13595 PR middle-end/65958
13596 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13597 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13598 * config/arm/arm.c: Include common/common-target.h.
13599 (use_return_insn): Return 0 if the static chain register was saved
13600 above a non-APCS frame.
13601 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13602 (struct scratch_reg): New.
13603 (get_scratch_register_on_entry): New function.
13604 (release_scratch_register_on_entry): Likewise.
13605 (arm_emit_probe_stack_range): Likewise.
13606 (output_probe_stack_range): Likewise.
13607 (arm_expand_prologue): Factor out code dealing with the IP register
13608 for nested function and adjust it for stack checking.
13609 Invoke arm_emit_probe_stack_range if static builtin stack checking
13610 is enabled.
13611 (thumb1_expand_prologue): Sorry out if static builtin stack checking
13612 is enabled.
13613 (arm_expand_epilogue): Add the saved static chain register, if any, to
13614 the amount of pre-pushed registers to pop.
13615 (arm_frame_pointer_required): Return true if static stack checking is
13616 enabled and we want to catch the exception with the EABI unwinder.
13617 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13618 (UNSPEC_PROBE_STACK_RANGE): Likewise.
13619 * config/arm/arm.md (probe_stack): New insn.
13620 (probe_stack_range): Likewise.
13621
13622 2015-09-17 Richard Biener <rguenther@suse.de>
13623
13624 * genmatch.c (parser::parse_expr): Improve error message
13625 for mis-placed flags.
13626
13627 2015-09-17 Richard Biener <rguenther@suse.de>
13628
13629 * passes.c (rest_of_decl_compilation): Always call early_global_decl
13630 debug hook when we created a varpool node.
13631 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13632 dwarf2out_early_global_decl, when not just add location or
13633 value attributes to existing DIEs.
13634
13635 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
13636
13637 * config/aarch64/aarch64.md (copysigndf3): New.
13638 (copysignsf3): Likewise.
13639
13640 2015-09-17 David S. Miller <davem@davemloft.net>
13641
13642 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13643 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13644 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13645 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13646 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13647 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13648 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13649 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13650 provide when flag_pic.
13651
13652 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
13653
13654 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
13655 object_allocator change.
13656
13657 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13658
13659 PR tree-optimization/66388
13660 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
13661 (dump_iv): Dump no_overflow information.
13662 (alloc_iv): Initialize new field for struct iv.
13663 (mark_bivs): Count number of no_overflow bivs.
13664 (find_deriving_biv_for_expr, record_biv_for_address_use): New
13665 functions.
13666 (idx_find_step): Call new functions above.
13667 (add_candidate_1, add_candidate): New paramter.
13668 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
13669 (get_computation_aff): Simplify convertion of cand for BIV.
13670 (get_computation_cost_at): Step cand's base if necessary.
13671
13672 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13673
13674 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
13675 parameter.
13676 (tree_simplify_using_condition): Ditto.
13677 (simplify_using_initial_conditions): Ditto.
13678 (loop_exits_before_overflow): Pass new argument to function
13679 simplify_using_initial_conditions. Remove case for type conversions
13680 simplification.
13681 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
13682 parameter.
13683 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
13684 in iv base using loop initial conditions.
13685
13686 2015-09-16 Jeff Law <law@redhat.com>
13687
13688 PR tree-optimization/47679
13689 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
13690 (free_all_edge_infos): Use it.
13691 (allocate_edge_info): Free preexisting edge info data.
13692 (pass_dominator::execute): Set up initial edge info structures.
13693 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13694 thread_across_edge.
13695 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13696 If non-null, then push/pop markers appropriately.
13697 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13698 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13699 thread-across_edge.
13700
13701 2015-09-16 James Bowman <james.bowman@ftdichip.com>
13702
13703 * config/ft32/ft32.c: Fix the memory address space predicate.
13704
13705 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
13706
13707 PR target/67573
13708 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13709 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13710
13711 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13712
13713 * toplev.h (check_global_declaration): Remove declaration.
13714 * toplev.c (check_global_declaration): Move to ...
13715 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13716 (analyze_functions): Update call.
13717
13718 2015-09-16 David S. Miller <davem@davemloft.net>
13719
13720 * lra-constraints.c (simplify_operand_subreg): Do not assume that
13721 lowpart of a SUBREG has offset zero.
13722
13723 2015-09-16 Jeff Law <law@redhat.com>
13724
13725 PR tree-optimization/47679
13726 * tree-ssa-dom.c (enum expr_kind): Moved from here to
13727 tree-ssa-scopedtables.h.
13728 (struct hashable_expr, class expr_hash_elt): Likewise.
13729 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13730 Move associated methods into tree-ssa-scopedtables.c.
13731 (avail_expr_hash, initialize_expr_from_cond): Similarly.
13732 (hashable_expr_equal_p, add_expr_commutative): Likewise.
13733 (add_hashable_expr): Likewise.
13734 (record_cond): Delete element directly.
13735 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13736 private copy ctor and assignment operator methods.
13737 (expr_elt_hasher): Inline trivial methods.
13738 (initialize_expr_from_cond): Prototype.
13739 * tree-ssa-scopedtables.c: Add necessary includes, functions and
13740 methods that were previously in tree-ssa-dom.c. Improve various
13741 comments.
13742
13743 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
13744
13745 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13746
13747 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
13748
13749 PR bootstrap/67587
13750 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13751 fixup_partitions.
13752
13753 2015-09-16 Richard Biener <rguenther@suse.de>
13754
13755 PR middle-end/67253
13756 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13757 location of possibly shared trees.
13758
13759 2015-09-16 Richard Biener <rguenther@suse.de>
13760
13761 PR middle-end/67271
13762 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13763
13764 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
13765
13766 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13767 offset and size computations instead of HOST_WIDE_INT.
13768
13769 2015-09-16 Richard Biener <rguenther@suse.de>
13770
13771 PR middle-end/67442
13772 * fold-const.c (extract_muldiv_1): Properly extend multiplication
13773 result before builting a tree via wide_int_to_tree.
13774
13775 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
13776
13777 * Makefile.in: Add memory-block.cc
13778 (pool_allocator::initialize): Use fixed block size.
13779 (pool_allocator::release): Use memory_block_pool.
13780 (pool_allocator::allocate): Likewise.
13781 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13782 object pools.
13783 * cfg.c (initialize_original_copy_tables): Likewise.
13784 * cselib.c (elt_list_pool, elt_loc_list_pool,
13785 cselib_val_pool): Likewise.
13786 * df-problems.c (df_chain_alloc): Likewise.
13787 * df-scan.c (df_scan_alloc): Likewise.
13788 * dse.c (cse_store_info_pool, rtx_store_info_pool,
13789 read_info_type_pool, insn_info_type_pool, bb_info_pool,
13790 group_info_pool, deferred_change_pool): Likewise.
13791 * et-forest.c (et_nodes, et_occurrences): Likewise.
13792 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13793 ipcp_agg_lattice_pool): Likewise.
13794 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13795 * ipa-profile.c (histogram_pool): Likewise.
13796 * ipa-prop.c (ipa_refdesc_pool): Likewise.
13797 * ira-build.c (live_range_pool, allocno_pool, object_pool,
13798 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13799 * ira-color.c (update_cost_record_pool): Likewise.
13800 * lra-lives.c (lra_live_range_pool): Likewise.
13801 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13802 * memory-block.cc: New file.
13803 * memory-block.h: New file.
13804 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13805 * sched-deps.c (sched_deps_init): Likewise.
13806 * sel-sched-ir.c (sched_lists_pool): Likewise.
13807 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13808 * tree-sra.c (access_pool): Likewise.
13809 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13810 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13811 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13812 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13813 * tree-ssa-strlen.c (strinfo_pool): Likewise.
13814 * tree-ssa-structalias.c (variable_info_pool): Likewise.
13815 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13816 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13817
13818 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13819
13820 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13821 definition.
13822 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13823 call0 ABI.
13824
13825 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13826
13827 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13828 to pass TLS call argument, according to current ABI.
13829 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13830 callx0 for TLS call, according to current ABI.
13831
13832 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13833
13834 * tree-eh.c (lower_try_finally_dup_block): Clear location information
13835 on stack restore statements.
13836 (decide_copy_try_finally): Do not consider a stack restore statement as
13837 coming from sources.
13838
13839 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
13840
13841 * config/alpha/alpha.c (alpha_expand_block_clear): Use
13842 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13843
13844 2015-09-15 Jeff Law <law@redhat.com>
13845
13846 PR tree-optimization/47679
13847 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13848 methods and private members.
13849 (avail_exprs_stack): Similarly. Change type of global
13850 from a pair of expr_hash_elt_t to the new class.
13851 (expr_elt_hasher::hash): Corresponding changes.
13852 (expr_elt_hasher::equal): Similarly.
13853 (avail_expr_hash): Similarly.
13854 (pass_dominator::execute): Similarly.
13855 (dom_opt_dom_walker::thread_across_edge): Similarly.
13856 (record_cond): Similarly.
13857 (dom_opt_dom_walker::before_dom_children): Similarly.
13858 (dom_opt_dom_walker::after_dom_children): Similarly.
13859 (lookup_avail_expr): Likewise.
13860 (initialize_hash_element): Now a expr_hash_elt constructor.
13861 (initialize_hash_element_from_expr): Similarly.
13862 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13863 (free_expr_hash_elt): Call dtor for the element.
13864 (remove_local_expressions_from_table): Now the "pop_to_marker"
13865 method in the available_exprs_stack class.
13866 (avail_expr_stack::record_expr): Method factored out.
13867 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13868 Fix formatting.
13869 (hashable_expr_equal_p): Fix formatting.
13870
13871 2015-09-15 David Malcolm <dmalcolm@redhat.com>
13872
13873 * input.h (location_get_source_line): Drop "expanded_location"
13874 param in favor of a file and line number.
13875 * input.c (location_get_source_line): Likewise.
13876 (dump_location_info): Update for change in signature of
13877 location_get_source_line.
13878 * diagnostic.c (diagnostic_print_caret_line): Likewise.
13879
13880 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13881
13882 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13883 Bump to 4KB for SJLJ exceptions.
13884 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
13885 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13886 * doc/tm.texi: Regenerate.
13887
13888 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13889
13890 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13891 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
13892 Update prototype.
13893
13894 2015-09-15 Richard Biener <rguenther@suse.de>
13895
13896 PR tree-optimization/67470
13897 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13898 structure for PHI hoisting by inserting a forwarder block
13899 if appropriate.
13900
13901 2015-09-15 Christian Bruel <christian.bruel@st.com>
13902
13903 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13904 (arm_option_print): New function.
13905
13906 2015-09-15 Christian Bruel <christian.bruel@st.com>
13907
13908 PR target/52144
13909 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13910 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13911 Remove flags parameter.
13912 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13913 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13914 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13915 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13916 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13917 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13918 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13919 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13920
13921 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13922
13923 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13924
13925 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13926 AARCH64_VALID_SIMD_DREG_MODE.
13927
13928 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13929
13930 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13931 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13932 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13933 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13934 aarch64_ld4_lane<mode>): Combine together, making...
13935 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13936 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13937 aarch64_st4_lane<mode>): Combine together, making...
13938 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13939 * config/aarch64/iterators.md (nregs): Add comment.
13940
13941 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13942
13943 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13944 Change operand mode from <V_TWO_ELEM> to BLK.
13945 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13946 (aarch64_vec_store_lanesoi_lane<mode): Likewise
13947 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13948 (aarch64_ld2_lane<mode>): Likewise.
13949 (aarch64_st2_lane<VQ:mode>): Likewise.
13950 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13951
13952 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13953
13954 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13955 Change operand mode from <V_FOUR_ELEM> to BLK.
13956 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13957 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13958 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13959 (aarch64_ld4_lane<mode>): Likewise.
13960 (aarch64_st4_lane<mode>): Likewise.
13961 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13962
13963 2015-09-15 Richard Biener <rguenther@suse.de>
13964
13965 PR middle-end/67563
13966 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13967 transfer EH info from old to new stmt.
13968 (replace_call_with_value): Likewise.
13969 (replace_call_with_call_and_fold): Likewise.
13970 (gimple_fold_builtin_memory_op): Likewise.
13971 (gimple_fold_builtin_memset): Likewise.
13972 (gimple_fold_builtin_stpcpy): Likewise.
13973 (gimple_fold_call): Likewise.
13974
13975 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13976
13977 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13978 comment.
13979 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13980 (aarch64_simd_intEI_type_node): Likewise.
13981 (aarch64_simd_builtin_std_type): Remove EImode case.
13982 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13983 * config/aarch64/aarch64-modes.def: Remove EImode.
13984
13985 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13986
13987 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13988 Change operand mode from <V_THREE_ELEM> to BLK.
13989 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13990 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13991 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13992 (aarch64_ld3_lane<mode>): Likewise.
13993 (aarch64_st3_lane<mode>): Likewise.
13994 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13995
13996 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13997
13998 * config/aarch64/aarch64-simd.md
13999 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14000 Change all TImode operands to BLKmode.
14001 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14002 Change all EImode operands to BLKmode.
14003 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14004 Change all OImode operands to BLKmode.
14005
14006 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14007 and call set_mem_size.
14008 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14009
14010 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14011
14012 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14013
14014 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14015 to...
14016 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14017
14018 (vec_store_lanesci_lane<mode>): Rename to...
14019 (aarch64_vec_store_lanesci_lane<mode>): ...this.
14020
14021 (vec_store_lanesxi_lane<mode>): Rename to...
14022 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14023
14024 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14025 aarch64_st4_lane<mode>): Follow renaming.
14026
14027 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14028
14029 * config/s390/s390.c (s390_const_operand_ok): Add missing
14030 brackets.
14031
14032 2015-09-15 Richard Biener <rguenther@suse.de>
14033
14034 PR lto/67568
14035 * lto-streamer.h (lto_location_cache::current_sysp): Properly
14036 initialize.
14037 * lto-streamer-out.c (clear_line_info): Likewise.
14038
14039 2015-09-15 Richard Biener <rguenther@suse.de>
14040
14041 * doc/match-and-simplify.texi: Fix wording.
14042
14043 2015-09-15 Bin Cheng <bin.cheng@arm.com>
14044
14045 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14046 unnecessary type conversion in op1.
14047
14048 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
14049
14050 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14051 (dup_block_and_redirect): Delete function.
14052 (can_dup_for_shrink_wrapping): New function.
14053 (fix_fake_fallthrough_edge): New function.
14054 (try_shrink_wrapping): Rewrite function.
14055 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14056
14057 2015-09-14 Rich Felker <dalias@libc.org>
14058
14059 * configure.ac: Change target pattern for sh TLS support
14060 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14061 * configure: Regenerate.
14062
14063 2015-09-14 Jeff Law <law@redhat.com>
14064
14065 PR tree-optimization/47679
14066 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14067 type rather than void *.
14068
14069 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14070
14071 PR fortran/67460
14072 * diagnostic.c (diagnostic_initialize): Do not set
14073 some_warnings_are_errors.
14074 (diagnostic_finish): Use DK_WERROR count instead.
14075 (diagnostic_report_diagnostic): Do not set
14076 some_warnings_are_errors.
14077 * diagnostic.h (struct diagnostic_context): Remove
14078 some_warnings_are_errors.
14079
14080 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14081
14082 * config/sparc/predicates.md (const_all_ones_operand): Use
14083 CONSTM1_RTX to simplify definition.
14084
14085 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14086
14087 PR target/67061
14088 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14089 Handle call insns.
14090
14091 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14092
14093 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14094 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14095 OPT_fshow_column to handled saved option cases.
14096 (append_compiler_options): Do not skip the above added options.
14097
14098 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14099
14100 PR target/63304
14101 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14102 nopcrelative_literal_loads.
14103 (aarch64_classify_address): Likewise.
14104 (aarch64_constant_pool_reload_icode): Define.
14105 (aarch64_secondary_reload): Handle secondary reloads for
14106 literal pools.
14107 (aarch64_override_options): Handle nopcrelative_literal_loads.
14108 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14109 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14110 Define.
14111 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14112 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14113 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14114 predicate.
14115 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14116
14117 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14118
14119 PR middle-end/67401
14120 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14121 sync_compare_and_swap_optab libcall to target_oval.
14122
14123 2015-09-14 Marek Polacek <polacek@redhat.com>
14124
14125 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14126 value.
14127 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14128
14129 2015-09-11 Mark Wielaard <mjw@redhat.com>
14130
14131 PR c/28901
14132 * toplev.c (check_global_declaration): Check and use
14133 warn_unused_const_variable.
14134 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14135 (-Wunused-variable): Remove non-constant. For C implies
14136 -Wunused-const-variable.
14137 (-Wunused-const-variable): New.
14138
14139 2015-09-14 Richard Biener <rguenther@suse.de>
14140
14141 * doc/match-and-simplify.texi: Update for changed syntax
14142 of inner ifs and the new switch expression.
14143
14144 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14145
14146 * config/i386/haswell.md: New file describing Haswell pipeline.
14147 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14148 haswell-like processors.
14149 (ix86_reassociation_width): Increase reassociation width for 64-bit
14150 Haswell processor family.
14151 * config/i386/i386.md: Introduce haswell cpu and include new md file.
14152
14153 2015-09-14 Richard Biener <rguenther@suse.de>
14154
14155 * doc/match-and-simplify.texi: Fixup some formatting issues
14156 and document the 's' flag.
14157
14158 2015-09-13 Olivier Hainque <hainque@adacore.com>
14159 Eric Botcazou <ebotcazou@adacore.com>
14160
14161 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14162 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
14163 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14164 (TARGET_CPU_gr5): Likewise.
14165 (TARGET_CPU_gr6): Likewise.
14166 (MULTILIB_DEFAULTS): Likewise.
14167 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14168 for mcpu=gr5 and mcpu=gr6.
14169 (MULTILIB_DIRNAMES): Adjust accordingly.
14170
14171 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14172
14173 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14174 (mem_ref_p): Likewise.
14175 (outermost_indep_loop): Adjust.
14176 (mem_ref_in_stmt): Likewise.
14177 (determine_max_movement): Likewise.
14178 (mem_ref_alloc): Likewise.
14179 (record_mem_ref_loc): Likewise.
14180 (set_ref_stored_in_loop): Likewise.
14181 (mark_ref_stored): Likewise.
14182 (gather_mem_refs_stmt): Likewise.
14183 (mem_refs_may_alias_p): Likewise.
14184 (for_all_locs_in_loop): Likewise.
14185 (struct rewrite_mem_ref_loc): Likewise.
14186 (rewrite_mem_refs): Likewise.
14187 (struct first_mem_ref_loc_1): Likewise.
14188 (first_mem_ref_loc): Likewise.
14189 (struct sm_set_flag_if_changed): Likewise.
14190 (execute_sm_if_changed_flag_set): Likewise.
14191 (execute_sm): Likewise.
14192 (hoist_memory_references):
14193 (struct ref_always_accessed): Likewise.
14194 (ref_always_accessed_p): Likewise.
14195 (refs_independent_p): Likewise.
14196 (record_dep_loop): Likewise.
14197 (ref_indep_loop_p_1): Likewise.
14198 (ref_indep_loop_p_2): Likewise.
14199 (ref_indep_loop_p): Likewise.
14200 (can_sm_ref_p): Likewise.
14201 (find_refs_for_sm): Likewise.
14202 (tree_ssa_lim_finalize): Likewise.
14203
14204 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14205
14206 * dwarf2out.c (dw_attr_ref): Remove typedef.
14207 (dw_line_info_ref): Likewise.
14208 (pubname_ref): Likewise.
14209 (dw_ranges_ref): Likewise.
14210 (dw_ranges_by_label_ref): Likewise.
14211 (comdat_type_node_ref): Likewise.
14212 (get_AT): Adjust.
14213 (get_AT_low_pc): Likewise.
14214 (get_AT_hi_pc): Likewise.
14215 (get_AT_string): Likewise.
14216 (get_AT_flag): Likewise.
14217 (get_AT_unsigned): Likewise.
14218 (get_AT_ref): Likewise.
14219 (get_AT_file): Likewise.
14220 (remove_AT): Likewise.
14221 (print_die): Likewise.
14222 (check_die): Likewise.
14223 (die_checksum): Likewise.
14224 (attr_checksum_ordered): Likewise.
14225 (struct checksum_attributes): Likewise.
14226 (collect_checksum_attributes): Likewise.
14227 (die_checksum_ordered): Likewise.
14228 (same_die_p): Likewise.
14229 (is_declaration_die): Likewise.
14230 (clone_die): Likewise.
14231 (clone_as_declaration): Likewise.
14232 (copy_declaration_context): Likewise.
14233 (break_out_comdat_types): Likewise.
14234 (copy_decls_walk): Likewise.
14235 (output_location_lists): Likewise.
14236 (external_ref_hasher::hash): Likewise.
14237 (optimize_external_refs_1): Likewise.
14238 (build_abbrev_table): Likewise.
14239 (size_of_die): Likewise.
14240 (unmark_all_dies): Likewise.
14241 (size_of_pubnames): Likewise.
14242 (output_die_abbrevs): Likewise.
14243 (output_die): Likewise.
14244 (output_pubnames): Likewise.
14245 (add_ranges_num): Likewise.
14246 (add_ranges_by_labels): Likewise.
14247 (add_high_low_attributes): Likewise.
14248 (gen_producer_string): Likewise.
14249 (dwarf2out_set_name): Likewise.
14250 (new_line_info_table): Likewise.
14251 (prune_unused_types_walk_attribs): Likewise.
14252 (prune_unused_types_update_strings): Likewise.
14253 (prune_unused_types): Likewise.
14254 (resolve_addr): Likewise.
14255 (optimize_location_lists_1): Likewise.
14256 (index_location_lists): Likewise.
14257 (dwarf2out_finish): Likewise.
14258
14259 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14260
14261 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14262
14263 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14264
14265 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14266 (dump_asserts_for): Adjust.
14267 (register_new_assert_for): Likewise.
14268 (process_assert_insertions): Likewise.
14269 (insert_range_assertions): Likewise.
14270
14271 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14272
14273 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14274 and remove typedef.
14275 (new_temp_expr_table): Adjust.
14276 (free_temp_expr_table): Likewise.
14277 (version_to_be_replaced_p): Likewise.
14278 (make_dependent_on_partition): Likewise.
14279 (add_to_partition_kill_list): Likewise.
14280 (remove_from_partition_kill_list): Likewise.
14281 (add_dependence): Likewise.
14282 (finished_with_expr): Likewise.
14283 (process_replaceable): Likewise.
14284 (kill_expr): Likewise.
14285 (kill_virtual_exprs): Likewise.
14286 (mark_replaceable): Likewise.
14287 (find_replaceable_in_bb): Likewise.
14288 (find_replaceable_exprs): Likewise.
14289 (debug_ter): Likewise.
14290
14291 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14292
14293 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14294 (struct btr_user): Rename from btr_user_s.
14295 (struct btr_def): Rename from btr_def_s.
14296 (find_btr_def_group): Adjust.
14297 (add_btr_def): Likewise.
14298 (new_btr_user): Likewise.
14299 (note_other_use_this_block): Likewise.
14300 (compute_defs_uses_and_gen): Likewise.
14301 (link_btr_uses): Likewise.
14302 (build_btr_def_use_webs): Likewise.
14303 (block_at_edge_of_live_range_p): Likewise.
14304 (btr_def_live_range): Likewise.
14305 (combine_btr_defs): Likewise.
14306 (move_btr_def): Likewise.
14307 (migrate_btr_def): Likewise.
14308 (migrate_btr_defs): Likewise.
14309
14310 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14311
14312 * var-tracking.c (shared_hash_def): Rename to shared_hash.
14313 (shared_hash): Remove typedef.
14314 (struct dataflow_set): Adjust.
14315 (shared_hash_unshare): Likewise.
14316 (dataflow_set_merge): Likewise.
14317 (vt_initialize): Likewise.
14318 (vt_finalize): Likewise.
14319
14320 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14321
14322 * var-tracking.c (struct location_chain): Rename from
14323 location_chain_def.
14324 (struct variable_part): Adjust.
14325 (variable_htab_free): Likewise.
14326 (unshare_variable): Likewise.
14327 (get_init_value): Likewise.
14328 (get_addr_from_local_cache): Likewise.
14329 (drop_overlapping_mem_locs): Likewise.
14330 (val_reset): Likewise.
14331 (struct variable_union_info): Likewise.
14332 (variable_union): Likewise.
14333 (find_loc_in_1pdv): Likewise.
14334 (insert_into_intersection): Likewise.
14335 (intersect_loc_chains): Likewise.
14336 (canonicalize_loc_order_check): Likewise.
14337 (canonicalize_values_mark): Likewise.
14338 (canonicalize_values_star): Likewise.
14339 (canonicalize_vars_star): Likewise.
14340 (variable_merge_over_cur): Likewise.
14341 (remove_duplicate_values): Likewise.
14342 (variable_post_merge_new_vals): Likewise.
14343 (variable_post_merge_perm_vals): Likewise.
14344 (find_mem_expr_in_1pdv): Likewise.
14345 (dataflow_set_preserve_mem_locs): Likewise.
14346 (dataflow_set_remove_mem_locs): Likewise.
14347 (variable_part_different_p): Likewise.
14348 (onepart_variable_different_p): Likewise.
14349 (find_src_set_src): Likewise.
14350 (dump_var): Likewise.
14351 (set_slot_part): Likewise.
14352 (clobber_slot_part): Likewise.
14353 (delete_slot_part): Likewise.
14354 (vt_expand_var_loc_chain): Likewise.
14355 (emit_note_insn_var_location): Likewise.
14356 (vt_finalize): Likewise.
14357
14358 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14359
14360 * dse.c (store_info_t): Remove typedef.
14361 (group_info_t): Likewise.
14362 (const_group_info_t): Likewise.
14363 (deferred_change_t): Likewise.
14364 (get_group_info): Adjust.
14365 (free_store_info): Likewise.
14366 (canon_address): Likewise.
14367 (clear_rhs_from_active_local_stores): Likewise.
14368 (record_store): Likewise.
14369 (replace_read): Likewise.
14370 (check_mem_read_rtx): Likewise.
14371 (scan_insn): Likewise.
14372 (remove_useless_values): Likewise.
14373 (dse_step1): Likewise.
14374 (dse_step2_init): Likewise.
14375 (dse_step2_nospill): Likewise.
14376 (scan_stores_nospill): Likewise.
14377 (scan_reads_nospill): Likewise.
14378 (dse_step3_exit_block_scan): Likewise.
14379 (dse_step3): Likewise.
14380 (dse_step5_nospill): Likewise.
14381 (dse_step6): Likewise.
14382
14383 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14384
14385 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14386 (alias_set_entry): Remove typedef.
14387 (alias_set_subset_of): Adjust.
14388 (alias_sets_conflict_p): Likewise.
14389 (init_alias_set_entry): Likewise.
14390 (get_alias_set): Likewise.
14391 (new_alias_set): Likewise.
14392 (record_alias_subset): Likewise.
14393
14394 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
14395
14396 * doc/install.texi (Downloading the source): Mark up
14397 contrib/download_prerequisites properly and drop leading "./".
14398
14399 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14400
14401 * config/arc/arc.h: Remove define of STRUCT_VALUE.
14402 * config/lm32/lm32.h: Likewise.
14403 * config/mep/mep.h: Likewise.
14404 * config/visium/visium.h: Likewise.
14405 * system.h: Poison STRUCT_VALUE macro.
14406
14407 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
14408
14409 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14410 CONSTANT_P operands.
14411
14412 2015-09-11 David S. Miller <davem@davemloft.net>
14413
14414 * config/sparc/constraints.md: Make "U" constraint a real register
14415 constraint.
14416 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14417 (D_MODES, DF_MODES): Add missing cast.
14418 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14419 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14420 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14421 cost to 8.
14422 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14423 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14424 provide these insn when flag_pic.
14425
14426 2015-09-11 Jeff Law <law@redhat.com>
14427
14428 PR tree-optimization/47679
14429 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14430 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14431 member with m_. Update inline member functions as necessary. Add
14432 toplevel comment.
14433 * tree-ssa-scopedtables.c: Update const_and_copies's member
14434 functions to use m_ prefix to access the stack.
14435
14436 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14437
14438 * graphite-optimize-isl.c (disable_tiling): Remove.
14439 (get_schedule_for_band): Do not use disable_tiling.
14440 (get_prevector_map): Delete function.
14441 (enable_polly_vector): Remove.
14442 (get_schedule_for_band_list): Remove dead code.
14443
14444 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14445
14446 * graphite-optimize-isl.c (get_tile_map): Refactor.
14447 (get_schedule_for_band): Same.
14448 (getScheduleForBand): Same.
14449 (get_prevector_map): Same.
14450 (get_schedule_for_band_list): Same.
14451 (get_schedule_map): Same.
14452 (get_single_map): Same.
14453 (apply_schedule_map_to_scop): Same.
14454 (optimize_isl): Same.
14455
14456 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14457
14458 PR target/63304
14459 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14460 (movtf): Delete.
14461 * config/aarch64/iterators.md (GPF_TF_F16): New.
14462 (GPF_F16): Delete.
14463
14464 2015-09-10 Nathan Sidwell <nathan@acm.org>
14465
14466 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14467 (nvptx_reorg): Adjust comments.
14468
14469 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
14470
14471 PR bootstrap/67363
14472 * configure.ac: Check if setenv and unsetenv are declared.
14473 * configure: Rebuild.
14474 * config.in: Rebuild.
14475 * system.h: Declare setenv and unsetenv if not declared.
14476
14477 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14478
14479 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14480 commentary to simplify permute mask adjustment equation.
14481 (special_handling_values): Add SH_VPERM.
14482 (const_load_sequence_p): New function.
14483 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14484 the mask loaded from the constant pool.
14485 (adjust_vperm): New function.
14486 (handle_special_swappables): Call adjust_vperm.
14487 (dump_swap_insn_table): Handle SH_VPERM.
14488
14489 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
14490
14491 * shrink-wrap.c (requires_stack_frame_p): Remove static.
14492 * shrink-wrap.h (requires_stack_frame_p): Put back.
14493
14494 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
14495
14496 * reload1.c (elimination_costs_in_insn): Locally turn
14497 -Wmaybe-uninitialized into a warning.
14498
14499 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
14500
14501 * shrink-wrap.c (requires_stack_frame_p): Make static.
14502 (prepare_shrink_wrap): Likewise.
14503 (dup_block_and_redirect): Likewise.
14504 * shrink-wrap.h: Remove declarations of those functions.
14505
14506 2015-09-10 Mark Wielaard <mjw@redhat.com>
14507
14508 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14509
14510 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
14511
14512 PR target/67506
14513 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14514 missing simplify_gen_subreg.
14515
14516 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14517
14518 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14519 the vector element is bigger than 64 bit.
14520
14521 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14522
14523 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14524 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14525
14526 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14527
14528 * config/s390/s390.c: Add V1TImode to constant pool modes.
14529
14530 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14531
14532 PR target/67439
14533 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14534 predicate. Set predicable_short_it attr to "no".
14535
14536 2015-09-10 Jiong Wang <jiong.wang@arm.com>
14537
14538 PR rtl-optimization/67421
14539 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14540 left wide shift tranformation.
14541
14542 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14543
14544 * common/config/arc/arc-common.c: Remove references to A5.
14545 * config/arc/arc-opts.h: Likewise.
14546 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14547 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14548 * config/arc/t-arc-newlib: Likewise.
14549
14550 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14551
14552 * config/arc/arc.md (length): Fix attribute length for conditional
14553 executed instructions with long immediate.
14554
14555 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14556
14557 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14558 type for second alternative.
14559
14560 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
14561
14562 * doc/invoke.texi (Downloading GCC): Mention
14563 contrib/download_prerequisites script.
14564
14565 2015-09-10 Jakub Jelinek <jakub@redhat.com>
14566
14567 PR c++/67523
14568 * gimplify.c (gimplify_omp_for): If inner stmt is not found
14569 for combined loop, assert seen_error () and return GS_ERROR.
14570
14571 PR middle-end/67521
14572 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14573 if decl is already in outer->variables.
14574
14575 PR middle-end/67517
14576 * gimplify.c (gimplify_scan_omp_clauses): Instead of
14577 asserting that decl is not specified in octx->variables,
14578 break out of the loop if it is.
14579
14580 PR c++/67514
14581 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14582 iterator is not explicitly determined, but is defined inside
14583 of the combined workshare region, handle it like if it has
14584 DECL_EXPR in OMP_FOR_PRE_BODY.
14585
14586 2015-09-09 Nathan Sidwell <nathan@acm.org>
14587
14588 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14589 (*cmp<mode>): Add assembler spacing.
14590 (setcc_int<mode>, set_cc_float<mode>): Likewise.
14591 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14592 level.
14593 (write_func_decl_from_insn): Refactor argument loops & comma emission.
14594 (nvptx_expand_call): Likewise.
14595 (nvptx_output_call_insn): Likewise.
14596 (nvptx_reorg_subreg): Add spacing.
14597
14598 2015-09-09 Marek Polacek <polacek@redhat.com>
14599
14600 PR middle-end/67512
14601 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14602 for comparisons.
14603
14604 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
14605
14606 PR c++/53184
14607 * doc/invoke.texi ([Wsubobject-linkage]): Document.
14608
14609 2015-09-09 Tom de Vries <tom@codesourcery.com>
14610
14611 * params-list.h: Add missing copyright notice.
14612
14613 2015-09-09 Nathan Sidwell <nathan@acm.org>
14614
14615 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14616 sel_truesi, not andsi.
14617
14618 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14619
14620 * config/arm/arm.md (*subsi3_compare0): Rename to...
14621 (subsi3_compare0): ... This.
14622 (modsi3): New define_expand.
14623 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14624 when operand is power of 2.
14625
14626 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14627
14628 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14629 (*neg<mode>2_compare0): Rename to...
14630 (neg<mode>2_compare0): ... This.
14631 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14632 Move check for speed inside the if-then-elses. Reflect
14633 CSNEG sequence in MOD by power of 2 case.
14634
14635 2015-09-09 Alan Modra <amodra@gmail.com>
14636
14637 PR target/67378
14638 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14639 reload replacement for PRE_MODIFY address reg.
14640
14641 2015-09-09 Sebastian Pop <s.pop@samsung.com>
14642
14643 PR tree-optimization/53852
14644 * config.in: Regenerate.
14645 * configure: Regenerate.
14646 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14647 * graphite-optimize-isl.c (optimize_isl): Stop computation when
14648 PARAM_MAX_ISL_OPERATIONS is reached.
14649 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14650 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14651 result equal to isl_stat_ok as the status now can be isl_error_quota.
14652 (subtract_commutative_associative_deps): Same.
14653 (compute_deps): Same.
14654
14655 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14656 Sebastian Pop <s.pop@samsung.com>
14657
14658 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14659 Return the parameter if it was saved in corresponding
14660 parameter_rename_map of the region.
14661 (copy_def): Copy def from sese region to the newly created region.
14662 (copy_internal_parameters): Copy all the internal parameters defined
14663 within a region to the newly created region.
14664 (graphite_regenerate_ast_isl): Copy parameters to the new region before
14665 translating isl to gimple.
14666 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
14667 the loop-nest does not have any data-references.
14668 (build_graphite_scops): Create a scop only when there is at least one
14669 loop inside it.
14670 (contains_only_close_phi_nodes): Deleted.
14671 (print_graphite_scop_statistics): Deleted
14672 (print_graphite_statistics): Deleted
14673 (limit_scops): Deleted.
14674 (build_scops): Removed call to limit_scops.
14675 * sese.c (new_sese): Construct.
14676 (free_sese): Destruct.
14677 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
14678 added.
14679 (set_rename): Pass sese region so that parameters inside the region can
14680 be added to its parameter_rename_map.
14681 (rename_uses): Pass sese region.
14682 (graphite_copy_stmts_from_block): Do not copy parameters that have been
14683 generated in the header of the scop. For each SSA_NAME in the
14684 parameter_rename_map rename its usage.
14685 (invariant_in_sese_p_rec): Return false if tree t is defined outside
14686 sese region.
14687 (scalar_evolution_in_region): If the tree t is invariant just return t.
14688 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
14689 struct sese to keep track of all the parameters which need renaming.
14690 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
14691 any data-refs.
14692 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14693
14694 2015-09-08 Tom de Vries <tom@codesourcery.com>
14695
14696 * Makefile.in (generated_files): Add params.list.
14697 (params.list, s-params.list): Add rule.
14698 * params.h (enum compiler_param): Include params-list.h. Move define
14699 DEFPARAM, include params.def and undef DEFPARAM ...
14700 * params-list.h: ... here. New file.
14701
14702 2015-09-08 David Malcolm <dmalcolm@redhat.com>
14703
14704 * pretty-print.h (printer_fn): Fix typo in comment.
14705
14706 2015-09-07 Jeff Law <law@redhat.com>
14707
14708 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14709
14710 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14711
14712 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14713 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14714 (arm_neon_fp16_hw): New.
14715
14716 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14717
14718 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14719 UNITS_PER_WORD >= 4.
14720
14721 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14722
14723 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14724 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14725 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14726 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14727 (aarch64_float_extend_lo_v2df): Rename to...
14728 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14729
14730 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14731 (float_extend_lo): Add v4sf.
14732
14733 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14734 * config/aarch64/iterators.md (VQ_HSF): New iterator.
14735 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14736 (Vwide): New mode_attr.
14737
14738 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14739
14740 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14741 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14742 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14743 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14744 V4HF and V8HF variants to iterator.
14745
14746 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14747
14748 * config/aarch64/iterators.md (VDQF_F16): New.
14749 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14750
14751 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14752
14753 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14754 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14755 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14756 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14757 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14758 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14759 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14760 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14761 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14762 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14763 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14764 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14765 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14766 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14767 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14768 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14769 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14770 vld1q_dup_f16): New.
14771
14772 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14773
14774 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14775 Reparameterize to...
14776 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14777 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14778 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14779
14780 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14781 v8hf variant.
14782 (float_truncate_lo_): Use BUILTIN_VDF iterator.
14783
14784 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14785
14786 * config/aarch64/iterators.md (VDF, Vdtype): New.
14787 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14788
14789 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14790
14791 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14792 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14793 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14794 Add __builtin_aarch64_simd_hf.
14795 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14796 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14797 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14798 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14799 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14800 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14801 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14802 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14803 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14804
14805 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14806 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14807 (VDC, Vdbl): Add V4HF.
14808
14809 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14810
14811 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14812 V4HFmode and V8HFmode.
14813 (aarch64_split_simd_move): Add case for V8HFmode.
14814 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14815 (aarch64_simd_builtin_std_type): Handle HFmode.
14816 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14817
14818 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14819 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14820 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14821
14822 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14823 Float16x8_t.
14824
14825 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14826 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14827 New typedefs.
14828 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14829 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14830 vst1q_lane_f16): New.
14831 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14832 (VALLDI_F16, VALL_F16): New.
14833 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14834 Add cases for V4HF and V8HF.
14835 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14836
14837 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14838
14839 * config/arm/arm-builtins.c (VAR11, VAR12): New.
14840 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14841 vld4_dup): Add v4hf variant.
14842 (vget_high, vget_low): Add v8hf variant.
14843 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14844 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14845 v4hf and v8hf variants.
14846
14847 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14848 (VDX): Add V4HF.
14849 (V_DOUBLE): Add case for V4HF.
14850 (VQX): Add V8HF.
14851 (V_HALF): Add case for V8HF.
14852 (VDQX): Add V4HF, V8HF.
14853 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14854 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14855
14856 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14857 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14858 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14859 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14860 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14861 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14862 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14863 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14864 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14865
14866 (neon_vcreate, neon_vreinterpretv8qi<mode>,
14867 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14868 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14869 Change VDX to VD_RE.
14870
14871 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14872 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14873 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14874
14875 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14876 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14877 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14878 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14879 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14880 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14881 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14882 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14883 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14884
14885 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14886
14887 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14888 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14889 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14890 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14891 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14892 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14893 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14894 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14895 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14896 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14897 New.
14898
14899 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14900
14901 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14902
14903 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14904
14905 * config/arm/arm-builtins.c (v8hf_UP): New.
14906 (arm_init_simd_builtin_types): Initialise Float16x8_t.
14907
14908 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14909
14910 * config/arm/arm_neon.h (float16x8_t): New typedef.
14911
14912 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14913
14914 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14915 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14916 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14917 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14918 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14919 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14920 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14921 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14922 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14923 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14924
14925 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
14926
14927 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14928 non-alphanumeric characters in the symbol name.
14929
14930 2015-09-07 Marek Polacek <polacek@redhat.com>
14931
14932 PR inline-asm/67448
14933 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14934 a memory input.
14935
14936 2015-09-07 Marek Polacek <polacek@redhat.com>
14937
14938 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14939
14940 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
14941
14942 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14943 not warn.
14944
14945 2015-09-04 Jakub Jelinek <jakub@redhat.com>
14946
14947 PR middle-end/67452
14948 * tree-ssa-live.c: Include cfgloop.h.
14949 (remove_unused_locals): Clear loop->simduid if simduid is about
14950 to be removed from cfun->local_decls.
14951
14952 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14953
14954 PR target/65210
14955 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14956 attribute as well.
14957
14958 2015-09-04 Tom de Vries <tom@codesourcery.com>
14959
14960 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14961
14962 2015-09-04 Jeff Law <law@redhat.com>
14963
14964 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14965 unnecessary constructor. It's now trivial and implemented inside...
14966 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14967 constructor. Add comments to various methods. Remove unused
14968 private fields.
14969 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14970 * tree-vrp.c (identify_jump_threads): Likewise.
14971 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14972 indentation issues.
14973 (thread_across_edge): Similarly.
14974 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14975 arguments in constructor call.
14976
14977 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
14978
14979 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14980 temp path contains a '-'.
14981
14982 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14983 Petr Murzin <petr.murzin@intel.com>
14984 Kirill Yukhin <kirill.yukhin@intel.com>
14985
14986 * config/i386/i386-builtin-types.def
14987 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14988 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14989 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14990 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14991 * config/i386/i386.c
14992 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14993 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14994 IX86_BUILTIN_SCATTERALTDIV16SI.
14995 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14996 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14997 __builtin_ia32_scatteraltdiv8si.
14998 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14999 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15000 IX86_BUILTIN_SCATTERALTDIV16SI.
15001 (ix86_vectorize_builtin_scatter): New.
15002 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15003 ix86_vectorize_builtin_scatter.
15004
15005 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15006 Petr Murzin <petr.murzin@intel.com>
15007 Kirill Yukhin <kirill.yukhin@intel.com>
15008
15009 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15010 * doc/tm.texi: Regenerate.
15011 * target.def: Add scatter builtin.
15012 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15013 for loads/stores in case of gather/scatter accordingly.
15014 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15015 STMT_VINFO_GATHER_P(S).
15016 (vect_check_gather): Rename to ...
15017 (vect_check_gather_scatter): this.
15018 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15019 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15020 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15021 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15022 variable and new checkings for it accordingly.
15023 * tree-vect-stmts.c
15024 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15025 STMT_VINFO_GATHER_P(S).
15026 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15027 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15028
15029 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15030
15031 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15032 define_insn.
15033 (mulv16qi3): New define_expand.
15034
15035 2015-09-03 Martin Sebor <msebor@redhat.com>
15036
15037 PR c/66516
15038 * doc/extend.texi (Other Builtins): Document when the address
15039 of a built-in function can be taken.
15040
15041 2015-09-03 Richard Biener <rguenther@suse.de>
15042
15043 * dwarf2out.c (flush_limbo_die_list): Split out from ...
15044 (dwarf2out_early_finish): ... here.
15045 (dwarf2out_finish): Do not call dwarf2out_early_finish but
15046 flush_limbo_die_list. Assert we have no deferred asm names.
15047
15048 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15049
15050 * optabs.c (expand_binop): Don't create a broadcast vector with a
15051 source element wider than the inner mode.
15052
15053 2015-09-03 Richard Biener <rguenther@suse.de>
15054
15055 * varasm.c (output_constant): Use fold_convert instead of
15056 wide_int_to_tree.
15057
15058 2015-09-03 Tom de Vries <tom@codesourcery.com>
15059
15060 PR tree-optimization/65637
15061 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15062 fin_bb has 2 predecessors.
15063
15064 2015-09-03 Tom de Vries <tom@codesourcery.com>
15065
15066 PR tree-optimization/65637
15067 * omp-low.c (find_phi_with_arg_on_edge): New function.
15068 (expand_omp_for_static_chunk): Fix inner loop phi.
15069
15070 2015-09-03 Tom de Vries <tom@codesourcery.com>
15071
15072 PR tree-optimization/65637
15073 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15074 that head is NULL.
15075
15076 2015-09-03 Tom de Vries <tom@codesourcery.com>
15077
15078 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15079
15080 2015-09-03 Tom de Vries <tom@codesourcery.com>
15081
15082 * doc/invoke.texi (parloops-chunk-size): Add item.
15083 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15084 * tree-parloops.c: Include params.h.
15085 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15086 param parloops-chunk-size is used.
15087
15088 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15089
15090 PR middle-end/67351
15091 * fold-const.c (fold_binary_loc) : Move
15092 Transform (x >> c) << c into x & (-1<<c) or
15093 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15094 types using simplify and match.
15095 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15096 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15097
15098 2015-09-03 Richard Biener <rguenther@suse.de>
15099
15100 PR ipa/66705
15101 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15102 (create_variable_info_for_1): Use ctor_for_analysis instead
15103 of get_constructor.
15104 (create_variable_info_for): Likewise.
15105
15106 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15107
15108 PR ipa/67280
15109 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15110 in new callgraph edge.
15111
15112 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15113
15114 PR target/59810
15115 PR target/63652
15116 PR target/63653
15117 * config/aarch64/aarch64-simd.md
15118 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15119 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15120 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15121 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15122
15123 2015-09-02 Alan Modra <amodra@gmail.com>
15124
15125 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15126 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15127 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15128
15129 2015-09-02 Alan Modra <amodra@gmail.com>
15130
15131 PR target/67417
15132 * config/rs6000/predicates.md (current_file_function_operand): Don't
15133 return true for weak symbols.
15134 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15135
15136 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15137 Andrew Bennett <andrew.bennett@imgtec.com>
15138
15139 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15140 * config/mips/mips-protos.h: Add definitions for
15141 mips_output_jump and mips_output_equal_conditional_branch
15142 * config/mips/mips.c (MIPS_JR): Change to support the
15143 JIC instruction.
15144 (mips_emit_compare): Add support for the MIPS R6 conditional
15145 compact branches.
15146 (mips_process_sync_loop): Likewise.
15147 (mips_output_order_conditional_branch): Likewise.
15148 (mips16_build_call_stub): Change MIPS_CALL to
15149 mips_output_jump.
15150 (mips_print_operand_punctuation): Update 's' case to only
15151 apply to micromips r2.
15152 (mips_adjust_insn_length): Add support for forbidden slot
15153 hazards.
15154 (mips_avoid_hazard): Likewise.
15155 (mips_reorg_process_insns): Likewise.
15156 (mips_output_jump): New function.
15157 (mips_output_equal_conditional_branch): Likewise.
15158 (mips_output_conditional_branch): Use jrc/bc if compact
15159 branch support is enabled. Ensure the forbidden slots
15160 between the two branch instructions is filled with a nop.
15161 (mips_option_override): Add support to process the compact
15162 branch option and set the correct defaults. Prevent
15163 non-explict relocs being using for MIPS R6.
15164 (mips_trampoline_init): Add compact branch support.
15165 (mips_mult_zero_zero_cost): Allow zero initialisation of
15166 accumulators with TARGET_DSP.
15167 * config/mips/mips.h (TARGET_CB_NEVER): New define.
15168 (TARGET_CB_MAYBE): New define.
15169 (TARGET_CB_ALWAYS): New define.
15170 (ISA_HAS_DELAY_SLOTS): New define.
15171 (ISA_HAS_COMPACT_BRANCHES): New define.
15172 (ISA_HAS_JRC): New define.
15173 (MIPS_BRANCH_C): New define.
15174 (MIPS_CALL): Removed.
15175 (MICROMIPS_J): Removed.
15176 * config/mips/mips.md (compact_form): New attr.
15177 (hazard): Add support for forbidden slots.
15178 (define_delay): Add support for compact branches.
15179 (*branch_order<mode>): Likewise.
15180 (*branch_order<mode>_inverted): Likewise.
15181 (*branch_equality<mode>): Likewise.
15182 (*branch_equality<mode>_inverted): Likewise.
15183 (*jump_absolute): Likewise.
15184 (*jump_pic): Likewise.
15185 (indirect_jump): Use mips_output_jump to produce assembly output.
15186 (tablejump_<mode>"): Likewise.
15187 (*<optab>"): Likewise.
15188 (<optab>_internal): Likewise.
15189 (sibcall_internal): Likewise.
15190 (sibcall_value_internal): Likewise.
15191 (sibcall_value_multiple_internal): Likewise.
15192 (call_internal): Likewise.
15193 (call_split): Likewise.
15194 (call_internal_direct): Likewise.
15195 (call_direct_split): Likewise.
15196 (call_value_internal): Likewise.
15197 (call_value_split): Likewise.
15198 (call_value_internal_direct): Likewise.
15199 (call_value_direct_split): Likewise.
15200 (call_value_multiple_internal): Likewise.
15201 (call_value_multiple_split): Likewise.
15202 (mips_get_fcsr_mips16_<mode>): Likewise.
15203 (mips_set_fcsr_mips16_<mode>): Likewise.
15204 (tls_get_tp_mips16_<mode>): Likewise.
15205 * config/mips/mips.opt: Add -mcompact-branches option.
15206 * config/mips/predicates.md (order_operator): Ensure the
15207 conditional compact branches are only used if the ISA them.
15208 * doc/invoke.texi: Document -mcompact-branches option.
15209
15210 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
15211
15212 PR target/61578
15213 * lra-lives.c (process_bb_lives): Process move pseudos with the
15214 same value for copies and preferences
15215 * lra-constraints.c (match_reload): Create match reload pseudo
15216 with the same value from single dying input pseudo.
15217
15218 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15219
15220 PR target/67405
15221 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15222
15223 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
15224
15225 * trans-mem.c: Add contributed-by.
15226 * trans-mem.h: Same.
15227
15228 2015-09-01 Richard Biener <rguenther@suse.de>
15229
15230 * expr.c (expand_expr_real_1): For expanding TERed defs
15231 set the current location to that of the def if not UNKNOWN.
15232
15233 2015-09-01 David Sherwood <david.sherwood@arm.com>
15234
15235 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15236
15237 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15238
15239 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15240 then_cost, else_cost fields. Change branch_cost field to unsigned int.
15241 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15242 Include rtl-iter.h.
15243 (noce_simple_bbs): New function.
15244 (noce_try_move): Bail if basic blocks are not simple.
15245 (noce_try_store_flag): Likewise.
15246 (noce_try_store_flag_constants): Likewise.
15247 (noce_try_addcc): Likewise.
15248 (noce_try_store_flag_mask): Likewise.
15249 (noce_try_cmove): Likewise.
15250 (noce_try_minmax): Likewise.
15251 (noce_try_abs): Likewise.
15252 (noce_try_sign_mask): Likewise.
15253 (noce_try_bitop): Likewise.
15254 (bbs_ok_for_cmove_arith): New function.
15255 (noce_emit_all_but_last): Likewise.
15256 (noce_emit_insn): Likewise.
15257 (noce_emit_bb): Likewise.
15258 (noce_try_cmove_arith): Handle non-simple basic blocks.
15259 (insn_valid_noce_process_p): New function.
15260 (contains_mem_rtx_p): Likewise.
15261 (bb_valid_for_noce_process_p): Likewise.
15262 (noce_process_if_block): Allow non-simple basic blocks
15263 where appropriate.
15264
15265 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
15266
15267 * tree-ssa-dom.c (record_equivalences_from_phis,
15268 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15269 (lookup_avail_expr): Likewise, and remove comment and unused temp.
15270
15271 2015-09-01 Nick Clifton <nickc@redhat.com>
15272
15273 * config/msp430/msp430.opt (mcpu): Fix typo.
15274
15275 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15276
15277 * config/aarch64/aarch64.c (aarch64_set_current_function):
15278 Re-layout any vector parameters have non-simd layout.
15279 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15280 Delete.
15281 (aarch64_simd_expand_args): Delete call to the above.
15282
15283 2015-08-31 Mike Frysinger <vapier@gentoo.org>
15284
15285 * doc/invoke.texi (asan-stack): Add space before option.
15286
15287 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15288
15289 * tree.h (zerop): New function.
15290 * tree.c (zerop): Likewise.
15291 (element_precision): Handle expressions.
15292 * match.pd (define_predicates): Add zerop.
15293 (x <= +Inf): Fix comment.
15294 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15295 * fold-const.c (fold_binary_loc): ... here. Remove.
15296
15297 2015-08-31 Richard Biener <rguenther@suse.de>
15298
15299 PR middle-end/67381
15300 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15301
15302 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15303
15304 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15305 (CEXPI): New operator list.
15306 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15307 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15308 Converted from ...
15309 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15310
15311 2015-08-31 Tom de Vries <tom@codesourcery.com>
15312
15313 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15314 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15315 parameter.
15316 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15317 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15318 (rewrite_into_loop_closed_ssa): ... here.
15319 (replace_uses_in_dominated_bbs): Remove function.
15320 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15321 rewrite_into_loop_closed_ssa_1.
15322
15323 2015-08-31 Michael Matz <matz@suse.de>
15324
15325 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15326 enter entry and exit blocks for reverse post order.
15327
15328 2015-08-31 Richard Biener <rguenther@suse.de>
15329
15330 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15331 (lto_location_cache::current_sysp): Likewise.
15332 (output_block::current_sysp): Likewise.
15333 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15334 (lto_location_cache::apply_location_cache): Properly record
15335 system header locations.
15336 (lto_location_cache::input_location): Input whether a file
15337 is a system header.
15338 * lto-streamer-out.c (lto_output_location): Stream whether a file
15339 is a system header.
15340
15341 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15342
15343 PR bootstrap/67363
15344 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15345
15346 2015-08-31 Tom de Vries <tom@codesourcery.com>
15347
15348 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15349 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15350 Improve function header comments.
15351
15352 2015-08-30 Michael Collison <michael.collison@linaro.org>
15353
15354 PR other/67320
15355 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15356 standard names
15357
15358 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15359
15360 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15361 special_handling bitfield.
15362 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15363 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15364 that represents a general xxpermdi.
15365 (insn_is_swappable_p): Add handling for vec_concat of two
15366 doublewords, which maps to a specific xxpermdi.
15367 (adjust_xxpermdi): New function.
15368 (adjust_concat): Likewise.
15369 (handle_special_swappables): Call adjust_xxpermdi and
15370 adjust_concat.
15371 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15372
15373 2015-08-30 Rich Felker <dalias@libc.org>
15374
15375 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15376 case instead of sh[123456ble]-*-*.
15377
15378 2015-08-29 Anatoly Sokolov <aesok@post.ru>
15379
15380 * ira.c (print_unform_and_important_classes,
15381 print_translated_classes): Remove reg_class_names static array.
15382 (print_unform_and_important_classes): Rename to ...
15383 (print_uniform_and_important_classes): ... this.
15384 (ira_debug_allocno_classes): Update accordingly.
15385
15386 2015-08-29 Tom de Vries <tom@codesourcery.com>
15387
15388 PR tree-optimization/46193
15389 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15390 clause.
15391
15392 2015-08-28 Jeff Law <law@redhat.com>
15393
15394 PR lto/66752
15395 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15396 unable to find X NE 0 in the tables, return X as the simplified
15397 condition.
15398 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15399 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15400 to VISISTED_BBS.
15401 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15402 after removing the control flow statement and unnecessary edges.
15403
15404 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
15405
15406 Revert:
15407 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15408
15409 PR tree-optimization/67283
15410 * tree-sra.c (type_consists_of_records_p): Rename to...
15411 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15412
15413 (completely_scalarize_record): Rename to...
15414 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15415 code to:
15416 (scalarize_elem): New.
15417
15418 2015-08-28 Jiong Wang <jiong.wang@arm.com>
15419
15420 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15421 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15422 (aarch64_symbol_type): Likewise.
15423 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15424 Likewise.
15425 (aarch64_expand_mov_immediate): Likewise.
15426 (aarch64_print_operand): Likewise.
15427 (aarch64_classify_tls_symbol): Likewise.
15428
15429 2015-08-28 Richard Biener <rguenther@suse.de>
15430
15431 * cgraphunit.c (symbol_table::compile): Move early debug generation
15432 and finish...
15433 (symbol_table::finalize_compilation_unit): ... back here and
15434 add a !seen_error () guard.
15435
15436 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15437
15438 * toplev.c (process_options): Do not use flag_loop_block,
15439 flag_loop_interchange, and flag_loop_strip_mine. Add check for
15440 flag_loop_optimize_isl.
15441
15442 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15443
15444 * Makefile.in (OBJS): Remove graphite-blocking.o and
15445 graphite-interchange.o.
15446 * common.opt (floop-strip-mine, floop-interchange, floop-block):
15447 Alias of floop-nest-optimize.
15448 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15449 Document as alias of -floop-nest-optimize.
15450 * graphite-blocking.c: Remove.
15451 * graphite-interchange.c: Remove.
15452 * graphite-optimize-isl.c: Include dumpfile.h.
15453 (getScheduleForBand): Add dump for tiled loops. Use
15454 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15455 * graphite-poly.c (scop_max_loop_depth): Remove.
15456 (print_scattering_function_1): Remove.
15457 (print_scattering_function): Remove.
15458 (print_scattering_functions): Remove.
15459 (debug_scattering_function): Remove.
15460 (debug_scattering_functions): Remove.
15461 (apply_poly_transforms): Remove use of flag_loop_block,
15462 flag_loop_strip_mine, and flag_loop_interchange.
15463 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15464 PBB_ORIGINAL.
15465 (print_pdr_access_layout): Remove.
15466 (print_pdr): Print ISL representation.
15467 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15468 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15469 (free_scop): Same.
15470 (openscop_print_pbb_domain): Remove.
15471 (print_pbb): Remove call to print_scattering_function.
15472 (openscop_print_scop_context): Remove.
15473 (print_scop_context): Do not print matrices anymore.
15474 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15475 SCOP_TRANSFORMED_SCHEDULE.
15476 (print_isl_set): Add printing of a new line.
15477 (print_isl_map): Same.
15478 (print_isl_aff): Same.
15479 (print_isl_constraint): Same.
15480 (loop_to_lst): Remove.
15481 (scop_to_lst): Remove.
15482 (lst_indent_to): Remove.
15483 (print_lst): Remove.
15484 (debug_lst): Remove.
15485 (dot_lst_1): Remove.
15486 (dot_lst): Remove.
15487 (reverse_loop_at_level): Remove.
15488 (reverse_loop_for_pbbs): Remove.
15489 * graphite-poly.h (pdr_dim_iter_domain): Remove.
15490 (pdr_nb_params): Remove.
15491 (pdr_alias_set_dim): Remove.
15492 (pdr_subscript_dim): Remove.
15493 (pdr_iterator_dim): Remove.
15494 (pdr_parameter_dim): Remove.
15495 (same_pdr_p): Remove.
15496 (struct poly_scattering): Remove.
15497 (struct poly_bb): Remove _original, _transformed, _saved.
15498 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15499 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15500 (PBB_NB_LOCAL_VARIABLES): Remove.
15501 (PBB_NB_SCATTERING_TRANSFORM): Remove.
15502 (schedule_to_scattering): Remove.
15503 (number_of_write_pdrs): Remove.
15504 (pbb_dim_iter_domain): Remove.
15505 (pbb_nb_params): Remove.
15506 (pbb_nb_scattering_orig): Remove.
15507 (pbb_nb_scattering_transform): Remove.
15508 (pbb_nb_dynamic_scattering_transform): Remove.
15509 (pbb_nb_local_vars): Remove.
15510 (pbb_iterator_dim): Remove.
15511 (pbb_parameter_dim): Remove.
15512 (psco_scattering_dim): Remove.
15513 (psct_scattering_dim): Remove.
15514 (psct_local_var_dim): Remove.
15515 (psco_iterator_dim): Remove.
15516 (psct_iterator_dim): Remove.
15517 (psco_parameter_dim): Remove.
15518 (psct_parameter_dim): Remove.
15519 (psct_dynamic_dim): Remove.
15520 (psct_static_dim): Remove.
15521 (psct_add_local_variable): Remove.
15522 (new_lst_loop): Remove.
15523 (new_lst_stmt): Remove.
15524 (free_lst): Remove.
15525 (copy_lst): Remove.
15526 (lst_add_loop_under_loop): Remove.
15527 (lst_depth): Remove.
15528 (lst_dewey_number): Remove.
15529 (lst_dewey_number_at_depth): Remove.
15530 (lst_pred): Remove.
15531 (lst_succ): Remove.
15532 (lst_find_pbb): Remove.
15533 (find_lst_loop): Remove.
15534 (lst_find_first_pbb): Remove.
15535 (lst_empty_p): Remove.
15536 (lst_find_last_pbb): Remove.
15537 (lst_contains_p): Remove.
15538 (lst_contains_pbb): Remove.
15539 (lst_create_nest): Remove.
15540 (lst_remove_from_sequence): Remove.
15541 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15542 (lst_niter_for_loop): Remove.
15543 (pbb_update_scattering): Remove.
15544 (lst_update_scattering_under): Remove.
15545 (lst_update_scattering): Remove.
15546 (lst_insert_in_sequence): Remove.
15547 (lst_replace): Remove.
15548 (lst_substitute_3): Remove.
15549 (lst_distribute_lst): Remove.
15550 (lst_remove_all_before_including_pbb): Remove.
15551 (lst_remove_all_before_excluding_pbb): Remove.
15552 (struct scop): Remove original_schedule, transformed_schedule, and
15553 saved_schedule.
15554 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15555 (SCOP_SAVED_SCHEDULE): Remove.
15556 (poly_scattering_new): Remove.
15557 (poly_scattering_free): Remove.
15558 (poly_scattering_copy): Remove.
15559 (store_scattering_pbb): Remove.
15560 (store_lst_schedule): Remove.
15561 (restore_lst_schedule): Remove.
15562 (store_scattering): Remove.
15563 (restore_scattering_pbb): Remove.
15564 (restore_scattering): Remove.
15565 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15566 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
15567 compute the scattering polyhedron dimension from the dimension of
15568 pbb->domain.
15569 (build_scop_scattering): Update call to
15570 build_pbb_scattering_polyhedrons.
15571 (build_poly_scop): Remove call to scop_to_lst.
15572 * graphite.c (graphite_transform_loops): Add call to print_scop.
15573 (gate_graphite_transforms): Remove use of flag_loop_block,
15574 flag_loop_interchange, and flag_loop_strip_mine.
15575
15576 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15577
15578 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15579 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15580 -floop-nest-optimize.
15581 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15582 (generate_luj_sepclass): Remove.
15583 (generate_luj_options): Remove.
15584 (set_options): Remove opt_luj.
15585 (scop_to_isl_ast): Remove opt_luj.
15586 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15587 flag_loop_unroll_jam.
15588 (getPrevectorMap_full): Remove.
15589 (getScheduleForBandList): Remove map_sepcl.
15590 (getScheduleMap): Same.
15591 (apply_schedule_map_to_scop): Remove sepcl.
15592 (optimize_isl): Same.
15593 * graphite-poly.c (apply_poly_transforms): Remove check for
15594 flag_loop_unroll_jam.
15595 (new_poly_bb): Remove map_sepclass.
15596 * graphite-poly.h (struct poly_bb): Same.
15597 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15598 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15599 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15600 * toplev.c (process_options): Remove flag_loop_unroll_jam.
15601
15602 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
15603
15604 PR target/67317
15605 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15606 (addqi3_cc): Ditto.
15607 (UNSPEC_ADD_CARRY): Remove.
15608 (addqi3_cconly_overflow): New expander.
15609 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15610 Adjust for changed add<mode>3_carry.
15611 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15612 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15613 (<plusminus_insn><mode>3_carry): Remove expander.
15614 (*<plusminus_insn><mode>3_carry): Split insn pattern to
15615 add<mode>3_carry and sub<mode>3_carry.
15616 (plusminus_carry_mnemonic): Remove code attribute.
15617 (add<mode>3_carry): Canonicalize insn pattern.
15618 (*addsi3_carry_zext): Ditto.
15619 (sub<mode>3_carry): Ditto.
15620 (*subsi3_carry_zext): Ditto.
15621 (adcx<mode>3): Remove insn pattern.
15622 (addcarry<mode>): New insn pattern.
15623 (subborrow<mode>): Ditto.
15624 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15625 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15626 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15627 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15628 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15629 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15630 Rewrite expander to not clobber carry flag chains.
15631
15632 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
15633
15634 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15635 instead of a rotate.
15636
15637 2015-08-27 Marek Polacek <polacek@redhat.com>
15638
15639 PR middle-end/67005
15640 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15641 an entry into an irreducible region.
15642
15643 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15644
15645 * configure: Regenerate.
15646
15647 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15648
15649 PR tree-optimization/67283
15650 * tree-sra.c (type_consists_of_records_p): Rename to...
15651 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15652
15653 (completely_scalarize_record): Rename to...
15654 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15655 (scalarize_elem): New.
15656
15657 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15658
15659 * tree-sra.c (completely_scalarize_var): Rename to...
15660 (create_total_scalarization_access): ... Here. Drop call to
15661 completely_scalarize_record.
15662
15663 (analyze_all_variable_accesses): Replace completely_scalarize_var
15664 with create_total_scalarization_access and completely_scalarize_record.
15665
15666 2015-08-27 Alan Modra <amodra@gmail.com>
15667
15668 PR target/67356
15669 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
15670 for operand 1.
15671
15672 2015-08-27 Richard Biener <rguenther@suse.de>
15673
15674 * passes.c (rest_of_decl_compilation): Guard early_global_decl
15675 call with !seen_error ().
15676 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
15677 early debug generation and finish...
15678 (symbol_table::compile): ... here to put it after a !seen_error ()
15679 guard.
15680
15681 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15682
15683 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
15684 Solaris 12+.
15685
15686 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15687 Andre Vieira <andre.simoesdiasvieira@arm.com>
15688
15689 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
15690 (*cb<optab><mode>1): Likewise.
15691 (*tb<optab><mode>1): Likewise.
15692 (*cb<optab><mode>1): Likewise.
15693 * config/aarch64/iterators.md (inv_cb): New code attribute.
15694 (inv_tb): Likewise.
15695 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15696 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15697
15698 2015-08-27 Richard Biener <rguenther@suse.de>
15699
15700 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15701
15702 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15703
15704 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15705 trap to fix ICE.
15706
15707 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15708
15709 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15710 Add declaration.
15711
15712 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15713 comment.
15714 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15715 floating point in VSX registers.
15716 (rs6000_output_move_128bit): Always print out the set insn if we
15717 can't generate an appropriate 128-bit move.
15718 (rs6000_generate_compare): Add support for IEEE 128-bit floating
15719 point in VSX registers comparisons.
15720 (rs6000_expand_float128_convert): Likewise.
15721
15722 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15723 predicate for only GPR hard registers.
15724
15725 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15726 modes to iterators. Add new iterators for moving 128-bit values in
15727 scalar FPR registers and VSX registers.
15728 (FMOVE128): Likewise.
15729 (FMOVE128_FPR): Likewise.
15730 (FMOVE128_GPR): Likewise.
15731 (FMOVE128_VSX): Likewise.
15732 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15733 in VSX registers.
15734 (IFKF): Likewise.
15735 (IBM128): Likewise.
15736 (TFIFKF): Likewise.
15737 (RELOAD): Add IEEE 128-bit floating point modes.
15738 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15739 floating point in VSX registers modes.
15740 (signbit<mode>2, IBM128 iterator): Likewise.
15741 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15742 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15743 (negtf2): Likewise.
15744 (neg<mode>2, TFIFKF iterator): Likewise.
15745 (negtf2_internal): Likewise.
15746 (abstf2): Likewise.
15747 (abs<mode>2, TFIFKF iterator): Likewise.
15748 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15749 VSX insn support for negate, absolute value, and negative absolute
15750 value.
15751 (ieee_128bit_vsx_neg<mode>2): Likewise.
15752 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15753 (ieee_128bit_vsx_abs<mode>2): Likewise.
15754 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15755 (ieee_128bit_vsx_nabs<mode>2): Likewise.
15756 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15757 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15758 floating point in VSX registers.
15759 (unpack<mode>_dm): Likewise.
15760 (unpack<mode>_nodm): Likewise.
15761 (pack<mode>): Likewise.
15762 (unpackv1ti): Likewise.
15763 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15764 (packv1ti): Likewise.
15765 (pack<mode>, FMOVE128_VSX iterator): Likewise.
15766 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15767 registers.
15768 (extenddftf2_internal): Likewise.
15769 (trunctfdf2): Likewise.
15770 (trunctfdf2_internal2): Likewise.
15771 (fix_trunc_helper): Likewise.
15772 (fix_trunctfdi2"): Likewise.
15773 (floatditf2): Likewise.
15774 (floatuns<mode>tf2): Likewise.
15775 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15776 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15777 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15778 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15779 (float<SDI:mode><IFKF:mode>2): Likewise.
15780 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15781
15782 2015-08-26 Renlin Li <renlin.li@arm.com>
15783
15784 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15785
15786 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15787 Jiong Wang <jiong.wang@arm.com>
15788
15789 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15790 (tlsie_tiny_<mode>): New define_insn.
15791 (tlsie_tiny_sidi): Likewise.
15792 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15793 SYMBOL_TINY_TLSIE.
15794 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15795 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15796 SYMBOL_TINY_TLSIE.
15797 (aarch64_expand_mov_immediate): Likewise.
15798 (aarch64_print_operand): Likewise.
15799 (arch64_classify_tls_symbol): Likewise.
15800
15801 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15802
15803 * config/arm/arm-arches.def: Replace single value flags with
15804 an initializer built from ARM_FSET_MAKE_CPU1.
15805 * config/arm/arm-cores.def: Likewise.
15806 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15807 derivation from the ARM_CORE macro definition, use the given value
15808 instead.
15809 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15810 ARM_ARCH macro definition, use the given value instead.
15811
15812 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15813
15814 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15815 feature set.
15816 (struct builtin_description): Replace field mask with field
15817 features.
15818 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15819 (IWMMXT2_BUILTIN): Likewise.
15820 (IWMMXT2_BUILTIN2): Likewise.
15821 (FP_BUILTIN): Likewise.
15822 (CRC32_BUILTIN): Likewise.
15823 (CRYPTO_BUILTIN): Likewise.
15824 (iwmmx_mbuiltin): Likewise.
15825 (iwmmx2_mbuiltin): Likewise.
15826 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15827 struct builtin_description.
15828
15829 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15830
15831 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15832 (struct builtin_description): Change type of mask to unsigned
15833 long.
15834 * config/arm/arm-protos.h (insn_flags): Declare as type
15835 arm_feature_set.
15836 (tune_flags): Likewise.
15837 * config/arm/arm.c (feature_count): New.
15838 (insn_flags): Define as type arm_feature_set.
15839 (tune_flags): Likewise.
15840 (struct processors): Define field flags as type arm_feature_set.
15841 (all_cores): Update for change to struct processors.
15842 (all_architectures): Likewise.
15843 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15844 macros.
15845 (arm_option_override_internal): Likewise.
15846 (arm_option_override): Likewise.
15847
15848 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15849 Jiong Wang <jiong.wang@arm.com>
15850
15851 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15852 tls size for tiny, small, large memory model.
15853 (aarch64_load_symref_appropriately): Support new symbol types.
15854 (aarch64_expand_mov_immediate): Likewise.
15855 (aarch64_print_operand): Likewise.
15856 (aarch64_classify_tls_symbol): Likewise.
15857 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15858 (aarch64_symbol_type): Likewise.
15859 * config/aarch64/aarch64.md (tlsle): Deleted.
15860 (tlsle12_<mode>): New define_insn.
15861 (tlsle24_<mode>): Likewise.
15862 (tlsle32_<mode>): Likewise.
15863 (tlsle48_<mode>): Likewise.
15864 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15865 "aarch64_tlsle32".
15866
15867 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15868
15869 * config/arm/arm-protos.h (FL_NONE): New.
15870 (FL_ANY): New.
15871 (arm_feature_set): New.
15872 (ARM_FSET_MAKE): New.
15873 (ARM_FSET_MAKE_CPU1): New.
15874 (ARM_FSET_MAKE_CPU2): New.
15875 (ARM_FSET_CPU1): New.
15876 (ARM_FSET_CPU2): New.
15877 (ARM_FSET_EMPTY): New.
15878 (ARM_FSET_ANY): New.
15879 (ARM_FSET_HAS_CPU1): New.
15880 (ARM_FSET_HAS_CPU2): New.
15881 (ARM_FSET_HAS_CPU): New.
15882 (ARM_FSET_ADD_CPU1): New.
15883 (ARM_FSET_ADD_CPU2): New.
15884 (ARM_FSET_DEL_CPU1): New.
15885 (ARM_FSET_DEL_CPU2): New.
15886 (ARM_FSET_UNION): New.
15887 (ARM_FSET_INTER): New.
15888 (ARM_FSET_XOR): New.
15889 (ARM_FSET_EXCLUDE): New.
15890 (AFM_FSET_IS_EMPTY): New.
15891 (ARM_FSET_CPU_SUBSET): New.
15892
15893 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15894
15895 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15896 SYMBOL_TLSLE to SYMBOL_TLSLE24.
15897 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15898 Likewise.
15899 (aarch64_expand_mov_immediate): Likewise.
15900 (aarch64_print_operand): Likewise.
15901 (aarch64_classify_symbol): Likewise.
15902
15903 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15904
15905 * config/aarch64/aarch64.opt (mtls-size): New entry.
15906 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15907 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15908 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15909
15910 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15911
15912 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15913 ARM_CORE entry. Fix some white-space.
15914 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15915 ARM_CORE definition.
15916
15917 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15918
15919 * fold-const.c (fold_binary_loc) : Move Optimize
15920 root(x)*root(y) as root(x*y) to match.pd.
15921 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15922 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15923 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15924 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15925 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15926 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15927 (mult (exps:s @0) (exps:s @1)) : New simplifier.
15928 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15929 (rdiv @0 (exps:s @1)) : New simplifier.
15930
15931 2015-08-25 Joseph Myers <joseph@codesourcery.com>
15932
15933 * gcc.c (driver::finalize): Only assign to extra_specs if
15934 [EXTRA_SPECS].
15935
15936 2015-08-25 Marek Polacek <polacek@redhat.com>
15937
15938 PR middle-end/67330
15939 * varasm.c (declare_weak): Return after giving an error.
15940
15941 2015-08-25 David Malcolm <dmalcolm@redhat.com>
15942
15943 * gcc-main.c (main): Add params to driver ctor.
15944 * gcc.c (class env_manager): New.
15945 (env): New global.
15946 (env_manager::init): New.
15947 (env_manager::get): New.
15948 (env_manager::xput): New.
15949 (env_manager::restore): New.
15950 Poison getenv and putenv.
15951 (DEFAULT_TARGET_SYSTEM_ROOT): New.
15952 (target_system_root): Update initialization to use
15953 DEFAULT_TARGET_SYSTEM_ROOT.
15954 (struct spec_list): Add field "default_ptr".
15955 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15956 (init_spec): Likewise.
15957 (set_spec): Clear field "default_ptr".
15958 (read_specs): Free "spec" and "buffer".
15959 (xputenv): Reimplement in terms of env_manager.
15960 (process_command): Replace ::getenv calls with calls to the
15961 env_manager singleton.
15962 (process_brace_body): Free string in three places.
15963 (driver::driver): New.
15964 (driver::~driver): New.
15965 (used_arg): Convert from a function to...
15966 (class used_arg_t): ...this class, and...
15967 (used_arg): ...this new global instance.
15968 (used_arg_t::finalize): New function.
15969 (getenv_spec_function): Add "const" to local "value". Replace
15970 ::getenv call with call to the env_manager singleton.
15971 (path_prefix_reset): New function.
15972 (driver::finalize): New function.
15973 * gcc.h (driver::driver): New.
15974 (driver::~driver): New.
15975 (driver::finalize): New.
15976
15977 2015-08-25 Nathan Sidwell <nathan@acm.org>
15978
15979 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15980 target doesn't have one.
15981
15982 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15983
15984 PR target/67346
15985 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15986
15987 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15988
15989 PR target/67344
15990 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15991 a define_insn, remove second alternative.
15992
15993 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
15994 Joseph Myers <joseph@codesourcery.com>
15995
15996 * gcc.c (struct switchstr): Expand comment.
15997
15998 2015-08-25 Nathan Sidwell <nathan@acm.org>
15999
16000 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16001 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16002
16003 2015-08-25 Richard Biener <rguenther@suse.de>
16004
16005 PR middle-end/67306
16006 * genmatch.c (expr::gen_transform): Verify the result of
16007 builtin_decl_implicit.
16008 (dt_simplify::gen_1): Likewise.
16009
16010 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
16011
16012 * config/arm/constraints.md: Also list Cs and US ARM-specific
16013 constraints as used.
16014
16015 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
16016
16017 PR target/66609
16018 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16019 UNSPEC_PCREL.
16020 (nonpic_symbol_mentioned_p): Likewise.
16021 (sh_delegitimize_address): Likewise.
16022 (sh_function_ok_for_sibcall): Take into account weak symbols.
16023 (sh_expand_sym_label2reg): New.
16024 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16025 * config/sh/sh.md (UNSPEC_PCREL): New enum.
16026 (call_pcrel): Use sh_expand_sym_label2reg.
16027 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16028 (symPCREL_label2reg) New expand.
16029
16030 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16031
16032 * graphite-poly.c: Change type of region from void* to sese.
16033 * graphite-poly.h (struct scop): Changing the type of scop::region
16034 from void* to sese. Change accessor macro accordingly.
16035 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16036
16037 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16038
16039 * graphite-scop-detection.c (stmt_simple_for_scop_p):
16040 Constrain only on INTEGER_TYPE.
16041
16042 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16043
16044 PR target/67211
16045 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16046 -mefficient-unaligned-vsx on ISA 2.7.
16047
16048 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16049 option to a masked option.
16050
16051 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16052 logic for -mefficient-unaligned-vsx so that it is set via an arch
16053 ISA option, instead of being set if -mtune=power8 is set. Move
16054 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16055 near other default option handling.
16056
16057 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16058
16059 * genflags.c (gen_macro): Delete.
16060 (gen_proto): Don't create GEN.*CALL.* macros.
16061 * gensupport.h (get_file_location): Declare.
16062 * gensupport.c (rtx_locs): New variable.
16063 (read_md_rtx): Record rtx locations.
16064 (get_file_location): New function.
16065 * target-insns.def (call, call_pop, call_value, call_value_pop)
16066 (sibcall, sibcall_value): New patterns.
16067 * gentarget-def.c (parse_argument): New function.
16068 (def_target_insn): Use it. Handle optional operands. Raise an
16069 error if an .md pattern has the wrong number of operands for the
16070 pattern name. Remove the names of unused operands from the prototype.
16071 * builtins.c (expand_builtin_apply): Use targetm functions
16072 instead of HAVE_call_value and GEN_CALL_VALUE.
16073 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16074 and sibcall_value_pop.
16075 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16076 of GEN_CALL.
16077 * config/alpha/alpha.md (untyped_call): Likewise.
16078 * config/iq2000/iq2000.md (untyped_call): Likewise.
16079 * config/m68k/m68k.md (untyped_call): Likewise.
16080 * config/mips/mips.md (untyped_call): Likewise.
16081 * config/pa/pa.md (untyped_call): Likewise.
16082 * config/rs6000/rs6000.md (untyped_call): Likewise.
16083 * config/sparc/sparc.md (untyped_call): Likewise.
16084 * config/tilegx/tilegx.md (untyped_call): Likewise.
16085 * config/tilepro/tilepro.md (untyped_call): Likewise.
16086 * config/visium/visium.md (untyped_call): Likewise.
16087 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16088 gen_call_value instead of GEN_CALL_VALUE.
16089 * config/arm/arm.md (untyped_call): Likewise.
16090 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16091 GEN_CALL.
16092
16093 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16094
16095 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16096 (have_cbranchcc4): New variable.
16097 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16098 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16099 (if_convert): Initialize have_cbranchcc4.
16100
16101 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16102
16103 * builtins.c (expand_cmpstrn): Rename to...
16104 (expand_cmpstrn_or_cmpmem): ...this.
16105 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16106 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16107 Remove mode argument.
16108 (expand_builtin): Update accordingly.
16109
16110 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16111
16112 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16113 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16114 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16115 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16116 Add predicates for operands 0 and 3.
16117 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16118 operand.
16119 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16120 immediate_operand to nonmemory_operand.
16121
16122 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16123
16124 * df-scan.c (df_insn_info_init_fields): New function, split out
16125 from...
16126 (df_insn_create_insn_record): ...here.
16127 (df_insn_info_free_fields): New function, split out from...
16128 (df_insn_info_delete): ...here.
16129 (df_insn_rescan): Use the new functions instead of freeing and
16130 reallocating the df_insn_info.
16131
16132 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16133
16134 * doc/install.texi (Binaries): Remove links no longer valid.
16135
16136 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16137
16138 * config/nvptx/mkoffload.c (process): Replace
16139 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16140
16141 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
16142
16143 PR target/67329
16144 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16145
16146 2015-08-24 Renlin Li <renlin.li@arm.com>
16147
16148 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16149 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16150 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16151 * config/arm/constraints.md ("j"): Add check for high code.
16152
16153 2015-08-24 Tom de Vries <tom@codesourcery.com>
16154
16155 PR tree-optimization/65468
16156 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16157 chunk_size is one.
16158
16159 2015-08-24 Nathan Sidwell <nathan@acm.org>
16160
16161 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16162 change to nvptx_type_from_mode call. Use arg_promotion for both
16163 split and non-split args.
16164
16165 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16166
16167 * target-insns.def (movstr): New pattern.
16168 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16169 (expand_movstr): Use targetm rather than HAVE_movstr/
16170 CODE_FOR_movstr.
16171
16172 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16173
16174 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16175 cast syntax.
16176
16177 2015-08-24 Andrew Pinski <apinski@cavium.com>
16178
16179 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16180 AARCH64_EXTRA_TUNING_OPTION.
16181 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16182 New enum.
16183 (aarch64_extra_tuning_flags): Base the shifted value on the index
16184 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16185 * config/aarch64/aarch64.c: Remove the last argument to
16186 AARCH64_EXTRA_TUNING_OPTION.
16187
16188 2015-08-23 Nathan Sidwell <nathan@acm.org>
16189
16190 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16191 decls.
16192 (nvptx_declare_function_name): Insert formatting tabs for
16193 consistency.
16194
16195 2015-08-23 Tom de Vries <tom@codesourcery.com>
16196
16197 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16198 parm_decl, rather than generating a dummy default def in cfun.
16199 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
16200 ssa_name from cfun and child_fn do not share a stmt as def stmt.
16201 (move_stmt_op): Handle PARM_DECl.
16202 (gather_ssa_name_hash_map_from): New function.
16203 (move_sese_region_to_fn): Add default defs for function params, and add
16204 them to vars_map. Release copied ssa names.
16205 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16206
16207 2015-08-23 Tom de Vries <tom@codesourcery.com>
16208
16209 * doc/sourcebuild.texi: Rename vect_no_int_max with
16210 vect_no_int_min_max. Update description.
16211
16212 2015-08-22 Andrew Pinski <apinski@cavium.com>
16213
16214 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16215 * config/aarch64/aarch64-protos.h
16216 (aarch64_fusion_pairs_index): New enum.
16217 (aarch64_fusion_pairs): Base the shifted value on the index instead
16218 Rewrite AARCH64_FUSE_ALL to be based on the end index.
16219 of the argument to AARCH64_FUSION_PAIR.
16220 * config/aarch64/aarch64.c: Remove the last argument to
16221 AARCH64_FUSION_PAIR.
16222
16223 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
16224
16225 * dominance.c (new_zero_array): Define.
16226 (dom_info): Redefine as class with proper encapsulation.
16227 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16228 Add new members.
16229 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
16230 allocations/deallocations. Pass function as parameter (instead of
16231 using cfun).
16232 (dom_info::get_idom): Define accessor method.
16233 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16234 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
16235 (calculate_dominance_info): Adjust to use dom_info class.
16236 (verify_dominators): Likewise.
16237
16238 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
16239
16240 * print-rtl.c (print_rtx): Check the correct range for
16241 flag_dump_unnumbered_links to behave as documented.
16242
16243 PR rtl-optimization/67227
16244 PR rtl-optimization/64164
16245 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16246 (nonoverlapping_memrefs_p): Test offsets and sizes when given
16247 identical gimple_reg exprs.
16248
16249 2015-08-21 Nathan Sidwell <nathan@acm.org>
16250
16251 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16252 expansion.
16253 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16254 crtl->stack_alignment_needed to determine alignment.
16255 (nvptx_get_drap_rtx): New.
16256 (TARGET_GET_DRAP_RTX): Override.
16257 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16258
16259 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16260
16261 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16262
16263 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16264
16265 * configure.ac: Remove uwin* cases.
16266 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16267 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16268 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16269 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16270 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16271 i[34567]86-*-uwin*, powerpc-*-beos*.
16272
16273 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
16274
16275 * gencodes.c (gencodes): Print the comma for the preceding
16276 enum value rather than the current one. Use aliased enum values
16277 rather than #defines for compiled-out patterns.
16278 (main): Update accordingly. Replace LAST_INSN_CODE with
16279 NUM_INSN_CODES.
16280 * lra.c (insn_code_data): Update accordingly.
16281 (finish_insn_code_data_once, get_static_insn_data): Likewise.
16282 * recog.h (target_recog): Likewise.
16283 (preprocess_insn_constraints): Change parameter to unsigned int.
16284 * recog.c (preprocess_insn_constraints): Likewise.
16285 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16286 * tree-vect-stmts.c (vectorizable_operation): Simplify.
16287
16288 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16289
16290 PR rtl-optimization/61657
16291 * loop-iv.c (iv_number_of_iterations): Declare up and down as
16292 unsigned. Remove superflous uint64_t cast.
16293
16294 2014-08-21 Felix Yang <felix.yang@huawei.com>
16295 Jiji Jiang <jiangjiji@huawei.com>
16296
16297 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16298 argument and get builtin function code directly from CALL.
16299 (gimple_stringop_fixed_value): Modified accordingly.
16300 (gimple_stringops_transform, gimple_stringops_values_to_profile):
16301 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16302
16303 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
16304
16305 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16306
16307 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16308
16309 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16310 to match.pd.
16311 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16312 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16313 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16314 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16315 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16316 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16317 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16318 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16319 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16320 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16321
16322 * match.pd (SIN ) : New Operator.
16323 (TAN) : New Operator.
16324 (mult (SQRT@1 @0) @1) : New simplifier.
16325 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16326 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16327 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16328 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16329 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16330 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16331 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16332 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16333 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16334 (rdiv @0 (POW:s @1 @2)) : New simplifier.
16335
16336 2015-08-21 Bin Cheng <bin.cheng@arm.com>
16337
16338 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16339 loop if EXPR is simplified to const value.
16340
16341 2015-08-21 Yury Gribov <y.gribov@samsung.com>
16342
16343 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16344 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16345
16346 2015-08-21 Richard Biener <rguenther@suse.de>
16347
16348 PR middle-end/67285
16349 * gimple-fold.c (replace_stmt_with_simplification): Assert
16350 seq is empty when replacing a call with itself but different
16351 arguments.
16352 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16353 a call require that it is const.
16354
16355 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16356
16357 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16358 * builtins.c (get_object_alignment_2): Adjust.
16359 * varasm.c (align_variable): Likewise.
16360 (get_variable_align): Likewise.
16361 (build_constant_desc): Likewise.
16362 (force_const_mem): Likewise.
16363 * doc/tm.texi.in: Likewise.
16364 * doc/tm.texi: Regenerate.
16365
16366 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16367
16368 * genconfig.c (main): Always define HAVE_cc0.
16369 * recog.c (rest_of_handle_peephole2): Adjust.
16370
16371 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16372
16373 * reorg.c (relax_delay_slots): Don't use #if to check value of
16374 HAVE_cc0.
16375
16376 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16377
16378 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16379 * targhooks.c (default_have_conditional_execution): Adjust.
16380
16381 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16382
16383 * rtl.h (rtvec_all_equal_p): Declare.
16384 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16385 * rtl.c (rtvec_all_equal_p): New function.
16386 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16387 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16388 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16389 * config/arm/arm.c (neon_vdup_constant): Likewise.
16390 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16391 * config/tilegx/constraints.md (W, Y): Likewise.
16392 * config/tilepro/constraints.md (W, Y): Likewise.
16393 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16394 (classify_immediate): Use unwrap_const_vec_duplicate.
16395 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16396 (reg_or_v2s8bit_operand): Likewise.
16397 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16398 (reg_or_v4s8bit_operand): Likewise.
16399
16400 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16401
16402 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16403 (vec_shasigma_be): New #define.
16404 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16405 (VPMSUMH): Likewise.
16406 (VPMSUMW): Likewise.
16407 (VPMSUMD): Likewise.
16408 (VPMSUM): New BU_P8V_OVERLOAD_2.
16409 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16410 entries for VEC_MADD and VEC_VPMSUM.
16411
16412 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
16413
16414 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16415 Multiply argument avr_n_flash by 64 to match unit of "KiB".
16416 (avr_pgm_check_var_decl): Same.
16417
16418 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
16419
16420 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16421 initialization of HFmode scalar type (float16_t) to...
16422 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16423 code.
16424
16425 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16426
16427 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16428 having an -mfp16-format.
16429
16430 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16431
16432 * config/i386/predicates.md (vector_all_ones_operand): Use
16433 CONSTM1_RTX to simplify definition.
16434
16435 2015-08-20 Richard Biener <rguenther@suse.de>
16436
16437 * toplev.c (compile_file): Remove loop calling late_global_decl
16438 on all symbols.
16439 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16440 on decls we assembled.
16441
16442 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
16443
16444 * common/config/aarch64/aarch64-common.c
16445 (AARCH64_CPU_NAME_LENGTH): Delete.
16446 (aarch64_option_extension): New.
16447 (all_extensions): Likewise.
16448 (processor_name_to_arch): Likewise.
16449 (arch_to_arch_name): Likewise.
16450 (all_cores): New.
16451 (all_architectures): Likewise.
16452 (aarch64_get_extension_string_for_isa_flags): Likewise.
16453 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16454 architecture names.
16455 * config/aarch64/aarch64-protos.h
16456 (aarch64_get_extension_string_for_isa_flags): New.
16457 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16458 (aarch64_option_print): Get the string to print from
16459 aarch64_get_extension_string_for_isa_flags.
16460 (aarch64_declare_function_name): Likewise.
16461 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16462 (MCPU_TO_MARCH_SPEC): This.
16463 (ASM_CPU_SPEC): Use it.
16464 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16465 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16466 (EXTRA_SPEC_FUNCTIONS): Use it.
16467
16468 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
16469
16470 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16471 expansion when !ISA_HAS_LWL_LWR.
16472 (mips_block_move_straight): Update the size of elements copied to
16473 account for alignment when !ISA_HAS_LWL_LWR.
16474 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16475
16476 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16477
16478 * expr.c (expand_expr_real_2): Check gimple statement during
16479 LSHIFT_EXPR expand.
16480
16481 2015-08-19 Magnus Granberg <zorry@gentoo.org>
16482
16483 * common.opt (fstack-protector): Initialize to -1.
16484 (fstack-protector-all): Likewise.
16485 (fstack-protector-strong): Likewise.
16486 (fstack-protector-explicit): Likewise.
16487 * configure.ac: Add --enable-default-ssp.
16488 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
16489 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16490 -1.
16491 * doc/install.texi: Document --enable-default-ssp.
16492 * config.in: Regenerated.
16493 * configure: Likewise.
16494
16495 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
16496
16497 PR rtl-optimization/64164
16498 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16499 (parm_in_stack_slot_p): ... this. Disregard mode, what
16500 matters is whether the parm will live in a pseudo or a stack
16501 slot.
16502 (expand_one_ssa_partition): Deal with params without a default
16503 def. Disregard mode.
16504 * cfgexpand.h: Renamed function declaration.
16505 * tree-ssa-coalesce.c: Adjust.
16506 * function.c (split_complex_args): Allocate stack slot for
16507 unassigned parms before splitting.
16508 (parm_in_unassigned_mem_p): New. Use it instead of
16509 parm_maybe_byref_p throughout this file.
16510 (assign_parm_setup_block): Use it. Accept pseudos in the
16511 expand-assigned rtl.
16512 (assign_parm_setup_reg): Drop BLKmode requirement.
16513 (assign_parm_setup_stack): Allocate and fill in the address of
16514 unassigned MEM parms.
16515
16516 2015-08-19 David Sherwood <david.sherwood@arm.com>
16517
16518 * genmodes.c (emit_mode_unit_size_inline): New function.
16519 (emit_mode_unit_precision_inline): New function.
16520 (emit_insn_modes_h): Emit new #define. Emit new functions.
16521 (emit_mode_unit_size): New function.
16522 (emit_mode_unit_precision): New function.
16523 (emit_mode_adjustments): Add mode_unit_size adjustments.
16524 (emit_insn_modes_c): Emit new arrays.
16525 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16526 use new inline methods.
16527
16528 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16529
16530 * config/aarch64/aarch64.c (bit_count): Delete prototype
16531 and definition.
16532 (aarch64_print_operand): Use popcount_hwi instead of the above.
16533
16534 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16535
16536 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16537 comment.
16538
16539 2015-08-19 Marek Polacek <polacek@redhat.com>
16540
16541 PR middle-end/67133
16542 * gimple-ssa-isolate-paths.c
16543 (insert_trap_and_remove_trailing_statements): Rename to ...
16544 (insert_trap): ... this. Don't remove trailing statements; split
16545 block instead.
16546 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16547
16548 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
16549
16550 PR other/67042
16551 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16552 conditionalize the whole on __GNUC__. Add fallback code
16553 depending neither on undefined nor implementation-defined behaviour.
16554
16555 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16556
16557 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16558 whitespaces with tab.
16559
16560 2015-08-19 Florian Weimer <fweimer@redhat.com>
16561
16562 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16563 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16564 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16565 Move Name_Ids instantiation to the Prj.Proc package, to avoid
16566 trampolines.
16567
16568 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16569
16570 * config/arm/arm.c (bounds_check): Use %wd print format
16571 for HOST_WIDE_INT arguments.
16572
16573 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
16574
16575 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16576 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16577 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16578 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16579 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16580 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16581 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16582 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16583 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16584 typedefs.
16585
16586 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
16587
16588 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16589 function.c, graphite-scop-detection.c, haifa-sched.c,
16590 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16591 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16592 varasm.c: Remove typedefs of structs.
16593
16594 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16595
16596 * config/rs6000/altivec.h (vec_adde): New define.
16597 (vec_addec): Likewise.
16598 (vec_double): Likewise.
16599 (vec_bperm): Likewise.
16600 (vec_gb): Likewise.
16601 * config/rs6000/rs6000-builtin.def (ADDE): New
16602 BU_ALTIVEC_OVERLOAD_3.
16603 (ADDEC): Likewise.
16604 (DOUBLE): New BU_VSX_OVERLOAD_1.
16605 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16606 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16607 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16608 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16609 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16610 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16611 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16612 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16613 and P8V_BUILTIN_VEC_VBPERMQ.
16614
16615 2015-08-18 Jason Merrill <jason@redhat.com>
16616
16617 * print-tree.c (print_node): Handle TREE_BINFO.
16618
16619 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16620
16621 PR middle-end/36757
16622 * builtins.c (expand_builtin_signbit): Add asserts to make sure
16623 we can expand BUILT_IN_SIGNBIT inline.
16624 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16625 * doc/extend.texi: Document the type-generic __builtin_signbit.
16626
16627 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
16628
16629 PR rtl-optimization/67218
16630 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16631 (simplify_unary_operation_1): Use it.
16632
16633 2015-08-18 Marek Polacek <polacek@redhat.com>
16634
16635 PR middle-end/67222
16636 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16637 if the call isn't valid.
16638 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16639 gimple_call_builtin_p.
16640 (call_may_clobber_ref_p_1): Likewise.
16641 (stmt_kills_ref_p): Likewise.
16642
16643 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
16644
16645 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16646 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16647 (mips_hard_regno_scratch_ok): Likewise.
16648 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16649 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16650
16651 2015-08-18 Bin Cheng <bin.cheng@arm.com>
16652
16653 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16654 (determine_value_range): Call refine_value_range_using_guard for
16655 each loop initial condition to improve value range.
16656
16657 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
16658
16659 * config/i386/i386.c: Remove include of fibheap.h.
16660
16661 2015-08-17 Richard Biener <rguenther@suse.de>
16662
16663 PR tree-optimization/67221
16664 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
16665 (sccvn_dom_walker::before_dom_children): Mark backedges of
16666 non-executable blocks as not executable.
16667
16668 2015-08-17 David Sherwood <david.sherwood@arm.com>
16669
16670 * config/arm/arm.c (neon_element_bits): Replace call to
16671 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
16672 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
16673 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
16674 (neon_vdup_lane<mode>): Likewise.
16675 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
16676 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
16677 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
16678 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
16679 * config/spu/spu.c (arith_immediate_p): Likewise.
16680 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16681 * expr.c (expand_expr_real_2): Likewise.
16682 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
16683 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16684 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
16685 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
16686 New variable.
16687 * fold-const.c (fold_binary_loc): Replace call to
16688 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
16689 GET_MODE_UNIT_PRECISION (m).
16690
16691 2015-08-17 Mike Stump <mikestump@comcast.net>
16692
16693 * config/arm/arm.c (arm_block_move_unaligned_straight):
16694 Emit normal move instead of unaligned load when source or destination
16695 are appropriately aligned.
16696
16697 2015-08-17 Richard Biener <rguenther@suse.de>
16698 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16699
16700 PR middle-end/16107
16701 * match.pd (div (coss (op @0) : New simplifier.
16702
16703 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
16704
16705 PR rtl-optimization/64164
16706 PR bootstrap/66978
16707 PR middle-end/66983
16708 PR rtl-optimization/67000
16709 PR middle-end/67034
16710 PR middle-end/67035
16711 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16712 * tree-ssa-copyrename.c: Removed.
16713 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16714 -ftree-coalesce-vars.
16715 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16716 * common.opt (ftree-copyrename): Ignore.
16717 (ftree-coalesce-inlined-vars): Likewise.
16718 * doc/invoke.texi: Remove the ignored options above.
16719 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16720 * tree-ssa-coalesce.h: ... here.
16721 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16722 headers required by it.
16723 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16724 across variables when flag_tree_coalesce_vars. Check register
16725 use and promoted modes to allow coalescing. Do not coalesce
16726 maybe-byref parms with SSA_NAMEs of other variables, or
16727 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
16728 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16729 with its member functions to tree-ssa-coalesce.c.
16730 (var_map_base_init): Likewise. Renamed to
16731 compute_samebase_partition_bases.
16732 (partition_view_normal): Drop want_bases parameter.
16733 (partition_view_bitmap): Likewise.
16734 * tree-ssa-live.h: Adjust declarations.
16735 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16736 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16737 default defs at the entry point.
16738 (dump_part_var_map): New.
16739 (compute_optimized_partition_bases): New, called by...
16740 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16741 of compute_samebase_partition_bases. Adjust.
16742 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16743 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16744 (ssa_default_def_partition): New.
16745 (get_rtl_for_parm_ssa_default_def): New.
16746 (align_local_variable, add_stack_var): Support anonymous SSA
16747 names.
16748 (defer_stack_allocation): Likewise. Declare earlier.
16749 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16750 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16751 Do no record deferred-allocation marker in
16752 SA.partition_to_pseudo.
16753 (expand_stack_vars): Adjust check for the marker in it.
16754 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16755 redundant MEM attr setting.
16756 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16757 from...
16758 (expand_one_stack_var): ... this. New wrapper to check and
16759 skip already expanded SSA partitions.
16760 (record_alignment_for_reg_var): New, factored out of...
16761 (expand_one_var): ... this.
16762 (expand_one_ssa_partition): New.
16763 (adjust_one_expanded_partition_var): New.
16764 (expand_one_register_var): Check and skip already expanded SSA
16765 partitions.
16766 (expand_used_vars): Don't create DECLs for anonymous SSA
16767 names. Expand all SSA partitions, then adjust all SSA names.
16768 (pass::execute): Replace the loops that set
16769 SA.partition_to_pseudo from partition leaders and cleared
16770 DECL_RTL for multi-location variables, and that which used to
16771 rename vars and set attrs, with one that clears DECL_RTL and
16772 checks that PARMs and RESULTs default_defs match DECL_RTL.
16773 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16774 * emit-rtl.c: Include stor-layout.h.
16775 (set_reg_attrs_for_parm): Handle NULL decl.
16776 (set_reg_attrs_for_decl_rtl): Take mode from expression if
16777 it's not a DECL.
16778 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16779 rather than its possibly-NULL DECL.
16780 * explow.c (promote_ssa_mode): New.
16781 * explow.h (promote_ssa_mode): Declare.
16782 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16783 (read_complex_part): Export.
16784 * expr.h (read_complex_part): Declare.
16785 * cfgexpand.h (parm_maybe_byref_p): Declare.
16786 * function.c: Include cfgexpand.h.
16787 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16788 (use_register_for_parm_decl): Wrapper for the above to
16789 special-case the result_ptr.
16790 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16791 (split_complex_args): Take assign_parm_data_all argument.
16792 Pass it to rtl_for_parm. Set up rtl and context for split
16793 args. Reset complex parm before fetching its default decl
16794 rtl.
16795 (assign_parms_unsplit_complex): Use the default-def complex
16796 parm rtl if it matches the components.
16797 (assign_parms_augmented_arg_list): Adjust.
16798 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16799 multiple locations. Recognize split complex args.
16800 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16801 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16802 (assign_parm_setup_block): Prefer SSA-assigned location, and
16803 fill in its address if the memory location of a maybe-byref
16804 parm was not assigned by cfgexpand.
16805 (assign_parm_setup_reg): Likewise. Adjust its mode as
16806 needed. Use entry_parm for equiv if stack_parm is NULL. Make
16807 sure passed_pointer parms don't need conversion. Copy address
16808 or value as needed.
16809 (assign_parm_setup_stack): Prefer SSA-assigned location.
16810 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16811 rtl before testing for pointer bounds. Special-case result_ptr.
16812 (expand_function_start): Maybe reset DECL_RTL of result.
16813 Prefer SSA-assigned location for result and static chain.
16814 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
16815 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
16816 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16817 anonymous SSA names. Use promote_ssa_mode.
16818 (get_temp_reg): Likewise.
16819 (remove_ssa_form): Adjust.
16820 * stor-layout.c (layout_decl): Don't set mem attributes of
16821 non-MEMs.
16822 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16823 and get its reg_usage for reg invalidation.
16824 (compute_bb_dataflow): Pass it insn.
16825 (emit_notes_in_bb): Likewise.
16826
16827 2015-08-14 Marek Polacek <polacek@redhat.com>
16828
16829 * tree-core.h (tree_base): Fix typo.
16830
16831 2015-08-14 Marek Polacek <polacek@redhat.com>
16832
16833 PR middle-end/67133
16834 * gimple.c (infer_nonnull_range_by_attribute): Check that the
16835 nonnull argument position is not outside function arguments.
16836
16837 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
16838
16839 PR target/67143
16840 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16841 'lconst_atomic' with 'const_atomic'.
16842 (atomic_fetch_<optab><mode>): Likewise.
16843 (atomic_<optab>_fetch<mode>): Likewise.
16844 * config/aarch64/iterators.md (lconst-atomic): Move below
16845 'const_atomic'.
16846 (const_atomic): New.
16847
16848 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
16849 Bernd Schmidt <bernds@codesourcery.com>
16850
16851 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16852 debug options.
16853 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16854 (DWARF2_DEBUGGING_INFO): Don't define.
16855 * debug.h (dwarf2_lineno_debug_hooks): Declare.
16856 * toplev.c (process_options): Add a case for it.
16857 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16858 (dwarf2out_init): Skip most initializations if
16859 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16860 case.
16861 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16862 DWARF2_LINENO_DEBUGGING_INFO.
16863 * opts.c (set_debug_level): Likewise.
16864
16865 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
16866
16867 * config/arm/types.md (is_neon_type): Add missing types.
16868
16869 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16870
16871 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16872 for skylake.
16873 * config/i386/i386.c (PTA_SKYLAKE): New macros.
16874 (processor_alias_table): Add skylake description.
16875 (enum processor_model): Add skylake processor.
16876 (arch_names_table): Add skylake record.
16877 * doc/invoke.texi: Add skylake item.
16878
16879 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
16880
16881 * ira-int.h: Include recog.h.
16882 * ira-build.c: Don't include recog.h.
16883 * ira-color.c: Likewise.
16884 * ira-conflicts.c: Likewise.
16885 * ira-costs.c: Likewise.
16886 * ira-emit.c: Likewise.
16887 * ira-lives.c: Likewise.
16888 * ira.c: Likewise.
16889 * sched-deps.c: Likewise.
16890 * sel-sched.c: Likewise.
16891 * target-globals.c: Likewise.
16892
16893 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
16894
16895 PR bootstrap/55035
16896 * reload1.c (elimination_costs_in_insn): Make it obvious to the
16897 compiler that the n_dups and n_operands loop bounds are invariant.
16898
16899 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16900
16901 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16902 expressions in A and B.
16903
16904 2015-08-13 Richard Biener <rguenther@suse.de>
16905
16906 * tree.c (nonnull_arg_p): Move from ...
16907 * tree-vrp.c (nonnull_arg_p): ... here.
16908 * tree.h (nonnull_arg_p): Declare.
16909 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16910 here, register ptr != 0 for nonnull_arg_p pointer arguments.
16911 Properly initialize static chain and by-reference result pointer.
16912 (run_scc_vn): Adjust.
16913
16914 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16915
16916 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16917 TUNE_I6400.
16918
16919 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16920
16921 * config/aarch64/aarch64-protos.h
16922 (aarch64_gen_atomic_cas): Declare.
16923 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16924 Choose appropriate instruction pattern for the target.
16925 (aarch64_gen_atomic_cas): New.
16926 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16927 (atomic_compare_and_swap<mode>_1): Rename to
16928 aarch64_compare_and_swap<mode>. Fix some indentation.
16929 (aarch64_compare_and_swap<mode>_lse): New.
16930 (aarch64_atomic_cas<mode>): New.
16931
16932 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16933
16934 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16935 (TARGET_LSE): New.
16936
16937 2015-08-13 Richard Biener <rguenther@suse.de>
16938
16939 PR tree-optimization/67191
16940 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16941 assert we value-numbered last stmts operand because it can validly
16942 trigger for unreachable code.
16943
16944 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16945
16946 PR rtl-optimization/67103
16947 * ifcvt.c (noce_try_store_flag_constants): Move
16948 x = (-(test != 0) & (b - a)) + a transformation to...
16949 (noce_try_cmove): ... Here. Try it if normal conditional
16950 move fails.
16951
16952 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16953
16954 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16955 pseudo-processors.
16956 * config/mips/mips.md (processor): Remove w32 and w64.
16957
16958 2015-08-13 Richard Biener <rguenther@suse.de>
16959
16960 PR tree-optimization/66502
16961 PR tree-optimization/67167
16962 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16963 backedge arguments.
16964 (vn_phi_lookup): Adjust.
16965 (vn_phi_insert): Likewise.
16966 (visit_phi): Prefer to value-number to another PHI node
16967 over value-numbering to a PHI argument.
16968 (init_scc_vn): Mark DFS back edges.
16969
16970 2015-08-13 Richard Biener <rguenther@suse.de>
16971
16972 * gimple.h (gcall::code_): New constant static member.
16973 (gcond::code_): Likewise.
16974 * gimple.c (gcall::code_): Define.
16975 (gcond::code_): Likewise.
16976 (is_a_helper <const gcond *>): Add.
16977 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16978 and forward to a new gcall overload with less checking and a
16979 cheaper way to access the operand.
16980 (gimple_call_lhs_ptr): Likewise.
16981 (gimple_call_set_lhs): Likewise.
16982 (gimple_call_internal_p): Likewise.
16983 (gimple_call_with_bounds_p): Likewise.
16984 (gimple_call_set_with_bounds): Likewise.
16985 (gimple_call_internal_fn): Likewise.
16986 (gimple_call_set_ctrl_altering): Likewise.
16987 (gimple_call_ctrl_altering_p): Likewise.
16988 (gimple_call_fntype): Likewise.
16989 (gimple_call_fn): Likewise.
16990 (gimple_call_fn_ptr): Likewise.
16991 (gimple_call_set_fndecl): Likewise.
16992 (gimple_call_fndecl): Likewise.
16993 (gimple_call_chain): Likewise.
16994 (gimple_call_num_args): Likewise.
16995 (gimple_call_arg): Likewise.
16996 (gimple_call_arg_ptr): Likewise.
16997 (gimple_call_set_arg): Likewise.
16998 (gimple_call_noreturn_p): Likewise.
16999 (gimple_cond_code): Likewise.
17000 (gimple_cond_lhs): Likewise.
17001 (gimple_cond_rhs): Likewise.
17002 (gimple_has_lhs): Reduce checking.
17003
17004 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17005
17006 PR middle-end/25529
17007 * match.pd (div (mult @0 @1) @1) : New simplifier.
17008
17009 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17010
17011 PR target/67071
17012 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17013 predicate to allow construction of vector constants using the
17014 VSLDOI vector shift instruction.
17015
17016 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17017 declaration.
17018
17019 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17020 the number of bytes to be shifted left and filled in with either
17021 all zero or all one bits.
17022 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17023 methods exist.
17024 (output_vec_const_move): On power8, generate XXLORC to generate
17025 a vector constant with all 1's. Do a split if we need to use a
17026 VSLDOI instruction.
17027
17028 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17029 properly test for the MSB.
17030
17031 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17032 vector constants that can be created with VSLDOI.
17033
17034 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17035
17036 revert:
17037 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17038 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17039 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17040 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17041 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17042 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17043 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17044 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17045 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17046
17047 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
17048
17049 * config/xtensa/constraints.md (define_constraint "Y"): New
17050 constraint.
17051 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17052 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17053 * config/xtensa/predicates.md (move_operand): Match constants
17054 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17055 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17056 immediate references to TLS data.
17057 (xtensa_emit_move_sequence): Don't force constants to memory in
17058 the presence of TARGET_AUTO_LITPOOLS.
17059 (print_operand): Add 'y' format, same as default, but capable of
17060 printing SF mode constants as well.
17061 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17062 (movsf_internal): Add movi pattern that loads literal.
17063 (movsf, movdf): Don't force constants to memory in the presence
17064 of TARGET_AUTO_LITPOOLS.
17065 (movdf_internal): Add 'Y' constraint.
17066 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17067 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17068
17069 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17070
17071 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17072 Update comment.
17073 * config/arm/arm.c (ARM_FPU): Update macro.
17074 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17075 (TARGET_FP16): Likewise.
17076 (TARGET_CRYPTO): Likewise.
17077 (TARGET_NEON): Likewise.
17078 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17079 field features.
17080
17081 2015-08-12 Tom de Vries <tom@codesourcery.com>
17082
17083 PR other/67092
17084 PR other/67098
17085 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17086 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17087 accordingly. Mention default for --with-stage1-ldflags.
17088
17089 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17090
17091 * config/arm/arm.h (arm_fpu_feature_set): New.
17092 (ARM_FPU_FSET_HAS): New.
17093 (FPU_FL_NONE): New.
17094 (FPU_FL_NEON): New.
17095 (FPU_FL_FP16): New.
17096 (FPU_FL_CRYPTO): New.
17097
17098 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17099
17100 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17101 after -mcmodel=large -fPIC sorry.
17102
17103 2015-08-12 Richard Biener <rguenther@suse.de>
17104
17105 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17106 comparison operand order and commutative ternary op operand order.
17107 (sccvn_dom_walker::cond_stack): New state to track temporary
17108 expressions.
17109 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17110 no longer valid.
17111 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17112 expression.
17113 (sccvn_dom_walker::record_conds): Add a temporary conditional
17114 expressions and all related expressions also true/false.
17115 (sccvn_dom_walker::before_dom_children): Record temporary
17116 expressions based on the controlling condition of a single
17117 predecessor. When trying to simplify a conditional statement
17118 lookup expressions we might have inserted earlier.
17119
17120 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17121
17122 PR target/67127
17123 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17124 to ARM core registers.
17125
17126 2015-08-12 Nathan Sidwell <nathan@acm.org>
17127
17128 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17129 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17130
17131 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17132
17133 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17134 line with comments.
17135 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17136
17137 2015-08-12 Richard Biener <rguenther@suse.de>
17138
17139 * gimple.h (remove_pointer): New trait.
17140 (GIMPLE_CHECK2): New inline template function.
17141 (gassign::code_): New constant static member.
17142 (is_a_helper<const gassign *>): Add.
17143 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17144 and forward to a new gassign overload with less checking and a
17145 cheaper way to access the operand.
17146 (gimple_assign_lhs_ptr): Likewise.
17147 (gimple_assign_set_lhs): Likewise.
17148 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17149 Likewise.
17150 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17151 Likewise.
17152 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17153 Likewise.
17154 (gimple_assign_rhs_code): Likewise.
17155 * gimple.c (gassign::code_): Define.
17156
17157 2015-08-12 Richard Biener <rguenther@suse.de>
17158
17159 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17160 Eliminate edges marked as not executable by SCCVN.
17161 * tree-ssa-sccvn.c: Include gimple-iterator.h.
17162 (cond_dom_walker): Rename to sccvn_dom_walker.
17163 (sccvn_dom_walker::before_dom_children): Value-number defs
17164 of all stmts.
17165 (run_scc_vn): Remove loop value-numbering all SSA names.
17166 Drop not visited SSA names to varying.
17167
17168 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17169
17170 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17171 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17172 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17173 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17174 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17175 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17176 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17177 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17178 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17179
17180 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
17181
17182 PR target/66954
17183 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17184 to enum feature_priority and feature_list.
17185 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17186 and isa_names_table.
17187
17188 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
17189
17190 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17191 vect_induction_def.
17192
17193 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17194
17195 PR c/66098
17196 PR c/66711
17197 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17198 account when deciding what was the command-line status.
17199
17200 2015-08-11 Nathan Sidwell <nathan@acm.org>
17201
17202 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17203
17204 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17205 we're not the only contributor to target phi.
17206
17207 2015-08-11 Jiong Wang <jiong.wang@arm.com>
17208
17209 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17210 FIXED_REG0.
17211
17212 2015-08-11 Tom de Vries <tom@codesourcery.com>
17213
17214 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17215
17216 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
17217
17218 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17219 with CPU_SLM.
17220 * config/i386/i386.md (cpu): Remove knl.
17221
17222 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17223
17224 PR libgomp/65742
17225 PR middle-end/66332
17226 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17227 open-coded sequence.
17228 * omp-low.c (oacc_process_reduction_data): Remove handline of
17229 GOMP_DEVICE_HOST_NONSHM.
17230
17231 * lto-streamer-in.c (lto_input_mode_table): Adjust to
17232 GET_MODE_INNER changes.
17233
17234 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17235 Ilya Verbin <ilya.verbin@intel.com>
17236
17237 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17238
17239 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17240
17241 * doc/options.texi (EnabledBy): Document that the argument must be
17242 a Common option.
17243 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17244 Not enabled by -Wall.
17245 * optc-gen.awk: Give nicer error messages. Detect if the argument
17246 of EnabledBy is not a Common option.
17247 * common.opt (Wnull-dereference): Not enabled by -Wall.
17248 * opt-functions.awk (lang_enabled_by): Nicer error messages.
17249
17250 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
17251
17252 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17253 model == 0x4f as Broadwell.
17254
17255 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17256
17257 PR rtl-optimization/67028
17258 * combine.c (simplify_comparison): Fix comment. Rearrange code.
17259 Add test to see if a const_int fits in the new mode.
17260
17261 2015-08-07 DJ Delorie <dj@redhat.com>
17262
17263 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17264
17265 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
17266
17267 PR rtl-optimization/67029
17268 * ira-color.c: Include "recog.h" before including "ira-int.h".
17269 * target-globals.c: Likewise.
17270 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17271 adds an alternative_mask argument and use it instead of
17272 preferred_alternatives.
17273 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17274 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17275 * sched-deps.c: Include "ira-int.h" after including "ira.h".
17276 (sched_analyze_insn): Update call to
17277 ira_implicitly_set_insn_hard_regs.
17278 * sel-sched.c: Include "ira-int.h" after including "ira.h".
17279 (implicit_clobber_conflict_p): Update call to
17280 ira_implicitly_set_insn_hard_regs.
17281
17282 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17283
17284 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17285
17286 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
17287
17288 PR target/67002
17289 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17290 currently_expanding_to_rtl is set.
17291
17292 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
17293
17294 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17295 * configure: Regenerate.
17296
17297 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17298 Jiong Wang <jiong.wang@arm.com>
17299
17300 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17301 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17302 (REG_CLASS_NAMES): Likewise.
17303 (REG_CLASS_CONTENTS): Likewise.
17304 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17305 (aarch64_register_move_cost): Likewise.
17306 (aarch64_load_symref_appropriately): Invoke the new added pattern if
17307 possible.
17308 * config/aarch64/constraints.md (Uc0): New constraint.
17309
17310 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17311
17312 * config/aarch64/constraints.md (Usf): Add the test of
17313 aarch64_is_noplt_call_p.
17314
17315 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17316
17317 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17318 declaration.
17319 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17320 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17321 (call_symbol): Likewise.
17322
17323 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
17324
17325 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17326 for vectorizing multiplication patterns.
17327 * tree-vectorizer.h: Adjust the number of patterns.
17328
17329 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17330
17331 * config/i386/sse.md (*vec_concatv2df): Declare added
17332 alternatives as sselog type.
17333
17334 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17335
17336 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17337 all GPRs.
17338
17339 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17340
17341 * config/s390/s390.c (s390_expand_tbegin): Expand either
17342 tbegin_1_z13 or tbegin_1 depending on VX flag.
17343 * config/s390/s390.md ("tbegin_1_z13"): New expander.
17344
17345 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17346
17347 * config/s390/s390.opt: Clarify description for -mzvector
17348 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17349 -mzvector.
17350
17351 2015-08-06 Richard Biener <rguenther@suse.de>
17352
17353 * gimple.h (gimple_call_set_fn): Access op member directly.
17354 (gimple_call_chain_ptr): Likewise.
17355 (gimple_call_set_chain): Likewise.
17356 (gimple_cond_lhs_ptr): Likewise.
17357 (gimple_cond_set_lhs): Likewise.
17358 (gimple_cond_rhs_ptr): Likewise.
17359 (gimple_cond_set_rhs): Likewise.
17360 (gimple_cond_true_label): Likewise.
17361 (gimple_cond_set_true_label): Likewise.
17362 (gimple_cond_set_false_label): Likewise.
17363 (gimple_cond_false_label): Likewise.
17364 (gimple_label_label): Likewise.
17365 (gimple_label_set_label): Likewise.
17366 (gimple_goto_set_dest): Likewise.
17367 (gimple_asm_input_op): Likewise.
17368 (gimple_asm_input_op_ptr): Likewise.
17369 (gimple_asm_set_input_op): Likewise.
17370 (gimple_asm_output_op): Likewise.
17371 (gimple_asm_output_op_ptr): Likewise.
17372 (gimple_asm_set_output_op): Likewise.
17373 (gimple_asm_clobber_op): Likewise.
17374 (gimple_asm_set_clobber_op): Likewise.
17375 (gimple_asm_label_op): Likewise.
17376 (gimple_asm_set_label_op): Likewise.
17377 (gimple_switch_index): Likewise.
17378 (gimple_switch_index_ptr): Likewise.
17379 (gimple_return_retval_ptr): Likewise.
17380 (gimple_return_retval): Likewise.
17381 (gimple_return_set_retval): Likewise.
17382 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
17383 (gimple_switch_label): Likewise.
17384 (gimple_switch_set_label): Likewise.
17385
17386 2015-08-06 Richard Biener <rguenther@suse.de>
17387
17388 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17389 bool comparison canonicalization and restrict to integers.
17390
17391 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
17392
17393 * coretypes.h (enum symbol_visibility): Relocate here.
17394 * flag-types.h (enum symbol_visibility): Remove.
17395 * tree-core.h (enum symbol_visibility): Remove.
17396
17397 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
17398
17399 PR target/66870
17400 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17401 for no_split_stack function attribute along with
17402 flag_split_stack.
17403 (rs6000_expand_split_stack_prologue): Likewise.
17404
17405 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
17406 Jeff Law <law@redhat.com>
17407
17408 PR c/16351
17409 * doc/invoke.texi (Wnull-dereference): New.
17410 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17411 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17412 Warn for potential NULL dereferences.
17413 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17414 * ubsan.c (instrument_nonnull_arg): Call
17415 infer_nonnull_range_by_attribute.
17416 (instrument_nonnull_return): Likewise.
17417 * common.opt (Wnull-dereference); New.
17418 * gimple.c (infer_nonnull_range): Remove bool arguments.
17419 (infer_nonnull_range_by_dereference): New.
17420 (infer_nonnull_range_by_attribute): New.
17421 * gimple.h: Update declarations.
17422
17423 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17424
17425 * gensupport.c (sequence_num): Replace with...
17426 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17427 ...these new variables.
17428 (init_rtx_reader_args_cb): Update accordingly.
17429 (get_num_code_insns): Likewise.
17430 (read_md_rtx): Rework to use a while loop and get_c_test.
17431 Use the new counters. Remove redundant DEFINE_SUBST case.
17432 * genoutput.c (gen_split): Delete.
17433 (main): Don't call it.
17434
17435 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17436
17437 * gensupport.h (get_c_test): Declare.
17438 * gensupport.c (get_c_test): New function.
17439 * genconditions.c (main): Use it.
17440 * genrecog.c (validate_pattern): Likewise.
17441 (match_pattern_1): Likewise. Remove c_test argument.
17442 (match_pattern): Update accordingly and remove c_test argument.
17443 (main): Update accordingly.
17444
17445 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17446
17447 * gensupport.h (get_num_insn_codes): Declare.
17448 * gensupport.c (get_num_insn_codes): New function.
17449 * genattrtab.c (optimize_attrs): Rename max_insn_code to
17450 num_insn_codes.
17451 (main): Likewise. Use get_num_insn_codes.
17452 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17453
17454 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17455
17456 PR middle-end/66311
17457 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17458 is zero- rather than sign-extended.
17459
17460 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17461
17462 * target-insns.def (can_extend): Delete.
17463
17464 2015-08-05 Richard Biener <rguenther@suse.de>
17465
17466 PR tree-optimization/67121
17467 * tree-if-conv.c (combine_blocks): Clear range-info produced
17468 by stmts no longer executed conditionally.
17469
17470 2015-08-05 Nick Clifton <nickc@redhat.com>
17471
17472 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17473 to allow identical far pointers to remain.
17474
17475 2015-08-05 Richard Biener <rguenther@suse.de>
17476
17477 PR middle-end/67120
17478 * match.pd: Compare address bases with == if they are decls
17479 or SSA names, not operand_equal_p. Otherwise fail.
17480
17481 2015-08-05 Richard Biener <rguenther@suse.de>
17482
17483 PR tree-optimization/67055
17484 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17485 NULL gimple_block.
17486
17487 * g++.dg/torture/pr67055.C: New testcase.
17488
17489 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17490
17491 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17492 noavx512vl.
17493 (define_attr "enabled"): Handle avx521vl and noavx512vl.
17494 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17495 AVX-512 alternative out of SSE.
17496 (define_insn "*vec_concatv2df"): Ditto.
17497
17498 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17499
17500 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17501 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17502 CODE_FOR_avx_ptestv4di.
17503 * config/i386/sse.md (define_mode_iterator V_AVX): New.
17504 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17505 (define_insn "avx_ptest256"): Merge this ...
17506 (define_insn "sse4_1_ptest"): And this ...
17507 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17508
17509 2015-08-05 Richard Biener <rguenther@suse.de>
17510
17511 PR tree-optimization/67109
17512 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17513 against too big groups. Print whether this is a load or store
17514 group. Rename from ...
17515 (vect_analyze_group_access): ... this which is now a wrapper
17516 dissolving an invalid group.
17517 (vect_analyze_data_ref_accesses): Print whether this is a load
17518 or store group.
17519
17520 2015-08-05 Richard Biener <rguenther@suse.de>
17521
17522 PR middle-end/67107
17523 * match.pd: Guard const_binop result checking against NULL_TREE
17524 result.
17525
17526 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
17527
17528 * cse.c (cse_insn): Restoring old behaviour for src_eqv
17529 when dest and value in the REG_EQUAL are same and dest
17530 is STRICT_LOW_PART.
17531
17532 2015-08-04 Anatoly Sokolov <aesok@post.ru>
17533
17534 * config/moxie/moxie.h (PRINT_OPERAND,
17535 PRINT_OPERAND_ADDRESS): Remove macros.
17536 * config/moxie/moxie-protos.h (moxie_print_operand,
17537 moxie_print_operand_address): Remove declaration.
17538 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17539 TARGET_PRINT_OPERAND_ADDRESS): Define.
17540 (moxie_print_operand, moxie_print_operand_address): Make static.
17541
17542 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
17543
17544 PR target/66731
17545 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17546 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17547
17548 2015-08-04 Richard Biener <rguenther@suse.de>
17549
17550 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17551 generated code.
17552 (dt_operand::gen_gimple_expr): Adjust.
17553
17554 2015-08-04 Richard Biener <rguenther@suse.de>
17555
17556 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17557 bool compares on RHS.
17558 * match.pd: Add X ==/!= !X is false/true pattern.
17559
17560 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
17561
17562 * config/aarch64/aarch64.c: Change inner loop statement cost
17563 to be consistent with other targets.
17564
17565 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
17566
17567 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17568 targets.
17569
17570 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
17571
17572 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17573 (machine_function): Remove pseudos field.
17574
17575 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17576
17577 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17578 Exit early and use target_option_current_node if processing current
17579 pragma.
17580
17581 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17582
17583 * doc/extend.texi (AArch64 Function Attributes): New node.
17584 (AArch64 Pragmas): Likewise.
17585
17586 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17587
17588 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17589 Initialize simd builtins if TARGET_SIMD.
17590 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17591 Make sure that the builtins are initialized only once no matter how
17592 many times the function is called.
17593 (aarch64_init_builtins): Unconditionally initialize crc builtins.
17594 (aarch64_relayout_simd_param): New function.
17595 (aarch64_simd_expand_args): Use above during argument expansion.
17596 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17597 simd builtins if TARGET_SIMD.
17598 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17599 prototype.
17600 (aarch64_relayout_simd_types): Likewise.
17601
17602 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17603
17604 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17605 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17606 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17607 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17608 static keyword.
17609 (aarch64_reset_previous_fndecl): New function.
17610 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17611 the string.
17612 * config/aarch64/aarch64-c.c: New file.
17613 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17614 Push and pop options at beginning and end. Remove ifdef
17615 __ARM_FEATURE_CRC32.
17616 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17617 Add pragma +nothing+simd and +nothing+crypto where appropriate.
17618 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17619 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17620 Define prototype.
17621 (aarch64_register_pragmas): Likewise.
17622 (aarch64_reset_previous_fndecl): Likewise.
17623 (aarch64_process_target_attr): Likewise.
17624 (aarch64_override_options_internal): Likewise.
17625
17626 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17627
17628 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17629 New function.
17630 (aarch64_can_inline_p): Likewise.
17631 (TARGET_CAN_INLINE_P): Define.
17632
17633 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17634
17635 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17636 Remove static. Handle OPT_mgeneral_regs_only,
17637 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17638 OPT_momit_leaf_frame_pointer.
17639 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17640 (aarch64_attr_opt_type): New enum.
17641 (aarch64_attribute_info): New struct.
17642 (aarch64_handle_attr_arch): New function.
17643 (aarch64_handle_attr_cpu): Likewise.
17644 (aarch64_handle_attr_tune): Likewise.
17645 (aarch64_handle_attr_isa_flags): Likewise.
17646 (aarch64_attributes): New table.
17647 (aarch64_process_one_target_attr): New function.
17648 (num_occurences_in_str): Likewise.
17649 (aarch64_process_target_attr): Likewise.
17650 (aarch64_option_valid_attribute_p): Likewise.
17651 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17652 * config/aarch64/aarch64-protos.h: Include input.h
17653 (aarch64_handle_option): Declare prototype.
17654
17655 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17656
17657 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
17658 * config/aarch64/aarch64.c: Include target-globals.h
17659 (aarch64_previous_fndecl): New variable.
17660 (aarch64_set_current_function): New function.
17661 (TARGET_SET_CURRENT_FUNCTION): Define.
17662
17663 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17664
17665 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
17666 (explicit_arch): Likewise.
17667 (x_aarch64_isa_flags): Likewise.
17668 (mgeneral-regs-only): Mark as Save.
17669 (mfix-cortex-a53-835769): Likewise.
17670 (mcmodel=): Likewise.
17671 (mstrict-align): Likewise.
17672 (momit-leaf-frame-pointer): Likewise.
17673 (mtls-dialect): Likewise.
17674 (master=): Likewise.
17675 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
17676 (aarch64_isa_flags): Remove extern declaration.
17677 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
17678 to indicate success or failure.
17679 (aarch64_validate_march): Likewise.
17680 (aarch64_validate_mtune): Likewise.
17681 (aarch64_isa_flags): Delete.
17682 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
17683 instead of aarch64_isa_flags.
17684 (aarch64_get_tune_cpu): New function.
17685 (aarch64_get_arch): Likewise.
17686 (aarch64_override_options): Use above and set up explicit_tune_core
17687 and explicit_arch.
17688 (aarch64_print_extension): Move earlier in file. Add isa_flags
17689 argument and use that instead of the global aarch64_isa_flags.
17690 (aarch64_option_save): New function.
17691 (aarch64_option_restore): Likewise.
17692 (aarch64_option_print): Likewise.
17693 (aarch64_declare_function_name): Likewise.
17694 (aarch64_start_file): Delete.
17695 (TARGET_ASM_FILE_START): Do not define.
17696 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17697 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17698 Declare prototype.
17699
17700 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17701
17702 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17703 flag_omit_leaf_frame_pointer to 2.
17704
17705 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17706
17707 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17708 define to 0 or 1.
17709 (TARGET_FIX_ERR_A53_835769): New macro.
17710 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17711 handling of opts->x_aarch64_fix_a53_err835769.
17712 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17713 than aarch64_fix_a53_err835769.
17714 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17715 * config/aarch64/aarch64-linux.h: Likewise.
17716
17717 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
17718
17719 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17720 ix86_expand_int_movcc as boolean.
17721
17722 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17723
17724 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17725 (aarch64_cpu_string): Likewise.
17726 (aarch64_tune_string): Likewise.
17727 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17728 (aarch64_parse_extension): Return aarch64_parse_opt_result.
17729 Add extra argument to put result into.
17730 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
17731 (aarch64_parse_cpu): Add arguments to put results into. Return
17732 aarch64_parse_opt_result.
17733 (aarch64_parse_tune): Likewise.
17734 (aarch64_override_options_after_change_1): New function.
17735 (aarch64_override_options_internal): New function.
17736 (aarch64_validate_mcpu): Likewise.
17737 (aarch64_validate_march): Likewise.
17738 (aarch64_validate_mtune): Likewise.
17739 (aarch64_override_options): Update to reflect above changes.
17740 Move some logic into aarch64_override_options_internal.
17741 Initialize target_option_default_node and target_option_current_node.
17742 (aarch64_override_options_after_change): Move logic into
17743 aarch64_override_options_after_change_1 and call it with global_options.
17744 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17745 flag values from that.
17746
17747 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17748
17749 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17750 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17751 * config/aarch64/aarch64.c (struct processor): Add arch field.
17752 (all_architectures): Handle above, move above all_cores.
17753 (all_cores): Handle above.
17754 (aarch64_parse_arch): Handle above changes.
17755 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17756 above. Update comments.
17757 (armv8.1-a): Likewise.
17758 * config/aarch64/aarch64-cores.def: Update according to above.
17759 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17760 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17761 aarch64_arch_driver_info.
17762
17763 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17764
17765 * config/aarch64/aarch64.c (struct processor): Add ident field.
17766 Rename core sched_core.
17767 (all_cores): Handle above changes.
17768 (all_architectures): Likewise.
17769 (aarch64_parse_arch): Likewise.
17770 (aarch64_override_options): Likewise.
17771
17772 2015-08-04 Richard Biener <rguenther@suse.de>
17773
17774 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17775 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17776 comparisons embedded in [VEC_]COND_EXPRs.
17777
17778 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
17779
17780 * tree-if-conv.c: Fix various typos in comments.
17781 * tree-vect-stmts.c: Likewise.
17782
17783 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17784
17785 PR tree-optimization/67043
17786 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17787 preheader after hoisting invariant in it.
17788 (find_defs): Force recomputation of all luids.
17789
17790 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
17791
17792 * config/rs6000/htm.md (tabort.): Restrict the source operand to
17793 using a base register.
17794
17795 2015-08-03 David Malcolm <dmalcolm@redhat.com>
17796
17797 * main.c (main): Pass in NULL for toplev's external_timer.
17798 * timevar.c: Include coretypes.h.
17799 (class timer::named_items): New.
17800 (timer::named_items::named_items): New.
17801 (timer::named_items::~named_items): New.
17802 (timer::named_items::push): New.
17803 (timer::named_items::pop): New.
17804 (timer::named_items::print): New.
17805 (timer::timer): Initialize field "m_jit_client_items".
17806 (timer::~timer): New.
17807 (timer::push): Move bulk of implementation to...
17808 (timer::push_internal): ...here. New function.
17809 (timer::pop): Move bulk of implementation to...
17810 (timer::pop_internal): ...here. New function.
17811 (timer::push_client_item): New.
17812 (timer::pop_client_item): New.
17813 (timer::print_row): New function, taken from timer::print.
17814 (timer::print): Print "GCC items" header if we also have client
17815 items. Move row-printing to timer::print_row. Print any client
17816 items.
17817 (timer::get_topmost_item_name): New method.
17818 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17819 (TV_JIT_CLIENT_CODE): New.
17820 * timevar.h (timer::push_client_item): New declaration.
17821 (timer::pop_client_item): New declaration.
17822 (timer::get_topmost_item_name): New method.
17823 (timer::push_internal): New declaration.
17824 (timer::pop_internal): New declaration.
17825 (timer::print_row): New declaration.
17826 (timer::named_items): New declaration.
17827 (timer::m_jit_client_items): New field.
17828 (timer): Add friend class named_items.
17829 (auto_timevar::auto_timevar): Add timer param.
17830 (auto_timevar::~auto_timevar): Use field "m_timer".
17831 (auto_timevar::m_timer): New field.
17832 * toplev.c (initialize_rtl): Add g_timer as param when
17833 constructing auto_timevar instance.
17834 (toplev::toplev): Add "external_timer" param, and use it to
17835 initialize the "g_timer" global if non-NULL.
17836 (toplev::~toplev): If this created "g_timer", delete it.
17837 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17838 with "external_timer" timer *.
17839
17840 2015-08-03 Alexander Basov <coohpt@gmail.com>
17841
17842 PR middle-end/64744
17843 PR middle-end/48470
17844 PR middle-end/43404
17845 * cfgexpand.c (expand_one_var): Add check if stack is going to
17846 be used in naked function.
17847 * expr.c (expand_expr_addr_expr_1): Remove excess checking
17848 whether expression should not reside in MEM.
17849 * function.c (use_register_for_decl): Do not use registers for
17850 non-register things (volatile, float, BLKMode) in naked functions.
17851
17852 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
17853
17854 PR target/67060
17855 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17856 Adjust splits to match new pattern.
17857
17858 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17859
17860 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17861 (VEC_M): Likewise.
17862 (VEC_N): Likewise.
17863 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17864 point in VSX registers.
17865
17866 * config/rs6000/constraints.md (wb constraint): Document unused
17867 w<x> constraint.
17868 (we constraint): Likewise.
17869 (wo constraint): Likewise.
17870 (wp constraint): New constraint for IEEE 128-bit floating point in
17871 VSX registers.
17872 (wq constraint): Likewise.
17873
17874 * config/rs6000/predicates.md (easy_fp_constant): Add support for
17875 IEEE 128-bit floating point in VSX registers.
17876 (easy_scalar_constant): Likewise.
17877
17878 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17879 constraints (wp, wq) for IEEE 128-bit floating point in VSX
17880 registers.
17881 (rs6000_init_hard_regno_mode_ok): Likewise.
17882
17883 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17884 floating point in VSX registers.
17885 (VSX_L): Likewise.
17886 (VSX_M): Likewise.
17887 (VSX_M2): Likewise.
17888 (VSm): Likewise.
17889 (VSs): Likewise.
17890 (VSr): Likewise.
17891 (VSa): Likewise.
17892 (VSv): Likewise.
17893 (vsx_le_permute_<mode>): Add support to properly swap bytes for
17894 IEEE 128-bit floating point in VSX registers on little endian.
17895 (vsx_le_undo_permute_<mode>): Likewise.
17896 (vsx_le_perm_load_<mode>): Likewise.
17897 (vsx_le_perm_store_<mode>): Likewise.
17898 (splitters for IEEE 128-bit fp moves): Likewise.
17899
17900 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17901 wq constraints.
17902
17903 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17904 floating point in VSX registers.
17905 (VM2): Likewise.
17906
17907 * doc/md.text (Machine Constraints): Document wp and wq
17908 constraints on PowerPC.
17909
17910 2015-08-03 Jeff Law <law@redhat.com>
17911
17912 PR middle-end/66314
17913 PR gcov-profile/66899
17914 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17915 iterate over the jump threading paths when an element in the
17916 jump threading paths array is eliminated.
17917
17918 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
17919
17920 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17921
17922 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
17923
17924 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17925 is_use_properly_guarded the variable def_preds. Free its
17926 contents before returning.
17927 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17928 (is_use_properly_guarded): Replace local variable def_preds with
17929 a parameter. Adjust accordingly. Only update *def_preds if it's
17930 the empty vector.
17931
17932 2015-08-03 Richard Biener <rguenther@suse.de>
17933
17934 * genmatch.c (simplify::for_subst_vec): New member.
17935 (binary_ok): New helper for for lowering.
17936 (lower_for): Delay substituting operators into result expressions
17937 if we can merge the results eventually again.
17938 (capture_info::walk_result): Adjust for user_id appearing as
17939 result expression operator.
17940 (expr::gen_transform): Likewise.
17941 (dt_simplify::gen_1): Likewise.
17942 (dt_simplify::gen): Pass not substituted operators to tail
17943 functions or initialize local variable with it.
17944 (decision_tree::gen): Adjust function signature.
17945 * match.pd: Fix tests against global code and add default
17946 cases to switch stmts.
17947
17948 2015-08-03 Richard Biener <rguenther@suse.de>
17949
17950 * genmatch.c (dt_simplify::gen): Create captures array
17951 with an initializer.
17952
17953 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17954
17955 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17956 the host compiler is affected by placement new aliasing bug.
17957 * configure: Regenerate.
17958 * Makefile.in (ALIASING_FLAGS): New variable.
17959 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17960
17961 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17962
17963 PR target/66731
17964 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17965 (negmulsf3_vfp): Likewise.
17966 (muldf3negdf_vfp): Disable for -frounding-math.
17967 (mulsf3negsf_vfp): Likewise.
17968 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17969 fix MULT cost with -frounding-math.
17970
17971 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17972
17973 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17974 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17975 explicit. Prefer to add the flag whenever possible.
17976 (noce_process_if_block): Try noce_try_store_flag_constants before
17977 noce_try_cmove.
17978
17979 2015-08-03 Richard Biener <rguenther@suse.de>
17980
17981 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17982 New hash-map to record equivalent transforms.
17983 (dt_node::analyze): Populate the equivalent transforms hash-map.
17984 (dt_simplify::info): Add reference to hash-map entry.
17985 (dt_simplify::gen): If we have split out a function for the
17986 transform, generate a call to it.
17987 (sinfo_hashmap_traits::hash): New function.
17988 (compare_op): New helper function for ...
17989 (sinfo_hashmap_traits::equal_keys): ... this new function.
17990 (decision_tree::gen): Split out common equivalent transforms
17991 into functions.
17992
17993 2015-08-03 Richard Biener <rguenther@suse.de>
17994
17995 * gimple-fold.c (fold_gimple_assign): Remove folding of
17996 the comparison in COND_EXPRs.
17997
17998 2015-08-03 Richard Biener <rguenther@suse.de>
17999
18000 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18001 on the rhs of assignments first simplify the embedded
18002 GENERIC condition.
18003
18004 2015-08-03 Richard Biener <rguenther@suse.de>
18005
18006 PR tree-optimization/66917
18007 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18008 field.
18009 (DR_VECT_AUX): New macro.
18010 (set_dr_misalignment): Adjust.
18011 (dr_misalignment): Likewise.
18012 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18013 Compute whether the base is at least element aligned.
18014 * tree-vect-stmts.c (ensure_base_align): Adjust.
18015 (vectorizable_store): If the base is not element aligned
18016 preserve alignment of the original access if misalignment is unknown.
18017 (vectorizable_load): Likewise.
18018
18019 2015-08-02 Martin Sebor <msebor@redhat.com>
18020
18021 * c-family/c.opt (-Wframe-address): New warning option.
18022 * doc/invoke.texi (Wframe-address): Document it.
18023 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18024 Clarify possible effects of calling the functions with non-zero
18025 arguments and mention -Wframe-address.
18026 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18027
18028 2015-08-01 Michael Collison <michael.collison@linaro.org
18029 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18030
18031 * config/arm/arm.md (*arm_smin_cmp): New pattern.
18032 (*arm_umin_cmp): Likewise.
18033
18034 2015-08-01 Caroline Tice <cmtice@google.com>
18035
18036 PR 66521
18037 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18038 global variables.
18039 (vtbl_find_mangled_name): New function.
18040 (vtbl_register_mangled_name): New function.
18041 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
18042 mangled name in mangled name vectors.
18043 (find_or_create_vtbl_map_node): Ditto.
18044 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
18045 update recursion_depth on function entry; pass it to every recursive
18046 call; automatically exit if depth > 25 (give up looking at that point).
18047 (verify_bb_vtables): Initialize recursion_depth and pass it to
18048 var_is_used_for_virtual_call_p.
18049 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18050 global variable decls.
18051 (vtbl_register_mangled_name): New extern function decl.
18052
18053 2015-08-01 Tom de Vries <tom@codesourcery.com>
18054
18055 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18056 function.
18057 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18058 Declare.
18059 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18060 operation_no_trapping_overflow. Allow non-overflow operations.
18061 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18062 operations.
18063
18064 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18065
18066 PR target/67049
18067 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18068
18069 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18070
18071 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18072 Enable for TARGET_32BIT.
18073 (*if_move_neg): Likewise.
18074
18075 2015-07-31 Nick Clifton <nickc@redhat.com>
18076
18077 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18078 Returns true for __model__.
18079 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18080
18081 2015-07-31 Alan Modra <amodra@gmail.com>
18082
18083 PR target/66870
18084 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18085 (rs6000_emit_prologue): Set it.
18086 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18087
18088 2015-07-31 Richard Biener <rguenther@suse.de>
18089
18090 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18091 -> X == (C1 ^ C2) which is already implemented in match.pd.
18092 Remove redundant dispatching to fold_relational_const.
18093 Move unordered self and NaN compares ...
18094 * match.pd: ... as patterns here. Remove some stray captures
18095 and add a comment.
18096
18097 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18098
18099 * config/i386/i386.c
18100 (bdesc_special_args): Convert mask type from signed to unsigned for
18101 masked builtins.
18102 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18103 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18104 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18105 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18106 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18107 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18108 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18109 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18110 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18111 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18112 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18113 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18114 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18115 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18116 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18117 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18118 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18119 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18120 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18121 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18122 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18123 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18124 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18125 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18126 * config/i386/i386-builtin-types.def
18127 (V16QI_FTYPE_V16SI): Remove.
18128 (V8DF_FTYPE_V8SI): Ditto.
18129 (V8HI_FTYPE_V8DI): Ditto.
18130 (V8SI_FTYPE_V8DI): Ditto.
18131 (V8SF_FTYPE_V8DF): Ditto.
18132 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18133 (V16HI_FTYPE_V16SI): Ditto.
18134 (V16SF_FTYPE_V16HI): Ditto.
18135 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18136 (V16SF_FTYPE_V16SI): Ditto.
18137 (V4DI_FTYPE_V4DI): Ditto.
18138 (V16SI_FTYPE_V16SF): Ditto.
18139 (V16SF_FTYPE_FLOAT): Ditto.
18140 (V8DF_FTYPE_DOUBLE): Ditto.
18141 (V8DI_FTYPE_INT64): Ditto.
18142 (V8DI_FTYPE_V4DI): Ditto.
18143 (V16QI_FTYPE_V8DI): Ditto.
18144 (UINT_FTYPE_V4SF): Ditto.
18145 (UINT64_FTYPE_V4SF): Ditto.
18146 (UINT_FTYPE_V2DF): Ditto.
18147 (UINT64_FTYPE_V2DF): Ditto.
18148 (V16SI_FTYPE_V16SI): Ditto.
18149 (V8DI_FTYPE_V8DI): Ditto.
18150 (V16SI_FTYPE_PV4SI): Ditto.
18151 (V16SF_FTYPE_PV4SF): Ditto.
18152 (V8DI_FTYPE_PV2DI): Ditto.
18153 (V8DF_FTYPE_PV2DF): Ditto.
18154 (V4DI_FTYPE_PV2DI): Ditto.
18155 (V4DF_FTYPE_PV2DF): Ditto.
18156 (V16SI_FTYPE_PV2SI): Ditto.
18157 (V16SF_FTYPE_PV2SF): Ditto.
18158 (V8DI_FTYPE_PV4DI): Ditto.
18159 (V8DF_FTYPE_PV4DF): Ditto.
18160 (V8SF_FTYPE_FLOAT): Ditto.
18161 (V4SF_FTYPE_FLOAT): Ditto.
18162 (V4DF_FTYPE_DOUBLE): Ditto.
18163 (V8SF_FTYPE_PV4SF): Ditto.
18164 (V8SI_FTYPE_PV4SI): Ditto.
18165 (V4SI_FTYPE_PV2SI): Ditto.
18166 (V8SF_FTYPE_PV2SF): Ditto.
18167 (V8SI_FTYPE_PV2SI): Ditto.
18168 (V16SF_FTYPE_PV8SF): Ditto.
18169 (V16SI_FTYPE_PV8SI): Ditto.
18170 (V8DI_FTYPE_V8SF): Ditto.
18171 (V4DI_FTYPE_V4SF): Ditto.
18172 (V2DI_FTYPE_V4SF): Ditto.
18173 (V64QI_FTYPE_QI): Ditto.
18174 (V32HI_FTYPE_HI): Ditto.
18175 (V8UHI_FTYPE_V8UHI): Ditto.
18176 (V16UHI_FTYPE_V16UHI): Ditto.
18177 (V32UHI_FTYPE_V32UHI): Ditto.
18178 (V2UDI_FTYPE_V2UDI): Ditto.
18179 (V4UDI_FTYPE_V4UDI): Ditto.
18180 (V8UDI_FTYPE_V8UDI): Ditto.
18181 (V4USI_FTYPE_V4USI): Ditto.
18182 (V8USI_FTYPE_V8USI): Ditto.
18183 (V16USI_FTYPE_V16USI): Ditto.
18184 (V2DF_FTYPE_V2DF_UINT64): Ditto.
18185 (V2DI_FTYPE_V2DF_V2DF): Ditto.
18186 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18187 (V8DF_FTYPE_V8DF_V8DI): Ditto.
18188 (V4SF_FTYPE_V4SF_UINT64): Ditto.
18189 (V4SI_FTYPE_V4SF_V4SF): Ditto.
18190 (V16SF_FTYPE_V16SF_V16SI): Ditto.
18191 (V64QI_FTYPE_V32HI_V32HI): Ditto.
18192 (V32HI_FTYPE_V16SI_V16SI): Ditto.
18193 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18194 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18195 (V32HI_FTYPE_V64QI_V64QI): Ditto.
18196 (V32HI_FTYPE_V32HI_V32HI): Ditto.
18197 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18198 (V16SI_FTYPE_V16SI_V4SI): Ditto.
18199 (V16SI_FTYPE_V16SI_V16SI): Ditto.
18200 (V16SI_FTYPE_V32HI_V32HI): Ditto.
18201 (V16SI_FTYPE_V16SI_SI): Ditto.
18202 (V8DI_FTYPE_V8DI_V8DI): Ditto.
18203 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18204 (V8DI_FTYPE_V16SI_V16SI): Ditto.
18205 (V8DI_FTYPE_V8DI_V2DI): Ditto.
18206 (QI_FTYPE_QI): Ditto.
18207 (SI_FTYPE_SI): Ditto.
18208 (DI_FTYPE_DI): Ditto.
18209 (QI_FTYPE_QI_QI): Ditto.
18210 (QI_FTYPE_QI_INT): Ditto.
18211 (HI_FTYPE_HI_INT): Ditto.
18212 (SI_FTYPE_SI_INT): Ditto.
18213 (DI_FTYPE_DI_INT): Ditto.
18214 (HI_FTYPE_V16QI_V16QI): Ditto.
18215 (SI_FTYPE_V32QI_V32QI): Ditto.
18216 (DI_FTYPE_V64QI_V64QI): Ditto.
18217 (QI_FTYPE_V8HI_V8HI): Ditto.
18218 (HI_FTYPE_V16HI_V16HI): Ditto.
18219 (SI_FTYPE_V32HI_V32HI): Ditto.
18220 (QI_FTYPE_V4SI_V4SI): Ditto.
18221 (QI_FTYPE_V8SI_V8SI): Ditto.
18222 (QI_FTYPE_V2DI_V2DI): Ditto.
18223 (QI_FTYPE_V4DI_V4DI): Ditto.
18224 (QI_FTYPE_V8DI_V8DI): Ditto.
18225 (HI_FTYPE_V16SI_V16SI): Ditto.
18226 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18227 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18228 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18229 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18230 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18231 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18232 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18233 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18234 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18235 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18236 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18237 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18238 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18239 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18240 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18241 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18242 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18243 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18244 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18245 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18246 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18247 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18248 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18249 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18250 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18251 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18252 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18253 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18254 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18255 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18256 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18257 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18258 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18259 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18260 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18261 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18262 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18263 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18264 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18265 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18266 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18267 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18268 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18269 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18270 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18271 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18272 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18273 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18274 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18275 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18276 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18277 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18278 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18279 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18280 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18281 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18282 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18283 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18284 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18285 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18286 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18287 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18288 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18289 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18290 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18291 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18292 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18293 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18294 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18295 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18296 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18297 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18298 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18299 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18300 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18301 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18302 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18303 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18304 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18305 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18306 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18307 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18308 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18309 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18310 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18311 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18312 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18313 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18314 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18315 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18316 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18317 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18318 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18319 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18320 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18321 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18322 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18323 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18324 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18325 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18326 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18327 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18328 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18329 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18330 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18331 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18332 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18333 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18334 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18335 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18336 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18337 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18338 (HI_FTYPE_HI): Ditto.
18339 (HI_FTYPE_V16QI): Ditto.
18340 (SI_FTYPE_V32QI): Ditto.
18341 (DI_FTYPE_V64QI): Ditto.
18342 (QI_FTYPE_V8HI): Ditto.
18343 (HI_FTYPE_V16HI): Ditto.
18344 (SI_FTYPE_V32HI): Ditto.
18345 (QI_FTYPE_V4SI): Ditto.
18346 (QI_FTYPE_V8SI): Ditto.
18347 (HI_FTYPE_V16SI): Ditto.
18348 (QI_FTYPE_V2DI): Ditto.
18349 (QI_FTYPE_V4DI): Ditto.
18350 (QI_FTYPE_V8DI): Ditto.
18351 (V16QI_FTYPE_HI): Ditto.
18352 (V32QI_FTYPE_SI): Ditto.
18353 (V64QI_FTYPE_DI): Ditto.
18354 (V8HI_FTYPE_QI): Ditto.
18355 (V16HI_FTYPE_HI): Ditto.
18356 (V32HI_FTYPE_SI): Ditto.
18357 (V4SI_FTYPE_QI): Ditto.
18358 (V4SI_FTYPE_HI): Ditto.
18359 (V8SI_FTYPE_QI): Ditto.
18360 (V8SI_FTYPE_HI): Ditto.
18361 (V2DI_FTYPE_QI): Ditto.
18362 (V4DI_FTYPE_QI): Ditto.
18363 (HI_FTYPE_HI_HI): Ditto.
18364 (SI_FTYPE_SI_SI): Ditto.
18365 (DI_FTYPE_DI_DI): Ditto.
18366 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18367 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18368 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18369 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18370 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18371 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18372 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18373 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18374 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18375 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18376 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18377 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18378 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18379 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18380 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18381 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18382 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18383 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18384 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18385 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18386 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18387 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18388 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18389 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18390 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18391 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18392 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18393 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18394 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18395 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18396 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18397 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18398 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18399 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18400 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18401 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18402 (V16SI_FTYPE_HI): Ditto.
18403 (V8DI_FTYPE_QI): Ditto.
18404 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18405 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18406 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18407 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18408 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18409 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18410 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18411 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18412 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18413 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18414 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18415 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18416 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18417 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18418 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18419 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18420 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18421 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18422 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18423 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18424 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18425 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18426 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18427 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18428 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18429 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18430 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18431 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18432 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18433 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18434 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18435 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18436 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18437 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18438 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18439 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18440 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18441 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18442 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18443 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18444 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18445 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18446 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18447 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18448 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18449 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18450 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18451 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18452 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18453 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18454 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18455 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18456 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18457 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18458 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18459 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18460 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18461 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18462 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18463 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18464 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18465 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18466 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18467 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18468 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18469 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18470 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18471 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18472 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18473 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18474 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18475 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18476 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18477 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18478 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18479 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18480 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18481 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18482 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18483 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18484 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18485 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18486 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18487 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18488 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18489 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18490 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18491 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18492 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18493 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18494 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18495 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18496 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18497 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18498 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18499 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18500 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18501 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18502 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18503 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18504 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18505 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18506 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18507 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18508 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18509 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18510 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18511 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18512 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18513 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18514 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18515 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18516 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18517 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18518 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18519 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18520 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18521 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18522 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18523 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18524 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18525 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18526 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18527 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18528 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18529 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18530 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18531 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18532 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18533 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18534 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18535 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18536 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18537 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18538 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18539 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18540 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18541 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18542 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18543 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18544 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18545 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18546 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18547 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18548 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18549 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18550 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18551 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18552 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18553 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18554 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18555 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18556 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18557 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18558 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18559 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18560 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18561 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18562 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18563 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18564 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18565 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18566 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18567 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18568 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18569 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18570 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18571 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18572 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18573 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18574 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18575 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18576 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18577 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18578 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18579 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18580 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18581 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18582 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18583 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18584 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18585 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18586 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18587 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18588 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18589 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18590 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18591 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18592 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18593 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18594 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18595 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18596 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18597 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18598 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18599 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18600 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18601 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18602 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18603 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18604 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18605 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18606 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18607 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18608 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18609 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18610 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18611 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18612 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18613 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18614 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18615 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18616 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18617 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18618 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18619 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18620 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18621 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18622 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18623 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18624 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18625 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18626 (QI_FTYPE_V8DF_INT_QI): Ditto.
18627 (QI_FTYPE_V4DF_INT_QI): Ditto.
18628 (QI_FTYPE_V2DF_INT_QI): Ditto.
18629 (HI_FTYPE_V16SF_INT_HI): Ditto.
18630 (QI_FTYPE_V8SF_INT_QI): Ditto.
18631 (QI_FTYPE_V4SF_INT_QI): Ditto.
18632 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18633
18634 2015-07-31 Richard Biener <rguenther@suse.de>
18635
18636 * gimple-fold.c (fold_gimple_assign): Remove folding of
18637 GIMPLE_BINARY_RHS.
18638
18639 2015-07-31 Tom de Vries <tom@codesourcery.com>
18640
18641 PR tree-optimization/66846
18642 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18643 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18644 (expand_omp_target) [ENABLE_CHECKING]: Same.
18645 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18646 cfun if !LOOPS_NEED_FIXUP.
18647 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
18648 that omp_for already has its own loop struct.
18649 * tree-parloops.c (create_phi_for_local_result)
18650 (create_call_for_reduction): Handle simple latch bb.
18651 (create_parallel_loop): Add simple latch bb to preserve
18652 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
18653 (gen_parallel_loop): Remove call to cancel_loop_tree.
18654 (parallelize_loops): Skip loops that are inner loops of parallelized
18655 loops.
18656 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
18657 verify_loop_structure.
18658
18659 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18660
18661 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
18662 * config/v850/v850.md (RV_REGNUM): New constants.
18663 * config/v850/v850.c (v850_libcall_value): New functions.
18664 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
18665 (TARGET_LIBCALL_VALUE): Define.
18666
18667 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18668
18669 * rtl.h (lowpart_subreg): Move in file.
18670 * loop-iv.c (lowpart_subreg): Move to...
18671 * simplify-rtx.c (lowpart_subreg): ...here.
18672 (simplify_binary_operation_1): Use lowpart_subreg instead of
18673 simplify_gen_subreg.
18674 * expr.c (expand_expr_real_2): Ditto.
18675 * emit-rtl.c (gen_lowpart_common): Ditto.
18676 * combine.c (gen_lowpart_for_combine): Ditto.
18677 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
18678 expand_debug_source_expr): Ditto.
18679
18680 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
18681
18682 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
18683 (expand_builtin_atomic_clear): Remove support for atomic_clear
18684 pattern.
18685
18686 2015-07-30 Richard Biener <rguenther@suse.de>
18687
18688 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
18689 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
18690 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
18691 redundant operand canonicalization.
18692
18693 2015-07-30 David Sherwood <david.sherwood@arm.com>
18694
18695 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18696 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18697 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18698 * config/arm/arm.c (neon_valid_immediate): Likewise.
18699 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18700 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18701 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18702 (expand_vec_perm_vpshufb2_vpermq): Likewise.
18703 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18704 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18705 * config/i386/sse.md
18706 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18707 (*ssse3_palignr<mode>_perm): Likewise.
18708 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18709 * config/spu/spu.c (arith_immediate_p): Likewise.
18710 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18711 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18712
18713 2015-07-30 Richard Biener <rguenther@suse.de>
18714
18715 * genmatch.c (decision_tree::gen_gimple): Merge with ...
18716 (decision_tree::gen_generic): ... this into ...
18717 (decision_tree::gen): ... this.
18718 (main): Adjust callers.
18719
18720 2015-07-30 Richard Biener <rguenther@suse.de>
18721
18722 * genmatch.c (verbose): New global.
18723 (warning_at): Add overload with source_location.
18724 (capture_info::capture_info): Add bool whether generating gimple
18725 or generic. Add gimple member.
18726 (capture_info::cinfo): Add capture member.
18727 (capture_info::walk_match): Record capture. Warn on
18728 non-captured leafs.
18729 (capture_info::walk_c_expr): Add more fragments captures cannot
18730 escape through. Warn on escaped captures.
18731 (dt_simplify::gen_1): Warn on operands we force to have no
18732 side-effects.
18733 (main): Initialize verbose.
18734 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18735
18736 2015-07-30 Richard Biener <rguenther@suse.de>
18737
18738 PR middle-end/67053
18739 * match.pd: Allow both operands to independently have conversion
18740 when simplifying compares of addresses.
18741
18742 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
18743
18744 PR target/66217
18745 PR target/67045
18746 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18747 around those cases that need one.
18748
18749 2015-07-29 Aditya Kumar <hiraditya@msn.com>
18750
18751 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18752
18753 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
18754
18755 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18756 New. Copied from config/i386/gnu-user.h.
18757 (ASM_COMMENT_START): Likewise.
18758 (DBX_REGISTER_NUMBER): Likewise.
18759
18760 2015-07-29 Richard Biener <rguenther@suse.de>
18761
18762 * gimple-fold.c (fold_gimple_cond): Remove.
18763 (fold_stmt_1): Do not call it.
18764
18765 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
18766
18767 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18768 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18769
18770 * config/aarch64/aarch64-modes.def: Add HFmode.
18771
18772 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18773 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18774
18775 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18776 aarch64_promoted_type): New.
18777
18778 (aarch64_float_const_representable_p): Disable HFmode.
18779 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18780 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18781 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18782
18783 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18784 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18785
18786 * config/aarch64/iterators.md (GPF_F16): New.
18787
18788 2015-07-29 Richard Biener <rguenther@suse.de>
18789
18790 * match.pd: Merge address comparison patterns and make them
18791 handle some more cases.
18792
18793 2015-07-29 Richard Biener <rguenther@suse.de>
18794
18795 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18796 (parser::parse_capture): Add bool argument on whether to reject
18797 unknown captures.
18798 (parser::parse_expr): Adjust.
18799 (parser::parse_op): Likewise.
18800 (parser::parse_pattern): Likewise.
18801
18802 2015-07-29 Richard Biener <rguenther@suse.de>
18803
18804 * gimple-fold.c (has_use_on_stmt): New function.
18805 (replace_stmt_with_simplification): Use it to allow
18806 abnormals originally referenced in the stmt.
18807 (fold_stmt_1): Canonicalize operand order.
18808
18809 2015-07-28 David Sherwood <david.sherwood@arm.com>
18810
18811 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18812 GET_MODE_INNER unconditionally.
18813 * config/spu/spu.c (arith_immediate_p): Likewise.
18814 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18815 * expmed.c (synth_mult): Remove check for VOIDmode result from
18816 GET_MODE_INNER.
18817 (expand_mult_const): Likewise.
18818 * fold-const.c (fold_binary_loc): Replace call to element_precision
18819 with call to GET_MODE_PRECISION.
18820 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18821 m->name.
18822 (emit_mode_inner): Likewise.
18823 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18824 result check.
18825 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18826 (GET_MODE_UNIT_PRECISION): Likewise.
18827 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18828 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18829 * stor-layout.c (bitwise_type_for_mode): Update assert.
18830 (element_precision): Remove.
18831
18832 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18833
18834 * target-insns.def (reload_load_address): New targetm instruction
18835 pattern.
18836 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18837
18838 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18839
18840 * target-insns.def (atomic_test_and_set): New targetm instruction
18841 pattern.
18842 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18843 HAVE_*/gen_* interface.
18844
18845 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18846
18847 * target-insns.def (can_extend, ptr_extend): New targetm instruction
18848 patterns.
18849 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18850 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18851 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18852 * rtlanal.c (nonzero_bits1): Likewise.
18853 (num_sign_bit_copies1): Likewise.
18854
18855 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18856
18857 * target-insns.def (eh_return): New targetm instruction pattern.
18858 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18859 interface.
18860 * function.c (thread_prologue_and_epilogue_insns): Remove
18861 preprocessor condition.
18862
18863 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18864
18865 * target-insns.def (indirect_jump): New targetm instruction pattern.
18866 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18867 interface.
18868
18869 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18870
18871 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18872 instead of nonimmediate_operand. Remove C condiition.
18873
18874 2015-07-28 Richard Biener <rguenther@suse.de>
18875
18876 * match.pd: Add more simplification of address comparisons.
18877
18878 2015-07-28 Richard Biener <rguenther@suse.de>
18879
18880 * match.pd: Re-order two cases in comparison with max/min
18881 value simplification to make it apply for bools.
18882
18883 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18884
18885 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18886 Handle simple SIGN_EXTEND or ZERO_EXTEND.
18887 (aarch64_rtx_costs): Properly strip extend or extract before
18888 passing down to rtx costs again.
18889
18890 2015-07-28 Nick Clifton <nickc@redhat.com>
18891
18892 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18893 Optimizes the case where -mes0 is active and a constant symbolic
18894 address is used.
18895 * config/rl78/rl78-protos.h: Prototype the new function.
18896 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18897
18898 2015-07-28 Tom de Vries <tom@codesourcery.com>
18899
18900 * tree-parloops.c (reduc_stmt_res): New function.
18901 (initialize_reductions, add_field_for_reduction)
18902 (create_phi_for_local_result, create_loads_for_reductions)
18903 (create_stores_for_reduction, build_new_reduction): Handle case that
18904 reduc_stmt is a phi.
18905 (gather_scalar_reductions): Allow double_reduc reductions.
18906
18907 2015-07-28 Richard Biener <rguenther@suse.de>
18908
18909 * fold-const.c (fold_comparison): Remove equality folding
18910 of decl addresses ...
18911 * match.pd: ... here and merge with existing pattern.
18912
18913 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18914
18915 PR tree-optimization/66828
18916 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18917 from int64_t to uint64_t.
18918
18919 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
18920
18921 * opts-common.c (read_cmdline_option): List DriverOnly enum values
18922 as valid only in the error message of the driver, not in the
18923 messages of the language compilers.
18924
18925 2015-07-27 Tom de Vries <tom@codesourcery.com>
18926
18927 * tree-parloops.c (gather_scalar_reductions): Simplify function
18928 structure.
18929
18930 2015-07-27 Marek Polacek <polacek@redhat.com>
18931
18932 * ipa-devirt.c (types_same_for_odr): Fix typo.
18933
18934 2015-07-27 Jason Merrill <jason@redhat.com>
18935
18936 PR debug/66468
18937 * dwarf2out.c (gen_inlined_subroutine_die): Check
18938 cgraph_function_possibly_inlined_p.
18939
18940 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18941
18942 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18943 Place integer variant first.
18944 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18945
18946 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18947
18948 PR/63870
18949 * config/arm/arm-builtins.c (enum arm_builtins):
18950 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18951 (ARM_BUILTIN_NEON_BASE): Rename macro to....
18952 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18953 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18954 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18955
18956 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18957
18958 PR/63870
18959 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18960 Add qualifier_lane_index.
18961 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18962 (arm_getlane_qualifiers): Use qualifier_lane_index.
18963 (arm_lanemac_qualifiers): Rename to...
18964 (arm_mac_n_qualifiers): ...this.
18965 (LANEMAC_QUALIFIERS): Rename to...
18966 (MAC_N_QUALIFIERS): ...this.
18967 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18968 (arm_setlane_qualifiers): Use qualifier_lane_index.
18969 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18970 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18971 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18972 (arm_expand_neon_builtin): Handle qualifier_lane_index.
18973
18974 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18975 * config/arm/arm.c (bounds_check): Likewise, improve error message.
18976 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18977 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18978 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18979 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18980 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18981 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18982 qualifiers to TERNOP_IMM.
18983 (vdup_lane): Change qualifiers to GETLANE.
18984 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18985 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18986 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18987 vqdmlsl_n): Change qualifiers to MAC_N.
18988
18989 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18990 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18991 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18992 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18993 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18994 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18995 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18996 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18997 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18998 Remove call to neon_lane_bounds.
18999
19000 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19001
19002 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19003 Place integer variant first.
19004
19005 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
19006
19007 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19008 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19009 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19010 for armv6kz targets.
19011 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19012 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19013 (FL_FOR_ARCH6ZK): Remove.
19014 (FL_FOR_ARCH6KZ): New.
19015 (arm_arch6zk): New declaration.
19016 * config/arm/arm-tables.opt: Regenerate.
19017 * config/arm/arm.c (arm_arch6kz): New.
19018 (arm_option_override): Set arm_arch6kz.
19019 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19020 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19021 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19022
19023 2015-07-27 Marek Polacek <polacek@redhat.com>
19024
19025 PR c++/66555
19026 PR c/54979
19027 * doc/invoke.texi: Document -Wtautological-compare.
19028
19029 2015-07-27 Richard Biener <rguenther@suse.de>
19030
19031 * genmatch.c (decision_tree::gen_gimple): Split out large
19032 subtrees into separate functions.
19033 (decision_tree::gen_generic): Likewise.
19034
19035 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
19036
19037 * config/alpha/alpha.c: Use SUBREG_P predicate.
19038 * config/alpha/predicates.md: Ditto.
19039
19040 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19041
19042 * config.host (s390*-*-*): Include driver-native.c only when
19043 building with s390* as host *and* target.
19044
19045 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
19046
19047 PR target/66930
19048 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19049 T bit register modified_between_p check.
19050
19051 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19052
19053 * config/i386/i386.c: Use SUBREG_P predicate.
19054 * config/i386/i386.md: Ditto.
19055 * config/i386/sse.md: Ditto.
19056 * config/i386/predicates.md: Ditto.
19057
19058 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19059
19060 PR target/67004
19061 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19062 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19063
19064 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19065
19066 * Makefile.in: Remove use of TREEBROWSER.
19067 * config.in: Regenerated.
19068 * configure: Regenerated.
19069 * configure.ac: Remove definition of TREEBROWSER.
19070 * tree-browser.c: Removed.
19071 * tree-browser.def: Removed.
19072
19073 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19074
19075 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19076 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19077 Graphite.
19078 (scopdet_basic_block_info): Print when a loop or bb cannot be
19079 represented in Graphite.
19080
19081 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19082
19083 PR target/66648
19084 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19085 execution guard when min_size is less than size_needed.
19086
19087 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19088
19089 * doc/install.texi: Document supported versions of ISL.
19090
19091 2015-07-25 Jeff Law <law@redhat.com>
19092
19093 Revert:
19094 PR lto/66752
19095 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19096 unable to find X NE 0 in the tables, return X as the simplified
19097 condition.
19098 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19099 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19100 to VISISTED_BBS. */
19101 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19102 after removing the control flow statement and unnecessary edges.
19103
19104 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19105
19106 Revert:
19107 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19108
19109 PR rtl-optimization/64164
19110 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19111 * tree-ssa-copyrename.c: Removed.
19112 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19113 -ftree-coalesce-vars.
19114 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19115 * common.opt (ftree-copyrename): Ignore.
19116 (ftree-coalesce-inlined-vars): Likewise.
19117 * doc/invoke.texi: Remove the ignored options above.
19118 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19119 * tree-ssa-coalesce.h: ... here.
19120 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19121 headers required by it.
19122 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19123 across variables when flag_tree_coalesce_vars. Check register
19124 use and promoted modes to allow coalescing. Moved to
19125 tree-ssa-coalesce.c.
19126 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19127 with its member functions to tree-ssa-coalesce.c.
19128 (var_map_base_init): Likewise. Renamed to
19129 compute_samebase_partition_bases.
19130 (partition_view_normal): Drop want_bases parameter.
19131 (partition_view_bitmap): Likewise.
19132 * tree-ssa-live.h: Adjust declarations.
19133 * tree-ssa-coalesce.c: Include explow.h.
19134 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19135 default defs at the entry point.
19136 (dump_part_var_map): New.
19137 (compute_optimized_partition_bases): New, called by...
19138 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19139 of compute_samebase_partition_bases. Adjust.
19140 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19141 * cfgexpand.c (leader_merge): New.
19142 (get_rtl_for_parm_ssa_default_def): New.
19143 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19144 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19145 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19146 redundant MEM attr setting.
19147 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19148 from...
19149 (expand_one_stack_var): ... this. New wrapper to check and
19150 skip already expanded SSA partitions.
19151 (record_alignment_for_reg_var): New, factored out of...
19152 (expand_one_var): ... this.
19153 (expand_one_ssa_partition): New.
19154 (adjust_one_expanded_partition_var): New.
19155 (expand_one_register_var): Check and skip already expanded SSA
19156 partitions.
19157 (expand_used_vars): Don't create DECLs for anonymous SSA
19158 names. Expand all SSA partitions, then adjust all SSA names.
19159 (pass::execute): Replace the loops that set
19160 SA.partition_to_pseudo from partition leaders and cleared
19161 DECL_RTL for multi-location variables, and that which used to
19162 rename vars and set attrs, with one that clears DECL_RTL and
19163 checks that PARMs and RESULTs default_defs match DECL_RTL.
19164 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19165 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19166 * explow.c (promote_ssa_mode): New.
19167 * explow.h (promote_ssa_mode): Declare.
19168 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19169 * function.c: Include cfgexpand.h.
19170 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19171 (use_register_for_parm_decl): Wrapper for the above to
19172 special-case the result_ptr.
19173 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19174 (split_complex_args): Take assign_parm_data_all argument.
19175 Pass it to rtl_for_parm. Set up rtl and context for split
19176 args.
19177 (assign_parms_augmented_arg_list): Adjust.
19178 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19179 multiple locations. Recognize split complex args.
19180 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19181 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19182 (assign_parm_setup_block): Prefer SSA-assigned location.
19183 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19184 if stack_parm is NULL.
19185 (assign_parm_setup_stack): Prefer SSA-assigned location.
19186 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19187 rtl before testing for pointer bounds. Special-case result_ptr.
19188 (expand_function_start): Maybe reset DECL_RTL of result.
19189 Prefer SSA-assigned location for result and static chain.
19190 Factor out DECL_RESULT and SET_DECL_RTL.
19191 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19192 anonymous SSA names. Use promote_ssa_mode.
19193 (get_temp_reg): Likewise.
19194 (remove_ssa_form): Adjust.
19195 * stor-layout.c (layout_decl): Don't set mem attributes of
19196 non-MEMs.
19197 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19198 and get its reg_usage for reg invalidation.
19199 (compute_bb_dataflow): Pass it insn.
19200 (emit_notes_in_bb): Likewise.
19201
19202 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19203
19204 * config/i386/i386.c (ix86_va_start): Remove
19205 unneeded !TARGET_64BIT check.
19206 (ix86_gimplify_va_arg): Ditto.
19207
19208 2015-07-24 Tom de Vries <tom@codesourcery.com>
19209
19210 * graphite-sese-to-poly.c (build_poly_scop): Always call
19211 rewrite_commutative_reductions_out_of_ssa.
19212
19213 2015-07-24 Tom de Vries <tom@codesourcery.com>
19214
19215 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19216 flag_associative_math to FLOAT_TYPE_P. Honour
19217 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19218
19219 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19220
19221 PR c++/64079
19222 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19223 and "%qD" in warning_at instead of "%q+D" in warning.
19224
19225 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19226
19227 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19228 (ix86_function_abi): Cleanup.
19229
19230 2015-07-24 Michael Darling <darlingm@gmail.com>
19231
19232 PR other/66259
19233 * acinclude.m4: Reflects renaming of configure.in to configure.ac
19234 * configure: Likewise
19235 * configure.ac: Likewise
19236 * doc/install.texi: Likewise
19237 * doc/tm.texi: Likewise
19238 * doc/tm.texi.in: Likewise
19239
19240 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19241
19242 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19243 manually swapping values.
19244 * cse.c (fold_rtx): Likewise.
19245 * lra-eliminations.c (form_sum): Likewise.
19246
19247 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19248
19249 PR target/64003
19250 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19251 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19252 (*jcc_1, *jcc_2, jump, simple_return_internal)
19253 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19254 Set length_nobnd attribute instead of length attribute.
19255 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19256 (length_nobnd): Remove attribute.
19257 (length): Remove length_nobnd processing.
19258
19259 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
19260
19261 * gimplify.c (omp_default_clause): New function. Reorganize flow
19262 for clarity. Broken out of ...
19263 (omp_notice_variable): ... here.
19264
19265 2015-07-24 Gary Funck <gary@intrepid.com>
19266
19267 PR middle-end/66984
19268 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19269 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19270
19271 2015-07-24 Tom de Vries <tom@codesourcery.com>
19272
19273 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19274 exit-first loop transform.
19275
19276 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
19277
19278 PR 66714
19279 * tree-cfg.c (struct replace_decls_d): New struct.
19280 (replace_block_vars_by_duplicates_1): New function.
19281 (replace_block_vars_by_duplicates): Use it to replace the decls
19282 in the value exprs by duplicates.
19283
19284 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19285
19286 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19287 -shared, -symbolic, -rdynamic.
19288
19289 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19290
19291 PR target/65711
19292 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19293 -dynamic-linker within %{!static %{!shared, and -rdynamic within
19294 %{!static.
19295
19296 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19297
19298 PR ipa/66566
19299 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19300 edge summary is available.
19301
19302 2015-07-24 Richard Biener <rguenther@suse.de>
19303
19304 * genmatch.c (struct dt_node): Add statistic fields.
19305 (dt_node::analyze): New method.
19306 (decision_tree::gen_gimple): Call analyze on the root node
19307 and print statistics to stderr.
19308 (decision_tree::gen_generic): Likewise.
19309
19310 2015-07-24 Richard Biener <rguenther@suse.de>
19311
19312 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19313 against the highest or lowest possible integer ...
19314 * match.pd: ... as patterns here.
19315
19316 2015-07-24 Richard Biener <rguenther@suse.de>
19317
19318 * genmatch.c (struct capture_info): Add same_as field.
19319 (capture_info::capture_info): Initialize same_as.
19320 (capture_info::walk_match): Compute same_as.
19321 (capture_info::walk_result): Compute stuff for the leader.
19322 (capture_info::walk_c_expr): Likewise.
19323 (dt_simplify::gen_1): Only look at leaders when deciding
19324 to force no side-effects or emit side-effects of omitted operands.
19325
19326 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19327
19328 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19329 reg note to the GPR -> FPR save instructions.
19330
19331 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19332
19333 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19334 cheaper.
19335 (s390_expand_insv): Don't generate risbg pattern for constant zero
19336 sources.
19337 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19338 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
19339 splitters.
19340
19341 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19342
19343 * config/s390/s390.c (s390_reorg): Clean up handling of processors
19344 with
19345 -mtune=
19346 (s390_issue_rate): Likewise.
19347 (s390_sched_reorder): Likewise.
19348 (s390_sched_variable_issue): Likewise.
19349 (s390_loop_unroll_adjust): Likewise.
19350 (s390_option_override): Likewise.
19351
19352 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19353
19354 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19355 processor capabilities with -march=native.
19356 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19357 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
19358 (S390_TARGET_BITS_STRING): Macro to simplify specs.
19359
19360 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19361
19362 * config/s390/s390.c (s390_issue_rate): Handle
19363 PROCESSOR_2094_Z9_EC.
19364 (s390_option_override): Likewise.
19365 (s390_adjust_priority): Likewise.
19366
19367 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19368
19369 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19370 when cross compiling.
19371
19372 2015-07-24 Richard Biener <rguenther@suse.de>
19373
19374 * fold-const.c (maybe_canonicalize_comparison_1): Move
19375 A code CST canonicalization ...
19376 * match.pd: ... to a pattern here.
19377
19378 2015-07-24 Jiong Wang <jiong.wang@arm.com>
19379
19380 Revert:
19381 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19382 PR target/63521
19383 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19384 (HONOR_REG_ALLOC_ORDER): Define.
19385
19386 2015-07-24 Richard Biener <rguenther@suse.de>
19387
19388 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19389 * fold-const.c (fold_comparison): Move parameter does not
19390 alias &local simplification ...
19391 * match.pd: ... as a pattern here.
19392
19393 2015-07-24 Richard Biener <rguenther@suse.de>
19394
19395 * gimple-fold.c (replace_stmt_with_simplification): Special-case
19396 valueizing call operands.
19397 * gimple-match-head.c (maybe_push_res_to_seq): Take
19398 number of call arguments from ops array.
19399 (do_valueize): New function.
19400 (gimple_simplify): Return true if valueization changed
19401 any operand even if the result didn't simplify further.
19402
19403 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19404
19405 PR middle-end/25530
19406 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19407
19408 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19409
19410 PR middle-end/25529
19411 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19412
19413 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19414
19415 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19416 instruction.
19417
19418 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19419
19420 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19421 clean up.
19422
19423 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
19424
19425 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19426 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
19427 targets here.
19428 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19429 ms_va_list_type_node initialization.
19430
19431 2015-07-23 Jeff Law <law@redhat.com>
19432
19433 PR lto/66752
19434 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19435 unable to find X NE 0 in the tables, return X as the simplified
19436 condition.
19437 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19438 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19439 to VISISTED_BBS. */
19440 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19441 after removing the control flow statement and unnecessary edges.
19442
19443 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19444
19445 * tree-pass.h (get_current_pass_name): Removed.
19446
19447 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19448
19449 PR rtl-optimization/64164
19450 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19451 * tree-ssa-copyrename.c: Removed.
19452 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19453 -ftree-coalesce-vars.
19454 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19455 * common.opt (ftree-copyrename): Ignore.
19456 (ftree-coalesce-inlined-vars): Likewise.
19457 * doc/invoke.texi: Remove the ignored options above.
19458 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19459 * tree-ssa-coalesce.h: ... here.
19460 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19461 headers required by it.
19462 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19463 across variables when flag_tree_coalesce_vars. Check register
19464 use and promoted modes to allow coalescing. Moved to
19465 tree-ssa-coalesce.c.
19466 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19467 with its member functions to tree-ssa-coalesce.c.
19468 (var_map_base_init): Likewise. Renamed to
19469 compute_samebase_partition_bases.
19470 (partition_view_normal): Drop want_bases parameter.
19471 (partition_view_bitmap): Likewise.
19472 * tree-ssa-live.h: Adjust declarations.
19473 * tree-ssa-coalesce.c: Include explow.h.
19474 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19475 default defs at the entry point.
19476 (dump_part_var_map): New.
19477 (compute_optimized_partition_bases): New, called by...
19478 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19479 of compute_samebase_partition_bases. Adjust.
19480 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19481 * cfgexpand.c (leader_merge): New.
19482 (get_rtl_for_parm_ssa_default_def): New.
19483 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19484 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19485 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19486 redundant MEM attr setting.
19487 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19488 from...
19489 (expand_one_stack_var): ... this. New wrapper to check and
19490 skip already expanded SSA partitions.
19491 (record_alignment_for_reg_var): New, factored out of...
19492 (expand_one_var): ... this.
19493 (expand_one_ssa_partition): New.
19494 (adjust_one_expanded_partition_var): New.
19495 (expand_one_register_var): Check and skip already expanded SSA
19496 partitions.
19497 (expand_used_vars): Don't create DECLs for anonymous SSA
19498 names. Expand all SSA partitions, then adjust all SSA names.
19499 (pass::execute): Replace the loops that set
19500 SA.partition_to_pseudo from partition leaders and cleared
19501 DECL_RTL for multi-location variables, and that which used to
19502 rename vars and set attrs, with one that clears DECL_RTL and
19503 checks that PARMs and RESULTs default_defs match DECL_RTL.
19504 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19505 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19506 * explow.c (promote_ssa_mode): New.
19507 * explow.h (promote_ssa_mode): Declare.
19508 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19509 * function.c: Include cfgexpand.h.
19510 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19511 (use_register_for_parm_decl): Wrapper for the above to
19512 special-case the result_ptr.
19513 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19514 (split_complex_args): Take assign_parm_data_all argument.
19515 Pass it to rtl_for_parm. Set up rtl and context for split
19516 args.
19517 (assign_parms_augmented_arg_list): Adjust.
19518 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19519 multiple locations. Recognize split complex args.
19520 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19521 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19522 (assign_parm_setup_block): Prefer SSA-assigned location.
19523 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19524 if stack_parm is NULL.
19525 (assign_parm_setup_stack): Prefer SSA-assigned location.
19526 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19527 rtl before testing for pointer bounds. Special-case result_ptr.
19528 (expand_function_start): Maybe reset DECL_RTL of result.
19529 Prefer SSA-assigned location for result and static chain.
19530 Factor out DECL_RESULT and SET_DECL_RTL.
19531 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19532 anonymous SSA names. Use promote_ssa_mode.
19533 (get_temp_reg): Likewise.
19534 (remove_ssa_form): Adjust.
19535 * stor-layout.c (layout_decl): Don't set mem attributes of
19536 non-MEMs.
19537 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19538 and get its reg_usage for reg invalidation.
19539 (compute_bb_dataflow): Pass it insn.
19540 (emit_notes_in_bb): Likewise.
19541
19542 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
19543
19544 PR target/66217
19545 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19546 prototype.
19547 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19548 (rs6000_emit_2insn_and): Handle dot forms.
19549 * config/rs6000/rs6000.md (and<mode>3): Adjust.
19550 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
19551 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19552
19553 2015-07-23 Richard Biener <rguenther@suse.de>
19554
19555 * generic-match-head.c: Include cgraph.h.
19556 * gimple-match-head.c: Likewise.
19557 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19558 SSA names.
19559 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19560 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
19561 pattern.
19562
19563 2015-07-23 Richard Biener <rguenther@suse.de>
19564
19565 * gimple-fold.c (fold_gimple_cond): Do not require folding
19566 results to pass valid_gimple_rhs_p.
19567 * tree-cfg.h (fold_cond_expr_cond): Remove.
19568 * tree-cfg.c (fold_cond_expr_cond): Likewise.
19569 (make_edges): Do not call it.
19570 * tree-inline.c (tree_function_versioning): Likewise.
19571
19572 2015-07-23 Tom de Vries <tom@codesourcery.com>
19573
19574 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19575 vect_force_simple_reduction.
19576 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19577 (vect_is_simple_reduction_1): Add and handle
19578 need_wrapping_integral_overflow parameter.
19579 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19580 need_wrapping_integral_overflow parameter.
19581 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19582 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19583 decl.
19584
19585 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
19586
19587 PR tree-optimization/66926,66951
19588 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19589 INNER_LOOP and fix up condition for renaming virtual operands.
19590
19591 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19592
19593 * combine.c (try_combine): Use std::swap instead of manually
19594 swapping.
19595
19596 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
19597
19598 * config/mips/i6400.md: New file.
19599 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19600 (mips64r6): Likewise.
19601 (i6400): Define.
19602 * config/mips/mips-tables.opt: Regenerate.
19603 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19604 (mips_issue_rate): Add support for i6400.
19605 (mips_multipass_dfa_lookahead): Likewise.
19606 * config/mips/mips.h (TUNE_I6400): Define.
19607 * config/mips/mips.md: Include i6400.md.
19608 (processor): Add i6400.
19609 * doc/invoke.texi (-march=@var{arch}): Add i6400.
19610
19611 2015-07-23 Richard Biener <rguenther@suse.de>
19612
19613 PR middle-end/66916
19614 * match.pd: Guard widen and sign-change comparison simplification
19615 with single_use.
19616
19617 2015-07-23 Richard Biener <rguenther@suse.de>
19618
19619 PR tree-optimization/66945
19620 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19621 ::before_dom_children): Force the propagators idea of
19622 non-executable edges to materialize, not what the folder
19623 chooses.
19624
19625 2015-07-23 Richard Biener <rguenther@suse.de>
19626
19627 * gimple.h (gimple_cond_make_false): Use 0 != 0.
19628 (gimple_cond_make_true): Use 1 != 0.
19629
19630 2015-07-22 DJ Delorie <dj@redhat.com>
19631
19632 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19633 slashes.
19634
19635 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19636 (ashrhi3): Likewise.
19637 (lshrhi3): Likewise.
19638 (movhi): Take advantage of zero-extend to load small constants.
19639 (movpsi): Likewise.
19640 (and<mode>3): Likewise.
19641 (zero_extendqihi2): Likewise.
19642 (zero_extendqisi2): New.
19643 * config/msp430/constraints.md (N,O): New.
19644 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19645
19646 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
19647
19648 PR target/66954
19649 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19650 to enum feature_priority and feature_list.
19651 (fold_builtin_cpu): Add F_AES to enum processor_features
19652 and isa_names_table.
19653
19654 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
19655
19656 PR driver/66737
19657 * config/i386/linux-common.h (MPX_SPEC): Use linker option
19658 for 64bit target only.
19659
19660 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
19661
19662 * config/nvptx/nvptx.c: Expand some comments.
19663
19664 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
19665
19666 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
19667 (cortex_a53_advsimd): ...This.
19668
19669 2015-07-22 Richard Biener <rguenther@suse.de>
19670
19671 * genmatch.c (expr::gen_transform): Clarify error message
19672 and display location.
19673
19674 2015-07-22 Richard Biener <rguenther@suse.de>
19675
19676 * genmatch.c (struct operand): Add location member.
19677 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
19678 constructors.
19679 (struct simplify): Remove match_location and result_location
19680 members.
19681 (elsehwere): Adjust.
19682
19683 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
19684
19685 * config/mips/m5100.md: New file.
19686 * config/mips/mips-cpus.def (m5100, m5101): Define.
19687 * config/mips/mips-tables.opt: Regenerate.
19688 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
19689 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
19690 -march=m5101 to -mips32r5.
19691 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19692 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19693 !-msoft-float.
19694 * config/mips/mips.md: Include m5100.md.
19695 (processor): Add m5100.
19696 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19697
19698 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
19699
19700 * config/mips/mips-cpus.def (interaptiv): Define.
19701 * config/mips/mips-tables.opt: Regenerate.
19702 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19703 -mips32r2.
19704 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19705 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19706
19707 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19708
19709 PR target/63521
19710 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19711 (HONOR_REG_ALLOC_ORDER): Define.
19712
19713 2015-07-22 Richard Biener <rguenther@suse.de>
19714
19715 PR tree-optimization/66952
19716 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19717 blocks we end up executing unconditionally reset all SSA
19718 info such as range and alignment.
19719 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19720 * tree-ssanames.c (reset_flow_sensitive_info): New function.
19721
19722 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19723
19724 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19725 typo in attribute.
19726
19727 2015-07-22 Richard Biener <rguenther@suse.de>
19728
19729 * genmatch.c (parser::parse_result): Properly handle
19730 match with result operands and conditions.
19731
19732 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19733
19734 PR target/63870
19735 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19736 Add qualifier_struct_load_store_lane_index.
19737 (aarch64_types_loadstruct_lane_qualifiers): Use
19738 qualifier_struct_load_store_lane_index for lane index argument for
19739 last argument.
19740 (aarch64_types_storestruct_lane_qualifiers): Ditto.
19741 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19742 (aarch64_simd_expand_args): Add new argument describing mode of
19743 builtin. Check lane bounds for arguments with
19744 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19745 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19746 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19747 (aarch64_simd_expand_builtin): Handle arguments with
19748 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19749 aarch64_simd_expand_args.
19750 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19751 vst[234]_lane with BUILTIN_VALLDIF.
19752 * config/aarch64/aarch64-simd.md:
19753 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19754 endianness reversal on lane index.
19755 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19756 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19757 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19758 (vec_store_lanesci_lane<mode>): Ditto.
19759 (vec_store_lanesxi_lane<mode>): Ditto.
19760 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19761 reversal of lane index.
19762 (aarch64_ld3_lane<mode>): Ditto.
19763 (aarch64_ld4_lane<mode>): Ditto.
19764 (aarch64_st2_lane<mode>): Ditto.
19765 (aarch64_st3_lane<mode>): Ditto.
19766 (aarch64_st4_lane<mode>): Ditto.
19767 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19768 to qmode. Add new mode parameter. Update uses.
19769 (__LD3_LANE_FUNC): Ditto.
19770 (__LD4_LANE_FUNC): Ditto.
19771 (__ST2_LANE_FUNC): Ditto.
19772 (__ST3_LANE_FUNC): Ditto.
19773 (__ST4_LANE_FUNC): Ditto.
19774
19775 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
19776
19777 * doc/invoke.texi (Language Independent Options): Rename node to
19778 Diagnostic Message Formatting Options.
19779
19780 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
19781
19782 PR ipa/66424.
19783 * lra-remat.c (operand_to_remat): Prevent using insns with input
19784 subregs processed separately by IRA.
19785
19786 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
19787
19788 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19789 straight loops.
19790 (single_imm_use): Check for iterator node.
19791 (num_imm_uses): Likewise.
19792 * tree-ssa-operands.c (has_zero_uses_1): Delete.
19793 (single_imm_use_1): Check for iterator node.
19794
19795 2015-07-21 Mike Frysinger <vapier@gentoo.org>
19796 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19797
19798 * configure.ac: Add check for new options in isl-0.15.
19799 * config.in, configure: Rebuilt.
19800 * graphite-blocking.c: Include <isl/constraint.h>
19801 * graphite-interchange.c, graphite-poly.c: Likewise.
19802 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19803 * graphite.c: Likewise.
19804 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19805 <isl/union_set.h>.
19806 * graphite-dependences.c: Include <isl/constraint.h>.
19807 (max_number_of_out_dimensions): Returns isl_stat.
19808 (extend_schedule_1): Likewise
19809 (extend_schedule): Corresponding changes.
19810 * graphite-optimize-isl.c: Include <isl/constraint.h> and
19811 <isl/union_set.h>.
19812 (getSingleMap): Change return type of isl_stat.
19813 (optimize_isl): Conditionally use
19814 isl_options_set_schedule_serialize_sccs.
19815 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19816 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19817
19818 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
19819
19820 PR target/66956
19821 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19822 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19823
19824 2015-07-21 Richard Biener <rguenther@suse.de>
19825
19826 PR tree-optimization/66948
19827 * genmatch.c (capture_info::walk_match): Also recurse to
19828 captures. Properly compute expr state from captures of
19829 captures.
19830 * match.pd: Add single-use guards to
19831 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19832
19833 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
19834
19835 * config/nvptx/mkoffload.c (process): Add static destructor call.
19836
19837 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19838
19839 PR middle-end/66915
19840 * match.pd (A - B -> A + (-B)): Don't allow folding
19841 when type if a fixed-point type.
19842
19843 2015-07-20 DJ Delorie <dj@redhat.com>
19844
19845 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19846 (iorqi3_real): Likewise for set1.
19847
19848 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
19849
19850 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19851 for !TARGET_64BIT.
19852
19853 2015-07-20 Aditya Kumar <hiraditya@msn.com>
19854
19855 * graphite-isl-ast-to-gimple.c:
19856 Refactor so that each function can access 'region'. This will help
19857 maintain a parameter rename_map within a region.
19858
19859 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19860
19861 * config/rs6000/rs6000.md (*lt0_disi): New.
19862
19863 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19864
19865 PR target/66217
19866 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
19867 "available letters" comment.
19868 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19869 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19870 and_2rld_operand): Delete.
19871 (and_operand): Adjust.
19872 (rotate_mask_operator): New.
19873 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19874 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19875 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19876 extract_ME): Delete.
19877 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19878 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19879 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19880 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19881 rs6000_emit_2insn_and): New.
19882 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19883 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19884 includes_rldic_lshift_p, includes_rldicr_lshift_p,
19885 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19886 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19887 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19888 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19889 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19890 rs6000_emit_2insn_and): New.
19891 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19892 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19893 handling.
19894 <NOT>: Don't fall through to next case.
19895 <AND>: Handle the various rotate-and-mask cases directly.
19896 <IOR>: Always cost as one insn.
19897 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19898 (and<mode>3): Adjust expander for the new patterns.
19899 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19900 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19901 (*and<mode>3_imm_dot_shifted): New.
19902 (*and<mode>3_mask): Delete, rewrite as ...
19903 (and<mode>3_mask): ... New.
19904 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19905 (andsi3_internal0_nomc): Delete.
19906 (*andsi3_internal6): Delete.
19907 (*and<mode>3_2insn): New.
19908 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19909 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19910 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19911 *insvdi_internal3): Delete.
19912 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19913 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19914 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19915 *ior<mode>_mask): New.
19916 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19917 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19918 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19919 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19920 Delete.
19921 (ashr<mode>3): Delete expander.
19922 (*ashr<mode>3): Rename to ...
19923 (ashr<mode>3): ... This.
19924 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19925 (*rotldi3_internal4, *rotldi3_internal5 and split,
19926 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19927 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19928 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19929 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19930 (splitter for loading a mask): Adjust.
19931 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19932
19933 2015-07-20 Marek Polacek <polacek@redhat.com>
19934
19935 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19936 output_add_clobbers, output_added_clobbers_hard_reg_p,
19937 gen_rtx_scratch): Remove declarations.
19938
19939 2015-07-20 Marek Polacek <polacek@redhat.com>
19940
19941 PR c++/55095
19942 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19943
19944 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19945
19946 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19947 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19948
19949 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19950
19951 * combine.c (combine_simplify_rtx): Move simplification step
19952 before various transformations/substitutions.
19953
19954 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
19955
19956 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19957 (struct int_traits): Likewise.
19958
19959 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19960
19961 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19962 function to vmsdbgout_function_decl.
19963
19964 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19965
19966 PR target/66922
19967 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19968 from misaligned positions.
19969 (ix86_expand_pinsr): Reject insertions to misaligned positions.
19970
19971 2015-07-18 Sebastian Pop <s.pop@samsung.com>
19972
19973 PR middle-end/46851
19974 PR middle-end/60340
19975 * Makefile.in: Removed omega.o.
19976 * common.opt: Document flag fcheck-data-deps as deprecated.
19977 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19978 its associated params: omega-max-vars, omega-max-geqs,
19979 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19980 omega-max-keys, omega-eliminate-redundant-constraints.
19981 * doc/loop.texi: Remove all the section on Omega.
19982 * graphite-blocking.c: Include missing params.h: it used to be
19983 included through tree-data-ref.h and omega.h.
19984 * graphite-isl-ast-to-gimple.c: Same.
19985 * graphite-optimize-isl.c: Same.
19986 * graphite-sese-to-poly.c: Same.
19987 * graphite.c: Same.
19988 * omega.c: Remove.
19989 * omega.h: Remove.
19990 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19991 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19992 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19993 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19994 * passes.def: Remove pass_check_data_deps.
19995 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19996 (dump_conflict_function): Same.
19997 (dump_subscript): Same.
19998 (print_direction_vector): Same.
19999 (print_dir_vectors): Same.
20000 (print_lambda_vector): Same.
20001 (print_dist_vectors): Same.
20002 (dump_data_dependence_relation): Same.
20003 (dump_data_dependence_relations): Same.
20004 (dump_dist_dir_vectors): Same.
20005 (dump_ddrs): Same.
20006 (init_omega_eq_with_af): Removed.
20007 (omega_extract_distance_vectors): Removed.
20008 (omega_setup_subscript): Removed.
20009 (init_omega_for_ddr_1): Removed.
20010 (init_omega_for_ddr): Removed.
20011 (ddr_consistent_p): Removed.
20012 (compute_affine_dependence): Do not use omega to check data
20013 dependences.
20014 (compute_data_dependences_for_bb): Removed.
20015 (analyze_all_data_dependences): Removed.
20016 (tree_check_data_deps): Removed.
20017 * tree-data-ref.h: Do not include omega.h.
20018 (compute_data_dependences_for_bb): Removed.
20019 (tree_check_data_deps): Removed.
20020 * tree-ssa-loop.c (pass_check_data_deps): Removed.
20021 (make_pass_check_data_deps): Removed.
20022 * tree-ssa-phiopt.c: Include params.h.
20023 * tree-vect-data-refs.c: Same.
20024 * tree-vect-slp.c: Same.
20025
20026 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20027
20028 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20029 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
20030 (mem->fpreg splitters): Ditto.
20031 (general_operand->nonimmediate_operand splitter): Use explicit modes.
20032 Disable DFmode for TARGET_64BIT.
20033
20034 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
20035
20036 PR target/66906
20037 * config/i386/i386.c (ix86_expand_prologue): Replicate static
20038 chain on the stack.
20039
20040 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20041
20042 * config/nvptx/mkoffload.c (process): Constify host data.
20043 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20044 Constify host data.
20045 (generate_host_descr_file): Likewise.
20046
20047 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
20048 Sebastian Pop <s.pop@samsung.com>
20049
20050 PR middle-end/61929
20051 * graphite-dependences.c (add_pdr_constraints): Renamed
20052 pdr->extent to pdr->subscript_sizes.
20053 * graphite-interchange.c (build_linearized_memory_access): Add
20054 back all gcc_assert's that the "isl_int to isl_val conversion"
20055 patch has removed. Refactored.
20056 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20057 * graphite-poly.c (new_poly_dr): Same.
20058 (free_poly_dr): Same.
20059 * graphite-poly.h (struct poly_dr): Same.
20060 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20061 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20062 * graphite-scop-detection.h: Fix space.
20063 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20064 back all gcc_assert's removed by a previous patch.
20065 (wrap): Remove the_isl_ctx global variable that the same patch has
20066 added.
20067 (build_loop_iteration_domains): Same.
20068 (add_param_constraints): Same.
20069 (pdr_add_data_dimensions): Same. Refactored.
20070 (build_poly_dr): Renamed extent to subscript_sizes.
20071
20072 2015-07-17 Marek Polacek <polacek@redhat.com>
20073
20074 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20075 * match.pd: ... here.
20076
20077 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20078
20079 * config/nvptx/mkoffload.c (process): Constify target data.
20080 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20081 Constify target data.
20082 (generate_target_offloadend_file): Likewise.
20083
20084 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20085
20086 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20087 to allow renaming of PHI arguments on edges incoming from outer
20088 loop header, add corresponding check before start PHI iterator.
20089 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20090 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20091 with true force_vectorize. Set-up dominator for outer loop too.
20092 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20093 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20094 was marked with force_vectorize and has restricted cfg.
20095 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20096 inner loop.
20097 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20098 do peeling for outer loops.
20099
20100 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20101 Matthias Klose <doko@ubuntu.com>
20102
20103 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20104 build-sysroot, sysroot from the `Miscenalleous configure options' to
20105 the `Directories' section and strip trailing `/' from with_sysroot.
20106 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20107 * configure: Regenerated.
20108
20109 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20110
20111 PR target/66824
20112 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20113 (TARGET_HARD_DF_REGS): Ditto.
20114 (TARGET_HARD_XF_REGS): Ditto.
20115 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20116 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20117 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20118 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20119 (*movsf_internal): Add alternatives 16 and 17. Enable
20120 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20121
20122 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20123
20124 PR rtl-optimization/66891
20125 * calls.c (expand_call): Wrap precompute_register_parameters with
20126 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20127
20128 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20129
20130 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20131 Define target data struct and initialize it.
20132
20133 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20134
20135 PR rtl-optimization/66626
20136 * ira.h (emit-rtl.h): Include.
20137 (non_spilled_static_chain_regno_p): New.
20138 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20139 unless it is non spilled static chain pseudo.
20140 (assign_hard_rego): Spill memory profitable allocno unless it is
20141 non spilled static chain pseudo.
20142 (allocno_spill_priority_compare): Put non spilled static chain
20143 pseudo at the end of sorted array.
20144 (improve_allocation): Do nothing if we have static chain and
20145 non-local goto.
20146 (allocno__priority_compare_func): Put non spilled static chain
20147 pseudo at the beginning of sorted array.
20148 (move_spill_restore): Ignore non spilled static chain pseudo.
20149 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20150 to non spilled static chain pseudo.
20151 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20152 pseudo at the beginning of sorted array.
20153 (spill_for): Spill non spilled static chain pseudo last.
20154 * lra-constraints.c (lra_constraints): Remove static chain pseudo
20155 check for equivalence.
20156
20157 2015-07-16 Martin Liska <mliska@suse.cz>
20158
20159 PR ipa/66896.
20160 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20161 dst_ctx if it does not exist.
20162
20163 2015-07-16 Martin Liska <mliska@suse.cz>
20164
20165 * hash-set.h (remove): New function.
20166 (iterator): New iteration class for hash_set.
20167
20168 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20169
20170 * genattrtab.c (make_canonical): Add a file_location parameter.
20171 Use fatal_at rather than fatal.
20172 (get_attr_value): Likewise. Update call to make_canonical.
20173 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20174 (make_internal_attr): Update calls accordingly.
20175
20176 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20177
20178 * read-md.h (message_with_line, error_with_line): Delete.
20179 * read-md.c (message_with_line, error_with_line): Delete.
20180 * gensupport.h: Include read-md.h.
20181 (md_rtx_info): New structure.
20182 (read_md_rtx): Use it. Return a bool success value.
20183 * gensupport.c (read_md_rtx): Likewise.
20184 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20185 (main): Update after interface changes.
20186 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20187 (main): Update after interface changes.
20188 * genattrtab.c (insn_code_number): Delete.
20189 (optimize_attrs): Add a max_insn_code parameter and use it instead
20190 of insn_code_number.
20191 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20192 Use *_at rather than *_with_line functions.
20193 (gen_insn): Likewise.
20194 (gen_delay): Likewise.
20195 (gen_insn_reserv): Likewise.
20196 (gen_bypass): Take an md_rtx_info rather than an rtx.
20197 (main): Update after interface changes. Use a local max_insn_code
20198 variable instead of insn_code_number.
20199 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20200 an rtx. Use fatal_at rather than fatal.
20201 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20202 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20203 (gen_absence_set, gen_final_absence_set, gen_automaton)
20204 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20205 (main): Update after interface changes.
20206 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20207 and code number.
20208 (main): Update after interface changes.
20209 * genconditions.c (main): Use new read_md_rtx interface.
20210 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20211 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20212 (main): Update after interface changes.
20213 * genemit.c (insn_code_number, insn_index_number): Delete.
20214 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20215 Use fatal_at rather than fatal.
20216 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
20217 rather than fatal.
20218 (gen_split): Likewise.
20219 (main): Update after interface changes.
20220 * genextract.c (line_no): Delete.
20221 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20222 Update call to walk_rtx.
20223 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
20224 rather than message_with_line.
20225 (walk_rtx): Add an md_rtx_info argument. Update call to
20226 VEC_safe_set_locstr.
20227 (main): Update after interface changes.
20228 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20229 and lineno. Use error_at rather than separate message_with_line
20230 calls and have_error assignments.
20231 (main): Update after interface changes.
20232 * genmddump.c (main): Use new read_md_rtx interface.
20233 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20234 (main): Update after interface changes.
20235 * genoutput.c (next_code_number): Delete.
20236 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20237 (gen_peephole, gen_expand, gen_split): Likewise.
20238 (note_constraint): Likewise. Use *_at rather than *_with_line
20239 functions.
20240 (main): Update after interface changes.
20241 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20242 rtx and lineno.
20243 (main): Update after interface changes.
20244 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20245 than an rtx and lineno.
20246 (process_define_constraint): Likewise.
20247 (process_define_register_constraint): Likewise.
20248 (main): Update after interface changes.
20249 * genrecog.c (next_insn_code, pattern_lineno): Delete.
20250 (validate_pattern): Replace top-level rtx with an md_rtx_info.
20251 Use *_at rather than *_with_line functions.
20252 (match_pattern_2): Likewise.
20253 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20254 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20255 Use *_at rather than *_with_line functions.
20256 * gentarget-def.c (add_insn): New function.
20257 (main): Use it. Use new read_md_rtx interface.
20258
20259 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20260
20261 * gensupport.h (compute_test_codes): Take a file_location rather
20262 than a line number.
20263 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
20264 rather than *_with_line functions.
20265 (process_define_predicate): Update call to compute_test_codes.
20266 * genpreds.c (validate_exp): Take a file_location rather than a
20267 line number. Use *_at functions rather than *_with_line functions.
20268 (process_define_predicate): Update call to validate_exp.
20269 (constraint_data): Replace lineno field with a file_location.
20270 (add_constraint): Take a file_location rather than a line number.
20271 Use *_at functions rather than *_with_line functions. Fix error
20272 message for address constraints. Update after changes to
20273 validate_exp, constraint_data and compute_test_codes.
20274 (process_define_constraint): Update accordingly.
20275 (process_define_register_constraint): Likewise.
20276
20277 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20278
20279 * genoutput.c (data): Use a file_location to record the source
20280 position.
20281 (nothing): Delete.
20282 (idata, idata_end): Remove initialization.
20283 (constraint_data): Replace lineno with a file_location.
20284 (output_insn_data): Update after changes to data.
20285 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20286 (scan_operands): Likewise, using *_at rather than *_with_line
20287 functions.
20288 (process_template): Likewise.
20289 (validate_insn_alternatives): Likewise.
20290 (validate_insn_operands): Likewise.
20291 (validate_optab_operands): Likewise.
20292 (init_insn_for_nothing): Initialize idata and idata_end.
20293 (note_constraint): Update after changes to constraint_data,
20294 using at rather than with_line functions.
20295 (mdep_constraint_len): Take a file_location rather than a
20296 line number. Use at rather than with_line functions.
20297
20298 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20299
20300 * read-md.h (fatal_at): Declare.
20301 * read-md.c (fatal_at): New function.
20302 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20303 to record the source position.
20304 (check_attr_test): Take a file_location instead of a line number.
20305 Use fatal_at instead of fatal.
20306 (check_attr_value): Update after above changes, using "at"
20307 rather than "with_line" reporting functions.
20308 (convert_set_attr_alternative): Likewise.
20309 (gen_attr): Likewise.
20310 (check_defs): Likewise. Don't assign to read_md_filename.
20311 (gen_insn): Update initialization after above changes.
20312 (gen_delay): Likewise.
20313 (write_insn_cases): Print the filename for a define_peephole.
20314 (gen_insn_reserv): Take a line number as argument and update
20315 the call to check_attr_test.
20316 (main): Pass a line number to gen_insn_reserv.
20317
20318 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20319
20320 * read-md.h (file_location): New structure.
20321 (directive_handler_t): Take a file_location rather than a line number.
20322 (message_at, error_at): Declare.
20323 (read_skip_construct): Delete.
20324 * read-md.c (message_with_line_1): Replace with...
20325 (message_at_1): ...this new function.
20326 (message_at, error_at): New functions.
20327 (message_with_line, error_with_line): Update to use message_at_1.
20328 (handle_enum): Take a file_location rather than a line number
20329 and use error_at for error reporting.
20330 (handle_include): Likewise.
20331 (read_skip_construct): Likewise. Make static.
20332 (handle_file): Update after above changes. Pass a file_location
20333 rather than a line number to handle_directive.
20334 * gensupport.c (queue_elem): Replace separate filename and lineno
20335 with a file_location.
20336 (queue_pattern): Replace filename and lineno arguments with a
20337 file_location. Update after change to queue_elem.
20338 (process_define_predicate): Replace lineno argument with a
20339 file_location and use error_at for error reporting. Update
20340 after above changes.
20341 (process_rtx): Likewise.
20342 (subst_pattern_match): Likewise.
20343 (get_alternatives_number): Likewise.
20344 (alter_predicate_for_insn): Likewise.
20345 (rtx_handle_directive): Likewise.
20346 (is_predicable): Update after above changes, using error_at rather
20347 than error_with_line.
20348 (has_subst_attribute): Likewise.
20349 (identify_predicable_attribute): Likewise.
20350 (alter_attrs_for_subst_insn): Likewise.
20351 (process_one_cond_exec): Likewise.
20352 (process_substs_on_one_elem): Likewise.
20353 (process_define_subst): Likewise.
20354 (check_define_attr_duplicates): Likewise.
20355 (read_md_rtx): Update after change to queue_elem.
20356
20357 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20358
20359 * genoutput.c (next_index_number): Delete.
20360 (data): Remove index_number.
20361 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20362 (main): Remove manipulation of next_index_number.
20363
20364 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20365
20366 * genattrtab.c (check_attr_value): Remove handling of null attrs.
20367 (make_canonical): Likewise.
20368
20369 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
20370
20371 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20372 instead of adjust_address_nv.
20373 (restore_stack_nonlocal): Likewise.
20374 (nonlocal_goto): Likewise.
20375
20376 2015-07-16 Tom de Vries <tom@codesourcery.com>
20377
20378 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20379 not have a corresponding loop header phi.
20380
20381 2015-07-16 Tom de Vries <tom@codesourcery.com>
20382
20383 * tree-parloops.c (create_loads_for_reductions): Handle case that
20384 reduction is unused.
20385
20386 2015-07-16 Richard Biener <rguenther@suse.de>
20387
20388 PR tree-optimization/66894
20389 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20390 about deriving NE_EXPR from truncated values.
20391
20392 2015-07-16 Martin Liska <mliska@suse.cz>
20393
20394 * alloc-pool.h
20395 (object_allocator): Add new class.
20396 (pool_allocator::initialize): Use the underlying class.
20397 (pool_allocator::allocate): Likewise.
20398 (pool_allocator::remove): Likewise.
20399 (operator new): A new generic allocator.
20400 * asan.c (struct asan_mem_ref): Remove unused members.
20401 (asan_mem_ref_new): Replace new operator with
20402 object_allocator::allocate.
20403 (free_mem_ref_resources): Change deallocation.
20404 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20405 with object_allocator.
20406 * config/sh/sh.c (add_constant): Replace new operator with
20407 object_allocator::allocate.
20408 (sh_reorg): Change call to a release method.
20409 * cselib.c (struct elt_list): Remove unused members.
20410 (new_elt_list): Replace new operator with
20411 object_allocator::allocate.
20412 (new_elt_loc_list): Likewise.
20413 (new_cselib_val): Likewise.
20414 (unchain_one_elt_list): Change delete operator with remove method.
20415 (unchain_one_elt_loc_list): Likewise.
20416 (unchain_one_value): Likewise.
20417 (cselib_finish): Release newly added static allocators.
20418 * cselib.h (struct cselib_val): Remove unused members.
20419 (struct elt_loc_list): Likewise.
20420 * df-problems.c (df_chain_alloc): Replace pool_allocator with
20421 object_allocator.
20422 * df-scan.c (struct df_scan_problem_data): Likewise.
20423 (df_scan_alloc): Likewise.
20424 * df.h (struct dataflow): Likewise.
20425 * dse.c (struct read_info_type): Likewise.
20426 (struct insn_info_type): Likewise.
20427 (struct dse_bb_info_type): Likewise.
20428 (struct group_info): Likewise.
20429 (struct deferred_change): Likewise.
20430 (get_group_info): Likewise.
20431 (delete_dead_store_insn): Likewise.
20432 (free_read_records): Likewise.
20433 (replace_read): Likewise.
20434 (check_mem_read_rtx): Likewise.
20435 (scan_insn): Likewise.
20436 (dse_step1): Likewise.
20437 (dse_step7): Likewise.
20438 * et-forest.c (struct et_occ): Remove unused members.
20439 (et_new_occ): Use allocate instead of new operator.
20440 (et_new_tree): Likewise.
20441 (et_free_tree): Call release method explicitly.
20442 (et_free_tree_force): Likewise.
20443 (et_free_pools): Likewise.
20444 (et_split): Use remove instead of delete operator.
20445 * et-forest.h (struct et_node): Remove unused members.
20446 * ipa-cp.c: Change pool_allocator to object_allocator.
20447 * ipa-inline-analysis.c: Likewise.
20448 * ipa-profile.c: Likewise.
20449 * ipa-prop.c: Likewise.
20450 * ipa-prop.h: Likewise.
20451 * ira-build.c (initiate_cost_vectors): Cast return value.
20452 (ira_allocate_cost_vector): Likewise.
20453 * ira-color.c (struct update_cost_record): Remove unused members.
20454 * lra-int.h (struct lra_live_range): Likewise.
20455 (struct lra_copy): Likewise.
20456 (struct lra_insn_reg): Likewise.
20457 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20458 * lra.c (new_insn_reg): Replace new operator with allocate method.
20459 (free_insn_regs): Same for operator delete.
20460 (finish_insn_regs): Release new static allocator.
20461 (finish_insn_recog_data): Likewise.
20462 (lra_free_copies): Replace delete operator with remove method.
20463 (lra_create_copy): Replace operator new with allocate method.
20464 (invalidate_insn_data_regno_info): Same for remove method.
20465 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20466 (free_debug_insn_changes): Replace delete operator with remove method.
20467 (replace_oldest_value_reg): Replace operator new with allocate method.
20468 (pass_cprop_hardreg::execute): Release new static variable.
20469 * sched-deps.c (sched_deps_init): Change pool_allocator to
20470 object_allocator.
20471 * sel-sched-ir.c: Likewise.
20472 * sel-sched-ir.h: Likewise.
20473 * stmt.c (expand_case): Likewise.
20474 (expand_sjlj_dispatch_table): Likewise.
20475 * tree-sra.c (struct access): Remove unused members.
20476 (struct assign_link): Likewise.
20477 (sra_deinitialize): Release newly added static pools.
20478 (create_access_1):Replace operator new with allocate method.
20479 (build_accesses_from_assign): Likewise.
20480 (create_artificial_child_access): Likewise.
20481 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20482 pool_allocator to object_allocator.
20483 * tree-ssa-pre.c: Likewise.
20484 * tree-ssa-reassoc.c: Likewise.
20485 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20486 * tree-ssa-strlen.c: Likewise.
20487 * tree-ssa-structalias.c: Likewise.
20488 * var-tracking.c (onepart_pool_allocate): New function.
20489 (unshare_variable): Use the newly added function.
20490 (variable_merge_over_cur): Likewise.
20491 (variable_from_dropped): Likewise.
20492 (variable_was_changed): Likewise.
20493 (set_slot_part): Likewise.
20494 (emit_notes_for_differences_1): Likewise.
20495 (vt_finalize): Release newly added static pools.
20496
20497 2015-07-16 Martin Jambor <mjambor@suse.cz>
20498
20499 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
20500 all uses. Fix two typos in its general comment.
20501 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
20502
20503 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
20504
20505 * config/i386/linux-common.h (LINK_MPX): New.
20506 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20507 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20508 indicating '-z bndplt' support by linker.
20509 * configure: Regenerate.
20510 * config.in: Regenerate.
20511
20512 2015-07-16 Richard Biener <rguenther@suse.de>
20513
20514 * fold-const.c (fold_widened_comparison): Remove.
20515 (fold_sign_changed_comparison): Likewise.
20516 (fold_comparison): Move widened and sign-changed comparison
20517 simplification ...
20518 * match.pd: ... to patterns here.
20519 * generic-match-head.c: Include target.h.
20520 * gimple-match-head.c: Likewise.
20521
20522 2015-07-16 Richard Biener <rguenther@suse.de>
20523
20524 * tree-ssa-dom.c (dom_valueize): New function.
20525 (record_temporary_equivalences): Also record equivalences
20526 for dominating stmts that have uses of equivalences we are
20527 about to record.
20528
20529 2015-07-16 Bin Cheng <bin.cheng@arm.com>
20530
20531 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20532 add_autoinc_candidates.
20533 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20534 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20535 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20536 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20537 Call new function.
20538 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20539 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20540 Remove parameter struct iv*. Call add_autoinc_candidates here.
20541 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20542 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20543 Call new function.
20544 (find_iv_candidates): Call new functions.
20545
20546 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
20547
20548 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20549 uninitialized-variable warning.
20550
20551 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
20552
20553 PR target/65249
20554 * config/sh/sh.md (movdi): Split simple reg move to two movsi
20555 when the destination is R0.
20556
20557 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
20558
20559 PR target/66866
20560 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20561 * config/i386/i386.c (ix86_expand_pextr): New function.
20562 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
20563 for non-lowpart subregs.
20564 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20565 (insv<mode>): Use SWI248 mode iterator.
20566 (insv<mode>_1): Ditto.
20567
20568 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20569 Sebastian Pop <s.pop@samsung.com>
20570
20571 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20572 iterator to use_stmt.
20573
20574 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20575 Sebastian Pop <s.pop@samsung.com>
20576
20577 * graphite-scop-detection.c (build_scops_1): Discard scops for
20578 which entry==exit.
20579
20580 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20581 Sebastian Pop <s.pop@samsung.com>
20582
20583 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20584 case of a return statement in scop.
20585
20586 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20587 Sebastian Pop <s.pop@samsung.com>
20588
20589 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20590 INTEGER_TYPE parameters.
20591 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20592 VECTOR_CST in scan_tree_for_params.
20593 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20594
20595 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20596
20597 * gimple-pretty-print.h: Don't include pretty-print.h.
20598 * tree-streamer.h: Don't include lto-streamer.h.
20599 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20600 * gimple-streamer-in.c: Remove redundant includes.
20601 * gimple-streamer-out.c: Likewise.
20602 * ipa-devirt.c: Likewise.
20603 * ipa-icf.c: Likewise.
20604 * ipa-inline-analysis.c: Likewise.
20605 * ipa-polymorphic-call.c: Likewise.
20606 * ipa-profile.c: Likewise.
20607 * ipa-prop.c: Likewise.
20608 * ipa-pure-const.c: Likewise.
20609 * lto-cgraph.c: Likewise.
20610 * lto-streamer-in.c: Likewise.
20611 * lto-streamer-out.c: Likewise.
20612 * lto-streamer.c: Likewise.
20613 * tree-streamer-in.c: Likewise.
20614 * tree-streamer-out.c: Likewise.
20615 * tree-streamer.c: Likewise.
20616
20617 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20618
20619 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20620 include input.h.
20621 * opts.c: Remove multiline #include comment.
20622
20623 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
20624
20625 * config/nvptx/mkoffload.c (process): Add C++ protection to
20626 emitted code.
20627
20628 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20629
20630 PR target/66854
20631 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20632 null before IEEE 128-bit floating point support patch.
20633
20634 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20635
20636 * simplify-rtx.c (simplify_ternary_operation): Add simplification
20637 for (!c) != {0,...,0} ? a : b for vector modes.
20638
20639 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
20640 Martin Jambor <mjambor@suse.cz>
20641
20642 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20643 struct func_body_info* instead of struct ipa_node_params*, expecting
20644 fbi->info to be filled in. Replace throughout. Adjust call to
20645 ipa_load_from_parm_agg.
20646 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20647 instead of struct ipa_node_params*. Adjust calls to other functions
20648 so that they pass either fbi or fbi->info.
20649 (set_switch_stmt_execution_predicate): Likewise.
20650 (will_be_nonconstant_predicate): Likewise.
20651 (compute_bb_predicates): Likewise.
20652 (estimate_function_body_sizes): Move asserts earlier. Fill in
20653 struct func_body_info, replace parms_info with fbi.info. Adjust
20654 calls to functions that now accept struct func_body_info.
20655 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
20656 (struct func_body_info): Likewise.
20657 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
20658 remove static. Adjust callers.
20659 (ipa_load_from_parm_agg): Remove.
20660 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
20661 (func_body_info): Likewise.
20662 (ipa_load_from_parm_agg): Adjust prototype.
20663
20664 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20665
20666 * gensupport.c (rtx_handle_directive): Adjust.
20667 * read-rtl.c (apply_iterators): Take vector to add rtxs to
20668 instead of expr list rtx.
20669 (add_define_attr_for_define_subst): Likewise.
20670 (add_define_subst_attr): Likewise.
20671 (read_subst_mapping): Likewise.
20672 (read_rtx): Likewise.
20673 * rtl.h (read_rtx): Adjust.
20674
20675 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20676
20677 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
20678
20679 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20680
20681 PR target/58066
20682 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
20683 (*tls_local_dynamic_base_64_<mode>): Ditto.
20684 (*tls_local_dynamic_base_64_largepic): Ditto.
20685 (tls_global_dynamic_64_<mode>): Update expander pattern.
20686 (tls_local_dynamic_base_64_<mode>): Ditto.
20687
20688 2015-07-15 Richard Biener <rguenther@suse.de>
20689
20690 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
20691 and bool_var == 1 -> bool_var simplifications ...
20692 * match.pd: ... to patterns here. Factor out negate_expr_p
20693 cases from the A - B -> A + (-B) patterns as negate_expr_p
20694 predicate and add a -(A + B) -> (-B) - A pattern.
20695
20696 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20697
20698 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20699
20700 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
20701 Robert Suchanek <robert.suchanek@imgtec.com>
20702
20703 * config/mips/mips.c (mips_int_mask): New enum.
20704 (mips_shadow_set): Likewise.
20705 (int_mask): New variable.
20706 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20707 (machine_function): Add int_mask and use_shadow_register_set.
20708 (mips_attribute_table): Add attribute handlers for interrupt and
20709 use_shadow_register_set.
20710 (mips_interrupt_mask): New static function.
20711 (mips_handle_interrupt_attr): Likewise.
20712 (mips_handle_use_shadow_register_set_attr): Likewise.
20713 (mips_use_shadow_register_set): Change return type to enum
20714 mips_shadow_set. Add argument handling for use_shadow_register_set
20715 attribute.
20716 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20717 compare with mips_shadow_set enum.
20718 (mips_compute_frame_info): Add interrupt mask and
20719 use_shadow_register_set to per-function information structure.
20720 Add a stack slot for EPC unconditionally.
20721 (mips_expand_prologue): Compare use_shadow_register_set value
20722 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
20723 masked interrupt register but in EIC mode use K0 and save Cause in K0.
20724 EPC saved and restored unconditionally. Use PMODE_INSN macro when
20725 copying the stack pointer from the shadow register set.
20726 * config/mips/mips.h (SR_IM0): New define.
20727 * config/mips/mips.md (mips_rdpgpr): Rename to...
20728 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
20729 * doc/extend.texi (Declaring Attributes of Functions): Document
20730 optional arguments for interrupt and use_shadow_register_set
20731 attributes.
20732
20733 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20734
20735 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20736 interrupt attribute.
20737 (mips_expand_prologue): Disable the floating point unit in an ISR.
20738 * config/mips/mips.h (SR_COP1): New define.
20739
20740 2015-07-15 Richard Biener <rguenther@suse.de>
20741
20742 * genmatch.c (parser::peek, parser::peek_ident): Add argument
20743 to tell how many tokens to peek ahead (default 1).
20744 (parser::eat_token, parser::eat_ident): Return token consumed.
20745 (parser::parse_result): Parse new switch statement.
20746 * match.pd: Use case statements where appropriate.
20747
20748 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20749
20750 PR rtl-optimization/58066
20751 * calls.c (expand_call): Precompute register parameters before stack
20752 alignment is performed.
20753
20754 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20755
20756 PR rtl-optimization/66838
20757 * postreload.c (reload_cse_move2add): Also process
20758 CALL_INSN_FUNCTION_USAGE when resetting information of
20759 call-clobbered registers.
20760
20761 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20762 Cesar Philippidis <cesar@codesourcery.com>
20763 Chung-Lin Tang <cltang@codesourcery.com>
20764
20765 * config/nios2/constraints.md (U, v): New constraints.
20766 * config/nios2/predicates.md (rdprs_dcache_operand): New.
20767 (ldstex_memory_operand): New.
20768 * config/nios2/sync.md: New file.
20769 * config/nios2/nios2.md (unspecv): Add new builtin function
20770 UNSPECV codes.
20771 (rdprs, flushd, flushda, wrpie, eni): New patterns.
20772 (top-level): Include sync.md.
20773 * config/nios2/nios2.c (N2_FTYPES): Add function types for
20774 new builtins.
20775 (N2_BUILTINS): Add arch field setting, add new builtins.
20776 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20777 for arch field.
20778 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20779 Also handle ldex/stex/ldsex/stsex builtins.
20780 (nios2_expand_rdprs_builtin): New function.
20781 (nios2_expand_cache_builtin): New function.
20782 (nios2_expand_wrpie_builtin): New function.
20783 (nios2_expand_eni_builtin): New function.
20784 (nios2_expand_builtin): Add arch field handling and new builtin
20785 cases.
20786 * doc/extend.texi (Altera Nios II Built-in Functions): Document
20787 new builtins.
20788 * doc/md.texi (Machine Constraints): Document U and v constraints.
20789
20790 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20791 Cesar Philippidis <cesar@codesourcery.com>
20792 Chung-Lin Tang <cltang@codesourcery.com>
20793
20794 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20795 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20796 callee_save_reg_size and uses_anonymous_args fields.
20797 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20798 (nios2_create_cfa_notes): New function.
20799 (nios2_adjust_stack): New function for adjusting stack.
20800 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20801 Use nios2_adjust_stack.
20802 (nios2_expand_epilogue): Likewise.
20803 (nios2_expand_return): New function.
20804 (nios2_can_use_return_insn): Update for CDX pop.n usage.
20805 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20806 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20807 * config/nios2/nios2.md (return): Use nios2_expand_return.
20808
20809 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20810 Cesar Philippidis <cesar@codesourcery.com>
20811 Chung-Lin Tang <cltang@codesourcery.com>
20812
20813 * config/nios2/predicates.md (pop_operation): New.
20814 (ldwm_operation, stwm_operation): New.
20815 (nios2_hard_register_operand): New.
20816 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20817 (ldstwm_operation_p): Declare.
20818 (gen_ldstwm_peep): Declare.
20819 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20820 (base_reg_adjustment_p): New.
20821 (pop_operation_p): New.
20822 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20823 (nios2_ldstwm_regset_p): New.
20824 (ldstwm_operation_p): New.
20825 (gen_ldst): New.
20826 (nios2_ldst_parallel): New.
20827 (struct ldswm_operand): Declare.
20828 (compare_ldstwm_operands): New.
20829 (can_use_cdx_ldstw): New.
20830 (gen_ldstwm_peep): New.
20831 * config/nios2/nios2-ldstwm.sml: New.
20832 * config/nios2/nios2.md: Include ldstwm.md.
20833 * config/nios2/ldstwm.md: Generated.
20834
20835 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20836 Cesar Philippidis <cesar@codesourcery.com>
20837 Chung-Lin Tang <cltang@codesourcery.com>
20838
20839 * config/nios2/nios2.h (LABEL_ALIGN): Define.
20840 (REG_ALLOC_ORDER): Define.
20841 (ADJUST_REG_ALLOC_ORDER): Define.
20842 (HONOR_REG_ALLOC_ORDER): Define.
20843 (CDX_REG_P): Define.
20844 (ANDCLEAR_INT): Define.
20845 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20846 (nios2_label_align): Declare.
20847 (nios2_cdx_narrow_form_p): Declare.
20848 (nios2_adjust_reg_alloc_order): Declare.
20849 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20850 operation.
20851 (nios2_large_unspec_reloc_p): New function, split from...
20852 (nios2_legitimate_pic_operand_p): ...here.
20853 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20854 (nios2_print_operand_punct_valid_p): New.
20855 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
20856 (split_mem_address): New.
20857 (split_alu_insn): New.
20858 (cdxreg): New.
20859 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20860 (enum nios2_add_insn_kind): New.
20861 (nios2_add_insn_names, nios2_add_insn_narrow): New.
20862 (nios2_add_insn_classify): New.
20863 (nios2_add_insn_asm): New.
20864 (nios2_cdx_narrow_form_p): New.
20865 (label_align, min_labelno, max_labelno): New.
20866 (nios2_reorg): New.
20867 (nios2_label_align): New.
20868 (nios2_adjust_reg_alloc_order): New.
20869 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20870 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20871 * config/nios2/constraints.md (P): New constraint.
20872 * config/nios2/predicates.md (const_and_operand): New.
20873 (and_operand): New.
20874 (stack_memory_operand): New.
20875 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20876 (length): Update to use nios2_cdx_narrow_form_p().
20877 (type): Add new insn type values.
20878 (control, alu, st, ld, shift): Update insn reservations with
20879 new insn type values.
20880 (*high, *lo_sum): Define new insn patterns for constant generation.
20881 (movqi_internal, movhi_internal, movsi_internal): Reduce
20882 alternatives, update asm template to handle CDX variants, update
20883 type attributes.
20884 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20885 template, update type attributes.
20886 (extendhisi2, extendqi<mode>2): Likewise.
20887 (addsi3): Change to use function for asm string.
20888 (subsi3): Add CDX notation to asm template, update type attributes.
20889 (negsi3, one_cmplsi3): Likewise.
20890 (andsi3): New pattern, specialized from logical patterns.
20891 (<code>si3): Remove and case, combine alternatives, update asm
20892 template.
20893 (<shift_op>si3): Add CDX notation, update type attributes.
20894 (rotrsi3): Update type attribute.
20895 (*merge, extzv, insv): New insn patterns.
20896 (return): Change to define_expand.
20897 (simple_return): Add CDX notation, update type attributes.
20898 (indirect_jump): Add CDX notation.
20899 (jump): Update asm cases, update length attribute expression.
20900 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20901 (nios2_cbranch): Update asm cases and length attribute expression
20902 to handle CDX variants.
20903 (nios2_cmp<code>): Update asm template.
20904 (nop): Add CDX notation, update type attributes.
20905 (trap): Add CDX notation.
20906 (ctrapsi4): Update asm cases and length attribute expression to
20907 handle CDX variant.
20908 * doc/md.texi (Machine Constraints): Document P constraint.
20909
20910 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20911 Cesar Philippidis <cesar@codesourcery.com>
20912 Chung-Lin Tang <cltang@codesourcery.com>
20913
20914 * config/nios2/nios2.h (SMALL_INT12): New macro.
20915 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20916 (nios2_valid_addr_expr_p): Use it.
20917 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20918 with implicit "io" instructions on R2.
20919 * config/nios2/constraints.md (w): New constraint.
20920 * config/nios2/predicates.md (ldstio_memory_operand): New.
20921 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20922 operand predicate and constraint.
20923 (ld<bh>io_signed, st<bhw>io>): Likewise.
20924 * doc/md.texi (Machine Constraints): Document w constraint.
20925
20926 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20927 Cesar Philippidis <cesar@codesourcery.com>
20928 Chung-Lin Tang <cltang@codesourcery.com>
20929
20930 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20931 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20932 Nios II architecture level.
20933 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20934 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20935 (OPTION_DEFAULT_SPECS): Define.
20936 (ASM_SPEC): Add -march= spec strings.
20937 * config/nios2/nios2.c (nios2_option_override): Check for
20938 conflicts involving new options.
20939 * config.gcc (nios2*-*-*): Support --with-arch=.
20940 * doc/invoke.texi (Option Summary, Nios II Options): Document
20941 -march=, -mbmx, and -mcdx.
20942
20943 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
20944
20945 PR rtl-optimization/66626
20946 * lra-constraints.c (lra_constraints): Prevent equivalence
20947 substitution for static chain pseudo in functions with nonlocal
20948 goto.
20949
20950 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20951
20952 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20953 (nios2_emit_stack_limit_check): Add size parameter. Handle
20954 -fstack-limit-symbol as well as -fstack-limit-register.
20955 (nios2_expand_prologue): Emit only a single stack limit check,
20956 even if multiple stack adjustments are required.
20957 (nios2_option_override): Diagnose unsupported combination of -fpic
20958 and -stack-limit-symbol.
20959
20960 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
20961
20962 * Makefile.in (top_srcdir): New.
20963 * configure.ac: Use AM_ZLIB.
20964 * configure: Regeneated.
20965
20966 2015-07-14 Matthias Klose <doko@ubuntu.com>
20967
20968 PR target/66840
20969 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20970
20971 2015-07-14 Richard Biener <rguenther@suse.de>
20972
20973 PR tree-optimization/66863
20974 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20975 what we record for conversion use stmt lhs inequalities.
20976
20977 2015-07-14 Richard Biener <rguenther@suse.de>
20978
20979 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20980 (decision_tree::gen_gimple): Likewise.
20981
20982 2015-07-14 Tom de Vries <tom@codesourcery.com>
20983
20984 * gcc.c (greater_than_spec_func): Declare forward.
20985 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20986 -ftree-parallelize-loops={0,1}.
20987 (static_spec_functions): Add greater_than_spec_func function with name
20988 "gt".
20989 (greater_than_spec_func): New function.
20990
20991 2015-07-14 Richard Biener <rguenther@suse.de>
20992
20993 * tree-ssa-dom.c (record_temporary_equivalences): Merge
20994 wideing type conversion case from record_equivalences_from_incoming_edge
20995 and use record_equality to record equivalences.
20996 (record_equivalences_from_incoming_edge): Call
20997 record_temporary_equivalences.
20998
20999 2015-07-14 Richard Biener <rguenther@suse.de>
21000
21001 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21002 (struct if_expr): New.
21003 (struct with_expr): Likewise.
21004 (is_a_helper): Add helpers for if_expr and with_expr.
21005 (struct simplify): Add simplify_kind enum and member. Remove
21006 ifexpr_vec member.
21007 (simplify::simplify): Adjust.
21008 (lower_commutative): Adjust.
21009 (lower_opt_convert): Likewise.
21010 (lower_cond): Likewise.
21011 (replace_id): Handle with_expr and if_expr.
21012 (lower_for): Adjust.
21013 (dt_simplify::gen_1): New recursive worker, split out from ...
21014 (dt_simplify::gen): ... here. Deal with if and with expansion
21015 recursively.
21016 (capture_info::capture_info): Take context argument
21017 (capture_info::walk_result): Only analyze specific result.
21018 (parser::parse_result): New function.
21019 (parser::parse_simplify): Adjust to parse ifs with then end
21020 else case.
21021 (parser::parse_if): Simplify.
21022 (parser::parse_pattern): Pass down simplify kind.
21023 * match.pd: Convert if structure to new syntax.
21024
21025 2015-07-13 Marek Polacek <polacek@redhat.com>
21026
21027 * rtl.c (rtx_equal_p_cb): Fix typo.
21028
21029 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
21030
21031 * omega.h: Don't include config.h, don't include params.h again if
21032 omega.h has already been included.
21033 * graphite-poly.h: Include sese.h.
21034 * graphite.c: Don't include sese.h, remove needless includes and
21035 minimize includes outside #ifdef HAVE_isl block.
21036 * graphite-blocking.c: Don't include sese.h, remove needless includes,
21037 and wrap entire file in #ifdef HAVE_isl
21038 * graphite-dependences.c: Likewise.
21039 * graphite-interchange.c: Likewise.
21040 * graphite-isl-ast-to-gimple.c: Likewise.
21041 * graphite-optimize-isl.c: Likewise.
21042 * graphite-poly.c: Likewise.
21043 * graphite-scop-detection.c: Likewise.
21044 * graphite-sese-to-poly.c: Likewise.
21045
21046 2015-07-13 Tom de Vries <tom@codesourcery.com>
21047
21048 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21049
21050 2015-07-13 Renlin Li <renlin.li@arm.com>
21051
21052 PR rtl/66556
21053 * simplify-rtx.c (simplify_const_relational_operation): Add
21054 side_effects_p checks.
21055
21056 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21057
21058 * bitmap.h: Fix double word typos.
21059 * builtins.c: Same.
21060 * calls.c: Same.
21061 * cfgloopmanip.c: Same.
21062 * cgraph.c: Same.
21063 * cgraph.h: Same.
21064 * cgraphclones.c: Same.
21065 * combine.c: Same.
21066 * config/aarch64/aarch64-protos.h: Same.
21067 * config/aarch64/aarch64.c: Same.
21068 * config/aarch64/aarch64.md: Same.
21069 * config/arm/arm.md: Same.
21070 * config/arm/arm1020e.md: Same.
21071 * config/arm/arm1026ejs.md: Same.
21072 * config/arm/arm926ejs.md: Same.
21073 * config/arm/fa526.md: Same.
21074 * config/arm/fa606te.md: Same.
21075 * config/arm/fa626te.md: Same.
21076 * config/arm/fa726te.md: Same.
21077 * config/arm/fmp626.md: Same.
21078 * config/darwin.c: Same.
21079 * config/epiphany/epiphany.c: Same.
21080 * config/frv/frv.c: Same.
21081 * config/ft32/ft32.c: Same.
21082 * config/gnu-user.h: Same.
21083 * config/h8300/constraints.md: Same.
21084 * config/i386/i386.c: Same.
21085 * config/i386/i386.md: Same.
21086 * config/iq2000/iq2000.md: Same.
21087 * config/mips/mips.c: Same.
21088 * config/mmix/mmix.md: Same.
21089 * config/moxie/moxie.c: Same.
21090 * config/nds32/nds32.md: Same.
21091 * config/pa/pa.h: Same.
21092 * config/rs6000/aix.h: Same.
21093 * config/rs6000/rs6000.h: Same.
21094 * config/sh/sh.c: Same.
21095 * config/tilegx/tilegx.md: Same.
21096 * config/tilepro/gen-mul-tables.cc: Same.
21097 * cse.c: Same.
21098 * dbxout.c: Same.
21099 * doc/invoke.texi: Same.
21100 * dse.c: Same.
21101 * dwarf2out.c: Same.
21102 * final.c: Same.
21103 * gcc.c: Same.
21104 * genmatch.c: Same.
21105 * gimplify.c: Same.
21106 * hash-table.h: Same.
21107 * internal-fn.c: Same.
21108 * ipa-cp.c: Same.
21109 * ipa-devirt.c: Same.
21110 * ipa-icf.c: Same.
21111 * ipa-icf.h: Same.
21112 * ipa-profile.c: Same.
21113 * ipa-prop.c: Same.
21114 * ipa-prop.h: Same.
21115 * ira.c: Same.
21116 * omp-low.c: Same.
21117 * reg-stack.c: Same.
21118 * regcprop.c: Same.
21119 * reorg.c: Same.
21120 * rtl.h: Same.
21121 * sbitmap.h: Same.
21122 * tree-eh.c: Same.
21123 * tree-inline.c: Same.
21124 * tree-sra.c: Same.
21125 * tree-ssa-dom.c: Same.
21126 * tree-ssa-loop-ivopts.c: Same.
21127 * tree-ssa-structalias.c: Same.
21128 * tree-ssa-tail-merge.c: Same.
21129 * tree-ssa-ter.c: Same.
21130 * tree-ssa-threadupdate.c: Same.
21131 * tree-ssa-uninit.c: Same.
21132 * tree-ssanames.c: Same.
21133 * tree-vect-loop-manip.c: Same.
21134 * tree-vrp.c: Same.
21135 * tree.c: Same.
21136 * valtrack.c: Same.
21137 * vec.h: Same.
21138
21139 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21140
21141 PR middle-end/66726
21142 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21143 tree_ssa_phiopt_worker): Call it.
21144
21145 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21146
21147 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21148 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21149 REG_EQUAL note.
21150
21151 2015-07-11 Marek Polacek <polacek@redhat.com>
21152
21153 PR middle-end/66353
21154 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21155 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21156 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21157 rather than bb_has_abnormal_call_pred.
21158 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21159 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21160 rather than bb_has_abnormal_call_pred.
21161
21162 2015-07-10 Anatoly Sokolov <aesok@post.ru>
21163
21164 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21165 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21166 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21167 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21168 v850_legitimate_address_p): New functions.
21169 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21170
21171 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
21172
21173 PR target/66819
21174 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21175 indirect sibcall with register arguments if register available
21176 for argument passing.
21177 (init_cumulative_args): Set cfun->machine->arg_reg_available
21178 to (cum->nregs > 0) or to true if function has a variable
21179 argument list.
21180 (function_arg_advance_32): Set cfun->machine->arg_reg_available
21181 to false if cum->nregs <= 0.
21182 * config/i386/i386.h (machine_function): Add arg_reg_available.
21183
21184 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21185
21186 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21187 and gen_higpart instead of gen_rtx_SUBREG.
21188 * config/i386/i386.md
21189 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21190 (read-modify peephole2): Use gen_lowpart instead of
21191 gen_rtx_SUBREG for operand 5.
21192
21193 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21194
21195 * config/tilepro/gen-mul-tables.cc (main): Change include list for
21196 generated files.
21197 * config/tilepro/mul-tables.c: Regenerate.
21198 * config/tilegx/mul-tables.c: Regenerate.
21199
21200 2015-07-10 Richard Biener <rguenther@suse.de>
21201
21202 * fold-const.c (distribute_bit_expr): Remove.
21203 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21204 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21205 to A & (B | C) and simplifying A << C1 << C2 to ...
21206 * match.pd: ... patterns here.
21207
21208 2015-07-10 Jiong Wang <jiong.wang@arm.com>
21209
21210 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21211 Mark mem as READONLY and NOTRAP for PIC symbol.
21212
21213 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21214
21215 * gimple-predict.h: New file.
21216 (gimple_predict_predictor, gimple_predict_set_predictor,
21217 gimple_predict_outcome, gimple_predict_set_outcome,
21218 gimple_build_predict): Relocate here.
21219 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21220 gimple_predict_outcome, gimple_predict_set_outcome): Move to
21221 gimple-predict.h.
21222 * gimple.c (gimple_build_predict): Move to gimple-predict.h
21223 * basic-block.h: Don't include cfghooks.h.
21224 * backend.h: Don't include predict.h.
21225 * cfghooks.h: Include predict.h.
21226 * gimple-pretty-print.c: Include gimple-predict.h.
21227 * gimplify.c: Likwise.
21228 * predict.c: Adjust includes.
21229 * tree-inline.c: Likewise.
21230 * asan.c: Likewise.
21231 * auto-inc-dec.c: Likewise.
21232 * auto-profile.c: Likewise.
21233 * bb-reorder.c: Likewise.
21234 * builtins.c: Likewise.
21235 * caller-save.c: Likewise.
21236 * calls.c: Likewise.
21237 * cfganal.c: Likewise.
21238 * cfgbuild.c: Likewise.
21239 * cfg.c: Likewise.
21240 * cfgcleanup.c: Likewise.
21241 * cfgexpand.c: Likewise.
21242 * cfghooks.c: Likewise.
21243 * cfgloopanal.c: Likewise.
21244 * cfgloop.c: Likewise.
21245 * cfgloopmanip.c: Likewise.
21246 * cfgrtl.c: Likewise.
21247 * cgraph.c: Likewise.
21248 * cgraphunit.c: Likewise.
21249 * combine.c: Likewise.
21250 * cprop.c: Likewise.
21251 * cse.c: Likewise.
21252 * dce.c: Likewise.
21253 * dojump.c: Likewise.
21254 * dse.c: Likewise.
21255 * except.c: Likewise.
21256 * expmed.c: Likewise.
21257 * expr.c: Likewise.
21258 * final.c: Likewise.
21259 * fold-const.c: Likewise.
21260 * function.c: Likewise.
21261 * fwprop.c: Likewise.
21262 * gcc-plugin.h: Likewise.
21263 * gcse.c: Likewise.
21264 * genattrtab.c: Likewise.
21265 * genemit.c: Likewise.
21266 * gengtype.c: Likewise.
21267 * genopinit.c: Likewise.
21268 * genoutput.c: Likewise.
21269 * genpreds.c: Likewise.
21270 * genrecog.c: Likewise.
21271 * gimple-fold.c: Likewise.
21272 * gimple-iterator.c: Likewise.
21273 * gimple-ssa-isolate-paths.c: Likewise.
21274 * gimple-ssa-strength-reduction.c: Likewise.
21275 * graph.c: Likewise.
21276 * graphite-blocking.c: Likewise.
21277 * graphite.c: Likewise.
21278 * graphite-dependences.c: Likewise.
21279 * graphite-interchange.c: Likewise.
21280 * graphite-isl-ast-to-gimple.c: Likewise.
21281 * graphite-optimize-isl.c: Likewise.
21282 * graphite-poly.c: Likewise.
21283 * graphite-scop-detection.c: Likewise.
21284 * graphite-sese-to-poly.c: Likewise.
21285 * haifa-sched.c: Likewise.
21286 * ifcvt.c: Likewise.
21287 * internal-fn.c: Likewise.
21288 * ipa-cp.c: Likewise.
21289 * ipa-profile.c: Likewise.
21290 * ipa-split.c: Likewise.
21291 * ipa-utils.c: Likewise.
21292 * ira-build.c: Likewise.
21293 * ira-color.c: Likewise.
21294 * ira-conflicts.c: Likewise.
21295 * ira-costs.c: Likewise.
21296 * ira-emit.c: Likewise.
21297 * ira-lives.c: Likewise.
21298 * jump.c: Likewise.
21299 * loop-doloop.c: Likewise.
21300 * loop-init.c: Likewise.
21301 * loop-invariant.c: Likewise.
21302 * loop-unroll.c: Likewise.
21303 * lower-subreg.c: Likewise.
21304 * lra-assigns.c: Likewise.
21305 * lra.c: Likewise.
21306 * lra-coalesce.c: Likewise.
21307 * lra-constraints.c: Likewise.
21308 * lra-lives.c: Likewise.
21309 * lto-cgraph.c: Likewise.
21310 * lto-streamer-in.c: Likewise.
21311 * mode-switching.c: Likewise.
21312 * modulo-sched.c: Likewise.
21313 * omp-low.c: Likewise.
21314 * optabs.c: Likewise.
21315 * passes.c: Likewise.
21316 * postreload.c: Likewise.
21317 * postreload-gcse.c: Likewise.
21318 * profile.c: Likewise.
21319 * recog.c: Likewise.
21320 * regstat.c: Likewise.
21321 * reload1.c: Likewise.
21322 * reorg.c: Likewise.
21323 * rtlanal.c: Likewise.
21324 * sched-ebb.c: Likewise.
21325 * sel-sched-ir.c: Likewise.
21326 * sese.c: Likewise.
21327 * shrink-wrap.c: Likewise.
21328 * simplify-rtx.c: Likewise.
21329 * stmt.c: Likewise.
21330 * store-motion.c: Likewise.
21331 * tracer.c: Likewise.
21332 * trans-mem.c: Likewise.
21333 * tree-call-cdce.c: Likewise.
21334 * tree-cfg.c: Likewise.
21335 * tree-cfgcleanup.c: Likewise.
21336 * tree-chkp.c: Likewise.
21337 * tree-complex.c: Likewise.
21338 * tree-eh.c: Likewise.
21339 * tree-if-conv.c: Likewise.
21340 * tree-loop-distribution.c: Likewise.
21341 * tree-outof-ssa.c: Likewise.
21342 * tree-parloops.c: Likewise.
21343 * tree-predcom.c: Likewise.
21344 * tree-pretty-print.c: Likewise.
21345 * tree-profile.c: Likewise.
21346 * tree-sra.c: Likewise.
21347 * tree-ssa.c: Likewise.
21348 * tree-ssa-coalesce.c: Likewise.
21349 * tree-ssa-dce.c: Likewise.
21350 * tree-ssa-dom.c: Likewise.
21351 * tree-ssa-forwprop.c: Likewise.
21352 * tree-ssa-ifcombine.c: Likewise.
21353 * tree-ssa-loop-ch.c: Likewise.
21354 * tree-ssa-loop-im.c: Likewise.
21355 * tree-ssa-loop-ivcanon.c: Likewise.
21356 * tree-ssa-loop-ivopts.c: Likewise.
21357 * tree-ssa-loop-manip.c: Likewise.
21358 * tree-ssa-loop-prefetch.c: Likewise.
21359 * tree-ssa-loop-unswitch.c: Likewise.
21360 * tree-ssa-math-opts.c: Likewise.
21361 * tree-ssa-phiopt.c: Likewise.
21362 * tree-ssa-pre.c: Likewise.
21363 * tree-ssa-reassoc.c: Likewise.
21364 * tree-ssa-sink.c: Likewise.
21365 * tree-ssa-tail-merge.c: Likewise.
21366 * tree-ssa-threadedge.c: Likewise.
21367 * tree-ssa-threadupdate.c: Likewise.
21368 * tree-switch-conversion.c: Likewise.
21369 * tree-tailcall.c: Likewise.
21370 * tree-vect-data-refs.c: Likewise.
21371 * tree-vect-loop.c: Likewise.
21372 * tree-vect-loop-manip.c: Likewise.
21373 * tree-vectorizer.c: Likewise.
21374 * tree-vrp.c: Likewise.
21375 * ubsan.c: Likewise.
21376 * value-prof.c: Likewise.
21377 * varasm.c: Likewise.
21378 * var-tracking.c: Likewise.
21379 * config/aarch64/aarch64-builtins.c: Likewise.
21380 * config/aarch64/aarch64.c: Likewise.
21381 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21382 * config/alpha/alpha.c: Likewise.
21383 * config/arc/arc.c: Likewise.
21384 * config/arm/arm.c: Likewise.
21385 * config/avr/avr.c: Likewise.
21386 * config/bfin/bfin.c: Likewise.
21387 * config/c6x/c6x.c: Likewise.
21388 * config/cr16/cr16.c: Likewise.
21389 * config/cris/cris.c: Likewise.
21390 * config/darwin.c: Likewise.
21391 * config/darwin-c.c: Likewise.
21392 * config/epiphany/epiphany.c: Likewise.
21393 * config/epiphany/mode-switch-use.c: Likewise.
21394 * config/epiphany/resolve-sw-modes.c: Likewise.
21395 * config/fr30/fr30.c: Likewise.
21396 * config/frv/frv.c: Likewise.
21397 * config/ft32/ft32.c: Likewise.
21398 * config/h8300/h8300.c: Likewise.
21399 * config/i386/i386.c: Likewise.
21400 * config/i386/winnt.c: Likewise.
21401 * config/ia64/ia64.c: Likewise.
21402 * config/iq2000/iq2000.c: Likewise.
21403 * config/lm32/lm32.c: Likewise.
21404 * config/m32c/m32c.c: Likewise.
21405 * config/m32r/m32r.c: Likewise.
21406 * config/m68k/m68k.c: Likewise.
21407 * config/mcore/mcore.c: Likewise.
21408 * config/mep/mep.c: Likewise.
21409 * config/microblaze/microblaze.c: Likewise.
21410 * config/mips/mips.c: Likewise.
21411 * config/mmix/mmix.c: Likewise.
21412 * config/mn10300/mn10300.c: Likewise.
21413 * config/moxie/moxie.c: Likewise.
21414 * config/msp430/msp430.c: Likewise.
21415 * config/nds32/nds32.c: Likewise.
21416 * config/nds32/nds32-cost.c: Likewise.
21417 * config/nds32/nds32-fp-as-gp.c: Likewise.
21418 * config/nds32/nds32-intrinsic.c: Likewise.
21419 * config/nds32/nds32-isr.c: Likewise.
21420 * config/nds32/nds32-md-auxiliary.c: Likewise.
21421 * config/nds32/nds32-memory-manipulation.c: Likewise.
21422 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21423 * config/nds32/nds32-predicates.c: Likewise.
21424 * config/nios2/nios2.c: Likewise.
21425 * config/nvptx/nvptx.c: Likewise.
21426 * config/pa/pa.c: Likewise.
21427 * config/pdp11/pdp11.c: Likewise.
21428 * config/rl78/rl78.c: Likewise.
21429 * config/rs6000/rs6000.c: Likewise.
21430 * config/rx/rx.c: Likewise.
21431 * config/s390/s390.c: Likewise.
21432 * config/sh/sh.c: Likewise.
21433 * config/sh/sh-mem.cc: Likewise.
21434 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21435 * config/sh/sh_treg_combine.cc: Likewise.
21436 * config/sparc/sparc.c: Likewise.
21437 * config/spu/spu.c: Likewise.
21438 * config/stormy16/stormy16.c: Likewise.
21439 * config/tilegx/tilegx.c: Likewise.
21440 * config/tilepro/tilepro.c: Likewise.
21441 * config/v850/v850.c: Likewise.
21442 * config/vax/vax.c: Likewise.
21443 * config/visium/visium.c: Likewise.
21444 * config/xtensa/xtensa.c: Likewise.
21445
21446 2015-07-10 Richard Biener <rguenther@suse.de>
21447
21448 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21449 (decision_tree::gen_gimple): Likewise.
21450 (decision_tree::gen_generic): Likewise.
21451
21452 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21453
21454 PR target/66813
21455 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21456 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21457
21458 2015-07-10 Jakub Jelinek <jakub@redhat.com>
21459
21460 PR middle-end/66820
21461 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21462 or ORT_TASK contexts.
21463 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21464 is non-zero.
21465
21466 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21467
21468 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21469 above function.
21470
21471 2015-07-10 Tom de Vries <tom@codesourcery.com>
21472
21473 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21474 insert nit + 1 bound.
21475
21476 2015-07-10 Richard Biener <rguenther@suse.de>
21477
21478 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21479 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21480 (if_convertible_loop_p_1): For this always compute bb predicates.
21481 (if_convertible_loop_p): And free them.
21482
21483 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21484
21485 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21486 in dump message.
21487
21488 2015-07-10 Richard Biener <rguenther@suse.de>
21489
21490 PR tree-optimization/66823
21491 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21492 inverted predicate.
21493
21494 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
21495
21496 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21497 to handle mips[32|64]r3 and mips[32|64]r5.
21498
21499 2015-07-09 Jakub Jelinek <jakub@redhat.com>
21500
21501 PR middle-end/66633
21502 * tree-nested.c (get_static_chain): Or in a flag into
21503 info->static_chain_added.
21504 (get_frame_field, get_nonlocal_debug_decl): Likewise.
21505 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21506 2015-07-01 changes.
21507 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21508 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21509 add it to clauses.
21510
21511 PR tree-optimization/66718
21512 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21513 field.
21514 (vect_simd_lane_linear): New function.
21515 (vectorizable_simd_clone_call): Support using linear arguments for
21516 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21517
21518 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21519
21520 PR target/66821
21521 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21522
21523 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
21524
21525 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21526 Use machine mode, not enum machine_mode in the prototype.
21527
21528 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21529 classify 128-bit floating point support.
21530 (FLOAT128_IBM_P): Likewise.
21531 (FLOAT128_VECTOR_P): Likewise.
21532 (FLOAT128_2REG_P): Likewise.
21533 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21534 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21535 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21536 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21537
21538 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21539 tests against TFmode/TDmode, since those modes do not use VSX
21540 addresses.
21541 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21542 support.
21543 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21544 tests against TFmode, etc.
21545 (invalid_e500_subreg): Add tests against IFmode/KFmode.
21546 (reg_offset_addressing_ok_p): Likewise.
21547 (rs6000_legitimate_offset_address_p): Likewise.
21548 (rs6000_legitimize_address): Likewise.
21549 (rs6000_legitimize_reload_address): Likewise.
21550 (rs6000_legitimate_address_p): Clean up tests against TFmode and
21551 TDmode to use the new helper macros, which will include IFmode and
21552 KFmode.
21553 (rs6000_emit_move): Likewise.
21554 (rs6000_darwin64_record_arg_recurse): Likewise.
21555 (print_operand): Likewise.
21556 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21557 that uses a single vector register as a vector and not as a
21558 floating point register in terms of the calling sequence.
21559 (rs6000_discover_homogeneous_aggregate): Likewise.
21560 (rs6000_return_in_memory): Likewise.
21561 (init_cumulative_args): Likewise.
21562 (rs6000_function_arg_boundary): Likewise.
21563 (rs6000_function_arg_advance_1): Likewise.
21564 (rs6000_function_arg): Likewise.
21565 (rs6000_pass_by_reference): Likewise.
21566 (rs6000_gimplify_va_arg): Likewise.
21567 (rs6000_secondary_reload_memory): Use machine_mode not enum
21568 machine mode.
21569 (rs6000_split_multireg_move): Use new helper macros.
21570 (spe_func_has_64bit_regs_p): Likewise.
21571 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21572 (output_toc): Use new helper macros.
21573 (rs6000_register_move_cost): Likewise.
21574 (rs6000_function_value): Add IEEE 128-bit floating point calling
21575 sequence support.
21576 (rs6000_libcall_value): Likewise.
21577 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21578 floating point support.
21579 (rs6000_vector_mode_supported_p): Likewise.
21580
21581 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
21582
21583 PR rtl-optimization/66782
21584 * lra-int.h (struct lra_insn_recog_data): Add comment about
21585 clobbered hard regs for arg_hard_regs.
21586 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21587 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21588 Add condition for processing used hard regs.
21589 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21590 Process clobbered hard regs.
21591
21592 2015-07-09 Michael Matz <matz@suse.de>
21593
21594 * genmatch.c (fprintf_indent): New function.
21595 (operand::gen_transform): Add indent parameter.
21596 (expr::gen_transform, c_expr::gen_transform,
21597 capture::gen_transform): Ditto and use fprintf_indent.
21598 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21599 (dt_operand::gen, dt_operand::gen_predicate,
21600 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21601 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21602 (decision_tree::gen_gimple): Adjust calls and indent generated
21603 code.
21604 (decision_tree::gen_generic): Ditto.
21605 (write_predicate): Ditto.
21606
21607 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21608
21609 PR target/66814
21610 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21611 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21612 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21613 {GENERAL,SSE,MMX}_REG_P where appropriate.
21614
21615 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21616
21617 * lto-streamer.h: Don't include target.h and alloc-pool.h.
21618 * builtins.c: Adjust includes.
21619 * gimple.c: Likewise.
21620 * ipa-icf.c: Likewise.
21621 * lto-opts.c: Likewise.
21622 * ipa-reference.c: Likewise.
21623 * lto-section-out.c: Likewise.
21624 * lto-streamer-in.c: Likewise.
21625 * lto-streamer-out.c: Likewise.
21626 * opts-global.c: Likewise.
21627 * symtab.c: Likewise.
21628 * tree-chkp.c: Likewise.
21629 * tree-ssa-live.c: Likewise.
21630 * tree-streamer-in.c: Likewise.
21631 * tree-streamer-out.c: Likewise.
21632 * config/darwin.c: Likewise.
21633 * config/i386/winnt.c: Likewise.
21634
21635 2015-07-09 Richard Biener <rguenther@suse.de>
21636
21637 * genmatch.c (struct expr): Add force_single_use flag.
21638 (expr::expr): Add copy constructor.
21639 (capture_info::walk_match): Gather force_single_use captures.
21640 (expr::gen_transform): Use possibly NULLified sequence.
21641 (dt_simplify::gen): Apply single-use restrictions by NULLifying
21642 seq if any constrained expr is not single-use.
21643 (parser::parse_expr): Refactor to allow multiple flags. Handle
21644 's' flag to force an expression have a single-use if the pattern
21645 simplifies to more than one statement.
21646 * match.pd: Convert most single_use conditionals to :s flags.
21647
21648 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21649
21650 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21651 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21652 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21653
21654 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21655
21656 * flags.h: Don't include flag-types.h or options.h.
21657 * opts-common.c: Adjust includes.
21658 * opts-global.c: Likewise.
21659 * common/config/epiphany/epiphany-common.c: Likewise.
21660
21661 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21662
21663 PR target/66818
21664 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
21665 for IA MCU.
21666
21667 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21668
21669 PR target/66817
21670 * config/i386/i386.c (ix86_return_in_memory): Return true
21671 if int_size_in_bytes returns negative for IA MCU.
21672
21673 2015-07-09 Marek Polacek <polacek@redhat.com>
21674
21675 PR tree-optimization/66718
21676 * Makefile.in (OBJS): Add gimple-laddress.o.
21677 * passes.def: Schedule pass_laddress.
21678 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
21679 * tree-pass.h (make_pass_laddress): Declare.
21680 * gimple-laddress.c: New file.
21681
21682 2015-07-09 Richard Biener <rguenther@suse.de>
21683
21684 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
21685
21686 2015-07-09 Richard Biener <rguenther@suse.de>
21687
21688 PR tree-optimization/66807
21689 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
21690
21691 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
21692
21693 * function.c (stack_protect_epilogue): Use if rather than switch for
21694 check targetm.have_stack_protect_test.
21695
21696 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21697
21698 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21699 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21700 * config/arc/arc.h: Likewise.
21701 * config/arm/arm.h: Likewise.
21702 * config/bfin/bfin.h: Likewise.
21703 * config/epiphany/epiphany.h: Likewise.
21704 * config/frv/frv.h: Likewise.
21705 * config/ia64/ia64.h: Likewise.
21706 * config/iq2000/iq2000.h: Likewise.
21707 * config/lm32/lm32.h: Likewise.
21708 * config/m32r/m32r.h: Likewise.
21709 * config/mcore/mcore.h: Likewise.
21710 * config/mep/mep.h: Likewise.
21711 * config/microblaze/microblaze.h: Likewise.
21712 * config/mips/mips.h: Likewise.
21713 * config/mmix/mmix.h: Likewise.
21714 * config/mn10300/mn10300.h: Likewise.
21715 * config/nds32/nds32.h: Likewise.
21716 * config/nios2/nios2.h: Likewise.
21717 * config/pa/pa.h: Likewise.
21718 * config/rl78/rl78.h: Likewise.
21719 * config/sh/sh.h: Likewise.
21720 * config/sparc/sparc.h: Likewise.
21721 * config/stormy16/stormy16.h: Likewise.
21722 * config/tilegx/tilegx.h: Likewise.
21723 * config/tilepro/tilepro.h: Likewise.
21724 * config/v850/v850.h: Likewise.
21725 * config/xtensa/xtensa.h: Likewise.
21726 * doc/tm.texi: Regenerate.
21727 * doc/tm.texi.in: Adjust.
21728 * combine.c (simplify_set): Likewise.
21729 (simplify_comparison): Likewise.
21730 * expr.c (store_constructor): Likewise.
21731 * internal-fn.c (expand_arith_overflow): Likewise.
21732 * reload.c (push_reload): Likewise.
21733 (find_reloads): Likewise.
21734 (find_reloads_subreg_address): Likewise.
21735 * reload1.c (eliminate_regs_1): Likewise.
21736 * rtlanal.c (nonzero_bits1): Likewise.
21737 (num_sign_bit_copies1): Likewise.
21738 * simplify-rtx.c (simplify_truncation): Likewise.
21739
21740 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21741
21742 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21743 of AUTO_INC_DEC with the preprocessor.
21744 * combine.c (combine_instructions): Likewise.
21745 (can_combine_p): Likewise.
21746 (try_combine): Likewise.
21747 * emit-rtl.c (try_split): Likewise.
21748 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21749 * lower-subreg.c (resolve_simple_move): Likewise.
21750 * lra.c (update_inc_notes): Likewise.
21751 * recog.c (asm_operand_ok): Likewise.
21752 (constrain_operands): Likewise.
21753 * regrename.c (scan_rtx_address): Likewise.
21754 * reload.c (update_auto_inc_notes): Likewise.
21755 (reg_inc_found_and_valid_p): Likewise.
21756 * reload1.c (reload): Likewise.
21757 (emit_input_reload_insns): Likewise.
21758 (delete_output_reload): Likewise.
21759 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21760 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21761
21762 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21763
21764 * rtl.h: Always define AUTO_INC_DEC.
21765 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21766 * combine.c (combine_instructions): Likewise.
21767 (can_combine_p): Likewise.
21768 (try_combine): Likewise.
21769 * emit-rtl.c (try_split): Likewise.
21770 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21771 * lower-subreg.c (resolve_simple_move): Likewise.
21772 * lra.c (update_inc_notes): Likewise.
21773 * recog.c (asm_operand_ok): Likewise.
21774 (constrain_operands): Likewise.
21775 * regrename.c (scan_rtx_address): Likewise.
21776 * reload.c (update_auto_inc_notes): Likewise.
21777 (find_equiv_reg): Likewise.
21778 * reload1.c (reload): Likewise.
21779 (reload_as_needed): Likewise.
21780 (choose_reload_regs): Likewise.
21781 (emit_input_reload_insns): Likewise.
21782 (delete_output_reload): Likewise.
21783 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21784 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21785
21786 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21787
21788 * combine.c (can_combine_def_p): Don't check the value of
21789 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21790 (combinable_i3pat): Likewise.
21791 (mark_used_regs_combine): Likewise.
21792 * regrename.c (rename_chains): Likewise.
21793 * reload.c (find_reloads_address): Likewise.
21794 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21795
21796 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21797
21798 * combine.c (update_rsp_from_reg_equal): Don't check if
21799 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21800 (reg_nonzero_bits_for_combine): Likewise.
21801 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21802 1.
21803 * config/frv/frv.h: Likewise.
21804 * config/lm32/lm32.h: Likewise.
21805 * config/mep/mep.h: Likewise.
21806 * config/mips/mips.h: Likewise.
21807 * config/rs6000/rs6000.h: Likewise.
21808 * config/sh/sh.h: Likewise.
21809 * config/tilegx/tilegx.h (enum reg_class): Likewise.
21810 * config/tilepro/tilepro.h: Likewise.
21811 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21812 * doc/tm.texi: Regenerate.
21813 * doc/tm.texi.in: Adjust.
21814 * rtlanal.c (nonzero_bits1): Likewise.
21815
21816 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21817
21818 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21819 with the preprocessor.
21820 (combine_instructions): Likewise.
21821 (try_combine): Likewise.
21822 (subst): Likewise.
21823 (distribute_notes): Likewise.
21824
21825 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21826
21827 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21828 defined.
21829 (simplify_set): Likewise.
21830 * cse.c (cse_insn): Likewise.
21831 * fold-const.c (fold_single_bit_test): Likewise.
21832 (fold_unary_loc): Likewise.
21833 * postreload.c (reload_cse_simplify_set): Likewise.
21834 (reload_cse_simplify_operands): Likewise.
21835
21836 2015-07-08 Jiong Wang <jiong.wang@arm.com>
21837
21838 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21839 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21840
21841 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21842
21843 PR target/66746
21844 * config/i386/x86intrin.h: Include <adxintrin.h> even if
21845 __iamcu__ is defined.
21846
21847 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21848
21849 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21850
21851 2015-07-08 Iain Sandoe <iain@codesourcery.com>
21852
21853 PR target/66523
21854 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21855 names from preservation.
21856
21857 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21858
21859 PR target/66806
21860 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21861 change for IAMCU.
21862 (function_arg_advance_32): Don't pass vectors in registers for
21863 IAMCU.
21864 (function_arg_32): Likewise.
21865 (ix86_return_in_memory): Don't return vectors in registers for
21866 IAMCU.
21867
21868 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
21869
21870 PR middle-end/66334
21871 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21872 hard regno live at the start of BB with incoming abnormal edges.
21873 * lra-lives.c (process_bb_lives): Ditto.
21874
21875 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
21876
21877 PR libgomp/65099
21878 * config/nvptx/mkoffload.c (main): Create an offload image only in
21879 64-bit configurations.
21880
21881 2015-07-08 Martin Liska <mliska@suse.cz>
21882
21883 PR bootstrap/66744
21884 * tree-sra.c (create_access_1): Call ctor without brackets.
21885 (create_artificial_child_access): Likewise.
21886
21887 2015-07-08 Richard Biener <rguenther@suse.de>
21888
21889 PR tree-optimization/66793
21890 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21891 Properly split the block after stmts ending it.
21892
21893 2015-07-08 Richard Biener <rguenther@suse.de>
21894
21895 PR tree-optimization/66794
21896 * passes.c (execute_function_todo): Assert that post-dominators
21897 are not computed.
21898 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21899 Free post-dominators.
21900
21901 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21902
21903 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21904 with early exit.
21905
21906 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21907
21908 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21909 more than or equal 8 and less than 32 when optimizing for size.
21910
21911 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21912
21913 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21914 COSTS_N_INSNS (1) and increment it appropriately throughout the
21915 function.
21916
21917 2015-07-08 Richard Biener <rguenther@suse.de>
21918
21919 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21920
21921 2015-07-08 Alan Modra <amodra@gmail.com>
21922
21923 * target.def (rtx_costs): Remove "code" param, add "mode".
21924 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21925 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
21926 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21927 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
21928 call. Track mode when given in rtx.
21929 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
21930 (default_address_cost): Pass Pmode to rtx_cost.
21931 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21932 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21933 with NULL set.
21934 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
21935 (notreg_cost): Add mode param. Use it.
21936 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
21937 mode param and pass to set_src_cost. Update all calls.
21938 (hash_scan_set): Formatting.
21939 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21940 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21941 * hooks.h: Ditto.
21942 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21943 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21944 emit_store_flag): Update set_src_cost and rtx_cost calls.
21945 * auto-inc-dec.c (attempt_change): Likewise.
21946 * calls.c (precompute_register_parameters): Likewise.
21947 * combine.c (expand_compound_operation, make_extraction,
21948 force_to_mode, distribute_and_simplify_rtx): Likewise.
21949 * dojump.c (prefer_and_bit_test): Likewise.
21950 * dse.c (find_shift_sequence): Likewise.
21951 * expr.c (compress_float_constant): Likewise.
21952 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21953 * ifcvt.c (noce_try_sign_mask): Likewise.
21954 * loop-doloop.c (doloop_optimize): Likewise.
21955 * loop-invariant.c (create_new_invariant): Likewise.
21956 * lower-subreg.c (shift_cost, compute_costs): Likewise.
21957 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21958 lshift_cheap_p): Likewise.
21959 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21960 try_replace_in_use, reload_cse_move2add): Likewise.
21961 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21962 Likewise.
21963 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21964 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21965 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21966 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21967 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21968 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
21969 to rtx_cost calls.
21970 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21971 * config/arc/arc.c (arc_rtx_costs): Likewise.
21972 * config/arm/arm.c (arm_rtx_costs): Likewise.
21973 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21974 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21975 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21976 * config/cris/cris.c (cris_rtx_costs): Likewise.
21977 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21978 * config/frv/frv.c (frv_rtx_costs): Likewise.
21979 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21980 * config/i386/i386.c (ix86_rtx_costs): Likewise.
21981 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21982 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21983 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21984 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21985 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21986 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21987 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21988 * config/mep/mep.c (mep_rtx_cost): Likewise.
21989 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21990 * config/mips/mips.c (mips_rtx_costs): Likewise.
21991 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21992 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21993 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21994 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21995 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21996 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21997 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21998 * config/pa/pa.c (hppa_rtx_costs): Likewise.
21999 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22000 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22001 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22002 * config/s390/s390.c (s390_rtx_costs): Likewise.
22003 * config/sh/sh.c (sh_rtx_costs): Likewise.
22004 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22005 * config/spu/spu.c (spu_rtx_costs): Likewise.
22006 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22007 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22008 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22009 * config/v850/v850.c (v850_rtx_costs): Likewise.
22010 * config/vax/vax.c (vax_rtx_costs): Likewise.
22011 * config/visium/visium.c (visium_rtx_costs): Likewise.
22012 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22013 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22014 "code" param, and pass as outer_code to first rtx_cost call. Pass
22015 mode to rtx_cost calls.
22016 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22017 calls.
22018 (aarch64_rtx_costs_wrapper): Update.
22019 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22020 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22021 rtx_cost calls.
22022 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22023 and rtx_cost calls.
22024 (avr_operand_rtx_cost): Similarly.
22025 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22026 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22027 * config/mips/mips.c (mips_stack_address_p): Comment typo.
22028 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22029 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22030 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22031 rtx_cost.
22032 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22033 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22034 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22035 * doc/tm.texi: Regenerate.
22036
22037 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
22038
22039 * tree-core.h: Include symtab.h.
22040 * rtl.h: Include hard-reg-set.h but not flags.h.
22041 (HARD_CONST): Remove condition compilation involving HARD_CONST since
22042 hard-reg-set.h is always included.
22043 * regs.h: Don't include hard-reg-set.h or rtl.h.
22044 * cfg.h: Include dominance.h.
22045 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22046 * backend.h: New. Aggregate commonly used backend header files.
22047 * gimple-ssa.h: Don't include tree-hasher.h.
22048 * ssa.h: New. Aggregate commonly used SSA header files.
22049 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22050 * sel-sched-ir.h: Flatten includes.
22051 * lra-int.h: Flatten completely.
22052 * sel-sched-dump.h: Flatten includes.
22053 * ira-int.h: Flatten includes.
22054 * gimple-streamer.h: Remove all includes.
22055 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22056 * resource.h: Flatten hard-reg-set.h and df.h.
22057 * sched-int.h: Flatten insn-arrt.h and df.h.
22058 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22059 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22060 * genattrtab.c (write_header): Adjust generated includes.
22061 * genautomata.c (main): Likewise.
22062 * genconditions.c (write-header): Likewise.
22063 * genemit.c (main): Likewise.
22064 * gengtype.c (open_base_files): Likewise.
22065 * genopinit.c (main): Likewise.
22066 * genoutput.c (output_prologue): Likewise.
22067 * genpeep.c (main): Likewise.
22068 * genpreds.c (write_insn_preds_c): Likewise.
22069 * genrecog.c (write_header): Likewise.
22070 * alias.c: Adjust includes.
22071 * asan.c: Likewise.
22072 * attribs.c: Likewise.
22073 * auto-inc-dec.c: Likewise.
22074 * auto-profile.c: Likewise.
22075 * bb-reorder.c: Likewise.
22076 * bt-load.c: Likewise.
22077 * builtins.c: Likewise.
22078 * caller-save.c: Likewise.
22079 * calls.c: Likewise.
22080 * ccmp.c: Likewise.
22081 * cfg.c: Likewise.
22082 * cfganal.c: Likewise.
22083 * cfgbuild.c: Likewise.
22084 * cfgcleanup.c: Likewise.
22085 * cfgexpand.c: Likewise.
22086 * cfghooks.c: Likewise.
22087 * cfgloop.c: Likewise.
22088 * cfgloopanal.c: Likewise.
22089 * cfgloopmanip.c: Likewise.
22090 * cfgrtl.c: Likewise.
22091 * cgraph.c: Likewise.
22092 * cgraphbuild.c: Likewise.
22093 * cgraphclones.c: Likewise.
22094 * cgraphunit.c: Likewise.
22095 * cilk-common.c: Likewise.
22096 * combine-stack-adj.c: Likewise.
22097 * combine.c: Likewise.
22098 * compare-elim.c: Likewise.
22099 * convert.c: Likewise.
22100 * coverage.c: Likewise.
22101 * cppbuiltin.c: Likewise.
22102 * cprop.c: Likewise.
22103 * cse.c: Likewise.
22104 * cselib.c: Likewise.
22105 * data-streamer-in.c: Likewise.
22106 * data-streamer-out.c: Likewise.
22107 * data-streamer.c: Likewise.
22108 * dbxout.c: Likewise.
22109 * dce.c: Likewise.
22110 * ddg.c: Likewise.
22111 * debug.c: Likewise.
22112 * df-core.c: Likewise.
22113 * df-problems.c: Likewise.
22114 * df-scan.c: Likewise.
22115 * dfp.c: Likewise.
22116 * dojump.c: Likewise.
22117 * dominance.c: Likewise.
22118 * domwalk.c: Likewise.
22119 * double-int.c: Likewise.
22120 * dse.c: Likewise.
22121 * dumpfile.c: Likewise.
22122 * dwarf2asm.c: Likewise.
22123 * dwarf2cfi.c: Likewise.
22124 * dwarf2out.c: Likewise.
22125 * emit-rtl.c: Likewise.
22126 * et-forest.c: Likewise.
22127 * except.c: Likewise.
22128 * explow.c: Likewise.
22129 * expmed.c: Likewise.
22130 * expr.c: Likewise.
22131 * final.c: Likewise.
22132 * fixed-value.c: Likewise.
22133 * fold-const.c: Likewise.
22134 * function.c: Likewise.
22135 * fwprop.c: Likewise.
22136 * gcc-plugin.h: Likewise.
22137 * gcse-common.c: Likewise.
22138 * gcse.c: Likewise.
22139 * generic-match-head.c: Likewise.
22140 * ggc-page.c: Likewise.
22141 * gimple-builder.c: Likewise.
22142 * gimple-expr.c: Likewise.
22143 * gimple-fold.c: Likewise.
22144 * gimple-iterator.c: Likewise.
22145 * gimple-low.c: Likewise.
22146 * gimple-match-head.c: Likewise.
22147 * gimple-pretty-print.c: Likewise.
22148 * gimple-ssa-isolate-paths.c: Likewise.
22149 * gimple-ssa-strength-reduction.c: Likewise.
22150 * gimple-streamer-in.c: Likewise.
22151 * gimple-streamer-out.c: Likewise.
22152 * gimple-walk.c: Likewise.
22153 * gimple.c: Likewise.
22154 * gimplify-me.c: Likewise.
22155 * gimplify.c: Likewise.
22156 * godump.c: Likewise.
22157 * graph.c: Likewise.
22158 * graphite-blocking.c: Likewise.
22159 * graphite-dependences.c: Likewise.
22160 * graphite-interchange.c: Likewise.
22161 * graphite-isl-ast-to-gimple.c: Likewise.
22162 * graphite-optimize-isl.c: Likewise.
22163 * graphite-poly.c: Likewise.
22164 * graphite-scop-detection.c: Likewise.
22165 * graphite-sese-to-poly.c: Likewise.
22166 * graphite.c: Likewise.
22167 * haifa-sched.c: Likewise.
22168 * hw-doloop.c: Likewise.
22169 * ifcvt.c: Likewise.
22170 * init-regs.c: Likewise.
22171 * internal-fn.c: Likewise.
22172 * ipa-chkp.c: Likewise.
22173 * ipa-comdats.c: Likewise.
22174 * ipa-cp.c: Likewise.
22175 * ipa-devirt.c: Likewise.
22176 * ipa-icf-gimple.c: Likewise.
22177 * ipa-icf.c: Likewise.
22178 * ipa-inline-analysis.c: Likewise.
22179 * ipa-inline-transform.c: Likewise.
22180 * ipa-inline.c: Likewise.
22181 * ipa-polymorphic-call.c: Likewise.
22182 * ipa-profile.c: Likewise.
22183 * ipa-prop.c: Likewise.
22184 * ipa-pure-const.c: Likewise.
22185 * ipa-ref.c: Likewise.
22186 * ipa-reference.c: Likewise.
22187 * ipa-split.c: Likewise.
22188 * ipa-utils.c: Likewise.
22189 * ipa-visibility.c: Likewise.
22190 * ipa.c: Likewise.
22191 * ira-build.c: Likewise.
22192 * ira-color.c: Likewise.
22193 * ira-conflicts.c: Likewise.
22194 * ira-costs.c: Likewise.
22195 * ira-emit.c: Likewise.
22196 * ira-lives.c: Likewise.
22197 * ira.c: Likewise.
22198 * jump.c: Likewise.
22199 * langhooks.c: Likewise.
22200 * lcm.c: Likewise.
22201 * loop-doloop.c: Likewise.
22202 * loop-init.c: Likewise.
22203 * loop-invariant.c: Likewise.
22204 * loop-iv.c: Likewise.
22205 * loop-unroll.c: Likewise.
22206 * lower-subreg.c: Likewise.
22207 * lra-assigns.c: Likewise.
22208 * lra-coalesce.c: Likewise.
22209 * lra-constraints.c: Likewise.
22210 * lra-eliminations.c: Likewise.
22211 * lra-lives.c: Likewise.
22212 * lra-remat.c: Likewise.
22213 * lra-spills.c: Likewise.
22214 * lra.c: Likewise.
22215 * lto-cgraph.c: Likewise.
22216 * lto-compress.c: Likewise.
22217 * lto-opts.c: Likewise.
22218 * lto-section-in.c: Likewise.
22219 * lto-section-out.c: Likewise.
22220 * lto-streamer-in.c: Likewise.
22221 * lto-streamer-out.c: Likewise.
22222 * lto-streamer.c: Likewise.
22223 * mcf.c: Likewise.
22224 * mode-switching.c: Likewise.
22225 * modulo-sched.c: Likewise.
22226 * omega.c: Likewise.
22227 * omp-low.c: Likewise.
22228 * optabs.c: Likewise.
22229 * opts-global.c: Likewise.
22230 * passes.c: Likewise.
22231 * plugin.c: Likewise.
22232 * postreload-gcse.c: Likewise.
22233 * postreload.c: Likewise.
22234 * predict.c: Likewise.
22235 * print-rtl.c: Likewise.
22236 * print-tree.c: Likewise.
22237 * profile.c: Likewise.
22238 * real.c: Likewise.
22239 * realmpfr.c: Likewise.
22240 * recog.c: Likewise.
22241 * ree.c: Likewise.
22242 * reg-stack.c: Likewise.
22243 * regcprop.c: Likewise.
22244 * reginfo.c: Likewise.
22245 * regrename.c: Likewise.
22246 * regstat.c: Likewise.
22247 * reload.c: Likewise.
22248 * reload1.c: Likewise.
22249 * reorg.c: Likewise.
22250 * resource.c: Likewise.
22251 * rtl-chkp.c: Likewise.
22252 * rtlanal.c: Likewise.
22253 * rtlhooks.c: Likewise.
22254 * sanopt.c: Likewise.
22255 * sched-deps.c: Likewise.
22256 * sched-ebb.c: Likewise.
22257 * sched-rgn.c: Likewise.
22258 * sched-vis.c: Likewise.
22259 * sdbout.c: Likewise.
22260 * sel-sched-dump.c: Likewise.
22261 * sel-sched-ir.c: Likewise.
22262 * sel-sched.c: Likewise.
22263 * sese.c: Likewise.
22264 * shrink-wrap.c: Likewise.
22265 * simplify-rtx.c: Likewise.
22266 * stack-ptr-mod.c: Likewise.
22267 * stmt.c: Likewise.
22268 * stor-layout.c: Likewise.
22269 * store-motion.c: Likewise.
22270 * stringpool.c: Likewise.
22271 * symtab.c: Likewise.
22272 * target-globals.c: Likewise.
22273 * targhooks.c: Likewise.
22274 * toplev.c: Likewise.
22275 * tracer.c: Likewise.
22276 * trans-mem.c: Likewise.
22277 * tree-affine.c: Likewise.
22278 * tree-browser.c: Likewise.
22279 * tree-call-cdce.c: Likewise.
22280 * tree-cfg.c: Likewise.
22281 * tree-cfgcleanup.c: Likewise.
22282 * tree-chkp-opt.c: Likewise.
22283 * tree-chkp.c: Likewise.
22284 * tree-chrec.c: Likewise.
22285 * tree-complex.c: Likewise.
22286 * tree-data-ref.c: Likewise.
22287 * tree-dfa.c: Likewise.
22288 * tree-diagnostic.c: Likewise.
22289 * tree-dump.c: Likewise.
22290 * tree-eh.c: Likewise.
22291 * tree-emutls.c: Likewise.
22292 * tree-if-conv.c: Likewise.
22293 * tree-inline.c: Likewise.
22294 * tree-into-ssa.c: Likewise.
22295 * tree-iterator.c: Likewise.
22296 * tree-loop-distribution.c: Likewise.
22297 * tree-nested.c: Likewise.
22298 * tree-nrv.c: Likewise.
22299 * tree-object-size.c: Likewise.
22300 * tree-outof-ssa.c: Likewise.
22301 * tree-parloops.c: Likewise.
22302 * tree-phinodes.c: Likewise.
22303 * tree-predcom.c: Likewise.
22304 * tree-pretty-print.c: Likewise.
22305 * tree-profile.c: Likewise.
22306 * tree-scalar-evolution.c: Likewise.
22307 * tree-sra.c: Likewise.
22308 * tree-ssa-address.c: Likewise.
22309 * tree-ssa-alias.c: Likewise.
22310 * tree-ssa-ccp.c: Likewise.
22311 * tree-ssa-coalesce.c: Likewise.
22312 * tree-ssa-copy.c: Likewise.
22313 * tree-ssa-copyrename.c: Likewise.
22314 * tree-ssa-dce.c: Likewise.
22315 * tree-ssa-dom.c: Likewise.
22316 * tree-ssa-dse.c: Likewise.
22317 * tree-ssa-forwprop.c: Likewise.
22318 * tree-ssa-ifcombine.c: Likewise.
22319 * tree-ssa-live.c: Likewise.
22320 * tree-ssa-loop-ch.c: Likewise.
22321 * tree-ssa-loop-im.c: Likewise.
22322 * tree-ssa-loop-ivcanon.c: Likewise.
22323 * tree-ssa-loop-ivopts.c: Likewise.
22324 * tree-ssa-loop-manip.c: Likewise.
22325 * tree-ssa-loop-niter.c: Likewise.
22326 * tree-ssa-loop-prefetch.c: Likewise.
22327 * tree-ssa-loop-unswitch.c: Likewise.
22328 * tree-ssa-loop.c: Likewise.
22329 * tree-ssa-math-opts.c: Likewise.
22330 * tree-ssa-operands.c: Likewise.
22331 * tree-ssa-phiopt.c: Likewise.
22332 * tree-ssa-phiprop.c: Likewise.
22333 * tree-ssa-pre.c: Likewise.
22334 * tree-ssa-propagate.c: Likewise.
22335 * tree-ssa-reassoc.c: Likewise.
22336 * tree-ssa-sccvn.c: Likewise.
22337 * tree-ssa-scopedtables.c: Likewise.
22338 * tree-ssa-sink.c: Likewise.
22339 * tree-ssa-strlen.c: Likewise.
22340 * tree-ssa-structalias.c: Likewise.
22341 * tree-ssa-tail-merge.c: Likewise.
22342 * tree-ssa-ter.c: Likewise.
22343 * tree-ssa-threadedge.c: Likewise.
22344 * tree-ssa-threadupdate.c: Likewise.
22345 * tree-ssa-uncprop.c: Likewise.
22346 * tree-ssa-uninit.c: Likewise.
22347 * tree-ssa.c: Likewise.
22348 * tree-ssanames.c: Likewise.
22349 * tree-stdarg.c: Likewise.
22350 * tree-streamer-in.c: Likewise.
22351 * tree-streamer-out.c: Likewise.
22352 * tree-streamer.c: Likewise.
22353 * tree-switch-conversion.c: Likewise.
22354 * tree-tailcall.c: Likewise.
22355 * tree-vect-data-refs.c: Likewise.
22356 * tree-vect-generic.c: Likewise.
22357 * tree-vect-loop-manip.c: Likewise.
22358 * tree-vect-loop.c: Likewise.
22359 * tree-vect-patterns.c: Likewise.
22360 * tree-vect-slp.c: Likewise.
22361 * tree-vect-stmts.c: Likewise.
22362 * tree-vectorizer.c: Likewise.
22363 * tree-vrp.c: Likewise.
22364 * tree.c: Likewise.
22365 * tsan.c: Likewise.
22366 * ubsan.c: Likewise.
22367 * valtrack.c: Likewise.
22368 * value-prof.c: Likewise.
22369 * var-tracking.c: Likewise.
22370 * varasm.c: Likewise.
22371 * varpool.c: Likewise.
22372 * vmsdbgout.c: Likewise.
22373 * vtable-verify.c: Likewise.
22374 * web.c: Likewise.
22375 * wide-int.cc: Likewise.
22376 * xcoffout.c: Likewise.
22377 * config/aarch64/aarch64-builtins.c: Likewise.
22378 * config/aarch64/aarch64.c: Likewise.
22379 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22380 * config/alpha/alpha.c: Likewise.
22381 * config/arc/arc.c: Likewise.
22382 * config/arm/aarch-common.c: Likewise.
22383 * config/arm/arm-builtins.c: Likewise.
22384 * config/arm/arm-c.c: Likewise.
22385 * config/arm/arm.c: Likewise.
22386 * config/avr/avr-c.c: Likewise.
22387 * config/avr/avr-log.c: Likewise.
22388 * config/avr/avr.c: Likewise.
22389 * config/bfin/bfin.c: Likewise.
22390 * config/c6x/c6x.c: Likewise.
22391 * config/cr16/cr16.c: Likewise.
22392 * config/cris/cris.c: Likewise.
22393 * config/darwin-c.c: Likewise.
22394 * config/darwin.c: Likewise.
22395 * config/epiphany/epiphany.c: Likewise.
22396 * config/epiphany/mode-switch-use.c: Likewise.
22397 * config/epiphany/resolve-sw-modes.c: Likewise.
22398 * config/fr30/fr30.c: Likewise.
22399 * config/frv/frv.c: Likewise.
22400 * config/ft32/ft32.c: Likewise.
22401 * config/h8300/h8300.c: Likewise.
22402 * config/i386/i386-c.c: Likewise.
22403 * config/i386/i386.c: Likewise.
22404 * config/i386/msformat-c.c: Likewise.
22405 * config/i386/winnt-cxx.c: Likewise.
22406 * config/i386/winnt-stubs.c: Likewise.
22407 * config/i386/winnt.c: Likewise.
22408 * config/ia64/ia64-c.c: Likewise.
22409 * config/ia64/ia64.c: Likewise.
22410 * config/iq2000/iq2000.c: Likewise.
22411 * config/lm32/lm32.c: Likewise.
22412 * config/m32c/m32c-pragma.c: Likewise.
22413 * config/m32c/m32c.c: Likewise.
22414 * config/m32r/m32r.c: Likewise.
22415 * config/m68k/m68k.c: Likewise.
22416 * config/mcore/mcore.c: Likewise.
22417 * config/mep/mep-pragma.c: Likewise.
22418 * config/mep/mep.c: Likewise.
22419 * config/microblaze/microblaze-c.c: Likewise.
22420 * config/microblaze/microblaze.c: Likewise.
22421 * config/mips/mips.c: Likewise.
22422 * config/mmix/mmix.c: Likewise.
22423 * config/mn10300/mn10300.c: Likewise.
22424 * config/moxie/moxie.c: Likewise.
22425 * config/msp430/msp430-c.c: Likewise.
22426 * config/msp430/msp430.c: Likewise.
22427 * config/nds32/nds32-cost.c: Likewise.
22428 * config/nds32/nds32-fp-as-gp.c: Likewise.
22429 * config/nds32/nds32-intrinsic.c: Likewise.
22430 * config/nds32/nds32-isr.c: Likewise.
22431 * config/nds32/nds32-md-auxiliary.c: Likewise.
22432 * config/nds32/nds32-memory-manipulation.c: Likewise.
22433 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22434 * config/nds32/nds32-predicates.c: Likewise.
22435 * config/nds32/nds32.c: Likewise.
22436 * config/nios2/nios2.c: Likewise.
22437 * config/nvptx/nvptx.c: Likewise.
22438 * config/pa/pa.c: Likewise.
22439 * config/pdp11/pdp11.c: Likewise.
22440 * config/rl78/rl78-c.c: Likewise.
22441 * config/rl78/rl78.c: Likewise.
22442 * config/rs6000/rs6000-c.c: Likewise.
22443 * config/rs6000/rs6000.c: Likewise.
22444 * config/rx/rx.c: Likewise.
22445 * config/s390/s390-c.c: Likewise.
22446 * config/s390/s390.c: Likewise.
22447 * config/sh/sh-c.c: Likewise.
22448 * config/sh/sh-mem.cc: Likewise.
22449 * config/sh/sh.c: Likewise.
22450 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22451 * config/sh/sh_treg_combine.cc: Likewise.
22452 * config/sol2-c.c: Likewise.
22453 * config/sol2-cxx.c: Likewise.
22454 * config/sol2-stubs.c: Likewise.
22455 * config/sol2.c: Likewise.
22456 * config/sparc/sparc-c.c: Likewise.
22457 * config/sparc/sparc.c: Likewise.
22458 * config/spu/spu-c.c: Likewise.
22459 * config/spu/spu.c: Likewise.
22460 * config/stormy16/stormy16.c: Likewise.
22461 * config/tilegx/mul-tables.c: Likewise.
22462 * config/tilegx/tilegx-c.c: Likewise.
22463 * config/tilegx/tilegx.c: Likewise.
22464 * config/tilepro/mul-tables.c: Likewise.
22465 * config/tilepro/tilepro-c.c: Likewise.
22466 * config/tilepro/tilepro.c: Likewise.
22467 * config/v850/v850-c.c: Likewise.
22468 * config/v850/v850.c: Likewise.
22469 * config/vax/vax.c: Likewise.
22470 * config/visium/visium.c: Likewise.
22471 * config/vms/vms-c.c: Likewise.
22472 * config/vms/vms.c: Likewise.
22473 * config/vxworks.c: Likewise.
22474 * config/xtensa/xtensa.c: Likewise.
22475
22476 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
22477
22478 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22479 Remove operand constraints. Change operand 2 predicate to
22480 nonmemory operand. Limit const_int values to mode bitsize. Only
22481 allow const_int values less than 32 when optimizing for size.
22482 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22483 Remove operand constraints.
22484 (*bt<mode>): Use SImode for const_int values less than 32.
22485 (regmode): Remove mode attribute.
22486
22487 2015-07-07 Anatoly Sokolov <aesok@post.ru>
22488
22489 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22490 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22491 moxie_legitimate_address_p): New functions.
22492 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22493
22494 2015-07-07 Tom de Vries <tom@codesourcery.com>
22495
22496 PR tree-optimization/66642
22497 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22498 header comment. Rename split_edge variable to edge_at_split. Split
22499 exit edge to create new loop exit bb. Insert loop exit phis in new
22500 loop exit bb.
22501
22502 2015-07-07 Tom de Vries <tom@codesourcery.com>
22503
22504 * tree-cfg.c (get_virtual_phi): New function.
22505 * tree-cfg.h (get_virtual_phi): Declare.
22506 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22507 (rewrite_virtuals_into_loop_closed_ssa): New function.
22508 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22509 Declare.
22510 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22511 (transform_to_exit_first_loop_alt): Use
22512 rewrite_virtuals_into_loop_closed_ssa.
22513
22514 2015-07-07 Richard Biener <rguenther@suse.de>
22515
22516 * fold-const.c (fold_binary_loc): Move
22517 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22518 * match.pd: ... here.
22519 Add (X * C1) % C2 -> 0 simplification pattern derived from
22520 extract_muldiv_1.
22521
22522 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
22523
22524 PR target/66780
22525 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22526 change for target/65249.
22527
22528 2015-07-07 Paulo Matos <pmatos@broadcom.com>
22529
22530 * symtab.c (address_matters_1): Fix typo in comment above.
22531 (can_increase_alignment_p): Likewise.
22532
22533 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22534
22535 * function.c (free_after_compilation): Clear PROP_cfg in
22536 f->curr_properties.
22537
22538 2015-07-07 Richard Biener <rguenther@suse.de>
22539
22540 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22541 add which use to.
22542 (add_control_edge): Remove excessive vertical space in dumping.
22543 (process_ssa_edge_worklist): Simulate at most one statement and
22544 return whether we did. Do not simulate PHIs if they are in a
22545 BB not yet simulated.
22546 (ssa_propagate): Adjust to always drain the BB worklist whenever
22547 a BB is available there, likewise the VARYING edges list before
22548 the interesting edge list.
22549
22550 2015-07-07 Christian Bruel <christian.bruel@st.com>
22551
22552 PR target/52144
22553 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22554
22555 2015-07-07 Richard Biener <rguenther@suse.de>
22556
22557 PR middle-end/66739
22558 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22559 A - B.
22560
22561 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22562
22563 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
22564 modes for operands 0 and 3. Use SImode for operands 2 and 3.
22565 Copy operand 0 to a temporary if !ext_register_operand. Remove
22566 ancient extract_bit_field workaround.
22567 (insv<mode>_1): Rename from mov<mode>_insv_1.
22568 (*insvqi): Rename from *movqi_insv_2.
22569 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22570 for renamed insvsi_1.
22571 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22572
22573 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
22574
22575 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
22576 call to nvptx_reorg_subreg.
22577
22578 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
22579
22580 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22581 * graphite-dependencies.c, graphite-interchange.c,
22582 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22583 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22584 Likewise.
22585
22586 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
22587
22588 * match.pd: Remove element_mode inside HONOR_*.
22589 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22590 (~X | X -> -1, ~X ^ X -> -1): Merge.
22591 * tree.c (build_each_one_cst): New function.
22592 * tree.h (build_each_one_cst): Likewise.
22593
22594 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22595
22596 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22597 PROCESSOR_IAMCU.
22598
22599 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
22600
22601 * config.gcc <mips*-*-*>: Add fused-madd.opt.
22602 * config/mips/mips.opt (mfused-madd): Remove.
22603 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22604 * config/mips/mips.h (TARGET_MIPS8000): New.
22605 (ISA_HAS_FP_MADD4_MSUB4): Remove.
22606 (ISA_HAS_FP_MADDF_MSUBF): Remove.
22607 (ISA_HAS_FP_MADD3_MSUB3): Remove.
22608 (ISA_HAS_NMADD4_NMSUB4): Remove.
22609 (ISA_HAS_NMADD3_NMSUB3): Remove.
22610 (ISA_HAS_FUSED_MADD4): New.
22611 (ISA_HAS_UNFUSED_MADD4): New.
22612 (ISA_HAS_FUSED_MADDF): New.
22613 (ISA_HAS_FUSED_MADD3): New.
22614 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22615 (*fma<mode>4_madd3) New.
22616 (*fma<mode>4_madd4) New.
22617 (*fma<mode>4_maddf) New.
22618 (fms<mode>4) New.
22619 (*fms<mode>4_msub3) New.
22620 (*fms<mode>4_msub4) New.
22621 (fnma<mode>4) New.
22622 (*fnma<mode>4_nmadd3) New.
22623 (*fnma<mode>4_nmadd4) New.
22624 (fnms<mode>4) New.
22625 (*fnms<mode>4_nmsub3) New.
22626 (*fnms<mode>4_nmsub4) New.
22627 (*madd4<mode>) Modify to be unfused only.
22628 (*msub4<mode>) Modify to be unfused only.
22629 (*nmadd4<mode>) Modify to be unfused only.
22630 (*nmsub4<mode>) Modify to be unfused only.
22631 (*madd3<mode>) Remove.
22632 (*msub3<mode>) Remove.
22633 (*nmadd3<mode>) Remove.
22634 (*nmsub3<mode>) Remove.
22635 (*nmadd3<mode>_fastmath) Remove.
22636 (*nmsub3<mode>_fastmath) Remove.
22637 (*nmadd4<mode>_fastmath) Update condition.
22638 (*nmsub4<mode>_fastmath) Update condition.
22639
22640 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22641
22642 PR target/65956
22643 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22644 alignment attribute, exploring one level down for records and arrays.
22645
22646 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22647
22648 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
22649 modes for operands 0 and 1. Use SImode for operands 2 and 3.
22650 Copy operand 1 to a temporary if !ext_register_operand. Remove
22651 ancient extract_bit_field workaround.
22652 (*extv<mode>): Rename from *mov<mode>_extv_1.
22653 (*extvqi): Rename from *movqi_extv_1.
22654 (extzv<mode>): Rename from extzv. Use SWI248 modes for
22655 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
22656 to a temporary if !ext_register_operand. Remove ancient
22657 extract_bit_field workaround.
22658 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
22659 (*extzvqi): Rename from *movqi_extzv_2.
22660 (*testqi_ext_3): Remove modes from const_int_operand predicated
22661 operands. Add "n" constraint.
22662 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
22663 operand. Add "J" constraint.
22664 (*btsq, *btrq, *btcq peephole2s): Remove mode from
22665 const_0_to_63 predicated operand.
22666 (regmode): New insn attribute.
22667 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
22668 to nonmemory_operand. Use regmode insn attribute.
22669 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
22670 (*jcc_bt<mode>_mask): Remove mode from operand 3.
22671 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
22672 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
22673 operands. Use "N" constraint instead of "n".
22674
22675 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22676
22677 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
22678
22679 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22680
22681 PR target/66749
22682 * config/i386/i386.c (iamcu_cost): New.
22683 (m_IAMCU): Likewise.
22684 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
22685 (processor_target_table): Add an entry for "iamcu".
22686 (processor_alias_table): Likewise.
22687 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
22688 (ix86_adjust_cost): Likewise.
22689 (ia32_multipass_dfa_lookahead): Likewise.
22690 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
22691 * config/i386/x86-tune.def: Updated for m_IAMCU.
22692
22693 2015-07-06 Richard Biener <rguenther@suse.de>
22694
22695 PR tree-optimization/66772
22696 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22697 values are available in the PHI node BB when there are
22698 still unexecutable edges.
22699
22700 2015-07-06 Richard Biener <rguenther@suse.de>
22701
22702 PR tree-optimization/66767
22703 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22704 Make sure to build the alignment test on a SSA name without
22705 final alignment info valid only if the alignment test
22706 evaluates to true.
22707
22708 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
22709
22710 PR target/66620
22711 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22712 loop start when inserting LSETUP.
22713
22714 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22715
22716 PR target/53383
22717 * config/i386/i386.c (ix86_option_override_internal): Allow
22718 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22719
22720 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22721
22722 * read-md.c (decimal_string): Rename to ...
22723 (md_decimal_string): ... this.
22724 (handle_enum): Reflect this.
22725
22726 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22727
22728 PR target/66731
22729 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22730
22731 2015-07-06 Richard Biener <rguenther@suse.de>
22732
22733 PR middle-end/66759
22734 * match.pd: Add missing constraint of y to REAL_CST in
22735 REAL_CST - x CMP y to y - CST CMP x simplification.
22736
22737 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
22738
22739 PR tree-optimization/66757
22740 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22741
22742 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
22743 Sandra Loosemore <sandra@codesourcery.com>
22744
22745 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22746 Delete extern declaration.
22747 (gprel_constant_p): Add extern declaration.
22748 * config/nios2/constraints.md ("S"): Use gprel_constant_p
22749 instead of nios2_symbol_ref_in_small_data_p.
22750 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22751 (nios2_symbol_ref_in_small_data_p): Make static.
22752 (gprel_constant_p): Make non-static.
22753
22754 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
22755
22756 * doc/fragments.texi (Target Fragment): Convert debian.org
22757 link to use https.
22758 * doc/install.texi (Configuration): Ditto.
22759
22760 2015-07-05 Jakub Jelinek <jakub@redhat.com>
22761
22762 PR tree-optimization/66718
22763 * tree-vect-stmts.c (vectorizable_call): Replace uses of
22764 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22765
22766 PR tree-optimization/66718
22767 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22768 vectorizable_load, vectorizable_condition): Move vectype,
22769 nunits, ncopies computation after checking what kind of statement
22770 stmt is.
22771
22772 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22773
22774 * target-insns.def (extv, extzv, insv): New targetm instruction
22775 patterns.
22776 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22777 interface.
22778 * recog.c (simplify_while_replacing): Likewise.
22779
22780 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22781
22782 * target-insns.def (doloop_begin, doloop_end): New targetm
22783 instruction patterns.
22784 * loop-init.c: Include target.h.
22785 (pass_loop2::gate): Use the new targetm patterns instead of
22786 HAVE_*/gen_* interface.
22787 (pass_rtl_doloop::gate): Likewise.
22788 (pass_rtl_doloop::execute): Remove preprocessor condition.
22789 * hw-doloop.c: Build unconditionally.
22790 * loop-doloop.c: Likewise.
22791 (doloop_optimize): Use the new targetm patterns instead of
22792 HAVE_*/gen_* interface.
22793 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22794 * modulo-sched.c (doloop_register_get): Likewise.
22795
22796 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22797
22798 * target-insns.def (clear_cache): New targetm instruction pattern.
22799 * builtins.c (expand_builtin___clear_cache): Use it instead of
22800 HAVE_*/gen_* interface.
22801
22802 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22803
22804 * target-insns.def (allocate_stack, check_stack, probe_stack)
22805 (probe_stack_address, split_stack_prologue, split_stack_space_check):
22806 New targetm instruction patterns.
22807 * explow.c (allocate_dynamic_stack_space): Use them instead of
22808 HAVE_*/gen_* interface.
22809 (emit_stack_probe): Likewise.
22810 (probe_stack_range): Likewise.
22811 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22812
22813 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22814
22815 * target-insns.def (stack_protect_set, stack_protect_test): New
22816 targetm instruction patterns.
22817 * cfgexpand.c (stack_protect_prologue): Use them instead of
22818 HAVE_*/gen_* interface.
22819 * function.c (stack_protect_epilogue): Likewise.
22820
22821 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22822
22823 * expr.h (gen_move_insn_uncast): Delete.
22824 * expr.c (gen_move_insn_uncast): Delete.
22825
22826 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22827
22828 * target-insns.def (restore_stack_block, restore_stack_function)
22829 (restore_stack_nonlocal, save_stack_block, save_stack_function)
22830 (save_stack_nonlocal): New targetm instruction patterns.
22831 * builtins.c (expand_builtin_apply): Use them instead of
22832 HAVE_*/gen_* interface.
22833 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22834
22835 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22836
22837 * target-insns.def (trap): New targetm instruction pattern.
22838 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22839 interface.
22840 * explow.c (allocate_dynamic_stack_space): Likewise.
22841 * ifcvt.c (find_if_header): Likewise.
22842
22843 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22844
22845 * target-insns.def (prefetch): New targetm instruction pattern.
22846 * tree-ssa-loop-prefetch.c: Include targeth.
22847 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22848 of HAVE_*/gen_* interface.
22849 * builtins.c (expand_builtin_prefetch): Likewise.
22850 * toplev.c (process_options): Likewise.
22851
22852 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22853
22854 * target-insns.def (untyped_call, untyped_return): New targetm
22855 instruction patterns.
22856 * builtins.c (expand_builtin_apply): Use them instead of
22857 HAVE_*/gen_* interface.
22858 (result_vector): Define unconditionally.
22859
22860 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22861
22862 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22863 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22864 (nonlocal_goto_receiver): New targetm instruction patterns.
22865 * builtins.c (expand_builtin_setjmp_setup): Use them instead
22866 of HAVE_*/gen_* interface.
22867 (expand_builtin_setjmp_receiver): Likewise.
22868 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22869 * except.c (expand_dw2_landing_pad_for_region): Likewise.
22870
22871 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22872
22873 * target.def: Add code_for_* hooks.
22874 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22875 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22876 * target-insns.def (casesi, tablejump): New targetm instruction
22877 patterns.
22878 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22879 (do_tablejump): Likewise.
22880 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22881 (expand_sjlj_dispatch_table): Likewise.
22882 * targhooks.c (default_case_values_threshold): Likewise.
22883
22884 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
22885
22886 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22887 Use rtx_insn * instead of rtx.
22888 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22889 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22890 (nios2_call_tls_get_addr): Likewise.
22891 (nios2_emit_expensive_div): Likewise.
22892 (nios2_emit_move_sequence): Change return type to bool.
22893 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22894 Change return type to bool.
22895
22896 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22897
22898 PR target/66747
22899 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22900
22901 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
22902
22903 PR target/66114
22904 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22905 of register_operand. Remove constraint.
22906
22907 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
22908
22909 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22910 the first argument.
22911
22912 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
22913
22914 * attribs.c (decl_attributes): Guard inform with the return value
22915 of the preceding warning.
22916
22917 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22918
22919 * doc/invoke.texi (moverride): Move to correct section.
22920
22921 2015-07-03 Richard Biener <rguenther@suse.de>
22922
22923 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22924 Copy from tree.c
22925 (dt_operand::gen_gimple_expr): After valueizing operands
22926 re-canonicalize operand order for commutative tree codes.
22927
22928 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
22929
22930 PR target/66746.
22931 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22932 is defined.
22933 (__crc32w): Likewise.
22934 (__crc32d): Likewise.
22935 (__rdpmc): Likewise.
22936 (__rdtscp): Likewise.
22937 (_rdpmc): Likewise.
22938 (_rdtscp): Likewise.
22939 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22940 is defined.
22941
22942 2015-07-03 Richard Biener <rguenther@suse.de>
22943
22944 * fold-const.c (fold_mathfn_compare): Remove.
22945 (fold_inf_compare): Likewise.
22946 (fold_comparison): Move floating point comparison simplifications...
22947 * match.pd: ... to patterns here. Introduce simple_comparisons
22948 operator list and use it for patterns formerly in fold_comparison.
22949
22950 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22951
22952 PR tree-optimization/66119
22953 * toplev.c (process_options): Don't set up default values for
22954 the sra_max_scalarization_size_{speed,size} parameters.
22955 * tree-sra (analyze_all_variable_accesses): If no values
22956 have been set for the sra_max_scalarization_size_{speed,size}
22957 parameters, call get_move_ratio to get target defaults.
22958
22959 2015-07-03 Richard Biener <rguenther@suse.de>
22960
22961 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22962 * match.pd: ... here.
22963
22964 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
22965
22966 PR target/37072
22967 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22968 is not actually the default on FreeBSD.
22969
22970 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22971
22972 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22973 definition.
22974 (CMPGE_8HI): Likewise.
22975 (CMPGE_4SI): Likewise.
22976 (CMPGE_2DI): Likewise.
22977 (CMPGE_U16QI): Likewise.
22978 (CMPGE_U8HI): Likewise.
22979 (CMPGE_U4SI): Likewise.
22980 (CMPGE_U2DI): Likewise.
22981 (CMPLE_16QI): Likewise.
22982 (CMPLE_8HI): Likewise.
22983 (CMPLE_4SI): Likewise.
22984 (CMPLE_2DI): Likewise.
22985 (CMPLE_U16QI): Likewise.
22986 (CMPLE_U8HI): Likewise.
22987 (CMPLE_U4SI): Likewise.
22988 (CMPLE_U2DI): Likewise.
22989 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22990 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22991 ALTIVEC_BUILTIN_VEC_CMPLE.
22992 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22993 floating-point vector modes.
22994 (vector_nlt<mode>): New define_expand.
22995 (vector_nltu<mode>): Likewise.
22996 (vector_ngt<mode>): Likewise.
22997 (vector_ngtu<mode>): Likewise.
22998
22999 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
23000
23001 PR rtl-optimization/66706
23002 * combine.c (make_compound_operation): If an AND of SUBREG of
23003 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23004
23005 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
23006
23007 * tree-pass.h (make_pass_ch_vect): New.
23008 * passes.def: Add pass_ch_vect just before pass_if_conversion.
23009
23010 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23011 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23012 make_pass_ch_vect): New.
23013 (pass_ch): Extend ch_base.
23014
23015 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23016 (ch_base::copy_headers): ...here.
23017
23018 2015-07-02 Richard Biener <rguenther@suse.de>
23019
23020 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23021 * fold-const.c (get_pointer_modulus_and_residue): Remove.
23022 (fold_binary_loc): Implement (T)ptr & CST in terms of
23023 get_pointer_alignment_1.
23024 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23025 Make sure to build the alignment test on a SSA name without
23026 final alignment info valid only after the prologue.
23027
23028 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
23029
23030 * config/cris/cris.md ("epilogue"): Remove condition.
23031 ("prologue"): Ditto.
23032
23033 2015-07-02 Richard Biener <rguenther@suse.de>
23034
23035 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23036 parameter to record a condition that is false.
23037 (record_conditions): When recording an extra NE_EXPR that is
23038 true also record a EQ_EXPR that is false.
23039
23040 2015-07-02 Bin Cheng <bin.cheng@arm.com>
23041
23042 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23043 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23044 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
23045 (set_iv, find_interesting_uses_address, add_candidate_1): New
23046 argument to alloc_iv.
23047 (find_interesting_uses_op, find_interesting_uses_cond): Don't
23048 duplicate struct iv.
23049 (free_loop_data): Don't free struct iv explicitly.
23050 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23051
23052 2015-07-01 DJ Delorie <dj@redhat.com>
23053
23054 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23055 (LIB_SPEC): Add.
23056 (SUPPORTS_DISCRIMINATOR): Define.
23057
23058 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23059
23060 PR bootstrap/66685
23061 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23062 there are no CALLs in the same pattern.
23063
23064 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23065
23066 PR rtl-optimization/61047
23067 * rtlanal.c (get_initial_register_offset): New function.
23068 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23069
23070 2015-07-01 Richard Biener <rguenther@suse.de>
23071
23072 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23073 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23074 ~X CMP C -> X CMP' ~C to ...
23075 * match.pd: ... patterns here.
23076
23077 2015-07-01 Nick Clifton <nickc@redhat.com>
23078
23079 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23080 a 16-bit value into a 20-bit memory slot.
23081
23082 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23083
23084 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23085 "aarch64_tiny", "aarch64_small", "aarch64_large",
23086 "aarch64_little_endian", "aarch64_big_endian".
23087
23088 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23089
23090 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23091 Document "aarch64_small_fpic".
23092
23093 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23094
23095 * configure.ac: Add check for aarch64 assembler -fpic relocation
23096 modifier support.
23097 * configure: Regenerate.
23098 * config.in: Regenerate.
23099 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23100 to -fPIC if not support of -fpic relocation modifier in assembler.
23101
23102 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23103
23104 PR bootstrap/66685
23105 * rtl.c (classify_insn): Handle returns in PARALLELs.
23106
23107 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23108
23109 PR middle-end/66633
23110 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23111 to true if the function is nested and if not optimizing.
23112 (convert_local_omp_clauses): Initialize need_frame to true if the
23113 function contains nested functions and if not optimizing.
23114
23115 2015-07-01 Richard Biener <rguenther@suse.de>
23116
23117 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23118 (X & Y) ^ Y -> ~X & Y transforms to ...
23119 * match.pd: ... here.
23120
23121 2015-07-01 Richard Biener <rguenther@suse.de>
23122
23123 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23124 of converts to avoid uninteresting noise from the conversion
23125 simplifying patterns.
23126
23127 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23128
23129 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23130 gcc_assert evaluating its argument for side-effect.
23131
23132 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23133
23134 PR target/64833
23135 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23136 flag_pic is set.
23137
23138 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23139
23140 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23141 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23142 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23143 to the inner DFS walk.
23144
23145 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23146
23147 * target-insns.def (jump): New targetm instruction pattern.
23148 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23149 instead of gen_jump.
23150 (fix_up_crossing_landing_pad): Likewise.
23151 (add_labels_and_missing_jumps): Likewise.
23152 (fix_crossing_conditional_branches): Likewise.
23153 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23154 (force_nonfallthru_and_redirect): Likewise.
23155 * cse.c (cse_insn): Likewise.
23156 * expmed.c (expand_divmod): Likewise.
23157 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23158 * haifa-sched.c (init_before_recovery): Likewise.
23159 (sched_create_recovery_edges): Likewise.
23160 * ifcvt.c (find_cond_trap): Likewise.
23161 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23162 (expand_float, expand_fix): Likewise.
23163 * stmt.c (emit_jump): Likewise.
23164
23165 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23166
23167 * defaults.h (HAVE_load_multiple, gen_load_multiple)
23168 (HAVE_store_multiple, gen_store_multiple): Delete.
23169 * target-insns.def (load_multiple, store_multiple): New targetm
23170 instruction patterns.
23171 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23172 of HAVE_*/gen_* interface.
23173
23174 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23175
23176 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23177 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23178 (gen_mem_signal_fence): Delete.
23179 * target-insns.def (mem_signal_fence, mem_thread_fence)
23180 (memory_barrier): New targetm instruction patterns.
23181 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23182 interface.
23183 (expand_mem_signal_fence): Likewise.
23184
23185 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23186
23187 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23188 * target-insns.def (epilogue, prologue, sibcall_prologue): New
23189 targetm instruction patterns.
23190 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23191 interface.
23192 * calls.c (expand_call): Likewise.
23193 * cfgrtl.c (cfg_layout_finalize): Likewise.
23194 * df-scan.c (df_get_entry_block_def_set): Likewise.
23195 (df_get_exit_block_use_set): Likewise.
23196 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23197 * final.c (final_start_function): Likewise.
23198 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23199 (reposition_prologue_and_epilogue_notes): Likewise.
23200 * reorg.c (find_end_label): Likewise.
23201 * toplev.c (process_options): Likewise.
23202
23203 2015-06-30 David Malcolm <dmalcolm@redhat.com>
23204
23205 * typed-splay-tree.h: New file.
23206
23207 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
23208
23209 PR debug/66691
23210 * lra-int.h (lra_substitute_pseudo): Add a parameter.
23211 (lra_substitute_pseudo_within_insn): Ditto.
23212 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
23213 of constant.
23214 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
23215 to lra_substitute_pseudo.
23216 * lra-lives.c (process_bb_lives): Add an argument to
23217 lra_substitute_pseudo_within_insn call.
23218 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23219 argument to lra_substitute_pseudo and
23220 lra_substitute_pseudo_within_insn calls.
23221 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23222
23223 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23224
23225 * configure: Regenerated.
23226
23227 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23228
23229 * config.gcc: Support i[34567]86-*-elfiamcu target.
23230 * config/i386/iamcu.h: New.
23231 * config/i386/i386.opt: Add -miamcu.
23232 * doc/invoke.texi: Document -miamcu.
23233 * common/config/i386/i386-common.c (ix86_handle_option): Turn
23234 off x87/MMX/SSE/AVX codegen for -miamcu.
23235 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23236 __iamcu/__iamcu__ for -miamcu.
23237 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23238 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23239 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23240 * config/i386/i386.c (ix86_option_override_internal): Ignore and
23241 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
23242 MCU by default. Default long double to 64-bit for Intel MCU.
23243 Turn on -freg-struct-return for Intel MCU. Issue an error when
23244 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23245 AVX is turned on.
23246 (function_arg_advance_32): Pass value whose size is no larger
23247 than 8 bytes in registers for Intel MCU.
23248 (function_arg_32): Likewise.
23249 (ix86_return_in_memory): Return value whose size is no larger
23250 than 8 bytes in registers for Intel MCU.
23251 (iamcu_alignment): New function.
23252 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23253 true.
23254 (ix86_local_alignment): Don't increase alignment for Intel MCU.
23255 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23256 true.
23257
23258 2015-06-30 Marek Polacek <polacek@redhat.com>
23259
23260 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
23261 both operands of the resulting expression.
23262
23263 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
23264 the final expression with the operand's type and then convert
23265 it to the type of the expression.
23266
23267 2015-06-30 Richard Biener <rguenther@suse.de>
23268
23269 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23270 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23271 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23272 * match.pd: ... to patterns here.
23273
23274 2015-06-30 Richard Biener <rguenther@suse.de>
23275
23276 PR tree-optimization/66704
23277 * tree-vect-data-refs.c (vect_setup_realignment): Use
23278 make_ssa_name for non-SSA name source.
23279
23280 2015-06-30 Jakub Jelinek <jakub@redhat.com>
23281
23282 PR middle-end/66702
23283 * omp-low.c (simd_clone_adjust): Handle addressable linear
23284 or uniform parameters or non-gimple type uniform parameters.
23285
23286 2015-06-30 Richard Biener <rguenther@suse.de>
23287
23288 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23289 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23290 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23291 * match.pd: ... here.
23292 Add a few cases of A - B -> A + (-B) when B "easily" negates.
23293 Move (x & y) | x -> x and friends before
23294 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23295
23296 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23297
23298 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23299 -mfix-ut699 is not specified.
23300 (leon3_load): Rename into...
23301 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
23302 is specified.
23303
23304 2015-06-30 Marek Polacek <polacek@redhat.com>
23305
23306 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23307 * match.pd: ... here.
23308
23309 2015-06-30 Richard Biener <rguenther@suse.de>
23310
23311 * target-insns.def (canonicalize_funcptr_for_compare): Add.
23312 * fold-const.c (build_range_check): Replace uses of
23313 HAVE_canonicalize_funcptr_for_compare.
23314 (fold_widened_comparison): Likewise.
23315 (fold_sign_changed_comparison): Likewise.
23316 * dojump.c: Include "target.h".
23317 (do_compare_and_jump): Replace uses of
23318 HAVE_canonicalize_funcptr_for_compare and
23319 gen_canonicalize_funcptr_for_compare.
23320 * expr.c (do_store_flag): Likewise.
23321
23322 2015-06-30 Tom de Vries <tom@codesourcery.com>
23323
23324 PR tree-optimization/66652
23325 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23326 max_loop_iterations to determine if nit + 1 overflows.
23327
23328 2015-06-30 Richard Biener <rguenther@suse.de>
23329
23330 * tree-vrp.c (register_edge_assert_for_2): Also register
23331 asserts for dominating conversion results.
23332
23333 2015-06-30 Bin Cheng <bin.cheng@arm.com>
23334
23335 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23336 field in struct iv.
23337
23338 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
23339
23340 PR target/66509
23341 * configure.ac: Fix filds and fildq test for 64-bit.
23342 * configure: Regenerated.
23343
23344 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
23345
23346 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23347 (nvptx_reorg): Here. Keep the non-subreg pieces.
23348
23349 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
23350
23351 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23352 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23353
23354 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
23355
23356 * config/i386/i386.md (*jcc_1): Use %! in asm template.
23357 Set attribute "length_nobnd" instead of "length".
23358 (*jcc_2): Ditto.
23359 (jump): Ditto.
23360 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23361
23362 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
23363
23364 * config/nios2/nios2.c (nios2_delegitimize_address): Make
23365 assert less restrictive.
23366
23367 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23368
23369 PR fortran/66605
23370 * cgraphunit.c (cgraph_node::finalize_function): Do not call
23371 do_warn_unused_parameter.
23372 * function.c (do_warn_unused_parameter): Move from here.
23373 * function.h (do_warn_unused_parameter): Do not declare.
23374
23375 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23376
23377 PR target/65697
23378 * gcc.target/arm/armv-sync-comp-swap.c: New.
23379 * gcc.target/arm/armv-sync-op-acquire.c: New.
23380 * gcc.target/arm/armv-sync-op-full.c: New.
23381 * gcc.target/arm/armv-sync-op-release.c: New.
23382
23383 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23384
23385 PR target/65697
23386 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23387 initial acquire barrier with final barrier.
23388
23389 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23390
23391 PR target/65697
23392 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23393 initial acquire barrier with final barrier.
23394
23395 2015-06-29 Richard Henderson <rth@redhat.com>
23396
23397 * config/i386/constraints.md (Bf): New constraint.
23398 * config/i386/i386-c.c (ix86_target_macros): Define
23399 __GCC_ASM_FLAG_OUTPUTS__.
23400 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23401 as flags outputs.
23402 * doc/extend.texi (FlagOutputOperands): Document them.
23403
23404 2015-06-29 Jiong Wang <jiong.wang@arm.com>
23405
23406 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23407 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23408 unspec name.
23409 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23410 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23411 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23412 (aarch64_symbol_context): Ditto.
23413 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23414 and use new pattern name.
23415 (aarch64_expand_mov_immediate): Ditto.
23416 (aarch64_print_operand): Ditto.
23417 (aarch64_classify_tls_symbol): Ditto.
23418
23419 2015-06-29 Marek Polacek <polacek@redhat.com>
23420 Marc Glisse <marc.glisse@inria.fr>
23421
23422 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23423 * match.pd: ... pattern here.
23424
23425 2015-06-29 Tom de Vries <tom@codesourcery.com>
23426
23427 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23428 function structure.
23429
23430 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23431
23432 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23433 feature description, split out the native option, add a link to
23434 the feature documentation, rearrange and slightly rewrite text.
23435 (Aarch64 options, -mcpu): Likewise.
23436 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
23437 +rdma implies Adv. SIMD.
23438
23439 2015-06-29 Marek Polacek <polacek@redhat.com>
23440
23441 PR c/66322
23442 * function.c (stack_protect_epilogue): Remove a cast to int.
23443 * doc/invoke.texi: Update -Wswitch-bool description.
23444
23445 2015-06-29 Richard Biener <rguenther@suse.de>
23446
23447 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23448 * fold-const.c (fold_binary_loc): Move &A - &B simplification
23449 via ptr_difference_const ...
23450 * match.pd: ... here.
23451 When matching (X ^ Y) == Y also match with swapped operands.
23452
23453 2015-06-29 Richard Biener <rguenther@suse.de>
23454
23455 * lto-streamer.h (LTO_major_version): Bump to 5.
23456
23457 2015-06-29 Richard Biener <rguenther@suse.de>
23458
23459 PR tree-optimization/66677
23460 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23461 STMT_VINFO_VEC_STMT clobbering less strict.
23462
23463 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
23464
23465 PR middle-end/64130
23466 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23467 division, compute max and min when value ranges for dividend and
23468 divisor are available.
23469
23470 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
23471 Sandra Loosemore <sandra@codesourcery.com>
23472
23473 * regrename.h (regrename_do_replace): Change to return bool.
23474 * regrename.c (rename_chains): Check return value of
23475 regname_do_replace.
23476 (regrename_do_replace): Re-validate the modified insns and
23477 return bool status.
23478 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23479 Update to match rename_chains changes.
23480 * config/c6x/c6x.c (try_rename_operands): Assert that
23481 regrename_do_replace returns true.
23482
23483 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
23484
23485 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23486 operand 2 here. Use copy_addr_to_reg to copy non-index
23487 register operand 2 to a temporary.
23488 (<mode>_stx): Ditto for operand 1.
23489 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23490 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23491 (ix86_store_bounds): Ditto.
23492
23493 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
23494
23495 * print-tree.c (print_node) [TREE_VEC]: Print its length.
23496
23497 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
23498
23499 * gimple.c (gimple_call_set_fndecl): Remove.
23500 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23501 build1_loc directly instead of build_fold_addr_expr_loc.
23502
23503 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23504
23505 * hash-map.h (hash_map::traverse): Use the definition of the
23506 Key typedef rather than the typedef itself.
23507
23508 2015-06-26 Martin Jambor <mjambor@suse.cz>
23509
23510 PR debug/66301
23511 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23512 NULL instead of calling dump_enabled_p.
23513
23514 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23515
23516 * config/aarch64/aarch64.opt: (override): New.
23517 * doc/invoke.texi (override): Document.
23518 * config/aarch64/aarch64.c (aarch64_flag_desc): New
23519 (aarch64_fusible_pairs): Likewise.
23520 (aarch64_tuning_flags): Likewise.
23521 (aarch64_tuning_override_function): Likewise.
23522 (aarch64_tuning_override_functions): Likewise.
23523 (aarch64_parse_one_option_token): Likewise.
23524 (aarch64_parse_boolean_options): Likewise.
23525 (aarch64_parse_fuse_string): Likewise.
23526 (aarch64_parse_tune_string): Likewise.
23527 (aarch64_parse_one_override_token): Likewise.
23528 (aarch64_parse_override_string): Likewise.
23529 (aarch64_override_options): Parse the -override string if it
23530 is present.
23531
23532 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23533
23534 * config/aarch64/aarch64-protos.h (tune_params): Remove
23535 const from members.
23536 (aarch64_tune_params): Remove const, change to no longer be
23537 a pointer.
23538 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23539 change to no longer be a pointer, initialize to generic_tunings.
23540 (aarch64_min_divisions_for_recip_mul): Change dereference of
23541 aarch64_tune_params to member access.
23542 (aarch64_reassociation_width): Likewise.
23543 (aarch64_rtx_mult_cost): Likewise.
23544 (aarch64_address_cost): Likewise.
23545 (aarch64_branch_cost): Likewise.
23546 (aarch64_rtx_costs): Likewise.
23547 (aarch64_register_move_cost): Likewise.
23548 (aarch64_memory_move_cost): Likewise.
23549 (aarch64_sched_issue_rate): Likewise.
23550 (aarch64_builtin_vectorization_cost): Likewise.
23551 (aarch64_override_options): Take a copy of the selected tuning
23552 struct in to aarch64_tune_params, rather than just setting
23553 a pointer, change dereferences of aarch64_tune_params to member
23554 accesses.
23555 (aarch64_override_options_after_change): Change dereferences of
23556 aarch64_tune_params to member access.
23557 (aarch64_macro_fusion_p): Likewise.
23558 (aarch_macro_fusion_pair_p): Likewise.
23559 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23560
23561 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23562
23563 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23564 (aarch64_tune_flags): Likewise.
23565 (AARCH64_TUNE_FMA_STEERING): Likewise.
23566 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23567 to AARCH64_FL_USE_FMA_STEERING_PASS.
23568 (cortex-a57.cortex-a53): Likewise.
23569 (cortex-a72): Use cortexa72_tunings.
23570 (cortex-a72.cortex-a53): Likewise.
23571 (exynos-m1): Likewise.
23572 * config/aarch64/aarch64-protos.h (tune_params): Add
23573 a field: extra_tuning_flags.
23574 * config/aarch64/aarch64-tuning-flags.def: New.
23575 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23576 (aarch64_extra_tuning_flags): Likewise.
23577 (aarch64_tune_params): Declare here.
23578 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23579 (cortexa53_tunings): Likewise.
23580 (cortexa57_tunings): Likewise.
23581 (thunderx_tunings): Likewise.
23582 (xgene1_tunings): Likewise.
23583 (cortexa72_tunings): New.
23584 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23585 (gate): Check against aarch64_tune_params.
23586 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23587 aarch64-protos.h.
23588
23589 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23590
23591 * config/aarch64/aarch64-fusion-pairs.def: New.
23592 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23593 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23594 aarch64_fusion_pairs.
23595 (AARCH64_FUSE_MOV_MOVK): Likewise.
23596 (AARCH64_FUSE_ADRP_ADD): Likewise.
23597 (AARCH64_FUSE_MOVK_MOVK): Likewise.
23598 (AARCH64_FUSE_ADRP_LDR): Likewise.
23599 (AARCH64_FUSE_CMP_BRANCH): Likewise.
23600
23601 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23602
23603 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23604 SYMBOL_SMALL_GOT_28K.
23605 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23606 relocation modifiers.
23607 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23608 (ldr_got_small_28k_<mode>): New.
23609 (ldr_got_small_28k_sidi): New.
23610 * config/aarch64/iterators.md (got_modifier): New mode iterator.
23611 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23612 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23613 SYMBOL_SMALL_GOT_28K.
23614 (aarch64_rtx_costs): Add costs for new instruction sequences.
23615 (initialize_aarch64_code_model): Initialize new model.
23616 (aarch64_classify_symbol): Recognize new model and new symbol classification.
23617 (aarch64_asm_preferred_eh_data_format): Support new model.
23618 (aarch64_load_symref_appropriately): Generate new instruction
23619 sequences for -fpic.
23620 (TARGET_USE_PSEUDO_PIC_REG): New definition.
23621 (aarch64_use_pseudo_pic_reg): New function.
23622
23623 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23624
23625 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23626 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23627 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23628 (aarch64_expand_mov_immediate): Ditto.
23629 (aarch64_print_operand): Ditto.
23630 (aarch64_classify_symbol): Ditto.
23631
23632 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
23633
23634 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23635
23636 2015-06-26 Bin Cheng <bin.cheng@arm.com>
23637
23638 PR bootstrap/66638
23639 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23640 assertion failed. Remove assertion itself.
23641
23642 2015-06-26 Richard Biener <rguenther@suse.de>
23643
23644 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23645 and -A CMP CST -> A CMP -CST which is redundant with a pattern
23646 in match.pd.
23647 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23648 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23649 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23650 * match.pd: ... patterns here.
23651
23652 2015-06-26 Marek Polacek <polacek@redhat.com>
23653
23654 * match.pd ((x | y) & ~(x & y) -> x ^ y,
23655 (x | y) & (~x ^ y) -> x & y): New patterns.
23656
23657 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23658
23659 * rtl.h (emit): Add an optional boolean parameter to control
23660 whether barriers are emitted.
23661 * emit-rtl.c (emit): Likewise.
23662 * gensupport.c (get_emit_function): Return null rather than "emit".
23663 * genemit.c (gen_emit_seq): Handle the null return value.
23664 Don't emit barriers after the final instruction in the sequence.
23665 * gentarget-def.c (main): Don't emit barriers after the instruction.
23666
23667 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23668
23669 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
23670 TARGET_UNIFIED_ASM.
23671
23672 2015-06-26 Richard Biener <rguenther@suse.de>
23673
23674 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
23675
23676 2015-06-26 Richard Biener <rguenther@suse.de>
23677
23678 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
23679 irrespective on whether the inner operation has a single use
23680 of both off are constant.
23681
23682 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
23683 Segher Boessenkool <segher@kernel.crashing.org>
23684
23685 PR target/66412
23686 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
23687 before doing PUT_MODE or PUT_CODE on operands to avoid
23688 in-place RTX modification.
23689
23690 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23691
23692 * gentarget-def.c (def_target_insn): Cast return of strtol to
23693 unsigned int.
23694
23695 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23696
23697 * gimple.h (gimple_call_set_fn): Move inline function.
23698 * gimple.c (gimple_call_set_fn): Relocate here.
23699
23700 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
23701
23702 PR target/65979
23703 PR target/66611
23704 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23705 the replacement insn will work.
23706
23707 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23708
23709 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23710 by default.
23711
23712 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23713
23714 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23715 * cgraph.h: Include ipa-ref.h and plugin-api.h.
23716 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23717 (symtab_node::address_can_be_compared_p): Move function.
23718 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23719 definition here.
23720 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23721 * auto-profile.c: Likewise.
23722 * bb-reorder.c: Likewise.
23723 * builtins.c: Likewise.
23724 * calls.c: Likewise.
23725 * cfgexpand.c: Likewise.
23726 * cgraphbuild.c: Likewise.
23727 * cgraphclones.c: Likewise.
23728 * cgraphunit.c: Likewise.
23729 * combine.c: Likewise.
23730 * coverage.c: Likewise.
23731 * data-streamer-in.c: Likewise.
23732 * data-streamer-out.c: Likewise.
23733 * data-streamer.c: Likewise.
23734 * dbxout.c: Likewise.
23735 * dwarf2out.c: Likewise.
23736 * except.c: Likewise.
23737 * expr.c: Likewise.
23738 * final.c: Likewise.
23739 * fold-const.c: Likewise.
23740 * ggc-page.c: Likewise.
23741 * gimple-fold.c: Likewise.
23742 * gimple-iterator.c: Likewise.
23743 * gimple-pretty-print.c: Likewise.
23744 * gimple-streamer-in.c: Likewise.
23745 * gimple-streamer-out.c: Likewise.
23746 * gimple.c: Likewise.
23747 * gimplify.c: Likewise.
23748 * ipa-chkp.c: Likewise.
23749 * ipa-comdats.c: Likewise.
23750 * ipa-cp.c: Likewise.
23751 * ipa-devirt.c: Likewise.
23752 * ipa-icf-gimple.c: Likewise.
23753 * ipa-icf.c: Likewise.
23754 * ipa-inline-analysis.c: Likewise.
23755 * ipa-inline-transform.c: Likewise.
23756 * ipa-inline.c: Likewise.
23757 * ipa-polymorphic-call.c: Likewise.
23758 * ipa-profile.c: Likewise.
23759 * ipa-prop.c: Likewise.
23760 * ipa-pure-const.c: Likewise.
23761 * ipa-ref.c: Likewise.
23762 * ipa-reference.c: Likewise.
23763 * ipa-split.c: Likewise.
23764 * ipa-utils.c: Likewise.
23765 * ipa-visibility.c: Likewise.
23766 * ipa.c: Likewise.
23767 * langhooks.c: Likewise.
23768 * lto-cgraph.c: Likewise.
23769 * lto-compress.c: Likewise.
23770 * lto-opts.c: Likewise.
23771 * lto-section-in.c: Likewise.
23772 * lto-section-out.c: Likewise.
23773 * lto-streamer-in.c: Likewise.
23774 * lto-streamer-out.c: Likewise.
23775 * lto-streamer.c: Likewise.
23776 * omp-low.c: Likewise.
23777 * opts-global.c: Likewise.
23778 * passes.c: Likewise.
23779 * predict.c: Likewise.
23780 * print-tree.c: Likewise.
23781 * profile.c: Likewise.
23782 * ree.c: Likewise.
23783 * sanopt.c: Likewise.
23784 * stor-layout.c: Likewise.
23785 * symtab.c: Likewise.
23786 * toplev.c: Likewise.
23787 * trans-mem.c: Likewise.
23788 * tree-cfg.c: Likewise.
23789 * tree-chkp.c: Likewise.
23790 * tree-eh.c: Likewise.
23791 * tree-emutls.c: Likewise.
23792 * tree-inline.c: Likewise.
23793 * tree-nested.c: Likewise.
23794 * tree-parloops.c: Likewise.
23795 * tree-pretty-print.c: Likewise.
23796 * tree-profile.c: Likewise.
23797 * tree-sra.c: Likewise.
23798 * tree-ssa-alias.c: Likewise.
23799 * tree-ssa-live.c: Likewise.
23800 * tree-ssa-loop-ivcanon.c: Likewise.
23801 * tree-ssa-loop-ivopts.c: Likewise.
23802 * tree-ssa-pre.c: Likewise.
23803 * tree-ssa-sccvn.c: Likewise.
23804 * tree-ssa-strlen.c: Likewise.
23805 * tree-ssa-structalias.c: Likewise.
23806 * tree-streamer-in.c: Likewise.
23807 * tree-streamer-out.c: Likewise.
23808 * tree-streamer.c: Likewise.
23809 * tree-switch-conversion.c: Likewise.
23810 * tree-tailcall.c: Likewise.
23811 * tree-vect-data-refs.c: Likewise.
23812 * tree-vect-stmts.c: Likewise.
23813 * tree-vectorizer.c: Likewise.
23814 * tree.c: Likewise.
23815 * tsan.c: Likewise.
23816 * ubsan.c: Likewise.
23817 * value-prof.c: Likewise.
23818 * varasm.c: Likewise.
23819 * varpool.c: Likewise.
23820 * config/arm/arm.c: Likewise.
23821 * config/bfin/bfin.c: Likewise.
23822 * config/c6x/c6x.c: Likewise.
23823 * config/cris/cris.c: Likewise.
23824 * config/darwin-c.c: Likewise.
23825 * config/darwin.c: Likewise.
23826 * config/i386/i386.c: Likewise.
23827 * config/i386/winnt.c: Likewise.
23828 * config/microblaze/microblaze.c: Likewise.
23829 * config/mips/mips.c: Likewise.
23830 * config/rs6000/rs6000.c: Likewise.
23831 * config/rx/rx.c: Likewise.
23832 * config/s390/s390.c: Likewise.
23833 * config/tilegx/mul-tables.c: Likewise.
23834
23835 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23836
23837 * config/aarch64/aarch64.c, config/alpha/alpha.c,
23838 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23839 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23840 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23841 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23842 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23843 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23844 config/microblaze/microblaze.c, config/mips/mips.c,
23845 config/mmix/mmix.c, config/mn10300/mn10300.c,
23846 config/moxie/moxie.c, config/msp430/msp430.c,
23847 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23848 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23849 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23850 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23851 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23852 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23853 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23854 target-def.h include.
23855 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
23856
23857 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23858
23859 * Makefile.in (TARGET_DEF): Add target-insns.def.
23860 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23861 (build/gentarget-def.o): New rule.
23862 (genprogrtl): Add target-def.
23863 * target-insns.def, gentarget-def.c: New files.
23864 * target.def: Add targetm.have_* and targetm.gen_* hooks,
23865 based on the contents of target-insns.def.
23866 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23867 (HAVE_return, gen_return): Delete.
23868 * target-def.h: Include insn-target-def.h.
23869 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23870 instead of direct calls. Rely on them to do the appropriate assertions.
23871 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
23872 (convert_jumps_to_returns): Use targetm interface instead of
23873 direct calls.
23874 (thread_prologue_and_epilogue_insns): Likewise.
23875 * reorg.c (find_end_label, dbr_schedule): Likewise.
23876 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23877 * shrink-wrap.c (convert_to_simple_return): Likewise.
23878 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23879
23880 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23881
23882 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23883 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23884 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23885 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23886 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23887 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23888 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23889 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23890 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23891 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23892 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23893 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23894 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23895 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23896 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23897 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23898 includes to end.
23899
23900 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23901
23902 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23903 (unbounded_int_hashmap_traits::key_type): Likewise.
23904 * hash-map.h (hash_map): Get the key type from the traits.
23905 * hash-traits.h (default_hash_traits): By default, inherit from the
23906 template parameter.
23907 * alias.c (alias_set_traits): Delete.
23908 (alias_set_entry_d::children): Use alias_set_hash as the first
23909 template parameter.
23910 (record_alias_subset): Update accordingly.
23911 * except.c (tree_hash_traits): Delete.
23912 (type_to_runtime_map): Use tree_hash as the first template parameter.
23913 (init_eh): Update accordingly.
23914 * genmatch.c (capture_id_map_hasher): Delete.
23915 (cid_map_t): Use nofree_string_hash as first template parameter.
23916 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23917 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23918 Use symbol_compare_hash as the first template parameter in
23919 subdivide_hash_map.
23920 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23921 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23922 template parameter.
23923 * passes.c (pass_registry_hasher): Delete.
23924 (name_to_pass_map): Use nofree_string_hash as the first template
23925 parameter.
23926 (register_pass_name): Update accordingly.
23927 * sanopt.c (sanopt_tree_map_traits): Delete.
23928 (sanopt_tree_triplet_map_traits): Delete.
23929 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23930 template parameter.
23931 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23932 the first template parameter.
23933 * sese.c (rename_map_hasher): Delete.
23934 (rename_map_type): Use tree_ssa_name_hash as the first template
23935 parameter.
23936 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23937 (function_summary::m_map): Use map_hash as the first template
23938 parameter.
23939 (function_summary::release): Update accordingly.
23940 * tree-if-conv.c (phi_args_hash_traits): Delete.
23941 (predicate_scalar_phi): Use tree_operand_hash as the first template
23942 parameter to phi_arg_map.
23943 * tree-inline.h (dependence_hasher): Delete.
23944 (copy_body_data::dependence_map): Use dependence_hash as the first
23945 template parameter.
23946 * tree-inline.c (remap_dependence_clique): Update accordingly.
23947 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23948 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23949 parameter.
23950 (addr_stridxptr): Update accordingly.
23951 * value-prof.c (profile_id_traits): Delete.
23952 (cgraph_node_map): Use profile_id_hash as the first template
23953 parameter.
23954 (init_node_map): Update accordingly.
23955 * config/alpha/alpha.c (string_traits): Delete.
23956 (machine_function::links): Use nofree_string_hash as the first
23957 template parameter.
23958 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23959 * config/m32c/m32c.c (pragma_traits): Delete.
23960 (pragma_htab): Use nofree_string_hash as the first template parameter.
23961 (m32c_note_pragma_address): Update accordingly.
23962 * config/mep/mep.c (pragma_traits): Delete.
23963 (pragma_htab): Use nofree_string_hash as the first template parameter.
23964 (mep_note_pragma_flag): Update accordingly.
23965 * config/mips/mips.c (mips16_flip_traits): Delete.
23966 (mflip_mips16_htab): Use nofree_string_hash as the first template
23967 parameter.
23968 (mflip_mips16_use_mips16_p): Update accordingly.
23969 (local_alias_traits): Delete.
23970 (mips16_local_aliases): Use nofree_string_hash as the first template
23971 parameter.
23972 (mips16_local_alias): Update accordingly.
23973
23974 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23975
23976 * hash-map-traits.h (default_hashmap_traits): Delete.
23977
23978 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23979
23980 * hash-map-traits.h (unbounded_hashmap_traits): New class.
23981 (unbounded_int_hashmap_traits): Likewise.
23982 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23983
23984 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23985
23986 * ipa-icf.h (symbol_compare_hash): New class.
23987 (symbol_compare_hashmap_traits): Use it.
23988 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23989 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23990 (mem_alloc_description::reverse_mem_map_t): Remove redundant
23991 default_hashmap_traits.
23992 * sanopt.c (sanopt_tree_triplet_hash): New class.
23993 (sanopt_tree_triplet_map_traits): Use it.
23994
23995 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23996
23997 * gengtype-parse.c (require_template_declaration): Allow '+' in
23998 template parameters. Consolidate cases.
23999 * hash-traits.h (int_hash): New class.
24000 * alias.c (alias_set_hash): New structure.
24001 (alias_set_traits): Use it.
24002 * symbol-summary.h (function_summary::map_hash): New class.
24003 (function_summary::summary_hashmap_traits): Use it.
24004 * tree-inline.h (dependence_hash): New class.
24005 (dependence_hasher): Use it.
24006 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24007 * value-prof.c (profile_id_hash): New class.
24008 (profile_id_traits): Use it.
24009
24010 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24011
24012 * config/mips/mips.c (mips16_flip_traits): Use it.
24013 (local_alias_traits, mips16_local_aliases): Convert from a map of
24014 rtxes to a map of symbol names.
24015 (mips16_local_alias): Update accordingly.
24016
24017 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24018
24019 * hash-traits.h (string_hash, nofree_string_hash): New classes.
24020 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24021 * passes.c (pass_registry_hasher): Likewise.
24022 * config/alpha/alpha.c (string_traits): Likewise.
24023 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24024 * config/m32c/m32c.c (pragma_traits): Likewise.
24025 * config/mep/mep.c (pragma_traits): Likewise.
24026
24027 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24028
24029 * tree-hash-traits.h (tree_hash): New class.
24030 * except.c: Include tree-hash-traits.h.
24031 (tree_hash_traits): Use tree_hash.
24032
24033 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24034
24035 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24036 * sese.c: Include tree-hash-traits.h.
24037 (rename_map_hasher): Use tree_ssa_name_hasher.
24038
24039 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24040
24041 * tree-hash-traits.h (tree_decl_hash): New class.
24042 * tree-ssa-strlen.c: Include tree-hash-traits.h.
24043 (stridxlist_hash_traits): Use tree_decl_hash.
24044
24045 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24046
24047 * tree-hash-traits.h: New file.
24048 (tree_operand_hash): New class.
24049 * sanopt.c: Include tree-hash-traits.h.
24050 (sanopt_tree_map_traits): Use tree_operand_hash.
24051 * tree-if-conv.c: Include tree-hash-traits.h.
24052 (phi_args_hash_traits): Use tree_operand_hash.
24053 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24054 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24055
24056 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24057
24058 * hash-map-traits.h: Include hash-traits.h.
24059 (simple_hashmap_traits): New class.
24060 * mem-stats.h (hash_map): Change the default traits to
24061 simple_hashmap_traits<default_hash_traits<Key> >.
24062
24063 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24064
24065 * hash-table.h: Update comments.
24066
24067 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24068
24069 * hash-traits.h (default_hash_traits): New structure.
24070 * hash-set.h (default_hashset_traits): Delete.
24071 (hash_set): Use default_hash_traits<Key> instead of
24072 default_hashset_traits. Delete hash_entry type and use Key directly.
24073 * ipa-devirt.c (pair_traits): Delete.
24074 (default_hash_traits <type_pair>): Override.
24075 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24076 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24077
24078 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24079
24080 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24081
24082 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24083
24084 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24085 (has_is_empty, is_empty_helper): Delete.
24086 (has_mark_deleted, mark_deleted_helper): Delete.
24087 (has_mark_empty, mark_empty_helper): Delete.
24088 (hash_table::is_deleted): Call the Descriptor unconditionally.
24089 (hash_table::is_empty): Likewise.
24090 (hash_table::mark_deleted): Likewise.
24091 (hash_table::mark_empty): Likewise.
24092
24093 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24094
24095 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24096 redundant typedefs and members.
24097 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24098 redundant typedefs.
24099 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24100 * ipa-devirt.c (odr_name_hasher): Likewise.
24101 (polymorphic_call_target_hasher): Likewise.
24102 * ira-costs.c (cost_classes_hasher): Likewise.
24103 * statistics.c (stats_counter_hasher): Likewise.
24104 * trans-mem.c (log_entry_hasher): Likewise.
24105 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24106 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24107 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24108 * var-tracking.c (variable_hasher): Likewise.
24109 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24110 Remove redundant typedefs and members.
24111
24112 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24113
24114 * hash-traits.h (ggc_cache_hasher): Rename to...
24115 (ggc_cache_remove): ...this and remove typedefs.
24116 (ggc_cache_ptr_hash): New class.
24117 * hash-table.h: Update commentary.
24118 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24119 rather than ggc_cache_hasher.
24120 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24121 (const_double_hasher, const_fixed_hasher): Likewise.
24122 * function.c (insn_cache_hasher): Likewise.
24123 * trans-mem.c (tm_wrapper_hasher): Likewise.
24124 * tree.h (tree_decl_map_cache_hasher): Likewise.
24125 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24126 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24127 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24128 * varasm.c (tm_clone_hasher): Likewise.
24129 * config/i386/i386.c (dllimport_hasher): Likewise.
24130 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24131 (tree_hasher): Likewise.
24132
24133 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24134
24135 * hash-traits.h (ggc_hasher): Rename to...
24136 (ggc_remover): ...this and remove typedefs.
24137 (ggc_cache_hasher): Update accordingly. Add typedefs.
24138 (ggc_ptr_hash): New class.
24139 * hash-table.h: Update comment.
24140 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24141 ggc_hasher.
24142 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24143 (tree_descriptor_hasher): Likewise.
24144 * cgraph.c (function_version_hasher): Likewise.
24145 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24146 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24147 (dw_loc_list_hasher, addr_hasher): Likewise.
24148 * function.h (used_type_hasher): Likewise.
24149 * function.c (temp_address_hasher): Likewise.
24150 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24151 * libfuncs.h (libfunc_hasher): Likewise.
24152 * lto-streamer.h (decl_state_hasher): Likewise.
24153 * optabs.c (libfunc_decl_hasher): Likewise.
24154 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24155 * varasm.c (section_hasher, object_block_hasher): Likewise.
24156 (const_rtx_desc_hasher): Likewise.
24157 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24158 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24159
24160 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24161
24162 * hash-traits.h (free_ptr_hash): New class.
24163 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24164 rather than typed_free_remove. Remove redudant typedefs.
24165 (external_ref_hasher): Likewise.
24166 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24167 (ehspec_hasher): Likewise.
24168 * ggc-common.c (saving_hasher): Likewise.
24169 * gimplify.c (gimplify_hasher): Likewise.
24170 * haifa-sched.c (delay_i2_hasher): Likewise.
24171 * loop-invariant.c (invariant_expr_hasher): Likewise.
24172 * loop-iv.c (biv_entry_hasher): Likewise.
24173 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24174 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24175 * tree-cfg.c (locus_discrim_hasher): Likewise.
24176 * tree-eh.c (finally_tree_hasher): Likewise.
24177 * tree-into-ssa.c (var_info_hasher): Likewise.
24178 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24179 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24180 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24181 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24182 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24183 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24184 (shared_bitmap_hasher): Likewise.
24185 * tree-ssa-threadupdate.c (redirection_data): Likewise.
24186 * tree-vectorizer.h (peel_info_hasher): Likewise.
24187 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24188 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24189
24190 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24191
24192 * hash-table.h: Update comments.
24193 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24194 (nofree_ptr_hash): New class.
24195 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24196 than typed_noop_remove. Remove redudant typedefs.
24197 * attribs.c (attribute_hasher): Likewise.
24198 * cfg.c (bb_copy_hasher): Likewise.
24199 * cselib.c (cselib_hasher): Likewise.
24200 * dse.c (invariant_group_base_hasher): Likewise.
24201 * dwarf2cfi.c (trace_info_hasher): Likewise.
24202 * dwarf2out.c (macinfo_entry_hasher): Likewise.
24203 (comdat_type_hasher, loc_list_hasher): Likewise.
24204 * gcse.c (pre_ldst_expr_hasher): Likewise.
24205 * genmatch.c (id_base): Likewise.
24206 * genrecog.c (test_pattern_hasher): Likewise.
24207 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24208 * haifa-sched.c (delay_i1_hasher): Likewise.
24209 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24210 * ipa-icf.h (congruence_class_group_hash): Likewise.
24211 * ipa-profile.c (histogram_hash): Likewise.
24212 * ira-color.c (allocno_hard_regs_hasher): Likewise.
24213 * lto-streamer.h (string_slot_hasher): Likewise.
24214 * lto-streamer.c (tree_entry_hasher): Likewise.
24215 * plugin.c (event_hasher): Likewise.
24216 * postreload-gcse.c (expr_hasher): Likewise.
24217 * store-motion.c (st_expr_hasher): Likewise.
24218 * tree-sra.c (uid_decl_hasher): Likewise.
24219 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24220 (ssa_name_var_hash): Likewise.
24221 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24222 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24223 * tree-ssa-pre.c (pre_expr_d): Likewise.
24224 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24225 * vtable-verify.h (registration_hasher): Likewise.
24226 * vtable-verify.c (vtbl_map_hasher): Likewise.
24227 * config/arm/arm.c (libcall_hasher): Likewise.
24228 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24229 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24230 * config/sol2.c (comdat_entry_hasher): Likewise.
24231 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24232 (print_fold_checksum, fold_checksum_tree): Likewise.
24233 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24234 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24235 (fold_build_call_array_loc): Likewise.
24236 * tree-ssa-ccp.c (gimple_htab): Likewise.
24237 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24238 rather than pointer_type.
24239
24240 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24241
24242 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24243 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24244
24245 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24246
24247 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24248 (ggc_hasher::ggc_mx): Likewise.
24249 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
24250 that duplicate ggc_hasher ones.
24251
24252 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24253
24254 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24255 (gt_cleare_cache): Check here for deleted and empty entries.
24256 Replace handle_cache_entry with a call to keep_cache_entry.
24257 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24258 (ggc_cache_hasher::keep_cache_entry): New function.
24259 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24260 (tm_wrapper_hasher::keep_cache_entry): New function.
24261 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24262 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24263 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24264 (type_cache_hasher::keep_cache_entry): New function.
24265 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24266 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24267 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24268 (tree_type_map_cache_hasher::keep_cache_entry): New function.
24269 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24270 (tm_clone_hasher::keep_cache_entry): New function.
24271 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24272 (dllimport_hasher::keep_cache_entry): New function.
24273
24274 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24275
24276 * hash-table.h: Include hash-traits.h.
24277 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24278 (ggc_cache_hasher): Move to...
24279 * hash-traits.h: ...this new file.
24280
24281 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24282
24283 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24284 struct cl_optimization.
24285 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24286 * tree.c (make_node_stat): Allocate cl_optimization struct.
24287 (copy_node_stat): Allocate and copy cl_optimization struct.
24288
24289 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24290
24291 * function.h (struct incoming_args): Move struct.
24292 (pass_by_reference, reference_callee_copied): Remove prototypes.
24293 * emit-rtl.h (struct incoming_args): Relocate struct here.
24294 * calls.h (pass_by_reference, reference_callee_copied): Relocate
24295 prototypes here.
24296 * function.c (pass_by_reference, reference_callee_copied): Move.
24297 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24298 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24299 * ipa-chkp.c: Include calls.h.
24300
24301 2015-06-25 Andrew Macleod <amacleod@redhat.com>
24302
24303 * alias.h (alias_set_type): Move typedef.
24304 * coretypes.h (alias_set_type): Relocate typedef here.
24305 * rtl.h: Don't include alias.h.
24306
24307 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24308
24309 * cgraph.h (cgraph_rtl_info): Move to rtl.h
24310 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24311 and instance.
24312 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24313 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24314 doesn't exist.
24315 * calls.c: Include hard-reg-set.h before rtl.h.
24316 * ira.c: Likewise.
24317
24318 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24319 Vladimir Makarov <vmakarov@redhat.com>
24320
24321 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24322 Add assert.
24323
24324 2015-06-25 Richard Biener <rguenther@suse.de>
24325
24326 * fold-const.c (fold_binary_loc): Move simplification of
24327 (X <<>> C1) & C2 ...
24328 * match.pd: ... here.
24329
24330 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
24331
24332 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24333
24334 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24335
24336 * match.pd: Add patterns for vec_conds between 1 and 0.
24337
24338 2015-06-25 Richard Biener <rguenther@suse.de>
24339
24340 * tree-vect-stmts.c (vectorizable_conversion): Do not set
24341 STMT_VINFO_VEC_STMT for SLP.
24342 (vectorizable_store): Likewise.
24343 (vectorizable_load): Likewise.
24344 (vect_transform_stmt): Catch SLP vectorization clobbering
24345 STMT_VINFO_VEC_STMT.
24346
24347 2015-06-25 Richard Biener <rguenther@suse.de>
24348
24349 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24350 dumping.
24351 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24352 cleanup resulting dead code and parameters.
24353 (vect_transform_slp_perm_load): Adjust.
24354
24355 2015-06-25 Nick Clifton <nickc@redhat.com>
24356
24357 * config/bfin/bfin.c (bfin_expand_prologue): Set
24358 current_function_static_stack_size if flag_stack_usage_info is set.
24359 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24360 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24361 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24362 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24363
24364 2015-06-25 Tom de Vries <tom@codesourcery.com>
24365
24366 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24367 comment that the generated IV is unsigned.
24368
24369 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24370
24371 PR target/29693
24372 * config/arm/arm.c (arm_dbx_register_number): Return
24373 DWARF_FRAME_REGISTERS by default.
24374
24375 2015-06-25 Tom de Vries <tom@codesourcery.com>
24376
24377 * dominance.c (calculate_dominance_info): Fix verify_dominators call
24378 argument. Call verify_dominator when reusing dominator info.
24379
24380 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
24381
24382 PR target/66563
24383 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24384 an additional element of the unspec vector. Modify indices
24385 of operands.
24386 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24387 * config/sh/sh.c (prepare_move_operands): Pass incremented
24388 const_int to gen_GOTaddr2picreg.
24389 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24390
24391 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24392
24393 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24394 Condition on TARGET_FLOAT.
24395
24396 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24397
24398 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24399 and (no)crypto.
24400
24401 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24402
24403 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24404
24405 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24406 aarch64_err_no_fpadvsimd.
24407
24408 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24409 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24410 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24411 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24412 Turn error into assert, test TARGET_FLOAT.
24413 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24414 TARGET_FLOAT.
24415
24416 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
24417
24418 PR debug/66482
24419 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24420
24421 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
24422
24423 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24424
24425 2015-06-24 Renlin Li <renlin.li@arm.com>
24426
24427 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24428 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24429
24430 2015-06-24 Richard Biener <rguenther@suse.de>
24431
24432 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24433 (main): Likewise.
24434 (lower_opt_convert): Support lowering of conditional view_convert.
24435 (parser::parse_operation): Likewise.
24436 (parser::parse_for): Likewise.
24437
24438 2015-06-24 Renlin Li <renlin.li@arm.com>
24439
24440 * varasm.c (emit_local): Use unsigned int for align variable.
24441
24442 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24443
24444 PR target/63408
24445 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24446 for negative numbers.
24447
24448 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24449
24450 PR rtl-optimization/66306
24451 * reload.c (find_reloads): Swap the match_dup info for
24452 commutative operands.
24453
24454 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24455
24456 * config/s390/vx-builtins.md
24457 ("vec_scatter_element<mode>_<non_vec_int>")
24458 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24459 attribute with bhfgq.
24460
24461 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24462
24463 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24464
24465 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24466
24467 * config/s390/s390-builtin-types.def: Add flag to indicate the
24468 options under which the function type is needed.
24469 * config/s390/s390-builtins.def: Add flag to indicate the options
24470 under which the builtin is enabled.
24471 * config/s390/s390-builtins.h: Add flags parameter to macro
24472 definitions.
24473 (bflags_for_builtin): New function.
24474 (flags_for_builtin): Renamed to ...
24475 (opflags_for_builtin): ... this.
24476 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24477 flags_for_builtin to bflags_for_builtin and
24478 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24479 * config/s390/s390.c: Add initialization of bflags_builtin and
24480 opflags_builtin arrays.
24481 Remove code for flags_builtin.
24482 (s390_init_builtins): Only create builtin function types if one of
24483 their flags is active.
24484 Only create builtins if all of their flags are active.
24485 (s390_expand_builtin): Rename flags_for_builtin to
24486 opflags_for_builtin.
24487
24488 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24489
24490 * config/s390/vecintrin.h: Remove internal builtins.
24491
24492 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24493
24494 * config/s390/s390.c (s390_secondary_reload): Fix check for
24495 GENERAL_REGS register class.
24496
24497 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24498
24499 * config/s390/s390.c (s390_support_vector_misalignment): Call
24500 default implementation for !TARGET_VX.
24501
24502 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24503
24504 * config/s390/s390.c (s390_legitimate_constant_p): Add
24505 TARGET_VX check.
24506
24507 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24508
24509 * config/s390/s390.c (s390_vector_abi): New variable definition.
24510 (s390_check_type_for_vector_abi): New function.
24511 (TARGET_ASM_FILE_END): New macro definition.
24512 (s390_asm_file_end): New function.
24513 (s390_function_arg): Call s390_check_type_for_vector_abi.
24514 (s390_gimplify_va_arg): Likewise.
24515 * configure: Regenerate.
24516 * configure.ac: Check for .gnu_attribute Binutils feature.
24517
24518 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
24519
24520 PR target/65803
24521 * config/bfin/bfin.c (hwloop_optimize): Initialize
24522 JUMP_LABEL for newly created jump.
24523
24524 2015-06-23 Tristan Gingold <gingold@adacore.com>
24525
24526 * collect-utils.c (collect_wait): Unlink the response file here
24527 instead of...
24528 (do_wait): ...here.
24529 (utils_cleanup): ...and here.
24530
24531 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
24532
24533 * df-scan.c: Don't include target-def.h.
24534 * targhooks.c: Likewise.
24535 * config/arm/arm-c.c: Likewise.
24536 * config/i386/i386-c.c: Likewise.
24537 * config/nds32/nds32-cost.c: Likewise.
24538 * config/nds32/nds32-fp-as-gp.c: Likewise.
24539 * config/nds32/nds32-intrinsic.c: Likewise.
24540 * config/nds32/nds32-isr.c: Likewise.
24541 * config/nds32/nds32-md-auxiliary.c: Likewise.
24542 * config/nds32/nds32-memory-manipulation.c: Likewise.
24543 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24544 * config/nds32/nds32-predicates.c: Likewise.
24545
24546 2015-06-23 Richard Biener <rguenther@suse.de>
24547
24548 PR tree-optimization/66636
24549 * tree-vect-stmts.c (vectorizable_store): Properly compute the
24550 def type for further defs for strided stores.
24551
24552 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
24553
24554 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24555 conditional selects.
24556 (setcc_int<mode>, setcc_float<mode>): Reformat.
24557
24558 2015-06-23 Marek Polacek <polacek@redhat.com>
24559
24560 * match.pd ((x + y) - (x | y) -> x & y,
24561 (x + y) - (x & y) -> x | y): New patterns.
24562
24563 2015-06-23 Ludovic Courtès <ludo@gnu.org>
24564
24565 PR 65711
24566 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24567 '-dynamic-linker' within %{!shared: ...}.
24568
24569 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
24570
24571 PR target/66560
24572 * config/i386/predicates.md (addsub_vm_operator): New predicate.
24573 (addsub_vs_operator): Ditto.
24574 (addsub_vs_parallel): Ditto.
24575 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24576 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24577 Put minus RTX before plus and adjust vec_merge selector.
24578 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24579 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24580 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24581 (addsub vec_merge splitters): New combiner splitters.
24582 (addsub vec_select/vec_concat splitters): Ditto.
24583
24584 2015-06-23 Bin Cheng <bin.cheng@arm.com>
24585
24586 PR tree-optimization/66449
24587 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24588 POINTER_PLUS_EXPR for pointers.
24589
24590 2015-06-23 Alan Modra <amodra@gmail.com>
24591
24592 * rtlanal.c (commutative_operand_precedence): Correct comments.
24593 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24594 declaration. Return an int. Distinguish REG,REG return from
24595 others.
24596 (struct simplify_plus_minus_op_data): Make local to function.
24597 (simplify_plus_minus): Don't set canonicalized if merely sorting
24598 registers. Avoid packing ops if nothing changes. White space fixes.
24599
24600 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
24601
24602 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24603 -fdump-ada-spec is passed but not if -fsyntax-only is.
24604
24605 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
24606
24607 PR bootstrap/63740
24608 * lra-lives.c (process_bb_lives): Check insn copying the same
24609 reload pseudo and don't create a copy for it.
24610
24611 2015-06-22 Tom de Vries <tom@codesourcery.com>
24612
24613 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24614 for cond_stmt.
24615
24616 2015-06-22 Tom de Vries <tom@codesourcery.com>
24617
24618 * builtins.def (DEF_GOMP_BUILTIN): Test
24619 'flag_tree_parallelize_loops > 1' instead of
24620 'flag_tree_parallelize_loops'. Test flag_cilkplus.
24621
24622 2015-06-22 Tom de Vries <tom@codesourcery.com>
24623
24624 * dominance.c (calculate_dominance_info): Verify dominators if
24625 early-out.
24626
24627 2015-06-22 Marek Polacek <polacek@redhat.com>
24628
24629 * match.pd ((x ^ y) ^ (x | y) -> x & y,
24630 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24631 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24632 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24633
24634 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
24635
24636 PR target/65871
24637 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24638 cost of embedded comparison.
24639
24640 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24641
24642 PR target/65914
24643 * config/rs6000/predicates.md (altivec_register_operand): Permit
24644 virtual stack registers.
24645 (vsx_register_operand): Likewise.
24646 (vfloat_operand): Likewise.
24647 (vint_operand): Likewise.
24648 (vlogical_operand): Likewise.
24649
24650 2015-06-22 Richard Biener <rguenther@suse.de>
24651
24652 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24653 and single_scalar_iteration_cost members.
24654 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24655 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
24656 (vect_get_single_scalar_iteration_cost): Remove.
24657 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24658 Use LOOP_VINFO_SCALAR_ITERATION_COST.
24659 * tree-vect-loop.c (destroy_loop_vec_info): Free
24660 scalar_cost_vec.
24661 (vect_get_single_scalar_iteration_cost): Compute result into
24662 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
24663 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
24664 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
24665 (vect_estimate_min_profitable_iters): Use them.
24666
24667 2015-06-22 Christian Bruel <christian.bruel@st.com>
24668
24669 PR target/52144
24670 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
24671 (TARGET_INSERT_ATTRIBUTES): Define.
24672 (thumb_flipper): New var.
24673 * config/arm/arm.opt (-mflip-thumb): New switch.
24674
24675 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24676 Martin Liska <mliska@suse.cz>
24677
24678 PR ipa/65908
24679 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
24680 construction of arg_types.
24681 (sem_function::sem_function): Likewise.
24682 (sem_function::~sem_function): Remove destruction of arg_types.
24683 (sem_function::compatible_parm_types_p): New function.
24684 (sem_function::equals_wpa): Reorg matching of return values
24685 and parameter types.
24686 (sem_function::equals_private): Reorg mathcing of argument types.
24687 (sem_function::parse_tree_args): Remove.
24688 * ipa-icf.h (init_wpa): Do not call it.
24689 (parse_tree_args): Remove.
24690 (compatible_parm_types_p): Declare.
24691 (result_type): Remove.
24692 (arg_types): Remove.
24693
24694 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24695
24696 PR ipa/66351
24697 * ipa-polymorphic-call.c
24698 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24699 initializing alias oracle; fix formating; set base_alias_set if it
24700 is known.
24701
24702 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
24703
24704 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24705 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24706 (find_inc): Likewise.
24707 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24708 swapping.
24709 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24710 * df-scan.c (df_swap_refs): Remove.
24711 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24712 * dominance.c (link_roots): Use std::swap instead of manually swapping.
24713 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24714 * fold-const.c (fold_relational_const): Likewise.
24715 * genattrtab.c (simplify_test_exp): Likewise.
24716 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24717 gimple_simplify): Likewise.
24718 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24719 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24720 * ipa-devirt.c (add_type_duplicate): Likewise.
24721 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24722 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24723 * lra.c (lra_create_copy): Likewise.
24724 * lto-streamer-out.c (DFS::DFS): Likewise.
24725 * modulo-sched.c (get_sched_window): Likewise.
24726 * omega.c (omega_pretty_print_problem): Likewise.
24727 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24728 * reload1.c (reloads_unique_chain_p): Likewise.
24729 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24730 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24731 use std::swap.
24732 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24733 manually swapping.
24734 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24735 predicate_mem_writes): Likewise.
24736 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24737 * tree-predcom.c (combine_chains): Likewise.
24738 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24739 refs_may_alias_p_1): Likewise.
24740 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24741 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24742 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24743 number_of_iterations_cond): Likewise.
24744 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24745 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24746 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24747 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24748 * tree-vrp.c (extract_range_from_binary_expr_1,
24749 extract_range_from_unary_expr_1): Likewise.
24750
24751 2015-06-20 Marek Polacek <polacek@redhat.com>
24752
24753 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24754
24755 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
24756
24757 PR target/66591
24758 * config/sh/sh.c (prepare_move_operands): Replace subreg
24759 index term with R0 for base and index addressing.
24760
24761 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
24762
24763 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24764 op1 is an fp zero.
24765 (movsf_aarch64): Change condition from register_operand to
24766 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
24767 load1. Change type for alternative 7 to store1.
24768 (movdf_aarch64): Likewise.
24769
24770 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
24771
24772 * config/vax/vax.md: Adjust sign/zero extend patterns to
24773 handle SUBREGs in operands[1].
24774
24775 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24776
24777 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24778 of manually swapping.
24779 (expand_vec_perm_interleave2): Likewise.
24780
24781 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
24782
24783 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24784 reuse bounds created for abnormal ssa names.
24785
24786 2015-06-19 Jakub Jelinek <jakub@redhat.com>
24787
24788 * config/nvptx/nvptx.md (allocate_stack): Rename to...
24789 (allocate_stack_<mode>): ... this, and add :P on both
24790 match_operand and unspec.
24791 (allocate_stack): New expander.
24792
24793 2015-06-19 Christian Bruel <christian.bruel@st.com>
24794
24795 PR target/66541
24796 PR target/52144
24797 * config/arm/arm.c (arm_set_current_function): Handle
24798 explicit default options.
24799
24800 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24801
24802 * config/i386/i386.md (*movsicc_noc_zext): New insn.
24803 (zero-extended cmove with mem peephole2): New pattern.
24804 (cmove with mem peephole2): Merge patterns.
24805
24806 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
24807
24808 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24809
24810 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
24811
24812 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24813 * config/mips/mips.md (*madd4<mode>): Ditto.
24814 (*nmadd3<mode>) Ditto.
24815 (*nmadd4<mode>_fastmath): Ditto.
24816 (*nmadd3<mode>_fastmath): Ditto.
24817 (*nmsub4<mode>): Ditto.
24818 (*nmsub3<mode>): Ditto.
24819 (*nmsub4<mode>_fastmath): Ditto.
24820 (*nmsub3<mode>_fastmath): Ditto.
24821
24822 2015-06-18 Michael Matz <matz@suse.de>
24823
24824 PR middle-end/66253
24825 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24826 grouped strided stores.
24827 (vectorizable_load): Don't use the DR from first_stmt in
24828 the non-SLP grouped strided case.
24829
24830 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24831
24832 PR target/66569
24833 * function.c (assign_bounds): Add arguments assign_regs,
24834 assign_special, assign_bt.
24835 (assign_parms): For vararg functions handle bounds in BT
24836 and special slots after incoming vararg bounds.
24837
24838 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24839
24840 PR middle-end/66568
24841 * cfgexpand.c (expand_return): Handle missing bounds.
24842 (expand_gimple_stmt_1): Likewise.
24843 * tree-chkp.c (chkp_expand_zero_bounds): New.
24844 * tree-chkp.h (chkp_expand_zero_bounds): New.
24845
24846 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24847
24848 PR middle-end/66567
24849 * ipa-chkp.c (chkp_maybe_create_clone): Require
24850 functions to be instrumentable.
24851 * tree-chkp.c (chkp_replace_function_pointer): Use
24852 chkp_instrumentable_p instead of attribute check.
24853
24854 2015-06-18 Richard Biener <rguenther@suse.de>
24855
24856 PR tree-optimization/66510
24857 * tree-vect-stmts.c (vectorizable_load): Properly compute the
24858 number of vector loads for SLP permuted loads.
24859 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24860 check the stride for loop vectorization.
24861 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24862 vectorization factor.
24863 (vect_analyze_group_access): If the group size is not a power
24864 of two require a epilogue loop.
24865 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24866 compute and optimizing and alias test pruning after final
24867 vectorization factor computation.
24868 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24869 vector alignment.
24870 (vect_transform_slp_perm_load): Properly compute the original
24871 number of vector load stmts.
24872
24873 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24874
24875 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24876 "unlikely character , in @var" warning.
24877
24878 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
24879
24880 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24881 (ix86_function_arg_advance): Ditto.
24882 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
24883
24884 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24885
24886 * function.h (struct rtl_data): Remove struct and accessor macros.
24887 * emit-rtl.h (struct rtl_data): Relocate to here.
24888 * Makefile.in (GTFILES): Add emit-rtl.h.
24889 * df-core.c: Include emit-rtl.h.
24890 * genattrtab.c: Likewise.
24891 * genconditions.c: Likewise.
24892 * genpreds.c: Likewise.
24893 * genrecog.c: Likewise.
24894 * regcprop.c: Likewise.
24895 * resource.c: Likewise.
24896 * sched-rgn.c: Likewise.
24897 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24898 * config/i386/winnt.c: Likewise.
24899
24900 2015-06-17 Jakub Jelinek <jakub@redhat.com>
24901
24902 PR middle-end/66429
24903 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24904 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
24905 and has_force_vectorize_loops flags from cfun into
24906 child_cfun.
24907 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24908 if simduid is non-NULL.
24909 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24910 * passes.def (pass_simduid_cleanup): Add new pass after loop
24911 passes.
24912 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24913 indirection from htab argument's type.
24914 (shrink_simd_arrays): New function.
24915 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
24916 Don't call adjust_simduid_builtins if there are no loops.
24917 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24918 (pass_simduid_cleanup::execute): New method.
24919 (make_pass_simduid_cleanup): New function.
24920
24921 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
24922
24923 * tree-core.h (tree_target_option): Make opts field a pointer to a
24924 cl_target_option instead of an instance of the struct.
24925 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24926 the structure.
24927 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24928 TARGET_OPTION_NODE.
24929 (copy_node_stat): Allocate and copy struct cl_target_option.
24930
24931 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24932
24933 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24934 Remove conditional exposure of prototypes.
24935 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24936 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
24937 definitions in tree.h with functions.
24938 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24939 anon_aggrname_p.
24940 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24941
24942 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
24943
24944 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24945 (*cmp<mode>_signed): ... this.
24946 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24947 (*cmp<mode>_unsigned): ... this. Remove %b.
24948
24949 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24950
24951 * coretypes.h: Include input.h and as-a.h.
24952 * rtl.h: Include input.h and as-a.h for generator files.
24953 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24954 * vec.c: Don't include diagnostic-core.h.
24955 * alias.c: Do not include input.h, line-map.h or is-a.h.
24956 * asan.c: Likewise.
24957 * attribs.c: Likewise.
24958 * auto-inc-dec.c: Likewise.
24959 * auto-profile.c: Likewise.
24960 * bb-reorder.c: Likewise.
24961 * bt-load.c: Likewise.
24962 * builtins.c: Likewise.
24963 * caller-save.c: Likewise.
24964 * calls.c: Likewise.
24965 * ccmp.c: Likewise.
24966 * cfg.c: Likewise.
24967 * cfganal.c: Likewise.
24968 * cfgbuild.c: Likewise.
24969 * cfgcleanup.c: Likewise.
24970 * cfgexpand.c: Likewise.
24971 * cfghooks.c: Likewise.
24972 * cfgloop.c: Likewise.
24973 * cfgloop.h: Likewise.
24974 * cfgloopanal.c: Likewise.
24975 * cfgloopmanip.c: Likewise.
24976 * cfgrtl.c: Likewise.
24977 * cgraph.c: Likewise.
24978 * cgraphbuild.c: Likewise.
24979 * cgraphclones.c: Likewise.
24980 * cgraphunit.c: Likewise.
24981 * cilk-common.c: Likewise.
24982 * combine-stack-adj.c: Likewise.
24983 * combine.c: Likewise.
24984 * compare-elim.c: Likewise.
24985 * convert.c: Likewise.
24986 * coverage.c: Likewise.
24987 * cppbuiltin.c: Likewise.
24988 * cprop.c: Likewise.
24989 * cse.c: Likewise.
24990 * cselib.c: Likewise.
24991 * data-streamer-in.c: Likewise.
24992 * data-streamer-out.c: Likewise.
24993 * data-streamer.c: Likewise.
24994 * dbxout.c: Likewise.
24995 * dce.c: Likewise.
24996 * ddg.c: Likewise.
24997 * debug.c: Likewise.
24998 * df-core.c: Likewise.
24999 * df-problems.c: Likewise.
25000 * df-scan.c: Likewise.
25001 * df.h: Likewise.
25002 * dfp.c: Likewise.
25003 * diagnostic-core.h: Likewise.
25004 * diagnostic.c: Likewise.
25005 * dojump.c: Likewise.
25006 * dominance.c: Likewise.
25007 * domwalk.c: Likewise.
25008 * double-int.c: Likewise.
25009 * dse.c: Likewise.
25010 * dumpfile.c: Likewise.
25011 * dumpfile.h: Likewise.
25012 * dwarf2asm.c: Likewise.
25013 * dwarf2cfi.c: Likewise.
25014 * dwarf2out.c: Likewise.
25015 * emit-rtl.c: Likewise.
25016 * et-forest.c: Likewise.
25017 * except.c: Likewise.
25018 * explow.c: Likewise.
25019 * expmed.c: Likewise.
25020 * expr.c: Likewise.
25021 * final.c: Likewise.
25022 * fixed-value.c: Likewise.
25023 * fold-const.c: Likewise.
25024 * function.c: Likewise.
25025 * fwprop.c: Likewise.
25026 * gcc-plugin.h: Likewise.
25027 * gcse.c: Likewise.
25028 * generic-match-head.c: Likewise.
25029 * ggc-page.c: Likewise.
25030 * gimple-builder.c: Likewise.
25031 * gimple-expr.c: Likewise.
25032 * gimple-fold.c: Likewise.
25033 * gimple-iterator.c: Likewise.
25034 * gimple-low.c: Likewise.
25035 * gimple-match-head.c: Likewise.
25036 * gimple-pretty-print.c: Likewise.
25037 * gimple-ssa-isolate-paths.c: Likewise.
25038 * gimple-ssa-strength-reduction.c: Likewise.
25039 * gimple-streamer-in.c: Likewise.
25040 * gimple-streamer-out.c: Likewise.
25041 * gimple-streamer.h: Likewise.
25042 * gimple-walk.c: Likewise.
25043 * gimple.c: Likewise.
25044 * gimplify-me.c: Likewise.
25045 * gimplify.c: Likewise.
25046 * godump.c: Likewise.
25047 * graph.c: Likewise.
25048 * graphite-blocking.c: Likewise.
25049 * graphite-dependences.c: Likewise.
25050 * graphite-interchange.c: Likewise.
25051 * graphite-isl-ast-to-gimple.c: Likewise.
25052 * graphite-optimize-isl.c: Likewise.
25053 * graphite-poly.c: Likewise.
25054 * graphite-scop-detection.c: Likewise.
25055 * graphite-sese-to-poly.c: Likewise.
25056 * graphite.c: Likewise.
25057 * haifa-sched.c: Likewise.
25058 * hw-doloop.c: Likewise.
25059 * ifcvt.c: Likewise.
25060 * init-regs.c: Likewise.
25061 * input.c: Likewise.
25062 * internal-fn.c: Likewise.
25063 * ipa-chkp.c: Likewise.
25064 * ipa-comdats.c: Likewise.
25065 * ipa-cp.c: Likewise.
25066 * ipa-devirt.c: Likewise.
25067 * ipa-icf-gimple.c: Likewise.
25068 * ipa-icf.c: Likewise.
25069 * ipa-inline-analysis.c: Likewise.
25070 * ipa-inline-transform.c: Likewise.
25071 * ipa-inline.c: Likewise.
25072 * ipa-polymorphic-call.c: Likewise.
25073 * ipa-profile.c: Likewise.
25074 * ipa-prop.c: Likewise.
25075 * ipa-pure-const.c: Likewise.
25076 * ipa-ref.c: Likewise.
25077 * ipa-reference.c: Likewise.
25078 * ipa-split.c: Likewise.
25079 * ipa-utils.c: Likewise.
25080 * ipa-visibility.c: Likewise.
25081 * ipa.c: Likewise.
25082 * ira-build.c: Likewise.
25083 * ira-color.c: Likewise.
25084 * ira-conflicts.c: Likewise.
25085 * ira-costs.c: Likewise.
25086 * ira-emit.c: Likewise.
25087 * ira-lives.c: Likewise.
25088 * ira.c: Likewise.
25089 * jump.c: Likewise.
25090 * langhooks.c: Likewise.
25091 * lcm.c: Likewise.
25092 * loop-doloop.c: Likewise.
25093 * loop-init.c: Likewise.
25094 * loop-invariant.c: Likewise.
25095 * loop-iv.c: Likewise.
25096 * loop-unroll.c: Likewise.
25097 * lower-subreg.c: Likewise.
25098 * lra-assigns.c: Likewise.
25099 * lra-coalesce.c: Likewise.
25100 * lra-constraints.c: Likewise.
25101 * lra-eliminations.c: Likewise.
25102 * lra-lives.c: Likewise.
25103 * lra-remat.c: Likewise.
25104 * lra-spills.c: Likewise.
25105 * lra.c: Likewise.
25106 * lto-cgraph.c: Likewise.
25107 * lto-compress.c: Likewise.
25108 * lto-opts.c: Likewise.
25109 * lto-section-in.c: Likewise.
25110 * lto-section-out.c: Likewise.
25111 * lto-streamer-in.c: Likewise.
25112 * lto-streamer-out.c: Likewise.
25113 * lto-streamer.c: Likewise.
25114 * mcf.c: Likewise.
25115 * mode-switching.c: Likewise.
25116 * modulo-sched.c: Likewise.
25117 * omega.c: Likewise.
25118 * omp-low.c: Likewise.
25119 * optabs.c: Likewise.
25120 * opts-global.c: Likewise.
25121 * opts.h: Likewise.
25122 * passes.c: Likewise.
25123 * plugin.c: Likewise.
25124 * postreload-gcse.c: Likewise.
25125 * postreload.c: Likewise.
25126 * predict.c: Likewise.
25127 * pretty-print.h: Likewise.
25128 * print-rtl.c: Likewise.
25129 * print-tree.c: Likewise.
25130 * profile.c: Likewise.
25131 * real.c: Likewise.
25132 * realmpfr.c: Likewise.
25133 * recog.c: Likewise.
25134 * ree.c: Likewise.
25135 * reg-stack.c: Likewise.
25136 * regcprop.c: Likewise.
25137 * reginfo.c: Likewise.
25138 * regrename.c: Likewise.
25139 * regstat.c: Likewise.
25140 * reload.c: Likewise.
25141 * reload1.c: Likewise.
25142 * reorg.c: Likewise.
25143 * resource.c: Likewise.
25144 * rtl-chkp.c: Likewise.
25145 * rtl-error.c: Likewise.
25146 * rtlanal.c: Likewise.
25147 * rtlhooks.c: Likewise.
25148 * sanopt.c: Likewise.
25149 * sched-deps.c: Likewise.
25150 * sched-ebb.c: Likewise.
25151 * sched-rgn.c: Likewise.
25152 * sched-vis.c: Likewise.
25153 * sdbout.c: Likewise.
25154 * sel-sched-dump.c: Likewise.
25155 * sel-sched-ir.c: Likewise.
25156 * sel-sched.c: Likewise.
25157 * sese.c: Likewise.
25158 * shrink-wrap.c: Likewise.
25159 * simplify-rtx.c: Likewise.
25160 * stack-ptr-mod.c: Likewise.
25161 * statistics.c: Likewise.
25162 * stmt.c: Likewise.
25163 * stor-layout.c: Likewise.
25164 * store-motion.c: Likewise.
25165 * streamer-hooks.c: Likewise.
25166 * stringpool.c: Likewise.
25167 * symtab.c: Likewise.
25168 * target-globals.c: Likewise.
25169 * targhooks.c: Likewise.
25170 * toplev.c: Likewise.
25171 * tracer.c: Likewise.
25172 * trans-mem.c: Likewise.
25173 * tree-affine.c: Likewise.
25174 * tree-browser.c: Likewise.
25175 * tree-call-cdce.c: Likewise.
25176 * tree-cfg.c: Likewise.
25177 * tree-cfgcleanup.c: Likewise.
25178 * tree-chkp-opt.c: Likewise.
25179 * tree-chkp.c: Likewise.
25180 * tree-chrec.c: Likewise.
25181 * tree-complex.c: Likewise.
25182 * tree-data-ref.c: Likewise.
25183 * tree-dfa.c: Likewise.
25184 * tree-diagnostic.c: Likewise.
25185 * tree-dump.c: Likewise.
25186 * tree-eh.c: Likewise.
25187 * tree-emutls.c: Likewise.
25188 * tree-if-conv.c: Likewise.
25189 * tree-inline.c: Likewise.
25190 * tree-into-ssa.c: Likewise.
25191 * tree-iterator.c: Likewise.
25192 * tree-loop-distribution.c: Likewise.
25193 * tree-nested.c: Likewise.
25194 * tree-nrv.c: Likewise.
25195 * tree-object-size.c: Likewise.
25196 * tree-outof-ssa.c: Likewise.
25197 * tree-parloops.c: Likewise.
25198 * tree-phinodes.c: Likewise.
25199 * tree-predcom.c: Likewise.
25200 * tree-pretty-print.c: Likewise.
25201 * tree-profile.c: Likewise.
25202 * tree-scalar-evolution.c: Likewise.
25203 * tree-sra.c: Likewise.
25204 * tree-ssa-address.c: Likewise.
25205 * tree-ssa-alias.c: Likewise.
25206 * tree-ssa-ccp.c: Likewise.
25207 * tree-ssa-coalesce.c: Likewise.
25208 * tree-ssa-copy.c: Likewise.
25209 * tree-ssa-copyrename.c: Likewise.
25210 * tree-ssa-dce.c: Likewise.
25211 * tree-ssa-dom.c: Likewise.
25212 * tree-ssa-dse.c: Likewise.
25213 * tree-ssa-forwprop.c: Likewise.
25214 * tree-ssa-ifcombine.c: Likewise.
25215 * tree-ssa-live.c: Likewise.
25216 * tree-ssa-loop-ch.c: Likewise.
25217 * tree-ssa-loop-im.c: Likewise.
25218 * tree-ssa-loop-ivcanon.c: Likewise.
25219 * tree-ssa-loop-ivopts.c: Likewise.
25220 * tree-ssa-loop-manip.c: Likewise.
25221 * tree-ssa-loop-niter.c: Likewise.
25222 * tree-ssa-loop-prefetch.c: Likewise.
25223 * tree-ssa-loop-unswitch.c: Likewise.
25224 * tree-ssa-loop.c: Likewise.
25225 * tree-ssa-math-opts.c: Likewise.
25226 * tree-ssa-operands.c: Likewise.
25227 * tree-ssa-phiopt.c: Likewise.
25228 * tree-ssa-phiprop.c: Likewise.
25229 * tree-ssa-pre.c: Likewise.
25230 * tree-ssa-propagate.c: Likewise.
25231 * tree-ssa-reassoc.c: Likewise.
25232 * tree-ssa-sccvn.c: Likewise.
25233 * tree-ssa-scopedtables.c: Likewise.
25234 * tree-ssa-sink.c: Likewise.
25235 * tree-ssa-strlen.c: Likewise.
25236 * tree-ssa-structalias.c: Likewise.
25237 * tree-ssa-tail-merge.c: Likewise.
25238 * tree-ssa-ter.c: Likewise.
25239 * tree-ssa-threadedge.c: Likewise.
25240 * tree-ssa-threadupdate.c: Likewise.
25241 * tree-ssa-uncprop.c: Likewise.
25242 * tree-ssa-uninit.c: Likewise.
25243 * tree-ssa.c: Likewise.
25244 * tree-ssanames.c: Likewise.
25245 * tree-stdarg.c: Likewise.
25246 * tree-streamer-in.c: Likewise.
25247 * tree-streamer-out.c: Likewise.
25248 * tree-streamer.c: Likewise.
25249 * tree-switch-conversion.c: Likewise.
25250 * tree-tailcall.c: Likewise.
25251 * tree-vect-data-refs.c: Likewise.
25252 * tree-vect-generic.c: Likewise.
25253 * tree-vect-loop-manip.c: Likewise.
25254 * tree-vect-loop.c: Likewise.
25255 * tree-vect-patterns.c: Likewise.
25256 * tree-vect-slp.c: Likewise.
25257 * tree-vect-stmts.c: Likewise.
25258 * tree-vectorizer.c: Likewise.
25259 * tree-vrp.c: Likewise.
25260 * tree.c: Likewise.
25261 * tsan.c: Likewise.
25262 * ubsan.c: Likewise.
25263 * valtrack.c: Likewise.
25264 * value-prof.c: Likewise.
25265 * var-tracking.c: Likewise.
25266 * varasm.c: Likewise.
25267 * varpool.c: Likewise.
25268 * vmsdbgout.c: Likewise.
25269 * vtable-verify.c: Likewise.
25270 * web.c: Likewise.
25271 * wide-int.cc: Likewise.
25272 * xcoffout.c: Likewise.
25273 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25274 * common/common-targhooks.c: Likewise.
25275 * config/aarch64/aarch64-builtins.c: Likewise.
25276 * config/aarch64/aarch64.c: Likewise.
25277 * config/alpha/alpha.c: Likewise.
25278 * config/arc/arc.c: Likewise.
25279 * config/arm/aarch-common.c: Likewise.
25280 * config/arm/arm-builtins.c: Likewise.
25281 * config/arm/arm-c.c: Likewise.
25282 * config/arm/arm.c: Likewise.
25283 * config/avr/avr-c.c: Likewise.
25284 * config/avr/avr-log.c: Likewise.
25285 * config/avr/avr.c: Likewise.
25286 * config/bfin/bfin.c: Likewise.
25287 * config/c6x/c6x.c: Likewise.
25288 * config/cr16/cr16.c: Likewise.
25289 * config/cris/cris.c: Likewise.
25290 * config/darwin-c.c: Likewise.
25291 * config/darwin.c: Likewise.
25292 * config/default-c.c: Likewise.
25293 * config/epiphany/epiphany.c: Likewise.
25294 * config/epiphany/mode-switch-use.c: Likewise.
25295 * config/epiphany/resolve-sw-modes.c: Likewise.
25296 * config/fr30/fr30.c: Likewise.
25297 * config/frv/frv.c: Likewise.
25298 * config/ft32/ft32.c: Likewise.
25299 * config/glibc-c.c: Likewise.
25300 * config/h8300/h8300.c: Likewise.
25301 * config/i386/i386-c.c: Likewise.
25302 * config/i386/i386.c: Likewise.
25303 * config/i386/msformat-c.c: Likewise.
25304 * config/i386/winnt-cxx.c: Likewise.
25305 * config/i386/winnt-stubs.c: Likewise.
25306 * config/i386/winnt.c: Likewise.
25307 * config/ia64/ia64-c.c: Likewise.
25308 * config/ia64/ia64.c: Likewise.
25309 * config/iq2000/iq2000.c: Likewise.
25310 * config/lm32/lm32.c: Likewise.
25311 * config/m32c/m32c-pragma.c: Likewise.
25312 * config/m32c/m32c.c: Likewise.
25313 * config/m32r/m32r.c: Likewise.
25314 * config/m68k/m68k.c: Likewise.
25315 * config/mcore/mcore.c: Likewise.
25316 * config/mep/mep-pragma.c: Likewise.
25317 * config/mep/mep.c: Likewise.
25318 * config/microblaze/microblaze-c.c: Likewise.
25319 * config/microblaze/microblaze.c: Likewise.
25320 * config/mips/mips.c: Likewise.
25321 * config/mmix/mmix.c: Likewise.
25322 * config/mn10300/mn10300.c: Likewise.
25323 * config/moxie/moxie.c: Likewise.
25324 * config/msp430/msp430-c.c: Likewise.
25325 * config/msp430/msp430.c: Likewise.
25326 * config/nds32/nds32-cost.c: Likewise.
25327 * config/nds32/nds32-fp-as-gp.c: Likewise.
25328 * config/nds32/nds32-intrinsic.c: Likewise.
25329 * config/nds32/nds32-isr.c: Likewise.
25330 * config/nds32/nds32-md-auxiliary.c: Likewise.
25331 * config/nds32/nds32-memory-manipulation.c: Likewise.
25332 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25333 * config/nds32/nds32-predicates.c: Likewise.
25334 * config/nds32/nds32.c: Likewise.
25335 * config/nios2/nios2.c: Likewise.
25336 * config/nvptx/nvptx.c: Likewise.
25337 * config/pa/pa.c: Likewise.
25338 * config/pdp11/pdp11.c: Likewise.
25339 * config/rl78/rl78-c.c: Likewise.
25340 * config/rl78/rl78.c: Likewise.
25341 * config/rs6000/rs6000-c.c: Likewise.
25342 * config/rs6000/rs6000.c: Likewise.
25343 * config/rx/rx.c: Likewise.
25344 * config/s390/s390-c.c: Likewise.
25345 * config/s390/s390.c: Likewise.
25346 * config/sh/sh-c.c: Likewise.
25347 * config/sh/sh-mem.cc: Likewise.
25348 * config/sh/sh.c: Likewise.
25349 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25350 * config/sh/sh_treg_combine.cc: Likewise.
25351 * config/sol2-c.c: Likewise.
25352 * config/sol2-cxx.c: Likewise.
25353 * config/sol2-stubs.c: Likewise.
25354 * config/sol2.c: Likewise.
25355 * config/sparc/sparc-c.c: Likewise.
25356 * config/sparc/sparc.c: Likewise.
25357 * config/spu/spu-c.c: Likewise.
25358 * config/spu/spu.c: Likewise.
25359 * config/stormy16/stormy16.c: Likewise.
25360 * config/tilegx/mul-tables.c: Likewise.
25361 * config/tilegx/tilegx-c.c: Likewise.
25362 * config/tilegx/tilegx.c: Likewise.
25363 * config/tilepro/mul-tables.c: Likewise.
25364 * config/tilepro/tilepro-c.c: Likewise.
25365 * config/tilepro/tilepro.c: Likewise.
25366 * config/v850/v850-c.c: Likewise.
25367 * config/v850/v850.c: Likewise.
25368 * config/vax/vax.c: Likewise.
25369 * config/visium/visium.c: Likewise.
25370 * config/vms/vms-c.c: Likewise.
25371 * config/vms/vms.c: Likewise.
25372 * config/vxworks.c: Likewise.
25373 * config/winnt-c.c: Likewise.
25374 * config/xtensa/xtensa.c: Likewise.
25375
25376 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
25377
25378 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25379 function.
25380 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25381
25382 2015-06-17 Richard Biener <rguenther@suse.de>
25383
25384 PR tree-optimization/66251
25385 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25386 stmts for SLP strided stores.
25387
25388 Revert
25389 2015-05-22 Richard Biener <rguenther@suse.de>
25390
25391 PR tree-optimization/66251
25392 * tree-vect-stmts.c (vectorizable_conversion): Properly
25393 set STMT_VINFO_VEC_STMT even for the SLP case.
25394
25395 2015-05-26 Michael Matz <matz@suse.de>
25396
25397 PR middle-end/66251
25398 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25399 STMT_VINFO_VEC_STMT, also with SLP.
25400
25401 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
25402
25403 PR target/56766
25404 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25405 (*avx_addsubv4df3_1s): Ditto.
25406 (*sse3_addsubv2df3_1): Ditto.
25407 (*sse3_addsubv2df3_1s): Ditto.
25408 (*avx_addsubv8sf3_1): Ditto.
25409 (*avx_addsubv8sf3_1s): Ditto.
25410 (*sse3_addsubv4sf3_1): Ditto.
25411 (*sse3_addsubv4sf3_1s): Ditto.
25412
25413 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
25414
25415 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25416 (SYSROOT_SUFFIX_SPEC): Update.
25417 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25418 (STARTFILE_PREFIX_SPEC): Update.
25419 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25420 (MULTILIB_REQUIRED): New.
25421 (MULTILIB_OSDIRNAMES): New.
25422 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25423 (MULTILIB_REQUIRED): New.
25424 (MULTILIB_OSDIRNAMES): New.
25425
25426 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
25427
25428 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25429 * config/aarch64/aarch64-options-extensions.def: Update "fP",
25430 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
25431 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25432 (AARCH64_FL_PAN): New.
25433 (AARCH64_FL_LOR): New.
25434 (AARCH64_FL_RDMA): New.
25435 (AARCH64_FL_FOR_ARCH8_1): New.
25436 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25437 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25438
25439 2015-06-16 Martin Liska <mliska@suse.cz>
25440
25441 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25442 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25443 guard.
25444
25445 2015-06-16 Richard Biener <rguenther@suse.de>
25446
25447 * tree-vect-stmts.c (vectorizable_store): Adjust.
25448 (vectorizable_load): Likewise.
25449 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25450 Simplify.
25451 (vect_create_data_ref_ptr): Likewise.
25452 (bump_vector_ptr): Adjust.
25453
25454 2015-06-16 Richard Biener <rguenther@suse.de>
25455
25456 * tree-vect-stmts.c (vectorizable_load): Properly start loads
25457 with the first element if this is grouped loads.
25458
25459 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
25460
25461 * config/arm/arm-protos.h (struct tune_params): Rename
25462 log_op_non_sc to log_op_non_short_circuit, and rename enum
25463 values to expand SC to SHORT_CIRCUIT.
25464 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25465 to LOG_OP_NON_SHORT_CIRCUIT.
25466 (arm_fastmul_tune):Likewise
25467 (arm_strongarm_tune): Likewise.
25468 (arm_xscale_tune): Likewise.
25469 (arm_9e_tune): Likewise.
25470 (arm_marvell_pj4_tune): Likewise.
25471 (arm_v6t2_tune): Likewise.
25472 (arm_cortex_tune): Likewise.
25473 (arm_cortex_a8_tune): Likewise.
25474 (arm_cortex_a7_tune): Likewise.
25475 (arm_cortex_a15_tune): Likewise.
25476 (arm_cortex_a53_tune): Likewise.
25477 (arm_cortex_a57_tune): Likewise.
25478 (arm_xgene1_tune): Likewise.
25479 (arm_cortex_a5_tune): Likewise.
25480 (arm_cortex_a9_tune): Likewise.
25481 (arm_cortex_a12_tune): Likewise.
25482 (arm_v7m_tune): Likewise.
25483 (arm_cortex_m7_tune): Likewise.
25484 (arm_v6m_tune): Likewise.
25485 (arm_fa726te_tune): Likewise.
25486
25487 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
25488
25489 * altivec.md: Delete UNSPEC_VMLADDUHM.
25490 (mulv4si3_p8): New pattern.
25491 (mulv4si3): Use it for POWER8.
25492 (mulv8hi3): Use vmladduhm with zero addend.
25493 (altivec_vmladduhm): Descriptive RTL.
25494
25495 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
25496
25497 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25498 to use neon_move instead of mov_imm.
25499 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25500 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25501
25502 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25503 aarch64_float_const_zero_rtx_p check before TFmode check.
25504 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25505 an fp zero.
25506 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
25507 code and attributes to match. Change condition from register_operand
25508 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
25509 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
25510 to store2.
25511
25512 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
25513
25514 PR debug/66535
25515 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25516 there is no parent.
25517
25518 2015-06-14 Shiva Chen <shiva0217@gmail.com>
25519
25520 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25521 HOST_WIDE_INT parameter.
25522
25523 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
25524
25525 PR ipa/66181
25526 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25527 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25528 TYPE_NO_FORCE_BLK.
25529 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25530
25531 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
25532
25533 * rtl.h (classify_insn): Declare.
25534 * emit-rtl.c (classify_insn): Move to...
25535 * rtl.c: ...here and add generator support.
25536 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25537 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25538 * genemit.c (gen_emit_seq): New function.
25539 (gen_expand, gen_split): Use it.
25540
25541 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
25542
25543 * tree.c (make_vector_stat): Fix comment to state that the
25544 function returns a VECTOR_CST.
25545
25546 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
25547
25548 * gensupport.h (add_implicit_parallel): Declare.
25549 * genrecog.c (add_implicit_parallel): Move to...
25550 * gensupport.c (add_implicit_parallel): ...here.
25551 (process_one_cond_exec): Use it.
25552 * genemit.c (gen_insn): Likewise.
25553
25554 2015-06-13 Iain Sandoe <iain@codesourcery.com>
25555
25556 PR bootstrap/66448
25557 * passes.c (rest_of_decl_compilation): Do not register globals for
25558 early debug if they are declared in built-ins.
25559
25560 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
25561
25562 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25563
25564 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25565
25566 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25567 manually swapping.
25568 (noce_try_cmove_arith): Likewise.
25569 (noce_get_alt_condition): Likewise.
25570
25571 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25572
25573 * common/config/i386/i386-common.c
25574 (OPTION_MASK_ISA_MWAITX_SET): New.
25575 (ix86_handle_option): Handle mwaitx.
25576 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25577 (x86_64-*-*): Likewise.
25578 * config/i386/mwaitxintrin.h: New header.
25579 * config/i386/cpuid.h (bit_MWAITX): Define.
25580 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25581 MWAITX support.
25582 * config/i386/i386.opt (mwaitx): New.
25583 * config/i386/i386-builtin-types.def
25584 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25585 * config/i386/i386-c.c: Define __MWAITX__ if needed.
25586 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25587 (PTA_MWAITX): New.
25588 (ix86_option_override_internal): Handle new option.
25589 (processor_alias_table): Added PTA_MWAITX.
25590 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25591 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25592 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25593 IX86_BUILTIN_MONITORX built-ins.
25594 * config/i386/i386.h (TARGET_MWAITX): New.
25595 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25596 UNSPEC_MONITORX.
25597 (mwaitx): New pattern.
25598 (monitorx_<mode>): New pattern.
25599 * config/i386/x86intrin.h: Include mwaitxintrin.h.
25600 * doc/extend.texi: Document monitorx and mwaitx builtins.
25601 * doc/invoke.texi: Document -mmwaitx option.
25602
25603 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
25604
25605 * emit-rtl.c (need_atomic_barrier_p): Mask model with
25606 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
25607
25608 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25609
25610 * dbxout.c (xcoff_debug_hooks): Provide a function for
25611 register_main_translation_unit hook.
25612
25613 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25614
25615 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25616 variants cases from switch.
25617 (rs6000_post_atomic_barrier): Same.
25618 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25619 (rs6000_expand_atomic_exchange): Same.
25620 (rs6000_expand_atomic_op): Same.
25621 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25622 SYNC variants cases from switch.
25623 (atomic_load): Same.
25624 (atomic_store): Same.
25625
25626 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
25627
25628 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25629 CONST_INT for goto.
25630
25631 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
25632
25633 PR bootstrap/66448
25634 * dwarf2out.c (check_die): Check for common duplicate attributes.
25635 (add_location_or_const_value_attribute): Do not add duplicate
25636 attributes.
25637 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25638 time around.
25639 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25640 (gen_type_die_with_usage): Call check_die.
25641 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25642
25643 2015-06-11 Jason Merrill <jason@redhat.com>
25644
25645 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25646 dies.
25647
25648 2015-06-11 Marek Polacek <polacek@redhat.com>
25649
25650 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25651
25652 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
25653
25654 PR bootstrap/66252
25655 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
25656 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
25657 (*addx_extend_sp32): Fix pasto.
25658 (*subx_extend): Rename into...
25659 (*subx_extend_sp32): ...this.
25660 (*adddi3_extend_sp32): Add earlyclobber.
25661 (*subdi3_insn_sp32): Likewise.
25662 (*subdi3_extend_sp32): Likewise.
25663 (*and_not_di_sp32): Likewise.
25664 (*or_not_di_sp32): Likewise.
25665 (*xor_not_di_sp32): Likewise.
25666 (*negdi2_sp32): Likewise.
25667 (*one_cmpldi2_sp32): Likewise.
25668
25669 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
25670
25671 * debug.h (struct gcc_debug_hooks): Add a
25672 register_main_translation_unit hook.
25673 * debug.c (do_nothing_debug_hooks): Provide a function for this
25674 new hook.
25675 * dbxout.c (dbx_debug_hooks): Likewise.
25676 * sdbout.c (sdb_debug_hooks): Likewise.
25677 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25678 * dwarf2out.c (main_translation_unit): New global variable.
25679 (dwarf2out_register_main_translation_unit): New function
25680 implementing the new hook.
25681 (dwarf2_debug_hooks): Assign
25682 dwarf2out_register_main_translation_unit to this new hook.
25683 (dwarf2out_init): Associate any main translation unit to
25684 comp_unit_die ().
25685
25686 2015-06-11 Marek Polacek <polacek@redhat.com>
25687
25688 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
25689
25690 2015-06-11 Marek Polacek <polacek@redhat.com>
25691
25692 * match.pd: Use single_use throughout.
25693
25694 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25695
25696 * config/arm/arm.c (arm_option_params_internal): When optimising
25697 for speed set max_insns_skipped when arm_restrict_it.
25698
25699 2015-06-11 Christian Bruel <christian.bruel@st.com>
25700
25701 PR target/52144
25702 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25703 macros in ...
25704 (arm_cpu_builtins): New function.
25705 (arm_pragma_target_parse): Call arm_cpu_builtins.
25706 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25707 (arm_register_target_pragmas): Likewise.
25708 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25709 Call arm_register_target_pragmas.
25710 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25711 (arm_pragma_target_parse): Likewise.
25712
25713 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
25714
25715 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25716 of the second operand.
25717
25718 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
25719
25720 PR target/66473
25721 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25722 to prepare mask operand for AVX512 modes.
25723
25724 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25725
25726 PR target/66474
25727 * doc/md.texi (Machine Constraints): Document that on the PowerPC
25728 if you use a constraint that targets a VSX register, you must use
25729 %x<n> in the template.
25730
25731 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
25732
25733 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25734 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25735 (define_insn "trap"): New definition.
25736
25737 2015-06-10 Richard Biener <rguenther@suse.de>
25738
25739 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25740 out from ...
25741 (vect_supported_load_permutation_p): ... here. Handle
25742 supportable permutations in reductions.
25743 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25744 for vectorizing strided group loads.
25745
25746 2015-06-10 Jakub Jelinek <jakub@redhat.com>
25747
25748 PR target/66470
25749 * config/i386/i386.c (ix86_split_long_move): For collisions
25750 involving direct tls segment refs, move the UNSPEC_TP possibly
25751 wrapped in ZERO_EXTEND out of the address for lea, to each of
25752 the memory loads.
25753
25754 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25755
25756 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25757 dmb sy. Adjust tabs.
25758
25759 2015-06-10 Tom de Vries <tom@codesourcery.com>
25760
25761 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25762
25763 2015-06-10 Martin Liska <mliska@suse.cz>
25764
25765 PR bootstrap/66471
25766 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25767 all enum values in mem_alloc_origin.
25768 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25769 name.
25770 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25771 * bitmap.c (bitmap_register): Likewise.
25772 (dump_bitmap_statistics): Likewise.
25773 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25774 (ggc_record_overhead): Likewise.
25775 * hash-map.h: Likewise.
25776 * hash-set.h: Likewise.
25777 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25778 * hash-table.h: Likewise.
25779 * vec.c (vec_prefix::register_overhead): Likewise.
25780 (vec_prefix::release_overhead): Likewise.
25781 (dump_vec_loc_statistics): Likewise.
25782
25783 2015-06-09 Christian Bruel <christian.bruel@st.com>
25784
25785 PR target/52144
25786 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25787 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25788 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25789 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25790 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25791 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25792 (arm_valid_target_attribute_p): Likewise.
25793 (arm_set_current_function, arm_can_inline_p): Likewise.
25794 (arm_valid_target_attribute_rec): Likewise.
25795 (arm_previous_fndecl): New variable.
25796 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25797 (TARGET_CAN_INLINE_P): Define.
25798 (arm_asm_trampoline_template): Emit mode.
25799 (arm_file_start): Don't set unified syntax.
25800 (arm_declare_function_name): Set unified syntax and mode.
25801 (arm_option_override): Init target_option_default_node.
25802 and target_option_current_node.
25803 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25804 (*call_symbol): Likewise.
25805 * doc/extend.texi: Document ARM/Thumb target attribute.
25806 * doc/invoke.texi: Likewise.
25807
25808 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25809
25810 Revert:
25811 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25812 PR rtl-optimization/64164
25813 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25814 * tree-ssa-copyrename.c: Removed.
25815 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25816 -ftree-coalesce-vars.
25817 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25818 * common.opt (ftree-copyrename): Ignore.
25819 (ftree-coalesce-inlined-vars): Likewise.
25820 * doc/invoke.texi: Remove the ignored options above.
25821 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25822 * tree-ssa-coalesce.h: ... here.
25823 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25824 headers required by it.
25825 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25826 across variables when flag_tree_coalesce_vars. Check register
25827 use and promoted modes to allow coalescing. Moved to
25828 tree-ssa-coalesce.c.
25829 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25830 with its member functions to tree-ssa-coalesce.c.
25831 (var_map_base_init): Likewise. Renamed to
25832 compute_samebase_partition_bases.
25833 (partition_view_normal): Drop want_bases parameter.
25834 (partition_view_bitmap): Likewise.
25835 * tree-ssa-live.h: Adjust declarations.
25836 * tree-ssa-coalesce.c: Include explow.h.
25837 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25838 default defs at the entry point.
25839 (dump_part_var_map): New.
25840 (compute_optimized_partition_bases): New, called by...
25841 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25842 of compute_samebase_partition_bases. Adjust.
25843 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25844 * cfgexpand.c (leader_merge): New.
25845 (get_rtl_for_parm_ssa_default_def): New.
25846 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25847 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25848 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25849 redundant MEM attr setting.
25850 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25851 from...
25852 (expand_one_stack_var): ... this. New wrapper to check and
25853 skip already expanded SSA partitions.
25854 (record_alignment_for_reg_var): New, factored out of...
25855 (expand_one_var): ... this.
25856 (expand_one_ssa_partition): New.
25857 (adjust_one_expanded_partition_var): New.
25858 (expand_one_register_var): Check and skip already expanded SSA
25859 partitions.
25860 (expand_used_vars): Don't create DECLs for anonymous SSA
25861 names. Expand all SSA partitions, then adjust all SSA names.
25862 (pass::execute): Replace the loops that set
25863 SA.partition_to_pseudo from partition leaders and cleared
25864 DECL_RTL for multi-location variables, and that which used to
25865 rename vars and set attrs, with one that clears DECL_RTL and
25866 checks that PARMs and RESULTs default_defs match DECL_RTL.
25867 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25868 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25869 * explow.c (promote_ssa_mode): New.
25870 * explow.h (promote_ssa_mode): Declare.
25871 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25872 * function.c: Include cfgexpand.h.
25873 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25874 (use_register_for_parm_decl): Wrapper for the above to
25875 special-case the result_ptr.
25876 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25877 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25878 multiple locations.
25879 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25880 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25881 (assign_parm_setup_block): Prefer SSA-assigned location.
25882 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25883 if stack_parm is NULL.
25884 (assign_parm_setup_stack): Prefer SSA-assigned location.
25885 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25886 rtl before testing for pointer bounds. Special-case result_ptr.
25887 (expand_function_start): Maybe reset DECL_RTL of result.
25888 Prefer SSA-assigned location for result and static chain.
25889 Factor out DECL_RESULT and SET_DECL_RTL.
25890 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25891 anonymous SSA names. Use promote_ssa_mode.
25892 (get_temp_reg): Likewise.
25893 (remove_ssa_form): Adjust.
25894 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25895 and get its reg_usage for reg invalidation.
25896 (compute_bb_dataflow): Pass it insn.
25897 (emit_notes_in_bb): Likewise.
25898 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25899 fail assert on conversion between unsigned types.
25900
25901 2015-06-09 Tom de Vries <tom@codesourcery.com>
25902
25903 PR tree-optimization/65460
25904 * omp-low.c (expand_omp_target): Set parallelized_function on
25905 cgraph_node for child_fn.
25906
25907 2015-06-09 Tom de Vries <tom@codesourcery.com>
25908
25909 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25910 parallelized_function before add_new_function.
25911
25912 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
25913
25914 * gcc-plugin.h: Move decls to plugin.h and include it.
25915 * plugin.h: Relocate decls from gcc-plugin.h
25916 * ggc-page.c: Include required header files.
25917 * passes.c: Likewise.
25918 * cgraphunit.c: Likewise.
25919
25920 2015-06-09 Tom de Vries <tom@codesourcery.com>
25921
25922 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25923
25924 2015-06-09 Jason Merrill <jason@redhat.com>
25925
25926 PR bootstrap/66448
25927 * toplev.c (check_global_declaration): Don't warn about a clone.
25928
25929 2015-06-09 Marek Polacek <polacek@redhat.com>
25930
25931 PR tree-optimization/66299
25932 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25933 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25934 patterns.
25935
25936 2015-06-09 Richard Biener <rguenther@suse.de>
25937
25938 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25939 (vect_analyze_slp_instance): Instead do not falsely drop
25940 load permutations.
25941
25942 2015-06-09 Richard Biener <rguenther@suse.de>
25943
25944 PR middle-end/66423
25945 * match.pd: Handle A % (unsigned)(1 << B).
25946
25947 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
25948
25949 * varasm.c (output_object_block_htab): Remove.
25950 (output_object_block_compare): New.
25951 (output_object_blocks): Sort named object_blocks before outputting
25952 them.
25953
25954 2015-06-09 Richard Biener <rguenther@suse.de>
25955
25956 PR tree-optimization/66419
25957 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25958 consider GROUP_GAP when detecting a perfect subchain.
25959
25960 2015-06-09 Nick Clifton <nickc@redhat.com>
25961
25962 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25963 place read only data in the .frodata section.
25964
25965 2015-06-09 Shiva Chen <shiva0217@gmail.com>
25966
25967 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25968 (atomic_store<mode>): Likewise.
25969
25970 2015-06-09 Richard Biener <rguenther@suse.de>
25971
25972 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25973
25974 2015-06-09 Richard Biener <rguenther@suse.de>
25975
25976 PR middle-end/66413
25977 * tree-inline.c (insert_init_debug_bind): Unshare value.
25978
25979 2015-06-09 Richard Biener <rguenther@suse.de>
25980
25981 PR tree-optimization/66396
25982 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25983 Rename virtual operands.
25984
25985 2015-06-09 Tom de Vries <tom@codesourcery.com>
25986
25987 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25988 always return false.
25989
25990 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25991
25992 PR rtl-optimization/64164
25993 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25994 * tree-ssa-copyrename.c: Removed.
25995 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25996 -ftree-coalesce-vars.
25997 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25998 * common.opt (ftree-copyrename): Ignore.
25999 (ftree-coalesce-inlined-vars): Likewise.
26000 * doc/invoke.texi: Remove the ignored options above.
26001 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26002 * tree-ssa-coalesce.h: ... here.
26003 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26004 headers required by it.
26005 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26006 across variables when flag_tree_coalesce_vars. Check register
26007 use and promoted modes to allow coalescing. Moved to
26008 tree-ssa-coalesce.c.
26009 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26010 with its member functions to tree-ssa-coalesce.c.
26011 (var_map_base_init): Likewise. Renamed to
26012 compute_samebase_partition_bases.
26013 (partition_view_normal): Drop want_bases parameter.
26014 (partition_view_bitmap): Likewise.
26015 * tree-ssa-live.h: Adjust declarations.
26016 * tree-ssa-coalesce.c: Include explow.h.
26017 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26018 default defs at the entry point.
26019 (dump_part_var_map): New.
26020 (compute_optimized_partition_bases): New, called by...
26021 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26022 of compute_samebase_partition_bases. Adjust.
26023 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26024 * cfgexpand.c (leader_merge): New.
26025 (get_rtl_for_parm_ssa_default_def): New.
26026 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26027 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26028 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26029 redundant MEM attr setting.
26030 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26031 from...
26032 (expand_one_stack_var): ... this. New wrapper to check and
26033 skip already expanded SSA partitions.
26034 (record_alignment_for_reg_var): New, factored out of...
26035 (expand_one_var): ... this.
26036 (expand_one_ssa_partition): New.
26037 (adjust_one_expanded_partition_var): New.
26038 (expand_one_register_var): Check and skip already expanded SSA
26039 partitions.
26040 (expand_used_vars): Don't create DECLs for anonymous SSA
26041 names. Expand all SSA partitions, then adjust all SSA names.
26042 (pass::execute): Replace the loops that set
26043 SA.partition_to_pseudo from partition leaders and cleared
26044 DECL_RTL for multi-location variables, and that which used to
26045 rename vars and set attrs, with one that clears DECL_RTL and
26046 checks that PARMs and RESULTs default_defs match DECL_RTL.
26047 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26048 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26049 * explow.c (promote_ssa_mode): New.
26050 * explow.h (promote_ssa_mode): Declare.
26051 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26052 * function.c: Include cfgexpand.h.
26053 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26054 (use_register_for_parm_decl): Wrapper for the above to
26055 special-case the result_ptr.
26056 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26057 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26058 multiple locations.
26059 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26060 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26061 (assign_parm_setup_block): Prefer SSA-assigned location.
26062 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26063 if stack_parm is NULL.
26064 (assign_parm_setup_stack): Prefer SSA-assigned location.
26065 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26066 rtl before testing for pointer bounds. Special-case result_ptr.
26067 (expand_function_start): Maybe reset DECL_RTL of result.
26068 Prefer SSA-assigned location for result and static chain.
26069 Factor out DECL_RESULT and SET_DECL_RTL.
26070 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26071 anonymous SSA names. Use promote_ssa_mode.
26072 (get_temp_reg): Likewise.
26073 (remove_ssa_form): Adjust.
26074 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26075 and get its reg_usage for reg invalidation.
26076 (compute_bb_dataflow): Pass it insn.
26077 (emit_notes_in_bb): Likewise.
26078 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26079 fail assert on conversion between unsigned types.
26080
26081 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26082
26083 PR debug/58315
26084 * tree-inline.c (reset_debug_binding): New.
26085 (reset_debug_bindings): Likewise.
26086 (expand_call_inline): Call it.
26087
26088 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26089
26090 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26091 TYPE_STRING_FLAG.
26092
26093 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26094
26095 * lto-streamer-out.c (lto_output_location): Stream
26096 reserved locations correctly.
26097 * lto-streamer-in.c (lto_output_location): Likewise.
26098
26099 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26100
26101 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26102 * ggc.h: Don't include statistics.h>
26103 * hash-map.h: Remove all includes.
26104 * hash-set.h: Likewise.
26105 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26106 the include list. Remove <new>.
26107 * inchash.h: Remove all includes.
26108 * mem-stats.h: Likewise.
26109 * vec.h: No special processing for generators or ggc.
26110 * alias.c : Adjust include files.
26111 * alloc-pool.c : Likewise.
26112 * alloc-pool.h : Likewise.
26113 * asan.c : Likewise.
26114 * attribs.c : Likewise.
26115 * auto-inc-dec.c : Likewise.
26116 * auto-profile.c : Likewise.
26117 * bb-reorder.c : Likewise.
26118 * bitmap.c : Likewise.
26119 * bitmap.h : Likewise.
26120 * bt-load.c : Likewise.
26121 * builtins.c : Likewise.
26122 * caller-save.c : Likewise.
26123 * calls.c : Likewise.
26124 * ccmp.c : Likewise.
26125 * cfg.c : Likewise.
26126 * cfganal.c : Likewise.
26127 * cfgbuild.c : Likewise.
26128 * cfgcleanup.c : Likewise.
26129 * cfgexpand.c : Likewise.
26130 * cfghooks.c : Likewise.
26131 * cfgloop.c : Likewise.
26132 * cfgloop.h : Likewise.
26133 * cfgloopanal.c : Likewise.
26134 * cfgloopmanip.c : Likewise.
26135 * cfgrtl.c : Likewise.
26136 * cgraph.c : Likewise.
26137 * cgraphbuild.c : Likewise.
26138 * cgraphclones.c : Likewise.
26139 * cgraphunit.c : Likewise.
26140 * cilk-common.c : Likewise.
26141 * combine-stack-adj.c : Likewise.
26142 * combine.c : Likewise.
26143 * compare-elim.c : Likewise.
26144 * context.c : Likewise.
26145 * convert.c : Likewise.
26146 * coverage.c : Likewise.
26147 * cppbuiltin.c : Likewise.
26148 * cprop.c : Likewise.
26149 * cse.c : Likewise.
26150 * cselib.c : Likewise.
26151 * data-streamer-in.c : Likewise.
26152 * data-streamer-out.c : Likewise.
26153 * data-streamer.c : Likewise.
26154 * data-streamer.h : Likewise.
26155 * dbxout.c : Likewise.
26156 * dce.c : Likewise.
26157 * ddg.c : Likewise.
26158 * debug.c : Likewise.
26159 * df-core.c : Likewise.
26160 * df-problems.c : Likewise.
26161 * df-scan.c : Likewise.
26162 * df.h : Likewise.
26163 * dfp.c : Likewise.
26164 * dojump.c : Likewise.
26165 * dominance.c : Likewise.
26166 * domwalk.c : Likewise.
26167 * double-int.c : Likewise.
26168 * dse.c : Likewise.
26169 * dumpfile.c : Likewise.
26170 * dwarf2asm.c : Likewise.
26171 * dwarf2cfi.c : Likewise.
26172 * dwarf2out.c : Likewise.
26173 * emit-rtl.c : Likewise.
26174 * et-forest.c : Likewise.
26175 * except.c : Likewise.
26176 * except.h : Likewise.
26177 * explow.c : Likewise.
26178 * expmed.c : Likewise.
26179 * expr.c : Likewise.
26180 * final.c : Likewise.
26181 * fixed-value.c : Likewise.
26182 * fold-const.c : Likewise.
26183 * function.c : Likewise.
26184 * fwprop.c : Likewise.
26185 * gcc-plugin.h : Likewise.
26186 * gcc.c : Likewise.
26187 * gcse-common.c : Likewise.
26188 * gcse.c : Likewise.
26189 * genattrtab.c : Likewise.
26190 * genautomata.c : Likewise.
26191 * genconditions.c : Likewise.
26192 * genemit.c : Likewise.
26193 * generic-match-head.c : Likewise.
26194 * genextract.c : Likewise.
26195 * gengtype-state.c : Likewise.
26196 * gengtype.c : Likewise.
26197 * genhooks.c : Likewise.
26198 * genmatch.c : Likewise.
26199 * genmodes.c : Likewise.
26200 * genrecog.c : Likewise.
26201 * gensupport.c : Likewise.
26202 * ggc-common.c : Likewise.
26203 * ggc-internal.h : Likewise.
26204 * ggc-none.c : Likewise.
26205 * ggc-page.c : Likewise.
26206 * gimple-builder.c : Likewise.
26207 * gimple-expr.c : Likewise.
26208 * gimple-fold.c : Likewise.
26209 * gimple-iterator.c : Likewise.
26210 * gimple-low.c : Likewise.
26211 * gimple-match-head.c : Likewise.
26212 * gimple-pretty-print.c : Likewise.
26213 * gimple-ssa-isolate-paths.c : Likewise.
26214 * gimple-ssa-strength-reduction.c : Likewise.
26215 * gimple-ssa.h : Likewise.
26216 * gimple-streamer-in.c : Likewise.
26217 * gimple-streamer-out.c : Likewise.
26218 * gimple-streamer.h : Likewise.
26219 * gimple-walk.c : Likewise.
26220 * gimple.c : Likewise.
26221 * gimplify-me.c : Likewise.
26222 * gimplify.c : Likewise.
26223 * godump.c : Likewise.
26224 * graph.c : Likewise.
26225 * graphds.c : Likewise.
26226 * graphite-blocking.c : Likewise.
26227 * graphite-dependences.c : Likewise.
26228 * graphite-interchange.c : Likewise.
26229 * graphite-isl-ast-to-gimple.c : Likewise.
26230 * graphite-optimize-isl.c : Likewise.
26231 * graphite-poly.c : Likewise.
26232 * graphite-scop-detection.c : Likewise.
26233 * graphite-sese-to-poly.c : Likewise.
26234 * graphite.c : Likewise.
26235 * haifa-sched.c : Likewise.
26236 * hard-reg-set.h : Likewise.
26237 * hw-doloop.c : Likewise.
26238 * ifcvt.c : Likewise.
26239 * inchash.c : Likewise.
26240 * incpath.c : Likewise.
26241 * init-regs.c : Likewise.
26242 * input.c : Likewise.
26243 * internal-fn.c : Likewise.
26244 * ipa-chkp.c : Likewise.
26245 * ipa-comdats.c : Likewise.
26246 * ipa-cp.c : Likewise.
26247 * ipa-devirt.c : Likewise.
26248 * ipa-icf-gimple.c : Likewise.
26249 * ipa-icf.c : Likewise.
26250 * ipa-inline-analysis.c : Likewise.
26251 * ipa-inline-transform.c : Likewise.
26252 * ipa-inline.c : Likewise.
26253 * ipa-polymorphic-call.c : Likewise.
26254 * ipa-profile.c : Likewise.
26255 * ipa-prop.c : Likewise.
26256 * ipa-pure-const.c : Likewise.
26257 * ipa-ref.c : Likewise.
26258 * ipa-reference.c : Likewise.
26259 * ipa-split.c : Likewise.
26260 * ipa-utils.c : Likewise.
26261 * ipa-visibility.c : Likewise.
26262 * ipa.c : Likewise.
26263 * ira-build.c : Likewise.
26264 * ira-color.c : Likewise.
26265 * ira-conflicts.c : Likewise.
26266 * ira-costs.c : Likewise.
26267 * ira-emit.c : Likewise.
26268 * ira-lives.c : Likewise.
26269 * ira.c : Likewise.
26270 * jump.c : Likewise.
26271 * langhooks.c : Likewise.
26272 * lcm.c : Likewise.
26273 * libfuncs.h : Likewise.
26274 * lists.c : Likewise.
26275 * loop-doloop.c : Likewise.
26276 * loop-init.c : Likewise.
26277 * loop-invariant.c : Likewise.
26278 * loop-iv.c : Likewise.
26279 * loop-unroll.c : Likewise.
26280 * lower-subreg.c : Likewise.
26281 * lra-assigns.c : Likewise.
26282 * lra-coalesce.c : Likewise.
26283 * lra-constraints.c : Likewise.
26284 * lra-eliminations.c : Likewise.
26285 * lra-lives.c : Likewise.
26286 * lra-remat.c : Likewise.
26287 * lra-spills.c : Likewise.
26288 * lra.c : Likewise.
26289 * lto-cgraph.c : Likewise.
26290 * lto-compress.c : Likewise.
26291 * lto-opts.c : Likewise.
26292 * lto-section-in.c : Likewise.
26293 * lto-section-out.c : Likewise.
26294 * lto-streamer-in.c : Likewise.
26295 * lto-streamer-out.c : Likewise.
26296 * lto-streamer.c : Likewise.
26297 * lto-streamer.h : Likewise.
26298 * mcf.c : Likewise.
26299 * mode-switching.c : Likewise.
26300 * modulo-sched.c : Likewise.
26301 * omega.c : Likewise.
26302 * omp-low.c : Likewise.
26303 * optabs.c : Likewise.
26304 * opts-global.c : Likewise.
26305 * opts.h : Likewise.
26306 * passes.c : Likewise.
26307 * plugin.c : Likewise.
26308 * postreload-gcse.c : Likewise.
26309 * postreload.c : Likewise.
26310 * predict.c : Likewise.
26311 * print-rtl.c : Likewise.
26312 * print-tree.c : Likewise.
26313 * profile.c : Likewise.
26314 * read-md.c : Likewise.
26315 * read-md.h : Likewise.
26316 * read-rtl.c : Likewise.
26317 * real.c : Likewise.
26318 * realmpfr.c : Likewise.
26319 * recog.c : Likewise.
26320 * ree.c : Likewise.
26321 * reg-stack.c : Likewise.
26322 * regcprop.c : Likewise.
26323 * reginfo.c : Likewise.
26324 * regrename.c : Likewise.
26325 * regstat.c : Likewise.
26326 * reload.c : Likewise.
26327 * reload1.c : Likewise.
26328 * reorg.c : Likewise.
26329 * resource.c : Likewise.
26330 * rtl-chkp.c : Likewise.
26331 * rtl.c : Likewise.
26332 * rtl.h : Likewise.
26333 * rtlanal.c : Likewise.
26334 * rtlhash.c : Likewise.
26335 * rtlhash.h : Likewise.
26336 * rtlhooks.c : Likewise.
26337 * sanopt.c : Likewise.
26338 * sched-deps.c : Likewise.
26339 * sched-ebb.c : Likewise.
26340 * sched-rgn.c : Likewise.
26341 * sched-vis.c : Likewise.
26342 * sdbout.c : Likewise.
26343 * sel-sched-dump.c : Likewise.
26344 * sel-sched-ir.c : Likewise.
26345 * sel-sched-ir.h : Likewise.
26346 * sel-sched.c : Likewise.
26347 * sese.c : Likewise.
26348 * shrink-wrap.c : Likewise.
26349 * shrink-wrap.h : Likewise.
26350 * simplify-rtx.c : Likewise.
26351 * stack-ptr-mod.c : Likewise.
26352 * statistics.c : Likewise.
26353 * stmt.c : Likewise.
26354 * stor-layout.c : Likewise.
26355 * store-motion.c : Likewise.
26356 * stringpool.c : Likewise.
26357 * symtab.c : Likewise.
26358 * target-globals.c : Likewise.
26359 * targhooks.c : Likewise.
26360 * tlink.c : Likewise.
26361 * toplev.c : Likewise.
26362 * tracer.c : Likewise.
26363 * trans-mem.c : Likewise.
26364 * tree-affine.c : Likewise.
26365 * tree-affine.h : Likewise.
26366 * tree-browser.c : Likewise.
26367 * tree-call-cdce.c : Likewise.
26368 * tree-cfg.c : Likewise.
26369 * tree-cfgcleanup.c : Likewise.
26370 * tree-chkp-opt.c : Likewise.
26371 * tree-chkp.c : Likewise.
26372 * tree-chrec.c : Likewise.
26373 * tree-complex.c : Likewise.
26374 * tree-data-ref.c : Likewise.
26375 * tree-dfa.c : Likewise.
26376 * tree-diagnostic.c : Likewise.
26377 * tree-dump.c : Likewise.
26378 * tree-eh.c : Likewise.
26379 * tree-eh.h : Likewise.
26380 * tree-emutls.c : Likewise.
26381 * tree-hasher.h : Likewise.
26382 * tree-if-conv.c : Likewise.
26383 * tree-inline.c : Likewise.
26384 * tree-inline.h : Likewise.
26385 * tree-into-ssa.c : Likewise.
26386 * tree-iterator.c : Likewise.
26387 * tree-loop-distribution.c : Likewise.
26388 * tree-nested.c : Likewise.
26389 * tree-nrv.c : Likewise.
26390 * tree-object-size.c : Likewise.
26391 * tree-outof-ssa.c : Likewise.
26392 * tree-parloops.c : Likewise.
26393 * tree-phinodes.c : Likewise.
26394 * tree-predcom.c : Likewise.
26395 * tree-pretty-print.c : Likewise.
26396 * tree-profile.c : Likewise.
26397 * tree-scalar-evolution.c : Likewise.
26398 * tree-sra.c : Likewise.
26399 * tree-ssa-address.c : Likewise.
26400 * tree-ssa-alias.c : Likewise.
26401 * tree-ssa-ccp.c : Likewise.
26402 * tree-ssa-coalesce.c : Likewise.
26403 * tree-ssa-copy.c : Likewise.
26404 * tree-ssa-copyrename.c : Likewise.
26405 * tree-ssa-dce.c : Likewise.
26406 * tree-ssa-dom.c : Likewise.
26407 * tree-ssa-dse.c : Likewise.
26408 * tree-ssa-forwprop.c : Likewise.
26409 * tree-ssa-ifcombine.c : Likewise.
26410 * tree-ssa-live.c : Likewise.
26411 * tree-ssa-loop-ch.c : Likewise.
26412 * tree-ssa-loop-im.c : Likewise.
26413 * tree-ssa-loop-ivcanon.c : Likewise.
26414 * tree-ssa-loop-ivopts.c : Likewise.
26415 * tree-ssa-loop-manip.c : Likewise.
26416 * tree-ssa-loop-niter.c : Likewise.
26417 * tree-ssa-loop-prefetch.c : Likewise.
26418 * tree-ssa-loop-unswitch.c : Likewise.
26419 * tree-ssa-loop.c : Likewise.
26420 * tree-ssa-math-opts.c : Likewise.
26421 * tree-ssa-operands.c : Likewise.
26422 * tree-ssa-phiopt.c : Likewise.
26423 * tree-ssa-phiprop.c : Likewise.
26424 * tree-ssa-pre.c : Likewise.
26425 * tree-ssa-propagate.c : Likewise.
26426 * tree-ssa-reassoc.c : Likewise.
26427 * tree-ssa-sccvn.c : Likewise.
26428 * tree-ssa-scopedtables.c : Likewise.
26429 * tree-ssa-sink.c : Likewise.
26430 * tree-ssa-strlen.c : Likewise.
26431 * tree-ssa-structalias.c : Likewise.
26432 * tree-ssa-tail-merge.c : Likewise.
26433 * tree-ssa-ter.c : Likewise.
26434 * tree-ssa-threadedge.c : Likewise.
26435 * tree-ssa-threadupdate.c : Likewise.
26436 * tree-ssa-uncprop.c : Likewise.
26437 * tree-ssa-uninit.c : Likewise.
26438 * tree-ssa.c : Likewise.
26439 * tree-ssanames.c : Likewise.
26440 * tree-stdarg.c : Likewise.
26441 * tree-streamer-in.c : Likewise.
26442 * tree-streamer-out.c : Likewise.
26443 * tree-streamer.c : Likewise.
26444 * tree-streamer.h : Likewise.
26445 * tree-switch-conversion.c : Likewise.
26446 * tree-tailcall.c : Likewise.
26447 * tree-vect-data-refs.c : Likewise.
26448 * tree-vect-generic.c : Likewise.
26449 * tree-vect-loop-manip.c : Likewise.
26450 * tree-vect-loop.c : Likewise.
26451 * tree-vect-patterns.c : Likewise.
26452 * tree-vect-slp.c : Likewise.
26453 * tree-vect-stmts.c : Likewise.
26454 * tree-vectorizer.c : Likewise.
26455 * tree-vectorizer.h : Likewise.
26456 * tree-vrp.c : Likewise.
26457 * tree.c : Likewise.
26458 * tsan.c : Likewise.
26459 * ubsan.c : Likewise.
26460 * valtrack.c : Likewise.
26461 * valtrack.h : Likewise.
26462 * value-prof.c : Likewise.
26463 * var-tracking.c : Likewise.
26464 * varasm.c : Likewise.
26465 * varpool.c : Likewise.
26466 * vec.c: Likewise.
26467 * vmsdbgout.c : Likewise.
26468 * vtable-verify.c : Likewise.
26469 * vtable-verify.h : Likewise.
26470 * web.c : Likewise.
26471 * wide-int.cc : Likewise.
26472 * xcoffout.c : Likewise.
26473 * config/aarch64/aarch64-builtins.c : Likewise.
26474 * config/aarch64/aarch64.c : Likewise.
26475 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26476 * config/alpha/alpha.c : Likewise.
26477 * config/arc/arc.c : Likewise.
26478 * config/arm/aarch-common.c : Likewise.
26479 * config/arm/arm-builtins.c : Likewise.
26480 * config/arm/arm-c.c : Likewise.
26481 * config/arm/arm.c : Likewise.
26482 * config/avr/avr-c.c : Likewise.
26483 * config/avr/avr-log.c : Likewise.
26484 * config/avr/avr.c : Likewise.
26485 * config/bfin/bfin.c : Likewise.
26486 * config/c6x/c6x.c : Likewise.
26487 * config/cr16/cr16.c : Likewise.
26488 * config/cris/cris.c : Likewise.
26489 * config/darwin-c.c : Likewise.
26490 * config/darwin.c : Likewise.
26491 * config/default-c.c : Likewise.
26492 * config/epiphany/epiphany.c : Likewise.
26493 * config/epiphany/mode-switch-use.c : Likewise.
26494 * config/epiphany/resolve-sw-modes.c : Likewise.
26495 * config/fr30/fr30.c : Likewise.
26496 * config/frv/frv.c : Likewise.
26497 * config/ft32/ft32.c : Likewise.
26498 * config/glibc-c.c : Likewise.
26499 * config/h8300/h8300.c : Likewise.
26500 * config/i386/i386-c.c : Likewise.
26501 * config/i386/i386.c : Likewise.
26502 * config/i386/msformat-c.c : Likewise.
26503 * config/i386/winnt-cxx.c : Likewise.
26504 * config/i386/winnt-stubs.c : Likewise.
26505 * config/i386/winnt.c : Likewise.
26506 * config/ia64/ia64-c.c : Likewise.
26507 * config/ia64/ia64.c : Likewise.
26508 * config/iq2000/iq2000.c : Likewise.
26509 * config/lm32/lm32.c : Likewise.
26510 * config/m32c/m32c-pragma.c : Likewise.
26511 * config/m32c/m32c.c : Likewise.
26512 * config/m32r/m32r.c : Likewise.
26513 * config/m68k/m68k.c : Likewise.
26514 * config/mcore/mcore.c : Likewise.
26515 * config/mep/mep-pragma.c : Likewise.
26516 * config/mep/mep.c : Likewise.
26517 * config/microblaze/microblaze-c.c : Likewise.
26518 * config/microblaze/microblaze.c : Likewise.
26519 * config/mips/mips.c : Likewise.
26520 * config/mmix/mmix.c : Likewise.
26521 * config/mn10300/mn10300.c : Likewise.
26522 * config/moxie/moxie.c : Likewise.
26523 * config/msp430/msp430-c.c : Likewise.
26524 * config/msp430/msp430.c : Likewise.
26525 * config/nds32/nds32-cost.c : Likewise.
26526 * config/nds32/nds32-fp-as-gp.c : Likewise.
26527 * config/nds32/nds32-intrinsic.c : Likewise.
26528 * config/nds32/nds32-isr.c : Likewise.
26529 * config/nds32/nds32-md-auxiliary.c : Likewise.
26530 * config/nds32/nds32-memory-manipulation.c : Likewise.
26531 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26532 * config/nds32/nds32-predicates.c : Likewise.
26533 * config/nds32/nds32.c : Likewise.
26534 * config/nios2/nios2.c : Likewise.
26535 * config/nvptx/nvptx.c : Likewise.
26536 * config/pa/pa.c : Likewise.
26537 * config/pdp11/pdp11.c : Likewise.
26538 * config/rl78/rl78-c.c : Likewise.
26539 * config/rl78/rl78.c : Likewise.
26540 * config/rs6000/rs6000-c.c : Likewise.
26541 * config/rs6000/rs6000.c : Likewise.
26542 * config/rx/rx.c : Likewise.
26543 * config/s390/s390-c.c : Likewise.
26544 * config/s390/s390.c : Likewise.
26545 * config/sh/sh-c.c : Likewise.
26546 * config/sh/sh-mem.cc : Likewise.
26547 * config/sh/sh.c : Likewise.
26548 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26549 * config/sh/sh_treg_combine.cc : Likewise.
26550 * config/sol2-c.c : Likewise.
26551 * config/sol2-cxx.c : Likewise.
26552 * config/sol2-stubs.c : Likewise.
26553 * config/sol2.c : Likewise.
26554 * config/sparc/sparc-c.c : Likewise.
26555 * config/sparc/sparc.c : Likewise.
26556 * config/spu/spu-c.c : Likewise.
26557 * config/spu/spu.c : Likewise.
26558 * config/stormy16/stormy16.c : Likewise.
26559 * config/tilegx/mul-tables.c : Likewise.
26560 * config/tilegx/tilegx-c.c : Likewise.
26561 * config/tilegx/tilegx.c : Likewise.
26562 * config/tilepro/mul-tables.c : Likewise.
26563 * config/tilepro/tilepro-c.c : Likewise.
26564 * config/tilepro/tilepro.c : Likewise.
26565 * config/v850/v850-c.c : Likewise.
26566 * config/v850/v850.c : Likewise.
26567 * config/vax/vax.c : Likewise.
26568 * config/visium/visium.c : Likewise.
26569 * config/vms/vms-c.c : Likewise.
26570 * config/vms/vms.c : Likewise.
26571 * config/vxworks.c : Likewise.
26572 * config/winnt-c.c : Likewise.
26573 * config/xtensa/xtensa.c : Likewise.
26574
26575 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26576
26577 PR lto/65378
26578 * ipa-utils.h (warn_types_mismatch): Update prototype.
26579 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26580 parameters.
26581 (type_mismatch_p): New function.
26582 (warn_types_mismatch): Reorg to work better on non-C++ types.
26583 (odr_types_equivalent_p): Add loc1/loc2 parameters.
26584 (add_type_duplicate): Update.
26585
26586 2015-06-08 Tom de Vries <tom@codesourcery.com>
26587
26588 PR rtl-optimization/66444
26589 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26590 call_used_regs.
26591
26592 2015-06-08 Richard Biener <rguenther@suse.de>
26593
26594 PR tree-optimization/66422
26595 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26596 block after inserted gcc_unreachable.
26597
26598 2015-06-08 Nick Clifton <nickc@redhat.com>
26599
26600 * config/rx/rx.c (rx_function_value): Do not promote vector types.
26601 (rx_promote_function_mode): Likewise.
26602 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26603
26604 2015-06-08 Jakub Jelinek <jakub@redhat.com>
26605
26606 * genattrtab.c (insn_alternatives): Change type from int *
26607 to uint64_t *.
26608 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26609 (get_attr_value): Change type of num_alt to uint64_t.
26610 (compute_alternative_mask): Change return type from
26611 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26612 (make_alternative_compare, mk_attr_alt): Change argument type
26613 from int to uint64_t.
26614 (simplify_test_exp): Change type of i from int to uint64_t.
26615 Shift ((uint64_t) 1) instead of 1 up.
26616 (main): Adjust oballocvec first argument from int to uint64_t.
26617 Shift ((uint64_t) 1) instead of 1 up.
26618
26619 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
26620
26621 PR other/65366
26622 * gdbhooks.py: Import sys.
26623 (intptr): New function. Replace int(...) by intptr(...).
26624
26625 2015-06-08 Richard Biener <rguenther@suse.de>
26626
26627 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26628 adjustment for gaps at the end of a SLP load group properly.
26629 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26630 all permutations we can generate.
26631 (vect_transform_slp_perm_load): Use the correct group-size.
26632
26633 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
26634
26635 * genmatch.c (expr::gen_transform): For conditions, guess the type
26636 from the second operand.
26637
26638 2015-06-08 Tom de Vries <tom@codesourcery.com>
26639
26640 PR tree-optimization/66442
26641 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26642 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26643 if the loop latch is not a singleton. Use
26644 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26645
26646 2015-06-08 Marek Polacek <polacek@redhat.com>
26647
26648 PR sanitizer/66452
26649 * toplev.c (check_global_declaration): Don't warn about artificial
26650 decls.
26651
26652 2015-06-08 Tom de Vries <tom@codesourcery.com>
26653
26654 PR tree-optimization/66436
26655 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
26656 dump file.
26657 * gimplify.c: Add tree-dump.h include.
26658 (gimplify_function_tree): Dump function to gimple dump file.
26659 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
26660 dump file.
26661
26662 2015-06-08 Tom de Vries <tom@codesourcery.com>
26663
26664 PR tree-optimization/66435
26665 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
26666 function.
26667
26668 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
26669
26670 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
26671 of ptr_type_node to not be ptr_to_node.
26672 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
26673 TREE_TYPE of pointers.
26674 * gimple-expr.c (useless_type_conversion): Reorder the check for
26675 function pointers and TYPE_CANONICAL.
26676
26677 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
26678
26679 PR bootstrap/66319
26680 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
26681 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
26682 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
26683 later.
26684 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
26685 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
26686 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
26687 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
26688 and non iso if unix2003.
26689
26690 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
26691
26692 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26693
26694 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
26695
26696 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26697 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26698 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26699 except.c, final.c, function.c, gcse-common.c, genemit.c,
26700 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26701 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26702 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26703 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26704 more derived ones.
26705
26706 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
26707
26708 * combine.c (combine_split_insns): Remove cast.
26709 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26710 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26711 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26712 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26713 * genemit.c (gen_split): Change return type of generated functions to
26714 rtx_insn.
26715 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26716 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26717 gen_peephole2_* functions.
26718 (print_subroutine, main): Likewise.
26719 * recog.c (peephole2_optimize): Remove cast.
26720 (peep2_next_insn): Promote return type to rtx_insn.
26721 * recog.h (peep2_next_insn): Fix prototype.
26722 * rtl.h (try_split, split_insns): Likewise.
26723
26724 2015-06-06 DJ Delorie <dj@redhat.com>
26725
26726 * config/msp430/msp430.c (msp430_asm_integer): Support addition
26727 and subtraction too.
26728
26729 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
26730
26731 PR target/66410
26732 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26733 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26734 instead of Snd. Disparage Sid/z alternative with '^'.
26735
26736 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
26737
26738 * dwarf2out.c: Remove deferred_locations*.
26739 (dwarf2_debug_hooks): Add early_finish hook.
26740 Remove global_decl hook.
26741 Add early_global_decl and late_global_decl hook.
26742 New global early_dwarf.
26743 New structure set_early_dwarf.
26744 (output_die): Indicate whether a DIE was generated early
26745 when generating assembly with -dA.
26746 (struct limbo_die_struct): Document created_for field.
26747 Remove file_table_last_lookup.
26748 (remove_AT): Return TRUE if successful.
26749 (remove_child_TAG): Clear die_parent.
26750 (reparent_child): New function abstracted from...
26751 (splice_child_die): ...here.
26752 (new_die): ICE if a DIE ends up in limbo too late.
26753 (check_die): New.
26754 (defer_location): Remove.
26755 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26756 (fill_variable_array_bounds): New.
26757 (decl_start_label): Call fill_variable_array_bounds.
26758 (gen_formal_parameter_die): Rewrite to reuse previously generated
26759 DIEs.
26760 (gen_subprogram_die): Same.
26761 (gen_variable_die): Same.
26762 (gen_const_die): Same.
26763 (gen_label_die): Same.
26764 (gen_lexical_block_die): Same.
26765 (decl_will_get_specification_p): New.
26766 (local_function_static): New.
26767 (gen_struct_or_union_type_die): Fill in variable-length fields.
26768 (gen_typedef_die): Fill in variable-length typedefs.
26769 (gen_tagged_type_die): Gracefully return on error_mark_node.
26770 Handle re-entrancy.
26771 (gen_type_die_with_usage): Handle variable-length types.
26772 Remove duplicate code for ARRAY_TYPE case.
26773 (process_scope_var): Only process imported modules during early
26774 dwarf.
26775 (dwarf2out_early_global_decl): New.
26776 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26777 (dwarf2out_type_decl): Set early_dwarf while calling
26778 dwarf2out_decl.
26779 (dwarf2out_decl): Verify that we did not recreate a previously
26780 generated DIE.
26781 Do not return on DECL_EXTERNALs in VAR_DECLs.
26782 Abstract some code to local_function_static.
26783 (lookup_filename): Remove use of file_table_last_lookup.
26784 Gracefully exit on missing file_name.
26785 (dwarf2out_finish): Verify limbo list.
26786 Remove deferred_locations_list use.
26787 Move deferred_asm_name and limbo flushing to...
26788 (dwarf2out_early_finish): ...here. New.
26789 (dwarf2out_c_finalize): Remove set of deferred_location_list,
26790 deferred_asm_name, and file_table_last_lookup.
26791 * cgraph.h (referred_to_p): Add default argument.
26792 * cgraphunit.c (referred_to_p): Add and handle include_self
26793 argument.
26794 (analyze_functions): Add first_time argument.
26795 Call check_global_declaration for all symbols.
26796 Call late_global_decl for nodes for moribund nodes.
26797 (finalize_compilation_unit): Add new argument to
26798 analyze_functions.
26799 Call early_global_decl for functions.
26800 Call early_finish debug hook.
26801 * dbxout.c (dbxout_early_global_decl): New.
26802 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
26803 (dbx_debug_hooks): Add new hooks.
26804 (xcoff_debug_hooks): Same.
26805 * debug.c (do_nothing_debug_hooks): Add early_finish field.
26806 Add early and late debug hooks.
26807 Remove global_decl hook.
26808 * debug.h (struct gcc_debug_hooks): Add early_finish,
26809 early_global_decl, and late_global_decl fields.
26810 Remove global_decl field.
26811 Document gcc_debug_hooks.
26812 * gengtype.c (output_typename): Remove.
26813 * godump.c (go_early_global_decl): New.
26814 (go_late_global_decl): New.
26815 (go_global_decl): Remove.
26816 (dump_go_spec_init): Remove global_decl. Add
26817 {early,late}_global_decl.
26818 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26819 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26820 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26821 (write_global_declarations): Remove.
26822 (global_decl_processing): New.
26823 * langhooks.h (struct lang_hooks_for_decls): Remove
26824 final_write_globals field.
26825 Add post_compilation_parsing_cleanups field.
26826 * passes.c (rest_of_decl_compilation): Call early_global_decl.
26827 * sdbout.c: Add early and late_global_decl hooks. Remove
26828 sdbout_global_decl hook.
26829 Add early_finish field for sdb_debug_hooks.
26830 (sdbout_global_decl): Remove.
26831 (sdbout_early_global_decl): New.
26832 (sdbout_late_global_decl): New.
26833 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26834 * toplev.c (check_global_declaration): Rename from
26835 check_global_declaration_1.
26836 Adapt to use symtab infrastructure.
26837 (check_global_declarations): Remove.
26838 (emit_debug_global_declarations): Remove.
26839 (compile_file): Remove call to final_write_globals langhook.
26840 Run the actual compilation process.
26841 Perform any post compilation parser cleanups.
26842 Generate late debug info.
26843 * toplev.h (check_global_declaration): New.
26844 (check_global_declaration_1): Remove.
26845 (check_global_declarations): Remove.
26846 (write_global_declarations): Remove.
26847 (emit_debug_global_declarations): Remove.
26848 (global_decl_processing): New.
26849 * tree-core.h (struct tree_block): Add DIE field.
26850 * tree.h (BLOCK_DIE): New.
26851 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26852 throughout.
26853 (vmsdbgout_early_global_decl): New.
26854 (vmsdbgout_late_global_decl): New.
26855 Add early_finish debug hook field to vmsdbg_debug_hooks.
26856 Remove vmsdbgout_decl to vmsdbgout_function_decl.
26857 Add early and late_global_decl debug hooks.
26858
26859 2015-06-05 Julian Brown <julian@codesourcery.com>
26860 Sandra Loosemore <sandra@codesourcery.com>
26861
26862 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26863 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26864 to print-sysroot-suffix.sh script.
26865
26866 2015-06-05 Tom de Vries <tom@codesourcery.com>
26867
26868 merge from gomp4 branch:
26869 2015-05-28 Tom de Vries <tom@codesourcery.com>
26870
26871 PR tree-optimization/65443
26872 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26873 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26874 (try_transform_to_exit_first_loop_alt): New function.
26875 (transform_to_exit_first_loop): Use
26876 try_transform_to_exit_first_loop_alt.
26877
26878 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
26879
26880 * builtins.c (expand_builtin_atomic_compare_exchange): Call
26881 emit_cmp_and_jump_insns with the mode of target.
26882
26883 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26884
26885 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26886
26887 2015-06-04 DJ Delorie <dj@redhat.com>
26888
26889 * config/msp430/msp430.md (movsi_s): New. Special case for
26890 storing a 20-bit symbol into a 32-bit register.
26891 * config/msp430/msp430.c (msp430_subreg): Add support for it.
26892 * config/msp430/predicates.md (msp430_symbol_operand): New.
26893
26894 2015-06-04 Sriraman Tallam <tmsriram@google.com>
26895
26896 * c-family/c-common.c (noplt): New attribute.
26897 (handle_noplt_attribute): New handler.
26898 * calls.c (prepare_call_address): Check for noplt
26899 attribute.
26900 * config/i386/i386.c (ix86_expand_call): Check
26901 for noplt attribute.
26902 (ix86_nopic_noplt_attribute_p): New function.
26903 (ix86_output_call_insn): Output indirect call for non-pic
26904 no plt calls.
26905 * doc/extend.texi (noplt): Document new attribute.
26906 * doc/invoke.texi: Document new attribute.
26907
26908 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
26909
26910 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26911 real.h, and fixed-value.h when included in host source files.
26912 * double-int.h: Remove redundant #includes listed above.
26913 * fixed-value.h: Likewise.
26914 * real.h: Likewise.
26915 * wide-int.h: Likewise.
26916 * inchash.h: Likewise.
26917 * rtl.h: Add some include files When included from a generator file.
26918 * target.h: Remove wide-int.h and insn-modes.h from the include list.
26919 * internal-fn.h: Don't include coretypes.h.
26920 * alias.c: Adjust includes for restructured coretypes.h.
26921 * asan.c: Likewise.
26922 * attribs.c: Likewise.
26923 * auto-inc-dec.c: Likewise.
26924 * auto-profile.c: Likewise.
26925 * bb-reorder.c: Likewise.
26926 * bt-load.c: Likewise.
26927 * builtins.c: Likewise.
26928 * caller-save.c: Likewise.
26929 * calls.c: Likewise.
26930 * ccmp.c: Likewise.
26931 * cfg.c: Likewise.
26932 * cfganal.c: Likewise.
26933 * cfgbuild.c: Likewise.
26934 * cfgcleanup.c: Likewise.
26935 * cfgexpand.c: Likewise.
26936 * cfghooks.c: Likewise.
26937 * cfgloop.c: Likewise.
26938 * cfgloop.h: Likewise.
26939 * cfgloopanal.c: Likewise.
26940 * cfgloopmanip.c: Likewise.
26941 * cfgrtl.c: Likewise.
26942 * cgraph.c: Likewise.
26943 * cgraphbuild.c: Likewise.
26944 * cgraphclones.c: Likewise.
26945 * cgraphunit.c: Likewise.
26946 * cilk-common.c: Likewise.
26947 * combine-stack-adj.c: Likewise.
26948 * combine.c: Likewise.
26949 * compare-elim.c: Likewise.
26950 * convert.c: Likewise.
26951 * coverage.c: Likewise.
26952 * cppbuiltin.c: Likewise.
26953 * cprop.c: Likewise.
26954 * cse.c: Likewise.
26955 * cselib.c: Likewise.
26956 * data-streamer-in.c: Likewise.
26957 * data-streamer-out.c: Likewise.
26958 * data-streamer.c: Likewise.
26959 * dbxout.c: Likewise.
26960 * dce.c: Likewise.
26961 * ddg.c: Likewise.
26962 * debug.c: Likewise.
26963 * df-core.c: Likewise.
26964 * df-problems.c: Likewise.
26965 * df-scan.c: Likewise.
26966 * df.h: Likewise.
26967 * dfp.c: Likewise.
26968 * dojump.c: Likewise.
26969 * dominance.c: Likewise.
26970 * domwalk.c: Likewise.
26971 * double-int.c: Likewise.
26972 * dse.c: Likewise.
26973 * dumpfile.c: Likewise.
26974 * dwarf2asm.c: Likewise.
26975 * dwarf2cfi.c: Likewise.
26976 * dwarf2out.c: Likewise.
26977 * dwarf2out.h: Likewise.
26978 * emit-rtl.c: Likewise.
26979 * et-forest.c: Likewise.
26980 * except.c: Likewise.
26981 * explow.c: Likewise.
26982 * expmed.c: Likewise.
26983 * expr.c: Likewise.
26984 * final.c: Likewise.
26985 * fixed-value.c: Likewise.
26986 * fold-const.c: Likewise.
26987 * function.c: Likewise.
26988 * fwprop.c: Likewise.
26989 * gcc-plugin.h: Likewise.
26990 * gcse.c: Likewise.
26991 * generic-match-head.c: Likewise.
26992 * ggc-page.c: Likewise.
26993 * gimple-builder.c: Likewise.
26994 * gimple-expr.c: Likewise.
26995 * gimple-fold.c: Likewise.
26996 * gimple-iterator.c: Likewise.
26997 * gimple-low.c: Likewise.
26998 * gimple-match-head.c: Likewise.
26999 * gimple-pretty-print.c: Likewise.
27000 * gimple-ssa-isolate-paths.c: Likewise.
27001 * gimple-ssa-strength-reduction.c: Likewise.
27002 * gimple-streamer-in.c: Likewise.
27003 * gimple-streamer-out.c: Likewise.
27004 * gimple-streamer.h: Likewise.
27005 * gimple-walk.c: Likewise.
27006 * gimple.c: Likewise.
27007 * gimplify-me.c: Likewise.
27008 * gimplify.c: Likewise.
27009 * godump.c: Likewise.
27010 * graph.c: Likewise.
27011 * graphite-blocking.c: Likewise.
27012 * graphite-dependences.c: Likewise.
27013 * graphite-interchange.c: Likewise.
27014 * graphite-isl-ast-to-gimple.c: Likewise.
27015 * graphite-optimize-isl.c: Likewise.
27016 * graphite-poly.c: Likewise.
27017 * graphite-scop-detection.c: Likewise.
27018 * graphite-sese-to-poly.c: Likewise.
27019 * graphite.c: Likewise.
27020 * haifa-sched.c: Likewise.
27021 * hooks.h: Likewise.
27022 * hw-doloop.c: Likewise.
27023 * ifcvt.c: Likewise.
27024 * incpath.c: Likewise.
27025 * init-regs.c: Likewise.
27026 * internal-fn.c: Likewise.
27027 * ipa-chkp.c: Likewise.
27028 * ipa-comdats.c: Likewise.
27029 * ipa-cp.c: Likewise.
27030 * ipa-devirt.c: Likewise.
27031 * ipa-icf-gimple.c: Likewise.
27032 * ipa-icf.c: Likewise.
27033 * ipa-inline-analysis.c: Likewise.
27034 * ipa-inline-transform.c: Likewise.
27035 * ipa-inline.c: Likewise.
27036 * ipa-polymorphic-call.c: Likewise.
27037 * ipa-profile.c: Likewise.
27038 * ipa-prop.c: Likewise.
27039 * ipa-pure-const.c: Likewise.
27040 * ipa-ref.c: Likewise.
27041 * ipa-reference.c: Likewise.
27042 * ipa-split.c: Likewise.
27043 * ipa-utils.c: Likewise.
27044 * ipa-visibility.c: Likewise.
27045 * ipa.c: Likewise.
27046 * ira-build.c: Likewise.
27047 * ira-color.c: Likewise.
27048 * ira-conflicts.c: Likewise.
27049 * ira-costs.c: Likewise.
27050 * ira-emit.c: Likewise.
27051 * ira-lives.c: Likewise.
27052 * ira.c: Likewise.
27053 * jump.c: Likewise.
27054 * langhooks.c: Likewise.
27055 * lcm.c: Likewise.
27056 * loop-doloop.c: Likewise.
27057 * loop-init.c: Likewise.
27058 * loop-invariant.c: Likewise.
27059 * loop-iv.c: Likewise.
27060 * loop-unroll.c: Likewise.
27061 * lower-subreg.c: Likewise.
27062 * lra-assigns.c: Likewise.
27063 * lra-coalesce.c: Likewise.
27064 * lra-constraints.c: Likewise.
27065 * lra-eliminations.c: Likewise.
27066 * lra-lives.c: Likewise.
27067 * lra-remat.c: Likewise.
27068 * lra-spills.c: Likewise.
27069 * lra.c: Likewise.
27070 * lto-cgraph.c: Likewise.
27071 * lto-compress.c: Likewise.
27072 * lto-opts.c: Likewise.
27073 * lto-section-in.c: Likewise.
27074 * lto-section-out.c: Likewise.
27075 * lto-streamer-in.c: Likewise.
27076 * lto-streamer-out.c: Likewise.
27077 * lto-streamer.c: Likewise.
27078 * mcf.c: Likewise.
27079 * mode-switching.c: Likewise.
27080 * modulo-sched.c: Likewise.
27081 * omega.c: Likewise.
27082 * omp-low.c: Likewise.
27083 * optabs.c: Likewise.
27084 * opts-global.c: Likewise.
27085 * passes.c: Likewise.
27086 * plugin.c: Likewise.
27087 * postreload-gcse.c: Likewise.
27088 * postreload.c: Likewise.
27089 * predict.c: Likewise.
27090 * print-rtl.c: Likewise.
27091 * print-tree.c: Likewise.
27092 * profile.c: Likewise.
27093 * real.c: Likewise.
27094 * realmpfr.c: Likewise.
27095 * realmpfr.h: Likewise.
27096 * recog.c: Likewise.
27097 * ree.c: Likewise.
27098 * reg-stack.c: Likewise.
27099 * regcprop.c: Likewise.
27100 * reginfo.c: Likewise.
27101 * regrename.c: Likewise.
27102 * regs.h: Likewise.
27103 * regstat.c: Likewise.
27104 * reload.c: Likewise.
27105 * reload1.c: Likewise.
27106 * reorg.c: Likewise.
27107 * resource.c: Likewise.
27108 * rtl-chkp.c: Likewise.
27109 * rtlanal.c: Likewise.
27110 * rtlhooks.c: Likewise.
27111 * sanopt.c: Likewise.
27112 * sched-deps.c: Likewise.
27113 * sched-ebb.c: Likewise.
27114 * sched-rgn.c: Likewise.
27115 * sched-vis.c: Likewise.
27116 * sdbout.c: Likewise.
27117 * sel-sched-dump.c: Likewise.
27118 * sel-sched-ir.c: Likewise.
27119 * sel-sched.c: Likewise.
27120 * sese.c: Likewise.
27121 * shrink-wrap.c: Likewise.
27122 * shrink-wrap.h: Likewise.
27123 * simplify-rtx.c: Likewise.
27124 * stack-ptr-mod.c: Likewise.
27125 * statistics.c: Likewise.
27126 * stmt.c: Likewise.
27127 * stor-layout.c: Likewise.
27128 * store-motion.c: Likewise.
27129 * stringpool.c: Likewise.
27130 * symtab.c: Likewise.
27131 * target-globals.c: Likewise.
27132 * targhooks.c: Likewise.
27133 * toplev.c: Likewise.
27134 * tracer.c: Likewise.
27135 * trans-mem.c: Likewise.
27136 * tree-affine.c: Likewise.
27137 * tree-affine.h: Likewise.
27138 * tree-browser.c: Likewise.
27139 * tree-call-cdce.c: Likewise.
27140 * tree-cfg.c: Likewise.
27141 * tree-cfgcleanup.c: Likewise.
27142 * tree-chkp-opt.c: Likewise.
27143 * tree-chkp.c: Likewise.
27144 * tree-chrec.c: Likewise.
27145 * tree-complex.c: Likewise.
27146 * tree-data-ref.c: Likewise.
27147 * tree-dfa.c: Likewise.
27148 * tree-diagnostic.c: Likewise.
27149 * tree-dump.c: Likewise.
27150 * tree-eh.c: Likewise.
27151 * tree-emutls.c: Likewise.
27152 * tree-if-conv.c: Likewise.
27153 * tree-inline.c: Likewise.
27154 * tree-into-ssa.c: Likewise.
27155 * tree-iterator.c: Likewise.
27156 * tree-loop-distribution.c: Likewise.
27157 * tree-nested.c: Likewise.
27158 * tree-nrv.c: Likewise.
27159 * tree-object-size.c: Likewise.
27160 * tree-outof-ssa.c: Likewise.
27161 * tree-parloops.c: Likewise.
27162 * tree-phinodes.c: Likewise.
27163 * tree-predcom.c: Likewise.
27164 * tree-pretty-print.c: Likewise.
27165 * tree-pretty-print.h: Likewise.
27166 * tree-profile.c: Likewise.
27167 * tree-scalar-evolution.c: Likewise.
27168 * tree-sra.c: Likewise.
27169 * tree-ssa-address.c: Likewise.
27170 * tree-ssa-alias.c: Likewise.
27171 * tree-ssa-ccp.c: Likewise.
27172 * tree-ssa-coalesce.c: Likewise.
27173 * tree-ssa-copy.c: Likewise.
27174 * tree-ssa-copyrename.c: Likewise.
27175 * tree-ssa-dce.c: Likewise.
27176 * tree-ssa-dom.c: Likewise.
27177 * tree-ssa-dse.c: Likewise.
27178 * tree-ssa-forwprop.c: Likewise.
27179 * tree-ssa-ifcombine.c: Likewise.
27180 * tree-ssa-live.c: Likewise.
27181 * tree-ssa-loop-ch.c: Likewise.
27182 * tree-ssa-loop-im.c: Likewise.
27183 * tree-ssa-loop-ivcanon.c: Likewise.
27184 * tree-ssa-loop-ivopts.c: Likewise.
27185 * tree-ssa-loop-manip.c: Likewise.
27186 * tree-ssa-loop-niter.c: Likewise.
27187 * tree-ssa-loop-prefetch.c: Likewise.
27188 * tree-ssa-loop-unswitch.c: Likewise.
27189 * tree-ssa-loop.c: Likewise.
27190 * tree-ssa-loop.h: Likewise.
27191 * tree-ssa-math-opts.c: Likewise.
27192 * tree-ssa-operands.c: Likewise.
27193 * tree-ssa-phiopt.c: Likewise.
27194 * tree-ssa-phiprop.c: Likewise.
27195 * tree-ssa-pre.c: Likewise.
27196 * tree-ssa-propagate.c: Likewise.
27197 * tree-ssa-reassoc.c: Likewise.
27198 * tree-ssa-sccvn.c: Likewise.
27199 * tree-ssa-scopedtables.c: Likewise.
27200 * tree-ssa-sink.c: Likewise.
27201 * tree-ssa-strlen.c: Likewise.
27202 * tree-ssa-structalias.c: Likewise.
27203 * tree-ssa-tail-merge.c: Likewise.
27204 * tree-ssa-ter.c: Likewise.
27205 * tree-ssa-threadedge.c: Likewise.
27206 * tree-ssa-threadupdate.c: Likewise.
27207 * tree-ssa-uncprop.c: Likewise.
27208 * tree-ssa-uninit.c: Likewise.
27209 * tree-ssa.c: Likewise.
27210 * tree-ssanames.c: Likewise.
27211 * tree-stdarg.c: Likewise.
27212 * tree-streamer-in.c: Likewise.
27213 * tree-streamer-out.c: Likewise.
27214 * tree-streamer.c: Likewise.
27215 * tree-switch-conversion.c: Likewise.
27216 * tree-tailcall.c: Likewise.
27217 * tree-vect-data-refs.c: Likewise.
27218 * tree-vect-generic.c: Likewise.
27219 * tree-vect-loop-manip.c: Likewise.
27220 * tree-vect-loop.c: Likewise.
27221 * tree-vect-patterns.c: Likewise.
27222 * tree-vect-slp.c: Likewise.
27223 * tree-vect-stmts.c: Likewise.
27224 * tree-vectorizer.c: Likewise.
27225 * tree-vrp.c: Likewise.
27226 * tree.c: Likewise.
27227 * tsan.c: Likewise.
27228 * ubsan.c: Likewise.
27229 * valtrack.c: Likewise.
27230 * value-prof.c: Likewise.
27231 * var-tracking.c: Likewise.
27232 * varasm.c: Likewise.
27233 * varpool.c: Likewise.
27234 * vmsdbgout.c: Likewise.
27235 * vtable-verify.c: Likewise.
27236 * web.c: Likewise.
27237 * wide-int-print.cc: Likewise.
27238 * wide-int-print.h: Likewise.
27239 * wide-int.cc: Likewise.
27240 * xcoffout.c: Likewise.
27241 * config/aarch64/aarch64-builtins.c: Likewise.
27242 * config/aarch64/aarch64.c: Likewise.
27243 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27244 * config/alpha/alpha.c: Likewise.
27245 * config/arc/arc.c: Likewise.
27246 * config/arm/aarch-common.c: Likewise.
27247 * config/arm/arm-builtins.c: Likewise.
27248 * config/arm/arm-c.c: Likewise.
27249 * config/arm/arm.c: Likewise.
27250 * config/avr/avr-c.c: Likewise.
27251 * config/avr/avr-log.c: Likewise.
27252 * config/avr/avr.c: Likewise.
27253 * config/bfin/bfin.c: Likewise.
27254 * config/c6x/c6x.c: Likewise.
27255 * config/cr16/cr16.c: Likewise.
27256 * config/cris/cris.c: Likewise.
27257 * config/darwin-c.c: Likewise.
27258 * config/darwin.c: Likewise.
27259 * config/default-c.c: Likewise.
27260 * config/epiphany/epiphany.c: Likewise.
27261 * config/epiphany/mode-switch-use.c: Likewise.
27262 * config/epiphany/resolve-sw-modes.c: Likewise.
27263 * config/fr30/fr30.c: Likewise.
27264 * config/frv/frv.c: Likewise.
27265 * config/ft32/ft32.c: Likewise.
27266 * config/glibc-c.c: Likewise.
27267 * config/h8300/h8300.c: Likewise.
27268 * config/i386/i386-c.c: Likewise.
27269 * config/i386/i386.c: Likewise.
27270 * config/i386/msformat-c.c: Likewise.
27271 * config/i386/winnt-cxx.c: Likewise.
27272 * config/i386/winnt-stubs.c: Likewise.
27273 * config/i386/winnt.c: Likewise.
27274 * config/ia64/ia64-c.c: Likewise.
27275 * config/ia64/ia64.c: Likewise.
27276 * config/iq2000/iq2000.c: Likewise.
27277 * config/lm32/lm32.c: Likewise.
27278 * config/m32c/m32c-pragma.c: Likewise.
27279 * config/m32c/m32c.c: Likewise.
27280 * config/m32r/m32r.c: Likewise.
27281 * config/m68k/m68k.c: Likewise.
27282 * config/mcore/mcore.c: Likewise.
27283 * config/mep/mep-pragma.c: Likewise.
27284 * config/mep/mep.c: Likewise.
27285 * config/microblaze/microblaze-c.c: Likewise.
27286 * config/microblaze/microblaze.c: Likewise.
27287 * config/mips/mips.c: Likewise.
27288 * config/mmix/mmix.c: Likewise.
27289 * config/mn10300/mn10300.c: Likewise.
27290 * config/moxie/moxie.c: Likewise.
27291 * config/msp430/msp430-c.c: Likewise.
27292 * config/msp430/msp430.c: Likewise.
27293 * config/nds32/nds32-cost.c: Likewise.
27294 * config/nds32/nds32-fp-as-gp.c: Likewise.
27295 * config/nds32/nds32-intrinsic.c: Likewise.
27296 * config/nds32/nds32-isr.c: Likewise.
27297 * config/nds32/nds32-md-auxiliary.c: Likewise.
27298 * config/nds32/nds32-memory-manipulation.c: Likewise.
27299 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27300 * config/nds32/nds32-predicates.c: Likewise.
27301 * config/nds32/nds32.c: Likewise.
27302 * config/nios2/nios2.c: Likewise.
27303 * config/nvptx/nvptx.c: Likewise.
27304 * config/pa/pa.c: Likewise.
27305 * config/pdp11/pdp11.c: Likewise.
27306 * config/rl78/rl78-c.c: Likewise.
27307 * config/rl78/rl78.c: Likewise.
27308 * config/rs6000/rs6000-c.c: Likewise.
27309 * config/rs6000/rs6000.c: Likewise.
27310 * config/rx/rx.c: Likewise.
27311 * config/s390/s390-c.c: Likewise.
27312 * config/s390/s390.c: Likewise.
27313 * config/sh/sh-c.c: Likewise.
27314 * config/sh/sh-mem.cc: Likewise.
27315 * config/sh/sh.c: Likewise.
27316 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27317 * config/sh/sh_treg_combine.cc: Likewise.
27318 * config/sol2-c.c: Likewise.
27319 * config/sol2-cxx.c: Likewise.
27320 * config/sol2-stubs.c: Likewise.
27321 * config/sol2.c: Likewise.
27322 * config/sparc/sparc-c.c: Likewise.
27323 * config/sparc/sparc.c: Likewise.
27324 * config/spu/spu-c.c: Likewise.
27325 * config/spu/spu.c: Likewise.
27326 * config/stormy16/stormy16.c: Likewise.
27327 * config/tilegx/mul-tables.c: Likewise.
27328 * config/tilegx/tilegx-c.c: Likewise.
27329 * config/tilegx/tilegx.c: Likewise.
27330 * config/tilepro/mul-tables.c: Likewise.
27331 * config/tilepro/tilepro-c.c: Likewise.
27332 * config/tilepro/tilepro.c: Likewise.
27333 * config/v850/v850-c.c: Likewise.
27334 * config/v850/v850.c: Likewise.
27335 * config/vax/vax.c: Likewise.
27336 * config/visium/visium.c: Likewise.
27337 * config/vms/vms-c.c: Likewise.
27338 * config/vms/vms.c: Likewise.
27339 * config/vxworks.c: Likewise.
27340 * config/winnt-c.c: Likewise.
27341 * config/xtensa/xtensa.c: Likewise.
27342 * common/config/bfin/bfin-common.c: Likewise.
27343
27344 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
27345
27346 * tree.h (tree_code_for_canonical_type_merging): New function.
27347 * tree.c (gimple_canonical_types_compatible_p): Use
27348 tree_code_for_canonical_type_merging..
27349
27350 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27351
27352 PR c++/66192
27353 PR target/66200
27354 * doc/tm.texi: Regenerate.
27355 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27356 * target.def (TARGET_RELAXED_ORDERING): Likewise.
27357 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27358 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27359 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27360 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27361 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27362 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27363 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27364
27365 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27366
27367 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27368 register fma steering pass.
27369 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27370 AARCH64_TUNE_FMA_STEERING.
27371
27372 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
27373
27374 * tree.c (verify_type_variant): Verify that type and variant is
27375 compatible.
27376 (gimple_canonical_types_compatible_p): Look for main variants.
27377
27378 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27379
27380 * config.gcc (powerpc*-*-*): Add support for a new configure
27381 option --with-advance-toolchain=<xxx> which overrides using the
27382 default header files, libraries and dynamic linker.
27383
27384 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27385 specs to support the configure --with-advance-toolchain=<xxx>
27386 option.
27387 (INCLUDE_EXTRA_SPEC): Likewise.
27388 (LINK_OS_EXTRA_SPEC32): Likewise.
27389 (LINK_OK_EXTRA_SPEC64): Likewise.
27390 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27391 (DYNAMIC_LINKER_PREFIX): Likewise.
27392 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27393 toolchain support.
27394 (GLIBC_DYNAMIC_LINKER32): Likewise.
27395 (GLIBC_DYNAMIC_LINKER64): Likewise.
27396 (LINK_OS_LINUX_SPEC32): Likewise.
27397 (LINK_OS_LINUX_SPEC64): Likewise.
27398
27399 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27400 configuration option.
27401
27402 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
27403
27404 PR target/66275
27405 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27406 to determine current function ABI.
27407 (ix86_function_value_regno_p): Ditto.
27408
27409 2015-06-03 Martin Liska <mliska@suse.cz>
27410
27411 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27412 * bitmap.h (struct bitmap_usage): Likewise.
27413 * ggc-common.c (struct ggc_usage): Likewise.
27414 * mem-stats.h (struct mem_location): Likewise.
27415 (struct mem_usage): Likewise.
27416 * vec.c (struct vec_usage): Likewise.
27417
27418 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
27419
27420 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27421 -Bsymbolic.
27422
27423 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
27424
27425 * doc/plugins.texi (enum plugin_event): New event.
27426 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27427 and PLUGIN_FINISH_FUNCTION.
27428 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27429 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27430
27431 2015-06-03 Richard Biener <rguenther@suse.de>
27432
27433 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27434 compute GROUP_GAP for the first element.
27435 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27436 on in-group gaps.
27437
27438 2015-06-03 Nick Clifton <nickc@redhat.com>
27439
27440 * config/rl78/rl78-real.md: Add peepholes to avoid a register
27441 copy when calling a function.
27442 * config/rl78/rl78.c (need_to_save): Do not push the frame
27443 pointer in an interrupt handler prologue if it is never used.
27444
27445 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27446
27447 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27448
27449 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27450
27451 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27452 reference when cloning alias node.
27453
27454 2015-06-03 Martin Liska <mliska@suse.cz>
27455
27456 * alloc-pool.h (struct pool_usage): Correct space padding.
27457 * ggc-page.c (ggc_print_statistics): Align columns in a report.
27458 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27459 * tree.c (dump_tree_statistics): Align columns in a report.
27460
27461 2015-06-03 Martin Liska <mliska@suse.cz>
27462
27463 * alloc-pool.c (allocate_pool_descriptor): Remove.
27464 (struct pool_output_info): Likewise.
27465 (print_alloc_pool_statistics): Likewise.
27466 (dump_alloc_pool_statistics): Likewise.
27467 * alloc-pool.h (struct pool_usage): New struct.
27468 (pool_allocator::initialize): Change usage of memory statistics
27469 to a new interface.
27470 (pool_allocator::release): Likewise.
27471 (pool_allocator::allocate): Likewise.
27472 (pool_allocator::remove): Likewise.
27473 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27474 for a pool allocator.
27475 * mem-stats.h (struct mem_location): Add new ctor.
27476 (struct mem_usage): Add counter for number of
27477 instances.
27478 (mem_alloc_description::register_descriptor): New overload of
27479 * mem-stats.h (mem_location::to_string): New function.
27480 * bitmap.h (struct bitmap_usage): Use this new function.
27481 * ggc-common.c (struct ggc_usage): Likewise.
27482 the function.
27483
27484 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27485
27486 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27487 of GCC_INSN_FLAGS_H block.
27488
27489 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
27490
27491 * explow.c (plus_constant): Update check after force_const_mem call
27492 to see if the value returned is not a NULL_RTX.
27493
27494 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27495
27496 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27497 remove instumentation thunks calling reachable functions.
27498 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27499 * lto/lto-partition.c (privatize_symbol_name_1): New.
27500 (privatize_symbol_name): Privatize both decl and orig_decl
27501 names for instrumented functions.
27502 * cgraph.c (cgraph_node::verify_node): Add transparent
27503 alias chain check for instrumented node.
27504
27505 2015-06-03 Marek Polacek <polacek@redhat.com>
27506
27507 PR c/64223
27508 PR c/29358
27509 * tree.c (attribute_value_equal): Handle attribute format.
27510 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27511
27512 2015-06-03 Richard Biener <rguenther@suse.de>
27513
27514 PR tree-optimization/63916
27515 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27516 Forward-propagate non-invariant addresses by splicing their
27517 reference ops if the result isn't going to be used by PRE.
27518 (vn_reference_lookup_3): Remove pointless assert.
27519
27520 2015-06-03 Richard Biener <rguenther@suse.de>
27521
27522 PR tree-optimization/66375
27523 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27524 add to the evolution before following SSA edges.
27525
27526 2015-06-03 Bin Cheng <bin.cheng@arm.com>
27527
27528 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27529 (dump_use, dump_cand, find_induction_variables): Pass new argument
27530 to dump_iv.
27531 (record_use): Preserve the ssa name information in IV.
27532
27533 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27534
27535 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27536 NO_MODE_TEST.
27537 (add_mode_tests): Don't add mode tests if the predicate only
27538 accepts scalar constant integers. Otherwise, allow the mode
27539 of "op" to be VOIDmode if the predicate does accept such integers.
27540
27541 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
27542
27543 PR target/66258
27544 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27545 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27546 (aarch64_secondary_reload): Likewise
27547 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27548 to !TARGET_FLOAT.
27549 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27550 Likewise.
27551
27552 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
27553 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27554
27555 PR target/65768
27556 * cprop.c (try_replace_reg): Check cost of constants before propagating.
27557
27558 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27559
27560 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27561 provide access to the IBM extended double floating point mode if
27562 long double is IEEE 128-bit floating point.
27563 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27564 point if long double is the IBM extended double type.
27565
27566 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27567 enable adding IEEE 128-bit floating point support.
27568 (-mfloat128-software): Likewise.
27569 (-mfloat128-sw): Likewise.
27570
27571 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27572 128-bit floating point types to occupy any register if
27573 -mlong-double-64. Do not allow use of IFmode/KFmode unless
27574 -mfloat128-software is enabled.
27575 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27576 support.
27577 (rs6000_option_override_internal): Add -mfloat128-* support.
27578 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27579
27580 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27581 and float128 type nodes.
27582 (ieee128_float_type_node): Likewise.
27583 (ibm128_float_type_node): Likewise.
27584
27585 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27586
27587 PR target/66136
27588 * config/aarch64/geniterators.sh: Rewrite in awk.
27589
27590 2015-06-02 Martin Liska <mliska@suse.cz>
27591
27592 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27593 values to avoid -Wmaybe-uninitialized errors.
27594
27595 2015-06-02 Richard Biener <rguenther@suse.de>
27596
27597 PR debug/65549
27598 * dwarf2out.c (lookup_context_die): New function.
27599 (resolve_addr): Avoid forcing a full DIE for the
27600 target of a DW_TAG_GNU_call_site during late compilation.
27601 Instead create a stub DIE without a type if we have a
27602 context DIE present.
27603
27604 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
27605
27606 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27607
27608 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27609
27610 PR tree-optimization/48052
27611 * cfgloop.h (struct control_iv): New.
27612 (struct loop): New field control_ivs.
27613 * tree-ssa-loop-niter.c : Include "stor-layout.h".
27614 (number_of_iterations_lt): Set no_overflow information.
27615 (number_of_iterations_exit): Init control iv in niter struct.
27616 (record_control_iv): New.
27617 (estimate_numbers_of_iterations_loop): Call record_control_iv.
27618 (loop_exits_before_overflow): New. Interface factored out of
27619 scev_probably_wraps_p.
27620 (scev_probably_wraps_p): Factor loop niter related code into
27621 loop_exits_before_overflow.
27622 (free_numbers_of_iterations_estimates_loop): Free control ivs.
27623 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27624
27625 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
27626
27627 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27628 the target doesn't belong to the current function.
27629
27630 2015-06-02 Marek Polacek <polacek@redhat.com>
27631
27632 PR middle-end/66345
27633 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27634 get_maxval_strlen does not produce an INTEGER_CST.
27635
27636 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
27637
27638 * config/arc/constraints.md: Use lower-case names in match_code.
27639 * config/mmix/constraints.md: Likewise.
27640
27641 2015-06-02 Richard Biener <rguenther@suse.de>
27642
27643 PR tree-optimization/65961
27644 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27645 check and clarify dump message.
27646 (vect_build_slp_tree): If all children are built up from scalars
27647 build up the parent from scalars instead.
27648 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27649
27650 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
27651
27652 PR other/65366
27653 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
27654 instead of print ... .
27655
27656 2015-06-02 Alan Modra <amodra@gmail.com>
27657
27658 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
27659 2014-08-11 change.
27660
27661 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27662
27663 PR tree-optimization/52563
27664 PR tree-optimization/62173
27665 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
27666 (alloc_iv, set_iv): New parameter.
27667 (determine_biv_step): Delete.
27668 (find_bivs): Inline original determine_biv_step. Pass new
27669 argument to set_iv.
27670 (idx_find_step): Use no_overflow information for conversion.
27671 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
27672 resolve_mixers handle folded_casts.
27673 (instantiate_scev_name): Change bool parameter to bool pointer.
27674 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
27675 (instantiate_array_ref, instantiate_scev_not): Ditto.
27676 (instantiate_scev_3, instantiate_scev_2): Ditto.
27677 (instantiate_scev_1, instantiate_scev_r): Ditto.
27678 (instantiate_scev_convert, ): Change parameter. Pass argument
27679 to chrec_convert_aggressive.
27680 (instantiate_scev): Change argument.
27681 (resolve_mixers): New parameter and set it.
27682 (scev_const_prop): New argument.
27683 * tree-scalar-evolution.h (resolve_mixers): New parameter.
27684 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
27685 of chrec_conert_1.
27686 (chrec_convert): New parameter. Move definition below.
27687 (chrec_convert_aggressive): New parameter and set it. Call
27688 convert_affine_scev.
27689 * tree-chrec.h (chrec_convert): New parameter.
27690 (chrec_convert_aggressive): Ditto.
27691
27692 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27693
27694 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27695 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27696 the LHS of a no-return call if its type has variable size.
27697 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27698 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27699
27700 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
27701
27702 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27703 * config.in: Regenerate.
27704
27705 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27706
27707 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27708 consecutive accesses within outer-loop with force_vectorize
27709 for references with zero step in inner-loop.
27710
27711 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27712
27713 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27714 rather than from gcc/build directory.
27715
27716 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27717
27718 PR target/65697
27719 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27720 for __sync memory models, emit initial loads and final barriers as
27721 appropriate.
27722
27723 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27724
27725 PR target/65697
27726 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27727 (aarch64_split_atomic_op): Check for __sync memory models, emit
27728 appropriate initial loads and final barriers.
27729
27730 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27731
27732 * Makefile.in: Fix gcov dependencies that should
27733 not point to a build folder.
27734
27735 2015-06-01 Richard Biener <rguenther@suse.de>
27736
27737 Revert
27738 2015-05-29 Richard Biener <rguenther@suse.de>
27739
27740 PR tree-optimization/66314
27741 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27742 parameter that says which loop the new block belongs to.
27743 (ssa_create_duplicates): Blocks duplicated for the threaded
27744 path belong to the loop of the thread destination.
27745
27746 2015-06-01 Martin Liska <mliska@suse.cz>
27747
27748 * sched-deps.c: Include pool-alloc.h before
27749 cselib.h header file is included.
27750
27751 2015-06-01 Richard Biener <rguenther@suse.de>
27752
27753 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27754 functions.
27755
27756 2015-06-01 Martin Liska <mliska@suse.cz>
27757
27758 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27759 a function local variable.
27760
27761 2015-06-01 Martin Liska <mliska@suse.cz>
27762
27763 * alloc-pool.c (create_alloc_pool): Remove.
27764 (empty_alloc_pool): Likewise.
27765 (free_alloc_pool): Likewise.
27766 (free_alloc_pool_if_empty): Likewise.
27767 (pool_alloc): Likewise.
27768 (pool_free): Likewise.
27769 * alloc-pool.h: Remove old declarations.
27770
27771 2015-06-01 Martin Liska <mliska@suse.cz>
27772
27773 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27774 (ira_create_object): Likewise.
27775 (ira_create_allocno): Likewise.
27776 (ira_create_live_range): Likewise.
27777 (copy_live_range): Likewise.
27778 (ira_finish_live_range): Likewise.
27779 (ira_free_allocno_costs): Likewise.
27780 (finish_allocno): Likewise.
27781 (finish_allocnos): Likewise.
27782 (initiate_prefs): Likewise.
27783 (ira_create_pref): Likewise.
27784 (finish_pref): Likewise.
27785 (finish_prefs): Likewise.
27786 (initiate_copies): Likewise.
27787 (ira_create_copy): Likewise.
27788 (finish_copy): Likewise.
27789 (finish_copies): Likewise.
27790 (finish_prefs): Likewise.
27791
27792 2015-06-01 Martin Liska <mliska@suse.cz>
27793
27794 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27795 (allocate_and_init_ipcp_value): Likewise.
27796 (ipcp_lattice::add_value): Likewise.
27797 (merge_agg_lats_step): Likewise.
27798 (ipcp_driver): Likewise.
27799 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27800 (ipa_free_all_structures_after_iinln): Likewise.
27801 * ipa-prop.h: Likewise.
27802
27803 2015-06-01 Martin Liska <mliska@suse.cz>
27804
27805 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27806 pool allocator.
27807 (set_hint_predicate): Likewise.
27808 (inline_summary_alloc): Likewise.
27809 (reset_inline_edge_summary): Likewise.
27810 (reset_inline_summary): Likewise.
27811 (set_cond_stmt_execution_predicate): Likewise.
27812 (set_switch_stmt_execution_predicate): Likewise.
27813 (compute_bb_predicates): Likewise.
27814 (estimate_function_body_sizes): Likewise.
27815 (inline_free_summary): Likewise.
27816
27817 2015-06-01 Martin Liska <mliska@suse.cz>
27818
27819 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27820 (ipa_edge_duplication_hook): Likewise.
27821 (ipa_free_all_structures_after_ipa_cp): Likewise.
27822 (ipa_free_all_structures_after_iinln): Likewise.
27823
27824 2015-06-01 Martin Liska <mliska@suse.cz>
27825
27826 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27827 (ipa_profile_generate_summary): Likewise.
27828 (ipa_profile_read_summary): Likewise.
27829 (ipa_profile): Likewise.
27830
27831 2015-06-01 Martin Liska <mliska@suse.cz>
27832
27833 * tree-ssa-structalias.c (new_var_info): Use new type-based
27834 pool allocator.
27835 (new_constraint): Likewise.
27836 (init_alias_vars): Likewise.
27837 (delete_points_to_sets): Likewise.
27838
27839 2015-06-01 Martin Liska <mliska@suse.cz>
27840
27841 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27842 (free_strinfo): Likewise.
27843 (pass_strlen::execute): Likewise.
27844
27845 2015-06-01 Martin Liska <mliska@suse.cz>
27846
27847 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27848 pool allocator.
27849 (vn_reference_insert_pieces): Likewise.
27850 (vn_phi_insert): Likewise.
27851 (visit_reference_op_call): Likewise.
27852 (copy_phi): Likewise.
27853 (copy_reference): Likewise.
27854 (process_scc): Likewise.
27855 (allocate_vn_table): Likewise.
27856 (free_vn_table): Likewise.
27857
27858 2015-06-01 Martin Liska <mliska@suse.cz>
27859
27860 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27861 pool allocator.
27862 (add_repeat_to_ops_vec): Likewise.
27863 (get_ops): Likewise.
27864 (maybe_optimize_range_tests): Likewise.
27865 (init_reassoc): Likewise.
27866 (fini_reassoc): Likewise.
27867
27868 2015-06-01 Martin Liska <mliska@suse.cz>
27869
27870 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27871 pool allocator.
27872 (bitmap_set_new): Likewise.
27873 (get_or_alloc_expr_for_constant): Likewise.
27874 (get_or_alloc_expr_for): Likewise.
27875 (phi_translate_1): Likewise.
27876 (compute_avail): Likewise.
27877 (init_pre): Likewise.
27878 (fini_pre): Likewise.
27879
27880 2015-06-01 Martin Liska <mliska@suse.cz>
27881
27882 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27883 (delete_dep_node): Likewise.
27884 (create_deps_list): Likewise.
27885 (free_deps_list): Likewise.
27886 (sched_deps_init): Likewise.
27887 (sched_deps_finish): Likewise.
27888
27889 2015-06-01 Martin Liska <mliska@suse.cz>
27890
27891 * regcprop.c (free_debug_insn_changes): Use new type-based
27892 pool allocator.
27893 (replace_oldest_value_reg): Likewise.
27894 (pass_cprop_hardreg::execute): Likewise.
27895
27896 2015-06-01 Martin Liska <mliska@suse.cz>
27897
27898 * ira-build.c (initiate_cost_vectors): Use new type-based
27899 pool allocator.
27900 (ira_allocate_cost_vector): Likewise.
27901 (ira_free_cost_vector): Likewise.
27902 (finish_cost_vectors): Likewise.
27903
27904 2015-06-01 Martin Liska <mliska@suse.cz>
27905
27906 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27907 pool allocator.
27908 (free_sched_pools): Likewise.
27909 * sel-sched-ir.h (_list_alloc): Likewise.
27910 (_list_remove): Likewise.
27911
27912 2015-06-01 Martin Liska <mliska@suse.cz>
27913
27914 * stmt.c (add_case_node): Use new type-based pool allocator.
27915 (expand_case): Likewise.
27916 (expand_sjlj_dispatch_table): Likewise.
27917
27918 2015-06-01 Martin Liska <mliska@suse.cz>
27919
27920 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27921 (free_bb): Likewise.
27922 (pass_cse_reciprocals::execute): Likewise.
27923
27924 2015-06-01 Martin Liska <mliska@suse.cz>
27925
27926 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27927 (sra_deinitialize) Likewise.
27928 (create_access_1) Likewise.
27929 (build_accesses_from_assign) Likewise.
27930 (create_artificial_child_access) Likewise.
27931
27932 2015-06-01 Martin Liska <mliska@suse.cz>
27933
27934 * dse.c (get_group_info):Use new type-based pool allocator.
27935 (dse_step0) Likewise.
27936 (free_store_info) Likewise.
27937 (delete_dead_store_insn) Likewise.
27938 (free_read_records) Likewise.
27939 (record_store) Likewise.
27940 (replace_read) Likewise.
27941 (check_mem_read_rtx) Likewise.
27942 (scan_insn) Likewise.
27943 (dse_step1) Likewise.
27944 (dse_step7) Likewise.
27945
27946 2015-06-01 Martin Liska <mliska@suse.cz>
27947
27948 * df-scan.c (struct df_scan_problem_data):Use new type-based
27949 pool allocator.
27950 (df_scan_free_internal) Likewise.
27951 (df_scan_alloc) Likewise.
27952 (df_grow_reg_info) Likewise.
27953 (df_free_ref) Likewise.
27954 (df_insn_create_insn_record) Likewise.
27955 (df_mw_hardreg_chain_delete) Likewise.
27956 (df_insn_info_delete) Likewise.
27957 (df_free_collection_rec) Likewise.
27958 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27959 (df_sort_and_compress_mws) Likewise.
27960 (df_ref_create_structure) Likewise.
27961 (df_ref_record) Likewise.
27962
27963 2015-06-01 Martin Liska <mliska@suse.cz>
27964
27965 * df-problems.c (df_chain_create):Use new type-based pool allocator.
27966 (df_chain_unlink_1) Likewise.
27967 (df_chain_unlink) Likewise.
27968 (df_chain_remove_problem) Likewise.
27969 (df_chain_alloc) Likewise.
27970 (df_chain_free) Likewise.
27971 * df.h (struct dataflow) Likewise.
27972
27973 2015-06-01 Martin Liska <mliska@suse.cz>
27974
27975 * cselib.c (new_elt_list):Use new type-based pool allocator.
27976 (new_elt_loc_list) Likewise.
27977 (unchain_one_elt_list) Likewise.
27978 (unchain_one_elt_loc_list) Likewise.
27979 (unchain_one_value) Likewise.
27980 (new_cselib_val) Likewise.
27981 (cselib_init) Likewise.
27982 (cselib_finish) Likewise.
27983
27984 2015-06-01 Martin Liska <mliska@suse.cz>
27985
27986 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27987 (sh_reorg) Likewise.
27988
27989 2015-06-01 Martin Liska <mliska@suse.cz>
27990
27991 * cfg.c (initialize_original_copy_tables):Use new type-based
27992 pool allocator.
27993 (free_original_copy_tables) Likewise.
27994 (copy_original_table_clear) Likewise.
27995 (copy_original_table_set) Likewise.
27996
27997 2015-06-01 Martin Liska <mliska@suse.cz>
27998
27999 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28000 pool allocator.
28001 (asan_mem_ref_new) Likewise.
28002 (free_mem_ref_resources) Likewise.
28003
28004 2015-06-01 Martin Liska <mliska@suse.cz>
28005
28006 * var-tracking.c (variable_htab_free):Use new type-based
28007 pool allocator.
28008 (attrs_list_clear) Likewise.
28009 (attrs_list_insert) Likewise.
28010 (attrs_list_copy) Likewise.
28011 (shared_hash_unshare) Likewise.
28012 (shared_hash_destroy) Likewise.
28013 (unshare_variable) Likewise.
28014 (var_reg_delete_and_set) Likewise.
28015 (var_reg_delete) Likewise.
28016 (var_regno_delete) Likewise.
28017 (drop_overlapping_mem_locs) Likewise.
28018 (variable_union) Likewise.
28019 (insert_into_intersection) Likewise.
28020 (canonicalize_values_star) Likewise.
28021 (variable_merge_over_cur) Likewise.
28022 (dataflow_set_merge) Likewise.
28023 (remove_duplicate_values) Likewise.
28024 (variable_post_merge_new_vals) Likewise.
28025 (dataflow_set_preserve_mem_locs) Likewise.
28026 (dataflow_set_remove_mem_locs) Likewise.
28027 (variable_from_dropped) Likewise.
28028 (variable_was_changed) Likewise.
28029 (set_slot_part) Likewise.
28030 (clobber_slot_part) Likewise.
28031 (delete_slot_part) Likewise.
28032 (loc_exp_insert_dep) Likewise.
28033 (notify_dependents_of_changed_value) Likewise.
28034 (emit_notes_for_differences_1) Likewise.
28035 (vt_emit_notes) Likewise.
28036 (vt_initialize) Likewise.
28037 (vt_finalize) Likewise.
28038
28039 2015-06-01 Martin Liska <mliska@suse.cz>
28040
28041 * ira-color.c (init_update_cost_records):Use new type-based
28042 pool allocator.
28043 (get_update_cost_record) Likewise.
28044 (free_update_cost_record_list) Likewise.
28045 (finish_update_cost_records) Likewise.
28046 (initiate_cost_update) Likewise.
28047
28048 2015-06-01 Martin Liska <mliska@suse.cz>
28049
28050 * lra.c (init_insn_regs): Use new type-based pool allocator.
28051 (new_insn_reg) Likewise.
28052 (free_insn_reg) Likewise.
28053 (free_insn_regs) Likewise.
28054 (finish_insn_regs) Likewise.
28055 (init_insn_recog_data) Likewise.
28056 (init_reg_info) Likewise.
28057 (finish_reg_info) Likewise.
28058 (lra_free_copies) Likewise.
28059 (lra_create_copy) Likewise.
28060 (invalidate_insn_data_regno_info) Likewise.
28061
28062 2015-06-01 Martin Liska <mliska@suse.cz>
28063
28064 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28065 (free_live_range_list) Likewise.
28066 (create_live_range) Likewise.
28067 (copy_live_range) Likewise.
28068 (lra_merge_live_ranges) Likewise.
28069 (remove_some_program_points_and_update_live_ranges) Likewise.
28070 (lra_live_ranges_init) Likewise.
28071 (lra_live_ranges_finish) Likewise.
28072
28073 2015-06-01 Martin Liska <mliska@suse.cz>
28074
28075 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28076 (et_new_tree): Likewise.
28077 (et_free_tree): Likewise.
28078 (et_free_tree_force): Likewise.
28079 (et_free_pools): Likewise.
28080 (et_split): Likewise.
28081
28082 2015-06-01 Martin Liska <mliska@suse.cz>
28083
28084 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28085 to header file.
28086 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28087 (pool_allocator::release): Likewise.
28088 (inline pool_allocator::release_if_empty): Likewise.
28089 (inline pool_allocator::~pool_allocator): Likewise.
28090 (pool_allocator::allocate): Likewise.
28091 (pool_allocator::remove): Likewise.
28092
28093 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28094
28095 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28096 in comment.
28097
28098 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28099
28100 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28101 to fusible_ops.
28102 * config/arm/arm.c (arm_print_tune_info): Likewise.
28103 (arm_macro_fusion_p): Likewise.
28104 (arm_macro_fusion_pair_p): Likewise.
28105
28106 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28107
28108 * config/aarch64/aarch64-protos.h (tune_params): Rename
28109 fuseable_ops to fusible_ops.
28110 * config/aarch64/aarch64.c (generic_tunings): Rename
28111 fuseable_ops to fusible_ops.
28112 (cortexa53_tunings): Likewise.
28113 (cortexa57_tunings): Likewise.
28114 (thunderx_tunings): Likewise.
28115 (xgene1_tunings): Likewise.
28116 (aarch64_macro_fusion_p): Likewise.
28117 (aarch64_macro_fusion_pair_p): Likewise.
28118
28119 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28120
28121 * config/s390/driver-native.c: New file.
28122 * config/s390/x-native: New file.
28123 * config.host: Add new files for s390.
28124 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28125 and -march=native
28126 * config.gcc: Likewise.
28127 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28128 * config/s390/s390-opts.h (enum processor_type): Ditto.
28129 * config/s390/s390.c (s390_option_override): Catch unhandled
28130 PROCESSOR_NATIVE
28131
28132 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28133
28134 PR target/65527
28135 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28136 redirection for instrumented calls.
28137 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28138 (append_compiler_options): Append -fcheck-pointer-bounds.
28139 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28140 (chkp_redirect_edge): New.
28141 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28142 (chkp_redirect_edge): New.
28143
28144 2015-06-01 Richard Biener <rguenther@suse.de>
28145
28146 PR tree-optimization/66280
28147 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28148 def-use walking.
28149
28150 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28151
28152 * config/aarch64/aarch64.md
28153 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28154 logic_shift_imm.
28155
28156 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28157
28158 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28159 Remove obsolete kludge.
28160
28161 2015-06-01 Richard Biener <rguenther@suse.de>
28162
28163 * tree-ssa-reassoc.c (get_rank): Simplify.
28164
28165 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
28166
28167 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28168 * configure: Regenerated.
28169
28170 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
28171
28172 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28173 issue (add space between string literal and macro).
28174 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28175
28176 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
28177
28178 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28179 implict or explicit -fPIE or -fpie.
28180
28181 2015-05-30 Mike Frysinger <vapier@gentoo.org>
28182
28183 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28184
28185 2015-05-28 DJ Delorie <dj@redhat.com>
28186
28187 * expmed.c (extract_bit_field_1): Avoid clobbering a
28188 yet-to-be-used base/index register.
28189
28190 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
28191
28192 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28193 (alias_stats): Add num_universal.
28194 (alias_set_subset_of): Special case pointers; be ready for NULL
28195 children.
28196 (alias_sets_conflict_p): Special case pointers; be ready for NULL
28197 children.
28198 (init_alias_set_entry): Break out from ...
28199 (record_alias_subset): ... here; propagate new fields;
28200 allocate children only when really needed.
28201 (get_alias_set): Do less generous pointer globbing.
28202 (dump_alias_stats_in_alias_c): Update statistics.
28203
28204 2015-05-30 Alan Modra <amodra@gmail.com>
28205
28206 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28207 correct block for use of r12.
28208 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28209
28210 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28211
28212 PR target/66215
28213 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28214 with -mhotpatch=.
28215
28216 2015-05-29 Jakub Jelinek <jakub@redhat.com>
28217
28218 PR tree-optimization/66142
28219 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28220 virtual phis that feed themselves.
28221
28222 2015-05-29 Richard Biener <rguenther@suse.de>
28223
28224 PR tree-optimization/66314
28225 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28226 parameter that says which loop the new block belongs to.
28227 (ssa_create_duplicates): Blocks duplicated for the threaded
28228 path belong to the loop of the thread destination.
28229
28230 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28231
28232 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28233 to cleanup-saved-temps.
28234 * doc/sourcebuild.texi (Clean up generated test files): Expand
28235 introduction.
28236 (dg-keep-saved-temps): Document new proc.
28237 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28238 cleanup-saved-temps): Remove.
28239
28240 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
28241
28242 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28243 gcc_AC_CHECK_DECLS.
28244 * configure: Regenerate.
28245
28246 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28247
28248 * config/nios2/linux.h (CPP_SPEC): Define.
28249
28250 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28251
28252 * config/microblaze/linux.h (CPP_SPEC): Define.
28253
28254 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28255
28256 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28257 -pthread is specified.
28258
28259 2015-05-28 Richard Biener <rguenther@suse.de>
28260
28261 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28262 (vect_fixup_scalar_cycles_with_patterns): Likewise.
28263 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28264 after pattern recog.
28265 (vect_create_epilog_for_reduction): Properly handle reductions
28266 with patterns.
28267 (vectorizable_reduction): Likewise.
28268 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28269 reduction chains.
28270 (vect_get_constant_vectors): Create the correct number of
28271 initial values for reductions.
28272 (vect_schedule_slp_instance): Handle reduction chains that are
28273 type changing properly.
28274 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28275
28276 2015-05-28 Richard Biener <rguenther@suse.de>
28277
28278 PR tree-optimization/66142
28279 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28280 values better in memcpy destination handling. Handle non-aliasing
28281 we discover here.
28282
28283 2015-05-28 Lawrence Velázquez <vq@larryv.me>
28284
28285 PR target/63810
28286 * config/darwin-c.c (version_components): New global enum.
28287 (parse_version, version_as_legacy_macro)
28288 (version_as_modern_macro, macosx_version_as_macro): New functions.
28289 (version_as_macro): Remove.
28290 (darwin_cpp_builtins): Use new function.
28291
28292 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
28293
28294 * builtins.c (expand_builtin_acc_on_device): Mark parameters
28295 with ATTRIBUTE_UNUSED.
28296
28297 2015-05-28 Julian Brown <julian@codesourcery.com>
28298
28299 PR libgomp/65742
28300
28301 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28302 sequence for !ACCEL_COMPILER.
28303
28304 2015-05-28 Nick Clifton <nickc@redhat.com>
28305
28306 * config/rx/rx.c (push_regs): New function. Extracts code from...
28307 (rx_expand_prologue): ... here. Use push_regs to push even small
28308 spans of registers.
28309 (pop_regs): New function.
28310 (rx_expand_epilogue): Use pop_regs to pop even small spans of
28311 registers.
28312
28313 2015-05-28 Richard Biener <rguenther@suse.de>
28314
28315 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28316 member.
28317 (SLP_INSTANCE_BODY_COST_VEC): Remove.
28318 (vect_update_slp_costs_according_to_vf): Likewise.
28319 (vect_slp_analyze_operations): Update prototype.
28320 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28321 vect_update_slp_costs_according_to_vf, adjust.
28322 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28323 (vect_analyze_slp_cost_1): Likewise.
28324 (vect_analyze_slp_cost): Likewise. Properly deal with
28325 widening reduction ops. Commit body costs.
28326 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
28327 cost for loops from here.
28328 (vect_slp_analyze_operations): But do it from here when
28329 the vectorization factor is known and stmts are analyzed.
28330 (vect_bb_vectorization_profitable_p): Simplify.
28331 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28332 (vect_update_slp_costs_according_to_vf): Remove.
28333
28334 2015-05-27 Magnus Granberg <zorry@gentoo.org>
28335 H.J. Lu <hongjiu.lu@intel.com>
28336
28337 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28338 (BUILD_CFLAGS): Likewise.
28339 (BUILD_CXXFLAGS): Likewise.
28340 (LINKER): Add @NO_PIE_FLAG@.
28341 (BUILD_LDFLAGS): Likewise.
28342 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28343 --enable-default-pie.
28344 * common.opt (fPIE): Initialize to -1.
28345 (fpie): Likewise.
28346 (no-pie): New option.
28347 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28348 * configure.ac: Add --enable-default-pie.
28349 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
28350 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
28351 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
28352 * gcc.c (NO_PIE_SPEC): New.
28353 (PIE_SPEC): Likewise.
28354 (NO_FPIE1_SPEC): Likewise.
28355 (FPIE1_SPEC): Likewise.
28356 (NO_FPIE2_SPEC): Likewise.
28357 (FPIE2_SPEC): Likewise.
28358 (NO_FPIE2_SPEC): Likewise.
28359 (FPIE_SPEC): Likewise.
28360 (NO_FPIE_SPEC): Likewise.
28361 (NO_FPIC1_SPEC): Likewise.
28362 (FPIC1_SPEC): Likewise.
28363 (NO_FPIC2_SPEC): Likewise.
28364 (FPIC2_SPEC): Likewise.
28365 (NO_FPIC2_SPEC): Likewise.
28366 (FPIC_SPEC): Likewise.
28367 (NO_FPIC_SPEC): Likewise.
28368 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28369 (FPIE1_OR_FPIC1_SPEC): Likewise.
28370 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28371 (FPIE2_OR_FPIC2_SPEC): Likewise.
28372 (NO_FPIE_AND_FPIC_SPEC): Likewise.
28373 (FPIE_OR_FPIC_SPEC): Likewise.
28374 (LD_PIE_SPEC): Likewise.
28375 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
28376 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28377 * config/darwin.h (PIE_SPEC): Renamed to ...
28378 (DARWIN_PIE_SPEC): This.
28379 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28380 * config/darwin9.h (PIE_SPEC): Renamed to ...
28381 (DARWIN_PIE_SPEC): This.
28382 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28383 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28384 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28385 FPIE2_OR_FPIC2_SPEC.
28386 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28387 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28388 * config/sol2.h (ASM_PIC_SPEC): Likewise.
28389 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28390 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28391 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28392 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28393 * config/m32r/m32r.h (ASM_SPEC): Likewise.
28394 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28395 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28396 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28397 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28398 * config/sparc/linux.h (ASM_SPEC): Likewise.
28399 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28400 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28401 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28402 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28403 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28404 * config/sparc/sparc.h (ASM_SPEC): Likewise.
28405 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28406 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28407 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28408 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28409 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28410 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28411 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28412 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28413 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28414 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28415 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28416 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28417 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28418 * config/vax/linux.h (ASM_SPEC): Likewise.
28419 * doc/install.texi: Document --enable-default-pie.
28420 * doc/invoke.texi: Document -no-pie.
28421 * config.in: Regenerated.
28422 * configure: Likewise.
28423
28424 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28425
28426 PR rtl-optimization/66168
28427 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28428 can_move_invariant_reg.
28429
28430 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
28431
28432 PR target/66148
28433 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28434 REG_EQUAL note when doing insert.
28435
28436 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28437 instead of "%d" for 'o' operand.
28438
28439 2015-05-27 Nathan Sidwell <nathan@acm.org>
28440
28441 PR c++/66270
28442 * tree.c (build_pointer_type_for_mode): Canonical type does not
28443 inherit can_alias_all.
28444 (build_reference_type_for_mode): Likewise.
28445
28446 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
28447
28448 * expr.h (array_at_struct_end_p): Move to...
28449 (array_ref_element_size): Likewise.
28450 (component_ref_field_offset): Likewise.
28451 * tree.h (array_ref_element_size): ...here.
28452 (array_at_struct_end_p): Likewise.
28453 (component_ref_field_offset): Likewise.
28454 * expr.c (array_ref_element_size): Move to...
28455 (array_ref_low_bound): Likewise.
28456 (array_at_struct_end_p): Likewise.
28457 (array_ref_up_bound): Likewise.
28458 (component_ref_field_offset): Likewise.
28459 * tree.c (array_ref_element_size): ...here.
28460 (array_ref_low_bound): Likewise.
28461 (array_ref_up_bound): Likewise.
28462 (array_at_struct_end_p): Likewise.
28463 (component_ref_field_offset): Likewise.
28464
28465 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28466 Szabolcs Nagy <szabolcs.nagy@arm.com>
28467
28468 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28469
28470 2015-05-27 Jason Merrill <jason@redhat.com>
28471
28472 PR bootstrap/66304
28473 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28474 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28475 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28476
28477 2015-05-22 Aditya Kumar <hiraditya@msn.com>
28478
28479 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28480 is true.
28481
28482 * statistics.c (statistics_fini_pass): Print pass name.
28483
28484 2015-05-27 Richard Biener <rguenther@suse.de>
28485
28486 PR tree-optimization/66272
28487 Revert parts of
28488 2014-08-15 Richard Biener <rguenther@suse.de>
28489
28490 PR tree-optimization/62031
28491 * tree-data-ref.c (dr_analyze_indices): Do not set
28492 DR_UNCONSTRAINED_BASE.
28493 (dr_may_alias_p): All indirect accesses have to go the
28494 formerly DR_UNCONSTRAINED_BASE path.
28495 * tree-data-ref.h (struct indices): Remove
28496 unconstrained_base member.
28497 (DR_UNCONSTRAINED_BASE): Remove.
28498
28499 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
28500
28501 * dwarf2out.c: Remove block_map.
28502 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28503 (gen_lexical_block_die): Same.
28504 (dwarf2out_function_decl): Remove block_map use.
28505 (dwarf2out_c_finalize): Same.
28506 * tree-core.h (struct tree_block): Add die field.
28507 * tree.h (BLOCK_DIE): New.
28508
28509 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28510
28511 PR target/65358
28512 * expr.c (memory_load_overlap): New function.
28513 (emit_push_insn): When pushing partial args to the stack would
28514 clobber the register part load the overlapping part into a pseudo
28515 and put it into the hard reg after pushing. Change return type
28516 to bool. Add bool argument.
28517 * expr.h (emit_push_insn): Change return type to bool.
28518 Add bool argument.
28519 * calls.c (expand_call): Cancel sibcall optimization when encountering
28520 partial argument on targets with ARGS_GROW_DOWNWARD and
28521 !STACK_GROWS_DOWNWARD.
28522 (emit_library_call_value_1): Update callsite of emit_push_insn.
28523 (store_one_arg): Likewise.
28524
28525 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28526
28527 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28528
28529 2015-05-27 Martin Liska <mliska@suse.cz>
28530
28531 * Makefile.in: Add additional dependencies related to memory report
28532 enhancement.
28533 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28534 * bitmap.c (struct bitmap_descriptor_d): Remove.
28535 (struct loc): Likewise.
28536 (struct bitmap_desc_hasher): Likewise.
28537 (bitmap_desc_hasher::hash): Likewise.
28538 (bitmap_desc_hasher::equal): Likewise.
28539 (get_bitmap_descriptor): Likewise.
28540 (bitmap_register): User new memory descriptor API.
28541 (register_overhead): Likewise.
28542 (bitmap_find_bit): Register nsearches and search_iter statistics.
28543 (struct bitmap_output_info): Remove.
28544 (print_statistics): Likewise.
28545 (dump_bitmap_statistics): Use new memory descriptor.
28546 * bitmap.h (struct bitmap_usage): New class.
28547 * genmatch.c: Extend header file inclusion.
28548 * genpreds.c: Likewise.
28549 * ggc-common.c (struct ggc_usage): New class.
28550 (struct ggc_loc_desc_hasher): Remove.
28551 (ggc_loc_desc_hasher::hash): Likewise.
28552 (ggc_loc_desc_hasher::equal): Likewise.
28553 (struct ggc_ptr_hash_entry): Likewise.
28554 (struct ptr_hash_hasher): Likewise.
28555 (ptr_hash_hasher::hash): Likewise.
28556 (ptr_hash_hasher::equal): Likewise.
28557 (make_loc_descriptor): Likewise.
28558 (ggc_prune_ptr): Likewise.
28559 (dump_ggc_loc_statistics): Use new memory descriptor.
28560 (ggc_record_overhead): Likewise.
28561 (ggc_free_overhead): Likewise.
28562 (final_cmp_statistic): Remove.
28563 (cmp_statistic): Likewise.
28564 (ggc_add_statistics): Liekwise.
28565 (ggc_prune_overhead_list): Likewise.
28566 * hash-map-traits.h: New file.
28567 * hash-map.h (struct default_hashmap_traits): Move the traits to a
28568 separate header file.
28569 * hash-set.h: Pass memory statistics info to ctor.
28570 * hash-table.c (void dump_hash_table_loc_statistics): New function.
28571 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28572 (hash_table::~hash_table): Register memory release operation.
28573 (hash_table::alloc_entries): Handle memory allocation operation.
28574 (hash_table::expand): Likewise.
28575 * inchash.c (iterative_hash_hashval_t): Move implementation to header
28576 file.
28577 (iterative_hash_host_wide_int): Likewise.
28578 * inchash.h (class hash): Likewise.
28579 * mem-stats-traits.h: New file.
28580 * mem-stats.h: New file.
28581 (mem_location): Add new class.
28582 (mem_usage): Likewise.
28583 (mem_alloc_description): Likewise.
28584 * sese.c: Add new header file inclusision.
28585 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28586 and hash_set.
28587 * tree-sra.c: Add new header file inclusision.
28588 * vec.c (struct vec_descriptor): Remove.
28589 (hash_descriptor): Likewise.
28590 (struct vec_usage): Likewise.
28591 (struct ptr_hash_entry): Likewise.
28592 (hash_ptr): Likewise.
28593 (eq_ptr): Likewise.
28594 (vec_prefix::register_overhead): Use new memory descriptor API.
28595 (vec_prefix::release_overhead): Likewise.
28596 (add_statistics): Remove.
28597 (dump_vec_loc_statistics): Use new memory descriptor API.
28598 * vec.h (struct vec_prefix): Likewise.
28599 (va_heap::reserve): Likewise.
28600 (va_heap::release): Likewise.
28601 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28602
28603 2015-05-27 Richard Biener <rguenther@suse.de>
28604
28605 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28606 earlier and remove ??? comment.
28607 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28608 and got called from loop analysis bail out. Always pass the SLP
28609 node to the vectorizable_* functions.
28610 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28611 the premature SLP check here.
28612 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28613 detected SLP stmts.
28614 (vect_detect_hybrid_slp_1): Likewise.
28615
28616 2015-05-26 Jeff Law <law@redhat.com>
28617
28618 * combine.c (find_split_point): Verify that the shift count is a
28619 constant when choosing (plus (ashift ...)) as a split point.
28620
28621 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28622 No functional changes.
28623
28624 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
28625
28626 * ipa-polymorphic-call.c
28627 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28628 case when call target is already known.
28629
28630 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
28631
28632 PR target/65979
28633 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28634 take into account the case that operands[1] and operands[2]
28635 are the same register.
28636
28637 2015-05-26 Michael Matz <matz@suse.de>
28638
28639 PR middle-end/66251
28640
28641 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28642 stores.
28643 (vect_create_vectorized_demotion_stmts): Always set
28644 STMT_VINFO_VEC_STMT, also with SLP.
28645 (vectorizable_store): Handle strided group stores.
28646
28647 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28648
28649 PR target/66049
28650 * config/aarch64/aarch64.md
28651 (*adds_shift_imm_<mode>): New pattern.
28652 (*subs_shift_imm_<mode>): Likewise.
28653 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28654 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28655 (*add_uxt<mode>_shift2): Likewise.
28656 (*add_uxtsi_shift2_uxtw): Likewise.
28657 (*sub_uxt<mode>_shift2): Likewise.
28658 (*sub_uxtsi_shift2_uxtw): Likewise.
28659
28660 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
28661
28662 * config/rs6000/constraints.md (Y, U): Use match_test.
28663
28664 2015-05-26 Christian Bruel <christian.bruel@st.com>
28665
28666 PR target/52144
28667 * config/arm/arm.c (arm_option_check_internal)
28668 (arm_option_params_internal): Check opts->target_flags to set macros.
28669 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28670 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
28671 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28672 (builtin_define): Replaced with def_or_undef_macro.
28673 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28674 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
28675 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28676 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
28677 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
28678 (TARGET_ARM_FEATURE_LDREX_P)
28679 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
28680 * config/arm/arm-c.c (def_or_undef_macro): New function.
28681 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
28682
28683 2015-05-26 Christian Bruel <christian.bruel@st.com>
28684
28685 * c-common.h (builtin_define_with_int_value)
28686 (builtin_define_type_sizeof): Declare.
28687 * c-cppbuiltin.c (builtin_define_with_int_value)
28688 (builtin_define_type_sizeof): Externalize.
28689 (builtin_define_std): Cleanup declaration.
28690 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
28691 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28692 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28693 (builtin_define, builtin_assert): New macros.
28694
28695 2015-05-26 Richard Biener <rguenther@suse.de>
28696
28697 PR tree-optimization/66142
28698 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28699 MEM_REFs for the same base address.
28700
28701 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28702
28703 PR ipa/66181
28704 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28705
28706 2015-05-26 Jason Merrill <jason@redhat.com>
28707
28708 * configure.ac: Set CXXFLAGS for ISL test.
28709 * configure: Regenerate.
28710
28711 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
28712 strstr and basename.
28713 * configure: Regenerate.
28714
28715 2015-05-26 Richard Biener <rguenther@suse.de>
28716
28717 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28718 X % C -> X & (C - 1) for C being a power-of two to ...
28719 * match.pd: ... patterns.
28720
28721 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
28722
28723 * match.pd (swapped_tcc_comparison): New operator list.
28724 (-A CMP -B): New simplification.
28725 * fold-const.c (fold_comparison): Remove corresponding code.
28726
28727 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28728
28729 * caller-save.c (init_caller_save): Base temporary register numbers
28730 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28731 * cfgloopanal.c (init_set_costs): Likewise.
28732 * dojump.c (prefer_and_bit_test): Likewise.
28733 * expr.c (init_expr_target): Likewise.
28734 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28735 * lower-subreg.c (init_lower_subreg): Likewise.
28736 * postreload.c (reload_cse_regs_1): Likewise.
28737
28738 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28739
28740 * gensupport.h (compute_test_codes): Declare.
28741 * gensupport.c (compute_predicate_codes): Rename to...
28742 (compute_test_codes): ...this. Generalize error message.
28743 (process_define_predicate): Update accordingly.
28744 * genpreds.c (compute_maybe_allows): Delete.
28745 (add_constraint): Use compute_test_codes to determine whether
28746 something can accept a SUBREG, REG or MEM.
28747
28748 2015-05-26 Torvald Riegel <triegel@redhat.com>
28749
28750 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28751 'memory model' to align with C++11; fix description of memory orders;
28752 fix a few typos.
28753
28754 2015-05-26 Richard Biener <rguenther@suse.de>
28755
28756 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28757 (vect_analyze_loop_operations): ... here. Remove slp parameter,
28758 detect whether we apply SLP. Remove call to
28759 vect_update_slp_costs_according_to_vf.
28760 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28761 vect_update_slp_costs_according_to_vf from here. Dispatch
28762 to vect_slp_analyze_operations to analyze SLP stmts.
28763 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28764 unused bb_vec_info parameter, adjust assert.
28765 (vect_slp_analyze_operations): Pass in the slp instance tree
28766 instead of bb_vec_info.
28767 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28768 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28769
28770 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28771
28772 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28773 Q_REGS. Expand comment.
28774 (REG_CLASS_NAMES): Ditto.
28775 (REG_CLASS_CONTENTS): Ditto.
28776
28777 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
28778
28779 PR target/66274
28780 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28781 when LEGACY_INT_REGNO_P is processed.
28782
28783 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28784
28785 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28786
28787 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28788
28789 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28790 register if not marked dead/unused, before return.
28791
28792 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28793
28794 PR lto/66180
28795 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28796 is set; check for assembler name at LTO time.
28797 (type_in_anonymous_namespace): Remove hacks, check that all
28798 anonymous types are called "<anon>"
28799 (odr_type_p): Simplify; add check for "<anon>"
28800 (odr_subtypes_equivalent): Add odr_type_p check.
28801 * tree.c (need_assembler_name_p): Even anonymous namespace needs
28802 assembler name.
28803
28804 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28805
28806 * ipa-utils.h (method_class_type): Remove.
28807 * cgraphunit.c (walk_polymorphic_call_targets): Use
28808 TYPE_METHOD_BASETYPE.
28809 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28810 on main variants only.
28811 (method_class_type): Remove.
28812 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28813 (build_type_inheritance_graph): Likewise.
28814 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28815 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28816 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28817
28818 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28819
28820 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28821 is_typedef_decl, typedef_variant_p): Constify.
28822 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28823 is_typedef_decl, typedef_variant_p): Constify.
28824
28825 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28826
28827 * defaults.h (gen_tablejump): New function.
28828 (HAVE_tablejump): Add default value.
28829 * expr.c: Adjust.
28830 * stmt.c: Likewise.
28831
28832 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28833
28834 * defaults.h (gen_store_multiple): New function.
28835 (HAVE_store_multiple): Add default value.
28836 * expr.c (move_block_from_reg): Adjust.
28837
28838 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28839
28840 * defaults.h (gen_load_multiple): New function.
28841 (HAVE_load_multiple): Add default value.
28842 * expr.c (move_block_to_reg): Adjust.
28843
28844 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28845
28846 * defaults.h (gen_mem_signal_fence): New function.
28847 (HAVE_mem_signal_fence): Add default value.
28848 * optabs.c: Adjust.
28849
28850 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28851
28852 * defaults.h (gen_memory_barrier): New function.
28853 (HAVE_memory_barrier): Add default value.
28854 * optabs.c: Adjust.
28855
28856 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28857
28858 * defaults.h (gen_mem_thread_fence): New function.
28859 (HAVE_mem_thread_fence): Add default definition.
28860 * optabs.c: Adjust.
28861
28862 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28863
28864 * combine.c (find_split_point): Check the value of HAVE_lo_sum
28865 instead of if it is defined.
28866 (combine_simplify_rtx): Likewise.
28867 * lra-constraints.c (process_address_1): Likewise.
28868 * config/darwin.c: Adjust.
28869 * genconfig.c (main): Always define HAVE_lo_sum.
28870
28871 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28872
28873 * genmatch.c (parser::parse_operation): Reject expanding
28874 operator-list inside 'for'.
28875
28876 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28877
28878 * genmatch.c (parser::parse_for): Reject iterator if used as
28879 operator-list.
28880
28881 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28882
28883 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28884 after end of id-list.
28885
28886 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28887
28888 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28889 we do not try to compute canonical type for type that does not need
28890 alias set.
28891 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28892 FUNCITON_TYPE.
28893 * tree.h (type_with_alias_set_p): New.
28894
28895 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28896
28897 * tree.c (gimple_canonical_types_compatible_p): Do not compare
28898 function attributes.
28899 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28900
28901 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
28902
28903 * Makefile.in (check_gcc_parallelize): Delete.
28904 (lang_checks_parallelized): Update comment.
28905
28906 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
28907
28908 PR rtl-optimization/66237
28909 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28910 location of an "as_a" cast.
28911
28912 2015-05-22 Jeff Law <law@redhat.com>
28913
28914 * config/pa/pa.md (non-canonical shift-add insns): Remove.
28915 (peepholes with non-canonical RTL sources): Remove.
28916 (peepholes for indexed stores of FP regs in integer modes): Match and
28917 generate canonical RTL.
28918
28919 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28920
28921 PR tree-optimization/63387
28922 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28923 ((x ord x) & (y ord y) -> (x ord y),
28924 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28925 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28926 vectors like scalars.
28927
28928 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28929
28930 * convert.c (convert_to_integer, convert_to_vector): Include the
28931 types in the error message.
28932
28933 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28934
28935 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28936 simplifications.
28937
28938 2015-05-22 Jeff Law <law@redhat.com>
28939
28940 * config/pa/pa.md (integer_indexed_store splitters): Use
28941 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
28942 insns -- adjusting the constant 2nd operand accordingly.
28943
28944 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28945 (plus (ashift X log2) Y) if it is a split point.
28946
28947 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28948 out of hppa_legitimize_address to handle both forms of a multiply
28949 by 2, 4 or 8.
28950 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28951 Always generate the ASHIFT variant as the result is not directly
28952 used in a MEM. Update comments and refactor slightly to improve
28953 readability.
28954
28955 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28956
28957 PR target/65491
28958 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28959 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
28960 (aarch64_composite_type_p): Return false if given type and mode are
28961 for a short vector.
28962
28963 2015-05-22 Richard Biener <rguenther@suse.de>
28964
28965 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28966 member.
28967 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28968 patterns when determining whether SLP is pure.
28969 (vect_is_slp_reduction): Remove check for pattern stmts.
28970 (vect_is_simple_reduction_1): Remove dead code.
28971 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28972 (vect_get_and_check_slp_defs): Pass in the stmt number.
28973 Allow the first def in a reduction to be not a pattern stmt when
28974 the rest of the stmts def are patterns.
28975 (vect_build_slp_tree_1): Allow tcc_expression codes like
28976 SAD_EXPR and DOT_PROD_EXPR.
28977 (vect_build_slp_tree): Adjust.
28978 (vect_analyze_slp): Refactor and move BB vect error message ...
28979 (vect_slp_analyze_bb_1): ... here.
28980
28981 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
28982
28983 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28984 for CSWTCH temporary.
28985
28986 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28987
28988 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28989 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
28990 unknown unspecs.
28991
28992 2015-05-22 Richard Biener <rguenther@suse.de>
28993
28994 PR tree-optimization/66251
28995 * tree-vect-stmts.c (vectorizable_conversion): Properly
28996 set STMT_VINFO_VEC_STMT even for the SLP case.
28997
28998 2015-05-22 Marek Polacek <polacek@redhat.com>
28999
29000 * doc/extend.texi: Use @pxref instead of @xref.
29001
29002 2015-05-22 hiraditya <hiraditya@msn.com>
29003
29004 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29005 redundant if.
29006
29007 2015-05-22 Richard Biener <rguenther@suse.de>
29008
29009 PR tree-optimization/65701
29010 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29011 Move peeling cost models into one place. Peel for alignment
29012 for single loads only if an aligned load is cheaper than
29013 an unaligned load.
29014
29015 2015-05-22 Marek Polacek <polacek@redhat.com>
29016
29017 PR c/47043
29018 * doc/extend.texi (Enumerator Attributes): New section.
29019 Document syntax of enumerator attributes.
29020
29021 2015-05-22 Richard Biener <rguenther@suse.de>
29022
29023 * tree-vect-loop.c (get_reduction_op): New function.
29024 (vect_model_reduction_cost): Use it, add reduc_index parameter.
29025 Make ready for BB reductions.
29026 (vect_create_epilog_for_reduction): Use get_reduction_op.
29027 (vectorizable_reduction): Init reduc_index to a valid value.
29028 Adjust vect_model_reduction_cost call.
29029 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29030 operand for reduction defaults. Add SAD_EXPR support.
29031 Assert we have a neutral op for SLP reductions.
29032 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29033 walking pattern stmt ops only recurse to SSA names.
29034
29035 2015-05-22 Richard Biener <rguenther@suse.de>
29036
29037 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29038 assert with guard, remove check on detected reduction.
29039 (vect_recog_sad_pattern): Likewise.
29040 (vect_recog_widen_sum_pattern): Likewise.
29041
29042 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29043
29044 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29045 __always_inline__ attribute.
29046 (vaesdq_u8): Likewise.
29047 (vaesmcq_u8): Likewise.
29048 (vaesimcq_u8): Likewise.
29049 (vsha1cq_u32): Likewise.
29050 (vsha1mq_u32): Likewise.
29051 (vsha1pq_u32): Likewise.
29052 (vsha1h_u32): Likewise.
29053 (vsha1su0q_u32): Likewise.
29054 (vsha1su1q_u32): Likewise.
29055 (vsha256hq_u32): Likewise.
29056 (vsha256h2q_u32): Likewise.
29057 (vsha256su0q_u32): Likewise.
29058 (vsha256su1q_u32): Likewise.
29059 (vmull_p64): Likewise.
29060 (vmull_high_p64): Likewise.
29061
29062 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29063
29064 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29065 preprocessor.
29066 * output.h: Likewise.
29067 * genconfig.c (main): Alwways define HAVE_peephole.
29068 * genpeep.c: Don't emit checks of HAVE_peephole.
29069
29070 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29071
29072 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29073 check HAVE_conditional_move with the preprocessor.
29074
29075 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29076
29077 * genconfig.c (main): Always define HAVE_conditional_move.
29078 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29079 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29080 is defined.
29081
29082 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29083
29084 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29085 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29086 and FRAME_POINTER_REGNUM with the preprocessor.
29087
29088 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29089
29090 * defaults.h: Add default for STACK_PUSH_CODE.
29091 * expr.c: Don't redefine STACK_PUSH_CODE.
29092 * recog.c: Likewise.
29093
29094 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29095
29096 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29097 sched-deps.c: Use if instead of preprocessor checks with
29098 STACK_GROWS_DOWNWARD.
29099
29100 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29101
29102 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29103 is defined.
29104 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29105 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29106 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29107 * doc/tm.texi: Regenerate.
29108
29109 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29110
29111 PR target/66232
29112 * config/i386/constraints.md (Bg): New constraint for GOT memory
29113 operand.
29114 * config/i386/i386.md (*call_got_x32): New pattern.
29115 (*call_value_got_x32): Likewise.
29116 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29117
29118 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29119
29120 PR tree-optimization/66233
29121 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29122 Simplify.
29123
29124 2015-05-21 Jeff Law <law@redhat.com>
29125
29126 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29127 than MULT for shadd sequences.
29128
29129 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29130
29131 * alias.c (alias_stats): New static var.
29132 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29133 (dump_alias_stats_in_alias_c): New function.
29134 * alias.h (dump_alias_stats_in_alias_c): Declare.
29135 * tree-ssa-alias.c (dump_alias_stats): Call it.
29136
29137 2015-05-08 Michael Matz <matz@suse.de>
29138
29139 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29140 to strided_p.
29141 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29142 (STMT_VINFO_STRIDED_P): ... this.
29143 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29144 (vect_verify_datarefs_alignment): Likewise.
29145 (vect_enhance_data_refs_alignment): Likewise.
29146 (vect_analyze_data_ref_access): Likewise.
29147 (vect_analyze_data_refs): Accept strided stores.
29148 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29149 (vect_model_load_cost): Adjust for macro rename.
29150 (vectorizable_mask_load_store): Likewise.
29151 (vectorizable_load): Likewise.
29152 (vectorizable_store): Open code strided stores.
29153
29154 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29155
29156 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29157 Document sqrt_insn.
29158
29159 2015-05-21 Richard Biener <rguenther@suse.de>
29160
29161 PR c++/66211
29162 * match.pd: Guard pattern optimzing (int)(float)int
29163 conversions to apply only on GIMPLE.
29164
29165 2015-05-21 Jeff Law <law@redhat.com>
29166
29167 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29168 multiply-accumulate/shift-add insn generation.
29169
29170 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29171
29172 PR target/54236
29173 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29174 operands[1] are the same.
29175
29176 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
29177
29178 PR middle-end/66221
29179 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29180 build_distinct_type_copy to copy bounds.
29181
29182 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
29183
29184 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29185 Change to unsigned int.
29186
29187 2015-05-20 Jeff Law <law@redhat.com>
29188
29189 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29190 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29191 (pa_shadd_constant_p): Allow constants for shadd insns rather
29192 than valid scaling constants for memory addresses.
29193 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29194 * config/pa/predicates.md (mem_shadd_operand): New predicate.
29195 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29196 (shift-add insns using ASHIFT): New patterns.
29197
29198 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
29199
29200 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29201 feasible.
29202 (fix_up_fall_thru_edges): Likewise.
29203 (fix_crossing_conditional_branches): Likewise. Promote jump targets
29204 from to rtx_insn to rtx_code_label where feasible.
29205 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29206 gen_move_insn (returned type changed to rtx_insn).
29207 * builtins.c (expand_errno_check): Fix arguments of
29208 do_compare_rtx_and_jump (now expects rtx_code_label).
29209 (expand_builtin_acc_on_device): Likewise.
29210 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29211 invert_jump (now exprects rtx_jump_insn).
29212 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29213 (construct_init_block): Use rtx_code_label.
29214 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29215 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29216 calling redirect_jump.
29217 (patch_jump_insn): Likewise.
29218 (redirect_branch_edge): Likewise.
29219 (force_nonfallthru_and_redirect): Likewise.
29220 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29221 when suitable.
29222 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29223 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29224 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29225 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29226 to store the value retured by gen_label_rtx.
29227 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29228 rtx_jump_insn.
29229 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29230 (split_branches): Fix calls of redirect_jump.
29231 * dojump.c (jumpifnot): Promote argument type from rtx to
29232 rtx_code_label.
29233 (jumpifnot_1): Likewise.
29234 (jumpif): Likewise.
29235 (jumpif_1): Likewise.
29236 (do_jump_1): Likewise.
29237 (do_jump): Likewise. Use rtx_code_label when feasible.
29238 (do_jump_by_parts_greater_rtx): Likewise.
29239 (do_jump_by_parts_zero_rtx): Likewise.
29240 (do_jump_by_parts_equality_rtx): Likewise.
29241 (do_compare_rtx_and_jump): Likewise.
29242 * dojump.h: Update function prototypes.
29243 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29244 returns rtx_insn).
29245 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29246 rtx_jump_insn.
29247 (emit_label_before): Likewise.
29248 (emit_jump_insn_after_noloc): Likewise.
29249 (emit_jump_insn_after_setloc): Likewise.
29250 (emit_jump_insn_after): Likewise
29251 (emit_jump_insn_before_setloc): Likewise.
29252 (emit_jump_insn_before): Likewise.
29253 (emit_label_before): Promote return type to rtx_code_label.
29254 (emit_label): Likewise.
29255 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29256 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29257 gen_move_insn.
29258 (emit_stack_restore): Likewise.
29259 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29260 (do_cmp_and_jump): Likewise.
29261 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29262 from rtx to rtx_code_label.
29263 (gen_move_insn_uncast): New function.
29264 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29265 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29266 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29267 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29268 invert_jump_1 and redirect_jump_1.
29269 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29270 do_compare_rtx_and_jump.
29271 (expand_addsub_overflow): Likewise.
29272 (expand_neg_overflow): Likewise.
29273 (expand_mul_overflow): Likewise.
29274 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29275 return value of gen_move_insn.
29276 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29277 * loop-doloop.c (add_test): Use rtx_code_label.
29278 (doloop_modify): Likewise.
29279 (doloop_optimize): Likewise.
29280 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29281 * lra-constraints.c (emit_spill_move): Remove cast of value returned
29282 by gen_move_insn.
29283 (inherit_reload_reg): Add cast when calling dump_insn_slim.
29284 (split_reg): Likewise.
29285 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29286 gen_move_insn.
29287 * optabs.c (expand_binop_directly): Remove casts of values returned by
29288 maybe_gen_insn.
29289 (expand_unop_direct): Likewise.
29290 (expand_abs): Likewise.
29291 (maybe_emit_unop_insn): Likewise.
29292 (maybe_gen_insn): Promote return type to rtx_insn.
29293 * optabs.h: Update prototype of maybe_gen_insn.
29294 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29295 redundant cast.
29296 * recog.c (struct peep2_insn_data): Promote type of insn field to
29297 rtx_insn.
29298 (peep2_reinit_state): Use NULL instead of NULL_RTX.
29299 (peep2_attempt): Remove casts of insn in peep2_insn_data.
29300 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29301 * recog.h (struct insn_gen_fn): Promote return types of function
29302 pointers and operator ().from rtx to rtx_insn.
29303 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29304 (fill_eager_delay_slots): Likewise.
29305 (relax_delay_slots): Likewise.
29306 (make_return_insns): Likewise.
29307 (dbr_schedule): Likewise.
29308 (optimize_skips): Likewise.
29309 (reorg_redirect_jump): Likewise.
29310 (fill_slots_from_thread): Likewise.
29311 * reorg.h: Update prototypes.
29312 * resource.c (find_dead_or_set_registers): Use dyn_cast to
29313 rtx_jump_insn instead of check. Use it's jump_target method.
29314 * rtl.h (rtx_jump_insn::jump_label): Define new method.
29315 (rtx_jump_insn::jump_target): Define new method.
29316 (rtx_jump_insn::set_jump_target): Define new method.
29317 * rtlanal.c (tablejump_p): Promote type of one local variable.
29318 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29319 (sched_analyze_insn): Likewise.
29320 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29321 (print_insn): Likewise.
29322 * stmt.c (label_rtx): Promote return type to rtx_insn.
29323 (force_label_rtx): Likewise.
29324 (jump_target_rtx): Define new function.
29325 (expand_label): Use it, get rid of one cast.
29326 (expand_naked_return): Promote rtx to rtx_code_label.
29327 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29328 (expand_case): Use rtx_code_label instread of rtx where feasible.
29329 (expand_sjlj_dispatch_table): Likewise.
29330 (emit_case_nodes): Likewise.
29331 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
29332 * store-motion.c (insert_store): Make use of new return type of
29333 gen_move_insn and remove a cast.
29334 (replace_store_insn): Likewise.
29335
29336 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
29337
29338 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29339 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29340
29341 2015-05-20 Jeff Law <law@redhat.com>
29342
29343 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29344 dispose of the jump thread path when the jump threading
29345 opportunity is cancelled.
29346
29347 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29348
29349 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29350 when printing the caret character.
29351
29352 2015-05-20 Marek Polacek <polacek@redhat.com>
29353
29354 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29355
29356 2015-05-20 Marek Polacek <polacek@redhat.com>
29357
29358 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29359 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29360 * gimple-fold.c (canonicalize_bool): Likewise.
29361 (same_bool_result_p): Likewise.
29362 * tree-if-conv.c (parse_predicate): Likewise.
29363
29364 2015-05-20 Marek Polacek <polacek@redhat.com>
29365
29366 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29367 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29368
29369 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29370
29371 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29372 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29373 values.
29374
29375 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
29376
29377 * config/mips/mips.h (micromips_globals): Declare.
29378
29379 2015-05-20 David Malcolm <dmalcolm@redhat.com>
29380
29381 * timevar.def (TV_INITIALIZE_RTL): New.
29382 * toplev.c (initialize_rtl): Use an auto_timevar to account this
29383 function's time to TV_INITIALIZE_RTL.
29384
29385 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29386
29387 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29388 gimple_build_nop calls.
29389 (chkp_find_bounds_for_elem): Likewise.
29390 (chkp_get_zero_bounds): Likewise.
29391 (chkp_get_none_bounds): Likewise.
29392 (chkp_get_bounds_by_definition): Likewise.
29393 (chkp_generate_extern_var_bounds): Likewise.
29394 (chkp_get_bounds_for_decl_addr): Likewise.
29395 (chkp_get_bounds_for_string_cst): Likewise.
29396
29397 2015-05-20 Bin Cheng <bin.cheng@arm.com>
29398
29399 PR tree-optimization/65447
29400 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29401 (dump_use, dump_uses): Support to dump sub use.
29402 (record_use): New parameters to support sub use. Remove call to
29403 dump_use.
29404 (record_sub_use, record_group_use): New functions.
29405 (compute_max_addr_offset, split_all_small_groups): New functions.
29406 (group_address_uses, rewrite_use_address): New functions.
29407 (strip_offset): New declaration.
29408 (find_interesting_uses_address): Call record_group_use.
29409 (add_candidate): New assertion.
29410 (infinite_cost_p): Move definition forward.
29411 (add_costs): Check INFTY cost and return immediately.
29412 (get_computation_cost_at): Clear setup cost and dependent bitmap
29413 for sub uses.
29414 (determine_use_iv_cost_address): Compute cost for sub uses.
29415 (rewrite_use_address_1): Rename from old rewrite_use_address.
29416 (free_loop_data): Free sub uses.
29417 (tree_ssa_iv_optimize_loop): Call group_address_uses.
29418
29419 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29420 Jim Wilson <jim.wilson@linaro.org>
29421
29422 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29423 new fields loadv and storev.
29424 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29425 Initialize loadv and storev.
29426 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29427 (cortexa53_extra_costs): Likewise.
29428 (cortexa57_extra_costs): Likewise.
29429 (xgene1_extra_costs): Likewise.
29430 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29431 rtx_costs.
29432
29433 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29434
29435 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29436 storev.
29437 (cortexa8_extra_costs): Likewise.
29438 (cortexa5_extra_costs): Likewise.
29439 (cortexa7_extra_costs): Likewise.
29440 (cortexa12_extra_costs): Likewise.
29441 (cortexa15_extra_costs): Likewise.
29442 (v7m_extra_costs): Likewise.
29443
29444 2015-05-20 Jeff Law <law@redhat.com>
29445
29446 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29447 instead of open-coded version. Also delete the jump thread created
29448 within this function.
29449
29450 2015-05-20 Alan Modra <amodra@gmail.com>
29451
29452 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29453 stack adjusting insn. Formatting.
29454 (rs6000_emit_prologue): Track stack adjusting insn, and use of
29455 r12. If possible, emit first -fsplit-stack arg pointer insn
29456 before stack adjust. Don't use r12 to save cr if split-stack.
29457
29458 2015-05-20 Alan Modra <amodra@gmail.com>
29459
29460 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29461 Define.
29462 (rs6000_supports_split_stack): New function.
29463 * config/rs6000/rs6000.c (machine_function): Add
29464 split_stack_arg_pointer.
29465 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29466 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29467 rather than virtual_incoming_args_rtx.
29468 (rs6000_va_start): Likewise.
29469 (split_stack_arg_pointer_used_p): New function.
29470 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29471 (morestack_ref): New var.
29472 (gen_add3_const, rs6000_expand_split_stack_prologue,
29473 rs6000_internal_arg_pointer, rs6000_live_on_entry,
29474 rs6000_split_stack_space_check): New functions.
29475 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29476 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29477 (UNSPECV_SPLIT_STACK_RETURN): Define.
29478 (split_stack_prologue, load_split_stack_limit,
29479 load_split_stack_limit_di, load_split_stack_limit_si,
29480 split_stack_return, split_stack_space_check): New expands and insns.
29481 * config/rs6000/rs6000-protos.h
29482 (rs6000_expand_split_stack_prologue): Declare.
29483 (rs6000_split_stack_space_check): Declare.
29484
29485 2015-05-20 Alan Modra <amodra@gmail.com>
29486
29487 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29488 (direct_return): Test vrsave_size rather than vrsave_mask.
29489 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
29490 (rs6000_emit_epilogue): Likewise.
29491
29492 2015-05-20 Alan Modra <amodra@gmail.com>
29493
29494 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29495 when not saving registers.
29496 (debug_stack_info): Adjust to omit printing unused offsets,
29497 as before.
29498 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29499 expression.
29500
29501 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29502
29503 PR c++/65835
29504 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29505 value_type to const char *.
29506
29507 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
29508
29509 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29510 to build a biarch toolchain again.
29511
29512 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29513
29514 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29515 or implicit declarations.
29516 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29517 into it.
29518 (get_odr_type): Check type has linkage before adding bases.
29519 (register_odr_type): Check that type has linkage before adding it.
29520 (type_known_to_have_no_deriavations_p): Rename to ..
29521 (type_known_to_have_no_derivations_p): This one.
29522 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29523 (type_known_to_have_no_derivations_p): This one.
29524 * ipa-polymorphic-call.c
29525 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29526 type has linkage.
29527
29528 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29529
29530 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29531 (layout_type): Use RECORD_OR_UNION_TYPE_P.
29532
29533 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29534
29535 * config/s390/s390.c (s390_vector_bool_type_p): New function.
29536 (s390_invalid_binary_op): New function.
29537 (TARGET_INVALID_BINARY_OP): Define macro.
29538
29539 2015-05-19 David Sherwood <david.sherwood@arm.com>
29540
29541 * loop-invariant.c (create_new_invariant): Don't calculate address cost
29542 if mode is not a scalar integer.
29543 (get_inv_cost): Increase computational cost for unused invariants.
29544
29545 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29546
29547 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
29548 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
29549 * config/s390/s390-builtin-types.def: New file.
29550 * config/s390/s390-builtins.def: New file.
29551 * config/s390/s390-builtins.h: New file.
29552 * config/s390/s390-c.c: New file.
29553 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29554 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29555 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29556 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29557 prototypes.
29558 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29559 Include.
29560 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29561 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29562 variable definitions.
29563 (s390_const_operand_ok): New function.
29564 (s390_expand_builtin): Rewrite.
29565 (s390_init_builtins): New function.
29566 (s390_handle_vectorbool_attribute): New function.
29567 (s390_attribute_table): Add s390_vector_bool attribute.
29568 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29569 (s390_branch_condition_mask): Generate masks for new modes.
29570 (s390_expand_vec_compare_cc): New function.
29571 (s390_mangle_type): Add mangling for vector bool types.
29572 (enum s390_builtin): Remove.
29573 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29574 efpc builtins.
29575 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29576 s390_cpu_cpp_builtins.
29577 (REGISTER_TARGET_PRAGMAS): New macro.
29578 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29579 (insn_cmp mode attribute): Add new CC modes.
29580 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29581 (lcbb): New pattern definition.
29582 * config/s390/s390intrin.h: Include vecintrin.h.
29583 * config/s390/t-s390: New file.
29584 * config/s390/vecintrin.h: New file.
29585 * config/s390/vector.md: Include vx-builtins.md.
29586 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29587 support.
29588
29589 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29590
29591 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29592 CCVFHE.
29593 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29594 (s390_select_ccmode): Likewise.
29595 (s390_canonicalize_comparison): Swap operands if necessary.
29596 (s390_expand_vec_compare_scalar): Expand DFmode compare using
29597 single element vector instructions.
29598 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29599 (s390_branch_condition_mask): Generate CC masks for the new modes.
29600 * config/s390/s390.md (v0, vf, vd): New mode attributes.
29601 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29602 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29603 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29604 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29605 (*extend<DSF:mode><BFP:mode>2): New insn definition.
29606 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29607 (extend<DSF:mode><BFP:mode>2): Turn into expander.
29608 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29609 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29610 (sqrt<mode>2): Add vector instruction.
29611
29612 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29613
29614 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29615 constraints.
29616 * config/s390/predicates.md (const0_operand, constm1_operand)
29617 (constable_operand): Accept vector operands.
29618 * config/s390/s390-modes.def: Add supported vector modes.
29619 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29620 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29621 (s390_bytemask_vector_p, s390_expand_vec_strlen)
29622 (s390_expand_vec_compare, s390_expand_vcond)
29623 (s390_expand_vec_init): Add prototypes.
29624 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29625 (s390_vector_mode_supported_p): New function.
29626 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29627 (s390_contiguous_bitmask_vector_p): New function.
29628 (s390_bytemask_vector_p): New function.
29629 (s390_split_ok_p): Vector regs don't work either.
29630 (regclass_map): Add VEC_REGS.
29631 (s390_legitimate_constant_p): Handle vector constants.
29632 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29633 (legitimate_reload_vector_constant_p): New function.
29634 (s390_preferred_reload_class): Handle CONST_VECTOR.
29635 (s390_reload_symref_address): Likewise.
29636 (s390_secondary_reload): Vector memory instructions only support
29637 short displacements. Rename reload*_nonoffmem* to reload*_la*.
29638 (s390_emit_ccraw_jump): New function.
29639 (s390_expand_vec_strlen): New function.
29640 (s390_expand_vec_compare): New function.
29641 (s390_expand_vcond): New function.
29642 (s390_expand_vec_init): New function.
29643 (s390_dwarf_frame_reg_mode): New function.
29644 (print_operand): Handle addresses with 'O' and 'R' constraints.
29645 (NR_C_MODES, constant_modes): Add vector modes.
29646 (s390_output_pool_entry): Handle vector constants.
29647 (s390_hard_regno_mode_ok): Handle vector registers.
29648 (s390_class_max_nregs): Likewise.
29649 (s390_cannot_change_mode_class): New function.
29650 (s390_invalid_arg_for_unprototyped_fn): New function.
29651 (s390_function_arg_vector): New function.
29652 (s390_function_arg_float): Remove size variable.
29653 (s390_pass_by_reference): Handle vector arguments.
29654 (s390_function_arg_advance): Likewise.
29655 (s390_function_arg): Likewise.
29656 (s390_return_in_memory): Vector values are returned in a VR if
29657 possible.
29658 (s390_function_and_libcall_value): Handle vector arguments.
29659 (s390_gimplify_va_arg): Likewise.
29660 (s390_call_saved_register_used): Consider the arguments named.
29661 (s390_conditional_register_usage): Disable v16-v31 for non-vec
29662 targets.
29663 (s390_preferred_simd_mode): New function.
29664 (s390_support_vector_misalignment): New function.
29665 (s390_vector_alignment): New function.
29666 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
29667 (TARGET_VECTOR_MODE_SUPPORTED_P)
29668 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
29669 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
29670 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
29671 (TARGET_VECTOR_ALIGNMENT): Define target macro.
29672 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
29673 (FIRST_PSEUDO_REGISTER): Increase value.
29674 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
29675 (VECTOR_REG_P): Define macros.
29676 (FIXED_REGISTERS, CALL_USED_REGISTERS)
29677 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
29678 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
29679 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
29680 Add vector registers.
29681 (CANNOT_CHANGE_MODE_CLASS): Call C function.
29682 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
29683 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
29684 memory.
29685 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
29686 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
29687 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
29688 (VR*_REGNUM): New constants.
29689 (ALL): New mode iterator.
29690 (INTALL): Remove mode iterator.
29691 Include vector.md.
29692 (movti): Implement TImode moves for VRs.
29693 Disable TImode splitter for VR targets.
29694 Implement splitting TImode GPR<->VR moves.
29695 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29696 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29697 reload<mode>_la_in, reload<mode>_la_out.
29698 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29699 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29700 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29701 (mov<mode> SF SD): Prefer lder, lde for loading.
29702 Add lrl and strl instructions.
29703 Add vector instructions.
29704 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29705 Call s390_expand_vec_strlen on z13.
29706 (*cc_to_int): Change predicate to nonimmediate_operand.
29707 (addti3): Rename to *addti3. New expander.
29708 (subti3): Rename to *subti3. New expander.
29709 * config/s390/vector.md: New file.
29710
29711 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29712
29713 * common/config/s390/s390-common.c (processor_flags_table): Add
29714 z13.
29715 * config.gcc: Add z13.
29716 * config/s390/s390-opts.h (enum processor_type): Add
29717 PROCESSOR_2964_Z13.
29718 * config/s390/s390.c (s390_adjust_priority): Check for
29719 PROCESSOR_2964_Z13.
29720 (s390_reorg): Likewise.
29721 (s390_sched_reorder): Likewise.
29722 (s390_sched_variable_issue): Likewise.
29723 (s390_loop_unroll_adjust): Likewise.
29724 (s390_option_override): Likewise. Default to -mvx when available.
29725 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29726 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29727 (TARGET_VX_ABI): Define macros.
29728 macros.
29729 (TARGET_DEFAULT): Add MASK_OPT_VX.
29730 * config/s390/s390.md ("cpu" attribute): Add z13.
29731 ("cpu_facility" attribute): Add vec.
29732 * config/s390/s390.opt (processor_type): Add z13.
29733 (mvx): New options.
29734 * doc/invoke.texi: Add z13 option for -march.
29735
29736 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29737
29738 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29739 mode check to make sure that only scalar integer values are
29740 accepted.
29741
29742 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29743
29744 * tree.c (verify_type_variant): Fix #undef.
29745 (gimple_canonical_types_compatible_p): Move here from lto.c
29746 (verify_type): Verify TYPE_CANONICAL compatibility.
29747 * tree.h (gimple_canonical_types_compatible_p): Declare.
29748
29749 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29750
29751 PR middle-end/66199
29752 * tree.h (OMP_TEAMS_COMBINED): Define.
29753 * gimplify.c (enum gimplify_omp_var_data): Add
29754 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29755 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29756 (omp_notice_variable): Accept both ORT_TEAMS
29757 and ORT_COMBINED_TEAMS. Don't recurse if
29758 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29759 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29760 GOVD_FIRSTPRIVATE.
29761 (omp_no_lastprivate): New function.
29762 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29763 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29764 notice_outer and set appropriate bits, otherwise make
29765 sure default(none) combined constructs won't complain.
29766 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29767 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29768 omp_no_lastprivate either remove the clause or turn it
29769 into OMP_CLAUSE_PRIVATE.
29770 (gimplify_omp_for): Fix up handling of implicit
29771 lastprivate or linear iterators.
29772 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29773 ORT_COMBINED_TEAMS.
29774 * omp-low.c (lower_omp_for_lastprivate): For combined
29775 for simd use fd.loop.n2 from the for rather than simd.
29776
29777 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29778
29779 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29780 instead of gen_rtx_raw_REG.
29781 (cris_expand_epilogue): Likewise.
29782 * config/microblaze/microblaze.c (microblaze_classify_address):
29783 Likewise.
29784 * config/sparc/sparc.md: Likewise.
29785
29786 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
29787
29788 * config/alpha/alpha.c (alpha_legitimize_reload_address)
29789 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29790 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29791 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29792 Use CASE_CONST_SCALAR_INT.
29793 (print_operand) <case 'M'>: Use mode_width_operand to check the
29794 value of the constant.
29795 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29796 * config/alpha/predicates.md (input_operand): Use general_operand
29797 instead of match_code as operand check.
29798 (symbolic_operand): Use match_code with subexpression digits.
29799 * config/alpha/constraints.md (Q): Ditto.
29800
29801 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29802
29803 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29804
29805 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29806
29807 * config/s390/s390.c (s390_secondary_reload): Fix check for
29808 load/store relative.
29809
29810 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29811
29812 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
29813 alternative_mask to uint64_t.
29814
29815 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29816
29817 PR tree-optimization/66187
29818 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29819 Pass TYPE_SIGN to tree_int_cst_min_precision. If
29820 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29821
29822 2015-05-19 David Malcolm <dmalcolm@redhat.com>
29823
29824 * diagnostic.c (diagnostic_report_current_module): Strengthen
29825 local "new_map" from const line_map * to
29826 const line_map_ordinary *.
29827 * genmatch.c (error_cb): Likewise for local "map".
29828 (output_line_directive): Likewise for local "map".
29829 * input.c (expand_location_1): Likewise for local "map".
29830 Pass NULL rather than &map to
29831 linemap_unwind_to_first_non_reserved_loc, since the value is never
29832 read from there, and the value written back not read from here.
29833 (is_location_from_builtin_token): Strengthen local "map" from
29834 const line_map * to const line_map_ordinary *.
29835 (dump_location_info): Strengthen locals "map" from
29836 line_map *, one to const line_map_ordinary *, the other
29837 to const line_map_macro *.
29838 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29839 const line_map * to const line_map_macro *.
29840 (maybe_unwind_expanded_macro_loc): Add a call to
29841 linemap_check_macro when writing to the "map" field of the
29842 loc_map_pair.
29843 Introduce local const line_map_ordinary * "ord_map", using it in
29844 place of "map" in the part of the function where we know we have
29845 an ordinary map. Strengthen local "m" from const line_map * to
29846 const line_map_ordinary *.
29847
29848 2015-05-19 Nick Clifton <nickc@redhat.com>
29849
29850 PR target/66156
29851 * config/msp430/msp430.md (zero_extendhisi2): Add support for
29852 separate source and destination registers.
29853
29854 2015-05-19 Richard Biener <rguenther@suse.de>
29855
29856 PR tree-optimization/66165
29857 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29858 for no load permutation.
29859
29860 PR tree-optimization/66185
29861 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29862 when building the SLP node from scalars.
29863
29864 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29865 Tristan Gingold <gingold@adacore.com>
29866
29867 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29868 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29869 (expand_stack_restore): Call record_new_stack_level.
29870 (expand_stack_save): Do not call do_pending_stack_adjust.
29871 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29872 * calls.c (expand_call): Call record_new_stack_level for alloca.
29873 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29874 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29875 (update_sjlj_context): New global function.
29876 * except.h (update_sjlj_context): Declare.
29877 * explow.c (record_new_stack_level): New global function.
29878 (allocate_dynamic_stack_space): Call record_new_stack_level.
29879 * explow.h (record_new_stack_level): Declare.
29880 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29881 * cfgrtl.c (duplicate_insn_chain): Likewise.
29882
29883 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29884
29885 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29886 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29887 STACK_GROWS_DOWNWARD as normal if.
29888 (expand_call): Likewise.
29889
29890 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
29891
29892 PR target/54236
29893 * config/sh/sh.md (*round_int_even): New insn_and_split and
29894 accompanying new unnamed split.
29895
29896 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29897
29898 * bitmap.c (bitmap_set_range): Handle count==1 specially.
29899 (bitmap_clear_range): Likewise.
29900 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29901 bitmap_set_range unconditionally.
29902 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29903 * df-scan.c (df_mark_reg): Likewise.
29904 * haifa-sched.c (setup_ref_regs): Likewise.
29905 * sched-rgn.c (update_live_1): Likewise.
29906
29907 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29908
29909 * regs.h (END_HARD_REGNO): Delete.
29910 (END_REGNO): Move to...
29911 * rtl.h: ...here.
29912 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29913 * caller-save.c (mark_set_regs): Likewise.
29914 * combine.c (move_deaths, distribute_notes): Likewise.
29915 * cse.c (invalidate, invalidate_for_call): Likewise.
29916 * df-scan.c (df_ref_record): Likewise.
29917 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29918 (record_last_reg_set_info): Likewise.
29919 * reg-stack.c (convert_regs_exit): Likewise.
29920 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29921 * resource.c (update_live_status): Likewise.
29922 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29923
29924 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29925
29926 * rtl.h (reg_info): Add an nregs field.
29927 (REG_NREGS): Use it.
29928 (SET_REGNO_RAW): Delete.
29929 (set_regno_raw): New function.
29930 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29931 (END_REGNO): Redefine in terms of REG_NREGS.
29932 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29933 SET_REGNO_RAW.
29934 * emit-rtl.c (set_mode_and_regno): Likewise.
29935 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29936 instead of SET_REGNO_RAW.
29937
29938 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29939
29940 * rtl.h (PUT_MODE_RAW): New macro.
29941 (PUT_REG_NOTE_KIND): Use it.
29942 (set_mode_and_regno): Declare.
29943 (gen_raw_REG): Change regno to "unsigned int".
29944 (gen_rtx_REG): Change "unsigned" to "unsigned int".
29945 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29946 use set_mode_and_regno to change the mode of registers.
29947 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29948 * emit-rtl.c (set_mode_and_regno): New function.
29949 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
29950 * caller-save.c (reg_save_code): Use set_mode_and_regno.
29951 * expr.c (init_expr_target): Likewise.
29952 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29953 * postreload.c (reload_cse_simplify_operands): Likewise.
29954
29955 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29956
29957 * caller-save.c (init_caller_save): Use word_mode and
29958 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29959 * expr.c (init_expr_target): Likewise.
29960 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29961 * postreload.c (reload_cse_regs_1): Likewise.
29962
29963 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29964
29965 * rtl.def (REG): Change format to "r".
29966 * rtl.h (rtunion): Remove rt_reg.
29967 (reg_info): New structure.
29968 (rtx_def): Add reg field to main union.
29969 (X0REGATTR): Delete.
29970 (REG_CHECK): New macro.
29971 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29972 * rtl.c (rtx_format): Document "r".
29973 (rtx_code_size): Handle REG specially.
29974 * gengenrtl.c (special_format): Return true for formats
29975 that include 'r'.
29976 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29977 Deal with REG_ATTRS after the field loop.
29978 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29979 * expmed.c (init_expmed): Call gen_raw_REG instead of
29980 gen_rtx_raw_REG.
29981 * expr.c (init_expr_target): Likewise.
29982 * regcprop.c (maybe_mode_change): Likewise.
29983 * varasm.c (make_decl_rtl): Likewise.
29984 * final.c (leaf_renumber_regs_insn): Return early after
29985 handling REGs.
29986 * genemit.c (gen_exp): Handle 'r' fields.
29987 * genpeep.c (match_rtx): Likewise.
29988 * gensupport.c (subst_pattern_match): Likewise.
29989 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29990 (alter_constraints, subst_dup): Likewise.
29991 * read-rtl.c (read_rtx_code): Likewise.
29992 * print-rtl.c (print_rtx): Likewise.
29993 * genrecog.c (find_operand, find_matching_operand): Likewise.
29994 (validate_pattern, match_pattern_2): Likewise.
29995 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29996 (rtx_test::regno_field): New function.
29997 (operator ==, safe_to_hoist_p, transition_parameter_type)
29998 (parameter_type_string, print_parameter_value)
29999 (print_nonbool_test, print_test): Handle new enum values.
30000 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30001 * lra-constraints.c (operands_match_p): Likewise.
30002
30003 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30004
30005 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30006 Change type of new_regno to unsigned int.
30007 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30008 new_regno to unsigned int.
30009 (df_ref_change_reg_with_loc): Remove old_regno parameter.
30010 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
30011 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30012 (SET_REGNO_RAW): Add space after ",".
30013
30014 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30015
30016 * rtl.h (REG_NREGS): New macro
30017 * alias.c (record_set): Use it.
30018 * cfgcleanup.c (mark_effect): Likewise.
30019 * combine.c (likely_spilled_retval_1): Likewise.
30020 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30021 (move_deaths, distribute_notes): Likewise.
30022 * cselib.c (cselib_record_set): Likewise.
30023 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30024 * df-scan.c (df_mark_reg): Likewise.
30025 * dse.c (look_for_hardregs): Likewise.
30026 * dwarf2out.c (reg_loc_descriptor): Likewise.
30027 (multiple_reg_loc_descriptor): Likewise.
30028 * expr.c (write_complex_part, read_complex_part): Likewise.
30029 (emit_move_complex): Likewise.
30030 * haifa-sched.c (setup_ref_regs): Likewise.
30031 * ira-lives.c (mark_hard_reg_live): Likewise.
30032 * lra.c (lra_set_insn_recog_data): Likewise.
30033 * mode-switching.c (create_pre_exit): Likewise.
30034 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30035 (reload_combine_recognize_pattern): Likewise.
30036 (reload_combine_note_use, move2add_record_mode): Likewise.
30037 (reload_cse_move2add): Likewise.
30038 * reg-stack.c (subst_stack_regs_pat): Likewise.
30039 * regcprop.c (kill_value, copy_value): Likewise.
30040 (copyprop_hardreg_forward_1): Likewise.
30041 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30042 (build_def_use): Likewise.
30043 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30044 (deps_analyze_insn): Likewise.
30045 * sched-rgn.c (check_live_1, update_live_1): Likewise.
30046 * sel-sched.c (count_occurrences_equiv): Likewise.
30047 * valtrack.c (dead_debug_insert_temp): Likewise.
30048
30049 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30050
30051 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30052 * dse.c (note_add_store): Likewise.
30053 * ira-lives.c (mark_hard_reg_dead): Likewise.
30054 * loop-invariant.c (mark_reg_store): Likewise.
30055 (mark_reg_death): Likewise.
30056 * postreload.c (reload_combine): Likewise.
30057 (reload_combine_note_store): Likewise.
30058 (reload_combine_note_use): Likewise.
30059 * recog.c (peep2_reg_dead_p): Likewise.
30060
30061 2015-05-19 Alan Modra <amodra@gmail.com>
30062
30063 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30064 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30065 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30066 unused predicates.
30067 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30068 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30069 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30070 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30071
30072 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30073
30074 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30075 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30076 (join2_loadhi): Likewise.
30077 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30078 load-load and store-stores.
30079 * config/mips/mips.opt (mload-store-pairs): New option.
30080 (TARGET_LOAD_STORE_PAIRS): New macro.
30081 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30082 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30083 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30084
30085 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30086
30087 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30088 explicit swaps.
30089 * dojump.c (do_compare_rtx_and_jump): Likewise.
30090 * expmed.c (emit_store_flag_1): Likewise.
30091 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30092 * final.c (sprint_ul): Use std::reverse for reversing a string.
30093 * fold-const.c (extract_muldiv_1): Use std::swap.
30094 * genmodes.c (emit_mode_int_n): Likewise.
30095 * ifcvt.c (dead_or_predicable): Likewise.
30096 * ira-build.c (ira_merge_live_ranges): Likewise.
30097 (swap_allocno_copy_ends_if_necessary): Likewise.
30098 * ira.c (ira_setup_alts): Likewise.
30099 * loop-iv.c (iv_analyze_expr): Likewise.
30100 (implies_p): Likewise.
30101 (canon_condition): Likewise.
30102 * lra-constraints.c (swap_operands): Likewise.
30103 * lra-lives.c (lra_merge_live_ranges): Likewise.
30104 * omega.c (swap): Remove.
30105 (bswap): Remove.
30106 (omega_unprotect_1): Use std::swap.
30107 (omega_solve_geq): Likewise.
30108 * optabs.c (expand_binop_directly): Likewise.
30109 (expand_binop): Likewise.
30110 (emit_conditional_move): Likewise.
30111 (emit_conditional_add): Likewise.
30112 * postreload.c (reload_cse_simplify_operands): Likewise.
30113 * reg-stack.c (emit_swap_insn): Likewise.
30114 (swap_to_top): Likewise.
30115 (compare_for_stack_reg): Likewise.
30116 (subst_asm_stack_regs): Likewise.
30117 * reload.c (find_reloads): Likewise.
30118 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30119 * sel-sched.c (invoke_reorder_hooks): Likewise.
30120 (create_block_for_bookkeeping): Likewise.
30121 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30122 (lambda_matrix_right_hermite): Use std::swap.
30123 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30124 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30125 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30126 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30127 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30128 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30129 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30130 * tree-vrp.c (compare_ranges): Likewise.
30131 * var-tracking.c (add_with_sets): Likewise.
30132 (vt_find_locations): Likewise.
30133
30134 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30135
30136 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30137 pie executables.
30138 (FBSD_ENDFILE_SPEC): Likewise.
30139 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30140 config/freebsd-spec.h.
30141 (ENDFILE_SPEC): Likewise.
30142
30143 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30144 Richard Henderson <rth@redhat.com>
30145
30146 PR target/57032
30147 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30148 Check for a memory location that is not a reference (using an AND)
30149 to an unaligned location here.
30150 * config/alpha/predicates.md (normal_memory_operand): Remove.
30151
30152 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
30153
30154 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30155 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30156
30157 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
30158
30159 * config/mips/mips.c (micromips_globals): New variable.
30160 (mips_set_compression_mode): Save and reinitialize target-dependent
30161 state for microMIPS.
30162
30163 2015-05-18 Martin Liska <mliska@suse.cz>
30164
30165 * dbgcnt.def: Add new counter.
30166 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30167
30168 2015-05-18 Martin Liska <mliska@suse.cz>
30169
30170 * dbgcnt.def: Sort counters.
30171 * opts.c (common_handle_option): Do not compile if
30172 -fdbg-cnt-list is enabled.
30173
30174 2015-05-18 Tom de Vries <tom@codesourcery.com>
30175
30176 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30177 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
30178 address operator to va_list operand.
30179 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30180 unconditionally.
30181 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30182 operand.
30183 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30184 * config/s390/s390.c (s390_gimplify_va_arg): Same.
30185 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30186
30187 2015-05-18 Tom de Vries <tom@codesourcery.com>
30188
30189 * tree-ssa-tail-merge.c: Fix whitespace.
30190
30191 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
30192
30193 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30194 cortex-a17, and cortex-a17.cortex-a7.
30195
30196 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
30197
30198 PR target/54236
30199 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30200
30201 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
30202
30203 PR target/66174
30204 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30205 QImode inner modes for TARGET_AVX512BW. Force mask operand
30206 to a register for AVX512F modes.
30207
30208 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30209
30210 * toplev.c (emit_debug_global_declarations): Do not output debug info
30211 when doing slim LTO objects.
30212
30213 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30214
30215 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30216 odr_types_equivalent_p): Declare.
30217 (odr_type_p): Use gcc_checking_assert.
30218 (type_in_anonymous_namespace_p) Declare.
30219 (type_with_linkage_p): Declare.
30220 * common.opt (Wlto-type-mismatch): New warning.
30221 * ipa-devirt.c (compound_type_base): New function.
30222 (odr_or_derived_type_p): New function.
30223 (odr_types_equivalent_p): New function.
30224 (add_type_duplicate): Simplify.
30225 (type_with_linkage_p): Add hack to prevent false positives on C types
30226 (type_in_anonymous_namespace_p): Likewise.
30227 * tree.c (need_assembler_name_p): Use type_with_linkage.
30228 * tree.h (type_in_anonymous_namespace_p): Remove.
30229 * doc/invoke.texi (-Wlto-type-mismatch): Document
30230
30231 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30232
30233 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30234 (verify_type): Verify STRING_FLAG.
30235
30236 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
30237
30238 PR fortran/44054
30239 * tree-pretty-print.c (percent_K_format): Replace locus pointer
30240 with accessor function.
30241 * tree-diagnostic.c (diagnostic_report_current_function): Use
30242 diagnostic_location function.
30243 (maybe_unwind_expanded_macro_loc): Likewise.
30244 (virt_loc_aware_diagnostic_finalizer): Likewise.
30245 (default_tree_printer): Replace locus pointer with accessor function.
30246 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30247 (diagnostic_set_info_translated): Initialize second location.
30248 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30249 (diagnostic_show_locus): Handle two locations. Call
30250 diagnostic_print_caret_line.
30251 (diagnostic_print_caret_line): New.
30252 (default_diagnostic_starter): Use diagnostic_location function.
30253 (diagnostic_report_diagnostic): Use diagnostic_location function.
30254 (verbatim): Do not set text.locus.
30255 * diagnostic.h (struct diagnostic_info): Remove location field.
30256 (struct diagnostic_context): Make caret_chars an array of two.
30257 (diagnostic_location): New inline.
30258 (diagnostic_expand_location): Handle two locations.
30259 (diagnostic_same_line): New inline.
30260 (diagnostic_print_caret_line): Declare.
30261 (CARET_LINE_MARGIN): New constant.
30262 * pretty-print.c (pp_printf): Do not set text.locus.
30263 (pp_verbatim): Do not set text.locus.
30264 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30265 (struct text_info): Replace locus pointer with locations
30266 array. Add accessor functions.
30267
30268 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
30269 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30270
30271 PR target/65768
30272 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30273 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30274 large constants in register instead of splitting them.
30275
30276 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
30277
30278 PR target/66140
30279 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30280 replacements in memory addresses.
30281 (get_unaligned_address): Ditto.
30282
30283 2015-05-16 James Bowman <james.bowman@ftdichip.com>
30284
30285 * config/ft32/*: New files for FT32 port.
30286 * doc/install.texi: Add FT32 information.
30287 * doc/invoke.texi: Add FT32 information.
30288 * doc/md.texi: Add FT32 information.
30289 * doc/contrib.texi: Self added.
30290
30291 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
30292
30293 PR tree-optimization/64454
30294 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30295 (-1 - A -> ~A): Remove unnecessary condition.
30296
30297 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
30298
30299 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30300 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30301 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30302
30303 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
30304
30305 * ipa-chkp.h (chkp_wrap_function): New.
30306 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30307 (chkp_wrap_function_name): New.
30308 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30309 to get wrapper name.
30310 * lto-cgraph.c: Include ipa-chkp.h.
30311 (input_cgraph_1): Avoid alias chain for wrappers.
30312
30313 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30314
30315 PR middle-end/66134
30316 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30317 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30318
30319 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30320
30321 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30322 (AARCH64_FL_SLOWMUL): Delete.
30323 (AARCH64_FL_CRC): Redefine to 1<<3.
30324 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30325
30326 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30327
30328 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30329 casting.
30330
30331 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30332
30333 * config/alpha/alpha.md (extendqidi2): Use general_operand
30334 instead of some_operand for operand[1] predicate.
30335 (extendhidi2): Ditto.
30336 (cbranchdi4): Use general_operand instead of some_operand
30337 for operand[1] and operands[2] predicates.
30338 (cstoredi4): Ditto.
30339 * config/alpha/predicates.md (some_operand): Remove unused predicate.
30340 (some_ni_operand): Ditto.
30341
30342 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30343
30344 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30345 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
30346 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30347 low part of the constant using alpha_emit_set_const_1.
30348 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30349
30350 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
30351
30352 * varasm.c (output_constant_pool_1): Pass down alignment from
30353 constant pool entry's descriptor to output_constant_pool_2.
30354 (output_object_block): Add comment prior to call to
30355 output_constant_pool_1.
30356
30357 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
30358
30359 PR rtl-optimization/65862
30360 * target.def (ira_change_pseudo_allocno_class): New hook.
30361 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30362 value of the hook.
30363 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30364 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30365 hook.
30366 * ira-costs.c (find_costs_and_classes): Call the hook and change
30367 classes when it is necessary.
30368 * doc/tm.texi: Update.
30369
30370 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
30371
30372 * config/i386/i386.md (sibcall_memory): Check that register with
30373 callee address is not also used as one of the arguments, instead
30374 of checking that it is not live after the sibcall.
30375 (sibcall_pop_memory): Ditto.
30376 (sibcall_value_memory): Ditto.
30377 (sibcall_value_pop_memory): Ditto.
30378
30379 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
30380
30381 * generic-match-head.c (types_match): Handle non-types.
30382 * gimple-match-head.c (types_match): Likewise.
30383 * match.pd: Remove unnecessary TREE_TYPE for types_match.
30384
30385 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
30386
30387 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30388 (csneg3<mode>_insn): Enable expansion of pattern.
30389
30390 2015-05-14 Nick Clifton <nickc@redhat.com>
30391
30392 * config/rl78/rl78.c (rl78_select_section): Select the correct
30393 default section based upon the category of the decl.
30394
30395 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30396
30397 PR rtl-optimization/30967
30398 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30399 destination mode for the cost of scc patterns.
30400
30401 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30402
30403 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30404 using SWIM248 mode iterator.
30405 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30406 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
30407 for operand[2] constraint.
30408 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30409
30410 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30411
30412 PR middle-end/66133
30413 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30414 make sure it is never noreturn, even when the task body does not
30415 return.
30416 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30417 right before GIMPLE_OMP_RETURN.
30418 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30419 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
30420 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30421
30422 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30423
30424 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30425 * tree-ssa-math-opts.c: Include params.h
30426 (pow_synth_sqrt_info): New struct.
30427 (representable_as_half_series_p): New function.
30428 (get_fn_chain): Likewise.
30429 (print_nested_fn): Likewise.
30430 (dump_fractional_sqrt_sequence): Likewise.
30431 (dump_integer_part): Likewise.
30432 (expand_pow_as_sqrts): Likewise.
30433 (gimple_expand_builtin_pow): Use above to attempt to expand
30434 pow as series of square roots. Removed now unused variables.
30435
30436 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30437
30438 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30439 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30440 Remove *p0 and *p1 arguments. Rewrite function.
30441 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30442 (alpha_split_const_mov): Update calls to alpha_extract_integer and
30443 alpha_emit_set_long_const.
30444 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30445 (alpha_output_mi_thunk_osf): Ditto.
30446 * config/alpha/alpha.md (movti): Do not check operands[1]
30447 for CONST_DOUBLE.
30448
30449 2015-05-13 Richard Biener <rguenther@suse.de>
30450
30451 PR tree-optimization/66129
30452 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30453 commutative.
30454 (vect_schedule_slp_instance): Fix typo.
30455
30456 2015-05-13 David Malcolm <dmalcolm@redhat.com>
30457
30458 * common.opt (fdump-internal-locations): New option.
30459 * input.c: Include diagnostic-core.h.
30460 (get_end_location): New function.
30461 (write_digit): New function.
30462 (write_digit_row): New function.
30463 (dump_location_range): New function.
30464 (dump_labelled_location_range): New function.
30465 (dump_location_info): New function.
30466 * input.h (dump_location_info): New prototype.
30467 * toplev.c (compile_file): Handle flag_dump_locations.
30468
30469 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
30470
30471 * gimple-expr.h (is_gimple_constant): Reorder.
30472 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30473
30474 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30475
30476 * combine.c (simplify_set): When generating a CC set, if the
30477 source already is in the correct mode, do not wrap it in a
30478 compare. Simplify the rest of that code.
30479
30480 2015-05-13 Richard Biener <rguenther@suse.de>
30481
30482 PR tree-optimization/66123
30483 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30484 a taken edge.
30485
30486 2015-05-13 Richard Biener <rguenther@suse.de>
30487
30488 PR middle-end/66110
30489 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30490 specially.
30491 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30492
30493 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30494
30495 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30496 * aclocal.m4: Regenerated with automake-1.11.6.
30497
30498 2015-05-13 Tom de Vries <tom@codesourcery.com>
30499
30500 PR tree-optimization/66010
30501 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30502 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30503 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
30504 and rval based on do_deref.
30505
30506 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30507
30508 PR target/65103
30509 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30510 link time constants into adress expressions and therefore set
30511 their cost to 0.
30512
30513 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30514
30515 PR target/66112
30516 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30517 Use SWI248 iterator instead of SWI.
30518 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
30519 Use eq_attr "alternative" "0" instead of match_test in
30520 length_immediate attribute computation.
30521 (*mulvhi4, *mulvhi4_1): New define_insns.
30522
30523 PR target/66112
30524 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30525 SIGNED to get precision of non-negative value.
30526
30527 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30528
30529 PR target/66048
30530 * function.c (diddle_return_value_1): Process bounds first.
30531 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30532 register.
30533
30534 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30535
30536 PR rtl-optimization/64616
30537 * loop-invariant.c (can_move_invariant_reg): New.
30538 (move_invariant_reg): Call above new function to decide whether
30539 instruction can just be moved, skipping creation of temporary
30540 register.
30541
30542 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30543
30544 PR target/pr66047.c
30545 * i386.c (ix86_function_sseregparm): Only return -1 if local function
30546 with implied regparm is called from -mno-sse function.
30547 (init_cumulative_args): Output error if ix86_function_sseregparm
30548 return -1 and SSE register would be needed.
30549 (function_arg_advance_32): Likewise.
30550 (function_arg_32): Likewise.
30551 * i386.h (ix86_args): Add decl field.
30552
30553 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30554
30555 PR ipa/65873
30556 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30557 inlines across optimization boundary.
30558
30559 2015-05-12 Jason Merrill <jason@redhat.com>
30560
30561 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30562 string literal and macro name.
30563
30564 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
30565
30566 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30567 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30568 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30569
30570 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30571
30572 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30573 (-Wmisleading-indentation): New option.
30574 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30575
30576 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
30577
30578 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30579 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30580 (alpha_extract_integer): Ditto.
30581 (alpha_legitimate_constant_p): Ditto.
30582 (alpha_split_tmode_pair): Ditto.
30583 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30584 (alpha_expand_mov): Ditto.
30585 (print_operand): Remove handling of 'H' modifier.
30586 <case 'm'>: Remove CONST_DOUBLE handling.
30587 (summarize_insn): Handle CONST_WIDE_INT.
30588 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30589 (anddi3): Ditto.
30590 (movti): Handle CONST_WIDE_INT.
30591 * config/alpha/constraints.md ('H'): Remove constraint definition.
30592 ('G'): Do not match MODE_FLOAT class.
30593 * config/alpha/predicates.md (const0_operand): Also match
30594 const_wide_int.
30595 (non_add_const_operand): Ditto.
30596 (non_zero_const_operand): Ditto.
30597 (some_operand): Ditto.
30598 (input_operand): Ditto. Handle CONST_WIDE_INT.
30599 (and_operand): Do not match const_double.
30600 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30601
30602 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
30603
30604 PR target/65697
30605 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30606 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30607 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30608 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30609 is_mm_seq_cst, is_mm_sync): New accessor functions.
30610 * builtins.c (expand_builtin_sync_operation,
30611 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30612 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30613 (get_memmodel, expand_builtin_atomic_compare_exchange,
30614 expand_builtin_atomic_load, expand_builtin_atomic_store,
30615 expand_builtin_atomic_clear): Use new accessor routines.
30616 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30617 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30618 (maybe_emit_sync_lock_test_and_set): Use new accessors and
30619 MEMMODEL_SYNC_ACQUIRE.
30620 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30621 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30622 expand_atomic_store): Use new accessors.
30623 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30624 * tsan.c (instrument_builtin_call): Update check for memory model beyond
30625 final enum to use MEMMODEL_LAST.
30626 * c-family/c-common.c: Use new accessor for memmodel_base.
30627 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30628 accessors.
30629 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30630 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30631 mem_thread_fence, *dmb): Likewise.
30632 * config/alpha/alpha.c (alpha_split_compare_and_swap,
30633 alpha_split_compare_and_swap_12): Likewise.
30634 * config/arm/arm.c (arm_expand_compare_and_swap,
30635 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30636 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30637 atomic_loaddi): Likewise.
30638 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30639 Likewise.
30640 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30641 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30642 use new accessors.
30643 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30644 atomic_store<mode>, atomic_compare_and_swap<mode>,
30645 atomic_exchange<mode>): Use new accessors.
30646 * config/mips/mips.c (mips_process_sync_loop): Likewise.
30647 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30648 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30649 rs6000_post_atomic_barrier): Add new cases.
30650 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30651 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30652 (atomic_load<mode>): Add new cases and use new accessors.
30653 (store_quadpti): Add new cases.
30654 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30655 accessors.
30656 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30657 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
30658 model, not 8.
30659
30660 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30661
30662 * ipa-devirt.c (type_with_linkage_p): New function.
30663 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
30664 type has linkage.
30665 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
30666 (can_be_name_hashed_p): Simplify.
30667 (hash_odr_name): Check that type has linkage before checking if it is
30668 anonymous.
30669 (types_same_for_odr): Likewise.
30670 (odr_name_hasher::equal): Likewise.
30671 (odr_subtypes_equivalent_p): Likewise.
30672 (warn_types_mismatch): Likewise.
30673 (get_odr_type): Likewise.
30674 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
30675 * ipa-utils.h (odr_type_p): Move offline.
30676 * tree.c (need_assembler_name_p): Fix handling of types
30677 without linkages.
30678 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
30679
30680 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30681
30682 * timevar.c (timevar_enable): Delete in favor of...
30683 (g_timer): New global.
30684 (struct timevar_def): Move to timevar.h inside class timer.
30685 (struct timevar_stack_def): Likewise.
30686 (timevars): Delete global in favor of field "m_timevars" within
30687 class timer in timevar.h
30688 (stack): Likewise, in favor of field "m_stack".
30689 (unused_stack_instances): Likewise, in favor of field
30690 "m_unused_stack_instances".
30691 (start_time): Likewise, in favor of field "m_start_time".
30692 (get_time): Eliminate check for timevar_enable.
30693 (timer::timer): New function, built from part of timevar_init.
30694 (timevar_init): Rewrite idempotency test from using
30695 "timevar_enable" bool to using dynamic allocation of "g_timer".
30696 Move rest of implementation into timer's constructor.
30697 (timevar_push_1): Rename to...
30698 (timer::push): ...this, adding "m_" prefixes to variables that
30699 are now fields of timer.
30700 (timevar_pop_1): Likewise, rename to...
30701 (timer::pop): ...this, and add "m_" prefixes.
30702 (timevar_start): Replace test for "timevar_enable" with one for
30703 "g_timer", and move bulk of implementation to...
30704 (timer::start): ...here, adding "m_" prefixes.
30705 (timevar_stop): Likewise, from here...
30706 (timer::stop): ...to here.
30707 (timevar_cond_start): Likewise, from here...
30708 (timer::cond_start): ...to here.
30709 (timevar_cond_stop): Likewise, from here...
30710 (timer::cond_stop): ...to here.
30711 (validate_phases): Rename to...
30712 (timer::validate_phases): ...this, and add "m_" prefixes. Make
30713 locals "total" and "tv" const.
30714 (timevar_print): Rename to...
30715 (timer::print): ...this, and add "m_" prefixes. Make locals
30716 "total" and "tv" const. Eliminate test for timevar_enable.
30717 * timevar.h (timevar_enable): Eliminate.
30718 (g_timer): New declaration.
30719 (timevar_push_1): Eliminate.
30720 (timevar_pop_1): Eliminate.
30721 (timevar_print): Eliminate.
30722 (class timer): New class.
30723 (timevar_push): Rewrite to use g_timer.
30724 (timevar_pop): Likewise.
30725 * toplev.c (toplev::~toplev): Likewise.
30726
30727 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
30728
30729 * arm-protos.h (arm_sched_autopref): Delete.
30730 (tune_params): Re-organize, use enums for flag values.
30731 (FUSE_OPS): New macro.
30732 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30733 (ARM_PREFETCH_BENEFICIAL): Likewise.
30734 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30735 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30736 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30737 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30738 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30739 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
30740 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30741 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30742 format.
30743 (arm_option_override, thumb2_reorg, arm_print_tune_info)
30744 (aarch_macro_fusion_pair_p): Update uses of current_tune.
30745 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30746
30747 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
30748
30749 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30750 "break".
30751
30752 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
30753 Sandra Loosemore <sandra@codesourcery.com>
30754
30755 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30756 value.
30757 (REG_CLASS_NAMES): Add "IJMP_REGS".
30758 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30759 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30760 use new "c" register constraint.
30761 * config/nios2/constraint.md (c): New register constraint
30762 corresponding to IJMP_REGS.
30763
30764 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30765
30766 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30767 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30768 define_splits): Delete, revamp, transmogrify into ...
30769 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30770 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30771 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30772 New.
30773
30774 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30775
30776 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30777 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30778
30779 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30780
30781 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30782 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30783 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30784 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30785 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30786 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30787 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30788 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30789 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30790 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30791 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30792 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30793 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30794 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30795 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30796 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30797 and 30 corresponding splitters): Delete.
30798
30799 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30800
30801 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30802 zero_extract.
30803
30804 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30805
30806 * combine.c (recog_for_combine_1): New function, factored out
30807 from recog_for_combine.
30808 (change_zero_ext): New function.
30809 (recog_for_combine): If recog fails, try again with the pattern
30810 modified by change_zero_ext; if that still fails, restore the
30811 pattern.
30812
30813 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30814
30815 * combine.c (get_undo_marker): New function.
30816 (undo_to_marker): New function, largely factored out from ...
30817 (undo_all): ... this. Adjust.
30818
30819 2015-05-12 Richard Biener <rguenther@suse.de>
30820
30821 PR tree-optimization/66101
30822 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30823 fixup if we turn a loop exit edge to a fallthru edge.
30824
30825 2015-05-12 Richard Biener <rguenther@suse.de>
30826
30827 PR tree-optimization/37021
30828 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30829 (SLP_TREE_TWO_OPERATORS): New define.
30830 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30831 SLP_TREE_TWO_OPERATORS.
30832 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30833 SLP node.
30834 (vect_build_slp_tree): Adjust.
30835 (vect_analyze_slp_cost_1): Likewise.
30836 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30837 emitting two vector stmts and mixing the results.
30838
30839 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30840
30841 * call.c (print_z_candidates): Remove dead code.
30842
30843 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30844
30845 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30846 and zEC12_simple_fp.
30847 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30848 to 1.
30849
30850 2015-05-12 Tom de Vries <tom@codesourcery.com>
30851
30852 PR tree-optimization/66010
30853 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30854 ifn_va_arg.
30855 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30856 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
30857 va_lists are passed, and remove corresponding handling.
30858 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
30859 do_deref argument to ifn_va_arg.
30860 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30861 ifn_va_arg.
30862
30863 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30864
30865 PR target/65955
30866 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30867 REG before taking its REGNO.
30868
30869 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30870
30871 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30872 rsp->sign_bit_copies and rsp->nonzero_bits into ...
30873 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
30874 present to get more accurate information about the number of sign bit
30875 copies and non zero bits.
30876
30877 2015-05-12 Richard Biener <rguenther@suse.de>
30878
30879 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30880 do not allow unrolling.
30881
30882 2015-05-11 Richard Henderson <rth@redhat.com>
30883
30884 * config/i386/i386-modes.def (CCP): New.
30885 * config/i386/i386.c (put_condition_code): Handle it.
30886 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30887
30888 2015-05-11 Richard Henderson <rth@redhat.com>
30889
30890 * target.def (md_asm_clobbers): Replace with...
30891 (md_asm_adjust): this.
30892 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30893 (TARGET_MD_ASM_ADJUST): New.
30894 * tm.texi: Rebuild.
30895 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30896 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30897 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30898
30899 * cfgexpand.c (check_operand_nalternatives): Accept vector of
30900 constraints instead of lists of outputs and inputs.
30901 (expand_asm_stmt): Save and restore input_location around the
30902 body of the function. Move asm data into vectors instead of
30903 building tree lists. Generate cleanup sequences as needed,
30904 rather than waiting til the end. Use new md_asm_adjust hook.
30905
30906 * config/vxworks.c: Include vec.h before target.h.
30907 * gimple.c: Likewise.
30908 * incpath.c: Likewise.
30909 * mode-switching.c: Likewise.
30910
30911 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30912 (cris_md_asm_adjust): this.
30913 (TARGET_MD_ASM_CLOBBERS): Remove.
30914 (TARGET_MD_ASM_ADJUST): New.
30915 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30916 (ix86_md_asm_adjust): this.
30917 (TARGET_MD_ASM_CLOBBERS): Remove.
30918 (TARGET_MD_ASM_ADJUST): New.
30919 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30920 (mn10300_md_asm_adjust): this.
30921 (TARGET_MD_ASM_CLOBBERS): Remove.
30922 (TARGET_MD_ASM_ADJUST): New.
30923 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30924 (rs6000_md_asm_adjust): this.
30925 (TARGET_MD_ASM_CLOBBERS): Remove.
30926 (TARGET_MD_ASM_ADJUST): New.
30927 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30928 (visium_md_asm_adjust): this.
30929 (TARGET_MD_ASM_CLOBBERS): Remove.
30930 (TARGET_MD_ASM_ADJUST): New.
30931
30932 2015-05-11 Richard Henderson <rth@redhat.com>
30933
30934 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30935 if noutputs is zero.
30936 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30937
30938 * cfgexpand.c (expand_asm_operands): Merge into...
30939 (expand_asm_stmt): ... here.
30940
30941 * cfgexpand.c (expand_asm_operands): Don't call
30942 resolve_asm_operand_names.
30943 * stmt.c (resolve_asm_operand_names): Clarify block comment.
30944
30945 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
30946
30947 * dwarf2out.c (gen_member_die): Sanity check that we access
30948 TYPE_MAIN_VARIANT for TYPE_METHODS.
30949 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30950 checking TYPE_METHODS.
30951 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30952 if non-null.
30953 (build_distinct_type_copy): Clear TYPE_METHODS.
30954 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30955 (verify_type): Allow TYPE_METHODS to be error_mark_node.
30956 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30957
30958 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
30959
30960 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30961 (emit_pattern_before_setloc): Likewise.
30962
30963 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30964
30965 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30966 for define_peephole2s.
30967 (get_peephole2_pattern): New function.
30968 (main): Use it. Call validate_pattern.
30969
30970 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30971
30972 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30973 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30974 (Last callee saved reg is different for AVR_TINY architecture)
30975
30976 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30977
30978 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30979 when looking for memory references.
30980
30981 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30982
30983 PR target/65753
30984 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30985 via function pointers.
30986
30987 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30988
30989 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30990 indirect call by forcing address into a pseudo with -fno-plt.
30991 * common.opt (flag_plt): New option.
30992 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30993 ([-fno-plt]): Document.
30994
30995 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
30996
30997 PR bootstrap/66105
30998 * config/rs6000/option-defaults.h: Add space between string literal
30999 and macro name.
31000
31001 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31002
31003 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31004 accross ARM targets.
31005
31006 2015-05-11 Christian Bruel <christian.bruel@st.com>
31007
31008 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31009 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31010
31011 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31012
31013 PR rtl-optimization/66076
31014 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31015 Don't grow the heap array if it is already big enough from a
31016 previous iteration.
31017
31018 2015-05-11 Christian Bruel <christian.bruel@st.com>
31019
31020 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31021 (is_called_in_ARM_mode): Remove.
31022 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31023 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31024 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31025 arm_declare_function_name.
31026
31027 2015-05-11 Christian Bruel <christian.bruel@st.com>
31028
31029 * config/arm/arm.c (arm_option_override): Reoganized and split into :
31030 (arm_option_params_internal); New function.
31031 (arm_option_check_internal): New function.
31032 (arm_option_override_internal): New function.
31033 (thumb_code, thumb1_code): Remove.
31034 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31035 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31036 (thumb_code, thumb1_code): Remove.
31037 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31038
31039 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31040
31041 * config/alpha/alpha.c (alpha_emit_set_const_1)
31042 (alpha_emit_set_long_const, alpha_extract_integer)
31043 (alpha_legitimate_constant_p, alpha_split_const_mov)
31044 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31045 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31046 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31047 HOST_WIDE_INT_1U.
31048 * config/alpha/predicates.md (mode_mask_operand): Do not match
31049 const_double RTX.
31050 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31051 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31052 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31053 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31054 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31055
31056 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31057
31058 PR target/65780
31059 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31060 default_binds_local_p_2.
31061 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31062 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31063
31064 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31065
31066 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31067
31068 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31069
31070 Patch by Richard Biener
31071 * coverage.c (coverage_obj_init): Delay building of type variant
31072 until the type is finished.
31073
31074 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31075
31076 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31077 mismatch between C and C++ type; compoare correctly ARG_TYPES
31078 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31079 (odr_types_equivalent_p): Fix wording of warning about attributes;
31080 it is OK to match prototype and non-prototype.
31081
31082 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31083
31084 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31085 TYPE_ARG_TYPES list.
31086 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31087 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31088
31089 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31090
31091 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31092 * tree.h (is_lang_specific): Constify.
31093
31094 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31095
31096 PR tree-optimization/64454
31097 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31098 Rewrite.
31099
31100 2015-05-08 Jason Merrill <jason@redhat.com>
31101
31102 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31103 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31104 config/darwin.h, config/darwin9.h, config/elfos.h,
31105 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31106 config/microblaze/microblaze.h, config/mips/mips.h,
31107 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31108 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31109 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31110 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31111 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31112 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31113 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31114 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31115 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31116 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31117 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31118 between string literal and macro name.
31119
31120 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31121
31122 * jump.c: Change argument types to rtx_insn *.
31123 * rtl.h: Adjust.
31124
31125 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31126
31127 * lra-constraints.c: Change argument type to rtx_insn *.
31128
31129 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31130
31131 * df-problems.c: Change argument type to rtx_insn *.
31132
31133 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31134
31135 * combine.c: Change argument type to rtx_insn *.
31136
31137 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31138
31139 * rtl.h: Adjust.
31140 * rtlanal.c: Change argument type to rtx_insn *.
31141
31142 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31143
31144 * sched-deps.c: Change argument types to rtx_insn *.
31145 * sched-int.h: Adjust.
31146
31147 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31148
31149 * dwarf2cfi.c: Change argument type to rtx_insn *.
31150
31151 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31152
31153 * ira.c (decrease_live_ranges_number): Changetype of local
31154 variable to rtx_insn *.
31155 * recog.c: Change argument types to rtx_insn *.
31156 * recog.h: Adjust.
31157
31158 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31159
31160 * reorg.c: Change argument types to rtx_insn *.
31161
31162 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31163
31164 * ira-color.c: Change argument types to rtx_insn *.
31165 * lra-eliminations.c: Likewise.
31166 * ira.h: Adjust.
31167
31168 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31169
31170 * gcse.c: Change argument types to rtx_insn *.
31171
31172 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31173
31174 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31175
31176 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31177
31178 * emit-rtl.c (emit_debug_insn_before): Change argument type to
31179 rtx_insn *.
31180 * rtl.h: Adjust.
31181
31182 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31183
31184 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31185 * rtl.h: Adjust.
31186
31187 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31188
31189 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31190 * rtl.h: Adjust.
31191
31192 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31193
31194 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31195 * rtl.h: Adjust.
31196
31197 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31198
31199 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31200 * rtl.h: Adjust.
31201
31202 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31203
31204 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31205 to rtx_insn *.
31206 * rtl.h: Adjust.
31207
31208 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31209
31210 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31211 to rtx_insn *.
31212 * rtl.h: Likewise.
31213
31214 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31215
31216 * except.c (can_nonlocal_goto): Change type of argument to
31217 rtx_insn *.
31218 * rtl.h: Adjust.
31219
31220 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31221
31222 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31223 * rtl.h: Adjust.
31224
31225 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31226
31227 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31228 * cfgrtl.c (can_delete_label_p): Adjust.
31229 * rtl.h: likewise.
31230
31231 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31232
31233 * reorg.c (stop_search_p): Change argument to rtx_insn *.
31234
31235 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31236
31237 * except.c (make_reg_eh_region_note): Change argument to
31238 rtx_insn *.
31239 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31240 * except.h: Adjust.
31241
31242 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31243
31244 * mode-switching.c (commit_mode_sets): Change type of local
31245 variable from rtx to rtx_insn *.
31246
31247 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
31248
31249 * doc/install.texi (--enable-languages): Add missing jit and lto info.
31250 Add ^ to grep command.
31251 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31252 arg to last gimple_simplify declaration. Add missing gimple_build
31253 declaration for built-in function case with four tree args.
31254
31255 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31256 Szabolcs Nagy <szabolcs.nagy@arm.com>
31257
31258 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31259 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31260 (GNU_USER_DYNAMIC_LINKERN32): Update.
31261
31262 2015-05-08 Richard Biener <rguenther@suse.de>
31263
31264 PR tree-optimization/66036
31265 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31266 Handle strided group loads.
31267 (vect_verify_datarefs_alignment): Likewise.
31268 (vect_enhance_data_refs_alignment): Likewise.
31269 (vect_analyze_group_access): Likewise.
31270 (vect_analyze_data_ref_access): Likewise.
31271 (vect_analyze_data_ref_accesses): Likewise.
31272 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31273 (vectorizable_load): Likewise.
31274
31275 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
31276
31277 * config/rs6000/rs6000.md: Require operand inequality in one
31278 of the peepholes.
31279
31280 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
31281 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31282
31283 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31284 from (set ...).
31285 * config/rx/rx.md (movdi, movdf): Likewise.
31286 Likewise for define_peephole2s.
31287
31288 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31289
31290 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31291 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31292 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31293 vtst_u64): Rewrite using gcc vector extensions.
31294
31295 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31296
31297 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31298 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31299
31300 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31301
31302 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31303
31304 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
31305
31306 * config/glibc-stdint.h (OPTION_MUSL): Define.
31307 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31308 Change the definition based on OPTION_MUSL for 64 bit targets.
31309 * config/linux.h (OPTION_MUSL): Redefine.
31310 * config/alpha/linux.h (OPTION_MUSL): Redefine.
31311 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31312 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31313
31314 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31315 Szabolcs Nagy <szabolcs.nagy@arm.com>
31316
31317 * config.gcc (LIBC_MUSL): New tm_defines macro.
31318 * config/linux.h (OPTION_MUSL): Define.
31319 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31320 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31321 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31322 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31323 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31324 * config/linux.opt (mmusl): New option.
31325 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31326 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31327 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31328 * configure: Regenerate.
31329
31330 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
31331 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31332
31333 PR target/48904
31334 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31335 * config/i386/knetbsd-gnu64.h: New file.
31336
31337 2015-05-08 Marek Polacek <polacek@redhat.com>
31338
31339 PR c/64918
31340 * doc/invoke.texi: Document -Woverride-init-side-effects.
31341
31342 2015-05-07 Marek Polacek <polacek@redhat.com>
31343
31344 PR c/65179
31345 * doc/invoke.texi: Document -Wshift-negative-value.
31346
31347 2015-05-06 Aditya Kumar <hiraditya@msn.com>
31348
31349 * gcov-tool.c (do_merge): Refactore to remove int ret.
31350 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31351 !type == FUNC to type != FUNC.
31352 * reload.h (struct target_reload): Changee to type of
31353 x_spill_indirect_levels from bool to unsigned char.
31354
31355 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
31356
31357 * rtl.h (always_void_p): New function.
31358 * gengenrtl.c (always_void_p): Likewise.
31359 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31360 with code foo are always VOIDmode.
31361 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31362 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31363 compare-elim.c, config/aarch64/aarch64.c,
31364 config/aarch64/aarch64.md, config/alpha/alpha.c,
31365 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31366 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31367 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31368 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31369 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31370 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31371 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31372 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31373 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31374 config/ia64/vect.md, config/iq2000/iq2000.c,
31375 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31376 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31377 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31378 config/mep/mep.c, config/microblaze/microblaze.c,
31379 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31380 config/mn10300/mn10300.c, config/msp430/msp430.c,
31381 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31382 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31383 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31384 config/rs6000/altivec.md, config/rs6000/rs6000.c,
31385 config/rs6000/rs6000.md, config/rs6000/vector.md,
31386 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31387 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31388 config/sh/sh.md, config/sh/sh_treg_combine.cc,
31389 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31390 config/spu/spu.md, config/stormy16/stormy16.c,
31391 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31392 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31393 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31394 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31395 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31396 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31397 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31398 var-tracking.c: Update calls accordingly.
31399
31400 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31401
31402 PR middle-end/192
31403 PR middle-end/54303
31404 * varasm.c (function_mergeable_rodata_prefix): New function.
31405 (mergeable_string_section): Use it.
31406 (mergeable_constant_section): Use it.
31407
31408 2015-05-07 Jeff Law <law@redhat.com>
31409
31410 PR target/39726
31411 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31412 simplifier to narrow arithmetic.
31413 * generic-match-head.c: (types_match, single_use): New functions.
31414 * gimple-match-head.c: (types_match, single_use): New functions.
31415
31416 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31417
31418 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31419 rtx type.
31420
31421 2015-05-07 Richard Biener <rguenther@suse.de>
31422
31423 PR tree-optimization/66002
31424 * passes.def: Schedule another pass_merge_phi after ifcombine, right
31425 before phiopt.
31426
31427 2015-05-07 Marek Polacek <polacek@redhat.com>
31428 Martin Uecker <uecker@eecs.berkeley.edu>
31429
31430 * doc/invoke.texi: Document -fsanitize=bounds-strict.
31431 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31432 into SANITIZE_NONDEFAULT.
31433 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31434
31435 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
31436
31437 PR target/66015
31438 * config/alpha/alpha.c (alpha_override_options_after_change): New.
31439 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31440 (alpha_override_options): Move align_loops, align_jumps and
31441 align_functions handling into alpha_override_options_after_change.
31442
31443 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
31444 Chris Jones <chrisj@nvidia.com>
31445 Joshua Conner <jconner@nvidia.com>
31446
31447 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31448 linking of crtfastmath.o.
31449 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31450
31451 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
31452
31453 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31454 (cstore<mode>4_unsigned_imm): New expander.
31455 (cstore<mode>4): Remove empty constraint strings. Use the new
31456 expanders.
31457
31458 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
31459
31460 PR target/64208
31461 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31462 alternatives.
31463
31464 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
31465
31466 * config/aarch64/geniterators.sh: Use standard BRE in sed.
31467
31468 2015-05-06 Alan Modra <amodra@gmail.com>
31469
31470 PR target/66033
31471 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31472 (UNSPEC_NOP): Define.
31473 (reload_vsx_from_gpr<mode>): Add missing DONE.
31474 (reload_gpr_from_vsx<mode>): Likewise.
31475 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31476 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31477
31478 2015-05-06 Christian Bruel <christian.bruel@st.com>
31479
31480 PR target/66015
31481 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31482 align_jumps, align_functions into aarch64_override_options_after_change.
31483
31484 2015-05-06 Richard Biener <rguenther@suse.de>
31485
31486 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31487 vect_transform_slp_perm_load to check if we support a permutation
31488 for basic-block vectorization.
31489
31490 2015-05-06 Nick Clifton <nickc@redhat.com>
31491
31492 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31493 used, even if it is not being used as a frame pointer.
31494
31495 2015-05-05 Jason Merrill <jason@redhat.com>
31496
31497 * dwarf2out.c (gen_member_die): Don't emit anything for an
31498 anonymous class constructor.
31499
31500 2015-05-05 David Malcolm <dmalcolm@redhat.com>
31501
31502 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31503 that it reflects the block structure.
31504 (afdo_propagate_edge): Likewise.
31505 (afdo_calculate_branch_prob): Likewise.
31506 (afdo_annotate_cfg): Likewise.
31507 * cfgcleanup.c (equal_different_set_p): Likewise.
31508 (try_crossjump_to_edge): Likewise.
31509 * cgraph.c (cgraph_node::verify_node): Likewise.
31510 * cgraphunit.c (expand_all_functions): Likewise.
31511 * config/i386/i386.c (ix86_expand_copysign): Likewise.
31512 (exact_dependency_1): Likewise.
31513 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31514 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31515 * gensupport.c (process_define_subst): Likewise.
31516 * lto-wrapper.c (merge_and_complain): Likewise.
31517 * tree-if-conv.c (if_convertible_bb_p): Likewise.
31518 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31519 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31520 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31521 * tree-vect-loop.c (vectorizable_reduction): Likewise.
31522 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31523 * tree-vect-stmts.c (vectorizable_shift): Likewise.
31524 * tree-vrp.c (vrp_finalize): Likewise.
31525 * tree.c (variably_modified_type_p): Likewise.
31526
31527 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
31528
31529 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31530 on darwin12 and later.
31531 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31532 file to pass -rdynamic on darwin12 and later.
31533 * config/darwin.opt (rdynamic): Add.
31534
31535 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31536
31537 * doc/extend.texi (C Extensions): Update menu for moved Variable
31538 Attributes and Type Attributes sections.
31539
31540 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31541
31542 PR target/65990
31543 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31544 if rep_8byte stringop strategy was specified for 32-bit target.
31545
31546 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
31547
31548 PR target/65915
31549 * config/i386/i386.md (vector convert to float spltiter): Check for
31550 xmm16+, when splitting scalar float conversion.
31551 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31552
31553 2015-05-05 Nick Clifton <nickc@redhat.com>
31554
31555 * config/msp430/msp430-opts.h (enum msp430_regions): New.
31556 * config/msp430/msp430.c (msp430_override_options): Complain if
31557 -mcode-region or -mdata-region is used on a non MSP430X.
31558 (msp430_section_attr): New function. Checks lower, upper and
31559 either attributes.
31560 (msp430_attribute_table): Add lower, upper and either.
31561 (gen_prefix): New function. Generates a prefix for a section
31562 name.
31563 (msp430_select_section): New function - handles the choice of
31564 section for an object. Takes into account memory region
31565 attributes and options.
31566 (msp430_function_section): Use gen_prefix.
31567 (TARGET_SECTION_TYPE_FLAGS): Define.
31568 (msp430_section_type_flags): New function.
31569 (TARGET_ASM_UNIQUE_SECTION): Define.
31570 (msp430_unique_section): New function.
31571 (msp430_output_aligned_decl_common): New function.
31572 (msp430_do_not_relax_short_jumps): New function.
31573 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31574 Define.
31575 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31576 * config/msp430/msp430-protos.h
31577 (msp430_do_not_relax_short_jumps): New prototype.
31578 (msp430_output_aligned_decl_common): New prototype.
31579 * config/msp430/msp430.md (length): New attribute.
31580 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31581 then use a long code sequence for short jumps.
31582 * config/msp430/msp430.opt (mcode-region): New.
31583 (mdata-region): New.
31584 * doc/invoke.texi: Document new options.
31585 * doc/extend.texi: Document new attributes.
31586
31587 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31588
31589 * config/aarch64-protos.h (struct cpu_branch_cost): New.
31590 (tune_params): Add field branch_costs.
31591 (aarch64_branch_cost): Declare.
31592 * config/aarch64.c (generic_branch_cost): New.
31593 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31594 (cortexa53_tunings): Likewise.
31595 (cortexa57_tunings): Likewise.
31596 (thunderx_tunings): Likewise.
31597 (xgene1_tunings): Likewise.
31598 (aarch64_branch_cost): Define.
31599 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31600
31601 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31602
31603 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31604 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31605 * config/i386/i386.md: Ditto.
31606 * config/i386/winnt.c: Ditto.
31607
31608 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31609
31610 * doc/extend.texi (__atomic Builtins): Move implementation details
31611 to the end of the description, rewrite opening paragraphs, state
31612 difference with __sync builtins, state C11/C++11 assumptions,
31613 weaken itemized descriptions, add explanation of memory model
31614 behaviour, expand description of compare-exchange, simplify text.
31615
31616 2015-05-05 Renlin Li <renlin.li@arm.com>
31617
31618 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31619
31620 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
31621
31622 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31623 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31624 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31625 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31626 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31627 * configure: Regenerate.
31628 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31629 * doc/install.texi (aarch64*-*-*): Document new
31630 --enable-fix-cortex-a53-843419 option.
31631 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31632 and -mno-fix-cortex-a53-843419 options.
31633
31634 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31635
31636 PR target/65871
31637 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31638
31639 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
31640
31641 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31642 fix overactive TYPE_MIN_VALUE check and add FIXME for type
31643 compatibility problems.
31644
31645 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31646
31647 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31648 constraints.
31649 (cbranchsi4_reg): New.
31650 * config/microblaze/microblaze.c
31651 (microblaze_expand_conditional_branch_reg): New.
31652 * config/microblaze/microblaze-protos.h
31653 (microblaze_expand_conditional_branch_reg): New prototype.
31654
31655 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31656
31657 * config/microblaze/microblaze.md (peephole2): New.
31658
31659 2015-05-04 Jeff Law <law@redhat.com>
31660
31661 Revert:
31662 2015-05-04 Jeff Law <law@redhat.com>
31663
31664 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31665 simplifier to narrow arithmetic.
31666 * generic-match-head.c: (types_match, single_use): New functions.
31667 * gimple-match-head.c: (types_match, single_use): New functions.
31668
31669 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
31670
31671 PR target/65987
31672 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
31673 (split_branches): Likewise.
31674
31675 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
31676
31677 * common.opt (fdelete-null-pointer-checks): Init to -1.
31678 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
31679 override flag_delete_null_pointer_checks default.
31680 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
31681 behavior re address zero. Better document target-specific behavior.
31682 (-fisolate-errneous-paths-dereference): Mention relationship to
31683 -fdelete-null-pointer-checks.
31684
31685 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31686
31687 PR tree-optimization/65984
31688 * ubsan.c: Include tree-cfg.h.
31689 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
31690 stmt_could_throw_p test, rename can_throw variable to ends_bb.
31691
31692 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31693
31694 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31695 to CONST_DOUBLE_P predicate.
31696 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31697 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31698 allow only operands that satisfy standard_sse_constant_p predicate.
31699 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31700 to CONST_DOUBLE_P predicate.
31701
31702 2015-05-04 Jeff Law <law@redhat.com>
31703
31704 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31705 simplifier to narrow arithmetic.
31706 * generic-match-head.c: (types_match, single_use): New functions.
31707 * gimple-match-head.c: (types_match, single_use): New functions.
31708
31709 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
31710
31711 * config/arm/arm.c: Restore bootstrap.
31712
31713 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31714
31715 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31716 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31717 as CONST_WIDE_INT, not CONST_DOUBLE.
31718 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31719 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31720 (ix86_find_base_term): Do not check for CONST_DOUBLE.
31721 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31722 (ix86_build_signbit_mask): Rewrite using wide ints.
31723 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31724 (ix86_rtx_costs): Handle CONST_WIDE_INT.
31725 (find_constant): Ditto.
31726 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31727 using gen_int_mode.
31728 * config/i386/predicates.md (x86_64_immediate_operand)
31729 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31730 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31731 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31732 (const0_operand): Also match const_wide_int.
31733 (constm1_operand): Ditto.
31734 (const1_operand): Ditto.
31735
31736 2015-05-04 Richard Biener <rguenther@suse.de>
31737
31738 PR tree-optimization/65965
31739 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31740 store groups at gaps.
31741
31742 2015-05-04 Richard Biener <rguenther@suse.de>
31743
31744 PR tree-optimization/65935
31745 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31746 then make sure to apply that swapping to the IL.
31747
31748 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31749
31750 * Makefile.in (PATCHLEVEL_c): New variable.
31751 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31752 expand the same way as if DEVPHASE_c was non-empty.
31753
31754 2015-05-04 Kai Tietz <ktietz@redhat.com>
31755
31756 PR target/65559
31757 * lto-wrapper.c (run_gcc): Open filename
31758 in binary-mode.
31759
31760 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
31761
31762 * doc/extend.texi (Variable Attributes, Type Attributes): Move
31763 sections up in file, to immediately after the Function Attributes
31764 section.
31765
31766 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
31767
31768 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31769
31770 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31771
31772 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31773 (insert_partition_copy_on_edge): Adjust.
31774 (insert_rtx_to_part_on_edge): Likewise.
31775 (insert_part_to_rtx_on_edge): Likewise.
31776
31777 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31778
31779 * function.c (set_return_jump_label): Change type of argument to
31780 rtx_insn *.
31781 * function.h (set_return_jump_label): Adjust.
31782
31783 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31784
31785 * reload.h (struct reg_equivs_t): Change type of init to
31786 rtx_insn *.
31787 * ira.c (fix_reg_equiv_init): Adjust.
31788 * reload1.c (eliminate_regs_1): Likewise.
31789 (init_eliminable_invariants): Likewise.
31790
31791 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31792
31793 * cselib.c (fp_setter_insn): Take a rtx_insn *.
31794 * cselib.h (fp_setter_insn): Adjust.
31795
31796 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31797
31798 * recog.c (struct validate_replace_src_data): Change type of
31799 insn field to rtx_insn *.
31800 (validate_replace_src_group): Change type of argument to rtx_insn *.
31801 * recog.h (validate_replace_src_group): Adjust.
31802
31803 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31804
31805 * haifa-sched.c: Change the type of some variables to rtx_insn *.
31806 * sched-deps.c: Likewise.
31807 * sched-int.h: Likewise.
31808 * sched-rgn.c: Likewise.
31809 * sel-sched.c: Likewise.
31810
31811 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31812
31813 to rtx_insn *.
31814 * config/i386/i386.c: Change the type of some arguments to
31815 rtx_insn *.
31816 * config/arm/arm.c: Likewise.
31817
31818 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31819
31820 * lra-constraints.c: Change type of some arguments to rtx_insn *.
31821
31822 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31823
31824 * regcprop.c (kill_autoinc_value): Change type of argument to
31825 rtx_insn *.
31826
31827 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31828
31829 * genrecog.c (print_subroutine): Adjust.
31830 * recog.c (get_bool_attr_mask_uncached): Likewise.
31831 * recog.h (struct recog_data_d): Change the type of insn to
31832 rtx_insn *.
31833
31834 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31835
31836 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31837
31838 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31839
31840 * df-problems.c (df_set_note): Change type of argument to
31841 rtx_insn *.
31842
31843 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31844
31845 * builtins.c (expand_builtin_trap): Change type of local
31846 variable to rtx_insn *.
31847 (add_sched_insns_for_speculation): Likewise.
31848 (ix86_emit_save_regs): Likewise.
31849 (get_scratch_register_on_entry): Likewise.
31850 (ix86_emit_restore_reg_using_pop): Likewise.
31851 (ix86_emit_leave): Likewise.
31852 (ix86_emit_restore_regs_using_mov): Likewise.
31853 (ix86_expand_epilogue): Likewise.
31854 Likewise.
31855 (rl78_alloc_physical_registers_umul): Likewise.
31856 * cselib.c (discard_useless_locs): Likewise.
31857 (cselib_invalidate_regno): Likewise.
31858 (cselib_invalidate_mem): Likewise.
31859 * function.c (expand_function_start): Likewise.
31860 (emit_use_return_register_into_block): Likewise.
31861 * gcse.c: Likewise.
31862 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31863 * ifcvt.c (noce_get_alt_condition): Likewise.
31864 * loop-doloop.c (doloop_condition_get): Likewise.
31865 * lra-constraints.c (inherit_in_ebb): Likewise.
31866 * modulo-sched.c (sms_schedule_by_order): Likewise.
31867 * recog.c (next_insn_tests_no_inequality): Likewise.
31868 * reorg.c (emit_delay_sequence): Likewise.
31869 (update_reg_dead_notes): Likewise.
31870 (fix_reg_dead_note): Likewise.
31871 (fill_slots_from_thread): Likewise.
31872 (delete_computation): Likewise.
31873
31874 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
31875
31876 * doc/extend.texi (Variable Attributes): Add menu and proper
31877 @nodes to subsections. Move Microsoft Windows attributes to
31878 their own subsection.
31879 (Type Attributes): Reorganize introduction to remove duplicate
31880 list of attributes. Add menu and proper @nodes to subsections.
31881 Alphabetize the main table of common attributes.
31882
31883 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
31884
31885 * match.pd: New simplification patterns.
31886 (x + (x & 1)) -> ((x + 1) & ~1)
31887 (x & ~(x & y)) -> ((x & ~y))
31888 (x | ~(x | y)) -> ((x | ~y))
31889
31890 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31891
31892 * target.def (attribute_table): Mention that struct attribute_spec
31893 is defined in tree-core.h rather than tree.h
31894 * doc/tm.texi: Regenerate.
31895
31896 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
31897
31898 * genrecog.c (test): Rename to rtx_test. Update rest of file
31899 accordingly.
31900
31901 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
31902
31903 PR translation/65959
31904 * params.h (DEFPARAM): Rename msgid to nocmsgid.
31905
31906 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31907
31908 * config/aarch64/aarch64-protos.h (tune_params):
31909 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31910 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31911 Return value depending on target.
31912 (generic_tunings): Initialize new target settings.
31913 (cortexa53_tunings): Likewise.
31914 (cortexa57_tunings): Likewise.
31915 (thunderx_tunings): Likewise.
31916 (xgene1_tunings): Likewise.
31917
31918 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31919
31920 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31921 Make Cortex-A53 shift costs more accurate.
31922
31923 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31924
31925 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31926 UNSIGNED_FLOAT.
31927
31928 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31929
31930 * config/aarch64/aarch64.c (aarch64_rtx_costs):
31931 Calculate cost of op0 and op1 in PLUS and MINUS cases.
31932
31933 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31934
31935 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31936 Add cost of op0 in the compare-with-fpzero case.
31937
31938 2015-04-30 David Malcolm <dmalcolm@redhat.com>
31939
31940 * builtins.c (fold_builtin_1): Remove spurious second
31941 semicolon.
31942 * cgraph.h (symtab_node::get_availability): Likewise.
31943 * opts.c (common_handle_option): Remove spurious second semicolon.
31944 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31945 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31946
31947 2015-04-30 Caroline Tice <cmtice@google.com>
31948
31949 PR gcov-profile/65929
31950 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31951 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31952 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31953 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31954 * doc/tm.texi: Regenerate.
31955 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
31956 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31957 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
31958 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31959
31960 2015-04-30 Marek Polacek <polacek@redhat.com>
31961
31962 * varasm.c (handle_cache_entry): Fix logic.
31963
31964 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31965
31966 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31967 (*extrsi5_insn_uxtw_alt): Likewise.
31968 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31969 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31970 operations.
31971
31972 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31973
31974 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31975 fabd in ABS case.
31976
31977 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31978
31979 * config/aarch64/aarch64.md
31980 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31981 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31982 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31983 appropriately. Handle alternative EON form.
31984
31985 2015-04-30 Renlin Li <renlin.li@arm.com>
31986
31987 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31988 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31989
31990 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31991
31992 PR ipa/65873
31993 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31994 -fstrict-aliasing boundaries.
31995
31996 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31997
31998 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31999 and [SU]MNEGL patterns.
32000
32001 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32002
32003 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32004 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32005 combined arithmetic-shift ops. Properly handle all shift and extend
32006 operations that can occur in combination with PLUS/MINUS.
32007 Rename maybe_fma to compound_p.
32008 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32009 arithmetic and shift operations.
32010
32011 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32012
32013 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32014 rather than arith_shift cost when costing ADD/MINUS of an
32015 extended value.
32016
32017 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32018
32019 PR lto/65948
32020 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32021 to itself.
32022
32023 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
32024
32025 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32026 are for the same position.
32027
32028 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
32029
32030 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
32031 vectorize_loops.
32032 (vectorize_loops): Use it.
32033
32034 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32035
32036 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32037 for aggregate types.
32038 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32039 type to be non_ODR.
32040 * tree.c (need_assembler_name_p): Compute mangled name for
32041 non-fundamental types and integer types.
32042
32043 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
32044
32045 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32046 manual swaps.
32047 * expr.c (expand_expr_real_2): Likewise.
32048
32049 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32050
32051 * tree.c (build_common_builtin_nodes): Do not build
32052 __builtin_alloca_with_align as equivalent of library alloca.
32053
32054 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32055
32056 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32057 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32058 bugus variants.
32059 * tree.c: Include print-tree.h and ipa-utils.h
32060 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32061 (free_lang_data_in_cgraph): Call verify_type.
32062 (verify_type_variant): New function.
32063 (verify_type): New function.
32064 * tree.h (verify_type): Declare.
32065
32066 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32067
32068 * config/mips/mips-cpus.def: (mips4): Change default processor
32069 from PROCESSOR_R8000 to PROCESSOR_R10000.
32070
32071 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32072
32073 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32074 la/jalr instead of jal.
32075
32076 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32077
32078 PR target/65871
32079 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32080 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32081 (setcc+movzbl peephole2): Check also clobbered reg.
32082 (setcc+andl peephole2): Ditto.
32083
32084 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32085
32086 PR libgomp/65099
32087 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32088 (main): Set it depending on "-foffload-abi=[...]".
32089 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32090 compiler.
32091
32092 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32093
32094 PR target/65770
32095 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32096 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32097 Flip lane index back at assembly time for bigendian.
32098
32099 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32100
32101 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32102 * gimplify.c (gimplify_omp_workshare): Use it.
32103
32104 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32105
32106 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32107 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32108 build/inchash.o
32109 * genrecog.c: Rewrite most of the code except for the third page.
32110
32111 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32112
32113 * inchash.h, inchash.c: Include bconfig.h for build objects.
32114 * Makefile.in (build/inchash.o): New rule.
32115
32116 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32117
32118 PR target/65924
32119 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32120 number in type attribute expression.
32121
32122 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32123
32124 * loop-iv.c (canon_condition): Generalize to all types of integer
32125 constant.
32126
32127 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32128
32129 * gimple-walk.c: Prune duplicate or unneeded includes.
32130 (walk_gimple_asm): Only call parse_input_constraint or
32131 parse_output_constraint if their findings are used.
32132 Honour parse_input_constraint and parse_output_constraint
32133 result.
32134
32135 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32136
32137 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32138
32139 2015-04-29 Tom de Vries <tom@codesourcery.com>
32140
32141 PR tree-optimization/65893
32142 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32143 pass_dce.
32144
32145 2015-04-29 Richard Biener <rguenther@suse.de>
32146
32147 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32148 compute GROUP_SIZE for basic-block SLP.
32149 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32150 take into account gaps.
32151 (vect_get_mask_element): Properly reject references to previous
32152 vectors.
32153 (vect_transform_slp_perm_load): Likewise.
32154
32155 2015-04-29 Christian Bruel <christian.bruel@st.com>
32156
32157 PR target/64835
32158 * config/i386/i386.c (ix86_default_align): New function.
32159 (ix86_override_options_after_change): Call ix86_default_align.
32160 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32161 (ix86_override_options_after_change): New function.
32162
32163 2015-04-28 Jeff Law <law@redhat.com>
32164
32165 * tree-ssa-dom.c (record_equality); Fix comment typos.
32166
32167 2015-04-28 Tom de Vries <tom@codesourcery.com>
32168
32169 PR tree-optimization/65887
32170 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32171
32172 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
32173
32174 * doc/extend.texi (Declaring Attributes of Functions): Split into
32175 subsections by target. Alphabetize the table of common attributes.
32176 Rewrite some of the introductory text to reflect the new structure.
32177 Update some cross-references to point to the new subsections.
32178 (Attribute Syntax): Put paragraph about "__" naming here. Remove
32179 duplicate copies in the discussion of function, label, and type
32180 attributes.
32181
32182 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
32183
32184 PR bootstrap/65910
32185 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32186
32187 2015-04-28 Jason Merrill <jason@redhat.com>
32188
32189 PR c++/65734
32190 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32191 (finalize_type_size): Respect TYPE_USER_ALIGN.
32192 (layout_type) [ARRAY_TYPE]: Likewise.
32193
32194 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
32195
32196 * config/arm/arm.md (*arm_movt): Fix type attribute.
32197 (*cmpsi_shiftsi): Likewise.
32198 (*cmpsi_shiftsi_swp): Likewise.
32199 (*movsicc_insn): Likewise.
32200 (*cond_move): Likewise.
32201 (*if_plus_move): Likewise.
32202 (*if_move_plus): Likewise.
32203 (*if_arith_move): Likewise.
32204 (*if_move_arith): Likewise.
32205 (*if_shift_move): Likewise.
32206 (*if_move_shift): Likewise.
32207 (*arm_movtas_ze): Likewise.
32208 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32209 redundancy and type attribute.
32210 (*thumb2_movsi_insn): Fix type attribute.
32211 (*thumb2_addsi_short): Likewise.
32212 (thumb2_addsi3_compare0): Likewise.
32213 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32214 attributes accordingly.
32215
32216 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
32217
32218 PR other/65911
32219 * function.c (pad_to_arg_alignment): Add parentheses.
32220
32221 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
32222
32223 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32224 libgcc/config/frv/elf-lib.h.
32225
32226 2015-04-28 Tom de Vries <tom@codesourcery.com>
32227
32228 * tree-call-cdce.c: Fix example in header comment.
32229
32230 2015-04-28 Richard Biener <rguenther@suse.de>
32231
32232 PR tree-optimization/62283
32233 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32234 fails fatally and we are vectorizing a basic-block simply
32235 cause the child to be constructed piecewise.
32236 (vect_analyze_slp_cost_1): Adjust.
32237 (vect_detect_hybrid_slp_stmts): Likewise.
32238 (vect_bb_slp_scalar_cost): Likewise.
32239 (vect_get_constant_vectors): For piecewise constructed
32240 constants place them after the last def.
32241 (vect_get_slp_defs): Adjust.
32242 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32243 externals for basic-block vectorization.
32244
32245 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32246
32247 PR target/63503
32248 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32249 aarch64-*-*.
32250 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32251 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32252 (AARCH64_TUNE_FMA_STEERING): Likewise.
32253 * config/aarch64/aarch64-cores.def: Set
32254 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32255 FMUL/FMADD instructions.
32256 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32257 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
32258 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32259 * config/aarch64/cortex-a57-fma-steering.h: New file.
32260 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32261
32262 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
32263
32264 * gensupport.c (std_preds): Add missing codes to address_operand entry.
32265
32266 2015-04-28 Richard Biener <rguenther@suse.de>
32267
32268 PR tree-optimization/65851
32269 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32270 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
32271 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
32272 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32273 (ccp_visit_phi_node): Adjust.
32274 (evaluate_stmt): For simplifications to SSA names return its
32275 lattice value if that isn't VARYING. Return immediately when
32276 simplified to a constant.
32277 (visit_assignment): Adjust.
32278 (ccp_visit_stmt): Likewise.
32279
32280 2015-04-28 Tom de Vries <tom@codesourcery.com>
32281
32282 PR tree-optimization/65818
32283 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32284 evaluated.
32285
32286 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32287
32288 * calls.c (save_fixed_argument_area): Don't check
32289 ARGS_GROW_DOWNWARD with the preprocessor.
32290 (restore_fixed_argument_area): Likewise.
32291 (mem_overlaps_already_clobbered_arg_p): Likewise.
32292 (check_sibcall_argument_overlap): Likewise.
32293 (expand_call): Likewise.
32294 (emit_library_call_value_1): Likewise.
32295 (store_one_arg): Likewise.
32296 * function.c (assign_parms): Likewise.
32297 (locate_and_pad_parm): Likewise.
32298 (pad_to_arg_alignment): Likewise.
32299 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32300
32301 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32302
32303 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32304 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32305 * calls.c (save_fixed_argument_area): Don't chekc if
32306 ARGS_GROW_DOWNWARD is defined.
32307 (restore_fixed_argument_area): Likewise.
32308 (mem_overlaps_already_clobbered_arg_p): Likewise.
32309 (check_sibcall_argument_overlap): Likewise.
32310 (expand_call): Likewise.
32311 (emit_library_call_value_1): Likewise.
32312 (store_one_arg): Likewise.
32313 * function.c (assign_parms): Likewise.
32314 (locate_and_pad_parm): Likewise.
32315 (pad_to_arg_alignment): Likewise.
32316 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32317
32318 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32319
32320 * defaults.h (gen_epilogue): New function.
32321 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32322 defined.
32323 * cfgrtl.c (cfg_layout_finalize): Likewise.
32324 * df-scan.c: Likewise.
32325 * function.c (thread_prologue_and_epilogue_insns): Likewise.
32326 (reposition_prologue_and_epilogue_notes): Likewise.
32327 * reorg.c (find_end_label): Likewise.
32328 * toplev.c: Likewise.
32329
32330 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32331
32332 * bb-reorder.c (HAVE_return): Don't check if its undefined.
32333 * defaults.h (gen_simple_return): New function.
32334 (gen_simple_return): Likewise.
32335 (HAVE_return): Add default definition to false.
32336 (HAVE_simple_return): Likewise.
32337 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32338 HAVE_return and HAVE_simple_return are defined.
32339 * function.c (gen_return_pattern): Likewise.
32340 (convert_jumps_to_returns): Likewise.
32341 (thread_prologue_and_epilogue_insns): Likewise.
32342 * reorg.c (find_end_label): Likewise.
32343 (dbr_schedule): Likewise.
32344 * shrink-wrap.c: Likewise.
32345 * shrink-wrap.h: Likewise.
32346
32347 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32348
32349 * defaults.h (EPILOGUE_USES): Add default definition of false.
32350 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32351 * resource.c (init_resource_info): Likewise.
32352
32353 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32354
32355 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32356 to false.
32357 * dwarf2out.c (field_byte_offset): REmove check if
32358 PCC_BITFIELD_TYPE_MATTERS is defined.
32359 * stor-layout.c (layout_decl): Likewise.
32360 (update_alignment_for_field): Likewise.
32361 (place_field): Likewise.
32362
32363 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32364
32365 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32366 true.
32367 * regrename.c (check_new_reg_p): Remove check if
32368 HARD_REGNO_RENAME_OK is defined.
32369 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32370
32371 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32372
32373 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32374 * cse.c (fold_rtx): Likewise.
32375 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32376 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32377 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32378 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32379 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32380 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32381 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32382 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32383 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32384 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32385 * Likewise.
32386 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32387 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32388 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32389 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32390 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32391 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32392 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32393 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32394 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32395 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32396 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32397 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32398 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32399 * doc/tm.texi: Regenerate.
32400 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32401 either true or false.
32402
32403 2015-04-27 Jeff Law <law@redhat.com>
32404
32405 PR tree-optimization/65217
32406 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32407 of them has a single use, make sure it is the LHS of the implied
32408 copy.
32409
32410 2015-04-28 Alan Modra <amodra@gmail.com>
32411
32412 PR target/65810
32413 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32414 (offsettable_ok_by_alignment): Use minimum of decl and toc
32415 pointer alignment. Replace dead code with assertion.
32416 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
32417 case if size exceeds toc pointer alignment.
32418 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32419 (rs6000_emit_move): Likewise.
32420 * configure.ac: Add linker toc pointer alignment check.
32421 * configure: Regenerate.
32422 * config.in: Regenerate.
32423
32424 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
32425
32426 * config.gcc: Add h8300-*-linux.
32427 * config/h8300/linux.h: New.
32428 * config/h8300/t-linux: New.
32429 * config/h8300/h8300.c (h8300_option_override): Normal mode
32430 is not supported for h8300-*-linux.
32431 (h8300_file_start): Target priority change.
32432 (get_shift_alg): Likewise.
32433 (h8300_shift_need_scratch_p): Likewise.
32434 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32435 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32436
32437 2015-04-27 Caroline Tice <cmtice@google.com>
32438
32439 * final.c (final_scan_insn): Output cold_function_name as function
32440 type.
32441 * varasm.c (cold_function_name): Make global.
32442 (assemble_start_function): Re-set cold_function_name.
32443 (assemble_end_function): Output cold partition size.
32444 * varasm.h (cold_function_name): Declare global.
32445
32446 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
32447
32448 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32449 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32450 constraint.
32451 (*movxi_internal_avx512f): Ditto.
32452 (define_split): Check for xmm16+, when splitting scalar float_extend.
32453 (*extendsfdf2_mixed): Use "v" constraint.
32454 (define_split): Check for xmm16+, when splitting scalar float_truncate.
32455 (*truncdfsf_fast_sse): Use "v" constraint.
32456 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32457 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32458 (define_peephole2): Check for xmm16+, when converting scalar
32459 float_truncate.
32460 (define_peephole2): Check for xmm16+, when converting scalar
32461 float_extend.
32462 (*fop_<mode>_comm_mixed): Use "v" constraint.
32463 (*fop_<mode>_comm_sse): Ditto.
32464 (*fop_<mode>_1_mixed): Ditto.
32465 (*sqrt<mode>2_sse): Ditto.
32466 (*ieee_s<ieee_maxmin><mode>3): Ditto.
32467
32468 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32469
32470 * combine.c (simplify_if_then_else): Use std::swap instead
32471 of manually swapping.
32472 (known_cond): Likewise.
32473 (simplify_comparison): Likewise.
32474
32475 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
32476
32477 PR target/64579
32478 * config/rs6000/htm.md: Remove all define_expands.
32479 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32480 UNSPECV_HTM_TABORTWCI): Remove.
32481 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32482 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32483 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32484 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32485 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32486 tabortwci_internal): Remove define_insns.
32487 (tabort<wd>c, tabort<wd>ci): New define_insns.
32488 (tabort): Use gpc_reg_operand.
32489 (tcheck): Remove operand.
32490 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32491 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32492 expected value.
32493 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32494 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
32495 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32496 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32497 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32498 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32499 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32500 (tcheck): Remove builtin argument.
32501 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32502 not TARGET_64BIT.
32503 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
32504 tabortdc and tabortdci builtins when not in 64-bit mode.
32505 Modify code to handle the loss of the HTM define_expands.
32506 Emit code to copy the CR register to TARGET.
32507 (htm_init_builtins): Modify code to handle the loss of the HTM
32508 define_expands.
32509 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32510 (RS6000_BTC_64BIT): Likewise.
32511 (RS6000_BTC_CR): New macro.
32512 * doc/extend.texi: Update documentation for htm builtins.
32513
32514 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32515
32516 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32517 of manually swapping.
32518 (simplify_associative_operation): Likewise.
32519 (simplify_binary_operation): Likewise.
32520 (simplify_plus_minus): Likewise.
32521 (simplify_relational_operation): Likewise.
32522 (simplify_ternary_operation): Likewise.
32523
32524 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32525
32526 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32527 (xs_hi_nonmemory_operand): Remove error.
32528 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32529 general_operand rather than xs_hi_general_operand.
32530
32531 2015-04-27 Richard Biener <rguenther@suse.de>
32532
32533 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32534 (record_equivalences_from_stmt): Valueize rhs.
32535 (record_equality): Canonicalize x and y order via
32536 tree_swap_operands_p. Do not swap operands for same loop depth.
32537
32538 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
32539
32540 PR target/65296
32541 PR target/65895
32542 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32543 Add hint how to use own spec file.
32544
32545 2015-04-27 Jakub Jelinek <jakub@redhat.com>
32546
32547 PR tree-optimization/65875
32548 * tree-vrp.c (update_value_range): If in is_new case setting
32549 old_vr to VR_VARYING, also set new_vr to it. Remove
32550 old_vr->type == VR_VARYING test.
32551 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32552 SSA_PROP_INTERESTING if update_value_range returned true,
32553 but new range is VR_VARYING.
32554
32555 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
32556
32557 * combine.c (sign_extend_short_imm): New.
32558 (set_nonzero_bits_and_sign_copies): Use above new function for sign
32559 extension of src short immediate.
32560 (reg_nonzero_bits_for_combine): Likewise for tem.
32561
32562 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32563
32564 * stor-layout.c (self_referential_component_ref_p): New predicate.
32565 (copy_self_referential_tree_r): Use it.
32566 (self_referential_size): Punt for simple operations directly involving
32567 self-referential component references.
32568 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32569
32570 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32571
32572 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32573
32574 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32575
32576 * vec.h (vec): Make splice arguments const. Update definitions
32577 accordingly.
32578
32579 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
32580
32581 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32582 alternatives.
32583
32584 2015-04-26 Tom de Vries <tom@codesourcery.com>
32585
32586 PR tree-optimization/65826
32587 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32588
32589 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
32590
32591 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32592 (*madd3<mode>): Ditto.
32593 (*msub4<mode>): Ditto.
32594 (*msub3<mode>): Ditto.
32595 (*nmadd4<mode>): Ditto.
32596 (*nmadd3<mode>): Ditto.
32597 (*nmadd4<mode>_fastmath): Ditto.
32598 (*nmadd3<mode>_fastmath): Ditto.
32599 (*nmsub4<mode>): Ditto.
32600 (*nmsub3<mode>): Ditto.
32601 (*nmsub4<mode>_fastmath): Ditto.
32602 (*nmsub3<mode>_fastmath): Ditto.
32603
32604 2015-04-24 Jason Merrill <jason@redhat.com>
32605
32606 PR c++/50800
32607 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32608 down when building TYPE_CANONICAL.
32609 (build_pointer_type_for_mode): Likewise.
32610
32611 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
32612
32613 * genrecog.c (validate_pattern): Check matching constraint refers
32614 to a lower numbered operand.
32615
32616 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32617
32618 PR target/65849
32619 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32620 save to independent variables use the Save attribute. This will
32621 allow these options to be modified with the #pragma/attribute
32622 target support.
32623 (-mallow-movmisalign): Likewise.
32624 (-mallow-df-permute): Likewise.
32625 (-msched-groups): Likewise.
32626 (-malways-hint): Likewise.
32627 (-malign-branch-targets): Likewise.
32628 (-mvectorize-builtins): Likewise.
32629 (-msave-toc-indirect): Likewise.
32630
32631 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32632 can be set via the #pragma/attribute target support.
32633 (rs6000_opt_vars): Likewise.
32634 (rs6000_inner_target_options): If VSX was set, also set
32635 -mno-avoid-indexed-addresses.
32636
32637 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32638
32639 * config/arm/iterators.md (shiftable_ops): Rename to...
32640 (SHIFTABLE_OPS): ... This. Update use in comments.
32641 (ior_xor): Rename to...
32642 (IOR_XOR): ... This.
32643 (vqh_ops): Rename to...
32644 (VQH_OPS): ... This.
32645 (vqhs_ops): Rename to...
32646 (VQHS_OPS): ... This.
32647 (rshifts): Rename to...
32648 (RSHIFTS): ... This.
32649 (returns): Rename to...
32650 (RETURNS): ... This.
32651 * config/arm/arm.md: Update uses of the above.
32652 * config/arm/neon.md: Likewise.
32653
32654 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32655
32656 * config.host (case ${host}): Add aarch64*-*-linux case.
32657 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
32658 fields to all the cores.
32659 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
32660 Add MCPU_MTUNE_NATIVE_SPECS.
32661 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
32662 field to all extensions.
32663 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
32664 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
32665 Adjust definition of AARCH64_OPT_EXTENSION.
32666 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
32667 (MCPU_MTUNE_NATIVE_SPECS): Define.
32668 * config/aarch64/driver-aarch64.c: New file.
32669 * config/aarch64/x-arch64: New file.
32670 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
32671 -mtune and -march.
32672
32673 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32674 Wei Mi <wmi@google.com>
32675
32676 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
32677 * config/i386/i386.c (extract_base_offset_in_addr): New function.
32678 (ix86_operands_ok_for_move_multiple): Ditto.
32679 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
32680 (movlpd/movhpd to movupd peephole2): Ditto.
32681
32682 2015-04-24 Marek Polacek <polacek@redhat.com>
32683
32684 PR c/61534
32685 * input.h (from_macro_expansion_at): Define.
32686
32687 PR c/63357
32688 * doc/invoke.texi: Update description of -Wlogical-op.
32689
32690 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32691
32692 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32693 ternary operator in fprintf and harmonize spacing.
32694
32695 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32696
32697 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32698 Mark operand1 commutative.
32699
32700 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32701
32702 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32703 input operands in memory.
32704 (*vec_concatv2si_sse4_1): Ditto.
32705 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32706 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32707 register_operand.
32708 (vec_extract_hi_v32hi): Ditto.
32709 (vec_extract_hi_v64hi): Ditto.
32710 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32711
32712 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32713 Steven Bosscher <steven@gcc.gnu.org>
32714
32715 PR rtl-optimization/34503
32716 * cprop.c (cprop_reg_p): New.
32717 (hash_scan_set): Use above function to check if register can be
32718 propagated.
32719 (find_avail_set): Return up to two sets, one whose source is a
32720 register and one whose source is a constant. Sets are returned in an
32721 array passed as parameter rather than as a return value.
32722 (cprop_insn): Use a do while loop rather than a goto. Try each of the
32723 sets returned by find_avail_set, starting with the one whose source is
32724 a constant. Use cprop_reg_p to check if register can be propagated.
32725 (do_local_cprop): Use cprop_reg_p to check if register can be
32726 propagated.
32727 (implicit_set_cond_p): Likewise.
32728
32729 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32730
32731 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32732 (sem_function::equals): IGNORED_NODES parameter is now unused;
32733 update call of equals_private.
32734 (sem_function::equals_private): Do not call equals_wpa; skip
32735 gimple body matching if there is no body.
32736 (sem_function::init): Add logic to hash tthunk info.
32737 (sem_function::parse): Also parse thunks.
32738 * ipa-icf.h (equals_private): Update declaration.
32739
32740 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32741
32742 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32743 asterisk from name so this can be generated directly.
32744 (*altivec_stvx_<mode>_internal): Likewise.
32745 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32746 that this is never called during or after reload/lra.
32747 (rs6000_frame_related): Remove split_reg
32748 argument and logic that references it.
32749 (emit_frame_save): Remove last parameter from call to
32750 rs6000_frame_related.
32751 (rs6000_emit_prologue): Remove last parameter from eight calls to
32752 rs6000_frame_related. Force generation of stvx instruction for
32753 Altivec register saves. Remove split_reg handling, which is no
32754 longer needed.
32755 (rs6000_emit_epilogue): Force generation of lvx instruction for
32756 Altivec register restores.
32757
32758 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32759
32760 * config/rs6000/rs6000.opt (mcrypto): Change option description to
32761 match category changes in ISA 2.07B.
32762
32763 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32764
32765 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32766 iterators.
32767 (cmp_op, cmp_type): New code attributes.
32768 (NEON_VCMP, NEON_VACMP): New int iterators.
32769 (cmp_op_unsp): New int attribute.
32770 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32771 (neon_vceq<mode>): Delete.
32772 (neon_vc<cmp_op><mode>_insn): New pattern.
32773 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32774 (neon_vcgeu<mode>): Delete.
32775 (neon_vcle<mode>): Likewise.
32776 (neon_vclt<mode>: Likewise.
32777 (neon_vcage<mode>): Likewise.
32778 (neon_vcagt<mode>): Likewise.
32779 (neon_vca<cmp_op><mode>): New define_expand.
32780 (neon_vca<cmp_op><mode>_insn): New pattern.
32781 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32782
32783 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32784
32785 * tree.h (attribute_value_equal): Declare.
32786 * tree.c (attribute_value_equal): Export.
32787
32788 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32789
32790 * ipa-icf.c (sem_item::compare_attributes): New function.
32791 (sem_item::compare_referenced_symbol_properties): Compare variable
32792 attributes.
32793 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32794 (sem_function::param_used_p): New function.
32795 (sem_function::equals_wpa): Fix attribute comparsion; match
32796 parameter type codes; do not compare paremter flags when
32797 they are not used; compare edge flags; compare indirect calls.
32798 (sem_item::update_hash_by_addr_refs): Hash reference type.
32799 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32800 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32801 reference use type.
32802 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32803 * ipa-icf.h (compare_attributes, param_used_p): Declare.
32804
32805 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32806
32807 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32808 cleanup.
32809 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32810 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32811 (sem_item::compare_referenced_symbol_properties): New.
32812 (sem_item::hash_referenced_symbol_properties): New.
32813 (sem_item::compare_cgraph_references): Rename to ...
32814 (sem_item::compare_symbol_references): ... this one; use
32815 compare_referenced_symbol_properties.
32816 (sem_function::equals_wpa): Do not compare
32817 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32818 DECL_IS_OPERATOR_NEW; compare pointer sizes.
32819 (sem_item::update_hash_by_addr_refs): Call
32820 hash_referenced_symbol_properties.
32821 (sem_item::update_hash_by_local_refs): Cleanup.
32822 (sem_function::merge): Do not mix up symbol properties.
32823 (sem_variable::equals_wpa): Use compare_symbol_references.
32824 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32825 (sem_item::hash_referenced_symbol_properties): New.
32826 (sem_item::compare_symbol_references): New.
32827 (sem_item::compare_cgraph_references): Remove.
32828
32829 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
32830
32831 PR target/26702
32832 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32833 Emit size of local.
32834
32835 2015-04-23 Nick Clifton <nickc@redhat.com>
32836
32837 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32838 ATTRIBUTE_UNUSED to x parameter.
32839 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32840
32841 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32842
32843 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32844 TARGET_CRYPTO to TARGET_P8_VECTOR>
32845 (crypto_vpermxor_<mode>): Likewise.
32846 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32847 (BU_CRYPTO_3A): Likewise.
32848 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32849 (BU_CRYPTO_OVERLOAD_3A): New #define.
32850 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32851 (VPMSUMH): Likewise.
32852 (VPMSUMW): Likewise.
32853 (VPMSUMD): Likewise.
32854 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32855 (VPERMXOR_V4SI): Likewise.
32856 (VPERMXOR_V8HI): Likewise.
32857 (VPERMXOR_V16QI): Likewise.
32858 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32859 BU_CRYPTO_OVERLOAD_2A.
32860 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32861 BU_CRYPTO_OVERLOAD_3A.
32862 * config/rs6000/rs6000.opt (mcrypto): Change description of
32863 option.
32864
32865 2015-04-23 Richard Biener <rguenther@suse.de>
32866
32867 * passes.def: Remove copy propagation passes run directly after CCP.
32868 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32869 SSA names.
32870 (ccp_visit_phi_node): Rework to handle first executable edge
32871 specially.
32872
32873 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
32874
32875 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32876 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32877 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32878 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32879 (thumb_legimitimize_reload_address): Remove.
32880 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32881 Remove.
32882 (thumb_legimitimize_reload_address): Remove.
32883
32884 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32885
32886 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32887
32888 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32889
32890 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32891 MAX_LDM_STM_OPS.
32892 (store_multiple): Likewise.
32893
32894 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32895
32896 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32897 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32898 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32899 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32900 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32901 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32902 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32903 Specify issue_rate value.
32904 (arm_issue_rate): Look up issue rate from tuning structs. Remove
32905 large switch statement.
32906 (arm_marvell_pj4_tune): New struct.
32907 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32908 struct.
32909
32910 2015-04-23 Richard Biener <rguenther@suse.de>
32911
32912 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32913 (vect_find_last_store_in_slp_instance): Rename to ...
32914 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32915 (vect_analyze_slp_cost_1): Use vector_load for constant defs
32916 and vec_construct for external defs when estimating prologue cost.
32917 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32918 Compute costs here only when vectorizing loops.
32919 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32920 have been determined.
32921 (vect_schedule_slp_instance): Simplify vectorized code placement
32922 and prepare for in-BB external defs.
32923 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32924 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32925 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32926 guard.
32927 (vect_model_load_cost): Likewise.
32928 (vectorizable_store): Instead add it here.
32929 (vectorizable_load): Likewise.
32930 (vect_is_simple_use): Dump def type textually.
32931
32932 2015-04-23 Richard Biener <rguenther@suse.de>
32933
32934 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32935 * cfgloop.c (verify_loop_structure): Verify the root loop node.
32936 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32937 instead of get_eh_region_from_lp_number.
32938 * loop-init.c (fix_loop_structure): If we removed a loop, reset
32939 the SCEV cache.
32940
32941 2015-04-23 Anton Blanchard <anton@samba.org>
32942
32943 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32944 need for -mprofile-kernel to save LR to stack.
32945
32946 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32947
32948 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32949 adjustments.
32950 (insn_is_swappable_p): Return 1 for a convert from double to
32951 single precision when all of its uses are splats of BE element
32952 zero.
32953
32954 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
32955
32956 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32957
32958 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32959
32960 PR target/65456
32961 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
32962 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32963 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32964 option.
32965 (rs6000_builtin_mask_for_load): Return 0 for targets with
32966 efficient unaligned VSX accesses so that the vectorizer will use
32967 direct unaligned loads.
32968 (rs6000_builtin_support_vector_misalignment): Always return true
32969 for targets with efficient unaligned VSX accesses.
32970 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32971 stores on targets with efficient unaligned VSX accesses is almost
32972 always the same as the cost of an aligned load or store, so model
32973 it that way.
32974 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32975 unaligned vectors if we have efficient unaligned VSX accesses.
32976 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32977 undocumented option.
32978
32979 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32980
32981 Revert:
32982 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32983
32984 * config.gcc (LIBC_MUSL): New tm_defines macro.
32985 * config/linux.h (OPTION_MUSL): Define.
32986 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32987 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32988 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32989
32990 * config/linux.opt (mmusl): New option.
32991 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32992 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32993
32994 * configure: Regenerate.
32995
32996 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32997
32998 * config.gcc (LIBC_MUSL): New tm_defines macro.
32999 * config/linux.h (OPTION_MUSL): Define.
33000 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33001 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33002 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33003
33004 * config/linux.opt (mmusl): New option.
33005 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33006 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33007
33008 * configure: Regenerate.
33009
33010 2015-04-22 Yury Gribov <y.gribov@samsung.com>
33011
33012 * doc/invoke.texi (-fsanitize-sections): Update description.
33013 * asan.c (set_sanitized_sections): Parse incoming arg.
33014 (section_sanitized_p): Support wildcards.
33015
33016 2015-04-22 Tom de Vries <tom@codesourcery.com>
33017
33018 PR tree-optimization/65823
33019 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33020 equality between ap_copy and ap.
33021
33022 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33023
33024 PR target/47098
33025 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33026
33027 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33028
33029 PR target/47122
33030 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33031
33032 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33033
33034 PR target/55144
33035 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33036 remove already contained t-files.
33037
33038 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33039
33040 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33041 Remove unneeded forward declarations.
33042 (suitable_for_tail_call_opt_p): Commentary typo fix.
33043
33044 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33045
33046 * varasm.c (emit_bss): Remove redundant guard.
33047
33048 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33049
33050 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33051
33052 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33053
33054 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33055
33056 2015-04-22 Hale Wang <hale.wang@arm.com>
33057 Terry Guo <terry.guo@arm.com>
33058
33059 PR rtl-optimization/64818
33060 * combine.c (can_combine_p): Don't combine user-specified
33061 register if it is in an asm input.
33062
33063 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33064
33065 PR ipa/65076
33066 * passes.def (early_optimizations): Add pass_dse.
33067
33068 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33069
33070 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33071 * reorg.c (redundant_insn): Remove ifdef
33072 INSN_REFERENCES_ARE_DELAYED.
33073 * resource.c (mark_referenced_resources): Likewise.
33074
33075 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33076
33077 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33078 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33079 * resource.c (mark_set_resources): Likewise.
33080
33081 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33082
33083 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33084 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33085 (flow_find_head_matching_sequence): Likewise.
33086 (try_head_merge_bb): Likewise.
33087 * combine.c (can_combine_p): Likewise.
33088 (try_combine): Likewise.
33089 (distribute_notes): Likewise.
33090 * df-problems.c (can_move_insns_across): Likewise.
33091 * final.c (final): Likewise.
33092 * gcse.c (insert_insn_end_basic_block): Likewise.
33093 * ira.c (find_moveable_pseudos): Likewise.
33094 * reorg.c (try_merge_delay_insns): Likewise.
33095 (fill_simple_delay_slots): Likewise.
33096 (fill_slots_from_thread): Likewise.
33097 * sched-deps.c (sched_analyze_2): Likewise.
33098
33099 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33100
33101 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33102 PIC_OFFSET_TABLE_REGNUM.
33103
33104 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33105
33106 * alias.c (init_alias_target): Remove ifdef
33107 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33108 * df-scan.c (df_insn_refs_collect): Likewise.
33109 (df_get_regular_block_artificial_uses): Likewise.
33110 (df_get_eh_block_artificial_uses): Likewise.
33111 (df_get_entry_block_def_set): Likewise.
33112 (df_get_exit_block_use_set): Likewise.
33113 * emit-rtl.c (gen_rtx_REG): Likewise.
33114 * ira.c (ira_setup_eliminable_regset): Likewise.
33115 * reginfo.c (init_reg_sets_1): Likewise.
33116 * regrename.c (rename_chains): Likewise.
33117 * reload1.c (reload): Likewise.
33118 (eliminate_regs_in_insn): Likewise.
33119 * resource.c (mark_referenced_resources): Likewise.
33120 (init_resource_info): Likewise.
33121
33122 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33123
33124 * defaults.h (MASK_RETURN_ADDR): New definition.
33125 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33126 MASK_RETURN_ADDR.
33127
33128 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33129
33130 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33131 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33132 RETURN_ADDR_OFFSET.
33133 (expand_builtin_frob_return_addr): Likewise.
33134
33135 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33136
33137 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33138 (try_redirect_by_replacing_jump): Likewise.
33139 (rtl_tidy_fallthru_edge): Likewise.
33140 * combine.c (insn_a_feeds_b): Likewise.
33141 (find_split_point): Likewise.
33142 (simplify_set): Likewise.
33143 * cprop.c (cprop_jump): Likewise.
33144 * cse.c (cse_extended_basic_block): Likewise.
33145 * df-problems.c (can_move_insns_across): Likewise.
33146 * function.c (emit_use_return_register_into_block): Likewise.
33147 * haifa-sched.c (sched_init): Likewise.
33148 * ira.c (find_moveable_pseudos): Likewise.
33149 * loop-invariant.c (find_invariant_insn): Likewise.
33150 * lra-constraints.c (curr_insn_transform): Likewise.
33151 * postreload.c (reload_combine_recognize_const_pattern):
33152 * Likewise.
33153 * reload.c (find_reloads): Likewise.
33154 * reorg.c (delete_scheduled_jump): Likewise.
33155 (steal_delay_list_from_target): Likewise.
33156 (steal_delay_list_from_fallthrough): Likewise.
33157 (redundant_insn): Likewise.
33158 (fill_simple_delay_slots): Likewise.
33159 (fill_slots_from_thread): Likewise.
33160 (delete_computation): Likewise.
33161 * sched-rgn.c (add_branch_dependences): Likewise.
33162
33163 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33164
33165 * genconfig.c (main): Always define HAVE_cc0.
33166 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33167 HAVE_cc0.
33168 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33169 (flow_find_head_matching_sequence): Likewise.
33170 (try_head_merge_bb): Likewise.
33171 * cfgrtl.c (rtl_merge_blocks): Likewise.
33172 (try_redirect_by_replacing_jump): Likewise.
33173 (rtl_tidy_fallthru_edge): Likewise.
33174 * combine.c (do_SUBST_MODE): Likewise.
33175 (insn_a_feeds_b): Likewise.
33176 (combine_instructions): Likewise.
33177 (can_combine_p): Likewise.
33178 (try_combine): Likewise.
33179 (find_split_point): Likewise.
33180 (subst): Likewise.
33181 (simplify_set): Likewise.
33182 (distribute_notes): Likewise.
33183 * cprop.c (cprop_jump): Likewise.
33184 * cse.c (cse_extended_basic_block): Likewise.
33185 * df-problems.c (can_move_insns_across): Likewise.
33186 * final.c (final): Likewise.
33187 (final_scan_insn): Likewise.
33188 * function.c (emit_use_return_register_into_block): Likewise.
33189 * gcse.c (insert_insn_end_basic_block): Likewise.
33190 * haifa-sched.c (sched_init): Likewise.
33191 * ira.c (find_moveable_pseudos): Likewise.
33192 * loop-invariant.c (find_invariant_insn): Likewise.
33193 * lra-constraints.c (curr_insn_transform): Likewise.
33194 * optabs.c (prepare_cmp_insn): Likewise.
33195 * postreload.c (reload_combine_recognize_const_pattern):
33196 * Likewise.
33197 * reload.c (find_reloads): Likewise.
33198 (find_reloads_address_1): Likewise.
33199 * reorg.c (delete_scheduled_jump): Likewise.
33200 (steal_delay_list_from_target): Likewise.
33201 (steal_delay_list_from_fallthrough): Likewise.
33202 (try_merge_delay_insns): Likewise.
33203 (redundant_insn): Likewise.
33204 (fill_simple_delay_slots): Likewise.
33205 (fill_slots_from_thread): Likewise.
33206 (delete_computation): Likewise.
33207 (relax_delay_slots): Likewise.
33208 * sched-deps.c (sched_analyze_2): Likewise.
33209 * sched-rgn.c (add_branch_dependences): Likewise.
33210
33211 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33212
33213 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33214 that is trivially ded on non cc0 targets.
33215 (simplify_set): Likewise.
33216 (mark_used_regs_combine): Likewise.
33217 * cse.c (new_basic_block): Likewise.
33218 (fold_rtx): Likewise.
33219 (cse_insn): Likewise.
33220 (cse_extended_basic_block): Likewise.
33221 (set_live_p): Likewise.
33222 * rtlanal.c (canonicalize_condition): Likewise.
33223 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33224
33225 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33226
33227 * conditions.h: Define macros even if HAVE_cc0 is undefined.
33228 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33229 * final.c: Likewise.
33230 * jump.c: Likewise.
33231 * recog.c: Likewise.
33232 * recog.h: Declare functions even when HAVE_cc0 is undefined.
33233 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33234
33235 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33236
33237 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33238 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33239 * builtins.c (expand_builtin): Remove check if
33240 EH_RETURN_DATA_REGNO is defined.
33241 * df-scan.c (df_bb_refs_collect): Likewise.
33242 (df_get_exit_block_use_set): Likewise.
33243 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33244 * ira-lives.c (process_bb_node_lives): Likewise.
33245 * lra-lives.c (process_bb_lives): Likewise.
33246
33247 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33248
33249 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33250 FIRST_PSEUDO_REG): New.
33251 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33252 (ARG_POINTER_REGNUM): Define to ARGP_REG.
33253 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33254 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33255 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33256 (FIRST_INT_REG): New.
33257 (LAST_INT_REG): New.
33258 (FIRST_*_REG): Define using *_REG.
33259 (LAST_*_REG): Ditto.
33260 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33261 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33262 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33263
33264 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33265
33266 * expmed.c: (synth_mult): Only assume overlapping
33267 shift with previous steps in alg_sub_t_m2 case.
33268
33269 2015-04-21 Richard Biener <rguenther@suse.de>
33270
33271 PR tree-optimization/65650
33272 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33273 transitions involving copies.
33274 (set_lattice_value): Adjust for copy lattice state.
33275 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33276 if that doesn't dominate the merge point.
33277 (bit_value_unop): Adjust what we treat as varying mask.
33278 (bit_value_binop): Likewise.
33279 (bit_value_assume_aligned): Likewise.
33280 (evaluate_stmt): When we simplified to a SSA name record a copy
33281 instead of dropping to varying.
33282 (visit_assignment): Simplify.
33283
33284 * gimple-match.h (gimple_simplify): Add another callback.
33285 * gimple-fold.c (fold_stmt_1): Adjust caller.
33286 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33287 for the 2nd callback.
33288 * gimple-match-head.c (gimple_simplify): Add a callback that is
33289 used to valueize the stmt operands and use it that way.
33290
33291 2015-04-21 Richard Biener <rguenther@suse.de>
33292
33293 PR tree-optimization/65788
33294 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33295
33296 2015-04-21 Richard Biener <rguenther@suse.de>
33297
33298 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33299 vec_construct cost by vec_stmt_cost.
33300
33301 2015-04-21 Richard Biener <rguenther@suse.de>
33302
33303 * cfghooks.h (create_basic_block): Replace with two overloads
33304 for RTL and GIMPLE.
33305 (split_block): Likewise.
33306 * cfghooks.c (split_block): Rename to ...
33307 (split_block_1): ... this.
33308 (split_block): Add two type-safe overloads for RTL and GIMPLE.
33309 (split_block_after_labels): Call split_block_1.
33310 (create_basic_block): Rename to ...
33311 (create_basic_block_1): ... this.
33312 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33313 (create_empty_bb): Call create_basic_block_1.
33314 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33315 split_block_after_labels.
33316 * omp-low.c (expand_parallel_call): Likewise.
33317 (expand_omp_target): Likewise.
33318 (simd_clone_adjust): Likewise.
33319 * tree-chkp.c (chkp_get_entry_block): Likewise.
33320 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33321 create_basic_block overload.
33322 (cgraph_node::expand_thunk): Likewise.
33323 * tree-cfg.c (make_blocks): Likewise.
33324 (handle_abnormal_edges): Likewise.
33325 * tree-inline.c (copy_bb): Likewise.
33326
33327 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33328
33329 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33330 New pattern.
33331 (*xor_one_cmplsidi3_ze): Likewise.
33332
33333 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33334
33335 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33336 use df_remove_problem rather than manually removing problems, leaving
33337 holes in df->problems_in_order[].
33338
33339 2015-04-21 Tom de Vries <tom@codesourcery.com>
33340
33341 PR tree-optimization/65802
33342 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33343
33344 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33345
33346 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33347 Increase to 128.
33348 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33349 at '.'. Assert that there's enough space for everything.
33350
33351 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33352
33353 PR tree-optimization/64950
33354 Revert:
33355 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
33356
33357 PR target/41089
33358 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33359 as volatile.
33360
33361 2015-04-20 Shiva Chen <shiva0217@gmail.com>
33362
33363 PR rtl-optimization/64916
33364 * cfgcleanup.c (values_equal_p): New function.
33365 (can_replace_by): Use it.
33366
33367 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
33368
33369 PR c++/65801
33370 * doc/invoke.texi ([-Wnarrowing]): Update.
33371
33372 2015-04-20 Jeff Law <law@redhat.com>
33373
33374 PR tree-optimization/65658
33375 * tree-ssa-threadupdate.c (redirection_block_p): Remove
33376 redundant test for GIMPLE_ASSIGN in last change.
33377
33378 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
33379
33380 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33381 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33382 (legitimize_tls_address): Ditto.
33383 (ix86_expand_move): Ditto.
33384 (ix86_expand_binary_operator): Remove reload_in_progress checks.
33385 (ix86_expand_unary_operator): Ditto.
33386 * config/i386/predicates.md (index_register_operand): Ditto.
33387
33388 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
33389
33390 * reorg.c (try_merge_delay_insns): Improve correctness checking
33391 for targets with multiple delay slots.
33392
33393 2015-04-20 Jeff Law <law@redhat.com>
33394
33395 PR tree-optimization/65658
33396 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33397 statements too.
33398
33399 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33400
33401 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33402 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33403 Delete.
33404
33405 2015-04-20 Jakub Jelinek <jakub@redhat.com>
33406
33407 PR debug/65807
33408 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33409
33410 2015-04-20 Richard Biener <rguenther@suse.de>
33411
33412 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33413 * gimple-fold.c (gimple_build_valueize): New function.
33414 (gimple_build): Always use gimple_build_valueize as valueize hook.
33415
33416 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33417
33418 PR target/64134
33419 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33420 and overwrite variable parts if <= 1/2 the elements are variable.
33421
33422 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
33423
33424 PR rtl-optimization/65805
33425 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33426 Don't use difference of offset and previous offset if
33427 update_sp_offset is non-zero.
33428 (eliminate_regs_in_insn): Ditto.
33429 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33430 lra_eliminate_regs_1 call.
33431 * lra-constraints.c (get_equiv_with_elimination): Ditto.
33432
33433 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
33434
33435 * hash-table.h: Remove version of hash_table that stored value_type *.
33436 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33437 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33438 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33439 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33440 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33441 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33442 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33443 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33444 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33445 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33446 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33447 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33448 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33449 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33450 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33451 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33452
33453 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33454 Jakub Jelinek <jakub@redhat.com>
33455
33456 PR target/65787
33457 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33458 subsequent SH_NONE operand does not overwrite an existing *special
33459 value.
33460 (adjust_extract): Handle case where a vec_extract operation is
33461 wrapped in a PARALLEL.
33462
33463 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33464
33465 PR target/65780
33466 * config/i386/i386.c (ix86_binds_local_p): Define only if
33467 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33468
33469 2015-04-17 Jeff Law <law@redhat.com>
33470
33471 PR tree-optimization/47679
33472 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33473 * tree-ssa-scopedtables.c: New file.
33474 * tree-ssa-scopedtables.h: New file.
33475 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33476 (const_and_copies): Change name/type.
33477 (record_const_or_copy): Move into tree-ssa-scopedtables.c
33478 (record_const_or_copy_1): Similarly.
33479 (restore_vars_to_original_value): Similarly.
33480 (pass_dominator::execute): Create and destroy const_and_copies table.
33481 (thread_across_edge): Update passing of const_and_copies.
33482 (record_temporary_equivalence): Use method calls rather than
33483 manipulating const_and_copies directly.
33484 (record_equality, cprop_into_successor_phis): Similarly.
33485 (dom_opt_dom_walker::before_dom_children): Similarly.
33486 (dom_opt_dom_walker::after_dom_children): Similarly.
33487 (eliminate_redundant_computations): Similarly.
33488 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33489 (record_temporary_equivalence): Likewise.
33490 (invalidate_equivalences): Likewise.
33491 (record_temporary_equivalences_from_phis): Update due to type
33492 change of const_and_copies. Use method calls rather than
33493 manipulating the stack directly.
33494 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33495 (thread_through_normal_block, thread_across_edge): Likewise.
33496 (thread_across_edge): Likewise.
33497 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33498 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
33499 of equiv_stack.
33500 (identify_jump_threads): Update due to type change of equiv_stack.
33501 (finalize_jump_threads): Delete the equiv_stack when complete.
33502
33503 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
33504
33505 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33506 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33507 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33508
33509 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
33510
33511 PR target/65535
33512 * config.gcc: Exit with a comment when we do not have a major version
33513 number for the FreeBSD target.
33514
33515 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33516
33517 PR target/65689
33518 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33519 maybe_allows_mem bitfields.
33520 (maybe_allows_none_start, maybe_allows_none_end,
33521 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33522 maybe_allows_mem_end): New variables.
33523 (compute_maybe_allows): New function.
33524 (add_constraint): Use it to initialize maybe_allows_reg and
33525 maybe_allows_mem fields.
33526 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33527 is_address constraints such that those that allow neither mem nor
33528 reg come first, then those that only allow reg but not mem, then
33529 those that only allow mem but not reg, then the rest.
33530 (write_allows_reg_mem_function): New function.
33531 (write_tm_preds_h): Call it.
33532 * stmt.c (parse_output_constraint, parse_input_constraint): Use
33533 the generated insn_extra_constraint_allows_reg_mem function
33534 instead of always setting *allows_reg = true; *allows_mem = true;
33535 for unknown extra constraints.
33536
33537 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33538
33539 PR target/65780
33540 * output.h (default_binds_local_p_3): New.
33541 * varasm.c (default_binds_local_p_3): Make it public. Take an
33542 argument to indicate if common symbol may be local. If common
33543 symbol may be local, treat non-external variable as defined
33544 locally.
33545 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33546 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33547 * config/i386/i386.c (ix86_binds_local_p): New.
33548 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33549 ix86_binds_local_p.
33550
33551 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33552
33553 PR debug/65771
33554 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33555 trying mem_loc_descriptor on XEXP (rtl, 0).
33556
33557 2015-04-17 Martin Liska <mliska@suse.cz>
33558
33559 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33560 Release symbol_compare_collection.
33561 * ipa-reference.c: Add TODO that a vector should be released.
33562
33563 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33564
33565 PR target/65296
33566 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33567 to new AVR-LibC file layout (bug #44574).
33568 (*avrlibc_devicelib): Same.
33569 * config/avr/avr-mcus.def: Adjust comments.
33570 * config/avr/avr.opt (nodevicelib): Adjust help.
33571
33572 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
33573
33574 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33575
33576 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
33577
33578 PR c++/64527
33579 * gimplify.c (gimplify_init_constructor): Always emit a
33580 side-effecting constructor.
33581
33582 2015-04-17 Tom de Vries <tom@codesourcery.com>
33583
33584 PR tree-optimization/64950
33585 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33586 in cfun->curr_properties.
33587 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33588 if we generate an IFN_VA_ARG.
33589 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33590 function if PROP_gimple_lva is not set in src function.
33591
33592 2015-04-17 Tom de Vries <tom@codesourcery.com>
33593 Michael Matz <matz@suse.de>
33594
33595 PR tree-optimization/64950
33596 * gimple-iterator.c (update_modified_stmts): Remove static.
33597 * gimple-iterator.h (update_modified_stmts): Declare.
33598 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33599 (gimplify_va_arg_internal): New function.
33600 (gimplify_va_arg_expr): Use IFN_VA_ARG.
33601 * gimplify.h (gimplify_va_arg_internal): Declare.
33602 * internal-fn.c (expand_VA_ARG): New unreachable function.
33603 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33604 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33605 (expand_ifn_va_arg): New function.
33606 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33607 (pass_stdarg::execute): Call expand_ifn_va_arg.
33608 (pass_data_lower_vaarg): New pass_data.
33609 (pass_lower_vaarg): New gimple_opt_pass.
33610 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33611 (make_pass_lower_vaarg): New function.
33612 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33613 properties_required field.
33614 * passes.def (all_passes): Add pass_lower_vaarg.
33615 * tree-pass.h (PROP_gimple_lva): Add define.
33616 (make_pass_lower_vaarg): Declare.
33617
33618 2015-04-17 Tom de Vries <tom@codesourcery.com>
33619
33620 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33621 * calls.c (call_expr_flags): Same.
33622
33623 2015-04-17 Tom de Vries <tom@codesourcery.com>
33624
33625 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33626 (pass_stdarg::execute): ... here.
33627
33628 2015-04-17 Tom de Vries <tom@codesourcery.com>
33629 Michael Matz <matz@suse.de>
33630
33631 * tree-cfg.c (make_blocks_1): Factor out of ...
33632 (make_blocks): ... here.
33633 (make_edges_bb): Factor out of ...
33634 (make_edges): ... here.
33635 (gimple_find_sub_bbs): New function.
33636 * tree-cfg.h (gimple_find_sub_bbs): Declare.
33637
33638 2015-04-17 Tom de Vries <tom@codesourcery.com>
33639
33640 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33641
33642 2015-04-17 Yury Gribov <y.gribov@samsung.com>
33643
33644 * asan.c (set_sanitized_sections): New function.
33645 (section_sanitized_p): Ditto.
33646 (asan_protect_global): Optionally sanitize user-defined
33647 sections.
33648 * asan.h (set_sanitized_sections): Declare new function.
33649 * common.opt (fsanitize-sections): New option.
33650 * doc/invoke.texi (-fsanitize-sections): Document new option.
33651 * opts-global.c (handle_common_deferred_options): Handle new
33652 option.
33653
33654 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33655
33656 PR debug/65771
33657 * dwarf2out.c (loc_list_from_tree): Return NULL
33658 for DEBUG_EXPR_DECL.
33659
33660 2015-04-17 Christian Bruel <christian.bruel@st.com>
33661
33662 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
33663 same attributes.
33664
33665 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33666
33667 * ira-color.c (setup_left_conflict_sizes_p): Do not process
33668 node itself when computing left conflict subnode size.
33669
33670 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33671
33672 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
33673 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
33674 *fop_<mode>_1_sse using enabled attribute. Use
33675 register_mixssei387nonimm_operand operand 1 predicate. Change
33676 alternative 3 constraints from "x" to "v".
33677
33678 2015-04-16 Richard Biener <rguenther@suse.de>
33679
33680 PR tree-optimization/65774
33681 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
33682 bit-value tracking on.
33683
33684 2015-04-16 Richard Biener <rguenther@suse.de>
33685
33686 PR tree-optimization/64277
33687 * tree-vrp.c (check_array_ref): Fix anti-range handling,
33688 simplify upper bound handling.
33689 (search_for_addr_array): Simplify.
33690 (check_array_bounds): Handle ADDR_EXPRs here.
33691 (check_all_array_refs): Simplify.
33692
33693 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33694
33695 * config/i386/i386.c (print_reg): Rewrite function.
33696
33697 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33698
33699 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33700 Invert the condition.
33701
33702 2015-04-16 Renlin Li <renlin.li@arm.com>
33703
33704 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33705 simplifications for UNSIGNED_FLOAT.
33706
33707 2015-04-16 Nick Clifton <nickc@redhat.com>
33708
33709 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33710 MUL_UNINIT.
33711 (enum rl78_cpu_type): New.
33712 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33713 (umulhi3_shift_virt): Remove m constraint from operand 1.
33714 (umulqihi3_virt): Likewise.
33715 * config/rl78/rl78.c (rl78_option_override): Add code to process
33716 -mcpu and -mmul options.
33717 (rl78_alloc_physical_registers): Add code to handle divhi and
33718 divsi valloc attributes.
33719 (set_origin): Likewise.
33720 * config/rl78/rl78.h (RL78_MUL_G14): Define.
33721 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33722 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33723 __RL78_Gxx__.
33724 (ASM_SPEC): Pass -mcpu on to assembler.
33725 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33726 (mulqi3_rl78): Likewise.
33727 (mulhi3_g13): Likewise.
33728 (mulhi3): Generate the G13 or G14 versions of the insn directly.
33729 (mulsi3): Likewise.
33730 (mulhi3_g14): Add clobbers of AX and BC.
33731 (mulsi3_g14): Likewise.
33732 (mulsi3_g13): Likewise.
33733 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33734 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33735 * config/rl78/rl78.opt (mmul): Initialise value to
33736 RL78_MUL_UNINIT.
33737 (mcpu): New option.
33738 (m13, m14, mrl78): New option aliases.
33739 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33740 (MULTILIB_DIRNAMES): Add g13 and g14.
33741 * doc/invoke.texi: Document -mcpu and -mmul options.
33742
33743 2015-04-16 Richard Biener <rguenther@suse.de>
33744
33745 * tree-ssa-ccp.c (likely_value): See if we have operands that
33746 are marked as never simulate again and return CONSTANT in this
33747 case.
33748 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33749 not have any operands that will be simulated again as
33750 not being simulated again.
33751
33752 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
33753
33754 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33755 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33756 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33757 attribute.
33758 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33759 enabled attribute.
33760 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33761 *float<SWI48:mode><MODEF:mode>2_sse.
33762 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33763 enabled attribute.
33764 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33765 enabled attribute.
33766
33767 2015-04-15 Tom de Vries <tom@codesourcery.com>
33768
33769 PR other/65487
33770 * function.c (push_dummy_function): New function.
33771 (init_dummy_function_start): Use push_dummy_function.
33772 (pop_dummy_function): New function. Factored out of ...
33773 (expand_dummy_function_end): ... here.
33774 * function.h (push_dummy_function, pop_dummy_function): Declare.
33775 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33776 pop_dummy_function.
33777 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33778
33779 2015-04-15 Jeff Law <law@redhat.com>
33780
33781 PR tree-optimization/47679
33782 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33783 need for forward declaration in upcoming changes.
33784 (record_conditions, record_edge_info): Likewise.
33785
33786 PR rtl-optimization/42522
33787 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33788 SIGN_EXTRACT as a whole object rather than simplifying
33789 its operand.
33790
33791 2015-04-15 Jakub Jelinek <jakub@redhat.com>
33792
33793 PR ipa/65765
33794 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33795 and GIMPLE_PREDICT use break instead of return true. For
33796 GIMPLE_EH_DISPATCH, compare dispatch region.
33797
33798 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
33799
33800 * doc/extend.texi (__sync Builtins): Simplify some text. Update
33801 details about the implementation. Make clear preference for
33802 __atomic builtins. Reduce possibility of future change.
33803
33804 2015-04-15 Nick Clifton <nickc@redhat.com>
33805
33806 * config/rx/rx.opt (mallow-string-insns): New option.
33807 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33808 builtin if string instructions are denied.
33809 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33810 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33811 appropriate.
33812 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33813 * config/rx/rx.md (movstr): Enable pattern only if string
33814 instructions are allowed.
33815 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33816 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33817 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33818 (MULTILIB_DIRNAMES): Add no-strings.
33819 * doc/invoke.texi: Document -mno-allow-string-insns.
33820
33821 2015-04-15 Alan Modra <amodra@gmail.com>
33822
33823 PR target/65408
33824 PR target/58744
33825 PR middle-end/36043
33826 * calls.c (load_register_parameters): Don't load past end of
33827 mem unless suitably aligned.
33828
33829 2015-04-15 Nick Clifton <nickc@redhat.com>
33830
33831 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33832 decrement instruction as being frame related.
33833 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33834 based addresses.
33835 If zero extending a function address enclose the operation in
33836 %code(...).
33837 (rl78_preferred_reload_class): New function.
33838 (TARGET_PREFERRED_RELOAD_CLASS): Define.
33839 * config/rl78/rl78.md: Remove useless constraints in expanders.
33840 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33841 (mulhi3_rl78): Likewise.
33842 (mulhi3_g13): Likewise.
33843 (mulsi3_rl78): Likewise.
33844 (es_addr): Move to before the multiply patterns.
33845
33846 2015-04-15 Alan Modra <amodra@gmail.com>
33847
33848 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33849 and sequence_stack. Add seq.
33850 (seq_stack): Delete.
33851 * function.c (prepare_function_start): Don't access x_last_insn.
33852 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33853 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33854 * emit_rtl.c (start_sequence, push_topmost_sequence,
33855 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33856 sequence accessors.
33857 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33858 remove_insn): Likewise. Simplify.
33859 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33860 and pop_topmost_sequence.
33861 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
33862 debug insns.
33863 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33864
33865 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
33866
33867 PR target/65729
33868 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33869 the assertiion.
33870
33871 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33872
33873 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33874 (LEGACY_INT_REGNO_P): Ditto.
33875 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33876 (ANY_MASK_REG_P): Remove.
33877 (BND_REG_P): Rename from ANY_BND_REG_P.
33878 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33879 legacy integer registers. Do not handle MMX_REG_P in a special way.
33880 Merge 64byte and 32byte SSE handling.
33881
33882 2015-04-14 Nick Clifton <nickc@redhat.com>
33883
33884 * expr.c (expand_assignment): Force an address offset computation
33885 into a register before changing its mode.
33886 (expand_expr_real_1): Likewise.
33887
33888 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
33889
33890 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33891 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33892 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33893 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33894 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33895 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33896 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33897 and __aarch64_vget_lane_any.
33898
33899 2015-04-14 Jakub Jelinek <jakub@redhat.com>
33900
33901 PR rtl-optimization/65761
33902 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33903 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33904
33905 2015-04-14 Richard Biener <rguenther@suse.de>
33906
33907 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33908 (graphite_can_represent_scev): Use POINTER_TYPE_P.
33909
33910 2015-04-14 Richard Biener <rguenther@suse.de>
33911
33912 PR tree-optimization/65758
33913 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33914 against -1.
33915 (ccp_lattice_meet): Likewise.
33916 (bit_value_unop): Likewise.
33917 (bit_value_binop): Likewise.
33918 (bit_value_assume_aligned): Likewise.
33919
33920 2015-04-14 Christian Bruel <christian.bruel@st.com>
33921
33922 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33923 function.
33924
33925 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
33926
33927 PR tree-optimization/63387
33928 * match.pd ((x unord x) | (y unord y) -> (x unord y),
33929 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33930
33931 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33932
33933 * config/i386/predicates.md (any_QIreg_operand): Rename from
33934 q_regs_operand. Do not process subregs.
33935 (QIreg_operand): Use QI_REGNO_P predicate.
33936 (ext_QIreg_operand): Ditto.
33937 (ext_register_operand): Ditto.
33938 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33939 (AND splitters): Ditto.
33940 (AND with -65536 splitter): Add SWI48 mode for operand 0.
33941 (AND with -256 splitter): Use any_QIreg_operand predicate and
33942 SWI248 mode for operand 0.
33943 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33944 mode for operand 0.
33945 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33946
33947 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
33948
33949 * doc/plugins.texi: Rewrite first introductory paragraph.
33950
33951 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33952
33953 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33954 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33955
33956 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33957
33958 * ipa-profie.c (ipa_profile): Check number of parameters
33959 and possible polymorphic call targets before
33960 devirtualizing.
33961
33962 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
33963
33964 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33965 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33966
33967 2015-04-13 Richard Biener <rguenther@suse.de>
33968
33969 PR tree-optimization/65204
33970 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33971 takens for bit-CCP.
33972
33973 2015-04-13 Richard Biener <rguenther@suse.de>
33974
33975 PR target/65660
33976 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33977 and cond_not_taken_branch_cost to 4 and 2.
33978 (bdver2_cost): Likewise.
33979 (bdver3_cost): Likewise.
33980 (bdver4_cost): Likewise.
33981
33982 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33983
33984 * hash-table.h (hash_table constructor): Add mem stats.
33985 (alloc_entries): Likewise.
33986
33987 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33988
33989 * ipa-cp.c (ipcp_driver): Relase prev_edge.
33990 * passes.c (execute_one_pass): Only add transform if pass has one.
33991
33992 2015-04-12 Joseph Myers <joseph@codesourcery.com>
33993
33994 * config/i386/i386.c (ix86_option_override_internal): Don't set
33995 -fprefetch-loop-arrays if optimizing for size.
33996
33997 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33998 Gerald Pfeifer <gerald@pfeifer.com>
33999
34000 * doc/contrib.texi (Contributors): Add Martin Jambor and
34001 Michael Matz.
34002
34003 2015-04-12 Jakub Jelinek <jakub@redhat.com>
34004
34005 * BASE-VER: Set to 6.0.0.
34006
34007 PR tree-optimization/65747
34008 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34009 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34010
34011 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34012
34013 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34014 sentence. Improve grammar.
34015
34016 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34017
34018 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34019
34020 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34021
34022 PR ipa/65743
34023 * ipa-inline-transform.c (speculation_removed): Remove static var.
34024 (check_speculations): New function.
34025 (clone_inlined_nodes): Do not check spculations.
34026 (inline_call): Call check_speculations.
34027 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34028 consider non-invariants.
34029
34030 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34031 Martin Liska <mliska@suse.cz>
34032
34033 PR ipa/65722
34034 * ipa-icf.c (sem_item::compare_cgraph_references): function and
34035 variable can not match.
34036 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34037 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34038
34039 2015-04-11 Jakub Jelinek <jakub@redhat.com>
34040
34041 PR tree-optimization/65735
34042 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34043 Remove visited_phis argument, add visited_bbs, avoid recursing into the
34044 same bb rather than just into the same phi node.
34045 (thread_through_normal_block): Adjust caller.
34046
34047 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34048
34049 * doc/contrib.texi (Contributors): Add Ira Rosen.
34050
34051 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
34052
34053 * gcov.c (find_source): Fix miswording in error message.
34054 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34055 (ix86_expand_sse_comi_round): Fix typo in error message.
34056
34057 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34058
34059 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34060
34061 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34062
34063 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34064
34065 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34066
34067 PR target/65710
34068 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34069 Print bad_spills_num and insn_pseudos_num.
34070
34071 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34072
34073 PR target/65694
34074 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34075 when creating +1 values for SImode.
34076
34077 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34078
34079 PR target/65729
34080 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34081 assert.
34082
34083 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34084 Iain Sandoe <iain@codesourcery.com>
34085
34086 PR target/65351
34087 * configure: Regenerate.
34088
34089 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34090
34091 PR target/65671
34092 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34093
34094 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34095
34096 * doc/contrib.texi (Contributors): Add John Marino.
34097
34098 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34099
34100 PR tree-optimization/65709
34101 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34102 TREE_TYPE (TREE_TYPE (t)).
34103
34104 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34105
34106 PR target/65710
34107 * lra-int.h (lra_bad_spill_regno_start): New.
34108 * lra.c (lra_bad_spill_regno_start): New.
34109 (lra): Set up lra_bad_spill_regno_start. Set up
34110 lra_constraint_new_regno_start unconditionally.
34111 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34112 spill preferences.
34113
34114 2015-04-09 Marek Polacek <polacek@redhat.com>
34115 Jakub Jelinek <jakub@redhat.com>
34116
34117 PR middle-end/65554
34118 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34119 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34120 of STRIP_NOPS.
34121
34122 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34123
34124 PR rtl-optimization/65693
34125 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34126 #ifndef HAVE_cc0.
34127
34128 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34129
34130 PR target/65296
34131 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34132 device specs file if "device-specs%s" didn't resolve to a path.
34133
34134 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34135
34136 PR target/65676
34137 * config/i386/i386.c (fixup_modeless_constant): New.
34138 (ix86_expand_args_builtin): Fixup modeless constant operand.
34139 (ix86_expand_round_builtin): Ditto.
34140 (ix86_expand_special_args_builtin): Ditto.
34141 (ix86_expand_builtin): Ditto.
34142
34143 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34144
34145 PR target/65693
34146 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34147 any pow2 integer in between 2 and 0x80000000U inclusive.
34148
34149 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
34150
34151 PR rtl-optimization/65693
34152 * combine.c (is_parallel_of_n_reg_sets): Change first argument
34153 from an rtx_insn * to an rtx.
34154 (try_combine): Adjust both callers. Use it once more.
34155
34156 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34157
34158 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34159 (chkp_make_static_const_bounds): Search existing
34160 symbol by assembler name. Use make_decl_one_only.
34161 (chkp_get_zero_bounds_var): Remove node search which
34162 is now performed in chkp_make_static_const_bounds.
34163 (chkp_get_none_bounds_var): Likewise.
34164
34165 2015-04-08 Michael Witten <mfwitten@gmail.com>
34166
34167 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34168 to an example.
34169
34170 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34171
34172 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34173
34174 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34175
34176 * doc/extend.texi (__sync Builtins): Fix grammar.
34177
34178 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34179
34180 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34181
34182 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34183
34184 * varasm.c (emit_local): Move definition of align.
34185
34186 2015-04-08 Julian Brown <julian@codesourcery.com>
34187
34188 * config/nvptx/mkoffload.c (process): Support variable mapping.
34189
34190 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
34191
34192 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34193 alpha_links **.
34194 (alpha_write_one_linkage): Correct typo.
34195
34196 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34197
34198 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34199
34200 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34201
34202 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34203
34204 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34205
34206 * tree-chkp.h (chkp_insert_retbnd_call): New.
34207 * tree-chkp.c (chkp_insert_retbnd_call): New.
34208 * ipa-split.c (insert_bndret_call_after): Remove.
34209 (split_function): Use chkp_insert_retbnd_call.
34210 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34211 bounds for instrumented functions.
34212
34213 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
34214
34215 PR ipa/65540
34216 * calls.c (initialize_argument_information): When producing tail
34217 call also turn SSA_NAMES passed by references to original PARM_DECLs
34218
34219 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
34220
34221 PR target/65648
34222 * lra-remat.c (do_remat): Process input and non-input insn
34223 registers separately.
34224
34225 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34226
34227 PR debug/65678
34228 * valtrack.c (debug_lowpart_subreg): New function.
34229 (dead_debug_insert_temp): Use it.
34230
34231 PR middle-end/65680
34232 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34233 into signed HOST_WIDE_INT the same as negative bit_offset.
34234
34235 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
34236
34237 * ipa-comdats.c (ipa_comdats): Visit all thunks
34238 to set proper comdat group.
34239
34240 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34241
34242 PR target/65489
34243 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34244 on constants for NEON VSTRUCT modes.
34245
34246 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34247 Iain Sandoe <iain@codesourcery.com>
34248
34249 PR target/65351
34250 * configure: Regenerate.
34251
34252 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34253
34254 PR target/65614
34255 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34256 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34257 that LFD is used to load double constants instead of LFS. Add
34258 defaults for all costs structures. Add comments for missing
34259 initialization fields.
34260 (size32_cost): Likewise.
34261 (size64_cost): Likewise.
34262 (rs64a_cost): Likewise.
34263 (mpccore_cost): Likewise.
34264 (ppc403_cost): Likewise.
34265 (ppc405_cost): Likewise.
34266 (ppc440_cost): Likewise.
34267 (ppc476_cost): Likewise.
34268 (ppc601_cost): Likewise.
34269 (ppc603_cost): Likewise.
34270 (ppc604_cost): Likewise.
34271 (ppc604e_cost): Likewise.
34272 (ppc620_cost): Likewise.
34273 (ppc630_cost): Likewise.
34274 (ppccell_cost): Likewise.
34275 (ppc750_cost): Likewise.
34276 (ppc7450_cost): Likewise.
34277 (ppc8540_cost): Likewise.
34278 (ppce300c2c3_cost): Likewise.
34279 (ppce500mc_cost): Likewise.
34280 (ppce500mc64_cost): Likewise.
34281 (ppce5500_cost): Likewise.
34282 (ppce6500_cost): Likewise.
34283 (titan_cost): Likewise.
34284 (power4_cost): Likewise.
34285 (power6_cost): Likewise.
34286 (power7_cost): Likewise.
34287 (power8_cost): Likewise.
34288 (ppca2_cost): Likewise.
34289 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34290
34291 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34292 instead of XXLOR to copy SFmode to clear out dirty bits created
34293 when SFmode denormals are generated.
34294 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34295 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34296
34297 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34298
34299 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34300 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34301 * config/aarch64/aarch64-tune.md: Regenerate.
34302
34303 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34304
34305 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34306 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34307 * config/arm/arm-cores.def (exynos-m1): New core.
34308 * config/arm/arm-tune.md: Regenerate.
34309 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34310 * config/arm/bpabi.h: Likewise.
34311
34312 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34313
34314 * ipa-cp (set_single_call_flag): Remove too
34315 restrictive assert.
34316
34317 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
34318
34319 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34320 GOMP_offload_unregister from the destructor.
34321
34322 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34323
34324 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34325 flags for instrumentation thunk.
34326 (chkp_produce_thunks): Likewise.
34327
34328 2015-04-05 Martin Liska <mliska@suse.cz>
34329
34330 PR ipa/65665
34331 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34332 has computed data structure.
34333 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34334
34335 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
34336
34337 * invoke.texi (inline-unit-growth): Increase growth to 20%
34338 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34339
34340 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
34341
34342 PR target/65647
34343 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
34344 value checking.
34345 (lra_rematerialization_iter): New.
34346 * lra.c (lra): Initialize lra_rematerialization_iter.
34347 Stop updating lra_constraint_new_regno_start after switching of
34348 inheritance and rematerialization.
34349 * lra-remat.c (lra_rematerialization_iter): New.
34350 (lra_remat): Add printing pass iteration. Do rematerialization
34351 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34352
34353 2015-04-04 Richard Biener <rguenther@suse.de>
34354
34355 PR tree-optimization/64909
34356 PR tree-optimization/65660
34357 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34358 to take a cost vector for scalar iteration cost.
34359 (vect_get_single_scalar_iteration_cost): Likewise.
34360 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34361 Compute the scalar iteration cost into a cost vector.
34362 (vect_get_known_peeling_cost): Use the scalar cost vector to
34363 account for the cost of the peeled iterations.
34364 (vect_estimate_min_profitable_iters): Likewise.
34365 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34366 Likewise.
34367
34368 2015-04-04 Alan Modra <amodra@gmail.com>
34369
34370 PR target/65576
34371 PR target/65240
34372 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34373 0.0 constant unless TARGET_VSX.
34374 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34375 alternative.
34376
34377 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34378
34379 PR ipa/65654
34380 * ipa-inline-transform.c (inline_call): Skip sanity check to work
34381 around the ICE
34382
34383 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34384
34385 PR ipa/65655
34386 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34387 speculative indirect edges to avoid ordering issue.
34388
34389 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34390
34391 PR ipa/65076
34392 * ipa-inline.c (edge_badness): Add combined size to the denominator.
34393
34394 2015-04-03 Jakub Jelinek <jakub@redhat.com>
34395
34396 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34397 TYPE_ARTIFICIAL on the .omp_data* types.
34398
34399 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34400
34401 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34402 instrumentation thunks.
34403
34404 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34405
34406 * config/i386/i386.c (ix86_expand_call): Avoid nested
34407 PARALLEL in returned call value.
34408
34409 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34410
34411 * lto-cgraph.c (input_cgraph_1): Always link instrumented
34412 assembler name with original one.
34413
34414 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34415
34416 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34417
34418 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34419
34420 Revert parts of r216820.
34421 * config/i386/i386.md (movqi_internal): Correct type calculation
34422 for alternatives 3 and 5.
34423
34424 2015-04-02 Jakub Jelinek <jakub@redhat.com>
34425
34426 PR preprocessor/61977
34427 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34428 predefine __vector/__bool/__pixel macros nor context sensitive
34429 macros for CLK_ASM.
34430 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34431
34432 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
34433
34434 * config/pa/pa.c (pa_output_move_double): Directly handle register
34435 indexed memory operand. Simplify handling of scaled register indexed
34436 memory operands.
34437
34438 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34439
34440 PR driver/65444
34441 * config/i386/linux-common.h (MPX_SPEC): New.
34442 (CHKP_SPEC): Add MPX_SPEC.
34443 * doc/invoke.texi (-fcheck-pointer-boudns): Document
34444 possible issues with '-z bndplt' support in linker.
34445
34446 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34447
34448 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34449 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34450 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34451 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34452 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34453
34454 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
34455
34456 * config/i386/sync.md (UNSPEC_MOVA): Remove.
34457 (atomic_load<mode>): Change operand 0 predicate to
34458 nonimmediate_operand and fix up the destination when needed.
34459 Use UNSPEC_LDA.
34460 (atomic_loaddi_fpu): Use UNSPEC_LDA.
34461 (atomic_store<mode>): Change operand 1 predicate to
34462 nonimmendate_operand and move the source to register when needed.
34463 Use UNSPEC_STA.
34464 (atomic_store<mode>_1): Use UNSPEC_STA.
34465 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34466 Fix moves from memory operand. Use UNSPEC_STA.
34467
34468 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34469
34470 * expmed.c (strict_volatile_bitfield_p): Check that the access will
34471 not cross a MODESIZE boundary.
34472 (store_bit_field, extract_bit_field): Added assertions in the
34473 strict volatile bitfields code path.
34474
34475 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
34476
34477 PR target/65624
34478 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34479 Increase args array size by one to avoid buffer overflow.
34480
34481 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34482
34483 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34484 split_part.
34485 * ipa-inline.c (edge_badness): Add wrapper penalty.
34486 (sum_callers): Move up.
34487 (inline_small_functions): Set single_caller.
34488 * ipa-inline.h (inline_summary): Add single_caller.
34489 * ipa-split.c (split_function): Set split_part.
34490 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34491 * cgraph.h (cgraph_node): Add split_part.
34492
34493 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
34494
34495 PR target/58945
34496 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34497 Do not split operands 0 and operands 2 to halfmode.
34498 (atomic_compare_and_swap<mode>): Update for
34499 atomic_compare_and_swap<dwi>_doubleword changes.
34500
34501 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34502
34503 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34504 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34505 no caching is done.
34506
34507 2015-03-31 Martin Liska <mliska@suse.cz>
34508
34509 PR ipa/65557
34510 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34511 has already filled up function summary.
34512 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34513
34514 2015-03-31 Richard Biener <rguenther@suse.de>
34515
34516 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34517 of types.
34518
34519 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
34520
34521 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34522 nested functions.
34523 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34524 (s390_asm_output_function_label): Adapt to new signature of
34525 s390_function_num_hotpatch_hw
34526 Optimise the code generating assembler output.
34527 Add comments to assembler file.
34528
34529 2015-03-31 Richard Biener <rguenther@suse.de>
34530
34531 PR middle-end/65626
34532 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34533 of the noreturn call so it is last and cleanup_control_flow_bb
34534 can do the CFG part.
34535
34536 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
34537
34538 PR target/65531
34539 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34540 same_comdat_group for external symbols.
34541 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34542 infinite same_comdat_group traversal loop.
34543
34544 2015-03-31 Jakub Jelinek <jakub@redhat.com>
34545
34546 PR plugins/61176
34547 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34548 automatically to $headers.
34549
34550 2015-03-30 Jakub Jelinek <jakub@redhat.com>
34551
34552 PR ipa/65610
34553 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34554 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34555 function.
34556 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34557 Use it.
34558 * ipa-prop.c (param_type_may_change_p): Likewise.
34559 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34560 (remove_unused_scope_block_p): Add in_ctor_dtor_block
34561 argument. Before inlining, preserve
34562 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34563 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
34564 recursive calls.
34565 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34566
34567 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34568
34569 PR ipa/65076
34570 * ipa-inline.c (edge_badness): Base denominator on callee's
34571 grwoth squared.
34572
34573 2015-03-27 Martin Jambor <mjambor@suse.cz>
34574
34575 PR ipa/65478
34576 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34577 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34578 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34579 node_calling_single_call.
34580 * ipa-cp.c (count_callers): New function.
34581 (set_single_call_flag): Likewise.
34582 (initialize_node_lattices): Count callers and set single_flag_call if
34583 necessary.
34584 (incorporate_penalties): New function.
34585 (good_cloning_opportunity_p): Use it, dump new flags.
34586 (propagate_constants_topo): Set node_within_scc flag if appropriate.
34587 * doc/invoke.texi (ipa-cp-recursion-penalty,
34588 ipa-cp-single-call-pentalty): Document.
34589
34590 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34591
34592 PR ipa/65588
34593 * symtab.c (symtab_node::get_partitioning_class): Register vars
34594 are duplicated.
34595 * varpool.c (symbol_table::output_variables) Do not assemble unefined
34596 decls for non-symbols.
34597
34598 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
34599
34600 PR target/65248
34601 * output.h (default_binds_local_p_2): New.
34602 * varasm.c (default_binds_local_p_2): Renamed to ...
34603 (default_binds_local_p_3): This. Don't return true on protected
34604 data symbol if protected data may be external.
34605 (default_binds_local_p): Use default_binds_local_p_3.
34606 (default_binds_local_p_1): Likewise.
34607 (default_binds_local_p_2): New.
34608 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34609 default_binds_local_p_2 if TARGET_MACHO is undefined.
34610
34611 2015-03-27 Jakub Jelinek <jakub@redhat.com>
34612
34613 PR target/65593
34614 * config/i386/i386.c (legitimize_pic_address): If base
34615 is SYMBOL_REF or LABEL_REF using %rip addressing, force
34616 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34617
34618 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34619
34620 PR target/65531
34621 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34622 comdat groups.
34623
34624 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34625
34626 PR ipa/65600
34627 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34628 of optimized out indirect call.
34629 (redirect_to_unreachable): Always build symbol table node for
34630 BUILT_IN_UNREACHABLE
34631
34632 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
34633
34634 PR target/65407
34635 * ira-costs.c (record_reg_classes): Process all constraint string
34636 containing 0-9.
34637
34638 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
34639
34640 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34641 memory_operand.
34642
34643 PR target/65052
34644 * config/c6x/constraints.md (S3): New constraint.
34645 * config/c6x/c6x.md (real_jump): Use it.
34646
34647 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34648
34649 PR middle-end/65595
34650 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34651 do redirection if the call is not optimized out.
34652
34653 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
34654
34655 PR target/65495
34656 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34657 (fchkp-check-incomplete-type): Add LTO.
34658 (fchkp-zero-input-bounds-for-main): Likewise.
34659 (fchkp-first-field-has-own-bounds): Likewise.
34660 (fchkp-narrow-bounds): Likewise.
34661 (fchkp-narrow-to-innermost-array): Likewise.
34662 (fchkp-use-static-bounds): Likewise.
34663 (fchkp-use-static-const-bounds): Likewise.
34664 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34665
34666 2015-03-27 Marek Polacek <polacek@redhat.com>
34667
34668 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
34669
34670 2015-03-27 Marek Polacek <polacek@redhat.com>
34671
34672 PR sanitizer/65583
34673 * ubsan.c (ubsan_create_edge): New function.
34674 (instrument_bool_enum_load): Call it.
34675 (instrument_nonnull_arg): Likewise.
34676 (instrument_nonnull_return): Likewise.
34677 (instrument_object_size): Likewise.
34678
34679 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34680
34681 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
34682 auto_vec.
34683
34684 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34685
34686 PR lto/65536
34687 * lto-streamer.h (class lto_location_cache): New.
34688 (struct data_in): Add location_cache.
34689 (lto_input_location): Update prototype.
34690 (stream_input_location_now): New.
34691 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34692 pointer to location.
34693 (stream_input_location): Update.
34694 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34695 (warn_odr): Apply location cache before warning.
34696 (lto_input_location): Update prototype.
34697 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34698 Use stream_input_location_now.
34699 * lto-streamer-in.c (lto_location_cache::current_cache): New static
34700 variable.
34701 (lto_location_cache::cmp_loc): New function.
34702 (lto_location_cache::apply_location_cache): New function.
34703 (lto_location_cache::accept_location_cache): New function.
34704 (lto_location_cache::revert_location_cache): New function.
34705 (lto_location_cache::input_location): New function.
34706 (lto_input_location): Do location caching.
34707 (stream_input_location_now): New function.
34708 (input_eh_region, input_struct_function_base): Use
34709 stream_input_location_now.
34710 (lto_data_in_create): use new.
34711 (lto_data_in_delete): Use delete.
34712 * tree-streamer-in.c (unpack_ts_block_value_fields,
34713 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34714 lto_input_ts_exp_tree_pointers): Update for cached location api.
34715
34716 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34717
34718 PR ipa/65076
34719 * passes.def: Add pass_nothrow.
34720 * ipa-pure-const.c: (pass_data_nothrow): New.
34721 (pass_nothrow): New.
34722 (pass_nothrow::execute): New.
34723 (make_pass_nothrow): New.
34724 * tree-pass.h (make_pass_nothrow): Declare.
34725
34726 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34727
34728 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34729 edge to change by speculation resolution or redirection.
34730 (edge_set_predicate): Likewise.
34731 (inline_summary_t::duplicate): Likewise.
34732 (remap_edge_summaries): Likewise.
34733
34734 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34735
34736 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34737 New macros.
34738 (can_inline_edge_p): Relax option matching for always inline functions.
34739
34740 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
34741
34742 PR target/65561
34743 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34744 Check operand 4 and operand 0 for equality.
34745 (avx512f_vextract<shuffletype>32x4_1_maskm):
34746 Check operand 6 and operand 0 for equality.
34747 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34748 for equality.
34749 (vec_extract_hi_<mode>_maskm): Ditto.
34750
34751 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34752
34753 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34754 dead calls back to live.
34755 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34756 cross check to ...
34757 (cgraph_node::verify_node): ... here; verify only callee edges,
34758 not caller.
34759 * cif-code.def (CILK_SPAWN): New code.
34760
34761 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34762
34763 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34764 (edge_set_predicate): Use it to mark unreachable edges.
34765 (inline_summary_t::duplicate): Remove unnecesary code.
34766 (remap_edge_summaries): Likewise.
34767 (dump_inline_summary): Report contains_cilk_spawn.
34768 (compute_inline_parameters): Compute contains_cilk_spawn.
34769 (inline_read_section, inline_write_summary): Stream
34770 contains_cilk_spawn.
34771 * ipa-inline.c (can_inline_edge_p): Do not touch
34772 DECL_STRUCT_FUNCTION that may not be available;
34773 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34774 remove check for callee_fun->can_throw_non_call_exceptions and
34775 replace it by optimization attribute check; check for flag_exceptions.
34776 * ipa-inline-transform.c (inline_call): Maintain
34777 DECL_FUNCTION_PERSONALITY
34778 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34779
34780 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34781
34782 PR tree-optimization/65551
34783 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34784 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34785
34786 2015-03-26 Richard Biener <rguenther@suse.de>
34787
34788 PR middle-end/65555
34789 * tree-cfg.c (verify_gimple_call): Do not require a call to
34790 have no LHS if it wasn't recognized as control altering yet.
34791
34792 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34793
34794 PR tree-optimization/64715
34795 * passes.def: Add another instance of pass_object_sizes before ccp1.
34796 * tree-object-size.c (pass_object_sizes::execute): In
34797 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34798 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34799 __bos result and the computed constant. Remove redundant
34800 checks, obsoleted by gimple_call_builtin_p test.
34801
34802 * var-tracking.c (variable_tracking_main_1): Don't track
34803 variables for targetm.no_register_allocation targets.
34804
34805 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
34806
34807 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34808 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34809
34810 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34811
34812 PR target/65569
34813 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34814 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
34815 0.0 is correctly setup.
34816 (extenddftf2_internal): Likewise.
34817
34818 2015-03-25 Sebastian Pop <s.pop@samsung.com>
34819
34820 PR tree-optimization/65177
34821 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34822 (bb_in_bbs): New.
34823 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
34824 edges not adjacent on the path to the original code.
34825
34826 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
34827
34828 PR bootstrap/65537
34829 * doc/install.texi (Building a native compiler): Document new
34830 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
34831 configuration assumes that the host supports the linker plugin.
34832
34833 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
34834
34835 PR target/65508
34836 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34837 chain for generated call.
34838
34839 2015-03-25 Richard Biener <rguenther@suse.de>
34840
34841 * passes.c (pass_manager::execute_early_local_passes): Guard
34842 execution of pass_chkp_instrumentation_passes with
34843 flag_check_pointer_bounds.
34844 (pass_chkp_instrumentation_passes::gate): Likewise.
34845
34846 2015-03-25 Martin Liska <mliska@suse.cz>
34847
34848 PR tree-optimization/65538
34849 * symbol-summary.h (function_summary::~function_summary):
34850 Relese memory for allocated summaries.
34851 (function_summary::release): New function.
34852
34853 2015-03-25 Jakub Jelinek <jakub@redhat.com>
34854
34855 PR lto/65515
34856 * lto-streamer-out.c (DFS::worklist): New struct.
34857 (DFS::worklist_vec): New data member.
34858 (DFS::next_dfs_num): Remove.
34859 (DFS::DFS): Rewritten using worklist instead of recursion,
34860 using most of code from DFS::DFS_write_tree.
34861 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34862 pass it to DFS_write_tree calls.
34863 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34864 quick initial checks push it into worklist_vec and return.
34865
34866 2015-03-25 Richard Biener <rguenther@suse.de>
34867
34868 PR middle-end/65519
34869 * genmatch.c (expr::gen_transform): Re-write to avoid
34870 using gimple_build.
34871
34872 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34873
34874 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34875
34876 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34877
34878 * config/arm/arm.opt (print_tune_info): New option.
34879 * config/arm/arm.c (arm_print_tune_info): New function.
34880 (arm_file_start): Call arm_print_tune_info.
34881 * config/arm/arm-protos.h (struct tune_params): Add comment.
34882 * doc/invoke.texi (@item -mprint-tune-info): New item.
34883 (-mtune): mention it in ARM Option Summary.
34884
34885 2015-03-25 DJ Delorie <dj@redhat.com>
34886
34887 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34888 correct clause.
34889
34890 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
34891 Martin Liska <mliska@suse.cz>
34892
34893 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34894 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34895 (sem_item::add_type): New function.
34896 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34897 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34898 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34899 (sem_function::equals_wpa): Fix typo.
34900 * ipa-icf.h (sem_item::add_type): New function.
34901 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34902 order.
34903
34904 2015-03-24 Jakub Jelinek <jakub@redhat.com>
34905
34906 PR tree-optimization/65533
34907 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34908 with swapped operands, call vect_free_slp_tree on
34909 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34910 vector.
34911
34912 2015-03-24 Richard Biener <rguenther@suse.de>
34913
34914 PR middle-end/65517
34915 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34916 for fixup if necessary.
34917
34918 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
34919
34920 * doc/extend.texi (Function Attributes): Add @cindex entries
34921 for all attributes and regularize their format. Delete text
34922 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
34923 information about "eightbit_data", "tiny_data", and "model"
34924 variable attributes to the Variable Attributes section. Fix
34925 some obvious typos and copy-editing issues.
34926 (Variable Attributes, Type Attributes): Likewise add/fix
34927 @cindex entries for all attributes.
34928
34929 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34930
34931 PR target/65523
34932 * tree-chkp.c (chkp_build_returned_bound): Ignore
34933 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34934
34935 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
34936
34937 PR target/65505
34938 * config/sh/predicates.md (simple_mem_operand,
34939 displacement_mem_operand): Add test for reg.
34940 (short_displacement_mem_operand): Test for displacement_mem_operand
34941 before invoking sh_disp_addr_displacement.
34942 * config/sh/constraints.md (Sdd, Sra): Simplify.
34943 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34944 Remove redundant displacement_mem_operand tests.
34945
34946 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
34947
34948 PR target/65296
34949 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34950 the same -mmcu=MCU more than once.
34951
34952 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34953
34954 PR bootstrap/65522
34955 * ipa-devirt.c: Remove duplicate demangle.h include.
34956
34957 PR target/65504
34958 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34959 on the pseudo.
34960 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34961 REG_POINTER on *destptr after adjusting it for prologue size.
34962
34963 PR ipa/65521
34964 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34965 ultimate_alias_target ()->order ints instead of
34966 ultimate_alias_target () pointers.
34967
34968 2015-03-23 Richard Biener <rguenther@suse.de>
34969
34970 PR tree-optimization/65518
34971 * tree-vect-stmts.c (vectorizable_load): Reject single-element
34972 interleaving cases we generate absymal code for.
34973
34974 2015-03-23 Richard Biener <rguenther@suse.de>
34975
34976 PR tree-optimization/65494
34977 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34978 matches here.
34979 (vect_analyze_slp_instance): But do that here, always and once.
34980
34981 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34982
34983 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34984 adding T or multiplying by T+1 and subracting T.
34985
34986 2015-03-22 Jeff Law <law@redhat.com>
34987
34988 PR rtl-optimization/64317
34989 * Makefile.in (OBJS): Add gcse-common.c
34990 * gcse.c: Include gcse-common.h
34991 (struct modify_pair_s): Move structure definition to gcse-common.h
34992 (compute_transp): Move function to gcse-common.c.
34993 (canon_list_insert): Similarly.
34994 (record_last_mem_set_info): Break out some code and put it into
34995 gcse-common.c. Call into the new common code.
34996 (compute_local_properties): Pass additional arguments to compute_transp.
34997 * postreload-gcse.c: Include gcse-common.h and df.h
34998 (modify_mem_list_set, blocks_with_calls): New variables.
34999 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35000 (get_bb_avail_insn): Pass in the expression index too.
35001 (alloc_mem): Allocate memory for the new bitmaps and lists.
35002 (free_mem): Free memory for the new bitmaps and lists.
35003 (insert_expr_in_table): Record a bitmap index for each entry we
35004 add to the table.
35005 (record_last_mem_set_info): Call into common code in gcse-common.c.
35006 (get_bb_avail_insn): If no available insn was found in the requested
35007 BB. If BB has a single predecessor, see if the expression is
35008 transparent in BB and available in that single predecessor.
35009 (compute_expr_transp): New wrapper for compute_transp.
35010 (eliminate_partially_redundant_load): Pass expression's bitmap_index
35011 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
35012 (gcse_after_reload_main): If there are elements in the hash table,
35013 then compute transparency for all the elements in the hash table.
35014 * gcse-common.h: New file.
35015 * gcse-common.c: New file.
35016
35017 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
35018
35019 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35020 as an adjective.
35021 (System Headers): Likewise.
35022 (Ifdef): Likewise.
35023 (Traditional macros): Likewise.
35024 (Invocation): Likewise.
35025 (Option Index): Likewise.
35026 * doc/cppopts.texi (-M): Likewise.
35027 (-finput-charset): Likewise.
35028 (--help): Likewise.
35029 * doc.invoke.texi (AVR Options): Likewise.
35030 (V850 Options): Likewise.
35031
35032 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
35033
35034 PR ipa/65475
35035 * ipa-devirt.c: Include demangle.h
35036 (odr_type_d): Add field rtti_broken.
35037 (odr_subtypes_equivalent_p): Do not require name to match.
35038 (compare_virtual_tables): Fix typo; if type already has ODR violation,
35039 bypass the tests; be ready for function referneces in vtables that are
35040 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35041 (warn_odr): Give up for nameless types.
35042 (warn_types_mismatch): Report mismatch in mangled names;
35043 report mismatch in anonymous namespaces; look into component types to
35044 give useful error; report when mismatch is dragged in from other ODR
35045 type.
35046 (odr_types_equivalent_p): Match types for being polymorphic; avoid
35047 duplicated diagnostics.
35048 (add_type_duplicate): Reorder checks so more informative ones come
35049 first; fix typo; do not output "the extra base is defined here" when
35050 we did not warn.
35051 (BINFO_N_BASE_BINFOS): Relax sanity check.
35052
35053 2015-03-22 Martin Liska <mliska@suse.cz>
35054 Jakub Jelinek <jakub@redhat.com>
35055
35056 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35057 masks that can potentially include a builtin.
35058 (ix86_add_new_builtins): Introduce fast filter for isa values
35059 that cannot trigger builtin inclusion.
35060
35061 2015-03-22 Martin Liska <mliska@suse.cz>
35062
35063 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35064 (sem_item::update_hash_by_local_refs): Likewise.
35065 (sem_variable::get_hash): Empty line is fixed.
35066 (sem_item_optimizer::execute): Include adding of hash references.
35067 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35068 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35069 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35070 (sem_item::update_hash_by_local_refs): Likewise.
35071
35072 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35073
35074 PR ipa/65502
35075 * ipa-comdats.c (enqueue_references): Walk through thunks.
35076 (ipa_comdats): Likewise.
35077 (set_comdat_group_1): New function.
35078
35079 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35080
35081 PR ipa/65475
35082 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35083 non-polymorphic
35084
35085 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35086 Gerald Pfeifer <gerald@pfeifer.com>
35087
35088 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35089
35090 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35091 Sandra Loosemore <sandra@codesourcery.com>
35092
35093 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35094 function parameter declaration.
35095 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35096 Update arguments to nios2_adjust_call_address().
35097 (sibcall_internal): Rename from *sibcall.
35098 (sibcall_value_internal): Rename from *sibcall_value.
35099 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35100 (nios2_large_got_address): Add target temp reg parameter.
35101 (nios2_got_address): Adjust call to nios2_large_got_address, add
35102 force_reg around it.
35103 (nios2_load_pic_address): Add target temp reg parameter, replace call
35104 to nios2_got_address with corresponding code.
35105 (nios2_legitimize_constant_address): Update call to
35106 nios2_load_pic_address.
35107 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35108 to use temp reg for PIC loading purposes.
35109 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35110 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35111 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35112
35113 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35114
35115 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35116 usage of "the @option{...}".
35117 (-Wopenmp-simd): Likewise.
35118 (-fsanitize-recover): Likewise.
35119 (-fsanitize-undefined-trap-on-error): Likewise.
35120 (-flto): Likewise.
35121 (tracer-dynamic-coverage-feedback): Likewise.
35122 (reorder-block-duplicate-feedback): Likewise.
35123 (loop-unroll-jam-size): Likewise.
35124 (-B): Likewise.
35125 (-I-): Likewise.
35126 (-mabs=legacy): Likewise.
35127 (-mupper-regs-df): Likewise.
35128 (-mupper-regs-sf): Likewise.
35129 (-mpointers-to-nested-functions): Likewise.
35130
35131 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35132
35133 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35134
35135 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35136
35137 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35138 additional index entries and cross-references.
35139 (-fchkp-check-incomplete-type): Likewise.
35140 (-fchkp-first-field-has-own-bounds): Likewise.
35141 (-fchkp-narrow-to-innermost-array): Likewise.
35142 (-fchkp-use-fast-string-functions): Likewise.
35143 (-fchkp-use-nochk-string-functions): Likewise.
35144 (-fchkp-use-static-const-bounds): Likewise.
35145 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35146 (-fchkp-instrument-marked-only): Likewise.
35147 (-fchkp-use-wrappers): Likewise.
35148 (-static-libmpx): Likewise.
35149 (-static-libmpxwrappers): Likewise.
35150 * doc/extend.texi (bnd_legacy): Likewise.
35151 (bnd_instrument): Likewise.
35152 (bnd_variable_size): Likewise.
35153 (Pointer Bounds Checker builtins): Likewise.
35154
35155 2015-03-21 Tom de Vries <tom@codesourcery.com>
35156
35157 PR tree-optimization/65458
35158 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35159 * cgraph.h (cgraph_node): Add parallelized_function field.
35160 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35161 (input_overwrite_node): Read parallelized_function field.
35162 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35163 parallelized_function on cgraph_node for child_fn.
35164 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35165 Remove include of gt-tree-parloops.h.
35166 (parallelized_functions): Remove static variable.
35167 (parallelized_function_p): Rewrite using parallelized_function field of
35168 cgraph_node.
35169 (create_loop_fn): Remove adding to parallelized_functions.
35170 * Makefile.in (GTFILES): Remove tree-parloops.c
35171
35172 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
35173
35174 PR rtl-optimization/64366
35175 * lra.c (lra_update_insn_regno_info): Consider regs in
35176 CALL_INSN_FUNCTION_USAGE memory.
35177
35178 2015-03-20 Richard Biener <rguenther@suse.de>
35179
35180 PR middle-end/64715
35181 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35182 for type comparison and gcc_checking_assert.
35183 (chrec_fold_plus_poly_poly): Likewise.
35184 (chrec_fold_multiply_poly_poly): Likewise.
35185 (chrec_convert_1): Likewise.
35186 * gimplify.c (gimplify_expr): Remove premature folding of
35187 &X + CST to &MEM[&X, CST].
35188
35189 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35190
35191 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35192 already is final.
35193 (ipa_inline): Recompute inline_failed codes.
35194 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35195 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35196 CIF_FINAL_ERROR.
35197
35198 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
35199
35200 PR rtl-optimization/60851
35201 * recog.c (constrain_operands): Accept a pseudo register before reload
35202 for LRA enabled targets.
35203
35204 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
35205
35206 PR target/65240
35207 * config/rs6000/predicates.md (easy_fp_constant): Remove special
35208 -ffast-math handling that kept non-0 constants live in the RTL
35209 until reload. Remove logic testing the number of instructions it
35210 took to create a constant in a GPR that was never used, due to a
35211 test for soft-float earlier.
35212 (memory_fp_constant): Delete, no longer used.
35213
35214 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35215 alternatives for loading non-0 constants into GPRs for hard
35216 floating point that is no longer needed due to changes in
35217 easy_fp_constant. Add support for loading 0.0 into GPRs.
35218 (mov<mode>_hardfloat32): Likewise.
35219 (mov<mode>_hardfloat64): Likewise.
35220 (mov<mode>_64bit_dm): Likewise.
35221 (movtd_64bit_nodm): Likewise.
35222 (pre-reload move FP constant define_split): Delete define_split,
35223 since it is no longer used.
35224 (extenddftf2_internal): Remove GHF constraints that are not valid
35225 for extenddftf2.
35226
35227 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
35228
35229 PR rtl-optimization/63491
35230 * lra-constraints.c (check_and_process_move): Use src instead of
35231 sreg. Remove some dead code.
35232
35233 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
35234
35235 PR ipa/65380
35236 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35237 (sem_variable::merge): Likewise.
35238
35239 2015-03-19 Martin Liska <mliska@suse.cz>
35240
35241 PR ipa/65465
35242 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35243 all fields of cgraph_thunk_info.
35244
35245 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
35246
35247 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35248 clone instrumented thunks.
35249
35250 2015-03-19 Richard Biener <rguenther@suse.de>
35251
35252 Revert
35253 2015-03-10 Richard Biener <rguenther@suse.de>
35254
35255 PR middle-end/63155
35256 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35257 * tree-ssa-coalesce.c: Include timevar.h.
35258 (attempt_coalesce): Handle graph being NULL.
35259 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35260 Split out abnormal coalescing to ...
35261 (perform_abnormal_coalescing): ... this function.
35262 (coalesce_ssa_name): Perform abnormal coalescing without computing
35263 live/conflict.
35264 (verify_ssa_coalescing_worker): New function.
35265 (verify_ssa_coalescing): Likewise.
35266
35267 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
35268 Jakub Jelinek <jakub@redhat.com>
35269
35270 PR sanitizer/65400
35271 * tsan.c (instrument_gimple): Clear tail call flag on
35272 calls.
35273
35274 2015-03-19 Jakub Jelinek <jakub@redhat.com>
35275
35276 PR sanitizer/65400
35277 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35278 call in the return bb.
35279 (find_split_points): Add RETURN_BB argument, don't call
35280 find_return_bb.
35281 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
35282 if true append TSAN_FUNC_EXIT internal call after the call to
35283 the split off function.
35284 (execute_split_functions): Call find_return_bb here.
35285 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35286 Adjust find_split_points and split_function calls.
35287
35288 2015-03-18 DJ Delorie <dj@redhat.com>
35289
35290 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35291 (iorqi3_virt): Likewise.
35292
35293 2015-03-18 Tom de Vries <tom@codesourcery.com>
35294
35295 * tree-parloops.c (parallelize_loops): Make static.
35296 * tree-parloops.h (parallelize_loops): Remove extern declaration.
35297
35298 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
35299
35300 PR middle-end/64491
35301 Revert:
35302 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
35303
35304 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35305 condition would be removed due to undefined behaviour.
35306
35307 2015-03-18 Martin Liska <mliska@suse.cz>
35308
35309 PR ipa/65432
35310 * cgraph.c (cgraph_node::get_create): Remove unnecessary
35311 xstrdup_for_dump wrapper.
35312 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35313 sem_item::name.
35314 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35315 with xstrdup_for_dump.
35316 (sem_variable::equals): Likewise.
35317 (sem_item_optimizer::read_section): Use symtab_node::name instead of
35318 sem_item::name.
35319 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35320 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35321 symtab_node::asm_name with xstrdup_for_dump.
35322 (congruence_class::dump): Use symtab_node::name instead of
35323 sem_item::name.
35324 * ipa-icf.h (symtab_node::name): Remove.
35325 (symtab_node::asm_name): Likewise.
35326
35327 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35328
35329 PR tree-optimization/65450
35330 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35331 function.
35332 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35333 it instead of duplicate_ssa_name_ptr_info.
35334
35335 PR target/65222
35336 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35337
35338 2015-03-18 Richard Biener <rguenther@suse.de>
35339
35340 * tree-data-ref.h (struct access_matrix): Remove.
35341 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35342 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35343 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35344 (am_vector_index_for_loop): Likewise.
35345 (struct data_reference): Remove access_matrix member.
35346 (DR_ACCESS_MATRIX): Remove.
35347 (lambda_vector_new): Add comment.
35348 (lambda_matrix_new): Use XOBNEWVEC.
35349
35350 2015-03-18 Richard Biener <rguenther@suse.de>
35351
35352 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35353 (pass_ch::execute): Cleanup the CFG only if we did sth.
35354 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35355
35356 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35357
35358 * expmed.c (synth_mult): Use std::swap instead of manually
35359 swapping algorithms.
35360
35361 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35362
35363 PR target/65078
35364 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35365
35366 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
35367
35368 PR target/65296
35369 * config/avr/avr.opt (-nodevicelib): New option.
35370 * doc/invoke.texi (AVR Options): Document it.
35371 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35372 libgcc.a, libc.a, libm.a.
35373 * config/avr/specs.h: Same.
35374 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35375 which don't (directly) depend on the device. Print more help.
35376 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35377 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35378 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35379 case of an error.
35380 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35381 for specs file name.
35382 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35383 * config/avr/avr-mcus.def: Adjust initializers and comments.
35384
35385 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
35386
35387 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35388 DECL_ONE_ONLY to check if decl is one only.
35389 * ipa-split.c (consider_split): Limit splitt of one only functions.
35390
35391 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35392
35393 PR tree-optimization/65427
35394 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35395 functions.
35396 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35397
35398 2015-03-16 Marek Polacek <polacek@redhat.com>
35399
35400 * cgraph.h (add_new_static_var): Remove declaration.
35401 * varpool.c (add_new_static_var): Remove function.
35402
35403 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35404
35405 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35406 instead of vec<tree> * with vec_alloc and release for args.
35407 Adjust all users.
35408
35409 PR middle-end/65431
35410 * omp-low.c (delete_omp_context): Only splay_tree_delete
35411 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35412 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
35413
35414 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
35415
35416 PR sanitizer/64820
35417 * cfgexpand.c (align_base): New function.
35418 (alloc_stack_frame_space): Call it.
35419 (expand_stack_vars): Align prev_frame to be sure
35420 data->asan_vec elements aligned properly.
35421
35422 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
35423
35424 PR middle-end/65409
35425 * expr.c (store_field): Do not do a direct block copy if the source is
35426 a PARALLEL with BLKmode.
35427
35428 2015-03-16 Tom de Vries <tom@codesourcery.com>
35429
35430 PR middle-end/65414
35431 Revert:
35432 2015-03-12 Tom de Vries <tom@codesourcery.com>
35433
35434 PR rtl-optimization/64895
35435 * lra-lives.c (check_pseudos_live_through_calls): Use
35436 actual_call_used_reg_set instead of call_used_reg_set, if available.
35437
35438 2015-03-16 Alan Modra <amodra@gmail.com>
35439
35440 PR target/63150
35441 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35442 Modify Z->r bswapdi splitter to use dest in place of scratch.
35443 In r->Z and Z->r bswapdi splitter rename word_high, word_low
35444 to word1, word2 and rearrange logic to suit.
35445 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35446 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
35447 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35448 Add one '?' on r->r. Modify Z->r splitter to avoid need for
35449 early clobber.
35450
35451 2015-03-14 Jakub Jelinek <jakub@redhat.com>
35452
35453 PR tree-optimization/65369
35454 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35455 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35456 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35457
35458 PR tree-optimization/65418
35459 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35460 are casts in the first PLUS_EXPR operand, ensure tbias and
35461 *totallowp are in the inner type.
35462
35463 PR rtl-optimization/65401
35464 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35465 argument. If true, adjust_address_nv of x with big-endian
35466 correction for the mode widening to GET_MODE (y).
35467 (make_field_assignment): Don't do MEM mode widening here.
35468 Use MEM_P instead of GET_CODE == MEM.
35469
35470 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
35471
35472 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35473 the external decls.
35474
35475 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35476
35477 PR target/64600
35478 * config/arm/arm.c (arm_gen_constant, AND case): Use
35479 ARM_SIGN_EXTEND when constructing AND mask.
35480
35481 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35482
35483 * graph.c (print_graph_cfg): Make function names visible and append
35484 parenthesis to it. Also make groups of basic blocks belonging to the
35485 same function visible.
35486
35487 2015-03-12 Richard Biener <rguenther@suse.de>
35488
35489 PR middle-end/44563
35490 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35491 to avoid quadratic behavior with inline expansion splitting blocks.
35492 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35493 with the successor if the predecessor will be merged with it.
35494 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35495 entry block with its successor.
35496
35497 2015-03-13 Richard Biener <rguenther@suse.de>
35498
35499 PR middle-end/44563
35500 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35501 (cleanup_tree_cfg_1): Do not call it.
35502 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35503 (fixup_noreturn_call): Mark the stmt as control altering.
35504 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35505 here.
35506 (pass_data_fixup_cfg): Produce a dump file.
35507 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35508 (need_noreturn_fixup): New global.
35509 (pass_dominator::execute): Fixup queued noreturn calls.
35510 (optimize_stmt): Queue calls that became noreturn for fixup.
35511 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35512 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35513 (el_to_fixup): New global.
35514 (eliminate_dom_walker::before_dom_childre): Queue calls that
35515 became noreturn for fixup.
35516 (eliminate): Fixup queued noreturn calls.
35517 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35518 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35519 (substitute_and_fold_dom_walker::before_dom_children): Queue
35520 alls that became noreturn for fixup.
35521 (substitute_and_fold): Fixup queued noreturn calls.
35522
35523 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
35524
35525 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35526 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35527 are building; for methods check ODR type of class they belong to if
35528 they may lead to a polymorphic call.
35529 (sem_function::compare_polymorphic_p): Be bit smarter about testing
35530 when function may lead to a polymorphic call.
35531 (sem_function::compare_type_list): Remove.
35532 (sem_variable::equals): Update use of compatible_types_p.
35533 (sem_variable::parse_tree_refs): Remove.
35534 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35535 cdtor.
35536 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35537 matching here.
35538 (func_checker::compatible_polymorphic_types_p): Break out from ...
35539 (unc_checker::compatible_types_p): ... here.
35540 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35541 Declare.
35542 (unc_checker::compatible_types_p): Update.
35543 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35544 Remove.
35545
35546 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35547
35548 PR rtl-optimization/65235
35549 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35550 When first element of vec_concat is const_int, calculate its size
35551 using second element.
35552
35553 2015-03-12 Richard Biener <rguenther@suse.de>
35554
35555 PR middle-end/65270
35556 * fold-const.c (operand_equal_p): Fix ordering of resetting
35557 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35558
35559 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
35560
35561 * config/s390/s390.c (s390_reorg): Move code to output nops after label
35562 to s390_reorg ().
35563 (s390_asm_output_function_label): Likewise.
35564 * config/s390/s390.c (s390_asm_output_function_label):
35565 Fix function label alignment with -mhtopatch.
35566 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35567 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35568 ("nop_2_byte"): New define_insn.
35569 ("nop_4_byte"): Likewise.
35570 ("nop_6_byte"): Likewise.
35571 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35572 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35573
35574 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35575
35576 PR target/65103
35577 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35578 register.
35579
35580 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35581
35582 PR target/65044
35583 * toplev.c (process_options): Restrict Pointer Bounds Checker
35584 usage with Address Sanitizer.
35585
35586 2015-03-12 Richard Biener <rguenther@suse.de>
35587
35588 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35589 to split on.
35590 * omp-low.c (expand_omp_taskreg): Split block before removing
35591 the stmt.
35592 (expand_omp_target): Likewise.
35593 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35594 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35595 stmt to split_block.
35596
35597 2015-03-12 Tom de Vries <tom@codesourcery.com>
35598
35599 PR rtl-optimization/64895
35600 * lra-lives.c (check_pseudos_live_through_calls): Use
35601 actual_call_used_reg_set instead of call_used_reg_set, if available.
35602
35603 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35604
35605 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35606 (cgraph_node::remove): Likewise.
35607 (cgraph_node::get_untransformed_body): Likewise.
35608 * varpool.c (varpool_node::remove): Likewise.
35609 (varpool_node::get_constructor): Add sanity check.
35610
35611 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
35612
35613 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35614 old GCC versions.
35615 (-fabi-compat-version): Likewise.
35616 (-ffriend-injection): Likewise.
35617 (-Wdeclaration-after-statement): Likewise.
35618 (-fomit-frame-pointer): Likewise.
35619 (-ftree-coalesce-inlined-vars): Likewise.
35620 (-fvisibility=): Likewise.
35621 * doc/extend.texi (Typeof): Likewise.
35622 (Zero Length): Likewise.
35623 (Escaped Newlines): Likewise.
35624 (Compound Literals): Likewise.
35625 (Function Attributes): Likewise.
35626 (Label Attributes): Likewise.
35627 (Type Attributes): Likewise.
35628 (Function Names): Likewise.
35629 (Other Builtins): Likewise.
35630 (Function Specific Option Pragmas): Likewise.
35631 (C++ Interface): Likewise.
35632
35633 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
35634
35635 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35636
35637 2015-03-11 Marek Polacek <polacek@redhat.com>
35638
35639 PR tree-optimization/65388
35640 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35641
35642 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35643
35644 PR target/65296
35645 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35646 * configure: Regenerate.
35647 * config.in: Regenerate.
35648 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35649 [-mn-flash]: Document it.
35650 [__AVR_ARCH__]: Document avrtiny.
35651
35652 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35653 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35654 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35655
35656 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35657
35658 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
35659
35660 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
35661
35662 PR target/65242
35663 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
35664 allow reloads of PLUS in floating point/VSX registers.
35665
35666 2015-03-11 Junmo Park <junmoz.park@samsung.com>
35667
35668 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
35669 crypto_sha256_fast.
35670 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
35671
35672 2015-03-11 Richard Biener <rguenther@suse.de>
35673
35674 PR tree-optimization/65310
35675 * tree-sra.c (build_ref_for_offset): Also preserve larger
35676 alignment.
35677
35678 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
35679
35680 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
35681
35682 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35683
35684 PR target/65368
35685 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
35686 new define_expand.
35687 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
35688
35689 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35690
35691 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35692 (sem_function::equals_wpa): ... here.
35693
35694 2015-03-10 Marek Polacek <polacek@redhat.com>
35695 Jakub Jelinek <jakub@redhat.com>
35696
35697 PR sanitizer/65367
35698 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35699 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
35700 separately.
35701
35702 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35703
35704 PR target/65286
35705 * config/rs6000/t-linux: For powerpc64* target set
35706 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35707
35708 2015-03-10 Richard Biener <rguenther@suse.de>
35709
35710 PR middle-end/44563
35711 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35712 for redirect_all_calls.
35713
35714 2015-03-10 Marek Polacek <polacek@redhat.com>
35715
35716 * gdbinit.in (pcfun): Define and document.
35717
35718 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
35719
35720 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35721 of libgomp-plugin.h.
35722 (find_target_compiler): Support a case when the path to gcc is
35723 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35724 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35725 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35726 libgomp-plugin.h.
35727 (main): Use GCC_INSTALL_NAME as target_driver_name.
35728 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35729 define.
35730 (mkoffload.o): Remove obsolete include path and defines.
35731 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35732
35733 2015-03-10 Richard Biener <rguenther@suse.de>
35734
35735 PR middle-end/63155
35736 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35737 * tree-ssa-coalesce.c: Include timevar.h.
35738 (attempt_coalesce): Handle graph being NULL.
35739 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35740 Split out abnormal coalescing to ...
35741 (perform_abnormal_coalescing): ... this function.
35742 (coalesce_ssa_name): Perform abnormal coalescing without computing
35743 live/conflict.
35744 (verify_ssa_coalescing_worker): New function.
35745 (verify_ssa_coalescing): Likewise.
35746
35747 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35748
35749 PR target/65296
35750 * config.gcc (extra_options) [avr]: Remove.
35751 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35752 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35753 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35754
35755 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35756 (-mmcu=): Add Var and MissingArgError properties.
35757 (-march=): Remove.
35758 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35759 * config/avr/t-multilib: Regenerate.
35760 * config/avr/specs.h: New file.
35761 * config/avr/driver-avr.c: New file.
35762 * config/avr/genopt.sh: Remove file.
35763 * config/avr/avr-tables.opt: Remove file.
35764 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35765 * config/avr/avr-c.c: Same.
35766 * avr-arch.h: Same.
35767 (avr_current_device): Remove proto.
35768 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35769 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35770 (EXTRA_SPEC_FUNCTIONS): Define.
35771 (avr_devicespecs_file): New specs function proto.
35772 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35773 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35774 (avr_current_device): Remove definition and usage.
35775 (avr_set_core_architecture): New static function.
35776 (avr_option_override): Use it.
35777 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35778 (mcu_name): New static array.
35779 (comparator, avr_archs_str, avr_mcus_str): New static functions.
35780 (avr_inform_devices, avr_inform_core_architectures): New functions.
35781 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35782 (avrlibc.h) [WITH_AVRLIBC]: Include.
35783 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35784 (print_mcu): Rewrite from scratch.
35785 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35786 Forward to avr-specific specs defined in device-specs file.
35787 * config/avr/t-avr (driver-avr.o): New rule.
35788 (avr-devices.o): Depend on avr-arch.h.
35789 (avr-mcus): No more depend on avr-tables.opt.
35790 (avr-tables.opt): Remove rule.
35791 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35792
35793 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35794
35795 * c-family/c.opt (fchkp-use-wrappers): New.
35796 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35797 (chkp_wrap_function): New.
35798 (chkp_build_instrumented_fndecl): Support wrapped
35799 functions.
35800 * doc/invoke.texi (-fcheck-pointer-bounds): New.
35801 (-fchkp-check-incomplete-type): New.
35802 (-fchkp-first-field-has-own-bounds): New.
35803 (-fchkp-narrow-bounds): New.
35804 (-fchkp-narrow-to-innermost-array): New.
35805 (-fchkp-optimize): New.
35806 (-fchkp-use-fast-string-functions): New.
35807 (-fchkp-use-nochk-string-functions): New.
35808 (-fchkp-use-static-bounds): New.
35809 (-fchkp-use-static-const-bounds): New.
35810 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35811 (-fchkp-check-read): New.
35812 (-fchkp-check-write): New.
35813 (-fchkp-store-bounds): New.
35814 (-fchkp-instrument-calls): New.
35815 (-fchkp-instrument-marked-only): New.
35816 (-fchkp-use-wrappers): New.
35817 (-static-libmpx): New.
35818 (-static-libmpxwrappers): New.
35819
35820 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35821
35822 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35823 (CHKP_SPEC): Add wrappers library.
35824 * c-family/c.opt (static-libmpxwrappers): New.
35825
35826 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35827
35828 * config/i386/linux-common.h (LIBMPX_LIBS): New.
35829 (LIBMPX_SPEC): New.
35830 (CHKP_SPEC): New.
35831 * gcc.c (CHKP_SPEC): New.
35832 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35833 * c-family/c.opt (static-libmpx): New.
35834
35835 2015-03-10 Richard Biener <rguenther@suse.de>
35836
35837 PR middle-end/44563
35838 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35839 for compare_type.
35840 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35841 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35842 (cgraph_add_edge_to_call_site_hash): Likewise.
35843 (cgraph_node::get_edge): Likewise.
35844 (cgraph_edge::set_call_stmt): Likewise.
35845 (cgraph_edge::remove_caller): Likewise.
35846
35847 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
35848
35849 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35850 (callee_saved_gpr_regs_size): ... this.
35851 (callee_saved_regs_first_regno): Rename to ...
35852 (callee_saved_first_gpr_regno): ... this.
35853 (callee_saved_regs_last_regno) Rename to ...
35854 (callee_saved_last_gpr_regno): ... this.
35855 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35856 variables.
35857 (nds32_initial_elimination_offset): Likewise.
35858 (nds32_expand_prologue): Likewise.
35859 (nds32_expand_epilogue): Likewise.
35860 (nds32_expand_prologue_v3push): Likewise.
35861 (nds32_expand_epilogue_v3pop): Likewise.
35862 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35863 Adjust renamed variables.
35864 (nds32_output_stack_pop): Likewise.
35865
35866 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
35867
35868 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35869 code in comment.
35870
35871 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35872
35873 PR rtl-optimization/65321
35874 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35875 than shift mode.
35876 * var-tracking.c (use_narrower_mode): Likewise.
35877
35878 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35879
35880 PR tree-optimization/65355
35881 * varasm.c (notice_global_symbol): Do not produce RTL.
35882 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35883 anchor.
35884 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35885 check for section anchors.
35886
35887 2015-03-10 Alan Modra <amodra@gmail.com>
35888
35889 PR target/65286
35890 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35891 to be single-arch by default. Set cpu_is_64bit for powerpc64
35892 given --with-cpu=native.
35893 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35894 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35895 and powerpc64le.
35896 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35897 rs6000_isa_flags rather than TARGET_64BIT.
35898
35899 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
35900 Kaz Kojima <kkojima@gcc.gnu.org>
35901
35902 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35903
35904 2015-03-09 Jakub Jelinek <jakub@redhat.com>
35905
35906 PR lto/65361
35907 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35908 on a TREE_BINFO, instead use BINFO_TYPE.
35909
35910 2015-03-09 Richard Biener <rguenther@suse.de>
35911
35912 PR middle-end/65270
35913 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35914 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35915 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
35916 of that. When comparing dereferences compare alignment.
35917 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35918
35919 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35920
35921 * ipa-inline-analysis.c (check_callers): Check
35922 node->can_remove_if_no_direct_calls_and_refs_p.
35923 (growth_likely_positive): Reorganize to call
35924 can_remove_if_no_direct_calls_p later.
35925 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35926 will_be_removed_from_program_if_no_direct_calls_p): Add
35927 will_inline parameter.
35928 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35929 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35930 Handle inliner case correctly.
35931
35932 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
35933
35934 PR tree-optimization/63743
35935 * cfgexpand.c (reorder_operands): Also reorder if only second operand
35936 had its definition forwarded by TER.
35937
35938 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35939
35940 PR lto/65316
35941 * ipa-utils.h (types_odr_comparable): Add strict argument.
35942 * ipa-devirt.c: Fix whitespace;
35943 (odr_hasher): Remove.
35944 (odr_name_hasher, odr_vtable_hasher): New hashers.
35945 (can_be_name_hashed_p): New predicate.
35946 (hash_type_name): remove.
35947 (hash_odr_name): New.
35948 (odr_name_hasher::hash): new.
35949 (can_be_vtable_hashed_p): New.
35950 (hash_odr_vtable): New.
35951 (odr_vtable_hasher::hash): New.
35952 (types_same_for_odr): Add strict parameter.
35953 (types_odr_comparable): Likewise.
35954 (odr_name_hasher::equal): New.
35955 (odr_vtable_hasher::equal): New.
35956 (odr_name_hasher::remove): New.
35957 (odr_hash_type): Change to hash_table<odr_name_hasher>.
35958 (odr_vtable_hash_type): New.
35959 (odr_vtable_hash): New.
35960 (odr_subtypes_equivalent_p): Do strict comparsion.
35961 (add_type_duplicate): Merge type names; cleanup; avoid type
35962 duplicates.
35963 (register_odr_type): Initialize vtable hash.
35964 (build_type_inheritance_graph): Likewise
35965 (get_odr_type): Reorg to use two hashes.
35966 (dump_possible_polymorphic_call_targets): Move sanity check after debug
35967 output.
35968 (ipa_devirt): Dump type_inheritance_graph.
35969 (types_same_for_odr): Add strict mode.
35970
35971 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35972
35973 PR ipa/65334
35974 * cgraph.h (symtab_node): Add definition_alignment,
35975 can_increase_alignment_p and increase_alignment.
35976 * symtab.c (symtab_node::can_increase_alignment_p,
35977 increase_alignment_1, symtab_node::increase_alignment,
35978 symtab_node::definition_alignment): New.
35979 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35980 can_increase_alignment_p.
35981 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35982 * tree-vect-stmts.c (ensure_base_align): Likewise.
35983 * varasm.c (function_section_1): Use definition_alignment.
35984 (assemble_start_function): Likewise.
35985 (emit_local): likewise.
35986 (build_constant_desc): Likewsie.
35987 (output_constant_def_contents): Likewise.
35988 (place_block_symbol): Likewise.
35989 (output_object_block): Likewise.
35990
35991 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35992
35993 PR ipa/65316
35994 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35995 when outputting debug.
35996
35997 2015-03-07 Marek Polacek <polacek@redhat.com>
35998 Martin Uecker <uecker@eecs.berkeley.edu>
35999
36000 PR sanitizer/65280
36001 * doc/invoke.texi: Update description of -fsanitize=bounds.
36002
36003 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
36004
36005 * tree-ssa-phiopt.c (neg_replacement): Remove.
36006 (tree_ssa_phiopt_worker): Remove negate optimization.
36007
36008 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36009
36010 PR ipa/65302
36011 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36012
36013 2015-03-06 Richard Biener <rguenther@suse.de>
36014
36015 PR middle-end/64928
36016 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36017 and liveout_obstack members.
36018 (calculate_live_on_exit): Remove.
36019 (calculate_live_ranges): Change declaration.
36020 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36021 (new_tree_live_info): Adjust.
36022 (calculate_live_ranges): Delete livein when not wanted.
36023 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36024 Deal with partly deleted live info.
36025 (loe_visit_block): Remove temporary bitmap by using
36026 bitmap_ior_and_compl_into.
36027 (live_worklist): Adjust accordingly.
36028 (calculate_live_on_exit): Make static.
36029 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36030 we do not need livein.
36031
36032 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
36033
36034 * real.c (real_from_string): Fix typo in assertion.
36035
36036 2015-03-06 Alex Velenko <alex.velenko@arm.com>
36037
36038 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36039 the patch.
36040
36041 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36042
36043 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36044
36045 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
36046
36047 PR target/64342
36048 * lra-assigns.c (find_hard_regno_for): Rename to
36049 find_hard_regno_for_1. Add a new parameter.
36050 (find_hard_regno_for): New function using find_hard_regno_for_1.
36051
36052 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36053
36054 PR rtl-optimization/65067
36055 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36056 strict volatile bitfield handling.
36057
36058 2015-03-05 Martin Liska <mliska@suse.cz>
36059
36060 PR ipa/65318
36061 * ipa-icf.c (sem_variable::equals): Compare variables types.
36062
36063 2015-03-05 Richard Henderson <rth@redhat.com>
36064
36065 PR target/65121
36066 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36067 correctly check weak symbol binding.
36068
36069 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36070
36071 PR middle-end/65315
36072 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36073 needed alignment.
36074
36075 2015-03-05 Martin Liska <mliska@suse.cz>
36076
36077 * ipa-inline.c (inline_small_functions): Set default value to
36078 prevent warning during bootstrap.
36079 * tree.h: Add pragma guard that ignores false positives during
36080 bootstrap.
36081
36082 2015-03-05 Richard Biener <rguenther@suse.de>
36083
36084 PR tree-optimization/65310
36085 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36086 Properly preserve alignment of the base of the access.
36087
36088 2015-03-05 Richard Biener <rguenther@suse.de>
36089
36090 PR ipa/65270
36091 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36092 Compare dependence info.
36093
36094 2015-03-05 Richard Biener <rguenther@suse.de>
36095
36096 PR middle-end/65233
36097 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36098 tree-into-ssa.h.
36099 (walk_ssa_copies): Revert last chage. Instead do not walk
36100 SSA names registered for SSA update.
36101
36102 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36103
36104 PR ipa/65270
36105 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36106 vtable references for their containing type.
36107 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36108 and type attributes.
36109
36110 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36111
36112 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36113 before negating it.
36114 * stor-layout.c (finalize_record_size): Revert latest change.
36115
36116 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36117
36118 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36119
36120 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36121
36122 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36123 for correct comdat handling.
36124 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36125 Likewise.
36126 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36127 (used_from_object_file_p_worker): Remove.
36128 (cgraph_node::only_called_directly_or_alised): Add
36129 used_from_object_file_p.
36130 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36131 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36132 can_remove_if_no_direct_calls_and_refs_p.
36133
36134 2015-03-04 Nick Clifton <nickc@redhat.com>
36135
36136 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36137 General register class.
36138 * config/rl78/rl78-real.md: Replace general register constraints
36139 with real+virtual register constraints.
36140
36141 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36142
36143 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36144 from checking for -mhtm option.
36145
36146 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36147
36148 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36149 (struct ipa_sra_check_caller_data): Add has_thunk field.
36150 (ipa_sra_check_caller): Check for thunk.
36151 (ipa_sra_preliminary_function_checks): Give up on function with
36152 thunks.
36153 (ipa_early_sra): Use call_for_symbol_and_aliases.
36154
36155 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
36156
36157 PR target/65249
36158 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36159 called for __stack_chk_guard symbol.
36160
36161 2015-03-03 DJ Delorie <dj@redhat.com>
36162
36163 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36164 inc/dec.
36165 (*addhi3_real): Likewise.
36166 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36167 pattern to match incrementing memory.
36168 * config/rl78/predicates.md (rl78_1_2_operand): New.
36169 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36170 it's the same and only mem.
36171 (rl78_alloc_physical_registers_op2): If there's effectively only
36172 one MEM, transcode it into HL.
36173 (rl78_far_p): Reject addresses that aren't legitimate.
36174
36175 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36176
36177 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36178 negating it.
36179
36180 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36181
36182 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36183
36184 Implement call0 ABI for xtensa
36185 * config/xtensa/constraints.md ("a" constraint): Include stack
36186 pointer in case of call0 ABI.
36187 ("q" constraint): Make empty in case of call0 ABI.
36188 ("D" constraint): Include stack pointer in case of call0 ABI.
36189 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36190 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36191 prototypes.
36192 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36193 variable.
36194 (xtensa_regno_to_class): Make it a local variable in the
36195 function xtensa_regno_to_class.
36196 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36197 macro, function prototype and implementation.
36198 (reg_nonleaf_alloc_order): Make it a local variable in the
36199 function order_regs_for_local_alloc.
36200 (xtensa_conditional_register_usage): New function.
36201 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36202 (xtensa_valid_move): Allow direct moves to stack pointer
36203 register in call0 ABI.
36204 (xtensa_setup_frame_addresses): Only spill register windows in
36205 windowed ABI.
36206 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36207 call0 ABI respectively.
36208 (xtensa_function_arg_1): Only mark a7 register for copying in
36209 windowed ABI.
36210 (xtensa_call_save_reg): New function.
36211 (compute_frame_size): Add space for callee saved register
36212 storage to the frame size in call0 ABI.
36213 (xtensa_expand_prologue): Generate code to set up stack frame
36214 and save callee-saved registers in call0 ABI.
36215 (xtensa_expand_epilogue): New function.
36216 (xtensa_set_return_address): New function.
36217 (xtensa_return_addr): Calculate return address in call0 ABI.
36218 (xtensa_builtin_saveregs): Only mark a7 register for copying and
36219 emit copying code in windowed ABI.
36220 (order_regs_for_local_alloc): Add preferred register allocation
36221 order for non-leaf function in call0 ABI.
36222 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36223 (xtensa_asm_trampoline_template): Add trampoline generation for
36224 call0 ABI.
36225 (xtensa_trampoline_init): Add trampoline initialization for
36226 call0 ABI.
36227 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36228 functions.
36229 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36230 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36231 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36232 ABI call-used registers.
36233 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36234 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36235 call0 ABI.
36236 (REG_CLASS_CONTENTS): Include all registers into the preferred
36237 reload registers set, adjust the set in the
36238 xtensa_conditional_register_usage.
36239 (xtensa_regno_to_class): Drop variable declaration.
36240 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36241 function.
36242 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36243 respectively.
36244 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36245 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36246 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36247 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36248 location in call0 ABI.
36249 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36250 stack adjustment size when handling exception.
36251 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36252 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36253 definitions.
36254 ("return" pattern): Generate ret.n/ret in call0 ABI.
36255 ("epilogue" pattern): Expand epilogue.
36256 ("nonlocal_goto" pattern): Use default in call0 ABI.
36257 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36258 emit eh_set_a0_* depending on ABI.
36259 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36260 ("eh_set_a0_call0", "blockage"): New patterns.
36261
36262 2015-03-03 Martin Liska <mliska@suse.cz>
36263
36264 PR ipa/65287
36265 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36266
36267 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
36268
36269 PR 65138/target
36270 * config/rs6000/rs6000-tables.opt: Regenerate table.
36271
36272 2015-03-03 Renlin Li <renlin.li@arm.com>
36273
36274 * doc/md.texi (@item ^): Change ? into ^.
36275
36276 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
36277
36278 * doc/tm.texi: Regenerated.
36279
36280 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36281
36282 * builtins.c (expand_builtin_return_addr): Add
36283 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36284 surrounding #ifdef.
36285 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36286 definition to 1.
36287 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36288 Likewise.
36289 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36290 undefined.
36291 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36292 paragraph.
36293
36294 2015-03-03 Martin Jambor <mjambor@suse.cz>
36295 Eric Botcazou <ebotcazou@adacore.com>
36296
36297 * tree-sra.c (ipa_sra_check_caller_data): New type.
36298 (has_caller_p): Removed.
36299 (ipa_sra_check_caller): New function.
36300 (ipa_sra_preliminary_function_checks): Use it.
36301
36302 2015-03-03 Martin Liska <mliska@suse.cz>
36303
36304 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36305 instead of if branch.
36306
36307 2015-03-03 Martin Liska <mliska@suse.cz>
36308
36309 PR ipa/65282
36310 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36311
36312 2015-03-23 Jeff Law <law@redhat.com>
36313
36314 PR tree-optimization/65241
36315 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36316 hash table if INSERT is true.
36317
36318 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36319
36320 PR target/65296
36321 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36322
36323 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36324
36325 PR target/64331
36326 * config/avr/avr.c (context.h, tree-pass.h): Include them.
36327 (avr_pass_data_recompute_notes): New static variable.
36328 (avr_pass_recompute_notes): New class.
36329 (avr_register_passes): New static function.
36330 (avr_option_override): Call it.
36331
36332 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36333
36334 Fix various problems with specs file generation.
36335
36336 PR target/65296
36337 * config.gcc (extra_gcc_objs) [avr]: Remove.
36338 * config/avr/driver-avr.c: Remove file.
36339 * config/avr/t-avr (driver-avr.o): Remove rule.
36340 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36341 INCLUDES to build. Depend on TM_H.
36342 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
36343 build warnings. Fix non-matching types and non-existing %-codes.
36344 (tm.h): Include.
36345 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36346 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36347 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36348 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36349 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36350 (LIBGCC_SPEC): Remove definitions.
36351
36352 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36353
36354 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36355 to create a register in testing mode.
36356
36357 2015-03-03 Martin Liska <mliska@suse.cz>
36358 Jan Hubicka <hubicka@ucw.cz>
36359
36360 PR ipa/65263
36361 * cgraph.c (cgraph_node::has_thunk_p): New function.
36362 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36363 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36364 (sem_function::merge): Assert is changed.
36365
36366 2015-03-03 Martin Liska <mliska@suse.cz>
36367 Martin Jambor <mjambor@suse.cz>
36368
36369 PR ipa/65087
36370 * ipa-icf.c (sem_item_optimizer::execute): Change function
36371 return value to boolean.
36372 (sem_item_optimizer::merge_classes): Likewise.
36373 (ipa_icf_driver): Return TODO_remove_functions in case there's
36374 a merge operation processed.
36375 * ipa-icf.h: Change function return value to boolean.
36376
36377 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36378
36379 PR 65138/target
36380 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36381 processor type for 64-bit little endian PowerPC.
36382
36383 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36384 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
36385 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
36386 printing built-in mask so it does not pass NULL pointers.
36387
36388 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36389 -mcpu=powerpc64le.
36390
36391 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
36392
36393 PR target/58158
36394 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36395 !ISA_HAS_FP_CONDMOVE.
36396
36397 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
36398
36399 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36400 reload_completed.
36401
36402 2015-03-02 Ulrich Drepper <drepper@gmail.com>
36403
36404 * doc/invoke.texi (Options for Code Generation Conventions):
36405 Fix URL of DSO paper.
36406
36407 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36408
36409 PR ipa/65130
36410 * ipa-inline.c (check_callers): Looks for recursion.
36411 (inline_to_all_callers): Give up on uninlinable or recursive edges.
36412 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36413 summary of inline clones.
36414 (do_estimate_growth_1): Fix recursion check.
36415
36416 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36417
36418 PR ipa/64988
36419 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36420 comdat groups.
36421
36422 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36423 Aldy Hernandez <aldyh@redhat.com>
36424
36425 PR lto/65276
36426 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36427 when checking TYPE_BINFO.
36428
36429 2015-03-02 Richard Biener <rguenther@suse.de>
36430
36431 PR ipa/65270
36432 * ipa-icf-gimple.c: Include builtins.h.
36433 (func_checker::compare_memory_operand): Compare base alignment.
36434
36435 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36436
36437 PR target/65184
36438 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36439 passed by reference.
36440
36441 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36442
36443 PR target/65183
36444 * tree-chkp.c (chkp_check_lower): Don't check against
36445 zero bounds for already instrumented functions.
36446 (chkp_check_upper): Likewise.
36447 (chkp_fini): Clean pass local data to avoid wrong reusage.
36448
36449 2015-02-28 Martin Liska <mliska@suse.cz>
36450 Jan Hubicka <hubicka@ucw.cz>
36451
36452 * ipa-icf.c (sem_variable::equals): Improve debug output;
36453 get variable constructor.
36454 (sem_variable::parse): Do not filter out too early; give up on
36455 volatile and register vars.
36456 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36457 variables.
36458 * ipa-icf.h (sem_variable::init): Do not set ctor.
36459 (sem_variable::ctor): Remove.
36460
36461 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
36462
36463 PR middle-end/65233
36464 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36465
36466 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36467
36468 * ipa-icf.c: Include stor-layout.h
36469 (sem_function::compare_cgraph_references): Rename to ...
36470 (sem_item::compare_cgraph_references): ... this one.
36471 (sem_variable::equals_wpa): New function
36472 (sem_variable::equals): Do not check stuff already verified by
36473 equals_wpa.
36474 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36475 * ipa-icf.h (sem_item): Add compare_cgraph_references.
36476 (sem_function): Remove compare_cgraph_references.
36477 (sem_variable): Turns equals_wpa into non-inline.
36478
36479 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36480
36481 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36482 (sem_item::add_expr): New function.
36483 (sem_function::hash_stmt): Handle operands of most statements.
36484 (sem_variable::get_hash): Hash the actual constructor.
36485 * ipa-icf.h (sem_item): Add add_expr.
36486 (sem_function): Update prototype of hash_stmt
36487
36488 2015-02-28 Martin Liska <mliska@suse.cz>
36489 Jan Hubicka <hubicka@ucw.cz>
36490
36491 PR ipa/65245
36492 * ipa-icf-gimple.c (func_checker::compare_function_decl):
36493 Remove.
36494 (func_checker::compare_variable_decl): Skip symtab vars.
36495 (func_checker::compare_cst_or_decl): Update.
36496 * ipa-icf.c (sem_function::parse): Do not consider aliases.
36497 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36498 use correct symtab predicates.
36499 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36500 (sem_variable::parse): Update comment.
36501 (sem_item_optimizer::build_graph): Consider ultimate aliases
36502 for references.
36503
36504 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36505
36506 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36507 of OBJ_TYPE_REF.
36508
36509 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36510
36511 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36512 (sem_variable::merge) Likewise.
36513
36514 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36515
36516 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36517 target; also match flag_ipa_devirt.
36518
36519 2015-03-01 Martin Liska <mliska@suse.cz>
36520 Jan Hubicka <hubicka@ucw.cz>
36521
36522 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36523 Validate variable alignment.
36524 * ipa-icf.c (sem_function::equals_private): Be more precise
36525 about non-common function attributes.
36526 (sem_variable::equals): Likewise.
36527
36528 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36529
36530 PR ipa/65237
36531 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36532 across COMDAT group boundary.
36533
36534 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36535
36536 PR ipa/65232
36537 * ipa-icf.c (clear_decl_rtl): New function.
36538 (sem_function::merge): Clear RTL before forming alias.
36539 (sem_variable::merge): Clear RTL before forming alias.
36540
36541 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36542
36543 PR ipa/65236
36544 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36545
36546 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
36547
36548 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36549 to neon_to_gp<q>.
36550
36551 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36552
36553 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36554 a typo in the description.
36555
36556 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36557
36558 PR target/64317
36559 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36560 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36561 * lra-constraints.c: Include "params.h".
36562 (EBB_PROBABILITY_CUTOFF): Use
36563 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36564 (lra_inheritance): Use '<' instead of '<=' for
36565 EBB_PROBABILITY_CUTOFF.
36566 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36567 Document change.
36568
36569 2015-02-27 Martin Liska <mliska@suse.cz>
36570
36571 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36572 vector length condition.
36573
36574 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
36575
36576 * doc/extend.texi (x86 transactional memory intrinsics):
36577 Reorganize discussion of _xbegin. Clarify that the return
36578 value is a bit mask. Expand example and move to end of section.
36579
36580 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36581 Aldy Hernandez <aldyh@redhat.com>
36582
36583 PR rtl-optimization/65220
36584 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36585
36586 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36587
36588 PR target/65032
36589 * lra-remat.c (update_scratch_ops): New.
36590 (do_remat): Call it.
36591 * lra.c (lra_register_new_scratch_op): New. Take code from ...
36592 (remove_scratches): ... here.
36593 * lra-int.h (lra_register_new_scratch_op): New prototype.
36594
36595 2015-02-27 Marek Polacek <polacek@redhat.com>
36596
36597 PR c/65040
36598 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36599 -Wformat-signedness anymore.
36600
36601 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36602
36603 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36604 function.
36605 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36606
36607 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36608
36609 * config/s390/s390.c (enum s390_builtin):
36610 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36611 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36612 (s390_init_builtins): Generate new builtin functions.
36613 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36614 (s390_sfpc, s390_efpc): New pattern definitions.
36615
36616 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36617
36618 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36619 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36620 (s390_builtin_decls): New array.
36621 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36622 (s390_builtin_decl): New function.
36623 (TARGET_BUILTIN_DECL): Define macro.
36624
36625 2015-02-27 Richard Biener <rguenther@suse.de>
36626
36627 PR middle-end/63175
36628 * builtins.c (get_object_alignment_2): Make sure to re-apply
36629 the ANDed mask after recursing to its operand gets us a new
36630 misalignment bit position.
36631
36632 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
36633 Martin Liska <mliska@suse.cz>
36634
36635 PR bootstrap/65150
36636 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36637 Use address_matters_p.
36638 (redirect_all_callers, set_addressable): New functions.
36639 (sem_function::merge): Reorganize and fix merging issues.
36640 (sem_variable::merge): Likewise.
36641 (sem_variable::compare_sections): Remove.
36642 * common.opt (fmerge-all-constants, fmerge-constants): Remove
36643 Optimization flag.
36644 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36645 redirect them.
36646 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36647 decl is used.
36648 (address_matters_1): New function.
36649 (symtab_node::address_matters_p): New function.
36650 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36651 check for merged flag.
36652 * cgraph.h (address_matters_p): Declare.
36653 (symtab_node::address_taken_from_non_vtable_p): Remove.
36654 (symtab_node::address_can_be_compared_p): New method.
36655 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36656 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
36657 Remove.
36658 (comdat_can_be_unshared_p_1) Use address_matters_p.
36659 (update_vtable_references): Fix formating.
36660 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
36661 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
36662 * cgraphclones.c: Preserve merged and icf_merged flags.
36663
36664 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
36665
36666 * doc/extend.texi (Function Attributes): Fix spelling and typos.
36667 (Label Attributes): Likewise.
36668 (Cilk Plus Builtins): Likewise.
36669 (ARC SIMD Built-in Functions): Likewise.
36670 (ARM C Language Extensions (ACLE)): Likewise.
36671 (PowerPC Built-in Functions): Likewise.
36672 (PowerPC Hardware Transactional Memory Built-in Functions):
36673 Likewise.
36674
36675 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36676
36677 PR tree-optimization/65216
36678 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
36679 new stmt and new SSA_NAME for lhs whenever the arguments have
36680 changed and weren't just swapped. Fix comment typo.
36681
36682 PR tree-optimization/65215
36683 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
36684 for PDP endian targets.
36685 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
36686 Fix up formatting issues.
36687 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
36688 size is smaller than the original, adjust MEM_REF offset by the
36689 difference of sizes. Use is_gimple_mem_ref_addr instead of
36690 is_gimple_min_invariant test to avoid adding address temporaries.
36691
36692 2015-02-26 Martin Liska <mliska@suse.cz>
36693 Jan Hubicka <hubicka@ucw.cz>
36694
36695 PR ipa/64693
36696 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36697 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36698 (sem_item_optimizer::process_cong_reduction): Include division by
36699 sensitive references.
36700 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36701 * ipa-ref.c (ipa_ref::address_matters_p): New function.
36702 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36703
36704 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
36705
36706 PR target/65192
36707 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36708 Remove.
36709 * config/avr/avr.c: Same.
36710 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36711 Refuse any constant address not in 0..0xbf.
36712 * config/avr/avr.md (*mov<mode>, *movsf): Remove
36713 tiny_valid_direct_memory_access_range from insn conditions.
36714 (mov<mode>): Don't special-case expansion of avrtiny addresses.
36715
36716 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
36717
36718 PR target/61142
36719 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36720 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36721 * config/sh/predicates.md (const_logical_operand): New predicate.
36722 * config/sh/sh.md: Add new peephole2 patterns.
36723
36724 2015-02-26 Marek Polacek <polacek@redhat.com>
36725
36726 PR ipa/65008
36727 * ipa-inline.c (early_inliner): Recompute inline parameters.
36728
36729 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36730
36731 PR target/65171
36732 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36733 instructions with TImode operands are included in the analysis.
36734
36735 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36736
36737 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36738 of an EDGE_FSM_THREAD.
36739
36740 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
36741
36742 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36743
36744 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
36745
36746 PR debug/46102
36747 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36748
36749 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36750
36751 PR tree-optimization/65048
36752 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36753 (thread_through_all_blocks): Call valid_jump_thread_path.
36754 Remove invalid FSM jump-thread paths.
36755
36756 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36757
36758 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36759 (ipa_write_optimization_summaries): Likewise.
36760 * tree-streamer.h: Include data-streamer.h.
36761 (streamer_mode_table): Declare extern variable.
36762 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36763 * lto-streamer-out.c (lto_output_init_mode_table,
36764 lto_write_mode_table): New functions.
36765 (produce_asm_for_decls): Call lto_write_mode_table when streaming
36766 offloading LTO.
36767 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36768 (lto_create_simple_input_block): Add mode_table argument to the
36769 lto_input_block constructors.
36770 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36771 Likewise.
36772 * data-streamer-in.c (string_for_index): Likewise.
36773 * ipa-inline-analysis.c (inline_read_section): Likewise.
36774 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36775 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36776 * lto-streamer-in.c (lto_read_body_or_constructor,
36777 lto_input_toplevel_asms): Likewise.
36778 (lto_input_mode_table): New function.
36779 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36780 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36781 Use bp_pack_machine_mode.
36782 * real.h (struct real_format): Add name field.
36783 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36784 (class lto_input_block): Add mode_table member.
36785 (lto_input_block::lto_input_block): Add mode_table_ argument,
36786 initialize mode_table.
36787 (struct lto_file_decl_data): Add mode_table field.
36788 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36789 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36790 unpack_ts_decl_common_value_fields,
36791 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36792 * tree-streamer.c (streamer_mode_table): New variable.
36793 * real.c (ieee_single_format, mips_single_format,
36794 motorola_single_format, spu_single_format, ieee_double_format,
36795 mips_double_format, motorola_double_format,
36796 ieee_extended_motorola_format, ieee_extended_intel_96_format,
36797 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36798 ibm_extended_format, mips_extended_format, ieee_quad_format,
36799 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36800 decimal_single_format, decimal_double_format, decimal_quad_format,
36801 ieee_half_format, arm_half_format, real_internal_format): Add name
36802 field.
36803 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36804
36805 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
36806
36807 PR target/65161
36808 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36809 reordering for selective scheduling.
36810
36811 2015-02-26 Terry Guo <terry.guo@arm.com>
36812
36813 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36814 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36815 (arm_arch_no_volatile_ce): Declare new global variable.
36816 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36817 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36818 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36819 (TARGET_NO_VOLATILE_CE): New macro.
36820 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36821 volatile memory access in IT block
36822
36823 2015-02-25 Kai Tietz <ktietz@redhat.com>
36824
36825 PR tree-optimization/61917
36826 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36827 that reduc_def_stmt is null.
36828
36829 2015-02-25 Martin Liska <mliska@suse.cz>
36830
36831 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36832 hard register variables.
36833
36834 2015-02-25 Kai Tietz <ktietz@redhat.com>
36835
36836 PR target/64212
36837 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36838 (symtab::noninterposable_alias): Likewise.
36839
36840 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
36841
36842 PR target/65167
36843 * config/i386/i386.c (ix86_function_arg_regno_p): Support
36844 bounds registers.
36845 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36846
36847 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
36848
36849 PR target/64997
36850 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36851 as split condition; force split via '#' in output pattern.
36852
36853 2015-02-25 Richard Biener <rguenther@suse.de>
36854 Kai Tietz <ktietz@redhat.com>
36855
36856 PR tree-optimization/61917
36857 * tree-vect-loop.c (vectorizable_reduction): Allow
36858 vect_internal_def without reduction to exit graceful.
36859
36860 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36861
36862 PR target/65196
36863 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36864 only with NONDEBUG_INSN_P.
36865
36866 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36867
36868 Use variadic macros with avr-log.c.
36869
36870 * config/avr/avr-protos.h (avr_vdump): New prototype.
36871 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36872 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36873 * config/avr/avr-log.c: Adjust comments.
36874 (avr_vdump): New function.
36875 (avr_vadump): Pass caller as 2nd argument instead of format string.
36876 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36877 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36878
36879 2015-02-25 Jakub Jelinek <jakub@redhat.com>
36880
36881 PR lto/64374
36882 * target.def (target_option_stream_in): New target hook.
36883 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36884 targetm.target_option.post_stream_in if non-NULL.
36885 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36886 * doc/tm.texi: Updated.
36887 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36888 function.
36889 (TARGET_OPTION_POST_STREAM_IN): Redefine.
36890
36891 2015-02-24 Jeff Law <law@redhat.com>
36892
36893 PR target/65117
36894 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36895 of operand 0 and operand 2.
36896 (zero_cost_loop_end, loop_end): Similarly.
36897
36898 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
36899
36900 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36901 CXX_MEM_STAT_INFO.
36902
36903 2015-02-24 DJ Delorie <dj@redhat.com>
36904
36905 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36906 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36907 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36908 instead of hardcoding SImode.
36909
36910 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
36911
36912 * omp-low.c (create_omp_child_function): Tag entrypoint
36913 functions with a special attribute.
36914
36915 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36916
36917 PR target/65058
36918 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36919
36920 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
36921
36922 PR rtl-optimization/65123
36923 * lra-remat.c (operand_to_remat): Check hard regs in insn
36924 definition too.
36925
36926 2015-02-24 Nick Clifton <nickc@redhat.com>
36927
36928 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36929 to the assembler.
36930
36931 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
36932
36933 PR libgomp/64625
36934 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36935 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36936 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36937 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36938 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36939 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36940 (BUILT_IN_GOACC_PARALLEL): Specify as
36941 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36942 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36943 * builtin-types.def
36944 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36945 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36946 Remove function types.
36947 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36948 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36949 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36950 New function types.
36951
36952 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
36953
36954 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36955
36956 2015-02-24 Jakub Jelinek <jakub@redhat.com>
36957
36958 PR tree-optimization/65170
36959 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36960 if val[1] < 0, clear also val[2] and return 3.
36961
36962 2015-02-24 Alan Modra <amodra@gmail.com>
36963
36964 PR target/65172
36965 * config/rs6000/rs6000.c (get_memref_parts): Only return true
36966 when *base is a reg. Handle nested plus addresses. Simplify
36967 pre_modify test.
36968
36969 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
36970
36971 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36972 use natural alignment when optimizing for size.
36973
36974 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
36975
36976 PR target/65153
36977 * config/sh/sh.md (movsicc_true+3): Remove peephole.
36978 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36979 * config/sh/sh.c (replace_n_hard_rtx): Remove.
36980
36981 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
36982
36983 PR fortran/63427
36984 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36985 too big for a wide_int. Implement missing wrapping operation.
36986
36987 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
36988
36989 PR target/65163
36990 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36991 instead of const_int 4294901760.
36992
36993 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
36994
36995 * config/avr/t-avr: Fix typo in comment.
36996
36997 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
36998
36999 * doc/rtl.texi (fma): Clarify documentation.
37000
37001 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
37002
37003 PR debug/58123
37004 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37005 over input_location.
37006
37007 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37008
37009 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37010 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37011 restrict alignments to absolute_biggest_alignment.
37012 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37013 Define.
37014 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37015 * doc/tm.texi: Regenerate.
37016 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37017
37018 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
37019
37020 PR target/64172
37021 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37022
37023 2015-02-20 Richard Biener <rguenther@suse.de>
37024
37025 PR tree-optimization/65136
37026 * tree-ssa-propagate.c: Include cfgloop.h.
37027 (replace_phi_args_in): Avoid replacing loop latch edge PHI
37028 arguments with constants.
37029
37030 2015-02-20 Jakub Jelinek <jakub@redhat.com>
37031 Martin Liska <mliska@suse.cz>
37032
37033 PR target/63892
37034 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37035 don't try to create_thunk if stdarg_p. If
37036 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37037 redirect_callers if possible.
37038 (sem_item_optimizer::execute): Call unregister_hooks here...
37039 (ipa_icf_driver): ... instead of here.
37040
37041 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37042
37043 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37044 Mark operand 0 as earlyclobber in 2nd alternative.
37045 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37046 Write negated shift amount into QI lowpart operand 0 and use it
37047 in the shift step.
37048 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37049
37050 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37051
37052 * cgraph.h (clone_function_name_1): Declare.
37053 * cgraphclones.c (clone_function_name_1): New function.
37054 (clone_function_name): Use it.
37055 * lto-partition.c: Include "stringpool.h".
37056 (must_not_rename, maybe_rewrite_identifier)
37057 (validize_symbol_for_target): New static functions.
37058 (privatize_symbol_name): Use must_not_rename.
37059 (promote_symbol): Call validize_symbol_for_target.
37060 (lto_promote_cross_file_statics): Likewise.
37061 (lto_promote_statics_nonwpa): Likewise.
37062
37063 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37064
37065 PR target/64452
37066 * config/avr/avr.md (pushhi_insn): New insn.
37067 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37068
37069 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37070 Jakub Jelinek <jakub@redhat.com>
37071
37072 * tree-streamer.c (preload_common_nodes): Don't preload
37073 TI_VA_LIST* for offloading.
37074 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37075 in_lto_p.
37076
37077 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37078
37079 * config/pa/pa.c (pa_emit_move_sequence): Always force
37080 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37081 note on insn.
37082
37083 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37084 (TARGET_ASM_RELOC_RW_MASK): Define.
37085 (pa_cannot_force_const_mem): Revert previous change.
37086
37087 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37088 Jan Hubicka <hubicka@ucw.cz>
37089
37090 PR ipa/65028
37091 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37092 across jump functions.
37093
37094 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37095
37096 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37097
37098 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37099
37100 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37101
37102 2015-02-19 Richard Henderson <rth@redhat.com>
37103
37104 PR middle-end/65074
37105 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37106 test DECL_EXTERNAL independent of symtab_node.
37107
37108 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37109
37110 PR lto/65012
37111 * varpool.c (varpool_node::get_constructor): Return early
37112 if this->lto_file_data is NULL.
37113
37114 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37115
37116 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37117 (rank_for_schedule_debug): Update.
37118 (ready_sort): Make static. Move sorting logic to ...
37119 (ready_sort_debug, ready_sort_real): New static functions.
37120 (schedule_block): Sort both debug insns and real insns in preparation
37121 for ready list trimming. Improve debug output.
37122 * sched-int.h (ready_sort): Remove global declaration.
37123
37124 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37125
37126 * ipa-icf.c (sem_function::equals_private): Adjust.
37127 (sem_function::bb_dict_test): Take a vec<int> * instead of
37128 auto_vec<int>.
37129 * ipa-icf.h (bb_dict_test): Likewise.
37130
37131 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37132
37133 PR gcov-profile/64634
37134 * tree-eh.c (frob_into_branch_around): Fix up typos
37135 in function comment.
37136 (lower_catch): Put eh_seq resulting from EH lowering of
37137 the cleanup sequence after the cleanup rather than before it.
37138
37139 2015-02-18 Tom de Vries <tom@codesourcery.com>
37140
37141 * common.opt (fstdarg-opt): New option.
37142 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37143 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37144 (@item -fstdarg-opt): New item.
37145
37146 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
37147
37148 PR target/65064
37149 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37150 for common symbols.
37151
37152 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37153
37154 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37155 insn-modes.h.
37156 (ALL_HOST_OBJS): Add mkoffload.o.
37157 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37158
37159 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
37160
37161 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37162 (compare_virtual_tables): Be smarter about skipping typeinfos;
37163 do sane output on virtual table table mismatch.
37164 (warn_odr): Be ready for forward declarations of enums;
37165 output sane info on base mismatch and virtual table mismatch.
37166 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37167 when only one type is polymorphic.
37168 (get_odr_type): Fix hashtable corruption.
37169 (dump_odr_type): Dump mangled names.
37170
37171 2015-02-18 Richard Biener <rguenther@suse.de>
37172
37173 PR tree-optimization/65063
37174 * tree-predcom.c (determine_unroll_factor): Return 1 if we
37175 have replaced looparound PHIs.
37176
37177 2015-02-18 Martin Liska <mliska@suse.cz>
37178
37179 * lto-streamer.c (lto_streamer_init): Encapsulate
37180 streamer_check_handled_ts_structures with checking macro.
37181
37182 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37183
37184 PR ipa/65087
37185 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37186 section if !implicit_section.
37187 (cgraph_node::create_version_clone_with_body): Likewise.
37188 * trans-mem.c (ipa_tm_create_version): Likewise.
37189
37190 2015-02-18 Richard Biener <rguenther@suse.de>
37191
37192 PR tree-optimization/62217
37193 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37194 into BIVs.
37195
37196 2015-02-18 Marek Polacek <polacek@redhat.com>
37197
37198 PR sanitizer/65081
37199 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37200 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37201 is in range [-16K, -1]. Don't issue run-time error if
37202 (ptr > ptr + offset).
37203
37204 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
37205
37206 * doc/install.texi (nvptx-*-none): New section.
37207 * doc/invoke.texi (Nvidia PTX Options): Likewise.
37208 * config/nvptx/nvptx.opt: Update.
37209
37210 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37211 (access_check): New functions, copied from
37212 config/i386/intelmic-mkoffload.c.
37213 (main): For non-installed testing, look in all COMPILER_PATHs for
37214 GCC_INSTALL_NAME.
37215
37216 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37217
37218 2015-02-18 Andrew Pinski <apinski@cavium.com>
37219 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37220
37221 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37222 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37223
37224 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37225
37226 * ipa-visibility.c (function_and_variable_visibility): Only
37227 check locality if node is not already local.
37228 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37229 call_for_symbol_and_aliases instead of
37230 call_for_symbol_thunks_and_aliases.
37231 (ipa_inline): Likewise.
37232 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37233 first walk aliases.
37234 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37235 call_for_symbol_and_aliases.
37236 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37237 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37238 (ipa_propagate_frequency): Update.
37239 (ipa_profile): Add opt_for_fn gueards.
37240
37241 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37242
37243 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37244 * doc/invoke.texi (SH options): Document it.
37245 * config/sh/sh.c (sh_insn_length_adjustment): Check
37246 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37247
37248 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
37249
37250 * common.opt (fipa-cp-alignment): New.
37251 * ipa-cp.c (ipcp_store_alignment_results): Check
37252 flag_ipa_cp_alignment.
37253 * opts.c (default_options_table): Enable -fipa-cp-alignment for
37254 -O2.
37255 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37256 * doc/invoke.texi: Document -fipa-cp-alignment.
37257
37258 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37259
37260 PR target/64793
37261 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37262 to nil. Adjust comments.
37263
37264 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37265
37266 * ipa-visibility.c (function_and_variable_visibility): Only
37267 check locality if node is not already local.
37268 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37269 call_for_symbol_and_aliases instead of
37270 call_for_symbol_thunks_and_aliases.
37271 (ipa_inline): Likewise.
37272 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37273 first walk aliases.
37274 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37275 call_for_symbol_and_aliases.
37276 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37277 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37278 (ipa_propagate_frequency): Update.
37279 (ipa_profile): Add opt_for_fn guards.
37280
37281 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
37282
37283 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37284 skipping of "strange" tokens.
37285
37286 2015-02-17 Jeff Law <law@redhat.com>
37287
37288 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
37289 obsolete comment.
37290
37291 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
37292
37293 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37294 as forcing a HARD_DEP between instructions, thereby
37295 disallowing rewriting to break dependencies.
37296
37297 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37298
37299 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37300 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37301 variables in boundary that have no inlitalizer encoded and are
37302 not aliases.
37303 * varasm.c (default_binds_local_p_2): External definitions do not
37304 count as definitions here.
37305
37306 2015-02-16 Jeff Law <law@redhat.com>
37307
37308 PR tree-optimization/64823
37309 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37310 statements.
37311 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37312 threading through blocks with PHIs, but no statements.
37313 (thread_through_normal_block): Distinguish between blocks where
37314 we did not process all the statements and blocks with no statements.
37315
37316 2015-02-16 Jakub Jelinek <jakub@redhat.com>
37317 James Greenhalgh <james.greenhalgh@arm.com>
37318
37319 PR ipa/64963
37320 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37321 section if not linkonce. Fix up formatting.
37322 (cgraph_node::create_version_clone_with_body): Copy section.
37323 * trans-mem.c (ipa_tm_create_version): Likewise.
37324
37325 2015-02-16 Richard Biener <rguenther@suse.de>
37326
37327 PR tree-optimization/65077
37328 * tree-ssa-structalias.c (get_constraint_for_1): Handle
37329 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37330 (find_func_aliases): Allow float values to carry pointers again.
37331
37332 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
37333
37334 * doc/install.texi (Specific): Reorder targets list to put
37335 aarch64 in alphabetical order. Add a link to aarch64*-*-*
37336 from the top menu.
37337
37338 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37339 David Edelsohn <dje.gcc@gmail.com>
37340
37341 PR target/65058
37342 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37343 mapping class to external variable or function reference.
37344 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37345 mapping class.
37346
37347 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
37348
37349 PR target/53348
37350 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37351 ASM_WEAKEN_DECL if defined.
37352
37353 2015-02-16 Richard Biener <rguenther@suse.de>
37354
37355 PR lto/65015
37356 * varasm.c (default_file_start): For LTO produced units
37357 emit <artificial> as file directive.
37358
37359 2015-02-16 Richard Biener <rguenther@suse.de>
37360
37361 PR tree-optimization/63593
37362 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37363 stmts and releasing SSA names until...
37364 (execute_pred_commoning): ... after processing all chains.
37365
37366 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37367
37368 PR ipa/65059
37369 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37370 external functions.
37371
37372 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
37373
37374 * doc/bugreport.texi: Adjust section titles throughout the file
37375 to use "Title Case".
37376 * doc/extend.texi: Likewise.
37377 * doc/gcov.texi: Likewise.
37378 * doc/implement-c.texi: Likewise.
37379 * doc/implement-cxx.texi: Likewise.
37380 * doc/invoke.texi: Likewise.
37381 * doc/objc.texi: Likewise.
37382 * doc/standards.texi: Likewise.
37383 * doc/trouble.texi: Likewise.
37384
37385 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
37386
37387 * cgraph.h (symtab_node::has_aliases_p): Simplify.
37388 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37389 * tree.c (lookup_binfo_at_offset): Make static.
37390 (get_binfo_at_offset): Do not shadow offset; add explanatory
37391 comment.
37392
37393 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
37394
37395 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37396 for all floading point loads and stores except those using a register
37397 index address.
37398 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37399 to a register.
37400
37401 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37402
37403 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37404 (do_estimate_growth_1): Record if any uninlinable edge was seen.
37405 (estimate_growth): Handle uninlinable edges correctly.
37406 (check_callers): New.
37407 (growth_likely_positive): Handle aliases correctly.
37408
37409 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37410
37411 * ipa-chkp.c: Use iterate_direct_aliases.
37412 * symtab.c (resolution_used_from_other_file_p): Move inline.
37413 (symtab_node::create_reference): Fix formating.
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): ... this one; move inline.
37420 (symtab_node::call_for_symbol_and_aliases): Move inline;
37421 use iterate_direct_aliases.
37422 (symtab_node::call_for_symbol_and_aliases_1): New method.
37423 (cgraph_node::call_for_symbol_and_aliases): Move inline;
37424 use iterate_direct_aliases.
37425 (cgraph_node::call_for_symbol_and_aliases_1): New method.
37426 (varpool_node::call_for_node_and_aliases): Rename to ...
37427 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37428 use iterate_direct_aliases.
37429 (varpool_node::call_for_symbol_and_aliases_1): New method.
37430 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37431 (ipa_discover_readonly_nonaddressable_var): Update.
37432 * ipa-devirt.c: Fix formating.
37433 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37434 Move inline.
37435 (cgraph_node::call_for_symbol_and_aliases): Move inline.
37436 (cgraph_node::call_for_symbol_and_aliases_1): New function..
37437 * cgraph.h (used_from_object_file_p_worker): Remove.
37438 (resolution_used_from_other_file_p): Move inline.
37439 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37440 (symtab_node::iterate_reference): Move inline.
37441 (symtab_node::iterate_referring): Move inline.
37442 (symtab_node::iterate_direct_aliases): Move inline.
37443 (symtab_node::used_from_object_file_p_worker): Inline into ...
37444 (symtab_node::used_from_object_file_p): Move inline.
37445 * tree-emutls.c (ipa_lower_emutls): Update.
37446 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37447 (varpool_node::call_for_node_and_aliases): Remove.
37448
37449 2015-02-14 Jakub Jelinek <jakub@redhat.com>
37450
37451 PR tree-optimization/62209
37452 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37453 op == range->exp, insert seq and gimplified code after labels
37454 instead of after the phi.
37455
37456 2015-02-13 Jeff Law <law@redhat.com>
37457
37458 PR bootstrap/65060
37459 Revert my change for tree-optimization/64823.
37460
37461 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37462
37463 PR tree-optimization/65053
37464 * tree-ssa-phiopt.c (value_replacement): When moving assign before
37465 cond, either reset VR on lhs or set it to phi result VR.
37466
37467 2015-02-13 Jeff Law <law@redhat.com>
37468
37469 PR tree-optimization/64823
37470 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37471 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37472 threading through blocks with PHIs, but no statements.
37473 (thread_through_normal_block): Distinguish between blocks where
37474 we did not process all the statements and blocks with no statements.
37475
37476 PR rtl-optimization/47477
37477 * match.pd (convert (plus/minus (convert @0) (convert @1): New
37478 simplifier to narrow arithmetic.
37479
37480 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
37481
37482 PR ipa/65028
37483 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37484 polymorphic call info when type is not known to be preserved.
37485
37486 2015-02-13 Maritn Jambor <mjambor@suse.cz>
37487
37488 PR ipa/65028
37489 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37490 (inline_call): Use it.
37491
37492 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
37493
37494 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37495 GOMP_DEVICE_NVIDIA_PTX.
37496
37497 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37498
37499 PR ipa/65034
37500 * stmt.c (emit_case_nodes): Use void_type_node instead of
37501 NULL_TREE as LABEL_DECL type.
37502
37503 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
37504
37505 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37506 constraints.
37507 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37508 symbolic references to data to be forced to constant memory on the
37509 SOM target.
37510
37511 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
37512
37513 PR tree-optimization/65002
37514 * tree-cfg.c (pass_data_fixup_cfg): Don't update
37515 SSA on start.
37516 * tree-sra.c (some_callers_have_no_vuse_p): New.
37517 (ipa_early_sra): Reject functions whose callers
37518 assume function is read only.
37519
37520 2015-02-13 Richard Biener <rguenther@suse.de>
37521
37522 PR lto/65015
37523 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37524 for LTO produced CUs.
37525
37526 2015-02-13 Bin Cheng <bin.cheng@arm.com>
37527
37528 PR tree-optimization/64705
37529 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37530 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37531 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37532 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37533 expand_simple_operations.
37534
37535 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
37536 Richard Henderson <rth@redhat.com>
37537
37538 PR rtl/32219
37539 * cgraphunit.c (cgraph_node::finalize_function): Set definition
37540 before notice_global_symbol.
37541 (varpool_node::finalize_decl): Likewise.
37542 * varasm.c (default_binds_local_p_2): Rename from
37543 default_binds_local_p_1, add weak_dominate argument. Use direct
37544 returns instead of assigning to local variable. Unify varpool and
37545 cgraph paths via symtab_node. Reject undef weak variables before
37546 testing visibility. Reorder tests for simplicity.
37547 (default_binds_local_p): Use default_binds_local_p_2.
37548 (default_binds_local_p_1): Likewise.
37549 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37550 via symtab_node.
37551 (default_elf_asm_output_external): Emit visibility when specified.
37552
37553 2015-02-13 Alan Modra <amodra@gmail.com>
37554
37555 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37556 code setting up r11 for out-of-line fp restore.
37557
37558 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
37559
37560 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37561 (muser-mode): Likewise.
37562
37563 2015-02-13 Alan Modra <amodra@gmail.com>
37564
37565 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37566 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37567
37568 2015-02-12 David Howells <dhowells@redhat.com>
37569
37570 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37571 warning.
37572 * tree-ssa-uninit.c (dump_predicates): Likewise.
37573 * opts.c (print_filtered_help): Likewise.
37574
37575 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37576
37577 * dwarf2out.c (output_die): Use "%s", name instead of name to
37578 avoid -Wformat-security warning.
37579
37580 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37581 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37582 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37583 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37584
37585 2015-02-12 Jason Merrill <jason@redhat.com>
37586
37587 * common.opt (-flifetime-dse): New.
37588
37589 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37590
37591 PR sanitizer/65019
37592 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37593
37594 PR tree-optimization/65014
37595 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37596 use original second operand of arg0 or arg1 instead of
37597 that adjusted by STRIP_NOPS.
37598
37599 2015-02-11 Jeff Law <law@redhat.com>
37600
37601 PR target/63347
37602 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37603 that needs to be queued, just queue it for a single cycle.
37604
37605 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
37606
37607 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37608 bodies of thunks; comment on why.
37609 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37610 symbols are extern.
37611
37612 2015-02-11 Richard Henderson <rth@redhat.com>
37613
37614 PR sanitize/65000
37615 * tree-eh.c (mark_reachable_handlers): Mark source and destination
37616 regions of __builtin_eh_copy_values.
37617
37618 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37619
37620 PR middle-end/65003
37621 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37622 ultimate alias is MEM with SYMBOL_REF satisfying
37623 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
37624 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37625
37626 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
37627
37628 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37629 "diagnostic-core.h".
37630 (main): Initialize progname, and call diagnostic_initialize.
37631
37632 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37633 instead of __OPENMP_TARGET__.
37634
37635 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37636 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37637 hard-coding PTX_ID.
37638
37639 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
37640
37641 * doc/sourcebuild.texi (pie_enabled): Document.
37642
37643 2015-02-11 Martin Liska <mliska@suse.cz>
37644
37645 PR ipa/64813
37646 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37647 a return value for call to a function that is noreturn.
37648
37649 2015-02-11 Richard Biener <rguenther@suse.de>
37650
37651 PR lto/65015
37652 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37653 and -fresolution.
37654
37655 2015-02-11 Andrew Pinski <apinski@cavium.com>
37656
37657 PR target/64893
37658 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
37659 Change the first argument type to size_type_node and add another
37660 size_type_node.
37661 (aarch64_simd_expand_builtin): Handle the new argument to
37662 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
37663 print an out when the first two arguments are not
37664 nonzero integer constants.
37665 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
37666 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
37667
37668 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37669
37670 PR target/61925
37671 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
37672 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
37673 (ix86_set_current_function): Rewritten.
37674 (ix86_add_new_builtins): Temporarily clear current_target_pragma
37675 when creating builtin fndecls.
37676
37677 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37678
37679 PR ipa/65005
37680 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
37681 function.
37682 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
37683 have no comdat group.
37684 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
37685 (lto_output_varpool_node): Always output alias info.
37686 (output_refs): Output refs of boundary aliases, too.
37687 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
37688 (output_symtab): Output call eges in thunks in boundary.
37689 (get_alias_symbol): Remove.
37690 (input_node, input_varpool_node): Do not special case weakrefs.
37691 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37692 alias and thunks targets in the boundary; do not take removed symbols
37693 from their comdat groups.
37694 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37695 (cgraph_node::global_info): Remove.
37696 (cgraph_node::rtl_info): Look through aliases and thunks.
37697 * cgrpah.h (global_info): Remove.
37698 (non_local_p): Remove.
37699
37700 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37701 Sandra Loosemore <sandra@codesourcery.com>
37702
37703 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37704 to inline asm. List dialects in proper order.
37705
37706 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37707 Sandra Loosemore <sandra@codesourcery.com>
37708
37709 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37710
37711 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37712
37713 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37714 modified) reference to Solaris.
37715
37716 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
37717
37718 * doc/extend.texi (Extended Asm): Fix typos.
37719
37720 2015-02-10 Jakub Jelinek <jakub@redhat.com>
37721
37722 PR sanitizer/65004
37723 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37724
37725 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
37726
37727 PR target/64661
37728 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37729 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37730 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37731 * config/sh/constraints.md (Ara, Add): New constraints.
37732 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37733 predicates.
37734 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37735 atomic_mem_operand_0. Don't use force_reg on the memory address.
37736 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37737 Sra constraint. Convert to insn_and_split. Add workaround for
37738 PR 64974.
37739 (atomic_compare_and_swap<mode>_hard): Copy to
37740 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
37741 Use atomic_mem_operand_0 predicate.
37742 (atomic_compare_and_swap<mode>_soft_gusa,
37743 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37744 AraAdd constraints.
37745 (atomic_compare_and_swap<mode>_soft_tcb,
37746 atomic_compare_and_swap<mode>_soft_imask,
37747 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37748 atomic_mem_operand_0 predicate and SraSdd constraints.
37749 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37750 constraint.
37751 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37752 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
37753 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37754 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
37755 force_reg on the memory address.
37756 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37757 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37758 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37759 atomic_mem_operand_1 predicate and Sra constraint.
37760 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37761 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37762 Use atomic_mem_operand_1 predicate.
37763 (atomic_<fetchop_name><mode>_hard): Copy to
37764 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37765 Use atomic_mem_operand_1 predicate.
37766 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37767 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37768 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
37769 insn_and_split. Use atomic_mem_operand_1 predicate.
37770 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37771 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
37772 Use atomic_mem_operand_1 predicate.
37773 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37774 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37775 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37776 in generated insn with original mem operand before emitting the insn.
37777 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37778 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37779 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37780 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37781 Use atomic_mem_operand_1 predicate and AraAdd constraints.
37782 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37783 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37784 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37785 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37786 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37787 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37788 atomic_not_fetch<mode>_soft_tcb,
37789 atomic_<fetchop_name>_fetch<mode>_soft_imask,
37790 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37791 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37792 Use atomic_mem_operand_1 predicate and SraSdd constraints.
37793
37794 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
37795
37796 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37797 and 3 earlyclobber operands.
37798
37799 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37800
37801 * common.opt (fstack-reuse): Mark as optimization.
37802
37803 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37804
37805 PR ipa/64982
37806 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37807
37808 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
37809
37810 PR tree-optimization/64326
37811 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37812
37813 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
37814
37815 PR gcov-profile/61889
37816 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37817
37818 2015-02-10 Richard Biener <rguenther@suse.de>
37819
37820 PR tree-optimization/64995
37821 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37822 value we use is final.
37823 (visit_reference_op_store): Always valueize op.
37824 (visit_use): Properly valueize vuses.
37825
37826 2015-02-10 Richard Biener <rguenther@suse.de>
37827
37828 PR tree-optimization/64909
37829 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37830 pass a scalar-stmt count estimate to the cost model.
37831 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37832
37833 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
37834
37835 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37836 enabled by default together with var-tracking.
37837
37838 2015-02-10 Nick Clifton <nickc@redhat.com>
37839
37840 * config/rl78/rl78.c: Remove DIV attribute code accidentally
37841 included in previous rl78 commit.
37842
37843 2015-02-10 Richard Biener <rguenther@suse.de>
37844
37845 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37846 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37847 return the bitpack.
37848
37849 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37850
37851 PR gcov-profile/61889
37852 * config.in: regenerate.
37853 * configure.in: Likewise.
37854 * configure.ac: Check for ftw.h.
37855 * gcov-tool.c: Check for ftw.h before using nftw.
37856
37857 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37858
37859 PR lto/64076
37860 * ipa-visibility.c (update_visibility_by_resolution_info): Only
37861 assert when not in lto mode.
37862
37863 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37864
37865 * ira-color.c (setup_left_conflict_sizes_p): Simplify
37866 initialization/assignment of conflict_size.
37867
37868 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
37869
37870 PR ipa/64978
37871 * ipa-cp.c (gather_caller_stats): Skip thunks.
37872 (propagate_constants_topo): Skip aliases.
37873
37874 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
37875
37876 PR target/64761
37877 * config/sh/sh.c (sh_option_override): Don't change
37878 -freorder-blocks-and-partition to -freorder-blocks even when
37879 unwinding is enabled.
37880 (sh_can_follow_jump): Return false if the followee jump is
37881 a crossing jump when -freorder-blocks-and-partition is specified.
37882 * config/sh/sh.md (*jump_compact_crossing): New insn.
37883
37884 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
37885 Kaz Kojima <kkojima@gcc.gnu.org>
37886
37887 PR target/64761
37888 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37889 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37890 (sh_can_redirect_branch): Rename to ...
37891 (sh_can_follow_jump): ... this. Constify argument types.
37892 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37893 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37894 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37895 * doc/tm.texi: Regenerate.
37896
37897 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37898
37899 PR sanitizer/64981
37900 * builtins.c (expand_builtin): Call targetm.expand_builtin
37901 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37902
37903 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37904
37905 PR ipa/61548
37906 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37907
37908 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37909
37910 PR ipa/63566
37911 * ipa-icf.c (set_local): New function.
37912 (sem_function::merge): Use it.
37913
37914 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37915
37916 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37917 (add_type_duplicate): Fix comparison of BINFOs.
37918
37919 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37920
37921 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37922 on getting VOID pointer.
37923
37924 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37925
37926 PR target/64979
37927 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37928 va_list escapes.
37929
37930 2015-02-09 Richard Biener <rguenther@suse.de>
37931
37932 * genmatch.c (replace_id): Copy expr_type.
37933
37934 2015-02-09 Richard Biener <rguenther@suse.de>
37935
37936 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37937 (streamer_write_tree_bitfields): Declare.
37938 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37939 properly unpack padding.
37940 (unpack_value_fields): Inline ...
37941 (streamer_read_tree_bitfields): ... here.
37942 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37943 and properly add padding bits.
37944 (streamer_pack_tree_bitfields): Fold into ...
37945 (streamer_write_tree_bitfields): ... this new function,
37946 exposing the bitpack object.
37947 * lto-streamer-out.c (lto_write_tree_1): Call
37948 streamer_write_tree_bitfields.
37949
37950 2015-02-09 Richard Biener <rguenther@suse.de>
37951
37952 PR tree-optimization/54000
37953 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37954 (struct ivopts_data): Add loop_loc member.
37955 (tree_ssa_iv_optimize_loop): Dump loop location.
37956 (create_new_ivs): Likewise, also dump number of IVs generated.
37957
37958 2015-02-09 Martin Liska <mliska@suse.cz>
37959
37960 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37961 just if not yet registered.
37962 (ipa_icf_generate_summary): Register callgraph hooks.
37963
37964 2015-02-08 Andrew Pinski <apinski@cavium.com>
37965
37966 * config/aarch64/aarch64.c (gty_dummy): Delete.
37967
37968 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37969
37970 PR ipa/63566
37971 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37972 (cgraph_node::local_p): Remove thunk related FIXME.
37973
37974 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37975
37976 PR ipa/63566
37977 * i386.c (ix86_function_regparm): Look through aliases to see if callee
37978 is local and optimized.
37979 (ix86_function_sseregparm): Likewise; also use target's SSE math
37980 settings; error out instead of silently generating wrong code
37981 on mismatches.
37982 (init_cumulative_args): Look through aliases.
37983
37984 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37985
37986 PR ipa/63566
37987 * ipa-split.c (execute_split_functions): Split if function has aliases.
37988
37989 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37990
37991 PR ipa/63566
37992 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37993 aliases before trying to expand it.
37994 (cgraph_node::expand_thunk): Fix formating.
37995
37996 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
37997
37998 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37999 (Using Assembly Language with C): Expand introduction.
38000 (Basic Asm): Copy-edit. Add more information about uses of
38001 basic asm.
38002 (Extended Asm): Copy-edit. Document new escape syntax and
38003 %l[label] syntax.
38004 (Global Reg Vars): Copy-edit.
38005 (Local Reg Vars): Likewise.
38006
38007 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
38008
38009 PR debug/2714
38010 PR bootstrap/64256
38011 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38012 (DBX_CONTIN_CHAR): Define.
38013
38014 2015-02-06 Sebastian Pop <s.pop@samsung.com>
38015 Brian Rzycki <b.rzycki@samsung.com>
38016
38017 PR tree-optimization/64878
38018 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38019 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38020 Stop recursion at loop phi nodes after having visited a loop phi node.
38021
38022 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38023
38024 * toplev.c (process_options): Change flag_ipa_ra before creating
38025 optimization_{default,current}_node.
38026
38027 PR ipa/64896
38028 * cgraphunit.c (cgraph_node::expand_thunk): If
38029 restype is not is_gimple_reg_type nor the thunk_fndecl
38030 returns aggregate_value_p, set restmp to a temporary variable
38031 instead of resdecl.
38032
38033 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
38034
38035 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38036
38037 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38038
38039 PR target/64205
38040 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38041 add a general secondary reload handler for SDmode, unless we have
38042 both read/write support for SDmode.
38043
38044 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38045
38046 PR middle-end/64937
38047 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38048 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38049 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38050 1 before, push it to abstract_vec.
38051 (dwarf2out_abstract_function): Adjust caller. Don't call
38052 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38053 DECL_ABSTRACT_P flags for all abstract_vec elts.
38054
38055 2015-02-06 Renlin Li <renlin.li@arm.com>
38056
38057 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38058 complex gimple.
38059 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38060
38061 2015-02-06 Jeff Law <law@redhat.com>
38062
38063 PR target/64889
38064 * config/h8300/h8300.c (push): New argument "in_prologue".
38065 Pass "in_prologue" along to "F".
38066 (h8300_push_pop): Corresponding changes.
38067 (h8300_expand_prologue): Likewise.
38068 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38069
38070 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38071
38072 PR rtl-optimization/64957
38073 PR debug/64817
38074 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38075 IOR rather than for AND.
38076
38077 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38078
38079 PR target/62631
38080 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38081 of shift-add and (add + shift) operations. Rename local variable.
38082
38083 2015-02-05 Jeff Law <law@redhat.com>
38084
38085 PR target/17306
38086 * config/h8300/constraints.md (U): Correctly dectect
38087 "eightbit_data" memory addresses.
38088 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38089 handle (const (plus (symbol_ref (x)))) where x is declared
38090 as an 8-bit data memory address.
38091 * config/h8300/h8300.md (call, call_value): Correctly detect
38092 "funcvec" functions.
38093
38094 PR target/43264
38095 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38096 24 to 28 bits for the H8/300.
38097
38098 2015-02-06 Alan Modra <amodra@gmail.com>
38099
38100 PR target/64876
38101 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38102 (rs6000_call_aix): Use it.
38103
38104 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38105
38106 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38107 check.
38108
38109 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38110
38111 * config/h8300/constraints.md ("U" constraint): Use strict
38112 variant of REG_OK_FOR_BASE_P after reload has started.
38113
38114 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38115
38116 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38117 define to zero if !TARGET_NEON.
38118 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38119
38120 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38121 Trevor Saunders <tsaunders@mozilla.com>
38122
38123 PR ipa/61548
38124 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38125
38126 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38127
38128 PR ipa/61548
38129 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38130 when removing varpool nodes.
38131
38132 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38133
38134 PR ipa/61548
38135 * varpool.c (varpool_node::remove): Fix order of variables.
38136
38137 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38138
38139 PR ipa/64686
38140 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38141 speculation resolution and key updates.
38142
38143 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38144
38145 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38146 about not letting any speculative edges unupdated.
38147
38148 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38149
38150 PR gcov/64123
38151 * gcov-io.c (gcov_var): Export.
38152
38153 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38154
38155 PR middle-end/64922
38156 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38157 edges that become speculative.
38158
38159 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38160
38161 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38162 or DW_LANG_Fortran08.
38163 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38164 DW_LANG_Fortran08.
38165 (gen_compile_unit_die): Handle "GNU Fortran2003" and
38166 "GNU Fortran2008" language strings.
38167 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38168 * langhooks.h (lang_GNU_Fortran): New prototype.
38169 * langhooks.c (lang_GNU_Fortran): New function.
38170 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38171 lang_GNU_Fortran.
38172
38173 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38174
38175 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38176 (RTX_OK_FOR_OLO10_P): Likewise.
38177
38178 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38179
38180 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38181
38182 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38183
38184 PR middle-end/64922
38185 * gimple.c: Include gimple-ssa.h.
38186 (maybe_remove_unused_call_args): New function.
38187 * gimple.h (maybe_remove_unused_call_args): Declare.
38188 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38189 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38190 * gimple-fold.c (gimple_fold_call): Likewise.
38191
38192 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
38193
38194 PR rtl-optimization/64905
38195 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38196 pointer alignment if it isn't needed.
38197
38198 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38199
38200 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38201 cortex-a72.cortex-a53.
38202 * config/aarch64/aarch64-tune.md: Regenerate.
38203 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38204
38205 2015-02-04 Nick Clifton <nickc@redhat.com>
38206
38207 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38208 inside a MEM.
38209
38210 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38211
38212 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38213 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38214 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38215 of DEF_BUILTIN.
38216 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38217 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38218 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38219 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38220 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38221 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38222 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38223 * tree-core.h (enum built_in_function): In between
38224 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38225 for builtins that use DEF_BUILTIN_CHKP macro.
38226
38227 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
38228
38229 PR debug/64817
38230 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38231 operands for tcc_comparison exprs. Fix typos.
38232
38233 PR debug/64817
38234 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38235 of two XORs that have an intervening AND or IOR.
38236
38237 PR debug/64817
38238 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38239 simplification of XOR of AND to not allocate new rtx before
38240 committing to a simplification.
38241
38242 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38243
38244 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38245 manual swaps in all peepholes.
38246
38247 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38248
38249 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38250 of manual swapping implementation.
38251 (aarch64_expand_vec_perm_const_1): Likewise.
38252
38253 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
38254
38255 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38256 (generic_addrcost_table): Remove NAMED_PARAM.
38257 (cortexa57_addrcost_table): Likewise.
38258 (xgene1_addrcost_table): Likewise.
38259 (generic_regmove_table): Likewise.
38260 (cortexa53_regmove_table): Likewise.
38261 (xgene1_regmove_table): Likewise.
38262 (generic_vector_table): Likewise.
38263 (cortexa57_vector_table): Likewise.
38264 (xgene1_vector_table): Likewise.
38265 (generic_tunings): Likewise.
38266 (cortexa53_tunings): Likewise.
38267 (cortexa57_tunings): Likewise.
38268 (xgene1_tunings): Likewise.
38269
38270 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38271
38272 * config/arm/arm-cores.def: Add cortex-a72 and
38273 cortex-a72.cortex-a53.
38274 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38275 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38276 * config/arm/arm-tune.md: Regenerate.
38277 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38278 "cortex-a72.cortex-a53".
38279 * doc/invoke.texi (ARM Options/-mtune): Likewise.
38280
38281 2015-02-04 Nick Clifton <nickc@redhat.com>
38282
38283 PR target/64408
38284 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38285 of accepted codes.
38286 (nonimmediate_di_operand): Likewise.
38287
38288 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38289 prefixes of known F5 using MSP430 MCUs.
38290
38291 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38292
38293 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38294 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38295 instead of __builtin_sqrt.
38296
38297 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
38298
38299 * varasm.c (do_assemble_alias): Follow transparent alias
38300 chain for target.
38301 (default_assemble_visibility): Follow transparent alias
38302 chain for decl name.
38303
38304 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
38305
38306 PR middle-end/62103
38307 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38308 to compute size of referenced value in the constant case.
38309
38310 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38311
38312 PR rtl-optimization/64756
38313 * cse.c (invalidate_dest): New function.
38314 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
38315 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38316 invalidate and do not record it.
38317
38318 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38319
38320 PR target/64660
38321 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38322 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38323 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38324 atomic_nand<mode>_soft_tcb): New insns.
38325 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38326 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38327 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38328 Split into atomic_not_fetchsi_hard if operands[0] is unused.
38329 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38330 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38331 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
38332 atomic_not<mode>_hard if operands[0] is unused.
38333 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38334 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38335 if operands[0] is unused.
38336 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
38337 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38338 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38339 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38340 unused.
38341 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
38342 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38343 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38344 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38345 if operands[0] is unused.
38346 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
38347 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38348 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
38349 atomic_nand_fetchsi_hard if operands[0] is unused.
38350 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
38351 atomic_nand<mode>_hard if operands[0] is unused.
38352 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
38353 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38354 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
38355 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38356 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
38357 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38358 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38359 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38360 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
38361 atomic_not<mode>_hard if operands[0] is unused.
38362 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38363 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38364 unused.
38365 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38366 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38367 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
38368 atomic_nand<mode>_hard if operands[0] is unused.
38369 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38370 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38371
38372 2015-02-03 David Malcolm <dmalcolm@redhat.com>
38373
38374 PR jit/64810
38375 * Makefile.in (GCC_OBJS): Add gcc-main.o.
38376 * gcc-main.c: New file, containing "main" taken from gcc.c.
38377 * gcc.c (do_self_spec): Free decoded_options.
38378 (class driver): Move declaration to gcc.h.
38379 (main): Move declaration and implementation to new file
38380 gcc-main.c.
38381 (driver_get_configure_time_options): New function.
38382 * gcc.h (class driver): Move this declaration here, from
38383 gcc.c.
38384 (driver_get_configure_time_options): New declaration.
38385
38386 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
38387
38388 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38389 cross-module inlining.
38390 * cgraph.h (cgraph_node): Add flag merged.
38391 * ipa-icf.c (sem_function::merge): Maintain it.
38392
38393 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
38394
38395 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38396 instead of OBJECT_P.
38397
38398 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
38399
38400 PR target/62631
38401 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38402 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38403 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38404 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38405
38406 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38407
38408 PR other/63504
38409 * combine.c (reg_n_sets_max): New variable.
38410 (can_change_dest_mode, reg_nonzero_bits_for_combine,
38411 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38412 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38413 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38414 (rest_of_handle_combine): Initialize reg_n_sets_max.
38415
38416 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
38417
38418 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38419 if some always_inline was inlined, apply changes before inlining
38420 heuristically.
38421
38422 2015-02-02 David Malcolm <dmalcolm@redhat.com>
38423
38424 PR jit/64810
38425 * config/arm/arm.c (arm_option_override): Set
38426 arm_selected_arch/cpu/tune to NULL on entry.
38427
38428 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
38429 Andrew Pinski <pinskia@gcc.gnu.org>
38430 Jakub Jelinek <jakub@gcc.gnu.org>
38431
38432 PR target/64231
38433 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38434 integer typing for small model. Use IN_RANGE.
38435
38436 2015-02-02 Richard Biener <rguenther@suse.de>
38437
38438 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38439 * tree-vrp.c (vrp_valueize_1): Likewise.
38440
38441 2015-02-02 Alan Modra <amodra@gmail.com>
38442
38443 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38444 than mem for toc_restore.
38445 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38446 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38447 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38448
38449 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
38450
38451 PR target/64047
38452 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38453 explicit default options.
38454
38455 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
38456
38457 PR ipa/64872
38458 * ipa-utils.c (ipa_merge_profiles): Add release argument.
38459 * ipa-icf.c (sem_function::merge): Do not release body when merging.
38460 * ipa-utils.h (ipa_merge_profiles): Update prototype.
38461
38462 2015-02-01 Jakub Jelinek <jakub@redhat.com>
38463
38464 PR debug/64817
38465 * cfgexpand.c (deep_ter_debug_map): New variable.
38466 (avoid_deep_ter_for_debug): New function.
38467 (expand_debug_expr): If TERed SSA_NAME is in
38468 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38469 instead of trying to expand SSA_NAME's def stmt.
38470 (expand_debug_locations): When expanding debug bind
38471 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38472 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38473 value.
38474 (pass_expand::execute): Call avoid_deep_ter_for_debug on
38475 all debug bind stmts. Delete deep_ter_debug_map after
38476 expand_debug_location if non-NULL and clear it.
38477
38478 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
38479
38480 PR target/64851
38481 * config/sh/sync.md (atomic_fetch_notsi_hard,
38482 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38483 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38484 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38485 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38486 atomic_not_fetch<mode>_soft_imask): New insns.
38487
38488 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38489
38490 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38491 (rank_for_schedule_debug): Split from ...
38492 (rank_for_schedule): ... this.
38493 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38494 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38495
38496 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38497
38498 * doc/md.texi (Machine Constraints): Alphabetize table by target.
38499 * doc/extend.texi (x86 Variable Attributes): Move section to
38500 correct alphabetization after renaming.
38501 (x86 Type Attributes): Likewise.
38502 (Target Builtins): Re-alphabetize menu.
38503 (x86 Built-in Functions): Move section to correct alphabetization
38504 after renaming.
38505 (x86 transactional memory intrinsics): Likewise.
38506 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38507 and x86 Windows Options in table and menu.
38508 (x86 Options): Move section to correct alphabetization after
38509 renaming.
38510 (x86 Windows Options): Likewise.
38511
38512 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38513
38514 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38515 preferred names of the architecture and its 32- and 64-bit
38516 variants.
38517 * doc/invoke.texi: Likewise.
38518 * doc/md.texi: Likewise.
38519
38520 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38521
38522 PR target/64882
38523 * config/i386/predicates.md (address_no_seg_operand): Reject
38524 non-CONST_INT_P operands in invalid mode.
38525
38526 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38527
38528 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38529 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
38530 * config/i386/predicates.md (address_no_seg_operand): Call
38531 address_operand with VOIDmode.
38532 (vsib_address_operand): Ditto.
38533 (address_mpx_no_base_operand): Ditto.
38534 (address_mpx_no_index_operand): Ditto.
38535
38536 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38537
38538 PR target/64688
38539 * lra-constraints.c (original_subreg_reg_mode): New.
38540 (simplify_operand_subreg): Try to simplify subreg of const. Use
38541 original_subreg_reg_mode for it.
38542 (swap_operands): Update original_subreg_reg_mode.
38543 (curr_insn_transform): Set up original_subreg_reg_mode.
38544
38545 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38546
38547 PR target/64617
38548 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38549 function.
38550 (process_alt_operands): Use it.
38551 (curr_insn_transform): Check the optional reload pseudo class is
38552 ok for the mode.
38553
38554 2015-01-30 Joseph Myers <joseph@codesourcery.com>
38555
38556 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38557 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38558 prototype.
38559 * toplev.h (init_asm_output): Update comment on use of
38560 UNKNOWN_LOCATION with fatal_error.
38561 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38562 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38563 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38564 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38565 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38566 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38567 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38568 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38569 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38570 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38571 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38572 fatal_error changed to pass input_location as first argument.
38573
38574 2015-01-30 Martin Liska <mliska@suse.cz>
38575
38576 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38577 in #pragma GCC diagnostic guards.
38578
38579 2015-01-30 Richard Biener <rguenther@suse.de>
38580
38581 PR tree-optimization/64829
38582 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38583 not add a widening conversion pattern but hand off extra
38584 widenings to callers.
38585 (vect_recog_widen_mult_pattern): Handle extra widening produced
38586 by vect_handle_widen_op_by_const.
38587 (vect_recog_widen_shift_pattern): Likewise.
38588 (vect_pattern_recog_1): Remove excess vertical space in dumping.
38589 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38590 (vect_init_vector_1): Likewise.
38591 (vect_get_vec_def_for_operand): Likewise.
38592 (vect_finish_stmt_generation): Likewise.
38593 (vectorizable_load): Likewise.
38594 (vect_analyze_stmt): Likewise.
38595 (vect_is_simple_use): Likewise.
38596
38597 2015-01-29 Jeff Law <law@redhat.com>
38598
38599 * combine.c (try_combine): Fix typo in comment.
38600
38601 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
38602
38603 PR target/64580
38604 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38605 (rs6000_stack_info): Add assert.
38606 (rs6000_output_savres_externs): New function, split off from...
38607 (rs6000_output_function_prologue): ... here. Do not call it for
38608 thunks.
38609
38610 2015-01-29 Jeff Law <law@redhat.com>
38611
38612 PR target/15184
38613 * combine.c (try_combine): If I0 is a memory load and I3 a store
38614 to a related address, increase the "goodness" of doing a 4-insn
38615 combination with I0-I3.
38616 (make_field_assignment): Handle SUBREGs in the ior+and case.
38617
38618 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
38619
38620 PR tree-optimization/64746
38621 * tree-if-conv.c (mask_exists): New function.
38622 (predicate_mem_writes): Save created mask with given size for further
38623 use.
38624 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38625 (ifcvt_repair_bool_pattern): Collect all statements that are root
38626 of bool pattern and use iterative algorithm to remove multiple uses
38627 of predicates, display number of required iterations.
38628
38629 2015-01-29 Richard Biener <rguenther@suse.de>
38630
38631 PR tree-optimization/64853
38632 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38633 stmt will get simulated again.
38634 * tree-ssa-ccp.c (valueize_op_1): Likewise.
38635
38636 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38637
38638 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38639 return_in_pc. Remove redundant assignments.
38640 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38641 (arm_expand_epilogue): Don't compare boolean with true in if condition.
38642
38643 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
38644
38645 * config/i386/i386.c (ix86_mode_after): Make static.
38646
38647 2015-01-29 Richard Biener <rguenther@suse.de>
38648
38649 PR tree-optimization/64844
38650 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38651 dump cost model analysis.
38652 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38653 Do not register adjusted load/store costs here.
38654
38655 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38656 Uros Bizjak <ubizjak@gmail.com>
38657
38658 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
38659 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
38660 using x86_use_pseudo_pic_reg.
38661 * config/i386/i386.c (ix86_conditional_register_usage): Remove
38662 support for fixed PIC register.
38663 (ix86_use_pseudo_pic_reg): Not static any more.
38664
38665 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38666
38667 PR middle-end/64805
38668 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
38669 to avoid error in cgraph node verification.
38670
38671 2015-01-29 Marek Polacek <polacek@redhat.com>
38672
38673 * doc/standards.texi: Reflect that the default for C is gnu11.
38674
38675 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
38676
38677 PR target/64761
38678 * reorg.c (switch_text_sections_between_p): New function.
38679 (relax_delay_slots): Call it when testing if the jump insn
38680 is removable. Use targetm.can_follow_jump when testing if
38681 the conditional branch can follow an unconditional jump.
38682
38683 2015-01-27 Caroline Tice <cmtice@google.com>
38684
38685 Committing VTV Cywin/Ming patch for Patrick Wollgast
38686 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
38687 if -fvtable-verify=preinit/std is used.
38688 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
38689 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
38690 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
38691 if -fvtable-verify=preinit/std is used.
38692 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38693 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38694 if -fvtable-verify=preinit/std is used.
38695 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38696 * config/i386/mingw32.h (LIB_SPEC): Likewise.
38697 * varasm.c (assemble_variable): Add code to properly set the comdat
38698 section and name for the .vtable_map_vars section in case the
38699 target is PE or COFF.
38700
38701 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38702
38703 PR ipa/64801
38704 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38705 make sane BB profile.
38706 (cgraph_node::expand_thunk): Make sane BB profile.
38707 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38708 * cgraph.h (init_lowered_empty_function): Update prototype.
38709 * config/i386/i386.c (make_resolver_func): Update call.
38710 * predict.c (gate): Disable branch prediction pass if
38711 profile is already there.
38712
38713 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38714
38715 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38716 * opth-gen.awk: Likewise.
38717 * common.opt: Mark flag_fp_contract_mode as Optimization.
38718
38719 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
38720
38721 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38722 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38723
38724 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
38725
38726 PR target/64659
38727 * config/sh/predicates.md (atomic_arith_operand,
38728 atomic_logical_operand): Remove.
38729 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38730 (atomic_arith_operand_0): New predicate.
38731 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38732 Use atomic_arith_operand_0 for input values.
38733 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38734 atomic_compare_and_swap<mode>_soft_gusa,
38735 atomic_compare_and_swap<mode>_soft_tcb,
38736 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38737 arith_reg_operand instead of register_operand.
38738 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
38739 atomic_arith_operand_0 for newval input.
38740 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38741 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38742 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38743 arith_reg_operand instead of register_operand.
38744 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38745 fetchop_predicate_1, fetchop_constraint_1_llcs,
38746 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38747 fetchop_constraint_1_imask): New code iterator attributes.
38748 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38749 register_operand. Use fetchop_predicate_1.
38750 (atomic_fetch_<fetchop_name>si_hard,
38751 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38752 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38753 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38754 and arith_reg_operand instead of register_operand. Use
38755 fetchop_predicate_1, fetchop_constraint_1_gusa.
38756 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38757 and arith_reg_operand instead of register_operand. Use
38758 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
38759 to allow R0 usage.
38760 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38761 and arith_reg_operand instead of register_operand. Use
38762 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
38763 to allow R0 usage.
38764 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38765 register_operand. Use atomic_logical_operand_1.
38766 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38767 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38768 arith_reg_operand instead of register_operand.
38769 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38770 Use arith_reg_dest and arith_reg_operand instead of register_operand.
38771 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
38772 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38773 register_operand. Use fetchop_predicate_1.
38774 (atomic_<fetchop_name>_fetchsi_hard,
38775 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38776 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38777 fetchop_constraint_1_llcs.
38778 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38779 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38780 fetchop_constraint_1_gusa.
38781 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38782 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38783 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
38784 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38785 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38786 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
38787 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38788 register_operand. Use atomic_logical_operand_1.
38789 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38790 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38791 arith_reg_operand instead of register_operand.
38792 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38793 arith_reg_operand instead of register_operand. Use logical_operand
38794 and K08. Adjust asm sequence to allow R0 usage.
38795 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38796 arith_reg_operand instead of register_operand. Use logical_operand
38797 and K08.
38798
38799 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38800
38801 PR other/63504
38802 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38803 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38804 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38805 only get_full_len HOST_WIDE_INTs from get_val () array rather than
38806 all bits in *val_wide.
38807
38808 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
38809
38810 * varpool.c (tls_model_names): Fix names.
38811 (varpool_node::dump): Dump tls- prefix for tls models.
38812
38813 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
38814 Bernd Schmidt <bernds@codesourcery.com>
38815 Nathan Sidwell <nathan@codesourcery.com>
38816
38817 * config/nvptx/mkoffload.c: New file.
38818 * config/nvptx/t-nvptx: Add build rules for it.
38819 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38820 (extra_programs): Add mkoffload.
38821 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38822 function.
38823 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38824
38825 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
38826
38827 PR middle-end/64809
38828 * cfgexpand.c (reorder_operands): Skip debug gimples.
38829
38830 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
38831
38832 PR tree-optimization/64277
38833 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38834 range info when possible to refine estimation.
38835
38836 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
38837
38838 PR tree-optimization/64718
38839 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38840 be a 16bit unsigned integer when n->range is 16.
38841 (bswap_replace): Convert src to that type if necessary for all bswap
38842 sizes. Fix rotation right notation in nearby comment. Use bswap_type
38843 set in pass_optimize_bswap::execute ().
38844
38845 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
38846
38847 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38848 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38849 integer and floating point variants.
38850 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38851
38852 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
38853
38854 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38855 for all vector modes.
38856
38857 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38858
38859 PR bootstrap/64612
38860 * doc/sourcebuild.texi (comdat_group): Document.
38861
38862 2015-01-28 Terry Guo <terry.guo@arm.com>
38863
38864 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38865
38866 2015-01-27 David Malcolm <dmalcolm@redhat.com>
38867
38868 * toplev.c (print_version): Add param "show_global_state", and
38869 only print GGC and plugin information if it is true.
38870 (init_asm_output): Pass in "true" for the new param when calling
38871 print_version.
38872 (process_options): Likewise.
38873 (toplev::main): Likewise.
38874 * toplev.h (print_version): Add new param to decl.
38875
38876 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38877
38878 PR ipa/60871
38879 PR ipa/64139
38880 * tree.c (lookup_binfo_at_offset): New function.
38881 (get_binfo_at_offset): Use it.
38882
38883 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38884
38885 PR ipa/64282
38886 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38887 on vtable being vtable.
38888
38889 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
38890
38891 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38892 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38893 -mhotpatch= option.
38894 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38895 -mno-hotpatch options. Change syntax of -mhotpatch= option.
38896 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38897 Renamed.
38898 (s390_hotpatch_trampoline_halfwords_max): Renamed.
38899 (s390_hotpatch_hw_max): New name.
38900 (s390_hotpatch_trampoline_halfwords): Renamed.
38901 (s390_hotpatch_hw_before_label): New name.
38902 (get_hotpatch_attribute): Removed.
38903 (s390_hotpatch_hw_after_label): New name.
38904 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38905 attribute.
38906 (s390_attribute_table): Ditto.
38907 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38908 (s390_function_num_hotpatch_hw): New name.
38909 Remove special handling of inline functions and hotpatching.
38910 Return number of nops before and after the function label.
38911 (s390_can_inline_p): Removed.
38912 (s390_asm_output_function_label): Emit a configurable number of nops
38913 after the function label.
38914 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38915 (TARGET_CAN_INLINE_P) Removed.
38916 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38917
38918 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38919 Jiong Wang <jiong.wang@arm.com>
38920
38921 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38922 of scratch reg.
38923 (cb<optab><mode>1): Likewise.
38924 * config/aarch64/iterators.md (bcond): New define_code_attr.
38925
38926 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38927
38928 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38929 memory accesses.
38930
38931 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38932
38933 * config/s390/s390.c (s390_register_move_cost): Increase costs for
38934 FPR->GPR moves.
38935
38936 2015-01-27 Richard Biener <rguenther@suse.de>
38937
38938 * tree-vrp.c (update_value_range): Intersect the range with
38939 old recorded SSA name range information.
38940
38941 2015-01-27 Nick Clifton <nickc@redhat.com>
38942
38943 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38944 BC, DE and HL registers directly, not via AX.
38945 When decrementing the stack pointer by a large amount, transfer SP
38946 into AX and perform the subtraction there.
38947 (rl78_expand_epilogue): Perform the inverse of the above
38948 enhancements.
38949
38950 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38951
38952 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38953
38954 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38955 Yury Gribov <y.gribov@samsung.com>
38956
38957 PR ubsan/64741
38958 * ubsan.c (ubsan_source_location): Refactor code.
38959 (ubsan_type_descriptor): Update type size. Refactor code.
38960
38961 2015-01-27 Richard Biener <rguenther@suse.de>
38962
38963 PR tree-optimization/56273
38964 PR tree-optimization/59124
38965 PR tree-optimization/64277
38966 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38967 from the first VRP pass.
38968
38969 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38970
38971 PR ipa/64776
38972 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38973 handle the first argument in the same loop as all the other arguments.
38974
38975 PR rtl-optimization/61058
38976 * jump.c (cleanup_barriers): Update basic block boundaries
38977 if BLOCK_FOR_INSN is non-NULL on PREV.
38978
38979 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
38980
38981 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38982 bounds narrowing, already instrumented calls and calls to
38983 not instrumentable functions.
38984
38985 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38986
38987 PR tree-optimization/64807
38988 * wide-int.cc (wi::divmod_internal): Clear
38989 b_dividend[dividend_blocks_needed].
38990
38991 2015-01-26 DJ Delorie <dj@redhat.com>
38992
38993 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38994 volatile memory references.
38995
38996 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
38997
38998 PR target/49263
38999 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39000 remove_insn.
39001 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39002 shifts if it already fits into K08.
39003
39004 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39005
39006 PR ipa/64730
39007 * ipa-inline.c (inline_small_functions): Print "unknown" even
39008 if edge->call_stmt is non-NULL, but has builtins or unknown
39009 location.
39010
39011 PR middle-end/64421
39012 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39013 with asterisk, skip the first character.
39014
39015 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39016
39017 PR target/64806
39018 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39019 order change.
39020
39021 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
39022
39023 PR target/64795
39024 * config/i386/i386.md (*movdi_internal): Also check operand 0
39025 to determine TYPE_LEA operand.
39026 (*movsi_internal): Ditto.
39027
39028 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39029
39030 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39031 OPTION_MASK_QUAD_MEMORY_ATOMIC.
39032
39033 2015-01-26 Renlin Li <renlin.li@arm.com>
39034
39035 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39036 the comment.
39037 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39038 for higher part.
39039
39040 2015-01-26 Richard Biener <rguenther@suse.de>
39041
39042 PR middle-end/64764
39043 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39044 combining two BIT_AND_EXPR predicates.
39045
39046 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39047
39048 PR bootstrap/64754
39049 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39050
39051 2015-01-26 Terry Guo <terry.guo@arm.com>
39052
39053 * config/arm/arm.c (arm_file_start): Update the assignment of
39054 Tag_ABI_HardFP_use.
39055
39056 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39057
39058 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39059 pipeline model.
39060 config/arm/arm.md: Include the new Cortex-A57 model.
39061 (generic_sched): Don't use generic_sched when tuning for
39062 Cortex-A57.
39063
39064 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39065 Uros Bizjak <ubizjak@gmail.com>
39066
39067 * config/i386/i386.c (get_builtin_code_for_version): Add
39068 support for BMI and BMI2 multiversion functions.
39069
39070 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39071
39072 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39073 (extract_bit_field): Likewise.
39074 (extract_low_bits): Likewise.
39075 (expand_mult): Likewise.
39076 (expand_mult_highpart_adjust): Likewise.
39077
39078 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39079
39080 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39081 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39082 * config/i386/i386.c (processor_model): Add
39083 M_INTEL_COREI7_BROADWELL.
39084 (arch_names_table): Add "broadwell".
39085
39086 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39087
39088 PR target/49263
39089 PR target/53987
39090 PR target/64345
39091 PR target/59533
39092 PR target/52933
39093 PR target/54236
39094 PR target/51244
39095 * config/sh/sh-protos.h
39096 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39097 sh_extending_set_of_reg::use_as_unextended_reg,
39098 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39099 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39100 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39101 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39102 (sh_treg_insns): New class.
39103 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39104 (scope_counter): New class.
39105 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39106 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39107 sh_extending_set_of_reg::can_use_as_unextended_reg,
39108 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39109 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39110 sh_split_treg_set_expr): New functions.
39111 (addsubcosts): Handle treg_set_expr.
39112 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39113 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39114 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39115 (sh_insn_operands_modified_between_p): Make non-static.
39116 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39117 simple_mem_operand in addition to displacement_mem_operand.
39118 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39119 (treg_set_expr, treg_set_expr_not_const01,
39120 arith_reg_or_treg_set_expr): New predicates.
39121 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39122 arith_or_int_operand instead of logical_operand. Convert to
39123 insn_and_split. Try to optimize constant operand in splitter.
39124 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39125 (*tstqi_t_zero): Delete.
39126 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39127 (tstsi_t_and_not): Delete.
39128 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39129 Convert to insn_and_split.
39130 (unnamed split, tstsi_t_zero_extract_xor,
39131 tstsi_t_zero_extract_subreg_xor_little,
39132 tstsi_t_zero_extract_subreg_xor_big): Delete.
39133 (*tstsi_t_shift_mask): New insn_and_split.
39134 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39135 to recombine with surrounding insns when splitting.
39136 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39137 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39138 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39139 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39140 (*cbranch_div0s: Delete.
39141 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39142 Try to recombine with surrounding insns when splitting. Add operand
39143 order variants.
39144 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39145 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39146 *addc_r_r_msb, *addc_2r_msb): Delete.
39147 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
39148 order variant.
39149 (*addc_negreg_t): New insn_and_split.
39150 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39151 Try to recombine with surrounding insns when splitting.
39152 Add operand order variants.
39153 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39154 insn_and_split patterns.
39155 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
39156 surrounding insns when splitting.
39157 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39158 (*rotcl): Likewise. Add zero_extract variant.
39159 (*ashrsi2_31): New insn_and_split.
39160 (*negc): Convert to insn_and_split. Use treg_set_expr.
39161 (*zero_extend<mode>si2_disp_mem): Update comment.
39162 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39163 condition.
39164 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
39165 with surrounding insns when splitting.
39166 (any_treg_expr_to_reg): New insn_and_split.
39167 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39168 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39169 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39170 *zero_extract_2): New single bit zero extract patterns.
39171 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39172 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39173 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39174 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39175 set destination.
39176 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39177 register_operand for set source.
39178
39179 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
39180
39181 * i386.opt (prefetch_sse): New targetsave.
39182 * i386.c (ix86_function_specific_save): Save prefetch_sse.
39183 (ix86_function_specific_restore): Restore prefetch_sse and initialize
39184 ix86_cost/ix86_tune_cost.
39185
39186 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39187
39188 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39189 Support the JIT by using 0 as the language type.
39190
39191 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
39192
39193 PR target/64317
39194 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
39195 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39196 (mark_regno_live, process_bb_lives): Pass new parameter value to
39197 make_hard_regno_born.
39198
39199 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39200
39201 PR rtl-optimization/63637
39202 PR rtl-optimization/60663
39203 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39204 if elt->cost is MAX_COST for ASM_OPERANDS.
39205 (find_sets_in_insn): Fix up comment typo.
39206 (cse_insn): Don't set src_volatile for all non-volatile
39207 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39208 or with "memory" clobber. Set elt->cost to MAX_COST
39209 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
39210 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39211
39212 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39213
39214 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39215 alternative 1.
39216
39217 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39218
39219 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39220 libgcc/config/i386/elf-lib.h.
39221
39222 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39223
39224 PR driver/64737
39225 * gcc.c (print_configuration): Don't print a blank line at the end
39226 here...
39227 (run_attempt): ... but here unstead.
39228
39229 PR middle-end/64734
39230 * omp-low.c (scan_sharing_clauses): Don't ignore
39231 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39232 on target data/update constructs.
39233
39234 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
39235
39236 PR target/50928
39237 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39238 (DEBUG_RELOAD): Removed define.
39239 (m32c_limit_reload_class): Enable traces with if DEBUG0.
39240 (m32c_function_arg): Added a type cast.
39241 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39242 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39243 * config/m32c/bitops.md (andqi3_16): Likewise.
39244 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39245 (push_a01_l): Likewise.
39246
39247 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39248
39249 PR jit/64721
39250 * main.c (main): Construct toplev instances with init_signals=true.
39251 * toplev.c (general_init): Add param "init_signals", and use it to
39252 conditionalize the calls to signal and host_hooks.extra_signals.
39253 (toplev::toplev): Add param "init_signals".
39254 (toplev::main): When invoking general_init, pass m_init_signals
39255 to control whether signal-handlers are installed.
39256 * toplev.h (toplev::toplev): Add param "init_signals".
39257 (toplev::m_init_signals): New field.
39258
39259 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39260
39261 PR jit/64722
39262 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39263 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39264 latter may be affected by the former (e.g. on i686).
39265
39266 2015-01-23 Martin Liska <mliska@suse.cz>
39267
39268 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39269 false positive during profiledbootstrap.
39270
39271 2015-01-23 Tom de Vries <tom@codesourcery.com>
39272
39273 PR libgomp/64672
39274 * lto-opts.c (lto_write_options): Output non-explicit conservative
39275 -fno-openacc.
39276 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39277 (append_compiler_options): Pass -fopenacc through.
39278
39279 2015-01-23 Tom de Vries <tom@codesourcery.com>
39280
39281 PR libgomp/64707
39282 * lto-opts.c (lto_write_options): Output non-explicit conservative
39283 -fno-openmp.
39284 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39285 (append_compiler_options): Pass -fopenmp through.
39286
39287 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39288
39289 PR debug/64511
39290 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39291 GTY markup.
39292
39293 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39294 * diagnostic.def (DK_ICE_NOBT): New kind.
39295 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39296 like DK_ICE, but never print backtrace.
39297 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39298 (internal_error_no_backtrace): New function.
39299 * gcc.c (execute): Use internal_error_no_backtrace instead of
39300 internal_error.
39301
39302 2015-01-22 Jeff Law <law@redhat.com>
39303
39304 PR target/52076
39305 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39306 improve code density for small immediate to memory case.
39307 (insv): Better handle bitfield assignments when the field is
39308 being set to all ones.
39309 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39310 operand predicate.
39311
39312 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39313 Jakub Jelinek <jakub@redhat.com>
39314
39315 PR middle-end/64729
39316 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39317 for !TARGET_LIBC_PROVIDES_SSP version and
39318 -fstack-protector-{all,strong,explicit} otherwise.
39319 * config/freebsd.h (LINK_SSP_SPEC): Handle
39320 -fstack-protector-{strong,explicit}.
39321
39322 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
39323 H.J. Lu <hongjiu.lu@intel.com>
39324
39325 PR ipa/64694
39326 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39327 heap.
39328
39329 2015-01-22 Wei Mi <wmi@google.com>
39330
39331 PR rtl-optimization/64557
39332 * dse.c (record_store): Call get_addr for mem_addr.
39333 (check_mem_read_rtx): Likewise.
39334
39335 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
39336
39337 * fold-const.c (const_binop): Add early return for non-tcc_binary.
39338
39339 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
39340
39341 * toplev.c (init_local_tick): Process the failure when read
39342 fails for random_seed.
39343
39344 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39345 'pretty_name' to avoid memory overflow.
39346
39347 2015-01-22 Richard Biener <rguenther@suse.de>
39348
39349 PR middle-end/64728
39350 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39351 abnormal coalescing on undefined SSA names.
39352
39353 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
39354
39355 PR target/64688
39356 PR target/64477
39357 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39358 for alternative 3.
39359 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39360
39361 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
39362
39363 PR middle-end/63325
39364 * fold-const.c (fold_checksum_tree): Don't include value of
39365 expr->decl_with_vis.symtab_node in the checksum.
39366
39367 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39368
39369 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39370
39371 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
39372
39373 PR driver/64690
39374 * gcc.c (insert_comments): New function.
39375 (try_generate_repro): Call it.
39376 (append_text): Removed.
39377
39378 2015-01-22 Richard Biener <rguenther@suse.de>
39379
39380 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39381 with IL incompatible options. Properly honor user optimize
39382 attributes.
39383
39384 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
39385
39386 PR rtl-optimization/64682
39387 * combine.c (distribute_notes): When moving a death note for
39388 a register that is set in the new I2, make sure to put it
39389 before that new I2.
39390
39391 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
39392
39393 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39394 not TARGET_DEFAULT.
39395
39396 2015-01-21 Jakub Jelinek <jakub@redhat.com>
39397
39398 PR debug/64511
39399 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39400 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39401 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39402
39403 PR sanitizer/64706
39404 * doc/invoke.texi (-fsanitize=vptr): Document.
39405
39406 PR rtl-optimization/62078
39407 * dse.c: Include cfgcleanup.h.
39408 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39409 anything call purge_all_dead_edges and cleanup_cfg at the end
39410 of the pass.
39411
39412 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
39413
39414 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39415 edges.
39416
39417 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
39418
39419 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39420 decl attribute.
39421
39422 2015-01-21 David Sherwood <david.sherwood@arm.com>
39423 Tejas Belagod <Tejas.Belagod@arm.com>
39424
39425 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39426 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39427 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39428 Removed.
39429
39430 2015-01-21 David Sherwood <david.sherwood@arm.com>
39431 Tejas Belagod <Tejas.Belagod@arm.com>
39432
39433 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39434 (aarch64_reverse_mask): New decls.
39435 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39436 (insn_count): New mode_attr.
39437 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39438 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39439 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39440 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39441 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39442 (aarch64_simd_st4): New patterns.
39443 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39444 (aarch64_reverse_mask): New functions.
39445
39446 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39447
39448 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39449 Declare.
39450 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39451 addressing modes for BE.
39452 (aarch64_print_operand): Add 'R' specifier.
39453 (aarch64_simd_disambiguate_copy): Delete.
39454 (aarch64_simd_emit_reg_reg_move): New function.
39455 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39456 in define_splits for structural moves.
39457 (mov<mode>): Use less restrictive predicates.
39458 (*aarch64_mov<mode>): Simplify and only allow for LE.
39459 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39460
39461 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39462
39463 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39464
39465 2015-01-21 Richard Henderson <rth@redhat.com>
39466
39467 PR target/64669
39468 * ccmp.c (used_in_cond_stmt_p): Remove.
39469 (expand_ccmp_expr): Don't use it.
39470
39471 2015-01-21 Nick Clifton <nickc@redhat.com>
39472
39473 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39474 PARALLELs.
39475
39476 2015-01-21 Richard Biener <rguenther@suse.de>
39477
39478 PR middle-end/64313
39479 * tree-core.h (builtin_info, builtin_info_type): Turn from
39480 an object with two arrays into an array of an object with
39481 decl and two flags, implicit_p and declared_p.
39482 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39483 set_builtin_decl, set_builtin_decl_implicit_p,
39484 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39485 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39486 * builtins.c (builtin_info): Adjust.
39487 * gimplify.c (gimplify_addr_expr): References to builtins
39488 that have been declared by the user makes them eligible for
39489 use by the compiler. Call set_builtin_decl_implicit_p on them.
39490
39491 2015-01-20 Jeff Law <law@redhat.com>
39492
39493 PR target/59946
39494 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39495 allow pc-relative addresses in operand predicates or constraints.
39496
39497 2015-01-21 Bin Cheng <bin.cheng@arm.com>
39498
39499 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39500 neon on aarch32 processors for stringops.
39501
39502 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39503
39504 PR ipa/63576
39505 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39506
39507 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39508
39509 PR lto/45375
39510 * ipa-inline.c: Include lto-streamer.h
39511 (report_inline_failed_reason): Output source file differences and
39512 flags on optimization/target node mismatch.
39513 (can_inline_edge_p): Consider caller to be the outer inline function;
39514 be less restrictive about matching opimize and optimize_size attributes.
39515 (inline_account_function_p): Break out from ...
39516 (inline_small_functions): ... here.
39517 * ipa-inline-transform.c (clone_inlined_nodes): Use
39518 inline_account_function_p.
39519 (inline_call): Use optimize attribution; use inline_account_function_p.
39520 (inline_transform): Use opt_for_fn.
39521 * ipa-inline.h (inline_account_function_p): Declare.
39522
39523 2015-01-20 Jakub Jelinek <jakub@redhat.com>
39524
39525 PR debug/64663
39526 * dwarf2out.c (decl_piece_node): Don't put bitsize into
39527 mode if bitsize <= 0.
39528 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39529 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39530 sizes and positions.
39531
39532 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
39533
39534 * config/nios2/nios2.c (nios2_asm_file_end): Implement
39535 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39536 needed.
39537 (TARGET_ASM_FILE_END): Define.
39538
39539 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39540
39541 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39542 (struct tune_params): Use the enum.
39543 * arm.c (arm_*_tune): Update.
39544 (arm_option_override): Update.
39545
39546 2015-01-20 Richard Biener <rguenther@suse.de>
39547
39548 PR ipa/64684
39549 * ipa-reference.c (add_static_var): Inline ...
39550 (analyze_function): ... here after splitting out from ...
39551 (is_proper_for_analysis): ... this.
39552
39553 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
39554
39555 PR target/64149
39556 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39557 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39558 replace the conditional with it's true branch.
39559 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39560 (arm_lra_p): Remove.
39561
39562 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
39563
39564 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39565
39566 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39567
39568 * config/tilegx/mul-tables.c: Move symtab.h include after
39569 coretypes.h include.
39570 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39571 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39572 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39573 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39574 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39575
39576 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
39577
39578 PR bootstrap/64676
39579 Revert:
39580 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39581
39582 PR rtl-optimization/64081
39583 * loop-iv.c (def_pred_latch_p): New function.
39584 (latch_dominating_def): Allow specific cases with non-single
39585 definitions.
39586 (iv_get_reaching_def): Likewise.
39587 (check_complex_exit_p): New function.
39588 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39589 with exits not executing on any iteration.
39590
39591 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39592
39593 PR lto/45375
39594 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39595 to set branch cost.
39596
39597 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39598
39599 PR lto/45375
39600 * i386.c (gate): Check flag_expensive_optimizations and
39601 optimize_size.
39602 (ix86_option_override_internal): Drop optimize_size condition
39603 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39604 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39605 MASK_PREFER_AVX128.
39606 (ix86_avx256_split_vector_move_misalign,
39607 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39608 * sse.md (all uses of TARGET_PREFER_AVX128): Add
39609 optimize_insn_for_speed_p check.
39610
39611 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
39612
39613 * config/mips/mips.h (FP_ASM_SPEC): New define.
39614 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39615 instead.
39616
39617 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
39618
39619 PR target/53988
39620 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39621 nullptr for insn when reaching the first insn.
39622 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39623 (sh_insn_operands_modified_between_p): Add nullptr check.
39624 (sh_find_extending_set_of_reg): Fix log message. Don't accept
39625 sign extending mem load if the insn contains any UNSPEC or
39626 UNSPEC_VOLATILE.
39627
39628 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39629
39630 * params.def (inline-unit-growth): Drop to 15%.
39631 * invoke.texi (inline-unit-growth): Document change.
39632
39633 2015-01-19 Martin Liska <mliska@suse.cz>
39634
39635 PR ipa/64668
39636 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39637 function for second argument of OBJ_TYPE_REF.
39638
39639 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39640
39641 PR ipa/64218
39642 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39643 whether function is an alias.
39644
39645 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39646
39647 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39648 cases.
39649
39650 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
39651
39652 PR rtl-optimization/64671
39653 * lra-remat.c (operand_to_remat): Don't consider jump and call
39654 insns.
39655
39656 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
39657
39658 PR target/59828
39659 * config/rs6000/default64.h: Include rs6000-cpus.def.
39660 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
39661 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
39662 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
39663 and POWER8.
39664 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
39665 POWER8.
39666 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
39667 pseudo-op to specify assembler dialect.
39668
39669 2015-01-19 Martin Liska <mliska@suse.cz>
39670
39671 PR ipa/64664
39672 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
39673 Handle safe potentially removed nodes during filtering.
39674
39675 2015-01-19 Martin Liska <mliska@suse.cz>
39676
39677 * doc/extend.texi (no_icf): Add new attribute description.
39678 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
39679 where the pass attempts to merge a function with no_icf attribute.
39680
39681 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39682
39683 PR target/64532
39684 * doc/md.texi (ARM Options): Document register constraints.
39685
39686 2015-01-19 Jiong Wang <jiong.wang@arm.com>
39687 Andrew Pinski <apinski@cavium.com>
39688
39689 PR target/64304
39690 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
39691 (ashl<mode>3): Don't expand if operands[2] is not constant.
39692
39693 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39694
39695 PR target/64448
39696 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39697 Match xor-and-xor RTL pattern.
39698
39699 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39700
39701 PR rtl-optimization/64081
39702 * loop-iv.c (def_pred_latch_p): New function.
39703 (latch_dominating_def): Allow specific cases with non-single
39704 definitions.
39705 (iv_get_reaching_def): Likewise.
39706 (check_complex_exit_p): New function.
39707 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39708 with exits not executing on any iteration.
39709
39710 2015-01-19 Jakub Jelinek <jakub@redhat.com>
39711
39712 * common.opt (fgraphite): Fix a typo.
39713
39714 2015-01-19 Felix Yang <felix.yang@huawei.com>
39715
39716 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39717 pattern.
39718 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39719 uminp, smax_nanp, smin_nanp): New builtins.
39720 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39721 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39722 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39723 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39724 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39725 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39726 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39727 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39728 vpminnms_f32): Rewrite using builtin functions.
39729
39730 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
39731
39732 PR libgomp/64625
39733 * omp-low.c (offload_symbol_decl): Remove variable.
39734 (get_offload_symbol_decl): Remove function.
39735 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39736 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39737 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39738 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39739 BUILT_IN_GOACC_UPDATE don't pass it at all.
39740
39741 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39742
39743 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39744 callers.
39745
39746 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39747
39748 * ipa-chkp.c (chkp_produce_thunks): Add early param
39749 to split thunks production into two passes. Keep
39750 'always_inline' function bodies after the first pass.
39751 (pass_data_ipa_chkp_early_produce_thunks): New.
39752 (pass_ipa_chkp_early_produce_thunks): New.
39753 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39754 chkp_produce_thunks signature.
39755 (make_pass_ipa_chkp_early_produce_thunks): New.
39756 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39757 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39758 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39759
39760 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39761
39762 * cgraph.c (cgraph_node::dump): Dump profile flags.
39763
39764 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
39765
39766 PR target/64652
39767 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39768 reg appear first in the parallel.
39769
39770 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39771
39772 * ipa-reference.c (set_reference_optimization_summary,
39773 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39774 disabled.
39775 (ignore_module_statics): New static var.
39776 (propagate_bits): If ipa-reference is disabled, do not look into local
39777 properties.
39778 (analyze_function): Disable analysis when ipa_reference is disabled.
39779 (generate_summary): Do not dump when reference is disabled;
39780 collect vars accessed from functions with ipa-reference disabled.
39781 (get_read_write_all_from_node): When ipa-reference is disabled, use the
39782 node flags.
39783 (gate): Enable for LTO.
39784 (ignore_edge_p): New function.
39785 (propagate): Skip functions w/o ipa-reference analysis.
39786 * optc-save-gen.awk: Handle optimize_debug correctly.
39787 * opth-gen.awk: Likewise.
39788 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39789 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39790 fira-share-save-slots, fira-share-spill-slots,
39791 fmodulo-sched-allow-regmoves, fpartial-inlining,
39792 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39793 ftracer, ftree-parallelize-loops, fassociative-math,
39794 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39795 Optimization
39796 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39797 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39798 Optimization.
39799 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39800 Fix for IPA.
39801
39802 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39803
39804 PR ipa/64378
39805 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39806 flag correctly.
39807 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39808
39809 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
39810
39811 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39812 Remove duplicate option listings.
39813
39814 2015-01-18 Felix Yang <felix.yang@huawei.com>
39815
39816 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39817 (autofdo_source_profile::get_callsite_total_count,
39818 function_instance::get_function_instance_by_decl,
39819 string_table::get_index, string_table::get_index_by_decl,
39820 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39821 Fix comment typos. Reformatting and minor code rearrangement.
39822
39823 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39824
39825 * config/rs6000/rs6000.md (probe_stack): Delete.
39826 (probe_stack_address): New.
39827
39828 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39829
39830 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39831 to test for 32-bit ABIs, not !TARGET_POWERPC64.
39832
39833 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39834
39835 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39836 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
39837 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
39838 snafu.
39839 (rs6000_libcall_value): Use the new function.
39840
39841 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
39842
39843 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39844
39845 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
39846
39847 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39848 implement a more precise life analysis for it during backward scan.
39849
39850 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
39851
39852 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39853
39854 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
39855
39856 PR rtl-optimization/52773
39857 * calls.c (emit_library_call_value): When pushing arguments use
39858 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39859 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
39860 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39861
39862 2015-01-17 Jeff Law <law@redhat.com>
39863
39864 PR rtl-optimization/32790
39865 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39866 not ZERO_EXTEND in SET_DESTs.
39867
39868 2015-01-17 Alan Modra <amodra@gmail.com>
39869
39870 * cprop.c (do_local_cprop): Revert last change.
39871
39872 2015-01-16 DJ Delorie <dj@redhat.com>
39873 Nick Clifton <nickc@redhat.com>
39874
39875 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39876 (addhi3_real): Likewise. Fix [HL+0] syntax.
39877 (subqi3_real): Likewise.
39878 (subhi3_real): Likewise.
39879 (cbranchqi4_real): Likewise. Allow saddr,#imm.
39880 (cbranchhi4_real): Likewise.
39881 (cbranchhi4_real_inverted): Likewise.
39882 (cbranchsi4_real_lt): Likewise.
39883 (cbranchsi4_real_ge): Likewise.
39884 (cbranchsi4_real_ge): Likewise.
39885 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39886 (sub<mode>3_virt): Likewise.
39887 (cbranchqi4_virt): Likewise.
39888 (cbranchhi4_virt): Likewise.
39889 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39890 always use '[reg+imm]' even when imm is zero.
39891 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39892 (rl78_general_operand): New.
39893 (rl78_nonimmediate_operand): New.
39894 (rl78_nonfar_operand): Use them.
39895 (rl78_nonfar_nonimm_operand): Likewise.
39896 (rl78_stack_based_mem): Fix.
39897 * config/rl78/constraints.md (Ibqi): New.
39898 (IBqi): New.
39899 (Wsa): New.
39900 (Wsf): New.
39901 (Cs1): Fix.
39902 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39903 (iorqi3): Likewise.
39904 (xorqi3): Likewise.
39905 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39906
39907 * config/rl78/constrains (Qs8): New constraint.
39908 * config/rl78/rl78.c (rl78_flags_already_set): New function.
39909 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39910 * config/rl78/rl78-real.md (update_Z): New attribute.
39911 Update patterns to set it.
39912 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39913 shorter compare and branch sequence can be used.
39914 (cbranchhi4_real): Likewise.
39915 (cbranchhi4_real_inverted): Likewise.
39916
39917 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39918 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39919 address space.
39920 * config/rl78/rl78.c (rl78_get_name_encoding): New.
39921 (rl78_option_override): Allow -mes0 only if C.
39922 (characterize_address): Support subregs of symbol_refs.
39923 (rl78_addr_space_address_mode): Move. Add __near.
39924 (rl78_far_p): Likewise.
39925 (rl78_addr_space_pointer_mode): Likewise.
39926 (rl78_as_legitimate_address): Likewise.
39927 (rl78_addr_space_subset_p): Likewise.
39928 (rl78_addr_space_convert): Likewise.
39929 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39930 symbols with -mes0.
39931 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
39932 addressing.
39933 (rl78_alloc_physical_registers_op1): Change logic to prefer
39934 symbol[BC] addressing.
39935 (frodata_section): New.
39936 (rl78_asm_init_sections): Initialize it.
39937 (rl78_select_section): Put __far readonly symbols in .frodata.
39938 (rl78_make_type_far): New.
39939 (rl78_insert_attributes): Force all readonly symbols to be
39940 __far when -mes0.
39941 (rl78_asm_out_integer): New.
39942 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39943 * config/rl78/rl78.opt (-mes0): New.
39944
39945 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39946 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39947 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39948 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39949 (rl78_saddr_p): New.
39950 (rl78_output_aligned_common): New.
39951 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39952 (rl78_handle_saddr_attribute): New.
39953 (rl78_handle_naked_attribute): New.
39954 (rl78_attribute_table): Add saddr.
39955 (rl78_print_operand_1): Don't print '!' on saddr operands.
39956 (rl78_print_operand_1): Strip encodings.
39957 (rl78_sfr_p): New.
39958 (rl78_strip_name_encoding): New.
39959 (rl78_attrlist_to_encoding): New.
39960 (rl78_encode_section_info): New.
39961 (rl78_asm_init_sections): New.
39962 (rl78_select_section): New.
39963 (rl78_output_labelref): New.
39964 (rl78_output_aligned_common): New.
39965 (rl78_asm_out_integer): New.
39966 (rl78_asm_ctor_dtor): New.
39967 (rl78_asm_constructor): New.
39968 (rl78_asm_destructor): New.
39969
39970 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39971 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39972 (transcode_memory_rtx): Update.
39973 (rl78_expand_epilogue): Use A_REG instead of 0.
39974
39975 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39976
39977 * config/arm/arm-protos.h (struct tune_params): New field
39978 sched_autopref_queue_depth.
39979 * config/arm/arm.c (sched-int.h): Include header.
39980 (arm_first_cycle_multipass_dfa_lookahead_guard,)
39981 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39982 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39983 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39984 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39985 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39986 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39987 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39988 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
39989 * config/arm/t-arm (arm.o): Update.
39990 * haifa-sched.c (update_insn_after_change): Update.
39991 (rank_for_schedule): Use auto-prefetcher model, if requested.
39992 (autopref_multipass_init): New static function.
39993 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39994 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39995 variable for debug dumps.
39996 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39997 (autopref_multipass_dfa_lookahead_guard): New global function that
39998 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39999 (init_h_i_d): Update.
40000 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40001 * sched-int.h (enum autopref_multipass_data_status): New const enum.
40002 (autopref_multipass_data_): Structure for auto-prefetcher data.
40003 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40004 (struct _haifa_insn_data:autopref_multipass_data): New field.
40005 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40006 (autopref_multipass_dfa_lookahead_guard): Declare.
40007
40008 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40009
40010 * rtlanal.c (get_base_term): Handle SCRATCH.
40011
40012 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40013
40014 * config/aarch64/aarch64.c
40015 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40016 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40017 * config/arm/arm.c
40018 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40019 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40020
40021 2015-01-17 Alan Modra <amodra@gmail.com>
40022
40023 * cprop.c (do_local_cprop): Disallow replacement of fixed
40024 hard registers.
40025
40026 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40027
40028 PR target/62066
40029 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40030 early return 0.
40031
40032 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
40033
40034 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40035 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40036
40037 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40038
40039 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40040 * config/arm/thumb1.md: ... Here.
40041
40042 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40043
40044 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40045 TImode for TARGET_32BIT.
40046
40047 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40048
40049 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40050 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40051 as ...
40052 (rs6000_abi_word_mode): New function.
40053
40054 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40055
40056 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40057 instead of UNITS_PER_WORD to describe the size of stack slots.
40058
40059 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40060
40061 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40062 as rs6000_promote_function_mode. Move comment to there.
40063 (rs6000_promote_function_mode): New function.
40064
40065 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40066
40067 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40068 -mpowerpc64 is active.
40069
40070 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40071
40072 PR middle-end/64353
40073 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40074 virtuals on start.
40075
40076 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40077
40078 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40079 introduced in revision 219724.
40080
40081 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40082 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40083
40084 PR target/64263
40085 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40086 destination is not a GP reg.
40087 (*movdi_aarch64): Likewise.
40088
40089 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40090
40091 PR target/64623
40092 * config/rs6000/default64.h: Revert ISA change.
40093
40094 2015-01-16 Richard Biener <rguenther@suse.de>
40095
40096 PR middle-end/64614
40097 * tree-ssa-uninit.c: Include tree-cfg.h.
40098 (MAX_SWITCH_CASES): New define.
40099 (convert_control_dep_chain_into_preds): Handle switch statements.
40100 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40101 (normalize_one_pred_1): Do not split bit-manipulations.
40102 Record (x & CST).
40103
40104 2015-01-16 Richard Biener <rguenther@suse.de>
40105
40106 PR tree-optimization/64568
40107 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40108 complex load rewriting for TARGET_MEM_REFs.
40109
40110 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40111
40112 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40113
40114 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40115
40116 PR target/64149
40117 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40118 variable.
40119 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40120 (aarch64_lra_p): Remove.
40121
40122 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40123
40124 PR target/64363
40125 * ipa-chkp.h (chkp_instrumentable_p): New.
40126 * ipa-chkp.c: Include tree-inline.h.
40127 (chkp_instrumentable_p): New.
40128 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40129 Fix processing of not instrumentable functions.
40130 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40131 not instrumentable functions.
40132 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40133 chkp_instrumentable_p.
40134 * tree-inline.h (copy_forbidden): New.
40135 * tree-inline.c (copy_forbidden): Not static anymore.
40136
40137 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40138
40139 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40140 ptr1, ptr2 unused.
40141
40142 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40143
40144 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40145 type OP_OUT to OP_INOUT.
40146
40147 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40148
40149 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40150 (high x) y) to y if x and y have the same base.
40151
40152 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40153
40154 * config/arm/cortex-a57.md: New.
40155 * config/aarch64/aarch64.md: Include it.
40156 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40157 * config/aarch64/aarch64-tune.md: Regenerate.
40158
40159 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
40160
40161 PR target/64015
40162 * ccmp.c (expand_ccmp_next): New function.
40163 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40164 and compare insn sequence.
40165 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40166 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40167 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40168 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40169 (*ccmp_ior): Changed to ccmp_ior<mode>.
40170 (cmp<mode>): New pattern.
40171 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40172 parameters.
40173 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40174
40175 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
40176
40177 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40178 _mm256_bsrli_epi128): New.
40179 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40180
40181 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40182
40183 * expmed.c (store_bit_field_using_insv): Improve warning message.
40184 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40185
40186 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40187
40188 PR rtl-optimization/64011
40189 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40190 there is partial overflow.
40191
40192 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40193
40194 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40195 prototype.
40196 (nds32_expand_epilogue_v3pop): Likewise.
40197 * config/nds32/nds32.md (sibcall): Define this for sibling call
40198 optimization.
40199 (sibcall_register): Likewise.
40200 (sibcall_immediate): Likewise.
40201 (sibcall_value): Likewise.
40202 (sibcall_value_register): Likewise.
40203 (sibcall_value_immediate): Likewise.
40204 (sibcall_epilogue): Likewise.
40205 (epilogue): Pass false to indicate this is not a sibcall epilogue.
40206 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40207 (nds32_expand_epilogue_v3pop): Likewise.
40208
40209 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40210
40211 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40212 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40213 (return_internal): New.
40214 (return): Define this named pattern.
40215 (simple_return): Define this named pattern.
40216 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40217 pattern instead of unspec_volatile_func_return.
40218 (nds32_expand_epilogue_v3pop): Likewise.
40219 (nds32_can_use_return_insn): New function.
40220
40221 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40222
40223 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40224 * config/nds32/nds32.md (pop25return): New.
40225 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40226 pop25return pattern.
40227
40228 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40229
40230 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40231 -mforbid-fp-as-gp, and -mex9 options.
40232
40233 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40234
40235 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40236 remove -mgp-direct option.
40237
40238 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40239
40240 * doc/invoke.texi (--param early-inlining-insns): Update default value.
40241 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40242
40243 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40244
40245 * ipa-inline.c (inline_small_functions): Work around hints
40246 cache issue.
40247
40248 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
40249
40250 PR target/59710
40251 * doc/invoke.texi (Option Summary): Document new Nios II
40252 -mgpopt= syntax.
40253 (Nios II Options): Likewise.
40254 * config/nios2/nios2.opt: Add -mgpopt= option support.
40255 Modify existing -mgpopt and -mno-gpopt options to be aliases.
40256 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40257 * config/nios2/nios2.c (nios2_option_override): Adjust
40258 -mgpopt defaulting.
40259 (nios2_in_small_data_p): Return true for explicit small data
40260 sections even with -G0.
40261 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40262 option choices.
40263
40264 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40265
40266 PR ipa/64612
40267 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40268 of comdat locals.
40269 (inline_call): Fix removal of aliases.
40270
40271 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40272
40273 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40274 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40275 * opts.c (common_handle_option): Add -fsanitize=vptr.
40276 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40277 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40278 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40279 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40280 (ubsan_expand_vptr_ifn): New prototype.
40281 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40282 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40283 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40284 expand_LOOP_VECTORIZED): Make argument nameless, remove
40285 ATTRIBUTE_UNUSED.
40286 (expand_UBSAN_VPTR): New function.
40287 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40288 in fn spec.
40289 (UBSAN_VPTR): New internal function.
40290 * sanopt.c (tree_map_traits): Renamed to ...
40291 (sanopt_tree_map_traits): ... this.
40292 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40293 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40294 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
40295 (maybe_optimize_ubsan_vptr_ifn): New function.
40296 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40297 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
40298 -fsanitize=vptr.
40299 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40300 internal calls like pure functions for aliasing, even when they
40301 have other side-effects that prevent making them ECF_PURE.
40302 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40303 (ubsan_expand_vptr_ifn): New function.
40304
40305 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
40306
40307 PR rtl-optimization/64110
40308 * stmt.c (parse_output_constraint): Process '^' and '$'.
40309 (parse_input_constraint): Ditto.
40310 * lra-constraints.c (process_alt_operands): Process the new
40311 constraints.
40312 * ira-costs.c (record_reg_classes): Process the new constraint
40313 '^'.
40314 * genoutput.c (indep_constraints): Add '^' and '$'.
40315 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40316 * doc/md.texi: Add description of the new constraints.
40317
40318 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
40319 Bernd Schmidt <bernds@codesourcery.com>
40320 Cesar Philippidis <cesar@codesourcery.com>
40321 James Norris <jnorris@codesourcery.com>
40322 Tom de Vries <tom@codesourcery.com>
40323 Ilmir Usmanov <i.usmanov@samsung.com>
40324 Dmitry Bocharnikov <dmitry.b@samsung.com>
40325 Evgeny Gavrin <e.gavrin@samsung.com>
40326 Jakub Jelinek <jakub@redhat.com>
40327
40328 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40329 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40330 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40331 New function types.
40332 * builtins.c: Include "gomp-constants.h".
40333 (expand_builtin_acc_on_device): New function.
40334 (expand_builtin, is_inexpensive_builtin): Handle
40335 BUILT_IN_ACC_ON_DEVICE.
40336 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40337 New macros.
40338 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40339 flag_openmp.
40340 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40341 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40342 i386/intelmic-offload.h.
40343 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40344 to libgomp and its dependencies.
40345 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40346 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40347 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40348 * config/ia64/hpux.h (LIB_SPEC): Likewise.
40349 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40350 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40351 * doc/generic.texi: Update for OpenACC changes.
40352 * doc/gimple.texi: Likewise.
40353 * doc/invoke.texi: Likewise.
40354 * doc/sourcebuild.texi: Likewise.
40355 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40356 GF_OMP_FOR_KIND_OACC_LOOP.
40357 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40358 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40359 GF_OMP_TARGET_KIND_OACC_UPDATE,
40360 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40361 Dump more data.
40362 * gimple.c: Update comments for OpenACC changes.
40363 * gimple.def: Likewise.
40364 * gimple.h: Likewise.
40365 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40366 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40367 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40368 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40369 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40370 appropriate place.
40371 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40372 * gimplify.c: Include "gomp-constants.h".
40373 Update comments for OpenACC changes.
40374 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40375 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40376 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40377 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40378 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40379 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40380 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40381 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40382 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40383 OMP_CLAUSE_SEQ.
40384 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40385 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40386 OMP_CLAUSE_SET_MAP_KIND.
40387 (gimplify_oacc_cache): New function.
40388 (gimplify_omp_for): Handle OACC_LOOP.
40389 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40390 OACC_DATA.
40391 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40392 OACC_EXIT_DATA, OACC_UPDATE.
40393 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40394 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40395 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40396 (gimplify_body): Consider flag_openacc next to flag_openmp.
40397 * lto-streamer-out.c: Include "gomp-constants.h".
40398 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40399 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40400 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40401 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40402 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40403 (BUILT_IN_ACC_ON_DEVICE): New builtins.
40404 * omp-low.c: Include "gomp-constants.h".
40405 Update comments for OpenACC changes.
40406 (struct omp_context): Add reduction_map, gwv_below, gwv_this
40407 members.
40408 (extract_omp_for_data, use_pointer_for_field, install_var_field)
40409 (new_omp_context, delete_omp_context, scan_sharing_clauses)
40410 (create_omp_child_function, scan_omp_for, scan_omp_target)
40411 (check_omp_nesting_restrictions, lower_reduction_clauses)
40412 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40413 Update for OpenACC changes.
40414 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40415 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40416 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40417 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40418 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40419 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
40420 OMP_CLAUSE_MAP_*.
40421 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40422 Handle GF_OMP_FOR_KIND_OACC_LOOP.
40423 (expand_omp_target, lower_omp_target): Handle
40424 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40425 GF_OMP_TARGET_KIND_OACC_UPDATE,
40426 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40427 GF_OMP_TARGET_KIND_OACC_DATA.
40428 (pass_expand_omp::execute, execute_lower_omp)
40429 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40430 flag_openmp.
40431 (offload_symbol_decl): New variable.
40432 (oacc_get_reduction_array_id, oacc_max_threads)
40433 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40434 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40435 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40436 (oacc_gimple_assign, oacc_initialize_reduction_data)
40437 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40438 functions.
40439 (is_targetreg_ctx): Remove function.
40440 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40441 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40442 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40443 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40444 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40445 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40446 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40447 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40448 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40449 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40450 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40451 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40452 * tree-core.h: Update comments for OpenACC changes.
40453 (enum omp_clause_map_kind): Remove.
40454 (struct tree_omp_clause): Change type of map_kind member from enum
40455 omp_clause_map_kind to unsigned char.
40456 * tree-inline.c: Update comments for OpenACC changes.
40457 * tree-nested.c: Likewise. Include "gomp-constants.h".
40458 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40459 (convert_tramp_reference_stmt, convert_gimple_call): Update for
40460 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40461 OMP_CLAUSE_SET_MAP_KIND.
40462 * tree-pretty-print.c: Include "gomp-constants.h".
40463 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40464 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40465 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40466 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40467 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40468 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
40469 instead of OMP_CLAUSE_MAP_*.
40470 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40471 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40472 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40473 * tree-streamer-in.c: Include "gomp-constants.h".
40474 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40475 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
40476 * tree-streamer-out.c: Include "gomp-constants.h".
40477 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40478 OMP_CLAUSE_MAP_*.
40479 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40480 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40481 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40482 * tree.c (omp_clause_num_ops): Update accordingly.
40483 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40484 Likewise.
40485 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40486 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40487 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40488 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40489 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40490 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40491 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40492 (OMP_CLAUSE_SET_MAP_KIND): New macro.
40493 * varpool.c (varpool_node::get_create): Consider flag_openacc next
40494 to flag_openmp.
40495 * config/i386/intelmic-offload.h: New file.
40496 * config/nvptx/offload.h: Likewise.
40497
40498 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40499
40500 * explow.h: Remove duplicate contents.
40501 * dojump.h: Likewise.
40502
40503 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
40504
40505 * arm.c (arm_xgene_tune): Add default initializer for instruction
40506 fusion.
40507
40508 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40509
40510 PR ipa/64068
40511 PR ipa/64559
40512 * ipa.c (symbol_table::remove_unreachable_nodes):
40513 Do not put abstract origins into boundary.
40514
40515 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
40516
40517 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40518 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40519
40520 2015-01-15 Steve Ellcey <sellcey@mips.com>
40521
40522 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40523 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40524 builtins.def, and chkp-builtins.def.
40525
40526 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
40527
40528 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40529 ISA 2.7 (POWER8).
40530
40531 2015-01-15 Richard Biener <rguenther@suse.de>
40532
40533 PR tree-optimization/61743
40534 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40535 information on PHIs for some simple cases.
40536
40537 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40538
40539 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40540 Include xgene1.md.
40541 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40542 * config/arm/arm-cores.def (xgene1): New entry.
40543 * config/arm/arm-tables.opt: Regenerate.
40544 * config/arm/arm-tune.md: Regenerate.
40545 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40546
40547 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40548
40549 * tree-if-conv.c: Include hash-map.h.
40550 (aggressive_if_conv): New variable.
40551 (fold_build_cond_expr): Add simplification of non-zero condition.
40552 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40553 destination block is not always executed.
40554 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40555 than two predecessors if AGGRESSIVE_IF_CONV is true.
40556 (if_convertible_stmt_p): Fix commentary.
40557 (all_preds_critical_p): New function.
40558 (has_pred_critical_p): New function.
40559 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40560 BB can have more than two predecessors and all incoming edges can be
40561 critical.
40562 (predicate_bbs): Skip predication for loop exit block, use build2_loc
40563 to compute predicate for true edge.
40564 (find_phi_replacement_condition): Delete this function.
40565 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40566 Allow interchange PHI arguments if EXTENDED is false.
40567 Change check that block containing reduction statement candidate
40568 is predecessor of phi-block since phi may have more than two arguments.
40569 (phi_args_hash_traits): New helper structure.
40570 (struct phi_args_hash_traits): New type.
40571 (phi_args_hash_traits::hash): New function.
40572 (phi_args_hash_traits::equal_keys): New function.
40573 (gen_phi_arg_condition): New function.
40574 (predicate_scalar_phi): Add handling of phi nodes with more than two
40575 arguments, delete COND and TRUE_BB arguments, insert body of
40576 find_phi_replacement_condition to predicate ordinary phi nodes.
40577 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40578 delete call of find_phi_replacement_condition and invoke
40579 predicate_scalar_phi with two arguments.
40580 (insert_gimplified_predicates): Add assert that non-predicated block
40581 don't have statements to insert.
40582 (ifcvt_split_critical_edges): New function.
40583 (ifcvt_split_def_stmt): Likewise.
40584 (ifcvt_walk_pattern_tree): Likewise.
40585 (stmt_is_root_of_bool_pattern): Likewise.
40586 (ifcvt_repair_bool_pattern): Likewise.
40587 (ifcvt_local_dce): Likewise.
40588 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40589 is copy of inner or outer loop force_vectorize field, invoke
40590 ifcvt_split_critical_edges, ifcvt_local_dce and
40591 ifcvt_repair_bool_pattern for aggressive if-conversion.
40592
40593 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
40594
40595 * config/aarch64/aarch64.md: Include xgene1.md.
40596 * config/aarch64/xgene1.md: New file.
40597
40598 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40599
40600 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40601 xgene1 (APM XGene-1) core definition.
40602 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40603 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40604 * doc/invoke.texi: Document -mcpu=xgene1.
40605
40606 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40607
40608 * dojump.h: New header file.
40609 * explow.h: Likewise.
40610 * expr.h: Remove includes.
40611 Move expmed.c prototypes to expmed.h.
40612 Move dojump.c prototypes to dojump.h.
40613 Move alias.c prototypes to alias.h.
40614 Move explow.c prototypes to explow.h.
40615 Move calls.c prototypes to calls.h.
40616 Move emit-rtl.c prototypes to emit-rtl.h.
40617 Move varasm.c prototypes to varasm.h.
40618 Move stmt.c prototypes to stmt.h.
40619 (saved_pending_stack_adjust): Move to dojump.h.
40620 (adjust_address): Move to explow.h.
40621 (adjust_address_nv): Move to emit-rtl.h.
40622 (adjust_bitfield_address): Likewise.
40623 (adjust_bitfield_address_size): Likewise.
40624 (adjust_bitfield_address_nv): Likewise.
40625 (adjust_automodify_address_nv): Likewise.
40626 * explow.c (expr_size): Move to expr.c.
40627 (int_expr_size): Likewise.
40628 (tree_expr_size): Likewise.
40629 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40630 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40631 * genemit.c (main): Generate includes statistics.h, real.h,
40632 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40633 stmt.h.
40634 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40635 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40636 explow.h, emit-rtl.h, stmt.h.
40637 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40638 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40639 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40640 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40641 emit-rtl.h, varasm.h, stmt.h.
40642 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40643 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40644 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40645 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40646 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40647 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40648 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40649 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40650 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40651 tm.h tree.h varasm.h vec.h wide-int.h.
40652 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40653 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40654 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40655 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40656 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40657 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
40658 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
40659 * loop-iv.c: Likewise.
40660 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
40661 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
40662 statistics.h stmt.h tree.h varasm.h wide-int.h.
40663 * lra-constraints.c: Likewise.
40664 * lra-eliminations.c: Likewise.
40665 * lra-lives.c: Likewise.
40666 * lra-remat.c: Likewise.
40667 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40668 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
40669 statistics.h stmt.h tree.h varasm.h wide-int.h.
40670 * hw-doloop.c: Likewise.
40671 * ira-color.c: Likewise.
40672 * ira-emit.c: Likewise.
40673 * loop-doloop.c: Likewise.
40674 * loop-invariant.c: Likewise.
40675 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40676 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
40677 statistics.h stmt.h tree.h varasm.h wide-int.h.
40678 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
40679 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
40680 statistics.h stmt.h tree.h varasm.h wide-int.h.
40681 * combine-stack-adj.c: Likewise.
40682 * cse.c: Likewise.
40683 * ddg.c: Likewise.
40684 * ifcvt.c: Likewise.
40685 * ira-costs.c: Likewise.
40686 * jump.c: Likewise.
40687 * lra-coalesce.c: Likewise.
40688 * lra-spills.c: Likewise.
40689 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40690 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
40691 stmt.h varasm.h wide-int.h.
40692 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40693 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40694 varasm.h.
40695 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40696 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40697 statistics.h stmt.h varasm.h wide-int.h.
40698 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40699 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40700 varasm.h wide-int.h.
40701 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40702 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40703 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40704 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40705 statistics.h stmt.h.
40706 * config/tilepro/tilepro.c: Likewise.
40707 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40708 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40709 * config/pdp11/pdp11.c: Likewise.
40710 * config/xtensa/xtensa.c: Likewise.
40711 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40712 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40713 varasm.h.
40714 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40715 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40716 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40717 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40718 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40719 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40720 * rtl-chkp.c: Likewise.
40721 * tree-chkp-opt.c: Likewise.
40722 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40723 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40724 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40725 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40726 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40727 statistics.h stmt.h.
40728 * tree-vect-data-refs.c: Likewise.
40729 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40730 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40731 rtl.h statistics.h stmt.h varasm.h.
40732 * internal-fn.c: Likewise.
40733 * ipa-icf-gimple.c: Likewise.
40734 * lto-section-out.c: Likewise.
40735 * tree-data-ref.c: Likewise.
40736 * tree-nested.c: Likewise.
40737 * tree-outof-ssa.c: Likewise.
40738 * tree-predcom.c: Likewise.
40739 * tree-pretty-print.c: Likewise.
40740 * tree-scalar-evolution.c: Likewise.
40741 * tree-ssa-strlen.c: Likewise.
40742 * tree-vect-loop.c: Likewise.
40743 * tree-vect-patterns.c: Likewise.
40744 * tree-vect-slp.c: Likewise.
40745 * tree-vect-stmts.c: Likewise.
40746 * tsan.c: Likewise.
40747 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40748 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40749 stmt.h.
40750 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40751 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40752 statistics.h stmt.h varasm.h.
40753 * loop-unroll.c: Likewise.
40754 * ubsan.c: Likewise.
40755 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40756 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40757 stmt.h varasm.h.
40758 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40759 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40760 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40761 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40762 statistics.h stmt.h.
40763 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40764 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40765 statistics.h stmt.h varasm.h.
40766 * gimple-match-head.c: Likewise.
40767 * lto-cgraph.c: Likewise.
40768 * lto-section-in.c: Likewise.
40769 * lto-streamer-in.c: Likewise.
40770 * lto-streamer-out.c: Likewise.
40771 * tree-affine.c: Likewise.
40772 * tree-cfg.c: Likewise.
40773 * tree-cfgcleanup.c: Likewise.
40774 * tree-if-conv.c: Likewise.
40775 * tree-into-ssa.c: Likewise.
40776 * tree-ssa-alias.c: Likewise.
40777 * tree-ssa-copyrename.c: Likewise.
40778 * tree-ssa-dse.c: Likewise.
40779 * tree-ssa-forwprop.c: Likewise.
40780 * tree-ssa-live.c: Likewise.
40781 * tree-ssa-math-opts.c: Likewise.
40782 * tree-ssa-pre.c: Likewise.
40783 * tree-ssa-sccvn.c: Likewise.
40784 * tree-tailcall.c: Likewise.
40785 * tree-vect-generic.c: Likewise.
40786 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40787 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40788 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40789 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40790 * varasm.c: Likewise.
40791 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40792 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40793 varasm.h.
40794 * init-regs.c: Likewise.
40795 * ira.c: Likewise.
40796 * omp-low.c: Likewise.
40797 * stack-ptr-mod.c: Likewise.
40798 * tree-ssa-reassoc.c: Likewise.
40799 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40800 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40801 varasm.h.
40802 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40803 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40804 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40805 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40806 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40807 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40808 * tree-ssa-phiopt.c: Likewise.
40809 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40810 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40811 * config/fr30/fr30.c: Likewise.
40812 * config/frv/frv.c: Likewise.
40813 * expr.c: Likewise.
40814 * final.c: Likewise.
40815 * optabs.c: Likewise.
40816 * passes.c: Likewise.
40817 * simplify-rtx.c: Likewise.
40818 * stmt.c: Likewise.
40819 * toplev.c: Likewise.
40820 * var-tracking.c: Likewise.
40821 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40822 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40823 * lower-subreg.c: Likewise.
40824 * postreload-gcse.c: Likewise.
40825 * ree.c: Likewise.
40826 * reginfo.c: Likewise.
40827 * store-motion.c: Likewise.
40828 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40829 fixed-value.h hashtab.h real.h stmt.h varasm.h.
40830 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40831 fixed-value.h hashtab.h statistics.h stmt.h.
40832 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40833 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40834 * except.c: Likewise.
40835 * explow.c: Likewise.
40836 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40837 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40838 varasm.h.
40839 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40840 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40841 * tree-ssa-structalias.c: Likewise.
40842 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40843 fixed-value.h insn-config.h real.h statistics.h.
40844 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40845 fixed-value.h insn-config.h real.h statistics.h stmt.h.
40846 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40847 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40848 * cfgbuild.c: Likewise.
40849 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40850 fixed-value.h real.h rtl.h statistics.h stmt.h.
40851 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40852 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40853 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40854 fixed-value.h real.h statistics.h stmt.h.
40855 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40856 fixed-value.h real.h statistics.h stmt.h varasm.h.
40857 * cprop.c: Likewise.
40858 * modulo-sched.c: Likewise.
40859 * postreload.c: Likewise.
40860 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40861 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40862 statistics.h stmt.h varasm.h.
40863 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40864 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40865 rtl.h statistics.h stmt.h varasm.h.
40866 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40867 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40868 varasm.h.
40869 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40870 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40871 varasm.h.
40872 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40873 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40874 varasm.h.
40875 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40876 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40877 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40878 function.h real.h statistics.h stmt.h varasm.h.
40879 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40880 insn-config.h real.h statistics.h stmt.h.
40881 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40882 statistics.h stmt.h.
40883 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40884 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40885 statistics.h stmt.h varasm.h.
40886 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40887 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40888 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40889 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40890 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40891 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40892 statistics.h stmt.h varasm.h.
40893 * ipa-polymorphic-call.c: Likewise.
40894 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40895 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40896 statistics.h stmt.h.
40897 * config/c6x/c6x.c: Likewise.
40898 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40899 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40900 statistics.h stmt.h varasm.h.
40901 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40902 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40903 stmt.h varasm.h.
40904 * ipa-split.c: Likewise.
40905 * tree-eh.c: Likewise.
40906 * tree-ssa-dce.c: Likewise.
40907 * tree-ssa-loop-niter.c: Likewise.
40908 * tree-vrp.c: Likewise.
40909 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40910 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40911 stmt.h.
40912 * config/nds32/nds32-fp-as-gp.c: Likewise.
40913 * config/nds32/nds32-intrinsic.c: Likewise.
40914 * config/nds32/nds32-isr.c: Likewise.
40915 * config/nds32/nds32-md-auxiliary.c: Likewise.
40916 * config/nds32/nds32-memory-manipulation.c: Likewise.
40917 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40918 * config/nds32/nds32-predicates.c: Likewise.
40919 * config/nds32/nds32.c: Likewise.
40920 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40921 fixed-value.h hashtab.h real.h statistics.h.
40922 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40923 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40924 * config/arm/arm.c: Likewise.
40925 * config/avr/avr.c: Likewise.
40926 * config/bfin/bfin.c: Likewise.
40927 * config/h8300/h8300.c: Likewise.
40928 * config/i386/i386.c: Likewise.
40929 * config/ia64/ia64.c: Likewise.
40930 * config/iq2000/iq2000.c: Likewise.
40931 * config/m32c/m32c.c: Likewise.
40932 * config/m32r/m32r.c: Likewise.
40933 * config/m68k/m68k.c: Likewise.
40934 * config/mcore/mcore.c: Likewise.
40935 * config/mep/mep.c: Likewise.
40936 * config/mips/mips.c: Likewise.
40937 * config/mn10300/mn10300.c: Likewise.
40938 * config/moxie/moxie.c: Likewise.
40939 * config/pa/pa.c: Likewise.
40940 * config/rl78/rl78.c: Likewise.
40941 * config/rx/rx.c: Likewise.
40942 * config/s390/s390.c: Likewise.
40943 * config/sh/sh.c: Likewise.
40944 * config/sparc/sparc.c: Likewise.
40945 * config/spu/spu.c: Likewise.
40946 * config/stormy16/stormy16.c: Likewise.
40947 * config/v850/v850.c: Likewise.
40948 * config/vax/vax.c: Likewise.
40949 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40950 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40951 * config/msp430/msp430.c: Likewise.
40952 * predict.c: Likewise.
40953 * value-prof.c: Likewise.
40954 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40955 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40956 * config/microblaze/microblaze.c: Likewise.
40957 * config/nios2/nios2.c: Likewise.
40958 * config/rs6000/rs6000.c: Likewise.
40959 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40960 insn-config.h real.h rtl.h statistics.h stmt.h.
40961 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40962 insn-config.h real.h statistics.h stmt.h.
40963 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40964 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40965 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40966 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40967 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40968 fixed-value.h real.h statistics.h stmt.h.
40969 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40970 fixed-value.h statistics.h stmt.h.
40971 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40972 stmt.h.
40973
40974 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40975
40976 * gengtype.c (create_user_defined_type): Workaround
40977 -Wmaybe-uninitialized false positives.
40978 * cse.c (fold_rtx): Likewise.
40979 * loop-invariant.c (gain_for_invariant): Likewise.
40980
40981 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
40982
40983 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40984 set the memory attributes in all cases but clear MEM_EXPR if need be.
40985
40986 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40987
40988 PR tree-optimization/64434
40989 * cfgexpand.c (reorder_operands): New function.
40990 (expand_gimple_basic_block): Insert call of reorder_operands if
40991 optimized is true.
40992
40993 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
40994
40995 * config/mips/micromips.md (*swp): Remove explicit parallel.
40996 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40997 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40998 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40999 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41000 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41001 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41002 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41003 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41004 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41005 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41006 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41007 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41008 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41009 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41010 (mips_wrdsp): Likewise.
41011 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41012 parallel.
41013 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41014 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41015 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41016 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41017 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41018 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41019 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41020 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41021 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41022
41023 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41024
41025 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41026 (mips_print_operand): Support 'y' to print exact log2 in decimal
41027 of a const_int.
41028 * config/mips/mips.h (ISA_HAS_LSA): New define.
41029 (ISA_HAS_DLSA): Likewise.
41030 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41031 * config/mips/predicates.md (const_immlsa_operand): New predicate.
41032
41033 2015-01-15 Martin Liska <mliska@suse.cz>
41034
41035 PR target/64377
41036 * optc-save-gen.awk: Add support for array types.
41037
41038 2015-01-15 Richard Biener <rguenther@suse.de>
41039
41040 PR middle-end/64365
41041 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41042 for MEM_REF access functions with the same base can never partially
41043 overlap.
41044
41045 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
41046
41047 * common.opt: New option -fstack-protector-explicit.
41048 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41049 (stack_protect_decl_phase): Handle stack_protect attribute for
41050 explicit stack protection requests.
41051 (expand_used_vars): Similarly.
41052 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41053 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41054 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41055
41056 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41057
41058 PR target/53988
41059 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41060 reg-reg copies.
41061 (sh_extending_set_of_reg): New struct.
41062 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41063 sh_remove_reg_dead_or_unused_notes): New Declarations.
41064 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41065 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41066 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41067 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41068 convert to insn_and_split and use new function sh_split_tst_subregs.
41069
41070 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41071
41072 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41073 option.
41074 (Optimization Options): Move -fuse-ld documentation to...
41075 (Link Options): ...here.
41076
41077 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41078
41079 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41080 offsets.
41081 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41082 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41083 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41084 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41085 instead of ZR for the memory operand of LL/SC.
41086 (compare_and_swap_12, sync_add<mode>): Likewise.
41087 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41088 (sync_new_<optab>_12, sync_nand_12): Likewise.
41089 (sync_old_nand_12, sync_new_nand_12): Likewise.
41090 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41091 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41092 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41093 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41094 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41095 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41096 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41097 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41098 * doc/md.texi (ZC): Update description.
41099
41100 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41101
41102 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41103 memory model is CONSUME.
41104 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41105 expand_builtin_atomic_store): Change invalid memory model errors to
41106 warnings.
41107 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41108 and issue warning for CONSUME.
41109
41110 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41111
41112 * lto-cgraph: Update function comments for
41113 lto_symtab_encoder_encode_*.
41114
41115 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41116
41117 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41118
41119 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41120
41121 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41122 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41123 lto_stream_offload_p instead.
41124 * lto-streamer.h (select_what_to_stream): Remove argument.
41125 * passes.c (ipa_write_summaries): Likewise.
41126 * tree-pass.h (ipa_write_summaries): Likewise.
41127
41128 2015-01-14 Richard Biener <rguenther@suse.de>
41129
41130 PR tree-optimization/59354
41131 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41132 groups larger than the slp group size as having gaps.
41133
41134 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41135
41136 PR middle-end/59448
41137 * builtins.c (get_memmodel): Promote consume to acquire always.
41138
41139 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41140
41141 PR target/64386
41142 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41143 V32HImode.
41144
41145 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41146
41147 PR target/64393
41148 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41149 Enable AVX512BW.
41150 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41151 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41152 AVX512VBMI, as it implies AVX512BW.
41153
41154 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41155
41156 PR target/64387
41157 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41158 (vec_unpacks_hi_v16sf): Ditto.
41159
41160 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41161
41162 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41163 is not available.
41164
41165 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41166
41167 * doc/invoke.texi (mapcs): Mention deprecation.
41168 (mapcs-frame): Likewise.
41169
41170 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
41171
41172 PR target/64453
41173 * config/arm/arm.c (callee_saved_reg_p): Define.
41174 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41175 register is callee saved instead of !call_used_regs[reg].
41176 (thumb1_compute_save_reg_mask): Likewise.
41177
41178 2015-01-14 Hale Wang <hale.wang@arm.com>
41179
41180 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41181 Cortex-M7.
41182
41183 2015-01-14 Richard Biener <rguenther@suse.de>
41184
41185 PR lto/64415
41186 * tree-inline.c (insert_debug_decl_map): Check destination
41187 function MAY_HAVE_DEBUG_STMTS.
41188 (insert_init_debug_bind): Likewise.
41189 (insert_init_stmt): Remove redundant check.
41190 (remap_gimple_stmt): Drop debug stmts if the destination
41191 function has var-tracking assignments disabled.
41192
41193 2015-01-14 Martin Liska <mliska@suse.cz>
41194
41195 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41196 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41197
41198 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41199
41200 PR target/64460
41201 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41202 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41203
41204 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41205
41206 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41207 level from an ARCH; do not inject the default.
41208 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41209 MIPS_ISA_LEVEL_SPEC.
41210 (MIPS_ISA_NAN2008_SPEC): Update comment.
41211 (BASE_DRIVER_SELF_SPECS): Likewise.
41212 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41213 MIPS_DEFAULT_ISA_LEVEL_SPEC.
41214 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41215 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41216 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41217
41218 2015-01-14 Richard Biener <rguenther@suse.de>
41219
41220 PR tree-optimization/64493
41221 PR tree-optimization/64495
41222 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41223 assign the proper vectorized PHI to the inner loop exit PHIs.
41224
41225 2015-01-14 Joey Ye <joey.ye@arm.com>
41226
41227 * config/arm/arm.c (arm_compute_save_reg_mask):
41228 Do not save lr in case of tail call.
41229 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41230
41231 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
41232
41233 * tree-vrp.c (check_array_ref): Emit more warnings
41234 for warn_array_bounds >= 2.
41235 * common.opt: New option -Warray-bounds=.
41236 * doc/invoke.texi: Document -Warray-bounds=.
41237
41238 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
41239
41240 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41241 (mforbid-fp-as-gp): Remove.
41242 (mex9): Remove.
41243 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41244 (nds32_symbol_load_store_p): Remove.
41245 (nds32_fp_as_gp_check_available): Clean up implementation.
41246 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41247 cases.
41248 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41249 fp-as-gp and ex9 cases.
41250
41251 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41252
41253 * tree-profile.c (init_ic_make_global_vars): Drop workaround
41254 for bintuils bug 14342.
41255 (init_ic_make_global_vars): Likewise.
41256 (gimple_init_edge_profiler): Likewise.
41257 (gimple_gen_ic_func_profiler): Likewise.
41258
41259 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
41260
41261 * ipa-inline.c (inline_small_functions): Swap the operands in
41262 enum.
41263
41264 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41265
41266 PR ipa/64481
41267 * ipa-inline-analysis.c (node_growth_cache): Remove.
41268 (initialize_growth_caches): Do not initialize it.
41269 (free_growth_caches): Do not free it.
41270 (do_estimate_growth): Rename to ...
41271 (estimate_growth): ... this one; drop growth cache code.
41272 (growth_likely_positive): Always go the heuristics way.
41273 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41274 (reset_edge_caches): Do not reset node growth.
41275 (heap_edge_removal_hook): Do not maintain cache.
41276 (inline_small_functions): Likewise; strenghten sanity check.
41277 (ipa_inline): Do not maintain caches.
41278 * ipa-inline.h (node_growth_cache): Remove.
41279 (do_estimate_growth): Remove to ...
41280 (estimate_growth): this one; remove inline version.
41281 (reset_node_growth_cache): Remove.
41282
41283 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41284
41285 PR ipa/64565
41286 * ipa-inline.c (inline_small_functions): Update callee keys after
41287 resolving speculation
41288 (inline_small_functions): Always check monotonicity of the queue.
41289
41290 2015-01-13 Marek Polacek <polacek@redhat.com>
41291
41292 PR middle-end/64391
41293 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41294
41295 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41296
41297 PR rtl-optimization/64286
41298 * ree.c (combine_reaching_defs): Move part of comment earlier,
41299 remove !SCALAR_INT_MODE_P check.
41300 (add_removable_extension): Don't add vector mode
41301 extensions if all uses of the source register aren't the same
41302 vector extensions.
41303
41304 2015-01-13 Renlin Li <renlin.li@arm.com>
41305
41306 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41307 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41308
41309 2015-01-13 Martin Liska <mliska@suse.cz>
41310
41311 * ipa-icf.c (sem_function::equals_private): Call new functions
41312 cl_target_option_print_diff and cl_optimization_print_diff.
41313 * optc-save-gen.awk (cl_target_option_print_diff): New function.
41314 (cl_optimization_print_diff): Likewise.
41315 * opth-gen.awk: Likewise.
41316
41317 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
41318
41319 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41320 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41321 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41322 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41323 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41324 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41325
41326 2015-01-13 Andrew Pinski <apinski@cavium.com>
41327
41328 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41329 instead of src mode.
41330
41331 2015-01-13 Richard Biener <rguenther@suse.de>
41332
41333 PR lto/64373
41334 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41335 DECL_CONTEXT.
41336
41337 2015-01-13 Andrew Pinski <apinski@cavium.com>
41338
41339 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41340 volatile mems.
41341 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41342
41343 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41344
41345 PR middle-end/63974
41346 * cfgexpand.c (expand_computed_goto): Don't call
41347 convert_memory_address here.
41348
41349 2015-01-13 Richard Biener <rguenther@suse.de>
41350
41351 PR tree-optimization/64406
41352 * tree-loop-distibution.c (pass_loop_distribution::execute):
41353 Reset the SCEV hashtable if we distributed anything.
41354
41355 2015-01-13 Richard Biener <rguenther@suse.de>
41356
41357 PR tree-optimization/64404
41358 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41359 SLP types for CSEd loads.
41360
41361 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41362
41363 PR tree-optimization/64436
41364 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41365 merge of two symbolic numbers for a bitwise OR to ...
41366 (perform_symbolic_merge): This. Also fix computation of the range and
41367 end of the symbolic number corresponding to the result of a bitwise OR.
41368
41369 2015-01-13 Richard Biener <rguenther@suse.de>
41370
41371 PR tree-optimization/64568
41372 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41373 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41374
41375 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41376
41377 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41378 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41379
41380 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41381
41382 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41383 target-specific symbol_ref flag.
41384 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41385 resides in rodata section.
41386 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41387 (nds32_encode_section_info): New function.
41388
41389 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41390
41391 * config/nds32/nds32.md (call): Use pseudo instruction bal which
41392 clobbers TA_REGNUM if large code model is specified.
41393 (call_register): Likewise.
41394 (call_immediate): Likewise.
41395 (call_value): Likewise.
41396 (call_value_register): Likewise.
41397 (call_value_immediate): Likewise.
41398
41399 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41400
41401 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41402 (TARGET_CMODEL_MEDIUM): New macro.
41403 (TARGET_CMODEL_LARGE): New macro.
41404 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41405 code model setting in assembly code.
41406
41407 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41408
41409 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41410 Remove MASK_GP_DIRECT flag.
41411 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41412 one of the multilib default options.
41413 * config/nds32/nds32.opt (mgp-direct): Remove.
41414 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41415 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
41416
41417 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41418
41419 * config/nds32/nds32.opt (mcmodel): Add new option.
41420 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41421 to describe code model.
41422
41423 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
41424
41425 PR target/64479
41426 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41427
41428 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
41429
41430 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41431 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41432 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41433 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41434 __builtin_sh_set_fpscr.
41435
41436 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41437
41438 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41439 after a funtion name just to indicate it is a function.
41440 ([-fsanitize-undefined-trap-on-error]): Likewise.
41441 ([-fdbg-cnt=]): Likewise.
41442 ([-mmemcpy]): Likewise.
41443 ([-mflush-func]): Likewise.
41444 ([-msynci]): Likewise.
41445
41446 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41447
41448 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41449 example.
41450
41451 2015-01-12 Jakub Jelinek <jakub@redhat.com>
41452
41453 PR tree-optimization/64563
41454 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41455 instead of != VR_VARYING.
41456
41457 PR target/64513
41458 * config/i386/i386.c (ix86_expand_prologue): Add
41459 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41460
41461 PR tree-optimization/64454
41462 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41463 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41464 for signed or [0, op1 - 1] for unsigned modulo.
41465 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41466 even if op1 does not satisfy integer_pow2p.
41467
41468 PR other/64370
41469 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41470
41471 2015-01-12 Jeff Law <law@redhat.com>
41472
41473 PR target/64461
41474 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41475 (trunchiqi2, truncsihi2): Similarly.
41476
41477 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41478 rather than calling F.
41479
41480 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
41481
41482 * tsan.c (instrument_expr): Use force_gimple_operand.
41483 Use may_be_nonaddressable_p instead of is_gimple_addressable.
41484
41485 2015-01-12 Richard Biener <rguenther@suse.de>
41486
41487 PR tree-optimization/64530
41488 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41489 back dr1.
41490
41491 2015-01-12 Richard Biener <rguenther@suse.de>
41492
41493 PR middle-end/64357
41494 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41495 latches properly.
41496
41497 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41498
41499 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41500 Cortex-A17 tuning parameters.
41501 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41502
41503 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41504
41505 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41506 * config/arm/arm.c (arm_macro_fusion_p): New function.
41507 (arm_macro_fusion_pair_p): Likewise.
41508 (TARGET_SCHED_MACRO_FUSION_P): Define.
41509 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41510 (ARM_FUSE_NOTHING): Likewise.
41511 (ARM_FUSE_MOVW_MOVT): Likewise.
41512 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41513 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41514 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41515 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41516 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41517 arm_cortex_a5_tune): Specify fuseable_ops value.
41518
41519 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
41520
41521 PR bootstrap/64561
41522 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41523 test for PIE with copy reloc.
41524 * configure: Regenerated.
41525
41526 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41527
41528 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41529 in gen_rtx_REG.
41530 (arm_tls_descseq_addr): Likewise.
41531 (arm_gen_movmemqi): Likewise.
41532 (arm_expand_epilogue_apcs_frame): Likewise.
41533 (arm_expand_epilogue): Likewise.
41534 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
41535 in gen_rtx_REG.
41536
41537 2015-01-12 Martin Liska <mliska@suse.cz>
41538
41539 PR ipa/64550
41540 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41541 volatility for correct operands.
41542
41543 2015-01-12 Martin Liska <mliska@suse.cz>
41544
41545 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41546 indication that a function is not leaf.
41547 (sem_function::compare_polymorphic_p): Likewise.
41548
41549 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41550
41551 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41552 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41553 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41554 fold-const.h, tree-check.h.
41555
41556 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41557
41558 PR ipa/63967
41559 PR ipa/64425
41560 * ipa-inline.c (compute_uninlined_call_time,
41561 compute_inlined_call_time): Use counts for extra precision when
41562 needed possible.
41563 (big_speedup_p): Fix formating.
41564 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41565 (relative_time_benefit): Remove.
41566 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41567 merge guessed and read profile paths.
41568 (inline_small_functions): Count only !optimize_size functions into
41569 initial size; be more lax about sanity check when profile is used;
41570 be sure to update inlined function profile when profile is read.
41571
41572 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41573
41574 PR ipa/63470
41575 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41576 cost when edge becomes direct.
41577 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41578 is resolved or when introducing new speculation.
41579
41580 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
41581
41582 PR ipa/64551
41583 PR ipa/64552
41584 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41585 '||' to fix typo issue.
41586
41587 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41588 accept and return NULL.
41589
41590 2015-01-12 Martin Liska <mliska@suse.cz>
41591
41592 * cgraph.c (cgraph_edge::remove_callee): Move function to header
41593 file for being inlined.
41594 (cgraph_set_edge_callee): Delete.
41595 (cgraph_edge::redirect_callee): Move function to header file
41596 for being inlined.
41597 (cgraph_edge::make_direct): Use new function.
41598 (cgraph_edge::dump_edge_flags): New function created from
41599 static dump_edge_flags function.
41600 (cgraph_node::dump): Use new function.
41601 (cgraph_edge::verify_count_and_frequency): New function created
41602 from verify_edge_count_and_frequency.
41603 (cgraph_edge::verify_corresponds_to_fndecl): New function created
41604 from verify_edge_corresponds_to_fndecl.
41605 (verify_edge_corresponds_to_fndecl): Delete.
41606 (cgraph_node::verify_node): Use new function.
41607 * cgraph.h (cgraph_edge::set_callee): New function.
41608 (cgraph_edge::dump_edge_flags): Likewise.
41609 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41610
41611 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
41612
41613 * ipa-utils.c (estimate_function_body_sizes): Do not
41614 free node params when called late with early=true.
41615
41616 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
41617
41618 * doc/md.texi (Instruction Patterns): Rewrite text for
41619 clarity.
41620 (Example): Likewise.
41621
41622 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
41623
41624 * doc/invoke.texi (Option Summary): Break long lines.
41625 [(-fdiagnostics-color)]: Put long literal in @smallexample
41626 instead of inline.
41627 [(-fsanitize-recover)]: Likewise.
41628 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41629 [(-ffast-math)]: Likewise.
41630 [(--param max-inline-insns-recursive)]: Likewise.
41631 [(--param max-inline-recursive-depth)]: Likewise.
41632 [(-mno-text-section-literals)]: Likewise.
41633
41634 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
41635
41636 * doc/install.texi: Update for libgomp being renamed from "GNU
41637 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41638 Runtime Library".
41639 * doc/sourcebuild.texi: Likewise.
41640
41641 2015-01-10 Anthony Green <green@moxielogic.com>
41642
41643 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41644 mul.x availability for moxiebox configuration.
41645
41646 2015-01-09 Anthony Green <green@moxielogic.com>
41647
41648 * config/moxie/moxie.md: Tabify assembly output.
41649
41650 2015-01-09 Anthony Green <green@moxielogic.com>
41651
41652 * config/moxie/moxie.md (CC_REG): Correct register definition.
41653
41654 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
41655
41656 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41657 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
41658 of log files.
41659
41660 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41661
41662 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
41663
41664 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
41665 Jakub Jelinek <jakub@redhat.com>
41666
41667 PR middle-end/64412
41668 * lto-streamer.h (lto_stream_offload_p): New declaration.
41669 * lto-streamer.c (lto_stream_offload_p): New variable.
41670 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
41671 at the same time as section_name_prefix.
41672 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
41673 if lto_stream_offload_p.
41674 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
41675 stream TREE_TARGET_OPTION if lto_stream_offload_p.
41676 (write_ts_function_decl_tree_pointers): Don't
41677 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
41678 * tree-streamer-in.c (unpack_value_fields): Don't stream
41679 TREE_TARGET_OPTION in if ACCEL_COMPILER.
41680 (lto_input_ts_function_decl_tree_pointers): Don't stream
41681 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
41682 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
41683 instead of section_name_prefix string comparisons.
41684
41685 2015-01-09 Jakub Jelinek <jakub@redhat.com>
41686
41687 PR rtl-optimization/64536
41688 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
41689 tablejumps.
41690
41691 2015-01-09 Michael Collison <michael.collison@linaro.org>
41692
41693 PR tree-optimization/64322
41694 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41695 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41696
41697 2015-01-09 Tom de Vries <tom@codesourcery.com>
41698
41699 PR rtl-optimization/64539
41700 * regcprop.c (kill_clobbered_values): Factor out of ...
41701 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
41702 instead of note_stores with kill_clobbered_value.
41703
41704 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41705
41706 * ginclude/unwind-arm-common.h: Revert previous commit.
41707
41708 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41709
41710 * config.gcc (arm*-*-freebsd*): New configuration.
41711 * config/arm/freebsd.h: New file.
41712 * config.host: Add extra components for arm*-*-freebsd*.
41713 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41714 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41715
41716 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41717
41718 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41719 for -mcpu=e6500.
41720 * config/rs6000/t-rtems: Add e6500 multilibs.
41721
41722 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41723
41724 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41725 MPC8540.
41726
41727 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41728
41729 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41730 MULTILIB_EXCEPTIONS.
41731
41732 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41733
41734 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41735 MULTILIB_EXCEPTIONS.
41736
41737 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41738
41739 * config/arm/t-rtems-eabi: Rename to...
41740 * config/arm/t-rtems: ...this.
41741 * config/arm/rtems-eabi.h: Rename to...
41742 * config/arm/rtems.h: ...this.
41743 * config.gcc (arm*-*-rtems*): Reflect changes above.
41744
41745 2015-01-09 Richard Biener <rguenther@suse.de>
41746
41747 PR tree-optimization/64410
41748 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41749 on the LHS.
41750 (execute_update_addresses_taken): Deal with that.
41751 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41752 loads/stores for complex variables.
41753
41754 2015-01-09 Martin Liska <mliska@suse.cz>
41755
41756 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41757 name comparison.
41758 (func_checker::compare_memory_operand): New function.
41759 (func_checker::compare_operand): Split case to newly
41760 added functions.
41761 (func_checker::compare_cst_or_decl): New function.
41762 (func_checker::compare_gimple_call): Identify
41763 memory operands.
41764 (func_checker::compare_gimple_assign): Likewise.
41765 * ipa-icf-gimple.h: New function.
41766
41767 2015-01-09 Martin Liska <mliska@suse.cz>
41768
41769 PR ipa/64503
41770 * sreal.c (sreal::dump): Change unsigned format to signed for
41771 m_exp value.
41772 (sreal::to_double): Replace exp2 with scalbln.
41773
41774 2015-01-09 Martin Liska <mliska@suse.cz>
41775
41776 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41777 * ipa-icf.c (sem_function::equals_private): Add support for target and
41778 (sem_item_optimizer::merge_classes): Remove redundant function
41779 optimization flags comparison.
41780 * tree.h (target_opts_for_fn): New function.
41781
41782 2015-01-09 Tom de Vries <tom@codesourcery.com>
41783
41784 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41785
41786 2015-01-09 Kito Cheng <kito@0xlab.org>
41787
41788 PR rtl-optimization/64348
41789 * lra-constraints.c (split_reg): Fix caller-save store/restore
41790 instruction generation.
41791
41792 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
41793
41794 PR gcov-profile/61790
41795 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41796 long long. Fallback to int64_t if host doesn't have long long and
41797 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
41798
41799 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41800
41801 PR tree-optimization/63989
41802 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41803 from 1000 to 10000.
41804 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41805 (get_stridx): If we don't have a record for certain SSA_NAME,
41806 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41807 constant offset, call get_stridx_plus_constant.
41808 (get_stridx_plus_constant): New function.
41809 (zero_length_string): Don't use get_stridx here.
41810
41811 PR target/55023
41812 PR middle-end/64388
41813 * dse.c (struct insn_info): Mention frame_read set also
41814 before reload for tail calls on some targets.
41815 (scan_insn): Revert 2014-12-22 change. Set frame_read
41816 also before reload for tail calls if
41817 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
41818 instead of add_non_frame_wild_read for non-const/memset
41819 tail calls after reload.
41820
41821 2015-01-08 Jason Merrill <jason@redhat.com>
41822
41823 * ubsan.c (do_ubsan_in_current_function): New.
41824 (pass_ubsan::gate): Use it.
41825 * ubsan.h: Declare it.
41826 * convert.c (convert_to_integer): Use it.
41827
41828 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41829
41830 PR target/64338
41831 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41832 compare_code when it is unconditionally overwritten afterwards.
41833 Use ix86_reverse_condition instead of reverse_condition. Don't
41834 change code if *reverse_condition* returned UNKNOWN and don't
41835 swap ct/cf and negate diff in that case.
41836
41837 2015-01-08 Mike Stump <mikestump@comcast.net>
41838
41839 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41840 (pass_tsan_O0::gate): Likewise.
41841 * extend.texi (Function Attributes): Add no_sanitize_thread
41842 documentation.
41843
41844 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
41845
41846 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41847 for registering builtins.
41848 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41849 add -fopenmp to the argv_obstack used when invoking
41850 compile_for_target.
41851
41852 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41853 add "-m32" or "-m64" to argv_obstack.
41854 (generate_host_descr_file): Likewise, when invoking host_compiler.
41855 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41856 ld.
41857
41858 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41859
41860 * config/sh/sh-mem.cc: Use constant as second operand when emitting
41861 tstsi_t insns.
41862
41863 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41864
41865 PR target/55212
41866 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41867 constant load if constant operand fits into I08.
41868
41869 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41870
41871 PR sanitizer/64336
41872 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41873 and TREE_THIS_VOLATILE for MEM_REFs.
41874 (build5_stat): Fix up initialization of TREE_READONLY and
41875 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41876
41877 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
41878
41879 PR target/64533
41880 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41881 of r for the second alternative of the destination operand.
41882
41883 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
41884
41885 PR target/36557
41886 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41887
41888 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41889
41890 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41891 keywords.
41892 ([-fivar-visibility], [-fvisibility]): Likewise.
41893
41894 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41895
41896 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41897 the file where @code, @command, etc is more appropriate.
41898
41899 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
41900
41901 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41902 of -mrecip= documentation.
41903
41904 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
41905
41906 PR target/64505
41907 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41908 correct reload handler if -m32 -mpowerpc64 is used.
41909
41910 2015-01-06 Tom de Vries <tom@codesourcery.com>
41911
41912 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41913
41914 2015-01-08 Christian Bruel <christian.bruel@st.com>
41915
41916 PR target/64507
41917 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41918
41919 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
41920
41921 PR tree-optimization/63259
41922 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41923 if optab exists for 16bit byteswap.
41924
41925 2015-01-06 Jakub Jelinek <jakub@redhat.com>
41926
41927 * opts.c (common_handle_option): Add support for
41928 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41929 * doc/invoke.texi: Document -fno-sanitize=all,
41930 -f{,no-}sanitize-recover=all. Document that
41931 -fsanitize=float-cast-overflow is not enabled
41932 by -fsanitize=undefined. Fix up documentation
41933 of -f{,no-}sanitize-recover.
41934
41935 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
41936
41937 * config.gcc: Add Visium support.
41938 * configure.ac: Likewise.
41939 * configure: Regenerate.
41940 * doc/extend.texi (interrupt attribute): Add Visium.
41941 * doc/invoke.texi: Document Visium options.
41942 * doc/install.texi: Document Visium target.
41943 * doc/md.texi: Document Visium constraints.
41944 * common/config/visium: New directory.
41945 * config/visium: Likewise.
41946
41947 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41948
41949 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41950 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41951
41952 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41953
41954 * combine.c (combine_validate_cost): Do not count the cost of a
41955 split I2 twice. Do not display it twice in the dump, either.
41956
41957 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41958
41959 Revert parts of r219199.
41960 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41961 <inttypes.h>.
41962 ([-Wtraditional]): Restore markup on <limits.h>.
41963
41964 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
41965
41966 PR c++/31397
41967 * doc/invoke.texi: Document -Wsuggest-override.
41968
41969 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
41970
41971 PR rtl-optimization/64287
41972 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41973 (process_options): Disable flag_ipa_ra if profiling.
41974
41975 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
41976
41977 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41978
41979 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
41980
41981 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41982 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41983 put under #if TARGET_LOOPS guard.
41984
41985 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
41986
41987 * config/i386/i386.c (output_387_binary_op): Use std::swap.
41988
41989 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
41990
41991 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41992 * rtl.h (refers_to_regno_p): Add overload.
41993 * cse.c: Use it.
41994 * bt-load.c: Likewise.
41995 * combine.c: Likewise.
41996 * df-scan.c: Likewise.
41997 * sched-deps.c: Likewise.
41998 * config/s390/s390.c: Likewise.
41999 * config/m32r/m32r.c: Likewise.
42000 * config/rs6000/spe.md: Likewise.
42001 * config/rs6000/rs6000.c: Likewise.
42002 * config/pa/pa.c: Likewise.
42003 * config/stormy16/stormy16.c: Likewise.
42004 * config/cris/cris.c: Likewise.
42005 * config/arc/arc.md: Likewise.
42006 * config/arc/arc.c: Likewise.
42007 * config/sh/sh.md: Likewise.
42008 * config/sh/sh.c: Likewise.
42009 * config/frv/frv.c: Likewise.
42010
42011 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42012
42013 PR sanitizer/64265
42014 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42015 call as cleanup of the whole body.
42016 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42017 * tsan.c (replace_func_exit): New function.
42018 (instrument_func_exit): Moved earlier.
42019 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42020 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42021 been found.
42022 (tsan_pass): Don't call instrument_func_exit.
42023 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42024 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42025 inlining.
42026
42027 PR sanitizer/64344
42028 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42029 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42030 it to libubsan handler instead of EXPR. Fold comparisons earlier,
42031 if the result is integer_zerop, return NULL_TREE.
42032 * convert.c (convert_to_integer): Pass expr as ARG.
42033
42034 PR tree-optimization/64465
42035 * tree-inline.c (redirect_all_calls): During inlining
42036 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42037 changed the stmt to a non-throwing call.
42038
42039 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42040
42041 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42042 etc markup throughout the file.
42043
42044 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
42045
42046 Enable experimental TSAN support for Ada.
42047 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42048
42049 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42050
42051 PR tree-optimization/64494
42052 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42053 clear SSA_NAME_ANTI_RANGE_P flag.
42054
42055 2015-01-05 Marek Polacek <polacek@redhat.com>
42056
42057 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42058
42059 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42060
42061 Update copyright years.
42062
42063 * gcc.c (process_command): Update copyright notice dates.
42064 * gcov-dump.c: Ditto.
42065 * gcov.c: Ditto.
42066 * doc/cpp.texi: Bump @copying's copyright year.
42067 * doc/cppinternals.texi: Ditto.
42068 * doc/gcc.texi: Ditto.
42069 * doc/gccint.texi: Ditto.
42070 * doc/gcov.texi: Ditto.
42071 * doc/install.texi: Ditto.
42072 * doc/invoke.texi: Ditto.
42073
42074 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42075
42076 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42077
42078 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42079 verb tense, etc.
42080 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42081 ([-Wabi]): Likewise.
42082 ([-fmessage-length]): Likewise.
42083 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42084 ([-Wno-discarded-qualifiers]): Likewise.
42085 ([-Wnodiscarded-array-qualifiers]): Likewise.
42086 ([-Wno-virtual-move-assign]): Likewise.
42087 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42088 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42089 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42090 ([-fsanitize-undefined-trap-on-error]): Likewise.
42091 ([-floop-interchange]): Likewise.
42092 ([-ftree-coalesce-inlined-vars]): Likewise.
42093 ([-fvect-cost-model]): Likewise.
42094 ([-flto]): Likewise.
42095 ([--param]): Likewise.
42096 (Spec Files): Likewise.
42097 ([-mstrict-align]): Likewise.
42098 ([-mfix-cortex-a53-835769]): Likewise.
42099 ([-march], [-mtune]): Likewise.
42100 ([-mpic-register]): Likewise.
42101 ([-munaligned-access]): Likewise.
42102 ([-msp8]): Likewise.
42103 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42104 (AVR Built-in Macros): Likewise.
42105 ([-mpreferred-stack-boundary]): Likewise.
42106 ([-mtune-crtl]): Likewise.
42107 ([-mashf]): Likewise.
42108 ([-mmcu=]): Likewise.
42109 ([-minrt]): Likewise.
42110 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42111 ([-mupper-regs]): Likewise.
42112 ([-matomic-model]): Likewise.
42113 ([-mdiv]): Likewise.
42114 ([-mzdcbranch]): Likewise.
42115 ([-mdisable-callt]): Likewise.
42116 ([-msoft-float]): Likewise.
42117 ([-m8byte-align]): Likewise.
42118 ([-fstack-reuse]): Likewise.
42119
42120 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42121
42122 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42123 Fix markup, light copy-editing.
42124 ([-fauto-profile]): Rewrite to fix formatting and content
42125 problems.
42126
42127 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42128
42129 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42130 Copy-edit description.
42131 ([-fisolate-erroneous-paths-attribute]): Likewise.
42132 * common.opt (fisolate-erroneous-paths-dereference):
42133 Copy-edit description.
42134 (fisolate-erroneous-paths-attribute): Likewise.
42135
42136 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42137
42138 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42139 tidy grammar.
42140
42141 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42142
42143 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42144 ([-fvtv-debug]): Likewise.
42145 ([-Wc++-compat]): Likewise.
42146 ([-Wc++11-compat]): Likewise.
42147 ([-Wc++14-compat]): Likewise.
42148 ([-Wno-sized-deallocation]): Likewise.
42149 ([-femit-class-debug-always]): Likewise.
42150 ([-femit-struct-debug-detailed]): Likewise.
42151 ([-fno-keep-inline-dllexport]): Likewise.
42152 ([-fira-algorithm]): Likewise.
42153 ([-fira-region]): Likewise.
42154 ([-flra-remat]): Likewise.
42155 ([-fipa-ra]): Likewise.
42156 ([-fhoist-adjacent-loads]): Likewise.
42157 ([-fisolate-erroneous-paths-dereference]): Likewise.
42158 ([-fisolate-erroneous-paths-attribute]): Likewise.
42159 ([-ftree-switch-conversion]): Likewise.
42160 ([-ftree-tail-merge]): Likewise.
42161 ([-ftree-loop-if-convert]): Likewise.
42162 ([-ftree-loop-if-convert-stores]): Likewise.
42163 ([-ftree-loop-distribution]): Likewise.
42164 ([-ftree-loop-distribute-patterns]): Likewise.
42165 ([-flto-compression-level]): Likewise.
42166 ([-flto-report]): Likewise.
42167 ([-flto-report-wpa]): Likewise.
42168 ([-fuse-linker-plugin]): Likewise.
42169 ([-mfix-cortex-a53-835769]): Likewise.
42170 ([-mno-fix-cortex-a53-835769]): Likewise.
42171 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42172 explicit listing; add a note to the discussion indicating they
42173 exist. Reorder table to group similar options. Add missing
42174 @opindex entries. Add @need commands throughout the table to
42175 allow it to be split across multiple pages.
42176 ([-m8bit-idiv]): Fix @opindex.
42177 ([-mavx256-split-unaligned-load]): Likewise.
42178 ([-mavx256-split-unaligned-store]): Likewise.
42179 ([-mstack-protector-guard]): Likewise.
42180 ([-mcpu=]): Likewise.
42181 ([-mcpu]): Likewise.
42182 ([-mpointer-size=]): Likewise.
42183
42184 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
42185
42186 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42187 instead of `m' constraint. Likewise for unnamed movb comparison
42188 patterns using reg_before_reload_operand predicate.
42189 * config/pa/predicates.md (reg_before_reload_operand): Tighten
42190 predicate to reject register index and LO_SUM DLT memory forms
42191 after reload.
42192
42193 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42194
42195 * doc/invoke.texi (Option Summary): Fix spelling of
42196 -fdevirtualize-at-ltrans.
42197 ([-fdevirtualize]): Fix markup.
42198 ([-fdevirtualize-speculatively]): Fix typo.
42199 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
42200 implementor-speaky.
42201 * common.opt (fdevirtualize-at-ltrans): Likewise.
42202 * ipa-devirt.c: Fix typos in comments throughout the file.
42203 (ipa_devirt): Fix typos in format strings for dump output.
42204
42205 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42206
42207 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42208 discussion of defaults, light copy-editing.
42209
42210 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42211
42212 * tsan.c (instrument_expr): corrected previous checkin.
42213
42214 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42215
42216 Instrument bit field and unaligned accesses for TSAN.
42217 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42218 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42219 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42220 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42221 unaligned memory regions.
42222
42223 2015-01-01 Anthony Green <green@moxielogic.com>
42224
42225 * config/moxie/predicates.md (moxie_general_movsrc_operand):
42226 Restrict move source register offsets to 16 bits.
42227 \f
42228 Copyright (C) 2015 Free Software Foundation, Inc.
42229
42230 Copying and distribution of this file, with or without modification,
42231 are permitted in any medium without royalty provided the copyright
42232 notice and this notice are preserved.
This page took 1.913894 seconds and 5 git commands to generate.