1 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
3 * config/arm/neon-testgen.ml: Fix comment typo.
5 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7 * rtlanal.c (reg_set_p): Expand function comment.
9 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
11 * alias.c: Remove unused headers.
13 * attribs.c: Likewise.
14 * auto-inc-dec.c: Likewise.
15 * auto-profile.c: Likewise.
16 * bb-reorder.c: Likewise.
18 * bt-load.c: Likewise.
19 * builtins.c: Likewise.
20 * caller-save.c: Likewise.
24 * cfganal.c: Likewise.
25 * cfgbuild.c: Likewise.
26 * cfgcleanup.c: Likewise.
27 * cfgexpand.c: Likewise.
28 * cfghooks.c: Likewise.
29 * cfgloop.c: Likewise.
30 * cfgloopanal.c: Likewise.
31 * cfgloopmanip.c: Likewise.
34 * cgraphbuild.c: Likewise.
35 * cgraphclones.c: Likewise.
36 * cgraphunit.c: Likewise.
37 * cilk-common.c: Likewise.
38 * combine-stack-adj.c: Likewise.
39 * combine.c: Likewise.
40 * compare-elim.c: Likewise.
41 * convert.c: Likewise.
42 * coverage.c: Likewise.
43 * cppbuiltin.c: Likewise.
47 * data-streamer-in.c: Likewise.
48 * data-streamer-out.c: Likewise.
49 * data-streamer.c: Likewise.
54 * df-core.c: Likewise.
55 * df-problems.c: Likewise.
56 * df-scan.c: Likewise.
59 * dominance.c: Likewise.
60 * domwalk.c: Likewise.
61 * double-int.c: Likewise.
63 * dumpfile.c: Likewise.
64 * dwarf2asm.c: Likewise.
65 * dwarf2cfi.c: Likewise.
66 * dwarf2out.c: Likewise.
67 * emit-rtl.c: Likewise.
73 * fixed-value.c: Likewise.
74 * fold-const.c: Likewise.
75 * function.c: Likewise.
78 * generic-match-head.c: Likewise.
79 * ggc-common.c: Likewise.
80 * gimple-builder.c: Likewise.
81 * gimple-expr.c: Likewise.
82 * gimple-fold.c: Likewise.
83 * gimple-iterator.c: Likewise.
84 * gimple-low.c: Likewise.
85 * gimple-match-head.c: Likewise.
86 * gimple-pretty-print.c: Likewise.
87 * gimple-ssa-isolate-paths.c: Likewise.
88 * gimple-ssa-strength-reduction.c: Likewise.
89 * gimple-streamer-in.c: Likewise.
90 * gimple-streamer-out.c: Likewise.
91 * gimple-walk.c: Likewise.
93 * gimplify-me.c: Likewise.
94 * gimplify.c: Likewise.
97 * graphds.c: Likewise.
98 * haifa-sched.c: Likewise.
99 * hw-doloop.c: Likewise.
101 * init-regs.c: Likewise.
102 * internal-fn.c: Likewise.
103 * ipa-chkp.c: Likewise.
104 * ipa-comdats.c: Likewise.
105 * ipa-cp.c: Likewise.
106 * ipa-devirt.c: Likewise.
107 * ipa-icf-gimple.c: Likewise.
108 * ipa-icf.c: Likewise.
109 * ipa-inline-analysis.c: Likewise.
110 * ipa-inline-transform.c: Likewise.
111 * ipa-inline.c: Likewise.
112 * ipa-polymorphic-call.c: Likewise.
113 * ipa-profile.c: Likewise.
114 * ipa-prop.c: Likewise.
115 * ipa-pure-const.c: Likewise.
116 * ipa-ref.c: Likewise.
117 * ipa-reference.c: Likewise.
118 * ipa-split.c: Likewise.
119 * ipa-utils.c: Likewise.
120 * ipa-visibility.c: Likewise.
122 * ira-build.c: Likewise.
123 * ira-color.c: Likewise.
124 * ira-conflicts.c: Likewise.
125 * ira-costs.c: Likewise.
126 * ira-emit.c: Likewise.
127 * ira-lives.c: Likewise.
130 * langhooks.c: Likewise.
133 * loop-doloop.c: Likewise.
134 * loop-init.c: Likewise.
135 * loop-invariant.c: Likewise.
136 * loop-iv.c: Likewise.
137 * loop-unroll.c: Likewise.
138 * lower-subreg.c: Likewise.
139 * lra-assigns.c: Likewise.
140 * lra-coalesce.c: Likewise.
141 * lra-constraints.c: Likewise.
142 * lra-eliminations.c: Likewise.
143 * lra-lives.c: Likewise.
144 * lra-remat.c: Likewise.
145 * lra-spills.c: Likewise.
147 * lto-cgraph.c: Likewise.
148 * lto-compress.c: Likewise.
149 * lto-opts.c: Likewise.
150 * lto-section-in.c: Likewise.
151 * lto-section-out.c: Likewise.
152 * lto-streamer-in.c: Likewise.
153 * lto-streamer-out.c: Likewise.
154 * lto-streamer.c: Likewise.
156 * mode-switching.c: Likewise.
157 * modulo-sched.c: Likewise.
158 * optabs.c: Likewise.
159 * opts-global.c: Likewise.
160 * passes.c: Likewise.
161 * plugin.c: Likewise.
162 * postreload-gcse.c: Likewise.
163 * postreload.c: Likewise.
164 * predict.c: Likewise.
165 * print-tree.c: Likewise.
166 * profile.c: Likewise.
168 * realmpfr.c: Likewise.
171 * reg-stack.c: Likewise.
172 * regcprop.c: Likewise.
173 * reginfo.c: Likewise.
174 * regrename.c: Likewise.
175 * regstat.c: Likewise.
176 * reload.c: Likewise.
177 * reload1.c: Likewise.
179 * resource.c: Likewise.
180 * rtl-chkp.c: Likewise.
181 * rtl-error.c: Likewise.
182 * rtlanal.c: Likewise.
183 * rtlhooks.c: Likewise.
184 * sanopt.c: Likewise.
185 * sched-deps.c: Likewise.
186 * sched-ebb.c: Likewise.
187 * sched-rgn.c: Likewise.
188 * sdbout.c: Likewise.
189 * sel-sched-dump.c: Likewise.
190 * sel-sched-ir.c: Likewise.
191 * sel-sched.c: Likewise.
193 * shrink-wrap.c: Likewise.
194 * simplify-rtx.c: Likewise.
195 * stack-ptr-mod.c: Likewise.
196 * statistics.c: Likewise.
198 * stor-layout.c: Likewise.
199 * store-motion.c: Likewise.
200 * stringpool.c: Likewise.
201 * symtab.c: Likewise.
202 * target-globals.c: Likewise.
203 * targhooks.c: Likewise.
204 * toplev.c: Likewise.
205 * tracer.c: Likewise.
206 * trans-mem.c: Likewise.
207 * tree-affine.c: Likewise.
208 * tree-call-cdce.c: Likewise.
209 * tree-cfg.c: Likewise.
210 * tree-cfgcleanup.c: Likewise.
211 * tree-chkp-opt.c: Likewise.
212 * tree-chkp.c: Likewise.
213 * tree-chrec.c: Likewise.
214 * tree-complex.c: Likewise.
215 * tree-data-ref.c: Likewise.
216 * tree-dfa.c: Likewise.
217 * tree-diagnostic.c: Likewise.
218 * tree-dump.c: Likewise.
219 * tree-eh.c: Likewise.
220 * tree-emutls.c: Likewise.
221 * tree-if-conv.c: Likewise.
222 * tree-inline.c: Likewise.
223 * tree-into-ssa.c: Likewise.
224 * tree-iterator.c: Likewise.
225 * tree-loop-distribution.c: Likewise.
226 * tree-nested.c: Likewise.
227 * tree-nrv.c: Likewise.
228 * tree-object-size.c: Likewise.
229 * tree-outof-ssa.c: Likewise.
230 * tree-parloops.c: Likewise.
231 * tree-phinodes.c: Likewise.
232 * tree-predcom.c: Likewise.
233 * tree-pretty-print.c: Likewise.
234 * tree-profile.c: Likewise.
235 * tree-scalar-evolution.c: Likewise.
236 * tree-sra.c: Likewise.
237 * tree-ssa-address.c: Likewise.
238 * tree-ssa-alias.c: Likewise.
239 * tree-ssa-ccp.c: Likewise.
240 * tree-ssa-coalesce.c: Likewise.
241 * tree-ssa-copy.c: Likewise.
242 * tree-ssa-dce.c: Likewise.
243 * tree-ssa-dse.c: Likewise.
244 * tree-ssa-forwprop.c: Likewise.
245 * tree-ssa-ifcombine.c: Likewise.
246 * tree-ssa-live.c: Likewise.
247 * tree-ssa-loop-ch.c: Likewise.
248 * tree-ssa-loop-im.c: Likewise.
249 * tree-ssa-loop-ivcanon.c: Likewise.
250 * tree-ssa-loop-ivopts.c: Likewise.
251 * tree-ssa-loop-manip.c: Likewise.
252 * tree-ssa-loop-niter.c: Likewise.
253 * tree-ssa-loop-prefetch.c: Likewise.
254 * tree-ssa-loop-unswitch.c: Likewise.
255 * tree-ssa-loop.c: Likewise.
256 * tree-ssa-math-opts.c: Likewise.
257 * tree-ssa-operands.c: Likewise.
258 * tree-ssa-phiopt.c: Likewise.
259 * tree-ssa-phiprop.c: Likewise.
260 * tree-ssa-pre.c: Likewise.
261 * tree-ssa-propagate.c: Likewise.
262 * tree-ssa-reassoc.c: Likewise.
263 * tree-ssa-scopedtables.c: Likewise.
264 * tree-ssa-sink.c: Likewise.
265 * tree-ssa-strlen.c: Likewise.
266 * tree-ssa-structalias.c: Likewise.
267 * tree-ssa-tail-merge.c: Likewise.
268 * tree-ssa-ter.c: Likewise.
269 * tree-ssa-threadupdate.c: Likewise.
270 * tree-ssa-uncprop.c: Likewise.
271 * tree-ssa-uninit.c: Likewise.
272 * tree-ssa.c: Likewise.
273 * tree-ssanames.c: Likewise.
274 * tree-stdarg.c: Likewise.
275 * tree-streamer-in.c: Likewise.
276 * tree-streamer-out.c: Likewise.
277 * tree-streamer.c: Likewise.
278 * tree-switch-conversion.c: Likewise.
279 * tree-tailcall.c: Likewise.
280 * tree-vect-data-refs.c: Likewise.
281 * tree-vect-generic.c: Likewise.
282 * tree-vect-loop-manip.c: Likewise.
283 * tree-vect-loop.c: Likewise.
284 * tree-vect-patterns.c: Likewise.
285 * tree-vect-slp.c: Likewise.
286 * tree-vect-stmts.c: Likewise.
287 * tree-vectorizer.c: Likewise.
288 * tree-vrp.c: Likewise.
292 * value-prof.c: Likewise.
293 * var-tracking.c: Likewise.
294 * varasm.c: Likewise.
295 * varpool.c: Likewise.
296 * vmsdbgout.c: Likewise.
297 * vtable-verify.c: Likewise.
299 * wide-int-print.cc: Likewise.
300 * wide-int.cc: Likewise.
301 * xcoffout.c: Likewise.
303 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
305 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
306 between pass numbering and execution order.
308 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
310 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
311 check for dependencies.
313 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
315 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
318 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
320 * real.h (format_helper): New.
321 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
322 (real_from_target, real_nan, real_2expN, real_value_truncate)
323 (significand_size, real_from_string2, exact_real_inverse)
324 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
325 (real_round, real_isinteger, real_from_integer): Replace
326 machine_mode arguments with format_helper arguments.
327 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
328 (real_from_integer, real_nan, real_2expN, real_convert)
329 (real_value_truncate, exact_real_truncate, real_to_target)
330 (real_from_target, significand_size, real_powi, real_trunc)
331 (real_floor, real_ceil, real_round, real_isinteger): Replace
332 machine_mode arguments with format_helper arguments.
333 (real_to_target_fmt, real_from_target_fmt): Delete.
334 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
335 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
336 argument with real_format.
337 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
339 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
341 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
342 (fixed_to_decimal, fixed_convert_from_real)
343 (real_convert_from_fixed): Fix mode arguments to real_2expN.
345 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
347 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
350 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
352 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
353 (completely_scalarize): Comment zero-length arrays.
354 (get_access_replacement): Correct comment re. precondition.
356 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
358 * config/i386/i386.c (get_builtin_code_for_version): Set priority
359 for PROCESSOR_ZNVER1.
360 (enum processor_model): Add M_AMDFAM17H_znver1.
361 (struct arch_names_table): Likewise.
362 * doc/extend.texi: ADD znver1.
364 2015-10-30 Richard Biener <rguenther@suse.de>
366 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
367 fold () on single RHSs. Allow CONSTRUCTORS with trailing
368 zeros to be folded to VECTOR_CSTs.
369 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
370 * fold-const.c (fold): Use build_vector_from_ctor.
372 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
374 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
375 "mov %0.h[0], %1.h[0] to "neon_move".
376 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
377 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
379 (*cmovsi_insn_uxtw): Likewise.
381 2015-10-30 Tom de Vries <tom@codesourcery.com>
383 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
384 unsigned, and initialize, and use initial value instead of hardcoded
385 constant. Add generic constraints dumping section. Don't dump global
386 initializers constraints dumping section if empty. Don't update
387 variable from if unused.
389 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
391 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
392 flag_checking and/or CHECKING_P to eliminate conditional compilation
394 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
395 * config/bfin/bfin.c (hwloop_optimize): Likewise.
396 * config/i386/i386.c (ix86_print_operand_address): Likewise.
397 (output_387_binary_op): Likewise.
398 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
399 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
400 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
402 * config/rs6000/rs6000.h: Likewise.
403 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
405 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
407 * config/sh/sh.opt (mfdpic): Add missing period.
409 2015-08-29 Anatoly Sokolov <aesok@post.ru>
411 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
412 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
413 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
414 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
415 mcore_base_register_rtx_p, mcore_legitimate_index_p,
416 mcore_legitimate_address_p): New functions.
417 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
419 2015-10-29 Jeff Law <law@redhat.com>
421 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
423 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
424 * tree-ssa-threadedge.c
425 (record_temporary_equivalences_from_stmts_at_dest): Remove
426 backedge_seen argument and associated code which invalidated
427 equivalences based on the value of that argument.
428 (thread_through_normal_block): Corresponding changes.
430 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
432 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
433 function earlier in the file.
434 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
437 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
439 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
442 2015-10-29 Richard Henderson <rth@redhat.com>
446 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
447 sse check to the exact conditions of PR 67609.
449 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
451 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
452 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
453 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
454 of the traditional names that TFmode uses for handling IEEE
455 extended double. If -mfloat128, add KFmode functions for all of
456 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
457 make TFmode use the same emulation functions as KFmode.
458 (init_float128_ibm): Likewise.
459 (init_float128_ieee): Likewise.
460 (rs6000_generate_compare): For IEEE 128-bit floating point
461 comparisons, call the unordered comparison function instead of the
462 ordered comparison function.
463 (rs6000_expand_float128_convert): Deal with operands that are
464 memory operands. Restructure the code to use a switch statement on
465 the mode. Add support for TFmode defaulting to either IBM extended
466 double or IEEE 128-bit floating point. If the underlying types are
467 the same, use a move instead of a conversion function.
468 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
469 use for IEEE 128-bit floating point constants with -mfloat128.
470 (rs6000_c_mode_for_suffix): Likewise.
471 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
472 128-bit floating point with IBM extended double floating point.
473 (rs6000_invalid_binary_op): Likewise.
474 (rs6000_gen_le_vsx_permute): On little endian systems generate a
475 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
476 types that can go in vector registers.
477 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
478 point types that can go in vector registers on little endian
480 (mark_swaps_for_removal): Likewise.
481 (rs6000_analyze_swaps): Likewise.
482 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
484 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
485 rework IEEE 128-bit floating point insns to deal with TFmode being
486 either IBM extended double or IEEE 128-bit floating point.
488 (IBM128): Update iterator to add condition that the mode is IBM
490 (IEEE128): New iterator for IEEE 128-bit floating point.
491 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
492 (FLOAT128): Likewise.
493 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
495 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
496 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
497 instead of hard coding TFmode or KFmode.
498 (negtf2_internal): Likewise.
499 (neg<mode>2_internal): Likewise.
500 (abs<mode>2): Likewise.
501 (abstf2_internal): Likewise.
502 (abs<mode>2_internal): Likewise.
503 (ieee_128bit_neg<mode>2): Likewise.
504 (ieee_128bit_neg<mode>2_internal): Likewise.
505 (ieee_128bit_abs<mode>2): Likewise.
506 (ieee_128bit_abs<mode>2_internal): Likewise.
507 (ieee_128bit_nabs<mode>2): Likewise.
508 (ieee_128bit_nabs<mode>2_internal): Likewise.
509 (extendiftf2): Add explicit conversions between 128-bit floating
510 point types. Drop the old conversions that had become unwieldy.
511 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
512 (extendifkf2): Likewise.
513 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
514 (extendtfkf2): Likewise.
515 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
516 (trunciftf2): Likewise.
517 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
518 (truncifkf2): Likewise.
519 (float<SDI:mode><IFKF:mode>2): Likewise.
520 (trunckftf2): Likewise.
521 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
522 (trunctfif2): Likewise.
523 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
524 (extenddftf2): Rework 128-bit floating point conversions to
525 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
526 KFmode expanders into one function.
527 (extenddf<mode>2): Likewise.
528 (extenddftf2_fprs): Likewise.
529 (extenddf<mode>2_fprs): Likewise.
530 (extenddftf2_vsx): Likewise.
531 (extenddf<mode>2_vsx): Likewise.
532 (extendsftf2): Likewise.
533 (extendsf<mode>2): Likewise.
534 (trunctfdf2): Likewise.
535 (trunc<mode>df2): Likewise.
536 (trunctfdf2_internal1): Likewise.
537 (trunc<mode>df2_internal1): Likewise.
538 (trunctfdf2_internal2): Likewise.
539 (trunc<mode>df2_internal2): Likewise.
540 (trunctfsf2): Likewise.
541 (trunc<mode>sf2): Likewise.
542 (trunctfsf2_fprs): Likewise.
543 (trunc<mode>sf2_fprs): Likewise.
544 (floatsit2f): Likewise.
545 (floatsi<mode>2): Likewise.
546 (fix_trunc_helper): Likewise.
547 (fix_trunc_helper<mode>): Likewise.
548 (fix_trunctfsi2): Likewise.
549 (fix_trunc<mode>si2): Likewise.
550 (fix_trunctfsi2_fprs): Likewise.
551 (fix_trunc<mode>si2_fprs): Likewise.
552 (fix_trunctfsi2_internal): Likewise.
553 (fix_trunc<mode>si2_internal): Likewise.
554 (fix_trunctfdi2): Likewise.
555 (fix_trunc<mode>di2): Likewise.
556 (fixuns_trunctf<mode>2): Likewise.
557 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
558 (floatditf2): Likewise.
559 (floatdi<mode>2): Likewise.
560 (floatuns<mode>tf2): Likewise.
561 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
562 (cmptf_internal1): Use a mode iterator to add support for both
563 types (IFmode, TFmode) that support IBM extended double.
564 (cmp<mode>_internal1): Likewise.
565 (cmptf_internal2): Likewise.
566 (cmp<mode>_internal2): Likewise.
568 * doc/extend.texi (Floating Types): Document __ibm128 and
569 __float128 on PowerPC.
571 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
572 -mfloat128 and -mno-float128.
574 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
576 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
577 floating point modes that can go in vector registers.
578 (MODES_TIEABLE_P): Move tests for vector modes before tests for
579 scalar floating point, so that IEEE 128-bit floating point that
580 can go in vector registers bind with vectors and not FP.
581 (struct rs6000_args): Add libcall field.
583 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
584 and -mfloat128-software switches. Replace them with a binary
586 (-mfloat128): Likewise.
588 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
589 128-bit floating point types in GPRs, even if the appropriate
590 option enabling the type was not used.
591 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
593 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
594 pre-decrement on IEEE 128-bit floating point values.
595 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
596 is IEEE 128-bit floating point.
597 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
598 128-bit floating point types that can go in vector registers.
599 (rs6000_option_override_internal): Change -mfloat128-none and
600 -mfloat128-software to -mfloat128, and move code to be near other
602 (rs6000_option_override_internal): Disable -mfloat128 if we don't
603 have the Altivec ABI.
604 (rs6000_init_builtins): Don't make TFmode use either IFmode or
605 KFmode floating point nodes. Instead, have three separate nodes.
606 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
607 eventually moving the long double default to IEEE 128-bit floating
609 (rs6000_opt_masks): Add -mfloat128.
610 (struct rs6000_opt_var): Fix typo in comment.
611 (init_cumulative_args): Initialize libcall field in
613 (rs6000_function_arg): Treat library functions as if they had
614 prototypes to prevent IEEE 128-bit support functions from passing
615 arguments in both GPRs and vector registers.
616 (rs6000_arg_partial_bytes): Likewise.
618 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
619 an option that can be turned on via -mcpu=<xxx>.
621 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
624 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
625 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
626 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
627 double is IBM extended double.
629 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
632 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
634 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
635 * genconditions.c: Define CHECKING_P in the generated code.
636 * genextract.c: Use flag_checking in insn_extract.
637 * gengtype.c (main): Remove conditional compilation.
638 * gengtype.h: Likewise.
640 2015-10-29 Jeff Law <law@redhat.com>
642 PR tree-optimization/67892
643 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
645 (thread_through_normal_block): If we have seen a backedge, then
646 do nothing. No longer call find_jump_threads_backwards here.
647 (thread_across_edge): Use find_jump_threads_backwards to find
648 jump threads if the old style threader was not successful.
649 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
650 gsi_last_nondebug_bb. Return NULL if the block does not end
651 with a control statement.
652 (find_jump_threads_backwards): Setup code moved here from
653 tree-ssa-threadedge.c::thread_through_normal_block. Accept
654 single edge argument instead of name & block.
655 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
658 2015-10-29 Tom de Vries <tom@codesourcery.com>
660 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
663 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
665 * omp-low.c (lower_omp_target): Remove unreachable code & merge
668 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
670 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
672 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
674 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
675 guard_bb0 and use guard_bb throughout.
677 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
679 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
682 2015-10-29 Richard Biener <rguenther@suse.de>
685 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
688 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
690 * alias.c: Reorder #include statements and remove duplicates.
692 * attribs.c: Likewise.
693 * auto-inc-dec.c: Likewise.
694 * auto-profile.c: Likewise.
695 * bb-reorder.c: Likewise.
696 * bt-load.c: Likewise.
697 * builtins.c: Likewise.
698 * caller-save.c: Likewise.
702 * cfganal.c: Likewise.
703 * cfgbuild.c: Likewise.
704 * cfgcleanup.c: Likewise.
705 * cfgexpand.c: Likewise.
706 * cfghooks.c: Likewise.
707 * cfgloop.c: Likewise.
708 * cfgloopanal.c: Likewise.
709 * cfgloopmanip.c: Likewise.
710 * cfgrtl.c: Likewise.
711 * cgraph.c: Likewise.
712 * cgraphbuild.c: Likewise.
713 * cgraphclones.c: Likewise.
714 * cgraphunit.c: Likewise.
715 * cilk-common.c: Likewise.
716 * combine-stack-adj.c: Likewise.
717 * combine.c: Likewise.
718 * compare-elim.c: Likewise.
719 * convert.c: Likewise.
720 * coverage.c: Likewise.
721 * cppbuiltin.c: Likewise.
724 * cselib.c: Likewise.
725 * data-streamer-in.c: Likewise.
726 * data-streamer-out.c: Likewise.
727 * data-streamer.c: Likewise.
728 * dbxout.c: Likewise.
732 * df-core.c: Likewise.
733 * df-problems.c: Likewise.
734 * df-scan.c: Likewise.
736 * dojump.c: Likewise.
737 * dominance.c: Likewise.
738 * double-int.c: Likewise.
740 * dumpfile.c: Likewise.
741 * dwarf2asm.c: Likewise.
742 * dwarf2cfi.c: Likewise.
743 * dwarf2out.c: Likewise.
744 * emit-rtl.c: Likewise.
745 * except.c: Likewise.
746 * explow.c: Likewise.
747 * expmed.c: Likewise.
750 * fixed-value.c: Likewise.
751 * fold-const.c: Likewise.
752 * function.c: Likewise.
753 * fwprop.c: Likewise.
755 * generic-match-head.c: Likewise.
756 * ggc-common.c: Likewise.
757 * gimple-builder.c: Likewise.
758 * gimple-expr.c: Likewise.
759 * gimple-fold.c: Likewise.
760 * gimple-iterator.c: Likewise.
761 * gimple-low.c: Likewise.
762 * gimple-match-head.c: Likewise.
763 * gimple-pretty-print.c: Likewise.
764 * gimple-ssa-isolate-paths.c: Likewise.
765 * gimple-ssa-strength-reduction.c: Likewise.
766 * gimple-streamer-in.c: Likewise.
767 * gimple-streamer-out.c: Likewise.
768 * gimple-walk.c: Likewise.
769 * gimple.c: Likewise.
770 * gimplify-me.c: Likewise.
771 * gimplify.c: Likewise.
772 * godump.c: Likewise.
774 * graphite-poly.c: Likewise.
775 * haifa-sched.c: Likewise.
776 * hw-doloop.c: Likewise.
778 * incpath.c: Likewise.
779 * init-regs.c: Likewise.
780 * internal-fn.c: Likewise.
781 * ipa-chkp.c: Likewise.
782 * ipa-comdats.c: Likewise.
783 * ipa-cp.c: Likewise.
784 * ipa-devirt.c: Likewise.
785 * ipa-icf-gimple.c: Likewise.
786 * ipa-icf.c: Likewise.
787 * ipa-inline-analysis.c: Likewise.
788 * ipa-inline-transform.c: Likewise.
789 * ipa-inline.c: Likewise.
790 * ipa-polymorphic-call.c: Likewise.
791 * ipa-profile.c: Likewise.
792 * ipa-prop.c: Likewise.
793 * ipa-pure-const.c: Likewise.
794 * ipa-ref.c: Likewise.
795 * ipa-reference.c: Likewise.
796 * ipa-split.c: Likewise.
797 * ipa-utils.c: Likewise.
798 * ipa-visibility.c: Likewise.
800 * ira-build.c: Likewise.
801 * ira-color.c: Likewise.
802 * ira-conflicts.c: Likewise.
803 * ira-costs.c: Likewise.
804 * ira-emit.c: Likewise.
805 * ira-lives.c: Likewise.
808 * langhooks.c: Likewise.
811 * loop-doloop.c: Likewise.
812 * loop-init.c: Likewise.
813 * loop-invariant.c: Likewise.
814 * loop-iv.c: Likewise.
815 * loop-unroll.c: Likewise.
816 * lower-subreg.c: Likewise.
817 * lra-assigns.c: Likewise.
818 * lra-coalesce.c: Likewise.
819 * lra-constraints.c: Likewise.
820 * lra-eliminations.c: Likewise.
821 * lra-lives.c: Likewise.
822 * lra-remat.c: Likewise.
823 * lra-spills.c: Likewise.
825 * lto-cgraph.c: Likewise.
826 * lto-compress.c: Likewise.
827 * lto-opts.c: Likewise.
828 * lto-section-in.c: Likewise.
829 * lto-section-out.c: Likewise.
830 * lto-streamer-in.c: Likewise.
831 * lto-streamer-out.c: Likewise.
832 * lto-streamer.c: Likewise.
833 * mode-switching.c: Likewise.
834 * modulo-sched.c: Likewise.
835 * omp-low.c: Likewise.
836 * optabs.c: Likewise.
837 * opts-global.c: Likewise.
838 * passes.c: Likewise.
839 * plugin.c: Likewise.
840 * postreload-gcse.c: Likewise.
841 * postreload.c: Likewise.
842 * predict.c: Likewise.
843 * print-tree.c: Likewise.
844 * profile.c: Likewise.
846 * realmpfr.c: Likewise.
849 * reg-stack.c: Likewise.
850 * regcprop.c: Likewise.
851 * reginfo.c: Likewise.
852 * regrename.c: Likewise.
853 * regstat.c: Likewise.
854 * reload.c: Likewise.
855 * reload1.c: Likewise.
857 * resource.c: Likewise.
858 * rtl-chkp.c: Likewise.
859 * rtl-error.c: Likewise.
860 * rtlanal.c: Likewise.
861 * rtlhooks.c: Likewise.
862 * sanopt.c: Likewise.
863 * sched-deps.c: Likewise.
864 * sched-ebb.c: Likewise.
865 * sched-rgn.c: Likewise.
867 * shrink-wrap.c: Likewise.
868 * simplify-rtx.c: Likewise.
869 * stack-ptr-mod.c: Likewise.
870 * statistics.c: Likewise.
872 * stor-layout.c: Likewise.
873 * store-motion.c: Likewise.
874 * stringpool.c: Likewise.
875 * symtab.c: Likewise.
876 * target-globals.c: Likewise.
877 * targhooks.c: Likewise.
878 * toplev.c: Likewise.
879 * tracer.c: Likewise.
880 * trans-mem.c: Likewise.
881 * tree-affine.c: Likewise.
882 * tree-call-cdce.c: Likewise.
883 * tree-cfg.c: Likewise.
884 * tree-cfgcleanup.c: Likewise.
885 * tree-chkp-opt.c: Likewise.
886 * tree-chkp.c: Likewise.
887 * tree-chrec.c: Likewise.
888 * tree-complex.c: Likewise.
889 * tree-data-ref.c: Likewise.
890 * tree-dfa.c: Likewise.
891 * tree-diagnostic.c: Likewise.
892 * tree-dump.c: Likewise.
893 * tree-eh.c: Likewise.
894 * tree-emutls.c: Likewise.
895 * tree-if-conv.c: Likewise.
896 * tree-inline.c: Likewise.
897 * tree-into-ssa.c: Likewise.
898 * tree-iterator.c: Likewise.
899 * tree-loop-distribution.c: Likewise.
900 * tree-nested.c: Likewise.
901 * tree-nrv.c: Likewise.
902 * tree-object-size.c: Likewise.
903 * tree-outof-ssa.c: Likewise.
904 * tree-parloops.c: Likewise.
905 * tree-phinodes.c: Likewise.
906 * tree-predcom.c: Likewise.
907 * tree-pretty-print.c: Likewise.
908 * tree-profile.c: Likewise.
909 * tree-scalar-evolution.c: Likewise.
910 * tree-sra.c: Likewise.
911 * tree-ssa-address.c: Likewise.
912 * tree-ssa-alias.c: Likewise.
913 * tree-ssa-ccp.c: Likewise.
914 * tree-ssa-coalesce.c: Likewise.
915 * tree-ssa-copy.c: Likewise.
916 * tree-ssa-dce.c: Likewise.
917 * tree-ssa-dom.c: Likewise.
918 * tree-ssa-dse.c: Likewise.
919 * tree-ssa-forwprop.c: Likewise.
920 * tree-ssa-ifcombine.c: Likewise.
921 * tree-ssa-live.c: Likewise.
922 * tree-ssa-loop-ch.c: Likewise.
923 * tree-ssa-loop-im.c: Likewise.
924 * tree-ssa-loop-ivcanon.c: Likewise.
925 * tree-ssa-loop-ivopts.c: Likewise.
926 * tree-ssa-loop-manip.c: Likewise.
927 * tree-ssa-loop-niter.c: Likewise.
928 * tree-ssa-loop-prefetch.c: Likewise.
929 * tree-ssa-loop-unswitch.c: Likewise.
930 * tree-ssa-loop.c: Likewise.
931 * tree-ssa-math-opts.c: Likewise.
932 * tree-ssa-operands.c: Likewise.
933 * tree-ssa-phiopt.c: Likewise.
934 * tree-ssa-phiprop.c: Likewise.
935 * tree-ssa-pre.c: Likewise.
936 * tree-ssa-propagate.c: Likewise.
937 * tree-ssa-reassoc.c: Likewise.
938 * tree-ssa-sccvn.c: Likewise.
939 * tree-ssa-scopedtables.c: Likewise.
940 * tree-ssa-sink.c: Likewise.
941 * tree-ssa-strlen.c: Likewise.
942 * tree-ssa-structalias.c: Likewise.
943 * tree-ssa-tail-merge.c: Likewise.
944 * tree-ssa-ter.c: Likewise.
945 * tree-ssa-threadedge.c: Likewise.
946 * tree-ssa-threadupdate.c: Likewise.
947 * tree-ssa-uncprop.c: Likewise.
948 * tree-ssa-uninit.c: Likewise.
949 * tree-ssa.c: Likewise.
950 * tree-ssanames.c: Likewise.
951 * tree-stdarg.c: Likewise.
952 * tree-streamer-in.c: Likewise.
953 * tree-streamer-out.c: Likewise.
954 * tree-streamer.c: Likewise.
955 * tree-switch-conversion.c: Likewise.
956 * tree-tailcall.c: Likewise.
957 * tree-vect-data-refs.c: Likewise.
958 * tree-vect-generic.c: Likewise.
959 * tree-vect-loop-manip.c: Likewise.
960 * tree-vect-loop.c: Likewise.
961 * tree-vect-patterns.c: Likewise.
962 * tree-vect-slp.c: Likewise.
963 * tree-vect-stmts.c: Likewise.
964 * tree-vectorizer.c: Likewise.
965 * tree-vrp.c: Likewise.
969 * value-prof.c: Likewise.
970 * var-tracking.c: Likewise.
971 * varasm.c: Likewise.
972 * varpool.c: Likewise.
973 * vtable-verify.c: Likewise.
975 * wide-int-print.cc: Likewise.
976 * wide-int.cc: Likewise.
977 * xcoffout.c: Likewise.
979 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
981 * Makefile.in (NO_PIE_CFLAGS): New.
982 (NO_PIE_FLAG): Likewise.
983 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
984 (NO_PIE_FLAG_FOR_BUILD): Likewise.
985 (BUILD_NO_PIE_CFLAGS): Likewise.
986 (BUILD_NO_PIE_FLAG): Likewise.
987 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
988 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
989 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
990 $(BUILD_NO_PIE_CFLAGS).
991 (BUILD_CXXFLAGS): Likewise.
992 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
993 $(BUILD_NO_PIE_FLAG).
994 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
995 (BUILD_NO_PIE_FLAG): Likewise.
996 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
997 (NO_PIE_FLAG_FOR_BUILD): Likewise.
998 * configure: Regenerated.
1000 2015-10-29 Richard Biener <rguenther@suse.de>
1003 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
1004 unsigned conditonal negation to ABS_EXPR.
1006 2015-10-29 Richard Biener <rguenther@suse.de>
1008 * gimple-match-head.c (gimple_simplify): Remove premature checking
1009 of builtin_decl_implicit of function calls we simplify.
1011 2015-10-29 Bin Cheng <bin.cheng@arm.com>
1013 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
1014 (get_computation_cost_at): Ditto.
1015 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
1018 2015-10-28 Tom de Vries <tom@codesourcery.com>
1020 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
1023 2015-10-28 Jason Merrill <jason@redhat.com>
1025 * Makefile.in (TAGS): Include libcpp and libiberty.
1027 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1029 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
1030 (extract_omp_for_data): Remove OpenACC special handling of
1033 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
1034 (struct parallel): Update comment.
1035 (nvptx_reorg): Likewise.
1036 (nvptx_neuter): Cleanup whitespace.
1038 2015-10-28 Richard Henderson <rth@redhat.com>
1040 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
1042 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1045 * config/avr/predicates.md (low_io_address_operand): Don't
1046 consider MODE when computing upper bound.
1047 (io_address_operand): Likewise.
1049 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
1051 * fold-const.c (operand_equal_p): Do not verify that types are
1052 compatible for MEM_REFs.
1054 2015-10-28 Richard Biener <rguenther@suse.de>
1056 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
1057 in simplifying VEC_COND_EXPR conditions.
1059 2015-10-28 Tom de Vries <tom@codesourcery.com>
1061 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
1062 into vi_next of a full_var.
1064 2015-10-28 Tom de Vries <tom@codesourcery.com>
1066 * tree-ssa-structalias.c (new_var_info, make_heapvar)
1067 (make_constraint_from_restrict, make_constraint_from_global_restrict)
1068 (create_function_info_for, create_variable_info_for_1)
1069 (create_variable_info_for): Add and handle add_id parameter.
1070 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
1071 (init_base_vars): Add extra argument to calls to new_var_info.
1072 (get_vi_for_tree): Add extra argument to call to
1073 create_variable_info_for.
1074 (process_constraint, do_deref, process_all_all_constraints): Add extra
1075 argument to calls to new_scalar_tmp_constraint_exp.
1076 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
1077 argument to calls to make_heapvar.
1078 (make_restrict_var_constraints): Add extra argument to call to
1079 make_constraint_from_global_restrict.
1080 (intra_create_variable_infos): Add extra argument to call to
1081 create_variable_info_for_1.
1082 (ipa_pta_execute): Add extra argument to call to
1083 create_function_info_for.
1085 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1087 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
1088 (sibcall_value): Likewise.
1090 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1092 * config/nvptx/nvptx.h (struct machine_function): Add
1094 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
1095 nvptx_expand_oacc_join): Declare.
1096 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
1097 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
1098 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
1099 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
1100 UNSPECV_JOINING, UNSPECV_JOIN): New.
1101 (BITS, BITD): New mode iterators.
1102 (br_true_uni, br_false_uni): New.
1103 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
1104 (oacc_dim_size, oacc_dim_pos): New.
1105 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
1106 (oacc_fork, oacc_join): New.
1107 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
1108 (worker_load<mode>, worker_store<mode>): New.
1109 (nvptx_barsync): New.
1110 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
1111 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
1112 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
1113 worker_bcast_sym): New.
1114 (nvptx_option_override): Initialize worker broadcast buffer.
1115 (nvptx_emit_forking, nvptx_emit_joining): New.
1116 (nvptx_init_axis_predicate): New.
1117 (nvptx_declare_function_name): Init axis predicates.
1118 (nvptx_expand_call): Add fork/join markers around routine call.
1119 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
1120 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
1121 (nvptx_gen_vcast): New.
1122 (struct wcast_data_t): New.
1123 (enum propagate_mask): New.
1124 (nvptx_gen_wcast): New.
1125 (nvptx_print_operand): Add 'S' case.
1126 (struct parallel): New.
1127 (parallel::parallel, parallel::~parallel): New.
1128 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
1129 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
1130 nvptx_find_par, nvptx_discover_pars): New.
1131 (nvptx_propagate): New.
1132 (vprop_gen, nvptx_vpropagate): New.
1133 (wprop_gen, nvptx_wpropagate): New.
1135 (nvptx_single, nvptx_skip_par): New.
1136 (nvptx_process_pars, nvptx_neuter_pars): New.
1137 (ntptx_reorg): Split blocks, generate parallel structure, apply
1139 (nvptx_cannot_copy_insn_p): New.
1140 (nvptx_file_end): Emit worker broadcast decl.
1141 (nvptx_goacc_fork_join): New.
1142 (TARGET_CANNOT_COPY_INSN_P): Override.
1143 (TARGET_GOACC_FORK_JOIN): Override.
1145 2015-10-28 Richard Biener <rguenther@suse.de>
1147 * fold-const.c (negate_expr_p): Adjust the division case to
1148 properly avoid introducing undefined overflow.
1149 (fold_negate_expr): Likewise.
1151 2015-10-28 Richard Biener <rguenther@suse.de>
1153 PR tree-optimization/65962
1154 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1155 Avoid creating loop carried dependences also for outer loops
1156 of the loop a use to replace is in.
1158 2015-10-28 Richard Biener <rguenther@suse.de>
1160 * common.opt (fchecking): New flag controlling flag_checking.
1161 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
1162 * timevar.c (timer::print): Adjust output.
1163 * doc/invoke.texi (fchecking): Document.
1165 2015-10-28 Richard Biener <rguenther@suse.de>
1168 * fold-const.c (negate_expr_p): We cannot negate plus or minus
1169 if overflow is not wrapping. Likewise multiplication unless
1170 one operand is constant and not power of two.
1171 (fold_negate_expr): Adjust accordingly.
1173 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1175 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
1177 (is_oacc_parallel, is_oacc_kernels): New.
1178 (enclosing_target_ctx): May return NULL.
1179 (ctx_in_oacc_kernels_region): New.
1180 (check_oacc_kernel_gwv): New.
1181 (oacc_loop_or_target_p): Delete.
1182 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
1183 operands. Strip reductions fro kernels.
1184 (scan_omp_target): Don't calculate gwv mask.
1185 (lower_oacc_head_mark, lower_oacc_loop_marker,
1186 lower_oacc_head_tail): New.
1187 (struct oacc_collapse): New.
1188 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
1189 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1190 Remove OpenACC handling.
1191 (expand_oacc_for): New.
1192 (expand_omp_for): Call expand_oacc_for.
1193 (lower_omp_for): Call lower_oacc_head_tail.
1195 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
1197 * attribs.c (check_attribute_tables): New function, broken out from...
1198 (init_attributes): Use it.
1199 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
1200 gcc_checking_assert and checking_* functions to eliminate
1201 ENABLE_CHECKING conditionals.
1202 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
1203 (pass_expand::execute): Likewise.
1204 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1205 * cgraphunit.c (mark_functions_to_output): Likewise.
1206 (cgraph_node::expand_thunk): Likewise.
1207 (symbol_table::compile): Likewise.
1208 * ddg.c (add_cross_iteration_register_deps): Likewise.
1209 (create_ddg_all_sccs): Likewise.
1210 * df-core.c (df_finish_pass, df_analyze): Likewise.
1211 * diagnostic-core.h: Likewise.
1212 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
1213 * dominance.c (calculate_dominance_info): Likewise.
1214 * dwarf2out.c (add_AT_die_ref): Likewise.
1215 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
1216 (loc_list_from_tree, gen_lexical_block_die): Likewise.
1217 gen_type_die_with_usage, gen_type_die): Likewise.
1218 (dwarf2out_decl): Likewise.
1219 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
1220 * except.c (duplicate_eh_regions): Likewise.
1221 * fwprop.c (register_active_defs, update_df_init): Likewise.
1222 (fwprop_init, fwprop_done): Likewise.
1223 (update_uses): Likewise.
1224 * ggc-page.c (ggc_grow): Likewise.
1225 * gimplify.c (gimplify_body): Likewise.
1226 (gimplify_hasher::equal): Likewise.
1227 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
1228 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
1230 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
1231 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
1232 * hash-table.h (::find_empty_slot_for_expand): Likewise.
1233 * ifcvt.c (if_convert): Likewise.
1234 * ipa-cp.c (ipcp_propagate_stage): Likewise.
1235 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
1236 (odr_type_p, odr_types_equivalent_p): Likewise.
1237 (add_type_duplicate, get_odr_type): Likewise.
1238 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1239 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1240 (sem_item_optimizer::verify_classes): Likewise.
1241 (sem_item_optimizer::traverse_congruence_split): Likewise.
1242 (sem_item_optimizer::checking_verify_classes): New.
1243 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
1245 * cfgrtl.c (commit_edge_insertions): Likewise.
1246 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
1247 (rtl_flow_call_edges_add): Likewise.
1248 * cgraph.c (symbol_table::create_edge): Likewise.
1249 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1250 * cgraph.h (symtab_node): Likewise.
1251 (symtab_node::checking_verify_symtab_nodes): Define.
1252 (cgraph_node::checking_verify_cgraph_nodes): Define.
1253 * cfghooks.h (checking_verify_flow_info): Define.
1254 * cfgloop.h (checking_verify_loop_structure): Define.
1255 * dominance.h (checking_verify_dominators): Define.
1256 * et-forest.c: Fix comment.
1257 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
1258 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1259 ENABLE_CHECKING conditionals.
1260 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1261 * ipa-inline.c (inline_small_functions): Likewise.
1262 (early_inliner): Likewise.
1263 * ipa-inline.h (estimate_edge_growth): Likewise.
1264 * ipa-visibility.c (function_and_variable_visibility): Likewise.
1265 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1266 (ipa_single_use): Likewise.
1267 * ira-int.h: Likewise.
1268 * ira.c (ira): Likewise.
1269 * loop-doloop.c (doloop_optimize_loops): Likewise.
1270 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
1271 * loop-invariant.c (move_loop_invariants): Likewise.
1272 * lra-assigns.c (lra_assign): Likewise.
1273 * lra-constraints.c (lra_constraints): Likewise.
1274 * lra-eliminations.c (lra_eliminate): Likewise.
1275 * lra-int.h (struct lra_reg): Likewise.
1276 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1277 (lra_create_live_ranges_1): Likewise.
1278 * lra-remat.c (create_remat_bb_data): Likewise.
1279 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
1281 (check_rtl): Always define. Remove incorrect guard around
1282 extract_constrain_insn call.
1283 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
1284 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1285 ENABLE_CHECKING conditionals.
1286 * lto-streamer-out.c (DFS::DFS): Likewise.
1287 (lto_output): Likewise.
1288 * lto-streamer.c (lto_streamer_init): Likewise.
1289 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
1290 expand_omp_target, execute_expand_omp): Likewise.
1291 (lower_omp_target): Likewise.
1292 * passes.c (execute_function_todo): Likewise.
1293 (execute_todo, execute_one_pass): Likewise.
1294 (verify_curr_properties): Always define.
1295 * predict.c (tree_estimate_probability: Use flag_checking,
1296 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1297 ENABLE_CHECKING conditionals.
1298 (propagate_freq): Likewise.
1299 * pretty-print.c (pp_format): Likewise.
1300 * real.c (real_to_decimal_for_mode): Likewise.
1301 * recog.c (split_all_insns): Likewise.
1302 * regcprop.c (kill_value_one_regno): Likewise.
1303 (copy_value): Likewise.
1304 (validate_value_data): Define unconditionally.
1305 * reload.c: Fix comment.
1306 * timevar.c: Include options.h
1307 * tree-ssa.h (checking_verify_ssa): Define.
1308 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
1309 * sched-deps.c (CHECK): Remove unused macro.
1310 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
1311 gcc_checking_assert and checking_* functions to eliminate
1312 ENABLE_CHECKING conditionals.
1313 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
1314 * sel-sched.c (struct moveop_static_params): Likewise.
1315 (find_best_reg_for_expr, move_cond_jump): Likewise.
1316 (move_op_orig_expr_not_found): Likewise.
1317 (code_motion_process_successors, move_op): Likewise.
1318 * ssa-iterators.h (first_readonly_imm_use): Likewise.
1319 (next_readonly_imm_use): Likewise.
1320 * store-motion.c (compute_store_table): Likewise.
1321 * symbol-summary.h (function_summary::function_summary): Likewise.
1322 * target.h (cumulative_args_t): Likewise.
1323 (get_cumulative_args, pack_cumulative_args): Likewise.
1324 * timevar.c: (timer::print): Likewise.
1325 * trans-mem.c (ipa_tm_execute): Likewise.
1326 * tree-cfg.c (move_stmt_op): Likewise.
1327 (move_sese_region_to_fn): Likewise.
1328 (gimple_flow_call_edges_add): Likewise.
1329 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1331 * tree-eh.c (remove_unreachable_handlers): Likewise.
1332 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1333 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
1334 * tree-into-ssa.c (update_ssa): Likewise.
1335 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
1336 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
1337 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
1338 * tree-predcom.c (suitable_component_p): Likewise.
1339 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
1340 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
1341 * tree-ssa-live.c (verify_live_on_entry): Likewise.
1342 * tree-ssa-live.h (register_ssa_partition): Likewise.
1343 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
1344 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
1345 (tree_transform_and_unroll_loop): Likewise.
1346 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1347 * tree-ssa-operands.c (get_expr_operands): Likewise.
1348 * tree-ssa-propagate.c (replace_exp_1): Likewise.
1349 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1350 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1351 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
1352 * tree-ssanames.c (release_ssa_name_fn): Likewise.
1353 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
1354 * tree-vect-loop-manip.c
1355 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1356 (slpeel_checking_verify_cfg_after_peeling): Likewise.
1357 (vect_do_peeling_for_loop_bound): Likewise.
1358 (vect_do_peeling_for_alignment): Likewise.
1359 * tree-vrp.c (supports_overflow_infinity): Likewise.
1360 (set_value_range): Likewise.
1361 * tree.c (free_lang_data_in_cgraph): Likewise.
1362 * value-prof.c (gimple_remove_histogram_value): Likewise.
1363 (free_hist): Likewise.
1364 * var-tracking.c (canonicalize_values_star): Likewise.
1365 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1367 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1369 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1370 IFN_GOACC_LOOP): New.
1371 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1372 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1373 IFN_UNIQUE_OACC_TAIL_MARK.
1374 (enum ifn_goacc_loop_kind): New.
1375 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1376 IFN_UNIQUE_OACC_JOIN cases.
1377 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1378 (expand_GOACC_LOOP): New.
1379 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1380 * omp-low.c: Include gimple-pretty-print.h.
1381 (struct oacc_loop): New.
1382 (enum oacc_loop_flags): New.
1383 (oacc_thread_numbers): New.
1384 (oacc_xform_loop): New.
1385 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1386 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1387 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1388 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1389 oacc_loop_discovery): New.
1390 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1391 oacc_loop_process): New.
1392 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1393 (execute_oacc_device_lower): Discover & process loops. Process
1395 * target.def (goacc.fork_join): Change sense of hook, clarify
1397 * doc/tm.texi: Regenerated.
1399 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1401 * target-insns.def (oacc_fork, oacc_join): Define.
1402 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1403 (goacc.fork_join): New GOACC hook.
1404 * targhooks.h (default_goacc_fork_join): Declare.
1405 * omp-low.c (default_goacc_forkjoin): New.
1406 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1407 * doc/tm.texi: Regenerate.
1409 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1411 * omp-low.c (oacc_init_rediction_array): New.
1412 (oacc_initialize_reduction_data): Initialize array.
1414 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1416 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1418 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1420 * internal-fn.c (expand_UNIQUE): New.
1421 * internal-fn.h (enum ifn_unique_kind): New.
1422 * internal-fn.def (IFN_UNIQUE): New.
1423 * target-insns.def (unique): Define.
1424 * gimple.h (gimple_call_internal_unique_p): New.
1425 * gimple.c (gimple_call_same_target_p): Check internal fn
1427 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1428 * tree-ssa-threadedge.c
1429 (record_temporary_equivalences_from_stmts): Likewise.
1430 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1432 2015-10-27 Richard Henderson <rth@redhat.com>
1435 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1436 narrowing subregs on SSE and MMX registers.
1437 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1438 appear to be sub-words of multi-register pseudos must be rejected.
1439 * doc/tm.texi: Regenerate.
1441 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1444 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1445 operands[0] is a reg before taking its REGNO in split condition.
1446 (*movdi_aarch64): Likewise.
1448 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1450 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1451 Handle floating point inner modes properly.
1453 2015-10-27 Alan Hayward <alan.hayward@arm.com>
1456 (vectorizable_live_operation): Change iterator.
1458 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1459 Aditya Kumar <aditya.k7@samsung.com>
1461 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1462 function to schedule based on isl_schedule_node.
1463 (get_schedule_map_st): New schedule optimizer based on
1465 (scop_get_domains): New. Return the isl_union_set containing the
1466 domains of all the pbbs.
1467 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1469 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
1472 * calls.c (prepare_call_address): Don't handle -fno-plt here.
1473 * config/i386/i386.c (ix86_expand_call): Generate indirect call
1474 via GOT for -fno-plt. Support indirect call via GOT for x32.
1475 * config/i386/predicates.md (sibcall_memory_operand): Allow
1478 2015-10-27 Richard Biener <rguenther@suse.de>
1480 PR tree-optimization/68104
1481 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1482 strided access check ...
1483 (vect_compute_data_refs_alignment): ... here.
1485 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
1486 Joseph Myers <joseph@codesourcery.com>
1487 Mark Shinwell <shinwell@codesourcery.com>
1488 Andrew Stubbs <ams@codesourcery.com>
1489 Rich Felker <dalias@libc.org>
1491 * config.gcc: Handle --enable-fdpic.
1492 * config/sh/constraints.md (Ccl): New constraint.
1493 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1494 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1496 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1498 * config/sh/sh-protos.h (function_symbol_result): New struct.
1499 (function_symbol): Return function_symbol_result.
1500 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1502 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1504 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1505 (sh_option_override): Force -fPIC if FDPIC is in effect.
1506 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1507 UNSPEC_GOTOFFFUNCDESC cases.
1508 (prepare_move_operands): Use FDPIC initial GOT register for
1509 TLS-related GOT access; inhibit cross-section address offset constants
1511 (sh_assemble_integer): New function.
1512 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1513 PC-relative call sites.
1514 (expand_ashiftrt): Adapt invocation of function_symbol.
1515 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1516 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1517 UNSPEC_GOTOFFFUNCDESC.
1518 (legitimize_pic_address): Resolve function symbols to function
1519 descriptors for FDPIC. Do not use GOT-relative addressing for local
1520 data that may be read-only on FDPIC.
1521 (sh_emit_storesi, sh_emit_storehi): New functions.
1522 (sh_trampoline_init): Generate FDPIC trampolines.
1523 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1524 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1525 (sh_output_mi_thunk): Generate FDPIC call.
1526 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
1527 FDPIC, generate call site labels to use PC-relative addressing rather
1528 than GOT-relative addressing.
1529 (sh_conditional_register_usage): Make PIC register fixed and call used
1530 when FDPIC is in effect.
1531 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1532 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1533 sh_get_fdpic_reg_initial_val): New functions.
1534 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1536 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1537 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1538 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1539 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1541 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1542 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1543 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1544 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1546 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1547 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1548 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1549 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1550 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1551 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1552 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1553 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1554 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1555 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1556 block_move_real, block_lump_real, block_move_real_i4,
1557 block_lump_real_i4): Add support for FDPIC calls.
1558 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1559 call_value_pop): Adjust for new function_symbol signature.
1560 * config/sh/sh.opt (-mfdpic): New option.
1561 * doc/install.texi (Options specification): Document --enable-fdpic.
1562 * doc/invoke.texi (SH Options): Document -mfdpic.
1565 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1567 PR tree-optimization/65963
1568 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
1569 as equivalent MULT_EXPRs.
1571 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1574 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1575 * config/arm/constraints.md (Dp): Update callsite.
1576 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1578 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1580 * builtins.c (fold_builtin_load_exponent): Rename to...
1581 (fold_const_builtin_load_exponent): ...this and only handle
1583 (fold_builtin_2): Update accordingly.
1584 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1586 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1588 * builtins.c (fold_builtin_logb): Rename to...
1589 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1590 (fold_builtin_significand): Rename to...
1591 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1592 (fold_builtin_1): Update accordingly.
1594 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1596 * builtins.c (fold_builtin_fmin_fmax): Delete.
1597 (fold_builtin_2): Handle constant fmin and fmax arguments here.
1598 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1600 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
1602 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1603 for register extension into sign and zero register extension.
1604 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
1605 for sign and zero register extension.
1606 (cortexa57_addrcost_table): Likewise.
1607 (xgene1_addrcost_table): Likewise.
1609 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1611 * fold-const.c (fold_minmax): Delete.
1612 (fold_binary_loc): Don't call it.
1613 * match.pd: Add rules previously handled by fold_minmax.
1615 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1617 * builtins.c (fold_builtin_fma): Remove constant handling.
1618 (fold_builtin_3): Handle constant fma arguments here.
1620 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1622 * builtins.c (fold_builtin_fabs): Remove constant handling.
1623 (fold_builtin_abs): Likewise.
1625 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1627 * builtins.c (fold_builtin_copysign): Delete.
1628 (fold_builtin_2): Handle constant copysign arguments here.
1629 * match.pd: Add rules previously handled by fold_builtin_copysign.
1631 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1633 * builtins.c (fold_builtin_signbit): Delete.
1634 (fold_builtin_2): Handle constant signbit arguments here.
1635 * match.pd: Add rules previously handled by fold_builtin_signbit.
1637 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1639 * match.pd: Handle sqrt(x) cmp 0 specially.
1641 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
1643 * tree-vect-generic.c (expand_vector_operations_1): Check
1644 optab type before using it.
1646 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1648 * config/aarch64/aarch64-protos.h
1649 (struct tune_params): Add autoprefetcher_model field.
1650 * config/aarch64/aarch64.c: Include params.h
1651 (generic_tunings): Specify autoprefetcher_model value.
1652 (cortexa53_tunings): Likewise.
1653 (cortexa57_tunings): Likewise.
1654 (cortexa72_tunings): Likewise.
1655 (thunderx_tunings): Likewise.
1656 (xgene1_tunings): Likewise.
1657 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
1658 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
1659 (aarch64_override_options_internal): Set
1660 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
1662 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1664 * builtins.c (fold_builtin_exponent): Delete.
1665 (fold_builtin_2): Handle constant expN arguments here.
1666 * match.pd: Fold expN(logN(x)) -> x.
1668 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1670 * builtins.c (fold_builtin_powi): Delete.
1671 (fold_builtin_2): Handle constant powi arguments here.
1672 * match.pd: Add rules previously handled by fold_builtin_powi.
1674 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1676 * builtins.c (fold_builtin_pow): Delete in favor of...
1677 (fold_const_builtin_pow): ...this new function. Only handle constant
1679 (fold_builtin_2): Update accordingly.
1680 * match.pd: Add rules previously handled by fold_builtin_pow.
1682 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1684 * builtins.c (fold_builtin_hypot): Delete.
1685 (fold_builtin_2): Handle constant hypot arguments here.
1686 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
1687 hypot(x, x) to fabs(x)*sqrt(2).
1689 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1691 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
1692 instead of make_ssa_name if not yet in SSA form.
1694 2015-10-27 Richard Biener <rguenther@suse.de>
1696 * cfg.c (free_edge): Add function argument and use it instead of cfun.
1697 (clear_edges): Likewise.
1698 * cfg.h (clear_edges): Adjust prototype.
1699 * cfgexpand.c (pass_expand::execute): Adjust.
1700 * cfgloop.c (release_recorded_exits): Add function argument and use
1702 * cfgloop.h (release_recorded_exits): Adjust prototype.
1703 (loops_state_satisfies_p): Add overload with function argument.
1704 (loops_state_set): Likewise.
1705 (loops_state_clear): Likewise.
1706 (struct loop_iterator): Add function argument to constructor
1707 and iterator and use it instead of cfun.
1708 (FOR_EACH_LOOP_FN): New macro.
1709 (loop_optimizer_finalize): Add overload with function argument.
1710 * loop-init.c (loop_optimizer_init): Adjust.
1711 (fix_loop_structure): Likewise.
1712 (loop_optimizer_finaliz): Add function argument and use it
1714 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1715 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
1716 * cgraph.c (release_function_body): Do not push/pop cfun.
1717 * final.c (rest_of_clean_state): Adjust.
1718 * graphite.c (graphite_finalize): Likewise.
1719 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1720 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1721 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
1722 (tree_unroll_loops_completely): Likewise.
1723 (pass_complete_unrolli::execute): Likewise.
1724 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
1725 Add function argument and use it instead of cfun.
1726 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
1728 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
1729 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
1731 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
1732 * tree-ssanames.c (fini_ssanames): Add function argument and use it
1734 * tree-ssanames.c (fini_ssanames): Adjust prototype.
1735 * tree-vrp.c (execute_vrp): Adjust.
1736 * value-prof.c (free_histograms): Add function argument and use it
1738 * value-prof.h (free_histograms): Adjust prototype.
1740 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1742 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
1743 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
1744 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
1746 2015-10-27 Tom de Vries <tom@codesourcery.com>
1748 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
1751 2015-10-27 Bin Cheng <bin.cheng@arm.com>
1753 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
1754 (inv_can_prop_to_addr_use): New function.
1755 (record_use): Call can_prop_to_addr_uses, set the new field.
1756 (get_inv_cost): Count cost if inv can't be propagated into its
1759 2015-10-26 Doug Evans <dje@google.com>
1761 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
1763 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
1765 * match.pd (fold_widened_comparison): Apply simplifications to all
1768 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
1770 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
1771 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
1772 * doc/tm.texi: Regenerated.
1773 * reorg.c (dbr_schedule): Use new hook.
1774 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
1776 2015-10-26 Jeff Law <law@redhat.com>
1778 PR tree-optimization/68013
1779 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1780 Make sure the first block in the path is in VISITED_BBs.
1782 2015-10-26 Richard Biener <rguenther@suse.de>
1783 Dominik Vogt <vogt@linux.vnet.ibm.com>
1786 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
1787 Properly prune ref->ref for accesses outside of ref.
1789 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1791 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
1792 new statements to be inserted if inplace. Allow calls to have
1795 2015-10-26 Richard Biener <rguenther@suse.de>
1797 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
1798 (do_valueize): New function.
1799 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
1801 * tree-ssa-threadedge.c: Remove builtins.h include, include
1803 (fold_assignment_stmt): Remove.
1804 (threadedge_valueize): New function.
1805 (record_temporary_equivalences_from_stmts): Use
1806 gimple_fold_stmt_to_constant_1, note additional cleanup
1809 2015-10-26 Richard Biener <rguenther@suse.de>
1811 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
1812 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
1814 2015-10-26 Alan Hayward <alan.hayward@arm.com>
1816 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1817 VEC_COND_EXPR types.
1819 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1821 * auto-inc-dec.c (insert_move_insn_before): Delete.
1822 (attempt_change): Remember to cost the simple move in the
1823 FORM_PRE_ADD and FORM_POST_ADD cases.
1825 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
1828 * config/sh/sh.c (sh_vector_mode_supported_p): Use
1829 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
1831 2015-10-26 Tom de Vries <tom@codesourcery.com>
1833 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
1835 (intra_create_variable_infos): ... here.
1837 2015-10-26 Tom de Vries <tom@codesourcery.com>
1839 * tree-ssa-structalias.c (intra_create_variable_infos): Add
1840 restrict_pointer_p and recursive_restrict_p variables.
1842 2015-10-26 Tom de Vries <tom@codesourcery.com>
1844 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
1845 get_vi_for_tree call.
1847 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1850 * optabs.c (expand_atomic_compare_and_swap): Handle case when
1851 ptarget_oval or ptarget_bool are const0_rtx.
1853 2015-10-26 Christian Bruel <christian.bruel@st.com>
1855 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
1856 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
1857 * cp/method.c (implicitly_declare_fn): Likewise.
1858 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
1859 * java/class.c (add_method_1): Likewise.
1861 2015-10-26 Richard Biener <rguenther@suse.de>
1863 * alloc-pool.h (base_pool_allocator): Use placement new.
1864 (base_pool_allocator::remove): Likewise. Compute size outside of
1867 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1869 * builtins.c (do_real_to_int_conversion): New function.
1870 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
1871 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
1873 * match.pd: Add rules previously handled by fold_fixed_mathfn
1874 and fold_builtin_int_roundingfn.
1876 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1878 * match.pd: Use macros to define built-in operator lists.
1880 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
1881 Richard Biener <rguenther@suse.de>
1883 * genmatch.c (dt_simplify::gen): Skip captures that are
1885 (parser::parse_expr): Allow captures in results too.
1886 * builtins.c (fold_builtin_cexp): Delete.
1887 (fold_builtin_1): Handle constant cexp arguments here.
1888 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
1890 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
1892 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
1893 conditional compilation.
1894 (base_pool_allocator::remove): Use flag_checking.
1896 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
1898 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
1901 * dojump.c (do_compare_and_jump): Canonicalize both function and
1904 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
1907 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
1910 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1913 * ipa-polymorphic-call.c
1914 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
1915 instance offset with offset of outer type.
1917 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1919 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
1921 2015-10-23 Caroline Tice <cmtice@google.com>
1923 (from Richard Biener
1924 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
1925 call to iterative_hash_host_wide_int.
1927 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
1929 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
1932 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1934 * tree-vect-generic.c (expand_vector_operations_1): Check
1935 optab exists before use it.
1937 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1939 * tree-vect-generic.c (expand_vector_condition): Avoid
1940 uninitialized variable warning.
1942 2015-10-23 Jeff Law <law@redhat.com>
1944 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
1946 (execute_todo): Call it here.
1947 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
1949 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
1951 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
1952 Szabolcs Nagy <szabolcs.nagy@arm.com>
1954 * config.gcc (enable_secureplt): Add *-linux*-musl*.
1956 2015-10-23 Jeff Law <law@redhat.com>
1958 PR tree-optimization/67830
1959 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
1960 Explicitly verify the mask has no bits outside the type of
1961 the innermost operands.
1963 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
1964 Szabolcs Nagy <szabolcs.nagy@arm.com>
1966 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
1967 (MUSL_DYNAMIC_LINKER64): Define.
1968 (GNU_USER_DYNAMIC_LINKER32): Update.
1969 (GNU_USER_DYNAMIC_LINKER64): Update.
1970 (CHOOSE_DYNAMIC_LINKER): Update.
1972 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
1973 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
1974 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
1975 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
1976 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
1977 (CHOOSE_DYNAMIC_LINKER): Update.
1978 (INCLUDE_DEFAULTS): Redefine.
1980 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
1982 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1984 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
1985 comparing addresses.
1987 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1989 * fold-const.c (operand_equal_p): Handle matching of vector
1992 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
1994 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
1996 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
1997 Andrew Pinski <apinski@cavium.com>
1999 PR rtl-optimization/67736
2000 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
2003 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2006 * tree.c (build_truth_vector_type): Support BLK mode
2007 returned for boolean vector.
2009 2015-10-23 Alan Hayward <alan.hayward@arm.com>
2011 PR tree-optimization/65947
2013 (vect_is_simple_reduction_1): Find condition reductions.
2014 (vect_model_reduction_cost): Add condition reduction costs.
2015 (get_initial_def_for_reduction): Add condition reduction initial var.
2016 (vect_create_epilog_for_reduction): Add condition reduction epilog.
2017 (vectorizable_reduction): Condition reduction support.
2018 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
2019 * doc/sourcebuild.texi (Vector-specific attributes): Document
2022 2015-10-23 Richard Biener <rguenther@suse.de>
2024 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
2027 2015-10-23 Richard Biener <rguenther@suse.de>
2028 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2030 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
2031 into (A ^ B) - B to match.pd
2032 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
2034 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
2036 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
2038 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
2040 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
2042 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
2043 INTEGER_CST@1)): New simplifier.
2045 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
2047 * builtins.c (integer_valued_real_p): Move to fold-const.c.
2048 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
2049 (fold_builtin_ceil, fold_builtin_round): Delete.
2050 (fold_builtin_1): Handle constant trunc, floor, ceil and round
2052 * convert.c (convert_to_real): Remove narrowing of rounding
2054 * fold-const.h (integer_valued_real_unary_p)
2055 (integer_valued_real_binary_p, integer_valued_real_call_p)
2056 (integer_valued_real_single_p, integer_valued_real_p): Declare.
2057 * fold-const.c (tree_single_nonnegative_warnv_p): Move
2058 name_registered_for_update_p check to SSA_NAME case statement.
2059 Don't call tree_simple_nonnegative_warnv_p for SSA names.
2060 (integer_valued_real_unary_p, integer_valued_real_binary_p)
2061 (integer_valued_real_call_p, integer_valued_real_single_p)
2062 (integer_valued_real_invalid_p): New functions.
2063 (integer_valued_real_p): Move from fold-const.c and rework
2064 to call the functions above. Handle SSA names.
2065 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
2066 * gimple-fold.c (gimple_assign_integer_valued_real_p)
2067 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
2068 (gimple_stmt_integer_valued_real_p): New functions.
2069 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
2070 Fold f(x)->x for the same f if x is known to be integer-valued.
2071 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
2072 the result. Canonicalize floor(x) as trunc(x) if x is
2075 2015-10-23 Tom de Vries <tom@codesourcery.com>
2077 * tree-ssa-structalias.c (intra_create_variable_infos): Use
2078 make_constraint_from.
2080 2015-10-23 Tom de Vries <tom@codesourcery.com>
2082 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
2083 setting of is_full_var in case of a single field.
2085 2015-10-22 Martin Sebor <msebor@redhat.com>
2088 * config/i386/i386.opt: Add missing periods to the ends of sentences.
2089 * config/msp430/msp430.opt: Same.
2091 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2093 * doc/extend.exp (Global Register Variables): Rewrite.
2095 2015-10-22 Jeff Law <law@redhat.com>
2097 * genattrtab.c (main): If we do not have any annul-true or annul-false
2098 slots, then write out a dummy eligible_for_annul_true or
2099 eligible_for_annul_false as needed.
2101 2015-10-22 Nick Clifton <nickc@redhat.com>
2103 * config/msp430/msp430.opt: Add -msilicon-errata and
2104 -msilicon-errata-warn.
2105 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
2107 * doc/invoke.texi: Document new options.
2109 2015-10-22 Richard Biener <rguenther@suse.de>
2111 PR tree-optimization/58497
2112 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
2113 (expand_vector_operations_1): Use it. Lower operations on
2114 all uniform vectors to scalar operations if the HW supports it.
2116 2015-10-22 Richard Biener <rguenther@suse.de>
2118 PR tree-optimization/19049
2119 PR tree-optimization/65962
2120 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
2121 to strided accesses if single-element interleaving doesn't work.
2123 2015-10-22 Richard Biener <rguenther@suse.de>
2127 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
2128 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
2129 (expand_unop): Likewise.
2131 2015-10-22 Richard Biener <rguenther@suse.de>
2133 * fold-const.c (fold_addr_of_array_ref_difference): Properly
2134 convert operands before folding a MINUS_EXPR.
2135 (fold_binary_loc): Move simplification of MINUS_EXPR on
2136 converted POINTER_PLUS_EXPRs ...
2137 * match.pd: ... here.
2139 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2141 * builtins.c (fold_builtin_tan): Delete.
2142 (fold_builtin_1): Handle constant tan arguments here.
2143 * match.pd: Simplify (tan (atan x)) to x.
2145 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2147 * builtins.c (fold_builtin_cproj): Delete.
2148 (fold_builtin_1): Handle constant arguments here.
2149 (build_complex_cproj): Move and rename to...
2150 * tree.c: (build_complex_inf): ...this.
2151 * tree.h (build_complex_inf): Declare.
2152 * match.pd: Fold cproj(x)->x if x has no infinity.
2153 Use build_complex_inf for existing cproj rules.
2155 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2158 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
2159 already have a comparison result.
2161 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2164 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
2165 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
2166 (aarch64_classify_address): Likewise.
2167 (aarch64_secondary_reload): Likewise.
2168 (aarch64_override_options_after_change_1): Adjust.
2169 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2170 Use aarch64_nopcrelative_literal_loads.
2171 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2172 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2175 2015-10-21 Martin Sebor <msebor@redhat.com>
2178 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
2179 (print_filtered_help): Reference aliased option's name and encourage
2180 readers to use it in preference to the alias if the former is not
2181 documented. Mention when using an option is diagnosed.
2182 * gcc.c (display_help): End each sentence with a period.
2184 * common.opt: End each sentence that describes an option with
2186 * config/aarch64/aarch64.opt: Same.
2187 * config/alpha/alpha.opt: Same.
2188 * config/arc/arc.opt: Same.
2189 * config/arm/arm.opt: Same.
2190 * config/avr/avr.opt: Same.
2191 * config/bfin/bfin.opt: Same.
2192 * config/c6x/c6x.opt: Same.
2193 * config/cr16/cr16.opt: Same.
2194 * config/cris/cris.opt: Same.
2195 * config/cris/linux.opt: Same.
2196 * config/darwin.opt: Same.
2197 * config/epiphany/epiphany.opt: Same.
2198 * config/fr30/fr30.opt: Same.
2199 * config/frv/frv.opt: Same.
2200 * config/ft32/ft32.opt: Same.
2201 * config/g.opt: Same.
2202 * config/h8300/h8300.opt: Same.
2203 * config/i386/cygming.opt: Same.
2204 * config/i386/djgpp.opt: Same.
2205 * config/i386/i386.opt: Same.
2206 * config/i386/interix.opt: Same.
2207 * config/i386/mingw-w64.opt: Same.
2208 * config/i386/mingw.opt: Same.
2209 * config/ia64/ia64.opt: Same.
2210 * config/ia64/ilp32.opt: Same.
2211 * config/iq2000/iq2000.opt: Same.
2212 * config/linux.opt: Same.
2213 * config/lm32/lm32.opt: Same.
2214 * config/lynx.opt: Same.
2215 * config/m32c/m32c.opt: Same.
2216 * config/m32r/m32r.opt: Same.
2217 * config/m68k/ieee.opt: Same.
2218 * config/m68k/m68k.opt: Same.
2219 * config/mcore/mcore.opt: Same.
2220 * config/mep/mep.opt: Same.
2221 * config/microblaze/microblaze.opt: Same.
2222 * config/mips/mips.opt: Same.
2223 * config/mmix/mmix.opt: Same.
2224 * config/mn10300/mn10300.opt: Same.
2225 * config/moxie/moxie.opt: Same.
2226 * config/msp430/msp430.opt: Same.
2227 * config/nios2/elf.opt: Same.
2228 * config/nios2/nios2.opt: Same.
2229 * config/nvptx/nvptx.opt: Same.
2230 * config/pa/pa-hpux.opt: Same.
2231 * config/pa/pa-hpux1010.opt: Same.
2232 * config/pa/pa-hpux1111.opt: Same.
2233 * config/pa/pa-hpux1131.opt: Same.
2234 * config/pa/pa.opt: Same.
2235 * config/pa/pa64-hpux.opt: Same.
2236 * config/pdp11/pdp11.opt: Same.
2237 * config/rl78/rl78.opt: Same.
2238 * config/rs6000/476.opt: Same.
2239 * config/rs6000/aix64.opt: Same.
2240 * config/rs6000/darwin.opt: Same.
2241 * config/rs6000/linux64.opt: Same.
2242 * config/rs6000/rs6000.opt: Same.
2243 * config/rs6000/sysv4.opt: Same.
2244 * config/s390/s390.opt: Same.
2245 * config/s390/tpf.opt: Same.
2246 * config/sh/sh.opt: Same.
2247 * config/sol2.opt: Same.
2248 * config/sparc/long-double-switch.opt: Same.
2249 * config/sparc/sparc.opt: Same.
2250 * config/spu/spu.opt: Same.
2251 * config/stormy16/stormy16.opt: Same.
2252 * config/tilegx/tilegx.opt: Same.
2253 * config/tilepro/tilepro.opt: Same.
2254 * config/v850/v850.opt: Same.
2255 * config/vax/vax.opt: Same.
2256 * config/visium/visium.opt: Same.
2257 * config/vms/vms.opt: Same.
2258 * config/vxworks.opt: Same.
2259 * config/xtensa/xtensa.opt: Same.
2261 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2262 Sebastian Pop <s.pop@samsung.com>
2264 * graphite-scop-detection.c (parameter_index_in_region): Update call to
2265 invariant_in_sese_p_rec.
2266 * graphite-sese-to-poly.c (extract_affine): Same.
2267 * sese.c (invariant_in_sese_p_rec): Pass in an extra
2268 parameter has_vdefs.
2269 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
2270 variable depends on virtual definitions in the current region.
2271 * sese.h (invariant_in_sese_p_rec): Update declaration.
2273 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2274 Sebastian Pop <s.pop@samsung.com>
2276 * graphite-scop-detection.c (build_scops): Do not handle scops
2277 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
2278 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
2280 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
2282 * config.in: Regenerate.
2283 * configure: Regenerate.
2284 * configure.ac (CHECKING_P): Define.
2285 * system.h: Use CHECKING_P.
2287 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2290 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
2291 is negative we don't know the type.
2292 (check_stmt_for_type_change): Skip constructors of non-polymorphic
2293 types as those won't help devirutalization.
2295 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2297 * fold-const.c (operand_equal_p): Add code matching empty constructors.
2299 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
2301 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
2303 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
2304 Add comments on sign of the result.
2305 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
2306 Recurse on operand #1 instead of operand #0.
2307 <CEIL_MOD_EXPR>: Do not recurse.
2308 <ROUND_MOD_EXPR>: Likewise.
2310 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2312 * cfgrtl.c (pass_free_cfg::execute): Adjust.
2313 * final.c (dbr_sequence_length): Always define.
2314 (shorten_branches): Adjust.
2315 * genattr-common.c (main): Always define DELAY_SLOTS.
2316 * genattr.c (main): Unconditionally declare functions and define
2317 macros related to delay slots.
2318 * genattrtab.c (write_eligible_delay): Adjust.
2319 (main): Always write out delay slot functions.
2320 * opts.c (default_options_table): Adjust.
2321 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
2322 (redirect_with_delay_list_safe_p): Likewise.
2323 (fill_simple_delay_slots): Likewise.
2324 (fill_slots_from_thread): Likewise.
2325 (make_return_insns): Likewise.
2326 (dbr_schedule): Likewise.
2327 (rest_of_handle_delay_slots): Likewise.
2328 (pass_delay_slots::gate): Likewise.
2329 * toplev.c (process_options): Likewise.
2331 2015-10-21 Richard Henderson <rth@redhat.com>
2333 * targhooks.c (default_addr_space_pointer_mode): Remove check
2334 for generic address space.
2335 (default_addr_space_address_mode): Likewise.
2336 (default_addr_space_valid_pointer_mode): Likewise.
2337 (default_addr_space_legitimate_address_p): Likewise.
2338 (default_addr_space_legitimize_address): Likewise.
2339 * target.def (addr_space.pointer_mode): Update documentation
2340 of default behavior.
2341 (addr_space.address_mode): Likewise.
2344 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
2347 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2349 * builtins.c (fold_builtin_cabs): Delete.
2350 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2351 * match.pd: Add rules previously handled by fold_builtin_cabs.
2353 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2355 * fold-const.h (fold_strip_sign_ops): Delete.
2356 * fold-const.c (fold_strip_sign_ops): Likewise.
2357 (fold_unary_loc, fold_binary_loc): Remove calls to it.
2358 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2359 (fold_builtin_ccos): Delete.
2360 (fold_builtin_pow): Don't call fold_strip_sign_ops.
2361 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2362 Remove fndecl argument.
2363 (fold_builtin_1): Update calls accordingly. Handle constant
2364 cos, cosh, ccos and ccosh here.
2366 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2368 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2369 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2370 * common.opt (fssa-backprop): New option.
2371 * fold-const.h (negate_mathfn_p): Declare.
2372 * fold-const.c (negate_mathfn_p): Make public.
2373 * timevar.def (TV_TREE_BACKPROP): New.
2374 * tree-pass.h (make_pass_backprop): Declare.
2375 * passes.def (pass_backprop): Add.
2376 * gimple-ssa-backprop.c: New file.
2378 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2379 Sebastian Pop <s.pop@samsung.com>
2381 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2382 Do not call create_empty_if_region_on_edge when cond_expr is true.
2383 (translate_isl_ast_node_for): Check whether a guard has been generated.
2385 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2387 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2388 (operator=): Removed.
2389 (dr_info): Make alias_set number the last argument with default
2390 value of invalid_alias_set.
2391 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2393 (rewrite_reductions_out_of_ssa): Iterate only through the
2394 basic blocks which are inside region.
2395 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2396 * sese.h (struct sese_l): Removed assignment operator.
2397 (split_region_for_bb): Removed dead code.
2399 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2401 * graphite-poly.h (struct dr_info): Removed conversion constructor.
2402 (struct scop): Renamed scop::region to scop::scop_info
2403 (scop_set_region): Same.
2404 (SCOP_REGION): Removed
2405 (SCOP_CONTEXT): Removed.
2406 (POLY_SCOP_P): Removed.
2407 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2408 Rename scop->region to scop->scop_info.
2409 (add_parameters_to_ivs_params): Same.
2410 (graphite_regenerate_ast_isl): Same.
2411 * graphite-poly.c (new_scop): Same.
2413 (print_scop_params): Same.
2414 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2415 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2416 (dot_all_scops_1): Rename scop->region to scop->scop_info.
2417 (scop_detection::nb_pbbs_in_loops): Same.
2418 (find_scop_parameters): Same.
2419 (try_generate_gimple_bb): Same.
2420 (gather_bbs::before_dom_children): Same.
2421 (gather_bbs::after_dom_children): Same.
2422 (build_scops): Same.
2423 * graphite-sese-to-poly.c (build_scop_scattering): Same.
2424 (extract_affine_chrec): Same.
2425 (extract_affine): Same.
2426 (set_scop_parameter_dim): Same.
2427 (build_loop_iteration_domains): Same.
2428 (create_pw_aff_from_tree): Same.
2429 (add_param_constraints): Same.
2430 (build_scop_iteration_domain): Same.
2431 (build_scop_drs): Same.
2432 (analyze_drs_in_stmts): Same.
2433 (insert_out_of_ssa_copy_on_edge): Same.
2434 (rewrite_close_phi_out_of_ssa):Same.
2435 (rewrite_reductions_out_of_ssa):Same.
2436 (handle_scalar_deps_crossing_scop_limits):Same.
2437 (rewrite_cross_bb_scalar_deps):Same.
2438 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2439 (build_poly_scop):Same.
2440 (build_alias_set): Use pointer to dr_info.
2441 * graphite.c (print_graphite_scop_statistics):
2442 (graphite_transform_loops):
2443 * sese.h (struct sese_l): Remove conversion constructor.
2445 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2448 * tree.c (verify_type): Verify that TYPE_MODE match
2449 between TYPE_CANONICAL and type.
2450 * expr.c (store_expr_with_bounds): Revert my previous change.
2451 * expmed.c (store_bit_field_1): Revert prevoius change.
2452 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2453 to match for all types.
2455 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
2457 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2460 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2462 * doc/tm.texi: Regenerated.
2463 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2464 * stor-layout.c (layout_type): Use mode to get vector mask size.
2465 * target.def (get_mask_mode): New.
2466 * targhooks.c (default_get_mask_mode): New.
2467 * targhooks.h (default_get_mask_mode): New.
2468 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
2470 * tree.c (MAX_BOOL_CACHED_PREC): New.
2471 (nonstandard_boolean_type_cache): New.
2472 (build_nonstandard_boolean_type): New.
2473 (make_vector_type): Vector mask has no canonical type.
2474 (build_truth_vector_type): New.
2475 (build_same_sized_truth_vector_type): New.
2476 (truth_type_for): Support vector masks.
2477 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2478 (build_truth_vector_type): New.
2479 (build_same_sized_truth_vector_type): New.
2480 (build_nonstandard_boolean_type): New.
2481 * tree-cfg.c (verify_gimple_comparison) Require boolean
2482 vector type for vector comparison.
2483 (verify_gimple_assign_ternary): Likewise.
2484 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2486 * tree-vect-stmts.c (vectorizable_condition): Use boolean
2487 vector type for vector comparison.
2488 * tree-vect-generic.c (elem_op_func): Add new operand to hold
2490 (do_unop): Adjust to modified function type.
2491 (do_binop): Likewise.
2492 (do_plus_minus): Likewise.
2493 (do_negate); Likewise.
2494 (expand_vector_piecewise): Likewise.
2495 (do_cond): Likewise.
2496 (do_compare): Use comparison instead of condition.
2497 (expand_vector_divmod): Use boolean vector type for comparison.
2498 (expand_vector_operations_1): Skip scalar mask operations.
2500 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2502 * omp-low.c (simd_clone_create): Set in_other_partition
2505 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2507 * doc/extend.exp (Local Register Variables): Rewrite.
2509 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2511 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2512 and x*x in cases where the operands are sign ops. Extend these
2513 rules to handle copysign as a sign op (including for cos, cosh
2514 and pow, which already treated negate and abs as sign ops).
2516 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
2519 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2520 for 64-bit MS_ABI targets also when default incoming stack boundary
2523 2015-10-21 Richard Biener <rguenther@suse.de>
2525 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2526 cond stmts, enhanced and split out from ...
2527 (vn_phi_eq): ... here.
2529 2015-10-21 Richard Biener <rguenther@suse.de>
2532 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2533 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2534 (tree_single_nonnegative_warnv_p): ... here. For SSA names
2535 make sure they are not registered for update.
2537 2015-10-21 Richard Biener <rguenther@suse.de>
2539 PR tree-optimization/68026
2540 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2541 unsigned VARYING values.
2543 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2545 * asan.c (asan_emit_stack_protection): Don't pass local stack to
2546 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2547 NULL and use local stack than.
2548 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2549 in addition to __asan_init.
2550 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2551 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2552 * asan.h (asan_intercepted_p): Handle new string builtins.
2553 * ubsan.c (ubsan_use_new_style_p): New function.
2554 (ubsan_instrument_float_cast): If location is unknown, assign
2555 input_location to loc. Propagate loc to ubsan_create_data if
2556 ubsan_use_new_style_p returned true.
2558 2015-10-21 Jeff Law <law@redhat.com>
2560 * Makefile.in (OBJS): Remove sched-vis.c
2561 * sched-vis.c: Removed. Code moved into...
2562 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
2563 * rtl.h: Remove prototypes for functions now living in print-rtl.c
2564 * print-rtl.h Add prototypes for new functions in print-rtl.c.
2565 * auto-inc-dec.c: Include print-rtl.h
2566 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2567 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2569 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2572 2015-10-21 Richard Biener <rguenther@suse.de>
2573 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2575 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2577 Move (a * (1 << b)) is (a << b) to match.pd.
2578 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2579 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2580 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2582 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2584 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2585 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2586 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2588 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2590 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2592 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
2593 Szabolcs Nagy <szabolcs.nagy@arm.com>
2594 Alan Modra <amodra@gmail.com>
2596 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2597 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2598 (LINK_SPEC): Add %(link_secure_plt).
2599 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2600 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2602 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
2603 Szabolcs Nagy <szabolcs.nagy@arm.com>
2605 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
2606 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
2608 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2610 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
2612 (fusion_load_store): Use it.
2613 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
2614 ldp and stp in VD modes.
2615 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
2616 (store_pair<mode>, VD): Likewise.
2618 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
2620 PR rtl-optimization/67609
2621 * lra-splill.c (lra_final_code_change): Don't remove all
2624 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2626 * simplify-rtx.c (simplify_binary_operation): If either operand was
2627 a constant pool reference use them if all other simplifications failed.
2629 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2631 * config/aarch64/aarch64.md
2632 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
2633 * config/aarch64/aarch64-simd.md
2634 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
2635 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
2636 (aarch64_fpconst_pow_of_2): New function.
2637 (aarch64_vec_fpconst_pow_of_2): Likewise.
2638 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
2640 (aarch64_vec_fpconst_pow_of_2): Likewise.
2641 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
2642 (aarch64_fp_vec_pow2): Likewise.
2644 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
2646 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
2647 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
2648 * config/alpha/alpha.c (alpha_function_arg_advance): Update
2649 ALPHA_ARG_SIZE usage.
2650 (alpha_arg_partial_bytes): Ditto.
2652 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2655 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
2656 error_mark_node decls.
2658 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2662 * common/config/i386/i386-common.c (ix86_handle_option): Remove
2663 OPT_miamcu handling.
2664 * config/i386/i386.c (PTA_NO_80387): New macro.
2665 (processor_alias_table): Add PTA_NO_80387 to lakemont.
2666 (ix86_option_override_internal): Update MASK_80387 from
2667 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
2668 SSE math only if 80387 is supported. Don't change
2670 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
2672 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
2673 if TARGET_80387 is true and TARGET_IAMCU is false.
2674 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
2675 is true and TARGET_IAMCU_P is false.
2677 2015-10-20 Richard Biener <rguenther@suse.de>
2679 PR tree-optimization/68017
2680 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
2682 2015-10-20 Martin Liska <mliska@suse.cz>
2684 * cgraphclones.c (cgraph_node::create_virtual_clone):
2685 Verify cgraph_node.local.versionable instead of calling
2686 tree_versionable_function_p.
2687 * ipa-cp.c (determine_versionability): Save the information
2688 to ipa_node_params summary.
2689 (ipcp_versionable_function_p): Use it.
2690 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
2691 (ipcp_generate_summary): Do not compute cgraph_node
2693 * ipa-inline-analysis.c (inline_generate_summary): Compute
2694 versionability for all cgraph nodes.
2695 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
2696 ipa_node_params::versionability.
2697 * ipa-prop.h (struct ipa_node_params): Declare it.
2699 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2702 * varasm.c (assemble_variable): Move special vtv handling to..
2703 (handle_vtv_comdat_sections): .. here. New function.
2704 (output_object_block): Handle vtv sections.
2706 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
2709 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
2711 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
2713 * doc/extend.texi: Update documentation WRT inline functions.
2715 2015-10-20 Alan Modra <amodra@gmail.com>
2718 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
2719 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
2720 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2722 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
2724 PR rtl-optimization/66790
2725 * df.h (DF_MIR): New macro.
2726 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
2727 (DF_MIR_INFO_BB): New macro.
2728 (DF_MIR_IN, DF_MIR_OUT): New macros.
2729 (struct df_mir_bb_info): New.
2730 (df_mir): New macro.
2731 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
2733 (df_mir_get_bb_info): New.
2734 * df-problems.c (struct df_mir_problem_data): New.
2735 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
2736 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
2737 df_mir_confluence_0, df_mir_confluence_n,
2738 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
2739 df_mir_bottom_dump, df_mir_verify_solution_start,
2740 df_mir_verify_solution_end): New.
2742 (df_mir_add_problem, df_mir_simulate_one_insn): New.
2743 * timevar.def (TV_DF_MIR): New.
2744 * ree.c: Include bitmap.h
2745 (add_removable_extension): Add an INIT_REGS parameter. Use it
2746 to skip zero-extensions that may get an uninitialized register.
2747 (find_removable_extensions): Compute must-initialized registers
2748 using the MIR dataflow problem. Update the call to
2749 add_removable_extension.
2750 (find_and_remove_re): Call df_mir_add_problem.
2752 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
2754 * common/config/mn10300/mn10300-common.c
2755 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
2756 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
2758 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
2760 * doc/extend.texi (Explicit Register Variables): Simplify and
2761 avoid unnecessary and confusion abbreviations. Update cross
2763 doc/implement-c.tex: Update cross reference.
2765 2015-10-19 Jeff Law <law@redhat.com>
2767 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
2768 that create irreducible loops unless the path elimiantes a multiway
2771 2015-10-19 Richard Biener <rguenther@suse.de>
2773 PR tree-optimization/67975
2774 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
2775 * tree-cfg.c (extract_true_false_controlled_edges): Split out
2776 core worker from ...
2777 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
2778 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
2779 instead of block number for PHIs with two or one args.
2780 (vn_phi_eq): Compare edge predicates of PHIs that are in different
2783 2015-10-19 Richard Biener <rguenther@suse.de>
2785 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
2786 (gimple_stmt_nonnegative_warnv_p): Use it.
2787 * match.pd (CPROJ): New operator list.
2788 (cproj (complex ...)): Move simplifications from ...
2789 * builtins.c (fold_builtin_cproj): ... here.
2791 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2793 * config/i386/i386.c (ix86_expand_vector_move): Use
2794 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
2797 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2799 * doc/invoke.texi: Replace @optindex with @opindex.
2801 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2804 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
2805 arch= is set, clear all bits in x_ix86_isa_flags, except for
2806 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
2808 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
2811 * common.opt (fkeep-static-functions): New option.
2812 * doc/invoke.texi: Document it.
2813 * cgraphunit.c (cgraph_node::finalize_function): Use it.
2815 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2817 * sched-int.h (struct autopref_multipass_data_): Remove offset
2818 field. Add min_offset, max_offset, multi_mem_insn_p fields.
2819 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
2820 (autopref_multipass_init): Use it. Handle PARALLEL sets.
2821 (autopref_rank_data): New function.
2822 (autopref_rank_for_schedule): Use it.
2823 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
2825 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
2828 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
2830 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2832 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
2833 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
2834 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
2835 (STANDARD_STARTFILE_PREFIX_1): New.
2836 (STANDARD_STARTFILE_PREFIX_2): New.
2838 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2840 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
2841 (darwin_driver_init): Note a version-min when provided on the c/l.
2842 * config/darwin.h (%darwin_minversion): Remove.
2843 * config/i386/darwin.h: Likewise.
2844 * config/rs6000/darwin.h: Likewise.
2845 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
2846 rather than an arbitrary constant.
2848 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2850 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
2851 PPC, detect conflicts between -arch and multilib settings. Detect
2852 and warn about conflicts between multiple -arch definitions.
2854 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2856 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
2858 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2860 * lra-constraints.c (add_next_usage_insn): Change argument type
2861 from rtx to rtx_insn *.
2863 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
2865 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
2868 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
2870 * config/tilepro/gen-mul-tables.cc: Adjust include files.
2871 * config/tilegx/mul-tables.c: Regenerate.
2872 * config/tilepro/mul-tables.c: Regenerate.
2874 * config/tilegx/tilegx-c.c: Adjust include files.
2875 * config/tilegx/tilegx.c: Likewise.
2876 * config/tilepro/tilepro-c.c: Likewise.
2877 * config/tilepro/tilepro.c: Likewise.
2878 * config/aarch64/aarch64-builtins.c: Likewise.
2879 * config/aarch64/aarch64.c: Likewise.
2880 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2881 * config/alpha/alpha.c: Likewise.
2882 * config/arc/arc.c: Likewise.
2883 * config/arm/aarch-common.c: Likewise.
2884 * config/arm/arm-builtins.c: Likewise.
2885 * config/arm/arm-c.c: Likewise.
2886 * config/arm/arm.c: Likewise.
2887 * config/avr/avr-c.c: Likewise.
2888 * config/avr/avr-devices.c: Likewise.
2889 * config/avr/avr-log.c: Likewise.
2890 * config/avr/avr.c: Likewise.
2891 * config/bfin/bfin.c: Likewise.
2892 * config/c6x/c6x.c: Likewise.
2893 * config/cr16/cr16.c: Likewise.
2894 * config/cris/cris.c: Likewise.
2895 * config/darwin-c.c: Likewise.
2896 * config/darwin-driver.c: Likewise.
2897 * config/darwin.c: Likewise.
2898 * config/default-c.c: Likewise.
2899 * config/epiphany/epiphany.c: Likewise.
2900 * config/epiphany/mode-switch-use.c: Likewise.
2901 * config/epiphany/resolve-sw-modes.c: Likewise.
2902 * config/fr30/fr30.c: Likewise.
2903 * config/frv/frv.c: Likewise.
2904 * config/ft32/ft32.c: Likewise.
2905 * config/glibc-c.c: Likewise.
2906 * config/h8300/h8300.c: Likewise.
2907 * config/i386/host-cygwin.c: Likewise.
2908 * config/i386/host-mingw32.c: Likewise.
2909 * config/i386/i386-c.c: Likewise.
2910 * config/i386/i386.c: Likewise.
2911 * config/i386/msformat-c.c: Likewise.
2912 * config/i386/winnt-cxx.c: Likewise.
2913 * config/i386/winnt-stubs.c: Likewise.
2914 * config/i386/winnt.c: Likewise.
2915 * config/ia64/ia64-c.c: Likewise.
2916 * config/ia64/ia64.c: Likewise.
2917 * config/iq2000/iq2000.c: Likewise.
2918 * config/lm32/lm32.c: Likewise.
2919 * config/m32c/m32c-pragma.c: Likewise.
2920 * config/m32c/m32c.c: Likewise.
2921 * config/m32r/m32r.c: Likewise.
2922 * config/mcore/mcore.c: Likewise.
2923 * config/mep/mep-pragma.c: Likewise.
2924 * config/mep/mep.c: Likewise.
2925 * config/microblaze/microblaze-c.c: Likewise.
2926 * config/microblaze/microblaze.c: Likewise.
2927 * config/mips/mips-tables.opt
2928 * config/mips/mips.c: Likewise.
2929 * config/mmix/mmix.c: Likewise.
2930 * config/mn10300/mn10300.c: Likewise.
2931 * config/moxie/moxie.c: Likewise.
2932 * config/msp430/msp430-c.c: Likewise.
2933 * config/msp430/msp430.c: Likewise.
2934 * config/nds32/nds32-cost.c: Likewise.
2935 * config/nds32/nds32-fp-as-gp.c: Likewise.
2936 * config/nds32/nds32-intrinsic.c: Likewise.
2937 * config/nds32/nds32-isr.c: Likewise.
2938 * config/nds32/nds32-md-auxiliary.c: Likewise.
2939 * config/nds32/nds32-memory-manipulation.c: Likewise.
2940 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2941 * config/nds32/nds32-predicates.c: Likewise.
2942 * config/nds32/nds32.c: Likewise.
2943 * config/nios2/nios2.c: Likewise.
2944 * config/nvptx/mkoffload.c: Likewise.
2945 * config/nvptx/nvptx.c: Likewise.
2946 * config/pa/pa.c: Likewise.
2947 * config/pdp11/pdp11.c: Likewise.
2948 * config/rl78/rl78-c.c: Likewise.
2949 * config/rl78/rl78.c: Likewise.
2950 * config/rs6000/host-darwin.c: Likewise.
2951 * config/rs6000/rs6000-c.c: Likewise.
2952 * config/rs6000/rs6000-linux.c: Likewise.
2953 * config/rs6000/rs6000.c: Likewise.
2954 * config/rx/rx.c: Likewise.
2955 * config/s390/s390-c.c: Likewise.
2956 * config/s390/s390.c: Likewise.
2957 * config/sh/sh-c.c: Likewise.
2958 * config/sh/sh-mem.cc: Likewise.
2959 * config/sh/sh.c: Likewise.
2960 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2961 * config/sh/sh_treg_combine.cc: Likewise.
2962 * config/sol2-c.c: Likewise.
2963 * config/sol2-cxx.c: Likewise.
2964 * config/sol2-stubs.c: Likewise.
2965 * config/sol2.c: Likewise.
2966 * config/sparc/sparc-c.c: Likewise.
2967 * config/sparc/sparc.c: Likewise.
2968 * config/spu/spu-c.c: Likewise.
2969 * config/spu/spu.c: Likewise.
2970 * config/stormy16/stormy16.c: Likewise.
2971 * config/v850/v850-c.c: Likewise.
2972 * config/v850/v850.c: Likewise.
2973 * config/vax/vax.c: Likewise.
2974 * config/visium/visium.c: Likewise.
2975 * config/vms/vms-c.c: Likewise.
2976 * config/vms/vms.c: Likewise.
2977 * config/vxworks.c: Likewise.
2978 * config/winnt-c.c: Likewise.
2979 * config/xtensa/xtensa.c: Likewise.
2981 2015-10-16 Christian Bruel <christian.bruel@st.com>
2984 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
2985 (FUNCTION_BOUNDARY_P): New macro:
2986 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
2988 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
2989 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
2990 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
2991 * gcc/function.c (allocate_struct_function): Call
2992 relayout_function hook.
2993 * gcc/passes.c (rest_of_decl_compilation): Likewise.
2995 2015-10-16 Christian Bruel <christian.bruel@st.com>
2998 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
2999 * config/arm/arm.c (arm_option_override_internal): Call
3000 arm_override_options_after_change_1.
3001 (arm_override_options_after_change): New function.
3002 (arm_override_options_after_change_1): Likewise.
3003 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
3005 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3008 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3011 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
3013 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
3014 argument is an ADDR_EXPR.
3016 2015-10-16 Richard Biener <rguenther@suse.de>
3018 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
3019 and get rid of force_gimple_operand_gsi.
3020 (gimple_fold_builtin_memory_chk): Likewise.
3021 (gimple_fold_builtin_stxcpy_chk): Likewise.
3022 (rewrite_to_defined_overflow): Likewise.
3023 (gimple_convert_to_ptrofftype): New function.
3024 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
3026 2015-10-16 Richard Biener <rguenther@suse.de>
3028 * tree-nested.h (build_addr): Adjust prototype.
3029 * tree-nested.c (build_addr): Remove context argument and use
3031 (get_static_chain): Adjust calls to build_addr.
3032 (convert_nl_goto_reference): Likewise.
3033 (convert_tramp_reference_op): Likewise.
3034 (finalize_nesting_tree_1): Likewise.
3035 * value-prof.c (gimple_ic): Likewise.
3036 * gimple-low.c (lower_builtin_setjmp): Likewise.
3037 * tree-parloops.c (take_address_of): Likewise.
3038 (create_call_for_reduction_1): Likewise.
3039 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
3040 (gimple_gen_ic_func_profiler): Likewise.
3042 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3044 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3047 2015-10-16 Michael Collison <michael.collison@linaro.org>
3048 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3050 * match.pd ((x < y) && (x < z) -> x < min (y,z),
3051 (x > y) and (x > z) -> x > max (y,z))
3053 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
3054 Szabolcs Nagy <szabolcs.nagy@arm.com>
3056 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
3057 (DYNAMIC_LINKER): Renamed to ...
3058 (GLIBC_DYNAMIC_LINKER): This.
3059 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
3061 2015-10-15 Marek Polacek <polacek@redhat.com>
3063 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
3064 gimple_call_builtin instead of is_gimple_call.
3066 2015-10-15 Richard Biener <rguenther@suse.de>
3068 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
3070 2015-10-15 Richard Biener <rguenther@suse.de>
3072 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
3073 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
3074 * tree-vect-loop.c (get_initial_def_for_induction): Drop
3075 use of force_gimple_operand in favor of gimple_build.
3076 Use vect_get_new_ssa_name.
3077 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
3078 (vectorizable_mask_load_store): Likewise.
3079 (vectorizable_call): Likewise.
3080 (vectorizable_store): Likewise.
3081 (vectorizable_load): Likewise.
3082 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
3084 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
3086 PR tree-optimization/67945
3087 * tree-pass.h (PROP_gimple_opt_math): New property flag.
3088 * generic-match-head.c (canonicalize_math_p): New function.
3089 * gimple-match-head.c: Include tree-pass.h.
3090 (canonicalize_math_p): New function.
3091 * match.pd: Group math built-in rules into simplifications
3092 and canonicalizations. Guard the latter with canonicalize_math_p.
3093 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
3094 PROP_gimple_opt_math property.
3096 2015-10-15 Marek Polacek <polacek@redhat.com>
3098 PR tree-optimization/67953
3099 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
3101 2015-10-15 Jiong Wang <jiong.wang@arm.com>
3103 * config.gcc: Recognize "." in architecture base name for AArch64.
3105 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3107 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
3109 * config/mips/mips.c (mips_setup_incoming_varargs): Use
3110 ROUND_DOWN to calculate off.
3111 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
3112 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
3115 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
3117 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
3119 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
3120 Torvald Riegel <triegel@redhat.com>
3123 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
3124 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3125 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
3126 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
3127 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
3128 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3129 trechkpt, treclaim, tsr, ttest): New define_expands.
3130 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3131 __TM_FENCE__ for htm.
3132 * doc/extend.texi: Update documentation for htm builtins.
3134 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3137 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
3138 REG_CFA_EXPRESSION to aligned SSE stores.
3140 2015-10-14 Jeff Law <law@redhat.com>
3142 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
3143 num_threaded_edges for successful FSM threads too.
3145 2015-10-14 Richard Biener <rguenther@suse.de>
3147 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
3148 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
3149 (vect_get_vec_def_for_operand): Remove unused parameter.
3150 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
3151 (vect_create_epilog_for_reduction): Likewise.
3152 (vectorizable_reduction): Likewise.
3153 (vectorizable_live_operation): Likewise.
3154 * tree-vect-patterns.c (type_conversion_p): Likewise.
3155 (vect_recog_vector_vector_shift_pattern): Likewise.
3156 (check_bool_pattern): Likewise.
3157 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3158 (vect_analyze_slp_cost_1): Likewise.
3159 * tree-vect-stmts.c (process_use): Likewise.
3160 (vect_get_vec_def_for_operand): Do not handle reductions.
3161 (vect_get_vec_defs): Adjust.
3162 (vectorizable_mask_load_store): Likewise.
3163 (vectorizable_call): Likewise.
3164 (vectorizable_simd_clone_call): Likewise.
3165 (vect_get_loop_based_defs): Likewise.
3166 (vectorizable_conversion): Likewise.
3167 (vectorizable_assignment): Likewise.
3168 (vectorizable_shift): Likewise.
3169 (vectorizable_operation): Likewise.
3170 (vectorizable_store): Likewise.
3171 (vectorizable_load): Likewise.
3172 (vect_is_simple_cond): Likewise.
3173 (vectorizable_condition): Likewise.
3174 (vect_is_simple_use): Remove unused parameters.
3175 (vect_is_simple_use_1): Adjust and rename.
3177 2015-10-14 Richard Biener <rguenther@suse.de>
3179 PR tree-optimization/67915
3180 * match.pd: Handle comparisons of addresses of STRING_CSTs.
3181 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
3182 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
3183 stmt folding in favor of GIMPLE one.
3185 2015-10-14 Marek Polacek <polacek@redhat.com>
3187 PR tree-optimization/67815
3188 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
3189 (reassociate_bb): Call it.
3191 2015-10-14 Richard Biener <rguenther@suse.de>
3193 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3194 Reset info at start.
3195 (vect_analyze_group_access_1): Add debug print.
3196 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
3197 (vect_compute_single_scalar_iteration_cost): ... to this.
3198 (vect_analyze_loop_2): Adjust.
3199 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
3200 * tree-vectorizer.h: ... here.
3201 (add_stmt_info_to_vec): Remove.
3202 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
3204 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
3206 * targhooks.c (default_target_option_pragma_parse): Do not warn if
3207 called on behalf of "#pragma GCC pop_options".
3209 2015-10-14 Tom de Vries <tom@codesourcery.com>
3211 * cfganal.c (verify_no_unreachable_blocks): New function.
3212 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
3213 verify_no_unreachable_blocks.
3214 cfganal.h (verify_no_unreachable_blocks): Declare.
3216 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
3218 * common.opt: Add flag_checking.
3219 * system.h (CHECKING_P): Define.
3221 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3222 Aldy Hernandez <aldyh@redhat.com>
3223 Ilya Verbin <ilya.verbin@intel.com>
3225 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
3226 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
3227 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
3228 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
3229 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
3230 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
3231 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
3232 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
3233 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
3234 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
3235 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
3236 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
3237 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
3238 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3239 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
3240 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3241 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3242 (struct cgraph_simd_clone_arg): Adjust comment.
3243 * coretypes.h (struct gomp_ordered): New forward decl.
3244 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
3245 set critical clauses to it.
3246 (gimple_build_omp_ordered): Return gomp_ordered * instead of
3247 gimple *. Add CLAUSES argument, set ordered clauses to it.
3248 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
3250 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
3251 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
3252 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
3253 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
3254 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
3255 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
3256 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
3257 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
3259 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
3260 (gomp_critical): Add clauses field.
3261 (gomp_ordered): New struct.
3262 (is_a_helper <gomp_ordered *>::test): New inline.
3263 (gimple_build_omp_critical): Add CLAUSES argument.
3264 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
3265 instead of gimple *.
3266 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
3267 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
3268 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
3269 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
3271 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
3272 (dump_gimple_omp_target): Handle enter data and exit data.
3273 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
3274 (dump_gimple_omp_critical): Print clauses.
3275 (dump_gimple_omp_ordered): New function.
3276 (dump_gimple_omp_task): Handle taskloop.
3277 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
3279 * gimple-walk.c (walk_gimple_op): Walk clauses on
3280 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
3281 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
3282 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
3283 (struct gimplify_omp_ctx): Add loop_iter_var,
3284 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
3285 and target_firstprivatize_array_bases fields.
3286 (delete_omp_context): Release loop_iter_var.
3287 (gimplify_bind_expr): Handle ORT_NONE.
3288 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
3289 ORT_COMBINED_TARGET.
3290 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
3291 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
3292 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
3293 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
3294 ctx->target_map_scalars_firstprivate.
3295 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
3296 data sharing clauses. For data sharing clause with VLA decl
3297 on omp target/target data don't add firstprivate for the pointer.
3298 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
3299 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
3300 the addition of ORT_COMBINED_TARGET.
3301 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
3302 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
3303 pointers as zero length array sections and
3304 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
3306 (omp_check_private): Handle omp_member_access_dummy_var vars.
3307 (find_decl_expr): New function.
3308 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
3309 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
3310 Handle OMP_CLAUSE_GANG separately. Handle
3311 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3312 clauses. Diagnose linear clause on combined
3313 distribute {, parallel for} simd construct, unless it is the loop
3314 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
3315 Handle map clauses with COMPONENT_REF. Initialize
3316 ctx->target_map_scalars_firstprivate,
3317 ctx->target_firstprivatize_array_bases and
3318 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
3319 linear clause even to target region if combined. Remove
3320 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
3321 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
3322 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
3323 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
3324 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
3325 For linear clause on worksharing loop combined with parallel add
3326 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
3327 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
3328 omp_member_access_dummy_var vars. Add lastprivate clause to outer
3330 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
3331 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
3332 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
3334 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
3335 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
3336 in target body. Handle removal of struct mapping if struct is not
3337 seen in target body. Remove GOMP_MAP_STRUCT map clause on
3338 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
3339 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
3340 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
3341 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
3342 clause appear together. Handle
3343 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
3344 clause if it has map-type-modifier always. Handle
3345 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3347 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
3348 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
3350 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
3351 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
3352 iterators in doacross loops.
3353 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
3354 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
3355 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
3356 for the addition of ORT_COMBINED_TARGET.
3357 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3358 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
3359 and OMP_TARGET_EXIT_DATA.
3360 (gimplify_omp_ordered): New function.
3361 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3362 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
3363 Gimplify clauses on OMP_CRITICAL.
3364 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3365 expand_GOMP_SIMD_ORDERED_END): New functions.
3366 * internal-fn.def (GOMP_SIMD_ORDERED_START,
3367 GOMP_SIMD_ORDERED_END): New internal functions.
3368 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3369 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3370 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3371 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3372 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3373 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3374 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3375 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3376 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3377 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3378 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3379 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3380 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3381 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3383 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3384 GOMP_target_data_41, adjust type.
3385 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3386 GOMP_target_update_41, adjust type.
3387 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3389 (struct omp_for_data): Add ordered and simd_schedule fields.
3390 (omp_member_access_dummy_var, unshare_and_remap_1,
3391 unshare_and_remap, is_taskloop_ctx): New functions.
3392 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3393 (extract_omp_for_data): Handle taskloops and doacross loops
3394 and simd schedule modifier.
3395 (omp_adjust_chunk_size): New function.
3396 (get_ws_args_for): Use it.
3397 (lookup_sfield): Change first argument to splay_tree_key,
3398 add overload with first argument tree.
3399 (maybe_lookup_field): Likewise.
3400 (use_pointer_for_field): Handle omp_member_access_dummy_var.
3401 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3402 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3403 (build_outer_var_ref): Add LASTPRIVATE argument, handle
3404 taskloops and omp_member_access_dummy_var vars.
3405 (build_sender_ref): Change first argument to splay_tree_key,
3406 add overload with first argument tree.
3407 (install_var_field): For mask & 8 use &DECL_UID as key instead
3409 (fixup_child_record_type): Const qualify *.omp_data_i.
3410 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3411 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3412 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3413 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3414 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3415 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3416 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3418 (add_taskreg_looptemp_clauses): New function.
3419 (scan_omp_parallel): Use it.
3420 (scan_omp_task): Likewise.
3421 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3422 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3423 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3424 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
3425 sandwiched taskloop constructs. Type check
3426 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
3427 region. Diagnose depend(source) or depend(sink:...) on
3428 target constructs or task/taskloop.
3429 (handle_simd_reference): Use get_name.
3430 (lower_rec_input_clauses): Likewise. Ignore all
3431 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3432 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
3433 before passing it to omp_clause_{default,copy}_ctor. Handle
3434 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
3435 lastprivate_firstprivate flag for linear that needs copyin and
3436 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3437 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3438 on taskloop lookup decl in outer context. Pass true to
3439 build_outer_var_ref lastprivate argument. Handle
3440 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3441 outside of outer taskloop for.
3442 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3444 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3445 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
3446 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
3447 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
3448 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3449 abstract origin. Handle omp_member_access_dummy_var vars.
3450 (expand_parallel_call): Use expand_omp_build_assign.
3451 (expand_task_call): Handle taskloop construct expansion. Add
3452 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
3453 integers. Add priority argument to GOMP_task* calls. Or in
3454 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3456 (expand_omp_build_assign): Add prototype. Add AFTER
3457 argument, if true emit statements after *GSI_P and continue linking.
3458 (expand_omp_taskreg): Adjust expand_task_call caller.
3459 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3460 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3461 zero_iter2_bb and first_zero_iter2 arguments, handle computation
3462 of counts even for ordered loops.
3463 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3464 (expand_omp_ordered_source, expand_omp_ordered_sink,
3465 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3467 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
3468 clauses on worksharing loop. Handle DOACROSS loop expansion.
3469 (expand_omp_for_static_nochunk): Handle linear clauses on
3470 worksharing loop. Adjust expand_omp_for_init_counts
3472 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
3473 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
3474 expand_omp_for_init_counts callers.
3475 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3477 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3478 Handle doacross loops.
3479 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3480 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
3481 GOMP_target_{41,update_41,enter_exit_data} libcalls.
3482 (expand_omp): Don't expand ordered depend constructs here, record
3483 ord_stmt instead for later expand_omp_for_generic.
3484 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3485 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3486 clause as stand-alone directive.
3487 (lower_omp_ordered_clauses): New function.
3488 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3489 don't lower anything.
3490 (lower_omp_for_lastprivate): Use last _looptemp_ clause
3491 on taskloop for comparison.
3492 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
3493 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3494 expansion for linear adjustments.
3495 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3496 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3497 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
3498 to tree * pointing to the stmt's clauses.
3499 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3500 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3501 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3502 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3503 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3504 clauses. Always use short kind and 8-bit align shift.
3505 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3506 (struct lower_omp_regimplify_operands_data): New type.
3507 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3509 (lower_omp_1): Use lower_omp_regimplify_operands instead of
3510 gimple_regimplify_operands.
3511 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3512 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3513 clause as stand-alone directive.
3514 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3515 (simd_clone_mangle): Mangle the various linear kinds
3517 (simd_clone_adjust_argument_types): Handle
3518 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3519 (simd_clone_init_simd_arrays): Don't do anything for uval.
3520 (simd_clone_adjust): Handle
3521 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3522 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3523 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3524 * omp-low.h (omp_member_access_dummy_var): New prototype.
3525 * passes.def (pass_simduid_cleanup): Schedule another copy of the
3526 pass after all optimizations.
3527 * tree.c (omp_clause_code_name): Add entries for
3528 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3529 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3530 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
3531 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3532 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3533 OMP_CLAUSE_REDUCTION 5 arguments. Handle
3534 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3535 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3537 * tree-core.h (enum omp_clause_linear_kind): New.
3538 (struct tree_omp_clause): Change type of map_kind
3539 from unsigned char to unsigned int. Add subcode.if_modifier
3540 and subcode.linear_kind fields.
3541 (enum omp_clause_code): Add
3542 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3543 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3544 (OMP_CLAUSE_REDUCTION): Document
3545 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3546 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3547 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3548 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
3550 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
3552 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3554 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3555 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3557 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3558 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3559 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3560 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3561 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3562 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3563 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3564 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3565 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3566 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3567 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3568 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3569 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3570 * tree-inline.c (remap_gimple_stmt): Handle clauses on
3571 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
3572 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3573 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3574 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3575 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3576 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3577 (convert_local_omp_clauses): Likewise.
3578 * tree-pretty-print.c (dump_omp_clause): Handle
3579 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3580 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3581 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3582 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3583 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
3584 GOMP_MAP_FORCE_DEALLOC. Handle
3585 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3586 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3587 and clauses on OMP_ORDERED and OMP_CRITICAL.
3588 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3589 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3590 (vectorize_loops): Adjust comments.
3591 (pass_simduid_cleanup::execute): Likewise.
3592 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3593 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3594 * wide-int.h (wi::gcd): New.
3596 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3598 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3599 (ix86_function_arg_advance): Ditto.
3600 (ix86_function_arg): Ditto.
3601 (ix86_gimplify_va_arg): Ditto.
3602 (ix86_class_max_nregs): Ditto.
3603 (inline_memory_move_cost): Ditto.
3604 (ix86_set_reg_reg_cost): Ditto.
3605 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
3607 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
3610 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
3612 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3614 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
3615 ROUND_UP macro and UNITS_PER_WORD * 2.
3616 * config/sparc/sparc.c (sparc_compute_frame_size):
3617 Use ROUND_UP and ROUND_DOWN macros where applicable.
3618 (function_arg_record_value, function_arg_record_value_1)
3619 (function_arg_record_value_1): Ditto.
3620 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
3621 alignment to double-word.
3622 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
3623 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
3626 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
3628 * gcc/rtl.h (print_insn): Fix prototype.
3630 2015-10-13 Tom de Vries <tom@codesourcery.com>
3632 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
3633 -1. Add assert that returned entry matches phi argument.
3634 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
3635 free_stmt_vec_info_vec ...
3636 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
3639 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
3641 PR tree-optimization/67909, 67947
3642 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
3643 really skip the inner loop.
3645 2015-10-13 Jeff Law <law@redhat.com>
3647 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3648 Allow single block jump threading paths.
3650 2015-10-13 Tom de Vries <tom@codesourcery.com>
3652 PR tree-optimization/67476
3653 * doc/invoke.texi (@item parloops-schedule): New item.
3654 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
3655 * tree-parloops.c: Include params-enum.h.
3656 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
3658 2015-10-13 Tom de Vries <tom@codesourcery.com>
3660 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
3661 * params-enum.h: New file.
3662 * opts.c (handle_param): Handle case that param arg is a string.
3663 * params-list.h: Handle DEFPARAMENUM5 in params.def.
3664 * params.c (find_param): New function, factored out of ...
3665 (set_param_value): ... here.
3666 (param_string_value_p): New function.
3667 * params.h (struct param_info): Add value_names field.
3668 (find_param, param_string_value_p): Declare.
3670 2015-10-13 Tom de Vries <tom@codesourcery.com>
3672 PR tree-optimization/67476
3673 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
3675 2015-10-13 Richard Biener <rguenther@suse.de>
3677 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
3678 the data dependence vector.
3679 (vect_peeling_hash_insert): Get the peeling hash table as argument.
3680 (vect_peeling_hash_get_lowest_cost): Likewise.
3681 (vect_enhance_data_refs_alignment): Adjust.
3682 (struct _vect_peel_info, struct _vect_peel_extended_info,
3683 struct peel_info_hasher): Move from ...
3684 * tree-vectorizer.h: ... here.
3685 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
3686 (LOOP_VINFO_PEELING_HTAB): Likewise.
3687 (struct _loop_vec_info): Remove min_profitable_iters and
3688 peeling_htab members.
3689 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
3691 (destroy_loop_vec_info): Adjust.
3692 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
3693 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
3694 to estimate alias versioning cost.
3695 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
3697 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
3699 * real.h (real_isinteger): Declare.
3700 * real.c (real_isinteger): New function.
3701 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
3702 if y is an even integer.
3704 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3707 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3708 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3709 counts when these are more informative.
3711 2015-10-12 Jeff Law <law@redhat.com>
3713 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
3714 (fsm_find_control_stmt_paths): Change name of first argument to
3715 more accurately relfect what it really is. Handle simplification
3716 of GIMPLE_COND after finding a thread path for NAME.
3717 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
3718 nontrivial conditions to be handled by FSM threader.
3719 (thread_through_normal_block): Extract the name to looup via
3720 FSM threader from COND_EXPR.
3722 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
3723 restriction that traced SSA_NAME is a user variable.
3725 2015-10-12 Tom de Vries <tom@codesourcery.com>
3727 PR tree-optimization/67476
3728 * omp-low.c (expand_omp_for_generic): Add missing phis.
3730 2015-10-12 Tom de Vries <tom@codesourcery.com>
3732 PR tree-optimization/67476
3733 * omp-low.c (expand_omp_for_generic): Handle simple latch.
3735 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3737 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3738 tables: add tbl3 and tbx4.
3739 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
3740 (aarch64_tbx4v8qi): New.
3741 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
3742 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
3743 Rewrite using builtin functions.
3744 * config/aarch64/iterators.md (UNSPEC_TBX): New.
3746 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3748 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
3750 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3751 Use ROUND_UP and ROUND_DOWN macros where applicable.
3752 (rs6000_darwin64_record_arg_flush): Ditto.
3753 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
3754 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
3757 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3759 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
3760 (AARCH64_ROUND_DOWN): Ditto.
3761 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
3763 2015-10-12 Richard Biener <rguenther@suse.de>
3766 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
3767 code that analyzes IVs on each stmt but in a cheaper way avoiding
3770 2015-10-12 Nick Clifton <nickc@redhat.com>
3772 * config/msp430/msp430.c (msp430_mcu_names): Rename to
3773 msp430_mcu_data, add fields for ISA and hardware multiply
3774 support. Import latest data from the devices.csv file.
3775 (msp430_override_option): Use the data from the new array.
3776 (msp430_use_f5_series_hwmult): Likewise.
3777 (use_32bit_hwmult): Likewise.
3778 (msp430_no_hwmult): Likewise.
3779 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
3781 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
3782 not recognised then no hardware multiply support is assumed and
3783 that only the MSP430 ISA is allowed.
3785 2015-10-12 Richard Biener <rguenther@suse.de>
3787 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
3789 (vect_analyze_loop_2): ... here.
3791 2015-10-11 Jason Merrill <jason@redhat.com>
3794 * expr.c (store_field): Call store_constructor directly when
3795 storing a CONSTRUCTOR into a target smaller than its type.
3796 Guard against unsafe bitwise copy.
3798 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3800 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3801 counts when these are more informative.
3803 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3805 * tree-profile.c (tree_profiling): Do not clear
3806 pure/const when not instrumenting.
3807 (pass tree_profile): Add dump of symtab.
3809 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3811 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
3813 (fold_addr_of_array_ref_difference): Likewise.
3815 2015-10-11 Jeff Law <law@redhat.com>
3817 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
3818 tree-ssa-threadbackward.c.
3819 (fsm_find_control_statement_thread_paths): Likewise.
3820 (thread_through_normal_block): Break out FSM bits and move them
3821 into a new function in tree-ssa-threadbackward.c. Call new function
3823 Minimize header file usage.
3824 * tree-ssa-threadbackward.h: New file.
3825 * tree-ssa-threadbackward.c: Likewise.
3826 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
3828 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
3830 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
3832 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
3834 PR rtl-optimization/67864
3835 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
3836 fallthrough edges for conditional jumps. Don't sort candidate
3837 edges if not optimizing for speed.
3839 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3841 * defaults.h (REVERSE_CONDITION): New default definition.
3842 * jump.c (reversed_comparison_code_parts): Adjust.
3844 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3846 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
3847 check HARD_FRAME_POINTER_IS_ARG_POINTER.
3849 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3851 * defaults.h (FRAME_ADDR_RTX): New default definition.
3852 * builtins.c (expand_builtin_return_addr): Adjust.
3854 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3856 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
3857 * builtins.c (expand_builtin_return_addr): Adjust.
3859 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3861 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
3862 * builtins.c (expand_builtin_return_addr): Adjust.
3863 * doc/tm.texi: Likewise.
3864 * doc/tm.texi.in: Likewise.
3865 * except.c (expand_builtin_unwind_init): Likewise.
3867 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3869 * builtins.c (expand_builtin_return_addr): Adjust.
3870 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
3872 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
3874 * tree.c (type_with_interoperable_signedness): New.
3875 (gimple_canonical_types_compatible_p): Use it.
3876 * tree.h (type_with_interoperable_signedness): Declare
3878 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
3880 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
3881 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
3882 when OEP_ADDRESS_OF is se.
3884 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
3885 Sebastian Pop <s.pop@samsung.com>
3887 * graphite-dependences.c (scop_get_dependences): Add dump of the
3888 data dependence graph.
3889 * graphite-poly.c (print_isl_union_map): New.
3890 (debug_isl_union_map): New.
3891 * graphite-poly.h (print_isl_union_map): Declare.
3892 (debug_isl_union_map): Declare.
3894 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
3895 Sebastian Pop <s.pop@samsung.com>
3897 * graphite-poly.c (print_iteration_domain): Remove verbosity.
3898 Remove OpenScop formatting.
3899 (print_iteration_domains): Same.
3900 (debug_iteration_domain): Same.
3901 (debug_iteration_domains): Same.
3904 (dump_gbb_cases): Same.
3905 (dump_gbb_conditions): Same.
3908 (print_pbb_body): Same.
3910 (print_scop_params): Same.
3911 (print_scop_context): Same.
3913 (debug_pbb_domain): Same.
3915 (debug_scop_context): Same.
3917 (debug_scop_params): Same.
3918 * graphite-poly.h: Same.
3919 * graphite.c (graphite_transform_loops): Same.
3921 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3923 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
3924 call that isn't needed.
3926 2015-10-09 Jeff Law <law@redhat.com>
3928 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
3929 rather than moving each name to the freelist individually.
3931 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
3933 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
3934 * frame-header-opt.c: New file.
3935 * config/mips/mips-proto.h (mips_register_frame_header_opt):
3937 * config/mips/mips.c (mips_compute_frame_info): Check
3938 optimize_call_stack flag.
3939 (mips_option_override): Register new frame_header_opt pass.
3940 (mips_frame_info, mips_int_mask, mips_shadow_set,
3941 machine_function): Move these types to...
3942 * config/mips/mips.h: here.
3943 (machine_function): Add does_not_use_frame_header and
3944 optimize_call_stack fields.
3945 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
3946 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
3948 * config/mips/mips.opt (mframe-header-opt): Add new option.
3950 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
3952 * config/i386/i386.c
3953 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
3954 ROUND_DOWN where applicable.
3956 2015-10-09 Jeff Law <law@redhat.com>
3958 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
3961 2015-10-09 Renlin Li <renlin.li@arm.com>
3963 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
3964 operands[0] and operands[2].
3965 (neon_vtrn<mode>_insn): Likewise.
3966 (neon_vzip<mode>_insn): Likewise.
3968 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
3970 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
3971 ((X & C2) << C1): Expand to...
3972 (X {&,^,|} C2 << C1): ...This.
3973 ((X & C2) >> C1): Expand to...
3974 (X {&,^,|} C2 >> C1): ...This.
3976 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
3979 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
3980 Adjust embedded rounding/SAE specifier position.
3981 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
3982 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
3983 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
3984 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
3985 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
3987 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
3989 2015-10-09 Martin Jambor <mjambor@suse.cz>
3991 tree-optimization/67794
3992 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
3993 between types of state,ents but accept original definitions as a
3995 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
3996 iterate over definitions.
3998 2015-10-09 James Norris <jnorris@codesourcery.com>
4000 * config/rs6000/rs6000.c (rs6000_offload_options): New.
4001 (TARGET_OFFLOAD_OPTIONS): New.
4003 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
4006 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
4009 * function.c (expand_function_end): Move return value
4010 promotion past the handling of PARALLELs and CONCATs.
4012 PR rtl-optimization/67828
4013 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
4014 (tree_may_unswitch_on): Don't unswitch on expressions
4015 involving undefined values.
4017 2015-10-09 Richard Biener <rguenther@suse.de>
4019 * genmatch.c (print_operand): Fix formatting.
4020 (dt_node::append_simplify): Warn for multiple simplifiers
4021 that match the same pattern.
4022 * match.pd (log (exp @0)): Remove duplicates.
4024 2015-10-09 Richard Biener <rguenth@suse.de>
4027 * gimple-fold.c (optabs-query.h): Include
4028 (gimple_fold_builtin_memory_op): Allow unaligned stores
4029 when movmisalign_optabs are available.
4031 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4034 * config/arm/arm.md (movmisalign<mode>): New.
4035 * config/arm/iterators.md (HSI): New.
4037 2015-10-09 Richard Biener <rguenther@suse.de>
4039 PR tree-optimization/67891
4040 * gimple-match.h (gimple_simplified_result_is_gimple_val):
4042 (gimple_resimplify1): Declare.
4043 (gimple_resimplify2): Likewise.
4044 (gimple_resimplify3): Likewise.
4045 * gimple-match-head.c (gimple_resimplify1): Export.
4046 (gimple_resimplify2): Likewise.
4047 (gimple_resimplify3): Likewise.
4048 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
4049 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4050 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
4051 to avoid creating stmts without VN info.
4053 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
4055 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
4058 2015-10-08 Jeff Law <law@redhat.com>
4060 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
4061 and release_ssa_name in two places.
4062 (gimple_stringop_fixed_value): Similarly.
4064 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
4067 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
4068 unlink_stmt_vdef and release_ssa_name_fn.
4070 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
4073 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
4075 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
4076 SSE register save area to 16 bytes only if the incoming stack
4077 boundary is no less than 16 bytes.
4079 2015-10-08 Jeff Law <law@redhat.com>
4081 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
4082 release_ssa_name. Fix typo in comment.
4084 2015-10-08 Nathan Sidwell <nathan@acm.org>
4086 * config/nvptx/nvptx.h (struct machine_function): Add comment.
4087 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
4088 may return pointer as well as in memory.
4089 (nvptx_output_return): Likewise.
4091 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4093 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
4094 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4095 * match.pd: Add rules previously handled by fold_builtin_sqrt
4096 and fold_builtin_cbrt.
4098 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4100 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
4101 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
4102 * fold-const.h (tree_unary_nonnegative_warnv_p)
4103 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4104 (tree_expr_nonnegative_warnv_p): Add depth parameters.
4105 * fold-const.c: Include gimple-fold.h and params.h.
4106 (tree_ssa_name_nonnegative_warnv_p): New function.
4107 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
4108 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4109 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
4110 Add a depth parameter and increment it for recursive calls to
4111 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
4112 to handle SSA names.
4113 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
4114 (gimple_stmt_nonnegative_warnv_p): Declare.
4115 * tree-vrp.c (remove_range_assertions): Remove assert that condition
4116 cannot be proven false.
4117 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
4118 (gimple_stmt_nonnegative_warnv_p): Move to...
4119 * gimple-fold.c: ...here. Add depth parameters and pass them
4120 down to the tree routines. Accept statements that aren't
4121 assignments or calls but just return false for them.
4122 (gimple_val_nonnegative_real_p): Delete.
4123 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
4124 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
4125 Check HONOR_NANs first.
4127 2015-10-08 Martin Jambor <mjambor@suse.cz>
4129 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
4132 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4134 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
4135 in the tail of outer-loop.
4137 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
4139 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
4142 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4144 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
4145 "cfghooks.h", add prototypes for introduced new functions.
4146 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
4147 checks on ability of loop unswitching to tree_unswitch_single_loop;
4148 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
4149 on innermost loop check.
4150 (tree_unswitch_single_loop): Add all required checks on ability of
4151 loop unswitching under zero recursive level guard.
4152 (tree_unswitch_outer_loop): New function.
4153 (find_loop_guard): Likewise.
4154 (empty_bb_without_guard_p): Likewise.
4155 (used_outside_loop_p): Likewise.
4156 (get_vop_from_header): Likewise.
4157 (hoist_guard): Likewise.
4158 (check_exit_phi): Likewise.
4160 2015-10-08 Marek Polacek <polacek@redhat.com>
4162 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
4165 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4168 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
4169 create_tmp_var_raw instead of create_tmp_var.
4171 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
4173 * expr.c (store_expr_with_bounds): Handle aggregate moves from
4175 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
4176 to define gimple type system; compare aggregates only by size.
4178 2015-10-07 Jeff Law <law@redhat.com>
4180 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
4181 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
4182 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
4185 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4186 Sebastian Pop <s.pop@samsung.com>
4188 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
4189 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
4190 (generate_isl_schedule): Same.
4191 * graphite-optimize-isl.c (scop_get_domains): Same.
4192 (apply_schedule_map_to_scop): Same.
4193 * graphite-poly.c (print_iteration_domains): Same.
4194 (remove_gbbs_in_scop): Same.
4198 * graphite-poly.h (struct scop): Rename bbs to pbbs.
4200 * graphite-scop-detection.c (compare_bb_depths): Remove.
4201 (graphite_sort_dominated_info): Remove.
4202 (try_generate_gimple_bb): Move out of scop_detection.
4203 (all_non_dominated_preds_marked_p): Remove.
4204 (build_scop_bbs_1): Remove.
4205 (build_scop_bbs): Remove.
4206 (nb_pbbs_in_loops): Do not use SCOP_BBS.
4207 (find_scop_parameters): Same.
4208 (sese_dom_walker): Rename gather_bbs.
4209 (before_dom_children): Call try_generate_gimple_bb and collect gbb
4211 (build_scops): Call gather_bbs.
4212 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
4213 (add_conditions_to_constraints): Same.
4214 (build_scop_iteration_domain): Same.
4215 (build_scop_drs): Same.
4216 (new_pbb_from_pbb): Same.
4217 * sese.c (new_sese_info): Create bbs.
4218 * sese.h (struct sese_info_t): Add bbs.
4220 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
4222 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4223 encoding in 64-bit mode.
4225 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
4228 * config/i386/i386.c (ix86_option_override_internal): Always use
4229 8-byte minimum stack boundary in 64-bit mode.
4230 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
4231 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
4232 Add a REG_CFA_EXPRESSION note if needed.
4233 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
4234 (ix86_handle_force_align_arg_pointer_attribute): New.
4235 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
4236 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
4237 with ix86_handle_force_align_arg_pointer_attribute.
4238 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
4240 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4241 Sebastian Pop <s.pop@samsung.com>
4243 * graphite-scop-detection.c (parameter_index_in_region): Remove
4244 use of SESE_ADD_PARAMS.
4245 (find_scop_parameters): Same.
4246 * sese.c (new_sese_info): Same.
4247 * sese.h (struct sese_info_t): Remove add_params.
4248 (SESE_ADD_PARAMS): Remove.
4250 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4251 Sebastian Pop <s.pop@samsung.com>
4253 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
4256 (copy_internal_parameters): Same.
4257 (translate_isl_ast_to_gimple): Use an sese_l.
4258 (build_iv_mapping): Same.
4259 * graphite-poly.c (new_sese): Rename new_sese_info.
4260 (free_sese): Rename free_sese_info.
4261 * graphite-poly.h (struct scop): Use an sese_info_p.
4262 (scop_set_region): Same.
4263 * graphite-scop-detection.c (struct sese_l): Moved...
4264 (get_entry_bb): Moved...
4265 (get_exit_bb): Moved...
4266 (parameter_index_in_region_1): Use an sese_info_p.
4267 (parameter_index_in_region): Same.
4268 (scan_tree_for_params): Same.
4269 (find_params_in_bb): Same.
4270 (sese_dom_walker): Use an sese_l.
4271 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
4272 (reduction_phi_p): Same.
4273 (parameter_index_in_region_1): Use an sese_info_p.
4274 (propagate_expr_outside_region): Use an sese_l.
4275 * graphite.c: Replace uses of SCOP_REGION.
4276 * sese.c (sese_record_loop): Use an sese_info_p.
4277 (build_sese_loop_nests): Same.
4278 (sese_build_liveouts_use): Same.
4279 (sese_build_liveouts_bb): Same.
4280 (sese_build_liveouts_bb): Same.
4281 (sese_bad_liveouts_use): Same.
4282 (sese_reset_debug_liveouts_bb): Same.
4283 (sese_build_liveouts): Same.
4284 (new_sese): Renamed new_sese_info.
4285 (free_sese): Renamed free_sese_info.
4286 (set_rename): Use an sese_info_p.
4287 (graphite_copy_stmts_from_block): Same.
4288 (copy_bb_and_scalar_dependences): Same.
4289 (outermost_loop_in_sese_1): Use an sese_l.
4290 (outermost_loop_in_sese): Same.
4291 (if_region_set_false_region): Use an sese_info_p.
4292 (move_sese_in_condition): Same.
4293 (scalar_evolution_in_region): Use an sese_l.
4294 * sese.h (struct sese_l): ... here.
4295 (SESE_ENTRY): Remove.
4296 (SESE_ENTRY_BB): Remove.
4297 (SESE_EXIT): Remove.
4298 (SESE_EXIT_BB): Remove.
4299 (sese_contains_loop): Use an sese_info_p.
4300 (sese_nb_params): Same.
4301 (bb_in_sese_p): Use an sese_l.
4302 (stmt_in_sese_p): Same.
4303 (defined_in_sese_p): Same.
4304 (loop_in_sese_p): Same.
4305 (sese_loop_depth): Same.
4306 (struct ifsese_s): Use an sese_info_p.
4307 (gbb_loop_at_index): Use an sese_l.
4308 (nb_common_loops): Same.
4309 (scev_analyzable_p): Same.
4311 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4313 * config/i386/i386.c (ix86_conditional_register_usage): Use
4314 CALL_USED_REGISTERS_MASK.
4315 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
4317 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4320 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
4321 * configure: Regenerated.
4323 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4326 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
4327 (ix86_set_current_function): This.
4328 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
4330 2015-10-07 Richard Biener <rguenther@suse.de>
4332 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
4333 (vinfo_for_stmt): Adjust.
4334 (set_vinfo_for_stmt): Likewise.
4335 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
4336 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
4337 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
4339 (vect_analyze_loop_1): Remove.
4340 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
4341 inner loop when vectorizing an outer loop by splitting out from ...
4342 (vect_analyze_loop_form): ... here.
4344 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4347 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
4348 Use create_tmp_var_raw instead of create_tmp_var.
4350 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
4352 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
4353 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
4354 * real.c (CACHED_FRACTION): New helper macro.
4355 (dconst_third_ptr): Use it.
4356 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4357 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4359 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4361 2015-10-06 Jeff Law <law@redhat.com>
4363 PR tree-optimization/67816
4364 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4365 from remove_jump_threads_starting_at. Accept an edge rather than
4367 * tree-ssa-threadupdate.c (removed_edges): New hash table.
4368 (remove_jump_threads_including): Note edges that get removed from
4369 the CFG for later pruning of jump threading paths including them.
4370 (thread_through_all_blocks): Remove paths which include edges that
4372 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4373 on each outgoing edges when optimizing away a control statement.
4375 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4377 * reorg.c (emit_delay_sequence): Store list of delay slot insns
4378 in a vector instead of rtx_insn_list.
4379 (add_to_delay_list): Likewise.
4380 (delete_from_delay_slot): Likewise.
4381 (optimize_skip): Likewise.
4382 (redirect_with_delay_list_safe_p): Likewise.
4383 (check_annul_list_true_false): Likewise.
4384 (steal_delay_list_from_target): Likewise.
4385 (steal_delay_list_from_fallthrough): Likewise.
4386 (redundant_insn): Likewise.
4387 (fill_simple_delay_slots): Likewise.
4388 (fill_slots_from_thread): Likewise.
4389 (fill_eager_delay_slots): Likewise.
4390 (relax_delay_slots): Likewise.
4392 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
4394 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4395 For -mgpopt=local, also exclude unintialized common symbols.
4396 * doc/invoke.texi (Nios II Options): Document the change.
4398 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4400 * config/aarch64/iterators.md (vwcore): Add missing cases for
4403 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4404 Sebastian Pop <s.pop@samsung.com>
4406 * graphite-poly.c (new_scop): Initialize drs.
4407 * graphite-poly.h (struct dr_info): New.
4408 (struct scop): Add drs.
4409 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4410 (pdr_add_memory_accesses): Same.
4411 (build_poly_dr): Same.
4412 (build_alias_set): Same.
4413 (build_scop_drs): Same.
4414 (build_pbb_drs): Remove.
4415 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4416 * tree-data-ref.h (data_reference): Remove alias_set.
4418 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4419 Sebastian Pop <s.pop@samsung.com>
4421 * graphite-poly.c (free_data_refs_aux): Remove.
4422 (free_gimple_poly_bb): Do not call free_data_refs_aux.
4423 * graphite-poly.h (struct base_alias_pair): Remove.
4424 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4425 base_alias_pair and dr->aux.
4426 (build_alias_set): Same.
4427 * tree-data-ref.c (create_data_ref): Initialize alias_set.
4428 * tree-data-ref.h (data_reference): Add alias_set.
4430 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4431 Sebastian Pop <s.pop@samsung.com>
4433 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4434 Do not set PDR_BASE_OBJECT_SET.
4435 * graphite-poly.h (poly_dr): Same.
4436 (PDR_BASE_OBJECT_SET): Remove.
4437 (new_poly_dr): Update decl.
4438 * graphite-sese-to-poly.c (build_poly_dr): Update call to
4440 (write_alias_graph_to_ascii_dimacs): Remove.
4441 (write_alias_graph_to_ascii_dot): Remove.
4442 (write_alias_graph_to_ascii_ecc): Remove.
4443 (dr_same_base_object_p): Remove.
4444 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
4446 (build_base_obj_set_for_drs): Remove.
4447 (dump_alias_graphs): Remove.
4448 (build_scop_drs): Remove dead code.
4450 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4451 Peter Bergner <bergner@vnet.ibm.com>
4454 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4455 allow registers, but provide insns for the combiner to create for
4456 loads from memory. Separate VSX code from non-VSX code. For
4457 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4458 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4459 so that registers come before memory operations. Drop support from
4460 converting DFmode to TFmode, if the DFmode value is in a GPR
4462 (extenddftf2_fprs): Likewise.
4463 (extenddftf2_internal): Likewise.
4464 (extenddftf2_vsx): Likewise.
4465 (extendsftf2): In the expander, only allow registers, but provide
4466 insns for the combiner to create for stores and loads.
4468 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4470 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4471 from the decl parameter.
4473 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
4476 * gimple-fold.c (gimple_fold_builtin): Add break after
4477 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4479 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
4481 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4482 to scop->isl_context.
4484 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4486 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4487 (output_probe_stack_range): Rotate the loop and simplify.
4488 (thumb1_expand_prologue): Tweak sorry message.
4489 * config/arm/arm.md (probe_stack): Use bare string.
4491 2015-10-06 Nick Clifton <nickc@redhat.com>
4493 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4495 2015-10-06 Nick Clifton <nickc@redhat.com>
4497 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4498 (ATTR_PERSIST): New constant.
4499 (msp430_data_attr): New function - verifies an attribute that only
4500 applies to variables.
4501 (msp430_attributes): Add noinit and persistent attributes.
4502 (noinit_section): New variable.
4503 (presis_section): New variable.
4504 (TARGET_ASM_INIT_SECTIONS): Define.
4505 (msp430_init_sections): New function - initialises the noinit and
4506 persist section variables.
4507 (msp430_select_section): Add support for noinit and persist
4509 (msp430_section_type_flags): Likewise.
4510 * doc/extend.texi: Document the reent, critical, wakeup, noinit
4511 and persistent attributes.
4513 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4514 Sebastian Pop <s.pop@samsung.com>
4516 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4517 (no_violations): Remove.
4518 (subtract_commutative_associative_deps): Remove.
4519 (compute_deps): Do not call subtract_commutative_associative_deps.
4520 (transform_is_safe): Remove.
4521 (graphite_legal_transform): Remove.
4522 * graphite-poly.h (graphite_legal_transform): Remove.
4524 2015-10-05 Aditya Kumar <hiraditya@msn.com>
4526 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4527 which are in this region are passed so gcc_assert and remove redundant
4529 * sese.c (sese_build_liveouts): Pass only those bbs which are not
4531 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4532 gcc_assert on that and remove unnecessary computation.
4533 (sese_build_liveouts_use): Same.
4535 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4537 * graphite-dependences.c (scop_get_reads): Renamed scop->context
4538 to scop->param_context.
4539 (scop_get_must_writes): Same.
4540 (scop_get_may_writes): Same.
4541 (scop_get_original_schedule): Same.
4542 (scop_get_transformed_schedule): Same.
4543 (subtract_commutative_associative_deps): Same.
4544 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4545 (generate_isl_context): Same.
4546 (generate_isl_schedule): Same.
4547 (scop_to_isl_ast): Same.
4548 (graphite_regenerate_ast_isl): Same.
4549 * graphite-optimize-isl.c (scop_get_domains): Same.
4550 (optimize_isl): Renamed scop->context to scop->param_context.
4551 * graphite-poly.c (new_poly_bb): Change the type of argument to
4553 (new_scop): Renamed scop->context to scop->param_context.
4555 (print_scop_context): Same.
4556 * graphite-poly.h (new_poly_dr): Change the type of argument from
4557 void* to data_reference_p.
4558 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4559 (new_poly_bb): Change the type of argument from void* to
4561 (pbb_set_black_box): Same.
4562 (struct scop): Rename context to param_context, ctx to isl_context.
4563 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4564 Move declarations closer to assignment.
4565 (find_params_in_bb): Same.
4566 (find_scop_parameters): Same.
4567 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4568 Global to be used for statement IDs.
4569 (isl_id_for_pbb): Use ssa_name_version_typesize.
4570 (simple_copy_phi_p): Move declarations closer to assignment.
4571 (build_pbb_scattering_polyhedrons): Same.
4572 (build_scop_scattering): Same.
4573 (isl_id_for_ssa_name): Same.
4574 (extract_affine_name): Same.
4575 (extract_affine_int): Same.
4576 (extract_affine): Same.
4577 (set_scop_parameter_dim): Use renamed member.
4578 (build_loop_iteration_domains): Same.
4579 (add_param_constraints): Same.
4580 (build_scop_iteration_domain): Same.
4581 (pdr_add_data_dimensions): Same.
4582 (build_poly_dr): Same.
4583 (build_scop_drs): Move declarations closer to assignment.
4584 (analyze_drs_in_stmts): Same.
4585 (insert_out_of_ssa_copy): Same.
4586 (insert_out_of_ssa_copy_on_edge): Same.
4587 (propagate_expr_outside_region): Same.
4588 (rewrite_phi_out_of_ssa): Same.
4589 (rewrite_degenerate_phi): Same.
4590 (rewrite_reductions_out_of_ssa): Same.
4591 (rewrite_cross_bb_scalar_dependence): Same.
4592 (handle_scalar_deps_crossing_scop_limits): Same.
4593 (rewrite_cross_bb_scalar_deps): Same.
4594 * graphite.c (graphite_transform_loops): Use renamed member.
4596 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
4599 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4600 create_tmp_var_raw instead of create_tmp_var.
4602 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4605 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
4606 Use create_tmp_var_raw instead of create_tmp_var.
4608 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
4611 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
4612 split for upper-bank registers when target does not support
4614 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
4615 split when target does not support AVX512VL.
4617 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
4620 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
4621 Adjust to use create_tmp_var_raw instead of create_tmp_var.
4623 2015-10-06 Nick Clifton <nickc@redhat.com>
4625 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
4628 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4630 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
4631 (case ${target}): Add znver1.
4632 * config/i386/cpuid.h(bit_CLZERO): Define.
4633 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4634 -march=native recognize znver1 processors.
4635 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4636 znver1, clzero def_and_undef.
4637 * config/i386/i386.c (struct processor_costs znver1_cost): New.
4638 (m_znver1): New definition.
4639 (m_AMD_MULTIPLE): Includes m_znver1.
4640 (processor_target_table): Add znver1 entry.
4641 (ix86_target_string) : Add clzero entry.
4642 (static const char *const cpu_names): Add znver1 entry.
4643 (ix86_option_override_internal): Add znver1 instruction sets.
4644 (PTA_CLZERO) : New definition.
4645 (ix86_option_override_internal): Handle new clzerooption.
4646 (ix86_issue_rate): Add znver1.
4647 (ix86_adjust_cost): Add znver1.
4648 (ia32_multipass_dfa_lookahead): Add znver1.
4649 (has_dispatch): Add znver1.
4650 * config/i386/i386.h (TARGET_znver1): New definition.
4651 (TARGET_CLZERO): Define.
4652 (TARGET_CLZERO_P): Define.
4653 (struct ix86_size_cost): Add TARGET_ZNVER1.
4654 (enum processor_type): Add PROCESSOR_znver1.
4655 * config/i386/i386.md (define_attr "cpu"): Add znver1.
4656 (set_attr znver1_decode): New definitions for znver1.
4657 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
4659 * config/i386/mmx.md (set_attr znver1_decode): New definitions
4661 * config/i386/sse.md (set_attr znver1_decode): Likewise.
4662 * config/i386/x86-tune.def: Add znver1 tunings.
4663 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
4664 * gcc/doc/invoke.texi: Add details about znver1
4666 2015-10-06 Richard Biener <rguenther@suse.de>
4668 PR tree-optimization/67859
4669 * tree-ssa-pre.c (create_expression_by_pieces): Properly
4670 discard not inserted stmts.
4672 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
4674 * doc/extend.texi (Template Instantiation): Reorder options and
4675 de-emphasize -frepo.
4676 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
4677 example instead of -frepo.
4679 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4682 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
4683 use create_tmp_var_raw rather than create_tmp_var.
4685 2015-10-06 Richard Biener <rguenther@suse.de>
4687 * tree-vectorizer.h (vec_info): New base class for...
4688 (_loop_vec_info): ... this and ...
4689 (_bb_vec_info): ... this.
4690 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
4691 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4692 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4693 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
4694 vect_destroy_datarefs): Adjust interface to take a vec_info *
4695 rather than both a loop_vec_info and a bb_vec_info argument.
4696 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
4697 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
4698 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
4699 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
4701 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
4702 (destroy_loop_vec_info, vect_analyze_loop_2,
4703 vect_is_simple_reduction_1, get_initial_def_for_induction,
4704 vect_create_epilog_for_reduction, vectorizable_reduction,
4705 vectorizable_live_operation, vect_transform_loop): Adjust.
4706 * tree-vect-patterns.c (type_conversion_p,
4707 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
4708 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
4709 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
4710 check_bool_pattern, vect_recog_bool_pattern,
4711 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
4712 * tree-vect-slp.c (vect_get_and_check_slp_defs,
4713 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
4714 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
4715 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
4716 (new_bb_vec_info): Initialize base classs.
4717 * tree-vect-stmts.c (record_stmt_cost, process_use,
4718 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
4719 vectorizable_mask_load_store, vectorizable_call,
4720 vectorizable_simd_clone_call, vectorizable_conversion,
4721 vectorizable_assignment, vectorizable_shift,
4722 vectorizable_operation, vectorizable_store,
4723 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
4724 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
4725 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
4727 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
4730 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
4731 create_tmp_var_raw rather than create_tmp_var.
4733 2015-10-05 Marek Polacek <polacek@redhat.com>
4735 * tree-ssa-loop-im.c
4736 (move_computations_dom_walker::before_dom_children): Don't set
4737 SSA_NAME_ANTI_RANGE_P.
4738 * tree-ssa-phiopt.c (value_replacement): Likewise.
4740 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4741 Sebastian Pop <s.pop@samsung.com>
4743 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
4745 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4746 Sebastian Pop <s.pop@samsung.com>
4748 * graphite-poly.c (new_gimple_poly_bb): ... here.
4749 (free_data_refs_aux): ... here.
4750 (free_gimple_poly_bb): ... here.
4751 (remove_gbbs_in_scop): ... here.
4752 (new_scop): Call new_sese.
4753 (free_scop): Call remove_gbbs_in_scop and free_sese.
4754 * graphite-poly.h (base_alias_pair): ... here.
4755 (new_gimple_poly_bb): Declare.
4756 (free_gimple_poly_bb): Declare.
4757 * graphite-scop-detection.c (parameter_index_in_region_1):
4758 (parameter_index_in_region): ... here.
4759 (scan_tree_for_params): ... here.
4760 (find_params_in_bb): ... here.
4761 (find_scop_parameters): ... here.
4762 (build_scops): Call find_scop_parameters.
4763 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
4764 (free_scops): Move...
4765 (single_pred_cond_non_loop_exit): Move...
4766 (sese_dom_walker::before_dom_children): Move...
4767 (sese_dom_walker::after_dom_children): Move...
4768 (build_poly_scop): Move...
4769 * graphite-sese-to-poly.h (base_alias_pair): Move...
4770 * graphite.c (free_scops): ... here.
4772 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4773 Sebastian Pop <s.pop@samsung.com>
4775 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
4776 (trivially_empty_bb_p): Move...
4777 (same_close_phi_node): Move...
4778 (new_gimple_poly_bb): Move...
4779 (compare_bb_depths): Move...
4780 (graphite_sort_dominated_info): Move...
4781 (remove_duplicate_close_phi): Move...
4782 (make_close_phi_nodes_unique): Move...
4783 (canonicalize_loop_closed_ssa): Move...
4784 (canonicalize_loop_closed_ssa_form): Move...
4785 (loop_ivs_can_be_represented): Move...
4786 (single_pred_cond_non_loop_exit): Move...
4787 (graphite_can_represent_init): Move...
4788 (graphite_can_represent_scev): Move...
4789 (stmt_has_simple_data_refs_p): Move...
4790 (stmt_has_side_effects): Move...
4791 (graphite_can_represent_stmt): Move...
4792 (scop_detection): ... here.
4793 (sese_dom_walker): ... and here.
4794 (build_scops): Call all moved functions.
4795 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
4796 (all_non_dominated_preds_marked_p): Move...
4797 (build_scop_bbs_1): Move...
4798 (build_scop_bbs): Move...
4799 (set_scop_parameter_dim): Move...
4800 (nb_pbbs_in_loops): Move...
4801 (build_poly_scop): Do not call all the moved functions.
4803 2015-10-05 Martin Jambor <mjambor@suse.cz>
4804 Jan Hubicka <hubicka@ucw.cz>
4806 * ipa-cp.c (ipcp_alignment_lattice): New type.
4807 (ipcp_param_lattices): Use the above to represent alignment.
4808 (ipcp_alignment_lattice::print): New function.
4809 (print_all_lattices): Use it to print alignment information.
4810 (ipcp_alignment_lattice::top_p): New function.
4811 (ipcp_alignment_lattice::bottom_p): Likewise.
4812 (ipcp_alignment_lattice::set_to_bottom): Likewise.
4813 (ipcp_alignment_lattice::meet_with_1): Likewise.
4814 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
4815 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
4816 (initialize_node_lattices): Likewise.
4817 (propagate_alignment_accross_jump_function): Work with the new class
4818 for alignment lattices.
4819 (propagate_constants_accross_call): Pass only the alignment lattice to
4820 propagate_alignment_accross_jump_function.
4821 (ipcp_store_alignment_results): Work with the new class for alignment
4824 2015-10-05 Marek Polacek <polacek@redhat.com>
4826 PR tree-optimization/67821
4827 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
4829 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
4832 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
4834 (mkoffload_cleanup): ... this. Adjust all users.
4835 (maybe_unlink): Look at save_temps and verbose flags instead of
4837 (main): Parse "-save-temps" flag.
4838 (generate_target_descr_file, generate_target_offloadend_file)
4839 (generate_host_descr_file, prepare_target_image): Pass it on.
4840 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
4841 (mkoffload_cleanup): New function.
4842 (maybe_unlink): Look at save_temps and verbose flags instead of
4844 (main): Instead of calling utils_cleanup, register atexit handler
4845 for mkoffload_cleanup.
4846 (main): Parse "-save-temps" flag.
4847 (compile_native, main): Pass it on.
4848 * lto-wrapper.c (compile_offload_image): Likewise.
4850 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4852 * gimple.h (gimple_op_ptr): Require a non const gimple *.
4853 (gimple_assign_lhs_ptr): Likewise.
4854 (gimple_assign_rhs1_ptr): Likewise.
4855 (gimple_assign_rhs2_ptr): Likewise.
4856 (gimple_assign_rhs3_ptr): Likewise.
4857 (gimple_call_lhs_ptr): Likewise.
4858 (gimple_call_fn_ptr): Likewise.
4859 (gimple_call_chain_ptr): Likewise.
4860 (gimple_call_arg_ptr): Likewise.
4861 (gimple_cond_lhs_ptr): Likewise.
4862 (gimple_cond_rhs_ptr): Likewise.
4863 (gimple_switch_index_ptr): Likewise.
4864 (gimple_return_retval_ptr): Likewise.
4866 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4868 * gimple.h (gimple_asm_input_op_ptr): Remove.
4869 (gimple_asm_output_op_ptr): Likewise.
4871 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4873 * gimple.h (gimple_location_ptr): Remove.
4874 * tree-vrp.c (check_all_array_refs): Adjust.
4876 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4878 * tree-ssa-operands.c (build_uses): store tree * instead of
4880 (finalize_ssa_uses): Adjust.
4881 (append_use): Likewise.
4882 (verify_ssa_operands): Likewise.
4884 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4886 * real.h (build_real_truncate): Declare.
4887 * tree.c (build_real_truncate): New function.
4888 (strip_float_extensions): Use it.
4889 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
4890 (fold_builtin_hypot, fold_builtin_pow): Likewise.
4891 * match.pd: Likewise.
4893 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
4894 Jiong Wang <jiong.wang@arm.com>
4896 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
4898 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4900 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
4901 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
4902 (aarch64_print_operand, aarch64_float_const_representable_p)
4903 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
4904 instead of REAL_VALUE_FROM_CONST_DOUBLE.
4905 * config/arc/arc.c (arc_print_operand): Likewise.
4906 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
4907 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
4908 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
4910 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
4911 (consttable_16): Likewise.
4912 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
4913 * config/avr/avr.c (avr_print_operand): Likewise.
4914 * config/bfin/bfin.md: Likewise (in a define_split).
4915 * config/c6x/c6x.md: Likewise (in a define_split).
4916 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
4917 (cr16_print_operand): Likewise.
4918 * config/cris/cris.c (cris_print_operand): Likewise.
4919 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
4920 * config/fr30/fr30.c (fr30_print_operand): Likewise.
4921 (fr30_const_double_is_zero): Likewise.
4922 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
4923 * config/frv/frv.md: Likewise (in a define_split).
4924 * config/frv/predicates.md (int_2word_operand): Likewise.
4925 * config/h8300/h8300.c (h8300_print_operand): Likewise.
4926 * config/i386/i386.c (standard_80387_constant_p): Likewise.
4927 (ix86_print_operand, ix86_split_to_parts): Likewise.
4928 * config/i386/i386.md: Likewise (in a define_split).
4929 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
4930 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
4931 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
4932 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
4933 (print_operand): Likewise.
4934 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
4935 * config/mep/mep.md: Likewise (in define_split).
4936 * config/microblaze/microblaze.c (microblaze_const_double_ok)
4937 (print_operand): Likewise.
4938 * config/mips/mips.md (consttable_float): Likewise.
4939 * config/mmix/mmix.c (mmix_intval): Likewise.
4940 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
4941 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
4942 * config/pa/pa.c (pa_singlemove_string): Likewise.
4943 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
4944 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
4945 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
4946 (output_toc): Likewise.
4947 * config/rs6000/rs6000.md: Likewise (in define_splits).
4948 * config/rx/rx.c (rx_print_operand): Likewise.
4949 * config/s390/s390.c (s390_output_pool_entry): Likewise.
4950 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
4951 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
4952 (and also in define_splits).
4953 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
4954 (fp_high_losum_p): Likewise.
4955 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
4956 (*movsf_high): Likewise.
4957 * config/spu/spu.c (const_double_to_hwint): Likewise.
4958 * config/v850/v850.c (const_double_split): Likewise.
4959 * config/vax/vax.c (vax_float_literal): Likewise.
4960 * config/visium/visium.c (visium_expand_copysign): Likewise.
4961 * config/visium/visium.md: Likewise (in define_split).
4962 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
4963 * config/xtensa/xtensa.c (print_operand): Likewise.
4964 (xtensa_output_literal): Likewise.
4965 * cprop.c (implicit_set_cond_p): Likewise.
4966 * dwarf2out.c (insert_float): Likewise.
4967 * expmed.c (expand_mult, make_tree): Likewise.
4968 * expr.c (compress_float_constant): Likewise.
4969 * rtlanal.c (split_double): Likewise.
4970 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
4971 (simplify_const_unary_operation, simplify_binary_operation_1)
4972 (simplify_const_binary_operation): Likewise.
4973 (simplify_const_relational_operation): Likewise.
4974 * varasm.c (output_constant_pool_2): Likewise.
4976 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4978 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
4979 instead of CONST_DOUBLE_FROM_REAL_VALUE.
4980 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
4981 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
4982 instead of CONST_DOUBLE_FROM_REAL_VALUE.
4983 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
4984 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
4985 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
4986 (ix86_emit_swsqrtsf): Likewise.
4987 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
4988 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4989 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4990 * config/pa/pa.c (pa_expand_builtin): Likewise.
4991 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
4992 (rs6000_scale_v2df): Likewise.
4993 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
4994 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
4995 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
4996 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
4997 (vec_ctul): Likewise.
4998 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
4999 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
5000 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
5001 * cse.c (fold_rtx): Likewise.
5002 * emit-rtl.c (immed_double_const): Likewise (in comments).
5003 (init_emit_once): Likewise.
5004 * expr.c (compress_float_constant, expand_expr_real_1)
5005 (const_vector_from_tree): Likewise.
5006 * optabs.c (expand_float, expand_fix): Likewise.
5007 * reg-stack.c (reg_to_stack): Likewise.
5008 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5009 (simplify_const_unary_operation, simplify_binary_operation_1)
5010 (simplify_const_binary_operation, simplify_relational_operation)
5011 (simplify_immed_subreg): Likewise.
5013 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5015 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
5016 * doc/tm.texi: Regenerate.
5017 * real.h (REAL_ARITHMETIC): Delete.
5018 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
5019 (ix86_expand_round_sse4): Use real_arithmetic instead of
5021 * config/i386/sse.md (round<mode>2): Likewise.
5022 * rtl.h (rtx_to_tree_code): Likewise (in comment).
5023 * explow.c (rtx_to_tree_code): Likewise (in comment).
5024 * match.pd: Likewise.
5025 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5026 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5027 (expand_pow_as_sqrts): Likewise.
5028 * tree-pretty-print.c (dump_generic_node): Remove code that
5029 was conditional on REAL_ARITHMETIC being undefined.
5031 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5033 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
5034 * doc/tm.texi: Regenerate.
5035 * real.h (real_less): Declare.
5036 (REAL_VALUES_LESS): Delete.
5037 * real.c (real_less): New function.
5038 (real_compare): Use it.
5039 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
5040 of REAL_VALUES_LESS.
5041 * config/microblaze/microblaze.c (microblaze_const_double_ok):
5043 * fold-const.c (fold_convert_const_int_from_real): Likewise.
5044 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5045 (simplify_const_relational_operation): Likewise.
5046 * tree-call-cdce.c (check_pow): Likewise.
5047 (gen_conditions_for_pow_cst_base): Likewise.
5049 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5051 * real.h (REAL_VALUES_IDENTICAL): Delete.
5052 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
5053 instead of REAL_VALUES_IDENTICAL.
5054 * fold-const.c (operand_equal_p): Likewise.
5055 * ipa-icf.c (sem_variable::equals): Likewise.
5056 * tree-complex.c (some_nonzerop): Likewise.
5057 (expand_complex_multiplication): Likewise.
5058 * tree.c (simple_cst_equal): Likewise.
5059 * varasm.c (compare_constant): Likewise.
5061 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5063 * real.h (real_equal): Declare.
5064 (REAL_VALUES_EQUAL): Delete.
5065 * real.c (real_equal): New function.
5066 (real_compare): Use it.
5067 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
5068 * doc/tm.texi: Regenerate.
5069 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
5070 real_equal instead of REAL_VALUES_EQUAL.
5071 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
5072 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
5073 (fp_const_from_val): Likewise.
5074 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
5075 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
5076 (floating_exact_log2): Likewise.
5077 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5078 * config/vax/vax.c (vax_float_literal): Likewise.
5079 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5080 * cprop.c (implicit_set_cond_p): Likewise.
5081 * expmed.c (expand_mult): Likewise.
5082 * fold-const.c (const_binop): Likewise.
5083 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5084 (simplify_const_binary_operation): Likewise.
5085 (simplify_const_relational_operation): Likewise.
5086 * tree-call-cdce.c (check_pow): Likewise.
5087 (gen_conditions_for_pow_cst_base): Likewise.
5088 * tree-inline.c (estimate_num_insns): Likewise.
5089 * tree-ssa-dom.c (record_equality): Likewise.
5090 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5091 (gimple_expand_builtin_pow): Likewise.
5092 (pass_optimize_widening_mul::execute): Likewise.
5093 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5094 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
5095 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
5097 2015-10-05 Richard Biener <rguenther@suse.de>
5100 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
5101 consider loop header PHI defs as IVs.
5103 2015-10-05 Richard Biener <rguenther@suse.de>
5105 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
5107 (create_expression_by_pieces): ... here and build GIMPLE
5108 calls directly. Use gimple_build API and avoid force_gimple_operand.
5109 (insert_into_preds_of_block): Simplify.
5110 (do_regular_insertion): Add comment.
5112 2015-10-04 Jason Merrill <jason@redhat.com>
5114 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
5116 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
5118 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
5119 check for general register.
5120 (ix86_emit_save_regs): Ditto.
5121 (ix86_emit_save_regs_using_mov): Ditto.
5122 (ix86_emit_restore_regs_using_pop): Ditto.
5123 (ix86_emit_restore_regs_using_mov): Ditto.
5125 2015-10-03 Marek Polacek <polacek@redhat.com>
5127 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
5128 (insn-dfatab.o): Likewise.
5130 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
5132 * config.gcc (xtensa*-*-uclinux*): New configuration.
5133 * config/xtensa/uclinux.h: New file.
5134 * config/xtensa/uclinux.opt: New file.
5136 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
5138 * doc/cpp.texi (Standard Predefined Macros): Document value of
5139 __cplusplus for C++14.
5141 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
5143 * gcc.c (process_command): Use spec_machine rather than
5144 spec_host_machine to build tooldir_prefix2.
5146 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5147 Bernd Schmidt <bernds@codesourcery.com>
5149 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
5150 (Token, Stmt): Remove structs.
5151 (decls, vars, fns): Remove variables.
5152 (alloc_comment, append_stmt, is_keyword): Remove macros.
5153 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
5154 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
5155 (parse_init, parse_file): Remove functions.
5156 (read_file): Accept a pointer to a length and store into it.
5157 (process): Don't try to parse the input file, just write it out as
5158 a string, but looking for maps. Also write out the length.
5159 (main): Don't use "-S" to compile PTX code.
5161 2015-10-02 Jeff Law <law@redhat.com>
5163 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
5166 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5169 * config/nvptx/mkoffload.c (main): Scan the argument vector for
5170 -fopenmp, and skip generating an offloading image if specified.
5172 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
5174 * system.h (ROUND_UP): New macro definition.
5175 (ROUND_DOWN): Ditto.
5176 * ggc-page.c (ROUND_UP): Remove local macro definition.
5177 (PAGE_ALIGN): Implement using ROUND_UP macro.
5179 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
5180 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
5182 (ix86_compute_frame_layout): Ditto.
5183 (ix86_expand_prologue): Ditto.
5184 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
5185 to round down values.
5186 (expand_set_or_movmem_via_rep): Ditto.
5188 2015-10-02 Marek Polacek <polacek@redhat.com>
5190 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
5192 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
5194 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
5195 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
5196 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
5197 (free_gimple_bb): Renamed free_gimple_poly_bb.
5198 (try_generate_gimple_bb): Hoist loop invariant code.
5199 (analyze_drs_in_stmts): Same.
5200 (build_scop_drs): Call renamed functions.
5201 (new_pbb_from_pbb): Same.
5202 (scop_ivs_can_be_represented): Delete as functionality now moved to
5203 graphite-scop-detection.c
5204 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
5206 2015-10-02 Aditya Kumar <hiraditya@msn.com>
5208 * graphite-scop-detection.c (stmt_has_side_effects): New function
5209 outlined from stmt_simple_for_scop_p.
5210 (graphite_can_represent_stmt): Same.
5211 (stmt_simple_for_scop_p): Moved code out of this function for better
5214 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5216 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
5218 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
5220 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5222 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
5224 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
5226 PR rtl-optimization/67756
5227 * lra-constraints.c (match_reload): Add a new parameter. Use it
5228 for creating a pseudo with the same value.
5229 (curr_insn_transform): Pass a new argument to match_reload.
5231 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5233 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
5234 (expand_vec_perm_even_odd_1): Handle V64QImode.
5235 (ix86_expand_vec_perm_const_1): Try expansion with
5236 expand_vec_perm_even_odd_trunc as well.
5237 * config/i386/sse.md (VI124_AVX512F): Rename to ...
5238 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
5240 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
5241 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
5243 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
5244 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
5245 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
5246 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
5247 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
5248 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
5250 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5252 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
5253 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
5255 2015-10-02 Jason Merrill <jason@redhat.com>
5258 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
5259 (diagnose_tm_1_op): Also diagnose volatile accesses in
5260 transaction_safe function.
5262 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
5264 * system.h (malloc.h): Don't include obsolete header.
5266 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5268 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
5269 (TLS_SECTION_ASM_FLAG): Delete.
5271 2015-10-02 Marek Polacek <polacek@redhat.com>
5274 * doc/invoke.texi: Document -Wduplicated-cond.
5275 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
5276 (insn-dfatab.o): Likewise.
5277 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
5280 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
5282 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
5285 2015-10-02 Renlin Li <renlin.li@arm.com>
5287 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
5289 2015-10-02 Renlin Li <renlin.li@arm.com>
5292 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
5294 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5296 PR rtl-optimization/67786
5297 PR rtl-optimization/67787
5298 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
5299 it modifies a reg used in the condition calculation.
5301 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
5303 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
5304 alternatives for reads from memory and moves from general-purpose
5306 (*aarch64_combinez_be<mode>): Likewise.
5308 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
5311 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
5312 selectany within this function without need to keep attribute.
5313 (i386_pe_encode_section_info): Remove selectany-code.
5315 2015-10-02 Richard Biener <rguenther@suse.de>
5317 * tree-ssa-sccvn.c (has_VN_INFO): New function.
5318 (free_scc_vn): Use it.
5319 (visit_use): Remove dead code and refactor to use gassign
5320 and use less indentation.
5322 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5326 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
5327 (rs6000_cannot_copy_insn_p): New function.
5328 * config/rs6000/rs6000.md (cannot_copy): New attribute.
5329 (load_toc_v4_PIC_1_normal): Set cannot_copy.
5330 (load_toc_v4_PIC_1_476): Ditto.
5332 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5334 * graphite-scop-detection.c (struct sese_l): New conversion constructor
5335 so that this type can be pushed into a vec.
5336 (class scop_builder): use sese_l to collect scops.
5337 (get_scops): New getter function.
5338 (remove_intersecting_scops): Use sese_l instead of scops_p.
5342 (remove_subscops): Same.
5343 (build_scops): Add scops to vec<scops_p> once all the scops have been
5346 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5348 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5349 Renamed type from gimple_bb_p to gimple_poly_bb_p.
5350 (translate_isl_ast_node_user): Same.
5351 * graphite-poly.c (new_poly_bb): Same.
5352 * graphite-poly.h (gbb_from_bb): Same.
5354 * graphite-sese-to-poly.c (new_gimple_bb):
5355 gimple_bb_p -> gimple_poly_bb_p
5356 (build_scop_scattering): Same.
5357 (find_params_in_bb): Same.
5358 (add_conditions_to_domain): Same.
5359 (sese_dom_walker::before_dom_children): Same.
5360 (analyze_drs_in_stmts): Same.
5361 (new_pbb_from_pbb): Same.
5362 (free_data_refs_aux): New pointer to type base_alias_pair.
5363 * graphite-sese-to-poly.h: Same.
5364 * sese.c (if_region_set_false_region): Fixed Indentation.
5365 (move_sese_in_condition): Same.
5367 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5368 Aditya Kumar <aditya.k7@samsung.com>
5370 PR tree-optimization/66980
5371 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5372 when data reference analysis has failed.
5374 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5375 Aditya Kumar <aditya.k7@samsung.com>
5377 PR tree-optimization/67754
5378 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5379 scev analysis on the same loop nest as analyze_drs_in_stmts.
5380 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5382 (try_generate_gimple_bb): Call outermost_loop_in_sese.
5383 (analyze_drs_in_stmts): Same.
5384 * sese.c (outermost_loop_in_sese): ...here.
5386 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5387 Aditya Kumar <aditya.k7@samsung.com>
5389 PR tree-optimization/67754
5390 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5391 recursion on the inner loops.
5393 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5395 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5396 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5397 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5398 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5399 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5401 2015-10-01 Marek Polacek <polacek@redhat.com>
5404 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5405 create_tmp_var_raw rather than create_tmp_var.
5407 2015-10-01 Marek Polacek <polacek@redhat.com>
5409 PR tree-optimization/67769
5410 * tree-ssa-phiopt.c (conditional_replacement): Call
5411 reset_flow_sensitive_info_in_bb.
5412 (minmax_replacement): Likewise.
5413 (abs_replacement): Likewise.
5415 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
5417 * builtins.c: Don't include gomp-constants.h.
5418 (fold_builtin_1): Don't fold acc_on_device here.
5419 * gimple-fold.c: Include gomp-constants.h.
5420 (gimple_fold_builtin_acc_on_device): New.
5421 (gimple_fold_builtin): Call it.
5423 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
5425 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5426 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5428 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
5430 * config/arm/aarch-common-protos.h
5431 (aarch_accumulator_forwarding): New.
5432 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5433 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5434 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5435 * config/arm/cortex-a53.md: Rewrite.
5437 2015-10-01 Richard Biener <rguenther@suse.de>
5439 * gimple-match.h (mprts_hook): Declare.
5440 * gimple-match.head.c (mprts_hook): Define.
5441 (maybe_push_res_to_seq): Use new hook.
5442 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5443 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5444 (vn_ssa_aux::has_constants): Remove.
5445 * tree-ssa-sccvn.c: Include gimple-match.h.
5446 (VN_INFO_GET): Assert we don't re-use SSA names.
5447 (vn_get_expr_for): Remove.
5448 (expr_has_constants): Likewise.
5449 (stmt_has_constants): Likewise.
5450 (simplify_binary_expression): Likewise.
5451 (simplify_unary_expression): Likewise.
5452 (vn_lookup_simplify_result): New hook.
5453 (visit_copy): Adjust.
5454 (visit_reference_op_call): Likewise.
5455 (visit_phi): Likewise.
5456 (visit_use): Likewise.
5457 (process_scc): Likewise.
5458 (init_scc_vn): Likewise.
5459 (visit_reference_op_load): Likewise. Use match-and-simplify and
5460 a gimple seq for inserted expressions.
5461 (try_to_simplify): Remove GENERIC stmt combining code.
5462 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5463 * tree-ssa-pre.c (eliminate_insert): Adjust.
5464 (eliminate_dom_walker::before_dom_children): Likewise.
5466 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5468 * doc/invoke.texi (Optimization Options): Add
5469 -freorder-blocks-algorithm=.
5470 (Optimize Options) <-O>: Add -freorder-blocks.
5471 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
5472 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5473 <-freorder-blocks>: Also enabled at levels -O and -Os.
5474 <-freorder-blocks-algorithm=>: Document new option.
5476 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5478 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5479 with flag_reorder_blocks_algorithm.
5480 * common.opt (freorder-blocks-algorithm=): New flag.
5481 (reorder_blocks_algorithm): New enum.
5482 * flag-types.h (reorder_blocks_algorithm): New enum.
5483 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5484 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5486 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5488 * bb-reorder.c: Add intro comment.
5489 (reorder_basic_blocks_software_trace_cache): Print a header to
5491 (edge_order): New function.
5492 (reorder_basic_blocks_simple): New function.
5493 (reorder_basic_blocks): Choose between the STC and the simple
5494 algorithms (always choose the former).
5496 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5498 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5499 function, factored out from ...
5500 (reorder_basic_blocks): ... here.
5502 2015-10-01 Tom de Vries <tom@codesourcery.com>
5504 * tree-cfg.c (dump_function_to_file): Dump function attributes using
5505 __attribute__(()) string. Move dumping of function attributes to before
5508 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
5511 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5512 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5513 based on gold linker version.
5514 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5515 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5516 * configure, config.in: Regenerate.
5518 2015-10-01 Alan Modra <amodra@gmail.com>
5520 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5521 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5522 (rs6000_output_mi_thunk): Likewise.
5524 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5526 * config/nvptx/mkoffload.c (process): Change offload data format.
5528 2015-09-30 Jeff Law <law@redhat.com>
5530 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5531 with constant conditions.
5532 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5533 (remove_ctrl_stmt_and_useless_edges): No longer static.
5534 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5535 (remove_ctrl_stmt_and_useless_edges): Likewise.
5537 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5538 Cesar Philippidis <cesar@codesourcery.com>
5540 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5541 (TARGET_GOACC_VALIDATE_DIMS): Override.
5542 * target.def (TARGET_GOACC): New target hook prefix.
5543 (validate_dims): New hook.
5544 * targhooks.h (default_goacc_validate_dims): New.
5545 * omp-low.c (oacc_validate_dims): New.
5546 (execute_oacc_device_lower): New.
5547 (default_goacc_validate_dims): New.
5548 (pass_data_oacc_device_lower): New.
5549 (pass_oacc_device_lower): New pass.
5550 (make_pass_oacc_device_lower): New.
5551 * tree-pass.h (make_pass_oacc_device_lower): Declare.
5552 * passes.def (pass_oacc_device_lower): Add it.
5553 * doc/tm.texi: Rebuilt.
5554 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5555 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5557 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5559 PR rtl-optimization/67037
5560 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5562 2015-09-30 Bernd Schmidt <bernds@redhat.com>
5564 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5565 * passes.c: Include tree-ssanames.h.
5566 (execute_function_todo): Flush the pending free SSA_NAMEs after
5567 eliminating unreachable basic blocks.
5568 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5569 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5570 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5571 (flush_ssanames_freelist): New function.
5572 (release_ssaname_fn): Put released names on the queue.
5573 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5574 * tree-ssanames.h (flush_ssanames_freelist): Declare.
5576 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5578 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5579 (generate_target_descr_file, generate_target_offloadend_file)
5580 (generate_host_descr_file, prepare_target_image): Pass it on.
5581 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5582 (compile_native, main): Pass it on.
5583 * lto-wrapper.c (compile_offload_image): Likewise.
5585 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5586 Ilya Verbin <ilya.verbin@intel.com>
5587 Andrey Turetskiy <andrey.turetskiy@intel.com>
5589 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5590 (prepare_target_image, main): Refactor argv building to use
5593 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5595 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5596 * config/spu/spu.c (spu_expand_atomic_op): New function.
5597 * config/spu/spu.md (AINT): New mode iterator.
5598 (ATOMIC): New code iterator.
5599 (atomic_name, atomic_pred): New code predicates.
5600 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5601 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5602 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5603 "atomic_<atomic_name>_fetch<mode>"): Likewise.
5605 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
5607 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
5609 (scalar_chain::convert_reg): Likewise.
5611 2015-09-30 Richard Biener <rguenther@suse.de>
5613 * builtins.c: Add comment that no new simplifications should
5616 2015-09-30 Marek Polacek <polacek@redhat.com>
5618 PR tree-optimization/67690
5619 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
5620 reset_flow_sensitive_info_in_bb.
5621 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
5622 * tree-ssanames.c: Include "gimple-iterator.h".
5623 (reset_flow_sensitive_info_in_bb): New function.
5624 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
5626 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5628 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
5629 variable, replacing it with...
5630 (offload_abi): ... this new variable. Adjust all users.
5631 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
5633 2015-09-30 Matthias Klose <doko@ubuntu.com>
5635 * configure.ac: Remove extraneous ;;.
5636 * configure: Regenerate.
5638 2015-09-29 James Bowman <james.bowman@ftdichip.com>
5640 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
5641 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
5642 predicate, disallow register for operand 2.
5644 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
5646 * graphite-dependences.c (scop_get_dependences): Moved in down
5647 in order to be visible to its caller.
5648 * graphite-poly.h: Removed compute_deps, and extend_schedule.
5650 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5651 Aditya Kumar <aditya.k7@samsung.com>
5653 PR tree-optimization/67754
5654 * graphite-optimize-isl.c (optimize_isl): Call
5655 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
5657 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5659 * builtins.c (expand_builtin_acc_on_device): Delete.
5660 (expand_builtin): Don't call it.
5661 (fold_builtin_1): Fold acc_on_device.
5663 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
5665 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
5666 (ix86_nsaved_sseregs): Likewise.
5668 2015-09-29 Jeff Law <law@redhat.com>
5670 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
5671 computation of unused value.
5673 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
5674 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
5675 inline macro expansion.
5677 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
5679 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
5680 (gen_shl_sext): Likewise.
5681 * config/sh/sh.md (divsi3): Likewise.
5682 (imm->ext_dest_operand splitter): Likewise.
5684 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5685 Aditya Kumar <aditya.k7@samsung.com>
5687 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
5688 (nb_data_writes_in_bb): Remove.
5689 (split_pbb): Remove.
5690 (split_reduction_stmt): Remove.
5691 (is_reduction_operation_p): Remove.
5692 (phi_contains_arg): Remove.
5693 (follow_ssa_with_commutative_ops): Remove.
5694 (detect_commutative_reduction_arg): Remove.
5695 (detect_commutative_reduction_assign): Remove.
5696 (follow_inital_value_to_phi): Remove.
5697 (edge_initial_value_for_loop_phi): Remove.
5698 (initial_value_for_loop_phi): Remove.
5699 (used_outside_reduction): Remove.
5700 (detect_commutative_reduction): Remove.
5701 (translate_scalar_reduction_to_array_for_stmt): Remove.
5702 (remove_phi): Remove.
5703 (dr_indices_valid_in_loop): Remove.
5704 (close_phi_written_to_memory): Remove.
5705 (translate_scalar_reduction_to_array): Remove.
5706 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
5707 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
5708 (rewrite_commutative_reductions_out_of_ssa): Remove.
5709 (build_poly_scop): Remove call to
5710 rewrite_commutative_reductions_out_of_ssa.
5712 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
5714 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
5715 Add new insn types for vector load and store pairs.
5716 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
5717 types "neon_ldp{,_q}".
5718 * config/arm/cortex-a57.md (neon_load_c): Add insn types
5720 (neon_store_complex): Add insn types "neon_stp{,_q}".
5721 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
5724 2015-09-29 Jeff Law <law@redhat.com>
5726 * config/rx/constraints.md (Int08): Fix undefined left shift
5728 (Sint08, Sint16, Sint24): Likewise.
5729 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5731 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
5734 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
5735 left shift behaviour.
5736 * config/msp430/constraints.md ('L' constraint): Similarly.
5737 ('Ys' constraint): Similarly.
5739 2015-09-29 Richard Biener <rguenther@suse.de>
5741 PR tree-optimization/67170
5742 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
5743 the translate function pointer parameter to get the
5744 bool whether to disambiguate only by reference.
5745 (walk_non_aliased_vuses): Likewise.
5746 * tree-ssa-alias.c (maybe_skip_until): Adjust.
5747 (get_continuation_for_phi_1): Likewise.
5748 (get_continuation_for_phi): Likewise.
5749 (walk_non_aliased_vuses): Likewise.
5750 * tree-ssa-sccvn.c (const_parms): New bitmap.
5751 (vn_reference_lookup_3): Adjust for interface change.
5752 Disambiguate parameters pointing to readonly memory.
5753 (free_scc_vn): Free const_parms.
5754 (run_scc_vn): Initialize const_parms from a fn spec attribute.
5756 2015-09-29 Richard Biener <rguenther@suse.de>
5758 PR tree-optimization/67741
5759 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
5760 builtin calls with correct signature.
5762 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
5765 * config/i386/i386.c: Include dbgcnt.h.
5766 (has_non_address_hard_reg): New.
5767 (convertible_comparison_p): New.
5768 (scalar_to_vector_candidate_p): New.
5769 (remove_non_convertible_regs): New.
5770 (scalar_chain): New.
5771 (scalar_chain::scalar_chain): New.
5772 (scalar_chain::~scalar_chain): New.
5773 (scalar_chain::add_to_queue): New.
5774 (scalar_chain::mark_dual_mode_def): New.
5775 (scalar_chain::analyze_register_chain): New.
5776 (scalar_chain::add_insn): New.
5777 (scalar_chain::build): New.
5778 (scalar_chain::compute_convert_gain): New.
5779 (scalar_chain::replace_with_subreg): New.
5780 (scalar_chain::replace_with_subreg_in_insn): New.
5781 (scalar_chain::emit_conversion_insns): New.
5782 (scalar_chain::make_vector_copies): New.
5783 (scalar_chain::convert_reg): New.
5784 (scalar_chain::convert_op): New.
5785 (scalar_chain::convert_insn): New.
5786 (scalar_chain::convert): New.
5787 (convert_scalars_to_vector): New.
5788 (pass_data_stv): New.
5790 (make_pass_stv): New.
5791 (ix86_option_override): Created and register stv pass.
5792 (flag_opts): Add -mstv.
5793 (ix86_option_override_internal): Likewise.
5794 * config/i386/i386.md (SWIM1248x): New.
5795 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
5796 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
5797 (*anddi3_doubleword): New.
5798 (*zext<mode>_doubleword): New.
5799 (*zextsi_doubleword): New.
5800 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
5801 (*<code>di3_doubleword): New.
5802 * config/i386/i386.opt (mstv): New.
5803 * dbgcnt.def (stv_conversion): New.
5805 2015-09-29 Tom de Vries <tom@codesourcery.com>
5807 * tree-cfg.c (dump_function_to_file): Dump function attributes.
5809 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
5812 * config/sh/sh.c (sh_override_options_after_change): New.
5813 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5814 (sh_option_override): Move align_loops, align_jumps and
5815 align_functions handling into sh_override_options_after_change.
5817 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5819 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
5820 (nvptx_record_offload_symbol): Record function execution geometry.
5821 * config/nvptx/mkoffload.c (process): Include launch geometry in
5823 * omp-low.c (oacc_launch_pack): New.
5824 (replace_oacc_fn_attrib): New.
5825 (set_oacc_fn_attrib): New.
5826 (get_oacc_fn_attrib): New.
5827 (expand_omp_target): Create keyed varargs for GOACC_parallel call
5829 * omp-low.h (get_oacc_fn_attrib): Declare.
5830 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
5831 (DEF_FUNCTION_TYPE_VAR_11): Delete.
5832 * tree.h (OMP_CLAUSE_EXPR): New.
5833 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
5835 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5836 Sebastian Pop <s.pop@samsung.com>
5838 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
5840 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5841 Sebastian Pop <s.pop@samsung.com>
5843 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
5844 * graphite-scop-detection.c (struct sese_l): New type.
5845 (get_entry_bb): API for getting entry bb of SESE.
5846 (get_exit_bb): API for getting exit bb of SESE.
5847 (class debug_printer): New type. Simple printer in debug mode.
5848 (trivially_empty_bb_p): New. Return true when BB is empty or
5849 contains only debug instructions.
5850 (graphite_can_represent_expr): Call scalar_evoution_in_region
5851 instead of analyze_scalar_evolution. Pass in scop instead of only
5853 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
5855 (stmt_simple_for_scop_p): Same.
5856 (harmful_stmt_in_bb): Same.
5857 (graphite_can_represent_loop): Deleted.
5858 (struct scopdet_info): Deleted.
5859 (scopdet_basic_block_info): Deleted.
5860 (build_scops_1): Deleted.
5861 (bb_in_sd_region): Deleted.
5862 (find_single_entry_edge): Deleted.
5863 (find_single_exit_edge): Deleted.
5864 (create_single_entry_edge): Deleted.
5865 (sd_region_without_exit): Deleted.
5866 (create_single_exit_edge): Deleted.
5867 (unmark_exit_edges): Deleted.
5868 (mark_exit_edges): Deleted.
5869 (create_sese_edges): Deleted.
5870 (build_graphite_scops): Deleted.
5871 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
5872 (build_scops): Use the new scop_builder to build scops.
5873 (dot_all_scops_1): Use the new pretty printer. Print loop father
5875 (loop_body_is_valid_scop): New. Return true if loop body is a
5877 (class scop_builder): New. Builds SCoPs for polyhedral
5879 (scop_builder): New constructor.
5880 (static sese_l invalid_sese): sese_l with invalid edges.
5881 (get_sese): Get an sese (from a loop) if possible, invalid_sese
5883 (get_nearest_dom_with_single_entry): Get nearest dominator of a
5884 basic_block with single entry. Return NULL if we get to the
5885 beginning of a function.
5886 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
5887 a basic_block with single exit. Return NULL if we get to the
5888 beginning of a function.
5889 (print_sese): Pretty-print SESE.
5890 (merge_sese): Merge two SESEs if possible and return the new SESE.
5891 (build_scop_depth): Start building the SCoP within a loop nest.
5892 (build_scop_breadth): Start building the SCoP at a single loop
5893 depth. Merge adjacent SESEs if valid.
5894 (can_represent_loop_1): Returns true if Graphite can represent
5895 loop inside SCoP. Helper for can_represent_loop.
5896 (can_represent_loop): Returns true if Graphite can represent LOOP
5897 and all its nested loops in SCoP.
5898 (loop_is_valid_scop): Returns true if LOOP and all its nests
5899 constitute a valid SCoP.
5900 (region_has_one_loop): Returns true of a region has only one loop.
5901 (add_scop): Add SCoP to the list of valid scops. Removes an
5902 already existing scop if it intersects with or subsumed by this one.
5903 (harmful_stmt_in_region): Returns true if SCoP has any statment
5904 which cannot be represented by Graphite.
5905 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
5906 (remove_subscops): Remove any SCoP from the list of already found
5907 SCoPs, if subsumed by S1.
5908 (intersects): Return true if region bounded by SCoPs S1 and S2
5910 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
5911 * graphite.c (print_graphite_scop_statistics):
5912 (print_graphite_statistics): Print SCoP info while debugging.
5913 (graphite_initialize): Early exit in case number of loops in a
5914 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
5915 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
5916 (graphite_finalize):
5917 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
5918 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
5919 (recompute_all_dominators): Recalculate POST_DOMINATORS.
5920 * tree-cfg.c (print_loops): Print the function name while printing
5923 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5924 Sebastian Pop <s.pop@samsung.com>
5926 PR tree-optimization/67700
5927 * graphite-sese-to-poly.c (parameter_index_in_region): Call
5928 invariant_in_sese_p_rec.
5929 (extract_affine): Same.
5930 (rewrite_cross_bb_scalar_deps): Call update_ssa.
5931 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
5932 * sese.h (invariant_in_sese_p_rec): Declare.
5934 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
5936 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
5938 2015-09-28 Jiong Wang <jiong.wang@arm.com>
5941 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5942 Jiong Wang <jiong.wang@arm.com>
5944 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5945 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5946 (REG_CLASS_NAMES): Likewise.
5947 (REG_CLASS_CONTENTS): Likewise.
5948 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5949 (aarch64_register_move_cost): Likewise.
5950 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5952 * config/aarch64/constraints.md (Uc0): New constraint.
5954 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
5956 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
5958 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
5960 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
5961 SECTION_EXCLUDE in XO mapping class.
5963 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
5966 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
5967 and handle ne and eq codes.
5968 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
5969 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
5970 CONST_INT_P. Use reverse_condition.
5971 (sh_split_treg_set_expr): Likewise.
5973 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
5975 * config/arm/types.md (type): Add rotate_imm.
5976 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
5978 (*rorsi3_insn_uxtw): Likewise.
5979 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
5980 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
5981 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
5983 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5985 PR rtl-optimization/67481
5986 * ifcvt.c (contains_ccmode_rtx_p): New function.
5987 (insn_valid_noce_process_p): Use it.
5989 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5991 PR rtl-optimization/67456
5992 PR rtl-optimization/67464
5993 PR rtl-optimization/67465
5994 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
5995 move in the mode of x. Handle combination of complex and simple
5996 block pairs as well as the case when one is empty.
5998 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6000 * doc/gimple.texi: Update references to gimple_statement_base.
6001 * gdbhooks.py: Likewise.
6002 * gimple.h: Likewise.
6004 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6006 * config/sparc/driver-sparc.c: map LEON to leon3
6008 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6010 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
6011 and make it inverse to change default
6012 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
6014 * doc/invoke.texi: Document change of default
6016 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6018 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
6019 true on %f0 for a target without FPU.
6020 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
6022 (untyped_return): Do not load %f0 for a target without FPU.
6024 2015-09-28 Andrew Pinski <apinski@cavium.com>
6026 * config/aarch64/aarch64.md (prefetch):
6027 Change the predicate of operand 0 to register_operand.
6029 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
6031 * config/i386/predicates.md (register_sse4nonimm_operand): New
6033 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
6034 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
6035 Use register_sse4nonimm_operand as operand 0 predicate.
6036 (*vec_extractv8hi_sse2): Remove insn pattern.
6037 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
6038 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
6040 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
6041 Kaz Kojima <kkojima@gcc.gnu.org>
6044 * config/sh/sh-protos.h (sh_lra_p): Declare.
6045 * config/sh/sh.c (sh_lra_p): Make non-static.
6046 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
6047 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
6048 Expand into addsi3_scr if operands[2] if needed.
6049 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
6050 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
6051 (addsi3_scr, *addsi3): New insn_and_split patterns.
6053 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
6055 PR rtl-optimization/64164
6056 PR tree-optimization/67312
6060 * cfgexpand.c (parm_in_stack_slot_p): Remove.
6061 (ssa_default_def_partition): Remove.
6062 (get_rtl_for_parm_ssa_default_def): Remove.
6063 (set_rtl): Check that RTL assignments match expectations.
6064 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
6065 default def location for params and results. Record SSA names
6066 or types in REG and MEM attrs, respectively.
6067 (set_parm_rtl): New.
6068 (expand_one_ssa_partition): Drop logic that assigned MEMs with
6069 unassigned addresses.
6070 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
6071 deferred stack alloc vars.
6072 (expand_used_vars): Skip partitions holding parm default defs.
6073 Move adjust_one_expanded_partition_var loop...
6074 (pass_expand::execute): ... here. Drop redundant assert.
6075 Adjust comments before the final loop over all ssa names.
6076 Require assigned rtl of parms and results to match exactly.
6077 Reset its attributes to match them, not any other variables in
6079 (expand_debug_expr): Use entry value for PARM's default defs
6080 only iff they have zero nondebug uses.
6081 * cfgexpand.h (parm_in_stack_slot_p): Remove.
6082 (get_rtl_for_parm_ssa_default_def): Remove.
6083 (set_parm_rtl): Declare.
6084 * doc/invoke.texi: Improve wording.
6085 * explow.c (promote_decl_mode): Fix promote_function_mode for
6086 result decls not by reference.
6087 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
6088 bypass TYPE_MODE to get the actual vector mode.
6089 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
6090 2015-08-19's changes as follows. Drop include of
6091 basic-block.h and df.h.
6092 (rtl_for_parm): Remove.
6093 (maybe_reset_rtl_for_parm): Remove.
6094 (parm_in_unassigned_mem_p): Remove.
6095 (use_register_for_decl): Add logic for RESULT_DECLs matching
6096 assign_parms' behavior.
6097 (split_complex_args): Revert.
6098 (assign_parms_augmented_arg_list): Revert. Add comment
6099 referencing the logic above.
6100 (assign_parm_adjust_stack_rtl): Revert.
6101 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
6102 of SET_DECL_RTL. Set up a REG if the parm demands so.
6103 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
6104 calls into a single set_parm_rtl. Set up a temporary RTL
6105 temporarily for expand_assignment.
6106 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
6107 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
6108 (assign_bounds): Revert.
6109 (assign_parms): Revert. Use set_parm_rtl.
6110 (allocate_struct_function): Relayout result and parms of
6111 non-abstruct functions.
6112 (expand_function_start): Revert. Use set_parm_rtl. If the
6113 result is not a hard reg, create a pseudo from the promoted
6114 mode of the default def. Promote static chain mode.
6115 * tree-outof-ssa.c (remove_ssa_form): Drop unused
6116 partition_has_default_def. Set up
6117 partitions_for_parm_default_defs.
6118 (finish_out_of_ssa): Remove partition_has_default_def.
6119 Release partitions_for_parm_default_defs.
6120 * tree-outof-ssa.h (struct ssaexpand): Remove
6121 partition_has_default_def. Add
6122 partitions_for_parm_default_defs.
6123 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
6125 (build_ssa_conflict_graph): Fix conflict-detection of default
6126 defs of even unused default defs of params and results.
6127 (for_all_parms): New.
6128 (create_default_def): New.
6129 (register_default_def): New.
6130 (coalesce_with_default): New.
6131 (create_outofssa_var_map): Create default defs for all parms
6132 and results, and register their partitions. Add GIMPLE_RETURN
6133 operands as coalesce candidates with results. Add default
6134 defs of each parm or result as coalesce candidates with its
6135 other defs. Mark each result def, and each default def of
6136 parms, as used_in_copy.
6137 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
6138 with the ssa names, even anonymous ones. Drop
6139 parm_in_stack_slot_p calls. Require same signedness and
6141 (coalesce_ssa_name): Add coalesce candidates for all defs of
6142 each parm and result, even unused ones.
6143 (parm_default_def_partition_arg): New type.
6144 (set_parm_default_def_partition): New.
6145 (get_parm_default_def_partitions): New.
6146 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
6147 * tree-ssa-live.c (partition_view_init): Regard unused defs of
6148 parms and results as used.
6149 (verify_live_on_entry): Don't error out just because they're
6152 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
6154 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6155 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
6156 (output_fde): Don't output length for debug_frame on AIX.
6157 (output_call_frame_info): Don't output length for debug_frame on AIX.
6158 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
6159 HAVE_XCOFF_DWARF_EXTRAS.
6160 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
6161 HAVE_XCOFF_DWARF_EXTRAS.
6162 (output_compilation_unit_header): Don't output length on AIX.
6163 (output_pubnames): Don't output length on AIX.
6164 (output_aranges): Delete argument. Compute length locally. Don't
6165 output length on AIX.
6166 (output_line_info): Don't output length on AIX.
6167 (dwarf2out_finish): Don't compute aranges_length.
6168 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6169 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
6170 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
6171 symbol decoration for AIX.
6172 (rs6000_xcoff_debug_unwind_info): New.
6173 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
6175 (rs6000_xcoff_declare_function_name): Emit different
6176 .function pseudo-op when DWARF2_DEBUG. Don't call
6177 xcoffout_declare_function for DWARF2_DEBUG.
6178 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
6180 * config/rs6000/aix71.h: New.
6181 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
6183 * configure: Regenerate.
6184 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
6187 2015-09-26 Jeff Law <law@redhat.com>
6189 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
6191 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
6194 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
6197 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
6198 undefined behaviour.
6200 * config/cris/cris.md (asrandb): Fix left shift undefined
6202 (asrandw): Likewise.
6204 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
6207 * lra-constarints.c (match_reload): Check presence of the input pseudo
6208 in the output operand.
6210 2015-09-25 Tobias Burnus <burnus@net-b.de>
6212 * doc/invoke.texi (-fsanitize): Minor wording tweak.
6214 2015-09-25 Tobias Burnus <burnus@net-b.de>
6216 * doc/invoke.texi (-fsanitize): Update URLs.
6218 2015-09-25 Teresa Johnson <tejohnson@google.com>
6220 * opts.c (finish_options): Unset -freorder-blocks-and-partition
6221 if not using profile.
6223 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6225 PR pretty-print/67567
6226 * pretty-print.c (pp_string): Add gcc_checking_assert.
6227 * pretty-print.h (output_buffer_append_r): Likewise.
6229 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
6232 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
6233 addr2 individually. Don't emit logical or insn if one is known to
6234 be aligned approriately.
6235 (sh_expand_cmpnstr): Likewise.
6237 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
6239 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
6240 __builtin_aarch64_fp[sc]r arguments into a register.
6242 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
6244 * config.gcc (x86_archs): Replace lakemount with lakemont.
6245 (with_cpu): Likewise.
6246 (with_arch): Likewise.
6247 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6248 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
6249 __tune_lakemount__ with __tune_lakemont__.
6250 * config/i386/i386.c (lakemount_cost): Renamed to ...
6251 (lakemont_cost): This.
6252 (m_LAKEMOUNT): Renamed to ...
6254 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
6255 (processor_target_table): Replace "lakemount" with "lakemont".
6256 (processor_alias_table): Likewise.
6257 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
6259 (ix86_adjust_cost): Likewise.
6260 (ia32_multipass_dfa_lookahead): Likewise.
6261 * config/i386/i386.h (processor_type): Likewise.
6262 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
6263 * doc/invoke.texi: Replace lakemount with lakemont. Replace
6264 Lakemount with Lakemont.
6266 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
6268 * config.gcc (x86_archs): Replace iamcu with lakemount.
6269 (with_cpu): Likewise.
6270 (with_arch): Likewise.
6271 * doc/invoke.texi: Likewise.
6272 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6273 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
6274 __tune_iamcu__ with __tune_lakemount__.
6275 * config/i386/i386.c (iamcu_cost): Renamed to ...
6276 (lakemount_cost): This.
6277 (m_IAMCU): Renamed to ...
6278 (m_LAKEMOUNT): This.
6279 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
6280 (processor_target_table): Replace "iamcu" with "lakemount".
6281 (processor_alias_table): Likewise.
6282 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
6283 PROCESSOR_LAKEMOUNT.
6284 (ix86_adjust_cost): Likewise.
6285 (ia32_multipass_dfa_lookahead): Likewise.
6286 * config/i386/i386.h (processor_type): Likewise.
6287 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
6289 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
6291 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
6292 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
6294 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
6295 (pa_expand_compare_and_swap_loop): New.
6296 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
6297 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
6298 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
6299 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
6300 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
6303 2015-09-24 Michael Collison <michael.collison@linaro.org>
6306 * read-md.c (read_name): Allow mode iterators inside angle
6307 brackets in rtl expressions.
6309 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
6312 * ira-color.c (update_allocno_cost): Add parameter.
6313 (update_costs_from_allocno): Decrease conflict cost. Pass the new
6316 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6319 * opts-common.c (prune_options): Discard all -fdiagnostics-color
6320 but the last one, which is moved to the front to be processed
6322 * opts.c (enable_warning_as_error): Reject options that do not
6325 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6327 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
6329 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6331 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
6332 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
6333 (aarch64_cannot_force_const_mem): Likewise.
6334 (aarch64_classify_address): Likewise.
6335 (aarch64_classify_symbolic_expression): Likewise.
6336 (aarch64_print_operand): Likewise.
6337 (aarch64_classify_symbol): Likewise.
6338 (aarch64_mov_operand_p): Likewise.
6339 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
6340 (aarch64_mov_operand): Likewise.
6342 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
6344 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
6345 for info->spe_gp_size.
6347 2015-09-24 Richard Biener <rguenther@suse.de>
6350 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
6353 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
6355 * tree-object-size.c (plus_stmt_object_size)
6356 (cond_expr_object_size): Change the formal parameters from gimple
6358 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6359 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6360 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6362 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6364 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6365 Check for ld -type pie on Solaris 11.x and 12.
6366 * configure: Regenerate.
6367 * config.in: Regenerate.
6369 * gcc.c (LD_PIE_SPEC): Allow redefinition.
6371 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6372 (STARTFILE_SPEC): Use it.
6373 (ENDFILE_CRTEND_SPEC): Define.
6374 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6375 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6376 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6377 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6378 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6379 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6380 (ENDFILE_ARCH_SPEC): Define.
6381 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6383 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6385 * configure.ac (gcc_cv_solaris_crts): New test.
6386 * configure. Regenerate.
6387 * config.in: Regenerate.
6388 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6389 HAVE_SOLARIS_CRTS variant.
6391 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6393 * tree-inline.h (count_insns_seq): Delete prototype.
6394 (estimate_num_insns_seq): Define prototype.
6395 * tree-inline.c (count_insns_seq): Delete.
6396 (estimate_num_insns_seq): Remove static qualifier.
6397 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6398 with estimate_num_insns_seq.
6400 2015-09-24 Richard Biener <rguenther@suse.de>
6402 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6404 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6405 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
6407 (ao_ref_init_from_vn_reference): Record clique and base in the
6409 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6411 2015-09-24 Richard Biener <rguenther@suse.de>
6413 PR tree-optimization/48885
6414 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6415 as not including any restrict tags from other pointers.
6417 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6419 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6420 character when appending to offload_targets.
6422 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6423 offload targets by commas, not colons.
6424 * config.in: Regenerate.
6425 * configure: Likewise.
6426 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6427 instead of setting up the default offload targets here...
6428 (process_command): ..., do it here.
6430 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6431 targets are separated by commas.
6432 * config.h.in: Regenerate.
6434 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6435 Nathan Sidwell <nathan@codesourcery.com>
6437 * omp-low.h (omp_reduction_init_op): Declare.
6438 * omp-low.c (omp_reduction_init_op): New, broken out of ...
6439 (omp_reduction_init): ... here. Call it.
6440 * tree-parloops.c (initialize_reductions): Use
6441 omp_reduction_init_op.
6443 2015-09-23 Richard Biener <rguenther@suse.de>
6446 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6447 undefined overflow unless they will cancel out.
6449 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6451 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6454 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6457 * opts.h (write_langs): Declare.
6458 * opts-global.c (write_langs): Make it extern.
6460 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
6463 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6464 overlapping regs when matching the pattern.
6466 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
6468 * config/aarch64/aarch64-simd.md
6469 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6470 (aarch64_float_truncate_hi_v4sf_le): New.
6471 (aarch64_float_truncate_hi_v4sf_be): Likewise.
6473 2015-09-23 Richard Biener <rguenther@suse.de>
6475 * tree-ssa-structalias.c (intra_create_variable_infos): Build
6476 representatives for all restrict qualified pointer destinations.
6478 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6480 * config/i386/i386.md (define_code_attr mshift): New.
6481 (define_mode_iterator SWI1248_AVX512BW): Rename ...
6482 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6484 (define_insn "*k<logic><mode>"): Use new iterator name.
6485 (define_insn "*<mshift><mode>3"): New.
6487 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
6490 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6491 mark the block as accessible.
6493 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
6495 * function.c (thread_prologue_and_epilogue_insns): Delete
6496 orig_entry_edge argument to try_shrink_wrapping.
6497 * shrink-wrap.c (can_get_prologue): New function.
6498 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6499 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
6500 can_get_prologue where needed. Remove code that finds a single
6501 edge for the prologue. Remove code that tests if any reg clobbered
6502 by the prologue is live on the prologue edge. Remove code that finds
6503 the new prologue edge after duplicating blocks. Make a new prologue
6505 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6507 2015-09-22 Jeff Law <law@redhat.com>
6509 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6512 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6514 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
6515 -Wtemplates, -Wnamespaces): Document.
6517 2015-09-22 Tom de Vries <tom@codesourcery.com>
6519 PR tree-optimization/67671
6520 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6521 pointer references as restrict.
6523 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6525 * config/nios2/nios2.c (nios2_legitimize_address): When handling
6526 'reg + reloc' cases, allow first operand to be non-REG, and use
6527 force_reg() to enforce address pattern.
6529 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
6532 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6533 (define_mode_iterator VI12_AVX_AVX512F): New.
6534 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6535 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6536 (define_insn "*<code><mode>3"): ... Into new pattern using
6537 VI12_AVX_AVX512F iterators without masking.
6539 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6541 * config.gcc: Support "skylake-avx512".
6542 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6543 PROCESSOR_SKYLAKE_AVX512.
6544 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6545 (processor_target_table): Add "skylake-avx512".
6546 (PTA_SKYLAKE_AVX512): Define.
6547 (ix86_option_override_internal): Add "skylake_avx512".
6548 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6549 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6550 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6551 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6552 * doc/invoke.texi (skylake-avx512): New.
6554 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6556 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
6558 (define_insn "kunpcksi"): Ditto.
6559 (define_insn "kunpckdi"): Ditto.
6561 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6563 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
6564 iterator instead of fixed modes.
6566 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6568 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6570 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6571 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
6572 out_result. Update to support update-fetch operations.
6573 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6574 Adjust for change to aarch64_gen_atomic_ldop.
6575 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6576 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6577 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6578 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6579 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6581 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6583 * config/aarch64/aarch64-protos.h
6584 (aarch64_atomic_ldop_supported_p): Declare.
6585 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6586 (enum aarch64_atomic_load_op_code): New.
6587 (aarch64_emit_atomic_load_op): New.
6588 (aarch64_gen_atomic_ldop): Update to support load-operate
6590 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6592 (aarch64_atomic_<atomic_optab><mode>): New.
6593 (aarch64_atomic_<atomic_optab><mode>_lse): New.
6594 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6595 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6596 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6598 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6600 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6601 (UNSPECV_ATOMIC_LDOP_OR): New.
6602 (UNSPECV_ATOMIC_LDOP_BIC): New.
6603 (UNSPECV_ATOMIC_LDOP_XOR): New.
6604 (UNSPECV_ATOMIC_LDOP_PLUS): New.
6607 (aarch64_atomic_load<atomic_ldop><mode>): New.
6609 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6611 * config/aarch64/aarch64.md
6612 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
6615 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6617 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6619 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
6620 (aarch64_gen_atomic_ldop): New.
6621 (aarch64_split_atomic_op): Fix whitespace and add a comment.
6622 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
6623 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
6624 (atomic_exchange<mode>): Replace with an expander.
6625 (aarch64_atomic_exchange<mode>): New.
6626 (aarch64_atomic_exchange<mode>_lse): New.
6627 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
6628 (aarch64_atomic_swp<mode>): New.
6630 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6632 * tree-inline.c (expand_call_inline): Use inform for extra note.
6633 Do not give a note with UNKNOWN_LOCATION.
6634 Replace input_location with gimple_location (stmt).
6635 Use true/false instead of TRUE/FALSE.
6637 2015-09-22 Tom de Vries <tom@codesourcery.com>
6639 PR tree-optimization/67666
6640 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
6641 with single field non-conservative.
6643 2015-09-21 David S. Miller <davem@davemloft.net>
6647 2015-09-11 David S. Miller <davem@davemloft.net>
6649 * config/sparc/constraints.md: Make "U" constraint a real register
6651 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6652 (D_MODES, DF_MODES): Add missing cast.
6653 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6654 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6655 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6657 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6658 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6659 provide these insn when flag_pic.
6661 2015-09-17 David S. Miller <davem@davemloft.net>
6663 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
6665 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
6667 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6668 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6669 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6670 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6671 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6672 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6673 provide when flag_pic.
6675 2015-09-21 Jeff Law <law@redhat.com>
6677 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
6680 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6682 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
6684 2015-09-21 Richard Biener <rguenther@suse.de>
6686 * passes.c (rest_of_decl_compilation): Do not call
6687 dwarf2out_early_global_decl for aliases.
6689 2015-09-21 Richard Biener <rguenther@suse.de>
6692 * dwarf2out.c (add_location_or_const_value_attribute): Remove
6693 attribute parameter. Early exit if either DW_AT_const_value
6694 or DW_AT_location are present already.
6695 (gen_variable_die): Adjust caller.
6696 (dwarf2out_late_global_decl): Likewise.
6698 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6701 * config/sh/sh.c (sh_remove_overlapping_post_inc,
6702 sh_peephole_emit_move_insn): Add new functions.
6703 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
6704 sh_peephole_emit_move_insn): Declere them.
6705 * config/sh/sh.md: Use them in various peephole2 patterns.
6707 2015-09-21 Richard Biener <rguenther@suse.de>
6710 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
6711 address with -fno-delete-null-pointer-checks.
6713 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
6715 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
6716 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
6717 (reduc_uplus_v16qi): Remove.
6719 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
6720 (reduc_<VEC_reduc_name>_v2df): Remove.
6721 (reduc_<VEC_reduc_name>_v4sf): Remove.
6722 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
6724 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
6725 gen_ function by removing * prefix.
6726 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
6728 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6731 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6732 Print i_bound without converting it to a tree.
6734 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
6736 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
6737 operands[4] operands[5] swap with std::swap, removed tmp variable.
6738 (arm_evpc_neon_vzip): Replaced in0/in1 and
6739 out0/out1 swaps with std::swap, removed x variable.
6740 (arm_evpc_neon_vtrn): Replaced in0/int1 and
6741 out0/out1 swaos with std::swap, removed x variable.
6742 (arm_expand_vec_perm_const_1): Replaced
6743 d->op0/d->op1 swap with std::swap, removed x variable.
6744 (arm_evpc_neon_vuzp): Replaced in0/in1 and
6745 out0/out1 swaps with std::swap, removed x variable.
6747 2015-09-21 Jonathan Yong <10walls@gmail.com>
6749 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6750 sysroot/usr/lib/32api for additional win32 libraries,
6751 fixes failing Cygwin bootstrapping.
6753 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6755 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
6757 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6760 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
6761 (*mov_t_msb_neg): Rewrite negc pattern.
6763 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6765 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
6766 immediate generation code.
6768 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6770 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
6771 redundant immediate generation code.
6773 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6775 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
6776 (AARCH64_NUM_BITMASKS): Remove.
6777 (aarch64_bitmasks_cmp): Remove.
6778 (aarch64_build_bitmask_table): Remove.
6780 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6782 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
6783 slow immediate matching loops with a faster algorithm.
6785 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6787 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
6790 2015-09-20 Jeff Law <law@redhat.com>
6792 PR tree-optimization/47679
6793 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
6794 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
6795 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
6796 (thread_through_normal_block): Use record_temporary_equivalences.
6798 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
6800 * coretypes.h (gimple): Change typedef to be a forward declaration.
6801 * gimple.h (gimple_statement_base): rename to gimple.
6802 * (all functions and types using gimple): Adjust.
6805 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
6806 David Edelsohn <dje.gcc@gmail.com>
6808 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
6809 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6810 (EH_FRAME_THROUGH_COLLECT2): Define.
6811 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6812 (ASM_OUTPUT_DWARF_PCREL): Define.
6813 (ASM_OUTPUT_DWARF_DATAREL): Define.
6815 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
6817 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
6820 2015-09-18 Jeff Law <law@redhat.com>
6822 PR tree-optimization/47679
6823 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
6825 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
6826 object. Update constructor.
6827 (pass_dominator::execute): Corresponding chagnes to declaration
6828 and initialization of avail_exprs_stack. Update constructor call
6829 for dom_opt_dom_walker object.
6830 (lookup_avail_expr, record_cond): Accept additional argument. Pass
6831 it down to children as needed.
6832 (record_equivalences_from_incoming_edge): Likewise.
6833 (eliminate_redundant_computations): Likewise.
6834 (record_equivalences_from_stmt): Likewise.
6835 (simplify_stmt_for_jump_threading): Likewise.
6836 (record_temporary_equivalences): Likewise.
6837 (optimize_stmt): Likewise.
6838 (dom_opt_dom_walker::thread_across_edge): Update access to
6839 avail_exprs_stack object and pass it to children as needed.
6840 (dom_opt_dom_walker::before_dom_children): Similarly.
6841 (dom_opt_dom_walker::after_dom_children): Similarly.
6842 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
6843 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
6844 Add avail_expr_stack argument. Pass it to children as needed.
6845 (dummy_simplify): Likewise.
6846 (simplify_control_stmt_condition): Likewise.
6847 (thread_around_empty_blocks): Likewise.
6848 (thread_through_normal_block): Likewise.
6849 (thread_across_edge): Likewise.
6850 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6851 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
6853 PR tree-optimization/47679
6854 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
6856 (dom_opt_dom_walker): New private member holding the const_and_copies
6857 object. Update constructor.
6858 (pass_dominator::execute): Corresponding changes to declaration
6859 and initialization of const_and_copies. Update constructor call
6860 for the dom_opt_dom_walker object.
6861 (record_temporary_equivalences): Accept const_and_copies argument
6862 pass it down to children as needed.
6863 (record_equality): Likewise.
6864 (record_equivalences_from_incoming_edge): Likewise.
6865 (cprop_into_successor_phis, optimize_stmt): Likewise.
6866 (eliminate_redundant_computations): Likewise.
6867 (dom_opt_dom_walker::thread_across_edge): Update access to
6868 const_and_copies object and pass it to children as needed.
6869 (dom_opt_dom_walker::before_dom_children): Similarly.
6870 (dom_opt_dom_walker::after_dom_children): Similarly.
6872 PR tree-optimization/47679
6873 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
6874 it into the avail_exprs_stack class.
6875 (pass_dominator::execute): Corresponding changes to declaration
6876 and initialization of avail_exprs. Pass avail_exprs to
6877 dump_dominator_optimization_stats.
6878 (record_cond): Extract avail_exprs from avail_exprs_stack.
6879 (lookup_avail_expr): Similarly.
6880 (htab_staticstics): Remove unnecessary prototype. Move to earlier
6882 (dump_dominator_optimization_stats): Make static and prototype.
6883 Add argument for the hash table to dump.
6884 (debug_dominator_optimization_stats): Remove.
6885 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
6887 (debug_dominator_optimization_stats): Similarly.
6888 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
6889 "void" in prototype for pop_to_marker method. Add accessor method
6890 for the underlying avail_exprs table.
6892 * tree-ssa-threadedge.c: Remove trailing whitespace.
6894 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
6896 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
6898 (pa_ldil_cint_p): Likewise.
6899 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
6900 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
6902 * config/pa/pa.md: Likewise.
6904 2015-09-18 David Malcolm <dmalcolm@redhat.com>
6906 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
6907 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
6908 (diagnostic_show_locus): Likewise.
6909 (diagnostic_print_caret_line): Likewise.
6910 * diagnostic-show-locus.c: New file.
6912 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
6914 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
6915 "back" parameter. Declare label in #if block.
6917 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
6920 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
6921 the address to a register.
6923 2015-09-18 Jeff Law <law@redhat.com>
6925 PR tree-optimization/47679
6926 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
6927 * tree-ssa-dom.c: Remove unnecessary header includes.
6928 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
6929 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
6930 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
6931 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
6932 (pass_phi_only_cprop::execute): Likewise.
6933 (make_pass_phi_only_cprop): Likewise.
6934 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
6935 uses of file scoped statics by passing the required objects
6936 as parameters wherever needed.
6938 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
6939 David Edelsohn <dje.gcc@gmail.com>
6941 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
6942 EH_FRAME_THROUGH_COLLECT2.
6943 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
6945 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
6946 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
6947 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
6948 * except.c (switch_to_exception_section): Use a read-only section
6949 even if EH_FRAME_SECTION_NAME is undefined.
6950 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
6951 * collect2.c (write_c_file_stat): Provide dbase on AIX.
6952 (scan_prog_file): Don't export __dso_handle nor
6954 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6955 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6956 (ASM_OUTPUT_DWARF_PCREL): Define.
6957 (ASM_OUTPUT_DWARF_DATAREL): Define.
6958 (EH_FRAME_THROUGH_COLLECT2): Define.
6959 (EH_FRAME_IN_DATA_SECTION): Delete.
6960 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
6961 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
6963 (rs6000_asm_output_dwarf_datarel): Declare.
6964 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
6965 (rs6000_aix_asm_output_dwarf_datarel): New.
6966 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
6967 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
6968 (EH_FRAME_THROUGH_COLLECT2): Define.
6969 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
6970 (EH_FRAME_THROUGH_COLLECT2): Define.
6971 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6972 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
6973 (EH_FRAME_THROUGH_COLLECT2): New.
6974 (ASM_OUTPUT_DWARF_DATAREL): New.
6975 * doc/tm.texi: Regenerate.
6977 2015-09-18 Richard Biener <rguenther@suse.de>
6979 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
6980 we're in early phase.
6981 (schedule_generic_params_dies_gen): Likewise.
6982 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
6983 work as possible, retaining unhandled cases.
6984 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
6985 clear out generic_type_instances at the end.
6986 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
6987 (dwarf2out_early_finish): ... here. Do most of
6988 gen_remaining_tmpl_value_param_die_attribute here.
6990 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
6992 PR tree-optimization/67283
6993 * tree-sra.c (type_consists_of_records_p): Rename to...
6994 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6995 (completely_scalarize_record): Rename to...
6996 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6997 (scalarize_elem): New.
6998 (analyze_all_variable_accesses): Follow renamings.
7000 2015-09-18 Richard Biener <rguenther@suse.de>
7002 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
7005 2015-09-18 Richard Biener <rguenther@suse.de>
7007 PR tree-optimization/66142
7008 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
7009 treat MEM[&x] and x the same.
7010 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
7011 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
7012 when we simplified sth.
7013 (vn_reference_maybe_forwprop_address): Likewise.
7014 (valueize_refs_1): When we simplified through
7015 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
7016 set valueized_anything to true.
7017 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
7018 one ref kills the other instead of just a offset-based test.
7019 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
7020 for the operand_equal_p test to compare bases and also compare
7023 2015-09-17 Christian Bruel <christian.bruel@st.com>
7025 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
7027 2015-09-17 Richard Henderson <rth@redhat.com>
7030 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
7031 pointers that encode the alignment of the object.
7033 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7035 PR rtl-optimization/66790
7036 * df-problems.c (LIVE): Amend documentation.
7038 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
7040 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
7042 (GTFILES): Replace optabs.c with optabs-libfunc.c.
7043 * genopinit.c (main): Add an include guard to insn-opinit.h.
7044 Protect the rtx_code parts with NUM_RTX_CODE.
7045 * optabs.h: Split parts out to...
7046 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
7047 * optabs.c: Split parts out to...
7048 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
7049 * cilk-common.c: Include optabs-query.h rather than optabs.h.
7050 * fold-const.c: Likewise.
7051 * target-globals.c: Likewise.
7052 * tree-if-conv.c: Likewise.
7053 * tree-ssa-forwprop.c: Likewise.
7054 * tree-ssa-loop-prefetch.c: Likewise.
7055 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
7056 Remove unncessary include files.
7057 * tree-ssa-phiopt.c: Likewise.
7058 * tree-ssa-reassoc.c: Likewise.
7059 * tree-switch-conversion.c: Likewise.
7060 * tree-vect-data-refs.c: Likewise.
7061 * tree-vect-generic.c: Likewise.
7062 * tree-vect-loop.c: Likewise.
7063 * tree-vect-patterns.c: Likewise.
7064 * tree-vect-slp.c: Likewise.
7065 * tree-vect-stmts.c: Likewise.
7066 * tree-vrp.c: Likewise.
7067 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
7068 rather than optabs.h.
7069 * expr.c: Include optabs-tree.h.
7070 * function.c: Likewise.
7072 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7075 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
7076 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
7077 * config/arm/arm.c: Include common/common-target.h.
7078 (use_return_insn): Return 0 if the static chain register was saved
7079 above a non-APCS frame.
7080 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
7081 (struct scratch_reg): New.
7082 (get_scratch_register_on_entry): New function.
7083 (release_scratch_register_on_entry): Likewise.
7084 (arm_emit_probe_stack_range): Likewise.
7085 (output_probe_stack_range): Likewise.
7086 (arm_expand_prologue): Factor out code dealing with the IP register
7087 for nested function and adjust it for stack checking.
7088 Invoke arm_emit_probe_stack_range if static builtin stack checking
7090 (thumb1_expand_prologue): Sorry out if static builtin stack checking
7092 (arm_expand_epilogue): Add the saved static chain register, if any, to
7093 the amount of pre-pushed registers to pop.
7094 (arm_frame_pointer_required): Return true if static stack checking is
7095 enabled and we want to catch the exception with the EABI unwinder.
7096 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
7097 (UNSPEC_PROBE_STACK_RANGE): Likewise.
7098 * config/arm/arm.md (probe_stack): New insn.
7099 (probe_stack_range): Likewise.
7101 2015-09-17 Richard Biener <rguenther@suse.de>
7103 * genmatch.c (parser::parse_expr): Improve error message
7104 for mis-placed flags.
7106 2015-09-17 Richard Biener <rguenther@suse.de>
7108 * passes.c (rest_of_decl_compilation): Always call early_global_decl
7109 debug hook when we created a varpool node.
7110 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
7111 dwarf2out_early_global_decl, when not just add location or
7112 value attributes to existing DIEs.
7114 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
7116 * config/aarch64/aarch64.md (copysigndf3): New.
7117 (copysignsf3): Likewise.
7119 2015-09-17 David S. Miller <davem@davemloft.net>
7121 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
7122 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
7123 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7124 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7125 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7126 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7127 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7128 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7129 provide when flag_pic.
7131 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
7133 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
7134 object_allocator change.
7136 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7138 PR tree-optimization/66388
7139 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
7140 (dump_iv): Dump no_overflow information.
7141 (alloc_iv): Initialize new field for struct iv.
7142 (mark_bivs): Count number of no_overflow bivs.
7143 (find_deriving_biv_for_expr, record_biv_for_address_use): New
7145 (idx_find_step): Call new functions above.
7146 (add_candidate_1, add_candidate): New paramter.
7147 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
7148 (get_computation_aff): Simplify convertion of cand for BIV.
7149 (get_computation_cost_at): Step cand's base if necessary.
7151 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7153 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
7155 (tree_simplify_using_condition): Ditto.
7156 (simplify_using_initial_conditions): Ditto.
7157 (loop_exits_before_overflow): Pass new argument to function
7158 simplify_using_initial_conditions. Remove case for type conversions
7160 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
7162 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
7163 in iv base using loop initial conditions.
7165 2015-09-16 Jeff Law <law@redhat.com>
7167 PR tree-optimization/47679
7168 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
7169 (free_all_edge_infos): Use it.
7170 (allocate_edge_info): Free preexisting edge info data.
7171 (pass_dominator::execute): Set up initial edge info structures.
7172 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
7174 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
7175 If non-null, then push/pop markers appropriately.
7176 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7177 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
7180 2015-09-16 James Bowman <james.bowman@ftdichip.com>
7182 * config/ft32/ft32.c: Fix the memory address space predicate.
7184 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
7187 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
7188 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7190 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7192 * toplev.h (check_global_declaration): Remove declaration.
7193 * toplev.c (check_global_declaration): Move to ...
7194 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
7195 (analyze_functions): Update call.
7197 2015-09-16 David S. Miller <davem@davemloft.net>
7199 * lra-constraints.c (simplify_operand_subreg): Do not assume that
7200 lowpart of a SUBREG has offset zero.
7202 2015-09-16 Jeff Law <law@redhat.com>
7204 PR tree-optimization/47679
7205 * tree-ssa-dom.c (enum expr_kind): Moved from here to
7206 tree-ssa-scopedtables.h.
7207 (struct hashable_expr, class expr_hash_elt): Likewise.
7208 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
7209 Move associated methods into tree-ssa-scopedtables.c.
7210 (avail_expr_hash, initialize_expr_from_cond): Similarly.
7211 (hashable_expr_equal_p, add_expr_commutative): Likewise.
7212 (add_hashable_expr): Likewise.
7213 (record_cond): Delete element directly.
7214 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
7215 private copy ctor and assignment operator methods.
7216 (expr_elt_hasher): Inline trivial methods.
7217 (initialize_expr_from_cond): Prototype.
7218 * tree-ssa-scopedtables.c: Add necessary includes, functions and
7219 methods that were previously in tree-ssa-dom.c. Improve various
7222 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
7224 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
7226 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
7229 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7232 2015-09-16 Richard Biener <rguenther@suse.de>
7235 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
7236 location of possibly shared trees.
7238 2015-09-16 Richard Biener <rguenther@suse.de>
7241 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
7243 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
7245 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
7246 offset and size computations instead of HOST_WIDE_INT.
7248 2015-09-16 Richard Biener <rguenther@suse.de>
7251 * fold-const.c (extract_muldiv_1): Properly extend multiplication
7252 result before builting a tree via wide_int_to_tree.
7254 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
7256 * Makefile.in: Add memory-block.cc
7257 (pool_allocator::initialize): Use fixed block size.
7258 (pool_allocator::release): Use memory_block_pool.
7259 (pool_allocator::allocate): Likewise.
7260 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
7262 * cfg.c (initialize_original_copy_tables): Likewise.
7263 * cselib.c (elt_list_pool, elt_loc_list_pool,
7264 cselib_val_pool): Likewise.
7265 * df-problems.c (df_chain_alloc): Likewise.
7266 * df-scan.c (df_scan_alloc): Likewise.
7267 * dse.c (cse_store_info_pool, rtx_store_info_pool,
7268 read_info_type_pool, insn_info_type_pool, bb_info_pool,
7269 group_info_pool, deferred_change_pool): Likewise.
7270 * et-forest.c (et_nodes, et_occurrences): Likewise.
7271 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
7272 ipcp_agg_lattice_pool): Likewise.
7273 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
7274 * ipa-profile.c (histogram_pool): Likewise.
7275 * ipa-prop.c (ipa_refdesc_pool): Likewise.
7276 * ira-build.c (live_range_pool, allocno_pool, object_pool,
7277 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
7278 * ira-color.c (update_cost_record_pool): Likewise.
7279 * lra-lives.c (lra_live_range_pool): Likewise.
7280 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
7281 * memory-block.cc: New file.
7282 * memory-block.h: New file.
7283 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
7284 * sched-deps.c (sched_deps_init): Likewise.
7285 * sel-sched-ir.c (sched_lists_pool): Likewise.
7286 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
7287 * tree-sra.c (access_pool): Likewise.
7288 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7289 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
7290 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
7291 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7292 * tree-ssa-strlen.c (strinfo_pool): Likewise.
7293 * tree-ssa-structalias.c (variable_info_pool): Likewise.
7294 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
7295 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
7297 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7299 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
7301 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
7304 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7306 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
7307 to pass TLS call argument, according to current ABI.
7308 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
7309 callx0 for TLS call, according to current ABI.
7311 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7313 * tree-eh.c (lower_try_finally_dup_block): Clear location information
7314 on stack restore statements.
7315 (decide_copy_try_finally): Do not consider a stack restore statement as
7316 coming from sources.
7318 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
7320 * config/alpha/alpha.c (alpha_expand_block_clear): Use
7321 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
7323 2015-09-15 Jeff Law <law@redhat.com>
7325 PR tree-optimization/47679
7326 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
7327 methods and private members.
7328 (avail_exprs_stack): Similarly. Change type of global
7329 from a pair of expr_hash_elt_t to the new class.
7330 (expr_elt_hasher::hash): Corresponding changes.
7331 (expr_elt_hasher::equal): Similarly.
7332 (avail_expr_hash): Similarly.
7333 (pass_dominator::execute): Similarly.
7334 (dom_opt_dom_walker::thread_across_edge): Similarly.
7335 (record_cond): Similarly.
7336 (dom_opt_dom_walker::before_dom_children): Similarly.
7337 (dom_opt_dom_walker::after_dom_children): Similarly.
7338 (lookup_avail_expr): Likewise.
7339 (initialize_hash_element): Now a expr_hash_elt constructor.
7340 (initialize_hash_element_from_expr): Similarly.
7341 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
7342 (free_expr_hash_elt): Call dtor for the element.
7343 (remove_local_expressions_from_table): Now the "pop_to_marker"
7344 method in the available_exprs_stack class.
7345 (avail_expr_stack::record_expr): Method factored out.
7346 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
7348 (hashable_expr_equal_p): Fix formatting.
7350 2015-09-15 David Malcolm <dmalcolm@redhat.com>
7352 * input.h (location_get_source_line): Drop "expanded_location"
7353 param in favor of a file and line number.
7354 * input.c (location_get_source_line): Likewise.
7355 (dump_location_info): Update for change in signature of
7356 location_get_source_line.
7357 * diagnostic.c (diagnostic_print_caret_line): Likewise.
7359 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7361 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7362 Bump to 4KB for SJLJ exceptions.
7363 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
7364 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7365 * doc/tm.texi: Regenerate.
7367 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7369 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7370 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
7373 2015-09-15 Richard Biener <rguenther@suse.de>
7375 PR tree-optimization/67470
7376 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7377 structure for PHI hoisting by inserting a forwarder block
7380 2015-09-15 Christian Bruel <christian.bruel@st.com>
7382 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7383 (arm_option_print): New function.
7385 2015-09-15 Christian Bruel <christian.bruel@st.com>
7388 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7389 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7390 Remove flags parameter.
7391 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7392 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7393 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7394 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7395 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7396 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7397 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7398 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7400 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7402 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7404 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7405 AARCH64_VALID_SIMD_DREG_MODE.
7407 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7409 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7410 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7411 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7412 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7413 aarch64_ld4_lane<mode>): Combine together, making...
7414 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7415 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7416 aarch64_st4_lane<mode>): Combine together, making...
7417 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7418 * config/aarch64/iterators.md (nregs): Add comment.
7420 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7422 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7423 Change operand mode from <V_TWO_ELEM> to BLK.
7424 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7425 (aarch64_vec_store_lanesoi_lane<mode): Likewise
7426 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7427 (aarch64_ld2_lane<mode>): Likewise.
7428 (aarch64_st2_lane<VQ:mode>): Likewise.
7429 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7431 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7433 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7434 Change operand mode from <V_FOUR_ELEM> to BLK.
7435 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7436 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7437 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7438 (aarch64_ld4_lane<mode>): Likewise.
7439 (aarch64_st4_lane<mode>): Likewise.
7440 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7442 2015-09-15 Richard Biener <rguenther@suse.de>
7445 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7446 transfer EH info from old to new stmt.
7447 (replace_call_with_value): Likewise.
7448 (replace_call_with_call_and_fold): Likewise.
7449 (gimple_fold_builtin_memory_op): Likewise.
7450 (gimple_fold_builtin_memset): Likewise.
7451 (gimple_fold_builtin_stpcpy): Likewise.
7452 (gimple_fold_call): Likewise.
7454 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7456 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7458 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7459 (aarch64_simd_intEI_type_node): Likewise.
7460 (aarch64_simd_builtin_std_type): Remove EImode case.
7461 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7462 * config/aarch64/aarch64-modes.def: Remove EImode.
7464 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7466 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7467 Change operand mode from <V_THREE_ELEM> to BLK.
7468 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7469 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7470 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7471 (aarch64_ld3_lane<mode>): Likewise.
7472 (aarch64_st3_lane<mode>): Likewise.
7473 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7475 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7477 * config/aarch64/aarch64-simd.md
7478 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7479 Change all TImode operands to BLKmode.
7480 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7481 Change all EImode operands to BLKmode.
7482 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7483 Change all OImode operands to BLKmode.
7485 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7486 and call set_mem_size.
7487 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7489 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7491 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7493 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7495 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7497 (vec_store_lanesci_lane<mode>): Rename to...
7498 (aarch64_vec_store_lanesci_lane<mode>): ...this.
7500 (vec_store_lanesxi_lane<mode>): Rename to...
7501 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7503 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7504 aarch64_st4_lane<mode>): Follow renaming.
7506 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7508 * config/s390/s390.c (s390_const_operand_ok): Add missing
7511 2015-09-15 Richard Biener <rguenther@suse.de>
7514 * lto-streamer.h (lto_location_cache::current_sysp): Properly
7516 * lto-streamer-out.c (clear_line_info): Likewise.
7518 2015-09-15 Richard Biener <rguenther@suse.de>
7520 * doc/match-and-simplify.texi: Fix wording.
7522 2015-09-15 Bin Cheng <bin.cheng@arm.com>
7524 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7525 unnecessary type conversion in op1.
7527 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7529 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7530 (dup_block_and_redirect): Delete function.
7531 (can_dup_for_shrink_wrapping): New function.
7532 (fix_fake_fallthrough_edge): New function.
7533 (try_shrink_wrapping): Rewrite function.
7534 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7536 2015-09-14 Rich Felker <dalias@libc.org>
7538 * configure.ac: Change target pattern for sh TLS support
7539 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7540 * configure: Regenerate.
7542 2015-09-14 Jeff Law <law@redhat.com>
7544 PR tree-optimization/47679
7545 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7546 type rather than void *.
7548 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7551 * diagnostic.c (diagnostic_initialize): Do not set
7552 some_warnings_are_errors.
7553 (diagnostic_finish): Use DK_WERROR count instead.
7554 (diagnostic_report_diagnostic): Do not set
7555 some_warnings_are_errors.
7556 * diagnostic.h (struct diagnostic_context): Remove
7557 some_warnings_are_errors.
7559 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
7561 * config/sparc/predicates.md (const_all_ones_operand): Use
7562 CONSTM1_RTX to simplify definition.
7564 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
7567 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7570 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
7572 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7573 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7574 OPT_fshow_column to handled saved option cases.
7575 (append_compiler_options): Do not skip the above added options.
7577 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7580 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7581 nopcrelative_literal_loads.
7582 (aarch64_classify_address): Likewise.
7583 (aarch64_constant_pool_reload_icode): Define.
7584 (aarch64_secondary_reload): Handle secondary reloads for
7586 (aarch64_override_options): Handle nopcrelative_literal_loads.
7587 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7588 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7590 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7591 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7592 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7594 * doc/invoke.texi (mpc-relative-literal-loads): Document.
7596 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
7599 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7600 sync_compare_and_swap_optab libcall to target_oval.
7602 2015-09-14 Marek Polacek <polacek@redhat.com>
7604 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
7606 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
7608 2015-09-11 Mark Wielaard <mjw@redhat.com>
7611 * toplev.c (check_global_declaration): Check and use
7612 warn_unused_const_variable.
7613 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
7614 (-Wunused-variable): Remove non-constant. For C implies
7615 -Wunused-const-variable.
7616 (-Wunused-const-variable): New.
7618 2015-09-14 Richard Biener <rguenther@suse.de>
7620 * doc/match-and-simplify.texi: Update for changed syntax
7621 of inner ifs and the new switch expression.
7623 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7625 * config/i386/haswell.md: New file describing Haswell pipeline.
7626 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
7627 haswell-like processors.
7628 (ix86_reassociation_width): Increase reassociation width for 64-bit
7629 Haswell processor family.
7630 * config/i386/i386.md: Introduce haswell cpu and include new md file.
7632 2015-09-14 Richard Biener <rguenther@suse.de>
7634 * doc/match-and-simplify.texi: Fixup some formatting issues
7635 and document the 's' flag.
7637 2015-09-13 Olivier Hainque <hainque@adacore.com>
7638 Eric Botcazou <ebotcazou@adacore.com>
7640 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
7641 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
7642 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
7643 (TARGET_CPU_gr5): Likewise.
7644 (TARGET_CPU_gr6): Likewise.
7645 (MULTILIB_DEFAULTS): Likewise.
7646 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
7647 for mcpu=gr5 and mcpu=gr6.
7648 (MULTILIB_DIRNAMES): Adjust accordingly.
7650 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7652 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
7653 (mem_ref_p): Likewise.
7654 (outermost_indep_loop): Adjust.
7655 (mem_ref_in_stmt): Likewise.
7656 (determine_max_movement): Likewise.
7657 (mem_ref_alloc): Likewise.
7658 (record_mem_ref_loc): Likewise.
7659 (set_ref_stored_in_loop): Likewise.
7660 (mark_ref_stored): Likewise.
7661 (gather_mem_refs_stmt): Likewise.
7662 (mem_refs_may_alias_p): Likewise.
7663 (for_all_locs_in_loop): Likewise.
7664 (struct rewrite_mem_ref_loc): Likewise.
7665 (rewrite_mem_refs): Likewise.
7666 (struct first_mem_ref_loc_1): Likewise.
7667 (first_mem_ref_loc): Likewise.
7668 (struct sm_set_flag_if_changed): Likewise.
7669 (execute_sm_if_changed_flag_set): Likewise.
7670 (execute_sm): Likewise.
7671 (hoist_memory_references):
7672 (struct ref_always_accessed): Likewise.
7673 (ref_always_accessed_p): Likewise.
7674 (refs_independent_p): Likewise.
7675 (record_dep_loop): Likewise.
7676 (ref_indep_loop_p_1): Likewise.
7677 (ref_indep_loop_p_2): Likewise.
7678 (ref_indep_loop_p): Likewise.
7679 (can_sm_ref_p): Likewise.
7680 (find_refs_for_sm): Likewise.
7681 (tree_ssa_lim_finalize): Likewise.
7683 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7685 * dwarf2out.c (dw_attr_ref): Remove typedef.
7686 (dw_line_info_ref): Likewise.
7687 (pubname_ref): Likewise.
7688 (dw_ranges_ref): Likewise.
7689 (dw_ranges_by_label_ref): Likewise.
7690 (comdat_type_node_ref): Likewise.
7692 (get_AT_low_pc): Likewise.
7693 (get_AT_hi_pc): Likewise.
7694 (get_AT_string): Likewise.
7695 (get_AT_flag): Likewise.
7696 (get_AT_unsigned): Likewise.
7697 (get_AT_ref): Likewise.
7698 (get_AT_file): Likewise.
7699 (remove_AT): Likewise.
7700 (print_die): Likewise.
7701 (check_die): Likewise.
7702 (die_checksum): Likewise.
7703 (attr_checksum_ordered): Likewise.
7704 (struct checksum_attributes): Likewise.
7705 (collect_checksum_attributes): Likewise.
7706 (die_checksum_ordered): Likewise.
7707 (same_die_p): Likewise.
7708 (is_declaration_die): Likewise.
7709 (clone_die): Likewise.
7710 (clone_as_declaration): Likewise.
7711 (copy_declaration_context): Likewise.
7712 (break_out_comdat_types): Likewise.
7713 (copy_decls_walk): Likewise.
7714 (output_location_lists): Likewise.
7715 (external_ref_hasher::hash): Likewise.
7716 (optimize_external_refs_1): Likewise.
7717 (build_abbrev_table): Likewise.
7718 (size_of_die): Likewise.
7719 (unmark_all_dies): Likewise.
7720 (size_of_pubnames): Likewise.
7721 (output_die_abbrevs): Likewise.
7722 (output_die): Likewise.
7723 (output_pubnames): Likewise.
7724 (add_ranges_num): Likewise.
7725 (add_ranges_by_labels): Likewise.
7726 (add_high_low_attributes): Likewise.
7727 (gen_producer_string): Likewise.
7728 (dwarf2out_set_name): Likewise.
7729 (new_line_info_table): Likewise.
7730 (prune_unused_types_walk_attribs): Likewise.
7731 (prune_unused_types_update_strings): Likewise.
7732 (prune_unused_types): Likewise.
7733 (resolve_addr): Likewise.
7734 (optimize_location_lists_1): Likewise.
7735 (index_location_lists): Likewise.
7736 (dwarf2out_finish): Likewise.
7738 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7740 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
7742 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7744 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
7745 (dump_asserts_for): Adjust.
7746 (register_new_assert_for): Likewise.
7747 (process_assert_insertions): Likewise.
7748 (insert_range_assertions): Likewise.
7750 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7752 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
7754 (new_temp_expr_table): Adjust.
7755 (free_temp_expr_table): Likewise.
7756 (version_to_be_replaced_p): Likewise.
7757 (make_dependent_on_partition): Likewise.
7758 (add_to_partition_kill_list): Likewise.
7759 (remove_from_partition_kill_list): Likewise.
7760 (add_dependence): Likewise.
7761 (finished_with_expr): Likewise.
7762 (process_replaceable): Likewise.
7763 (kill_expr): Likewise.
7764 (kill_virtual_exprs): Likewise.
7765 (mark_replaceable): Likewise.
7766 (find_replaceable_in_bb): Likewise.
7767 (find_replaceable_exprs): Likewise.
7768 (debug_ter): Likewise.
7770 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7772 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
7773 (struct btr_user): Rename from btr_user_s.
7774 (struct btr_def): Rename from btr_def_s.
7775 (find_btr_def_group): Adjust.
7776 (add_btr_def): Likewise.
7777 (new_btr_user): Likewise.
7778 (note_other_use_this_block): Likewise.
7779 (compute_defs_uses_and_gen): Likewise.
7780 (link_btr_uses): Likewise.
7781 (build_btr_def_use_webs): Likewise.
7782 (block_at_edge_of_live_range_p): Likewise.
7783 (btr_def_live_range): Likewise.
7784 (combine_btr_defs): Likewise.
7785 (move_btr_def): Likewise.
7786 (migrate_btr_def): Likewise.
7787 (migrate_btr_defs): Likewise.
7789 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7791 * var-tracking.c (shared_hash_def): Rename to shared_hash.
7792 (shared_hash): Remove typedef.
7793 (struct dataflow_set): Adjust.
7794 (shared_hash_unshare): Likewise.
7795 (dataflow_set_merge): Likewise.
7796 (vt_initialize): Likewise.
7797 (vt_finalize): Likewise.
7799 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7801 * var-tracking.c (struct location_chain): Rename from
7803 (struct variable_part): Adjust.
7804 (variable_htab_free): Likewise.
7805 (unshare_variable): Likewise.
7806 (get_init_value): Likewise.
7807 (get_addr_from_local_cache): Likewise.
7808 (drop_overlapping_mem_locs): Likewise.
7809 (val_reset): Likewise.
7810 (struct variable_union_info): Likewise.
7811 (variable_union): Likewise.
7812 (find_loc_in_1pdv): Likewise.
7813 (insert_into_intersection): Likewise.
7814 (intersect_loc_chains): Likewise.
7815 (canonicalize_loc_order_check): Likewise.
7816 (canonicalize_values_mark): Likewise.
7817 (canonicalize_values_star): Likewise.
7818 (canonicalize_vars_star): Likewise.
7819 (variable_merge_over_cur): Likewise.
7820 (remove_duplicate_values): Likewise.
7821 (variable_post_merge_new_vals): Likewise.
7822 (variable_post_merge_perm_vals): Likewise.
7823 (find_mem_expr_in_1pdv): Likewise.
7824 (dataflow_set_preserve_mem_locs): Likewise.
7825 (dataflow_set_remove_mem_locs): Likewise.
7826 (variable_part_different_p): Likewise.
7827 (onepart_variable_different_p): Likewise.
7828 (find_src_set_src): Likewise.
7829 (dump_var): Likewise.
7830 (set_slot_part): Likewise.
7831 (clobber_slot_part): Likewise.
7832 (delete_slot_part): Likewise.
7833 (vt_expand_var_loc_chain): Likewise.
7834 (emit_note_insn_var_location): Likewise.
7835 (vt_finalize): Likewise.
7837 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7839 * dse.c (store_info_t): Remove typedef.
7840 (group_info_t): Likewise.
7841 (const_group_info_t): Likewise.
7842 (deferred_change_t): Likewise.
7843 (get_group_info): Adjust.
7844 (free_store_info): Likewise.
7845 (canon_address): Likewise.
7846 (clear_rhs_from_active_local_stores): Likewise.
7847 (record_store): Likewise.
7848 (replace_read): Likewise.
7849 (check_mem_read_rtx): Likewise.
7850 (scan_insn): Likewise.
7851 (remove_useless_values): Likewise.
7852 (dse_step1): Likewise.
7853 (dse_step2_init): Likewise.
7854 (dse_step2_nospill): Likewise.
7855 (scan_stores_nospill): Likewise.
7856 (scan_reads_nospill): Likewise.
7857 (dse_step3_exit_block_scan): Likewise.
7858 (dse_step3): Likewise.
7859 (dse_step5_nospill): Likewise.
7860 (dse_step6): Likewise.
7862 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7864 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
7865 (alias_set_entry): Remove typedef.
7866 (alias_set_subset_of): Adjust.
7867 (alias_sets_conflict_p): Likewise.
7868 (init_alias_set_entry): Likewise.
7869 (get_alias_set): Likewise.
7870 (new_alias_set): Likewise.
7871 (record_alias_subset): Likewise.
7873 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
7875 * doc/install.texi (Downloading the source): Mark up
7876 contrib/download_prerequisites properly and drop leading "./".
7878 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7880 * config/arc/arc.h: Remove define of STRUCT_VALUE.
7881 * config/lm32/lm32.h: Likewise.
7882 * config/mep/mep.h: Likewise.
7883 * config/visium/visium.h: Likewise.
7884 * system.h: Poison STRUCT_VALUE macro.
7886 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
7888 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
7889 CONSTANT_P operands.
7891 2015-09-11 David S. Miller <davem@davemloft.net>
7893 * config/sparc/constraints.md: Make "U" constraint a real register
7895 * config/sparc/sparc.c (TARGET_LRA_P): Define.
7896 (D_MODES, DF_MODES): Add missing cast.
7897 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
7898 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
7899 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
7901 * config/sparc/sparc.h (PROMOTE_MODE): Define.
7902 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
7903 provide these insn when flag_pic.
7905 2015-09-11 Jeff Law <law@redhat.com>
7907 PR tree-optimization/47679
7908 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
7909 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
7910 member with m_. Update inline member functions as necessary. Add
7912 * tree-ssa-scopedtables.c: Update const_and_copies's member
7913 functions to use m_ prefix to access the stack.
7915 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
7917 * graphite-optimize-isl.c (disable_tiling): Remove.
7918 (get_schedule_for_band): Do not use disable_tiling.
7919 (get_prevector_map): Delete function.
7920 (enable_polly_vector): Remove.
7921 (get_schedule_for_band_list): Remove dead code.
7923 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
7925 * graphite-optimize-isl.c (get_tile_map): Refactor.
7926 (get_schedule_for_band): Same.
7927 (getScheduleForBand): Same.
7928 (get_prevector_map): Same.
7929 (get_schedule_for_band_list): Same.
7930 (get_schedule_map): Same.
7931 (get_single_map): Same.
7932 (apply_schedule_map_to_scop): Same.
7933 (optimize_isl): Same.
7935 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7938 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
7940 * config/aarch64/iterators.md (GPF_TF_F16): New.
7943 2015-09-10 Nathan Sidwell <nathan@acm.org>
7945 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
7946 (nvptx_reorg): Adjust comments.
7948 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
7951 * configure.ac: Check if setenv and unsetenv are declared.
7952 * configure: Rebuild.
7953 * config.in: Rebuild.
7954 * system.h: Declare setenv and unsetenv if not declared.
7956 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7958 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
7959 commentary to simplify permute mask adjustment equation.
7960 (special_handling_values): Add SH_VPERM.
7961 (const_load_sequence_p): New function.
7962 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
7963 the mask loaded from the constant pool.
7964 (adjust_vperm): New function.
7965 (handle_special_swappables): Call adjust_vperm.
7966 (dump_swap_insn_table): Handle SH_VPERM.
7968 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
7970 * shrink-wrap.c (requires_stack_frame_p): Remove static.
7971 * shrink-wrap.h (requires_stack_frame_p): Put back.
7973 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
7975 * reload1.c (elimination_costs_in_insn): Locally turn
7976 -Wmaybe-uninitialized into a warning.
7978 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
7980 * shrink-wrap.c (requires_stack_frame_p): Make static.
7981 (prepare_shrink_wrap): Likewise.
7982 (dup_block_and_redirect): Likewise.
7983 * shrink-wrap.h: Remove declarations of those functions.
7985 2015-09-10 Mark Wielaard <mjw@redhat.com>
7987 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
7989 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
7992 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
7993 missing simplify_gen_subreg.
7995 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7997 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
7998 the vector element is bigger than 64 bit.
8000 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8002 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
8003 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
8005 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8007 * config/s390/s390.c: Add V1TImode to constant pool modes.
8009 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8012 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
8013 predicate. Set predicable_short_it attr to "no".
8015 2015-09-10 Jiong Wang <jiong.wang@arm.com>
8017 PR rtl-optimization/67421
8018 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
8019 left wide shift tranformation.
8021 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8023 * common/config/arc/arc-common.c: Remove references to A5.
8024 * config/arc/arc-opts.h: Likewise.
8025 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
8026 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
8027 * config/arc/t-arc-newlib: Likewise.
8029 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8031 * config/arc/arc.md (length): Fix attribute length for conditional
8032 executed instructions with long immediate.
8034 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8036 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
8037 type for second alternative.
8039 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
8041 * doc/invoke.texi (Downloading GCC): Mention
8042 contrib/download_prerequisites script.
8044 2015-09-10 Jakub Jelinek <jakub@redhat.com>
8047 * gimplify.c (gimplify_omp_for): If inner stmt is not found
8048 for combined loop, assert seen_error () and return GS_ERROR.
8051 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
8052 if decl is already in outer->variables.
8055 * gimplify.c (gimplify_scan_omp_clauses): Instead of
8056 asserting that decl is not specified in octx->variables,
8057 break out of the loop if it is.
8060 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
8061 iterator is not explicitly determined, but is defined inside
8062 of the combined workshare region, handle it like if it has
8063 DECL_EXPR in OMP_FOR_PRE_BODY.
8065 2015-09-09 Nathan Sidwell <nathan@acm.org>
8067 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
8068 (*cmp<mode>): Add assembler spacing.
8069 (setcc_int<mode>, set_cc_float<mode>): Likewise.
8070 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
8072 (write_func_decl_from_insn): Refactor argument loops & comma emission.
8073 (nvptx_expand_call): Likewise.
8074 (nvptx_output_call_insn): Likewise.
8075 (nvptx_reorg_subreg): Add spacing.
8077 2015-09-09 Marek Polacek <polacek@redhat.com>
8080 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
8083 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8086 * doc/invoke.texi ([Wsubobject-linkage]): Document.
8088 2015-09-09 Tom de Vries <tom@codesourcery.com>
8090 * params-list.h: Add missing copyright notice.
8092 2015-09-09 Nathan Sidwell <nathan@acm.org>
8094 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
8095 sel_truesi, not andsi.
8097 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8099 * config/arm/arm.md (*subsi3_compare0): Rename to...
8100 (subsi3_compare0): ... This.
8101 (modsi3): New define_expand.
8102 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
8103 when operand is power of 2.
8105 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8107 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
8108 (*neg<mode>2_compare0): Rename to...
8109 (neg<mode>2_compare0): ... This.
8110 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
8111 Move check for speed inside the if-then-elses. Reflect
8112 CSNEG sequence in MOD by power of 2 case.
8114 2015-09-09 Alan Modra <amodra@gmail.com>
8117 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
8118 reload replacement for PRE_MODIFY address reg.
8120 2015-09-09 Sebastian Pop <s.pop@samsung.com>
8122 PR tree-optimization/53852
8123 * config.in: Regenerate.
8124 * configure: Regenerate.
8125 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
8126 * graphite-optimize-isl.c (optimize_isl): Stop computation when
8127 PARAM_MAX_ISL_OPERATIONS is reached.
8128 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
8129 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
8130 result equal to isl_stat_ok as the status now can be isl_error_quota.
8131 (subtract_commutative_associative_deps): Same.
8132 (compute_deps): Same.
8134 2015-09-08 Aditya Kumar <hiraditya@msn.com>
8135 Sebastian Pop <s.pop@samsung.com>
8137 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8138 Return the parameter if it was saved in corresponding
8139 parameter_rename_map of the region.
8140 (copy_def): Copy def from sese region to the newly created region.
8141 (copy_internal_parameters): Copy all the internal parameters defined
8142 within a region to the newly created region.
8143 (graphite_regenerate_ast_isl): Copy parameters to the new region before
8144 translating isl to gimple.
8145 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
8146 the loop-nest does not have any data-references.
8147 (build_graphite_scops): Create a scop only when there is at least one
8149 (contains_only_close_phi_nodes): Deleted.
8150 (print_graphite_scop_statistics): Deleted
8151 (print_graphite_statistics): Deleted
8152 (limit_scops): Deleted.
8153 (build_scops): Removed call to limit_scops.
8154 * sese.c (new_sese): Construct.
8155 (free_sese): Destruct.
8156 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
8158 (set_rename): Pass sese region so that parameters inside the region can
8159 be added to its parameter_rename_map.
8160 (rename_uses): Pass sese region.
8161 (graphite_copy_stmts_from_block): Do not copy parameters that have been
8162 generated in the header of the scop. For each SSA_NAME in the
8163 parameter_rename_map rename its usage.
8164 (invariant_in_sese_p_rec): Return false if tree t is defined outside
8166 (scalar_evolution_in_region): If the tree t is invariant just return t.
8167 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
8168 struct sese to keep track of all the parameters which need renaming.
8169 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
8171 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
8173 2015-09-08 Tom de Vries <tom@codesourcery.com>
8175 * Makefile.in (generated_files): Add params.list.
8176 (params.list, s-params.list): Add rule.
8177 * params.h (enum compiler_param): Include params-list.h. Move define
8178 DEFPARAM, include params.def and undef DEFPARAM ...
8179 * params-list.h: ... here. New file.
8181 2015-09-08 David Malcolm <dmalcolm@redhat.com>
8183 * pretty-print.h (printer_fn): Fix typo in comment.
8185 2015-09-07 Jeff Law <law@redhat.com>
8187 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
8189 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8191 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
8192 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
8193 (arm_neon_fp16_hw): New.
8195 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8197 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
8198 UNITS_PER_WORD >= 4.
8200 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8202 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
8203 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
8204 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
8205 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
8206 (aarch64_float_extend_lo_v2df): Rename to...
8207 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
8209 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
8210 (float_extend_lo): Add v4sf.
8212 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
8213 * config/aarch64/iterators.md (VQ_HSF): New iterator.
8214 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
8215 (Vwide): New mode_attr.
8217 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8219 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
8220 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
8221 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
8222 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
8223 V4HF and V8HF variants to iterator.
8225 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
8227 * config/aarch64/iterators.md (VDQF_F16): New.
8228 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
8230 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8232 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
8233 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8234 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
8235 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
8236 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
8237 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8238 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
8239 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
8240 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
8241 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
8242 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
8243 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8244 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
8245 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
8246 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
8247 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
8248 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
8249 vld1q_dup_f16): New.
8251 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8253 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
8254 Reparameterize to...
8255 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
8256 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
8257 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
8259 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
8261 (float_truncate_lo_): Use BUILTIN_VDF iterator.
8263 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
8265 * config/aarch64/iterators.md (VDF, Vdtype): New.
8266 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
8268 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8270 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
8271 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
8272 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
8273 Add __builtin_aarch64_simd_hf.
8274 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
8275 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
8276 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
8277 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
8278 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
8279 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
8280 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
8281 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
8282 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
8284 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
8285 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
8286 (VDC, Vdbl): Add V4HF.
8288 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8290 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
8291 V4HFmode and V8HFmode.
8292 (aarch64_split_simd_move): Add case for V8HFmode.
8293 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
8294 (aarch64_simd_builtin_std_type): Handle HFmode.
8295 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
8297 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
8298 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
8299 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
8301 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
8304 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
8305 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
8307 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
8308 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
8309 vst1q_lane_f16): New.
8310 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
8311 (VALLDI_F16, VALL_F16): New.
8312 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
8313 Add cases for V4HF and V8HF.
8314 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
8316 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8318 * config/arm/arm-builtins.c (VAR11, VAR12): New.
8319 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
8320 vld4_dup): Add v4hf variant.
8321 (vget_high, vget_low): Add v8hf variant.
8322 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
8323 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
8324 v4hf and v8hf variants.
8326 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
8328 (V_DOUBLE): Add case for V4HF.
8330 (V_HALF): Add case for V8HF.
8331 (VDQX): Add V4HF, V8HF.
8332 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
8333 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
8335 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
8336 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
8337 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
8338 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
8339 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
8340 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
8341 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
8342 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
8343 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
8345 (neon_vcreate, neon_vreinterpretv8qi<mode>,
8346 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8347 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
8348 Change VDX to VD_RE.
8350 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
8351 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
8352 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
8354 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8355 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8356 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8357 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8358 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8359 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8360 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8361 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8362 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8364 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8366 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8367 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8368 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8369 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8370 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8371 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8372 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8373 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8374 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8375 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8378 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8380 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8382 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8384 * config/arm/arm-builtins.c (v8hf_UP): New.
8385 (arm_init_simd_builtin_types): Initialise Float16x8_t.
8387 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8389 * config/arm/arm_neon.h (float16x8_t): New typedef.
8391 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8393 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8394 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8395 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8396 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8397 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8398 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8399 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8400 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8401 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8402 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8404 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
8406 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8407 non-alphanumeric characters in the symbol name.
8409 2015-09-07 Marek Polacek <polacek@redhat.com>
8412 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8415 2015-09-07 Marek Polacek <polacek@redhat.com>
8417 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8419 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
8421 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8424 2015-09-04 Jakub Jelinek <jakub@redhat.com>
8427 * tree-ssa-live.c: Include cfgloop.h.
8428 (remove_unused_locals): Clear loop->simduid if simduid is about
8429 to be removed from cfun->local_decls.
8431 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8434 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8437 2015-09-04 Tom de Vries <tom@codesourcery.com>
8439 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8441 2015-09-04 Jeff Law <law@redhat.com>
8443 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8444 unnecessary constructor. It's now trivial and implemented inside...
8445 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8446 constructor. Add comments to various methods. Remove unused
8448 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8449 * tree-vrp.c (identify_jump_threads): Likewise.
8450 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8452 (thread_across_edge): Similarly.
8453 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8454 arguments in constructor call.
8456 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8458 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8459 temp path contains a '-'.
8461 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8462 Petr Murzin <petr.murzin@intel.com>
8463 Kirill Yukhin <kirill.yukhin@intel.com>
8465 * config/i386/i386-builtin-types.def
8466 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8467 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8468 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8469 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8470 * config/i386/i386.c
8471 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8472 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8473 IX86_BUILTIN_SCATTERALTDIV16SI.
8474 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8475 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8476 __builtin_ia32_scatteraltdiv8si.
8477 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8478 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8479 IX86_BUILTIN_SCATTERALTDIV16SI.
8480 (ix86_vectorize_builtin_scatter): New.
8481 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8482 ix86_vectorize_builtin_scatter.
8484 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8485 Petr Murzin <petr.murzin@intel.com>
8486 Kirill Yukhin <kirill.yukhin@intel.com>
8488 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8489 * doc/tm.texi: Regenerate.
8490 * target.def: Add scatter builtin.
8491 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8492 for loads/stores in case of gather/scatter accordingly.
8493 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8494 STMT_VINFO_GATHER_P(S).
8495 (vect_check_gather): Rename to ...
8496 (vect_check_gather_scatter): this.
8497 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8498 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8499 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8500 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8501 variable and new checkings for it accordingly.
8503 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8504 STMT_VINFO_GATHER_P(S).
8505 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8506 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8508 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8510 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8512 (mulv16qi3): New define_expand.
8514 2015-09-03 Martin Sebor <msebor@redhat.com>
8517 * doc/extend.texi (Other Builtins): Document when the address
8518 of a built-in function can be taken.
8520 2015-09-03 Richard Biener <rguenther@suse.de>
8522 * dwarf2out.c (flush_limbo_die_list): Split out from ...
8523 (dwarf2out_early_finish): ... here.
8524 (dwarf2out_finish): Do not call dwarf2out_early_finish but
8525 flush_limbo_die_list. Assert we have no deferred asm names.
8527 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8529 * optabs.c (expand_binop): Don't create a broadcast vector with a
8530 source element wider than the inner mode.
8532 2015-09-03 Richard Biener <rguenther@suse.de>
8534 * varasm.c (output_constant): Use fold_convert instead of
8537 2015-09-03 Tom de Vries <tom@codesourcery.com>
8539 PR tree-optimization/65637
8540 * omp-low.c (expand_omp_for_static_chunk): Handle case that
8541 fin_bb has 2 predecessors.
8543 2015-09-03 Tom de Vries <tom@codesourcery.com>
8545 PR tree-optimization/65637
8546 * omp-low.c (find_phi_with_arg_on_edge): New function.
8547 (expand_omp_for_static_chunk): Fix inner loop phi.
8549 2015-09-03 Tom de Vries <tom@codesourcery.com>
8551 PR tree-optimization/65637
8552 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8555 2015-09-03 Tom de Vries <tom@codesourcery.com>
8557 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8559 2015-09-03 Tom de Vries <tom@codesourcery.com>
8561 * doc/invoke.texi (parloops-chunk-size): Add item.
8562 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8563 * tree-parloops.c: Include params.h.
8564 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8565 param parloops-chunk-size is used.
8567 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8570 * fold-const.c (fold_binary_loc) : Move
8571 Transform (x >> c) << c into x & (-1<<c) or
8572 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8573 types using simplify and match.
8574 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8575 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8577 2015-09-03 Richard Biener <rguenther@suse.de>
8580 * tree-ssa-structalias.c (ctor_for_analysis): New function.
8581 (create_variable_info_for_1): Use ctor_for_analysis instead
8583 (create_variable_info_for): Likewise.
8585 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
8588 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8589 in new callgraph edge.
8591 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
8596 * config/aarch64/aarch64-simd.md
8597 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8598 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8599 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8600 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8602 2015-09-02 Alan Modra <amodra@gmail.com>
8604 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
8605 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
8606 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
8608 2015-09-02 Alan Modra <amodra@gmail.com>
8611 * config/rs6000/predicates.md (current_file_function_operand): Don't
8612 return true for weak symbols.
8613 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
8615 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
8616 Andrew Bennett <andrew.bennett@imgtec.com>
8618 * config/mips/mips-opts.h (mips_cb_setting): New enum.
8619 * config/mips/mips-protos.h: Add definitions for
8620 mips_output_jump and mips_output_equal_conditional_branch
8621 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
8623 (mips_emit_compare): Add support for the MIPS R6 conditional
8625 (mips_process_sync_loop): Likewise.
8626 (mips_output_order_conditional_branch): Likewise.
8627 (mips16_build_call_stub): Change MIPS_CALL to
8629 (mips_print_operand_punctuation): Update 's' case to only
8630 apply to micromips r2.
8631 (mips_adjust_insn_length): Add support for forbidden slot
8633 (mips_avoid_hazard): Likewise.
8634 (mips_reorg_process_insns): Likewise.
8635 (mips_output_jump): New function.
8636 (mips_output_equal_conditional_branch): Likewise.
8637 (mips_output_conditional_branch): Use jrc/bc if compact
8638 branch support is enabled. Ensure the forbidden slots
8639 between the two branch instructions is filled with a nop.
8640 (mips_option_override): Add support to process the compact
8641 branch option and set the correct defaults. Prevent
8642 non-explict relocs being using for MIPS R6.
8643 (mips_trampoline_init): Add compact branch support.
8644 (mips_mult_zero_zero_cost): Allow zero initialisation of
8645 accumulators with TARGET_DSP.
8646 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
8647 (TARGET_CB_MAYBE): New define.
8648 (TARGET_CB_ALWAYS): New define.
8649 (ISA_HAS_DELAY_SLOTS): New define.
8650 (ISA_HAS_COMPACT_BRANCHES): New define.
8651 (ISA_HAS_JRC): New define.
8652 (MIPS_BRANCH_C): New define.
8653 (MIPS_CALL): Removed.
8654 (MICROMIPS_J): Removed.
8655 * config/mips/mips.md (compact_form): New attr.
8656 (hazard): Add support for forbidden slots.
8657 (define_delay): Add support for compact branches.
8658 (*branch_order<mode>): Likewise.
8659 (*branch_order<mode>_inverted): Likewise.
8660 (*branch_equality<mode>): Likewise.
8661 (*branch_equality<mode>_inverted): Likewise.
8662 (*jump_absolute): Likewise.
8663 (*jump_pic): Likewise.
8664 (indirect_jump): Use mips_output_jump to produce assembly output.
8665 (tablejump_<mode>"): Likewise.
8666 (*<optab>"): Likewise.
8667 (<optab>_internal): Likewise.
8668 (sibcall_internal): Likewise.
8669 (sibcall_value_internal): Likewise.
8670 (sibcall_value_multiple_internal): Likewise.
8671 (call_internal): Likewise.
8672 (call_split): Likewise.
8673 (call_internal_direct): Likewise.
8674 (call_direct_split): Likewise.
8675 (call_value_internal): Likewise.
8676 (call_value_split): Likewise.
8677 (call_value_internal_direct): Likewise.
8678 (call_value_direct_split): Likewise.
8679 (call_value_multiple_internal): Likewise.
8680 (call_value_multiple_split): Likewise.
8681 (mips_get_fcsr_mips16_<mode>): Likewise.
8682 (mips_set_fcsr_mips16_<mode>): Likewise.
8683 (tls_get_tp_mips16_<mode>): Likewise.
8684 * config/mips/mips.opt: Add -mcompact-branches option.
8685 * config/mips/predicates.md (order_operator): Ensure the
8686 conditional compact branches are only used if the ISA them.
8687 * doc/invoke.texi: Document -mcompact-branches option.
8689 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
8692 * lra-lives.c (process_bb_lives): Process move pseudos with the
8693 same value for copies and preferences
8694 * lra-constraints.c (match_reload): Create match reload pseudo
8695 with the same value from single dying input pseudo.
8697 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8700 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
8702 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
8704 * trans-mem.c: Add contributed-by.
8705 * trans-mem.h: Same.
8707 2015-09-01 Richard Biener <rguenther@suse.de>
8709 * expr.c (expand_expr_real_1): For expanding TERed defs
8710 set the current location to that of the def if not UNKNOWN.
8712 2015-09-01 David Sherwood <david.sherwood@arm.com>
8714 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
8716 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8718 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
8719 then_cost, else_cost fields. Change branch_cost field to unsigned int.
8720 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
8722 (noce_simple_bbs): New function.
8723 (noce_try_move): Bail if basic blocks are not simple.
8724 (noce_try_store_flag): Likewise.
8725 (noce_try_store_flag_constants): Likewise.
8726 (noce_try_addcc): Likewise.
8727 (noce_try_store_flag_mask): Likewise.
8728 (noce_try_cmove): Likewise.
8729 (noce_try_minmax): Likewise.
8730 (noce_try_abs): Likewise.
8731 (noce_try_sign_mask): Likewise.
8732 (noce_try_bitop): Likewise.
8733 (bbs_ok_for_cmove_arith): New function.
8734 (noce_emit_all_but_last): Likewise.
8735 (noce_emit_insn): Likewise.
8736 (noce_emit_bb): Likewise.
8737 (noce_try_cmove_arith): Handle non-simple basic blocks.
8738 (insn_valid_noce_process_p): New function.
8739 (contains_mem_rtx_p): Likewise.
8740 (bb_valid_for_noce_process_p): Likewise.
8741 (noce_process_if_block): Allow non-simple basic blocks
8744 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
8746 * tree-ssa-dom.c (record_equivalences_from_phis,
8747 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
8748 (lookup_avail_expr): Likewise, and remove comment and unused temp.
8750 2015-09-01 Nick Clifton <nickc@redhat.com>
8752 * config/msp430/msp430.opt (mcpu): Fix typo.
8754 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8756 * config/aarch64/aarch64.c (aarch64_set_current_function):
8757 Re-layout any vector parameters have non-simd layout.
8758 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
8760 (aarch64_simd_expand_args): Delete call to the above.
8762 2015-08-31 Mike Frysinger <vapier@gentoo.org>
8764 * doc/invoke.texi (asan-stack): Add space before option.
8766 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8768 * tree.h (zerop): New function.
8769 * tree.c (zerop): Likewise.
8770 (element_precision): Handle expressions.
8771 * match.pd (define_predicates): Add zerop.
8772 (x <= +Inf): Fix comment.
8773 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
8774 * fold-const.c (fold_binary_loc): ... here. Remove.
8776 2015-08-31 Richard Biener <rguenther@suse.de>
8779 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
8781 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8783 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
8784 (CEXPI): New operator list.
8785 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
8786 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
8788 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
8790 2015-08-31 Tom de Vries <tom@codesourcery.com>
8792 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
8793 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
8795 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
8796 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
8797 (rewrite_into_loop_closed_ssa): ... here.
8798 (replace_uses_in_dominated_bbs): Remove function.
8799 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
8800 rewrite_into_loop_closed_ssa_1.
8802 2015-08-31 Michael Matz <matz@suse.de>
8804 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
8805 enter entry and exit blocks for reverse post order.
8807 2015-08-31 Richard Biener <rguenther@suse.de>
8809 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
8810 (lto_location_cache::current_sysp): Likewise.
8811 (output_block::current_sysp): Likewise.
8812 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
8813 (lto_location_cache::apply_location_cache): Properly record
8814 system header locations.
8815 (lto_location_cache::input_location): Input whether a file
8817 * lto-streamer-out.c (lto_output_location): Stream whether a file
8820 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8823 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
8825 2015-08-31 Tom de Vries <tom@codesourcery.com>
8827 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
8828 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
8829 Improve function header comments.
8831 2015-08-30 Michael Collison <michael.collison@linaro.org>
8834 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
8837 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8839 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
8840 special_handling bitfield.
8841 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
8842 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
8843 that represents a general xxpermdi.
8844 (insn_is_swappable_p): Add handling for vec_concat of two
8845 doublewords, which maps to a specific xxpermdi.
8846 (adjust_xxpermdi): New function.
8847 (adjust_concat): Likewise.
8848 (handle_special_swappables): Call adjust_xxpermdi and
8850 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
8852 2015-08-30 Rich Felker <dalias@libc.org>
8854 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
8855 case instead of sh[123456ble]-*-*.
8857 2015-08-29 Anatoly Sokolov <aesok@post.ru>
8859 * ira.c (print_unform_and_important_classes,
8860 print_translated_classes): Remove reg_class_names static array.
8861 (print_unform_and_important_classes): Rename to ...
8862 (print_uniform_and_important_classes): ... this.
8863 (ira_debug_allocno_classes): Update accordingly.
8865 2015-08-29 Tom de Vries <tom@codesourcery.com>
8867 PR tree-optimization/46193
8868 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
8871 2015-08-28 Jeff Law <law@redhat.com>
8874 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
8875 unable to find X NE 0 in the tables, return X as the simplified
8877 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8878 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
8880 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
8881 after removing the control flow statement and unnecessary edges.
8883 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
8886 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8888 PR tree-optimization/67283
8889 * tree-sra.c (type_consists_of_records_p): Rename to...
8890 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8892 (completely_scalarize_record): Rename to...
8893 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
8895 (scalarize_elem): New.
8897 2015-08-28 Jiong Wang <jiong.wang@arm.com>
8899 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
8900 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
8901 (aarch64_symbol_type): Likewise.
8902 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8904 (aarch64_expand_mov_immediate): Likewise.
8905 (aarch64_print_operand): Likewise.
8906 (aarch64_classify_tls_symbol): Likewise.
8908 2015-08-28 Richard Biener <rguenther@suse.de>
8910 * cgraphunit.c (symbol_table::compile): Move early debug generation
8912 (symbol_table::finalize_compilation_unit): ... back here and
8913 add a !seen_error () guard.
8915 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8917 * toplev.c (process_options): Do not use flag_loop_block,
8918 flag_loop_interchange, and flag_loop_strip_mine. Add check for
8919 flag_loop_optimize_isl.
8921 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8923 * Makefile.in (OBJS): Remove graphite-blocking.o and
8924 graphite-interchange.o.
8925 * common.opt (floop-strip-mine, floop-interchange, floop-block):
8926 Alias of floop-nest-optimize.
8927 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
8928 Document as alias of -floop-nest-optimize.
8929 * graphite-blocking.c: Remove.
8930 * graphite-interchange.c: Remove.
8931 * graphite-optimize-isl.c: Include dumpfile.h.
8932 (getScheduleForBand): Add dump for tiled loops. Use
8933 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
8934 * graphite-poly.c (scop_max_loop_depth): Remove.
8935 (print_scattering_function_1): Remove.
8936 (print_scattering_function): Remove.
8937 (print_scattering_functions): Remove.
8938 (debug_scattering_function): Remove.
8939 (debug_scattering_functions): Remove.
8940 (apply_poly_transforms): Remove use of flag_loop_block,
8941 flag_loop_strip_mine, and flag_loop_interchange.
8942 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
8944 (print_pdr_access_layout): Remove.
8945 (print_pdr): Print ISL representation.
8946 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
8947 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
8949 (openscop_print_pbb_domain): Remove.
8950 (print_pbb): Remove call to print_scattering_function.
8951 (openscop_print_scop_context): Remove.
8952 (print_scop_context): Do not print matrices anymore.
8953 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
8954 SCOP_TRANSFORMED_SCHEDULE.
8955 (print_isl_set): Add printing of a new line.
8956 (print_isl_map): Same.
8957 (print_isl_aff): Same.
8958 (print_isl_constraint): Same.
8959 (loop_to_lst): Remove.
8960 (scop_to_lst): Remove.
8961 (lst_indent_to): Remove.
8962 (print_lst): Remove.
8963 (debug_lst): Remove.
8964 (dot_lst_1): Remove.
8966 (reverse_loop_at_level): Remove.
8967 (reverse_loop_for_pbbs): Remove.
8968 * graphite-poly.h (pdr_dim_iter_domain): Remove.
8969 (pdr_nb_params): Remove.
8970 (pdr_alias_set_dim): Remove.
8971 (pdr_subscript_dim): Remove.
8972 (pdr_iterator_dim): Remove.
8973 (pdr_parameter_dim): Remove.
8974 (same_pdr_p): Remove.
8975 (struct poly_scattering): Remove.
8976 (struct poly_bb): Remove _original, _transformed, _saved.
8977 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
8978 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
8979 (PBB_NB_LOCAL_VARIABLES): Remove.
8980 (PBB_NB_SCATTERING_TRANSFORM): Remove.
8981 (schedule_to_scattering): Remove.
8982 (number_of_write_pdrs): Remove.
8983 (pbb_dim_iter_domain): Remove.
8984 (pbb_nb_params): Remove.
8985 (pbb_nb_scattering_orig): Remove.
8986 (pbb_nb_scattering_transform): Remove.
8987 (pbb_nb_dynamic_scattering_transform): Remove.
8988 (pbb_nb_local_vars): Remove.
8989 (pbb_iterator_dim): Remove.
8990 (pbb_parameter_dim): Remove.
8991 (psco_scattering_dim): Remove.
8992 (psct_scattering_dim): Remove.
8993 (psct_local_var_dim): Remove.
8994 (psco_iterator_dim): Remove.
8995 (psct_iterator_dim): Remove.
8996 (psco_parameter_dim): Remove.
8997 (psct_parameter_dim): Remove.
8998 (psct_dynamic_dim): Remove.
8999 (psct_static_dim): Remove.
9000 (psct_add_local_variable): Remove.
9001 (new_lst_loop): Remove.
9002 (new_lst_stmt): Remove.
9005 (lst_add_loop_under_loop): Remove.
9006 (lst_depth): Remove.
9007 (lst_dewey_number): Remove.
9008 (lst_dewey_number_at_depth): Remove.
9011 (lst_find_pbb): Remove.
9012 (find_lst_loop): Remove.
9013 (lst_find_first_pbb): Remove.
9014 (lst_empty_p): Remove.
9015 (lst_find_last_pbb): Remove.
9016 (lst_contains_p): Remove.
9017 (lst_contains_pbb): Remove.
9018 (lst_create_nest): Remove.
9019 (lst_remove_from_sequence): Remove.
9020 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
9021 (lst_niter_for_loop): Remove.
9022 (pbb_update_scattering): Remove.
9023 (lst_update_scattering_under): Remove.
9024 (lst_update_scattering): Remove.
9025 (lst_insert_in_sequence): Remove.
9026 (lst_replace): Remove.
9027 (lst_substitute_3): Remove.
9028 (lst_distribute_lst): Remove.
9029 (lst_remove_all_before_including_pbb): Remove.
9030 (lst_remove_all_before_excluding_pbb): Remove.
9031 (struct scop): Remove original_schedule, transformed_schedule, and
9033 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
9034 (SCOP_SAVED_SCHEDULE): Remove.
9035 (poly_scattering_new): Remove.
9036 (poly_scattering_free): Remove.
9037 (poly_scattering_copy): Remove.
9038 (store_scattering_pbb): Remove.
9039 (store_lst_schedule): Remove.
9040 (restore_lst_schedule): Remove.
9041 (store_scattering): Remove.
9042 (restore_scattering_pbb): Remove.
9043 (restore_scattering): Remove.
9044 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9045 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
9046 compute the scattering polyhedron dimension from the dimension of
9048 (build_scop_scattering): Update call to
9049 build_pbb_scattering_polyhedrons.
9050 (build_poly_scop): Remove call to scop_to_lst.
9051 * graphite.c (graphite_transform_loops): Add call to print_scop.
9052 (gate_graphite_transforms): Remove use of flag_loop_block,
9053 flag_loop_interchange, and flag_loop_strip_mine.
9055 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9057 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
9058 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
9059 -floop-nest-optimize.
9060 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
9061 (generate_luj_sepclass): Remove.
9062 (generate_luj_options): Remove.
9063 (set_options): Remove opt_luj.
9064 (scop_to_isl_ast): Remove opt_luj.
9065 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
9066 flag_loop_unroll_jam.
9067 (getPrevectorMap_full): Remove.
9068 (getScheduleForBandList): Remove map_sepcl.
9069 (getScheduleMap): Same.
9070 (apply_schedule_map_to_scop): Remove sepcl.
9071 (optimize_isl): Same.
9072 * graphite-poly.c (apply_poly_transforms): Remove check for
9073 flag_loop_unroll_jam.
9074 (new_poly_bb): Remove map_sepclass.
9075 * graphite-poly.h (struct poly_bb): Same.
9076 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
9077 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
9078 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
9079 * toplev.c (process_options): Remove flag_loop_unroll_jam.
9081 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
9084 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
9086 (UNSPEC_ADD_CARRY): Remove.
9087 (addqi3_cconly_overflow): New expander.
9088 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
9089 Adjust for changed add<mode>3_carry.
9090 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
9091 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
9092 (<plusminus_insn><mode>3_carry): Remove expander.
9093 (*<plusminus_insn><mode>3_carry): Split insn pattern to
9094 add<mode>3_carry and sub<mode>3_carry.
9095 (plusminus_carry_mnemonic): Remove code attribute.
9096 (add<mode>3_carry): Canonicalize insn pattern.
9097 (*addsi3_carry_zext): Ditto.
9098 (sub<mode>3_carry): Ditto.
9099 (*subsi3_carry_zext): Ditto.
9100 (adcx<mode>3): Remove insn pattern.
9101 (addcarry<mode>): New insn pattern.
9102 (subborrow<mode>): Ditto.
9103 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
9104 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
9105 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
9106 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
9107 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
9108 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
9109 Rewrite expander to not clobber carry flag chains.
9111 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
9113 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
9114 instead of a rotate.
9116 2015-08-27 Marek Polacek <polacek@redhat.com>
9119 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
9120 an entry into an irreducible region.
9122 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9124 * configure: Regenerate.
9126 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9128 PR tree-optimization/67283
9129 * tree-sra.c (type_consists_of_records_p): Rename to...
9130 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9132 (completely_scalarize_record): Rename to...
9133 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9134 (scalarize_elem): New.
9136 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9138 * tree-sra.c (completely_scalarize_var): Rename to...
9139 (create_total_scalarization_access): ... Here. Drop call to
9140 completely_scalarize_record.
9142 (analyze_all_variable_accesses): Replace completely_scalarize_var
9143 with create_total_scalarization_access and completely_scalarize_record.
9145 2015-08-27 Alan Modra <amodra@gmail.com>
9148 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
9151 2015-08-27 Richard Biener <rguenther@suse.de>
9153 * passes.c (rest_of_decl_compilation): Guard early_global_decl
9154 call with !seen_error ().
9155 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
9156 early debug generation and finish...
9157 (symbol_table::compile): ... here to put it after a !seen_error ()
9160 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9162 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
9165 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9166 Andre Vieira <andre.simoesdiasvieira@arm.com>
9168 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
9169 (*cb<optab><mode>1): Likewise.
9170 (*tb<optab><mode>1): Likewise.
9171 (*cb<optab><mode>1): Likewise.
9172 * config/aarch64/iterators.md (inv_cb): New code attribute.
9174 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
9175 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
9177 2015-08-27 Richard Biener <rguenther@suse.de>
9179 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
9181 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9183 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
9186 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9188 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
9191 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
9193 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
9194 floating point in VSX registers.
9195 (rs6000_output_move_128bit): Always print out the set insn if we
9196 can't generate an appropriate 128-bit move.
9197 (rs6000_generate_compare): Add support for IEEE 128-bit floating
9198 point in VSX registers comparisons.
9199 (rs6000_expand_float128_convert): Likewise.
9201 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
9202 predicate for only GPR hard registers.
9204 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
9205 modes to iterators. Add new iterators for moving 128-bit values in
9206 scalar FPR registers and VSX registers.
9207 (FMOVE128): Likewise.
9208 (FMOVE128_FPR): Likewise.
9209 (FMOVE128_GPR): Likewise.
9210 (FMOVE128_VSX): Likewise.
9211 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
9216 (RELOAD): Add IEEE 128-bit floating point modes.
9217 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
9218 floating point in VSX registers modes.
9219 (signbit<mode>2, IBM128 iterator): Likewise.
9220 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
9221 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9223 (neg<mode>2, TFIFKF iterator): Likewise.
9224 (negtf2_internal): Likewise.
9226 (abs<mode>2, TFIFKF iterator): Likewise.
9227 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
9228 VSX insn support for negate, absolute value, and negative absolute
9230 (ieee_128bit_vsx_neg<mode>2): Likewise.
9231 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9232 (ieee_128bit_vsx_abs<mode>2): Likewise.
9233 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9234 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9235 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9236 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
9237 floating point in VSX registers.
9238 (unpack<mode>_dm): Likewise.
9239 (unpack<mode>_nodm): Likewise.
9240 (pack<mode>): Likewise.
9241 (unpackv1ti): Likewise.
9242 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
9243 (packv1ti): Likewise.
9244 (pack<mode>, FMOVE128_VSX iterator): Likewise.
9245 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
9247 (extenddftf2_internal): Likewise.
9248 (trunctfdf2): Likewise.
9249 (trunctfdf2_internal2): Likewise.
9250 (fix_trunc_helper): Likewise.
9251 (fix_trunctfdi2"): Likewise.
9252 (floatditf2): Likewise.
9253 (floatuns<mode>tf2): Likewise.
9254 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9255 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9256 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9257 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9258 (float<SDI:mode><IFKF:mode>2): Likewise.
9259 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9261 2015-08-26 Renlin Li <renlin.li@arm.com>
9263 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
9265 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9266 Jiong Wang <jiong.wang@arm.com>
9268 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
9269 (tlsie_tiny_<mode>): New define_insn.
9270 (tlsie_tiny_sidi): Likewise.
9271 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
9273 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
9274 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9276 (aarch64_expand_mov_immediate): Likewise.
9277 (aarch64_print_operand): Likewise.
9278 (arch64_classify_tls_symbol): Likewise.
9280 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9282 * config/arm/arm-arches.def: Replace single value flags with
9283 an initializer built from ARM_FSET_MAKE_CPU1.
9284 * config/arm/arm-cores.def: Likewise.
9285 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
9286 derivation from the ARM_CORE macro definition, use the given value
9288 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
9289 ARM_ARCH macro definition, use the given value instead.
9291 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9293 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
9295 (struct builtin_description): Replace field mask with field
9297 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
9298 (IWMMXT2_BUILTIN): Likewise.
9299 (IWMMXT2_BUILTIN2): Likewise.
9300 (FP_BUILTIN): Likewise.
9301 (CRC32_BUILTIN): Likewise.
9302 (CRYPTO_BUILTIN): Likewise.
9303 (iwmmx_mbuiltin): Likewise.
9304 (iwmmx2_mbuiltin): Likewise.
9305 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
9306 struct builtin_description.
9308 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9310 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
9311 (struct builtin_description): Change type of mask to unsigned
9313 * config/arm/arm-protos.h (insn_flags): Declare as type
9315 (tune_flags): Likewise.
9316 * config/arm/arm.c (feature_count): New.
9317 (insn_flags): Define as type arm_feature_set.
9318 (tune_flags): Likewise.
9319 (struct processors): Define field flags as type arm_feature_set.
9320 (all_cores): Update for change to struct processors.
9321 (all_architectures): Likewise.
9322 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
9324 (arm_option_override_internal): Likewise.
9325 (arm_option_override): Likewise.
9327 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9328 Jiong Wang <jiong.wang@arm.com>
9330 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
9331 tls size for tiny, small, large memory model.
9332 (aarch64_load_symref_appropriately): Support new symbol types.
9333 (aarch64_expand_mov_immediate): Likewise.
9334 (aarch64_print_operand): Likewise.
9335 (aarch64_classify_tls_symbol): Likewise.
9336 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
9337 (aarch64_symbol_type): Likewise.
9338 * config/aarch64/aarch64.md (tlsle): Deleted.
9339 (tlsle12_<mode>): New define_insn.
9340 (tlsle24_<mode>): Likewise.
9341 (tlsle32_<mode>): Likewise.
9342 (tlsle48_<mode>): Likewise.
9343 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9346 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9348 * config/arm/arm-protos.h (FL_NONE): New.
9350 (arm_feature_set): New.
9351 (ARM_FSET_MAKE): New.
9352 (ARM_FSET_MAKE_CPU1): New.
9353 (ARM_FSET_MAKE_CPU2): New.
9354 (ARM_FSET_CPU1): New.
9355 (ARM_FSET_CPU2): New.
9356 (ARM_FSET_EMPTY): New.
9357 (ARM_FSET_ANY): New.
9358 (ARM_FSET_HAS_CPU1): New.
9359 (ARM_FSET_HAS_CPU2): New.
9360 (ARM_FSET_HAS_CPU): New.
9361 (ARM_FSET_ADD_CPU1): New.
9362 (ARM_FSET_ADD_CPU2): New.
9363 (ARM_FSET_DEL_CPU1): New.
9364 (ARM_FSET_DEL_CPU2): New.
9365 (ARM_FSET_UNION): New.
9366 (ARM_FSET_INTER): New.
9367 (ARM_FSET_XOR): New.
9368 (ARM_FSET_EXCLUDE): New.
9369 (AFM_FSET_IS_EMPTY): New.
9370 (ARM_FSET_CPU_SUBSET): New.
9372 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9374 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9375 SYMBOL_TLSLE to SYMBOL_TLSLE24.
9376 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9378 (aarch64_expand_mov_immediate): Likewise.
9379 (aarch64_print_operand): Likewise.
9380 (aarch64_classify_symbol): Likewise.
9382 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9384 * config/aarch64/aarch64.opt (mtls-size): New entry.
9385 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9386 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9387 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9389 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9391 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9392 ARM_CORE entry. Fix some white-space.
9393 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9394 ARM_CORE definition.
9396 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9398 * fold-const.c (fold_binary_loc) : Move Optimize
9399 root(x)*root(y) as root(x*y) to match.pd.
9400 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9401 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9402 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9403 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9404 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9405 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9406 (mult (exps:s @0) (exps:s @1)) : New simplifier.
9407 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9408 (rdiv @0 (exps:s @1)) : New simplifier.
9410 2015-08-25 Joseph Myers <joseph@codesourcery.com>
9412 * gcc.c (driver::finalize): Only assign to extra_specs if
9415 2015-08-25 Marek Polacek <polacek@redhat.com>
9418 * varasm.c (declare_weak): Return after giving an error.
9420 2015-08-25 David Malcolm <dmalcolm@redhat.com>
9422 * gcc-main.c (main): Add params to driver ctor.
9423 * gcc.c (class env_manager): New.
9425 (env_manager::init): New.
9426 (env_manager::get): New.
9427 (env_manager::xput): New.
9428 (env_manager::restore): New.
9429 Poison getenv and putenv.
9430 (DEFAULT_TARGET_SYSTEM_ROOT): New.
9431 (target_system_root): Update initialization to use
9432 DEFAULT_TARGET_SYSTEM_ROOT.
9433 (struct spec_list): Add field "default_ptr".
9434 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9435 (init_spec): Likewise.
9436 (set_spec): Clear field "default_ptr".
9437 (read_specs): Free "spec" and "buffer".
9438 (xputenv): Reimplement in terms of env_manager.
9439 (process_command): Replace ::getenv calls with calls to the
9440 env_manager singleton.
9441 (process_brace_body): Free string in three places.
9442 (driver::driver): New.
9443 (driver::~driver): New.
9444 (used_arg): Convert from a function to...
9445 (class used_arg_t): ...this class, and...
9446 (used_arg): ...this new global instance.
9447 (used_arg_t::finalize): New function.
9448 (getenv_spec_function): Add "const" to local "value". Replace
9449 ::getenv call with call to the env_manager singleton.
9450 (path_prefix_reset): New function.
9451 (driver::finalize): New function.
9452 * gcc.h (driver::driver): New.
9453 (driver::~driver): New.
9454 (driver::finalize): New.
9456 2015-08-25 Nathan Sidwell <nathan@acm.org>
9458 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9459 target doesn't have one.
9461 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9464 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9466 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9469 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9470 a define_insn, remove second alternative.
9472 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
9473 Joseph Myers <joseph@codesourcery.com>
9475 * gcc.c (struct switchstr): Expand comment.
9477 2015-08-25 Nathan Sidwell <nathan@acm.org>
9479 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9480 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9482 2015-08-25 Richard Biener <rguenther@suse.de>
9485 * genmatch.c (expr::gen_transform): Verify the result of
9486 builtin_decl_implicit.
9487 (dt_simplify::gen_1): Likewise.
9489 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
9491 * config/arm/constraints.md: Also list Cs and US ARM-specific
9492 constraints as used.
9494 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
9497 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9499 (nonpic_symbol_mentioned_p): Likewise.
9500 (sh_delegitimize_address): Likewise.
9501 (sh_function_ok_for_sibcall): Take into account weak symbols.
9502 (sh_expand_sym_label2reg): New.
9503 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9504 * config/sh/sh.md (UNSPEC_PCREL): New enum.
9505 (call_pcrel): Use sh_expand_sym_label2reg.
9506 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9507 (symPCREL_label2reg) New expand.
9509 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9511 * graphite-poly.c: Change type of region from void* to sese.
9512 * graphite-poly.h (struct scop): Changing the type of scop::region
9513 from void* to sese. Change accessor macro accordingly.
9514 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9516 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9518 * graphite-scop-detection.c (stmt_simple_for_scop_p):
9519 Constrain only on INTEGER_TYPE.
9521 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9524 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9525 -mefficient-unaligned-vsx on ISA 2.7.
9527 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9528 option to a masked option.
9530 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9531 logic for -mefficient-unaligned-vsx so that it is set via an arch
9532 ISA option, instead of being set if -mtune=power8 is set. Move
9533 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9534 near other default option handling.
9536 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9538 * genflags.c (gen_macro): Delete.
9539 (gen_proto): Don't create GEN.*CALL.* macros.
9540 * gensupport.h (get_file_location): Declare.
9541 * gensupport.c (rtx_locs): New variable.
9542 (read_md_rtx): Record rtx locations.
9543 (get_file_location): New function.
9544 * target-insns.def (call, call_pop, call_value, call_value_pop)
9545 (sibcall, sibcall_value): New patterns.
9546 * gentarget-def.c (parse_argument): New function.
9547 (def_target_insn): Use it. Handle optional operands. Raise an
9548 error if an .md pattern has the wrong number of operands for the
9549 pattern name. Remove the names of unused operands from the prototype.
9550 * builtins.c (expand_builtin_apply): Use targetm functions
9551 instead of HAVE_call_value and GEN_CALL_VALUE.
9552 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
9553 and sibcall_value_pop.
9554 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9556 * config/alpha/alpha.md (untyped_call): Likewise.
9557 * config/iq2000/iq2000.md (untyped_call): Likewise.
9558 * config/m68k/m68k.md (untyped_call): Likewise.
9559 * config/mips/mips.md (untyped_call): Likewise.
9560 * config/pa/pa.md (untyped_call): Likewise.
9561 * config/rs6000/rs6000.md (untyped_call): Likewise.
9562 * config/sparc/sparc.md (untyped_call): Likewise.
9563 * config/tilegx/tilegx.md (untyped_call): Likewise.
9564 * config/tilepro/tilepro.md (untyped_call): Likewise.
9565 * config/visium/visium.md (untyped_call): Likewise.
9566 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9567 gen_call_value instead of GEN_CALL_VALUE.
9568 * config/arm/arm.md (untyped_call): Likewise.
9569 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9572 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9574 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9575 (have_cbranchcc4): New variable.
9576 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9577 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9578 (if_convert): Initialize have_cbranchcc4.
9580 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9582 * builtins.c (expand_cmpstrn): Rename to...
9583 (expand_cmpstrn_or_cmpmem): ...this.
9584 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9585 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9586 Remove mode argument.
9587 (expand_builtin): Update accordingly.
9589 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9591 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9592 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
9593 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9594 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9595 Add predicates for operands 0 and 3.
9596 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9598 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9599 immediate_operand to nonmemory_operand.
9601 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9603 * df-scan.c (df_insn_info_init_fields): New function, split out
9605 (df_insn_create_insn_record): ...here.
9606 (df_insn_info_free_fields): New function, split out from...
9607 (df_insn_info_delete): ...here.
9608 (df_insn_rescan): Use the new functions instead of freeing and
9609 reallocating the df_insn_info.
9611 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9613 * doc/install.texi (Binaries): Remove links no longer valid.
9615 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
9617 * config/nvptx/mkoffload.c (process): Replace
9618 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
9620 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
9623 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
9625 2015-08-24 Renlin Li <renlin.li@arm.com>
9627 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
9628 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
9629 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
9630 * config/arm/constraints.md ("j"): Add check for high code.
9632 2015-08-24 Tom de Vries <tom@codesourcery.com>
9634 PR tree-optimization/65468
9635 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
9638 2015-08-24 Nathan Sidwell <nathan@acm.org>
9640 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
9641 change to nvptx_type_from_mode call. Use arg_promotion for both
9642 split and non-split args.
9644 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9646 * target-insns.def (movstr): New pattern.
9647 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
9648 (expand_movstr): Use targetm rather than HAVE_movstr/
9651 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9653 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
9656 2015-08-24 Andrew Pinski <apinski@cavium.com>
9658 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
9659 AARCH64_EXTRA_TUNING_OPTION.
9660 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
9662 (aarch64_extra_tuning_flags): Base the shifted value on the index
9663 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
9664 * config/aarch64/aarch64.c: Remove the last argument to
9665 AARCH64_EXTRA_TUNING_OPTION.
9667 2015-08-23 Nathan Sidwell <nathan@acm.org>
9669 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
9671 (nvptx_declare_function_name): Insert formatting tabs for
9674 2015-08-23 Tom de Vries <tom@codesourcery.com>
9676 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
9677 parm_decl, rather than generating a dummy default def in cfun.
9678 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
9679 ssa_name from cfun and child_fn do not share a stmt as def stmt.
9680 (move_stmt_op): Handle PARM_DECl.
9681 (gather_ssa_name_hash_map_from): New function.
9682 (move_sese_region_to_fn): Add default defs for function params, and add
9683 them to vars_map. Release copied ssa names.
9684 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
9686 2015-08-23 Tom de Vries <tom@codesourcery.com>
9688 * doc/sourcebuild.texi: Rename vect_no_int_max with
9689 vect_no_int_min_max. Update description.
9691 2015-08-22 Andrew Pinski <apinski@cavium.com>
9693 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
9694 * config/aarch64/aarch64-protos.h
9695 (aarch64_fusion_pairs_index): New enum.
9696 (aarch64_fusion_pairs): Base the shifted value on the index instead
9697 Rewrite AARCH64_FUSE_ALL to be based on the end index.
9698 of the argument to AARCH64_FUSION_PAIR.
9699 * config/aarch64/aarch64.c: Remove the last argument to
9700 AARCH64_FUSION_PAIR.
9702 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
9704 * dominance.c (new_zero_array): Define.
9705 (dom_info): Redefine as class with proper encapsulation.
9706 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
9708 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
9709 allocations/deallocations. Pass function as parameter (instead of
9711 (dom_info::get_idom): Define accessor method.
9712 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
9713 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
9714 (calculate_dominance_info): Adjust to use dom_info class.
9715 (verify_dominators): Likewise.
9717 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
9719 * print-rtl.c (print_rtx): Check the correct range for
9720 flag_dump_unnumbered_links to behave as documented.
9722 PR rtl-optimization/67227
9723 PR rtl-optimization/64164
9724 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
9725 (nonoverlapping_memrefs_p): Test offsets and sizes when given
9726 identical gimple_reg exprs.
9728 2015-08-21 Nathan Sidwell <nathan@acm.org>
9730 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
9732 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
9733 crtl->stack_alignment_needed to determine alignment.
9734 (nvptx_get_drap_rtx): New.
9735 (TARGET_GET_DRAP_RTX): Override.
9736 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
9738 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9740 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
9742 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9744 * configure.ac: Remove uwin* cases.
9745 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
9746 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
9747 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
9748 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
9749 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
9750 i[34567]86-*-uwin*, powerpc-*-beos*.
9752 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
9754 * gencodes.c (gencodes): Print the comma for the preceding
9755 enum value rather than the current one. Use aliased enum values
9756 rather than #defines for compiled-out patterns.
9757 (main): Update accordingly. Replace LAST_INSN_CODE with
9759 * lra.c (insn_code_data): Update accordingly.
9760 (finish_insn_code_data_once, get_static_insn_data): Likewise.
9761 * recog.h (target_recog): Likewise.
9762 (preprocess_insn_constraints): Change parameter to unsigned int.
9763 * recog.c (preprocess_insn_constraints): Likewise.
9764 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
9765 * tree-vect-stmts.c (vectorizable_operation): Simplify.
9767 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9769 PR rtl-optimization/61657
9770 * loop-iv.c (iv_number_of_iterations): Declare up and down as
9771 unsigned. Remove superflous uint64_t cast.
9773 2014-08-21 Felix Yang <felix.yang@huawei.com>
9774 Jiji Jiang <jiangjiji@huawei.com>
9776 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
9777 argument and get builtin function code directly from CALL.
9778 (gimple_stringop_fixed_value): Modified accordingly.
9779 (gimple_stringops_transform, gimple_stringops_values_to_profile):
9780 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
9782 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
9784 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
9786 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9788 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
9790 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
9791 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
9792 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
9793 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
9794 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
9795 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
9796 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
9797 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
9798 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
9799 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
9801 * match.pd (SIN ) : New Operator.
9802 (TAN) : New Operator.
9803 (mult (SQRT@1 @0) @1) : New simplifier.
9804 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
9805 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9806 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9807 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
9808 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
9809 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
9810 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
9811 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
9812 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
9813 (rdiv @0 (POW:s @1 @2)) : New simplifier.
9815 2015-08-21 Bin Cheng <bin.cheng@arm.com>
9817 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
9818 loop if EXPR is simplified to const value.
9820 2015-08-21 Yury Gribov <y.gribov@samsung.com>
9822 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
9823 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
9825 2015-08-21 Richard Biener <rguenther@suse.de>
9828 * gimple-fold.c (replace_stmt_with_simplification): Assert
9829 seq is empty when replacing a call with itself but different
9831 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
9832 a call require that it is const.
9834 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9836 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
9837 * builtins.c (get_object_alignment_2): Adjust.
9838 * varasm.c (align_variable): Likewise.
9839 (get_variable_align): Likewise.
9840 (build_constant_desc): Likewise.
9841 (force_const_mem): Likewise.
9842 * doc/tm.texi.in: Likewise.
9843 * doc/tm.texi: Regenerate.
9845 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9847 * genconfig.c (main): Always define HAVE_cc0.
9848 * recog.c (rest_of_handle_peephole2): Adjust.
9850 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9852 * reorg.c (relax_delay_slots): Don't use #if to check value of
9855 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9857 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
9858 * targhooks.c (default_have_conditional_execution): Adjust.
9860 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
9862 * rtl.h (rtvec_all_equal_p): Declare.
9863 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
9864 * rtl.c (rtvec_all_equal_p): New function.
9865 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
9866 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
9867 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
9868 * config/arm/arm.c (neon_vdup_constant): Likewise.
9869 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
9870 * config/tilegx/constraints.md (W, Y): Likewise.
9871 * config/tilepro/constraints.md (W, Y): Likewise.
9872 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
9873 (classify_immediate): Use unwrap_const_vec_duplicate.
9874 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
9875 (reg_or_v2s8bit_operand): Likewise.
9876 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
9877 (reg_or_v4s8bit_operand): Likewise.
9879 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9881 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
9882 (vec_shasigma_be): New #define.
9883 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
9884 (VPMSUMH): Likewise.
9885 (VPMSUMW): Likewise.
9886 (VPMSUMD): Likewise.
9887 (VPMSUM): New BU_P8V_OVERLOAD_2.
9888 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
9889 entries for VEC_MADD and VEC_VPMSUM.
9891 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
9893 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
9894 Multiply argument avr_n_flash by 64 to match unit of "KiB".
9895 (avr_pgm_check_var_decl): Same.
9897 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
9899 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
9900 initialization of HFmode scalar type (float16_t) to...
9901 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
9904 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
9906 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
9907 having an -mfp16-format.
9909 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
9911 * config/i386/predicates.md (vector_all_ones_operand): Use
9912 CONSTM1_RTX to simplify definition.
9914 2015-08-20 Richard Biener <rguenther@suse.de>
9916 * toplev.c (compile_file): Remove loop calling late_global_decl
9918 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
9919 on decls we assembled.
9921 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
9923 * common/config/aarch64/aarch64-common.c
9924 (AARCH64_CPU_NAME_LENGTH): Delete.
9925 (aarch64_option_extension): New.
9926 (all_extensions): Likewise.
9927 (processor_name_to_arch): Likewise.
9928 (arch_to_arch_name): Likewise.
9930 (all_architectures): Likewise.
9931 (aarch64_get_extension_string_for_isa_flags): Likewise.
9932 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
9934 * config/aarch64/aarch64-protos.h
9935 (aarch64_get_extension_string_for_isa_flags): New.
9936 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
9937 (aarch64_option_print): Get the string to print from
9938 aarch64_get_extension_string_for_isa_flags.
9939 (aarch64_declare_function_name): Likewise.
9940 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
9941 (MCPU_TO_MARCH_SPEC): This.
9942 (ASM_CPU_SPEC): Use it.
9943 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
9944 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
9945 (EXTRA_SPEC_FUNCTIONS): Use it.
9947 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
9949 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
9950 expansion when !ISA_HAS_LWL_LWR.
9951 (mips_block_move_straight): Update the size of elements copied to
9952 account for alignment when !ISA_HAS_LWL_LWR.
9953 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
9955 2015-08-19 Jiong Wang <jiong.wang@arm.com>
9957 * expr.c (expand_expr_real_2): Check gimple statement during
9960 2015-08-19 Magnus Granberg <zorry@gentoo.org>
9962 * common.opt (fstack-protector): Initialize to -1.
9963 (fstack-protector-all): Likewise.
9964 (fstack-protector-strong): Likewise.
9965 (fstack-protector-explicit): Likewise.
9966 * configure.ac: Add --enable-default-ssp.
9967 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
9968 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
9970 * doc/install.texi: Document --enable-default-ssp.
9971 * config.in: Regenerated.
9972 * configure: Likewise.
9974 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
9976 PR rtl-optimization/64164
9977 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
9978 (parm_in_stack_slot_p): ... this. Disregard mode, what
9979 matters is whether the parm will live in a pseudo or a stack
9981 (expand_one_ssa_partition): Deal with params without a default
9982 def. Disregard mode.
9983 * cfgexpand.h: Renamed function declaration.
9984 * tree-ssa-coalesce.c: Adjust.
9985 * function.c (split_complex_args): Allocate stack slot for
9986 unassigned parms before splitting.
9987 (parm_in_unassigned_mem_p): New. Use it instead of
9988 parm_maybe_byref_p throughout this file.
9989 (assign_parm_setup_block): Use it. Accept pseudos in the
9990 expand-assigned rtl.
9991 (assign_parm_setup_reg): Drop BLKmode requirement.
9992 (assign_parm_setup_stack): Allocate and fill in the address of
9993 unassigned MEM parms.
9995 2015-08-19 David Sherwood <david.sherwood@arm.com>
9997 * genmodes.c (emit_mode_unit_size_inline): New function.
9998 (emit_mode_unit_precision_inline): New function.
9999 (emit_insn_modes_h): Emit new #define. Emit new functions.
10000 (emit_mode_unit_size): New function.
10001 (emit_mode_unit_precision): New function.
10002 (emit_mode_adjustments): Add mode_unit_size adjustments.
10003 (emit_insn_modes_c): Emit new arrays.
10004 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
10005 use new inline methods.
10007 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10009 * config/aarch64/aarch64.c (bit_count): Delete prototype
10011 (aarch64_print_operand): Use popcount_hwi instead of the above.
10013 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10015 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
10018 2015-08-19 Marek Polacek <polacek@redhat.com>
10020 PR middle-end/67133
10021 * gimple-ssa-isolate-paths.c
10022 (insert_trap_and_remove_trailing_statements): Rename to ...
10023 (insert_trap): ... this. Don't remove trailing statements; split
10025 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
10027 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
10030 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
10031 conditionalize the whole on __GNUC__. Add fallback code
10032 depending neither on undefined nor implementation-defined behaviour.
10034 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10036 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
10037 whitespaces with tab.
10039 2015-08-19 Florian Weimer <fweimer@redhat.com>
10041 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
10042 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
10043 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
10044 Move Name_Ids instantiation to the Prj.Proc package, to avoid
10047 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10049 * config/arm/arm.c (bounds_check): Use %wd print format
10050 for HOST_WIDE_INT arguments.
10052 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
10054 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
10055 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
10056 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
10057 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
10058 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
10059 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
10060 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
10061 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
10062 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
10065 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
10067 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
10068 function.c, graphite-scop-detection.c, haifa-sched.c,
10069 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
10070 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
10071 varasm.c: Remove typedefs of structs.
10073 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10075 * config/rs6000/altivec.h (vec_adde): New define.
10076 (vec_addec): Likewise.
10077 (vec_double): Likewise.
10078 (vec_bperm): Likewise.
10079 (vec_gb): Likewise.
10080 * config/rs6000/rs6000-builtin.def (ADDE): New
10081 BU_ALTIVEC_OVERLOAD_3.
10083 (DOUBLE): New BU_VSX_OVERLOAD_1.
10084 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
10085 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
10086 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
10087 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
10088 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
10089 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
10090 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
10091 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
10092 and P8V_BUILTIN_VEC_VBPERMQ.
10094 2015-08-18 Jason Merrill <jason@redhat.com>
10096 * print-tree.c (print_node): Handle TREE_BINFO.
10098 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10100 PR middle-end/36757
10101 * builtins.c (expand_builtin_signbit): Add asserts to make sure
10102 we can expand BUILT_IN_SIGNBIT inline.
10103 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
10104 * doc/extend.texi: Document the type-generic __builtin_signbit.
10106 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
10108 PR rtl-optimization/67218
10109 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
10110 (simplify_unary_operation_1): Use it.
10112 2015-08-18 Marek Polacek <polacek@redhat.com>
10114 PR middle-end/67222
10115 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
10116 if the call isn't valid.
10117 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
10118 gimple_call_builtin_p.
10119 (call_may_clobber_ref_p_1): Likewise.
10120 (stmt_kills_ref_p): Likewise.
10122 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
10124 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
10125 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
10126 (mips_hard_regno_scratch_ok): Likewise.
10127 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
10128 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
10130 2015-08-18 Bin Cheng <bin.cheng@arm.com>
10132 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
10133 (determine_value_range): Call refine_value_range_using_guard for
10134 each loop initial condition to improve value range.
10136 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
10138 * config/i386/i386.c: Remove include of fibheap.h.
10140 2015-08-17 Richard Biener <rguenther@suse.de>
10142 PR tree-optimization/67221
10143 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
10144 (sccvn_dom_walker::before_dom_children): Mark backedges of
10145 non-executable blocks as not executable.
10147 2015-08-17 David Sherwood <david.sherwood@arm.com>
10149 * config/arm/arm.c (neon_element_bits): Replace call to
10150 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
10151 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
10152 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
10153 (neon_vdup_lane<mode>): Likewise.
10154 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
10155 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
10156 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
10157 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
10158 * config/spu/spu.c (arith_immediate_p): Likewise.
10159 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10160 * expr.c (expand_expr_real_2): Likewise.
10161 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
10162 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10163 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10164 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
10166 * fold-const.c (fold_binary_loc): Replace call to
10167 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
10168 GET_MODE_UNIT_PRECISION (m).
10170 2015-08-17 Mike Stump <mikestump@comcast.net>
10172 * config/arm/arm.c (arm_block_move_unaligned_straight):
10173 Emit normal move instead of unaligned load when source or destination
10174 are appropriately aligned.
10176 2015-08-17 Richard Biener <rguenther@suse.de>
10177 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10179 PR middle-end/16107
10180 * match.pd (div (coss (op @0) : New simplifier.
10182 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
10184 PR rtl-optimization/64164
10186 PR middle-end/66983
10187 PR rtl-optimization/67000
10188 PR middle-end/67034
10189 PR middle-end/67035
10190 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10191 * tree-ssa-copyrename.c: Removed.
10192 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10193 -ftree-coalesce-vars.
10194 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10195 * common.opt (ftree-copyrename): Ignore.
10196 (ftree-coalesce-inlined-vars): Likewise.
10197 * doc/invoke.texi: Remove the ignored options above.
10198 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10199 * tree-ssa-coalesce.h: ... here.
10200 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10201 headers required by it.
10202 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10203 across variables when flag_tree_coalesce_vars. Check register
10204 use and promoted modes to allow coalescing. Do not coalesce
10205 maybe-byref parms with SSA_NAMEs of other variables, or
10206 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
10207 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10208 with its member functions to tree-ssa-coalesce.c.
10209 (var_map_base_init): Likewise. Renamed to
10210 compute_samebase_partition_bases.
10211 (partition_view_normal): Drop want_bases parameter.
10212 (partition_view_bitmap): Likewise.
10213 * tree-ssa-live.h: Adjust declarations.
10214 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
10215 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10216 default defs at the entry point.
10217 (dump_part_var_map): New.
10218 (compute_optimized_partition_bases): New, called by...
10219 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10220 of compute_samebase_partition_bases. Adjust.
10221 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10222 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
10223 (ssa_default_def_partition): New.
10224 (get_rtl_for_parm_ssa_default_def): New.
10225 (align_local_variable, add_stack_var): Support anonymous SSA
10227 (defer_stack_allocation): Likewise. Declare earlier.
10228 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10229 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10230 Do no record deferred-allocation marker in
10231 SA.partition_to_pseudo.
10232 (expand_stack_vars): Adjust check for the marker in it.
10233 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10234 redundant MEM attr setting.
10235 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10237 (expand_one_stack_var): ... this. New wrapper to check and
10238 skip already expanded SSA partitions.
10239 (record_alignment_for_reg_var): New, factored out of...
10240 (expand_one_var): ... this.
10241 (expand_one_ssa_partition): New.
10242 (adjust_one_expanded_partition_var): New.
10243 (expand_one_register_var): Check and skip already expanded SSA
10245 (expand_used_vars): Don't create DECLs for anonymous SSA
10246 names. Expand all SSA partitions, then adjust all SSA names.
10247 (pass::execute): Replace the loops that set
10248 SA.partition_to_pseudo from partition leaders and cleared
10249 DECL_RTL for multi-location variables, and that which used to
10250 rename vars and set attrs, with one that clears DECL_RTL and
10251 checks that PARMs and RESULTs default_defs match DECL_RTL.
10252 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10253 * emit-rtl.c: Include stor-layout.h.
10254 (set_reg_attrs_for_parm): Handle NULL decl.
10255 (set_reg_attrs_for_decl_rtl): Take mode from expression if
10257 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
10258 rather than its possibly-NULL DECL.
10259 * explow.c (promote_ssa_mode): New.
10260 * explow.h (promote_ssa_mode): Declare.
10261 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10262 (read_complex_part): Export.
10263 * expr.h (read_complex_part): Declare.
10264 * cfgexpand.h (parm_maybe_byref_p): Declare.
10265 * function.c: Include cfgexpand.h.
10266 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10267 (use_register_for_parm_decl): Wrapper for the above to
10268 special-case the result_ptr.
10269 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10270 (split_complex_args): Take assign_parm_data_all argument.
10271 Pass it to rtl_for_parm. Set up rtl and context for split
10272 args. Reset complex parm before fetching its default decl
10274 (assign_parms_unsplit_complex): Use the default-def complex
10275 parm rtl if it matches the components.
10276 (assign_parms_augmented_arg_list): Adjust.
10277 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10278 multiple locations. Recognize split complex args.
10279 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10280 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10281 (assign_parm_setup_block): Prefer SSA-assigned location, and
10282 fill in its address if the memory location of a maybe-byref
10283 parm was not assigned by cfgexpand.
10284 (assign_parm_setup_reg): Likewise. Adjust its mode as
10285 needed. Use entry_parm for equiv if stack_parm is NULL. Make
10286 sure passed_pointer parms don't need conversion. Copy address
10287 or value as needed.
10288 (assign_parm_setup_stack): Prefer SSA-assigned location.
10289 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10290 rtl before testing for pointer bounds. Special-case result_ptr.
10291 (expand_function_start): Maybe reset DECL_RTL of result.
10292 Prefer SSA-assigned location for result and static chain.
10293 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
10294 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
10295 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10296 anonymous SSA names. Use promote_ssa_mode.
10297 (get_temp_reg): Likewise.
10298 (remove_ssa_form): Adjust.
10299 * stor-layout.c (layout_decl): Don't set mem attributes of
10301 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10302 and get its reg_usage for reg invalidation.
10303 (compute_bb_dataflow): Pass it insn.
10304 (emit_notes_in_bb): Likewise.
10306 2015-08-14 Marek Polacek <polacek@redhat.com>
10308 * tree-core.h (tree_base): Fix typo.
10310 2015-08-14 Marek Polacek <polacek@redhat.com>
10312 PR middle-end/67133
10313 * gimple.c (infer_nonnull_range_by_attribute): Check that the
10314 nonnull argument position is not outside function arguments.
10316 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
10319 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
10320 'lconst_atomic' with 'const_atomic'.
10321 (atomic_fetch_<optab><mode>): Likewise.
10322 (atomic_<optab>_fetch<mode>): Likewise.
10323 * config/aarch64/iterators.md (lconst-atomic): Move below
10325 (const_atomic): New.
10327 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
10328 Bernd Schmidt <bernds@codesourcery.com>
10330 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
10332 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
10333 (DWARF2_DEBUGGING_INFO): Don't define.
10334 * debug.h (dwarf2_lineno_debug_hooks): Declare.
10335 * toplev.c (process_options): Add a case for it.
10336 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
10337 (dwarf2out_init): Skip most initializations if
10338 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
10340 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
10341 DWARF2_LINENO_DEBUGGING_INFO.
10342 * opts.c (set_debug_level): Likewise.
10344 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
10346 * config/arm/types.md (is_neon_type): Add missing types.
10348 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10350 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
10352 * config/i386/i386.c (PTA_SKYLAKE): New macros.
10353 (processor_alias_table): Add skylake description.
10354 (enum processor_model): Add skylake processor.
10355 (arch_names_table): Add skylake record.
10356 * doc/invoke.texi: Add skylake item.
10358 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
10360 * ira-int.h: Include recog.h.
10361 * ira-build.c: Don't include recog.h.
10362 * ira-color.c: Likewise.
10363 * ira-conflicts.c: Likewise.
10364 * ira-costs.c: Likewise.
10365 * ira-emit.c: Likewise.
10366 * ira-lives.c: Likewise.
10368 * sched-deps.c: Likewise.
10369 * sel-sched.c: Likewise.
10370 * target-globals.c: Likewise.
10372 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
10375 * reload1.c (elimination_costs_in_insn): Make it obvious to the
10376 compiler that the n_dups and n_operands loop bounds are invariant.
10378 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10380 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10381 expressions in A and B.
10383 2015-08-13 Richard Biener <rguenther@suse.de>
10385 * tree.c (nonnull_arg_p): Move from ...
10386 * tree-vrp.c (nonnull_arg_p): ... here.
10387 * tree.h (nonnull_arg_p): Declare.
10388 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10389 here, register ptr != 0 for nonnull_arg_p pointer arguments.
10390 Properly initialize static chain and by-reference result pointer.
10391 (run_scc_vn): Adjust.
10393 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10395 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10398 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10400 * config/aarch64/aarch64-protos.h
10401 (aarch64_gen_atomic_cas): Declare.
10402 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10403 Choose appropriate instruction pattern for the target.
10404 (aarch64_gen_atomic_cas): New.
10405 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10406 (atomic_compare_and_swap<mode>_1): Rename to
10407 aarch64_compare_and_swap<mode>. Fix some indentation.
10408 (aarch64_compare_and_swap<mode>_lse): New.
10409 (aarch64_atomic_cas<mode>): New.
10411 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10413 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10416 2015-08-13 Richard Biener <rguenther@suse.de>
10418 PR tree-optimization/67191
10419 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10420 assert we value-numbered last stmts operand because it can validly
10421 trigger for unreachable code.
10423 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10425 PR rtl-optimization/67103
10426 * ifcvt.c (noce_try_store_flag_constants): Move
10427 x = (-(test != 0) & (b - a)) + a transformation to...
10428 (noce_try_cmove): ... Here. Try it if normal conditional
10431 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10433 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10435 * config/mips/mips.md (processor): Remove w32 and w64.
10437 2015-08-13 Richard Biener <rguenther@suse.de>
10439 PR tree-optimization/66502
10440 PR tree-optimization/67167
10441 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10442 backedge arguments.
10443 (vn_phi_lookup): Adjust.
10444 (vn_phi_insert): Likewise.
10445 (visit_phi): Prefer to value-number to another PHI node
10446 over value-numbering to a PHI argument.
10447 (init_scc_vn): Mark DFS back edges.
10449 2015-08-13 Richard Biener <rguenther@suse.de>
10451 * gimple.h (gcall::code_): New constant static member.
10452 (gcond::code_): Likewise.
10453 * gimple.c (gcall::code_): Define.
10454 (gcond::code_): Likewise.
10455 (is_a_helper <const gcond *>): Add.
10456 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10457 and forward to a new gcall overload with less checking and a
10458 cheaper way to access the operand.
10459 (gimple_call_lhs_ptr): Likewise.
10460 (gimple_call_set_lhs): Likewise.
10461 (gimple_call_internal_p): Likewise.
10462 (gimple_call_with_bounds_p): Likewise.
10463 (gimple_call_set_with_bounds): Likewise.
10464 (gimple_call_internal_fn): Likewise.
10465 (gimple_call_set_ctrl_altering): Likewise.
10466 (gimple_call_ctrl_altering_p): Likewise.
10467 (gimple_call_fntype): Likewise.
10468 (gimple_call_fn): Likewise.
10469 (gimple_call_fn_ptr): Likewise.
10470 (gimple_call_set_fndecl): Likewise.
10471 (gimple_call_fndecl): Likewise.
10472 (gimple_call_chain): Likewise.
10473 (gimple_call_num_args): Likewise.
10474 (gimple_call_arg): Likewise.
10475 (gimple_call_arg_ptr): Likewise.
10476 (gimple_call_set_arg): Likewise.
10477 (gimple_call_noreturn_p): Likewise.
10478 (gimple_cond_code): Likewise.
10479 (gimple_cond_lhs): Likewise.
10480 (gimple_cond_rhs): Likewise.
10481 (gimple_has_lhs): Reduce checking.
10483 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10485 PR middle-end/25529
10486 * match.pd (div (mult @0 @1) @1) : New simplifier.
10488 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10491 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10492 predicate to allow construction of vector constants using the
10493 VSLDOI vector shift instruction.
10495 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10498 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10499 the number of bytes to be shifted left and filled in with either
10500 all zero or all one bits.
10501 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10503 (output_vec_const_move): On power8, generate XXLORC to generate
10504 a vector constant with all 1's. Do a split if we need to use a
10505 VSLDOI instruction.
10507 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10508 properly test for the MSB.
10510 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10511 vector constants that can be created with VSLDOI.
10513 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10516 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10517 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10518 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10519 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10520 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10521 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10522 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10523 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10524 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10526 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
10528 * config/xtensa/constraints.md (define_constraint "Y"): New
10530 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10531 * config/xtensa/linux.h (ASM_SPEC): Likewise.
10532 * config/xtensa/predicates.md (move_operand): Match constants
10533 and symbols in the presence of TARGET_AUTO_LITPOOLS.
10534 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10535 immediate references to TLS data.
10536 (xtensa_emit_move_sequence): Don't force constants to memory in
10537 the presence of TARGET_AUTO_LITPOOLS.
10538 (print_operand): Add 'y' format, same as default, but capable of
10539 printing SF mode constants as well.
10540 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10541 (movsf_internal): Add movi pattern that loads literal.
10542 (movsf, movdf): Don't force constants to memory in the presence
10543 of TARGET_AUTO_LITPOOLS.
10544 (movdf_internal): Add 'Y' constraint.
10545 * config/xtensa/xtensa.opt (mauto-litpools): New option.
10546 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10548 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10550 * config/arm/arm-fpus.def: Replace booleans with feature flags.
10552 * config/arm/arm.c (ARM_FPU): Update macro.
10553 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10554 (TARGET_FP16): Likewise.
10555 (TARGET_CRYPTO): Likewise.
10556 (TARGET_NEON): Likewise.
10557 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
10560 2015-08-12 Tom de Vries <tom@codesourcery.com>
10564 * doc/install.texi: Remove --with_host_libstdcxx item. Update
10565 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10566 accordingly. Mention default for --with-stage1-ldflags.
10568 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10570 * config/arm/arm.h (arm_fpu_feature_set): New.
10571 (ARM_FPU_FSET_HAS): New.
10572 (FPU_FL_NONE): New.
10573 (FPU_FL_NEON): New.
10574 (FPU_FL_FP16): New.
10575 (FPU_FL_CRYPTO): New.
10577 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10579 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10580 after -mcmodel=large -fPIC sorry.
10582 2015-08-12 Richard Biener <rguenther@suse.de>
10584 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10585 comparison operand order and commutative ternary op operand order.
10586 (sccvn_dom_walker::cond_stack): New state to track temporary
10588 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10590 (sccvn_dom_walker::record_cond): Add a single temporary conditional
10592 (sccvn_dom_walker::record_conds): Add a temporary conditional
10593 expressions and all related expressions also true/false.
10594 (sccvn_dom_walker::before_dom_children): Record temporary
10595 expressions based on the controlling condition of a single
10596 predecessor. When trying to simplify a conditional statement
10597 lookup expressions we might have inserted earlier.
10599 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
10602 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10603 to ARM core registers.
10605 2015-08-12 Nathan Sidwell <nathan@acm.org>
10607 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
10608 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
10610 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
10612 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
10613 line with comments.
10614 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
10616 2015-08-12 Richard Biener <rguenther@suse.de>
10618 * gimple.h (remove_pointer): New trait.
10619 (GIMPLE_CHECK2): New inline template function.
10620 (gassign::code_): New constant static member.
10621 (is_a_helper<const gassign *>): Add.
10622 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
10623 and forward to a new gassign overload with less checking and a
10624 cheaper way to access the operand.
10625 (gimple_assign_lhs_ptr): Likewise.
10626 (gimple_assign_set_lhs): Likewise.
10627 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
10629 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
10631 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
10633 (gimple_assign_rhs_code): Likewise.
10634 * gimple.c (gassign::code_): Define.
10636 2015-08-12 Richard Biener <rguenther@suse.de>
10638 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10639 Eliminate edges marked as not executable by SCCVN.
10640 * tree-ssa-sccvn.c: Include gimple-iterator.h.
10641 (cond_dom_walker): Rename to sccvn_dom_walker.
10642 (sccvn_dom_walker::before_dom_children): Value-number defs
10644 (run_scc_vn): Remove loop value-numbering all SSA names.
10645 Drop not visited SSA names to varying.
10647 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10649 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10650 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10651 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10652 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10653 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10654 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10655 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10656 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10657 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10659 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
10662 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
10663 to enum feature_priority and feature_list.
10664 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
10665 and isa_names_table.
10667 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
10669 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
10670 vect_induction_def.
10672 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10676 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
10677 account when deciding what was the command-line status.
10679 2015-08-11 Nathan Sidwell <nathan@acm.org>
10681 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
10683 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
10684 we're not the only contributor to target phi.
10686 2015-08-11 Jiong Wang <jiong.wang@arm.com>
10688 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
10691 2015-08-11 Tom de Vries <tom@codesourcery.com>
10693 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
10695 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
10697 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
10699 * config/i386/i386.md (cpu): Remove knl.
10701 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10704 PR middle-end/66332
10705 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
10706 open-coded sequence.
10707 * omp-low.c (oacc_process_reduction_data): Remove handline of
10708 GOMP_DEVICE_HOST_NONSHM.
10710 * lto-streamer-in.c (lto_input_mode_table): Adjust to
10711 GET_MODE_INNER changes.
10713 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10714 Ilya Verbin <ilya.verbin@intel.com>
10716 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
10718 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10720 * doc/options.texi (EnabledBy): Document that the argument must be
10722 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
10723 Not enabled by -Wall.
10724 * optc-gen.awk: Give nicer error messages. Detect if the argument
10725 of EnabledBy is not a Common option.
10726 * common.opt (Wnull-dereference): Not enabled by -Wall.
10727 * opt-functions.awk (lang_enabled_by): Nicer error messages.
10729 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
10731 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
10732 model == 0x4f as Broadwell.
10734 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
10736 PR rtl-optimization/67028
10737 * combine.c (simplify_comparison): Fix comment. Rearrange code.
10738 Add test to see if a const_int fits in the new mode.
10740 2015-08-07 DJ Delorie <dj@redhat.com>
10742 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
10744 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
10746 PR rtl-optimization/67029
10747 * ira-color.c: Include "recog.h" before including "ira-int.h".
10748 * target-globals.c: Likewise.
10749 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
10750 adds an alternative_mask argument and use it instead of
10751 preferred_alternatives.
10752 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
10753 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
10754 * sched-deps.c: Include "ira-int.h" after including "ira.h".
10755 (sched_analyze_insn): Update call to
10756 ira_implicitly_set_insn_hard_regs.
10757 * sel-sched.c: Include "ira-int.h" after including "ira.h".
10758 (implicit_clobber_conflict_p): Update call to
10759 ira_implicitly_set_insn_hard_regs.
10761 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10763 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
10765 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
10768 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
10769 currently_expanding_to_rtl is set.
10771 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
10773 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
10774 * configure: Regenerate.
10776 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10777 Jiong Wang <jiong.wang@arm.com>
10779 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10780 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10781 (REG_CLASS_NAMES): Likewise.
10782 (REG_CLASS_CONTENTS): Likewise.
10783 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10784 (aarch64_register_move_cost): Likewise.
10785 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10787 * config/aarch64/constraints.md (Uc0): New constraint.
10789 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10791 * config/aarch64/constraints.md (Usf): Add the test of
10792 aarch64_is_noplt_call_p.
10794 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10796 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
10798 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
10799 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
10800 (call_symbol): Likewise.
10802 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10804 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
10805 for vectorizing multiplication patterns.
10806 * tree-vectorizer.h: Adjust the number of patterns.
10808 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10810 * config/i386/sse.md (*vec_concatv2df): Declare added
10811 alternatives as sselog type.
10813 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10815 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
10818 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10820 * config/s390/s390.c (s390_expand_tbegin): Expand either
10821 tbegin_1_z13 or tbegin_1 depending on VX flag.
10822 * config/s390/s390.md ("tbegin_1_z13"): New expander.
10824 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10826 * config/s390/s390.opt: Clarify description for -mzvector
10827 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
10830 2015-08-06 Richard Biener <rguenther@suse.de>
10832 * gimple.h (gimple_call_set_fn): Access op member directly.
10833 (gimple_call_chain_ptr): Likewise.
10834 (gimple_call_set_chain): Likewise.
10835 (gimple_cond_lhs_ptr): Likewise.
10836 (gimple_cond_set_lhs): Likewise.
10837 (gimple_cond_rhs_ptr): Likewise.
10838 (gimple_cond_set_rhs): Likewise.
10839 (gimple_cond_true_label): Likewise.
10840 (gimple_cond_set_true_label): Likewise.
10841 (gimple_cond_set_false_label): Likewise.
10842 (gimple_cond_false_label): Likewise.
10843 (gimple_label_label): Likewise.
10844 (gimple_label_set_label): Likewise.
10845 (gimple_goto_set_dest): Likewise.
10846 (gimple_asm_input_op): Likewise.
10847 (gimple_asm_input_op_ptr): Likewise.
10848 (gimple_asm_set_input_op): Likewise.
10849 (gimple_asm_output_op): Likewise.
10850 (gimple_asm_output_op_ptr): Likewise.
10851 (gimple_asm_set_output_op): Likewise.
10852 (gimple_asm_clobber_op): Likewise.
10853 (gimple_asm_set_clobber_op): Likewise.
10854 (gimple_asm_label_op): Likewise.
10855 (gimple_asm_set_label_op): Likewise.
10856 (gimple_switch_index): Likewise.
10857 (gimple_switch_index_ptr): Likewise.
10858 (gimple_return_retval_ptr): Likewise.
10859 (gimple_return_retval): Likewise.
10860 (gimple_return_set_retval): Likewise.
10861 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
10862 (gimple_switch_label): Likewise.
10863 (gimple_switch_set_label): Likewise.
10865 2015-08-06 Richard Biener <rguenther@suse.de>
10867 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
10868 bool comparison canonicalization and restrict to integers.
10870 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
10872 * coretypes.h (enum symbol_visibility): Relocate here.
10873 * flag-types.h (enum symbol_visibility): Remove.
10874 * tree-core.h (enum symbol_visibility): Remove.
10876 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
10879 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
10880 for no_split_stack function attribute along with
10882 (rs6000_expand_split_stack_prologue): Likewise.
10884 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
10885 Jeff Law <law@redhat.com>
10888 * doc/invoke.texi (Wnull-dereference): New.
10889 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
10890 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
10891 Warn for potential NULL dereferences.
10892 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
10893 * ubsan.c (instrument_nonnull_arg): Call
10894 infer_nonnull_range_by_attribute.
10895 (instrument_nonnull_return): Likewise.
10896 * common.opt (Wnull-dereference); New.
10897 * gimple.c (infer_nonnull_range): Remove bool arguments.
10898 (infer_nonnull_range_by_dereference): New.
10899 (infer_nonnull_range_by_attribute): New.
10900 * gimple.h: Update declarations.
10902 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10904 * gensupport.c (sequence_num): Replace with...
10905 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
10906 ...these new variables.
10907 (init_rtx_reader_args_cb): Update accordingly.
10908 (get_num_code_insns): Likewise.
10909 (read_md_rtx): Rework to use a while loop and get_c_test.
10910 Use the new counters. Remove redundant DEFINE_SUBST case.
10911 * genoutput.c (gen_split): Delete.
10912 (main): Don't call it.
10914 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10916 * gensupport.h (get_c_test): Declare.
10917 * gensupport.c (get_c_test): New function.
10918 * genconditions.c (main): Use it.
10919 * genrecog.c (validate_pattern): Likewise.
10920 (match_pattern_1): Likewise. Remove c_test argument.
10921 (match_pattern): Update accordingly and remove c_test argument.
10922 (main): Update accordingly.
10924 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10926 * gensupport.h (get_num_insn_codes): Declare.
10927 * gensupport.c (get_num_insn_codes): New function.
10928 * genattrtab.c (optimize_attrs): Rename max_insn_code to
10930 (main): Likewise. Use get_num_insn_codes.
10931 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
10933 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10935 PR middle-end/66311
10936 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
10937 is zero- rather than sign-extended.
10939 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10941 * target-insns.def (can_extend): Delete.
10943 2015-08-05 Richard Biener <rguenther@suse.de>
10945 PR tree-optimization/67121
10946 * tree-if-conv.c (combine_blocks): Clear range-info produced
10947 by stmts no longer executed conditionally.
10949 2015-08-05 Nick Clifton <nickc@redhat.com>
10951 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
10952 to allow identical far pointers to remain.
10954 2015-08-05 Richard Biener <rguenther@suse.de>
10956 PR middle-end/67120
10957 * match.pd: Compare address bases with == if they are decls
10958 or SSA names, not operand_equal_p. Otherwise fail.
10960 2015-08-05 Richard Biener <rguenther@suse.de>
10962 PR tree-optimization/67055
10963 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
10966 * g++.dg/torture/pr67055.C: New testcase.
10968 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
10970 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
10972 (define_attr "enabled"): Handle avx521vl and noavx512vl.
10973 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
10974 AVX-512 alternative out of SSE.
10975 (define_insn "*vec_concatv2df"): Ditto.
10977 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
10979 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
10980 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
10981 CODE_FOR_avx_ptestv4di.
10982 * config/i386/sse.md (define_mode_iterator V_AVX): New.
10983 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
10984 (define_insn "avx_ptest256"): Merge this ...
10985 (define_insn "sse4_1_ptest"): And this ...
10986 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
10988 2015-08-05 Richard Biener <rguenther@suse.de>
10990 PR tree-optimization/67109
10991 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
10992 against too big groups. Print whether this is a load or store
10993 group. Rename from ...
10994 (vect_analyze_group_access): ... this which is now a wrapper
10995 dissolving an invalid group.
10996 (vect_analyze_data_ref_accesses): Print whether this is a load
10999 2015-08-05 Richard Biener <rguenther@suse.de>
11001 PR middle-end/67107
11002 * match.pd: Guard const_binop result checking against NULL_TREE
11005 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
11007 * cse.c (cse_insn): Restoring old behaviour for src_eqv
11008 when dest and value in the REG_EQUAL are same and dest
11009 is STRICT_LOW_PART.
11011 2015-08-04 Anatoly Sokolov <aesok@post.ru>
11013 * config/moxie/moxie.h (PRINT_OPERAND,
11014 PRINT_OPERAND_ADDRESS): Remove macros.
11015 * config/moxie/moxie-protos.h (moxie_print_operand,
11016 moxie_print_operand_address): Remove declaration.
11017 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
11018 TARGET_PRINT_OPERAND_ADDRESS): Define.
11019 (moxie_print_operand, moxie_print_operand_address): Make static.
11021 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11024 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
11025 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
11027 2015-08-04 Richard Biener <rguenther@suse.de>
11029 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
11031 (dt_operand::gen_gimple_expr): Adjust.
11033 2015-08-04 Richard Biener <rguenther@suse.de>
11035 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
11036 bool compares on RHS.
11037 * match.pd: Add X ==/!= !X is false/true pattern.
11039 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
11041 * config/aarch64/aarch64.c: Change inner loop statement cost
11042 to be consistent with other targets.
11044 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
11046 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
11049 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
11051 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
11052 (machine_function): Remove pseudos field.
11054 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11056 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11057 Exit early and use target_option_current_node if processing current
11060 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11062 * doc/extend.texi (AArch64 Function Attributes): New node.
11063 (AArch64 Pragmas): Likewise.
11065 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11067 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11068 Initialize simd builtins if TARGET_SIMD.
11069 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11070 Make sure that the builtins are initialized only once no matter how
11071 many times the function is called.
11072 (aarch64_init_builtins): Unconditionally initialize crc builtins.
11073 (aarch64_relayout_simd_param): New function.
11074 (aarch64_simd_expand_args): Use above during argument expansion.
11075 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
11076 simd builtins if TARGET_SIMD.
11077 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
11079 (aarch64_relayout_simd_types): Likewise.
11081 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11083 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
11084 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
11085 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
11086 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11088 (aarch64_reset_previous_fndecl): New function.
11089 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
11091 * config/aarch64/aarch64-c.c: New file.
11092 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
11093 Push and pop options at beginning and end. Remove ifdef
11094 __ARM_FEATURE_CRC32.
11095 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
11096 Add pragma +nothing+simd and +nothing+crypto where appropriate.
11097 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
11098 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
11100 (aarch64_register_pragmas): Likewise.
11101 (aarch64_reset_previous_fndecl): Likewise.
11102 (aarch64_process_target_attr): Likewise.
11103 (aarch64_override_options_internal): Likewise.
11105 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11107 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
11109 (aarch64_can_inline_p): Likewise.
11110 (TARGET_CAN_INLINE_P): Define.
11112 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11114 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11115 Remove static. Handle OPT_mgeneral_regs_only,
11116 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
11117 OPT_momit_leaf_frame_pointer.
11118 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
11119 (aarch64_attr_opt_type): New enum.
11120 (aarch64_attribute_info): New struct.
11121 (aarch64_handle_attr_arch): New function.
11122 (aarch64_handle_attr_cpu): Likewise.
11123 (aarch64_handle_attr_tune): Likewise.
11124 (aarch64_handle_attr_isa_flags): Likewise.
11125 (aarch64_attributes): New table.
11126 (aarch64_process_one_target_attr): New function.
11127 (num_occurences_in_str): Likewise.
11128 (aarch64_process_target_attr): Likewise.
11129 (aarch64_option_valid_attribute_p): Likewise.
11130 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11131 * config/aarch64/aarch64-protos.h: Include input.h
11132 (aarch64_handle_option): Declare prototype.
11134 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11136 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
11137 * config/aarch64/aarch64.c: Include target-globals.h
11138 (aarch64_previous_fndecl): New variable.
11139 (aarch64_set_current_function): New function.
11140 (TARGET_SET_CURRENT_FUNCTION): Define.
11142 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11144 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
11145 (explicit_arch): Likewise.
11146 (x_aarch64_isa_flags): Likewise.
11147 (mgeneral-regs-only): Mark as Save.
11148 (mfix-cortex-a53-835769): Likewise.
11149 (mcmodel=): Likewise.
11150 (mstrict-align): Likewise.
11151 (momit-leaf-frame-pointer): Likewise.
11152 (mtls-dialect): Likewise.
11153 (master=): Likewise.
11154 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
11155 (aarch64_isa_flags): Remove extern declaration.
11156 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
11157 to indicate success or failure.
11158 (aarch64_validate_march): Likewise.
11159 (aarch64_validate_mtune): Likewise.
11160 (aarch64_isa_flags): Delete.
11161 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
11162 instead of aarch64_isa_flags.
11163 (aarch64_get_tune_cpu): New function.
11164 (aarch64_get_arch): Likewise.
11165 (aarch64_override_options): Use above and set up explicit_tune_core
11167 (aarch64_print_extension): Move earlier in file. Add isa_flags
11168 argument and use that instead of the global aarch64_isa_flags.
11169 (aarch64_option_save): New function.
11170 (aarch64_option_restore): Likewise.
11171 (aarch64_option_print): Likewise.
11172 (aarch64_declare_function_name): Likewise.
11173 (aarch64_start_file): Delete.
11174 (TARGET_ASM_FILE_START): Do not define.
11175 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
11176 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
11179 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11181 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
11182 flag_omit_leaf_frame_pointer to 2.
11184 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11186 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
11188 (TARGET_FIX_ERR_A53_835769): New macro.
11189 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11190 handling of opts->x_aarch64_fix_a53_err835769.
11191 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
11192 than aarch64_fix_a53_err835769.
11193 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
11194 * config/aarch64/aarch64-linux.h: Likewise.
11196 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
11198 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
11199 ix86_expand_int_movcc as boolean.
11201 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11203 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
11204 (aarch64_cpu_string): Likewise.
11205 (aarch64_tune_string): Likewise.
11206 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
11207 (aarch64_parse_extension): Return aarch64_parse_opt_result.
11208 Add extra argument to put result into.
11209 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
11210 (aarch64_parse_cpu): Add arguments to put results into. Return
11211 aarch64_parse_opt_result.
11212 (aarch64_parse_tune): Likewise.
11213 (aarch64_override_options_after_change_1): New function.
11214 (aarch64_override_options_internal): New function.
11215 (aarch64_validate_mcpu): Likewise.
11216 (aarch64_validate_march): Likewise.
11217 (aarch64_validate_mtune): Likewise.
11218 (aarch64_override_options): Update to reflect above changes.
11219 Move some logic into aarch64_override_options_internal.
11220 Initialize target_option_default_node and target_option_current_node.
11221 (aarch64_override_options_after_change): Move logic into
11222 aarch64_override_options_after_change_1 and call it with global_options.
11223 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
11224 flag values from that.
11226 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11228 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11229 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
11230 * config/aarch64/aarch64.c (struct processor): Add arch field.
11231 (all_architectures): Handle above, move above all_cores.
11232 (all_cores): Handle above.
11233 (aarch64_parse_arch): Handle above changes.
11234 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
11235 above. Update comments.
11236 (armv8.1-a): Likewise.
11237 * config/aarch64/aarch64-cores.def: Update according to above.
11238 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
11239 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
11240 aarch64_arch_driver_info.
11242 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11244 * config/aarch64/aarch64.c (struct processor): Add ident field.
11245 Rename core sched_core.
11246 (all_cores): Handle above changes.
11247 (all_architectures): Likewise.
11248 (aarch64_parse_arch): Likewise.
11249 (aarch64_override_options): Likewise.
11251 2015-08-04 Richard Biener <rguenther@suse.de>
11253 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11254 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
11255 comparisons embedded in [VEC_]COND_EXPRs.
11257 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
11259 * tree-if-conv.c: Fix various typos in comments.
11260 * tree-vect-stmts.c: Likewise.
11262 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11264 PR tree-optimization/67043
11265 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
11266 preheader after hoisting invariant in it.
11267 (find_defs): Force recomputation of all luids.
11269 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
11271 * config/rs6000/htm.md (tabort.): Restrict the source operand to
11272 using a base register.
11274 2015-08-03 David Malcolm <dmalcolm@redhat.com>
11276 * main.c (main): Pass in NULL for toplev's external_timer.
11277 * timevar.c: Include coretypes.h.
11278 (class timer::named_items): New.
11279 (timer::named_items::named_items): New.
11280 (timer::named_items::~named_items): New.
11281 (timer::named_items::push): New.
11282 (timer::named_items::pop): New.
11283 (timer::named_items::print): New.
11284 (timer::timer): Initialize field "m_jit_client_items".
11285 (timer::~timer): New.
11286 (timer::push): Move bulk of implementation to...
11287 (timer::push_internal): ...here. New function.
11288 (timer::pop): Move bulk of implementation to...
11289 (timer::pop_internal): ...here. New function.
11290 (timer::push_client_item): New.
11291 (timer::pop_client_item): New.
11292 (timer::print_row): New function, taken from timer::print.
11293 (timer::print): Print "GCC items" header if we also have client
11294 items. Move row-printing to timer::print_row. Print any client
11296 (timer::get_topmost_item_name): New method.
11297 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
11298 (TV_JIT_CLIENT_CODE): New.
11299 * timevar.h (timer::push_client_item): New declaration.
11300 (timer::pop_client_item): New declaration.
11301 (timer::get_topmost_item_name): New method.
11302 (timer::push_internal): New declaration.
11303 (timer::pop_internal): New declaration.
11304 (timer::print_row): New declaration.
11305 (timer::named_items): New declaration.
11306 (timer::m_jit_client_items): New field.
11307 (timer): Add friend class named_items.
11308 (auto_timevar::auto_timevar): Add timer param.
11309 (auto_timevar::~auto_timevar): Use field "m_timer".
11310 (auto_timevar::m_timer): New field.
11311 * toplev.c (initialize_rtl): Add g_timer as param when
11312 constructing auto_timevar instance.
11313 (toplev::toplev): Add "external_timer" param, and use it to
11314 initialize the "g_timer" global if non-NULL.
11315 (toplev::~toplev): If this created "g_timer", delete it.
11316 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
11317 with "external_timer" timer *.
11319 2015-08-03 Alexander Basov <coohpt@gmail.com>
11321 PR middle-end/64744
11322 PR middle-end/48470
11323 PR middle-end/43404
11324 * cfgexpand.c (expand_one_var): Add check if stack is going to
11325 be used in naked function.
11326 * expr.c (expand_expr_addr_expr_1): Remove excess checking
11327 whether expression should not reside in MEM.
11328 * function.c (use_register_for_decl): Do not use registers for
11329 non-register things (volatile, float, BLKMode) in naked functions.
11331 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
11334 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
11335 Adjust splits to match new pattern.
11337 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11339 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
11342 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
11343 point in VSX registers.
11345 * config/rs6000/constraints.md (wb constraint): Document unused
11347 (we constraint): Likewise.
11348 (wo constraint): Likewise.
11349 (wp constraint): New constraint for IEEE 128-bit floating point in
11351 (wq constraint): Likewise.
11353 * config/rs6000/predicates.md (easy_fp_constant): Add support for
11354 IEEE 128-bit floating point in VSX registers.
11355 (easy_scalar_constant): Likewise.
11357 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11358 constraints (wp, wq) for IEEE 128-bit floating point in VSX
11360 (rs6000_init_hard_regno_mode_ok): Likewise.
11362 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11363 floating point in VSX registers.
11366 (VSX_M2): Likewise.
11372 (vsx_le_permute_<mode>): Add support to properly swap bytes for
11373 IEEE 128-bit floating point in VSX registers on little endian.
11374 (vsx_le_undo_permute_<mode>): Likewise.
11375 (vsx_le_perm_load_<mode>): Likewise.
11376 (vsx_le_perm_store_<mode>): Likewise.
11377 (splitters for IEEE 128-bit fp moves): Likewise.
11379 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11382 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11383 floating point in VSX registers.
11386 * doc/md.text (Machine Constraints): Document wp and wq
11387 constraints on PowerPC.
11389 2015-08-03 Jeff Law <law@redhat.com>
11391 PR middle-end/66314
11392 PR gcov-profile/66899
11393 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11394 iterate over the jump threading paths when an element in the
11395 jump threading paths array is eliminated.
11397 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
11399 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11401 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
11403 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11404 is_use_properly_guarded the variable def_preds. Free its
11405 contents before returning.
11406 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11407 (is_use_properly_guarded): Replace local variable def_preds with
11408 a parameter. Adjust accordingly. Only update *def_preds if it's
11411 2015-08-03 Richard Biener <rguenther@suse.de>
11413 * genmatch.c (simplify::for_subst_vec): New member.
11414 (binary_ok): New helper for for lowering.
11415 (lower_for): Delay substituting operators into result expressions
11416 if we can merge the results eventually again.
11417 (capture_info::walk_result): Adjust for user_id appearing as
11418 result expression operator.
11419 (expr::gen_transform): Likewise.
11420 (dt_simplify::gen_1): Likewise.
11421 (dt_simplify::gen): Pass not substituted operators to tail
11422 functions or initialize local variable with it.
11423 (decision_tree::gen): Adjust function signature.
11424 * match.pd: Fix tests against global code and add default
11425 cases to switch stmts.
11427 2015-08-03 Richard Biener <rguenther@suse.de>
11429 * genmatch.c (dt_simplify::gen): Create captures array
11430 with an initializer.
11432 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11434 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11435 the host compiler is affected by placement new aliasing bug.
11436 * configure: Regenerate.
11437 * Makefile.in (ALIASING_FLAGS): New variable.
11438 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11440 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11443 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11444 (negmulsf3_vfp): Likewise.
11445 (muldf3negdf_vfp): Disable for -frounding-math.
11446 (mulsf3negsf_vfp): Likewise.
11447 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11448 fix MULT cost with -frounding-math.
11450 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11452 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11453 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11454 explicit. Prefer to add the flag whenever possible.
11455 (noce_process_if_block): Try noce_try_store_flag_constants before
11458 2015-08-03 Richard Biener <rguenther@suse.de>
11460 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11461 New hash-map to record equivalent transforms.
11462 (dt_node::analyze): Populate the equivalent transforms hash-map.
11463 (dt_simplify::info): Add reference to hash-map entry.
11464 (dt_simplify::gen): If we have split out a function for the
11465 transform, generate a call to it.
11466 (sinfo_hashmap_traits::hash): New function.
11467 (compare_op): New helper function for ...
11468 (sinfo_hashmap_traits::equal_keys): ... this new function.
11469 (decision_tree::gen): Split out common equivalent transforms
11472 2015-08-03 Richard Biener <rguenther@suse.de>
11474 * gimple-fold.c (fold_gimple_assign): Remove folding of
11475 the comparison in COND_EXPRs.
11477 2015-08-03 Richard Biener <rguenther@suse.de>
11479 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11480 on the rhs of assignments first simplify the embedded
11483 2015-08-03 Richard Biener <rguenther@suse.de>
11485 PR tree-optimization/66917
11486 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11488 (DR_VECT_AUX): New macro.
11489 (set_dr_misalignment): Adjust.
11490 (dr_misalignment): Likewise.
11491 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11492 Compute whether the base is at least element aligned.
11493 * tree-vect-stmts.c (ensure_base_align): Adjust.
11494 (vectorizable_store): If the base is not element aligned
11495 preserve alignment of the original access if misalignment is unknown.
11496 (vectorizable_load): Likewise.
11498 2015-08-02 Martin Sebor <msebor@redhat.com>
11500 * c-family/c.opt (-Wframe-address): New warning option.
11501 * doc/invoke.texi (Wframe-address): Document it.
11502 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11503 Clarify possible effects of calling the functions with non-zero
11504 arguments and mention -Wframe-address.
11505 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11507 2015-08-01 Michael Collison <michael.collison@linaro.org
11508 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11510 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
11511 (*arm_umin_cmp): Likewise.
11513 2015-08-01 Caroline Tice <cmtice@google.com>
11516 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11518 (vtbl_find_mangled_name): New function.
11519 (vtbl_register_mangled_name): New function.
11520 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
11521 mangled name in mangled name vectors.
11522 (find_or_create_vtbl_map_node): Ditto.
11523 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
11524 update recursion_depth on function entry; pass it to every recursive
11525 call; automatically exit if depth > 25 (give up looking at that point).
11526 (verify_bb_vtables): Initialize recursion_depth and pass it to
11527 var_is_used_for_virtual_call_p.
11528 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11529 global variable decls.
11530 (vtbl_register_mangled_name): New extern function decl.
11532 2015-08-01 Tom de Vries <tom@codesourcery.com>
11534 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11536 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11538 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11539 operation_no_trapping_overflow. Allow non-overflow operations.
11540 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11543 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
11546 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11548 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11550 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11551 Enable for TARGET_32BIT.
11552 (*if_move_neg): Likewise.
11554 2015-07-31 Nick Clifton <nickc@redhat.com>
11556 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11557 Returns true for __model__.
11558 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11560 2015-07-31 Alan Modra <amodra@gmail.com>
11563 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11564 (rs6000_emit_prologue): Set it.
11565 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11567 2015-07-31 Richard Biener <rguenther@suse.de>
11569 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11570 -> X == (C1 ^ C2) which is already implemented in match.pd.
11571 Remove redundant dispatching to fold_relational_const.
11572 Move unordered self and NaN compares ...
11573 * match.pd: ... as patterns here. Remove some stray captures
11576 2015-07-31 Petr Murzin <petr.murzin@intel.com>
11578 * config/i386/i386.c
11579 (bdesc_special_args): Convert mask type from signed to unsigned for
11581 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11582 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11583 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11584 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11585 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11586 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11587 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11588 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11589 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11590 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11591 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11592 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11593 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11594 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11595 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11596 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11597 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11598 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11599 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11600 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11601 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11602 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11603 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11604 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
11605 * config/i386/i386-builtin-types.def
11606 (V16QI_FTYPE_V16SI): Remove.
11607 (V8DF_FTYPE_V8SI): Ditto.
11608 (V8HI_FTYPE_V8DI): Ditto.
11609 (V8SI_FTYPE_V8DI): Ditto.
11610 (V8SF_FTYPE_V8DF): Ditto.
11611 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
11612 (V16HI_FTYPE_V16SI): Ditto.
11613 (V16SF_FTYPE_V16HI): Ditto.
11614 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
11615 (V16SF_FTYPE_V16SI): Ditto.
11616 (V4DI_FTYPE_V4DI): Ditto.
11617 (V16SI_FTYPE_V16SF): Ditto.
11618 (V16SF_FTYPE_FLOAT): Ditto.
11619 (V8DF_FTYPE_DOUBLE): Ditto.
11620 (V8DI_FTYPE_INT64): Ditto.
11621 (V8DI_FTYPE_V4DI): Ditto.
11622 (V16QI_FTYPE_V8DI): Ditto.
11623 (UINT_FTYPE_V4SF): Ditto.
11624 (UINT64_FTYPE_V4SF): Ditto.
11625 (UINT_FTYPE_V2DF): Ditto.
11626 (UINT64_FTYPE_V2DF): Ditto.
11627 (V16SI_FTYPE_V16SI): Ditto.
11628 (V8DI_FTYPE_V8DI): Ditto.
11629 (V16SI_FTYPE_PV4SI): Ditto.
11630 (V16SF_FTYPE_PV4SF): Ditto.
11631 (V8DI_FTYPE_PV2DI): Ditto.
11632 (V8DF_FTYPE_PV2DF): Ditto.
11633 (V4DI_FTYPE_PV2DI): Ditto.
11634 (V4DF_FTYPE_PV2DF): Ditto.
11635 (V16SI_FTYPE_PV2SI): Ditto.
11636 (V16SF_FTYPE_PV2SF): Ditto.
11637 (V8DI_FTYPE_PV4DI): Ditto.
11638 (V8DF_FTYPE_PV4DF): Ditto.
11639 (V8SF_FTYPE_FLOAT): Ditto.
11640 (V4SF_FTYPE_FLOAT): Ditto.
11641 (V4DF_FTYPE_DOUBLE): Ditto.
11642 (V8SF_FTYPE_PV4SF): Ditto.
11643 (V8SI_FTYPE_PV4SI): Ditto.
11644 (V4SI_FTYPE_PV2SI): Ditto.
11645 (V8SF_FTYPE_PV2SF): Ditto.
11646 (V8SI_FTYPE_PV2SI): Ditto.
11647 (V16SF_FTYPE_PV8SF): Ditto.
11648 (V16SI_FTYPE_PV8SI): Ditto.
11649 (V8DI_FTYPE_V8SF): Ditto.
11650 (V4DI_FTYPE_V4SF): Ditto.
11651 (V2DI_FTYPE_V4SF): Ditto.
11652 (V64QI_FTYPE_QI): Ditto.
11653 (V32HI_FTYPE_HI): Ditto.
11654 (V8UHI_FTYPE_V8UHI): Ditto.
11655 (V16UHI_FTYPE_V16UHI): Ditto.
11656 (V32UHI_FTYPE_V32UHI): Ditto.
11657 (V2UDI_FTYPE_V2UDI): Ditto.
11658 (V4UDI_FTYPE_V4UDI): Ditto.
11659 (V8UDI_FTYPE_V8UDI): Ditto.
11660 (V4USI_FTYPE_V4USI): Ditto.
11661 (V8USI_FTYPE_V8USI): Ditto.
11662 (V16USI_FTYPE_V16USI): Ditto.
11663 (V2DF_FTYPE_V2DF_UINT64): Ditto.
11664 (V2DI_FTYPE_V2DF_V2DF): Ditto.
11665 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
11666 (V8DF_FTYPE_V8DF_V8DI): Ditto.
11667 (V4SF_FTYPE_V4SF_UINT64): Ditto.
11668 (V4SI_FTYPE_V4SF_V4SF): Ditto.
11669 (V16SF_FTYPE_V16SF_V16SI): Ditto.
11670 (V64QI_FTYPE_V32HI_V32HI): Ditto.
11671 (V32HI_FTYPE_V16SI_V16SI): Ditto.
11672 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
11673 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
11674 (V32HI_FTYPE_V64QI_V64QI): Ditto.
11675 (V32HI_FTYPE_V32HI_V32HI): Ditto.
11676 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
11677 (V16SI_FTYPE_V16SI_V4SI): Ditto.
11678 (V16SI_FTYPE_V16SI_V16SI): Ditto.
11679 (V16SI_FTYPE_V32HI_V32HI): Ditto.
11680 (V16SI_FTYPE_V16SI_SI): Ditto.
11681 (V8DI_FTYPE_V8DI_V8DI): Ditto.
11682 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
11683 (V8DI_FTYPE_V16SI_V16SI): Ditto.
11684 (V8DI_FTYPE_V8DI_V2DI): Ditto.
11685 (QI_FTYPE_QI): Ditto.
11686 (SI_FTYPE_SI): Ditto.
11687 (DI_FTYPE_DI): Ditto.
11688 (QI_FTYPE_QI_QI): Ditto.
11689 (QI_FTYPE_QI_INT): Ditto.
11690 (HI_FTYPE_HI_INT): Ditto.
11691 (SI_FTYPE_SI_INT): Ditto.
11692 (DI_FTYPE_DI_INT): Ditto.
11693 (HI_FTYPE_V16QI_V16QI): Ditto.
11694 (SI_FTYPE_V32QI_V32QI): Ditto.
11695 (DI_FTYPE_V64QI_V64QI): Ditto.
11696 (QI_FTYPE_V8HI_V8HI): Ditto.
11697 (HI_FTYPE_V16HI_V16HI): Ditto.
11698 (SI_FTYPE_V32HI_V32HI): Ditto.
11699 (QI_FTYPE_V4SI_V4SI): Ditto.
11700 (QI_FTYPE_V8SI_V8SI): Ditto.
11701 (QI_FTYPE_V2DI_V2DI): Ditto.
11702 (QI_FTYPE_V4DI_V4DI): Ditto.
11703 (QI_FTYPE_V8DI_V8DI): Ditto.
11704 (HI_FTYPE_V16SI_V16SI): Ditto.
11705 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
11706 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
11707 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
11708 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
11709 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
11710 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
11711 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
11712 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
11713 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
11714 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
11715 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
11716 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
11717 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
11718 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
11719 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
11720 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
11721 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
11722 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
11723 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
11724 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
11725 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
11726 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
11727 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
11728 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11729 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11730 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11731 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11732 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11733 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11734 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11735 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11736 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
11737 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
11738 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
11739 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11740 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11741 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11742 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
11743 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
11744 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
11745 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
11746 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
11747 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
11748 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
11749 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
11750 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
11751 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
11752 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11753 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11754 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
11755 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11756 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11757 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
11758 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
11759 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
11760 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
11761 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
11762 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
11763 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
11764 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
11765 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
11766 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
11767 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
11768 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
11769 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
11770 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
11771 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
11772 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
11773 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
11774 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
11775 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
11776 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
11777 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
11778 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
11779 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
11780 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
11781 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
11782 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
11783 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
11784 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
11785 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
11786 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
11787 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
11788 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
11789 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
11790 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
11791 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
11792 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
11793 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
11794 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
11795 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
11796 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
11797 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
11798 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
11799 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
11800 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
11801 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
11802 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
11803 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
11804 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
11805 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
11806 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11807 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11808 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11809 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
11810 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
11811 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
11812 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
11813 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
11814 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
11815 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
11816 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
11817 (HI_FTYPE_HI): Ditto.
11818 (HI_FTYPE_V16QI): Ditto.
11819 (SI_FTYPE_V32QI): Ditto.
11820 (DI_FTYPE_V64QI): Ditto.
11821 (QI_FTYPE_V8HI): Ditto.
11822 (HI_FTYPE_V16HI): Ditto.
11823 (SI_FTYPE_V32HI): Ditto.
11824 (QI_FTYPE_V4SI): Ditto.
11825 (QI_FTYPE_V8SI): Ditto.
11826 (HI_FTYPE_V16SI): Ditto.
11827 (QI_FTYPE_V2DI): Ditto.
11828 (QI_FTYPE_V4DI): Ditto.
11829 (QI_FTYPE_V8DI): Ditto.
11830 (V16QI_FTYPE_HI): Ditto.
11831 (V32QI_FTYPE_SI): Ditto.
11832 (V64QI_FTYPE_DI): Ditto.
11833 (V8HI_FTYPE_QI): Ditto.
11834 (V16HI_FTYPE_HI): Ditto.
11835 (V32HI_FTYPE_SI): Ditto.
11836 (V4SI_FTYPE_QI): Ditto.
11837 (V4SI_FTYPE_HI): Ditto.
11838 (V8SI_FTYPE_QI): Ditto.
11839 (V8SI_FTYPE_HI): Ditto.
11840 (V2DI_FTYPE_QI): Ditto.
11841 (V4DI_FTYPE_QI): Ditto.
11842 (HI_FTYPE_HI_HI): Ditto.
11843 (SI_FTYPE_SI_SI): Ditto.
11844 (DI_FTYPE_DI_DI): Ditto.
11845 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
11846 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
11847 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
11848 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
11849 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
11850 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
11851 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
11852 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
11853 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
11854 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
11855 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
11856 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
11857 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
11858 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
11859 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
11860 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
11861 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
11862 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
11863 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
11864 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
11865 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
11866 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
11867 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
11868 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
11869 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
11870 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
11871 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
11872 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
11873 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
11874 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
11875 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
11876 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
11877 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
11878 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
11879 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
11880 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
11881 (V16SI_FTYPE_HI): Ditto.
11882 (V8DI_FTYPE_QI): Ditto.
11883 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
11884 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
11885 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
11886 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
11887 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
11888 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
11889 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
11890 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
11891 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
11892 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
11893 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
11894 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
11895 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
11896 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
11897 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
11898 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
11899 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
11900 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
11901 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
11902 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
11903 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
11904 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
11905 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
11906 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
11907 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
11908 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
11909 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
11910 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
11911 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
11912 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
11913 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
11914 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
11915 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
11916 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
11917 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
11918 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
11919 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
11920 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
11921 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
11922 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
11923 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
11924 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
11925 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
11926 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
11927 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
11928 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
11929 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
11930 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
11931 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
11932 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
11933 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
11934 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
11935 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
11936 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
11937 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
11938 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
11939 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
11940 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
11941 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
11942 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
11943 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
11944 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
11945 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
11946 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
11947 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
11948 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
11949 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
11950 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
11951 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
11952 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
11953 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
11954 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
11955 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
11956 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
11957 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
11958 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
11959 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
11960 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
11961 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
11962 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
11963 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
11964 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
11965 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
11966 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
11967 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
11968 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
11969 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
11970 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
11971 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
11972 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
11973 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
11974 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
11975 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
11976 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
11977 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
11978 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
11979 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
11980 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
11981 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
11982 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
11983 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
11984 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
11985 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
11986 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
11987 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
11988 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
11989 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
11990 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
11991 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
11992 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
11993 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
11994 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
11995 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
11996 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
11997 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
11998 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
11999 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
12000 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
12001 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
12002 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
12003 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
12004 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
12005 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
12006 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
12007 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
12008 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
12009 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
12010 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
12011 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
12012 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
12013 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
12014 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
12015 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
12016 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
12017 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
12018 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
12019 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
12020 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
12021 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
12022 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
12023 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
12024 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
12025 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
12026 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
12027 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
12028 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
12029 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
12030 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
12031 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
12032 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
12033 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
12034 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
12035 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
12036 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
12037 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
12038 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
12039 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
12040 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
12041 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
12042 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
12043 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
12044 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
12045 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
12046 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
12047 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
12048 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
12049 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
12050 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
12051 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
12052 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
12053 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
12054 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
12055 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
12056 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
12057 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
12058 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
12059 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
12060 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
12061 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
12062 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
12063 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
12064 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
12065 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
12066 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
12067 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
12068 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
12069 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
12070 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
12071 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
12072 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
12073 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
12074 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
12075 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
12076 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
12077 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
12078 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
12079 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
12080 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
12081 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
12082 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
12083 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
12084 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
12085 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
12086 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
12087 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
12088 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
12089 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
12090 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
12091 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
12092 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
12093 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
12094 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
12095 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
12096 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
12097 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
12098 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
12099 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
12100 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
12101 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
12102 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
12103 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
12104 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
12105 (QI_FTYPE_V8DF_INT_QI): Ditto.
12106 (QI_FTYPE_V4DF_INT_QI): Ditto.
12107 (QI_FTYPE_V2DF_INT_QI): Ditto.
12108 (HI_FTYPE_V16SF_INT_HI): Ditto.
12109 (QI_FTYPE_V8SF_INT_QI): Ditto.
12110 (QI_FTYPE_V4SF_INT_QI): Ditto.
12111 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
12113 2015-07-31 Richard Biener <rguenther@suse.de>
12115 * gimple-fold.c (fold_gimple_assign): Remove folding of
12118 2015-07-31 Tom de Vries <tom@codesourcery.com>
12120 PR tree-optimization/66846
12121 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
12122 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
12123 (expand_omp_target) [ENABLE_CHECKING]: Same.
12124 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
12125 cfun if !LOOPS_NEED_FIXUP.
12126 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
12127 that omp_for already has its own loop struct.
12128 * tree-parloops.c (create_phi_for_local_result)
12129 (create_call_for_reduction): Handle simple latch bb.
12130 (create_parallel_loop): Add simple latch bb to preserve
12131 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
12132 (gen_parallel_loop): Remove call to cancel_loop_tree.
12133 (parallelize_loops): Skip loops that are inner loops of parallelized
12135 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
12136 verify_loop_structure.
12138 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12140 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
12141 * config/v850/v850.md (RV_REGNUM): New constants.
12142 * config/v850/v850.c (v850_libcall_value): New functions.
12143 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
12144 (TARGET_LIBCALL_VALUE): Define.
12146 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12148 * rtl.h (lowpart_subreg): Move in file.
12149 * loop-iv.c (lowpart_subreg): Move to...
12150 * simplify-rtx.c (lowpart_subreg): ...here.
12151 (simplify_binary_operation_1): Use lowpart_subreg instead of
12152 simplify_gen_subreg.
12153 * expr.c (expand_expr_real_2): Ditto.
12154 * emit-rtl.c (gen_lowpart_common): Ditto.
12155 * combine.c (gen_lowpart_for_combine): Ditto.
12156 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
12157 expand_debug_source_expr): Ditto.
12159 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
12161 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
12162 (expand_builtin_atomic_clear): Remove support for atomic_clear
12165 2015-07-30 Richard Biener <rguenther@suse.de>
12167 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
12168 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
12169 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
12170 redundant operand canonicalization.
12172 2015-07-30 David Sherwood <david.sherwood@arm.com>
12174 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
12175 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
12176 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
12177 * config/arm/arm.c (neon_valid_immediate): Likewise.
12178 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
12179 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
12180 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
12181 (expand_vec_perm_vpshufb2_vpermq): Likewise.
12182 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
12183 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
12184 * config/i386/sse.md
12185 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
12186 (*ssse3_palignr<mode>_perm): Likewise.
12187 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
12188 * config/spu/spu.c (arith_immediate_p): Likewise.
12189 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12190 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
12192 2015-07-30 Richard Biener <rguenther@suse.de>
12194 * genmatch.c (decision_tree::gen_gimple): Merge with ...
12195 (decision_tree::gen_generic): ... this into ...
12196 (decision_tree::gen): ... this.
12197 (main): Adjust callers.
12199 2015-07-30 Richard Biener <rguenther@suse.de>
12201 * genmatch.c (verbose): New global.
12202 (warning_at): Add overload with source_location.
12203 (capture_info::capture_info): Add bool whether generating gimple
12204 or generic. Add gimple member.
12205 (capture_info::cinfo): Add capture member.
12206 (capture_info::walk_match): Record capture. Warn on
12207 non-captured leafs.
12208 (capture_info::walk_c_expr): Add more fragments captures cannot
12209 escape through. Warn on escaped captures.
12210 (dt_simplify::gen_1): Warn on operands we force to have no
12212 (main): Initialize verbose.
12213 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
12215 2015-07-30 Richard Biener <rguenther@suse.de>
12217 PR middle-end/67053
12218 * match.pd: Allow both operands to independently have conversion
12219 when simplifying compares of addresses.
12221 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12225 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
12226 around those cases that need one.
12228 2015-07-29 Aditya Kumar <hiraditya@msn.com>
12230 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
12232 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
12234 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
12235 New. Copied from config/i386/gnu-user.h.
12236 (ASM_COMMENT_START): Likewise.
12237 (DBX_REGISTER_NUMBER): Likewise.
12239 2015-07-29 Richard Biener <rguenther@suse.de>
12241 * gimple-fold.c (fold_gimple_cond): Remove.
12242 (fold_stmt_1): Do not call it.
12244 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
12246 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
12247 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
12249 * config/aarch64/aarch64-modes.def: Add HFmode.
12251 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12252 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
12254 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
12255 aarch64_promoted_type): New.
12257 (aarch64_float_const_representable_p): Disable HFmode.
12258 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
12259 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
12260 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
12262 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
12263 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
12265 * config/aarch64/iterators.md (GPF_F16): New.
12267 2015-07-29 Richard Biener <rguenther@suse.de>
12269 * match.pd: Merge address comparison patterns and make them
12270 handle some more cases.
12272 2015-07-29 Richard Biener <rguenther@suse.de>
12274 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
12275 (parser::parse_capture): Add bool argument on whether to reject
12277 (parser::parse_expr): Adjust.
12278 (parser::parse_op): Likewise.
12279 (parser::parse_pattern): Likewise.
12281 2015-07-29 Richard Biener <rguenther@suse.de>
12283 * gimple-fold.c (has_use_on_stmt): New function.
12284 (replace_stmt_with_simplification): Use it to allow
12285 abnormals originally referenced in the stmt.
12286 (fold_stmt_1): Canonicalize operand order.
12288 2015-07-28 David Sherwood <david.sherwood@arm.com>
12290 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
12291 GET_MODE_INNER unconditionally.
12292 * config/spu/spu.c (arith_immediate_p): Likewise.
12293 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
12294 * expmed.c (synth_mult): Remove check for VOIDmode result from
12296 (expand_mult_const): Likewise.
12297 * fold-const.c (fold_binary_loc): Replace call to element_precision
12298 with call to GET_MODE_PRECISION.
12299 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
12301 (emit_mode_inner): Likewise.
12302 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
12304 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
12305 (GET_MODE_UNIT_PRECISION): Likewise.
12306 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
12307 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12308 * stor-layout.c (bitwise_type_for_mode): Update assert.
12309 (element_precision): Remove.
12311 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12313 * target-insns.def (reload_load_address): New targetm instruction
12315 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
12317 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12319 * target-insns.def (atomic_test_and_set): New targetm instruction
12321 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
12322 HAVE_*/gen_* interface.
12324 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12326 * target-insns.def (can_extend, ptr_extend): New targetm instruction
12328 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
12329 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12330 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
12331 * rtlanal.c (nonzero_bits1): Likewise.
12332 (num_sign_bit_copies1): Likewise.
12334 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12336 * target-insns.def (eh_return): New targetm instruction pattern.
12337 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
12339 * function.c (thread_prologue_and_epilogue_insns): Remove
12340 preprocessor condition.
12342 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12344 * target-insns.def (indirect_jump): New targetm instruction pattern.
12345 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
12348 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12350 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
12351 instead of nonimmediate_operand. Remove C condiition.
12353 2015-07-28 Richard Biener <rguenther@suse.de>
12355 * match.pd: Add more simplification of address comparisons.
12357 2015-07-28 Richard Biener <rguenther@suse.de>
12359 * match.pd: Re-order two cases in comparison with max/min
12360 value simplification to make it apply for bools.
12362 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12364 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12365 Handle simple SIGN_EXTEND or ZERO_EXTEND.
12366 (aarch64_rtx_costs): Properly strip extend or extract before
12367 passing down to rtx costs again.
12369 2015-07-28 Nick Clifton <nickc@redhat.com>
12371 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12372 Optimizes the case where -mes0 is active and a constant symbolic
12374 * config/rl78/rl78-protos.h: Prototype the new function.
12375 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12377 2015-07-28 Tom de Vries <tom@codesourcery.com>
12379 * tree-parloops.c (reduc_stmt_res): New function.
12380 (initialize_reductions, add_field_for_reduction)
12381 (create_phi_for_local_result, create_loads_for_reductions)
12382 (create_stores_for_reduction, build_new_reduction): Handle case that
12383 reduc_stmt is a phi.
12384 (gather_scalar_reductions): Allow double_reduc reductions.
12386 2015-07-28 Richard Biener <rguenther@suse.de>
12388 * fold-const.c (fold_comparison): Remove equality folding
12389 of decl addresses ...
12390 * match.pd: ... here and merge with existing pattern.
12392 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12394 PR tree-optimization/66828
12395 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12396 from int64_t to uint64_t.
12398 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
12400 * opts-common.c (read_cmdline_option): List DriverOnly enum values
12401 as valid only in the error message of the driver, not in the
12402 messages of the language compilers.
12404 2015-07-27 Tom de Vries <tom@codesourcery.com>
12406 * tree-parloops.c (gather_scalar_reductions): Simplify function
12409 2015-07-27 Marek Polacek <polacek@redhat.com>
12411 * ipa-devirt.c (types_same_for_odr): Fix typo.
12413 2015-07-27 Jason Merrill <jason@redhat.com>
12416 * dwarf2out.c (gen_inlined_subroutine_die): Check
12417 cgraph_function_possibly_inlined_p.
12419 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12421 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12422 Place integer variant first.
12423 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12425 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12428 * config/arm/arm-builtins.c (enum arm_builtins):
12429 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12430 (ARM_BUILTIN_NEON_BASE): Rename macro to....
12431 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12432 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12433 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12435 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12438 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12439 Add qualifier_lane_index.
12440 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12441 (arm_getlane_qualifiers): Use qualifier_lane_index.
12442 (arm_lanemac_qualifiers): Rename to...
12443 (arm_mac_n_qualifiers): ...this.
12444 (LANEMAC_QUALIFIERS): Rename to...
12445 (MAC_N_QUALIFIERS): ...this.
12446 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12447 (arm_setlane_qualifiers): Use qualifier_lane_index.
12448 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12449 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12450 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12451 (arm_expand_neon_builtin): Handle qualifier_lane_index.
12453 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12454 * config/arm/arm.c (bounds_check): Likewise, improve error message.
12455 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12456 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12457 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12458 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12459 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12460 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12461 qualifiers to TERNOP_IMM.
12462 (vdup_lane): Change qualifiers to GETLANE.
12463 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12464 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12465 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12466 vqdmlsl_n): Change qualifiers to MAC_N.
12468 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12469 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12470 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12471 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12472 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12473 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12474 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12475 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12476 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12477 Remove call to neon_lane_bounds.
12479 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12481 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12482 Place integer variant first.
12484 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
12486 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12487 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12488 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12489 for armv6kz targets.
12490 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12491 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12492 (FL_FOR_ARCH6ZK): Remove.
12493 (FL_FOR_ARCH6KZ): New.
12494 (arm_arch6zk): New declaration.
12495 * config/arm/arm-tables.opt: Regenerate.
12496 * config/arm/arm.c (arm_arch6kz): New.
12497 (arm_option_override): Set arm_arch6kz.
12498 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12499 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12500 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12502 2015-07-27 Marek Polacek <polacek@redhat.com>
12506 * doc/invoke.texi: Document -Wtautological-compare.
12508 2015-07-27 Richard Biener <rguenther@suse.de>
12510 * genmatch.c (decision_tree::gen_gimple): Split out large
12511 subtrees into separate functions.
12512 (decision_tree::gen_generic): Likewise.
12514 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
12516 * config/alpha/alpha.c: Use SUBREG_P predicate.
12517 * config/alpha/predicates.md: Ditto.
12519 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
12521 * config.host (s390*-*-*): Include driver-native.c only when
12522 building with s390* as host *and* target.
12524 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
12527 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12528 T bit register modified_between_p check.
12530 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12532 * config/i386/i386.c: Use SUBREG_P predicate.
12533 * config/i386/i386.md: Ditto.
12534 * config/i386/sse.md: Ditto.
12535 * config/i386/predicates.md: Ditto.
12537 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12540 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12541 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12543 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12545 * Makefile.in: Remove use of TREEBROWSER.
12546 * config.in: Regenerated.
12547 * configure: Regenerated.
12548 * configure.ac: Remove definition of TREEBROWSER.
12549 * tree-browser.c: Removed.
12550 * tree-browser.def: Removed.
12552 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12554 * graphite-scop-detection.c: Include gimple-pretty-print.h.
12555 (stmt_simple_for_scop_p): Print when a stmt is not handled in
12557 (scopdet_basic_block_info): Print when a loop or bb cannot be
12558 represented in Graphite.
12560 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12563 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12564 execution guard when min_size is less than size_needed.
12566 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12568 * doc/install.texi: Document supported versions of ISL.
12570 2015-07-25 Jeff Law <law@redhat.com>
12574 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12575 unable to find X NE 0 in the tables, return X as the simplified
12577 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12578 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12579 to VISISTED_BBS. */
12580 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12581 after removing the control flow statement and unnecessary edges.
12583 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
12586 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12588 PR rtl-optimization/64164
12589 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12590 * tree-ssa-copyrename.c: Removed.
12591 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12592 -ftree-coalesce-vars.
12593 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12594 * common.opt (ftree-copyrename): Ignore.
12595 (ftree-coalesce-inlined-vars): Likewise.
12596 * doc/invoke.texi: Remove the ignored options above.
12597 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12598 * tree-ssa-coalesce.h: ... here.
12599 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12600 headers required by it.
12601 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12602 across variables when flag_tree_coalesce_vars. Check register
12603 use and promoted modes to allow coalescing. Moved to
12604 tree-ssa-coalesce.c.
12605 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12606 with its member functions to tree-ssa-coalesce.c.
12607 (var_map_base_init): Likewise. Renamed to
12608 compute_samebase_partition_bases.
12609 (partition_view_normal): Drop want_bases parameter.
12610 (partition_view_bitmap): Likewise.
12611 * tree-ssa-live.h: Adjust declarations.
12612 * tree-ssa-coalesce.c: Include explow.h.
12613 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12614 default defs at the entry point.
12615 (dump_part_var_map): New.
12616 (compute_optimized_partition_bases): New, called by...
12617 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12618 of compute_samebase_partition_bases. Adjust.
12619 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12620 * cfgexpand.c (leader_merge): New.
12621 (get_rtl_for_parm_ssa_default_def): New.
12622 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12623 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12624 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12625 redundant MEM attr setting.
12626 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12628 (expand_one_stack_var): ... this. New wrapper to check and
12629 skip already expanded SSA partitions.
12630 (record_alignment_for_reg_var): New, factored out of...
12631 (expand_one_var): ... this.
12632 (expand_one_ssa_partition): New.
12633 (adjust_one_expanded_partition_var): New.
12634 (expand_one_register_var): Check and skip already expanded SSA
12636 (expand_used_vars): Don't create DECLs for anonymous SSA
12637 names. Expand all SSA partitions, then adjust all SSA names.
12638 (pass::execute): Replace the loops that set
12639 SA.partition_to_pseudo from partition leaders and cleared
12640 DECL_RTL for multi-location variables, and that which used to
12641 rename vars and set attrs, with one that clears DECL_RTL and
12642 checks that PARMs and RESULTs default_defs match DECL_RTL.
12643 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12644 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12645 * explow.c (promote_ssa_mode): New.
12646 * explow.h (promote_ssa_mode): Declare.
12647 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12648 * function.c: Include cfgexpand.h.
12649 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12650 (use_register_for_parm_decl): Wrapper for the above to
12651 special-case the result_ptr.
12652 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12653 (split_complex_args): Take assign_parm_data_all argument.
12654 Pass it to rtl_for_parm. Set up rtl and context for split
12656 (assign_parms_augmented_arg_list): Adjust.
12657 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12658 multiple locations. Recognize split complex args.
12659 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12660 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12661 (assign_parm_setup_block): Prefer SSA-assigned location.
12662 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12663 if stack_parm is NULL.
12664 (assign_parm_setup_stack): Prefer SSA-assigned location.
12665 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12666 rtl before testing for pointer bounds. Special-case result_ptr.
12667 (expand_function_start): Maybe reset DECL_RTL of result.
12668 Prefer SSA-assigned location for result and static chain.
12669 Factor out DECL_RESULT and SET_DECL_RTL.
12670 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12671 anonymous SSA names. Use promote_ssa_mode.
12672 (get_temp_reg): Likewise.
12673 (remove_ssa_form): Adjust.
12674 * stor-layout.c (layout_decl): Don't set mem attributes of
12676 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12677 and get its reg_usage for reg invalidation.
12678 (compute_bb_dataflow): Pass it insn.
12679 (emit_notes_in_bb): Likewise.
12681 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12683 * config/i386/i386.c (ix86_va_start): Remove
12684 unneeded !TARGET_64BIT check.
12685 (ix86_gimplify_va_arg): Ditto.
12687 2015-07-24 Tom de Vries <tom@codesourcery.com>
12689 * graphite-sese-to-poly.c (build_poly_scop): Always call
12690 rewrite_commutative_reductions_out_of_ssa.
12692 2015-07-24 Tom de Vries <tom@codesourcery.com>
12694 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
12695 flag_associative_math to FLOAT_TYPE_P. Honour
12696 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
12698 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12701 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
12702 and "%qD" in warning_at instead of "%q+D" in warning.
12704 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12706 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
12707 (ix86_function_abi): Cleanup.
12709 2015-07-24 Michael Darling <darlingm@gmail.com>
12712 * acinclude.m4: Reflects renaming of configure.in to configure.ac
12713 * configure: Likewise
12714 * configure.ac: Likewise
12715 * doc/install.texi: Likewise
12716 * doc/tm.texi: Likewise
12717 * doc/tm.texi.in: Likewise
12719 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12721 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
12722 manually swapping values.
12723 * cse.c (fold_rtx): Likewise.
12724 * lra-eliminations.c (form_sum): Likewise.
12726 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12729 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
12730 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
12731 (*jcc_1, *jcc_2, jump, simple_return_internal)
12732 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
12733 Set length_nobnd attribute instead of length attribute.
12734 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
12735 (length_nobnd): Remove attribute.
12736 (length): Remove length_nobnd processing.
12738 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
12740 * gimplify.c (omp_default_clause): New function. Reorganize flow
12741 for clarity. Broken out of ...
12742 (omp_notice_variable): ... here.
12744 2015-07-24 Gary Funck <gary@intrepid.com>
12746 PR middle-end/66984
12747 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
12748 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
12750 2015-07-24 Tom de Vries <tom@codesourcery.com>
12752 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
12753 exit-first loop transform.
12755 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12758 * tree-cfg.c (struct replace_decls_d): New struct.
12759 (replace_block_vars_by_duplicates_1): New function.
12760 (replace_block_vars_by_duplicates): Use it to replace the decls
12761 in the value exprs by duplicates.
12763 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12765 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
12766 -shared, -symbolic, -rdynamic.
12768 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12771 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
12772 -dynamic-linker within %{!static %{!shared, and -rdynamic within
12775 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12778 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
12779 edge summary is available.
12781 2015-07-24 Richard Biener <rguenther@suse.de>
12783 * genmatch.c (struct dt_node): Add statistic fields.
12784 (dt_node::analyze): New method.
12785 (decision_tree::gen_gimple): Call analyze on the root node
12786 and print statistics to stderr.
12787 (decision_tree::gen_generic): Likewise.
12789 2015-07-24 Richard Biener <rguenther@suse.de>
12791 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
12792 against the highest or lowest possible integer ...
12793 * match.pd: ... as patterns here.
12795 2015-07-24 Richard Biener <rguenther@suse.de>
12797 * genmatch.c (struct capture_info): Add same_as field.
12798 (capture_info::capture_info): Initialize same_as.
12799 (capture_info::walk_match): Compute same_as.
12800 (capture_info::walk_result): Compute stuff for the leader.
12801 (capture_info::walk_c_expr): Likewise.
12802 (dt_simplify::gen_1): Only look at leaders when deciding
12803 to force no side-effects or emit side-effects of omitted operands.
12805 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12807 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
12808 reg note to the GPR -> FPR save instructions.
12810 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12812 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
12814 (s390_expand_insv): Don't generate risbg pattern for constant zero
12816 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
12817 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
12820 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12822 * config/s390/s390.c (s390_reorg): Clean up handling of processors
12825 (s390_issue_rate): Likewise.
12826 (s390_sched_reorder): Likewise.
12827 (s390_sched_variable_issue): Likewise.
12828 (s390_loop_unroll_adjust): Likewise.
12829 (s390_option_override): Likewise.
12831 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12833 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
12834 processor capabilities with -march=native.
12835 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
12836 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
12837 (S390_TARGET_BITS_STRING): Macro to simplify specs.
12839 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12841 * config/s390/s390.c (s390_issue_rate): Handle
12842 PROCESSOR_2094_Z9_EC.
12843 (s390_option_override): Likewise.
12844 (s390_adjust_priority): Likewise.
12846 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12848 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
12849 when cross compiling.
12851 2015-07-24 Richard Biener <rguenther@suse.de>
12853 * fold-const.c (maybe_canonicalize_comparison_1): Move
12854 A code CST canonicalization ...
12855 * match.pd: ... to a pattern here.
12857 2015-07-24 Jiong Wang <jiong.wang@arm.com>
12860 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12862 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12863 (HONOR_REG_ALLOC_ORDER): Define.
12865 2015-07-24 Richard Biener <rguenther@suse.de>
12867 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
12868 * fold-const.c (fold_comparison): Move parameter does not
12869 alias &local simplification ...
12870 * match.pd: ... as a pattern here.
12872 2015-07-24 Richard Biener <rguenther@suse.de>
12874 * gimple-fold.c (replace_stmt_with_simplification): Special-case
12875 valueizing call operands.
12876 * gimple-match-head.c (maybe_push_res_to_seq): Take
12877 number of call arguments from ops array.
12878 (do_valueize): New function.
12879 (gimple_simplify): Return true if valueization changed
12880 any operand even if the result didn't simplify further.
12882 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12884 PR middle-end/25530
12885 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
12887 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12889 PR middle-end/25529
12890 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
12892 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12894 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
12897 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12899 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
12902 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
12904 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
12905 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
12907 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
12908 ms_va_list_type_node initialization.
12910 2015-07-23 Jeff Law <law@redhat.com>
12913 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12914 unable to find X NE 0 in the tables, return X as the simplified
12916 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12917 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12918 to VISISTED_BBS. */
12919 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12920 after removing the control flow statement and unnecessary edges.
12922 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
12924 * tree-pass.h (get_current_pass_name): Removed.
12926 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12928 PR rtl-optimization/64164
12929 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12930 * tree-ssa-copyrename.c: Removed.
12931 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12932 -ftree-coalesce-vars.
12933 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12934 * common.opt (ftree-copyrename): Ignore.
12935 (ftree-coalesce-inlined-vars): Likewise.
12936 * doc/invoke.texi: Remove the ignored options above.
12937 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12938 * tree-ssa-coalesce.h: ... here.
12939 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12940 headers required by it.
12941 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12942 across variables when flag_tree_coalesce_vars. Check register
12943 use and promoted modes to allow coalescing. Moved to
12944 tree-ssa-coalesce.c.
12945 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12946 with its member functions to tree-ssa-coalesce.c.
12947 (var_map_base_init): Likewise. Renamed to
12948 compute_samebase_partition_bases.
12949 (partition_view_normal): Drop want_bases parameter.
12950 (partition_view_bitmap): Likewise.
12951 * tree-ssa-live.h: Adjust declarations.
12952 * tree-ssa-coalesce.c: Include explow.h.
12953 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12954 default defs at the entry point.
12955 (dump_part_var_map): New.
12956 (compute_optimized_partition_bases): New, called by...
12957 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12958 of compute_samebase_partition_bases. Adjust.
12959 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12960 * cfgexpand.c (leader_merge): New.
12961 (get_rtl_for_parm_ssa_default_def): New.
12962 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12963 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12964 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12965 redundant MEM attr setting.
12966 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12968 (expand_one_stack_var): ... this. New wrapper to check and
12969 skip already expanded SSA partitions.
12970 (record_alignment_for_reg_var): New, factored out of...
12971 (expand_one_var): ... this.
12972 (expand_one_ssa_partition): New.
12973 (adjust_one_expanded_partition_var): New.
12974 (expand_one_register_var): Check and skip already expanded SSA
12976 (expand_used_vars): Don't create DECLs for anonymous SSA
12977 names. Expand all SSA partitions, then adjust all SSA names.
12978 (pass::execute): Replace the loops that set
12979 SA.partition_to_pseudo from partition leaders and cleared
12980 DECL_RTL for multi-location variables, and that which used to
12981 rename vars and set attrs, with one that clears DECL_RTL and
12982 checks that PARMs and RESULTs default_defs match DECL_RTL.
12983 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12984 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12985 * explow.c (promote_ssa_mode): New.
12986 * explow.h (promote_ssa_mode): Declare.
12987 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12988 * function.c: Include cfgexpand.h.
12989 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12990 (use_register_for_parm_decl): Wrapper for the above to
12991 special-case the result_ptr.
12992 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12993 (split_complex_args): Take assign_parm_data_all argument.
12994 Pass it to rtl_for_parm. Set up rtl and context for split
12996 (assign_parms_augmented_arg_list): Adjust.
12997 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12998 multiple locations. Recognize split complex args.
12999 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13000 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13001 (assign_parm_setup_block): Prefer SSA-assigned location.
13002 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13003 if stack_parm is NULL.
13004 (assign_parm_setup_stack): Prefer SSA-assigned location.
13005 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13006 rtl before testing for pointer bounds. Special-case result_ptr.
13007 (expand_function_start): Maybe reset DECL_RTL of result.
13008 Prefer SSA-assigned location for result and static chain.
13009 Factor out DECL_RESULT and SET_DECL_RTL.
13010 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13011 anonymous SSA names. Use promote_ssa_mode.
13012 (get_temp_reg): Likewise.
13013 (remove_ssa_form): Adjust.
13014 * stor-layout.c (layout_decl): Don't set mem attributes of
13016 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13017 and get its reg_usage for reg invalidation.
13018 (compute_bb_dataflow): Pass it insn.
13019 (emit_notes_in_bb): Likewise.
13021 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13024 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
13026 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
13027 (rs6000_emit_2insn_and): Handle dot forms.
13028 * config/rs6000/rs6000.md (and<mode>3): Adjust.
13029 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
13030 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
13032 2015-07-23 Richard Biener <rguenther@suse.de>
13034 * generic-match-head.c: Include cgraph.h.
13035 * gimple-match-head.c: Likewise.
13036 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
13038 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
13039 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
13042 2015-07-23 Richard Biener <rguenther@suse.de>
13044 * gimple-fold.c (fold_gimple_cond): Do not require folding
13045 results to pass valid_gimple_rhs_p.
13046 * tree-cfg.h (fold_cond_expr_cond): Remove.
13047 * tree-cfg.c (fold_cond_expr_cond): Likewise.
13048 (make_edges): Do not call it.
13049 * tree-inline.c (tree_function_versioning): Likewise.
13051 2015-07-23 Tom de Vries <tom@codesourcery.com>
13053 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13054 vect_force_simple_reduction.
13055 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
13056 (vect_is_simple_reduction_1): Add and handle
13057 need_wrapping_integral_overflow parameter.
13058 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
13059 need_wrapping_integral_overflow parameter.
13060 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
13061 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
13064 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
13066 PR tree-optimization/66926,66951
13067 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
13068 INNER_LOOP and fix up condition for renaming virtual operands.
13070 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13072 * combine.c (try_combine): Use std::swap instead of manually
13075 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
13077 * config/mips/i6400.md: New file.
13078 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
13079 (mips64r6): Likewise.
13081 * config/mips/mips-tables.opt: Regenerate.
13082 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
13083 (mips_issue_rate): Add support for i6400.
13084 (mips_multipass_dfa_lookahead): Likewise.
13085 * config/mips/mips.h (TUNE_I6400): Define.
13086 * config/mips/mips.md: Include i6400.md.
13087 (processor): Add i6400.
13088 * doc/invoke.texi (-march=@var{arch}): Add i6400.
13090 2015-07-23 Richard Biener <rguenther@suse.de>
13092 PR middle-end/66916
13093 * match.pd: Guard widen and sign-change comparison simplification
13096 2015-07-23 Richard Biener <rguenther@suse.de>
13098 PR tree-optimization/66945
13099 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
13100 ::before_dom_children): Force the propagators idea of
13101 non-executable edges to materialize, not what the folder
13104 2015-07-23 Richard Biener <rguenther@suse.de>
13106 * gimple.h (gimple_cond_make_false): Use 0 != 0.
13107 (gimple_cond_make_true): Use 1 != 0.
13109 2015-07-22 DJ Delorie <dj@redhat.com>
13111 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
13114 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
13115 (ashrhi3): Likewise.
13116 (lshrhi3): Likewise.
13117 (movhi): Take advantage of zero-extend to load small constants.
13118 (movpsi): Likewise.
13119 (and<mode>3): Likewise.
13120 (zero_extendqihi2): Likewise.
13121 (zero_extendqisi2): New.
13122 * config/msp430/constraints.md (N,O): New.
13123 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
13125 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
13128 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
13129 to enum feature_priority and feature_list.
13130 (fold_builtin_cpu): Add F_AES to enum processor_features
13131 and isa_names_table.
13133 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
13136 * config/i386/linux-common.h (MPX_SPEC): Use linker option
13137 for 64bit target only.
13139 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
13141 * config/nvptx/nvptx.c: Expand some comments.
13143 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
13145 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
13146 (cortex_a53_advsimd): ...This.
13148 2015-07-22 Richard Biener <rguenther@suse.de>
13150 * genmatch.c (expr::gen_transform): Clarify error message
13151 and display location.
13153 2015-07-22 Richard Biener <rguenther@suse.de>
13155 * genmatch.c (struct operand): Add location member.
13156 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
13158 (struct simplify): Remove match_location and result_location
13160 (elsehwere): Adjust.
13162 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
13164 * config/mips/m5100.md: New file.
13165 * config/mips/mips-cpus.def (m5100, m5101): Define.
13166 * config/mips/mips-tables.opt: Regenerate.
13167 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
13168 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
13169 -march=m5101 to -mips32r5.
13170 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
13171 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
13173 * config/mips/mips.md: Include m5100.md.
13174 (processor): Add m5100.
13175 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
13177 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
13179 * config/mips/mips-cpus.def (interaptiv): Define.
13180 * config/mips/mips-tables.opt: Regenerate.
13181 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
13183 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
13184 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
13186 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13189 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13190 (HONOR_REG_ALLOC_ORDER): Define.
13192 2015-07-22 Richard Biener <rguenther@suse.de>
13194 PR tree-optimization/66952
13195 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
13196 blocks we end up executing unconditionally reset all SSA
13197 info such as range and alignment.
13198 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
13199 * tree-ssanames.c (reset_flow_sensitive_info): New function.
13201 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13203 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
13206 2015-07-22 Richard Biener <rguenther@suse.de>
13208 * genmatch.c (parser::parse_result): Properly handle
13209 match with result operands and conditions.
13211 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13214 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
13215 Add qualifier_struct_load_store_lane_index.
13216 (aarch64_types_loadstruct_lane_qualifiers): Use
13217 qualifier_struct_load_store_lane_index for lane index argument for
13219 (aarch64_types_storestruct_lane_qualifiers): Ditto.
13220 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13221 (aarch64_simd_expand_args): Add new argument describing mode of
13222 builtin. Check lane bounds for arguments with
13223 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13224 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
13225 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13226 (aarch64_simd_expand_builtin): Handle arguments with
13227 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
13228 aarch64_simd_expand_args.
13229 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
13230 vst[234]_lane with BUILTIN_VALLDIF.
13231 * config/aarch64/aarch64-simd.md:
13232 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
13233 endianness reversal on lane index.
13234 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
13235 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
13236 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
13237 (vec_store_lanesci_lane<mode>): Ditto.
13238 (vec_store_lanesxi_lane<mode>): Ditto.
13239 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
13240 reversal of lane index.
13241 (aarch64_ld3_lane<mode>): Ditto.
13242 (aarch64_ld4_lane<mode>): Ditto.
13243 (aarch64_st2_lane<mode>): Ditto.
13244 (aarch64_st3_lane<mode>): Ditto.
13245 (aarch64_st4_lane<mode>): Ditto.
13246 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
13247 to qmode. Add new mode parameter. Update uses.
13248 (__LD3_LANE_FUNC): Ditto.
13249 (__LD4_LANE_FUNC): Ditto.
13250 (__ST2_LANE_FUNC): Ditto.
13251 (__ST3_LANE_FUNC): Ditto.
13252 (__ST4_LANE_FUNC): Ditto.
13254 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
13256 * doc/invoke.texi (Language Independent Options): Rename node to
13257 Diagnostic Message Formatting Options.
13259 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
13262 * lra-remat.c (operand_to_remat): Prevent using insns with input
13263 subregs processed separately by IRA.
13265 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
13267 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
13269 (single_imm_use): Check for iterator node.
13270 (num_imm_uses): Likewise.
13271 * tree-ssa-operands.c (has_zero_uses_1): Delete.
13272 (single_imm_use_1): Check for iterator node.
13274 2015-07-21 Mike Frysinger <vapier@gentoo.org>
13275 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13277 * configure.ac: Add check for new options in isl-0.15.
13278 * config.in, configure: Rebuilt.
13279 * graphite-blocking.c: Include <isl/constraint.h>
13280 * graphite-interchange.c, graphite-poly.c: Likewise.
13281 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
13282 * graphite.c: Likewise.
13283 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
13285 * graphite-dependences.c: Include <isl/constraint.h>.
13286 (max_number_of_out_dimensions): Returns isl_stat.
13287 (extend_schedule_1): Likewise
13288 (extend_schedule): Corresponding changes.
13289 * graphite-optimize-isl.c: Include <isl/constraint.h> and
13291 (getSingleMap): Change return type of isl_stat.
13292 (optimize_isl): Conditionally use
13293 isl_options_set_schedule_serialize_sccs.
13294 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
13295 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
13297 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
13300 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
13301 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
13303 2015-07-21 Richard Biener <rguenther@suse.de>
13305 PR tree-optimization/66948
13306 * genmatch.c (capture_info::walk_match): Also recurse to
13307 captures. Properly compute expr state from captures of
13309 * match.pd: Add single-use guards to
13310 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
13312 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13314 * config/nvptx/mkoffload.c (process): Add static destructor call.
13316 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13318 PR middle-end/66915
13319 * match.pd (A - B -> A + (-B)): Don't allow folding
13320 when type if a fixed-point type.
13322 2015-07-20 DJ Delorie <dj@redhat.com>
13324 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
13325 (iorqi3_real): Likewise for set1.
13327 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
13329 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
13332 2015-07-20 Aditya Kumar <hiraditya@msn.com>
13334 * graphite-isl-ast-to-gimple.c:
13335 Refactor so that each function can access 'region'. This will help
13336 maintain a parameter rename_map within a region.
13338 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13340 * config/rs6000/rs6000.md (*lt0_disi): New.
13342 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13345 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
13346 "available letters" comment.
13347 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
13348 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
13349 and_2rld_operand): Delete.
13350 (and_operand): Adjust.
13351 (rotate_mask_operator): New.
13352 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
13353 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
13354 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13355 extract_ME): Delete.
13356 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13357 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13358 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13359 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13360 rs6000_emit_2insn_and): New.
13361 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13362 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13363 includes_rldic_lshift_p, includes_rldicr_lshift_p,
13364 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13365 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13366 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13367 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13368 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13369 rs6000_emit_2insn_and): New.
13370 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13371 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13373 <NOT>: Don't fall through to next case.
13374 <AND>: Handle the various rotate-and-mask cases directly.
13375 <IOR>: Always cost as one insn.
13376 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13377 (and<mode>3): Adjust expander for the new patterns.
13378 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13379 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13380 (*and<mode>3_imm_dot_shifted): New.
13381 (*and<mode>3_mask): Delete, rewrite as ...
13382 (and<mode>3_mask): ... New.
13383 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13384 (andsi3_internal0_nomc): Delete.
13385 (*andsi3_internal6): Delete.
13386 (*and<mode>3_2insn): New.
13387 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13388 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13389 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13390 *insvdi_internal3): Delete.
13391 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13392 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13393 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13394 *ior<mode>_mask): New.
13395 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13396 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13397 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13398 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13400 (ashr<mode>3): Delete expander.
13401 (*ashr<mode>3): Rename to ...
13402 (ashr<mode>3): ... This.
13403 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13404 (*rotldi3_internal4, *rotldi3_internal5 and split,
13405 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13406 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13407 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13408 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13409 (splitter for loading a mask): Adjust.
13410 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13412 2015-07-20 Marek Polacek <polacek@redhat.com>
13414 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13415 output_add_clobbers, output_added_clobbers_hard_reg_p,
13416 gen_rtx_scratch): Remove declarations.
13418 2015-07-20 Marek Polacek <polacek@redhat.com>
13421 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13423 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13425 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13426 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13428 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13430 * combine.c (combine_simplify_rtx): Move simplification step
13431 before various transformations/substitutions.
13433 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
13435 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13436 (struct int_traits): Likewise.
13438 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13440 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13441 function to vmsdbgout_function_decl.
13443 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13446 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13447 from misaligned positions.
13448 (ix86_expand_pinsr): Reject insertions to misaligned positions.
13450 2015-07-18 Sebastian Pop <s.pop@samsung.com>
13452 PR middle-end/46851
13453 PR middle-end/60340
13454 * Makefile.in: Removed omega.o.
13455 * common.opt: Document flag fcheck-data-deps as deprecated.
13456 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13457 its associated params: omega-max-vars, omega-max-geqs,
13458 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13459 omega-max-keys, omega-eliminate-redundant-constraints.
13460 * doc/loop.texi: Remove all the section on Omega.
13461 * graphite-blocking.c: Include missing params.h: it used to be
13462 included through tree-data-ref.h and omega.h.
13463 * graphite-isl-ast-to-gimple.c: Same.
13464 * graphite-optimize-isl.c: Same.
13465 * graphite-sese-to-poly.c: Same.
13466 * graphite.c: Same.
13469 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13470 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13471 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13472 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13473 * passes.def: Remove pass_check_data_deps.
13474 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13475 (dump_conflict_function): Same.
13476 (dump_subscript): Same.
13477 (print_direction_vector): Same.
13478 (print_dir_vectors): Same.
13479 (print_lambda_vector): Same.
13480 (print_dist_vectors): Same.
13481 (dump_data_dependence_relation): Same.
13482 (dump_data_dependence_relations): Same.
13483 (dump_dist_dir_vectors): Same.
13485 (init_omega_eq_with_af): Removed.
13486 (omega_extract_distance_vectors): Removed.
13487 (omega_setup_subscript): Removed.
13488 (init_omega_for_ddr_1): Removed.
13489 (init_omega_for_ddr): Removed.
13490 (ddr_consistent_p): Removed.
13491 (compute_affine_dependence): Do not use omega to check data
13493 (compute_data_dependences_for_bb): Removed.
13494 (analyze_all_data_dependences): Removed.
13495 (tree_check_data_deps): Removed.
13496 * tree-data-ref.h: Do not include omega.h.
13497 (compute_data_dependences_for_bb): Removed.
13498 (tree_check_data_deps): Removed.
13499 * tree-ssa-loop.c (pass_check_data_deps): Removed.
13500 (make_pass_check_data_deps): Removed.
13501 * tree-ssa-phiopt.c: Include params.h.
13502 * tree-vect-data-refs.c: Same.
13503 * tree-vect-slp.c: Same.
13505 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13507 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13508 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
13509 (mem->fpreg splitters): Ditto.
13510 (general_operand->nonimmediate_operand splitter): Use explicit modes.
13511 Disable DFmode for TARGET_64BIT.
13513 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
13516 * config/i386/i386.c (ix86_expand_prologue): Replicate static
13517 chain on the stack.
13519 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13521 * config/nvptx/mkoffload.c (process): Constify host data.
13522 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13523 Constify host data.
13524 (generate_host_descr_file): Likewise.
13526 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
13527 Sebastian Pop <s.pop@samsung.com>
13529 PR middle-end/61929
13530 * graphite-dependences.c (add_pdr_constraints): Renamed
13531 pdr->extent to pdr->subscript_sizes.
13532 * graphite-interchange.c (build_linearized_memory_access): Add
13533 back all gcc_assert's that the "isl_int to isl_val conversion"
13534 patch has removed. Refactored.
13535 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13536 * graphite-poly.c (new_poly_dr): Same.
13537 (free_poly_dr): Same.
13538 * graphite-poly.h (struct poly_dr): Same.
13539 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13540 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13541 * graphite-scop-detection.h: Fix space.
13542 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13543 back all gcc_assert's removed by a previous patch.
13544 (wrap): Remove the_isl_ctx global variable that the same patch has
13546 (build_loop_iteration_domains): Same.
13547 (add_param_constraints): Same.
13548 (pdr_add_data_dimensions): Same. Refactored.
13549 (build_poly_dr): Renamed extent to subscript_sizes.
13551 2015-07-17 Marek Polacek <polacek@redhat.com>
13553 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13554 * match.pd: ... here.
13556 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13558 * config/nvptx/mkoffload.c (process): Constify target data.
13559 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13560 Constify target data.
13561 (generate_target_offloadend_file): Likewise.
13563 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13565 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13566 to allow renaming of PHI arguments on edges incoming from outer
13567 loop header, add corresponding check before start PHI iterator.
13568 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13569 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13570 with true force_vectorize. Set-up dominator for outer loop too.
13571 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13572 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13573 was marked with force_vectorize and has restricted cfg.
13574 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13576 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13577 do peeling for outer loops.
13579 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
13580 Matthias Klose <doko@ubuntu.com>
13582 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13583 build-sysroot, sysroot from the `Miscenalleous configure options' to
13584 the `Directories' section and strip trailing `/' from with_sysroot.
13585 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13586 * configure: Regenerated.
13588 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13591 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13592 (TARGET_HARD_DF_REGS): Ditto.
13593 (TARGET_HARD_XF_REGS): Ditto.
13594 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13595 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13596 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13597 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13598 (*movsf_internal): Add alternatives 16 and 17. Enable
13599 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13601 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13603 PR rtl-optimization/66891
13604 * calls.c (expand_call): Wrap precompute_register_parameters with
13605 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
13607 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13609 * config/nvptx/mkoffload.c (process): Constify mapping variables.
13610 Define target data struct and initialize it.
13612 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
13614 PR rtl-optimization/66626
13615 * ira.h (emit-rtl.h): Include.
13616 (non_spilled_static_chain_regno_p): New.
13617 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
13618 unless it is non spilled static chain pseudo.
13619 (assign_hard_rego): Spill memory profitable allocno unless it is
13620 non spilled static chain pseudo.
13621 (allocno_spill_priority_compare): Put non spilled static chain
13622 pseudo at the end of sorted array.
13623 (improve_allocation): Do nothing if we have static chain and
13625 (allocno__priority_compare_func): Put non spilled static chain
13626 pseudo at the beginning of sorted array.
13627 (move_spill_restore): Ignore non spilled static chain pseudo.
13628 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
13629 to non spilled static chain pseudo.
13630 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
13631 pseudo at the beginning of sorted array.
13632 (spill_for): Spill non spilled static chain pseudo last.
13633 * lra-constraints.c (lra_constraints): Remove static chain pseudo
13634 check for equivalence.
13636 2015-07-16 Martin Liska <mliska@suse.cz>
13639 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
13640 dst_ctx if it does not exist.
13642 2015-07-16 Martin Liska <mliska@suse.cz>
13644 * hash-set.h (remove): New function.
13645 (iterator): New iteration class for hash_set.
13647 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13649 * genattrtab.c (make_canonical): Add a file_location parameter.
13650 Use fatal_at rather than fatal.
13651 (get_attr_value): Likewise. Update call to make_canonical.
13652 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
13653 (make_internal_attr): Update calls accordingly.
13655 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13657 * read-md.h (message_with_line, error_with_line): Delete.
13658 * read-md.c (message_with_line, error_with_line): Delete.
13659 * gensupport.h: Include read-md.h.
13660 (md_rtx_info): New structure.
13661 (read_md_rtx): Use it. Return a bool success value.
13662 * gensupport.c (read_md_rtx): Likewise.
13663 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
13664 (main): Update after interface changes.
13665 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
13666 (main): Update after interface changes.
13667 * genattrtab.c (insn_code_number): Delete.
13668 (optimize_attrs): Add a max_insn_code parameter and use it instead
13669 of insn_code_number.
13670 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
13671 Use *_at rather than *_with_line functions.
13672 (gen_insn): Likewise.
13673 (gen_delay): Likewise.
13674 (gen_insn_reserv): Likewise.
13675 (gen_bypass): Take an md_rtx_info rather than an rtx.
13676 (main): Update after interface changes. Use a local max_insn_code
13677 variable instead of insn_code_number.
13678 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
13679 an rtx. Use fatal_at rather than fatal.
13680 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
13681 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
13682 (gen_absence_set, gen_final_absence_set, gen_automaton)
13683 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
13684 (main): Update after interface changes.
13685 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
13687 (main): Update after interface changes.
13688 * genconditions.c (main): Use new read_md_rtx interface.
13689 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
13690 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
13691 (main): Update after interface changes.
13692 * genemit.c (insn_code_number, insn_index_number): Delete.
13693 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13694 Use fatal_at rather than fatal.
13695 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
13697 (gen_split): Likewise.
13698 (main): Update after interface changes.
13699 * genextract.c (line_no): Delete.
13700 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13701 Update call to walk_rtx.
13702 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
13703 rather than message_with_line.
13704 (walk_rtx): Add an md_rtx_info argument. Update call to
13705 VEC_safe_set_locstr.
13706 (main): Update after interface changes.
13707 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
13708 and lineno. Use error_at rather than separate message_with_line
13709 calls and have_error assignments.
13710 (main): Update after interface changes.
13711 * genmddump.c (main): Use new read_md_rtx interface.
13712 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
13713 (main): Update after interface changes.
13714 * genoutput.c (next_code_number): Delete.
13715 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13716 (gen_peephole, gen_expand, gen_split): Likewise.
13717 (note_constraint): Likewise. Use *_at rather than *_with_line
13719 (main): Update after interface changes.
13720 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
13722 (main): Update after interface changes.
13723 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
13724 than an rtx and lineno.
13725 (process_define_constraint): Likewise.
13726 (process_define_register_constraint): Likewise.
13727 (main): Update after interface changes.
13728 * genrecog.c (next_insn_code, pattern_lineno): Delete.
13729 (validate_pattern): Replace top-level rtx with an md_rtx_info.
13730 Use *_at rather than *_with_line functions.
13731 (match_pattern_2): Likewise.
13732 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
13733 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
13734 Use *_at rather than *_with_line functions.
13735 * gentarget-def.c (add_insn): New function.
13736 (main): Use it. Use new read_md_rtx interface.
13738 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13740 * gensupport.h (compute_test_codes): Take a file_location rather
13741 than a line number.
13742 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
13743 rather than *_with_line functions.
13744 (process_define_predicate): Update call to compute_test_codes.
13745 * genpreds.c (validate_exp): Take a file_location rather than a
13746 line number. Use *_at functions rather than *_with_line functions.
13747 (process_define_predicate): Update call to validate_exp.
13748 (constraint_data): Replace lineno field with a file_location.
13749 (add_constraint): Take a file_location rather than a line number.
13750 Use *_at functions rather than *_with_line functions. Fix error
13751 message for address constraints. Update after changes to
13752 validate_exp, constraint_data and compute_test_codes.
13753 (process_define_constraint): Update accordingly.
13754 (process_define_register_constraint): Likewise.
13756 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13758 * genoutput.c (data): Use a file_location to record the source
13761 (idata, idata_end): Remove initialization.
13762 (constraint_data): Replace lineno with a file_location.
13763 (output_insn_data): Update after changes to data.
13764 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
13765 (scan_operands): Likewise, using *_at rather than *_with_line
13767 (process_template): Likewise.
13768 (validate_insn_alternatives): Likewise.
13769 (validate_insn_operands): Likewise.
13770 (validate_optab_operands): Likewise.
13771 (init_insn_for_nothing): Initialize idata and idata_end.
13772 (note_constraint): Update after changes to constraint_data,
13773 using at rather than with_line functions.
13774 (mdep_constraint_len): Take a file_location rather than a
13775 line number. Use at rather than with_line functions.
13777 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13779 * read-md.h (fatal_at): Declare.
13780 * read-md.c (fatal_at): New function.
13781 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
13782 to record the source position.
13783 (check_attr_test): Take a file_location instead of a line number.
13784 Use fatal_at instead of fatal.
13785 (check_attr_value): Update after above changes, using "at"
13786 rather than "with_line" reporting functions.
13787 (convert_set_attr_alternative): Likewise.
13788 (gen_attr): Likewise.
13789 (check_defs): Likewise. Don't assign to read_md_filename.
13790 (gen_insn): Update initialization after above changes.
13791 (gen_delay): Likewise.
13792 (write_insn_cases): Print the filename for a define_peephole.
13793 (gen_insn_reserv): Take a line number as argument and update
13794 the call to check_attr_test.
13795 (main): Pass a line number to gen_insn_reserv.
13797 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13799 * read-md.h (file_location): New structure.
13800 (directive_handler_t): Take a file_location rather than a line number.
13801 (message_at, error_at): Declare.
13802 (read_skip_construct): Delete.
13803 * read-md.c (message_with_line_1): Replace with...
13804 (message_at_1): ...this new function.
13805 (message_at, error_at): New functions.
13806 (message_with_line, error_with_line): Update to use message_at_1.
13807 (handle_enum): Take a file_location rather than a line number
13808 and use error_at for error reporting.
13809 (handle_include): Likewise.
13810 (read_skip_construct): Likewise. Make static.
13811 (handle_file): Update after above changes. Pass a file_location
13812 rather than a line number to handle_directive.
13813 * gensupport.c (queue_elem): Replace separate filename and lineno
13814 with a file_location.
13815 (queue_pattern): Replace filename and lineno arguments with a
13816 file_location. Update after change to queue_elem.
13817 (process_define_predicate): Replace lineno argument with a
13818 file_location and use error_at for error reporting. Update
13819 after above changes.
13820 (process_rtx): Likewise.
13821 (subst_pattern_match): Likewise.
13822 (get_alternatives_number): Likewise.
13823 (alter_predicate_for_insn): Likewise.
13824 (rtx_handle_directive): Likewise.
13825 (is_predicable): Update after above changes, using error_at rather
13826 than error_with_line.
13827 (has_subst_attribute): Likewise.
13828 (identify_predicable_attribute): Likewise.
13829 (alter_attrs_for_subst_insn): Likewise.
13830 (process_one_cond_exec): Likewise.
13831 (process_substs_on_one_elem): Likewise.
13832 (process_define_subst): Likewise.
13833 (check_define_attr_duplicates): Likewise.
13834 (read_md_rtx): Update after change to queue_elem.
13836 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13838 * genoutput.c (next_index_number): Delete.
13839 (data): Remove index_number.
13840 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
13841 (main): Remove manipulation of next_index_number.
13843 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13845 * genattrtab.c (check_attr_value): Remove handling of null attrs.
13846 (make_canonical): Likewise.
13848 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
13850 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
13851 instead of adjust_address_nv.
13852 (restore_stack_nonlocal): Likewise.
13853 (nonlocal_goto): Likewise.
13855 2015-07-16 Tom de Vries <tom@codesourcery.com>
13857 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
13858 not have a corresponding loop header phi.
13860 2015-07-16 Tom de Vries <tom@codesourcery.com>
13862 * tree-parloops.c (create_loads_for_reductions): Handle case that
13863 reduction is unused.
13865 2015-07-16 Richard Biener <rguenther@suse.de>
13867 PR tree-optimization/66894
13868 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
13869 about deriving NE_EXPR from truncated values.
13871 2015-07-16 Martin Liska <mliska@suse.cz>
13874 (object_allocator): Add new class.
13875 (pool_allocator::initialize): Use the underlying class.
13876 (pool_allocator::allocate): Likewise.
13877 (pool_allocator::remove): Likewise.
13878 (operator new): A new generic allocator.
13879 * asan.c (struct asan_mem_ref): Remove unused members.
13880 (asan_mem_ref_new): Replace new operator with
13881 object_allocator::allocate.
13882 (free_mem_ref_resources): Change deallocation.
13883 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
13884 with object_allocator.
13885 * config/sh/sh.c (add_constant): Replace new operator with
13886 object_allocator::allocate.
13887 (sh_reorg): Change call to a release method.
13888 * cselib.c (struct elt_list): Remove unused members.
13889 (new_elt_list): Replace new operator with
13890 object_allocator::allocate.
13891 (new_elt_loc_list): Likewise.
13892 (new_cselib_val): Likewise.
13893 (unchain_one_elt_list): Change delete operator with remove method.
13894 (unchain_one_elt_loc_list): Likewise.
13895 (unchain_one_value): Likewise.
13896 (cselib_finish): Release newly added static allocators.
13897 * cselib.h (struct cselib_val): Remove unused members.
13898 (struct elt_loc_list): Likewise.
13899 * df-problems.c (df_chain_alloc): Replace pool_allocator with
13901 * df-scan.c (struct df_scan_problem_data): Likewise.
13902 (df_scan_alloc): Likewise.
13903 * df.h (struct dataflow): Likewise.
13904 * dse.c (struct read_info_type): Likewise.
13905 (struct insn_info_type): Likewise.
13906 (struct dse_bb_info_type): Likewise.
13907 (struct group_info): Likewise.
13908 (struct deferred_change): Likewise.
13909 (get_group_info): Likewise.
13910 (delete_dead_store_insn): Likewise.
13911 (free_read_records): Likewise.
13912 (replace_read): Likewise.
13913 (check_mem_read_rtx): Likewise.
13914 (scan_insn): Likewise.
13915 (dse_step1): Likewise.
13916 (dse_step7): Likewise.
13917 * et-forest.c (struct et_occ): Remove unused members.
13918 (et_new_occ): Use allocate instead of new operator.
13919 (et_new_tree): Likewise.
13920 (et_free_tree): Call release method explicitly.
13921 (et_free_tree_force): Likewise.
13922 (et_free_pools): Likewise.
13923 (et_split): Use remove instead of delete operator.
13924 * et-forest.h (struct et_node): Remove unused members.
13925 * ipa-cp.c: Change pool_allocator to object_allocator.
13926 * ipa-inline-analysis.c: Likewise.
13927 * ipa-profile.c: Likewise.
13928 * ipa-prop.c: Likewise.
13929 * ipa-prop.h: Likewise.
13930 * ira-build.c (initiate_cost_vectors): Cast return value.
13931 (ira_allocate_cost_vector): Likewise.
13932 * ira-color.c (struct update_cost_record): Remove unused members.
13933 * lra-int.h (struct lra_live_range): Likewise.
13934 (struct lra_copy): Likewise.
13935 (struct lra_insn_reg): Likewise.
13936 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
13937 * lra.c (new_insn_reg): Replace new operator with allocate method.
13938 (free_insn_regs): Same for operator delete.
13939 (finish_insn_regs): Release new static allocator.
13940 (finish_insn_recog_data): Likewise.
13941 (lra_free_copies): Replace delete operator with remove method.
13942 (lra_create_copy): Replace operator new with allocate method.
13943 (invalidate_insn_data_regno_info): Same for remove method.
13944 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
13945 (free_debug_insn_changes): Replace delete operator with remove method.
13946 (replace_oldest_value_reg): Replace operator new with allocate method.
13947 (pass_cprop_hardreg::execute): Release new static variable.
13948 * sched-deps.c (sched_deps_init): Change pool_allocator to
13950 * sel-sched-ir.c: Likewise.
13951 * sel-sched-ir.h: Likewise.
13952 * stmt.c (expand_case): Likewise.
13953 (expand_sjlj_dispatch_table): Likewise.
13954 * tree-sra.c (struct access): Remove unused members.
13955 (struct assign_link): Likewise.
13956 (sra_deinitialize): Release newly added static pools.
13957 (create_access_1):Replace operator new with allocate method.
13958 (build_accesses_from_assign): Likewise.
13959 (create_artificial_child_access): Likewise.
13960 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
13961 pool_allocator to object_allocator.
13962 * tree-ssa-pre.c: Likewise.
13963 * tree-ssa-reassoc.c: Likewise.
13964 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13965 * tree-ssa-strlen.c: Likewise.
13966 * tree-ssa-structalias.c: Likewise.
13967 * var-tracking.c (onepart_pool_allocate): New function.
13968 (unshare_variable): Use the newly added function.
13969 (variable_merge_over_cur): Likewise.
13970 (variable_from_dropped): Likewise.
13971 (variable_was_changed): Likewise.
13972 (set_slot_part): Likewise.
13973 (emit_notes_for_differences_1): Likewise.
13974 (vt_finalize): Release newly added static pools.
13976 2015-07-16 Martin Jambor <mjambor@suse.cz>
13978 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
13979 all uses. Fix two typos in its general comment.
13980 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
13982 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
13984 * config/i386/linux-common.h (LINK_MPX): New.
13985 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
13986 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
13987 indicating '-z bndplt' support by linker.
13988 * configure: Regenerate.
13989 * config.in: Regenerate.
13991 2015-07-16 Richard Biener <rguenther@suse.de>
13993 * fold-const.c (fold_widened_comparison): Remove.
13994 (fold_sign_changed_comparison): Likewise.
13995 (fold_comparison): Move widened and sign-changed comparison
13997 * match.pd: ... to patterns here.
13998 * generic-match-head.c: Include target.h.
13999 * gimple-match-head.c: Likewise.
14001 2015-07-16 Richard Biener <rguenther@suse.de>
14003 * tree-ssa-dom.c (dom_valueize): New function.
14004 (record_temporary_equivalences): Also record equivalences
14005 for dominating stmts that have uses of equivalences we are
14008 2015-07-16 Bin Cheng <bin.cheng@arm.com>
14010 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
14011 add_autoinc_candidates.
14012 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
14013 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
14014 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
14015 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
14017 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
14018 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
14019 Remove parameter struct iv*. Call add_autoinc_candidates here.
14020 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
14021 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
14023 (find_iv_candidates): Call new functions.
14025 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
14027 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
14028 uninitialized-variable warning.
14030 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
14033 * config/sh/sh.md (movdi): Split simple reg move to two movsi
14034 when the destination is R0.
14036 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
14039 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
14040 * config/i386/i386.c (ix86_expand_pextr): New function.
14041 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
14042 for non-lowpart subregs.
14043 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
14044 (insv<mode>): Use SWI248 mode iterator.
14045 (insv<mode>_1): Ditto.
14047 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14048 Sebastian Pop <s.pop@samsung.com>
14050 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
14051 iterator to use_stmt.
14053 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14054 Sebastian Pop <s.pop@samsung.com>
14056 * graphite-scop-detection.c (build_scops_1): Discard scops for
14059 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14060 Sebastian Pop <s.pop@samsung.com>
14062 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
14063 case of a return statement in scop.
14065 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14066 Sebastian Pop <s.pop@samsung.com>
14068 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
14069 INTEGER_TYPE parameters.
14070 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
14071 VECTOR_CST in scan_tree_for_params.
14072 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
14074 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14076 * gimple-pretty-print.h: Don't include pretty-print.h.
14077 * tree-streamer.h: Don't include lto-streamer.h.
14078 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
14079 * gimple-streamer-in.c: Remove redundant includes.
14080 * gimple-streamer-out.c: Likewise.
14081 * ipa-devirt.c: Likewise.
14082 * ipa-icf.c: Likewise.
14083 * ipa-inline-analysis.c: Likewise.
14084 * ipa-polymorphic-call.c: Likewise.
14085 * ipa-profile.c: Likewise.
14086 * ipa-prop.c: Likewise.
14087 * ipa-pure-const.c: Likewise.
14088 * lto-cgraph.c: Likewise.
14089 * lto-streamer-in.c: Likewise.
14090 * lto-streamer-out.c: Likewise.
14091 * lto-streamer.c: Likewise.
14092 * tree-streamer-in.c: Likewise.
14093 * tree-streamer-out.c: Likewise.
14094 * tree-streamer.c: Likewise.
14096 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14098 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
14100 * opts.c: Remove multiline #include comment.
14102 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
14104 * config/nvptx/mkoffload.c (process): Add C++ protection to
14107 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14110 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
14111 null before IEEE 128-bit floating point support patch.
14113 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14115 * simplify-rtx.c (simplify_ternary_operation): Add simplification
14116 for (!c) != {0,...,0} ? a : b for vector modes.
14118 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
14119 Martin Jambor <mjambor@suse.cz>
14121 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
14122 struct func_body_info* instead of struct ipa_node_params*, expecting
14123 fbi->info to be filled in. Replace throughout. Adjust call to
14124 ipa_load_from_parm_agg.
14125 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
14126 instead of struct ipa_node_params*. Adjust calls to other functions
14127 so that they pass either fbi or fbi->info.
14128 (set_switch_stmt_execution_predicate): Likewise.
14129 (will_be_nonconstant_predicate): Likewise.
14130 (compute_bb_predicates): Likewise.
14131 (estimate_function_body_sizes): Move asserts earlier. Fill in
14132 struct func_body_info, replace parms_info with fbi.info. Adjust
14133 calls to functions that now accept struct func_body_info.
14134 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
14135 (struct func_body_info): Likewise.
14136 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
14137 remove static. Adjust callers.
14138 (ipa_load_from_parm_agg): Remove.
14139 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
14140 (func_body_info): Likewise.
14141 (ipa_load_from_parm_agg): Adjust prototype.
14143 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14145 * gensupport.c (rtx_handle_directive): Adjust.
14146 * read-rtl.c (apply_iterators): Take vector to add rtxs to
14147 instead of expr list rtx.
14148 (add_define_attr_for_define_subst): Likewise.
14149 (add_define_subst_attr): Likewise.
14150 (read_subst_mapping): Likewise.
14151 (read_rtx): Likewise.
14152 * rtl.h (read_rtx): Adjust.
14154 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14156 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
14158 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14161 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
14162 (*tls_local_dynamic_base_64_<mode>): Ditto.
14163 (*tls_local_dynamic_base_64_largepic): Ditto.
14164 (tls_global_dynamic_64_<mode>): Update expander pattern.
14165 (tls_local_dynamic_base_64_<mode>): Ditto.
14167 2015-07-15 Richard Biener <rguenther@suse.de>
14169 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
14170 and bool_var == 1 -> bool_var simplifications ...
14171 * match.pd: ... to patterns here. Factor out negate_expr_p
14172 cases from the A - B -> A + (-B) patterns as negate_expr_p
14173 predicate and add a -(A + B) -> (-B) - A pattern.
14175 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14177 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
14179 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
14180 Robert Suchanek <robert.suchanek@imgtec.com>
14182 * config/mips/mips.c (mips_int_mask): New enum.
14183 (mips_shadow_set): Likewise.
14184 (int_mask): New variable.
14185 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
14186 (machine_function): Add int_mask and use_shadow_register_set.
14187 (mips_attribute_table): Add attribute handlers for interrupt and
14188 use_shadow_register_set.
14189 (mips_interrupt_mask): New static function.
14190 (mips_handle_interrupt_attr): Likewise.
14191 (mips_handle_use_shadow_register_set_attr): Likewise.
14192 (mips_use_shadow_register_set): Change return type to enum
14193 mips_shadow_set. Add argument handling for use_shadow_register_set
14195 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
14196 compare with mips_shadow_set enum.
14197 (mips_compute_frame_info): Add interrupt mask and
14198 use_shadow_register_set to per-function information structure.
14199 Add a stack slot for EPC unconditionally.
14200 (mips_expand_prologue): Compare use_shadow_register_set value
14201 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
14202 masked interrupt register but in EIC mode use K0 and save Cause in K0.
14203 EPC saved and restored unconditionally. Use PMODE_INSN macro when
14204 copying the stack pointer from the shadow register set.
14205 * config/mips/mips.h (SR_IM0): New define.
14206 * config/mips/mips.md (mips_rdpgpr): Rename to...
14207 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
14208 * doc/extend.texi (Declaring Attributes of Functions): Document
14209 optional arguments for interrupt and use_shadow_register_set
14212 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14214 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
14215 interrupt attribute.
14216 (mips_expand_prologue): Disable the floating point unit in an ISR.
14217 * config/mips/mips.h (SR_COP1): New define.
14219 2015-07-15 Richard Biener <rguenther@suse.de>
14221 * genmatch.c (parser::peek, parser::peek_ident): Add argument
14222 to tell how many tokens to peek ahead (default 1).
14223 (parser::eat_token, parser::eat_ident): Return token consumed.
14224 (parser::parse_result): Parse new switch statement.
14225 * match.pd: Use case statements where appropriate.
14227 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14229 PR rtl-optimization/58066
14230 * calls.c (expand_call): Precompute register parameters before stack
14231 alignment is performed.
14233 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14235 PR rtl-optimization/66838
14236 * postreload.c (reload_cse_move2add): Also process
14237 CALL_INSN_FUNCTION_USAGE when resetting information of
14238 call-clobbered registers.
14240 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14241 Cesar Philippidis <cesar@codesourcery.com>
14242 Chung-Lin Tang <cltang@codesourcery.com>
14244 * config/nios2/constraints.md (U, v): New constraints.
14245 * config/nios2/predicates.md (rdprs_dcache_operand): New.
14246 (ldstex_memory_operand): New.
14247 * config/nios2/sync.md: New file.
14248 * config/nios2/nios2.md (unspecv): Add new builtin function
14250 (rdprs, flushd, flushda, wrpie, eni): New patterns.
14251 (top-level): Include sync.md.
14252 * config/nios2/nios2.c (N2_FTYPES): Add function types for
14254 (N2_BUILTINS): Add arch field setting, add new builtins.
14255 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
14257 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
14258 Also handle ldex/stex/ldsex/stsex builtins.
14259 (nios2_expand_rdprs_builtin): New function.
14260 (nios2_expand_cache_builtin): New function.
14261 (nios2_expand_wrpie_builtin): New function.
14262 (nios2_expand_eni_builtin): New function.
14263 (nios2_expand_builtin): Add arch field handling and new builtin
14265 * doc/extend.texi (Altera Nios II Built-in Functions): Document
14267 * doc/md.texi (Machine Constraints): Document U and v constraints.
14269 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14270 Cesar Philippidis <cesar@codesourcery.com>
14271 Chung-Lin Tang <cltang@codesourcery.com>
14273 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
14274 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
14275 callee_save_reg_size and uses_anonymous_args fields.
14276 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
14277 (nios2_create_cfa_notes): New function.
14278 (nios2_adjust_stack): New function for adjusting stack.
14279 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
14280 Use nios2_adjust_stack.
14281 (nios2_expand_epilogue): Likewise.
14282 (nios2_expand_return): New function.
14283 (nios2_can_use_return_insn): Update for CDX pop.n usage.
14284 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
14285 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
14286 * config/nios2/nios2.md (return): Use nios2_expand_return.
14288 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14289 Cesar Philippidis <cesar@codesourcery.com>
14290 Chung-Lin Tang <cltang@codesourcery.com>
14292 * config/nios2/predicates.md (pop_operation): New.
14293 (ldwm_operation, stwm_operation): New.
14294 (nios2_hard_register_operand): New.
14295 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
14296 (ldstwm_operation_p): Declare.
14297 (gen_ldstwm_peep): Declare.
14298 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
14299 (base_reg_adjustment_p): New.
14300 (pop_operation_p): New.
14301 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
14302 (nios2_ldstwm_regset_p): New.
14303 (ldstwm_operation_p): New.
14305 (nios2_ldst_parallel): New.
14306 (struct ldswm_operand): Declare.
14307 (compare_ldstwm_operands): New.
14308 (can_use_cdx_ldstw): New.
14309 (gen_ldstwm_peep): New.
14310 * config/nios2/nios2-ldstwm.sml: New.
14311 * config/nios2/nios2.md: Include ldstwm.md.
14312 * config/nios2/ldstwm.md: Generated.
14314 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14315 Cesar Philippidis <cesar@codesourcery.com>
14316 Chung-Lin Tang <cltang@codesourcery.com>
14318 * config/nios2/nios2.h (LABEL_ALIGN): Define.
14319 (REG_ALLOC_ORDER): Define.
14320 (ADJUST_REG_ALLOC_ORDER): Define.
14321 (HONOR_REG_ALLOC_ORDER): Define.
14322 (CDX_REG_P): Define.
14323 (ANDCLEAR_INT): Define.
14324 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
14325 (nios2_label_align): Declare.
14326 (nios2_cdx_narrow_form_p): Declare.
14327 (nios2_adjust_reg_alloc_order): Declare.
14328 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
14330 (nios2_large_unspec_reloc_p): New function, split from...
14331 (nios2_legitimate_pic_operand_p): ...here.
14332 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
14333 (nios2_print_operand_punct_valid_p): New.
14334 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
14335 (split_mem_address): New.
14336 (split_alu_insn): New.
14338 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
14339 (enum nios2_add_insn_kind): New.
14340 (nios2_add_insn_names, nios2_add_insn_narrow): New.
14341 (nios2_add_insn_classify): New.
14342 (nios2_add_insn_asm): New.
14343 (nios2_cdx_narrow_form_p): New.
14344 (label_align, min_labelno, max_labelno): New.
14345 (nios2_reorg): New.
14346 (nios2_label_align): New.
14347 (nios2_adjust_reg_alloc_order): New.
14348 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14349 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14350 * config/nios2/constraints.md (P): New constraint.
14351 * config/nios2/predicates.md (const_and_operand): New.
14352 (and_operand): New.
14353 (stack_memory_operand): New.
14354 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14355 (length): Update to use nios2_cdx_narrow_form_p().
14356 (type): Add new insn type values.
14357 (control, alu, st, ld, shift): Update insn reservations with
14358 new insn type values.
14359 (*high, *lo_sum): Define new insn patterns for constant generation.
14360 (movqi_internal, movhi_internal, movsi_internal): Reduce
14361 alternatives, update asm template to handle CDX variants, update
14363 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14364 template, update type attributes.
14365 (extendhisi2, extendqi<mode>2): Likewise.
14366 (addsi3): Change to use function for asm string.
14367 (subsi3): Add CDX notation to asm template, update type attributes.
14368 (negsi3, one_cmplsi3): Likewise.
14369 (andsi3): New pattern, specialized from logical patterns.
14370 (<code>si3): Remove and case, combine alternatives, update asm
14372 (<shift_op>si3): Add CDX notation, update type attributes.
14373 (rotrsi3): Update type attribute.
14374 (*merge, extzv, insv): New insn patterns.
14375 (return): Change to define_expand.
14376 (simple_return): Add CDX notation, update type attributes.
14377 (indirect_jump): Add CDX notation.
14378 (jump): Update asm cases, update length attribute expression.
14379 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14380 (nios2_cbranch): Update asm cases and length attribute expression
14381 to handle CDX variants.
14382 (nios2_cmp<code>): Update asm template.
14383 (nop): Add CDX notation, update type attributes.
14384 (trap): Add CDX notation.
14385 (ctrapsi4): Update asm cases and length attribute expression to
14386 handle CDX variant.
14387 * doc/md.texi (Machine Constraints): Document P constraint.
14389 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14390 Cesar Philippidis <cesar@codesourcery.com>
14391 Chung-Lin Tang <cltang@codesourcery.com>
14393 * config/nios2/nios2.h (SMALL_INT12): New macro.
14394 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14395 (nios2_valid_addr_expr_p): Use it.
14396 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14397 with implicit "io" instructions on R2.
14398 * config/nios2/constraints.md (w): New constraint.
14399 * config/nios2/predicates.md (ldstio_memory_operand): New.
14400 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14401 operand predicate and constraint.
14402 (ld<bh>io_signed, st<bhw>io>): Likewise.
14403 * doc/md.texi (Machine Constraints): Document w constraint.
14405 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14406 Cesar Philippidis <cesar@codesourcery.com>
14407 Chung-Lin Tang <cltang@codesourcery.com>
14409 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14410 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14411 Nios II architecture level.
14412 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14413 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14414 (OPTION_DEFAULT_SPECS): Define.
14415 (ASM_SPEC): Add -march= spec strings.
14416 * config/nios2/nios2.c (nios2_option_override): Check for
14417 conflicts involving new options.
14418 * config.gcc (nios2*-*-*): Support --with-arch=.
14419 * doc/invoke.texi (Option Summary, Nios II Options): Document
14420 -march=, -mbmx, and -mcdx.
14422 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
14424 PR rtl-optimization/66626
14425 * lra-constraints.c (lra_constraints): Prevent equivalence
14426 substitution for static chain pseudo in functions with nonlocal
14429 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14431 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14432 (nios2_emit_stack_limit_check): Add size parameter. Handle
14433 -fstack-limit-symbol as well as -fstack-limit-register.
14434 (nios2_expand_prologue): Emit only a single stack limit check,
14435 even if multiple stack adjustments are required.
14436 (nios2_option_override): Diagnose unsupported combination of -fpic
14437 and -stack-limit-symbol.
14439 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
14441 * Makefile.in (top_srcdir): New.
14442 * configure.ac: Use AM_ZLIB.
14443 * configure: Regeneated.
14445 2015-07-14 Matthias Klose <doko@ubuntu.com>
14448 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14450 2015-07-14 Richard Biener <rguenther@suse.de>
14452 PR tree-optimization/66863
14453 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14454 what we record for conversion use stmt lhs inequalities.
14456 2015-07-14 Richard Biener <rguenther@suse.de>
14458 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14459 (decision_tree::gen_gimple): Likewise.
14461 2015-07-14 Tom de Vries <tom@codesourcery.com>
14463 * gcc.c (greater_than_spec_func): Declare forward.
14464 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14465 -ftree-parallelize-loops={0,1}.
14466 (static_spec_functions): Add greater_than_spec_func function with name
14468 (greater_than_spec_func): New function.
14470 2015-07-14 Richard Biener <rguenther@suse.de>
14472 * tree-ssa-dom.c (record_temporary_equivalences): Merge
14473 wideing type conversion case from record_equivalences_from_incoming_edge
14474 and use record_equality to record equivalences.
14475 (record_equivalences_from_incoming_edge): Call
14476 record_temporary_equivalences.
14478 2015-07-14 Richard Biener <rguenther@suse.de>
14480 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14481 (struct if_expr): New.
14482 (struct with_expr): Likewise.
14483 (is_a_helper): Add helpers for if_expr and with_expr.
14484 (struct simplify): Add simplify_kind enum and member. Remove
14486 (simplify::simplify): Adjust.
14487 (lower_commutative): Adjust.
14488 (lower_opt_convert): Likewise.
14489 (lower_cond): Likewise.
14490 (replace_id): Handle with_expr and if_expr.
14491 (lower_for): Adjust.
14492 (dt_simplify::gen_1): New recursive worker, split out from ...
14493 (dt_simplify::gen): ... here. Deal with if and with expansion
14495 (capture_info::capture_info): Take context argument
14496 (capture_info::walk_result): Only analyze specific result.
14497 (parser::parse_result): New function.
14498 (parser::parse_simplify): Adjust to parse ifs with then end
14500 (parser::parse_if): Simplify.
14501 (parser::parse_pattern): Pass down simplify kind.
14502 * match.pd: Convert if structure to new syntax.
14504 2015-07-13 Marek Polacek <polacek@redhat.com>
14506 * rtl.c (rtx_equal_p_cb): Fix typo.
14508 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
14510 * omega.h: Don't include config.h, don't include params.h again if
14511 omega.h has already been included.
14512 * graphite-poly.h: Include sese.h.
14513 * graphite.c: Don't include sese.h, remove needless includes and
14514 minimize includes outside #ifdef HAVE_isl block.
14515 * graphite-blocking.c: Don't include sese.h, remove needless includes,
14516 and wrap entire file in #ifdef HAVE_isl
14517 * graphite-dependences.c: Likewise.
14518 * graphite-interchange.c: Likewise.
14519 * graphite-isl-ast-to-gimple.c: Likewise.
14520 * graphite-optimize-isl.c: Likewise.
14521 * graphite-poly.c: Likewise.
14522 * graphite-scop-detection.c: Likewise.
14523 * graphite-sese-to-poly.c: Likewise.
14525 2015-07-13 Tom de Vries <tom@codesourcery.com>
14527 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14529 2015-07-13 Renlin Li <renlin.li@arm.com>
14532 * simplify-rtx.c (simplify_const_relational_operation): Add
14533 side_effects_p checks.
14535 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
14537 * bitmap.h: Fix double word typos.
14538 * builtins.c: Same.
14540 * cfgloopmanip.c: Same.
14543 * cgraphclones.c: Same.
14545 * config/aarch64/aarch64-protos.h: Same.
14546 * config/aarch64/aarch64.c: Same.
14547 * config/aarch64/aarch64.md: Same.
14548 * config/arm/arm.md: Same.
14549 * config/arm/arm1020e.md: Same.
14550 * config/arm/arm1026ejs.md: Same.
14551 * config/arm/arm926ejs.md: Same.
14552 * config/arm/fa526.md: Same.
14553 * config/arm/fa606te.md: Same.
14554 * config/arm/fa626te.md: Same.
14555 * config/arm/fa726te.md: Same.
14556 * config/arm/fmp626.md: Same.
14557 * config/darwin.c: Same.
14558 * config/epiphany/epiphany.c: Same.
14559 * config/frv/frv.c: Same.
14560 * config/ft32/ft32.c: Same.
14561 * config/gnu-user.h: Same.
14562 * config/h8300/constraints.md: Same.
14563 * config/i386/i386.c: Same.
14564 * config/i386/i386.md: Same.
14565 * config/iq2000/iq2000.md: Same.
14566 * config/mips/mips.c: Same.
14567 * config/mmix/mmix.md: Same.
14568 * config/moxie/moxie.c: Same.
14569 * config/nds32/nds32.md: Same.
14570 * config/pa/pa.h: Same.
14571 * config/rs6000/aix.h: Same.
14572 * config/rs6000/rs6000.h: Same.
14573 * config/sh/sh.c: Same.
14574 * config/tilegx/tilegx.md: Same.
14575 * config/tilepro/gen-mul-tables.cc: Same.
14578 * doc/invoke.texi: Same.
14580 * dwarf2out.c: Same.
14583 * genmatch.c: Same.
14584 * gimplify.c: Same.
14585 * hash-table.h: Same.
14586 * internal-fn.c: Same.
14588 * ipa-devirt.c: Same.
14591 * ipa-profile.c: Same.
14592 * ipa-prop.c: Same.
14593 * ipa-prop.h: Same.
14596 * reg-stack.c: Same.
14597 * regcprop.c: Same.
14602 * tree-inline.c: Same.
14603 * tree-sra.c: Same.
14604 * tree-ssa-dom.c: Same.
14605 * tree-ssa-loop-ivopts.c: Same.
14606 * tree-ssa-structalias.c: Same.
14607 * tree-ssa-tail-merge.c: Same.
14608 * tree-ssa-ter.c: Same.
14609 * tree-ssa-threadupdate.c: Same.
14610 * tree-ssa-uninit.c: Same.
14611 * tree-ssanames.c: Same.
14612 * tree-vect-loop-manip.c: Same.
14613 * tree-vrp.c: Same.
14615 * valtrack.c: Same.
14618 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14620 PR middle-end/66726
14621 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
14622 tree_ssa_phiopt_worker): Call it.
14624 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14626 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
14627 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
14630 2015-07-11 Marek Polacek <polacek@redhat.com>
14632 PR middle-end/66353
14633 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
14634 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
14635 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
14636 rather than bb_has_abnormal_call_pred.
14637 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
14638 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
14639 rather than bb_has_abnormal_call_pred.
14641 2015-07-10 Anatoly Sokolov <aesok@post.ru>
14643 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14644 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
14645 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14646 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
14647 v850_legitimate_address_p): New functions.
14648 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14650 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
14653 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
14654 indirect sibcall with register arguments if register available
14655 for argument passing.
14656 (init_cumulative_args): Set cfun->machine->arg_reg_available
14657 to (cum->nregs > 0) or to true if function has a variable
14659 (function_arg_advance_32): Set cfun->machine->arg_reg_available
14660 to false if cum->nregs <= 0.
14661 * config/i386/i386.h (machine_function): Add arg_reg_available.
14663 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14665 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
14666 and gen_higpart instead of gen_rtx_SUBREG.
14667 * config/i386/i386.md
14668 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
14669 (read-modify peephole2): Use gen_lowpart instead of
14670 gen_rtx_SUBREG for operand 5.
14672 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14674 * config/tilepro/gen-mul-tables.cc (main): Change include list for
14676 * config/tilepro/mul-tables.c: Regenerate.
14677 * config/tilegx/mul-tables.c: Regenerate.
14679 2015-07-10 Richard Biener <rguenther@suse.de>
14681 * fold-const.c (distribute_bit_expr): Remove.
14682 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
14683 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
14684 to A & (B | C) and simplifying A << C1 << C2 to ...
14685 * match.pd: ... patterns here.
14687 2015-07-10 Jiong Wang <jiong.wang@arm.com>
14689 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14690 Mark mem as READONLY and NOTRAP for PIC symbol.
14692 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14694 * gimple-predict.h: New file.
14695 (gimple_predict_predictor, gimple_predict_set_predictor,
14696 gimple_predict_outcome, gimple_predict_set_outcome,
14697 gimple_build_predict): Relocate here.
14698 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
14699 gimple_predict_outcome, gimple_predict_set_outcome): Move to
14701 * gimple.c (gimple_build_predict): Move to gimple-predict.h
14702 * basic-block.h: Don't include cfghooks.h.
14703 * backend.h: Don't include predict.h.
14704 * cfghooks.h: Include predict.h.
14705 * gimple-pretty-print.c: Include gimple-predict.h.
14706 * gimplify.c: Likwise.
14707 * predict.c: Adjust includes.
14708 * tree-inline.c: Likewise.
14709 * asan.c: Likewise.
14710 * auto-inc-dec.c: Likewise.
14711 * auto-profile.c: Likewise.
14712 * bb-reorder.c: Likewise.
14713 * builtins.c: Likewise.
14714 * caller-save.c: Likewise.
14715 * calls.c: Likewise.
14716 * cfganal.c: Likewise.
14717 * cfgbuild.c: Likewise.
14719 * cfgcleanup.c: Likewise.
14720 * cfgexpand.c: Likewise.
14721 * cfghooks.c: Likewise.
14722 * cfgloopanal.c: Likewise.
14723 * cfgloop.c: Likewise.
14724 * cfgloopmanip.c: Likewise.
14725 * cfgrtl.c: Likewise.
14726 * cgraph.c: Likewise.
14727 * cgraphunit.c: Likewise.
14728 * combine.c: Likewise.
14729 * cprop.c: Likewise.
14732 * dojump.c: Likewise.
14734 * except.c: Likewise.
14735 * expmed.c: Likewise.
14736 * expr.c: Likewise.
14737 * final.c: Likewise.
14738 * fold-const.c: Likewise.
14739 * function.c: Likewise.
14740 * fwprop.c: Likewise.
14741 * gcc-plugin.h: Likewise.
14742 * gcse.c: Likewise.
14743 * genattrtab.c: Likewise.
14744 * genemit.c: Likewise.
14745 * gengtype.c: Likewise.
14746 * genopinit.c: Likewise.
14747 * genoutput.c: Likewise.
14748 * genpreds.c: Likewise.
14749 * genrecog.c: Likewise.
14750 * gimple-fold.c: Likewise.
14751 * gimple-iterator.c: Likewise.
14752 * gimple-ssa-isolate-paths.c: Likewise.
14753 * gimple-ssa-strength-reduction.c: Likewise.
14754 * graph.c: Likewise.
14755 * graphite-blocking.c: Likewise.
14756 * graphite.c: Likewise.
14757 * graphite-dependences.c: Likewise.
14758 * graphite-interchange.c: Likewise.
14759 * graphite-isl-ast-to-gimple.c: Likewise.
14760 * graphite-optimize-isl.c: Likewise.
14761 * graphite-poly.c: Likewise.
14762 * graphite-scop-detection.c: Likewise.
14763 * graphite-sese-to-poly.c: Likewise.
14764 * haifa-sched.c: Likewise.
14765 * ifcvt.c: Likewise.
14766 * internal-fn.c: Likewise.
14767 * ipa-cp.c: Likewise.
14768 * ipa-profile.c: Likewise.
14769 * ipa-split.c: Likewise.
14770 * ipa-utils.c: Likewise.
14771 * ira-build.c: Likewise.
14772 * ira-color.c: Likewise.
14773 * ira-conflicts.c: Likewise.
14774 * ira-costs.c: Likewise.
14775 * ira-emit.c: Likewise.
14776 * ira-lives.c: Likewise.
14777 * jump.c: Likewise.
14778 * loop-doloop.c: Likewise.
14779 * loop-init.c: Likewise.
14780 * loop-invariant.c: Likewise.
14781 * loop-unroll.c: Likewise.
14782 * lower-subreg.c: Likewise.
14783 * lra-assigns.c: Likewise.
14785 * lra-coalesce.c: Likewise.
14786 * lra-constraints.c: Likewise.
14787 * lra-lives.c: Likewise.
14788 * lto-cgraph.c: Likewise.
14789 * lto-streamer-in.c: Likewise.
14790 * mode-switching.c: Likewise.
14791 * modulo-sched.c: Likewise.
14792 * omp-low.c: Likewise.
14793 * optabs.c: Likewise.
14794 * passes.c: Likewise.
14795 * postreload.c: Likewise.
14796 * postreload-gcse.c: Likewise.
14797 * profile.c: Likewise.
14798 * recog.c: Likewise.
14799 * regstat.c: Likewise.
14800 * reload1.c: Likewise.
14801 * reorg.c: Likewise.
14802 * rtlanal.c: Likewise.
14803 * sched-ebb.c: Likewise.
14804 * sel-sched-ir.c: Likewise.
14805 * sese.c: Likewise.
14806 * shrink-wrap.c: Likewise.
14807 * simplify-rtx.c: Likewise.
14808 * stmt.c: Likewise.
14809 * store-motion.c: Likewise.
14810 * tracer.c: Likewise.
14811 * trans-mem.c: Likewise.
14812 * tree-call-cdce.c: Likewise.
14813 * tree-cfg.c: Likewise.
14814 * tree-cfgcleanup.c: Likewise.
14815 * tree-chkp.c: Likewise.
14816 * tree-complex.c: Likewise.
14817 * tree-eh.c: Likewise.
14818 * tree-if-conv.c: Likewise.
14819 * tree-loop-distribution.c: Likewise.
14820 * tree-outof-ssa.c: Likewise.
14821 * tree-parloops.c: Likewise.
14822 * tree-predcom.c: Likewise.
14823 * tree-pretty-print.c: Likewise.
14824 * tree-profile.c: Likewise.
14825 * tree-sra.c: Likewise.
14826 * tree-ssa.c: Likewise.
14827 * tree-ssa-coalesce.c: Likewise.
14828 * tree-ssa-dce.c: Likewise.
14829 * tree-ssa-dom.c: Likewise.
14830 * tree-ssa-forwprop.c: Likewise.
14831 * tree-ssa-ifcombine.c: Likewise.
14832 * tree-ssa-loop-ch.c: Likewise.
14833 * tree-ssa-loop-im.c: Likewise.
14834 * tree-ssa-loop-ivcanon.c: Likewise.
14835 * tree-ssa-loop-ivopts.c: Likewise.
14836 * tree-ssa-loop-manip.c: Likewise.
14837 * tree-ssa-loop-prefetch.c: Likewise.
14838 * tree-ssa-loop-unswitch.c: Likewise.
14839 * tree-ssa-math-opts.c: Likewise.
14840 * tree-ssa-phiopt.c: Likewise.
14841 * tree-ssa-pre.c: Likewise.
14842 * tree-ssa-reassoc.c: Likewise.
14843 * tree-ssa-sink.c: Likewise.
14844 * tree-ssa-tail-merge.c: Likewise.
14845 * tree-ssa-threadedge.c: Likewise.
14846 * tree-ssa-threadupdate.c: Likewise.
14847 * tree-switch-conversion.c: Likewise.
14848 * tree-tailcall.c: Likewise.
14849 * tree-vect-data-refs.c: Likewise.
14850 * tree-vect-loop.c: Likewise.
14851 * tree-vect-loop-manip.c: Likewise.
14852 * tree-vectorizer.c: Likewise.
14853 * tree-vrp.c: Likewise.
14854 * ubsan.c: Likewise.
14855 * value-prof.c: Likewise.
14856 * varasm.c: Likewise.
14857 * var-tracking.c: Likewise.
14858 * config/aarch64/aarch64-builtins.c: Likewise.
14859 * config/aarch64/aarch64.c: Likewise.
14860 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14861 * config/alpha/alpha.c: Likewise.
14862 * config/arc/arc.c: Likewise.
14863 * config/arm/arm.c: Likewise.
14864 * config/avr/avr.c: Likewise.
14865 * config/bfin/bfin.c: Likewise.
14866 * config/c6x/c6x.c: Likewise.
14867 * config/cr16/cr16.c: Likewise.
14868 * config/cris/cris.c: Likewise.
14869 * config/darwin.c: Likewise.
14870 * config/darwin-c.c: Likewise.
14871 * config/epiphany/epiphany.c: Likewise.
14872 * config/epiphany/mode-switch-use.c: Likewise.
14873 * config/epiphany/resolve-sw-modes.c: Likewise.
14874 * config/fr30/fr30.c: Likewise.
14875 * config/frv/frv.c: Likewise.
14876 * config/ft32/ft32.c: Likewise.
14877 * config/h8300/h8300.c: Likewise.
14878 * config/i386/i386.c: Likewise.
14879 * config/i386/winnt.c: Likewise.
14880 * config/ia64/ia64.c: Likewise.
14881 * config/iq2000/iq2000.c: Likewise.
14882 * config/lm32/lm32.c: Likewise.
14883 * config/m32c/m32c.c: Likewise.
14884 * config/m32r/m32r.c: Likewise.
14885 * config/m68k/m68k.c: Likewise.
14886 * config/mcore/mcore.c: Likewise.
14887 * config/mep/mep.c: Likewise.
14888 * config/microblaze/microblaze.c: Likewise.
14889 * config/mips/mips.c: Likewise.
14890 * config/mmix/mmix.c: Likewise.
14891 * config/mn10300/mn10300.c: Likewise.
14892 * config/moxie/moxie.c: Likewise.
14893 * config/msp430/msp430.c: Likewise.
14894 * config/nds32/nds32.c: Likewise.
14895 * config/nds32/nds32-cost.c: Likewise.
14896 * config/nds32/nds32-fp-as-gp.c: Likewise.
14897 * config/nds32/nds32-intrinsic.c: Likewise.
14898 * config/nds32/nds32-isr.c: Likewise.
14899 * config/nds32/nds32-md-auxiliary.c: Likewise.
14900 * config/nds32/nds32-memory-manipulation.c: Likewise.
14901 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14902 * config/nds32/nds32-predicates.c: Likewise.
14903 * config/nios2/nios2.c: Likewise.
14904 * config/nvptx/nvptx.c: Likewise.
14905 * config/pa/pa.c: Likewise.
14906 * config/pdp11/pdp11.c: Likewise.
14907 * config/rl78/rl78.c: Likewise.
14908 * config/rs6000/rs6000.c: Likewise.
14909 * config/rx/rx.c: Likewise.
14910 * config/s390/s390.c: Likewise.
14911 * config/sh/sh.c: Likewise.
14912 * config/sh/sh-mem.cc: Likewise.
14913 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14914 * config/sh/sh_treg_combine.cc: Likewise.
14915 * config/sparc/sparc.c: Likewise.
14916 * config/spu/spu.c: Likewise.
14917 * config/stormy16/stormy16.c: Likewise.
14918 * config/tilegx/tilegx.c: Likewise.
14919 * config/tilepro/tilepro.c: Likewise.
14920 * config/v850/v850.c: Likewise.
14921 * config/vax/vax.c: Likewise.
14922 * config/visium/visium.c: Likewise.
14923 * config/xtensa/xtensa.c: Likewise.
14925 2015-07-10 Richard Biener <rguenther@suse.de>
14927 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
14928 (decision_tree::gen_gimple): Likewise.
14929 (decision_tree::gen_generic): Likewise.
14931 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14934 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
14935 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
14937 2015-07-10 Jakub Jelinek <jakub@redhat.com>
14939 PR middle-end/66820
14940 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
14941 or ORT_TASK contexts.
14942 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
14945 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14947 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
14950 2015-07-10 Tom de Vries <tom@codesourcery.com>
14952 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
14953 insert nit + 1 bound.
14955 2015-07-10 Richard Biener <rguenther@suse.de>
14957 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
14958 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
14959 (if_convertible_loop_p_1): For this always compute bb predicates.
14960 (if_convertible_loop_p): And free them.
14962 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14964 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
14967 2015-07-10 Richard Biener <rguenther@suse.de>
14969 PR tree-optimization/66823
14970 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
14971 inverted predicate.
14973 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
14975 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
14976 to handle mips[32|64]r3 and mips[32|64]r5.
14978 2015-07-09 Jakub Jelinek <jakub@redhat.com>
14980 PR middle-end/66633
14981 * tree-nested.c (get_static_chain): Or in a flag into
14982 info->static_chain_added.
14983 (get_frame_field, get_nonlocal_debug_decl): Likewise.
14984 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
14985 2015-07-01 changes.
14986 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
14987 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
14990 PR tree-optimization/66718
14991 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
14993 (vect_simd_lane_linear): New function.
14994 (vectorizable_simd_clone_call): Support using linear arguments for
14995 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
14997 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15000 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
15002 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15004 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
15005 Use machine mode, not enum machine_mode in the prototype.
15007 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
15008 classify 128-bit floating point support.
15009 (FLOAT128_IBM_P): Likewise.
15010 (FLOAT128_VECTOR_P): Likewise.
15011 (FLOAT128_2REG_P): Likewise.
15012 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
15013 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
15014 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15015 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
15017 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
15018 tests against TFmode/TDmode, since those modes do not use VSX
15020 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
15022 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
15023 tests against TFmode, etc.
15024 (invalid_e500_subreg): Add tests against IFmode/KFmode.
15025 (reg_offset_addressing_ok_p): Likewise.
15026 (rs6000_legitimate_offset_address_p): Likewise.
15027 (rs6000_legitimize_address): Likewise.
15028 (rs6000_legitimize_reload_address): Likewise.
15029 (rs6000_legitimate_address_p): Clean up tests against TFmode and
15030 TDmode to use the new helper macros, which will include IFmode and
15032 (rs6000_emit_move): Likewise.
15033 (rs6000_darwin64_record_arg_recurse): Likewise.
15034 (print_operand): Likewise.
15035 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
15036 that uses a single vector register as a vector and not as a
15037 floating point register in terms of the calling sequence.
15038 (rs6000_discover_homogeneous_aggregate): Likewise.
15039 (rs6000_return_in_memory): Likewise.
15040 (init_cumulative_args): Likewise.
15041 (rs6000_function_arg_boundary): Likewise.
15042 (rs6000_function_arg_advance_1): Likewise.
15043 (rs6000_function_arg): Likewise.
15044 (rs6000_pass_by_reference): Likewise.
15045 (rs6000_gimplify_va_arg): Likewise.
15046 (rs6000_secondary_reload_memory): Use machine_mode not enum
15048 (rs6000_split_multireg_move): Use new helper macros.
15049 (spe_func_has_64bit_regs_p): Likewise.
15050 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
15051 (output_toc): Use new helper macros.
15052 (rs6000_register_move_cost): Likewise.
15053 (rs6000_function_value): Add IEEE 128-bit floating point calling
15055 (rs6000_libcall_value): Likewise.
15056 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
15057 floating point support.
15058 (rs6000_vector_mode_supported_p): Likewise.
15060 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
15062 PR rtl-optimization/66782
15063 * lra-int.h (struct lra_insn_recog_data): Add comment about
15064 clobbered hard regs for arg_hard_regs.
15065 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
15066 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
15067 Add condition for processing used hard regs.
15068 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
15069 Process clobbered hard regs.
15071 2015-07-09 Michael Matz <matz@suse.de>
15073 * genmatch.c (fprintf_indent): New function.
15074 (operand::gen_transform): Add indent parameter.
15075 (expr::gen_transform, c_expr::gen_transform,
15076 capture::gen_transform): Ditto and use fprintf_indent.
15077 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
15078 (dt_operand::gen, dt_operand::gen_predicate,
15079 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
15080 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
15081 (decision_tree::gen_gimple): Adjust calls and indent generated
15083 (decision_tree::gen_generic): Ditto.
15084 (write_predicate): Ditto.
15086 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15089 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
15090 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
15091 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
15092 {GENERAL,SSE,MMX}_REG_P where appropriate.
15094 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15096 * lto-streamer.h: Don't include target.h and alloc-pool.h.
15097 * builtins.c: Adjust includes.
15098 * gimple.c: Likewise.
15099 * ipa-icf.c: Likewise.
15100 * lto-opts.c: Likewise.
15101 * ipa-reference.c: Likewise.
15102 * lto-section-out.c: Likewise.
15103 * lto-streamer-in.c: Likewise.
15104 * lto-streamer-out.c: Likewise.
15105 * opts-global.c: Likewise.
15106 * symtab.c: Likewise.
15107 * tree-chkp.c: Likewise.
15108 * tree-ssa-live.c: Likewise.
15109 * tree-streamer-in.c: Likewise.
15110 * tree-streamer-out.c: Likewise.
15111 * config/darwin.c: Likewise.
15112 * config/i386/winnt.c: Likewise.
15114 2015-07-09 Richard Biener <rguenther@suse.de>
15116 * genmatch.c (struct expr): Add force_single_use flag.
15117 (expr::expr): Add copy constructor.
15118 (capture_info::walk_match): Gather force_single_use captures.
15119 (expr::gen_transform): Use possibly NULLified sequence.
15120 (dt_simplify::gen): Apply single-use restrictions by NULLifying
15121 seq if any constrained expr is not single-use.
15122 (parser::parse_expr): Refactor to allow multiple flags. Handle
15123 's' flag to force an expression have a single-use if the pattern
15124 simplifies to more than one statement.
15125 * match.pd: Convert most single_use conditionals to :s flags.
15127 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15129 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
15130 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15131 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
15133 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15135 * flags.h: Don't include flag-types.h or options.h.
15136 * opts-common.c: Adjust includes.
15137 * opts-global.c: Likewise.
15138 * common/config/epiphany/epiphany-common.c: Likewise.
15140 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15143 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
15146 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15149 * config/i386/i386.c (ix86_return_in_memory): Return true
15150 if int_size_in_bytes returns negative for IA MCU.
15152 2015-07-09 Marek Polacek <polacek@redhat.com>
15154 PR tree-optimization/66718
15155 * Makefile.in (OBJS): Add gimple-laddress.o.
15156 * passes.def: Schedule pass_laddress.
15157 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
15158 * tree-pass.h (make_pass_laddress): Declare.
15159 * gimple-laddress.c: New file.
15161 2015-07-09 Richard Biener <rguenther@suse.de>
15163 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
15165 2015-07-09 Richard Biener <rguenther@suse.de>
15167 PR tree-optimization/66807
15168 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
15170 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
15172 * function.c (stack_protect_epilogue): Use if rather than switch for
15173 check targetm.have_stack_protect_test.
15175 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15177 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
15178 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
15179 * config/arc/arc.h: Likewise.
15180 * config/arm/arm.h: Likewise.
15181 * config/bfin/bfin.h: Likewise.
15182 * config/epiphany/epiphany.h: Likewise.
15183 * config/frv/frv.h: Likewise.
15184 * config/ia64/ia64.h: Likewise.
15185 * config/iq2000/iq2000.h: Likewise.
15186 * config/lm32/lm32.h: Likewise.
15187 * config/m32r/m32r.h: Likewise.
15188 * config/mcore/mcore.h: Likewise.
15189 * config/mep/mep.h: Likewise.
15190 * config/microblaze/microblaze.h: Likewise.
15191 * config/mips/mips.h: Likewise.
15192 * config/mmix/mmix.h: Likewise.
15193 * config/mn10300/mn10300.h: Likewise.
15194 * config/nds32/nds32.h: Likewise.
15195 * config/nios2/nios2.h: Likewise.
15196 * config/pa/pa.h: Likewise.
15197 * config/rl78/rl78.h: Likewise.
15198 * config/sh/sh.h: Likewise.
15199 * config/sparc/sparc.h: Likewise.
15200 * config/stormy16/stormy16.h: Likewise.
15201 * config/tilegx/tilegx.h: Likewise.
15202 * config/tilepro/tilepro.h: Likewise.
15203 * config/v850/v850.h: Likewise.
15204 * config/xtensa/xtensa.h: Likewise.
15205 * doc/tm.texi: Regenerate.
15206 * doc/tm.texi.in: Adjust.
15207 * combine.c (simplify_set): Likewise.
15208 (simplify_comparison): Likewise.
15209 * expr.c (store_constructor): Likewise.
15210 * internal-fn.c (expand_arith_overflow): Likewise.
15211 * reload.c (push_reload): Likewise.
15212 (find_reloads): Likewise.
15213 (find_reloads_subreg_address): Likewise.
15214 * reload1.c (eliminate_regs_1): Likewise.
15215 * rtlanal.c (nonzero_bits1): Likewise.
15216 (num_sign_bit_copies1): Likewise.
15217 * simplify-rtx.c (simplify_truncation): Likewise.
15219 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15221 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
15222 of AUTO_INC_DEC with the preprocessor.
15223 * combine.c (combine_instructions): Likewise.
15224 (can_combine_p): Likewise.
15225 (try_combine): Likewise.
15226 * emit-rtl.c (try_split): Likewise.
15227 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15228 * lower-subreg.c (resolve_simple_move): Likewise.
15229 * lra.c (update_inc_notes): Likewise.
15230 * recog.c (asm_operand_ok): Likewise.
15231 (constrain_operands): Likewise.
15232 * regrename.c (scan_rtx_address): Likewise.
15233 * reload.c (update_auto_inc_notes): Likewise.
15234 (reg_inc_found_and_valid_p): Likewise.
15235 * reload1.c (reload): Likewise.
15236 (emit_input_reload_insns): Likewise.
15237 (delete_output_reload): Likewise.
15238 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15239 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15241 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15243 * rtl.h: Always define AUTO_INC_DEC.
15244 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
15245 * combine.c (combine_instructions): Likewise.
15246 (can_combine_p): Likewise.
15247 (try_combine): Likewise.
15248 * emit-rtl.c (try_split): Likewise.
15249 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15250 * lower-subreg.c (resolve_simple_move): Likewise.
15251 * lra.c (update_inc_notes): Likewise.
15252 * recog.c (asm_operand_ok): Likewise.
15253 (constrain_operands): Likewise.
15254 * regrename.c (scan_rtx_address): Likewise.
15255 * reload.c (update_auto_inc_notes): Likewise.
15256 (find_equiv_reg): Likewise.
15257 * reload1.c (reload): Likewise.
15258 (reload_as_needed): Likewise.
15259 (choose_reload_regs): Likewise.
15260 (emit_input_reload_insns): Likewise.
15261 (delete_output_reload): Likewise.
15262 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15263 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15265 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15267 * combine.c (can_combine_def_p): Don't check the value of
15268 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
15269 (combinable_i3pat): Likewise.
15270 (mark_used_regs_combine): Likewise.
15271 * regrename.c (rename_chains): Likewise.
15272 * reload.c (find_reloads_address): Likewise.
15273 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15275 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15277 * combine.c (update_rsp_from_reg_equal): Don't check if
15278 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
15279 (reg_nonzero_bits_for_combine): Likewise.
15280 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
15282 * config/frv/frv.h: Likewise.
15283 * config/lm32/lm32.h: Likewise.
15284 * config/mep/mep.h: Likewise.
15285 * config/mips/mips.h: Likewise.
15286 * config/rs6000/rs6000.h: Likewise.
15287 * config/sh/sh.h: Likewise.
15288 * config/tilegx/tilegx.h (enum reg_class): Likewise.
15289 * config/tilepro/tilepro.h: Likewise.
15290 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
15291 * doc/tm.texi: Regenerate.
15292 * doc/tm.texi.in: Adjust.
15293 * rtlanal.c (nonzero_bits1): Likewise.
15295 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15297 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
15298 with the preprocessor.
15299 (combine_instructions): Likewise.
15300 (try_combine): Likewise.
15302 (distribute_notes): Likewise.
15304 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15306 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
15308 (simplify_set): Likewise.
15309 * cse.c (cse_insn): Likewise.
15310 * fold-const.c (fold_single_bit_test): Likewise.
15311 (fold_unary_loc): Likewise.
15312 * postreload.c (reload_cse_simplify_set): Likewise.
15313 (reload_cse_simplify_operands): Likewise.
15315 2015-07-08 Jiong Wang <jiong.wang@arm.com>
15317 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
15318 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
15320 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15323 * config/i386/x86intrin.h: Include <adxintrin.h> even if
15324 __iamcu__ is defined.
15326 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15328 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
15330 2015-07-08 Iain Sandoe <iain@codesourcery.com>
15333 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
15334 names from preservation.
15336 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15339 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
15341 (function_arg_advance_32): Don't pass vectors in registers for
15343 (function_arg_32): Likewise.
15344 (ix86_return_in_memory): Don't return vectors in registers for
15347 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
15349 PR middle-end/66334
15350 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
15351 hard regno live at the start of BB with incoming abnormal edges.
15352 * lra-lives.c (process_bb_lives): Ditto.
15354 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15357 * config/nvptx/mkoffload.c (main): Create an offload image only in
15358 64-bit configurations.
15360 2015-07-08 Martin Liska <mliska@suse.cz>
15363 * tree-sra.c (create_access_1): Call ctor without brackets.
15364 (create_artificial_child_access): Likewise.
15366 2015-07-08 Richard Biener <rguenther@suse.de>
15368 PR tree-optimization/66793
15369 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15370 Properly split the block after stmts ending it.
15372 2015-07-08 Richard Biener <rguenther@suse.de>
15374 PR tree-optimization/66794
15375 * passes.c (execute_function_todo): Assert that post-dominators
15377 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15378 Free post-dominators.
15380 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15382 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15385 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15387 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15388 more than or equal 8 and less than 32 when optimizing for size.
15390 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15392 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15393 COSTS_N_INSNS (1) and increment it appropriately throughout the
15396 2015-07-08 Richard Biener <rguenther@suse.de>
15398 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15400 2015-07-08 Alan Modra <amodra@gmail.com>
15402 * target.def (rtx_costs): Remove "code" param, add "mode".
15403 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15404 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
15405 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15406 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
15407 call. Track mode when given in rtx.
15408 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
15409 (default_address_cost): Pass Pmode to rtx_cost.
15410 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15411 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15413 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
15414 (notreg_cost): Add mode param. Use it.
15415 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
15416 mode param and pass to set_src_cost. Update all calls.
15417 (hash_scan_set): Formatting.
15418 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15419 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15421 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15422 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15423 emit_store_flag): Update set_src_cost and rtx_cost calls.
15424 * auto-inc-dec.c (attempt_change): Likewise.
15425 * calls.c (precompute_register_parameters): Likewise.
15426 * combine.c (expand_compound_operation, make_extraction,
15427 force_to_mode, distribute_and_simplify_rtx): Likewise.
15428 * dojump.c (prefer_and_bit_test): Likewise.
15429 * dse.c (find_shift_sequence): Likewise.
15430 * expr.c (compress_float_constant): Likewise.
15431 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15432 * ifcvt.c (noce_try_sign_mask): Likewise.
15433 * loop-doloop.c (doloop_optimize): Likewise.
15434 * loop-invariant.c (create_new_invariant): Likewise.
15435 * lower-subreg.c (shift_cost, compute_costs): Likewise.
15436 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15437 lshift_cheap_p): Likewise.
15438 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15439 try_replace_in_use, reload_cse_move2add): Likewise.
15440 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15442 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15443 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15444 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15445 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15446 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15447 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
15449 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15450 * config/arc/arc.c (arc_rtx_costs): Likewise.
15451 * config/arm/arm.c (arm_rtx_costs): Likewise.
15452 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15453 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15454 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15455 * config/cris/cris.c (cris_rtx_costs): Likewise.
15456 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15457 * config/frv/frv.c (frv_rtx_costs): Likewise.
15458 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15459 * config/i386/i386.c (ix86_rtx_costs): Likewise.
15460 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15461 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15462 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15463 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15464 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15465 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15466 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15467 * config/mep/mep.c (mep_rtx_cost): Likewise.
15468 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15469 * config/mips/mips.c (mips_rtx_costs): Likewise.
15470 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15471 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15472 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15473 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15474 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15475 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15476 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15477 * config/pa/pa.c (hppa_rtx_costs): Likewise.
15478 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15479 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15480 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15481 * config/s390/s390.c (s390_rtx_costs): Likewise.
15482 * config/sh/sh.c (sh_rtx_costs): Likewise.
15483 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15484 * config/spu/spu.c (spu_rtx_costs): Likewise.
15485 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15486 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15487 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15488 * config/v850/v850.c (v850_rtx_costs): Likewise.
15489 * config/vax/vax.c (vax_rtx_costs): Likewise.
15490 * config/visium/visium.c (visium_rtx_costs): Likewise.
15491 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15492 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15493 "code" param, and pass as outer_code to first rtx_cost call. Pass
15494 mode to rtx_cost calls.
15495 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15497 (aarch64_rtx_costs_wrapper): Update.
15498 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15499 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15501 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15502 and rtx_cost calls.
15503 (avr_operand_rtx_cost): Similarly.
15504 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15505 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15506 * config/mips/mips.c (mips_stack_address_p): Comment typo.
15507 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15508 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15509 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15511 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15512 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15513 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15514 * doc/tm.texi: Regenerate.
15516 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
15518 * tree-core.h: Include symtab.h.
15519 * rtl.h: Include hard-reg-set.h but not flags.h.
15520 (HARD_CONST): Remove condition compilation involving HARD_CONST since
15521 hard-reg-set.h is always included.
15522 * regs.h: Don't include hard-reg-set.h or rtl.h.
15523 * cfg.h: Include dominance.h.
15524 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15525 * backend.h: New. Aggregate commonly used backend header files.
15526 * gimple-ssa.h: Don't include tree-hasher.h.
15527 * ssa.h: New. Aggregate commonly used SSA header files.
15528 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15529 * sel-sched-ir.h: Flatten includes.
15530 * lra-int.h: Flatten completely.
15531 * sel-sched-dump.h: Flatten includes.
15532 * ira-int.h: Flatten includes.
15533 * gimple-streamer.h: Remove all includes.
15534 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15535 * resource.h: Flatten hard-reg-set.h and df.h.
15536 * sched-int.h: Flatten insn-arrt.h and df.h.
15537 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15538 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15539 * genattrtab.c (write_header): Adjust generated includes.
15540 * genautomata.c (main): Likewise.
15541 * genconditions.c (write-header): Likewise.
15542 * genemit.c (main): Likewise.
15543 * gengtype.c (open_base_files): Likewise.
15544 * genopinit.c (main): Likewise.
15545 * genoutput.c (output_prologue): Likewise.
15546 * genpeep.c (main): Likewise.
15547 * genpreds.c (write_insn_preds_c): Likewise.
15548 * genrecog.c (write_header): Likewise.
15549 * alias.c: Adjust includes.
15550 * asan.c: Likewise.
15551 * attribs.c: Likewise.
15552 * auto-inc-dec.c: Likewise.
15553 * auto-profile.c: Likewise.
15554 * bb-reorder.c: Likewise.
15555 * bt-load.c: Likewise.
15556 * builtins.c: Likewise.
15557 * caller-save.c: Likewise.
15558 * calls.c: Likewise.
15559 * ccmp.c: Likewise.
15561 * cfganal.c: Likewise.
15562 * cfgbuild.c: Likewise.
15563 * cfgcleanup.c: Likewise.
15564 * cfgexpand.c: Likewise.
15565 * cfghooks.c: Likewise.
15566 * cfgloop.c: Likewise.
15567 * cfgloopanal.c: Likewise.
15568 * cfgloopmanip.c: Likewise.
15569 * cfgrtl.c: Likewise.
15570 * cgraph.c: Likewise.
15571 * cgraphbuild.c: Likewise.
15572 * cgraphclones.c: Likewise.
15573 * cgraphunit.c: Likewise.
15574 * cilk-common.c: Likewise.
15575 * combine-stack-adj.c: Likewise.
15576 * combine.c: Likewise.
15577 * compare-elim.c: Likewise.
15578 * convert.c: Likewise.
15579 * coverage.c: Likewise.
15580 * cppbuiltin.c: Likewise.
15581 * cprop.c: Likewise.
15583 * cselib.c: Likewise.
15584 * data-streamer-in.c: Likewise.
15585 * data-streamer-out.c: Likewise.
15586 * data-streamer.c: Likewise.
15587 * dbxout.c: Likewise.
15590 * debug.c: Likewise.
15591 * df-core.c: Likewise.
15592 * df-problems.c: Likewise.
15593 * df-scan.c: Likewise.
15595 * dojump.c: Likewise.
15596 * dominance.c: Likewise.
15597 * domwalk.c: Likewise.
15598 * double-int.c: Likewise.
15600 * dumpfile.c: Likewise.
15601 * dwarf2asm.c: Likewise.
15602 * dwarf2cfi.c: Likewise.
15603 * dwarf2out.c: Likewise.
15604 * emit-rtl.c: Likewise.
15605 * et-forest.c: Likewise.
15606 * except.c: Likewise.
15607 * explow.c: Likewise.
15608 * expmed.c: Likewise.
15609 * expr.c: Likewise.
15610 * final.c: Likewise.
15611 * fixed-value.c: Likewise.
15612 * fold-const.c: Likewise.
15613 * function.c: Likewise.
15614 * fwprop.c: Likewise.
15615 * gcc-plugin.h: Likewise.
15616 * gcse-common.c: Likewise.
15617 * gcse.c: Likewise.
15618 * generic-match-head.c: Likewise.
15619 * ggc-page.c: Likewise.
15620 * gimple-builder.c: Likewise.
15621 * gimple-expr.c: Likewise.
15622 * gimple-fold.c: Likewise.
15623 * gimple-iterator.c: Likewise.
15624 * gimple-low.c: Likewise.
15625 * gimple-match-head.c: Likewise.
15626 * gimple-pretty-print.c: Likewise.
15627 * gimple-ssa-isolate-paths.c: Likewise.
15628 * gimple-ssa-strength-reduction.c: Likewise.
15629 * gimple-streamer-in.c: Likewise.
15630 * gimple-streamer-out.c: Likewise.
15631 * gimple-walk.c: Likewise.
15632 * gimple.c: Likewise.
15633 * gimplify-me.c: Likewise.
15634 * gimplify.c: Likewise.
15635 * godump.c: Likewise.
15636 * graph.c: Likewise.
15637 * graphite-blocking.c: Likewise.
15638 * graphite-dependences.c: Likewise.
15639 * graphite-interchange.c: Likewise.
15640 * graphite-isl-ast-to-gimple.c: Likewise.
15641 * graphite-optimize-isl.c: Likewise.
15642 * graphite-poly.c: Likewise.
15643 * graphite-scop-detection.c: Likewise.
15644 * graphite-sese-to-poly.c: Likewise.
15645 * graphite.c: Likewise.
15646 * haifa-sched.c: Likewise.
15647 * hw-doloop.c: Likewise.
15648 * ifcvt.c: Likewise.
15649 * init-regs.c: Likewise.
15650 * internal-fn.c: Likewise.
15651 * ipa-chkp.c: Likewise.
15652 * ipa-comdats.c: Likewise.
15653 * ipa-cp.c: Likewise.
15654 * ipa-devirt.c: Likewise.
15655 * ipa-icf-gimple.c: Likewise.
15656 * ipa-icf.c: Likewise.
15657 * ipa-inline-analysis.c: Likewise.
15658 * ipa-inline-transform.c: Likewise.
15659 * ipa-inline.c: Likewise.
15660 * ipa-polymorphic-call.c: Likewise.
15661 * ipa-profile.c: Likewise.
15662 * ipa-prop.c: Likewise.
15663 * ipa-pure-const.c: Likewise.
15664 * ipa-ref.c: Likewise.
15665 * ipa-reference.c: Likewise.
15666 * ipa-split.c: Likewise.
15667 * ipa-utils.c: Likewise.
15668 * ipa-visibility.c: Likewise.
15670 * ira-build.c: Likewise.
15671 * ira-color.c: Likewise.
15672 * ira-conflicts.c: Likewise.
15673 * ira-costs.c: Likewise.
15674 * ira-emit.c: Likewise.
15675 * ira-lives.c: Likewise.
15677 * jump.c: Likewise.
15678 * langhooks.c: Likewise.
15680 * loop-doloop.c: Likewise.
15681 * loop-init.c: Likewise.
15682 * loop-invariant.c: Likewise.
15683 * loop-iv.c: Likewise.
15684 * loop-unroll.c: Likewise.
15685 * lower-subreg.c: Likewise.
15686 * lra-assigns.c: Likewise.
15687 * lra-coalesce.c: Likewise.
15688 * lra-constraints.c: Likewise.
15689 * lra-eliminations.c: Likewise.
15690 * lra-lives.c: Likewise.
15691 * lra-remat.c: Likewise.
15692 * lra-spills.c: Likewise.
15694 * lto-cgraph.c: Likewise.
15695 * lto-compress.c: Likewise.
15696 * lto-opts.c: Likewise.
15697 * lto-section-in.c: Likewise.
15698 * lto-section-out.c: Likewise.
15699 * lto-streamer-in.c: Likewise.
15700 * lto-streamer-out.c: Likewise.
15701 * lto-streamer.c: Likewise.
15703 * mode-switching.c: Likewise.
15704 * modulo-sched.c: Likewise.
15705 * omega.c: Likewise.
15706 * omp-low.c: Likewise.
15707 * optabs.c: Likewise.
15708 * opts-global.c: Likewise.
15709 * passes.c: Likewise.
15710 * plugin.c: Likewise.
15711 * postreload-gcse.c: Likewise.
15712 * postreload.c: Likewise.
15713 * predict.c: Likewise.
15714 * print-rtl.c: Likewise.
15715 * print-tree.c: Likewise.
15716 * profile.c: Likewise.
15717 * real.c: Likewise.
15718 * realmpfr.c: Likewise.
15719 * recog.c: Likewise.
15721 * reg-stack.c: Likewise.
15722 * regcprop.c: Likewise.
15723 * reginfo.c: Likewise.
15724 * regrename.c: Likewise.
15725 * regstat.c: Likewise.
15726 * reload.c: Likewise.
15727 * reload1.c: Likewise.
15728 * reorg.c: Likewise.
15729 * resource.c: Likewise.
15730 * rtl-chkp.c: Likewise.
15731 * rtlanal.c: Likewise.
15732 * rtlhooks.c: Likewise.
15733 * sanopt.c: Likewise.
15734 * sched-deps.c: Likewise.
15735 * sched-ebb.c: Likewise.
15736 * sched-rgn.c: Likewise.
15737 * sched-vis.c: Likewise.
15738 * sdbout.c: Likewise.
15739 * sel-sched-dump.c: Likewise.
15740 * sel-sched-ir.c: Likewise.
15741 * sel-sched.c: Likewise.
15742 * sese.c: Likewise.
15743 * shrink-wrap.c: Likewise.
15744 * simplify-rtx.c: Likewise.
15745 * stack-ptr-mod.c: Likewise.
15746 * stmt.c: Likewise.
15747 * stor-layout.c: Likewise.
15748 * store-motion.c: Likewise.
15749 * stringpool.c: Likewise.
15750 * symtab.c: Likewise.
15751 * target-globals.c: Likewise.
15752 * targhooks.c: Likewise.
15753 * toplev.c: Likewise.
15754 * tracer.c: Likewise.
15755 * trans-mem.c: Likewise.
15756 * tree-affine.c: Likewise.
15757 * tree-browser.c: Likewise.
15758 * tree-call-cdce.c: Likewise.
15759 * tree-cfg.c: Likewise.
15760 * tree-cfgcleanup.c: Likewise.
15761 * tree-chkp-opt.c: Likewise.
15762 * tree-chkp.c: Likewise.
15763 * tree-chrec.c: Likewise.
15764 * tree-complex.c: Likewise.
15765 * tree-data-ref.c: Likewise.
15766 * tree-dfa.c: Likewise.
15767 * tree-diagnostic.c: Likewise.
15768 * tree-dump.c: Likewise.
15769 * tree-eh.c: Likewise.
15770 * tree-emutls.c: Likewise.
15771 * tree-if-conv.c: Likewise.
15772 * tree-inline.c: Likewise.
15773 * tree-into-ssa.c: Likewise.
15774 * tree-iterator.c: Likewise.
15775 * tree-loop-distribution.c: Likewise.
15776 * tree-nested.c: Likewise.
15777 * tree-nrv.c: Likewise.
15778 * tree-object-size.c: Likewise.
15779 * tree-outof-ssa.c: Likewise.
15780 * tree-parloops.c: Likewise.
15781 * tree-phinodes.c: Likewise.
15782 * tree-predcom.c: Likewise.
15783 * tree-pretty-print.c: Likewise.
15784 * tree-profile.c: Likewise.
15785 * tree-scalar-evolution.c: Likewise.
15786 * tree-sra.c: Likewise.
15787 * tree-ssa-address.c: Likewise.
15788 * tree-ssa-alias.c: Likewise.
15789 * tree-ssa-ccp.c: Likewise.
15790 * tree-ssa-coalesce.c: Likewise.
15791 * tree-ssa-copy.c: Likewise.
15792 * tree-ssa-copyrename.c: Likewise.
15793 * tree-ssa-dce.c: Likewise.
15794 * tree-ssa-dom.c: Likewise.
15795 * tree-ssa-dse.c: Likewise.
15796 * tree-ssa-forwprop.c: Likewise.
15797 * tree-ssa-ifcombine.c: Likewise.
15798 * tree-ssa-live.c: Likewise.
15799 * tree-ssa-loop-ch.c: Likewise.
15800 * tree-ssa-loop-im.c: Likewise.
15801 * tree-ssa-loop-ivcanon.c: Likewise.
15802 * tree-ssa-loop-ivopts.c: Likewise.
15803 * tree-ssa-loop-manip.c: Likewise.
15804 * tree-ssa-loop-niter.c: Likewise.
15805 * tree-ssa-loop-prefetch.c: Likewise.
15806 * tree-ssa-loop-unswitch.c: Likewise.
15807 * tree-ssa-loop.c: Likewise.
15808 * tree-ssa-math-opts.c: Likewise.
15809 * tree-ssa-operands.c: Likewise.
15810 * tree-ssa-phiopt.c: Likewise.
15811 * tree-ssa-phiprop.c: Likewise.
15812 * tree-ssa-pre.c: Likewise.
15813 * tree-ssa-propagate.c: Likewise.
15814 * tree-ssa-reassoc.c: Likewise.
15815 * tree-ssa-sccvn.c: Likewise.
15816 * tree-ssa-scopedtables.c: Likewise.
15817 * tree-ssa-sink.c: Likewise.
15818 * tree-ssa-strlen.c: Likewise.
15819 * tree-ssa-structalias.c: Likewise.
15820 * tree-ssa-tail-merge.c: Likewise.
15821 * tree-ssa-ter.c: Likewise.
15822 * tree-ssa-threadedge.c: Likewise.
15823 * tree-ssa-threadupdate.c: Likewise.
15824 * tree-ssa-uncprop.c: Likewise.
15825 * tree-ssa-uninit.c: Likewise.
15826 * tree-ssa.c: Likewise.
15827 * tree-ssanames.c: Likewise.
15828 * tree-stdarg.c: Likewise.
15829 * tree-streamer-in.c: Likewise.
15830 * tree-streamer-out.c: Likewise.
15831 * tree-streamer.c: Likewise.
15832 * tree-switch-conversion.c: Likewise.
15833 * tree-tailcall.c: Likewise.
15834 * tree-vect-data-refs.c: Likewise.
15835 * tree-vect-generic.c: Likewise.
15836 * tree-vect-loop-manip.c: Likewise.
15837 * tree-vect-loop.c: Likewise.
15838 * tree-vect-patterns.c: Likewise.
15839 * tree-vect-slp.c: Likewise.
15840 * tree-vect-stmts.c: Likewise.
15841 * tree-vectorizer.c: Likewise.
15842 * tree-vrp.c: Likewise.
15843 * tree.c: Likewise.
15844 * tsan.c: Likewise.
15845 * ubsan.c: Likewise.
15846 * valtrack.c: Likewise.
15847 * value-prof.c: Likewise.
15848 * var-tracking.c: Likewise.
15849 * varasm.c: Likewise.
15850 * varpool.c: Likewise.
15851 * vmsdbgout.c: Likewise.
15852 * vtable-verify.c: Likewise.
15854 * wide-int.cc: Likewise.
15855 * xcoffout.c: Likewise.
15856 * config/aarch64/aarch64-builtins.c: Likewise.
15857 * config/aarch64/aarch64.c: Likewise.
15858 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15859 * config/alpha/alpha.c: Likewise.
15860 * config/arc/arc.c: Likewise.
15861 * config/arm/aarch-common.c: Likewise.
15862 * config/arm/arm-builtins.c: Likewise.
15863 * config/arm/arm-c.c: Likewise.
15864 * config/arm/arm.c: Likewise.
15865 * config/avr/avr-c.c: Likewise.
15866 * config/avr/avr-log.c: Likewise.
15867 * config/avr/avr.c: Likewise.
15868 * config/bfin/bfin.c: Likewise.
15869 * config/c6x/c6x.c: Likewise.
15870 * config/cr16/cr16.c: Likewise.
15871 * config/cris/cris.c: Likewise.
15872 * config/darwin-c.c: Likewise.
15873 * config/darwin.c: Likewise.
15874 * config/epiphany/epiphany.c: Likewise.
15875 * config/epiphany/mode-switch-use.c: Likewise.
15876 * config/epiphany/resolve-sw-modes.c: Likewise.
15877 * config/fr30/fr30.c: Likewise.
15878 * config/frv/frv.c: Likewise.
15879 * config/ft32/ft32.c: Likewise.
15880 * config/h8300/h8300.c: Likewise.
15881 * config/i386/i386-c.c: Likewise.
15882 * config/i386/i386.c: Likewise.
15883 * config/i386/msformat-c.c: Likewise.
15884 * config/i386/winnt-cxx.c: Likewise.
15885 * config/i386/winnt-stubs.c: Likewise.
15886 * config/i386/winnt.c: Likewise.
15887 * config/ia64/ia64-c.c: Likewise.
15888 * config/ia64/ia64.c: Likewise.
15889 * config/iq2000/iq2000.c: Likewise.
15890 * config/lm32/lm32.c: Likewise.
15891 * config/m32c/m32c-pragma.c: Likewise.
15892 * config/m32c/m32c.c: Likewise.
15893 * config/m32r/m32r.c: Likewise.
15894 * config/m68k/m68k.c: Likewise.
15895 * config/mcore/mcore.c: Likewise.
15896 * config/mep/mep-pragma.c: Likewise.
15897 * config/mep/mep.c: Likewise.
15898 * config/microblaze/microblaze-c.c: Likewise.
15899 * config/microblaze/microblaze.c: Likewise.
15900 * config/mips/mips.c: Likewise.
15901 * config/mmix/mmix.c: Likewise.
15902 * config/mn10300/mn10300.c: Likewise.
15903 * config/moxie/moxie.c: Likewise.
15904 * config/msp430/msp430-c.c: Likewise.
15905 * config/msp430/msp430.c: Likewise.
15906 * config/nds32/nds32-cost.c: Likewise.
15907 * config/nds32/nds32-fp-as-gp.c: Likewise.
15908 * config/nds32/nds32-intrinsic.c: Likewise.
15909 * config/nds32/nds32-isr.c: Likewise.
15910 * config/nds32/nds32-md-auxiliary.c: Likewise.
15911 * config/nds32/nds32-memory-manipulation.c: Likewise.
15912 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15913 * config/nds32/nds32-predicates.c: Likewise.
15914 * config/nds32/nds32.c: Likewise.
15915 * config/nios2/nios2.c: Likewise.
15916 * config/nvptx/nvptx.c: Likewise.
15917 * config/pa/pa.c: Likewise.
15918 * config/pdp11/pdp11.c: Likewise.
15919 * config/rl78/rl78-c.c: Likewise.
15920 * config/rl78/rl78.c: Likewise.
15921 * config/rs6000/rs6000-c.c: Likewise.
15922 * config/rs6000/rs6000.c: Likewise.
15923 * config/rx/rx.c: Likewise.
15924 * config/s390/s390-c.c: Likewise.
15925 * config/s390/s390.c: Likewise.
15926 * config/sh/sh-c.c: Likewise.
15927 * config/sh/sh-mem.cc: Likewise.
15928 * config/sh/sh.c: Likewise.
15929 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15930 * config/sh/sh_treg_combine.cc: Likewise.
15931 * config/sol2-c.c: Likewise.
15932 * config/sol2-cxx.c: Likewise.
15933 * config/sol2-stubs.c: Likewise.
15934 * config/sol2.c: Likewise.
15935 * config/sparc/sparc-c.c: Likewise.
15936 * config/sparc/sparc.c: Likewise.
15937 * config/spu/spu-c.c: Likewise.
15938 * config/spu/spu.c: Likewise.
15939 * config/stormy16/stormy16.c: Likewise.
15940 * config/tilegx/mul-tables.c: Likewise.
15941 * config/tilegx/tilegx-c.c: Likewise.
15942 * config/tilegx/tilegx.c: Likewise.
15943 * config/tilepro/mul-tables.c: Likewise.
15944 * config/tilepro/tilepro-c.c: Likewise.
15945 * config/tilepro/tilepro.c: Likewise.
15946 * config/v850/v850-c.c: Likewise.
15947 * config/v850/v850.c: Likewise.
15948 * config/vax/vax.c: Likewise.
15949 * config/visium/visium.c: Likewise.
15950 * config/vms/vms-c.c: Likewise.
15951 * config/vms/vms.c: Likewise.
15952 * config/vxworks.c: Likewise.
15953 * config/xtensa/xtensa.c: Likewise.
15955 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
15957 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
15958 Remove operand constraints. Change operand 2 predicate to
15959 nonmemory operand. Limit const_int values to mode bitsize. Only
15960 allow const_int values less than 32 when optimizing for size.
15961 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
15962 Remove operand constraints.
15963 (*bt<mode>): Use SImode for const_int values less than 32.
15964 (regmode): Remove mode attribute.
15966 2015-07-07 Anatoly Sokolov <aesok@post.ru>
15968 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15969 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
15970 moxie_legitimate_address_p): New functions.
15971 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
15973 2015-07-07 Tom de Vries <tom@codesourcery.com>
15975 PR tree-optimization/66642
15976 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
15977 header comment. Rename split_edge variable to edge_at_split. Split
15978 exit edge to create new loop exit bb. Insert loop exit phis in new
15981 2015-07-07 Tom de Vries <tom@codesourcery.com>
15983 * tree-cfg.c (get_virtual_phi): New function.
15984 * tree-cfg.h (get_virtual_phi): Declare.
15985 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
15986 (rewrite_virtuals_into_loop_closed_ssa): New function.
15987 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
15989 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
15990 (transform_to_exit_first_loop_alt): Use
15991 rewrite_virtuals_into_loop_closed_ssa.
15993 2015-07-07 Richard Biener <rguenther@suse.de>
15995 * fold-const.c (fold_binary_loc): Move
15996 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
15997 * match.pd: ... here.
15998 Add (X * C1) % C2 -> 0 simplification pattern derived from
16001 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
16004 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
16005 change for target/65249.
16007 2015-07-07 Paulo Matos <pmatos@broadcom.com>
16009 * symtab.c (address_matters_1): Fix typo in comment above.
16010 (can_increase_alignment_p): Likewise.
16012 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16014 * function.c (free_after_compilation): Clear PROP_cfg in
16015 f->curr_properties.
16017 2015-07-07 Richard Biener <rguenther@suse.de>
16019 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
16021 (add_control_edge): Remove excessive vertical space in dumping.
16022 (process_ssa_edge_worklist): Simulate at most one statement and
16023 return whether we did. Do not simulate PHIs if they are in a
16024 BB not yet simulated.
16025 (ssa_propagate): Adjust to always drain the BB worklist whenever
16026 a BB is available there, likewise the VARYING edges list before
16027 the interesting edge list.
16029 2015-07-07 Christian Bruel <christian.bruel@st.com>
16032 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
16034 2015-07-07 Richard Biener <rguenther@suse.de>
16036 PR middle-end/66739
16037 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
16040 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16042 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
16043 modes for operands 0 and 3. Use SImode for operands 2 and 3.
16044 Copy operand 0 to a temporary if !ext_register_operand. Remove
16045 ancient extract_bit_field workaround.
16046 (insv<mode>_1): Rename from mov<mode>_insv_1.
16047 (*insvqi): Rename from *movqi_insv_2.
16048 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
16049 for renamed insvsi_1.
16050 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
16052 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
16054 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
16055 call to nvptx_reorg_subreg.
16057 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
16059 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
16060 * graphite-dependencies.c, graphite-interchange.c,
16061 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
16062 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
16065 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
16067 * match.pd: Remove element_mode inside HONOR_*.
16068 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
16069 (~X | X -> -1, ~X ^ X -> -1): Merge.
16070 * tree.c (build_each_one_cst): New function.
16071 * tree.h (build_each_one_cst): Likewise.
16073 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16075 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16078 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
16080 * config.gcc <mips*-*-*>: Add fused-madd.opt.
16081 * config/mips/mips.opt (mfused-madd): Remove.
16082 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
16083 * config/mips/mips.h (TARGET_MIPS8000): New.
16084 (ISA_HAS_FP_MADD4_MSUB4): Remove.
16085 (ISA_HAS_FP_MADDF_MSUBF): Remove.
16086 (ISA_HAS_FP_MADD3_MSUB3): Remove.
16087 (ISA_HAS_NMADD4_NMSUB4): Remove.
16088 (ISA_HAS_NMADD3_NMSUB3): Remove.
16089 (ISA_HAS_FUSED_MADD4): New.
16090 (ISA_HAS_UNFUSED_MADD4): New.
16091 (ISA_HAS_FUSED_MADDF): New.
16092 (ISA_HAS_FUSED_MADD3): New.
16093 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
16094 (*fma<mode>4_madd3) New.
16095 (*fma<mode>4_madd4) New.
16096 (*fma<mode>4_maddf) New.
16098 (*fms<mode>4_msub3) New.
16099 (*fms<mode>4_msub4) New.
16101 (*fnma<mode>4_nmadd3) New.
16102 (*fnma<mode>4_nmadd4) New.
16104 (*fnms<mode>4_nmsub3) New.
16105 (*fnms<mode>4_nmsub4) New.
16106 (*madd4<mode>) Modify to be unfused only.
16107 (*msub4<mode>) Modify to be unfused only.
16108 (*nmadd4<mode>) Modify to be unfused only.
16109 (*nmsub4<mode>) Modify to be unfused only.
16110 (*madd3<mode>) Remove.
16111 (*msub3<mode>) Remove.
16112 (*nmadd3<mode>) Remove.
16113 (*nmsub3<mode>) Remove.
16114 (*nmadd3<mode>_fastmath) Remove.
16115 (*nmsub3<mode>_fastmath) Remove.
16116 (*nmadd4<mode>_fastmath) Update condition.
16117 (*nmsub4<mode>_fastmath) Update condition.
16119 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16122 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
16123 alignment attribute, exploring one level down for records and arrays.
16125 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16127 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
16128 modes for operands 0 and 1. Use SImode for operands 2 and 3.
16129 Copy operand 1 to a temporary if !ext_register_operand. Remove
16130 ancient extract_bit_field workaround.
16131 (*extv<mode>): Rename from *mov<mode>_extv_1.
16132 (*extvqi): Rename from *movqi_extv_1.
16133 (extzv<mode>): Rename from extzv. Use SWI248 modes for
16134 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
16135 to a temporary if !ext_register_operand. Remove ancient
16136 extract_bit_field workaround.
16137 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
16138 (*extzvqi): Rename from *movqi_extzv_2.
16139 (*testqi_ext_3): Remove modes from const_int_operand predicated
16140 operands. Add "n" constraint.
16141 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
16142 operand. Add "J" constraint.
16143 (*btsq, *btrq, *btcq peephole2s): Remove mode from
16144 const_0_to_63 predicated operand.
16145 (regmode): New insn attribute.
16146 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
16147 to nonmemory_operand. Use regmode insn attribute.
16148 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
16149 (*jcc_bt<mode>_mask): Remove mode from operand 3.
16150 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
16151 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
16152 operands. Use "N" constraint instead of "n".
16154 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16156 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
16158 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16161 * config/i386/i386.c (iamcu_cost): New.
16162 (m_IAMCU): Likewise.
16163 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
16164 (processor_target_table): Add an entry for "iamcu".
16165 (processor_alias_table): Likewise.
16166 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
16167 (ix86_adjust_cost): Likewise.
16168 (ia32_multipass_dfa_lookahead): Likewise.
16169 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
16170 * config/i386/x86-tune.def: Updated for m_IAMCU.
16172 2015-07-06 Richard Biener <rguenther@suse.de>
16174 PR tree-optimization/66772
16175 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
16176 values are available in the PHI node BB when there are
16177 still unexecutable edges.
16179 2015-07-06 Richard Biener <rguenther@suse.de>
16181 PR tree-optimization/66767
16182 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16183 Make sure to build the alignment test on a SSA name without
16184 final alignment info valid only if the alignment test
16187 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
16190 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
16191 loop start when inserting LSETUP.
16193 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16196 * config/i386/i386.c (ix86_option_override_internal): Allow
16197 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
16199 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16201 * read-md.c (decimal_string): Rename to ...
16202 (md_decimal_string): ... this.
16203 (handle_enum): Reflect this.
16205 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16208 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
16210 2015-07-06 Richard Biener <rguenther@suse.de>
16212 PR middle-end/66759
16213 * match.pd: Add missing constraint of y to REAL_CST in
16214 REAL_CST - x CMP y to y - CST CMP x simplification.
16216 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
16218 PR tree-optimization/66757
16219 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
16221 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
16222 Sandra Loosemore <sandra@codesourcery.com>
16224 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
16225 Delete extern declaration.
16226 (gprel_constant_p): Add extern declaration.
16227 * config/nios2/constraints.md ("S"): Use gprel_constant_p
16228 instead of nios2_symbol_ref_in_small_data_p.
16229 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
16230 (nios2_symbol_ref_in_small_data_p): Make static.
16231 (gprel_constant_p): Make non-static.
16233 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16235 * doc/fragments.texi (Target Fragment): Convert debian.org
16237 * doc/install.texi (Configuration): Ditto.
16239 2015-07-05 Jakub Jelinek <jakub@redhat.com>
16241 PR tree-optimization/66718
16242 * tree-vect-stmts.c (vectorizable_call): Replace uses of
16243 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
16245 PR tree-optimization/66718
16246 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
16247 vectorizable_load, vectorizable_condition): Move vectype,
16248 nunits, ncopies computation after checking what kind of statement
16251 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16253 * target-insns.def (extv, extzv, insv): New targetm instruction
16255 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
16257 * recog.c (simplify_while_replacing): Likewise.
16259 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16261 * target-insns.def (doloop_begin, doloop_end): New targetm
16262 instruction patterns.
16263 * loop-init.c: Include target.h.
16264 (pass_loop2::gate): Use the new targetm patterns instead of
16265 HAVE_*/gen_* interface.
16266 (pass_rtl_doloop::gate): Likewise.
16267 (pass_rtl_doloop::execute): Remove preprocessor condition.
16268 * hw-doloop.c: Build unconditionally.
16269 * loop-doloop.c: Likewise.
16270 (doloop_optimize): Use the new targetm patterns instead of
16271 HAVE_*/gen_* interface.
16272 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
16273 * modulo-sched.c (doloop_register_get): Likewise.
16275 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16277 * target-insns.def (clear_cache): New targetm instruction pattern.
16278 * builtins.c (expand_builtin___clear_cache): Use it instead of
16279 HAVE_*/gen_* interface.
16281 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16283 * target-insns.def (allocate_stack, check_stack, probe_stack)
16284 (probe_stack_address, split_stack_prologue, split_stack_space_check):
16285 New targetm instruction patterns.
16286 * explow.c (allocate_dynamic_stack_space): Use them instead of
16287 HAVE_*/gen_* interface.
16288 (emit_stack_probe): Likewise.
16289 (probe_stack_range): Likewise.
16290 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16292 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16294 * target-insns.def (stack_protect_set, stack_protect_test): New
16295 targetm instruction patterns.
16296 * cfgexpand.c (stack_protect_prologue): Use them instead of
16297 HAVE_*/gen_* interface.
16298 * function.c (stack_protect_epilogue): Likewise.
16300 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16302 * expr.h (gen_move_insn_uncast): Delete.
16303 * expr.c (gen_move_insn_uncast): Delete.
16305 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16307 * target-insns.def (restore_stack_block, restore_stack_function)
16308 (restore_stack_nonlocal, save_stack_block, save_stack_function)
16309 (save_stack_nonlocal): New targetm instruction patterns.
16310 * builtins.c (expand_builtin_apply): Use them instead of
16311 HAVE_*/gen_* interface.
16312 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
16314 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16316 * target-insns.def (trap): New targetm instruction pattern.
16317 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
16319 * explow.c (allocate_dynamic_stack_space): Likewise.
16320 * ifcvt.c (find_if_header): Likewise.
16322 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16324 * target-insns.def (prefetch): New targetm instruction pattern.
16325 * tree-ssa-loop-prefetch.c: Include targeth.
16326 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
16327 of HAVE_*/gen_* interface.
16328 * builtins.c (expand_builtin_prefetch): Likewise.
16329 * toplev.c (process_options): Likewise.
16331 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16333 * target-insns.def (untyped_call, untyped_return): New targetm
16334 instruction patterns.
16335 * builtins.c (expand_builtin_apply): Use them instead of
16336 HAVE_*/gen_* interface.
16337 (result_vector): Define unconditionally.
16339 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16341 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
16342 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
16343 (nonlocal_goto_receiver): New targetm instruction patterns.
16344 * builtins.c (expand_builtin_setjmp_setup): Use them instead
16345 of HAVE_*/gen_* interface.
16346 (expand_builtin_setjmp_receiver): Likewise.
16347 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16348 * except.c (expand_dw2_landing_pad_for_region): Likewise.
16350 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16352 * target.def: Add code_for_* hooks.
16353 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
16354 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16355 * target-insns.def (casesi, tablejump): New targetm instruction
16357 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16358 (do_tablejump): Likewise.
16359 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16360 (expand_sjlj_dispatch_table): Likewise.
16361 * targhooks.c (default_case_values_threshold): Likewise.
16363 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
16365 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16366 Use rtx_insn * instead of rtx.
16367 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16368 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16369 (nios2_call_tls_get_addr): Likewise.
16370 (nios2_emit_expensive_div): Likewise.
16371 (nios2_emit_move_sequence): Change return type to bool.
16372 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16373 Change return type to bool.
16375 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16378 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16380 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
16383 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16384 of register_operand. Remove constraint.
16386 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
16388 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16389 the first argument.
16391 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
16393 * attribs.c (decl_attributes): Guard inform with the return value
16394 of the preceding warning.
16396 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16398 * doc/invoke.texi (moverride): Move to correct section.
16400 2015-07-03 Richard Biener <rguenther@suse.de>
16402 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16404 (dt_operand::gen_gimple_expr): After valueizing operands
16405 re-canonicalize operand order for commutative tree codes.
16407 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
16410 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16412 (__crc32w): Likewise.
16413 (__crc32d): Likewise.
16414 (__rdpmc): Likewise.
16415 (__rdtscp): Likewise.
16416 (_rdpmc): Likewise.
16417 (_rdtscp): Likewise.
16418 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16421 2015-07-03 Richard Biener <rguenther@suse.de>
16423 * fold-const.c (fold_mathfn_compare): Remove.
16424 (fold_inf_compare): Likewise.
16425 (fold_comparison): Move floating point comparison simplifications...
16426 * match.pd: ... to patterns here. Introduce simple_comparisons
16427 operator list and use it for patterns formerly in fold_comparison.
16429 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16431 PR tree-optimization/66119
16432 * toplev.c (process_options): Don't set up default values for
16433 the sra_max_scalarization_size_{speed,size} parameters.
16434 * tree-sra (analyze_all_variable_accesses): If no values
16435 have been set for the sra_max_scalarization_size_{speed,size}
16436 parameters, call get_move_ratio to get target defaults.
16438 2015-07-03 Richard Biener <rguenther@suse.de>
16440 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16441 * match.pd: ... here.
16443 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
16446 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16447 is not actually the default on FreeBSD.
16449 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16451 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16453 (CMPGE_8HI): Likewise.
16454 (CMPGE_4SI): Likewise.
16455 (CMPGE_2DI): Likewise.
16456 (CMPGE_U16QI): Likewise.
16457 (CMPGE_U8HI): Likewise.
16458 (CMPGE_U4SI): Likewise.
16459 (CMPGE_U2DI): Likewise.
16460 (CMPLE_16QI): Likewise.
16461 (CMPLE_8HI): Likewise.
16462 (CMPLE_4SI): Likewise.
16463 (CMPLE_2DI): Likewise.
16464 (CMPLE_U16QI): Likewise.
16465 (CMPLE_U8HI): Likewise.
16466 (CMPLE_U4SI): Likewise.
16467 (CMPLE_U2DI): Likewise.
16468 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16469 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16470 ALTIVEC_BUILTIN_VEC_CMPLE.
16471 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16472 floating-point vector modes.
16473 (vector_nlt<mode>): New define_expand.
16474 (vector_nltu<mode>): Likewise.
16475 (vector_ngt<mode>): Likewise.
16476 (vector_ngtu<mode>): Likewise.
16478 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16480 PR rtl-optimization/66706
16481 * combine.c (make_compound_operation): If an AND of SUBREG of
16482 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16484 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
16486 * tree-pass.h (make_pass_ch_vect): New.
16487 * passes.def: Add pass_ch_vect just before pass_if_conversion.
16489 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16490 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16491 make_pass_ch_vect): New.
16492 (pass_ch): Extend ch_base.
16494 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16495 (ch_base::copy_headers): ...here.
16497 2015-07-02 Richard Biener <rguenther@suse.de>
16499 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16500 * fold-const.c (get_pointer_modulus_and_residue): Remove.
16501 (fold_binary_loc): Implement (T)ptr & CST in terms of
16502 get_pointer_alignment_1.
16503 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16504 Make sure to build the alignment test on a SSA name without
16505 final alignment info valid only after the prologue.
16507 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
16509 * config/cris/cris.md ("epilogue"): Remove condition.
16510 ("prologue"): Ditto.
16512 2015-07-02 Richard Biener <rguenther@suse.de>
16514 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16515 parameter to record a condition that is false.
16516 (record_conditions): When recording an extra NE_EXPR that is
16517 true also record a EQ_EXPR that is false.
16519 2015-07-02 Bin Cheng <bin.cheng@arm.com>
16521 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16522 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16523 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
16524 (set_iv, find_interesting_uses_address, add_candidate_1): New
16525 argument to alloc_iv.
16526 (find_interesting_uses_op, find_interesting_uses_cond): Don't
16527 duplicate struct iv.
16528 (free_loop_data): Don't free struct iv explicitly.
16529 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16531 2015-07-01 DJ Delorie <dj@redhat.com>
16533 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16535 (SUPPORTS_DISCRIMINATOR): Define.
16537 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16540 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16541 there are no CALLs in the same pattern.
16543 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16545 PR rtl-optimization/61047
16546 * rtlanal.c (get_initial_register_offset): New function.
16547 (rtx_addr_can_trap_p_1): Check offsets of stack references.
16549 2015-07-01 Richard Biener <rguenther@suse.de>
16551 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16552 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16553 ~X CMP C -> X CMP' ~C to ...
16554 * match.pd: ... patterns here.
16556 2015-07-01 Nick Clifton <nickc@redhat.com>
16558 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16559 a 16-bit value into a 20-bit memory slot.
16561 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16563 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16564 "aarch64_tiny", "aarch64_small", "aarch64_large",
16565 "aarch64_little_endian", "aarch64_big_endian".
16567 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16569 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16570 Document "aarch64_small_fpic".
16572 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16574 * configure.ac: Add check for aarch64 assembler -fpic relocation
16576 * configure: Regenerate.
16577 * config.in: Regenerate.
16578 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16579 to -fPIC if not support of -fpic relocation modifier in assembler.
16581 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16584 * rtl.c (classify_insn): Handle returns in PARALLELs.
16586 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
16588 PR middle-end/66633
16589 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16590 to true if the function is nested and if not optimizing.
16591 (convert_local_omp_clauses): Initialize need_frame to true if the
16592 function contains nested functions and if not optimizing.
16594 2015-07-01 Richard Biener <rguenther@suse.de>
16596 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16597 (X & Y) ^ Y -> ~X & Y transforms to ...
16598 * match.pd: ... here.
16600 2015-07-01 Richard Biener <rguenther@suse.de>
16602 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16603 of converts to avoid uninteresting noise from the conversion
16604 simplifying patterns.
16606 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
16608 * config/c6x/c6x.c (try_rename_operands): Do not depend on
16609 gcc_assert evaluating its argument for side-effect.
16611 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
16614 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
16617 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16619 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
16620 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
16621 (hash_scc): Add this_ref_p and ref_p parameters and pass them
16622 to the inner DFS walk.
16624 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16626 * target-insns.def (jump): New targetm instruction pattern.
16627 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
16628 instead of gen_jump.
16629 (fix_up_crossing_landing_pad): Likewise.
16630 (add_labels_and_missing_jumps): Likewise.
16631 (fix_crossing_conditional_branches): Likewise.
16632 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16633 (force_nonfallthru_and_redirect): Likewise.
16634 * cse.c (cse_insn): Likewise.
16635 * expmed.c (expand_divmod): Likewise.
16636 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
16637 * haifa-sched.c (init_before_recovery): Likewise.
16638 (sched_create_recovery_edges): Likewise.
16639 * ifcvt.c (find_cond_trap): Likewise.
16640 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
16641 (expand_float, expand_fix): Likewise.
16642 * stmt.c (emit_jump): Likewise.
16644 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16646 * defaults.h (HAVE_load_multiple, gen_load_multiple)
16647 (HAVE_store_multiple, gen_store_multiple): Delete.
16648 * target-insns.def (load_multiple, store_multiple): New targetm
16649 instruction patterns.
16650 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
16651 of HAVE_*/gen_* interface.
16653 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16655 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
16656 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
16657 (gen_mem_signal_fence): Delete.
16658 * target-insns.def (mem_signal_fence, mem_thread_fence)
16659 (memory_barrier): New targetm instruction patterns.
16660 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
16662 (expand_mem_signal_fence): Likewise.
16664 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16666 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
16667 * target-insns.def (epilogue, prologue, sibcall_prologue): New
16668 targetm instruction patterns.
16669 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
16671 * calls.c (expand_call): Likewise.
16672 * cfgrtl.c (cfg_layout_finalize): Likewise.
16673 * df-scan.c (df_get_entry_block_def_set): Likewise.
16674 (df_get_exit_block_use_set): Likewise.
16675 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
16676 * final.c (final_start_function): Likewise.
16677 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16678 (reposition_prologue_and_epilogue_notes): Likewise.
16679 * reorg.c (find_end_label): Likewise.
16680 * toplev.c (process_options): Likewise.
16682 2015-06-30 David Malcolm <dmalcolm@redhat.com>
16684 * typed-splay-tree.h: New file.
16686 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
16689 * lra-int.h (lra_substitute_pseudo): Add a parameter.
16690 (lra_substitute_pseudo_within_insn): Ditto.
16691 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
16693 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
16694 to lra_substitute_pseudo.
16695 * lra-lives.c (process_bb_lives): Add an argument to
16696 lra_substitute_pseudo_within_insn call.
16697 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
16698 argument to lra_substitute_pseudo and
16699 lra_substitute_pseudo_within_insn calls.
16700 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
16702 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16704 * configure: Regenerated.
16706 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16708 * config.gcc: Support i[34567]86-*-elfiamcu target.
16709 * config/i386/iamcu.h: New.
16710 * config/i386/i386.opt: Add -miamcu.
16711 * doc/invoke.texi: Document -miamcu.
16712 * common/config/i386/i386-common.c (ix86_handle_option): Turn
16713 off x87/MMX/SSE/AVX codegen for -miamcu.
16714 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16715 __iamcu/__iamcu__ for -miamcu.
16716 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
16717 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
16718 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
16719 * config/i386/i386.c (ix86_option_override_internal): Ignore and
16720 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
16721 MCU by default. Default long double to 64-bit for Intel MCU.
16722 Turn on -freg-struct-return for Intel MCU. Issue an error when
16723 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
16725 (function_arg_advance_32): Pass value whose size is no larger
16726 than 8 bytes in registers for Intel MCU.
16727 (function_arg_32): Likewise.
16728 (ix86_return_in_memory): Return value whose size is no larger
16729 than 8 bytes in registers for Intel MCU.
16730 (iamcu_alignment): New function.
16731 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
16733 (ix86_local_alignment): Don't increase alignment for Intel MCU.
16734 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
16737 2015-06-30 Marek Polacek <polacek@redhat.com>
16739 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
16740 both operands of the resulting expression.
16742 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
16743 the final expression with the operand's type and then convert
16744 it to the type of the expression.
16746 2015-06-30 Richard Biener <rguenther@suse.de>
16748 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
16749 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
16750 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
16751 * match.pd: ... to patterns here.
16753 2015-06-30 Richard Biener <rguenther@suse.de>
16755 PR tree-optimization/66704
16756 * tree-vect-data-refs.c (vect_setup_realignment): Use
16757 make_ssa_name for non-SSA name source.
16759 2015-06-30 Jakub Jelinek <jakub@redhat.com>
16761 PR middle-end/66702
16762 * omp-low.c (simd_clone_adjust): Handle addressable linear
16763 or uniform parameters or non-gimple type uniform parameters.
16765 2015-06-30 Richard Biener <rguenther@suse.de>
16767 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
16768 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
16769 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
16770 * match.pd: ... here.
16771 Add a few cases of A - B -> A + (-B) when B "easily" negates.
16772 Move (x & y) | x -> x and friends before
16773 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
16775 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16777 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
16778 -mfix-ut699 is not specified.
16779 (leon3_load): Rename into...
16780 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
16783 2015-06-30 Marek Polacek <polacek@redhat.com>
16785 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
16786 * match.pd: ... here.
16788 2015-06-30 Richard Biener <rguenther@suse.de>
16790 * target-insns.def (canonicalize_funcptr_for_compare): Add.
16791 * fold-const.c (build_range_check): Replace uses of
16792 HAVE_canonicalize_funcptr_for_compare.
16793 (fold_widened_comparison): Likewise.
16794 (fold_sign_changed_comparison): Likewise.
16795 * dojump.c: Include "target.h".
16796 (do_compare_and_jump): Replace uses of
16797 HAVE_canonicalize_funcptr_for_compare and
16798 gen_canonicalize_funcptr_for_compare.
16799 * expr.c (do_store_flag): Likewise.
16801 2015-06-30 Tom de Vries <tom@codesourcery.com>
16803 PR tree-optimization/66652
16804 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
16805 max_loop_iterations to determine if nit + 1 overflows.
16807 2015-06-30 Richard Biener <rguenther@suse.de>
16809 * tree-vrp.c (register_edge_assert_for_2): Also register
16810 asserts for dominating conversion results.
16812 2015-06-30 Bin Cheng <bin.cheng@arm.com>
16814 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
16815 field in struct iv.
16817 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
16820 * configure.ac: Fix filds and fildq test for 64-bit.
16821 * configure: Regenerated.
16823 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
16825 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
16826 (nvptx_reorg): Here. Keep the non-subreg pieces.
16828 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
16830 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
16831 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16833 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
16835 * config/i386/i386.md (*jcc_1): Use %! in asm template.
16836 Set attribute "length_nobnd" instead of "length".
16839 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
16841 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
16843 * config/nios2/nios2.c (nios2_delegitimize_address): Make
16844 assert less restrictive.
16846 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
16849 * cgraphunit.c (cgraph_node::finalize_function): Do not call
16850 do_warn_unused_parameter.
16851 * function.c (do_warn_unused_parameter): Move from here.
16852 * function.h (do_warn_unused_parameter): Do not declare.
16854 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16857 * gcc.target/arm/armv-sync-comp-swap.c: New.
16858 * gcc.target/arm/armv-sync-op-acquire.c: New.
16859 * gcc.target/arm/armv-sync-op-full.c: New.
16860 * gcc.target/arm/armv-sync-op-release.c: New.
16862 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16865 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
16866 initial acquire barrier with final barrier.
16868 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16871 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
16872 initial acquire barrier with final barrier.
16874 2015-06-29 Richard Henderson <rth@redhat.com>
16876 * config/i386/constraints.md (Bf): New constraint.
16877 * config/i386/i386-c.c (ix86_target_macros): Define
16878 __GCC_ASM_FLAG_OUTPUTS__.
16879 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
16881 * doc/extend.texi (FlagOutputOperands): Document them.
16883 2015-06-29 Jiong Wang <jiong.wang@arm.com>
16885 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
16886 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
16888 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
16889 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
16890 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
16891 (aarch64_symbol_context): Ditto.
16892 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
16893 and use new pattern name.
16894 (aarch64_expand_mov_immediate): Ditto.
16895 (aarch64_print_operand): Ditto.
16896 (aarch64_classify_tls_symbol): Ditto.
16898 2015-06-29 Marek Polacek <polacek@redhat.com>
16899 Marc Glisse <marc.glisse@inria.fr>
16901 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
16902 * match.pd: ... pattern here.
16904 2015-06-29 Tom de Vries <tom@codesourcery.com>
16906 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
16907 function structure.
16909 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16911 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
16912 feature description, split out the native option, add a link to
16913 the feature documentation, rearrange and slightly rewrite text.
16914 (Aarch64 options, -mcpu): Likewise.
16915 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
16916 +rdma implies Adv. SIMD.
16918 2015-06-29 Marek Polacek <polacek@redhat.com>
16921 * function.c (stack_protect_epilogue): Remove a cast to int.
16922 * doc/invoke.texi: Update -Wswitch-bool description.
16924 2015-06-29 Richard Biener <rguenther@suse.de>
16926 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
16927 * fold-const.c (fold_binary_loc): Move &A - &B simplification
16928 via ptr_difference_const ...
16929 * match.pd: ... here.
16930 When matching (X ^ Y) == Y also match with swapped operands.
16932 2015-06-29 Richard Biener <rguenther@suse.de>
16934 * lto-streamer.h (LTO_major_version): Bump to 5.
16936 2015-06-29 Richard Biener <rguenther@suse.de>
16938 PR tree-optimization/66677
16939 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
16940 STMT_VINFO_VEC_STMT clobbering less strict.
16942 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16944 PR middle-end/64130
16945 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
16946 division, compute max and min when value ranges for dividend and
16947 divisor are available.
16949 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
16950 Sandra Loosemore <sandra@codesourcery.com>
16952 * regrename.h (regrename_do_replace): Change to return bool.
16953 * regrename.c (rename_chains): Check return value of
16954 regname_do_replace.
16955 (regrename_do_replace): Re-validate the modified insns and
16956 return bool status.
16957 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
16958 Update to match rename_chains changes.
16959 * config/c6x/c6x.c (try_rename_operands): Assert that
16960 regrename_do_replace returns true.
16962 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
16964 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
16965 operand 2 here. Use copy_addr_to_reg to copy non-index
16966 register operand 2 to a temporary.
16967 (<mode>_stx): Ditto for operand 1.
16968 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
16969 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
16970 (ix86_store_bounds): Ditto.
16972 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
16974 * print-tree.c (print_node) [TREE_VEC]: Print its length.
16976 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
16978 * gimple.c (gimple_call_set_fndecl): Remove.
16979 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
16980 build1_loc directly instead of build_fold_addr_expr_loc.
16982 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16984 * hash-map.h (hash_map::traverse): Use the definition of the
16985 Key typedef rather than the typedef itself.
16987 2015-06-26 Martin Jambor <mjambor@suse.cz>
16990 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
16991 NULL instead of calling dump_enabled_p.
16993 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16995 * config/aarch64/aarch64.opt: (override): New.
16996 * doc/invoke.texi (override): Document.
16997 * config/aarch64/aarch64.c (aarch64_flag_desc): New
16998 (aarch64_fusible_pairs): Likewise.
16999 (aarch64_tuning_flags): Likewise.
17000 (aarch64_tuning_override_function): Likewise.
17001 (aarch64_tuning_override_functions): Likewise.
17002 (aarch64_parse_one_option_token): Likewise.
17003 (aarch64_parse_boolean_options): Likewise.
17004 (aarch64_parse_fuse_string): Likewise.
17005 (aarch64_parse_tune_string): Likewise.
17006 (aarch64_parse_one_override_token): Likewise.
17007 (aarch64_parse_override_string): Likewise.
17008 (aarch64_override_options): Parse the -override string if it
17011 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17013 * config/aarch64/aarch64-protos.h (tune_params): Remove
17014 const from members.
17015 (aarch64_tune_params): Remove const, change to no longer be
17017 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
17018 change to no longer be a pointer, initialize to generic_tunings.
17019 (aarch64_min_divisions_for_recip_mul): Change dereference of
17020 aarch64_tune_params to member access.
17021 (aarch64_reassociation_width): Likewise.
17022 (aarch64_rtx_mult_cost): Likewise.
17023 (aarch64_address_cost): Likewise.
17024 (aarch64_branch_cost): Likewise.
17025 (aarch64_rtx_costs): Likewise.
17026 (aarch64_register_move_cost): Likewise.
17027 (aarch64_memory_move_cost): Likewise.
17028 (aarch64_sched_issue_rate): Likewise.
17029 (aarch64_builtin_vectorization_cost): Likewise.
17030 (aarch64_override_options): Take a copy of the selected tuning
17031 struct in to aarch64_tune_params, rather than just setting
17032 a pointer, change dereferences of aarch64_tune_params to member
17034 (aarch64_override_options_after_change): Change dereferences of
17035 aarch64_tune_params to member access.
17036 (aarch64_macro_fusion_p): Likewise.
17037 (aarch_macro_fusion_pair_p): Likewise.
17038 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
17040 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17042 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
17043 (aarch64_tune_flags): Likewise.
17044 (AARCH64_TUNE_FMA_STEERING): Likewise.
17045 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
17046 to AARCH64_FL_USE_FMA_STEERING_PASS.
17047 (cortex-a57.cortex-a53): Likewise.
17048 (cortex-a72): Use cortexa72_tunings.
17049 (cortex-a72.cortex-a53): Likewise.
17050 (exynos-m1): Likewise.
17051 * config/aarch64/aarch64-protos.h (tune_params): Add
17052 a field: extra_tuning_flags.
17053 * config/aarch64/aarch64-tuning-flags.def: New.
17054 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
17055 (aarch64_extra_tuning_flags): Likewise.
17056 (aarch64_tune_params): Declare here.
17057 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
17058 (cortexa53_tunings): Likewise.
17059 (cortexa57_tunings): Likewise.
17060 (thunderx_tunings): Likewise.
17061 (xgene1_tunings): Likewise.
17062 (cortexa72_tunings): New.
17063 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
17064 (gate): Check against aarch64_tune_params.
17065 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
17068 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17070 * config/aarch64/aarch64-fusion-pairs.def: New.
17071 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
17072 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
17073 aarch64_fusion_pairs.
17074 (AARCH64_FUSE_MOV_MOVK): Likewise.
17075 (AARCH64_FUSE_ADRP_ADD): Likewise.
17076 (AARCH64_FUSE_MOVK_MOVK): Likewise.
17077 (AARCH64_FUSE_ADRP_LDR): Likewise.
17078 (AARCH64_FUSE_CMP_BRANCH): Likewise.
17080 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17082 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
17083 SYMBOL_SMALL_GOT_28K.
17084 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
17085 relocation modifiers.
17086 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
17087 (ldr_got_small_28k_<mode>): New.
17088 (ldr_got_small_28k_sidi): New.
17089 * config/aarch64/iterators.md (got_modifier): New mode iterator.
17090 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
17091 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17092 SYMBOL_SMALL_GOT_28K.
17093 (aarch64_rtx_costs): Add costs for new instruction sequences.
17094 (initialize_aarch64_code_model): Initialize new model.
17095 (aarch64_classify_symbol): Recognize new model and new symbol classification.
17096 (aarch64_asm_preferred_eh_data_format): Support new model.
17097 (aarch64_load_symref_appropriately): Generate new instruction
17098 sequences for -fpic.
17099 (TARGET_USE_PSEUDO_PIC_REG): New definition.
17100 (aarch64_use_pseudo_pic_reg): New function.
17102 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17104 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17105 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
17106 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
17107 (aarch64_expand_mov_immediate): Ditto.
17108 (aarch64_print_operand): Ditto.
17109 (aarch64_classify_symbol): Ditto.
17111 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
17113 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
17115 2015-06-26 Bin Cheng <bin.cheng@arm.com>
17118 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
17119 assertion failed. Remove assertion itself.
17121 2015-06-26 Richard Biener <rguenther@suse.de>
17123 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
17124 and -A CMP CST -> A CMP -CST which is redundant with a pattern
17126 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
17127 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
17128 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
17129 * match.pd: ... patterns here.
17131 2015-06-26 Marek Polacek <polacek@redhat.com>
17133 * match.pd ((x | y) & ~(x & y) -> x ^ y,
17134 (x | y) & (~x ^ y) -> x & y): New patterns.
17136 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17138 * rtl.h (emit): Add an optional boolean parameter to control
17139 whether barriers are emitted.
17140 * emit-rtl.c (emit): Likewise.
17141 * gensupport.c (get_emit_function): Return null rather than "emit".
17142 * genemit.c (gen_emit_seq): Handle the null return value.
17143 Don't emit barriers after the final instruction in the sequence.
17144 * gentarget-def.c (main): Don't emit barriers after the instruction.
17146 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17148 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
17149 TARGET_UNIFIED_ASM.
17151 2015-06-26 Richard Biener <rguenther@suse.de>
17153 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
17155 2015-06-26 Richard Biener <rguenther@suse.de>
17157 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
17158 irrespective on whether the inner operation has a single use
17159 of both off are constant.
17161 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
17162 Segher Boessenkool <segher@kernel.crashing.org>
17165 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
17166 before doing PUT_MODE or PUT_CODE on operands to avoid
17167 in-place RTX modification.
17169 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17171 * gentarget-def.c (def_target_insn): Cast return of strtol to
17174 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17176 * gimple.h (gimple_call_set_fn): Move inline function.
17177 * gimple.c (gimple_call_set_fn): Relocate here.
17179 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
17183 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
17184 the replacement insn will work.
17186 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17188 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
17191 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17193 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
17194 * cgraph.h: Include ipa-ref.h and plugin-api.h.
17195 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
17196 (symtab_node::address_can_be_compared_p): Move function.
17197 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
17199 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
17200 * auto-profile.c: Likewise.
17201 * bb-reorder.c: Likewise.
17202 * builtins.c: Likewise.
17203 * calls.c: Likewise.
17204 * cfgexpand.c: Likewise.
17205 * cgraphbuild.c: Likewise.
17206 * cgraphclones.c: Likewise.
17207 * cgraphunit.c: Likewise.
17208 * combine.c: Likewise.
17209 * coverage.c: Likewise.
17210 * data-streamer-in.c: Likewise.
17211 * data-streamer-out.c: Likewise.
17212 * data-streamer.c: Likewise.
17213 * dbxout.c: Likewise.
17214 * dwarf2out.c: Likewise.
17215 * except.c: Likewise.
17216 * expr.c: Likewise.
17217 * final.c: Likewise.
17218 * fold-const.c: Likewise.
17219 * ggc-page.c: Likewise.
17220 * gimple-fold.c: Likewise.
17221 * gimple-iterator.c: Likewise.
17222 * gimple-pretty-print.c: Likewise.
17223 * gimple-streamer-in.c: Likewise.
17224 * gimple-streamer-out.c: Likewise.
17225 * gimple.c: Likewise.
17226 * gimplify.c: Likewise.
17227 * ipa-chkp.c: Likewise.
17228 * ipa-comdats.c: Likewise.
17229 * ipa-cp.c: Likewise.
17230 * ipa-devirt.c: Likewise.
17231 * ipa-icf-gimple.c: Likewise.
17232 * ipa-icf.c: Likewise.
17233 * ipa-inline-analysis.c: Likewise.
17234 * ipa-inline-transform.c: Likewise.
17235 * ipa-inline.c: Likewise.
17236 * ipa-polymorphic-call.c: Likewise.
17237 * ipa-profile.c: Likewise.
17238 * ipa-prop.c: Likewise.
17239 * ipa-pure-const.c: Likewise.
17240 * ipa-ref.c: Likewise.
17241 * ipa-reference.c: Likewise.
17242 * ipa-split.c: Likewise.
17243 * ipa-utils.c: Likewise.
17244 * ipa-visibility.c: Likewise.
17246 * langhooks.c: Likewise.
17247 * lto-cgraph.c: Likewise.
17248 * lto-compress.c: Likewise.
17249 * lto-opts.c: Likewise.
17250 * lto-section-in.c: Likewise.
17251 * lto-section-out.c: Likewise.
17252 * lto-streamer-in.c: Likewise.
17253 * lto-streamer-out.c: Likewise.
17254 * lto-streamer.c: Likewise.
17255 * omp-low.c: Likewise.
17256 * opts-global.c: Likewise.
17257 * passes.c: Likewise.
17258 * predict.c: Likewise.
17259 * print-tree.c: Likewise.
17260 * profile.c: Likewise.
17262 * sanopt.c: Likewise.
17263 * stor-layout.c: Likewise.
17264 * symtab.c: Likewise.
17265 * toplev.c: Likewise.
17266 * trans-mem.c: Likewise.
17267 * tree-cfg.c: Likewise.
17268 * tree-chkp.c: Likewise.
17269 * tree-eh.c: Likewise.
17270 * tree-emutls.c: Likewise.
17271 * tree-inline.c: Likewise.
17272 * tree-nested.c: Likewise.
17273 * tree-parloops.c: Likewise.
17274 * tree-pretty-print.c: Likewise.
17275 * tree-profile.c: Likewise.
17276 * tree-sra.c: Likewise.
17277 * tree-ssa-alias.c: Likewise.
17278 * tree-ssa-live.c: Likewise.
17279 * tree-ssa-loop-ivcanon.c: Likewise.
17280 * tree-ssa-loop-ivopts.c: Likewise.
17281 * tree-ssa-pre.c: Likewise.
17282 * tree-ssa-sccvn.c: Likewise.
17283 * tree-ssa-strlen.c: Likewise.
17284 * tree-ssa-structalias.c: Likewise.
17285 * tree-streamer-in.c: Likewise.
17286 * tree-streamer-out.c: Likewise.
17287 * tree-streamer.c: Likewise.
17288 * tree-switch-conversion.c: Likewise.
17289 * tree-tailcall.c: Likewise.
17290 * tree-vect-data-refs.c: Likewise.
17291 * tree-vect-stmts.c: Likewise.
17292 * tree-vectorizer.c: Likewise.
17293 * tree.c: Likewise.
17294 * tsan.c: Likewise.
17295 * ubsan.c: Likewise.
17296 * value-prof.c: Likewise.
17297 * varasm.c: Likewise.
17298 * varpool.c: Likewise.
17299 * config/arm/arm.c: Likewise.
17300 * config/bfin/bfin.c: Likewise.
17301 * config/c6x/c6x.c: Likewise.
17302 * config/cris/cris.c: Likewise.
17303 * config/darwin-c.c: Likewise.
17304 * config/darwin.c: Likewise.
17305 * config/i386/i386.c: Likewise.
17306 * config/i386/winnt.c: Likewise.
17307 * config/microblaze/microblaze.c: Likewise.
17308 * config/mips/mips.c: Likewise.
17309 * config/rs6000/rs6000.c: Likewise.
17310 * config/rx/rx.c: Likewise.
17311 * config/s390/s390.c: Likewise.
17312 * config/tilegx/mul-tables.c: Likewise.
17314 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17316 * config/aarch64/aarch64.c, config/alpha/alpha.c,
17317 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
17318 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
17319 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
17320 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17321 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17322 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17323 config/microblaze/microblaze.c, config/mips/mips.c,
17324 config/mmix/mmix.c, config/mn10300/mn10300.c,
17325 config/moxie/moxie.c, config/msp430/msp430.c,
17326 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17327 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17328 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17329 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17330 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17331 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17332 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
17333 target-def.h include.
17334 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
17336 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17338 * Makefile.in (TARGET_DEF): Add target-insns.def.
17339 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
17340 (build/gentarget-def.o): New rule.
17341 (genprogrtl): Add target-def.
17342 * target-insns.def, gentarget-def.c: New files.
17343 * target.def: Add targetm.have_* and targetm.gen_* hooks,
17344 based on the contents of target-insns.def.
17345 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
17346 (HAVE_return, gen_return): Delete.
17347 * target-def.h: Include insn-target-def.h.
17348 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
17349 instead of direct calls. Rely on them to do the appropriate assertions.
17350 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
17351 (convert_jumps_to_returns): Use targetm interface instead of
17353 (thread_prologue_and_epilogue_insns): Likewise.
17354 * reorg.c (find_end_label, dbr_schedule): Likewise.
17355 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17356 * shrink-wrap.c (convert_to_simple_return): Likewise.
17357 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17359 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17361 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17362 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17363 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17364 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17365 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17366 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17367 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17368 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17369 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17370 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17371 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17372 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17373 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17374 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17375 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17376 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17379 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17381 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17382 (unbounded_int_hashmap_traits::key_type): Likewise.
17383 * hash-map.h (hash_map): Get the key type from the traits.
17384 * hash-traits.h (default_hash_traits): By default, inherit from the
17385 template parameter.
17386 * alias.c (alias_set_traits): Delete.
17387 (alias_set_entry_d::children): Use alias_set_hash as the first
17388 template parameter.
17389 (record_alias_subset): Update accordingly.
17390 * except.c (tree_hash_traits): Delete.
17391 (type_to_runtime_map): Use tree_hash as the first template parameter.
17392 (init_eh): Update accordingly.
17393 * genmatch.c (capture_id_map_hasher): Delete.
17394 (cid_map_t): Use nofree_string_hash as first template parameter.
17395 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17396 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17397 Use symbol_compare_hash as the first template parameter in
17398 subdivide_hash_map.
17399 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17400 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17401 template parameter.
17402 * passes.c (pass_registry_hasher): Delete.
17403 (name_to_pass_map): Use nofree_string_hash as the first template
17405 (register_pass_name): Update accordingly.
17406 * sanopt.c (sanopt_tree_map_traits): Delete.
17407 (sanopt_tree_triplet_map_traits): Delete.
17408 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17409 template parameter.
17410 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17411 the first template parameter.
17412 * sese.c (rename_map_hasher): Delete.
17413 (rename_map_type): Use tree_ssa_name_hash as the first template
17415 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17416 (function_summary::m_map): Use map_hash as the first template
17418 (function_summary::release): Update accordingly.
17419 * tree-if-conv.c (phi_args_hash_traits): Delete.
17420 (predicate_scalar_phi): Use tree_operand_hash as the first template
17421 parameter to phi_arg_map.
17422 * tree-inline.h (dependence_hasher): Delete.
17423 (copy_body_data::dependence_map): Use dependence_hash as the first
17424 template parameter.
17425 * tree-inline.c (remap_dependence_clique): Update accordingly.
17426 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17427 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17429 (addr_stridxptr): Update accordingly.
17430 * value-prof.c (profile_id_traits): Delete.
17431 (cgraph_node_map): Use profile_id_hash as the first template
17433 (init_node_map): Update accordingly.
17434 * config/alpha/alpha.c (string_traits): Delete.
17435 (machine_function::links): Use nofree_string_hash as the first
17436 template parameter.
17437 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17438 * config/m32c/m32c.c (pragma_traits): Delete.
17439 (pragma_htab): Use nofree_string_hash as the first template parameter.
17440 (m32c_note_pragma_address): Update accordingly.
17441 * config/mep/mep.c (pragma_traits): Delete.
17442 (pragma_htab): Use nofree_string_hash as the first template parameter.
17443 (mep_note_pragma_flag): Update accordingly.
17444 * config/mips/mips.c (mips16_flip_traits): Delete.
17445 (mflip_mips16_htab): Use nofree_string_hash as the first template
17447 (mflip_mips16_use_mips16_p): Update accordingly.
17448 (local_alias_traits): Delete.
17449 (mips16_local_aliases): Use nofree_string_hash as the first template
17451 (mips16_local_alias): Update accordingly.
17453 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17455 * hash-map-traits.h (default_hashmap_traits): Delete.
17457 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17459 * hash-map-traits.h (unbounded_hashmap_traits): New class.
17460 (unbounded_int_hashmap_traits): Likewise.
17461 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17463 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17465 * ipa-icf.h (symbol_compare_hash): New class.
17466 (symbol_compare_hashmap_traits): Use it.
17467 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17468 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17469 (mem_alloc_description::reverse_mem_map_t): Remove redundant
17470 default_hashmap_traits.
17471 * sanopt.c (sanopt_tree_triplet_hash): New class.
17472 (sanopt_tree_triplet_map_traits): Use it.
17474 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17476 * gengtype-parse.c (require_template_declaration): Allow '+' in
17477 template parameters. Consolidate cases.
17478 * hash-traits.h (int_hash): New class.
17479 * alias.c (alias_set_hash): New structure.
17480 (alias_set_traits): Use it.
17481 * symbol-summary.h (function_summary::map_hash): New class.
17482 (function_summary::summary_hashmap_traits): Use it.
17483 * tree-inline.h (dependence_hash): New class.
17484 (dependence_hasher): Use it.
17485 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17486 * value-prof.c (profile_id_hash): New class.
17487 (profile_id_traits): Use it.
17489 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17491 * config/mips/mips.c (mips16_flip_traits): Use it.
17492 (local_alias_traits, mips16_local_aliases): Convert from a map of
17493 rtxes to a map of symbol names.
17494 (mips16_local_alias): Update accordingly.
17496 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17498 * hash-traits.h (string_hash, nofree_string_hash): New classes.
17499 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17500 * passes.c (pass_registry_hasher): Likewise.
17501 * config/alpha/alpha.c (string_traits): Likewise.
17502 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17503 * config/m32c/m32c.c (pragma_traits): Likewise.
17504 * config/mep/mep.c (pragma_traits): Likewise.
17506 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17508 * tree-hash-traits.h (tree_hash): New class.
17509 * except.c: Include tree-hash-traits.h.
17510 (tree_hash_traits): Use tree_hash.
17512 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17514 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17515 * sese.c: Include tree-hash-traits.h.
17516 (rename_map_hasher): Use tree_ssa_name_hasher.
17518 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17520 * tree-hash-traits.h (tree_decl_hash): New class.
17521 * tree-ssa-strlen.c: Include tree-hash-traits.h.
17522 (stridxlist_hash_traits): Use tree_decl_hash.
17524 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17526 * tree-hash-traits.h: New file.
17527 (tree_operand_hash): New class.
17528 * sanopt.c: Include tree-hash-traits.h.
17529 (sanopt_tree_map_traits): Use tree_operand_hash.
17530 * tree-if-conv.c: Include tree-hash-traits.h.
17531 (phi_args_hash_traits): Use tree_operand_hash.
17532 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17533 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17535 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17537 * hash-map-traits.h: Include hash-traits.h.
17538 (simple_hashmap_traits): New class.
17539 * mem-stats.h (hash_map): Change the default traits to
17540 simple_hashmap_traits<default_hash_traits<Key> >.
17542 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17544 * hash-table.h: Update comments.
17546 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17548 * hash-traits.h (default_hash_traits): New structure.
17549 * hash-set.h (default_hashset_traits): Delete.
17550 (hash_set): Use default_hash_traits<Key> instead of
17551 default_hashset_traits. Delete hash_entry type and use Key directly.
17552 * ipa-devirt.c (pair_traits): Delete.
17553 (default_hash_traits <type_pair>): Override.
17554 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17555 (odr_types_equivalent_p, add_type_duplicate): Likewise.
17557 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17559 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17561 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17563 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17564 (has_is_empty, is_empty_helper): Delete.
17565 (has_mark_deleted, mark_deleted_helper): Delete.
17566 (has_mark_empty, mark_empty_helper): Delete.
17567 (hash_table::is_deleted): Call the Descriptor unconditionally.
17568 (hash_table::is_empty): Likewise.
17569 (hash_table::mark_deleted): Likewise.
17570 (hash_table::mark_empty): Likewise.
17572 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17574 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
17575 redundant typedefs and members.
17576 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
17577 redundant typedefs.
17578 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17579 * ipa-devirt.c (odr_name_hasher): Likewise.
17580 (polymorphic_call_target_hasher): Likewise.
17581 * ira-costs.c (cost_classes_hasher): Likewise.
17582 * statistics.c (stats_counter_hasher): Likewise.
17583 * trans-mem.c (log_entry_hasher): Likewise.
17584 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17585 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17586 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17587 * var-tracking.c (variable_hasher): Likewise.
17588 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17589 Remove redundant typedefs and members.
17591 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17593 * hash-traits.h (ggc_cache_hasher): Rename to...
17594 (ggc_cache_remove): ...this and remove typedefs.
17595 (ggc_cache_ptr_hash): New class.
17596 * hash-table.h: Update commentary.
17597 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17598 rather than ggc_cache_hasher.
17599 (const_wide_int_hasher, reg_attr_hasher): Likewise.
17600 (const_double_hasher, const_fixed_hasher): Likewise.
17601 * function.c (insn_cache_hasher): Likewise.
17602 * trans-mem.c (tm_wrapper_hasher): Likewise.
17603 * tree.h (tree_decl_map_cache_hasher): Likewise.
17604 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
17605 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
17606 * ubsan.c (tree_type_map_cache_hasher): Likewise.
17607 * varasm.c (tm_clone_hasher): Likewise.
17608 * config/i386/i386.c (dllimport_hasher): Likewise.
17609 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
17610 (tree_hasher): Likewise.
17612 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17614 * hash-traits.h (ggc_hasher): Rename to...
17615 (ggc_remover): ...this and remove typedefs.
17616 (ggc_cache_hasher): Update accordingly. Add typedefs.
17617 (ggc_ptr_hash): New class.
17618 * hash-table.h: Update comment.
17619 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
17621 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
17622 (tree_descriptor_hasher): Likewise.
17623 * cgraph.c (function_version_hasher): Likewise.
17624 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
17625 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
17626 (dw_loc_list_hasher, addr_hasher): Likewise.
17627 * function.h (used_type_hasher): Likewise.
17628 * function.c (temp_address_hasher): Likewise.
17629 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
17630 * libfuncs.h (libfunc_hasher): Likewise.
17631 * lto-streamer.h (decl_state_hasher): Likewise.
17632 * optabs.c (libfunc_decl_hasher): Likewise.
17633 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
17634 * varasm.c (section_hasher, object_block_hasher): Likewise.
17635 (const_rtx_desc_hasher): Likewise.
17636 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
17637 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
17639 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17641 * hash-traits.h (free_ptr_hash): New class.
17642 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
17643 rather than typed_free_remove. Remove redudant typedefs.
17644 (external_ref_hasher): Likewise.
17645 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
17646 (ehspec_hasher): Likewise.
17647 * ggc-common.c (saving_hasher): Likewise.
17648 * gimplify.c (gimplify_hasher): Likewise.
17649 * haifa-sched.c (delay_i2_hasher): Likewise.
17650 * loop-invariant.c (invariant_expr_hasher): Likewise.
17651 * loop-iv.c (biv_entry_hasher): Likewise.
17652 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
17653 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
17654 * tree-cfg.c (locus_discrim_hasher): Likewise.
17655 * tree-eh.c (finally_tree_hasher): Likewise.
17656 * tree-into-ssa.c (var_info_hasher): Likewise.
17657 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
17658 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
17659 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
17660 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
17661 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
17662 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
17663 (shared_bitmap_hasher): Likewise.
17664 * tree-ssa-threadupdate.c (redirection_data): Likewise.
17665 * tree-vectorizer.h (peel_info_hasher): Likewise.
17666 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
17667 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
17669 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17671 * hash-table.h: Update comments.
17672 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
17673 (nofree_ptr_hash): New class.
17674 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
17675 than typed_noop_remove. Remove redudant typedefs.
17676 * attribs.c (attribute_hasher): Likewise.
17677 * cfg.c (bb_copy_hasher): Likewise.
17678 * cselib.c (cselib_hasher): Likewise.
17679 * dse.c (invariant_group_base_hasher): Likewise.
17680 * dwarf2cfi.c (trace_info_hasher): Likewise.
17681 * dwarf2out.c (macinfo_entry_hasher): Likewise.
17682 (comdat_type_hasher, loc_list_hasher): Likewise.
17683 * gcse.c (pre_ldst_expr_hasher): Likewise.
17684 * genmatch.c (id_base): Likewise.
17685 * genrecog.c (test_pattern_hasher): Likewise.
17686 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
17687 * haifa-sched.c (delay_i1_hasher): Likewise.
17688 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
17689 * ipa-icf.h (congruence_class_group_hash): Likewise.
17690 * ipa-profile.c (histogram_hash): Likewise.
17691 * ira-color.c (allocno_hard_regs_hasher): Likewise.
17692 * lto-streamer.h (string_slot_hasher): Likewise.
17693 * lto-streamer.c (tree_entry_hasher): Likewise.
17694 * plugin.c (event_hasher): Likewise.
17695 * postreload-gcse.c (expr_hasher): Likewise.
17696 * store-motion.c (st_expr_hasher): Likewise.
17697 * tree-sra.c (uid_decl_hasher): Likewise.
17698 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
17699 (ssa_name_var_hash): Likewise.
17700 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
17701 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
17702 * tree-ssa-pre.c (pre_expr_d): Likewise.
17703 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
17704 * vtable-verify.h (registration_hasher): Likewise.
17705 * vtable-verify.c (vtbl_map_hasher): Likewise.
17706 * config/arm/arm.c (libcall_hasher): Likewise.
17707 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
17708 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
17709 * config/sol2.c (comdat_entry_hasher): Likewise.
17710 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
17711 (print_fold_checksum, fold_checksum_tree): Likewise.
17712 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
17713 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
17714 (fold_build_call_array_loc): Likewise.
17715 * tree-ssa-ccp.c (gimple_htab): Likewise.
17716 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
17717 rather than pointer_type.
17719 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17721 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
17722 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
17724 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17726 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
17727 (ggc_hasher::ggc_mx): Likewise.
17728 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
17729 that duplicate ggc_hasher ones.
17731 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17733 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
17734 (gt_cleare_cache): Check here for deleted and empty entries.
17735 Replace handle_cache_entry with a call to keep_cache_entry.
17736 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
17737 (ggc_cache_hasher::keep_cache_entry): New function.
17738 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
17739 (tm_wrapper_hasher::keep_cache_entry): New function.
17740 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
17741 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17742 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
17743 (type_cache_hasher::keep_cache_entry): New function.
17744 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
17745 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17746 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
17747 (tree_type_map_cache_hasher::keep_cache_entry): New function.
17748 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
17749 (tm_clone_hasher::keep_cache_entry): New function.
17750 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
17751 (dllimport_hasher::keep_cache_entry): New function.
17753 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17755 * hash-table.h: Include hash-traits.h.
17756 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
17757 (ggc_cache_hasher): Move to...
17758 * hash-traits.h: ...this new file.
17760 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17762 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
17763 struct cl_optimization.
17764 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
17765 * tree.c (make_node_stat): Allocate cl_optimization struct.
17766 (copy_node_stat): Allocate and copy cl_optimization struct.
17768 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17770 * function.h (struct incoming_args): Move struct.
17771 (pass_by_reference, reference_callee_copied): Remove prototypes.
17772 * emit-rtl.h (struct incoming_args): Relocate struct here.
17773 * calls.h (pass_by_reference, reference_callee_copied): Relocate
17775 * function.c (pass_by_reference, reference_callee_copied): Move.
17776 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
17777 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
17778 * ipa-chkp.c: Include calls.h.
17780 2015-06-25 Andrew Macleod <amacleod@redhat.com>
17782 * alias.h (alias_set_type): Move typedef.
17783 * coretypes.h (alias_set_type): Relocate typedef here.
17784 * rtl.h: Don't include alias.h.
17786 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17788 * cgraph.h (cgraph_rtl_info): Move to rtl.h
17789 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
17791 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
17792 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
17794 * calls.c: Include hard-reg-set.h before rtl.h.
17797 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17798 Vladimir Makarov <vmakarov@redhat.com>
17800 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
17803 2015-06-25 Richard Biener <rguenther@suse.de>
17805 * fold-const.c (fold_binary_loc): Move simplification of
17806 (X <<>> C1) & C2 ...
17807 * match.pd: ... here.
17809 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
17811 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
17813 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17815 * match.pd: Add patterns for vec_conds between 1 and 0.
17817 2015-06-25 Richard Biener <rguenther@suse.de>
17819 * tree-vect-stmts.c (vectorizable_conversion): Do not set
17820 STMT_VINFO_VEC_STMT for SLP.
17821 (vectorizable_store): Likewise.
17822 (vectorizable_load): Likewise.
17823 (vect_transform_stmt): Catch SLP vectorization clobbering
17824 STMT_VINFO_VEC_STMT.
17826 2015-06-25 Richard Biener <rguenther@suse.de>
17828 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
17830 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
17831 cleanup resulting dead code and parameters.
17832 (vect_transform_slp_perm_load): Adjust.
17834 2015-06-25 Nick Clifton <nickc@redhat.com>
17836 * config/bfin/bfin.c (bfin_expand_prologue): Set
17837 current_function_static_stack_size if flag_stack_usage_info is set.
17838 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
17839 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
17840 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
17841 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
17843 2015-06-25 Tom de Vries <tom@codesourcery.com>
17845 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
17846 comment that the generated IV is unsigned.
17848 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17851 * config/arm/arm.c (arm_dbx_register_number): Return
17852 DWARF_FRAME_REGISTERS by default.
17854 2015-06-25 Tom de Vries <tom@codesourcery.com>
17856 * dominance.c (calculate_dominance_info): Fix verify_dominators call
17857 argument. Call verify_dominator when reusing dominator info.
17859 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
17862 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
17863 an additional element of the unspec vector. Modify indices
17865 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
17866 * config/sh/sh.c (prepare_move_operands): Pass incremented
17867 const_int to gen_GOTaddr2picreg.
17868 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
17870 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17872 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
17873 Condition on TARGET_FLOAT.
17875 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17877 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
17880 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17882 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
17884 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
17885 aarch64_err_no_fpadvsimd.
17887 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
17888 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
17889 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
17890 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
17891 Turn error into assert, test TARGET_FLOAT.
17892 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
17895 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
17898 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
17900 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
17902 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
17904 2015-06-24 Renlin Li <renlin.li@arm.com>
17906 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
17907 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
17909 2015-06-24 Richard Biener <rguenther@suse.de>
17911 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
17913 (lower_opt_convert): Support lowering of conditional view_convert.
17914 (parser::parse_operation): Likewise.
17915 (parser::parse_for): Likewise.
17917 2015-06-24 Renlin Li <renlin.li@arm.com>
17919 * varasm.c (emit_local): Use unsigned int for align variable.
17921 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17924 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
17925 for negative numbers.
17927 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17929 PR rtl-optimization/66306
17930 * reload.c (find_reloads): Swap the match_dup info for
17931 commutative operands.
17933 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17935 * config/s390/vx-builtins.md
17936 ("vec_scatter_element<mode>_<non_vec_int>")
17937 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
17938 attribute with bhfgq.
17940 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17942 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
17944 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17946 * config/s390/s390-builtin-types.def: Add flag to indicate the
17947 options under which the function type is needed.
17948 * config/s390/s390-builtins.def: Add flag to indicate the options
17949 under which the builtin is enabled.
17950 * config/s390/s390-builtins.h: Add flags parameter to macro
17952 (bflags_for_builtin): New function.
17953 (flags_for_builtin): Renamed to ...
17954 (opflags_for_builtin): ... this.
17955 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
17956 flags_for_builtin to bflags_for_builtin and
17957 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
17958 * config/s390/s390.c: Add initialization of bflags_builtin and
17959 opflags_builtin arrays.
17960 Remove code for flags_builtin.
17961 (s390_init_builtins): Only create builtin function types if one of
17962 their flags is active.
17963 Only create builtins if all of their flags are active.
17964 (s390_expand_builtin): Rename flags_for_builtin to
17965 opflags_for_builtin.
17967 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17969 * config/s390/vecintrin.h: Remove internal builtins.
17971 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17973 * config/s390/s390.c (s390_secondary_reload): Fix check for
17974 GENERAL_REGS register class.
17976 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17978 * config/s390/s390.c (s390_support_vector_misalignment): Call
17979 default implementation for !TARGET_VX.
17981 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17983 * config/s390/s390.c (s390_legitimate_constant_p): Add
17986 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17988 * config/s390/s390.c (s390_vector_abi): New variable definition.
17989 (s390_check_type_for_vector_abi): New function.
17990 (TARGET_ASM_FILE_END): New macro definition.
17991 (s390_asm_file_end): New function.
17992 (s390_function_arg): Call s390_check_type_for_vector_abi.
17993 (s390_gimplify_va_arg): Likewise.
17994 * configure: Regenerate.
17995 * configure.ac: Check for .gnu_attribute Binutils feature.
17997 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
18000 * config/bfin/bfin.c (hwloop_optimize): Initialize
18001 JUMP_LABEL for newly created jump.
18003 2015-06-23 Tristan Gingold <gingold@adacore.com>
18005 * collect-utils.c (collect_wait): Unlink the response file here
18007 (do_wait): ...here.
18008 (utils_cleanup): ...and here.
18010 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
18012 * df-scan.c: Don't include target-def.h.
18013 * targhooks.c: Likewise.
18014 * config/arm/arm-c.c: Likewise.
18015 * config/i386/i386-c.c: Likewise.
18016 * config/nds32/nds32-cost.c: Likewise.
18017 * config/nds32/nds32-fp-as-gp.c: Likewise.
18018 * config/nds32/nds32-intrinsic.c: Likewise.
18019 * config/nds32/nds32-isr.c: Likewise.
18020 * config/nds32/nds32-md-auxiliary.c: Likewise.
18021 * config/nds32/nds32-memory-manipulation.c: Likewise.
18022 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18023 * config/nds32/nds32-predicates.c: Likewise.
18025 2015-06-23 Richard Biener <rguenther@suse.de>
18027 PR tree-optimization/66636
18028 * tree-vect-stmts.c (vectorizable_store): Properly compute the
18029 def type for further defs for strided stores.
18031 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
18033 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
18034 conditional selects.
18035 (setcc_int<mode>, setcc_float<mode>): Reformat.
18037 2015-06-23 Marek Polacek <polacek@redhat.com>
18039 * match.pd ((x + y) - (x | y) -> x & y,
18040 (x + y) - (x & y) -> x | y): New patterns.
18042 2015-06-23 Ludovic Courtès <ludo@gnu.org>
18045 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
18046 '-dynamic-linker' within %{!shared: ...}.
18048 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
18051 * config/i386/predicates.md (addsub_vm_operator): New predicate.
18052 (addsub_vs_operator): Ditto.
18053 (addsub_vs_parallel): Ditto.
18054 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
18055 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
18056 Put minus RTX before plus and adjust vec_merge selector.
18057 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
18058 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
18059 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
18060 (addsub vec_merge splitters): New combiner splitters.
18061 (addsub vec_select/vec_concat splitters): Ditto.
18063 2015-06-23 Bin Cheng <bin.cheng@arm.com>
18065 PR tree-optimization/66449
18066 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
18067 POINTER_PLUS_EXPR for pointers.
18069 2015-06-23 Alan Modra <amodra@gmail.com>
18071 * rtlanal.c (commutative_operand_precedence): Correct comments.
18072 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
18073 declaration. Return an int. Distinguish REG,REG return from
18075 (struct simplify_plus_minus_op_data): Make local to function.
18076 (simplify_plus_minus): Don't set canonicalized if merely sorting
18077 registers. Avoid packing ops if nothing changes. White space fixes.
18079 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
18081 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
18082 -fdump-ada-spec is passed but not if -fsyntax-only is.
18084 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
18087 * lra-lives.c (process_bb_lives): Check insn copying the same
18088 reload pseudo and don't create a copy for it.
18090 2015-06-22 Tom de Vries <tom@codesourcery.com>
18092 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
18095 2015-06-22 Tom de Vries <tom@codesourcery.com>
18097 * builtins.def (DEF_GOMP_BUILTIN): Test
18098 'flag_tree_parallelize_loops > 1' instead of
18099 'flag_tree_parallelize_loops'. Test flag_cilkplus.
18101 2015-06-22 Tom de Vries <tom@codesourcery.com>
18103 * dominance.c (calculate_dominance_info): Verify dominators if
18106 2015-06-22 Marek Polacek <polacek@redhat.com>
18108 * match.pd ((x ^ y) ^ (x | y) -> x & y,
18109 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
18110 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
18111 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
18113 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
18116 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
18117 cost of embedded comparison.
18119 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18122 * config/rs6000/predicates.md (altivec_register_operand): Permit
18123 virtual stack registers.
18124 (vsx_register_operand): Likewise.
18125 (vfloat_operand): Likewise.
18126 (vint_operand): Likewise.
18127 (vlogical_operand): Likewise.
18129 2015-06-22 Richard Biener <rguenther@suse.de>
18131 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
18132 and single_scalar_iteration_cost members.
18133 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
18134 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
18135 (vect_get_single_scalar_iteration_cost): Remove.
18136 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18137 Use LOOP_VINFO_SCALAR_ITERATION_COST.
18138 * tree-vect-loop.c (destroy_loop_vec_info): Free
18140 (vect_get_single_scalar_iteration_cost): Compute result into
18141 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
18142 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
18143 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
18144 (vect_estimate_min_profitable_iters): Use them.
18146 2015-06-22 Christian Bruel <christian.bruel@st.com>
18149 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
18150 (TARGET_INSERT_ATTRIBUTES): Define.
18151 (thumb_flipper): New var.
18152 * config/arm/arm.opt (-mflip-thumb): New switch.
18154 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18155 Martin Liska <mliska@suse.cz>
18158 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
18159 construction of arg_types.
18160 (sem_function::sem_function): Likewise.
18161 (sem_function::~sem_function): Remove destruction of arg_types.
18162 (sem_function::compatible_parm_types_p): New function.
18163 (sem_function::equals_wpa): Reorg matching of return values
18164 and parameter types.
18165 (sem_function::equals_private): Reorg mathcing of argument types.
18166 (sem_function::parse_tree_args): Remove.
18167 * ipa-icf.h (init_wpa): Do not call it.
18168 (parse_tree_args): Remove.
18169 (compatible_parm_types_p): Declare.
18170 (result_type): Remove.
18171 (arg_types): Remove.
18173 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18176 * ipa-polymorphic-call.c
18177 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
18178 initializing alias oracle; fix formating; set base_alias_set if it
18181 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
18183 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
18184 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
18185 (find_inc): Likewise.
18186 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
18188 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18189 * df-scan.c (df_swap_refs): Remove.
18190 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
18191 * dominance.c (link_roots): Use std::swap instead of manually swapping.
18192 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
18193 * fold-const.c (fold_relational_const): Likewise.
18194 * genattrtab.c (simplify_test_exp): Likewise.
18195 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
18196 gimple_simplify): Likewise.
18197 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
18198 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
18199 * ipa-devirt.c (add_type_duplicate): Likewise.
18200 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
18201 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
18202 * lra.c (lra_create_copy): Likewise.
18203 * lto-streamer-out.c (DFS::DFS): Likewise.
18204 * modulo-sched.c (get_sched_window): Likewise.
18205 * omega.c (omega_pretty_print_problem): Likewise.
18206 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
18207 * reload1.c (reloads_unique_chain_p): Likewise.
18208 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
18209 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
18211 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
18213 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
18214 predicate_mem_writes): Likewise.
18215 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
18216 * tree-predcom.c (combine_chains): Likewise.
18217 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
18218 refs_may_alias_p_1): Likewise.
18219 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
18220 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18221 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
18222 number_of_iterations_cond): Likewise.
18223 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18224 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18225 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18226 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
18227 * tree-vrp.c (extract_range_from_binary_expr_1,
18228 extract_range_from_unary_expr_1): Likewise.
18230 2015-06-20 Marek Polacek <polacek@redhat.com>
18232 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
18234 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
18237 * config/sh/sh.c (prepare_move_operands): Replace subreg
18238 index term with R0 for base and index addressing.
18240 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
18242 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
18244 (movsf_aarch64): Change condition from register_operand to
18245 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
18246 load1. Change type for alternative 7 to store1.
18247 (movdf_aarch64): Likewise.
18249 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
18251 * config/vax/vax.md: Adjust sign/zero extend patterns to
18252 handle SUBREGs in operands[1].
18254 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18256 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
18257 of manually swapping.
18258 (expand_vec_perm_interleave2): Likewise.
18260 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
18262 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
18263 reuse bounds created for abnormal ssa names.
18265 2015-06-19 Jakub Jelinek <jakub@redhat.com>
18267 * config/nvptx/nvptx.md (allocate_stack): Rename to...
18268 (allocate_stack_<mode>): ... this, and add :P on both
18269 match_operand and unspec.
18270 (allocate_stack): New expander.
18272 2015-06-19 Christian Bruel <christian.bruel@st.com>
18276 * config/arm/arm.c (arm_set_current_function): Handle
18277 explicit default options.
18279 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18281 * config/i386/i386.md (*movsicc_noc_zext): New insn.
18282 (zero-extended cmove with mem peephole2): New pattern.
18283 (cmove with mem peephole2): Merge patterns.
18285 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
18287 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
18289 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
18291 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
18292 * config/mips/mips.md (*madd4<mode>): Ditto.
18293 (*nmadd3<mode>) Ditto.
18294 (*nmadd4<mode>_fastmath): Ditto.
18295 (*nmadd3<mode>_fastmath): Ditto.
18296 (*nmsub4<mode>): Ditto.
18297 (*nmsub3<mode>): Ditto.
18298 (*nmsub4<mode>_fastmath): Ditto.
18299 (*nmsub3<mode>_fastmath): Ditto.
18301 2015-06-18 Michael Matz <matz@suse.de>
18303 PR middle-end/66253
18304 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
18305 grouped strided stores.
18306 (vectorizable_load): Don't use the DR from first_stmt in
18307 the non-SLP grouped strided case.
18309 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18312 * function.c (assign_bounds): Add arguments assign_regs,
18313 assign_special, assign_bt.
18314 (assign_parms): For vararg functions handle bounds in BT
18315 and special slots after incoming vararg bounds.
18317 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18319 PR middle-end/66568
18320 * cfgexpand.c (expand_return): Handle missing bounds.
18321 (expand_gimple_stmt_1): Likewise.
18322 * tree-chkp.c (chkp_expand_zero_bounds): New.
18323 * tree-chkp.h (chkp_expand_zero_bounds): New.
18325 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18327 PR middle-end/66567
18328 * ipa-chkp.c (chkp_maybe_create_clone): Require
18329 functions to be instrumentable.
18330 * tree-chkp.c (chkp_replace_function_pointer): Use
18331 chkp_instrumentable_p instead of attribute check.
18333 2015-06-18 Richard Biener <rguenther@suse.de>
18335 PR tree-optimization/66510
18336 * tree-vect-stmts.c (vectorizable_load): Properly compute the
18337 number of vector loads for SLP permuted loads.
18338 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
18339 check the stride for loop vectorization.
18340 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
18341 vectorization factor.
18342 (vect_analyze_group_access): If the group size is not a power
18343 of two require a epilogue loop.
18344 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
18345 compute and optimizing and alias test pruning after final
18346 vectorization factor computation.
18347 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
18349 (vect_transform_slp_perm_load): Properly compute the original
18350 number of vector load stmts.
18352 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18354 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18355 "unlikely character , in @var" warning.
18357 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
18359 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18360 (ix86_function_arg_advance): Ditto.
18361 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
18363 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18365 * function.h (struct rtl_data): Remove struct and accessor macros.
18366 * emit-rtl.h (struct rtl_data): Relocate to here.
18367 * Makefile.in (GTFILES): Add emit-rtl.h.
18368 * df-core.c: Include emit-rtl.h.
18369 * genattrtab.c: Likewise.
18370 * genconditions.c: Likewise.
18371 * genpreds.c: Likewise.
18372 * genrecog.c: Likewise.
18373 * regcprop.c: Likewise.
18374 * resource.c: Likewise.
18375 * sched-rgn.c: Likewise.
18376 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18377 * config/i386/winnt.c: Likewise.
18379 2015-06-17 Jakub Jelinek <jakub@redhat.com>
18381 PR middle-end/66429
18382 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18383 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
18384 and has_force_vectorize_loops flags from cfun into
18386 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18387 if simduid is non-NULL.
18388 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18389 * passes.def (pass_simduid_cleanup): Add new pass after loop
18391 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18392 indirection from htab argument's type.
18393 (shrink_simd_arrays): New function.
18394 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
18395 Don't call adjust_simduid_builtins if there are no loops.
18396 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18397 (pass_simduid_cleanup::execute): New method.
18398 (make_pass_simduid_cleanup): New function.
18400 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
18402 * tree-core.h (tree_target_option): Make opts field a pointer to a
18403 cl_target_option instead of an instance of the struct.
18404 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18406 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18407 TARGET_OPTION_NODE.
18408 (copy_node_stat): Allocate and copy struct cl_target_option.
18410 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18412 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18413 Remove conditional exposure of prototypes.
18414 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18415 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
18416 definitions in tree.h with functions.
18417 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18419 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18421 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
18423 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18424 (*cmp<mode>_signed): ... this.
18425 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18426 (*cmp<mode>_unsigned): ... this. Remove %b.
18428 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18430 * coretypes.h: Include input.h and as-a.h.
18431 * rtl.h: Include input.h and as-a.h for generator files.
18432 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18433 * vec.c: Don't include diagnostic-core.h.
18434 * alias.c: Do not include input.h, line-map.h or is-a.h.
18435 * asan.c: Likewise.
18436 * attribs.c: Likewise.
18437 * auto-inc-dec.c: Likewise.
18438 * auto-profile.c: Likewise.
18439 * bb-reorder.c: Likewise.
18440 * bt-load.c: Likewise.
18441 * builtins.c: Likewise.
18442 * caller-save.c: Likewise.
18443 * calls.c: Likewise.
18444 * ccmp.c: Likewise.
18446 * cfganal.c: Likewise.
18447 * cfgbuild.c: Likewise.
18448 * cfgcleanup.c: Likewise.
18449 * cfgexpand.c: Likewise.
18450 * cfghooks.c: Likewise.
18451 * cfgloop.c: Likewise.
18452 * cfgloop.h: Likewise.
18453 * cfgloopanal.c: Likewise.
18454 * cfgloopmanip.c: Likewise.
18455 * cfgrtl.c: Likewise.
18456 * cgraph.c: Likewise.
18457 * cgraphbuild.c: Likewise.
18458 * cgraphclones.c: Likewise.
18459 * cgraphunit.c: Likewise.
18460 * cilk-common.c: Likewise.
18461 * combine-stack-adj.c: Likewise.
18462 * combine.c: Likewise.
18463 * compare-elim.c: Likewise.
18464 * convert.c: Likewise.
18465 * coverage.c: Likewise.
18466 * cppbuiltin.c: Likewise.
18467 * cprop.c: Likewise.
18469 * cselib.c: Likewise.
18470 * data-streamer-in.c: Likewise.
18471 * data-streamer-out.c: Likewise.
18472 * data-streamer.c: Likewise.
18473 * dbxout.c: Likewise.
18476 * debug.c: Likewise.
18477 * df-core.c: Likewise.
18478 * df-problems.c: Likewise.
18479 * df-scan.c: Likewise.
18482 * diagnostic-core.h: Likewise.
18483 * diagnostic.c: Likewise.
18484 * dojump.c: Likewise.
18485 * dominance.c: Likewise.
18486 * domwalk.c: Likewise.
18487 * double-int.c: Likewise.
18489 * dumpfile.c: Likewise.
18490 * dumpfile.h: Likewise.
18491 * dwarf2asm.c: Likewise.
18492 * dwarf2cfi.c: Likewise.
18493 * dwarf2out.c: Likewise.
18494 * emit-rtl.c: Likewise.
18495 * et-forest.c: Likewise.
18496 * except.c: Likewise.
18497 * explow.c: Likewise.
18498 * expmed.c: Likewise.
18499 * expr.c: Likewise.
18500 * final.c: Likewise.
18501 * fixed-value.c: Likewise.
18502 * fold-const.c: Likewise.
18503 * function.c: Likewise.
18504 * fwprop.c: Likewise.
18505 * gcc-plugin.h: Likewise.
18506 * gcse.c: Likewise.
18507 * generic-match-head.c: Likewise.
18508 * ggc-page.c: Likewise.
18509 * gimple-builder.c: Likewise.
18510 * gimple-expr.c: Likewise.
18511 * gimple-fold.c: Likewise.
18512 * gimple-iterator.c: Likewise.
18513 * gimple-low.c: Likewise.
18514 * gimple-match-head.c: Likewise.
18515 * gimple-pretty-print.c: Likewise.
18516 * gimple-ssa-isolate-paths.c: Likewise.
18517 * gimple-ssa-strength-reduction.c: Likewise.
18518 * gimple-streamer-in.c: Likewise.
18519 * gimple-streamer-out.c: Likewise.
18520 * gimple-streamer.h: Likewise.
18521 * gimple-walk.c: Likewise.
18522 * gimple.c: Likewise.
18523 * gimplify-me.c: Likewise.
18524 * gimplify.c: Likewise.
18525 * godump.c: Likewise.
18526 * graph.c: Likewise.
18527 * graphite-blocking.c: Likewise.
18528 * graphite-dependences.c: Likewise.
18529 * graphite-interchange.c: Likewise.
18530 * graphite-isl-ast-to-gimple.c: Likewise.
18531 * graphite-optimize-isl.c: Likewise.
18532 * graphite-poly.c: Likewise.
18533 * graphite-scop-detection.c: Likewise.
18534 * graphite-sese-to-poly.c: Likewise.
18535 * graphite.c: Likewise.
18536 * haifa-sched.c: Likewise.
18537 * hw-doloop.c: Likewise.
18538 * ifcvt.c: Likewise.
18539 * init-regs.c: Likewise.
18540 * input.c: Likewise.
18541 * internal-fn.c: Likewise.
18542 * ipa-chkp.c: Likewise.
18543 * ipa-comdats.c: Likewise.
18544 * ipa-cp.c: Likewise.
18545 * ipa-devirt.c: Likewise.
18546 * ipa-icf-gimple.c: Likewise.
18547 * ipa-icf.c: Likewise.
18548 * ipa-inline-analysis.c: Likewise.
18549 * ipa-inline-transform.c: Likewise.
18550 * ipa-inline.c: Likewise.
18551 * ipa-polymorphic-call.c: Likewise.
18552 * ipa-profile.c: Likewise.
18553 * ipa-prop.c: Likewise.
18554 * ipa-pure-const.c: Likewise.
18555 * ipa-ref.c: Likewise.
18556 * ipa-reference.c: Likewise.
18557 * ipa-split.c: Likewise.
18558 * ipa-utils.c: Likewise.
18559 * ipa-visibility.c: Likewise.
18561 * ira-build.c: Likewise.
18562 * ira-color.c: Likewise.
18563 * ira-conflicts.c: Likewise.
18564 * ira-costs.c: Likewise.
18565 * ira-emit.c: Likewise.
18566 * ira-lives.c: Likewise.
18568 * jump.c: Likewise.
18569 * langhooks.c: Likewise.
18571 * loop-doloop.c: Likewise.
18572 * loop-init.c: Likewise.
18573 * loop-invariant.c: Likewise.
18574 * loop-iv.c: Likewise.
18575 * loop-unroll.c: Likewise.
18576 * lower-subreg.c: Likewise.
18577 * lra-assigns.c: Likewise.
18578 * lra-coalesce.c: Likewise.
18579 * lra-constraints.c: Likewise.
18580 * lra-eliminations.c: Likewise.
18581 * lra-lives.c: Likewise.
18582 * lra-remat.c: Likewise.
18583 * lra-spills.c: Likewise.
18585 * lto-cgraph.c: Likewise.
18586 * lto-compress.c: Likewise.
18587 * lto-opts.c: Likewise.
18588 * lto-section-in.c: Likewise.
18589 * lto-section-out.c: Likewise.
18590 * lto-streamer-in.c: Likewise.
18591 * lto-streamer-out.c: Likewise.
18592 * lto-streamer.c: Likewise.
18594 * mode-switching.c: Likewise.
18595 * modulo-sched.c: Likewise.
18596 * omega.c: Likewise.
18597 * omp-low.c: Likewise.
18598 * optabs.c: Likewise.
18599 * opts-global.c: Likewise.
18600 * opts.h: Likewise.
18601 * passes.c: Likewise.
18602 * plugin.c: Likewise.
18603 * postreload-gcse.c: Likewise.
18604 * postreload.c: Likewise.
18605 * predict.c: Likewise.
18606 * pretty-print.h: Likewise.
18607 * print-rtl.c: Likewise.
18608 * print-tree.c: Likewise.
18609 * profile.c: Likewise.
18610 * real.c: Likewise.
18611 * realmpfr.c: Likewise.
18612 * recog.c: Likewise.
18614 * reg-stack.c: Likewise.
18615 * regcprop.c: Likewise.
18616 * reginfo.c: Likewise.
18617 * regrename.c: Likewise.
18618 * regstat.c: Likewise.
18619 * reload.c: Likewise.
18620 * reload1.c: Likewise.
18621 * reorg.c: Likewise.
18622 * resource.c: Likewise.
18623 * rtl-chkp.c: Likewise.
18624 * rtl-error.c: Likewise.
18625 * rtlanal.c: Likewise.
18626 * rtlhooks.c: Likewise.
18627 * sanopt.c: Likewise.
18628 * sched-deps.c: Likewise.
18629 * sched-ebb.c: Likewise.
18630 * sched-rgn.c: Likewise.
18631 * sched-vis.c: Likewise.
18632 * sdbout.c: Likewise.
18633 * sel-sched-dump.c: Likewise.
18634 * sel-sched-ir.c: Likewise.
18635 * sel-sched.c: Likewise.
18636 * sese.c: Likewise.
18637 * shrink-wrap.c: Likewise.
18638 * simplify-rtx.c: Likewise.
18639 * stack-ptr-mod.c: Likewise.
18640 * statistics.c: Likewise.
18641 * stmt.c: Likewise.
18642 * stor-layout.c: Likewise.
18643 * store-motion.c: Likewise.
18644 * streamer-hooks.c: Likewise.
18645 * stringpool.c: Likewise.
18646 * symtab.c: Likewise.
18647 * target-globals.c: Likewise.
18648 * targhooks.c: Likewise.
18649 * toplev.c: Likewise.
18650 * tracer.c: Likewise.
18651 * trans-mem.c: Likewise.
18652 * tree-affine.c: Likewise.
18653 * tree-browser.c: Likewise.
18654 * tree-call-cdce.c: Likewise.
18655 * tree-cfg.c: Likewise.
18656 * tree-cfgcleanup.c: Likewise.
18657 * tree-chkp-opt.c: Likewise.
18658 * tree-chkp.c: Likewise.
18659 * tree-chrec.c: Likewise.
18660 * tree-complex.c: Likewise.
18661 * tree-data-ref.c: Likewise.
18662 * tree-dfa.c: Likewise.
18663 * tree-diagnostic.c: Likewise.
18664 * tree-dump.c: Likewise.
18665 * tree-eh.c: Likewise.
18666 * tree-emutls.c: Likewise.
18667 * tree-if-conv.c: Likewise.
18668 * tree-inline.c: Likewise.
18669 * tree-into-ssa.c: Likewise.
18670 * tree-iterator.c: Likewise.
18671 * tree-loop-distribution.c: Likewise.
18672 * tree-nested.c: Likewise.
18673 * tree-nrv.c: Likewise.
18674 * tree-object-size.c: Likewise.
18675 * tree-outof-ssa.c: Likewise.
18676 * tree-parloops.c: Likewise.
18677 * tree-phinodes.c: Likewise.
18678 * tree-predcom.c: Likewise.
18679 * tree-pretty-print.c: Likewise.
18680 * tree-profile.c: Likewise.
18681 * tree-scalar-evolution.c: Likewise.
18682 * tree-sra.c: Likewise.
18683 * tree-ssa-address.c: Likewise.
18684 * tree-ssa-alias.c: Likewise.
18685 * tree-ssa-ccp.c: Likewise.
18686 * tree-ssa-coalesce.c: Likewise.
18687 * tree-ssa-copy.c: Likewise.
18688 * tree-ssa-copyrename.c: Likewise.
18689 * tree-ssa-dce.c: Likewise.
18690 * tree-ssa-dom.c: Likewise.
18691 * tree-ssa-dse.c: Likewise.
18692 * tree-ssa-forwprop.c: Likewise.
18693 * tree-ssa-ifcombine.c: Likewise.
18694 * tree-ssa-live.c: Likewise.
18695 * tree-ssa-loop-ch.c: Likewise.
18696 * tree-ssa-loop-im.c: Likewise.
18697 * tree-ssa-loop-ivcanon.c: Likewise.
18698 * tree-ssa-loop-ivopts.c: Likewise.
18699 * tree-ssa-loop-manip.c: Likewise.
18700 * tree-ssa-loop-niter.c: Likewise.
18701 * tree-ssa-loop-prefetch.c: Likewise.
18702 * tree-ssa-loop-unswitch.c: Likewise.
18703 * tree-ssa-loop.c: Likewise.
18704 * tree-ssa-math-opts.c: Likewise.
18705 * tree-ssa-operands.c: Likewise.
18706 * tree-ssa-phiopt.c: Likewise.
18707 * tree-ssa-phiprop.c: Likewise.
18708 * tree-ssa-pre.c: Likewise.
18709 * tree-ssa-propagate.c: Likewise.
18710 * tree-ssa-reassoc.c: Likewise.
18711 * tree-ssa-sccvn.c: Likewise.
18712 * tree-ssa-scopedtables.c: Likewise.
18713 * tree-ssa-sink.c: Likewise.
18714 * tree-ssa-strlen.c: Likewise.
18715 * tree-ssa-structalias.c: Likewise.
18716 * tree-ssa-tail-merge.c: Likewise.
18717 * tree-ssa-ter.c: Likewise.
18718 * tree-ssa-threadedge.c: Likewise.
18719 * tree-ssa-threadupdate.c: Likewise.
18720 * tree-ssa-uncprop.c: Likewise.
18721 * tree-ssa-uninit.c: Likewise.
18722 * tree-ssa.c: Likewise.
18723 * tree-ssanames.c: Likewise.
18724 * tree-stdarg.c: Likewise.
18725 * tree-streamer-in.c: Likewise.
18726 * tree-streamer-out.c: Likewise.
18727 * tree-streamer.c: Likewise.
18728 * tree-switch-conversion.c: Likewise.
18729 * tree-tailcall.c: Likewise.
18730 * tree-vect-data-refs.c: Likewise.
18731 * tree-vect-generic.c: Likewise.
18732 * tree-vect-loop-manip.c: Likewise.
18733 * tree-vect-loop.c: Likewise.
18734 * tree-vect-patterns.c: Likewise.
18735 * tree-vect-slp.c: Likewise.
18736 * tree-vect-stmts.c: Likewise.
18737 * tree-vectorizer.c: Likewise.
18738 * tree-vrp.c: Likewise.
18739 * tree.c: Likewise.
18740 * tsan.c: Likewise.
18741 * ubsan.c: Likewise.
18742 * valtrack.c: Likewise.
18743 * value-prof.c: Likewise.
18744 * var-tracking.c: Likewise.
18745 * varasm.c: Likewise.
18746 * varpool.c: Likewise.
18747 * vmsdbgout.c: Likewise.
18748 * vtable-verify.c: Likewise.
18750 * wide-int.cc: Likewise.
18751 * xcoffout.c: Likewise.
18752 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
18753 * common/common-targhooks.c: Likewise.
18754 * config/aarch64/aarch64-builtins.c: Likewise.
18755 * config/aarch64/aarch64.c: Likewise.
18756 * config/alpha/alpha.c: Likewise.
18757 * config/arc/arc.c: Likewise.
18758 * config/arm/aarch-common.c: Likewise.
18759 * config/arm/arm-builtins.c: Likewise.
18760 * config/arm/arm-c.c: Likewise.
18761 * config/arm/arm.c: Likewise.
18762 * config/avr/avr-c.c: Likewise.
18763 * config/avr/avr-log.c: Likewise.
18764 * config/avr/avr.c: Likewise.
18765 * config/bfin/bfin.c: Likewise.
18766 * config/c6x/c6x.c: Likewise.
18767 * config/cr16/cr16.c: Likewise.
18768 * config/cris/cris.c: Likewise.
18769 * config/darwin-c.c: Likewise.
18770 * config/darwin.c: Likewise.
18771 * config/default-c.c: Likewise.
18772 * config/epiphany/epiphany.c: Likewise.
18773 * config/epiphany/mode-switch-use.c: Likewise.
18774 * config/epiphany/resolve-sw-modes.c: Likewise.
18775 * config/fr30/fr30.c: Likewise.
18776 * config/frv/frv.c: Likewise.
18777 * config/ft32/ft32.c: Likewise.
18778 * config/glibc-c.c: Likewise.
18779 * config/h8300/h8300.c: Likewise.
18780 * config/i386/i386-c.c: Likewise.
18781 * config/i386/i386.c: Likewise.
18782 * config/i386/msformat-c.c: Likewise.
18783 * config/i386/winnt-cxx.c: Likewise.
18784 * config/i386/winnt-stubs.c: Likewise.
18785 * config/i386/winnt.c: Likewise.
18786 * config/ia64/ia64-c.c: Likewise.
18787 * config/ia64/ia64.c: Likewise.
18788 * config/iq2000/iq2000.c: Likewise.
18789 * config/lm32/lm32.c: Likewise.
18790 * config/m32c/m32c-pragma.c: Likewise.
18791 * config/m32c/m32c.c: Likewise.
18792 * config/m32r/m32r.c: Likewise.
18793 * config/m68k/m68k.c: Likewise.
18794 * config/mcore/mcore.c: Likewise.
18795 * config/mep/mep-pragma.c: Likewise.
18796 * config/mep/mep.c: Likewise.
18797 * config/microblaze/microblaze-c.c: Likewise.
18798 * config/microblaze/microblaze.c: Likewise.
18799 * config/mips/mips.c: Likewise.
18800 * config/mmix/mmix.c: Likewise.
18801 * config/mn10300/mn10300.c: Likewise.
18802 * config/moxie/moxie.c: Likewise.
18803 * config/msp430/msp430-c.c: Likewise.
18804 * config/msp430/msp430.c: Likewise.
18805 * config/nds32/nds32-cost.c: Likewise.
18806 * config/nds32/nds32-fp-as-gp.c: Likewise.
18807 * config/nds32/nds32-intrinsic.c: Likewise.
18808 * config/nds32/nds32-isr.c: Likewise.
18809 * config/nds32/nds32-md-auxiliary.c: Likewise.
18810 * config/nds32/nds32-memory-manipulation.c: Likewise.
18811 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18812 * config/nds32/nds32-predicates.c: Likewise.
18813 * config/nds32/nds32.c: Likewise.
18814 * config/nios2/nios2.c: Likewise.
18815 * config/nvptx/nvptx.c: Likewise.
18816 * config/pa/pa.c: Likewise.
18817 * config/pdp11/pdp11.c: Likewise.
18818 * config/rl78/rl78-c.c: Likewise.
18819 * config/rl78/rl78.c: Likewise.
18820 * config/rs6000/rs6000-c.c: Likewise.
18821 * config/rs6000/rs6000.c: Likewise.
18822 * config/rx/rx.c: Likewise.
18823 * config/s390/s390-c.c: Likewise.
18824 * config/s390/s390.c: Likewise.
18825 * config/sh/sh-c.c: Likewise.
18826 * config/sh/sh-mem.cc: Likewise.
18827 * config/sh/sh.c: Likewise.
18828 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18829 * config/sh/sh_treg_combine.cc: Likewise.
18830 * config/sol2-c.c: Likewise.
18831 * config/sol2-cxx.c: Likewise.
18832 * config/sol2-stubs.c: Likewise.
18833 * config/sol2.c: Likewise.
18834 * config/sparc/sparc-c.c: Likewise.
18835 * config/sparc/sparc.c: Likewise.
18836 * config/spu/spu-c.c: Likewise.
18837 * config/spu/spu.c: Likewise.
18838 * config/stormy16/stormy16.c: Likewise.
18839 * config/tilegx/mul-tables.c: Likewise.
18840 * config/tilegx/tilegx-c.c: Likewise.
18841 * config/tilegx/tilegx.c: Likewise.
18842 * config/tilepro/mul-tables.c: Likewise.
18843 * config/tilepro/tilepro-c.c: Likewise.
18844 * config/tilepro/tilepro.c: Likewise.
18845 * config/v850/v850-c.c: Likewise.
18846 * config/v850/v850.c: Likewise.
18847 * config/vax/vax.c: Likewise.
18848 * config/visium/visium.c: Likewise.
18849 * config/vms/vms-c.c: Likewise.
18850 * config/vms/vms.c: Likewise.
18851 * config/vxworks.c: Likewise.
18852 * config/winnt-c.c: Likewise.
18853 * config/xtensa/xtensa.c: Likewise.
18855 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
18857 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
18859 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
18861 2015-06-17 Richard Biener <rguenther@suse.de>
18863 PR tree-optimization/66251
18864 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
18865 stmts for SLP strided stores.
18868 2015-05-22 Richard Biener <rguenther@suse.de>
18870 PR tree-optimization/66251
18871 * tree-vect-stmts.c (vectorizable_conversion): Properly
18872 set STMT_VINFO_VEC_STMT even for the SLP case.
18874 2015-05-26 Michael Matz <matz@suse.de>
18876 PR middle-end/66251
18877 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
18878 STMT_VINFO_VEC_STMT, also with SLP.
18880 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
18883 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
18884 (*avx_addsubv4df3_1s): Ditto.
18885 (*sse3_addsubv2df3_1): Ditto.
18886 (*sse3_addsubv2df3_1s): Ditto.
18887 (*avx_addsubv8sf3_1): Ditto.
18888 (*avx_addsubv8sf3_1s): Ditto.
18889 (*sse3_addsubv4sf3_1): Ditto.
18890 (*sse3_addsubv4sf3_1s): Ditto.
18892 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
18894 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
18895 (SYSROOT_SUFFIX_SPEC): Update.
18896 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
18897 (STARTFILE_PREFIX_SPEC): Update.
18898 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
18899 (MULTILIB_REQUIRED): New.
18900 (MULTILIB_OSDIRNAMES): New.
18901 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
18902 (MULTILIB_REQUIRED): New.
18903 (MULTILIB_OSDIRNAMES): New.
18905 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
18907 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
18908 * config/aarch64/aarch64-options-extensions.def: Update "fP",
18909 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
18910 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
18911 (AARCH64_FL_PAN): New.
18912 (AARCH64_FL_LOR): New.
18913 (AARCH64_FL_RDMA): New.
18914 (AARCH64_FL_FOR_ARCH8_1): New.
18915 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
18916 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
18918 2015-06-16 Martin Liska <mliska@suse.cz>
18920 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
18921 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
18924 2015-06-16 Richard Biener <rguenther@suse.de>
18926 * tree-vect-stmts.c (vectorizable_store): Adjust.
18927 (vectorizable_load): Likewise.
18928 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18930 (vect_create_data_ref_ptr): Likewise.
18931 (bump_vector_ptr): Adjust.
18933 2015-06-16 Richard Biener <rguenther@suse.de>
18935 * tree-vect-stmts.c (vectorizable_load): Properly start loads
18936 with the first element if this is grouped loads.
18938 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
18940 * config/arm/arm-protos.h (struct tune_params): Rename
18941 log_op_non_sc to log_op_non_short_circuit, and rename enum
18942 values to expand SC to SHORT_CIRCUIT.
18943 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
18944 to LOG_OP_NON_SHORT_CIRCUIT.
18945 (arm_fastmul_tune):Likewise
18946 (arm_strongarm_tune): Likewise.
18947 (arm_xscale_tune): Likewise.
18948 (arm_9e_tune): Likewise.
18949 (arm_marvell_pj4_tune): Likewise.
18950 (arm_v6t2_tune): Likewise.
18951 (arm_cortex_tune): Likewise.
18952 (arm_cortex_a8_tune): Likewise.
18953 (arm_cortex_a7_tune): Likewise.
18954 (arm_cortex_a15_tune): Likewise.
18955 (arm_cortex_a53_tune): Likewise.
18956 (arm_cortex_a57_tune): Likewise.
18957 (arm_xgene1_tune): Likewise.
18958 (arm_cortex_a5_tune): Likewise.
18959 (arm_cortex_a9_tune): Likewise.
18960 (arm_cortex_a12_tune): Likewise.
18961 (arm_v7m_tune): Likewise.
18962 (arm_cortex_m7_tune): Likewise.
18963 (arm_v6m_tune): Likewise.
18964 (arm_fa726te_tune): Likewise.
18966 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
18968 * altivec.md: Delete UNSPEC_VMLADDUHM.
18969 (mulv4si3_p8): New pattern.
18970 (mulv4si3): Use it for POWER8.
18971 (mulv8hi3): Use vmladduhm with zero addend.
18972 (altivec_vmladduhm): Descriptive RTL.
18974 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
18976 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
18977 to use neon_move instead of mov_imm.
18978 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
18979 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
18981 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
18982 aarch64_float_const_zero_rtx_p check before TFmode check.
18983 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
18985 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
18986 code and attributes to match. Change condition from register_operand
18987 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
18988 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
18991 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
18994 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
18995 there is no parent.
18997 2015-06-14 Shiva Chen <shiva0217@gmail.com>
18999 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
19000 HOST_WIDE_INT parameter.
19002 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
19005 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
19006 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
19008 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
19010 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
19012 * rtl.h (classify_insn): Declare.
19013 * emit-rtl.c (classify_insn): Move to...
19014 * rtl.c: ...here and add generator support.
19015 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
19016 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
19017 * genemit.c (gen_emit_seq): New function.
19018 (gen_expand, gen_split): Use it.
19020 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
19022 * tree.c (make_vector_stat): Fix comment to state that the
19023 function returns a VECTOR_CST.
19025 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
19027 * gensupport.h (add_implicit_parallel): Declare.
19028 * genrecog.c (add_implicit_parallel): Move to...
19029 * gensupport.c (add_implicit_parallel): ...here.
19030 (process_one_cond_exec): Use it.
19031 * genemit.c (gen_insn): Likewise.
19033 2015-06-13 Iain Sandoe <iain@codesourcery.com>
19036 * passes.c (rest_of_decl_compilation): Do not register globals for
19037 early debug if they are declared in built-ins.
19039 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
19041 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
19043 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19045 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
19047 (noce_try_cmove_arith): Likewise.
19048 (noce_get_alt_condition): Likewise.
19050 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19052 * common/config/i386/i386-common.c
19053 (OPTION_MASK_ISA_MWAITX_SET): New.
19054 (ix86_handle_option): Handle mwaitx.
19055 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
19056 (x86_64-*-*): Likewise.
19057 * config/i386/mwaitxintrin.h: New header.
19058 * config/i386/cpuid.h (bit_MWAITX): Define.
19059 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19061 * config/i386/i386.opt (mwaitx): New.
19062 * config/i386/i386-builtin-types.def
19063 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
19064 * config/i386/i386-c.c: Define __MWAITX__ if needed.
19065 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
19067 (ix86_option_override_internal): Handle new option.
19068 (processor_alias_table): Added PTA_MWAITX.
19069 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
19070 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
19071 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
19072 IX86_BUILTIN_MONITORX built-ins.
19073 * config/i386/i386.h (TARGET_MWAITX): New.
19074 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
19076 (mwaitx): New pattern.
19077 (monitorx_<mode>): New pattern.
19078 * config/i386/x86intrin.h: Include mwaitxintrin.h.
19079 * doc/extend.texi: Document monitorx and mwaitx builtins.
19080 * doc/invoke.texi: Document -mmwaitx option.
19082 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
19084 * emit-rtl.c (need_atomic_barrier_p): Mask model with
19085 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
19087 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19089 * dbxout.c (xcoff_debug_hooks): Provide a function for
19090 register_main_translation_unit hook.
19092 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19094 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
19095 variants cases from switch.
19096 (rs6000_post_atomic_barrier): Same.
19097 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
19098 (rs6000_expand_atomic_exchange): Same.
19099 (rs6000_expand_atomic_op): Same.
19100 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
19101 SYNC variants cases from switch.
19102 (atomic_load): Same.
19103 (atomic_store): Same.
19105 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
19107 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
19108 CONST_INT for goto.
19110 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
19113 * dwarf2out.c (check_die): Check for common duplicate attributes.
19114 (add_location_or_const_value_attribute): Do not add duplicate
19116 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
19118 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
19119 (gen_type_die_with_usage): Call check_die.
19120 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
19122 2015-06-11 Jason Merrill <jason@redhat.com>
19124 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
19127 2015-06-11 Marek Polacek <polacek@redhat.com>
19129 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
19131 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
19134 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
19135 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
19136 (*addx_extend_sp32): Fix pasto.
19137 (*subx_extend): Rename into...
19138 (*subx_extend_sp32): ...this.
19139 (*adddi3_extend_sp32): Add earlyclobber.
19140 (*subdi3_insn_sp32): Likewise.
19141 (*subdi3_extend_sp32): Likewise.
19142 (*and_not_di_sp32): Likewise.
19143 (*or_not_di_sp32): Likewise.
19144 (*xor_not_di_sp32): Likewise.
19145 (*negdi2_sp32): Likewise.
19146 (*one_cmpldi2_sp32): Likewise.
19148 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
19150 * debug.h (struct gcc_debug_hooks): Add a
19151 register_main_translation_unit hook.
19152 * debug.c (do_nothing_debug_hooks): Provide a function for this
19154 * dbxout.c (dbx_debug_hooks): Likewise.
19155 * sdbout.c (sdb_debug_hooks): Likewise.
19156 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19157 * dwarf2out.c (main_translation_unit): New global variable.
19158 (dwarf2out_register_main_translation_unit): New function
19159 implementing the new hook.
19160 (dwarf2_debug_hooks): Assign
19161 dwarf2out_register_main_translation_unit to this new hook.
19162 (dwarf2out_init): Associate any main translation unit to
19165 2015-06-11 Marek Polacek <polacek@redhat.com>
19167 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
19169 2015-06-11 Marek Polacek <polacek@redhat.com>
19171 * match.pd: Use single_use throughout.
19173 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19175 * config/arm/arm.c (arm_option_params_internal): When optimising
19176 for speed set max_insns_skipped when arm_restrict_it.
19178 2015-06-11 Christian Bruel <christian.bruel@st.com>
19181 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
19183 (arm_cpu_builtins): New function.
19184 (arm_pragma_target_parse): Call arm_cpu_builtins.
19185 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
19186 (arm_register_target_pragmas): Likewise.
19187 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
19188 Call arm_register_target_pragmas.
19189 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
19190 (arm_pragma_target_parse): Likewise.
19192 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
19194 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
19195 of the second operand.
19197 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
19200 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
19201 to prepare mask operand for AVX512 modes.
19203 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19206 * doc/md.texi (Machine Constraints): Document that on the PowerPC
19207 if you use a constraint that targets a VSX register, you must use
19208 %x<n> in the template.
19210 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
19212 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
19213 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
19214 (define_insn "trap"): New definition.
19216 2015-06-10 Richard Biener <rguenther@suse.de>
19218 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
19220 (vect_supported_load_permutation_p): ... here. Handle
19221 supportable permutations in reductions.
19222 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
19223 for vectorizing strided group loads.
19225 2015-06-10 Jakub Jelinek <jakub@redhat.com>
19228 * config/i386/i386.c (ix86_split_long_move): For collisions
19229 involving direct tls segment refs, move the UNSPEC_TP possibly
19230 wrapped in ZERO_EXTEND out of the address for lea, to each of
19233 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19235 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
19236 dmb sy. Adjust tabs.
19238 2015-06-10 Tom de Vries <tom@codesourcery.com>
19240 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
19242 2015-06-10 Martin Liska <mliska@suse.cz>
19245 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
19246 all enum values in mem_alloc_origin.
19247 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
19249 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
19250 * bitmap.c (bitmap_register): Likewise.
19251 (dump_bitmap_statistics): Likewise.
19252 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
19253 (ggc_record_overhead): Likewise.
19254 * hash-map.h: Likewise.
19255 * hash-set.h: Likewise.
19256 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
19257 * hash-table.h: Likewise.
19258 * vec.c (vec_prefix::register_overhead): Likewise.
19259 (vec_prefix::release_overhead): Likewise.
19260 (dump_vec_loc_statistics): Likewise.
19262 2015-06-09 Christian Bruel <christian.bruel@st.com>
19265 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
19266 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
19267 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
19268 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
19269 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
19270 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
19271 (arm_valid_target_attribute_p): Likewise.
19272 (arm_set_current_function, arm_can_inline_p): Likewise.
19273 (arm_valid_target_attribute_rec): Likewise.
19274 (arm_previous_fndecl): New variable.
19275 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19276 (TARGET_CAN_INLINE_P): Define.
19277 (arm_asm_trampoline_template): Emit mode.
19278 (arm_file_start): Don't set unified syntax.
19279 (arm_declare_function_name): Set unified syntax and mode.
19280 (arm_option_override): Init target_option_default_node.
19281 and target_option_current_node.
19282 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
19283 (*call_symbol): Likewise.
19284 * doc/extend.texi: Document ARM/Thumb target attribute.
19285 * doc/invoke.texi: Likewise.
19287 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19290 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19291 PR rtl-optimization/64164
19292 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19293 * tree-ssa-copyrename.c: Removed.
19294 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19295 -ftree-coalesce-vars.
19296 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19297 * common.opt (ftree-copyrename): Ignore.
19298 (ftree-coalesce-inlined-vars): Likewise.
19299 * doc/invoke.texi: Remove the ignored options above.
19300 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19301 * tree-ssa-coalesce.h: ... here.
19302 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19303 headers required by it.
19304 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19305 across variables when flag_tree_coalesce_vars. Check register
19306 use and promoted modes to allow coalescing. Moved to
19307 tree-ssa-coalesce.c.
19308 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19309 with its member functions to tree-ssa-coalesce.c.
19310 (var_map_base_init): Likewise. Renamed to
19311 compute_samebase_partition_bases.
19312 (partition_view_normal): Drop want_bases parameter.
19313 (partition_view_bitmap): Likewise.
19314 * tree-ssa-live.h: Adjust declarations.
19315 * tree-ssa-coalesce.c: Include explow.h.
19316 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19317 default defs at the entry point.
19318 (dump_part_var_map): New.
19319 (compute_optimized_partition_bases): New, called by...
19320 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19321 of compute_samebase_partition_bases. Adjust.
19322 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19323 * cfgexpand.c (leader_merge): New.
19324 (get_rtl_for_parm_ssa_default_def): New.
19325 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19326 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19327 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19328 redundant MEM attr setting.
19329 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19331 (expand_one_stack_var): ... this. New wrapper to check and
19332 skip already expanded SSA partitions.
19333 (record_alignment_for_reg_var): New, factored out of...
19334 (expand_one_var): ... this.
19335 (expand_one_ssa_partition): New.
19336 (adjust_one_expanded_partition_var): New.
19337 (expand_one_register_var): Check and skip already expanded SSA
19339 (expand_used_vars): Don't create DECLs for anonymous SSA
19340 names. Expand all SSA partitions, then adjust all SSA names.
19341 (pass::execute): Replace the loops that set
19342 SA.partition_to_pseudo from partition leaders and cleared
19343 DECL_RTL for multi-location variables, and that which used to
19344 rename vars and set attrs, with one that clears DECL_RTL and
19345 checks that PARMs and RESULTs default_defs match DECL_RTL.
19346 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19347 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19348 * explow.c (promote_ssa_mode): New.
19349 * explow.h (promote_ssa_mode): Declare.
19350 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19351 * function.c: Include cfgexpand.h.
19352 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19353 (use_register_for_parm_decl): Wrapper for the above to
19354 special-case the result_ptr.
19355 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19356 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19357 multiple locations.
19358 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19359 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19360 (assign_parm_setup_block): Prefer SSA-assigned location.
19361 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19362 if stack_parm is NULL.
19363 (assign_parm_setup_stack): Prefer SSA-assigned location.
19364 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19365 rtl before testing for pointer bounds. Special-case result_ptr.
19366 (expand_function_start): Maybe reset DECL_RTL of result.
19367 Prefer SSA-assigned location for result and static chain.
19368 Factor out DECL_RESULT and SET_DECL_RTL.
19369 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19370 anonymous SSA names. Use promote_ssa_mode.
19371 (get_temp_reg): Likewise.
19372 (remove_ssa_form): Adjust.
19373 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19374 and get its reg_usage for reg invalidation.
19375 (compute_bb_dataflow): Pass it insn.
19376 (emit_notes_in_bb): Likewise.
19377 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19378 fail assert on conversion between unsigned types.
19380 2015-06-09 Tom de Vries <tom@codesourcery.com>
19382 PR tree-optimization/65460
19383 * omp-low.c (expand_omp_target): Set parallelized_function on
19384 cgraph_node for child_fn.
19386 2015-06-09 Tom de Vries <tom@codesourcery.com>
19388 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19389 parallelized_function before add_new_function.
19391 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
19393 * gcc-plugin.h: Move decls to plugin.h and include it.
19394 * plugin.h: Relocate decls from gcc-plugin.h
19395 * ggc-page.c: Include required header files.
19396 * passes.c: Likewise.
19397 * cgraphunit.c: Likewise.
19399 2015-06-09 Tom de Vries <tom@codesourcery.com>
19401 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19403 2015-06-09 Jason Merrill <jason@redhat.com>
19406 * toplev.c (check_global_declaration): Don't warn about a clone.
19408 2015-06-09 Marek Polacek <polacek@redhat.com>
19410 PR tree-optimization/66299
19411 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19412 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19415 2015-06-09 Richard Biener <rguenther@suse.de>
19417 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19418 (vect_analyze_slp_instance): Instead do not falsely drop
19421 2015-06-09 Richard Biener <rguenther@suse.de>
19423 PR middle-end/66423
19424 * match.pd: Handle A % (unsigned)(1 << B).
19426 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
19428 * varasm.c (output_object_block_htab): Remove.
19429 (output_object_block_compare): New.
19430 (output_object_blocks): Sort named object_blocks before outputting
19433 2015-06-09 Richard Biener <rguenther@suse.de>
19435 PR tree-optimization/66419
19436 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19437 consider GROUP_GAP when detecting a perfect subchain.
19439 2015-06-09 Nick Clifton <nickc@redhat.com>
19441 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19442 place read only data in the .frodata section.
19444 2015-06-09 Shiva Chen <shiva0217@gmail.com>
19446 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19447 (atomic_store<mode>): Likewise.
19449 2015-06-09 Richard Biener <rguenther@suse.de>
19451 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19453 2015-06-09 Richard Biener <rguenther@suse.de>
19455 PR middle-end/66413
19456 * tree-inline.c (insert_init_debug_bind): Unshare value.
19458 2015-06-09 Richard Biener <rguenther@suse.de>
19460 PR tree-optimization/66396
19461 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19462 Rename virtual operands.
19464 2015-06-09 Tom de Vries <tom@codesourcery.com>
19466 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19467 always return false.
19469 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19471 PR rtl-optimization/64164
19472 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19473 * tree-ssa-copyrename.c: Removed.
19474 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19475 -ftree-coalesce-vars.
19476 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19477 * common.opt (ftree-copyrename): Ignore.
19478 (ftree-coalesce-inlined-vars): Likewise.
19479 * doc/invoke.texi: Remove the ignored options above.
19480 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19481 * tree-ssa-coalesce.h: ... here.
19482 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19483 headers required by it.
19484 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19485 across variables when flag_tree_coalesce_vars. Check register
19486 use and promoted modes to allow coalescing. Moved to
19487 tree-ssa-coalesce.c.
19488 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19489 with its member functions to tree-ssa-coalesce.c.
19490 (var_map_base_init): Likewise. Renamed to
19491 compute_samebase_partition_bases.
19492 (partition_view_normal): Drop want_bases parameter.
19493 (partition_view_bitmap): Likewise.
19494 * tree-ssa-live.h: Adjust declarations.
19495 * tree-ssa-coalesce.c: Include explow.h.
19496 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19497 default defs at the entry point.
19498 (dump_part_var_map): New.
19499 (compute_optimized_partition_bases): New, called by...
19500 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19501 of compute_samebase_partition_bases. Adjust.
19502 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19503 * cfgexpand.c (leader_merge): New.
19504 (get_rtl_for_parm_ssa_default_def): New.
19505 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19506 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19507 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19508 redundant MEM attr setting.
19509 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19511 (expand_one_stack_var): ... this. New wrapper to check and
19512 skip already expanded SSA partitions.
19513 (record_alignment_for_reg_var): New, factored out of...
19514 (expand_one_var): ... this.
19515 (expand_one_ssa_partition): New.
19516 (adjust_one_expanded_partition_var): New.
19517 (expand_one_register_var): Check and skip already expanded SSA
19519 (expand_used_vars): Don't create DECLs for anonymous SSA
19520 names. Expand all SSA partitions, then adjust all SSA names.
19521 (pass::execute): Replace the loops that set
19522 SA.partition_to_pseudo from partition leaders and cleared
19523 DECL_RTL for multi-location variables, and that which used to
19524 rename vars and set attrs, with one that clears DECL_RTL and
19525 checks that PARMs and RESULTs default_defs match DECL_RTL.
19526 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19527 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19528 * explow.c (promote_ssa_mode): New.
19529 * explow.h (promote_ssa_mode): Declare.
19530 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19531 * function.c: Include cfgexpand.h.
19532 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19533 (use_register_for_parm_decl): Wrapper for the above to
19534 special-case the result_ptr.
19535 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19536 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19537 multiple locations.
19538 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19539 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19540 (assign_parm_setup_block): Prefer SSA-assigned location.
19541 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19542 if stack_parm is NULL.
19543 (assign_parm_setup_stack): Prefer SSA-assigned location.
19544 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19545 rtl before testing for pointer bounds. Special-case result_ptr.
19546 (expand_function_start): Maybe reset DECL_RTL of result.
19547 Prefer SSA-assigned location for result and static chain.
19548 Factor out DECL_RESULT and SET_DECL_RTL.
19549 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19550 anonymous SSA names. Use promote_ssa_mode.
19551 (get_temp_reg): Likewise.
19552 (remove_ssa_form): Adjust.
19553 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19554 and get its reg_usage for reg invalidation.
19555 (compute_bb_dataflow): Pass it insn.
19556 (emit_notes_in_bb): Likewise.
19557 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19558 fail assert on conversion between unsigned types.
19560 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19563 * tree-inline.c (reset_debug_binding): New.
19564 (reset_debug_bindings): Likewise.
19565 (expand_call_inline): Call it.
19567 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19569 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19572 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19574 * lto-streamer-out.c (lto_output_location): Stream
19575 reserved locations correctly.
19576 * lto-streamer-in.c (lto_output_location): Likewise.
19578 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
19580 * coretypes.h: Include hash-table.h and hash-set.h for host files.
19581 * ggc.h: Don't include statistics.h>
19582 * hash-map.h: Remove all includes.
19583 * hash-set.h: Likewise.
19584 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19585 the include list. Remove <new>.
19586 * inchash.h: Remove all includes.
19587 * mem-stats.h: Likewise.
19588 * vec.h: No special processing for generators or ggc.
19589 * alias.c : Adjust include files.
19590 * alloc-pool.c : Likewise.
19591 * alloc-pool.h : Likewise.
19592 * asan.c : Likewise.
19593 * attribs.c : Likewise.
19594 * auto-inc-dec.c : Likewise.
19595 * auto-profile.c : Likewise.
19596 * bb-reorder.c : Likewise.
19597 * bitmap.c : Likewise.
19598 * bitmap.h : Likewise.
19599 * bt-load.c : Likewise.
19600 * builtins.c : Likewise.
19601 * caller-save.c : Likewise.
19602 * calls.c : Likewise.
19603 * ccmp.c : Likewise.
19604 * cfg.c : Likewise.
19605 * cfganal.c : Likewise.
19606 * cfgbuild.c : Likewise.
19607 * cfgcleanup.c : Likewise.
19608 * cfgexpand.c : Likewise.
19609 * cfghooks.c : Likewise.
19610 * cfgloop.c : Likewise.
19611 * cfgloop.h : Likewise.
19612 * cfgloopanal.c : Likewise.
19613 * cfgloopmanip.c : Likewise.
19614 * cfgrtl.c : Likewise.
19615 * cgraph.c : Likewise.
19616 * cgraphbuild.c : Likewise.
19617 * cgraphclones.c : Likewise.
19618 * cgraphunit.c : Likewise.
19619 * cilk-common.c : Likewise.
19620 * combine-stack-adj.c : Likewise.
19621 * combine.c : Likewise.
19622 * compare-elim.c : Likewise.
19623 * context.c : Likewise.
19624 * convert.c : Likewise.
19625 * coverage.c : Likewise.
19626 * cppbuiltin.c : Likewise.
19627 * cprop.c : Likewise.
19628 * cse.c : Likewise.
19629 * cselib.c : Likewise.
19630 * data-streamer-in.c : Likewise.
19631 * data-streamer-out.c : Likewise.
19632 * data-streamer.c : Likewise.
19633 * data-streamer.h : Likewise.
19634 * dbxout.c : Likewise.
19635 * dce.c : Likewise.
19636 * ddg.c : Likewise.
19637 * debug.c : Likewise.
19638 * df-core.c : Likewise.
19639 * df-problems.c : Likewise.
19640 * df-scan.c : Likewise.
19642 * dfp.c : Likewise.
19643 * dojump.c : Likewise.
19644 * dominance.c : Likewise.
19645 * domwalk.c : Likewise.
19646 * double-int.c : Likewise.
19647 * dse.c : Likewise.
19648 * dumpfile.c : Likewise.
19649 * dwarf2asm.c : Likewise.
19650 * dwarf2cfi.c : Likewise.
19651 * dwarf2out.c : Likewise.
19652 * emit-rtl.c : Likewise.
19653 * et-forest.c : Likewise.
19654 * except.c : Likewise.
19655 * except.h : Likewise.
19656 * explow.c : Likewise.
19657 * expmed.c : Likewise.
19658 * expr.c : Likewise.
19659 * final.c : Likewise.
19660 * fixed-value.c : Likewise.
19661 * fold-const.c : Likewise.
19662 * function.c : Likewise.
19663 * fwprop.c : Likewise.
19664 * gcc-plugin.h : Likewise.
19665 * gcc.c : Likewise.
19666 * gcse-common.c : Likewise.
19667 * gcse.c : Likewise.
19668 * genattrtab.c : Likewise.
19669 * genautomata.c : Likewise.
19670 * genconditions.c : Likewise.
19671 * genemit.c : Likewise.
19672 * generic-match-head.c : Likewise.
19673 * genextract.c : Likewise.
19674 * gengtype-state.c : Likewise.
19675 * gengtype.c : Likewise.
19676 * genhooks.c : Likewise.
19677 * genmatch.c : Likewise.
19678 * genmodes.c : Likewise.
19679 * genrecog.c : Likewise.
19680 * gensupport.c : Likewise.
19681 * ggc-common.c : Likewise.
19682 * ggc-internal.h : Likewise.
19683 * ggc-none.c : Likewise.
19684 * ggc-page.c : Likewise.
19685 * gimple-builder.c : Likewise.
19686 * gimple-expr.c : Likewise.
19687 * gimple-fold.c : Likewise.
19688 * gimple-iterator.c : Likewise.
19689 * gimple-low.c : Likewise.
19690 * gimple-match-head.c : Likewise.
19691 * gimple-pretty-print.c : Likewise.
19692 * gimple-ssa-isolate-paths.c : Likewise.
19693 * gimple-ssa-strength-reduction.c : Likewise.
19694 * gimple-ssa.h : Likewise.
19695 * gimple-streamer-in.c : Likewise.
19696 * gimple-streamer-out.c : Likewise.
19697 * gimple-streamer.h : Likewise.
19698 * gimple-walk.c : Likewise.
19699 * gimple.c : Likewise.
19700 * gimplify-me.c : Likewise.
19701 * gimplify.c : Likewise.
19702 * godump.c : Likewise.
19703 * graph.c : Likewise.
19704 * graphds.c : Likewise.
19705 * graphite-blocking.c : Likewise.
19706 * graphite-dependences.c : Likewise.
19707 * graphite-interchange.c : Likewise.
19708 * graphite-isl-ast-to-gimple.c : Likewise.
19709 * graphite-optimize-isl.c : Likewise.
19710 * graphite-poly.c : Likewise.
19711 * graphite-scop-detection.c : Likewise.
19712 * graphite-sese-to-poly.c : Likewise.
19713 * graphite.c : Likewise.
19714 * haifa-sched.c : Likewise.
19715 * hard-reg-set.h : Likewise.
19716 * hw-doloop.c : Likewise.
19717 * ifcvt.c : Likewise.
19718 * inchash.c : Likewise.
19719 * incpath.c : Likewise.
19720 * init-regs.c : Likewise.
19721 * input.c : Likewise.
19722 * internal-fn.c : Likewise.
19723 * ipa-chkp.c : Likewise.
19724 * ipa-comdats.c : Likewise.
19725 * ipa-cp.c : Likewise.
19726 * ipa-devirt.c : Likewise.
19727 * ipa-icf-gimple.c : Likewise.
19728 * ipa-icf.c : Likewise.
19729 * ipa-inline-analysis.c : Likewise.
19730 * ipa-inline-transform.c : Likewise.
19731 * ipa-inline.c : Likewise.
19732 * ipa-polymorphic-call.c : Likewise.
19733 * ipa-profile.c : Likewise.
19734 * ipa-prop.c : Likewise.
19735 * ipa-pure-const.c : Likewise.
19736 * ipa-ref.c : Likewise.
19737 * ipa-reference.c : Likewise.
19738 * ipa-split.c : Likewise.
19739 * ipa-utils.c : Likewise.
19740 * ipa-visibility.c : Likewise.
19741 * ipa.c : Likewise.
19742 * ira-build.c : Likewise.
19743 * ira-color.c : Likewise.
19744 * ira-conflicts.c : Likewise.
19745 * ira-costs.c : Likewise.
19746 * ira-emit.c : Likewise.
19747 * ira-lives.c : Likewise.
19748 * ira.c : Likewise.
19749 * jump.c : Likewise.
19750 * langhooks.c : Likewise.
19751 * lcm.c : Likewise.
19752 * libfuncs.h : Likewise.
19753 * lists.c : Likewise.
19754 * loop-doloop.c : Likewise.
19755 * loop-init.c : Likewise.
19756 * loop-invariant.c : Likewise.
19757 * loop-iv.c : Likewise.
19758 * loop-unroll.c : Likewise.
19759 * lower-subreg.c : Likewise.
19760 * lra-assigns.c : Likewise.
19761 * lra-coalesce.c : Likewise.
19762 * lra-constraints.c : Likewise.
19763 * lra-eliminations.c : Likewise.
19764 * lra-lives.c : Likewise.
19765 * lra-remat.c : Likewise.
19766 * lra-spills.c : Likewise.
19767 * lra.c : Likewise.
19768 * lto-cgraph.c : Likewise.
19769 * lto-compress.c : Likewise.
19770 * lto-opts.c : Likewise.
19771 * lto-section-in.c : Likewise.
19772 * lto-section-out.c : Likewise.
19773 * lto-streamer-in.c : Likewise.
19774 * lto-streamer-out.c : Likewise.
19775 * lto-streamer.c : Likewise.
19776 * lto-streamer.h : Likewise.
19777 * mcf.c : Likewise.
19778 * mode-switching.c : Likewise.
19779 * modulo-sched.c : Likewise.
19780 * omega.c : Likewise.
19781 * omp-low.c : Likewise.
19782 * optabs.c : Likewise.
19783 * opts-global.c : Likewise.
19784 * opts.h : Likewise.
19785 * passes.c : Likewise.
19786 * plugin.c : Likewise.
19787 * postreload-gcse.c : Likewise.
19788 * postreload.c : Likewise.
19789 * predict.c : Likewise.
19790 * print-rtl.c : Likewise.
19791 * print-tree.c : Likewise.
19792 * profile.c : Likewise.
19793 * read-md.c : Likewise.
19794 * read-md.h : Likewise.
19795 * read-rtl.c : Likewise.
19796 * real.c : Likewise.
19797 * realmpfr.c : Likewise.
19798 * recog.c : Likewise.
19799 * ree.c : Likewise.
19800 * reg-stack.c : Likewise.
19801 * regcprop.c : Likewise.
19802 * reginfo.c : Likewise.
19803 * regrename.c : Likewise.
19804 * regstat.c : Likewise.
19805 * reload.c : Likewise.
19806 * reload1.c : Likewise.
19807 * reorg.c : Likewise.
19808 * resource.c : Likewise.
19809 * rtl-chkp.c : Likewise.
19810 * rtl.c : Likewise.
19811 * rtl.h : Likewise.
19812 * rtlanal.c : Likewise.
19813 * rtlhash.c : Likewise.
19814 * rtlhash.h : Likewise.
19815 * rtlhooks.c : Likewise.
19816 * sanopt.c : Likewise.
19817 * sched-deps.c : Likewise.
19818 * sched-ebb.c : Likewise.
19819 * sched-rgn.c : Likewise.
19820 * sched-vis.c : Likewise.
19821 * sdbout.c : Likewise.
19822 * sel-sched-dump.c : Likewise.
19823 * sel-sched-ir.c : Likewise.
19824 * sel-sched-ir.h : Likewise.
19825 * sel-sched.c : Likewise.
19826 * sese.c : Likewise.
19827 * shrink-wrap.c : Likewise.
19828 * shrink-wrap.h : Likewise.
19829 * simplify-rtx.c : Likewise.
19830 * stack-ptr-mod.c : Likewise.
19831 * statistics.c : Likewise.
19832 * stmt.c : Likewise.
19833 * stor-layout.c : Likewise.
19834 * store-motion.c : Likewise.
19835 * stringpool.c : Likewise.
19836 * symtab.c : Likewise.
19837 * target-globals.c : Likewise.
19838 * targhooks.c : Likewise.
19839 * tlink.c : Likewise.
19840 * toplev.c : Likewise.
19841 * tracer.c : Likewise.
19842 * trans-mem.c : Likewise.
19843 * tree-affine.c : Likewise.
19844 * tree-affine.h : Likewise.
19845 * tree-browser.c : Likewise.
19846 * tree-call-cdce.c : Likewise.
19847 * tree-cfg.c : Likewise.
19848 * tree-cfgcleanup.c : Likewise.
19849 * tree-chkp-opt.c : Likewise.
19850 * tree-chkp.c : Likewise.
19851 * tree-chrec.c : Likewise.
19852 * tree-complex.c : Likewise.
19853 * tree-data-ref.c : Likewise.
19854 * tree-dfa.c : Likewise.
19855 * tree-diagnostic.c : Likewise.
19856 * tree-dump.c : Likewise.
19857 * tree-eh.c : Likewise.
19858 * tree-eh.h : Likewise.
19859 * tree-emutls.c : Likewise.
19860 * tree-hasher.h : Likewise.
19861 * tree-if-conv.c : Likewise.
19862 * tree-inline.c : Likewise.
19863 * tree-inline.h : Likewise.
19864 * tree-into-ssa.c : Likewise.
19865 * tree-iterator.c : Likewise.
19866 * tree-loop-distribution.c : Likewise.
19867 * tree-nested.c : Likewise.
19868 * tree-nrv.c : Likewise.
19869 * tree-object-size.c : Likewise.
19870 * tree-outof-ssa.c : Likewise.
19871 * tree-parloops.c : Likewise.
19872 * tree-phinodes.c : Likewise.
19873 * tree-predcom.c : Likewise.
19874 * tree-pretty-print.c : Likewise.
19875 * tree-profile.c : Likewise.
19876 * tree-scalar-evolution.c : Likewise.
19877 * tree-sra.c : Likewise.
19878 * tree-ssa-address.c : Likewise.
19879 * tree-ssa-alias.c : Likewise.
19880 * tree-ssa-ccp.c : Likewise.
19881 * tree-ssa-coalesce.c : Likewise.
19882 * tree-ssa-copy.c : Likewise.
19883 * tree-ssa-copyrename.c : Likewise.
19884 * tree-ssa-dce.c : Likewise.
19885 * tree-ssa-dom.c : Likewise.
19886 * tree-ssa-dse.c : Likewise.
19887 * tree-ssa-forwprop.c : Likewise.
19888 * tree-ssa-ifcombine.c : Likewise.
19889 * tree-ssa-live.c : Likewise.
19890 * tree-ssa-loop-ch.c : Likewise.
19891 * tree-ssa-loop-im.c : Likewise.
19892 * tree-ssa-loop-ivcanon.c : Likewise.
19893 * tree-ssa-loop-ivopts.c : Likewise.
19894 * tree-ssa-loop-manip.c : Likewise.
19895 * tree-ssa-loop-niter.c : Likewise.
19896 * tree-ssa-loop-prefetch.c : Likewise.
19897 * tree-ssa-loop-unswitch.c : Likewise.
19898 * tree-ssa-loop.c : Likewise.
19899 * tree-ssa-math-opts.c : Likewise.
19900 * tree-ssa-operands.c : Likewise.
19901 * tree-ssa-phiopt.c : Likewise.
19902 * tree-ssa-phiprop.c : Likewise.
19903 * tree-ssa-pre.c : Likewise.
19904 * tree-ssa-propagate.c : Likewise.
19905 * tree-ssa-reassoc.c : Likewise.
19906 * tree-ssa-sccvn.c : Likewise.
19907 * tree-ssa-scopedtables.c : Likewise.
19908 * tree-ssa-sink.c : Likewise.
19909 * tree-ssa-strlen.c : Likewise.
19910 * tree-ssa-structalias.c : Likewise.
19911 * tree-ssa-tail-merge.c : Likewise.
19912 * tree-ssa-ter.c : Likewise.
19913 * tree-ssa-threadedge.c : Likewise.
19914 * tree-ssa-threadupdate.c : Likewise.
19915 * tree-ssa-uncprop.c : Likewise.
19916 * tree-ssa-uninit.c : Likewise.
19917 * tree-ssa.c : Likewise.
19918 * tree-ssanames.c : Likewise.
19919 * tree-stdarg.c : Likewise.
19920 * tree-streamer-in.c : Likewise.
19921 * tree-streamer-out.c : Likewise.
19922 * tree-streamer.c : Likewise.
19923 * tree-streamer.h : Likewise.
19924 * tree-switch-conversion.c : Likewise.
19925 * tree-tailcall.c : Likewise.
19926 * tree-vect-data-refs.c : Likewise.
19927 * tree-vect-generic.c : Likewise.
19928 * tree-vect-loop-manip.c : Likewise.
19929 * tree-vect-loop.c : Likewise.
19930 * tree-vect-patterns.c : Likewise.
19931 * tree-vect-slp.c : Likewise.
19932 * tree-vect-stmts.c : Likewise.
19933 * tree-vectorizer.c : Likewise.
19934 * tree-vectorizer.h : Likewise.
19935 * tree-vrp.c : Likewise.
19936 * tree.c : Likewise.
19937 * tsan.c : Likewise.
19938 * ubsan.c : Likewise.
19939 * valtrack.c : Likewise.
19940 * valtrack.h : Likewise.
19941 * value-prof.c : Likewise.
19942 * var-tracking.c : Likewise.
19943 * varasm.c : Likewise.
19944 * varpool.c : Likewise.
19946 * vmsdbgout.c : Likewise.
19947 * vtable-verify.c : Likewise.
19948 * vtable-verify.h : Likewise.
19949 * web.c : Likewise.
19950 * wide-int.cc : Likewise.
19951 * xcoffout.c : Likewise.
19952 * config/aarch64/aarch64-builtins.c : Likewise.
19953 * config/aarch64/aarch64.c : Likewise.
19954 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
19955 * config/alpha/alpha.c : Likewise.
19956 * config/arc/arc.c : Likewise.
19957 * config/arm/aarch-common.c : Likewise.
19958 * config/arm/arm-builtins.c : Likewise.
19959 * config/arm/arm-c.c : Likewise.
19960 * config/arm/arm.c : Likewise.
19961 * config/avr/avr-c.c : Likewise.
19962 * config/avr/avr-log.c : Likewise.
19963 * config/avr/avr.c : Likewise.
19964 * config/bfin/bfin.c : Likewise.
19965 * config/c6x/c6x.c : Likewise.
19966 * config/cr16/cr16.c : Likewise.
19967 * config/cris/cris.c : Likewise.
19968 * config/darwin-c.c : Likewise.
19969 * config/darwin.c : Likewise.
19970 * config/default-c.c : Likewise.
19971 * config/epiphany/epiphany.c : Likewise.
19972 * config/epiphany/mode-switch-use.c : Likewise.
19973 * config/epiphany/resolve-sw-modes.c : Likewise.
19974 * config/fr30/fr30.c : Likewise.
19975 * config/frv/frv.c : Likewise.
19976 * config/ft32/ft32.c : Likewise.
19977 * config/glibc-c.c : Likewise.
19978 * config/h8300/h8300.c : Likewise.
19979 * config/i386/i386-c.c : Likewise.
19980 * config/i386/i386.c : Likewise.
19981 * config/i386/msformat-c.c : Likewise.
19982 * config/i386/winnt-cxx.c : Likewise.
19983 * config/i386/winnt-stubs.c : Likewise.
19984 * config/i386/winnt.c : Likewise.
19985 * config/ia64/ia64-c.c : Likewise.
19986 * config/ia64/ia64.c : Likewise.
19987 * config/iq2000/iq2000.c : Likewise.
19988 * config/lm32/lm32.c : Likewise.
19989 * config/m32c/m32c-pragma.c : Likewise.
19990 * config/m32c/m32c.c : Likewise.
19991 * config/m32r/m32r.c : Likewise.
19992 * config/m68k/m68k.c : Likewise.
19993 * config/mcore/mcore.c : Likewise.
19994 * config/mep/mep-pragma.c : Likewise.
19995 * config/mep/mep.c : Likewise.
19996 * config/microblaze/microblaze-c.c : Likewise.
19997 * config/microblaze/microblaze.c : Likewise.
19998 * config/mips/mips.c : Likewise.
19999 * config/mmix/mmix.c : Likewise.
20000 * config/mn10300/mn10300.c : Likewise.
20001 * config/moxie/moxie.c : Likewise.
20002 * config/msp430/msp430-c.c : Likewise.
20003 * config/msp430/msp430.c : Likewise.
20004 * config/nds32/nds32-cost.c : Likewise.
20005 * config/nds32/nds32-fp-as-gp.c : Likewise.
20006 * config/nds32/nds32-intrinsic.c : Likewise.
20007 * config/nds32/nds32-isr.c : Likewise.
20008 * config/nds32/nds32-md-auxiliary.c : Likewise.
20009 * config/nds32/nds32-memory-manipulation.c : Likewise.
20010 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
20011 * config/nds32/nds32-predicates.c : Likewise.
20012 * config/nds32/nds32.c : Likewise.
20013 * config/nios2/nios2.c : Likewise.
20014 * config/nvptx/nvptx.c : Likewise.
20015 * config/pa/pa.c : Likewise.
20016 * config/pdp11/pdp11.c : Likewise.
20017 * config/rl78/rl78-c.c : Likewise.
20018 * config/rl78/rl78.c : Likewise.
20019 * config/rs6000/rs6000-c.c : Likewise.
20020 * config/rs6000/rs6000.c : Likewise.
20021 * config/rx/rx.c : Likewise.
20022 * config/s390/s390-c.c : Likewise.
20023 * config/s390/s390.c : Likewise.
20024 * config/sh/sh-c.c : Likewise.
20025 * config/sh/sh-mem.cc : Likewise.
20026 * config/sh/sh.c : Likewise.
20027 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
20028 * config/sh/sh_treg_combine.cc : Likewise.
20029 * config/sol2-c.c : Likewise.
20030 * config/sol2-cxx.c : Likewise.
20031 * config/sol2-stubs.c : Likewise.
20032 * config/sol2.c : Likewise.
20033 * config/sparc/sparc-c.c : Likewise.
20034 * config/sparc/sparc.c : Likewise.
20035 * config/spu/spu-c.c : Likewise.
20036 * config/spu/spu.c : Likewise.
20037 * config/stormy16/stormy16.c : Likewise.
20038 * config/tilegx/mul-tables.c : Likewise.
20039 * config/tilegx/tilegx-c.c : Likewise.
20040 * config/tilegx/tilegx.c : Likewise.
20041 * config/tilepro/mul-tables.c : Likewise.
20042 * config/tilepro/tilepro-c.c : Likewise.
20043 * config/tilepro/tilepro.c : Likewise.
20044 * config/v850/v850-c.c : Likewise.
20045 * config/v850/v850.c : Likewise.
20046 * config/vax/vax.c : Likewise.
20047 * config/visium/visium.c : Likewise.
20048 * config/vms/vms-c.c : Likewise.
20049 * config/vms/vms.c : Likewise.
20050 * config/vxworks.c : Likewise.
20051 * config/winnt-c.c : Likewise.
20052 * config/xtensa/xtensa.c : Likewise.
20054 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20057 * ipa-utils.h (warn_types_mismatch): Update prototype.
20058 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
20060 (type_mismatch_p): New function.
20061 (warn_types_mismatch): Reorg to work better on non-C++ types.
20062 (odr_types_equivalent_p): Add loc1/loc2 parameters.
20063 (add_type_duplicate): Update.
20065 2015-06-08 Tom de Vries <tom@codesourcery.com>
20067 PR rtl-optimization/66444
20068 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
20071 2015-06-08 Richard Biener <rguenther@suse.de>
20073 PR tree-optimization/66422
20074 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
20075 block after inserted gcc_unreachable.
20077 2015-06-08 Nick Clifton <nickc@redhat.com>
20079 * config/rx/rx.c (rx_function_value): Do not promote vector types.
20080 (rx_promote_function_mode): Likewise.
20081 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
20083 2015-06-08 Jakub Jelinek <jakub@redhat.com>
20085 * genattrtab.c (insn_alternatives): Change type from int *
20087 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
20088 (get_attr_value): Change type of num_alt to uint64_t.
20089 (compute_alternative_mask): Change return type from
20090 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
20091 (make_alternative_compare, mk_attr_alt): Change argument type
20092 from int to uint64_t.
20093 (simplify_test_exp): Change type of i from int to uint64_t.
20094 Shift ((uint64_t) 1) instead of 1 up.
20095 (main): Adjust oballocvec first argument from int to uint64_t.
20096 Shift ((uint64_t) 1) instead of 1 up.
20098 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
20101 * gdbhooks.py: Import sys.
20102 (intptr): New function. Replace int(...) by intptr(...).
20104 2015-06-08 Richard Biener <rguenther@suse.de>
20106 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
20107 adjustment for gaps at the end of a SLP load group properly.
20108 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
20109 all permutations we can generate.
20110 (vect_transform_slp_perm_load): Use the correct group-size.
20112 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
20114 * genmatch.c (expr::gen_transform): For conditions, guess the type
20115 from the second operand.
20117 2015-06-08 Tom de Vries <tom@codesourcery.com>
20119 PR tree-optimization/66442
20120 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
20121 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
20122 if the loop latch is not a singleton. Use
20123 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
20125 2015-06-08 Marek Polacek <polacek@redhat.com>
20128 * toplev.c (check_global_declaration): Don't warn about artificial
20131 2015-06-08 Tom de Vries <tom@codesourcery.com>
20133 PR tree-optimization/66436
20134 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
20136 * gimplify.c: Add tree-dump.h include.
20137 (gimplify_function_tree): Dump function to gimple dump file.
20138 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
20141 2015-06-08 Tom de Vries <tom@codesourcery.com>
20143 PR tree-optimization/66435
20144 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
20147 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
20149 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
20150 of ptr_type_node to not be ptr_to_node.
20151 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
20152 TREE_TYPE of pointers.
20153 * gimple-expr.c (useless_type_conversion): Reorder the check for
20154 function pointers and TYPE_CANONICAL.
20156 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
20159 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
20160 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
20161 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
20163 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
20164 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
20165 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
20166 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
20167 and non iso if unix2003.
20169 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
20171 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
20173 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
20175 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
20176 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
20177 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
20178 except.c, final.c, function.c, gcse-common.c, genemit.c,
20179 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
20180 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
20181 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
20182 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
20185 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
20187 * combine.c (combine_split_insns): Remove cast.
20188 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
20189 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
20190 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
20191 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
20192 * genemit.c (gen_split): Change return type of generated functions to
20194 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
20195 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
20196 gen_peephole2_* functions.
20197 (print_subroutine, main): Likewise.
20198 * recog.c (peephole2_optimize): Remove cast.
20199 (peep2_next_insn): Promote return type to rtx_insn.
20200 * recog.h (peep2_next_insn): Fix prototype.
20201 * rtl.h (try_split, split_insns): Likewise.
20203 2015-06-06 DJ Delorie <dj@redhat.com>
20205 * config/msp430/msp430.c (msp430_asm_integer): Support addition
20206 and subtraction too.
20208 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
20211 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
20212 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
20213 instead of Snd. Disparage Sid/z alternative with '^'.
20215 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
20217 * dwarf2out.c: Remove deferred_locations*.
20218 (dwarf2_debug_hooks): Add early_finish hook.
20219 Remove global_decl hook.
20220 Add early_global_decl and late_global_decl hook.
20221 New global early_dwarf.
20222 New structure set_early_dwarf.
20223 (output_die): Indicate whether a DIE was generated early
20224 when generating assembly with -dA.
20225 (struct limbo_die_struct): Document created_for field.
20226 Remove file_table_last_lookup.
20227 (remove_AT): Return TRUE if successful.
20228 (remove_child_TAG): Clear die_parent.
20229 (reparent_child): New function abstracted from...
20230 (splice_child_die): ...here.
20231 (new_die): ICE if a DIE ends up in limbo too late.
20233 (defer_location): Remove.
20234 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
20235 (fill_variable_array_bounds): New.
20236 (decl_start_label): Call fill_variable_array_bounds.
20237 (gen_formal_parameter_die): Rewrite to reuse previously generated
20239 (gen_subprogram_die): Same.
20240 (gen_variable_die): Same.
20241 (gen_const_die): Same.
20242 (gen_label_die): Same.
20243 (gen_lexical_block_die): Same.
20244 (decl_will_get_specification_p): New.
20245 (local_function_static): New.
20246 (gen_struct_or_union_type_die): Fill in variable-length fields.
20247 (gen_typedef_die): Fill in variable-length typedefs.
20248 (gen_tagged_type_die): Gracefully return on error_mark_node.
20249 Handle re-entrancy.
20250 (gen_type_die_with_usage): Handle variable-length types.
20251 Remove duplicate code for ARRAY_TYPE case.
20252 (process_scope_var): Only process imported modules during early
20254 (dwarf2out_early_global_decl): New.
20255 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
20256 (dwarf2out_type_decl): Set early_dwarf while calling
20258 (dwarf2out_decl): Verify that we did not recreate a previously
20260 Do not return on DECL_EXTERNALs in VAR_DECLs.
20261 Abstract some code to local_function_static.
20262 (lookup_filename): Remove use of file_table_last_lookup.
20263 Gracefully exit on missing file_name.
20264 (dwarf2out_finish): Verify limbo list.
20265 Remove deferred_locations_list use.
20266 Move deferred_asm_name and limbo flushing to...
20267 (dwarf2out_early_finish): ...here. New.
20268 (dwarf2out_c_finalize): Remove set of deferred_location_list,
20269 deferred_asm_name, and file_table_last_lookup.
20270 * cgraph.h (referred_to_p): Add default argument.
20271 * cgraphunit.c (referred_to_p): Add and handle include_self
20273 (analyze_functions): Add first_time argument.
20274 Call check_global_declaration for all symbols.
20275 Call late_global_decl for nodes for moribund nodes.
20276 (finalize_compilation_unit): Add new argument to
20278 Call early_global_decl for functions.
20279 Call early_finish debug hook.
20280 * dbxout.c (dbxout_early_global_decl): New.
20281 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
20282 (dbx_debug_hooks): Add new hooks.
20283 (xcoff_debug_hooks): Same.
20284 * debug.c (do_nothing_debug_hooks): Add early_finish field.
20285 Add early and late debug hooks.
20286 Remove global_decl hook.
20287 * debug.h (struct gcc_debug_hooks): Add early_finish,
20288 early_global_decl, and late_global_decl fields.
20289 Remove global_decl field.
20290 Document gcc_debug_hooks.
20291 * gengtype.c (output_typename): Remove.
20292 * godump.c (go_early_global_decl): New.
20293 (go_late_global_decl): New.
20294 (go_global_decl): Remove.
20295 (dump_go_spec_init): Remove global_decl. Add
20296 {early,late}_global_decl.
20297 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
20298 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
20299 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
20300 (write_global_declarations): Remove.
20301 (global_decl_processing): New.
20302 * langhooks.h (struct lang_hooks_for_decls): Remove
20303 final_write_globals field.
20304 Add post_compilation_parsing_cleanups field.
20305 * passes.c (rest_of_decl_compilation): Call early_global_decl.
20306 * sdbout.c: Add early and late_global_decl hooks. Remove
20307 sdbout_global_decl hook.
20308 Add early_finish field for sdb_debug_hooks.
20309 (sdbout_global_decl): Remove.
20310 (sdbout_early_global_decl): New.
20311 (sdbout_late_global_decl): New.
20312 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
20313 * toplev.c (check_global_declaration): Rename from
20314 check_global_declaration_1.
20315 Adapt to use symtab infrastructure.
20316 (check_global_declarations): Remove.
20317 (emit_debug_global_declarations): Remove.
20318 (compile_file): Remove call to final_write_globals langhook.
20319 Run the actual compilation process.
20320 Perform any post compilation parser cleanups.
20321 Generate late debug info.
20322 * toplev.h (check_global_declaration): New.
20323 (check_global_declaration_1): Remove.
20324 (check_global_declarations): Remove.
20325 (write_global_declarations): Remove.
20326 (emit_debug_global_declarations): Remove.
20327 (global_decl_processing): New.
20328 * tree-core.h (struct tree_block): Add DIE field.
20329 * tree.h (BLOCK_DIE): New.
20330 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
20332 (vmsdbgout_early_global_decl): New.
20333 (vmsdbgout_late_global_decl): New.
20334 Add early_finish debug hook field to vmsdbg_debug_hooks.
20335 Remove vmsdbgout_decl to vmsdbgout_function_decl.
20336 Add early and late_global_decl debug hooks.
20338 2015-06-05 Julian Brown <julian@codesourcery.com>
20339 Sandra Loosemore <sandra@codesourcery.com>
20341 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
20342 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
20343 to print-sysroot-suffix.sh script.
20345 2015-06-05 Tom de Vries <tom@codesourcery.com>
20347 merge from gomp4 branch:
20348 2015-05-28 Tom de Vries <tom@codesourcery.com>
20350 PR tree-optimization/65443
20351 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
20352 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
20353 (try_transform_to_exit_first_loop_alt): New function.
20354 (transform_to_exit_first_loop): Use
20355 try_transform_to_exit_first_loop_alt.
20357 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
20359 * builtins.c (expand_builtin_atomic_compare_exchange): Call
20360 emit_cmp_and_jump_insns with the mode of target.
20362 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20364 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20366 2015-06-04 DJ Delorie <dj@redhat.com>
20368 * config/msp430/msp430.md (movsi_s): New. Special case for
20369 storing a 20-bit symbol into a 32-bit register.
20370 * config/msp430/msp430.c (msp430_subreg): Add support for it.
20371 * config/msp430/predicates.md (msp430_symbol_operand): New.
20373 2015-06-04 Sriraman Tallam <tmsriram@google.com>
20375 * c-family/c-common.c (noplt): New attribute.
20376 (handle_noplt_attribute): New handler.
20377 * calls.c (prepare_call_address): Check for noplt
20379 * config/i386/i386.c (ix86_expand_call): Check
20380 for noplt attribute.
20381 (ix86_nopic_noplt_attribute_p): New function.
20382 (ix86_output_call_insn): Output indirect call for non-pic
20384 * doc/extend.texi (noplt): Document new attribute.
20385 * doc/invoke.texi: Document new attribute.
20387 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
20389 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20390 real.h, and fixed-value.h when included in host source files.
20391 * double-int.h: Remove redundant #includes listed above.
20392 * fixed-value.h: Likewise.
20393 * real.h: Likewise.
20394 * wide-int.h: Likewise.
20395 * inchash.h: Likewise.
20396 * rtl.h: Add some include files When included from a generator file.
20397 * target.h: Remove wide-int.h and insn-modes.h from the include list.
20398 * internal-fn.h: Don't include coretypes.h.
20399 * alias.c: Adjust includes for restructured coretypes.h.
20400 * asan.c: Likewise.
20401 * attribs.c: Likewise.
20402 * auto-inc-dec.c: Likewise.
20403 * auto-profile.c: Likewise.
20404 * bb-reorder.c: Likewise.
20405 * bt-load.c: Likewise.
20406 * builtins.c: Likewise.
20407 * caller-save.c: Likewise.
20408 * calls.c: Likewise.
20409 * ccmp.c: Likewise.
20411 * cfganal.c: Likewise.
20412 * cfgbuild.c: Likewise.
20413 * cfgcleanup.c: Likewise.
20414 * cfgexpand.c: Likewise.
20415 * cfghooks.c: Likewise.
20416 * cfgloop.c: Likewise.
20417 * cfgloop.h: Likewise.
20418 * cfgloopanal.c: Likewise.
20419 * cfgloopmanip.c: Likewise.
20420 * cfgrtl.c: Likewise.
20421 * cgraph.c: Likewise.
20422 * cgraphbuild.c: Likewise.
20423 * cgraphclones.c: Likewise.
20424 * cgraphunit.c: Likewise.
20425 * cilk-common.c: Likewise.
20426 * combine-stack-adj.c: Likewise.
20427 * combine.c: Likewise.
20428 * compare-elim.c: Likewise.
20429 * convert.c: Likewise.
20430 * coverage.c: Likewise.
20431 * cppbuiltin.c: Likewise.
20432 * cprop.c: Likewise.
20434 * cselib.c: Likewise.
20435 * data-streamer-in.c: Likewise.
20436 * data-streamer-out.c: Likewise.
20437 * data-streamer.c: Likewise.
20438 * dbxout.c: Likewise.
20441 * debug.c: Likewise.
20442 * df-core.c: Likewise.
20443 * df-problems.c: Likewise.
20444 * df-scan.c: Likewise.
20447 * dojump.c: Likewise.
20448 * dominance.c: Likewise.
20449 * domwalk.c: Likewise.
20450 * double-int.c: Likewise.
20452 * dumpfile.c: Likewise.
20453 * dwarf2asm.c: Likewise.
20454 * dwarf2cfi.c: Likewise.
20455 * dwarf2out.c: Likewise.
20456 * dwarf2out.h: Likewise.
20457 * emit-rtl.c: Likewise.
20458 * et-forest.c: Likewise.
20459 * except.c: Likewise.
20460 * explow.c: Likewise.
20461 * expmed.c: Likewise.
20462 * expr.c: Likewise.
20463 * final.c: Likewise.
20464 * fixed-value.c: Likewise.
20465 * fold-const.c: Likewise.
20466 * function.c: Likewise.
20467 * fwprop.c: Likewise.
20468 * gcc-plugin.h: Likewise.
20469 * gcse.c: Likewise.
20470 * generic-match-head.c: Likewise.
20471 * ggc-page.c: Likewise.
20472 * gimple-builder.c: Likewise.
20473 * gimple-expr.c: Likewise.
20474 * gimple-fold.c: Likewise.
20475 * gimple-iterator.c: Likewise.
20476 * gimple-low.c: Likewise.
20477 * gimple-match-head.c: Likewise.
20478 * gimple-pretty-print.c: Likewise.
20479 * gimple-ssa-isolate-paths.c: Likewise.
20480 * gimple-ssa-strength-reduction.c: Likewise.
20481 * gimple-streamer-in.c: Likewise.
20482 * gimple-streamer-out.c: Likewise.
20483 * gimple-streamer.h: Likewise.
20484 * gimple-walk.c: Likewise.
20485 * gimple.c: Likewise.
20486 * gimplify-me.c: Likewise.
20487 * gimplify.c: Likewise.
20488 * godump.c: Likewise.
20489 * graph.c: Likewise.
20490 * graphite-blocking.c: Likewise.
20491 * graphite-dependences.c: Likewise.
20492 * graphite-interchange.c: Likewise.
20493 * graphite-isl-ast-to-gimple.c: Likewise.
20494 * graphite-optimize-isl.c: Likewise.
20495 * graphite-poly.c: Likewise.
20496 * graphite-scop-detection.c: Likewise.
20497 * graphite-sese-to-poly.c: Likewise.
20498 * graphite.c: Likewise.
20499 * haifa-sched.c: Likewise.
20500 * hooks.h: Likewise.
20501 * hw-doloop.c: Likewise.
20502 * ifcvt.c: Likewise.
20503 * incpath.c: Likewise.
20504 * init-regs.c: Likewise.
20505 * internal-fn.c: Likewise.
20506 * ipa-chkp.c: Likewise.
20507 * ipa-comdats.c: Likewise.
20508 * ipa-cp.c: Likewise.
20509 * ipa-devirt.c: Likewise.
20510 * ipa-icf-gimple.c: Likewise.
20511 * ipa-icf.c: Likewise.
20512 * ipa-inline-analysis.c: Likewise.
20513 * ipa-inline-transform.c: Likewise.
20514 * ipa-inline.c: Likewise.
20515 * ipa-polymorphic-call.c: Likewise.
20516 * ipa-profile.c: Likewise.
20517 * ipa-prop.c: Likewise.
20518 * ipa-pure-const.c: Likewise.
20519 * ipa-ref.c: Likewise.
20520 * ipa-reference.c: Likewise.
20521 * ipa-split.c: Likewise.
20522 * ipa-utils.c: Likewise.
20523 * ipa-visibility.c: Likewise.
20525 * ira-build.c: Likewise.
20526 * ira-color.c: Likewise.
20527 * ira-conflicts.c: Likewise.
20528 * ira-costs.c: Likewise.
20529 * ira-emit.c: Likewise.
20530 * ira-lives.c: Likewise.
20532 * jump.c: Likewise.
20533 * langhooks.c: Likewise.
20535 * loop-doloop.c: Likewise.
20536 * loop-init.c: Likewise.
20537 * loop-invariant.c: Likewise.
20538 * loop-iv.c: Likewise.
20539 * loop-unroll.c: Likewise.
20540 * lower-subreg.c: Likewise.
20541 * lra-assigns.c: Likewise.
20542 * lra-coalesce.c: Likewise.
20543 * lra-constraints.c: Likewise.
20544 * lra-eliminations.c: Likewise.
20545 * lra-lives.c: Likewise.
20546 * lra-remat.c: Likewise.
20547 * lra-spills.c: Likewise.
20549 * lto-cgraph.c: Likewise.
20550 * lto-compress.c: Likewise.
20551 * lto-opts.c: Likewise.
20552 * lto-section-in.c: Likewise.
20553 * lto-section-out.c: Likewise.
20554 * lto-streamer-in.c: Likewise.
20555 * lto-streamer-out.c: Likewise.
20556 * lto-streamer.c: Likewise.
20558 * mode-switching.c: Likewise.
20559 * modulo-sched.c: Likewise.
20560 * omega.c: Likewise.
20561 * omp-low.c: Likewise.
20562 * optabs.c: Likewise.
20563 * opts-global.c: Likewise.
20564 * passes.c: Likewise.
20565 * plugin.c: Likewise.
20566 * postreload-gcse.c: Likewise.
20567 * postreload.c: Likewise.
20568 * predict.c: Likewise.
20569 * print-rtl.c: Likewise.
20570 * print-tree.c: Likewise.
20571 * profile.c: Likewise.
20572 * real.c: Likewise.
20573 * realmpfr.c: Likewise.
20574 * realmpfr.h: Likewise.
20575 * recog.c: Likewise.
20577 * reg-stack.c: Likewise.
20578 * regcprop.c: Likewise.
20579 * reginfo.c: Likewise.
20580 * regrename.c: Likewise.
20581 * regs.h: Likewise.
20582 * regstat.c: Likewise.
20583 * reload.c: Likewise.
20584 * reload1.c: Likewise.
20585 * reorg.c: Likewise.
20586 * resource.c: Likewise.
20587 * rtl-chkp.c: Likewise.
20588 * rtlanal.c: Likewise.
20589 * rtlhooks.c: Likewise.
20590 * sanopt.c: Likewise.
20591 * sched-deps.c: Likewise.
20592 * sched-ebb.c: Likewise.
20593 * sched-rgn.c: Likewise.
20594 * sched-vis.c: Likewise.
20595 * sdbout.c: Likewise.
20596 * sel-sched-dump.c: Likewise.
20597 * sel-sched-ir.c: Likewise.
20598 * sel-sched.c: Likewise.
20599 * sese.c: Likewise.
20600 * shrink-wrap.c: Likewise.
20601 * shrink-wrap.h: Likewise.
20602 * simplify-rtx.c: Likewise.
20603 * stack-ptr-mod.c: Likewise.
20604 * statistics.c: Likewise.
20605 * stmt.c: Likewise.
20606 * stor-layout.c: Likewise.
20607 * store-motion.c: Likewise.
20608 * stringpool.c: Likewise.
20609 * symtab.c: Likewise.
20610 * target-globals.c: Likewise.
20611 * targhooks.c: Likewise.
20612 * toplev.c: Likewise.
20613 * tracer.c: Likewise.
20614 * trans-mem.c: Likewise.
20615 * tree-affine.c: Likewise.
20616 * tree-affine.h: Likewise.
20617 * tree-browser.c: Likewise.
20618 * tree-call-cdce.c: Likewise.
20619 * tree-cfg.c: Likewise.
20620 * tree-cfgcleanup.c: Likewise.
20621 * tree-chkp-opt.c: Likewise.
20622 * tree-chkp.c: Likewise.
20623 * tree-chrec.c: Likewise.
20624 * tree-complex.c: Likewise.
20625 * tree-data-ref.c: Likewise.
20626 * tree-dfa.c: Likewise.
20627 * tree-diagnostic.c: Likewise.
20628 * tree-dump.c: Likewise.
20629 * tree-eh.c: Likewise.
20630 * tree-emutls.c: Likewise.
20631 * tree-if-conv.c: Likewise.
20632 * tree-inline.c: Likewise.
20633 * tree-into-ssa.c: Likewise.
20634 * tree-iterator.c: Likewise.
20635 * tree-loop-distribution.c: Likewise.
20636 * tree-nested.c: Likewise.
20637 * tree-nrv.c: Likewise.
20638 * tree-object-size.c: Likewise.
20639 * tree-outof-ssa.c: Likewise.
20640 * tree-parloops.c: Likewise.
20641 * tree-phinodes.c: Likewise.
20642 * tree-predcom.c: Likewise.
20643 * tree-pretty-print.c: Likewise.
20644 * tree-pretty-print.h: Likewise.
20645 * tree-profile.c: Likewise.
20646 * tree-scalar-evolution.c: Likewise.
20647 * tree-sra.c: Likewise.
20648 * tree-ssa-address.c: Likewise.
20649 * tree-ssa-alias.c: Likewise.
20650 * tree-ssa-ccp.c: Likewise.
20651 * tree-ssa-coalesce.c: Likewise.
20652 * tree-ssa-copy.c: Likewise.
20653 * tree-ssa-copyrename.c: Likewise.
20654 * tree-ssa-dce.c: Likewise.
20655 * tree-ssa-dom.c: Likewise.
20656 * tree-ssa-dse.c: Likewise.
20657 * tree-ssa-forwprop.c: Likewise.
20658 * tree-ssa-ifcombine.c: Likewise.
20659 * tree-ssa-live.c: Likewise.
20660 * tree-ssa-loop-ch.c: Likewise.
20661 * tree-ssa-loop-im.c: Likewise.
20662 * tree-ssa-loop-ivcanon.c: Likewise.
20663 * tree-ssa-loop-ivopts.c: Likewise.
20664 * tree-ssa-loop-manip.c: Likewise.
20665 * tree-ssa-loop-niter.c: Likewise.
20666 * tree-ssa-loop-prefetch.c: Likewise.
20667 * tree-ssa-loop-unswitch.c: Likewise.
20668 * tree-ssa-loop.c: Likewise.
20669 * tree-ssa-loop.h: Likewise.
20670 * tree-ssa-math-opts.c: Likewise.
20671 * tree-ssa-operands.c: Likewise.
20672 * tree-ssa-phiopt.c: Likewise.
20673 * tree-ssa-phiprop.c: Likewise.
20674 * tree-ssa-pre.c: Likewise.
20675 * tree-ssa-propagate.c: Likewise.
20676 * tree-ssa-reassoc.c: Likewise.
20677 * tree-ssa-sccvn.c: Likewise.
20678 * tree-ssa-scopedtables.c: Likewise.
20679 * tree-ssa-sink.c: Likewise.
20680 * tree-ssa-strlen.c: Likewise.
20681 * tree-ssa-structalias.c: Likewise.
20682 * tree-ssa-tail-merge.c: Likewise.
20683 * tree-ssa-ter.c: Likewise.
20684 * tree-ssa-threadedge.c: Likewise.
20685 * tree-ssa-threadupdate.c: Likewise.
20686 * tree-ssa-uncprop.c: Likewise.
20687 * tree-ssa-uninit.c: Likewise.
20688 * tree-ssa.c: Likewise.
20689 * tree-ssanames.c: Likewise.
20690 * tree-stdarg.c: Likewise.
20691 * tree-streamer-in.c: Likewise.
20692 * tree-streamer-out.c: Likewise.
20693 * tree-streamer.c: Likewise.
20694 * tree-switch-conversion.c: Likewise.
20695 * tree-tailcall.c: Likewise.
20696 * tree-vect-data-refs.c: Likewise.
20697 * tree-vect-generic.c: Likewise.
20698 * tree-vect-loop-manip.c: Likewise.
20699 * tree-vect-loop.c: Likewise.
20700 * tree-vect-patterns.c: Likewise.
20701 * tree-vect-slp.c: Likewise.
20702 * tree-vect-stmts.c: Likewise.
20703 * tree-vectorizer.c: Likewise.
20704 * tree-vrp.c: Likewise.
20705 * tree.c: Likewise.
20706 * tsan.c: Likewise.
20707 * ubsan.c: Likewise.
20708 * valtrack.c: Likewise.
20709 * value-prof.c: Likewise.
20710 * var-tracking.c: Likewise.
20711 * varasm.c: Likewise.
20712 * varpool.c: Likewise.
20713 * vmsdbgout.c: Likewise.
20714 * vtable-verify.c: Likewise.
20716 * wide-int-print.cc: Likewise.
20717 * wide-int-print.h: Likewise.
20718 * wide-int.cc: Likewise.
20719 * xcoffout.c: Likewise.
20720 * config/aarch64/aarch64-builtins.c: Likewise.
20721 * config/aarch64/aarch64.c: Likewise.
20722 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20723 * config/alpha/alpha.c: Likewise.
20724 * config/arc/arc.c: Likewise.
20725 * config/arm/aarch-common.c: Likewise.
20726 * config/arm/arm-builtins.c: Likewise.
20727 * config/arm/arm-c.c: Likewise.
20728 * config/arm/arm.c: Likewise.
20729 * config/avr/avr-c.c: Likewise.
20730 * config/avr/avr-log.c: Likewise.
20731 * config/avr/avr.c: Likewise.
20732 * config/bfin/bfin.c: Likewise.
20733 * config/c6x/c6x.c: Likewise.
20734 * config/cr16/cr16.c: Likewise.
20735 * config/cris/cris.c: Likewise.
20736 * config/darwin-c.c: Likewise.
20737 * config/darwin.c: Likewise.
20738 * config/default-c.c: Likewise.
20739 * config/epiphany/epiphany.c: Likewise.
20740 * config/epiphany/mode-switch-use.c: Likewise.
20741 * config/epiphany/resolve-sw-modes.c: Likewise.
20742 * config/fr30/fr30.c: Likewise.
20743 * config/frv/frv.c: Likewise.
20744 * config/ft32/ft32.c: Likewise.
20745 * config/glibc-c.c: Likewise.
20746 * config/h8300/h8300.c: Likewise.
20747 * config/i386/i386-c.c: Likewise.
20748 * config/i386/i386.c: Likewise.
20749 * config/i386/msformat-c.c: Likewise.
20750 * config/i386/winnt-cxx.c: Likewise.
20751 * config/i386/winnt-stubs.c: Likewise.
20752 * config/i386/winnt.c: Likewise.
20753 * config/ia64/ia64-c.c: Likewise.
20754 * config/ia64/ia64.c: Likewise.
20755 * config/iq2000/iq2000.c: Likewise.
20756 * config/lm32/lm32.c: Likewise.
20757 * config/m32c/m32c-pragma.c: Likewise.
20758 * config/m32c/m32c.c: Likewise.
20759 * config/m32r/m32r.c: Likewise.
20760 * config/m68k/m68k.c: Likewise.
20761 * config/mcore/mcore.c: Likewise.
20762 * config/mep/mep-pragma.c: Likewise.
20763 * config/mep/mep.c: Likewise.
20764 * config/microblaze/microblaze-c.c: Likewise.
20765 * config/microblaze/microblaze.c: Likewise.
20766 * config/mips/mips.c: Likewise.
20767 * config/mmix/mmix.c: Likewise.
20768 * config/mn10300/mn10300.c: Likewise.
20769 * config/moxie/moxie.c: Likewise.
20770 * config/msp430/msp430-c.c: Likewise.
20771 * config/msp430/msp430.c: Likewise.
20772 * config/nds32/nds32-cost.c: Likewise.
20773 * config/nds32/nds32-fp-as-gp.c: Likewise.
20774 * config/nds32/nds32-intrinsic.c: Likewise.
20775 * config/nds32/nds32-isr.c: Likewise.
20776 * config/nds32/nds32-md-auxiliary.c: Likewise.
20777 * config/nds32/nds32-memory-manipulation.c: Likewise.
20778 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20779 * config/nds32/nds32-predicates.c: Likewise.
20780 * config/nds32/nds32.c: Likewise.
20781 * config/nios2/nios2.c: Likewise.
20782 * config/nvptx/nvptx.c: Likewise.
20783 * config/pa/pa.c: Likewise.
20784 * config/pdp11/pdp11.c: Likewise.
20785 * config/rl78/rl78-c.c: Likewise.
20786 * config/rl78/rl78.c: Likewise.
20787 * config/rs6000/rs6000-c.c: Likewise.
20788 * config/rs6000/rs6000.c: Likewise.
20789 * config/rx/rx.c: Likewise.
20790 * config/s390/s390-c.c: Likewise.
20791 * config/s390/s390.c: Likewise.
20792 * config/sh/sh-c.c: Likewise.
20793 * config/sh/sh-mem.cc: Likewise.
20794 * config/sh/sh.c: Likewise.
20795 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20796 * config/sh/sh_treg_combine.cc: Likewise.
20797 * config/sol2-c.c: Likewise.
20798 * config/sol2-cxx.c: Likewise.
20799 * config/sol2-stubs.c: Likewise.
20800 * config/sol2.c: Likewise.
20801 * config/sparc/sparc-c.c: Likewise.
20802 * config/sparc/sparc.c: Likewise.
20803 * config/spu/spu-c.c: Likewise.
20804 * config/spu/spu.c: Likewise.
20805 * config/stormy16/stormy16.c: Likewise.
20806 * config/tilegx/mul-tables.c: Likewise.
20807 * config/tilegx/tilegx-c.c: Likewise.
20808 * config/tilegx/tilegx.c: Likewise.
20809 * config/tilepro/mul-tables.c: Likewise.
20810 * config/tilepro/tilepro-c.c: Likewise.
20811 * config/tilepro/tilepro.c: Likewise.
20812 * config/v850/v850-c.c: Likewise.
20813 * config/v850/v850.c: Likewise.
20814 * config/vax/vax.c: Likewise.
20815 * config/visium/visium.c: Likewise.
20816 * config/vms/vms-c.c: Likewise.
20817 * config/vms/vms.c: Likewise.
20818 * config/vxworks.c: Likewise.
20819 * config/winnt-c.c: Likewise.
20820 * config/xtensa/xtensa.c: Likewise.
20821 * common/config/bfin/bfin-common.c: Likewise.
20823 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
20825 * tree.h (tree_code_for_canonical_type_merging): New function.
20826 * tree.c (gimple_canonical_types_compatible_p): Use
20827 tree_code_for_canonical_type_merging..
20829 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20833 * doc/tm.texi: Regenerate.
20834 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
20835 * target.def (TARGET_RELAXED_ORDERING): Likewise.
20836 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
20837 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
20838 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
20839 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
20840 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
20841 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
20842 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
20844 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20846 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
20847 register fma steering pass.
20848 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
20849 AARCH64_TUNE_FMA_STEERING.
20851 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
20853 * tree.c (verify_type_variant): Verify that type and variant is
20855 (gimple_canonical_types_compatible_p): Look for main variants.
20857 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
20859 * config.gcc (powerpc*-*-*): Add support for a new configure
20860 option --with-advance-toolchain=<xxx> which overrides using the
20861 default header files, libraries and dynamic linker.
20863 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
20864 specs to support the configure --with-advance-toolchain=<xxx>
20866 (INCLUDE_EXTRA_SPEC): Likewise.
20867 (LINK_OS_EXTRA_SPEC32): Likewise.
20868 (LINK_OK_EXTRA_SPEC64): Likewise.
20869 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
20870 (DYNAMIC_LINKER_PREFIX): Likewise.
20871 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
20873 (GLIBC_DYNAMIC_LINKER32): Likewise.
20874 (GLIBC_DYNAMIC_LINKER64): Likewise.
20875 (LINK_OS_LINUX_SPEC32): Likewise.
20876 (LINK_OS_LINUX_SPEC64): Likewise.
20878 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
20879 configuration option.
20881 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
20884 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
20885 to determine current function ABI.
20886 (ix86_function_value_regno_p): Ditto.
20888 2015-06-03 Martin Liska <mliska@suse.cz>
20890 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
20891 * bitmap.h (struct bitmap_usage): Likewise.
20892 * ggc-common.c (struct ggc_usage): Likewise.
20893 * mem-stats.h (struct mem_location): Likewise.
20894 (struct mem_usage): Likewise.
20895 * vec.c (struct vec_usage): Likewise.
20897 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
20899 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
20902 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
20904 * doc/plugins.texi (enum plugin_event): New event.
20905 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
20906 and PLUGIN_FINISH_FUNCTION.
20907 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
20908 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
20910 2015-06-03 Richard Biener <rguenther@suse.de>
20912 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20913 compute GROUP_GAP for the first element.
20914 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
20917 2015-06-03 Nick Clifton <nickc@redhat.com>
20919 * config/rl78/rl78-real.md: Add peepholes to avoid a register
20920 copy when calling a function.
20921 * config/rl78/rl78.c (need_to_save): Do not push the frame
20922 pointer in an interrupt handler prologue if it is never used.
20924 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20926 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
20928 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
20930 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
20931 reference when cloning alias node.
20933 2015-06-03 Martin Liska <mliska@suse.cz>
20935 * alloc-pool.h (struct pool_usage): Correct space padding.
20936 * ggc-page.c (ggc_print_statistics): Align columns in a report.
20937 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
20938 * tree.c (dump_tree_statistics): Align columns in a report.
20940 2015-06-03 Martin Liska <mliska@suse.cz>
20942 * alloc-pool.c (allocate_pool_descriptor): Remove.
20943 (struct pool_output_info): Likewise.
20944 (print_alloc_pool_statistics): Likewise.
20945 (dump_alloc_pool_statistics): Likewise.
20946 * alloc-pool.h (struct pool_usage): New struct.
20947 (pool_allocator::initialize): Change usage of memory statistics
20948 to a new interface.
20949 (pool_allocator::release): Likewise.
20950 (pool_allocator::allocate): Likewise.
20951 (pool_allocator::remove): Likewise.
20952 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
20953 for a pool allocator.
20954 * mem-stats.h (struct mem_location): Add new ctor.
20955 (struct mem_usage): Add counter for number of
20957 (mem_alloc_description::register_descriptor): New overload of
20958 * mem-stats.h (mem_location::to_string): New function.
20959 * bitmap.h (struct bitmap_usage): Use this new function.
20960 * ggc-common.c (struct ggc_usage): Likewise.
20963 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
20965 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
20966 of GCC_INSN_FLAGS_H block.
20968 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
20970 * explow.c (plus_constant): Update check after force_const_mem call
20971 to see if the value returned is not a NULL_RTX.
20973 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
20975 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
20976 remove instumentation thunks calling reachable functions.
20977 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
20978 * lto/lto-partition.c (privatize_symbol_name_1): New.
20979 (privatize_symbol_name): Privatize both decl and orig_decl
20980 names for instrumented functions.
20981 * cgraph.c (cgraph_node::verify_node): Add transparent
20982 alias chain check for instrumented node.
20984 2015-06-03 Marek Polacek <polacek@redhat.com>
20988 * tree.c (attribute_value_equal): Handle attribute format.
20989 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
20991 2015-06-03 Richard Biener <rguenther@suse.de>
20993 PR tree-optimization/63916
20994 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20995 Forward-propagate non-invariant addresses by splicing their
20996 reference ops if the result isn't going to be used by PRE.
20997 (vn_reference_lookup_3): Remove pointless assert.
20999 2015-06-03 Richard Biener <rguenther@suse.de>
21001 PR tree-optimization/66375
21002 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
21003 add to the evolution before following SSA edges.
21005 2015-06-03 Bin Cheng <bin.cheng@arm.com>
21007 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
21008 (dump_use, dump_cand, find_induction_variables): Pass new argument
21010 (record_use): Preserve the ssa name information in IV.
21012 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21014 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
21016 (add_mode_tests): Don't add mode tests if the predicate only
21017 accepts scalar constant integers. Otherwise, allow the mode
21018 of "op" to be VOIDmode if the predicate does accept such integers.
21020 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
21023 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
21024 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
21025 (aarch64_secondary_reload): Likewise
21026 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
21028 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
21031 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
21032 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21035 * cprop.c (try_replace_reg): Check cost of constants before propagating.
21037 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21039 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
21040 provide access to the IBM extended double floating point mode if
21041 long double is IEEE 128-bit floating point.
21042 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
21043 point if long double is the IBM extended double type.
21045 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
21046 enable adding IEEE 128-bit floating point support.
21047 (-mfloat128-software): Likewise.
21048 (-mfloat128-sw): Likewise.
21050 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
21051 128-bit floating point types to occupy any register if
21052 -mlong-double-64. Do not allow use of IFmode/KFmode unless
21053 -mfloat128-software is enabled.
21054 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
21056 (rs6000_option_override_internal): Add -mfloat128-* support.
21057 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
21059 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
21060 and float128 type nodes.
21061 (ieee128_float_type_node): Likewise.
21062 (ibm128_float_type_node): Likewise.
21064 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
21067 * config/aarch64/geniterators.sh: Rewrite in awk.
21069 2015-06-02 Martin Liska <mliska@suse.cz>
21071 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
21072 values to avoid -Wmaybe-uninitialized errors.
21074 2015-06-02 Richard Biener <rguenther@suse.de>
21077 * dwarf2out.c (lookup_context_die): New function.
21078 (resolve_addr): Avoid forcing a full DIE for the
21079 target of a DW_TAG_GNU_call_site during late compilation.
21080 Instead create a stub DIE without a type if we have a
21081 context DIE present.
21083 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
21085 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
21087 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21089 PR tree-optimization/48052
21090 * cfgloop.h (struct control_iv): New.
21091 (struct loop): New field control_ivs.
21092 * tree-ssa-loop-niter.c : Include "stor-layout.h".
21093 (number_of_iterations_lt): Set no_overflow information.
21094 (number_of_iterations_exit): Init control iv in niter struct.
21095 (record_control_iv): New.
21096 (estimate_numbers_of_iterations_loop): Call record_control_iv.
21097 (loop_exits_before_overflow): New. Interface factored out of
21098 scev_probably_wraps_p.
21099 (scev_probably_wraps_p): Factor loop niter related code into
21100 loop_exits_before_overflow.
21101 (free_numbers_of_iterations_estimates_loop): Free control ivs.
21102 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
21104 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
21106 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
21107 the target doesn't belong to the current function.
21109 2015-06-02 Marek Polacek <polacek@redhat.com>
21111 PR middle-end/66345
21112 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
21113 get_maxval_strlen does not produce an INTEGER_CST.
21115 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
21117 * config/arc/constraints.md: Use lower-case names in match_code.
21118 * config/mmix/constraints.md: Likewise.
21120 2015-06-02 Richard Biener <rguenther@suse.de>
21122 PR tree-optimization/65961
21123 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
21124 check and clarify dump message.
21125 (vect_build_slp_tree): If all children are built up from scalars
21126 build up the parent from scalars instead.
21127 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
21129 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
21132 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
21133 instead of print ... .
21135 2015-06-02 Alan Modra <amodra@gmail.com>
21137 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
21140 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21142 PR tree-optimization/52563
21143 PR tree-optimization/62173
21144 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
21145 (alloc_iv, set_iv): New parameter.
21146 (determine_biv_step): Delete.
21147 (find_bivs): Inline original determine_biv_step. Pass new
21148 argument to set_iv.
21149 (idx_find_step): Use no_overflow information for conversion.
21150 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
21151 resolve_mixers handle folded_casts.
21152 (instantiate_scev_name): Change bool parameter to bool pointer.
21153 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
21154 (instantiate_array_ref, instantiate_scev_not): Ditto.
21155 (instantiate_scev_3, instantiate_scev_2): Ditto.
21156 (instantiate_scev_1, instantiate_scev_r): Ditto.
21157 (instantiate_scev_convert, ): Change parameter. Pass argument
21158 to chrec_convert_aggressive.
21159 (instantiate_scev): Change argument.
21160 (resolve_mixers): New parameter and set it.
21161 (scev_const_prop): New argument.
21162 * tree-scalar-evolution.h (resolve_mixers): New parameter.
21163 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
21165 (chrec_convert): New parameter. Move definition below.
21166 (chrec_convert_aggressive): New parameter and set it. Call
21167 convert_affine_scev.
21168 * tree-chrec.h (chrec_convert): New parameter.
21169 (chrec_convert_aggressive): Ditto.
21171 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21173 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
21174 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
21175 the LHS of a no-return call if its type has variable size.
21176 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21177 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
21179 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
21181 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
21182 * config.in: Regenerate.
21184 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21186 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
21187 consecutive accesses within outer-loop with force_vectorize
21188 for references with zero step in inner-loop.
21190 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21192 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
21193 rather than from gcc/build directory.
21195 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21198 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
21199 for __sync memory models, emit initial loads and final barriers as
21202 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21205 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
21206 (aarch64_split_atomic_op): Check for __sync memory models, emit
21207 appropriate initial loads and final barriers.
21209 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21211 * Makefile.in: Fix gcov dependencies that should
21212 not point to a build folder.
21214 2015-06-01 Richard Biener <rguenther@suse.de>
21217 2015-05-29 Richard Biener <rguenther@suse.de>
21219 PR tree-optimization/66314
21220 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21221 parameter that says which loop the new block belongs to.
21222 (ssa_create_duplicates): Blocks duplicated for the threaded
21223 path belong to the loop of the thread destination.
21225 2015-06-01 Martin Liska <mliska@suse.cz>
21227 * sched-deps.c: Include pool-alloc.h before
21228 cselib.h header file is included.
21230 2015-06-01 Richard Biener <rguenther@suse.de>
21232 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
21235 2015-06-01 Martin Liska <mliska@suse.cz>
21237 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
21238 a function local variable.
21240 2015-06-01 Martin Liska <mliska@suse.cz>
21242 * alloc-pool.c (create_alloc_pool): Remove.
21243 (empty_alloc_pool): Likewise.
21244 (free_alloc_pool): Likewise.
21245 (free_alloc_pool_if_empty): Likewise.
21246 (pool_alloc): Likewise.
21247 (pool_free): Likewise.
21248 * alloc-pool.h: Remove old declarations.
21250 2015-06-01 Martin Liska <mliska@suse.cz>
21252 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
21253 (ira_create_object): Likewise.
21254 (ira_create_allocno): Likewise.
21255 (ira_create_live_range): Likewise.
21256 (copy_live_range): Likewise.
21257 (ira_finish_live_range): Likewise.
21258 (ira_free_allocno_costs): Likewise.
21259 (finish_allocno): Likewise.
21260 (finish_allocnos): Likewise.
21261 (initiate_prefs): Likewise.
21262 (ira_create_pref): Likewise.
21263 (finish_pref): Likewise.
21264 (finish_prefs): Likewise.
21265 (initiate_copies): Likewise.
21266 (ira_create_copy): Likewise.
21267 (finish_copy): Likewise.
21268 (finish_copies): Likewise.
21269 (finish_prefs): Likewise.
21271 2015-06-01 Martin Liska <mliska@suse.cz>
21273 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
21274 (allocate_and_init_ipcp_value): Likewise.
21275 (ipcp_lattice::add_value): Likewise.
21276 (merge_agg_lats_step): Likewise.
21277 (ipcp_driver): Likewise.
21278 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
21279 (ipa_free_all_structures_after_iinln): Likewise.
21280 * ipa-prop.h: Likewise.
21282 2015-06-01 Martin Liska <mliska@suse.cz>
21284 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
21286 (set_hint_predicate): Likewise.
21287 (inline_summary_alloc): Likewise.
21288 (reset_inline_edge_summary): Likewise.
21289 (reset_inline_summary): Likewise.
21290 (set_cond_stmt_execution_predicate): Likewise.
21291 (set_switch_stmt_execution_predicate): Likewise.
21292 (compute_bb_predicates): Likewise.
21293 (estimate_function_body_sizes): Likewise.
21294 (inline_free_summary): Likewise.
21296 2015-06-01 Martin Liska <mliska@suse.cz>
21298 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
21299 (ipa_edge_duplication_hook): Likewise.
21300 (ipa_free_all_structures_after_ipa_cp): Likewise.
21301 (ipa_free_all_structures_after_iinln): Likewise.
21303 2015-06-01 Martin Liska <mliska@suse.cz>
21305 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
21306 (ipa_profile_generate_summary): Likewise.
21307 (ipa_profile_read_summary): Likewise.
21308 (ipa_profile): Likewise.
21310 2015-06-01 Martin Liska <mliska@suse.cz>
21312 * tree-ssa-structalias.c (new_var_info): Use new type-based
21314 (new_constraint): Likewise.
21315 (init_alias_vars): Likewise.
21316 (delete_points_to_sets): Likewise.
21318 2015-06-01 Martin Liska <mliska@suse.cz>
21320 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
21321 (free_strinfo): Likewise.
21322 (pass_strlen::execute): Likewise.
21324 2015-06-01 Martin Liska <mliska@suse.cz>
21326 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
21328 (vn_reference_insert_pieces): Likewise.
21329 (vn_phi_insert): Likewise.
21330 (visit_reference_op_call): Likewise.
21331 (copy_phi): Likewise.
21332 (copy_reference): Likewise.
21333 (process_scc): Likewise.
21334 (allocate_vn_table): Likewise.
21335 (free_vn_table): Likewise.
21337 2015-06-01 Martin Liska <mliska@suse.cz>
21339 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
21341 (add_repeat_to_ops_vec): Likewise.
21342 (get_ops): Likewise.
21343 (maybe_optimize_range_tests): Likewise.
21344 (init_reassoc): Likewise.
21345 (fini_reassoc): Likewise.
21347 2015-06-01 Martin Liska <mliska@suse.cz>
21349 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
21351 (bitmap_set_new): Likewise.
21352 (get_or_alloc_expr_for_constant): Likewise.
21353 (get_or_alloc_expr_for): Likewise.
21354 (phi_translate_1): Likewise.
21355 (compute_avail): Likewise.
21356 (init_pre): Likewise.
21357 (fini_pre): Likewise.
21359 2015-06-01 Martin Liska <mliska@suse.cz>
21361 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21362 (delete_dep_node): Likewise.
21363 (create_deps_list): Likewise.
21364 (free_deps_list): Likewise.
21365 (sched_deps_init): Likewise.
21366 (sched_deps_finish): Likewise.
21368 2015-06-01 Martin Liska <mliska@suse.cz>
21370 * regcprop.c (free_debug_insn_changes): Use new type-based
21372 (replace_oldest_value_reg): Likewise.
21373 (pass_cprop_hardreg::execute): Likewise.
21375 2015-06-01 Martin Liska <mliska@suse.cz>
21377 * ira-build.c (initiate_cost_vectors): Use new type-based
21379 (ira_allocate_cost_vector): Likewise.
21380 (ira_free_cost_vector): Likewise.
21381 (finish_cost_vectors): Likewise.
21383 2015-06-01 Martin Liska <mliska@suse.cz>
21385 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21387 (free_sched_pools): Likewise.
21388 * sel-sched-ir.h (_list_alloc): Likewise.
21389 (_list_remove): Likewise.
21391 2015-06-01 Martin Liska <mliska@suse.cz>
21393 * stmt.c (add_case_node): Use new type-based pool allocator.
21394 (expand_case): Likewise.
21395 (expand_sjlj_dispatch_table): Likewise.
21397 2015-06-01 Martin Liska <mliska@suse.cz>
21399 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21400 (free_bb): Likewise.
21401 (pass_cse_reciprocals::execute): Likewise.
21403 2015-06-01 Martin Liska <mliska@suse.cz>
21405 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21406 (sra_deinitialize) Likewise.
21407 (create_access_1) Likewise.
21408 (build_accesses_from_assign) Likewise.
21409 (create_artificial_child_access) Likewise.
21411 2015-06-01 Martin Liska <mliska@suse.cz>
21413 * dse.c (get_group_info):Use new type-based pool allocator.
21414 (dse_step0) Likewise.
21415 (free_store_info) Likewise.
21416 (delete_dead_store_insn) Likewise.
21417 (free_read_records) Likewise.
21418 (record_store) Likewise.
21419 (replace_read) Likewise.
21420 (check_mem_read_rtx) Likewise.
21421 (scan_insn) Likewise.
21422 (dse_step1) Likewise.
21423 (dse_step7) Likewise.
21425 2015-06-01 Martin Liska <mliska@suse.cz>
21427 * df-scan.c (struct df_scan_problem_data):Use new type-based
21429 (df_scan_free_internal) Likewise.
21430 (df_scan_alloc) Likewise.
21431 (df_grow_reg_info) Likewise.
21432 (df_free_ref) Likewise.
21433 (df_insn_create_insn_record) Likewise.
21434 (df_mw_hardreg_chain_delete) Likewise.
21435 (df_insn_info_delete) Likewise.
21436 (df_free_collection_rec) Likewise.
21437 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21438 (df_sort_and_compress_mws) Likewise.
21439 (df_ref_create_structure) Likewise.
21440 (df_ref_record) Likewise.
21442 2015-06-01 Martin Liska <mliska@suse.cz>
21444 * df-problems.c (df_chain_create):Use new type-based pool allocator.
21445 (df_chain_unlink_1) Likewise.
21446 (df_chain_unlink) Likewise.
21447 (df_chain_remove_problem) Likewise.
21448 (df_chain_alloc) Likewise.
21449 (df_chain_free) Likewise.
21450 * df.h (struct dataflow) Likewise.
21452 2015-06-01 Martin Liska <mliska@suse.cz>
21454 * cselib.c (new_elt_list):Use new type-based pool allocator.
21455 (new_elt_loc_list) Likewise.
21456 (unchain_one_elt_list) Likewise.
21457 (unchain_one_elt_loc_list) Likewise.
21458 (unchain_one_value) Likewise.
21459 (new_cselib_val) Likewise.
21460 (cselib_init) Likewise.
21461 (cselib_finish) Likewise.
21463 2015-06-01 Martin Liska <mliska@suse.cz>
21465 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21466 (sh_reorg) Likewise.
21468 2015-06-01 Martin Liska <mliska@suse.cz>
21470 * cfg.c (initialize_original_copy_tables):Use new type-based
21472 (free_original_copy_tables) Likewise.
21473 (copy_original_table_clear) Likewise.
21474 (copy_original_table_set) Likewise.
21476 2015-06-01 Martin Liska <mliska@suse.cz>
21478 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21480 (asan_mem_ref_new) Likewise.
21481 (free_mem_ref_resources) Likewise.
21483 2015-06-01 Martin Liska <mliska@suse.cz>
21485 * var-tracking.c (variable_htab_free):Use new type-based
21487 (attrs_list_clear) Likewise.
21488 (attrs_list_insert) Likewise.
21489 (attrs_list_copy) Likewise.
21490 (shared_hash_unshare) Likewise.
21491 (shared_hash_destroy) Likewise.
21492 (unshare_variable) Likewise.
21493 (var_reg_delete_and_set) Likewise.
21494 (var_reg_delete) Likewise.
21495 (var_regno_delete) Likewise.
21496 (drop_overlapping_mem_locs) Likewise.
21497 (variable_union) Likewise.
21498 (insert_into_intersection) Likewise.
21499 (canonicalize_values_star) Likewise.
21500 (variable_merge_over_cur) Likewise.
21501 (dataflow_set_merge) Likewise.
21502 (remove_duplicate_values) Likewise.
21503 (variable_post_merge_new_vals) Likewise.
21504 (dataflow_set_preserve_mem_locs) Likewise.
21505 (dataflow_set_remove_mem_locs) Likewise.
21506 (variable_from_dropped) Likewise.
21507 (variable_was_changed) Likewise.
21508 (set_slot_part) Likewise.
21509 (clobber_slot_part) Likewise.
21510 (delete_slot_part) Likewise.
21511 (loc_exp_insert_dep) Likewise.
21512 (notify_dependents_of_changed_value) Likewise.
21513 (emit_notes_for_differences_1) Likewise.
21514 (vt_emit_notes) Likewise.
21515 (vt_initialize) Likewise.
21516 (vt_finalize) Likewise.
21518 2015-06-01 Martin Liska <mliska@suse.cz>
21520 * ira-color.c (init_update_cost_records):Use new type-based
21522 (get_update_cost_record) Likewise.
21523 (free_update_cost_record_list) Likewise.
21524 (finish_update_cost_records) Likewise.
21525 (initiate_cost_update) Likewise.
21527 2015-06-01 Martin Liska <mliska@suse.cz>
21529 * lra.c (init_insn_regs): Use new type-based pool allocator.
21530 (new_insn_reg) Likewise.
21531 (free_insn_reg) Likewise.
21532 (free_insn_regs) Likewise.
21533 (finish_insn_regs) Likewise.
21534 (init_insn_recog_data) Likewise.
21535 (init_reg_info) Likewise.
21536 (finish_reg_info) Likewise.
21537 (lra_free_copies) Likewise.
21538 (lra_create_copy) Likewise.
21539 (invalidate_insn_data_regno_info) Likewise.
21541 2015-06-01 Martin Liska <mliska@suse.cz>
21543 * lra-lives.c (free_live_range): Use new type-based pool allocator.
21544 (free_live_range_list) Likewise.
21545 (create_live_range) Likewise.
21546 (copy_live_range) Likewise.
21547 (lra_merge_live_ranges) Likewise.
21548 (remove_some_program_points_and_update_live_ranges) Likewise.
21549 (lra_live_ranges_init) Likewise.
21550 (lra_live_ranges_finish) Likewise.
21552 2015-06-01 Martin Liska <mliska@suse.cz>
21554 * et-forest.c (et_new_occ): Use new type-based pool allocator.
21555 (et_new_tree): Likewise.
21556 (et_free_tree): Likewise.
21557 (et_free_tree_force): Likewise.
21558 (et_free_pools): Likewise.
21559 (et_split): Likewise.
21561 2015-06-01 Martin Liska <mliska@suse.cz>
21563 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21565 * alloc-pool.h (pool_allocator::pool_allocator): New function.
21566 (pool_allocator::release): Likewise.
21567 (inline pool_allocator::release_if_empty): Likewise.
21568 (inline pool_allocator::~pool_allocator): Likewise.
21569 (pool_allocator::allocate): Likewise.
21570 (pool_allocator::remove): Likewise.
21572 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21574 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21577 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21579 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21581 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
21582 (arm_macro_fusion_p): Likewise.
21583 (arm_macro_fusion_pair_p): Likewise.
21585 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21587 * config/aarch64/aarch64-protos.h (tune_params): Rename
21588 fuseable_ops to fusible_ops.
21589 * config/aarch64/aarch64.c (generic_tunings): Rename
21590 fuseable_ops to fusible_ops.
21591 (cortexa53_tunings): Likewise.
21592 (cortexa57_tunings): Likewise.
21593 (thunderx_tunings): Likewise.
21594 (xgene1_tunings): Likewise.
21595 (aarch64_macro_fusion_p): Likewise.
21596 (aarch64_macro_fusion_pair_p): Likewise.
21598 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
21600 * config/s390/driver-native.c: New file.
21601 * config/s390/x-native: New file.
21602 * config.host: Add new files for s390.
21603 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
21605 * config.gcc: Likewise.
21606 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
21607 * config/s390/s390-opts.h (enum processor_type): Ditto.
21608 * config/s390/s390.c (s390_option_override): Catch unhandled
21611 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
21614 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
21615 redirection for instrumented calls.
21616 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
21617 (append_compiler_options): Append -fcheck-pointer-bounds.
21618 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
21619 (chkp_redirect_edge): New.
21620 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
21621 (chkp_redirect_edge): New.
21623 2015-06-01 Richard Biener <rguenther@suse.de>
21625 PR tree-optimization/66280
21626 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
21629 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21631 * config/aarch64/aarch64.md
21632 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
21635 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21637 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
21638 Remove obsolete kludge.
21640 2015-06-01 Richard Biener <rguenther@suse.de>
21642 * tree-ssa-reassoc.c (get_rank): Simplify.
21644 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
21646 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
21647 * configure: Regenerated.
21649 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
21651 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
21652 issue (add space between string literal and macro).
21653 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
21655 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
21657 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
21658 implict or explicit -fPIE or -fpie.
21660 2015-05-30 Mike Frysinger <vapier@gentoo.org>
21662 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
21664 2015-05-28 DJ Delorie <dj@redhat.com>
21666 * expmed.c (extract_bit_field_1): Avoid clobbering a
21667 yet-to-be-used base/index register.
21669 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
21671 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
21672 (alias_stats): Add num_universal.
21673 (alias_set_subset_of): Special case pointers; be ready for NULL
21675 (alias_sets_conflict_p): Special case pointers; be ready for NULL
21677 (init_alias_set_entry): Break out from ...
21678 (record_alias_subset): ... here; propagate new fields;
21679 allocate children only when really needed.
21680 (get_alias_set): Do less generous pointer globbing.
21681 (dump_alias_stats_in_alias_c): Update statistics.
21683 2015-05-30 Alan Modra <amodra@gmail.com>
21685 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
21686 correct block for use of r12.
21687 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
21689 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21692 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
21695 2015-05-29 Jakub Jelinek <jakub@redhat.com>
21697 PR tree-optimization/66142
21698 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
21699 virtual phis that feed themselves.
21701 2015-05-29 Richard Biener <rguenther@suse.de>
21703 PR tree-optimization/66314
21704 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21705 parameter that says which loop the new block belongs to.
21706 (ssa_create_duplicates): Blocks duplicated for the threaded
21707 path belong to the loop of the thread destination.
21709 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21711 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
21712 to cleanup-saved-temps.
21713 * doc/sourcebuild.texi (Clean up generated test files): Expand
21715 (dg-keep-saved-temps): Document new proc.
21716 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
21717 cleanup-saved-temps): Remove.
21719 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
21721 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
21722 gcc_AC_CHECK_DECLS.
21723 * configure: Regenerate.
21725 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21727 * config/nios2/linux.h (CPP_SPEC): Define.
21729 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21731 * config/microblaze/linux.h (CPP_SPEC): Define.
21733 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21735 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
21736 -pthread is specified.
21738 2015-05-28 Richard Biener <rguenther@suse.de>
21740 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
21741 (vect_fixup_scalar_cycles_with_patterns): Likewise.
21742 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
21743 after pattern recog.
21744 (vect_create_epilog_for_reduction): Properly handle reductions
21746 (vectorizable_reduction): Likewise.
21747 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
21749 (vect_get_constant_vectors): Create the correct number of
21750 initial values for reductions.
21751 (vect_schedule_slp_instance): Handle reduction chains that are
21752 type changing properly.
21753 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
21755 2015-05-28 Richard Biener <rguenther@suse.de>
21757 PR tree-optimization/66142
21758 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
21759 values better in memcpy destination handling. Handle non-aliasing
21762 2015-05-28 Lawrence Velázquez <vq@larryv.me>
21765 * config/darwin-c.c (version_components): New global enum.
21766 (parse_version, version_as_legacy_macro)
21767 (version_as_modern_macro, macosx_version_as_macro): New functions.
21768 (version_as_macro): Remove.
21769 (darwin_cpp_builtins): Use new function.
21771 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
21773 * builtins.c (expand_builtin_acc_on_device): Mark parameters
21774 with ATTRIBUTE_UNUSED.
21776 2015-05-28 Julian Brown <julian@codesourcery.com>
21780 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
21781 sequence for !ACCEL_COMPILER.
21783 2015-05-28 Nick Clifton <nickc@redhat.com>
21785 * config/rx/rx.c (push_regs): New function. Extracts code from...
21786 (rx_expand_prologue): ... here. Use push_regs to push even small
21787 spans of registers.
21788 (pop_regs): New function.
21789 (rx_expand_epilogue): Use pop_regs to pop even small spans of
21792 2015-05-28 Richard Biener <rguenther@suse.de>
21794 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
21796 (SLP_INSTANCE_BODY_COST_VEC): Remove.
21797 (vect_update_slp_costs_according_to_vf): Likewise.
21798 (vect_slp_analyze_operations): Update prototype.
21799 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
21800 vect_update_slp_costs_according_to_vf, adjust.
21801 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
21802 (vect_analyze_slp_cost_1): Likewise.
21803 (vect_analyze_slp_cost): Likewise. Properly deal with
21804 widening reduction ops. Commit body costs.
21805 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
21806 cost for loops from here.
21807 (vect_slp_analyze_operations): But do it from here when
21808 the vectorization factor is known and stmts are analyzed.
21809 (vect_bb_vectorization_profitable_p): Simplify.
21810 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
21811 (vect_update_slp_costs_according_to_vf): Remove.
21813 2015-05-27 Magnus Granberg <zorry@gentoo.org>
21814 H.J. Lu <hongjiu.lu@intel.com>
21816 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
21817 (BUILD_CFLAGS): Likewise.
21818 (BUILD_CXXFLAGS): Likewise.
21819 (LINKER): Add @NO_PIE_FLAG@.
21820 (BUILD_LDFLAGS): Likewise.
21821 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
21822 --enable-default-pie.
21823 * common.opt (fPIE): Initialize to -1.
21825 (no-pie): New option.
21826 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
21827 * configure.ac: Add --enable-default-pie.
21828 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
21829 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
21830 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
21831 * gcc.c (NO_PIE_SPEC): New.
21832 (PIE_SPEC): Likewise.
21833 (NO_FPIE1_SPEC): Likewise.
21834 (FPIE1_SPEC): Likewise.
21835 (NO_FPIE2_SPEC): Likewise.
21836 (FPIE2_SPEC): Likewise.
21837 (NO_FPIE2_SPEC): Likewise.
21838 (FPIE_SPEC): Likewise.
21839 (NO_FPIE_SPEC): Likewise.
21840 (NO_FPIC1_SPEC): Likewise.
21841 (FPIC1_SPEC): Likewise.
21842 (NO_FPIC2_SPEC): Likewise.
21843 (FPIC2_SPEC): Likewise.
21844 (NO_FPIC2_SPEC): Likewise.
21845 (FPIC_SPEC): Likewise.
21846 (NO_FPIC_SPEC): Likewise.
21847 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
21848 (FPIE1_OR_FPIC1_SPEC): Likewise.
21849 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
21850 (FPIE2_OR_FPIC2_SPEC): Likewise.
21851 (NO_FPIE_AND_FPIC_SPEC): Likewise.
21852 (FPIE_OR_FPIC_SPEC): Likewise.
21853 (LD_PIE_SPEC): Likewise.
21854 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
21855 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
21856 * config/darwin.h (PIE_SPEC): Renamed to ...
21857 (DARWIN_PIE_SPEC): This.
21858 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
21859 * config/darwin9.h (PIE_SPEC): Renamed to ...
21860 (DARWIN_PIE_SPEC): This.
21861 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
21862 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21863 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
21864 FPIE2_OR_FPIC2_SPEC.
21865 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
21866 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
21867 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
21868 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21869 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21870 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21871 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
21872 * config/m32r/m32r.h (ASM_SPEC): Likewise.
21873 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
21874 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
21875 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
21876 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
21877 * config/sparc/linux.h (ASM_SPEC): Likewise.
21878 * config/sparc/linux64.h (ASM_SPEC): Likewise.
21879 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
21880 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
21881 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21882 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21883 * config/sparc/sparc.h (ASM_SPEC): Likewise.
21884 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
21885 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
21886 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
21887 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
21888 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
21889 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
21890 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
21891 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
21892 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
21893 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
21894 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
21895 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
21896 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21897 * config/vax/linux.h (ASM_SPEC): Likewise.
21898 * doc/install.texi: Document --enable-default-pie.
21899 * doc/invoke.texi: Document -no-pie.
21900 * config.in: Regenerated.
21901 * configure: Likewise.
21903 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21905 PR rtl-optimization/66168
21906 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
21907 can_move_invariant_reg.
21909 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
21912 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
21913 REG_EQUAL note when doing insert.
21915 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
21916 instead of "%d" for 'o' operand.
21918 2015-05-27 Nathan Sidwell <nathan@acm.org>
21921 * tree.c (build_pointer_type_for_mode): Canonical type does not
21922 inherit can_alias_all.
21923 (build_reference_type_for_mode): Likewise.
21925 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
21927 * expr.h (array_at_struct_end_p): Move to...
21928 (array_ref_element_size): Likewise.
21929 (component_ref_field_offset): Likewise.
21930 * tree.h (array_ref_element_size): ...here.
21931 (array_at_struct_end_p): Likewise.
21932 (component_ref_field_offset): Likewise.
21933 * expr.c (array_ref_element_size): Move to...
21934 (array_ref_low_bound): Likewise.
21935 (array_at_struct_end_p): Likewise.
21936 (array_ref_up_bound): Likewise.
21937 (component_ref_field_offset): Likewise.
21938 * tree.c (array_ref_element_size): ...here.
21939 (array_ref_low_bound): Likewise.
21940 (array_ref_up_bound): Likewise.
21941 (array_at_struct_end_p): Likewise.
21942 (component_ref_field_offset): Likewise.
21944 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
21945 Szabolcs Nagy <szabolcs.nagy@arm.com>
21947 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
21949 2015-05-27 Jason Merrill <jason@redhat.com>
21952 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
21953 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
21954 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
21956 2015-05-22 Aditya Kumar <hiraditya@msn.com>
21958 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
21961 * statistics.c (statistics_fini_pass): Print pass name.
21963 2015-05-27 Richard Biener <rguenther@suse.de>
21965 PR tree-optimization/66272
21967 2014-08-15 Richard Biener <rguenther@suse.de>
21969 PR tree-optimization/62031
21970 * tree-data-ref.c (dr_analyze_indices): Do not set
21971 DR_UNCONSTRAINED_BASE.
21972 (dr_may_alias_p): All indirect accesses have to go the
21973 formerly DR_UNCONSTRAINED_BASE path.
21974 * tree-data-ref.h (struct indices): Remove
21975 unconstrained_base member.
21976 (DR_UNCONSTRAINED_BASE): Remove.
21978 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
21980 * dwarf2out.c: Remove block_map.
21981 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
21982 (gen_lexical_block_die): Same.
21983 (dwarf2out_function_decl): Remove block_map use.
21984 (dwarf2out_c_finalize): Same.
21985 * tree-core.h (struct tree_block): Add die field.
21986 * tree.h (BLOCK_DIE): New.
21988 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21991 * expr.c (memory_load_overlap): New function.
21992 (emit_push_insn): When pushing partial args to the stack would
21993 clobber the register part load the overlapping part into a pseudo
21994 and put it into the hard reg after pushing. Change return type
21995 to bool. Add bool argument.
21996 * expr.h (emit_push_insn): Change return type to bool.
21998 * calls.c (expand_call): Cancel sibcall optimization when encountering
21999 partial argument on targets with ARGS_GROW_DOWNWARD and
22000 !STACK_GROWS_DOWNWARD.
22001 (emit_library_call_value_1): Update callsite of emit_push_insn.
22002 (store_one_arg): Likewise.
22004 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22006 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
22008 2015-05-27 Martin Liska <mliska@suse.cz>
22010 * Makefile.in: Add additional dependencies related to memory report
22012 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
22013 * bitmap.c (struct bitmap_descriptor_d): Remove.
22014 (struct loc): Likewise.
22015 (struct bitmap_desc_hasher): Likewise.
22016 (bitmap_desc_hasher::hash): Likewise.
22017 (bitmap_desc_hasher::equal): Likewise.
22018 (get_bitmap_descriptor): Likewise.
22019 (bitmap_register): User new memory descriptor API.
22020 (register_overhead): Likewise.
22021 (bitmap_find_bit): Register nsearches and search_iter statistics.
22022 (struct bitmap_output_info): Remove.
22023 (print_statistics): Likewise.
22024 (dump_bitmap_statistics): Use new memory descriptor.
22025 * bitmap.h (struct bitmap_usage): New class.
22026 * genmatch.c: Extend header file inclusion.
22027 * genpreds.c: Likewise.
22028 * ggc-common.c (struct ggc_usage): New class.
22029 (struct ggc_loc_desc_hasher): Remove.
22030 (ggc_loc_desc_hasher::hash): Likewise.
22031 (ggc_loc_desc_hasher::equal): Likewise.
22032 (struct ggc_ptr_hash_entry): Likewise.
22033 (struct ptr_hash_hasher): Likewise.
22034 (ptr_hash_hasher::hash): Likewise.
22035 (ptr_hash_hasher::equal): Likewise.
22036 (make_loc_descriptor): Likewise.
22037 (ggc_prune_ptr): Likewise.
22038 (dump_ggc_loc_statistics): Use new memory descriptor.
22039 (ggc_record_overhead): Likewise.
22040 (ggc_free_overhead): Likewise.
22041 (final_cmp_statistic): Remove.
22042 (cmp_statistic): Likewise.
22043 (ggc_add_statistics): Liekwise.
22044 (ggc_prune_overhead_list): Likewise.
22045 * hash-map-traits.h: New file.
22046 * hash-map.h (struct default_hashmap_traits): Move the traits to a
22047 separate header file.
22048 * hash-set.h: Pass memory statistics info to ctor.
22049 * hash-table.c (void dump_hash_table_loc_statistics): New function.
22050 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
22051 (hash_table::~hash_table): Register memory release operation.
22052 (hash_table::alloc_entries): Handle memory allocation operation.
22053 (hash_table::expand): Likewise.
22054 * inchash.c (iterative_hash_hashval_t): Move implementation to header
22056 (iterative_hash_host_wide_int): Likewise.
22057 * inchash.h (class hash): Likewise.
22058 * mem-stats-traits.h: New file.
22059 * mem-stats.h: New file.
22060 (mem_location): Add new class.
22061 (mem_usage): Likewise.
22062 (mem_alloc_description): Likewise.
22063 * sese.c: Add new header file inclusision.
22064 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
22066 * tree-sra.c: Add new header file inclusision.
22067 * vec.c (struct vec_descriptor): Remove.
22068 (hash_descriptor): Likewise.
22069 (struct vec_usage): Likewise.
22070 (struct ptr_hash_entry): Likewise.
22071 (hash_ptr): Likewise.
22072 (eq_ptr): Likewise.
22073 (vec_prefix::register_overhead): Use new memory descriptor API.
22074 (vec_prefix::release_overhead): Likewise.
22075 (add_statistics): Remove.
22076 (dump_vec_loc_statistics): Use new memory descriptor API.
22077 * vec.h (struct vec_prefix): Likewise.
22078 (va_heap::reserve): Likewise.
22079 (va_heap::release): Likewise.
22080 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
22082 2015-05-27 Richard Biener <rguenther@suse.de>
22084 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
22085 earlier and remove ??? comment.
22086 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
22087 and got called from loop analysis bail out. Always pass the SLP
22088 node to the vectorizable_* functions.
22089 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
22090 the premature SLP check here.
22091 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
22092 detected SLP stmts.
22093 (vect_detect_hybrid_slp_1): Likewise.
22095 2015-05-26 Jeff Law <law@redhat.com>
22097 * combine.c (find_split_point): Verify that the shift count is a
22098 constant when choosing (plus (ashift ...)) as a split point.
22100 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
22101 No functional changes.
22103 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
22105 * ipa-polymorphic-call.c
22106 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
22107 case when call target is already known.
22109 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
22112 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
22113 take into account the case that operands[1] and operands[2]
22114 are the same register.
22116 2015-05-26 Michael Matz <matz@suse.de>
22118 PR middle-end/66251
22120 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
22122 (vect_create_vectorized_demotion_stmts): Always set
22123 STMT_VINFO_VEC_STMT, also with SLP.
22124 (vectorizable_store): Handle strided group stores.
22126 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22129 * config/aarch64/aarch64.md
22130 (*adds_shift_imm_<mode>): New pattern.
22131 (*subs_shift_imm_<mode>): Likewise.
22132 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22133 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22134 (*add_uxt<mode>_shift2): Likewise.
22135 (*add_uxtsi_shift2_uxtw): Likewise.
22136 (*sub_uxt<mode>_shift2): Likewise.
22137 (*sub_uxtsi_shift2_uxtw): Likewise.
22139 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
22141 * config/rs6000/constraints.md (Y, U): Use match_test.
22143 2015-05-26 Christian Bruel <christian.bruel@st.com>
22146 * config/arm/arm.c (arm_option_check_internal)
22147 (arm_option_params_internal): Check opts->target_flags to set macros.
22148 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22149 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
22150 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22151 (builtin_define): Replaced with def_or_undef_macro.
22152 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22153 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
22154 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22155 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
22156 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
22157 (TARGET_ARM_FEATURE_LDREX_P)
22158 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
22159 * config/arm/arm-c.c (def_or_undef_macro): New function.
22160 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
22162 2015-05-26 Christian Bruel <christian.bruel@st.com>
22164 * c-common.h (builtin_define_with_int_value)
22165 (builtin_define_type_sizeof): Declare.
22166 * c-cppbuiltin.c (builtin_define_with_int_value)
22167 (builtin_define_type_sizeof): Externalize.
22168 (builtin_define_std): Cleanup declaration.
22169 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
22170 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
22171 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
22172 (builtin_define, builtin_assert): New macros.
22174 2015-05-26 Richard Biener <rguenther@suse.de>
22176 PR tree-optimization/66142
22177 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
22178 MEM_REFs for the same base address.
22180 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22183 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
22185 2015-05-26 Jason Merrill <jason@redhat.com>
22187 * configure.ac: Set CXXFLAGS for ISL test.
22188 * configure: Regenerate.
22190 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
22191 strstr and basename.
22192 * configure: Regenerate.
22194 2015-05-26 Richard Biener <rguenther@suse.de>
22196 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
22197 X % C -> X & (C - 1) for C being a power-of two to ...
22198 * match.pd: ... patterns.
22200 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
22202 * match.pd (swapped_tcc_comparison): New operator list.
22203 (-A CMP -B): New simplification.
22204 * fold-const.c (fold_comparison): Remove corresponding code.
22206 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22208 * caller-save.c (init_caller_save): Base temporary register numbers
22209 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
22210 * cfgloopanal.c (init_set_costs): Likewise.
22211 * dojump.c (prefer_and_bit_test): Likewise.
22212 * expr.c (init_expr_target): Likewise.
22213 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22214 * lower-subreg.c (init_lower_subreg): Likewise.
22215 * postreload.c (reload_cse_regs_1): Likewise.
22217 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22219 * gensupport.h (compute_test_codes): Declare.
22220 * gensupport.c (compute_predicate_codes): Rename to...
22221 (compute_test_codes): ...this. Generalize error message.
22222 (process_define_predicate): Update accordingly.
22223 * genpreds.c (compute_maybe_allows): Delete.
22224 (add_constraint): Use compute_test_codes to determine whether
22225 something can accept a SUBREG, REG or MEM.
22227 2015-05-26 Torvald Riegel <triegel@redhat.com>
22229 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
22230 'memory model' to align with C++11; fix description of memory orders;
22233 2015-05-26 Richard Biener <rguenther@suse.de>
22235 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
22236 (vect_analyze_loop_operations): ... here. Remove slp parameter,
22237 detect whether we apply SLP. Remove call to
22238 vect_update_slp_costs_according_to_vf.
22239 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
22240 vect_update_slp_costs_according_to_vf from here. Dispatch
22241 to vect_slp_analyze_operations to analyze SLP stmts.
22242 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
22243 unused bb_vec_info parameter, adjust assert.
22244 (vect_slp_analyze_operations): Pass in the slp instance tree
22245 instead of bb_vec_info.
22246 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
22247 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
22249 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22251 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
22252 Q_REGS. Expand comment.
22253 (REG_CLASS_NAMES): Ditto.
22254 (REG_CLASS_CONTENTS): Ditto.
22256 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
22259 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
22260 when LEGACY_INT_REGNO_P is processed.
22262 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22264 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
22266 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22268 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
22269 register if not marked dead/unused, before return.
22271 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22274 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
22275 is set; check for assembler name at LTO time.
22276 (type_in_anonymous_namespace): Remove hacks, check that all
22277 anonymous types are called "<anon>"
22278 (odr_type_p): Simplify; add check for "<anon>"
22279 (odr_subtypes_equivalent): Add odr_type_p check.
22280 * tree.c (need_assembler_name_p): Even anonymous namespace needs
22283 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22285 * ipa-utils.h (method_class_type): Remove.
22286 * cgraphunit.c (walk_polymorphic_call_targets): Use
22287 TYPE_METHOD_BASETYPE.
22288 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
22289 on main variants only.
22290 (method_class_type): Remove.
22291 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
22292 (build_type_inheritance_graph): Likewise.
22293 * ipa-icf.c (sem_function::equals_wpa): Likewise.
22294 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
22295 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
22297 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22299 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
22300 is_typedef_decl, typedef_variant_p): Constify.
22301 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
22302 is_typedef_decl, typedef_variant_p): Constify.
22304 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22306 * defaults.h (gen_tablejump): New function.
22307 (HAVE_tablejump): Add default value.
22309 * stmt.c: Likewise.
22311 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22313 * defaults.h (gen_store_multiple): New function.
22314 (HAVE_store_multiple): Add default value.
22315 * expr.c (move_block_from_reg): Adjust.
22317 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22319 * defaults.h (gen_load_multiple): New function.
22320 (HAVE_load_multiple): Add default value.
22321 * expr.c (move_block_to_reg): Adjust.
22323 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22325 * defaults.h (gen_mem_signal_fence): New function.
22326 (HAVE_mem_signal_fence): Add default value.
22327 * optabs.c: Adjust.
22329 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22331 * defaults.h (gen_memory_barrier): New function.
22332 (HAVE_memory_barrier): Add default value.
22333 * optabs.c: Adjust.
22335 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22337 * defaults.h (gen_mem_thread_fence): New function.
22338 (HAVE_mem_thread_fence): Add default definition.
22339 * optabs.c: Adjust.
22341 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22343 * combine.c (find_split_point): Check the value of HAVE_lo_sum
22344 instead of if it is defined.
22345 (combine_simplify_rtx): Likewise.
22346 * lra-constraints.c (process_address_1): Likewise.
22347 * config/darwin.c: Adjust.
22348 * genconfig.c (main): Always define HAVE_lo_sum.
22350 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22352 * genmatch.c (parser::parse_operation): Reject expanding
22353 operator-list inside 'for'.
22355 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22357 * genmatch.c (parser::parse_for): Reject iterator if used as
22360 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22362 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22363 after end of id-list.
22365 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22367 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22368 we do not try to compute canonical type for type that does not need
22370 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22372 * tree.h (type_with_alias_set_p): New.
22374 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22376 * tree.c (gimple_canonical_types_compatible_p): Do not compare
22377 function attributes.
22378 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22380 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
22382 * Makefile.in (check_gcc_parallelize): Delete.
22383 (lang_checks_parallelized): Update comment.
22385 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
22387 PR rtl-optimization/66237
22388 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22389 location of an "as_a" cast.
22391 2015-05-22 Jeff Law <law@redhat.com>
22393 * config/pa/pa.md (non-canonical shift-add insns): Remove.
22394 (peepholes with non-canonical RTL sources): Remove.
22395 (peepholes for indexed stores of FP regs in integer modes): Match and
22396 generate canonical RTL.
22398 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22400 PR tree-optimization/63387
22401 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22402 ((x ord x) & (y ord y) -> (x ord y),
22403 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22404 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22405 vectors like scalars.
22407 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22409 * convert.c (convert_to_integer, convert_to_vector): Include the
22410 types in the error message.
22412 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22414 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22417 2015-05-22 Jeff Law <law@redhat.com>
22419 * config/pa/pa.md (integer_indexed_store splitters): Use
22420 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
22421 insns -- adjusting the constant 2nd operand accordingly.
22423 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22424 (plus (ashift X log2) Y) if it is a split point.
22426 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22427 out of hppa_legitimize_address to handle both forms of a multiply
22429 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22430 Always generate the ASHIFT variant as the result is not directly
22431 used in a MEM. Update comments and refactor slightly to improve
22434 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22437 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22438 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
22439 (aarch64_composite_type_p): Return false if given type and mode are
22440 for a short vector.
22442 2015-05-22 Richard Biener <rguenther@suse.de>
22444 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22446 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22447 patterns when determining whether SLP is pure.
22448 (vect_is_slp_reduction): Remove check for pattern stmts.
22449 (vect_is_simple_reduction_1): Remove dead code.
22450 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22451 (vect_get_and_check_slp_defs): Pass in the stmt number.
22452 Allow the first def in a reduction to be not a pattern stmt when
22453 the rest of the stmts def are patterns.
22454 (vect_build_slp_tree_1): Allow tcc_expression codes like
22455 SAD_EXPR and DOT_PROD_EXPR.
22456 (vect_build_slp_tree): Adjust.
22457 (vect_analyze_slp): Refactor and move BB vect error message ...
22458 (vect_slp_analyze_bb_1): ... here.
22460 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
22462 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22463 for CSWTCH temporary.
22465 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22467 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22468 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
22471 2015-05-22 Richard Biener <rguenther@suse.de>
22473 PR tree-optimization/66251
22474 * tree-vect-stmts.c (vectorizable_conversion): Properly
22475 set STMT_VINFO_VEC_STMT even for the SLP case.
22477 2015-05-22 Marek Polacek <polacek@redhat.com>
22479 * doc/extend.texi: Use @pxref instead of @xref.
22481 2015-05-22 hiraditya <hiraditya@msn.com>
22483 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22486 2015-05-22 Richard Biener <rguenther@suse.de>
22488 PR tree-optimization/65701
22489 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22490 Move peeling cost models into one place. Peel for alignment
22491 for single loads only if an aligned load is cheaper than
22494 2015-05-22 Marek Polacek <polacek@redhat.com>
22497 * doc/extend.texi (Enumerator Attributes): New section.
22498 Document syntax of enumerator attributes.
22500 2015-05-22 Richard Biener <rguenther@suse.de>
22502 * tree-vect-loop.c (get_reduction_op): New function.
22503 (vect_model_reduction_cost): Use it, add reduc_index parameter.
22504 Make ready for BB reductions.
22505 (vect_create_epilog_for_reduction): Use get_reduction_op.
22506 (vectorizable_reduction): Init reduc_index to a valid value.
22507 Adjust vect_model_reduction_cost call.
22508 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22509 operand for reduction defaults. Add SAD_EXPR support.
22510 Assert we have a neutral op for SLP reductions.
22511 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22512 walking pattern stmt ops only recurse to SSA names.
22514 2015-05-22 Richard Biener <rguenther@suse.de>
22516 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22517 assert with guard, remove check on detected reduction.
22518 (vect_recog_sad_pattern): Likewise.
22519 (vect_recog_widen_sum_pattern): Likewise.
22521 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22523 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22524 __always_inline__ attribute.
22525 (vaesdq_u8): Likewise.
22526 (vaesmcq_u8): Likewise.
22527 (vaesimcq_u8): Likewise.
22528 (vsha1cq_u32): Likewise.
22529 (vsha1mq_u32): Likewise.
22530 (vsha1pq_u32): Likewise.
22531 (vsha1h_u32): Likewise.
22532 (vsha1su0q_u32): Likewise.
22533 (vsha1su1q_u32): Likewise.
22534 (vsha256hq_u32): Likewise.
22535 (vsha256h2q_u32): Likewise.
22536 (vsha256su0q_u32): Likewise.
22537 (vsha256su1q_u32): Likewise.
22538 (vmull_p64): Likewise.
22539 (vmull_high_p64): Likewise.
22541 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22543 * final.c (final_scan_insn): Don't check HAVE_peephole with the
22545 * output.h: Likewise.
22546 * genconfig.c (main): Alwways define HAVE_peephole.
22547 * genpeep.c: Don't emit checks of HAVE_peephole.
22549 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22551 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22552 check HAVE_conditional_move with the preprocessor.
22554 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22556 * genconfig.c (main): Always define HAVE_conditional_move.
22557 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22558 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22561 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22563 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22564 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22565 and FRAME_POINTER_REGNUM with the preprocessor.
22567 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22569 * defaults.h: Add default for STACK_PUSH_CODE.
22570 * expr.c: Don't redefine STACK_PUSH_CODE.
22571 * recog.c: Likewise.
22573 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22575 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22576 sched-deps.c: Use if instead of preprocessor checks with
22577 STACK_GROWS_DOWNWARD.
22579 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22581 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22583 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22584 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22585 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22586 * doc/tm.texi: Regenerate.
22588 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
22591 * config/i386/constraints.md (Bg): New constraint for GOT memory
22593 * config/i386/i386.md (*call_got_x32): New pattern.
22594 (*call_value_got_x32): Likewise.
22595 * config/i386/predicates.md (GOT_memory_operand): New predicate.
22597 2015-05-21 Jakub Jelinek <jakub@redhat.com>
22599 PR tree-optimization/66233
22600 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22603 2015-05-21 Jeff Law <law@redhat.com>
22605 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
22606 than MULT for shadd sequences.
22608 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
22610 * alias.c (alias_stats): New static var.
22611 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
22612 (dump_alias_stats_in_alias_c): New function.
22613 * alias.h (dump_alias_stats_in_alias_c): Declare.
22614 * tree-ssa-alias.c (dump_alias_stats): Call it.
22616 2015-05-08 Michael Matz <matz@suse.de>
22618 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
22620 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
22621 (STMT_VINFO_STRIDED_P): ... this.
22622 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
22623 (vect_verify_datarefs_alignment): Likewise.
22624 (vect_enhance_data_refs_alignment): Likewise.
22625 (vect_analyze_data_ref_access): Likewise.
22626 (vect_analyze_data_refs): Accept strided stores.
22627 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
22628 (vect_model_load_cost): Adjust for macro rename.
22629 (vectorizable_mask_load_store): Likewise.
22630 (vectorizable_load): Likewise.
22631 (vectorizable_store): Open code strided stores.
22633 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22635 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
22636 Document sqrt_insn.
22638 2015-05-21 Richard Biener <rguenther@suse.de>
22641 * match.pd: Guard pattern optimzing (int)(float)int
22642 conversions to apply only on GIMPLE.
22644 2015-05-21 Jeff Law <law@redhat.com>
22646 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
22647 multiply-accumulate/shift-add insn generation.
22649 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
22652 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
22653 operands[1] are the same.
22655 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
22657 PR middle-end/66221
22658 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
22659 build_distinct_type_copy to copy bounds.
22661 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
22663 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
22664 Change to unsigned int.
22666 2015-05-20 Jeff Law <law@redhat.com>
22668 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
22669 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
22670 (pa_shadd_constant_p): Allow constants for shadd insns rather
22671 than valid scaling constants for memory addresses.
22672 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
22673 * config/pa/predicates.md (mem_shadd_operand): New predicate.
22674 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
22675 (shift-add insns using ASHIFT): New patterns.
22677 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
22679 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
22681 (fix_up_fall_thru_edges): Likewise.
22682 (fix_crossing_conditional_branches): Likewise. Promote jump targets
22683 from to rtx_insn to rtx_code_label where feasible.
22684 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
22685 gen_move_insn (returned type changed to rtx_insn).
22686 * builtins.c (expand_errno_check): Fix arguments of
22687 do_compare_rtx_and_jump (now expects rtx_code_label).
22688 (expand_builtin_acc_on_device): Likewise.
22689 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
22690 invert_jump (now exprects rtx_jump_insn).
22691 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
22692 (construct_init_block): Use rtx_code_label.
22693 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
22694 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
22695 calling redirect_jump.
22696 (patch_jump_insn): Likewise.
22697 (redirect_branch_edge): Likewise.
22698 (force_nonfallthru_and_redirect): Likewise.
22699 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
22701 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
22702 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
22703 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
22704 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
22705 to store the value retured by gen_label_rtx.
22706 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
22708 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
22709 (split_branches): Fix calls of redirect_jump.
22710 * dojump.c (jumpifnot): Promote argument type from rtx to
22712 (jumpifnot_1): Likewise.
22713 (jumpif): Likewise.
22714 (jumpif_1): Likewise.
22715 (do_jump_1): Likewise.
22716 (do_jump): Likewise. Use rtx_code_label when feasible.
22717 (do_jump_by_parts_greater_rtx): Likewise.
22718 (do_jump_by_parts_zero_rtx): Likewise.
22719 (do_jump_by_parts_equality_rtx): Likewise.
22720 (do_compare_rtx_and_jump): Likewise.
22721 * dojump.h: Update function prototypes.
22722 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
22724 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
22726 (emit_label_before): Likewise.
22727 (emit_jump_insn_after_noloc): Likewise.
22728 (emit_jump_insn_after_setloc): Likewise.
22729 (emit_jump_insn_after): Likewise
22730 (emit_jump_insn_before_setloc): Likewise.
22731 (emit_jump_insn_before): Likewise.
22732 (emit_label_before): Promote return type to rtx_code_label.
22733 (emit_label): Likewise.
22734 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
22735 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
22737 (emit_stack_restore): Likewise.
22738 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
22739 (do_cmp_and_jump): Likewise.
22740 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
22741 from rtx to rtx_code_label.
22742 (gen_move_insn_uncast): New function.
22743 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
22744 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
22745 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
22746 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
22747 invert_jump_1 and redirect_jump_1.
22748 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
22749 do_compare_rtx_and_jump.
22750 (expand_addsub_overflow): Likewise.
22751 (expand_neg_overflow): Likewise.
22752 (expand_mul_overflow): Likewise.
22753 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
22754 return value of gen_move_insn.
22755 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
22756 * loop-doloop.c (add_test): Use rtx_code_label.
22757 (doloop_modify): Likewise.
22758 (doloop_optimize): Likewise.
22759 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
22760 * lra-constraints.c (emit_spill_move): Remove cast of value returned
22762 (inherit_reload_reg): Add cast when calling dump_insn_slim.
22763 (split_reg): Likewise.
22764 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
22766 * optabs.c (expand_binop_directly): Remove casts of values returned by
22768 (expand_unop_direct): Likewise.
22769 (expand_abs): Likewise.
22770 (maybe_emit_unop_insn): Likewise.
22771 (maybe_gen_insn): Promote return type to rtx_insn.
22772 * optabs.h: Update prototype of maybe_gen_insn.
22773 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
22775 * recog.c (struct peep2_insn_data): Promote type of insn field to
22777 (peep2_reinit_state): Use NULL instead of NULL_RTX.
22778 (peep2_attempt): Remove casts of insn in peep2_insn_data.
22779 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
22780 * recog.h (struct insn_gen_fn): Promote return types of function
22781 pointers and operator ().from rtx to rtx_insn.
22782 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
22783 (fill_eager_delay_slots): Likewise.
22784 (relax_delay_slots): Likewise.
22785 (make_return_insns): Likewise.
22786 (dbr_schedule): Likewise.
22787 (optimize_skips): Likewise.
22788 (reorg_redirect_jump): Likewise.
22789 (fill_slots_from_thread): Likewise.
22790 * reorg.h: Update prototypes.
22791 * resource.c (find_dead_or_set_registers): Use dyn_cast to
22792 rtx_jump_insn instead of check. Use it's jump_target method.
22793 * rtl.h (rtx_jump_insn::jump_label): Define new method.
22794 (rtx_jump_insn::jump_target): Define new method.
22795 (rtx_jump_insn::set_jump_target): Define new method.
22796 * rtlanal.c (tablejump_p): Promote type of one local variable.
22797 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
22798 (sched_analyze_insn): Likewise.
22799 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
22800 (print_insn): Likewise.
22801 * stmt.c (label_rtx): Promote return type to rtx_insn.
22802 (force_label_rtx): Likewise.
22803 (jump_target_rtx): Define new function.
22804 (expand_label): Use it, get rid of one cast.
22805 (expand_naked_return): Promote rtx to rtx_code_label.
22806 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
22807 (expand_case): Use rtx_code_label instread of rtx where feasible.
22808 (expand_sjlj_dispatch_table): Likewise.
22809 (emit_case_nodes): Likewise.
22810 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
22811 * store-motion.c (insert_store): Make use of new return type of
22812 gen_move_insn and remove a cast.
22813 (replace_store_insn): Likewise.
22815 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
22817 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
22818 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
22820 2015-05-20 Jeff Law <law@redhat.com>
22822 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
22823 dispose of the jump thread path when the jump threading
22824 opportunity is cancelled.
22826 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
22828 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
22829 when printing the caret character.
22831 2015-05-20 Marek Polacek <polacek@redhat.com>
22833 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
22835 2015-05-20 Marek Polacek <polacek@redhat.com>
22837 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
22838 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
22839 * gimple-fold.c (canonicalize_bool): Likewise.
22840 (same_bool_result_p): Likewise.
22841 * tree-if-conv.c (parse_predicate): Likewise.
22843 2015-05-20 Marek Polacek <polacek@redhat.com>
22845 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
22846 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
22848 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22850 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
22851 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
22854 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
22856 * config/mips/mips.h (micromips_globals): Declare.
22858 2015-05-20 David Malcolm <dmalcolm@redhat.com>
22860 * timevar.def (TV_INITIALIZE_RTL): New.
22861 * toplev.c (initialize_rtl): Use an auto_timevar to account this
22862 function's time to TV_INITIALIZE_RTL.
22864 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
22866 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
22867 gimple_build_nop calls.
22868 (chkp_find_bounds_for_elem): Likewise.
22869 (chkp_get_zero_bounds): Likewise.
22870 (chkp_get_none_bounds): Likewise.
22871 (chkp_get_bounds_by_definition): Likewise.
22872 (chkp_generate_extern_var_bounds): Likewise.
22873 (chkp_get_bounds_for_decl_addr): Likewise.
22874 (chkp_get_bounds_for_string_cst): Likewise.
22876 2015-05-20 Bin Cheng <bin.cheng@arm.com>
22878 PR tree-optimization/65447
22879 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
22880 (dump_use, dump_uses): Support to dump sub use.
22881 (record_use): New parameters to support sub use. Remove call to
22883 (record_sub_use, record_group_use): New functions.
22884 (compute_max_addr_offset, split_all_small_groups): New functions.
22885 (group_address_uses, rewrite_use_address): New functions.
22886 (strip_offset): New declaration.
22887 (find_interesting_uses_address): Call record_group_use.
22888 (add_candidate): New assertion.
22889 (infinite_cost_p): Move definition forward.
22890 (add_costs): Check INFTY cost and return immediately.
22891 (get_computation_cost_at): Clear setup cost and dependent bitmap
22893 (determine_use_iv_cost_address): Compute cost for sub uses.
22894 (rewrite_use_address_1): Rename from old rewrite_use_address.
22895 (free_loop_data): Free sub uses.
22896 (tree_ssa_iv_optimize_loop): Call group_address_uses.
22898 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
22899 Jim Wilson <jim.wilson@linaro.org>
22901 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
22902 new fields loadv and storev.
22903 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
22904 Initialize loadv and storev.
22905 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
22906 (cortexa53_extra_costs): Likewise.
22907 (cortexa57_extra_costs): Likewise.
22908 (xgene1_extra_costs): Likewise.
22909 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
22912 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
22914 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
22916 (cortexa8_extra_costs): Likewise.
22917 (cortexa5_extra_costs): Likewise.
22918 (cortexa7_extra_costs): Likewise.
22919 (cortexa12_extra_costs): Likewise.
22920 (cortexa15_extra_costs): Likewise.
22921 (v7m_extra_costs): Likewise.
22923 2015-05-20 Jeff Law <law@redhat.com>
22925 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
22926 instead of open-coded version. Also delete the jump thread created
22927 within this function.
22929 2015-05-20 Alan Modra <amodra@gmail.com>
22931 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
22932 stack adjusting insn. Formatting.
22933 (rs6000_emit_prologue): Track stack adjusting insn, and use of
22934 r12. If possible, emit first -fsplit-stack arg pointer insn
22935 before stack adjust. Don't use r12 to save cr if split-stack.
22937 2015-05-20 Alan Modra <amodra@gmail.com>
22939 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
22941 (rs6000_supports_split_stack): New function.
22942 * gcc/config/rs6000/rs6000.c (machine_function): Add
22943 split_stack_arg_pointer.
22944 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
22945 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
22946 rather than virtual_incoming_args_rtx.
22947 (rs6000_va_start): Likewise.
22948 (split_stack_arg_pointer_used_p): New function.
22949 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
22950 (morestack_ref): New var.
22951 (gen_add3_const, rs6000_expand_split_stack_prologue,
22952 rs6000_internal_arg_pointer, rs6000_live_on_entry,
22953 rs6000_split_stack_space_check): New functions.
22954 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
22955 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
22956 (UNSPECV_SPLIT_STACK_RETURN): Define.
22957 (split_stack_prologue, load_split_stack_limit,
22958 load_split_stack_limit_di, load_split_stack_limit_si,
22959 split_stack_return, split_stack_space_check): New expands and insns.
22960 * gcc/config/rs6000/rs6000-protos.h
22961 (rs6000_expand_split_stack_prologue): Declare.
22962 (rs6000_split_stack_space_check): Declare.
22964 2015-05-20 Alan Modra <amodra@gmail.com>
22966 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
22967 (direct_return): Test vrsave_size rather than vrsave_mask.
22968 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
22969 (rs6000_emit_epilogue): Likewise.
22971 2015-05-20 Alan Modra <amodra@gmail.com>
22973 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
22974 when not saving registers.
22975 (debug_stack_info): Adjust to omit printing unused offsets,
22977 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
22980 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22983 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
22984 value_type to const char *.
22986 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
22988 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
22989 to build a biarch toolchain again.
22991 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22993 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
22994 or implicit declarations.
22995 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
22997 (get_odr_type): Check type has linkage before adding bases.
22998 (register_odr_type): Check that type has linkage before adding it.
22999 (type_known_to_have_no_deriavations_p): Rename to ..
23000 (type_known_to_have_no_derivations_p): This one.
23001 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
23002 (type_known_to_have_no_derivations_p): This one.
23003 * ipa-polymorphic-call.c
23004 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
23007 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23009 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
23010 (layout_type): Use RECORD_OR_UNION_TYPE_P.
23012 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23014 * config/s390/s390.c (s390_vector_bool_type_p): New function.
23015 (s390_invalid_binary_op): New function.
23016 (TARGET_INVALID_BINARY_OP): Define macro.
23018 2015-05-19 David Sherwood <david.sherwood@arm.com>
23020 * loop-invariant.c (create_new_invariant): Don't calculate address cost
23021 if mode is not a scalar integer.
23022 (get_inv_cost): Increase computational cost for unused invariants.
23024 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23026 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
23027 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
23028 * config/s390/s390-builtin-types.def: New file.
23029 * config/s390/s390-builtins.def: New file.
23030 * config/s390/s390-builtins.h: New file.
23031 * config/s390/s390-c.c: New file.
23032 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
23033 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
23034 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
23035 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
23037 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
23039 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
23040 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
23041 variable definitions.
23042 (s390_const_operand_ok): New function.
23043 (s390_expand_builtin): Rewrite.
23044 (s390_init_builtins): New function.
23045 (s390_handle_vectorbool_attribute): New function.
23046 (s390_attribute_table): Add s390_vector_bool attribute.
23047 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
23048 (s390_branch_condition_mask): Generate masks for new modes.
23049 (s390_expand_vec_compare_cc): New function.
23050 (s390_mangle_type): Add mangling for vector bool types.
23051 (enum s390_builtin): Remove.
23052 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
23054 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
23055 s390_cpu_cpp_builtins.
23056 (REGISTER_TARGET_PRAGMAS): New macro.
23057 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
23058 (insn_cmp mode attribute): Add new CC modes.
23059 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
23060 (lcbb): New pattern definition.
23061 * config/s390/s390intrin.h: Include vecintrin.h.
23062 * config/s390/t-s390: New file.
23063 * config/s390/vecintrin.h: New file.
23064 * config/s390/vector.md: Include vx-builtins.md.
23065 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
23068 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23070 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
23072 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
23073 (s390_select_ccmode): Likewise.
23074 (s390_canonicalize_comparison): Swap operands if necessary.
23075 (s390_expand_vec_compare_scalar): Expand DFmode compare using
23076 single element vector instructions.
23077 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
23078 (s390_branch_condition_mask): Generate CC masks for the new modes.
23079 * config/s390/s390.md (v0, vf, vd): New mode attributes.
23080 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
23081 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
23082 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
23083 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
23084 (*extend<DSF:mode><BFP:mode>2): New insn definition.
23085 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
23086 (extend<DSF:mode><BFP:mode>2): Turn into expander.
23087 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
23088 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
23089 (sqrt<mode>2): Add vector instruction.
23091 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23093 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
23095 * config/s390/predicates.md (const0_operand, constm1_operand)
23096 (constable_operand): Accept vector operands.
23097 * config/s390/s390-modes.def: Add supported vector modes.
23098 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
23099 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
23100 (s390_bytemask_vector_p, s390_expand_vec_strlen)
23101 (s390_expand_vec_compare, s390_expand_vcond)
23102 (s390_expand_vec_init): Add prototypes.
23103 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
23104 (s390_vector_mode_supported_p): New function.
23105 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
23106 (s390_contiguous_bitmask_vector_p): New function.
23107 (s390_bytemask_vector_p): New function.
23108 (s390_split_ok_p): Vector regs don't work either.
23109 (regclass_map): Add VEC_REGS.
23110 (s390_legitimate_constant_p): Handle vector constants.
23111 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
23112 (legitimate_reload_vector_constant_p): New function.
23113 (s390_preferred_reload_class): Handle CONST_VECTOR.
23114 (s390_reload_symref_address): Likewise.
23115 (s390_secondary_reload): Vector memory instructions only support
23116 short displacements. Rename reload*_nonoffmem* to reload*_la*.
23117 (s390_emit_ccraw_jump): New function.
23118 (s390_expand_vec_strlen): New function.
23119 (s390_expand_vec_compare): New function.
23120 (s390_expand_vcond): New function.
23121 (s390_expand_vec_init): New function.
23122 (s390_dwarf_frame_reg_mode): New function.
23123 (print_operand): Handle addresses with 'O' and 'R' constraints.
23124 (NR_C_MODES, constant_modes): Add vector modes.
23125 (s390_output_pool_entry): Handle vector constants.
23126 (s390_hard_regno_mode_ok): Handle vector registers.
23127 (s390_class_max_nregs): Likewise.
23128 (s390_cannot_change_mode_class): New function.
23129 (s390_invalid_arg_for_unprototyped_fn): New function.
23130 (s390_function_arg_vector): New function.
23131 (s390_function_arg_float): Remove size variable.
23132 (s390_pass_by_reference): Handle vector arguments.
23133 (s390_function_arg_advance): Likewise.
23134 (s390_function_arg): Likewise.
23135 (s390_return_in_memory): Vector values are returned in a VR if
23137 (s390_function_and_libcall_value): Handle vector arguments.
23138 (s390_gimplify_va_arg): Likewise.
23139 (s390_call_saved_register_used): Consider the arguments named.
23140 (s390_conditional_register_usage): Disable v16-v31 for non-vec
23142 (s390_preferred_simd_mode): New function.
23143 (s390_support_vector_misalignment): New function.
23144 (s390_vector_alignment): New function.
23145 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
23146 (TARGET_VECTOR_MODE_SUPPORTED_P)
23147 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
23148 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23149 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
23150 (TARGET_VECTOR_ALIGNMENT): Define target macro.
23151 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
23152 (FIRST_PSEUDO_REGISTER): Increase value.
23153 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
23154 (VECTOR_REG_P): Define macros.
23155 (FIXED_REGISTERS, CALL_USED_REGISTERS)
23156 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
23157 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
23158 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
23159 Add vector registers.
23160 (CANNOT_CHANGE_MODE_CLASS): Call C function.
23161 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
23162 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
23164 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
23165 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
23166 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
23167 (VR*_REGNUM): New constants.
23168 (ALL): New mode iterator.
23169 (INTALL): Remove mode iterator.
23171 (movti): Implement TImode moves for VRs.
23172 Disable TImode splitter for VR targets.
23173 Implement splitting TImode GPR<->VR moves.
23174 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
23175 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
23176 reload<mode>_la_in, reload<mode>_la_out.
23177 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
23178 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
23179 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
23180 (mov<mode> SF SD): Prefer lder, lde for loading.
23181 Add lrl and strl instructions.
23182 Add vector instructions.
23183 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
23184 Call s390_expand_vec_strlen on z13.
23185 (*cc_to_int): Change predicate to nonimmediate_operand.
23186 (addti3): Rename to *addti3. New expander.
23187 (subti3): Rename to *subti3. New expander.
23188 * config/s390/vector.md: New file.
23190 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23192 * common/config/s390/s390-common.c (processor_flags_table): Add
23194 * config.gcc: Add z13.
23195 * config/s390/s390-opts.h (enum processor_type): Add
23196 PROCESSOR_2964_Z13.
23197 * config/s390/s390.c (s390_adjust_priority): Check for
23198 PROCESSOR_2964_Z13.
23199 (s390_reorg): Likewise.
23200 (s390_sched_reorder): Likewise.
23201 (s390_sched_variable_issue): Likewise.
23202 (s390_loop_unroll_adjust): Likewise.
23203 (s390_option_override): Likewise. Default to -mvx when available.
23204 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
23205 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
23206 (TARGET_VX_ABI): Define macros.
23208 (TARGET_DEFAULT): Add MASK_OPT_VX.
23209 * config/s390/s390.md ("cpu" attribute): Add z13.
23210 ("cpu_facility" attribute): Add vec.
23211 * config/s390/s390.opt (processor_type): Add z13.
23212 (mvx): New options.
23213 * doc/invoke.texi: Add z13 option for -march.
23215 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23217 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
23218 mode check to make sure that only scalar integer values are
23221 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23223 * tree.c (verify_type_variant): Fix #undef.
23224 (gimple_canonical_types_compatible_p): Move here from lto.c
23225 (verify_type): Verify TYPE_CANONICAL compatibility.
23226 * tree.h (gimple_canonical_types_compatible_p): Declare.
23228 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23230 PR middle-end/66199
23231 * tree.h (OMP_TEAMS_COMBINED): Define.
23232 * gimplify.c (enum gimplify_omp_var_data): Add
23233 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
23234 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
23235 (omp_notice_variable): Accept both ORT_TEAMS
23236 and ORT_COMBINED_TEAMS. Don't recurse if
23237 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
23238 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
23240 (omp_no_lastprivate): New function.
23241 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
23242 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
23243 notice_outer and set appropriate bits, otherwise make
23244 sure default(none) combined constructs won't complain.
23245 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
23246 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
23247 omp_no_lastprivate either remove the clause or turn it
23248 into OMP_CLAUSE_PRIVATE.
23249 (gimplify_omp_for): Fix up handling of implicit
23250 lastprivate or linear iterators.
23251 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
23252 ORT_COMBINED_TEAMS.
23253 * omp-low.c (lower_omp_for_lastprivate): For combined
23254 for simd use fd.loop.n2 from the for rather than simd.
23256 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23258 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
23259 instead of gen_rtx_raw_REG.
23260 (cris_expand_epilogue): Likewise.
23261 * config/microblaze/microblaze.c (microblaze_classify_address):
23263 * config/sparc/sparc.md: Likewise.
23265 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
23267 * config/alpha/alpha.c (alpha_legitimize_reload_address)
23268 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
23269 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
23270 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
23271 Use CASE_CONST_SCALAR_INT.
23272 (print_operand) <case 'M'>: Use mode_width_operand to check the
23273 value of the constant.
23274 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
23275 * config/alpha/predicates.md (input_operand): Use general_operand
23276 instead of match_code as operand check.
23277 (symbolic_operand): Use match_code with subexpression digits.
23278 * config/alpha/constraints.md (Q): Ditto.
23280 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23282 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
23284 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23286 * config/s390/s390.c (s390_secondary_reload): Fix check for
23287 load/store relative.
23289 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23291 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
23292 alternative_mask to uint64_t.
23294 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23296 PR tree-optimization/66187
23297 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
23298 Pass TYPE_SIGN to tree_int_cst_min_precision. If
23299 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
23301 2015-05-19 David Malcolm <dmalcolm@redhat.com>
23303 * diagnostic.c (diagnostic_report_current_module): Strengthen
23304 local "new_map" from const line_map * to
23305 const line_map_ordinary *.
23306 * genmatch.c (error_cb): Likewise for local "map".
23307 (output_line_directive): Likewise for local "map".
23308 * input.c (expand_location_1): Likewise for local "map".
23309 Pass NULL rather than &map to
23310 linemap_unwind_to_first_non_reserved_loc, since the value is never
23311 read from there, and the value written back not read from here.
23312 (is_location_from_builtin_token): Strengthen local "map" from
23313 const line_map * to const line_map_ordinary *.
23314 (dump_location_info): Strengthen locals "map" from
23315 line_map *, one to const line_map_ordinary *, the other
23316 to const line_map_macro *.
23317 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
23318 const line_map * to const line_map_macro *.
23319 (maybe_unwind_expanded_macro_loc): Add a call to
23320 linemap_check_macro when writing to the "map" field of the
23322 Introduce local const line_map_ordinary * "ord_map", using it in
23323 place of "map" in the part of the function where we know we have
23324 an ordinary map. Strengthen local "m" from const line_map * to
23325 const line_map_ordinary *.
23327 2015-05-19 Nick Clifton <nickc@redhat.com>
23330 * config/msp430/msp430.md (zero_extendhisi2): Add support for
23331 separate source and destination registers.
23333 2015-05-19 Richard Biener <rguenther@suse.de>
23335 PR tree-optimization/66165
23336 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
23337 for no load permutation.
23339 PR tree-optimization/66185
23340 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
23341 when building the SLP node from scalars.
23343 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23344 Tristan Gingold <gingold@adacore.com>
23346 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
23347 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
23348 (expand_stack_restore): Call record_new_stack_level.
23349 (expand_stack_save): Do not call do_pending_stack_adjust.
23350 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
23351 * calls.c (expand_call): Call record_new_stack_level for alloca.
23352 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
23353 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
23354 (update_sjlj_context): New global function.
23355 * except.h (update_sjlj_context): Declare.
23356 * explow.c (record_new_stack_level): New global function.
23357 (allocate_dynamic_stack_space): Call record_new_stack_level.
23358 * explow.h (record_new_stack_level): Declare.
23359 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23360 * cfgrtl.c (duplicate_insn_chain): Likewise.
23362 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23364 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23365 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23366 STACK_GROWS_DOWNWARD as normal if.
23367 (expand_call): Likewise.
23369 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
23372 * config/sh/sh.md (*round_int_even): New insn_and_split and
23373 accompanying new unnamed split.
23375 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23377 * bitmap.c (bitmap_set_range): Handle count==1 specially.
23378 (bitmap_clear_range): Likewise.
23379 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23380 bitmap_set_range unconditionally.
23381 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23382 * df-scan.c (df_mark_reg): Likewise.
23383 * haifa-sched.c (setup_ref_regs): Likewise.
23384 * sched-rgn.c (update_live_1): Likewise.
23386 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23388 * regs.h (END_HARD_REGNO): Delete.
23389 (END_REGNO): Move to...
23391 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23392 * caller-save.c (mark_set_regs): Likewise.
23393 * combine.c (move_deaths, distribute_notes): Likewise.
23394 * cse.c (invalidate, invalidate_for_call): Likewise.
23395 * df-scan.c (df_ref_record): Likewise.
23396 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23397 (record_last_reg_set_info): Likewise.
23398 * reg-stack.c (convert_regs_exit): Likewise.
23399 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23400 * resource.c (update_live_status): Likewise.
23401 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23403 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23405 * rtl.h (reg_info): Add an nregs field.
23406 (REG_NREGS): Use it.
23407 (SET_REGNO_RAW): Delete.
23408 (set_regno_raw): New function.
23409 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23410 (END_REGNO): Redefine in terms of REG_NREGS.
23411 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23413 * emit-rtl.c (set_mode_and_regno): Likewise.
23414 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23415 instead of SET_REGNO_RAW.
23417 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23419 * rtl.h (PUT_MODE_RAW): New macro.
23420 (PUT_REG_NOTE_KIND): Use it.
23421 (set_mode_and_regno): Declare.
23422 (gen_raw_REG): Change regno to "unsigned int".
23423 (gen_rtx_REG): Change "unsigned" to "unsigned int".
23424 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23425 use set_mode_and_regno to change the mode of registers.
23426 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23427 * emit-rtl.c (set_mode_and_regno): New function.
23428 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
23429 * caller-save.c (reg_save_code): Use set_mode_and_regno.
23430 * expr.c (init_expr_target): Likewise.
23431 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23432 * postreload.c (reload_cse_simplify_operands): Likewise.
23434 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23436 * caller-save.c (init_caller_save): Use word_mode and
23437 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23438 * expr.c (init_expr_target): Likewise.
23439 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23440 * postreload.c (reload_cse_regs_1): Likewise.
23442 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23444 * rtl.def (REG): Change format to "r".
23445 * rtl.h (rtunion): Remove rt_reg.
23446 (reg_info): New structure.
23447 (rtx_def): Add reg field to main union.
23448 (X0REGATTR): Delete.
23449 (REG_CHECK): New macro.
23450 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23451 * rtl.c (rtx_format): Document "r".
23452 (rtx_code_size): Handle REG specially.
23453 * gengenrtl.c (special_format): Return true for formats
23455 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23456 Deal with REG_ATTRS after the field loop.
23457 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23458 * expmed.c (init_expmed): Call gen_raw_REG instead of
23460 * expr.c (init_expr_target): Likewise.
23461 * regcprop.c (maybe_mode_change): Likewise.
23462 * varasm.c (make_decl_rtl): Likewise.
23463 * final.c (leaf_renumber_regs_insn): Return early after
23465 * genemit.c (gen_exp): Handle 'r' fields.
23466 * genpeep.c (match_rtx): Likewise.
23467 * gensupport.c (subst_pattern_match): Likewise.
23468 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23469 (alter_constraints, subst_dup): Likewise.
23470 * read-rtl.c (read_rtx_code): Likewise.
23471 * print-rtl.c (print_rtx): Likewise.
23472 * genrecog.c (find_operand, find_matching_operand): Likewise.
23473 (validate_pattern, match_pattern_2): Likewise.
23474 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23475 (rtx_test::regno_field): New function.
23476 (operator ==, safe_to_hoist_p, transition_parameter_type)
23477 (parameter_type_string, print_parameter_value)
23478 (print_nonbool_test, print_test): Handle new enum values.
23479 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23480 * lra-constraints.c (operands_match_p): Likewise.
23482 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23484 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23485 Change type of new_regno to unsigned int.
23486 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23487 new_regno to unsigned int.
23488 (df_ref_change_reg_with_loc): Remove old_regno parameter.
23489 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
23490 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23491 (SET_REGNO_RAW): Add space after ",".
23493 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23495 * rtl.h (REG_NREGS): New macro
23496 * alias.c (record_set): Use it.
23497 * cfgcleanup.c (mark_effect): Likewise.
23498 * combine.c (likely_spilled_retval_1): Likewise.
23499 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23500 (move_deaths, distribute_notes): Likewise.
23501 * cselib.c (cselib_record_set): Likewise.
23502 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23503 * df-scan.c (df_mark_reg): Likewise.
23504 * dse.c (look_for_hardregs): Likewise.
23505 * dwarf2out.c (reg_loc_descriptor): Likewise.
23506 (multiple_reg_loc_descriptor): Likewise.
23507 * expr.c (write_complex_part, read_complex_part): Likewise.
23508 (emit_move_complex): Likewise.
23509 * haifa-sched.c (setup_ref_regs): Likewise.
23510 * ira-lives.c (mark_hard_reg_live): Likewise.
23511 * lra.c (lra_set_insn_recog_data): Likewise.
23512 * mode-switching.c (create_pre_exit): Likewise.
23513 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23514 (reload_combine_recognize_pattern): Likewise.
23515 (reload_combine_note_use, move2add_record_mode): Likewise.
23516 (reload_cse_move2add): Likewise.
23517 * reg-stack.c (subst_stack_regs_pat): Likewise.
23518 * regcprop.c (kill_value, copy_value): Likewise.
23519 (copyprop_hardreg_forward_1): Likewise.
23520 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23521 (build_def_use): Likewise.
23522 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23523 (deps_analyze_insn): Likewise.
23524 * sched-rgn.c (check_live_1, update_live_1): Likewise.
23525 * sel-sched.c (count_occurrences_equiv): Likewise.
23526 * valtrack.c (dead_debug_insert_temp): Likewise.
23528 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23530 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23531 * dse.c (note_add_store): Likewise.
23532 * ira-lives.c (mark_hard_reg_dead): Likewise.
23533 * loop-invariant.c (mark_reg_store): Likewise.
23534 (mark_reg_death): Likewise.
23535 * postreload.c (reload_combine): Likewise.
23536 (reload_combine_note_store): Likewise.
23537 (reload_combine_note_use): Likewise.
23538 * recog.c (peep2_reg_dead_p): Likewise.
23540 2015-05-19 Alan Modra <amodra@gmail.com>
23542 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23543 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23544 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23546 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23547 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
23548 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23549 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23551 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
23553 * config/mips/mips.md (JOIN_MODE): New mode iterator.
23554 (join2_load_Store<JOIN_MODE:mode>): New pattern.
23555 (join2_loadhi): Likewise.
23556 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23557 load-load and store-stores.
23558 * config/mips/mips.opt (mload-store-pairs): New option.
23559 (TARGET_LOAD_STORE_PAIRS): New macro.
23560 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23561 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23562 * config/mips/mips.c (mips_load_store_bonding_p): New function.
23564 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
23566 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23568 * dojump.c (do_compare_rtx_and_jump): Likewise.
23569 * expmed.c (emit_store_flag_1): Likewise.
23570 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23571 * final.c (sprint_ul): Use std::reverse for reversing a string.
23572 * fold-const.c (extract_muldiv_1): Use std::swap.
23573 * genmodes.c (emit_mode_int_n): Likewise.
23574 * ifcvt.c (dead_or_predicable): Likewise.
23575 * ira-build.c (ira_merge_live_ranges): Likewise.
23576 (swap_allocno_copy_ends_if_necessary): Likewise.
23577 * ira.c (ira_setup_alts): Likewise.
23578 * loop-iv.c (iv_analyze_expr): Likewise.
23579 (implies_p): Likewise.
23580 (canon_condition): Likewise.
23581 * lra-constraints.c (swap_operands): Likewise.
23582 * lra-lives.c (lra_merge_live_ranges): Likewise.
23583 * omega.c (swap): Remove.
23585 (omega_unprotect_1): Use std::swap.
23586 (omega_solve_geq): Likewise.
23587 * optabs.c (expand_binop_directly): Likewise.
23588 (expand_binop): Likewise.
23589 (emit_conditional_move): Likewise.
23590 (emit_conditional_add): Likewise.
23591 * postreload.c (reload_cse_simplify_operands): Likewise.
23592 * reg-stack.c (emit_swap_insn): Likewise.
23593 (swap_to_top): Likewise.
23594 (compare_for_stack_reg): Likewise.
23595 (subst_asm_stack_regs): Likewise.
23596 * reload.c (find_reloads): Likewise.
23597 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23598 * sel-sched.c (invoke_reorder_hooks): Likewise.
23599 (create_block_for_bookkeeping): Likewise.
23600 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23601 (lambda_matrix_right_hermite): Use std::swap.
23602 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23603 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23604 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
23605 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
23606 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
23607 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
23608 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
23609 * tree-vrp.c (compare_ranges): Likewise.
23610 * var-tracking.c (add_with_sets): Likewise.
23611 (vt_find_locations): Likewise.
23613 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
23615 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
23617 (FBSD_ENDFILE_SPEC): Likewise.
23618 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
23619 config/freebsd-spec.h.
23620 (ENDFILE_SPEC): Likewise.
23622 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
23623 Richard Henderson <rth@redhat.com>
23626 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
23627 Check for a memory location that is not a reference (using an AND)
23628 to an unaligned location here.
23629 * config/alpha/predicates.md (normal_memory_operand): Remove.
23631 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
23633 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
23634 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
23636 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
23638 * config/mips/mips.c (micromips_globals): New variable.
23639 (mips_set_compression_mode): Save and reinitialize target-dependent
23640 state for microMIPS.
23642 2015-05-18 Martin Liska <mliska@suse.cz>
23644 * dbgcnt.def: Add new counter.
23645 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
23647 2015-05-18 Martin Liska <mliska@suse.cz>
23649 * dbgcnt.def: Sort counters.
23650 * opts.c (common_handle_option): Do not compile if
23651 -fdbg-cnt-list is enabled.
23653 2015-05-18 Tom de Vries <tom@codesourcery.com>
23655 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
23656 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
23657 address operator to va_list operand.
23658 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
23660 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
23662 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
23663 * config/s390/s390.c (s390_gimplify_va_arg): Same.
23664 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
23666 2015-05-18 Tom de Vries <tom@codesourcery.com>
23668 * tree-ssa-tail-merge.c: Fix whitespace.
23670 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
23672 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
23673 cortex-a17, and cortex-a17.cortex-a7.
23675 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
23678 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
23680 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
23683 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
23684 QImode inner modes for TARGET_AVX512BW. Force mask operand
23685 to a register for AVX512F modes.
23687 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23689 * toplev.c (emit_debug_global_declarations): Do not output debug info
23690 when doing slim LTO objects.
23692 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23694 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
23695 odr_types_equivalent_p): Declare.
23696 (odr_type_p): Use gcc_checking_assert.
23697 (type_in_anonymous_namespace_p) Declare.
23698 (type_with_linkage_p): Declare.
23699 * common.opt (Wlto-type-mismatch): New warning.
23700 * ipa-devirt.c (compound_type_base): New function.
23701 (odr_or_derived_type_p): New function.
23702 (odr_types_equivalent_p): New function.
23703 (add_type_duplicate): Simplify.
23704 (type_with_linkage_p): Add hack to prevent false positives on C types
23705 (type_in_anonymous_namespace_p): Likewise.
23706 * tree.c (need_assembler_name_p): Use type_with_linkage.
23707 * tree.h (type_in_anonymous_namespace_p): Remove.
23708 * doc/invoke.texi (-Wlto-type-mismatch): Document
23710 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23712 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
23713 (verify_type): Verify STRING_FLAG.
23715 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
23718 * tree-pretty-print.c (percent_K_format): Replace locus pointer
23719 with accessor function.
23720 * tree-diagnostic.c (diagnostic_report_current_function): Use
23721 diagnostic_location function.
23722 (maybe_unwind_expanded_macro_loc): Likewise.
23723 (virt_loc_aware_diagnostic_finalizer): Likewise.
23724 (default_tree_printer): Replace locus pointer with accessor function.
23725 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
23726 (diagnostic_set_info_translated): Initialize second location.
23727 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
23728 (diagnostic_show_locus): Handle two locations. Call
23729 diagnostic_print_caret_line.
23730 (diagnostic_print_caret_line): New.
23731 (default_diagnostic_starter): Use diagnostic_location function.
23732 (diagnostic_report_diagnostic): Use diagnostic_location function.
23733 (verbatim): Do not set text.locus.
23734 * diagnostic.h (struct diagnostic_info): Remove location field.
23735 (struct diagnostic_context): Make caret_chars an array of two.
23736 (diagnostic_location): New inline.
23737 (diagnostic_expand_location): Handle two locations.
23738 (diagnostic_same_line): New inline.
23739 (diagnostic_print_caret_line): Declare.
23740 (CARET_LINE_MARGIN): New constant.
23741 * pretty-print.c (pp_printf): Do not set text.locus.
23742 (pp_verbatim): Do not set text.locus.
23743 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
23744 (struct text_info): Replace locus pointer with locations
23745 array. Add accessor functions.
23747 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
23748 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23751 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
23752 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
23753 large constants in register instead of splitting them.
23755 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
23758 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
23759 replacements in memory addresses.
23760 (get_unaligned_address): Ditto.
23762 2015-05-16 James Bowman <james.bowman@ftdichip.com>
23764 * config/ft32/*: New files for FT32 port.
23765 * doc/install.texi: Add FT32 information.
23766 * doc/invoke.texi: Add FT32 information.
23767 * doc/md.texi: Add FT32 information.
23768 * doc/contrib.texi: Self added.
23770 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
23772 PR tree-optimization/64454
23773 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
23774 (-1 - A -> ~A): Remove unnecessary condition.
23776 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
23778 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
23779 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
23780 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
23782 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
23784 * ipa-chkp.h (chkp_wrap_function): New.
23785 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
23786 (chkp_wrap_function_name): New.
23787 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
23788 to get wrapper name.
23789 * lto-cgraph.c: Include ipa-chkp.h.
23790 (input_cgraph_1): Avoid alias chain for wrappers.
23792 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23794 PR middle-end/66134
23795 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
23796 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
23798 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23800 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
23801 (AARCH64_FL_SLOWMUL): Delete.
23802 (AARCH64_FL_CRC): Redefine to 1<<3.
23803 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
23805 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23807 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
23810 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
23812 * config/alpha/alpha.md (extendqidi2): Use general_operand
23813 instead of some_operand for operand[1] predicate.
23814 (extendhidi2): Ditto.
23815 (cbranchdi4): Use general_operand instead of some_operand
23816 for operand[1] and operands[2] predicates.
23817 (cstoredi4): Ditto.
23818 * config/alpha/predicates.md (some_operand): Remove unused predicate.
23819 (some_ni_operand): Ditto.
23821 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
23823 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
23824 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
23825 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
23826 low part of the constant using alpha_emit_set_const_1.
23827 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
23829 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
23831 * varasm.c (output_constant_pool_1): Pass down alignment from
23832 constant pool entry's descriptor to output_constant_pool_2.
23833 (output_object_block): Add comment prior to call to
23834 output_constant_pool_1.
23836 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
23838 PR rtl-optimization/65862
23839 * target.def (ira_change_pseudo_allocno_class): New hook.
23840 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
23842 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
23843 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
23845 * ira-costs.c (find_costs_and_classes): Call the hook and change
23846 classes when it is necessary.
23847 * doc/tm.texi: Update.
23849 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
23851 * config/i386/i386.md (sibcall_memory): Check that register with
23852 callee address is not also used as one of the arguments, instead
23853 of checking that it is not live after the sibcall.
23854 (sibcall_pop_memory): Ditto.
23855 (sibcall_value_memory): Ditto.
23856 (sibcall_value_pop_memory): Ditto.
23858 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
23860 * generic-match-head.c (types_match): Handle non-types.
23861 * gimple-match-head.c (types_match): Likewise.
23862 * match.pd: Remove unnecessary TREE_TYPE for types_match.
23864 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
23866 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
23867 (csneg3<mode>_insn): Enable expansion of pattern.
23869 2015-05-14 Nick Clifton <nickc@redhat.com>
23871 * config/rl78/rl78.c (rl78_select_section): Select the correct
23872 default section based upon the category of the decl.
23874 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23876 PR rtl-optimization/30967
23877 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
23878 destination mode for the cost of scc patterns.
23880 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
23882 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
23883 using SWIM248 mode iterator.
23884 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
23885 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
23886 for operand[2] constraint.
23887 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
23889 2015-05-13 Jakub Jelinek <jakub@redhat.com>
23891 PR middle-end/66133
23892 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
23893 make sure it is never noreturn, even when the task body does not
23895 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
23896 right before GIMPLE_OMP_RETURN.
23897 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
23898 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
23899 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
23901 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23903 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
23904 * tree-ssa-math-opts.c: Include params.h
23905 (pow_synth_sqrt_info): New struct.
23906 (representable_as_half_series_p): New function.
23907 (get_fn_chain): Likewise.
23908 (print_nested_fn): Likewise.
23909 (dump_fractional_sqrt_sequence): Likewise.
23910 (dump_integer_part): Likewise.
23911 (expand_pow_as_sqrts): Likewise.
23912 (gimple_expand_builtin_pow): Use above to attempt to expand
23913 pow as series of square roots. Removed now unused variables.
23915 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
23917 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
23918 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
23919 Remove *p0 and *p1 arguments. Rewrite function.
23920 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
23921 (alpha_split_const_mov): Update calls to alpha_extract_integer and
23922 alpha_emit_set_long_const.
23923 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
23924 (alpha_output_mi_thunk_osf): Ditto.
23925 * config/alpha/alpha.md (movti): Do not check operands[1]
23928 2015-05-13 Richard Biener <rguenther@suse.de>
23930 PR tree-optimization/66129
23931 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
23933 (vect_schedule_slp_instance): Fix typo.
23935 2015-05-13 David Malcolm <dmalcolm@redhat.com>
23937 * common.opt (fdump-internal-locations): New option.
23938 * input.c: Include diagnostic-core.h.
23939 (get_end_location): New function.
23940 (write_digit): New function.
23941 (write_digit_row): New function.
23942 (dump_location_range): New function.
23943 (dump_labelled_location_range): New function.
23944 (dump_location_info): New function.
23945 * input.h (dump_location_info): New prototype.
23946 * toplev.c (compile_file): Handle flag_dump_locations.
23948 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
23950 * gimple-expr.h (is_gimple_constant): Reorder.
23951 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
23953 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23955 * combine.c (simplify_set): When generating a CC set, if the
23956 source already is in the correct mode, do not wrap it in a
23957 compare. Simplify the rest of that code.
23959 2015-05-13 Richard Biener <rguenther@suse.de>
23961 PR tree-optimization/66123
23962 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
23965 2015-05-13 Richard Biener <rguenther@suse.de>
23967 PR middle-end/66110
23968 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
23970 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
23972 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23974 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
23975 * aclocal.m4: Regenerated with automake-1.11.6.
23977 2015-05-13 Tom de Vries <tom@codesourcery.com>
23979 PR tree-optimization/66010
23980 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
23981 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
23982 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
23983 and rval based on do_deref.
23985 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23988 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
23989 link time constants into adress expressions and therefore set
23992 2015-05-13 Jakub Jelinek <jakub@redhat.com>
23995 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
23996 Use SWI248 iterator instead of SWI.
23997 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
23998 Use eq_attr "alternative" "0" instead of match_test in
23999 length_immediate attribute computation.
24000 (*mulvhi4, *mulvhi4_1): New define_insns.
24003 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
24004 SIGNED to get precision of non-negative value.
24006 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24009 * function.c (diddle_return_value_1): Process bounds first.
24010 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
24013 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24015 PR rtl-optimization/64616
24016 * loop-invariant.c (can_move_invariant_reg): New.
24017 (move_invariant_reg): Call above new function to decide whether
24018 instruction can just be moved, skipping creation of temporary
24021 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24023 PR target/pr66047.c
24024 * i386.c (ix86_function_sseregparm): Only return -1 if local function
24025 with implied regparm is called from -mno-sse function.
24026 (init_cumulative_args): Output error if ix86_function_sseregparm
24027 return -1 and SSE register would be needed.
24028 (function_arg_advance_32): Likewise.
24029 (function_arg_32): Likewise.
24030 * i386.h (ix86_args): Add decl field.
24032 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24035 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
24036 inlines across optimization boundary.
24038 2015-05-12 Jason Merrill <jason@redhat.com>
24040 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
24041 string literal and macro name.
24043 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
24045 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
24046 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
24047 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
24049 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24051 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
24052 (-Wmisleading-indentation): New option.
24053 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
24055 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
24057 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
24058 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
24059 (alpha_extract_integer): Ditto.
24060 (alpha_legitimate_constant_p): Ditto.
24061 (alpha_split_tmode_pair): Ditto.
24062 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
24063 (alpha_expand_mov): Ditto.
24064 (print_operand): Remove handling of 'H' modifier.
24065 <case 'm'>: Remove CONST_DOUBLE handling.
24066 (summarize_insn): Handle CONST_WIDE_INT.
24067 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
24069 (movti): Handle CONST_WIDE_INT.
24070 * config/alpha/constraints.md ('H'): Remove constraint definition.
24071 ('G'): Do not match MODE_FLOAT class.
24072 * config/alpha/predicates.md (const0_operand): Also match
24074 (non_add_const_operand): Ditto.
24075 (non_zero_const_operand): Ditto.
24076 (some_operand): Ditto.
24077 (input_operand): Ditto. Handle CONST_WIDE_INT.
24078 (and_operand): Do not match const_double.
24079 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
24081 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
24084 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
24085 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
24086 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
24087 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
24088 is_mm_seq_cst, is_mm_sync): New accessor functions.
24089 * builtins.c (expand_builtin_sync_operation,
24090 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
24091 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
24092 (get_memmodel, expand_builtin_atomic_compare_exchange,
24093 expand_builtin_atomic_load, expand_builtin_atomic_store,
24094 expand_builtin_atomic_clear): Use new accessor routines.
24095 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
24096 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
24097 (maybe_emit_sync_lock_test_and_set): Use new accessors and
24098 MEMMODEL_SYNC_ACQUIRE.
24099 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
24100 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
24101 expand_atomic_store): Use new accessors.
24102 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
24103 * tsan.c (instrument_builtin_call): Update check for memory model beyond
24104 final enum to use MEMMODEL_LAST.
24105 * c-family/c-common.c: Use new accessor for memmodel_base.
24106 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
24108 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
24109 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
24110 mem_thread_fence, *dmb): Likewise.
24111 * config/alpha/alpha.c (alpha_split_compare_and_swap,
24112 alpha_split_compare_and_swap_12): Likewise.
24113 * config/arm/arm.c (arm_expand_compare_and_swap,
24114 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
24115 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
24116 atomic_loaddi): Likewise.
24117 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
24119 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
24120 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
24122 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
24123 atomic_store<mode>, atomic_compare_and_swap<mode>,
24124 atomic_exchange<mode>): Use new accessors.
24125 * config/mips/mips.c (mips_process_sync_loop): Likewise.
24126 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
24127 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
24128 rs6000_post_atomic_barrier): Add new cases.
24129 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
24130 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
24131 (atomic_load<mode>): Add new cases and use new accessors.
24132 (store_quadpti): Add new cases.
24133 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
24135 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
24136 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
24139 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24141 * ipa-devirt.c (type_with_linkage_p): New function.
24142 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
24144 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
24145 (can_be_name_hashed_p): Simplify.
24146 (hash_odr_name): Check that type has linkage before checking if it is
24148 (types_same_for_odr): Likewise.
24149 (odr_name_hasher::equal): Likewise.
24150 (odr_subtypes_equivalent_p): Likewise.
24151 (warn_types_mismatch): Likewise.
24152 (get_odr_type): Likewise.
24153 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
24154 * ipa-utils.h (odr_type_p): Move offline.
24155 * tree.c (need_assembler_name_p): Fix handling of types
24157 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
24159 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24161 * timevar.c (timevar_enable): Delete in favor of...
24162 (g_timer): New global.
24163 (struct timevar_def): Move to timevar.h inside class timer.
24164 (struct timevar_stack_def): Likewise.
24165 (timevars): Delete global in favor of field "m_timevars" within
24166 class timer in timevar.h
24167 (stack): Likewise, in favor of field "m_stack".
24168 (unused_stack_instances): Likewise, in favor of field
24169 "m_unused_stack_instances".
24170 (start_time): Likewise, in favor of field "m_start_time".
24171 (get_time): Eliminate check for timevar_enable.
24172 (timer::timer): New function, built from part of timevar_init.
24173 (timevar_init): Rewrite idempotency test from using
24174 "timevar_enable" bool to using dynamic allocation of "g_timer".
24175 Move rest of implementation into timer's constructor.
24176 (timevar_push_1): Rename to...
24177 (timer::push): ...this, adding "m_" prefixes to variables that
24178 are now fields of timer.
24179 (timevar_pop_1): Likewise, rename to...
24180 (timer::pop): ...this, and add "m_" prefixes.
24181 (timevar_start): Replace test for "timevar_enable" with one for
24182 "g_timer", and move bulk of implementation to...
24183 (timer::start): ...here, adding "m_" prefixes.
24184 (timevar_stop): Likewise, from here...
24185 (timer::stop): ...to here.
24186 (timevar_cond_start): Likewise, from here...
24187 (timer::cond_start): ...to here.
24188 (timevar_cond_stop): Likewise, from here...
24189 (timer::cond_stop): ...to here.
24190 (validate_phases): Rename to...
24191 (timer::validate_phases): ...this, and add "m_" prefixes. Make
24192 locals "total" and "tv" const.
24193 (timevar_print): Rename to...
24194 (timer::print): ...this, and add "m_" prefixes. Make locals
24195 "total" and "tv" const. Eliminate test for timevar_enable.
24196 * timevar.h (timevar_enable): Eliminate.
24197 (g_timer): New declaration.
24198 (timevar_push_1): Eliminate.
24199 (timevar_pop_1): Eliminate.
24200 (timevar_print): Eliminate.
24201 (class timer): New class.
24202 (timevar_push): Rewrite to use g_timer.
24203 (timevar_pop): Likewise.
24204 * toplev.c (toplev::~toplev): Likewise.
24206 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
24208 * arm-protos.h (arm_sched_autopref): Delete.
24209 (tune_params): Re-organize, use enums for flag values.
24210 (FUSE_OPS): New macro.
24211 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
24212 (ARM_PREFETCH_BENEFICIAL): Likewise.
24213 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
24214 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24215 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
24216 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
24217 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
24218 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
24219 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
24220 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
24222 (arm_option_override, thumb2_reorg, arm_print_tune_info)
24223 (aarch_macro_fusion_pair_p): Update uses of current_tune.
24224 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
24226 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
24228 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
24231 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
24232 Sandra Loosemore <sandra@codesourcery.com>
24234 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
24236 (REG_CLASS_NAMES): Add "IJMP_REGS".
24237 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
24238 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
24239 use new "c" register constraint.
24240 * config/nios2/constraint.md (c): New register constraint
24241 corresponding to IJMP_REGS.
24243 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24245 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
24246 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
24247 define_splits): Delete, revamp, transmogrify into ...
24248 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
24249 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
24250 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
24253 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24255 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
24256 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
24258 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24260 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
24261 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
24262 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
24263 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
24264 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
24265 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
24266 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
24267 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
24268 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
24269 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24270 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
24271 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
24272 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
24273 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
24274 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
24275 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
24276 and 30 corresponding splitters): Delete.
24278 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24280 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
24283 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24285 * combine.c (recog_for_combine_1): New function, factored out
24286 from recog_for_combine.
24287 (change_zero_ext): New function.
24288 (recog_for_combine): If recog fails, try again with the pattern
24289 modified by change_zero_ext; if that still fails, restore the
24292 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24294 * combine.c (get_undo_marker): New function.
24295 (undo_to_marker): New function, largely factored out from ...
24296 (undo_all): ... this. Adjust.
24298 2015-05-12 Richard Biener <rguenther@suse.de>
24300 PR tree-optimization/66101
24301 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
24302 fixup if we turn a loop exit edge to a fallthru edge.
24304 2015-05-12 Richard Biener <rguenther@suse.de>
24306 PR tree-optimization/37021
24307 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
24308 (SLP_TREE_TWO_OPERATORS): New define.
24309 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
24310 SLP_TREE_TWO_OPERATORS.
24311 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
24313 (vect_build_slp_tree): Adjust.
24314 (vect_analyze_slp_cost_1): Likewise.
24315 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
24316 emitting two vector stmts and mixing the results.
24318 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
24320 * call.c (print_z_candidates): Remove dead code.
24322 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24324 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
24325 and zEC12_simple_fp.
24326 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
24329 2015-05-12 Tom de Vries <tom@codesourcery.com>
24331 PR tree-optimization/66010
24332 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
24334 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
24335 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
24336 va_lists are passed, and remove corresponding handling.
24337 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
24338 do_deref argument to ifn_va_arg.
24339 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
24342 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24345 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
24346 REG before taking its REGNO.
24348 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
24350 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
24351 rsp->sign_bit_copies and rsp->nonzero_bits into ...
24352 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
24353 present to get more accurate information about the number of sign bit
24354 copies and non zero bits.
24356 2015-05-12 Richard Biener <rguenther@suse.de>
24358 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24359 do not allow unrolling.
24361 2015-05-11 Richard Henderson <rth@redhat.com>
24363 * config/i386/i386-modes.def (CCP): New.
24364 * config/i386/i386.c (put_condition_code): Handle it.
24365 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24367 2015-05-11 Richard Henderson <rth@redhat.com>
24369 * target.def (md_asm_clobbers): Replace with...
24370 (md_asm_adjust): this.
24371 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24372 (TARGET_MD_ASM_ADJUST): New.
24373 * tm.texi: Rebuild.
24374 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24375 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24376 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24378 * cfgexpand.c (check_operand_nalternatives): Accept vector of
24379 constraints instead of lists of outputs and inputs.
24380 (expand_asm_stmt): Save and restore input_location around the
24381 body of the function. Move asm data into vectors instead of
24382 building tree lists. Generate cleanup sequences as needed,
24383 rather than waiting til the end. Use new md_asm_adjust hook.
24385 * config/vxworks.c: Include vec.h before target.h.
24386 * gimple.c: Likewise.
24387 * incpath.c: Likewise.
24388 * mode-switching.c: Likewise.
24390 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24391 (cris_md_asm_adjust): this.
24392 (TARGET_MD_ASM_CLOBBERS): Remove.
24393 (TARGET_MD_ASM_ADJUST): New.
24394 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24395 (ix86_md_asm_adjust): this.
24396 (TARGET_MD_ASM_CLOBBERS): Remove.
24397 (TARGET_MD_ASM_ADJUST): New.
24398 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24399 (mn10300_md_asm_adjust): this.
24400 (TARGET_MD_ASM_CLOBBERS): Remove.
24401 (TARGET_MD_ASM_ADJUST): New.
24402 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24403 (rs6000_md_asm_adjust): this.
24404 (TARGET_MD_ASM_CLOBBERS): Remove.
24405 (TARGET_MD_ASM_ADJUST): New.
24406 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24407 (visium_md_asm_adjust): this.
24408 (TARGET_MD_ASM_CLOBBERS): Remove.
24409 (TARGET_MD_ASM_ADJUST): New.
24411 2015-05-11 Richard Henderson <rth@redhat.com>
24413 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24414 if noutputs is zero.
24415 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24417 * cfgexpand.c (expand_asm_operands): Merge into...
24418 (expand_asm_stmt): ... here.
24420 * cfgexpand.c (expand_asm_operands): Don't call
24421 resolve_asm_operand_names.
24422 * stmt.c (resolve_asm_operand_names): Clarify block comment.
24424 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
24426 * dwarf2out.c (gen_member_die): Sanity check that we access
24427 TYPE_MAIN_VARIANT for TYPE_METHODS.
24428 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24429 checking TYPE_METHODS.
24430 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24432 (build_distinct_type_copy): Clear TYPE_METHODS.
24433 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24434 (verify_type): Allow TYPE_METHODS to be error_mark_node.
24435 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24437 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
24439 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24440 (emit_pattern_before_setloc): Likewise.
24442 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24444 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24445 for define_peephole2s.
24446 (get_peephole2_pattern): New function.
24447 (main): Use it. Call validate_pattern.
24449 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24451 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24452 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24453 (Last callee saved reg is different for AVR_TINY architecture)
24455 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24457 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24458 when looking for memory references.
24460 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24463 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24464 via function pointers.
24466 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24468 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24469 indirect call by forcing address into a pseudo with -fno-plt.
24470 * common.opt (flag_plt): New option.
24471 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24472 ([-fno-plt]): Document.
24474 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
24477 * config/rs6000/option-defaults.h: Add space between string literal
24480 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
24482 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24483 accross ARM targets.
24485 2015-05-11 Christian Bruel <christian.bruel@st.com>
24487 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24488 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24490 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24492 PR rtl-optimization/66076
24493 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24494 Don't grow the heap array if it is already big enough from a
24495 previous iteration.
24497 2015-05-11 Christian Bruel <christian.bruel@st.com>
24499 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24500 (is_called_in_ARM_mode): Remove.
24501 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24502 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24503 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24504 arm_declare_function_name.
24506 2015-05-11 Christian Bruel <christian.bruel@st.com>
24508 * config/arm/arm.c (arm_option_override): Reoganized and split into :
24509 (arm_option_params_internal); New function.
24510 (arm_option_check_internal): New function.
24511 (arm_option_override_internal): New function.
24512 (thumb_code, thumb1_code): Remove.
24513 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24514 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24515 (thumb_code, thumb1_code): Remove.
24516 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24518 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24520 * config/alpha/alpha.c (alpha_emit_set_const_1)
24521 (alpha_emit_set_long_const, alpha_extract_integer)
24522 (alpha_legitimate_constant_p, alpha_split_const_mov)
24523 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24524 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24525 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24527 * config/alpha/predicates.md (mode_mask_operand): Do not match
24529 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24530 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24531 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24532 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24533 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24535 2015-05-11 Jakub Jelinek <jakub@redhat.com>
24538 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24539 default_binds_local_p_2.
24540 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24541 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24543 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24545 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24547 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24549 Patch by Richard Biener
24550 * coverage.c (coverage_obj_init): Delay building of type variant
24551 until the type is finished.
24553 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24555 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24556 mismatch between C and C++ type; compoare correctly ARG_TYPES
24557 for non-prototypes and output correctly parameter index for METHOD_TYPE.
24558 (odr_types_equivalent_p): Fix wording of warning about attributes;
24559 it is OK to match prototype and non-prototype.
24561 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24563 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24564 TYPE_ARG_TYPES list.
24565 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24566 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24568 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24570 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24571 * tree.h (is_lang_specific): Constify.
24573 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
24575 PR tree-optimization/64454
24576 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24579 2015-05-08 Jason Merrill <jason@redhat.com>
24581 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24582 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24583 config/darwin.h, config/darwin9.h, config/elfos.h,
24584 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24585 config/microblaze/microblaze.h, config/mips/mips.h,
24586 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24587 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24588 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24589 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24590 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24591 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24592 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24593 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24594 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24595 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24596 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24597 between string literal and macro name.
24599 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24601 * jump.c: Change argument types to rtx_insn *.
24604 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24606 * lra-constraints.c: Change argument type to rtx_insn *.
24608 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24610 * df-problems.c: Change argument type to rtx_insn *.
24612 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24614 * combine.c: Change argument type to rtx_insn *.
24616 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24619 * rtlanal.c: Change argument type to rtx_insn *.
24621 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24623 * sched-deps.c: Change argument types to rtx_insn *.
24624 * sched-int.h: Adjust.
24626 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24628 * dwarf2cfi.c: Change argument type to rtx_insn *.
24630 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24632 * ira.c (decrease_live_ranges_number): Changetype of local
24633 variable to rtx_insn *.
24634 * recog.c: Change argument types to rtx_insn *.
24637 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24639 * reorg.c: Change argument types to rtx_insn *.
24641 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24643 * ira-color.c: Change argument types to rtx_insn *.
24644 * lra-eliminations.c: Likewise.
24647 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24649 * gcse.c: Change argument types to rtx_insn *.
24651 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24653 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
24655 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24657 * emit-rtl.c (emit_debug_insn_before): Change argument type to
24661 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24663 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
24666 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24668 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
24671 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24673 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
24676 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24678 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
24681 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24683 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
24687 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24689 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
24693 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24695 * except.c (can_nonlocal_goto): Change type of argument to
24699 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24701 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
24704 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24706 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
24707 * cfgrtl.c (can_delete_label_p): Adjust.
24710 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24712 * reorg.c (stop_search_p): Change argument to rtx_insn *.
24714 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24716 * except.c (make_reg_eh_region_note): Change argument to
24718 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
24719 * except.h: Adjust.
24721 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24723 * mode-switching.c (commit_mode_sets): Change type of local
24724 variable from rtx to rtx_insn *.
24726 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
24728 * doc/install.texi (--enable-languages): Add missing jit and lto info.
24729 Add ^ to grep command.
24730 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
24731 arg to last gimple_simplify declaration. Add missing gimple_build
24732 declaration for built-in function case with four tree args.
24734 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24735 Szabolcs Nagy <szabolcs.nagy@arm.com>
24737 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
24738 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
24739 (GNU_USER_DYNAMIC_LINKERN32): Update.
24741 2015-05-08 Richard Biener <rguenther@suse.de>
24743 PR tree-optimization/66036
24744 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24745 Handle strided group loads.
24746 (vect_verify_datarefs_alignment): Likewise.
24747 (vect_enhance_data_refs_alignment): Likewise.
24748 (vect_analyze_group_access): Likewise.
24749 (vect_analyze_data_ref_access): Likewise.
24750 (vect_analyze_data_ref_accesses): Likewise.
24751 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
24752 (vectorizable_load): Likewise.
24754 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
24756 * config/rs6000/rs6000.md: Require operand inequality in one
24759 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
24760 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24762 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
24764 * config/rx/rx.md (movdi, movdf): Likewise.
24765 Likewise for define_peephole2s.
24767 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24769 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
24770 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
24771 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
24772 vtst_u64): Rewrite using gcc vector extensions.
24774 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24776 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
24777 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
24779 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24781 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
24783 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
24785 * config/glibc-stdint.h (OPTION_MUSL): Define.
24786 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
24787 Change the definition based on OPTION_MUSL for 64 bit targets.
24788 * config/linux.h (OPTION_MUSL): Redefine.
24789 * config/alpha/linux.h (OPTION_MUSL): Redefine.
24790 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
24791 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
24793 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24794 Szabolcs Nagy <szabolcs.nagy@arm.com>
24796 * config.gcc (LIBC_MUSL): New tm_defines macro.
24797 * config/linux.h (OPTION_MUSL): Define.
24798 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
24799 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
24800 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24801 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24802 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24803 * config/linux.opt (mmusl): New option.
24804 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
24805 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24806 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24807 * configure: Regenerate.
24809 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
24810 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24813 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
24814 * config/i386/knetbsd-gnu64.h: New file.
24816 2015-05-08 Marek Polacek <polacek@redhat.com>
24819 * doc/invoke.texi: Document -Woverride-init-side-effects.
24821 2015-05-07 Marek Polacek <polacek@redhat.com>
24824 * doc/invoke.texi: Document -Wshift-negative-value.
24826 2015-05-06 Aditya Kumar <hiraditya@msn.com>
24828 * gcov-tool.c (do_merge): Refactore to remove int ret.
24829 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
24830 !type == FUNC to type != FUNC.
24831 * reload.h (struct target_reload): Changee to type of
24832 x_spill_indirect_levels from bool to unsigned char.
24834 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
24836 * rtl.h (always_void_p): New function.
24837 * gengenrtl.c (always_void_p): Likewise.
24838 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
24839 with code foo are always VOIDmode.
24840 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
24841 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
24842 compare-elim.c, config/aarch64/aarch64.c,
24843 config/aarch64/aarch64.md, config/alpha/alpha.c,
24844 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
24845 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
24846 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
24847 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24848 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
24849 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
24850 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
24851 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
24852 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
24853 config/ia64/vect.md, config/iq2000/iq2000.c,
24854 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
24855 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
24856 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
24857 config/mep/mep.c, config/microblaze/microblaze.c,
24858 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
24859 config/mn10300/mn10300.c, config/msp430/msp430.c,
24860 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
24861 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
24862 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
24863 config/rs6000/altivec.md, config/rs6000/rs6000.c,
24864 config/rs6000/rs6000.md, config/rs6000/vector.md,
24865 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
24866 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
24867 config/sh/sh.md, config/sh/sh_treg_combine.cc,
24868 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
24869 config/spu/spu.md, config/stormy16/stormy16.c,
24870 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
24871 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
24872 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
24873 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
24874 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
24875 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
24876 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
24877 var-tracking.c: Update calls accordingly.
24879 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24882 PR middle-end/54303
24883 * varasm.c (function_mergeable_rodata_prefix): New function.
24884 (mergeable_string_section): Use it.
24885 (mergeable_constant_section): Use it.
24887 2015-05-07 Jeff Law <law@redhat.com>
24890 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24891 simplifier to narrow arithmetic.
24892 * generic-match-head.c: (types_match, single_use): New functions.
24893 * gimple-match-head.c: (types_match, single_use): New functions.
24895 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24897 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
24900 2015-05-07 Richard Biener <rguenther@suse.de>
24902 PR tree-optimization/66002
24903 * passes.def: Schedule another pass_merge_phi after ifcombine, right
24906 2015-05-07 Marek Polacek <polacek@redhat.com>
24907 Martin Uecker <uecker@eecs.berkeley.edu>
24909 * doc/invoke.texi: Document -fsanitize=bounds-strict.
24910 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
24911 into SANITIZE_NONDEFAULT.
24912 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
24914 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
24917 * config/alpha/alpha.c (alpha_override_options_after_change): New.
24918 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
24919 (alpha_override_options): Move align_loops, align_jumps and
24920 align_functions handling into alpha_override_options_after_change.
24922 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
24923 Chris Jones <chrisj@nvidia.com>
24924 Joshua Conner <jconner@nvidia.com>
24926 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
24927 linking of crtfastmath.o.
24928 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
24930 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24932 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
24933 (cstore<mode>4_unsigned_imm): New expander.
24934 (cstore<mode>4): Remove empty constraint strings. Use the new
24937 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
24940 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
24943 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
24945 * config/aarch64/geniterators.sh: Use standard BRE in sed.
24947 2015-05-06 Alan Modra <amodra@gmail.com>
24950 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
24951 (UNSPEC_NOP): Define.
24952 (reload_vsx_from_gpr<mode>): Add missing DONE.
24953 (reload_gpr_from_vsx<mode>): Likewise.
24954 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
24955 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
24957 2015-05-06 Christian Bruel <christian.bruel@st.com>
24960 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
24961 align_jumps, align_functions into aarch64_override_options_after_change.
24963 2015-05-06 Richard Biener <rguenther@suse.de>
24965 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
24966 vect_transform_slp_perm_load to check if we support a permutation
24967 for basic-block vectorization.
24969 2015-05-06 Nick Clifton <nickc@redhat.com>
24971 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
24972 used, even if it is not being used as a frame pointer.
24974 2015-05-05 Jason Merrill <jason@redhat.com>
24976 * dwarf2out.c (gen_member_die): Don't emit anything for an
24977 anonymous class constructor.
24979 2015-05-05 David Malcolm <dmalcolm@redhat.com>
24981 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
24982 that it reflects the block structure.
24983 (afdo_propagate_edge): Likewise.
24984 (afdo_calculate_branch_prob): Likewise.
24985 (afdo_annotate_cfg): Likewise.
24986 * cfgcleanup.c (equal_different_set_p): Likewise.
24987 (try_crossjump_to_edge): Likewise.
24988 * cgraph.c (cgraph_node::verify_node): Likewise.
24989 * cgraphunit.c (expand_all_functions): Likewise.
24990 * config/i386/i386.c (ix86_expand_copysign): Likewise.
24991 (exact_dependency_1): Likewise.
24992 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
24993 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
24994 * gensupport.c (process_define_subst): Likewise.
24995 * lto-wrapper.c (merge_and_complain): Likewise.
24996 * tree-if-conv.c (if_convertible_bb_p): Likewise.
24997 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
24998 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
24999 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
25000 * tree-vect-loop.c (vectorizable_reduction): Likewise.
25001 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
25002 * tree-vect-stmts.c (vectorizable_shift): Likewise.
25003 * tree-vrp.c (vrp_finalize): Likewise.
25004 * tree.c (variably_modified_type_p): Likewise.
25006 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
25008 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
25009 on darwin12 and later.
25010 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
25011 file to pass -rdynamic on darwin12 and later.
25012 * config/darwin.opt (rdynamic): Add.
25014 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25016 * doc/extend.texi (C Extensions): Update menu for moved Variable
25017 Attributes and Type Attributes sections.
25019 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25022 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
25023 if rep_8byte stringop strategy was specified for 32-bit target.
25025 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
25028 * config/i386/i386.md (vector convert to float spltiter): Check for
25029 xmm16+, when splitting scalar float conversion.
25030 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
25032 2015-05-05 Nick Clifton <nickc@redhat.com>
25034 * config/msp430/msp430-opts.h (enum msp430_regions): New.
25035 * config/msp430/msp430.c (msp430_override_options): Complain if
25036 -mcode-region or -mdata-region is used on a non MSP430X.
25037 (msp430_section_attr): New function. Checks lower, upper and
25039 (msp430_attribute_table): Add lower, upper and either.
25040 (gen_prefix): New function. Generates a prefix for a section
25042 (msp430_select_section): New function - handles the choice of
25043 section for an object. Takes into account memory region
25044 attributes and options.
25045 (msp430_function_section): Use gen_prefix.
25046 (TARGET_SECTION_TYPE_FLAGS): Define.
25047 (msp430_section_type_flags): New function.
25048 (TARGET_ASM_UNIQUE_SECTION): Define.
25049 (msp430_unique_section): New function.
25050 (msp430_output_aligned_decl_common): New function.
25051 (msp430_do_not_relax_short_jumps): New function.
25052 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
25054 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25055 * config/msp430/msp430-protos.h
25056 (msp430_do_not_relax_short_jumps): New prototype.
25057 (msp430_output_aligned_decl_common): New prototype.
25058 * config/msp430/msp430.md (length): New attribute.
25059 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
25060 then use a long code sequence for short jumps.
25061 * config/msp430/msp430.opt (mcode-region): New.
25062 (mdata-region): New.
25063 * doc/invoke.texi: Document new options.
25064 * doc/extend.texi: Document new attributes.
25066 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25068 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
25069 (tune_params): Add field branch_costs.
25070 (aarch64_branch_cost): Declare.
25071 * gcc/config/aarch64.c (generic_branch_cost): New.
25072 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
25073 (cortexa53_tunings): Likewise.
25074 (cortexa57_tunings): Likewise.
25075 (thunderx_tunings): Likewise.
25076 (xgene1_tunings): Likewise.
25077 (aarch64_branch_cost): Define.
25078 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
25080 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25082 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
25083 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
25084 * config/i386/i386.md: Ditto.
25085 * config/i386/winnt.c: Ditto.
25087 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25089 * doc/extend.texi (__atomic Builtins): Move implementation details
25090 to the end of the description, rewrite opening paragraphs, state
25091 difference with __sync builtins, state C11/C++11 assumptions,
25092 weaken itemized descriptions, add explanation of memory model
25093 behaviour, expand description of compare-exchange, simplify text.
25095 2015-05-05 Renlin Li <renlin.li@arm.com>
25097 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
25099 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
25101 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
25102 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25103 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
25104 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25105 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
25106 * configure: Regenerate.
25107 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
25108 * doc/install.texi (aarch64*-*-*): Document new
25109 --enable-fix-cortex-a53-843419 option.
25110 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
25111 and -mno-fix-cortex-a53-843419 options.
25113 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25116 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
25118 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
25120 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
25121 fix overactive TYPE_MIN_VALUE check and add FIXME for type
25122 compatibility problems.
25124 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25126 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
25128 (cbranchsi4_reg): New.
25129 * config/microblaze/microblaze.c
25130 (microblaze_expand_conditional_branch_reg): New.
25131 * config/microblaze/microblaze-protos.h
25132 (microblaze_expand_conditional_branch_reg): New prototype.
25134 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25136 * config/microblaze/microblaze.md (peephole2): New.
25138 2015-05-04 Jeff Law <law@redhat.com>
25141 2015-05-04 Jeff Law <law@redhat.com>
25143 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25144 simplifier to narrow arithmetic.
25145 * generic-match-head.c: (types_match, single_use): New functions.
25146 * gimple-match-head.c: (types_match, single_use): New functions.
25148 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25151 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
25152 (split_branches): Likewise.
25154 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
25156 * common.opt (fdelete-null-pointer-checks): Init to -1.
25157 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
25158 override flag_delete_null_pointer_checks default.
25159 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
25160 behavior re address zero. Better document target-specific behavior.
25161 (-fisolate-errneous-paths-dereference): Mention relationship to
25162 -fdelete-null-pointer-checks.
25164 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25166 PR tree-optimization/65984
25167 * ubsan.c: Include tree-cfg.h.
25168 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
25169 stmt_could_throw_p test, rename can_throw variable to ends_bb.
25171 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25173 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
25174 to CONST_DOUBLE_P predicate.
25175 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
25176 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
25177 allow only operands that satisfy standard_sse_constant_p predicate.
25178 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
25179 to CONST_DOUBLE_P predicate.
25181 2015-05-04 Jeff Law <law@redhat.com>
25183 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25184 simplifier to narrow arithmetic.
25185 * generic-match-head.c: (types_match, single_use): New functions.
25186 * gimple-match-head.c: (types_match, single_use): New functions.
25188 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
25190 * config/arm/arm.c: Restore bootstrap.
25192 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25194 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
25195 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
25196 as CONST_WIDE_INT, not CONST_DOUBLE.
25197 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
25198 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
25199 (ix86_find_base_term): Do not check for CONST_DOUBLE.
25200 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
25201 (ix86_build_signbit_mask): Rewrite using wide ints.
25202 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
25203 (ix86_rtx_costs): Handle CONST_WIDE_INT.
25204 (find_constant): Ditto.
25205 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
25206 using gen_int_mode.
25207 * config/i386/predicates.md (x86_64_immediate_operand)
25208 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25209 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
25210 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25211 (const0_operand): Also match const_wide_int.
25212 (constm1_operand): Ditto.
25213 (const1_operand): Ditto.
25215 2015-05-04 Richard Biener <rguenther@suse.de>
25217 PR tree-optimization/65965
25218 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
25219 store groups at gaps.
25221 2015-05-04 Richard Biener <rguenther@suse.de>
25223 PR tree-optimization/65935
25224 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
25225 then make sure to apply that swapping to the IL.
25227 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25229 * Makefile.in (PATCHLEVEL_c): New variable.
25230 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
25231 expand the same way as if DEVPHASE_c was non-empty.
25233 2015-05-04 Kai Tietz <ktietz@redhat.com>
25236 * lto-wrapper.c (run_gcc): Open filename
25239 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
25241 * doc/extend.texi (Variable Attributes, Type Attributes): Move
25242 sections up in file, to immediately after the Function Attributes
25245 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
25247 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
25249 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25251 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
25252 (insert_partition_copy_on_edge): Adjust.
25253 (insert_rtx_to_part_on_edge): Likewise.
25254 (insert_part_to_rtx_on_edge): Likewise.
25256 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25258 * function.c (set_return_jump_label): Change type of argument to
25260 * function.h (set_return_jump_label): Adjust.
25262 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25264 * reload.h (struct reg_equivs_t): Change type of init to
25266 * ira.c (fix_reg_equiv_init): Adjust.
25267 * reload1.c (eliminate_regs_1): Likewise.
25268 (init_eliminable_invariants): Likewise.
25270 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25272 * cselib.c (fp_setter_insn): Take a rtx_insn *.
25273 * cselib.h (fp_setter_insn): Adjust.
25275 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25277 * recog.c (struct validate_replace_src_data): Change type of
25278 insn field to rtx_insn *.
25279 (validate_replace_src_group): Change type of argument to rtx_insn *.
25280 * recog.h (validate_replace_src_group): Adjust.
25282 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25284 * haifa-sched.c: Change the type of some variables to rtx_insn *.
25285 * sched-deps.c: Likewise.
25286 * sched-int.h: Likewise.
25287 * sched-rgn.c: Likewise.
25288 * sel-sched.c: Likewise.
25290 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25293 * config/i386/i386.c: Change the type of some arguments to
25295 * config/arm/arm.c: Likewise.
25297 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25299 * lra-constraints.c: Change type of some arguments to rtx_insn *.
25301 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25303 * regcprop.c (kill_autoinc_value): Change type of argument to
25306 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25308 * genrecog.c (print_subroutine): Adjust.
25309 * recog.c (get_bool_attr_mask_uncached): Likewise.
25310 * recog.h (struct recog_data_d): Change the type of insn to
25313 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25315 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
25317 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25319 * df-problems.c (df_set_note): Change type of argument to
25322 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25324 * builtins.c (expand_builtin_trap): Change type of local
25325 variable to rtx_insn *.
25326 (add_sched_insns_for_speculation): Likewise.
25327 (ix86_emit_save_regs): Likewise.
25328 (get_scratch_register_on_entry): Likewise.
25329 (ix86_emit_restore_reg_using_pop): Likewise.
25330 (ix86_emit_leave): Likewise.
25331 (ix86_emit_restore_regs_using_mov): Likewise.
25332 (ix86_expand_epilogue): Likewise.
25334 (rl78_alloc_physical_registers_umul): Likewise.
25335 * cselib.c (discard_useless_locs): Likewise.
25336 (cselib_invalidate_regno): Likewise.
25337 (cselib_invalidate_mem): Likewise.
25338 * function.c (expand_function_start): Likewise.
25339 (emit_use_return_register_into_block): Likewise.
25340 * gcse.c: Likewise.
25341 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
25342 * ifcvt.c (noce_get_alt_condition): Likewise.
25343 * loop-doloop.c (doloop_condition_get): Likewise.
25344 * lra-constraints.c (inherit_in_ebb): Likewise.
25345 * modulo-sched.c (sms_schedule_by_order): Likewise.
25346 * recog.c (next_insn_tests_no_inequality): Likewise.
25347 * reorg.c (emit_delay_sequence): Likewise.
25348 (update_reg_dead_notes): Likewise.
25349 (fix_reg_dead_note): Likewise.
25350 (fill_slots_from_thread): Likewise.
25351 (delete_computation): Likewise.
25353 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
25355 * doc/extend.texi (Variable Attributes): Add menu and proper
25356 @nodes to subsections. Move Microsoft Windows attributes to
25357 their own subsection.
25358 (Type Attributes): Reorganize introduction to remove duplicate
25359 list of attributes. Add menu and proper @nodes to subsections.
25360 Alphabetize the main table of common attributes.
25362 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
25364 * match.pd: New simplification patterns.
25365 (x + (x & 1)) -> ((x + 1) & ~1)
25366 (x & ~(x & y)) -> ((x & ~y))
25367 (x | ~(x | y)) -> ((x | ~y))
25369 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25371 * target.def (attribute_table): Mention that struct attribute_spec
25372 is defined in tree-core.h rather than tree.h
25373 * doc/tm.texi: Regenerate.
25375 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
25377 * genrecog.c (test): Rename to rtx_test. Update rest of file
25380 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
25382 PR translation/65959
25383 * params.h (DEFPARAM): Rename msgid to nocmsgid.
25385 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25387 * gcc/config/aarch64/aarch64-protos.h (tune_params):
25388 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25389 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25390 Return value depending on target.
25391 (generic_tunings): Initialize new target settings.
25392 (cortexa53_tunings): Likewise.
25393 (cortexa57_tunings): Likewise.
25394 (thunderx_tunings): Likewise.
25395 (xgene1_tunings): Likewise.
25397 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25399 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25400 Make Cortex-A53 shift costs more accurate.
25402 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25404 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25407 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25409 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
25410 Calculate cost of op0 and op1 in PLUS and MINUS cases.
25412 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25414 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25415 Add cost of op0 in the compare-with-fpzero case.
25417 2015-04-30 David Malcolm <dmalcolm@redhat.com>
25419 * builtins.c (fold_builtin_1): Remove spurious second
25421 * cgraph.h (symtab_node::get_availability): Likewise.
25422 * opts.c (common_handle_option): Remove spurious second semicolon.
25423 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25424 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25426 2015-04-30 Caroline Tice <cmtice@google.com>
25428 PR gcov-profile/65929
25429 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25430 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25431 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25432 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25433 * doc/tm.texi: Regenerate.
25434 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
25435 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25436 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
25437 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25439 2015-04-30 Marek Polacek <polacek@redhat.com>
25441 * varasm.c (handle_cache_entry): Fix logic.
25443 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25445 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25446 (*extrsi5_insn_uxtw_alt): Likewise.
25447 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25448 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25451 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25453 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25456 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25458 * config/aarch64/aarch64.md
25459 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25460 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25461 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25462 appropriately. Handle alternative EON form.
25464 2015-04-30 Renlin Li <renlin.li@arm.com>
25466 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25467 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25469 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25472 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25473 -fstrict-aliasing boundaries.
25475 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25477 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25478 and [SU]MNEGL patterns.
25480 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25482 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25483 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25484 combined arithmetic-shift ops. Properly handle all shift and extend
25485 operations that can occur in combination with PLUS/MINUS.
25486 Rename maybe_fma to compound_p.
25487 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25488 arithmetic and shift operations.
25490 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25492 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25493 rather than arith_shift cost when costing ADD/MINUS of an
25496 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25499 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25502 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
25504 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25505 are for the same position.
25507 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
25509 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
25511 (vectorize_loops): Use it.
25513 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25515 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25516 for aggregate types.
25517 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25518 type to be non_ODR.
25519 * tree.c (need_assembler_name_p): Compute mangled name for
25520 non-fundamental types and integer types.
25522 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
25524 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25526 * expr.c (expand_expr_real_2): Likewise.
25528 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25530 * tree.c (build_common_builtin_nodes): Do not build
25531 __builtin_alloca_with_align as equivalent of library alloca.
25533 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25535 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25536 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25538 * tree.c: Include print-tree.h and ipa-utils.h
25539 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25540 (free_lang_data_in_cgraph): Call verify_type.
25541 (verify_type_variant): New function.
25542 (verify_type): New function.
25543 * tree.h (verify_type): Declare.
25545 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
25547 * config/mips/mips-cpus.def: (mips4): Change default processor
25548 from PROCESSOR_R8000 to PROCESSOR_R10000.
25550 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
25552 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25553 la/jalr instead of jal.
25555 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
25558 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25559 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25560 (setcc+movzbl peephole2): Check also clobbered reg.
25561 (setcc+andl peephole2): Ditto.
25563 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25566 * config/nvptx/mkoffload.c (target_ilp32): New variable.
25567 (main): Set it depending on "-foffload-abi=[...]".
25568 (compile_native, main): Use it to pass "-m32" or "-m64" to the
25571 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25574 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25575 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25576 Flip lane index back at assembly time for bigendian.
25578 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25580 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25581 * gimplify.c (gimplify_omp_workshare): Use it.
25583 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25585 * Makefile.in (build/genrecog.o): Depend on inchash.h.
25586 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25588 * genrecog.c: Rewrite most of the code except for the third page.
25590 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25592 * inchash.h, inchash.c: Include bconfig.h for build objects.
25593 * Makefile.in (build/inchash.o): New rule.
25595 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
25598 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25599 number in type attribute expression.
25601 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25603 * loop-iv.c (canon_condition): Generalize to all types of integer
25606 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
25608 * gimple-walk.c: Prune duplicate or unneeded includes.
25609 (walk_gimple_asm): Only call parse_input_constraint or
25610 parse_output_constraint if their findings are used.
25611 Honour parse_input_constraint and parse_output_constraint
25614 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25616 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
25618 2015-04-29 Tom de Vries <tom@codesourcery.com>
25620 PR tree-optimization/65893
25621 * passes.def (pass_all_optimizations): Move pass_stdarg to after
25624 2015-04-29 Richard Biener <rguenther@suse.de>
25626 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25627 compute GROUP_SIZE for basic-block SLP.
25628 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
25629 take into account gaps.
25630 (vect_get_mask_element): Properly reject references to previous
25632 (vect_transform_slp_perm_load): Likewise.
25634 2015-04-29 Christian Bruel <christian.bruel@st.com>
25637 * config/i386/i386.c (ix86_default_align): New function.
25638 (ix86_override_options_after_change): Call ix86_default_align.
25639 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
25640 (ix86_override_options_after_change): New function.
25642 2015-04-28 Jeff Law <law@redhat.com>
25644 * tree-ssa-dom.c (record_equality); Fix comment typos.
25646 2015-04-28 Tom de Vries <tom@codesourcery.com>
25648 PR tree-optimization/65887
25649 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
25651 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
25653 * doc/extend.texi (Declaring Attributes of Functions): Split into
25654 subsections by target. Alphabetize the table of common attributes.
25655 Rewrite some of the introductory text to reflect the new structure.
25656 Update some cross-references to point to the new subsections.
25657 (Attribute Syntax): Put paragraph about "__" naming here. Remove
25658 duplicate copies in the discussion of function, label, and type
25661 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
25664 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
25666 2015-04-28 Jason Merrill <jason@redhat.com>
25669 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
25670 (finalize_type_size): Respect TYPE_USER_ALIGN.
25671 (layout_type) [ARRAY_TYPE]: Likewise.
25673 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
25675 * config/arm/arm.md (*arm_movt): Fix type attribute.
25676 (*cmpsi_shiftsi): Likewise.
25677 (*cmpsi_shiftsi_swp): Likewise.
25678 (*movsicc_insn): Likewise.
25679 (*cond_move): Likewise.
25680 (*if_plus_move): Likewise.
25681 (*if_move_plus): Likewise.
25682 (*if_arith_move): Likewise.
25683 (*if_move_arith): Likewise.
25684 (*if_shift_move): Likewise.
25685 (*if_move_shift): Likewise.
25686 (*arm_movtas_ze): Likewise.
25687 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
25688 redundancy and type attribute.
25689 (*thumb2_movsi_insn): Fix type attribute.
25690 (*thumb2_addsi_short): Likewise.
25691 (thumb2_addsi3_compare0): Likewise.
25692 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
25693 attributes accordingly.
25695 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25698 * function.c (pad_to_arg_alignment): Add parentheses.
25700 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
25702 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
25703 libgcc/config/frv/elf-lib.h.
25705 2015-04-28 Tom de Vries <tom@codesourcery.com>
25707 * tree-call-cdce.c: Fix example in header comment.
25709 2015-04-28 Richard Biener <rguenther@suse.de>
25711 PR tree-optimization/62283
25712 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
25713 fails fatally and we are vectorizing a basic-block simply
25714 cause the child to be constructed piecewise.
25715 (vect_analyze_slp_cost_1): Adjust.
25716 (vect_detect_hybrid_slp_stmts): Likewise.
25717 (vect_bb_slp_scalar_cost): Likewise.
25718 (vect_get_constant_vectors): For piecewise constructed
25719 constants place them after the last def.
25720 (vect_get_slp_defs): Adjust.
25721 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
25722 externals for basic-block vectorization.
25724 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25727 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
25729 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
25730 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
25731 (AARCH64_TUNE_FMA_STEERING): Likewise.
25732 * config/aarch64/aarch64-cores.def: Set
25733 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
25734 FMUL/FMADD instructions.
25735 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
25736 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
25737 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
25738 * config/aarch64/cortex-a57-fma-steering.h: New file.
25739 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25741 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
25743 * gensupport.c (std_preds): Add missing codes to address_operand entry.
25745 2015-04-28 Richard Biener <rguenther@suse.de>
25747 PR tree-optimization/65851
25748 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
25749 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
25750 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
25751 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
25752 (ccp_visit_phi_node): Adjust.
25753 (evaluate_stmt): For simplifications to SSA names return its
25754 lattice value if that isn't VARYING. Return immediately when
25755 simplified to a constant.
25756 (visit_assignment): Adjust.
25757 (ccp_visit_stmt): Likewise.
25759 2015-04-28 Tom de Vries <tom@codesourcery.com>
25761 PR tree-optimization/65818
25762 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
25765 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25767 * calls.c (save_fixed_argument_area): Don't check
25768 ARGS_GROW_DOWNWARD with the preprocessor.
25769 (restore_fixed_argument_area): Likewise.
25770 (mem_overlaps_already_clobbered_arg_p): Likewise.
25771 (check_sibcall_argument_overlap): Likewise.
25772 (expand_call): Likewise.
25773 (emit_library_call_value_1): Likewise.
25774 (store_one_arg): Likewise.
25775 * function.c (assign_parms): Likewise.
25776 (locate_and_pad_parm): Likewise.
25777 (pad_to_arg_alignment): Likewise.
25778 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25780 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25782 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
25783 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
25784 * calls.c (save_fixed_argument_area): Don't chekc if
25785 ARGS_GROW_DOWNWARD is defined.
25786 (restore_fixed_argument_area): Likewise.
25787 (mem_overlaps_already_clobbered_arg_p): Likewise.
25788 (check_sibcall_argument_overlap): Likewise.
25789 (expand_call): Likewise.
25790 (emit_library_call_value_1): Likewise.
25791 (store_one_arg): Likewise.
25792 * function.c (assign_parms): Likewise.
25793 (locate_and_pad_parm): Likewise.
25794 (pad_to_arg_alignment): Likewise.
25795 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25797 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25799 * defaults.h (gen_epilogue): New function.
25800 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
25802 * cfgrtl.c (cfg_layout_finalize): Likewise.
25803 * df-scan.c: Likewise.
25804 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25805 (reposition_prologue_and_epilogue_notes): Likewise.
25806 * reorg.c (find_end_label): Likewise.
25807 * toplev.c: Likewise.
25809 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25811 * bb-reorder.c (HAVE_return): Don't check if its undefined.
25812 * defaults.h (gen_simple_return): New function.
25813 (gen_simple_return): Likewise.
25814 (HAVE_return): Add default definition to false.
25815 (HAVE_simple_return): Likewise.
25816 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
25817 HAVE_return and HAVE_simple_return are defined.
25818 * function.c (gen_return_pattern): Likewise.
25819 (convert_jumps_to_returns): Likewise.
25820 (thread_prologue_and_epilogue_insns): Likewise.
25821 * reorg.c (find_end_label): Likewise.
25822 (dbr_schedule): Likewise.
25823 * shrink-wrap.c: Likewise.
25824 * shrink-wrap.h: Likewise.
25826 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25828 * defaults.h (EPILOGUE_USES): Add default definition of false.
25829 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
25830 * resource.c (init_resource_info): Likewise.
25832 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25834 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
25836 * dwarf2out.c (field_byte_offset): REmove check if
25837 PCC_BITFIELD_TYPE_MATTERS is defined.
25838 * stor-layout.c (layout_decl): Likewise.
25839 (update_alignment_for_field): Likewise.
25840 (place_field): Likewise.
25842 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25844 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
25846 * regrename.c (check_new_reg_p): Remove check if
25847 HARD_REGNO_RENAME_OK is defined.
25848 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
25850 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25852 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
25853 * cse.c (fold_rtx): Likewise.
25854 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
25855 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
25856 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
25857 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
25858 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
25859 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
25860 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
25861 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
25862 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
25863 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
25865 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
25866 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
25867 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
25868 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
25869 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
25870 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
25871 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
25872 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
25873 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
25874 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
25875 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
25876 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
25877 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
25878 * doc/tm.texi: Regenerate.
25879 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
25880 either true or false.
25882 2015-04-27 Jeff Law <law@redhat.com>
25884 PR tree-optimization/65217
25885 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
25886 of them has a single use, make sure it is the LHS of the implied
25889 2015-04-28 Alan Modra <amodra@gmail.com>
25892 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
25893 (offsettable_ok_by_alignment): Use minimum of decl and toc
25894 pointer alignment. Replace dead code with assertion.
25895 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
25896 case if size exceeds toc pointer alignment.
25897 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
25898 (rs6000_emit_move): Likewise.
25899 * configure.ac: Add linker toc pointer alignment check.
25900 * configure: Regenerate.
25901 * config.in: Regenerate.
25903 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
25905 * config.gcc: Add h8300-*-linux.
25906 * config/h8300/linux.h: New.
25907 * config/h8300/t-linux: New.
25908 * config/h8300/h8300.c (h8300_option_override): Normal mode
25909 is not supported for h8300-*-linux.
25910 (h8300_file_start): Target priority change.
25911 (get_shift_alg): Likewise.
25912 (h8300_shift_need_scratch_p): Likewise.
25913 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
25914 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
25916 2015-04-27 Caroline Tice <cmtice@google.com>
25918 * final.c (final_scan_insn): Output cold_function_name as function
25920 * varasm.c (cold_function_name): Make global.
25921 (assemble_start_function): Re-set cold_function_name.
25922 (assemble_end_function): Output cold partition size.
25923 * varasm.h (cold_function_name): Declare global.
25925 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
25927 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
25928 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
25930 (*movxi_internal_avx512f): Ditto.
25931 (define_split): Check for xmm16+, when splitting scalar float_extend.
25932 (*extendsfdf2_mixed): Use "v" constraint.
25933 (define_split): Check for xmm16+, when splitting scalar float_truncate.
25934 (*truncdfsf_fast_sse): Use "v" constraint.
25935 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
25936 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
25937 (define_peephole2): Check for xmm16+, when converting scalar
25939 (define_peephole2): Check for xmm16+, when converting scalar
25941 (*fop_<mode>_comm_mixed): Use "v" constraint.
25942 (*fop_<mode>_comm_sse): Ditto.
25943 (*fop_<mode>_1_mixed): Ditto.
25944 (*sqrt<mode>2_sse): Ditto.
25945 (*ieee_s<ieee_maxmin><mode>3): Ditto.
25947 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25949 * combine.c (simplify_if_then_else): Use std::swap instead
25950 of manually swapping.
25951 (known_cond): Likewise.
25952 (simplify_comparison): Likewise.
25954 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
25957 * config/rs6000/htm.md: Remove all define_expands.
25958 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
25959 UNSPECV_HTM_TABORTWCI): Remove.
25960 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
25961 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
25962 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
25963 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
25964 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
25965 tabortwci_internal): Remove define_insns.
25966 (tabort<wd>c, tabort<wd>ci): New define_insns.
25967 (tabort): Use gpc_reg_operand.
25968 (tcheck): Remove operand.
25969 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
25970 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
25972 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
25973 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
25974 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
25975 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
25976 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
25977 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
25978 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
25979 (tcheck): Remove builtin argument.
25980 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
25982 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
25983 tabortdc and tabortdci builtins when not in 64-bit mode.
25984 Modify code to handle the loss of the HTM define_expands.
25985 Emit code to copy the CR register to TARGET.
25986 (htm_init_builtins): Modify code to handle the loss of the HTM
25988 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
25989 (RS6000_BTC_64BIT): Likewise.
25990 (RS6000_BTC_CR): New macro.
25991 * doc/extend.texi: Update documentation for htm builtins.
25993 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25995 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
25996 of manually swapping.
25997 (simplify_associative_operation): Likewise.
25998 (simplify_binary_operation): Likewise.
25999 (simplify_plus_minus): Likewise.
26000 (simplify_relational_operation): Likewise.
26001 (simplify_ternary_operation): Likewise.
26003 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26005 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
26006 (xs_hi_nonmemory_operand): Remove error.
26007 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
26008 general_operand rather than xs_hi_general_operand.
26010 2015-04-27 Richard Biener <rguenther@suse.de>
26012 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
26013 (record_equivalences_from_stmt): Valueize rhs.
26014 (record_equality): Canonicalize x and y order via
26015 tree_swap_operands_p. Do not swap operands for same loop depth.
26017 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
26021 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
26022 Add hint how to use own spec file.
26024 2015-04-27 Jakub Jelinek <jakub@redhat.com>
26026 PR tree-optimization/65875
26027 * tree-vrp.c (update_value_range): If in is_new case setting
26028 old_vr to VR_VARYING, also set new_vr to it. Remove
26029 old_vr->type == VR_VARYING test.
26030 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
26031 SSA_PROP_INTERESTING if update_value_range returned true,
26032 but new range is VR_VARYING.
26034 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
26036 * combine.c (sign_extend_short_imm): New.
26037 (set_nonzero_bits_and_sign_copies): Use above new function for sign
26038 extension of src short immediate.
26039 (reg_nonzero_bits_for_combine): Likewise for tem.
26041 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26043 * stor-layout.c (self_referential_component_ref_p): New predicate.
26044 (copy_self_referential_tree_r): Use it.
26045 (self_referential_size): Punt for simple operations directly involving
26046 self-referential component references.
26047 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
26049 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26051 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
26053 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26055 * vec.h (vec): Make splice arguments const. Update definitions
26058 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
26060 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
26063 2015-04-26 Tom de Vries <tom@codesourcery.com>
26065 PR tree-optimization/65826
26066 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
26068 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
26070 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
26071 (*madd3<mode>): Ditto.
26072 (*msub4<mode>): Ditto.
26073 (*msub3<mode>): Ditto.
26074 (*nmadd4<mode>): Ditto.
26075 (*nmadd3<mode>): Ditto.
26076 (*nmadd4<mode>_fastmath): Ditto.
26077 (*nmadd3<mode>_fastmath): Ditto.
26078 (*nmsub4<mode>): Ditto.
26079 (*nmsub3<mode>): Ditto.
26080 (*nmsub4<mode>_fastmath): Ditto.
26081 (*nmsub3<mode>_fastmath): Ditto.
26083 2015-04-24 Jason Merrill <jason@redhat.com>
26086 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
26087 down when building TYPE_CANONICAL.
26088 (build_pointer_type_for_mode): Likewise.
26090 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
26092 * genrecog.c (validate_pattern): Check matching constraint refers
26093 to a lower numbered operand.
26095 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26098 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
26099 save to independent variables use the Save attribute. This will
26100 allow these options to be modified with the #pragma/attribute
26102 (-mallow-movmisalign): Likewise.
26103 (-mallow-df-permute): Likewise.
26104 (-msched-groups): Likewise.
26105 (-malways-hint): Likewise.
26106 (-malign-branch-targets): Likewise.
26107 (-mvectorize-builtins): Likewise.
26108 (-msave-toc-indirect): Likewise.
26110 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
26111 can be set via the #pragma/attribute target support.
26112 (rs6000_opt_vars): Likewise.
26113 (rs6000_inner_target_options): If VSX was set, also set
26114 -mno-avoid-indexed-addresses.
26116 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26118 * config/arm/iterators.md (shiftable_ops): Rename to...
26119 (SHIFTABLE_OPS): ... This. Update use in comments.
26120 (ior_xor): Rename to...
26121 (IOR_XOR): ... This.
26122 (vqh_ops): Rename to...
26123 (VQH_OPS): ... This.
26124 (vqhs_ops): Rename to...
26125 (VQHS_OPS): ... This.
26126 (rshifts): Rename to...
26127 (RSHIFTS): ... This.
26128 (returns): Rename to...
26129 (RETURNS): ... This.
26130 * config/arm/arm.md: Update uses of the above.
26131 * config/arm/neon.md: Likewise.
26133 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26135 * config.host (case ${host}): Add aarch64*-*-linux case.
26136 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
26137 fields to all the cores.
26138 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
26139 Add MCPU_MTUNE_NATIVE_SPECS.
26140 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
26141 field to all extensions.
26142 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
26143 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
26144 Adjust definition of AARCH64_OPT_EXTENSION.
26145 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
26146 (MCPU_MTUNE_NATIVE_SPECS): Define.
26147 * config/aarch64/driver-aarch64.c: New file.
26148 * config/aarch64/x-arch64: New file.
26149 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
26152 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26153 Wei Mi <wmi@google.com>
26155 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
26156 * config/i386/i386.c (extract_base_offset_in_addr): New function.
26157 (ix86_operands_ok_for_move_multiple): Ditto.
26158 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
26159 (movlpd/movhpd to movupd peephole2): Ditto.
26161 2015-04-24 Marek Polacek <polacek@redhat.com>
26164 * input.h (from_macro_expansion_at): Define.
26167 * doc/invoke.texi: Update description of -Wlogical-op.
26169 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26171 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
26172 ternary operator in fprintf and harmonize spacing.
26174 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26176 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
26177 Mark operand1 commutative.
26179 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26181 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
26182 input operands in memory.
26183 (*vec_concatv2si_sse4_1): Ditto.
26184 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
26185 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
26187 (vec_extract_hi_v32hi): Ditto.
26188 (vec_extract_hi_v64hi): Ditto.
26189 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
26191 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26192 Steven Bosscher <steven@gcc.gnu.org>
26194 PR rtl-optimization/34503
26195 * cprop.c (cprop_reg_p): New.
26196 (hash_scan_set): Use above function to check if register can be
26198 (find_avail_set): Return up to two sets, one whose source is a
26199 register and one whose source is a constant. Sets are returned in an
26200 array passed as parameter rather than as a return value.
26201 (cprop_insn): Use a do while loop rather than a goto. Try each of the
26202 sets returned by find_avail_set, starting with the one whose source is
26203 a constant. Use cprop_reg_p to check if register can be propagated.
26204 (do_local_cprop): Use cprop_reg_p to check if register can be
26206 (implicit_set_cond_p): Likewise.
26208 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26210 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
26211 (sem_function::equals): IGNORED_NODES parameter is now unused;
26212 update call of equals_private.
26213 (sem_function::equals_private): Do not call equals_wpa; skip
26214 gimple body matching if there is no body.
26215 (sem_function::init): Add logic to hash tthunk info.
26216 (sem_function::parse): Also parse thunks.
26217 * ipa-icf.h (equals_private): Update declaration.
26219 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26221 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
26222 asterisk from name so this can be generated directly.
26223 (*altivec_stvx_<mode>_internal): Likewise.
26224 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
26225 that this is never called during or after reload/lra.
26226 (rs6000_frame_related): Remove split_reg
26227 argument and logic that references it.
26228 (emit_frame_save): Remove last parameter from call to
26229 rs6000_frame_related.
26230 (rs6000_emit_prologue): Remove last parameter from eight calls to
26231 rs6000_frame_related. Force generation of stvx instruction for
26232 Altivec register saves. Remove split_reg handling, which is no
26234 (rs6000_emit_epilogue): Force generation of lvx instruction for
26235 Altivec register restores.
26237 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26239 * config/rs6000/rs6000.opt (mcrypto): Change option description to
26240 match category changes in ISA 2.07B.
26242 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26244 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
26246 (cmp_op, cmp_type): New code attributes.
26247 (NEON_VCMP, NEON_VACMP): New int iterators.
26248 (cmp_op_unsp): New int attribute.
26249 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
26250 (neon_vceq<mode>): Delete.
26251 (neon_vc<cmp_op><mode>_insn): New pattern.
26252 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
26253 (neon_vcgeu<mode>): Delete.
26254 (neon_vcle<mode>): Likewise.
26255 (neon_vclt<mode>: Likewise.
26256 (neon_vcage<mode>): Likewise.
26257 (neon_vcagt<mode>): Likewise.
26258 (neon_vca<cmp_op><mode>): New define_expand.
26259 (neon_vca<cmp_op><mode>_insn): New pattern.
26260 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
26262 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26264 * tree.h (attribute_value_equal): Declare.
26265 * tree.c (attribute_value_equal): Export.
26267 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26269 * ipa-icf.c (sem_item::compare_attributes): New function.
26270 (sem_item::compare_referenced_symbol_properties): Compare variable
26272 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
26273 (sem_function::param_used_p): New function.
26274 (sem_function::equals_wpa): Fix attribute comparsion; match
26275 parameter type codes; do not compare paremter flags when
26276 they are not used; compare edge flags; compare indirect calls.
26277 (sem_item::update_hash_by_addr_refs): Hash reference type.
26278 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
26279 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
26280 reference use type.
26281 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
26282 * ipa-icf.h (compare_attributes, param_used_p): Declare.
26284 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26286 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
26288 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
26289 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
26290 (sem_item::compare_referenced_symbol_properties): New.
26291 (sem_item::hash_referenced_symbol_properties): New.
26292 (sem_item::compare_cgraph_references): Rename to ...
26293 (sem_item::compare_symbol_references): ... this one; use
26294 compare_referenced_symbol_properties.
26295 (sem_function::equals_wpa): Do not compare
26296 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
26297 DECL_IS_OPERATOR_NEW; compare pointer sizes.
26298 (sem_item::update_hash_by_addr_refs): Call
26299 hash_referenced_symbol_properties.
26300 (sem_item::update_hash_by_local_refs): Cleanup.
26301 (sem_function::merge): Do not mix up symbol properties.
26302 (sem_variable::equals_wpa): Use compare_symbol_references.
26303 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
26304 (sem_item::hash_referenced_symbol_properties): New.
26305 (sem_item::compare_symbol_references): New.
26306 (sem_item::compare_cgraph_references): Remove.
26308 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
26311 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
26312 Emit size of local.
26314 2015-04-23 Nick Clifton <nickc@redhat.com>
26316 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
26317 ATTRIBUTE_UNUSED to x parameter.
26318 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
26320 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26322 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
26323 TARGET_CRYPTO to TARGET_P8_VECTOR>
26324 (crypto_vpermxor_<mode>): Likewise.
26325 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
26326 (BU_CRYPTO_3A): Likewise.
26327 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
26328 (BU_CRYPTO_OVERLOAD_3A): New #define.
26329 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
26330 (VPMSUMH): Likewise.
26331 (VPMSUMW): Likewise.
26332 (VPMSUMD): Likewise.
26333 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
26334 (VPERMXOR_V4SI): Likewise.
26335 (VPERMXOR_V8HI): Likewise.
26336 (VPERMXOR_V16QI): Likewise.
26337 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
26338 BU_CRYPTO_OVERLOAD_2A.
26339 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
26340 BU_CRYPTO_OVERLOAD_3A.
26341 * config/rs6000/rs6000.opt (mcrypto): Change description of
26344 2015-04-23 Richard Biener <rguenther@suse.de>
26346 * passes.def: Remove copy propagation passes run directly after CCP.
26347 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
26349 (ccp_visit_phi_node): Rework to handle first executable edge
26352 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
26354 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26355 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26356 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26357 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26358 (thumb_legimitimize_reload_address): Remove.
26359 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26361 (thumb_legimitimize_reload_address): Remove.
26363 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26365 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26367 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26369 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26371 (store_multiple): Likewise.
26373 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26375 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26376 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26377 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26378 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26379 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26380 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26381 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26382 Specify issue_rate value.
26383 (arm_issue_rate): Look up issue rate from tuning structs. Remove
26384 large switch statement.
26385 (arm_marvell_pj4_tune): New struct.
26386 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26389 2015-04-23 Richard Biener <rguenther@suse.de>
26391 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26392 (vect_find_last_store_in_slp_instance): Rename to ...
26393 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26394 (vect_analyze_slp_cost_1): Use vector_load for constant defs
26395 and vec_construct for external defs when estimating prologue cost.
26396 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26397 Compute costs here only when vectorizing loops.
26398 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26399 have been determined.
26400 (vect_schedule_slp_instance): Simplify vectorized code placement
26401 and prepare for in-BB external defs.
26402 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26403 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26404 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26406 (vect_model_load_cost): Likewise.
26407 (vectorizable_store): Instead add it here.
26408 (vectorizable_load): Likewise.
26409 (vect_is_simple_use): Dump def type textually.
26411 2015-04-23 Richard Biener <rguenther@suse.de>
26413 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26414 * cfgloop.c (verify_loop_structure): Verify the root loop node.
26415 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26416 instead of get_eh_region_from_lp_number.
26417 * loop-init.c (fix_loop_structure): If we removed a loop, reset
26420 2015-04-23 Anton Blanchard <anton@samba.org>
26422 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26423 need for -mprofile-kernel to save LR to stack.
26425 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26427 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26429 (insn_is_swappable_p): Return 1 for a convert from double to
26430 single precision when all of its uses are splats of BE element
26433 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
26435 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26437 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26440 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
26441 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26442 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26444 (rs6000_builtin_mask_for_load): Return 0 for targets with
26445 efficient unaligned VSX accesses so that the vectorizer will use
26446 direct unaligned loads.
26447 (rs6000_builtin_support_vector_misalignment): Always return true
26448 for targets with efficient unaligned VSX accesses.
26449 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26450 stores on targets with efficient unaligned VSX accesses is almost
26451 always the same as the cost of an aligned load or store, so model
26453 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26454 unaligned vectors if we have efficient unaligned VSX accesses.
26455 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26456 undocumented option.
26458 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26461 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26463 * config.gcc (LIBC_MUSL): New tm_defines macro.
26464 * config/linux.h (OPTION_MUSL): Define.
26465 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26466 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26467 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26469 * config/linux.opt (mmusl): New option.
26470 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26471 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26473 * configure: Regenerate.
26475 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26477 * config.gcc (LIBC_MUSL): New tm_defines macro.
26478 * config/linux.h (OPTION_MUSL): Define.
26479 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26480 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26481 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26483 * config/linux.opt (mmusl): New option.
26484 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26485 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26487 * configure: Regenerate.
26489 2015-04-22 Yury Gribov <y.gribov@samsung.com>
26491 * doc/invoke.texi (-fsanitize-sections): Update description.
26492 * asan.c (set_sanitized_sections): Parse incoming arg.
26493 (section_sanitized_p): Support wildcards.
26495 2015-04-22 Tom de Vries <tom@codesourcery.com>
26497 PR tree-optimization/65823
26498 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26499 equality between ap_copy and ap.
26501 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26504 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26506 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26509 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26511 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26514 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26515 remove already contained t-files.
26517 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26519 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26520 Remove unneeded forward declarations.
26521 (suitable_for_tail_call_opt_p): Commentary typo fix.
26523 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26525 * varasm.c (emit_bss): Remove redundant guard.
26527 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26529 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26531 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26533 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26535 2015-04-22 Hale Wang <hale.wang@arm.com>
26536 Terry Guo <terry.guo@arm.com>
26538 PR rtl-optimization/64818
26539 * combine.c (can_combine_p): Don't combine user-specified
26540 register if it is in an asm input.
26542 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
26545 * passes.def (early_optimizations): Add pass_dse.
26547 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26549 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26550 * reorg.c (redundant_insn): Remove ifdef
26551 INSN_REFERENCES_ARE_DELAYED.
26552 * resource.c (mark_referenced_resources): Likewise.
26554 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26556 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26557 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26558 * resource.c (mark_set_resources): Likewise.
26560 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26562 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26563 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26564 (flow_find_head_matching_sequence): Likewise.
26565 (try_head_merge_bb): Likewise.
26566 * combine.c (can_combine_p): Likewise.
26567 (try_combine): Likewise.
26568 (distribute_notes): Likewise.
26569 * df-problems.c (can_move_insns_across): Likewise.
26570 * final.c (final): Likewise.
26571 * gcse.c (insert_insn_end_basic_block): Likewise.
26572 * ira.c (find_moveable_pseudos): Likewise.
26573 * reorg.c (try_merge_delay_insns): Likewise.
26574 (fill_simple_delay_slots): Likewise.
26575 (fill_slots_from_thread): Likewise.
26576 * sched-deps.c (sched_analyze_2): Likewise.
26578 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26580 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26581 PIC_OFFSET_TABLE_REGNUM.
26583 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26585 * alias.c (init_alias_target): Remove ifdef
26586 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26587 * df-scan.c (df_insn_refs_collect): Likewise.
26588 (df_get_regular_block_artificial_uses): Likewise.
26589 (df_get_eh_block_artificial_uses): Likewise.
26590 (df_get_entry_block_def_set): Likewise.
26591 (df_get_exit_block_use_set): Likewise.
26592 * emit-rtl.c (gen_rtx_REG): Likewise.
26593 * ira.c (ira_setup_eliminable_regset): Likewise.
26594 * reginfo.c (init_reg_sets_1): Likewise.
26595 * regrename.c (rename_chains): Likewise.
26596 * reload1.c (reload): Likewise.
26597 (eliminate_regs_in_insn): Likewise.
26598 * resource.c (mark_referenced_resources): Likewise.
26599 (init_resource_info): Likewise.
26601 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26603 * defaults.h (MASK_RETURN_ADDR): New definition.
26604 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26607 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26609 * defaults.h (RETURN_ADDR_OFFSET): New definition.
26610 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26611 RETURN_ADDR_OFFSET.
26612 (expand_builtin_frob_return_addr): Likewise.
26614 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26616 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
26617 (try_redirect_by_replacing_jump): Likewise.
26618 (rtl_tidy_fallthru_edge): Likewise.
26619 * combine.c (insn_a_feeds_b): Likewise.
26620 (find_split_point): Likewise.
26621 (simplify_set): Likewise.
26622 * cprop.c (cprop_jump): Likewise.
26623 * cse.c (cse_extended_basic_block): Likewise.
26624 * df-problems.c (can_move_insns_across): Likewise.
26625 * function.c (emit_use_return_register_into_block): Likewise.
26626 * haifa-sched.c (sched_init): Likewise.
26627 * ira.c (find_moveable_pseudos): Likewise.
26628 * loop-invariant.c (find_invariant_insn): Likewise.
26629 * lra-constraints.c (curr_insn_transform): Likewise.
26630 * postreload.c (reload_combine_recognize_const_pattern):
26632 * reload.c (find_reloads): Likewise.
26633 * reorg.c (delete_scheduled_jump): Likewise.
26634 (steal_delay_list_from_target): Likewise.
26635 (steal_delay_list_from_fallthrough): Likewise.
26636 (redundant_insn): Likewise.
26637 (fill_simple_delay_slots): Likewise.
26638 (fill_slots_from_thread): Likewise.
26639 (delete_computation): Likewise.
26640 * sched-rgn.c (add_branch_dependences): Likewise.
26642 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26644 * genconfig.c (main): Always define HAVE_cc0.
26645 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
26647 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26648 (flow_find_head_matching_sequence): Likewise.
26649 (try_head_merge_bb): Likewise.
26650 * cfgrtl.c (rtl_merge_blocks): Likewise.
26651 (try_redirect_by_replacing_jump): Likewise.
26652 (rtl_tidy_fallthru_edge): Likewise.
26653 * combine.c (do_SUBST_MODE): Likewise.
26654 (insn_a_feeds_b): Likewise.
26655 (combine_instructions): Likewise.
26656 (can_combine_p): Likewise.
26657 (try_combine): Likewise.
26658 (find_split_point): Likewise.
26660 (simplify_set): Likewise.
26661 (distribute_notes): Likewise.
26662 * cprop.c (cprop_jump): Likewise.
26663 * cse.c (cse_extended_basic_block): Likewise.
26664 * df-problems.c (can_move_insns_across): Likewise.
26665 * final.c (final): Likewise.
26666 (final_scan_insn): Likewise.
26667 * function.c (emit_use_return_register_into_block): Likewise.
26668 * gcse.c (insert_insn_end_basic_block): Likewise.
26669 * haifa-sched.c (sched_init): Likewise.
26670 * ira.c (find_moveable_pseudos): Likewise.
26671 * loop-invariant.c (find_invariant_insn): Likewise.
26672 * lra-constraints.c (curr_insn_transform): Likewise.
26673 * optabs.c (prepare_cmp_insn): Likewise.
26674 * postreload.c (reload_combine_recognize_const_pattern):
26676 * reload.c (find_reloads): Likewise.
26677 (find_reloads_address_1): Likewise.
26678 * reorg.c (delete_scheduled_jump): Likewise.
26679 (steal_delay_list_from_target): Likewise.
26680 (steal_delay_list_from_fallthrough): Likewise.
26681 (try_merge_delay_insns): Likewise.
26682 (redundant_insn): Likewise.
26683 (fill_simple_delay_slots): Likewise.
26684 (fill_slots_from_thread): Likewise.
26685 (delete_computation): Likewise.
26686 (relax_delay_slots): Likewise.
26687 * sched-deps.c (sched_analyze_2): Likewise.
26688 * sched-rgn.c (add_branch_dependences): Likewise.
26690 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26692 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
26693 that is trivially ded on non cc0 targets.
26694 (simplify_set): Likewise.
26695 (mark_used_regs_combine): Likewise.
26696 * cse.c (new_basic_block): Likewise.
26697 (fold_rtx): Likewise.
26698 (cse_insn): Likewise.
26699 (cse_extended_basic_block): Likewise.
26700 (set_live_p): Likewise.
26701 * rtlanal.c (canonicalize_condition): Likewise.
26702 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
26704 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26706 * conditions.h: Define macros even if HAVE_cc0 is undefined.
26707 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
26708 * final.c: Likewise.
26709 * jump.c: Likewise.
26710 * recog.c: Likewise.
26711 * recog.h: Declare functions even when HAVE_cc0 is undefined.
26712 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
26714 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26716 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
26717 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
26718 * builtins.c (expand_builtin): Remove check if
26719 EH_RETURN_DATA_REGNO is defined.
26720 * df-scan.c (df_bb_refs_collect): Likewise.
26721 (df_get_exit_block_use_set): Likewise.
26722 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
26723 * ira-lives.c (process_bb_node_lives): Likewise.
26724 * lra-lives.c (process_bb_lives): Likewise.
26726 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26728 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
26729 FIRST_PSEUDO_REG): New.
26730 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
26731 (ARG_POINTER_REGNUM): Define to ARGP_REG.
26732 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
26733 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
26734 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
26735 (FIRST_INT_REG): New.
26736 (LAST_INT_REG): New.
26737 (FIRST_*_REG): Define using *_REG.
26738 (LAST_*_REG): Ditto.
26739 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
26740 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
26741 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
26743 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26745 * expmed.c: (synth_mult): Only assume overlapping
26746 shift with previous steps in alg_sub_t_m2 case.
26748 2015-04-21 Richard Biener <rguenther@suse.de>
26750 PR tree-optimization/65650
26751 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
26752 transitions involving copies.
26753 (set_lattice_value): Adjust for copy lattice state.
26754 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
26755 if that doesn't dominate the merge point.
26756 (bit_value_unop): Adjust what we treat as varying mask.
26757 (bit_value_binop): Likewise.
26758 (bit_value_assume_aligned): Likewise.
26759 (evaluate_stmt): When we simplified to a SSA name record a copy
26760 instead of dropping to varying.
26761 (visit_assignment): Simplify.
26763 * gimple-match.h (gimple_simplify): Add another callback.
26764 * gimple-fold.c (fold_stmt_1): Adjust caller.
26765 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
26766 for the 2nd callback.
26767 * gimple-match-head.c (gimple_simplify): Add a callback that is
26768 used to valueize the stmt operands and use it that way.
26770 2015-04-21 Richard Biener <rguenther@suse.de>
26772 PR tree-optimization/65788
26773 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
26775 2015-04-21 Richard Biener <rguenther@suse.de>
26777 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
26778 vec_construct cost by vec_stmt_cost.
26780 2015-04-21 Richard Biener <rguenther@suse.de>
26782 * cfghooks.h (create_basic_block): Replace with two overloads
26783 for RTL and GIMPLE.
26784 (split_block): Likewise.
26785 * cfghooks.c (split_block): Rename to ...
26786 (split_block_1): ... this.
26787 (split_block): Add two type-safe overloads for RTL and GIMPLE.
26788 (split_block_after_labels): Call split_block_1.
26789 (create_basic_block): Rename to ...
26790 (create_basic_block_1): ... this.
26791 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
26792 (create_empty_bb): Call create_basic_block_1.
26793 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
26794 split_block_after_labels.
26795 * omp-low.c (expand_parallel_call): Likewise.
26796 (expand_omp_target): Likewise.
26797 (simd_clone_adjust): Likewise.
26798 * tree-chkp.c (chkp_get_entry_block): Likewise.
26799 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
26800 create_basic_block overload.
26801 (cgraph_node::expand_thunk): Likewise.
26802 * tree-cfg.c (make_blocks): Likewise.
26803 (handle_abnormal_edges): Likewise.
26804 * tree-inline.c (copy_bb): Likewise.
26806 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26808 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
26810 (*xor_one_cmplsidi3_ze): Likewise.
26812 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
26814 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
26815 use df_remove_problem rather than manually removing problems, leaving
26816 holes in df->problems_in_order[].
26818 2015-04-21 Tom de Vries <tom@codesourcery.com>
26820 PR tree-optimization/65802
26821 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
26823 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26825 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
26827 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
26828 at '.'. Assert that there's enough space for everything.
26830 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26832 PR tree-optimization/64950
26834 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
26837 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
26840 2015-04-20 Shiva Chen <shiva0217@gmail.com>
26842 PR rtl-optimization/64916
26843 * cfgcleanup.c (values_equal_p): New function.
26844 (can_replace_by): Use it.
26846 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
26849 * doc/invoke.texi ([-Wnarrowing]): Update.
26851 2015-04-20 Jeff Law <law@redhat.com>
26853 PR tree-optimization/65658
26854 * tree-ssa-threadupdate.c (redirection_block_p): Remove
26855 redundant test for GIMPLE_ASSIGN in last change.
26857 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
26859 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
26860 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
26861 (legitimize_tls_address): Ditto.
26862 (ix86_expand_move): Ditto.
26863 (ix86_expand_binary_operator): Remove reload_in_progress checks.
26864 (ix86_expand_unary_operator): Ditto.
26865 * config/i386/predicates.md (index_register_operand): Ditto.
26867 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
26869 * reorg.c (try_merge_delay_insns): Improve correctness checking
26870 for targets with multiple delay slots.
26872 2015-04-20 Jeff Law <law@redhat.com>
26874 PR tree-optimization/65658
26875 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
26878 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
26880 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
26881 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
26884 2015-04-20 Jakub Jelinek <jakub@redhat.com>
26887 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
26889 2015-04-20 Richard Biener <rguenther@suse.de>
26891 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
26892 * gimple-fold.c (gimple_build_valueize): New function.
26893 (gimple_build): Always use gimple_build_valueize as valueize hook.
26895 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
26898 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
26899 and overwrite variable parts if <= 1/2 the elements are variable.
26901 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
26903 PR rtl-optimization/65805
26904 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
26905 Don't use difference of offset and previous offset if
26906 update_sp_offset is non-zero.
26907 (eliminate_regs_in_insn): Ditto.
26908 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
26909 lra_eliminate_regs_1 call.
26910 * lra-constraints.c (get_equiv_with_elimination): Ditto.
26912 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
26914 * hash-table.h: Remove version of hash_table that stored value_type *.
26915 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
26916 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
26917 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
26918 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
26919 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
26920 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
26921 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
26922 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
26923 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
26924 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
26925 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
26926 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
26927 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
26928 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
26929 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
26930 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
26932 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26933 Jakub Jelinek <jakub@redhat.com>
26936 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
26937 subsequent SH_NONE operand does not overwrite an existing *special
26939 (adjust_extract): Handle case where a vec_extract operation is
26940 wrapped in a PARALLEL.
26942 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
26945 * config/i386/i386.c (ix86_binds_local_p): Define only if
26946 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
26948 2015-04-17 Jeff Law <law@redhat.com>
26950 PR tree-optimization/47679
26951 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
26952 * tree-ssa-scopedtables.c: New file.
26953 * tree-ssa-scopedtables.h: New file.
26954 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
26955 (const_and_copies): Change name/type.
26956 (record_const_or_copy): Move into tree-ssa-scopedtables.c
26957 (record_const_or_copy_1): Similarly.
26958 (restore_vars_to_original_value): Similarly.
26959 (pass_dominator::execute): Create and destroy const_and_copies table.
26960 (thread_across_edge): Update passing of const_and_copies.
26961 (record_temporary_equivalence): Use method calls rather than
26962 manipulating const_and_copies directly.
26963 (record_equality, cprop_into_successor_phis): Similarly.
26964 (dom_opt_dom_walker::before_dom_children): Similarly.
26965 (dom_opt_dom_walker::after_dom_children): Similarly.
26966 (eliminate_redundant_computations): Similarly.
26967 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
26968 (record_temporary_equivalence): Likewise.
26969 (invalidate_equivalences): Likewise.
26970 (record_temporary_equivalences_from_phis): Update due to type
26971 change of const_and_copies. Use method calls rather than
26972 manipulating the stack directly.
26973 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
26974 (thread_through_normal_block, thread_across_edge): Likewise.
26975 (thread_across_edge): Likewise.
26976 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
26977 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
26979 (identify_jump_threads): Update due to type change of equiv_stack.
26980 (finalize_jump_threads): Delete the equiv_stack when complete.
26982 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
26984 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26985 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
26986 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
26988 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
26991 * config.gcc: Exit with a comment when we do not have a major version
26992 number for the FreeBSD target.
26994 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26997 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
26998 maybe_allows_mem bitfields.
26999 (maybe_allows_none_start, maybe_allows_none_end,
27000 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
27001 maybe_allows_mem_end): New variables.
27002 (compute_maybe_allows): New function.
27003 (add_constraint): Use it to initialize maybe_allows_reg and
27004 maybe_allows_mem fields.
27005 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
27006 is_address constraints such that those that allow neither mem nor
27007 reg come first, then those that only allow reg but not mem, then
27008 those that only allow mem but not reg, then the rest.
27009 (write_allows_reg_mem_function): New function.
27010 (write_tm_preds_h): Call it.
27011 * stmt.c (parse_output_constraint, parse_input_constraint): Use
27012 the generated insn_extra_constraint_allows_reg_mem function
27013 instead of always setting *allows_reg = true; *allows_mem = true;
27014 for unknown extra constraints.
27016 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27019 * output.h (default_binds_local_p_3): New.
27020 * varasm.c (default_binds_local_p_3): Make it public. Take an
27021 argument to indicate if common symbol may be local. If common
27022 symbol may be local, treat non-external variable as defined
27024 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
27025 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
27026 * config/i386/i386.c (ix86_binds_local_p): New.
27027 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
27028 ix86_binds_local_p.
27030 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27033 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
27034 trying mem_loc_descriptor on XEXP (rtl, 0).
27036 2015-04-17 Martin Liska <mliska@suse.cz>
27038 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
27039 Release symbol_compare_collection.
27040 * ipa-reference.c: Add TODO that a vector should be released.
27042 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
27045 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
27046 to new AVR-LibC file layout (bug #44574).
27047 (*avrlibc_devicelib): Same.
27048 * config/avr/avr-mcus.def: Adjust comments.
27049 * config/avr/avr.opt (nodevicelib): Adjust help.
27051 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
27053 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
27055 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
27058 * gimplify.c (gimplify_init_constructor): Always emit a
27059 side-effecting constructor.
27061 2015-04-17 Tom de Vries <tom@codesourcery.com>
27063 PR tree-optimization/64950
27064 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
27065 in cfun->curr_properties.
27066 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
27067 if we generate an IFN_VA_ARG.
27068 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
27069 function if PROP_gimple_lva is not set in src function.
27071 2015-04-17 Tom de Vries <tom@codesourcery.com>
27072 Michael Matz <matz@suse.de>
27074 PR tree-optimization/64950
27075 * gimple-iterator.c (update_modified_stmts): Remove static.
27076 * gimple-iterator.h (update_modified_stmts): Declare.
27077 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
27078 (gimplify_va_arg_internal): New function.
27079 (gimplify_va_arg_expr): Use IFN_VA_ARG.
27080 * gimplify.h (gimplify_va_arg_internal): Declare.
27081 * internal-fn.c (expand_VA_ARG): New unreachable function.
27082 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
27083 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
27084 (expand_ifn_va_arg): New function.
27085 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
27086 (pass_stdarg::execute): Call expand_ifn_va_arg.
27087 (pass_data_lower_vaarg): New pass_data.
27088 (pass_lower_vaarg): New gimple_opt_pass.
27089 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
27090 (make_pass_lower_vaarg): New function.
27091 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
27092 properties_required field.
27093 * passes.def (all_passes): Add pass_lower_vaarg.
27094 * tree-pass.h (PROP_gimple_lva): Add define.
27095 (make_pass_lower_vaarg): Declare.
27097 2015-04-17 Tom de Vries <tom@codesourcery.com>
27099 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
27100 * calls.c (call_expr_flags): Same.
27102 2015-04-17 Tom de Vries <tom@codesourcery.com>
27104 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
27105 (pass_stdarg::execute): ... here.
27107 2015-04-17 Tom de Vries <tom@codesourcery.com>
27108 Michael Matz <matz@suse.de>
27110 * tree-cfg.c (make_blocks_1): Factor out of ...
27111 (make_blocks): ... here.
27112 (make_edges_bb): Factor out of ...
27113 (make_edges): ... here.
27114 (gimple_find_sub_bbs): New function.
27115 * tree-cfg.h (gimple_find_sub_bbs): Declare.
27117 2015-04-17 Tom de Vries <tom@codesourcery.com>
27119 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
27121 2015-04-17 Yury Gribov <y.gribov@samsung.com>
27123 * asan.c (set_sanitized_sections): New function.
27124 (section_sanitized_p): Ditto.
27125 (asan_protect_global): Optionally sanitize user-defined
27127 * asan.h (set_sanitized_sections): Declare new function.
27128 * common.opt (fsanitize-sections): New option.
27129 * doc/invoke.texi (-fsanitize-sections): Document new option.
27130 * opts-global.c (handle_common_deferred_options): Handle new
27133 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27136 * dwarf2out.c (loc_list_from_tree): Return NULL
27137 for DEBUG_EXPR_DECL.
27139 2015-04-17 Christian Bruel <christian.bruel@st.com>
27141 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
27144 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27146 * ira-color.c (setup_left_conflict_sizes_p): Do not process
27147 node itself when computing left conflict subnode size.
27149 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27151 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
27152 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
27153 *fop_<mode>_1_sse using enabled attribute. Use
27154 register_mixssei387nonimm_operand operand 1 predicate. Change
27155 alternative 3 constraints from "x" to "v".
27157 2015-04-16 Richard Biener <rguenther@suse.de>
27159 PR tree-optimization/65774
27160 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
27161 bit-value tracking on.
27163 2015-04-16 Richard Biener <rguenther@suse.de>
27165 PR tree-optimization/64277
27166 * tree-vrp.c (check_array_ref): Fix anti-range handling,
27167 simplify upper bound handling.
27168 (search_for_addr_array): Simplify.
27169 (check_array_bounds): Handle ADDR_EXPRs here.
27170 (check_all_array_refs): Simplify.
27172 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27174 * config/i386/i386.c (print_reg): Rewrite function.
27176 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27178 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
27179 Invert the condition.
27181 2015-04-16 Renlin Li <renlin.li@arm.com>
27183 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
27184 simplifications for UNSIGNED_FLOAT.
27186 2015-04-16 Nick Clifton <nickc@redhat.com>
27188 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
27190 (enum rl78_cpu_type): New.
27191 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
27192 (umulhi3_shift_virt): Remove m constraint from operand 1.
27193 (umulqihi3_virt): Likewise.
27194 * config/rl78/rl78.c (rl78_option_override): Add code to process
27195 -mcpu and -mmul options.
27196 (rl78_alloc_physical_registers): Add code to handle divhi and
27197 divsi valloc attributes.
27198 (set_origin): Likewise.
27199 * config/rl78/rl78.h (RL78_MUL_G14): Define.
27200 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
27201 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
27203 (ASM_SPEC): Pass -mcpu on to assembler.
27204 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
27205 (mulqi3_rl78): Likewise.
27206 (mulhi3_g13): Likewise.
27207 (mulhi3): Generate the G13 or G14 versions of the insn directly.
27208 (mulsi3): Likewise.
27209 (mulhi3_g14): Add clobbers of AX and BC.
27210 (mulsi3_g14): Likewise.
27211 (mulsi3_g13): Likewise.
27212 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
27213 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
27214 * config/rl78/rl78.opt (mmul): Initialise value to
27216 (mcpu): New option.
27217 (m13, m14, mrl78): New option aliases.
27218 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
27219 (MULTILIB_DIRNAMES): Add g13 and g14.
27220 * doc/invoke.texi: Document -mcpu and -mmul options.
27222 2015-04-16 Richard Biener <rguenther@suse.de>
27224 * tree-ssa-ccp.c (likely_value): See if we have operands that
27225 are marked as never simulate again and return CONSTANT in this
27227 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
27228 not have any operands that will be simulated again as
27229 not being simulated again.
27231 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
27233 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
27234 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
27235 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
27237 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
27239 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
27240 *float<SWI48:mode><MODEF:mode>2_sse.
27241 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
27243 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
27246 2015-04-15 Tom de Vries <tom@codesourcery.com>
27249 * function.c (push_dummy_function): New function.
27250 (init_dummy_function_start): Use push_dummy_function.
27251 (pop_dummy_function): New function. Factored out of ...
27252 (expand_dummy_function_end): ... here.
27253 * function.h (push_dummy_function, pop_dummy_function): Declare.
27254 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
27255 pop_dummy_function.
27256 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
27258 2015-04-15 Jeff Law <law@redhat.com>
27260 PR tree-optimization/47679
27261 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
27262 need for forward declaration in upcoming changes.
27263 (record_conditions, record_edge_info): Likewise.
27265 PR rtl-optimization/42522
27266 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
27267 SIGN_EXTRACT as a whole object rather than simplifying
27270 2015-04-15 Jakub Jelinek <jakub@redhat.com>
27273 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
27274 and GIMPLE_PREDICT use break instead of return true. For
27275 GIMPLE_EH_DISPATCH, compare dispatch region.
27277 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
27279 * doc/extend.texi (__sync Builtins): Simplify some text. Update
27280 details about the implementation. Make clear preference for
27281 __atomic builtins. Reduce possibility of future change.
27283 2015-04-15 Nick Clifton <nickc@redhat.com>
27285 * config/rx/rx.opt (mallow-string-insns): New option.
27286 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
27287 builtin if string instructions are denied.
27288 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
27289 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
27291 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
27292 * config/rx/rx.md (movstr): Enable pattern only if string
27293 instructions are allowed.
27294 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
27295 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
27296 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
27297 (MULTILIB_DIRNAMES): Add no-strings.
27298 * doc/invoke.texi: Document -mno-allow-string-insns.
27300 2015-04-15 Alan Modra <amodra@gmail.com>
27304 PR middle-end/36043
27305 * calls.c (load_register_parameters): Don't load past end of
27306 mem unless suitably aligned.
27308 2015-04-15 Nick Clifton <nickc@redhat.com>
27310 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
27311 decrement instruction as being frame related.
27312 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
27314 If zero extending a function address enclose the operation in
27316 (rl78_preferred_reload_class): New function.
27317 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27318 * config/rl78/rl78.md: Remove useless constraints in expanders.
27319 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
27320 (mulhi3_rl78): Likewise.
27321 (mulhi3_g13): Likewise.
27322 (mulsi3_rl78): Likewise.
27323 (es_addr): Move to before the multiply patterns.
27325 2015-04-15 Alan Modra <amodra@gmail.com>
27327 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
27328 and sequence_stack. Add seq.
27329 (seq_stack): Delete.
27330 * function.c (prepare_function_start): Don't access x_last_insn.
27331 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
27332 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
27333 * emit_rtl.c (start_sequence, push_topmost_sequence,
27334 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
27335 sequence accessors.
27336 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
27337 remove_insn): Likewise. Simplify.
27338 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
27339 and pop_topmost_sequence.
27340 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
27342 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
27344 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
27347 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
27350 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27352 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
27353 (LEGACY_INT_REGNO_P): Ditto.
27354 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27355 (ANY_MASK_REG_P): Remove.
27356 (BND_REG_P): Rename from ANY_BND_REG_P.
27357 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27358 legacy integer registers. Do not handle MMX_REG_P in a special way.
27359 Merge 64byte and 32byte SSE handling.
27361 2015-04-14 Nick Clifton <nickc@redhat.com>
27363 * expr.c (expand_assignment): Force an address offset computation
27364 into a register before changing its mode.
27365 (expand_expr_real_1): Likewise.
27367 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
27369 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27370 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27371 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27372 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27373 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27374 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27375 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27376 and __aarch64_vget_lane_any.
27378 2015-04-14 Jakub Jelinek <jakub@redhat.com>
27380 PR rtl-optimization/65761
27381 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27382 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27384 2015-04-14 Richard Biener <rguenther@suse.de>
27386 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27387 (graphite_can_represent_scev): Use POINTER_TYPE_P.
27389 2015-04-14 Richard Biener <rguenther@suse.de>
27391 PR tree-optimization/65758
27392 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27394 (ccp_lattice_meet): Likewise.
27395 (bit_value_unop): Likewise.
27396 (bit_value_binop): Likewise.
27397 (bit_value_assume_aligned): Likewise.
27399 2015-04-14 Christian Bruel <christian.bruel@st.com>
27401 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27404 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
27406 PR tree-optimization/63387
27407 * match.pd ((x unord x) | (y unord y) -> (x unord y),
27408 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27410 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27412 * config/i386/predicates.md (any_QIreg_operand): Rename from
27413 q_regs_operand. Do not process subregs.
27414 (QIreg_operand): Use QI_REGNO_P predicate.
27415 (ext_QIreg_operand): Ditto.
27416 (ext_register_operand): Ditto.
27417 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27418 (AND splitters): Ditto.
27419 (AND with -65536 splitter): Add SWI48 mode for operand 0.
27420 (AND with -256 splitter): Use any_QIreg_operand predicate and
27421 SWI248 mode for operand 0.
27422 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27423 mode for operand 0.
27424 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27426 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
27428 * doc/plugins.texi: Rewrite first introductory paragraph.
27430 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27432 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27433 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27435 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27437 * ipa-profie.c (ipa_profile): Check number of parameters
27438 and possible polymorphic call targets before
27441 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
27443 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27444 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27446 2015-04-13 Richard Biener <rguenther@suse.de>
27448 PR tree-optimization/65204
27449 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27450 takens for bit-CCP.
27452 2015-04-13 Richard Biener <rguenther@suse.de>
27455 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27456 and cond_not_taken_branch_cost to 4 and 2.
27457 (bdver2_cost): Likewise.
27458 (bdver3_cost): Likewise.
27459 (bdver4_cost): Likewise.
27461 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27463 * hash-table.h (hash_table constructor): Add mem stats.
27464 (alloc_entries): Likewise.
27466 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27468 * ipa-cp.c (ipcp_driver): Relase prev_edge.
27469 * passes.c (execute_one_pass): Only add transform if pass has one.
27471 2015-04-12 Joseph Myers <joseph@codesourcery.com>
27473 * config/i386/i386.c (ix86_option_override_internal): Don't set
27474 -fprefetch-loop-arrays if optimizing for size.
27476 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27477 Gerald Pfeifer <gerald@pfeifer.com>
27479 * doc/contrib.texi (Contributors): Add Martin Jambor and
27482 2015-04-12 Jakub Jelinek <jakub@redhat.com>
27484 * BASE-VER: Set to 6.0.0.
27486 PR tree-optimization/65747
27487 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27488 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27490 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27492 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27493 sentence. Improve grammar.
27495 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27497 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27499 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27502 * ipa-inline-transform.c (speculation_removed): Remove static var.
27503 (check_speculations): New function.
27504 (clone_inlined_nodes): Do not check spculations.
27505 (inline_call): Call check_speculations.
27506 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27507 consider non-invariants.
27509 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27510 Martin Liska <mliska@suse.cz>
27513 * ipa-icf.c (sem_item::compare_cgraph_references): function and
27514 variable can not match.
27515 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27516 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27518 2015-04-11 Jakub Jelinek <jakub@redhat.com>
27520 PR tree-optimization/65735
27521 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27522 Remove visited_phis argument, add visited_bbs, avoid recursing into the
27523 same bb rather than just into the same phi node.
27524 (thread_through_normal_block): Adjust caller.
27526 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27528 * doc/contrib.texi (Contributors): Add Ira Rosen.
27530 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
27532 * gcov.c (find_source): Fix miswording in error message.
27533 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27534 (ix86_expand_sse_comi_round): Fix typo in error message.
27536 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27538 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27540 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
27542 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27544 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27547 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27548 Print bad_spills_num and insn_pseudos_num.
27550 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27553 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27554 when creating +1 values for SImode.
27556 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27559 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27562 2015-04-10 Jakub Jelinek <jakub@redhat.com>
27563 Iain Sandoe <iain@codesourcery.com>
27566 * configure: Regenerate.
27568 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27571 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27573 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
27575 * doc/contrib.texi (Contributors): Add John Marino.
27577 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27579 PR tree-optimization/65709
27580 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27581 TREE_TYPE (TREE_TYPE (t)).
27583 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
27586 * lra-int.h (lra_bad_spill_regno_start): New.
27587 * lra.c (lra_bad_spill_regno_start): New.
27588 (lra): Set up lra_bad_spill_regno_start. Set up
27589 lra_constraint_new_regno_start unconditionally.
27590 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27593 2015-04-09 Marek Polacek <polacek@redhat.com>
27594 Jakub Jelinek <jakub@redhat.com>
27596 PR middle-end/65554
27597 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27598 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27601 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
27603 PR rtl-optimization/65693
27604 * combine.c (is_parallel_of_n_reg_sets): Move outside of
27607 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
27610 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
27611 device specs file if "device-specs%s" didn't resolve to a path.
27613 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27616 * config/i386/i386.c (fixup_modeless_constant): New.
27617 (ix86_expand_args_builtin): Fixup modeless constant operand.
27618 (ix86_expand_round_builtin): Ditto.
27619 (ix86_expand_special_args_builtin): Ditto.
27620 (ix86_expand_builtin): Ditto.
27622 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27625 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
27626 any pow2 integer in between 2 and 0x80000000U inclusive.
27628 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
27630 PR rtl-optimization/65693
27631 * combine.c (is_parallel_of_n_reg_sets): Change first argument
27632 from an rtx_insn * to an rtx.
27633 (try_combine): Adjust both callers. Use it once more.
27635 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27637 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
27638 (chkp_make_static_const_bounds): Search existing
27639 symbol by assembler name. Use make_decl_one_only.
27640 (chkp_get_zero_bounds_var): Remove node search which
27641 is now performed in chkp_make_static_const_bounds.
27642 (chkp_get_none_bounds_var): Likewise.
27644 2015-04-08 Michael Witten <mfwitten@gmail.com>
27646 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
27649 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27651 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
27653 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27655 * doc/extend.texi (__sync Builtins): Fix grammar.
27657 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27659 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
27661 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27663 * varasm.c (emit_local): Move definition of align.
27665 2015-04-08 Julian Brown <julian@codesourcery.com>
27667 * config/nvptx/mkoffload.c (process): Support variable mapping.
27669 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
27671 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
27673 (alpha_write_one_linkage): Correct typo.
27675 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27677 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
27679 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27681 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
27683 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27685 * tree-chkp.h (chkp_insert_retbnd_call): New.
27686 * tree-chkp.c (chkp_insert_retbnd_call): New.
27687 * ipa-split.c (insert_bndret_call_after): Remove.
27688 (split_function): Use chkp_insert_retbnd_call.
27689 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
27690 bounds for instrumented functions.
27692 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
27695 * calls.c (initialize_argument_information): When producing tail
27696 call also turn SSA_NAMES passed by references to original PARM_DECLs
27698 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
27701 * lra-remat.c (do_remat): Process input and non-input insn
27702 registers separately.
27704 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27707 * valtrack.c (debug_lowpart_subreg): New function.
27708 (dead_debug_insert_temp): Use it.
27710 PR middle-end/65680
27711 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
27712 into signed HOST_WIDE_INT the same as negative bit_offset.
27714 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
27716 * ipa-comdats.c (ipa_comdats): Visit all thunks
27717 to set proper comdat group.
27719 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27722 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
27723 on constants for NEON VSTRUCT modes.
27725 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27726 Iain Sandoe <iain@codesourcery.com>
27729 * configure: Regenerate.
27731 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27734 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
27735 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
27736 that LFD is used to load double constants instead of LFS. Add
27737 defaults for all costs structures. Add comments for missing
27738 initialization fields.
27739 (size32_cost): Likewise.
27740 (size64_cost): Likewise.
27741 (rs64a_cost): Likewise.
27742 (mpccore_cost): Likewise.
27743 (ppc403_cost): Likewise.
27744 (ppc405_cost): Likewise.
27745 (ppc440_cost): Likewise.
27746 (ppc476_cost): Likewise.
27747 (ppc601_cost): Likewise.
27748 (ppc603_cost): Likewise.
27749 (ppc604_cost): Likewise.
27750 (ppc604e_cost): Likewise.
27751 (ppc620_cost): Likewise.
27752 (ppc630_cost): Likewise.
27753 (ppccell_cost): Likewise.
27754 (ppc750_cost): Likewise.
27755 (ppc7450_cost): Likewise.
27756 (ppc8540_cost): Likewise.
27757 (ppce300c2c3_cost): Likewise.
27758 (ppce500mc_cost): Likewise.
27759 (ppce500mc64_cost): Likewise.
27760 (ppce5500_cost): Likewise.
27761 (ppce6500_cost): Likewise.
27762 (titan_cost): Likewise.
27763 (power4_cost): Likewise.
27764 (power6_cost): Likewise.
27765 (power7_cost): Likewise.
27766 (power8_cost): Likewise.
27767 (ppca2_cost): Likewise.
27768 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
27770 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
27771 instead of XXLOR to copy SFmode to clear out dirty bits created
27772 when SFmode denormals are generated.
27773 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
27774 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
27776 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27778 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
27779 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
27780 * config/aarch64/aarch64-tune.md: Regenerate.
27782 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27784 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
27785 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
27786 * config/arm/arm-cores.def (exynos-m1): New core.
27787 * config/arm/arm-tune.md: Regenerate.
27788 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
27789 * config/arm/bpabi.h: Likewise.
27791 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27793 * ipa-cp (set_single_call_flag): Remove too
27794 restrictive assert.
27796 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
27798 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
27799 GOMP_offload_unregister from the destructor.
27801 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27803 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
27804 flags for instrumentation thunk.
27805 (chkp_produce_thunks): Likewise.
27807 2015-04-05 Martin Liska <mliska@suse.cz>
27810 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
27811 has computed data structure.
27812 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
27814 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
27816 * invoke.texi (inline-unit-growth): Increase growth to 20%
27817 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
27819 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
27822 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
27824 (lra_rematerialization_iter): New.
27825 * lra.c (lra): Initialize lra_rematerialization_iter.
27826 Stop updating lra_constraint_new_regno_start after switching of
27827 inheritance and rematerialization.
27828 * lra-remat.c (lra_rematerialization_iter): New.
27829 (lra_remat): Add printing pass iteration. Do rematerialization
27830 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
27832 2015-04-04 Richard Biener <rguenther@suse.de>
27834 PR tree-optimization/64909
27835 PR tree-optimization/65660
27836 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
27837 to take a cost vector for scalar iteration cost.
27838 (vect_get_single_scalar_iteration_cost): Likewise.
27839 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
27840 Compute the scalar iteration cost into a cost vector.
27841 (vect_get_known_peeling_cost): Use the scalar cost vector to
27842 account for the cost of the peeled iterations.
27843 (vect_estimate_min_profitable_iters): Likewise.
27844 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
27847 2015-04-04 Alan Modra <amodra@gmail.com>
27851 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
27852 0.0 constant unless TARGET_VSX.
27853 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
27856 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27859 * ipa-inline-transform.c (inline_call): Skip sanity check to work
27862 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27865 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
27866 speculative indirect edges to avoid ordering issue.
27868 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27871 * ipa-inline.c (edge_badness): Add combined size to the denominator.
27873 2015-04-03 Jakub Jelinek <jakub@redhat.com>
27875 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
27876 TYPE_ARTIFICIAL on the .omp_data* types.
27878 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27880 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
27881 instrumentation thunks.
27883 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27885 * config/i386/i386.c (ix86_expand_call): Avoid nested
27886 PARALLEL in returned call value.
27888 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27890 * lto-cgraph.c (input_cgraph_1): Always link instrumented
27891 assembler name with original one.
27893 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27895 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
27897 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27899 Revert parts of r216820.
27900 * config/i386/i386.md (movqi_internal): Correct type calculation
27901 for alternatives 3 and 5.
27903 2015-04-02 Jakub Jelinek <jakub@redhat.com>
27905 PR preprocessor/61977
27906 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
27907 predefine __vector/__bool/__pixel macros nor context sensitive
27908 macros for CLK_ASM.
27909 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
27911 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
27913 * config/pa/pa.c (pa_output_move_double): Directly handle register
27914 indexed memory operand. Simplify handling of scaled register indexed
27917 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27920 * config/i386/linux-common.h (MPX_SPEC): New.
27921 (CHKP_SPEC): Add MPX_SPEC.
27922 * doc/invoke.texi (-fcheck-pointer-boudns): Document
27923 possible issues with '-z bndplt' support in linker.
27925 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27927 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
27928 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
27929 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
27930 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
27931 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
27933 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
27935 * config/i386/sync.md (UNSPEC_MOVA): Remove.
27936 (atomic_load<mode>): Change operand 0 predicate to
27937 nonimmediate_operand and fix up the destination when needed.
27939 (atomic_loaddi_fpu): Use UNSPEC_LDA.
27940 (atomic_store<mode>): Change operand 1 predicate to
27941 nonimmendate_operand and move the source to register when needed.
27943 (atomic_store<mode>_1): Use UNSPEC_STA.
27944 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
27945 Fix moves from memory operand. Use UNSPEC_STA.
27947 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27949 * expmed.c (strict_volatile_bitfield_p): Check that the access will
27950 not cross a MODESIZE boundary.
27951 (store_bit_field, extract_bit_field): Added assertions in the
27952 strict volatile bitfields code path.
27954 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
27957 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
27958 Increase args array size by one to avoid buffer overflow.
27960 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
27962 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
27964 * ipa-inline.c (edge_badness): Add wrapper penalty.
27965 (sum_callers): Move up.
27966 (inline_small_functions): Set single_caller.
27967 * ipa-inline.h (inline_summary): Add single_caller.
27968 * ipa-split.c (split_function): Set split_part.
27969 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
27970 * cgraph.h (cgraph_node): Add split_part.
27972 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
27975 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
27976 Do not split operands 0 and operands 2 to halfmode.
27977 (atomic_compare_and_swap<mode>): Update for
27978 atomic_compare_and_swap<dwi>_doubleword changes.
27980 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
27982 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
27983 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
27984 no caching is done.
27986 2015-03-31 Martin Liska <mliska@suse.cz>
27989 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
27990 has already filled up function summary.
27991 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
27993 2015-03-31 Richard Biener <rguenther@suse.de>
27995 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
27998 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
28000 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
28002 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
28003 (s390_asm_output_function_label): Adapt to new signature of
28004 s390_function_num_hotpatch_hw
28005 Optimise the code generating assembler output.
28006 Add comments to assembler file.
28008 2015-03-31 Richard Biener <rguenther@suse.de>
28010 PR middle-end/65626
28011 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
28012 of the noreturn call so it is last and cleanup_control_flow_bb
28013 can do the CFG part.
28015 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
28018 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
28019 same_comdat_group for external symbols.
28020 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
28021 infinite same_comdat_group traversal loop.
28023 2015-03-31 Jakub Jelinek <jakub@redhat.com>
28026 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
28027 automatically to $headers.
28029 2015-03-30 Jakub Jelinek <jakub@redhat.com>
28032 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
28033 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
28035 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
28037 * ipa-prop.c (param_type_may_change_p): Likewise.
28038 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
28039 (remove_unused_scope_block_p): Add in_ctor_dtor_block
28040 argument. Before inlining, preserve
28041 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
28042 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
28044 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
28046 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28049 * ipa-inline.c (edge_badness): Base denominator on callee's
28052 2015-03-27 Martin Jambor <mjambor@suse.cz>
28055 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
28056 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
28057 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
28058 node_calling_single_call.
28059 * ipa-cp.c (count_callers): New function.
28060 (set_single_call_flag): Likewise.
28061 (initialize_node_lattices): Count callers and set single_flag_call if
28063 (incorporate_penalties): New function.
28064 (good_cloning_opportunity_p): Use it, dump new flags.
28065 (propagate_constants_topo): Set node_within_scc flag if appropriate.
28066 * doc/invoke.texi (ipa-cp-recursion-penalty,
28067 ipa-cp-single-call-pentalty): Document.
28069 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28072 * symtab.c (symtab_node::get_partitioning_class): Register vars
28074 * varpool.c (symbol_table::output_variables) Do not assemble unefined
28075 decls for non-symbols.
28077 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
28080 * output.h (default_binds_local_p_2): New.
28081 * varasm.c (default_binds_local_p_2): Renamed to ...
28082 (default_binds_local_p_3): This. Don't return true on protected
28083 data symbol if protected data may be external.
28084 (default_binds_local_p): Use default_binds_local_p_3.
28085 (default_binds_local_p_1): Likewise.
28086 (default_binds_local_p_2): New.
28087 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
28088 default_binds_local_p_2 if TARGET_MACHO is undefined.
28090 2015-03-27 Jakub Jelinek <jakub@redhat.com>
28093 * config/i386/i386.c (legitimize_pic_address): If base
28094 is SYMBOL_REF or LABEL_REF using %rip addressing, force
28095 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
28097 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28100 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
28103 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28106 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
28107 of optimized out indirect call.
28108 (redirect_to_unreachable): Always build symbol table node for
28109 BUILT_IN_UNREACHABLE
28111 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
28114 * ira-costs.c (record_reg_classes): Process all constraint string
28117 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
28119 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
28123 * config/c6x/constraints.md (S3): New constraint.
28124 * config/c6x/c6x.md (real_jump): Use it.
28126 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28128 PR middle-end/65595
28129 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
28130 do redirection if the call is not optimized out.
28132 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
28135 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
28136 (fchkp-check-incomplete-type): Add LTO.
28137 (fchkp-zero-input-bounds-for-main): Likewise.
28138 (fchkp-first-field-has-own-bounds): Likewise.
28139 (fchkp-narrow-bounds): Likewise.
28140 (fchkp-narrow-to-innermost-array): Likewise.
28141 (fchkp-use-static-bounds): Likewise.
28142 (fchkp-use-static-const-bounds): Likewise.
28143 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28145 2015-03-27 Marek Polacek <polacek@redhat.com>
28147 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
28149 2015-03-27 Marek Polacek <polacek@redhat.com>
28152 * ubsan.c (ubsan_create_edge): New function.
28153 (instrument_bool_enum_load): Call it.
28154 (instrument_nonnull_arg): Likewise.
28155 (instrument_nonnull_return): Likewise.
28156 (instrument_object_size): Likewise.
28158 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28160 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
28163 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28166 * lto-streamer.h (class lto_location_cache): New.
28167 (struct data_in): Add location_cache.
28168 (lto_input_location): Update prototype.
28169 (stream_input_location_now): New.
28170 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
28171 pointer to location.
28172 (stream_input_location): Update.
28173 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
28174 (warn_odr): Apply location cache before warning.
28175 (lto_input_location): Update prototype.
28176 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
28177 Use stream_input_location_now.
28178 * lto-streamer-in.c (lto_location_cache::current_cache): New static
28180 (lto_location_cache::cmp_loc): New function.
28181 (lto_location_cache::apply_location_cache): New function.
28182 (lto_location_cache::accept_location_cache): New function.
28183 (lto_location_cache::revert_location_cache): New function.
28184 (lto_location_cache::input_location): New function.
28185 (lto_input_location): Do location caching.
28186 (stream_input_location_now): New function.
28187 (input_eh_region, input_struct_function_base): Use
28188 stream_input_location_now.
28189 (lto_data_in_create): use new.
28190 (lto_data_in_delete): Use delete.
28191 * tree-streamer-in.c (unpack_ts_block_value_fields,
28192 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
28193 lto_input_ts_exp_tree_pointers): Update for cached location api.
28195 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28198 * passes.def: Add pass_nothrow.
28199 * ipa-pure-const.c: (pass_data_nothrow): New.
28200 (pass_nothrow): New.
28201 (pass_nothrow::execute): New.
28202 (make_pass_nothrow): New.
28203 * tree-pass.h (make_pass_nothrow): Declare.
28205 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28207 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
28208 edge to change by speculation resolution or redirection.
28209 (edge_set_predicate): Likewise.
28210 (inline_summary_t::duplicate): Likewise.
28211 (remap_edge_summaries): Likewise.
28213 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28215 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
28217 (can_inline_edge_p): Relax option matching for always inline functions.
28219 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
28222 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
28223 Check operand 4 and operand 0 for equality.
28224 (avx512f_vextract<shuffletype>32x4_1_maskm):
28225 Check operand 6 and operand 0 for equality.
28226 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
28228 (vec_extract_hi_<mode>_maskm): Ditto.
28230 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28232 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
28233 dead calls back to live.
28234 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
28236 (cgraph_node::verify_node): ... here; verify only callee edges,
28238 * cif-code.def (CILK_SPAWN): New code.
28240 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28242 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
28243 (edge_set_predicate): Use it to mark unreachable edges.
28244 (inline_summary_t::duplicate): Remove unnecesary code.
28245 (remap_edge_summaries): Likewise.
28246 (dump_inline_summary): Report contains_cilk_spawn.
28247 (compute_inline_parameters): Compute contains_cilk_spawn.
28248 (inline_read_section, inline_write_summary): Stream
28249 contains_cilk_spawn.
28250 * ipa-inline.c (can_inline_edge_p): Do not touch
28251 DECL_STRUCT_FUNCTION that may not be available;
28252 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
28253 remove check for callee_fun->can_throw_non_call_exceptions and
28254 replace it by optimization attribute check; check for flag_exceptions.
28255 * ipa-inline-transform.c (inline_call): Maintain
28256 DECL_FUNCTION_PERSONALITY
28257 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
28259 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28261 PR tree-optimization/65551
28262 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
28263 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
28265 2015-03-26 Richard Biener <rguenther@suse.de>
28267 PR middle-end/65555
28268 * tree-cfg.c (verify_gimple_call): Do not require a call to
28269 have no LHS if it wasn't recognized as control altering yet.
28271 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28273 PR tree-optimization/64715
28274 * passes.def: Add another instance of pass_object_sizes before ccp1.
28275 * tree-object-size.c (pass_object_sizes::execute): In
28276 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
28277 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
28278 __bos result and the computed constant. Remove redundant
28279 checks, obsoleted by gimple_call_builtin_p test.
28281 * var-tracking.c (variable_tracking_main_1): Don't track
28282 variables for targetm.no_register_allocation targets.
28284 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
28286 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
28287 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
28289 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28292 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
28293 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
28294 0.0 is correctly setup.
28295 (extenddftf2_internal): Likewise.
28297 2015-03-25 Sebastian Pop <s.pop@samsung.com>
28299 PR tree-optimization/65177
28300 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
28302 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
28303 edges not adjacent on the path to the original code.
28305 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
28308 * doc/install.texi (Building a native compiler): Document new
28309 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
28310 configuration assumes that the host supports the linker plugin.
28312 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
28315 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
28316 chain for generated call.
28318 2015-03-25 Richard Biener <rguenther@suse.de>
28320 * passes.c (pass_manager::execute_early_local_passes): Guard
28321 execution of pass_chkp_instrumentation_passes with
28322 flag_check_pointer_bounds.
28323 (pass_chkp_instrumentation_passes::gate): Likewise.
28325 2015-03-25 Martin Liska <mliska@suse.cz>
28327 PR tree-optimization/65538
28328 * symbol-summary.h (function_summary::~function_summary):
28329 Relese memory for allocated summaries.
28330 (function_summary::release): New function.
28332 2015-03-25 Jakub Jelinek <jakub@redhat.com>
28335 * lto-streamer-out.c (DFS::worklist): New struct.
28336 (DFS::worklist_vec): New data member.
28337 (DFS::next_dfs_num): Remove.
28338 (DFS::DFS): Rewritten using worklist instead of recursion,
28339 using most of code from DFS::DFS_write_tree.
28340 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
28341 pass it to DFS_write_tree calls.
28342 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
28343 quick initial checks push it into worklist_vec and return.
28345 2015-03-25 Richard Biener <rguenther@suse.de>
28347 PR middle-end/65519
28348 * genmatch.c (expr::gen_transform): Re-write to avoid
28349 using gimple_build.
28351 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28353 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
28355 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28357 * config/arm/arm.opt (print_tune_info): New option.
28358 * config/arm/arm.c (arm_print_tune_info): New function.
28359 (arm_file_start): Call arm_print_tune_info.
28360 * config/arm/arm-protos.h (struct tune_params): Add comment.
28361 * doc/invoke.texi (@item -mprint-tune-info): New item.
28362 (-mtune): mention it in ARM Option Summary.
28364 2015-03-25 DJ Delorie <dj@redhat.com>
28366 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28369 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
28370 Martin Liska <mliska@suse.cz>
28372 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28373 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28374 (sem_item::add_type): New function.
28375 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28376 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28377 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28378 (sem_function::equals_wpa): Fix typo.
28379 * ipa-icf.h (sem_item::add_type): New function.
28380 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28383 2015-03-24 Jakub Jelinek <jakub@redhat.com>
28385 PR tree-optimization/65533
28386 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28387 with swapped operands, call vect_free_slp_tree on
28388 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28391 2015-03-24 Richard Biener <rguenther@suse.de>
28393 PR middle-end/65517
28394 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28395 for fixup if necessary.
28397 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
28399 * doc/extend.texi (Function Attributes): Add @cindex entries
28400 for all attributes and regularize their format. Delete text
28401 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
28402 information about "eightbit_data", "tiny_data", and "model"
28403 variable attributes to the Variable Attributes section. Fix
28404 some obvious typos and copy-editing issues.
28405 (Variable Attributes, Type Attributes): Likewise add/fix
28406 @cindex entries for all attributes.
28408 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28411 * tree-chkp.c (chkp_build_returned_bound): Ignore
28412 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28414 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
28417 * config/sh/predicates.md (simple_mem_operand,
28418 displacement_mem_operand): Add test for reg.
28419 (short_displacement_mem_operand): Test for displacement_mem_operand
28420 before invoking sh_disp_addr_displacement.
28421 * config/sh/constraints.md (Sdd, Sra): Simplify.
28422 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28423 Remove redundant displacement_mem_operand tests.
28425 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
28428 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28429 the same -mmcu=MCU more than once.
28431 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28434 * ipa-devirt.c: Remove duplicate demangle.h include.
28437 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28439 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28440 REG_POINTER on *destptr after adjusting it for prologue size.
28443 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28444 ultimate_alias_target ()->order ints instead of
28445 ultimate_alias_target () pointers.
28447 2015-03-23 Richard Biener <rguenther@suse.de>
28449 PR tree-optimization/65518
28450 * tree-vect-stmts.c (vectorizable_load): Reject single-element
28451 interleaving cases we generate absymal code for.
28453 2015-03-23 Richard Biener <rguenther@suse.de>
28455 PR tree-optimization/65494
28456 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28458 (vect_analyze_slp_instance): But do that here, always and once.
28460 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28462 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28463 adding T or multiplying by T+1 and subracting T.
28465 2015-03-22 Jeff Law <law@redhat.com>
28467 PR rtl-optimization/64317
28468 * Makefile.in (OBJS): Add gcse-common.c
28469 * gcse.c: Include gcse-common.h
28470 (struct modify_pair_s): Move structure definition to gcse-common.h
28471 (compute_transp): Move function to gcse-common.c.
28472 (canon_list_insert): Similarly.
28473 (record_last_mem_set_info): Break out some code and put it into
28474 gcse-common.c. Call into the new common code.
28475 (compute_local_properties): Pass additional arguments to compute_transp.
28476 * postreload-gcse.c: Include gcse-common.h and df.h
28477 (modify_mem_list_set, blocks_with_calls): New variables.
28478 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28479 (get_bb_avail_insn): Pass in the expression index too.
28480 (alloc_mem): Allocate memory for the new bitmaps and lists.
28481 (free_mem): Free memory for the new bitmaps and lists.
28482 (insert_expr_in_table): Record a bitmap index for each entry we
28484 (record_last_mem_set_info): Call into common code in gcse-common.c.
28485 (get_bb_avail_insn): If no available insn was found in the requested
28486 BB. If BB has a single predecessor, see if the expression is
28487 transparent in BB and available in that single predecessor.
28488 (compute_expr_transp): New wrapper for compute_transp.
28489 (eliminate_partially_redundant_load): Pass expression's bitmap_index
28490 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
28491 (gcse_after_reload_main): If there are elements in the hash table,
28492 then compute transparency for all the elements in the hash table.
28493 * gcse-common.h: New file.
28494 * gcse-common.c: New file.
28496 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
28498 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28500 (System Headers): Likewise.
28502 (Traditional macros): Likewise.
28503 (Invocation): Likewise.
28504 (Option Index): Likewise.
28505 * doc/cppopts.texi (-M): Likewise.
28506 (-finput-charset): Likewise.
28507 (--help): Likewise.
28508 * doc.invoke.texi (AVR Options): Likewise.
28509 (V850 Options): Likewise.
28511 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
28514 * ipa-devirt.c: Include demangle.h
28515 (odr_type_d): Add field rtti_broken.
28516 (odr_subtypes_equivalent_p): Do not require name to match.
28517 (compare_virtual_tables): Fix typo; if type already has ODR violation,
28518 bypass the tests; be ready for function referneces in vtables that are
28519 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28520 (warn_odr): Give up for nameless types.
28521 (warn_types_mismatch): Report mismatch in mangled names;
28522 report mismatch in anonymous namespaces; look into component types to
28523 give useful error; report when mismatch is dragged in from other ODR
28525 (odr_types_equivalent_p): Match types for being polymorphic; avoid
28526 duplicated diagnostics.
28527 (add_type_duplicate): Reorder checks so more informative ones come
28528 first; fix typo; do not output "the extra base is defined here" when
28530 (BINFO_N_BASE_BINFOS): Relax sanity check.
28532 2015-03-22 Martin Liska <mliska@suse.cz>
28533 Jakub Jelinek <jakub@redhat.com>
28535 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28536 masks that can potentially include a builtin.
28537 (ix86_add_new_builtins): Introduce fast filter for isa values
28538 that cannot trigger builtin inclusion.
28540 2015-03-22 Martin Liska <mliska@suse.cz>
28542 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28543 (sem_item::update_hash_by_local_refs): Likewise.
28544 (sem_variable::get_hash): Empty line is fixed.
28545 (sem_item_optimizer::execute): Include adding of hash references.
28546 (sem_item_optimizer::update_hash_by_addr_refs): New function.
28547 (sem_item_optimizer::build_hash_based_classes): Use local hash.
28548 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28549 (sem_item::update_hash_by_local_refs): Likewise.
28551 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28554 * ipa-comdats.c (enqueue_references): Walk through thunks.
28555 (ipa_comdats): Likewise.
28556 (set_comdat_group_1): New function.
28558 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28561 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28564 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
28565 Gerald Pfeifer <gerald@pfeifer.com>
28567 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28569 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28570 Sandra Loosemore <sandra@codesourcery.com>
28572 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28573 function parameter declaration.
28574 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28575 Update arguments to nios2_adjust_call_address().
28576 (sibcall_internal): Rename from *sibcall.
28577 (sibcall_value_internal): Rename from *sibcall_value.
28578 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28579 (nios2_large_got_address): Add target temp reg parameter.
28580 (nios2_got_address): Adjust call to nios2_large_got_address, add
28581 force_reg around it.
28582 (nios2_load_pic_address): Add target temp reg parameter, replace call
28583 to nios2_got_address with corresponding code.
28584 (nios2_legitimize_constant_address): Update call to
28585 nios2_load_pic_address.
28586 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28587 to use temp reg for PIC loading purposes.
28588 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28589 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28590 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28592 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28594 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28595 usage of "the @option{...}".
28596 (-Wopenmp-simd): Likewise.
28597 (-fsanitize-recover): Likewise.
28598 (-fsanitize-undefined-trap-on-error): Likewise.
28600 (tracer-dynamic-coverage-feedback): Likewise.
28601 (reorder-block-duplicate-feedback): Likewise.
28602 (loop-unroll-jam-size): Likewise.
28605 (-mabs=legacy): Likewise.
28606 (-mupper-regs-df): Likewise.
28607 (-mupper-regs-sf): Likewise.
28608 (-mpointers-to-nested-functions): Likewise.
28610 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28612 * doc/extend.texi (Cilk Plus Builtins): Add markup.
28614 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28616 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
28617 additional index entries and cross-references.
28618 (-fchkp-check-incomplete-type): Likewise.
28619 (-fchkp-first-field-has-own-bounds): Likewise.
28620 (-fchkp-narrow-to-innermost-array): Likewise.
28621 (-fchkp-use-fast-string-functions): Likewise.
28622 (-fchkp-use-nochk-string-functions): Likewise.
28623 (-fchkp-use-static-const-bounds): Likewise.
28624 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28625 (-fchkp-instrument-marked-only): Likewise.
28626 (-fchkp-use-wrappers): Likewise.
28627 (-static-libmpx): Likewise.
28628 (-static-libmpxwrappers): Likewise.
28629 * doc/extend.texi (bnd_legacy): Likewise.
28630 (bnd_instrument): Likewise.
28631 (bnd_variable_size): Likewise.
28632 (Pointer Bounds Checker builtins): Likewise.
28634 2015-03-21 Tom de Vries <tom@codesourcery.com>
28636 PR tree-optimization/65458
28637 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
28638 * cgraph.h (cgraph_node): Add parallelized_function field.
28639 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
28640 (input_overwrite_node): Read parallelized_function field.
28641 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
28642 parallelized_function on cgraph_node for child_fn.
28643 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
28644 Remove include of gt-tree-parloops.h.
28645 (parallelized_functions): Remove static variable.
28646 (parallelized_function_p): Rewrite using parallelized_function field of
28648 (create_loop_fn): Remove adding to parallelized_functions.
28649 * Makefile.in (GTFILES): Remove tree-parloops.c
28651 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
28653 PR rtl-optimization/64366
28654 * lra.c (lra_update_insn_regno_info): Consider regs in
28655 CALL_INSN_FUNCTION_USAGE memory.
28657 2015-03-20 Richard Biener <rguenther@suse.de>
28659 PR middle-end/64715
28660 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
28661 for type comparison and gcc_checking_assert.
28662 (chrec_fold_plus_poly_poly): Likewise.
28663 (chrec_fold_multiply_poly_poly): Likewise.
28664 (chrec_convert_1): Likewise.
28665 * gimplify.c (gimplify_expr): Remove premature folding of
28666 &X + CST to &MEM[&X, CST].
28668 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28670 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
28672 (ipa_inline): Recompute inline_failed codes.
28673 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28674 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
28677 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
28679 PR rtl-optimization/60851
28680 * recog.c (constrain_operands): Accept a pseudo register before reload
28681 for LRA enabled targets.
28683 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
28686 * config/rs6000/predicates.md (easy_fp_constant): Remove special
28687 -ffast-math handling that kept non-0 constants live in the RTL
28688 until reload. Remove logic testing the number of instructions it
28689 took to create a constant in a GPR that was never used, due to a
28690 test for soft-float earlier.
28691 (memory_fp_constant): Delete, no longer used.
28693 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
28694 alternatives for loading non-0 constants into GPRs for hard
28695 floating point that is no longer needed due to changes in
28696 easy_fp_constant. Add support for loading 0.0 into GPRs.
28697 (mov<mode>_hardfloat32): Likewise.
28698 (mov<mode>_hardfloat64): Likewise.
28699 (mov<mode>_64bit_dm): Likewise.
28700 (movtd_64bit_nodm): Likewise.
28701 (pre-reload move FP constant define_split): Delete define_split,
28702 since it is no longer used.
28703 (extenddftf2_internal): Remove GHF constraints that are not valid
28706 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
28708 PR rtl-optimization/63491
28709 * lra-constraints.c (check_and_process_move): Use src instead of
28710 sreg. Remove some dead code.
28712 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
28715 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
28716 (sem_variable::merge): Likewise.
28718 2015-03-19 Martin Liska <mliska@suse.cz>
28721 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
28722 all fields of cgraph_thunk_info.
28724 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
28726 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
28727 clone instrumented thunks.
28729 2015-03-19 Richard Biener <rguenther@suse.de>
28732 2015-03-10 Richard Biener <rguenther@suse.de>
28734 PR middle-end/63155
28735 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28736 * tree-ssa-coalesce.c: Include timevar.h.
28737 (attempt_coalesce): Handle graph being NULL.
28738 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28739 Split out abnormal coalescing to ...
28740 (perform_abnormal_coalescing): ... this function.
28741 (coalesce_ssa_name): Perform abnormal coalescing without computing
28743 (verify_ssa_coalescing_worker): New function.
28744 (verify_ssa_coalescing): Likewise.
28746 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
28747 Jakub Jelinek <jakub@redhat.com>
28750 * tsan.c (instrument_gimple): Clear tail call flag on
28753 2015-03-19 Jakub Jelinek <jakub@redhat.com>
28756 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
28757 call in the return bb.
28758 (find_split_points): Add RETURN_BB argument, don't call
28760 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
28761 if true append TSAN_FUNC_EXIT internal call after the call to
28762 the split off function.
28763 (execute_split_functions): Call find_return_bb here.
28764 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
28765 Adjust find_split_points and split_function calls.
28767 2015-03-18 DJ Delorie <dj@redhat.com>
28769 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
28770 (iorqi3_virt): Likewise.
28772 2015-03-18 Tom de Vries <tom@codesourcery.com>
28774 * tree-parloops.c (parallelize_loops): Make static.
28775 * tree-parloops.h (parallelize_loops): Remove extern declaration.
28777 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
28779 PR middle-end/64491
28781 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
28783 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
28784 condition would be removed due to undefined behaviour.
28786 2015-03-18 Martin Liska <mliska@suse.cz>
28789 * cgraph.c (cgraph_node::get_create): Remove unnecessary
28790 xstrdup_for_dump wrapper.
28791 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
28793 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
28794 with xstrdup_for_dump.
28795 (sem_variable::equals): Likewise.
28796 (sem_item_optimizer::read_section): Use symtab_node::name instead of
28798 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
28799 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
28800 symtab_node::asm_name with xstrdup_for_dump.
28801 (congruence_class::dump): Use symtab_node::name instead of
28803 * ipa-icf.h (symtab_node::name): Remove.
28804 (symtab_node::asm_name): Likewise.
28806 2015-03-18 Jakub Jelinek <jakub@redhat.com>
28808 PR tree-optimization/65450
28809 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
28811 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
28812 it instead of duplicate_ssa_name_ptr_info.
28815 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
28817 2015-03-18 Richard Biener <rguenther@suse.de>
28819 * tree-data-ref.h (struct access_matrix): Remove.
28820 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
28821 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
28822 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
28823 (am_vector_index_for_loop): Likewise.
28824 (struct data_reference): Remove access_matrix member.
28825 (DR_ACCESS_MATRIX): Remove.
28826 (lambda_vector_new): Add comment.
28827 (lambda_matrix_new): Use XOBNEWVEC.
28829 2015-03-18 Richard Biener <rguenther@suse.de>
28831 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
28832 (pass_ch::execute): Cleanup the CFG only if we did sth.
28833 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
28835 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28837 * expmed.c (synth_mult): Use std::swap instead of manually
28838 swapping algorithms.
28840 2015-03-18 Jakub Jelinek <jakub@redhat.com>
28843 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
28845 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
28848 * config/avr/avr.opt (-nodevicelib): New option.
28849 * doc/invoke.texi (AVR Options): Document it.
28850 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
28851 libgcc.a, libc.a, libm.a.
28852 * config/avr/specs.h: Same.
28853 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
28854 which don't (directly) depend on the device. Print more help.
28855 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
28856 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
28857 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
28859 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
28860 for specs file name.
28861 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
28862 * config/avr/avr-mcus.def: Adjust initializers and comments.
28864 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
28866 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
28867 DECL_ONE_ONLY to check if decl is one only.
28868 * ipa-split.c (consider_split): Limit splitt of one only functions.
28870 2015-03-16 Jakub Jelinek <jakub@redhat.com>
28872 PR tree-optimization/65427
28873 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
28875 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
28877 2015-03-16 Marek Polacek <polacek@redhat.com>
28879 * cgraph.h (add_new_static_var): Remove declaration.
28880 * varpool.c (add_new_static_var): Remove function.
28882 2015-03-16 Jakub Jelinek <jakub@redhat.com>
28884 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
28885 instead of vec<tree> * with vec_alloc and release for args.
28888 PR middle-end/65431
28889 * omp-low.c (delete_omp_context): Only splay_tree_delete
28890 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
28891 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
28893 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
28896 * cfgexpand.c (align_base): New function.
28897 (alloc_stack_frame_space): Call it.
28898 (expand_stack_vars): Align prev_frame to be sure
28899 data->asan_vec elements aligned properly.
28901 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
28903 PR middle-end/65409
28904 * expr.c (store_field): Do not do a direct block copy if the source is
28905 a PARALLEL with BLKmode.
28907 2015-03-16 Tom de Vries <tom@codesourcery.com>
28909 PR middle-end/65414
28911 2015-03-12 Tom de Vries <tom@codesourcery.com>
28913 PR rtl-optimization/64895
28914 * lra-lives.c (check_pseudos_live_through_calls): Use
28915 actual_call_used_reg_set instead of call_used_reg_set, if available.
28917 2015-03-16 Alan Modra <amodra@gmail.com>
28920 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
28921 Modify Z->r bswapdi splitter to use dest in place of scratch.
28922 In r->Z and Z->r bswapdi splitter rename word_high, word_low
28923 to word1, word2 and rearrange logic to suit.
28924 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
28925 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
28926 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
28927 Add one '?' on r->r. Modify Z->r splitter to avoid need for
28930 2015-03-14 Jakub Jelinek <jakub@redhat.com>
28932 PR tree-optimization/65369
28933 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
28934 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
28935 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
28937 PR tree-optimization/65418
28938 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
28939 are casts in the first PLUS_EXPR operand, ensure tbias and
28940 *totallowp are in the inner type.
28942 PR rtl-optimization/65401
28943 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
28944 argument. If true, adjust_address_nv of x with big-endian
28945 correction for the mode widening to GET_MODE (y).
28946 (make_field_assignment): Don't do MEM mode widening here.
28947 Use MEM_P instead of GET_CODE == MEM.
28949 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
28951 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
28952 the external decls.
28954 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28957 * config/arm/arm.c (arm_gen_constant, AND case): Use
28958 ARM_SIGN_EXTEND when constructing AND mask.
28960 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28962 * graph.c (print_graph_cfg): Make function names visible and append
28963 parenthesis to it. Also make groups of basic blocks belonging to the
28964 same function visible.
28966 2015-03-12 Richard Biener <rguenther@suse.de>
28968 PR middle-end/44563
28969 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
28970 to avoid quadratic behavior with inline expansion splitting blocks.
28971 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
28972 with the successor if the predecessor will be merged with it.
28973 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
28974 entry block with its successor.
28976 2015-03-13 Richard Biener <rguenther@suse.de>
28978 PR middle-end/44563
28979 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
28980 (cleanup_tree_cfg_1): Do not call it.
28981 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
28982 (fixup_noreturn_call): Mark the stmt as control altering.
28983 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
28985 (pass_data_fixup_cfg): Produce a dump file.
28986 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
28987 (need_noreturn_fixup): New global.
28988 (pass_dominator::execute): Fixup queued noreturn calls.
28989 (optimize_stmt): Queue calls that became noreturn for fixup.
28990 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
28991 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
28992 (el_to_fixup): New global.
28993 (eliminate_dom_walker::before_dom_childre): Queue calls that
28994 became noreturn for fixup.
28995 (eliminate): Fixup queued noreturn calls.
28996 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
28997 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
28998 (substitute_and_fold_dom_walker::before_dom_children): Queue
28999 alls that became noreturn for fixup.
29000 (substitute_and_fold): Fixup queued noreturn calls.
29002 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
29004 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
29005 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
29006 are building; for methods check ODR type of class they belong to if
29007 they may lead to a polymorphic call.
29008 (sem_function::compare_polymorphic_p): Be bit smarter about testing
29009 when function may lead to a polymorphic call.
29010 (sem_function::compare_type_list): Remove.
29011 (sem_variable::equals): Update use of compatible_types_p.
29012 (sem_variable::parse_tree_refs): Remove.
29013 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
29015 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
29017 (func_checker::compatible_polymorphic_types_p): Break out from ...
29018 (unc_checker::compatible_types_p): ... here.
29019 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
29021 (unc_checker::compatible_types_p): Update.
29022 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
29025 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29027 PR rtl-optimization/65235
29028 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
29029 When first element of vec_concat is const_int, calculate its size
29030 using second element.
29032 2015-03-12 Richard Biener <rguenther@suse.de>
29034 PR middle-end/65270
29035 * fold-const.c (operand_equal_p): Fix ordering of resetting
29036 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
29038 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29040 * config/s390/s390.c (s390_reorg): Move code to output nops after label
29042 (s390_asm_output_function_label): Likewise.
29043 * config/s390/s390.c (s390_asm_output_function_label):
29044 Fix function label alignment with -mhtopatch.
29045 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
29046 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
29047 ("nop_2_byte"): New define_insn.
29048 ("nop_4_byte"): Likewise.
29049 ("nop_6_byte"): Likewise.
29050 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
29051 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
29053 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29056 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
29059 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29062 * toplev.c (process_options): Restrict Pointer Bounds Checker
29063 usage with Address Sanitizer.
29065 2015-03-12 Richard Biener <rguenther@suse.de>
29067 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
29069 * omp-low.c (expand_omp_taskreg): Split block before removing
29071 (expand_omp_target): Likewise.
29072 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
29073 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
29074 stmt to split_block.
29076 2015-03-12 Tom de Vries <tom@codesourcery.com>
29078 PR rtl-optimization/64895
29079 * lra-lives.c (check_pseudos_live_through_calls): Use
29080 actual_call_used_reg_set instead of call_used_reg_set, if available.
29082 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29084 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
29085 (cgraph_node::remove): Likewise.
29086 (cgraph_node::get_untransformed_body): Likewise.
29087 * varpool.c (varpool_node::remove): Likewise.
29088 (varpool_node::get_constructor): Add sanity check.
29090 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
29092 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
29094 (-fabi-compat-version): Likewise.
29095 (-ffriend-injection): Likewise.
29096 (-Wdeclaration-after-statement): Likewise.
29097 (-fomit-frame-pointer): Likewise.
29098 (-ftree-coalesce-inlined-vars): Likewise.
29099 (-fvisibility=): Likewise.
29100 * doc/extend.texi (Typeof): Likewise.
29101 (Zero Length): Likewise.
29102 (Escaped Newlines): Likewise.
29103 (Compound Literals): Likewise.
29104 (Function Attributes): Likewise.
29105 (Label Attributes): Likewise.
29106 (Type Attributes): Likewise.
29107 (Function Names): Likewise.
29108 (Other Builtins): Likewise.
29109 (Function Specific Option Pragmas): Likewise.
29110 (C++ Interface): Likewise.
29112 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
29114 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
29116 2015-03-11 Marek Polacek <polacek@redhat.com>
29118 PR tree-optimization/65388
29119 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
29121 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29124 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
29125 * configure: Regenerate.
29126 * config.in: Regenerate.
29127 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
29128 [-mn-flash]: Document it.
29129 [__AVR_ARCH__]: Document avrtiny.
29131 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
29132 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
29133 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
29135 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29137 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
29139 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29142 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
29143 allow reloads of PLUS in floating point/VSX registers.
29145 2015-03-11 Junmo Park <junmoz.park@samsung.com>
29147 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
29148 crypto_sha256_fast.
29149 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
29151 2015-03-11 Richard Biener <rguenther@suse.de>
29153 PR tree-optimization/65310
29154 * tree-sra.c (build_ref_for_offset): Also preserve larger
29157 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
29159 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
29161 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29164 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
29166 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
29168 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29170 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
29171 (sem_function::equals_wpa): ... here.
29173 2015-03-10 Marek Polacek <polacek@redhat.com>
29174 Jakub Jelinek <jakub@redhat.com>
29177 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
29178 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
29181 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29184 * config/rs6000/t-linux: For powerpc64* target set
29185 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
29187 2015-03-10 Richard Biener <rguenther@suse.de>
29189 PR middle-end/44563
29190 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
29191 for redirect_all_calls.
29193 2015-03-10 Marek Polacek <polacek@redhat.com>
29195 * gdbinit.in (pcfun): Define and document.
29197 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
29199 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
29200 of libgomp-plugin.h.
29201 (find_target_compiler): Support a case when the path to gcc is
29202 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
29203 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
29204 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
29206 (main): Use GCC_INSTALL_NAME as target_driver_name.
29207 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
29209 (mkoffload.o): Remove obsolete include path and defines.
29210 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
29212 2015-03-10 Richard Biener <rguenther@suse.de>
29214 PR middle-end/63155
29215 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29216 * tree-ssa-coalesce.c: Include timevar.h.
29217 (attempt_coalesce): Handle graph being NULL.
29218 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29219 Split out abnormal coalescing to ...
29220 (perform_abnormal_coalescing): ... this function.
29221 (coalesce_ssa_name): Perform abnormal coalescing without computing
29223 (verify_ssa_coalescing_worker): New function.
29224 (verify_ssa_coalescing): Likewise.
29226 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29229 * config.gcc (extra_options) [avr]: Remove.
29230 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
29231 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
29232 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
29234 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
29235 (-mmcu=): Add Var and MissingArgError properties.
29237 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
29238 * config/avr/t-multilib: Regenerate.
29239 * config/avr/specs.h: New file.
29240 * config/avr/driver-avr.c: New file.
29241 * config/avr/genopt.sh: Remove file.
29242 * config/avr/avr-tables.opt: Remove file.
29243 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
29244 * config/avr/avr-c.c: Same.
29245 * avr-arch.h: Same.
29246 (avr_current_device): Remove proto.
29247 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
29248 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
29249 (EXTRA_SPEC_FUNCTIONS): Define.
29250 (avr_devicespecs_file): New specs function proto.
29251 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
29252 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
29253 (avr_current_device): Remove definition and usage.
29254 (avr_set_core_architecture): New static function.
29255 (avr_option_override): Use it.
29256 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
29257 (mcu_name): New static array.
29258 (comparator, avr_archs_str, avr_mcus_str): New static functions.
29259 (avr_inform_devices, avr_inform_core_architectures): New functions.
29260 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
29261 (avrlibc.h) [WITH_AVRLIBC]: Include.
29262 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
29263 (print_mcu): Rewrite from scratch.
29264 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
29265 Forward to avr-specific specs defined in device-specs file.
29266 * config/avr/t-avr (driver-avr.o): New rule.
29267 (avr-devices.o): Depend on avr-arch.h.
29268 (avr-mcus): No more depend on avr-tables.opt.
29269 (avr-tables.opt): Remove rule.
29270 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
29272 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29274 * c-family/c.opt (fchkp-use-wrappers): New.
29275 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
29276 (chkp_wrap_function): New.
29277 (chkp_build_instrumented_fndecl): Support wrapped
29279 * doc/invoke.texi (-fcheck-pointer-bounds): New.
29280 (-fchkp-check-incomplete-type): New.
29281 (-fchkp-first-field-has-own-bounds): New.
29282 (-fchkp-narrow-bounds): New.
29283 (-fchkp-narrow-to-innermost-array): New.
29284 (-fchkp-optimize): New.
29285 (-fchkp-use-fast-string-functions): New.
29286 (-fchkp-use-nochk-string-functions): New.
29287 (-fchkp-use-static-bounds): New.
29288 (-fchkp-use-static-const-bounds): New.
29289 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
29290 (-fchkp-check-read): New.
29291 (-fchkp-check-write): New.
29292 (-fchkp-store-bounds): New.
29293 (-fchkp-instrument-calls): New.
29294 (-fchkp-instrument-marked-only): New.
29295 (-fchkp-use-wrappers): New.
29296 (-static-libmpx): New.
29297 (-static-libmpxwrappers): New.
29299 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29301 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
29302 (CHKP_SPEC): Add wrappers library.
29303 * c-family/c.opt (static-libmpxwrappers): New.
29305 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29307 * config/i386/linux-common.h (LIBMPX_LIBS): New.
29308 (LIBMPX_SPEC): New.
29310 * gcc.c (CHKP_SPEC): New.
29311 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
29312 * c-family/c.opt (static-libmpx): New.
29314 2015-03-10 Richard Biener <rguenther@suse.de>
29316 PR middle-end/44563
29317 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
29319 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
29320 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
29321 (cgraph_add_edge_to_call_site_hash): Likewise.
29322 (cgraph_node::get_edge): Likewise.
29323 (cgraph_edge::set_call_stmt): Likewise.
29324 (cgraph_edge::remove_caller): Likewise.
29326 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
29328 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
29329 (callee_saved_gpr_regs_size): ... this.
29330 (callee_saved_regs_first_regno): Rename to ...
29331 (callee_saved_first_gpr_regno): ... this.
29332 (callee_saved_regs_last_regno) Rename to ...
29333 (callee_saved_last_gpr_regno): ... this.
29334 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
29336 (nds32_initial_elimination_offset): Likewise.
29337 (nds32_expand_prologue): Likewise.
29338 (nds32_expand_epilogue): Likewise.
29339 (nds32_expand_prologue_v3push): Likewise.
29340 (nds32_expand_epilogue_v3pop): Likewise.
29341 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
29342 Adjust renamed variables.
29343 (nds32_output_stack_pop): Likewise.
29345 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
29347 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
29350 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29352 PR rtl-optimization/65321
29353 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
29355 * var-tracking.c (use_narrower_mode): Likewise.
29357 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29359 PR tree-optimization/65355
29360 * varasm.c (notice_global_symbol): Do not produce RTL.
29361 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29363 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29364 check for section anchors.
29366 2015-03-10 Alan Modra <amodra@gmail.com>
29369 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29370 to be single-arch by default. Set cpu_is_64bit for powerpc64
29371 given --with-cpu=native.
29372 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29373 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29375 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29376 rs6000_isa_flags rather than TARGET_64BIT.
29378 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
29379 Kaz Kojima <kkojima@gcc.gnu.org>
29381 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29383 2015-03-09 Jakub Jelinek <jakub@redhat.com>
29386 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29387 on a TREE_BINFO, instead use BINFO_TYPE.
29389 2015-03-09 Richard Biener <rguenther@suse.de>
29391 PR middle-end/65270
29392 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29393 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29394 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
29395 of that. When comparing dereferences compare alignment.
29396 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29398 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29400 * ipa-inline-analysis.c (check_callers): Check
29401 node->can_remove_if_no_direct_calls_and_refs_p.
29402 (growth_likely_positive): Reorganize to call
29403 can_remove_if_no_direct_calls_p later.
29404 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29405 will_be_removed_from_program_if_no_direct_calls_p): Add
29406 will_inline parameter.
29407 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29408 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29409 Handle inliner case correctly.
29411 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
29413 PR tree-optimization/63743
29414 * cfgexpand.c (reorder_operands): Also reorder if only second operand
29415 had its definition forwarded by TER.
29417 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29420 * ipa-utils.h (types_odr_comparable): Add strict argument.
29421 * ipa-devirt.c: Fix whitespace;
29422 (odr_hasher): Remove.
29423 (odr_name_hasher, odr_vtable_hasher): New hashers.
29424 (can_be_name_hashed_p): New predicate.
29425 (hash_type_name): remove.
29426 (hash_odr_name): New.
29427 (odr_name_hasher::hash): new.
29428 (can_be_vtable_hashed_p): New.
29429 (hash_odr_vtable): New.
29430 (odr_vtable_hasher::hash): New.
29431 (types_same_for_odr): Add strict parameter.
29432 (types_odr_comparable): Likewise.
29433 (odr_name_hasher::equal): New.
29434 (odr_vtable_hasher::equal): New.
29435 (odr_name_hasher::remove): New.
29436 (odr_hash_type): Change to hash_table<odr_name_hasher>.
29437 (odr_vtable_hash_type): New.
29438 (odr_vtable_hash): New.
29439 (odr_subtypes_equivalent_p): Do strict comparsion.
29440 (add_type_duplicate): Merge type names; cleanup; avoid type
29442 (register_odr_type): Initialize vtable hash.
29443 (build_type_inheritance_graph): Likewise
29444 (get_odr_type): Reorg to use two hashes.
29445 (dump_possible_polymorphic_call_targets): Move sanity check after debug
29447 (ipa_devirt): Dump type_inheritance_graph.
29448 (types_same_for_odr): Add strict mode.
29450 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29453 * cgraph.h (symtab_node): Add definition_alignment,
29454 can_increase_alignment_p and increase_alignment.
29455 * symtab.c (symtab_node::can_increase_alignment_p,
29456 increase_alignment_1, symtab_node::increase_alignment,
29457 symtab_node::definition_alignment): New.
29458 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29459 can_increase_alignment_p.
29460 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29461 * tree-vect-stmts.c (ensure_base_align): Likewise.
29462 * varasm.c (function_section_1): Use definition_alignment.
29463 (assemble_start_function): Likewise.
29464 (emit_local): likewise.
29465 (build_constant_desc): Likewsie.
29466 (output_constant_def_contents): Likewise.
29467 (place_block_symbol): Likewise.
29468 (output_object_block): Likewise.
29470 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29473 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29474 when outputting debug.
29476 2015-03-07 Marek Polacek <polacek@redhat.com>
29477 Martin Uecker <uecker@eecs.berkeley.edu>
29480 * doc/invoke.texi: Update description of -fsanitize=bounds.
29482 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
29484 * tree-ssa-phiopt.c (neg_replacement): Remove.
29485 (tree_ssa_phiopt_worker): Remove negate optimization.
29487 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29490 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29492 2015-03-06 Richard Biener <rguenther@suse.de>
29494 PR middle-end/64928
29495 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29496 and liveout_obstack members.
29497 (calculate_live_on_exit): Remove.
29498 (calculate_live_ranges): Change declaration.
29499 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29500 (new_tree_live_info): Adjust.
29501 (calculate_live_ranges): Delete livein when not wanted.
29502 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29503 Deal with partly deleted live info.
29504 (loe_visit_block): Remove temporary bitmap by using
29505 bitmap_ior_and_compl_into.
29506 (live_worklist): Adjust accordingly.
29507 (calculate_live_on_exit): Make static.
29508 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29509 we do not need livein.
29511 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
29513 * real.c (real_from_string): Fix typo in assertion.
29515 2015-03-06 Alex Velenko <alex.velenko@arm.com>
29517 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29520 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29522 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29524 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
29527 * lra-assigns.c (find_hard_regno_for): Rename to
29528 find_hard_regno_for_1. Add a new parameter.
29529 (find_hard_regno_for): New function using find_hard_regno_for_1.
29531 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29533 PR rtl-optimization/65067
29534 * expmed.c (store_bit_field, extract_bit_field): Reworked the
29535 strict volatile bitfield handling.
29537 2015-03-05 Martin Liska <mliska@suse.cz>
29540 * ipa-icf.c (sem_variable::equals): Compare variables types.
29542 2015-03-05 Richard Henderson <rth@redhat.com>
29545 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29546 correctly check weak symbol binding.
29548 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
29550 PR middle-end/65315
29551 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29554 2015-03-05 Martin Liska <mliska@suse.cz>
29556 * ipa-inline.c (inline_small_functions): Set default value to
29557 prevent warning during bootstrap.
29558 * tree.h: Add pragma guard that ignores false positives during
29561 2015-03-05 Richard Biener <rguenther@suse.de>
29563 PR tree-optimization/65310
29564 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29565 Properly preserve alignment of the base of the access.
29567 2015-03-05 Richard Biener <rguenther@suse.de>
29570 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29571 Compare dependence info.
29573 2015-03-05 Richard Biener <rguenther@suse.de>
29575 PR middle-end/65233
29576 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29578 (walk_ssa_copies): Revert last chage. Instead do not walk
29579 SSA names registered for SSA update.
29581 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29584 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29585 vtable references for their containing type.
29586 (sem_function::equals_wpa): Compare TYPE_RESTRICT
29587 and type attributes.
29589 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
29591 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29592 before negating it.
29593 * stor-layout.c (finalize_record_size): Revert latest change.
29595 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
29597 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29599 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29601 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29602 for correct comdat handling.
29603 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29605 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
29606 (used_from_object_file_p_worker): Remove.
29607 (cgraph_node::only_called_directly_or_alised): Add
29608 used_from_object_file_p.
29609 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
29610 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
29611 can_remove_if_no_direct_calls_and_refs_p.
29613 2015-03-04 Nick Clifton <nickc@redhat.com>
29615 * config/rl78/rl78.h (enum reg_class): Remove real registers from
29616 General register class.
29617 * config/rl78/rl78-real.md: Replace general register constraints
29618 with real+virtual register constraints.
29620 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29622 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
29623 from checking for -mhtm option.
29625 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29627 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
29628 (struct ipa_sra_check_caller_data): Add has_thunk field.
29629 (ipa_sra_check_caller): Check for thunk.
29630 (ipa_sra_preliminary_function_checks): Give up on function with
29632 (ipa_early_sra): Use call_for_symbol_and_aliases.
29634 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29637 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
29638 called for __stack_chk_guard symbol.
29640 2015-03-03 DJ Delorie <dj@redhat.com>
29642 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
29644 (*addhi3_real): Likewise.
29645 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
29646 pattern to match incrementing memory.
29647 * config/rl78/predicates.md (rl78_1_2_operand): New.
29648 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
29649 it's the same and only mem.
29650 (rl78_alloc_physical_registers_op2): If there's effectively only
29651 one MEM, transcode it into HL.
29652 (rl78_far_p): Reject addresses that aren't legitimate.
29654 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
29656 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
29659 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
29661 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29663 Implement call0 ABI for xtensa
29664 * config/xtensa/constraints.md ("a" constraint): Include stack
29665 pointer in case of call0 ABI.
29666 ("q" constraint): Make empty in case of call0 ABI.
29667 ("D" constraint): Include stack pointer in case of call0 ABI.
29668 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
29669 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
29671 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
29673 (xtensa_regno_to_class): Make it a local variable in the
29674 function xtensa_regno_to_class.
29675 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
29676 macro, function prototype and implementation.
29677 (reg_nonleaf_alloc_order): Make it a local variable in the
29678 function order_regs_for_local_alloc.
29679 (xtensa_conditional_register_usage): New function.
29680 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
29681 (xtensa_valid_move): Allow direct moves to stack pointer
29682 register in call0 ABI.
29683 (xtensa_setup_frame_addresses): Only spill register windows in
29685 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
29686 call0 ABI respectively.
29687 (xtensa_function_arg_1): Only mark a7 register for copying in
29689 (xtensa_call_save_reg): New function.
29690 (compute_frame_size): Add space for callee saved register
29691 storage to the frame size in call0 ABI.
29692 (xtensa_expand_prologue): Generate code to set up stack frame
29693 and save callee-saved registers in call0 ABI.
29694 (xtensa_expand_epilogue): New function.
29695 (xtensa_set_return_address): New function.
29696 (xtensa_return_addr): Calculate return address in call0 ABI.
29697 (xtensa_builtin_saveregs): Only mark a7 register for copying and
29698 emit copying code in windowed ABI.
29699 (order_regs_for_local_alloc): Add preferred register allocation
29700 order for non-leaf function in call0 ABI.
29701 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
29702 (xtensa_asm_trampoline_template): Add trampoline generation for
29704 (xtensa_trampoline_init): Add trampoline initialization for
29706 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
29708 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
29709 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
29710 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
29711 ABI call-used registers.
29712 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
29713 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
29715 (REG_CLASS_CONTENTS): Include all registers into the preferred
29716 reload registers set, adjust the set in the
29717 xtensa_conditional_register_usage.
29718 (xtensa_regno_to_class): Drop variable declaration.
29719 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
29721 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
29723 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
29724 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
29725 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
29726 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
29727 location in call0 ABI.
29728 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
29729 stack adjustment size when handling exception.
29730 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
29731 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
29733 ("return" pattern): Generate ret.n/ret in call0 ABI.
29734 ("epilogue" pattern): Expand epilogue.
29735 ("nonlocal_goto" pattern): Use default in call0 ABI.
29736 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
29737 emit eh_set_a0_* depending on ABI.
29738 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
29739 ("eh_set_a0_call0", "blockage"): New patterns.
29741 2015-03-03 Martin Liska <mliska@suse.cz>
29744 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
29746 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29749 * config/rs6000/rs6000-tables.opt: Regenerate table.
29751 2015-03-03 Renlin Li <renlin.li@arm.com>
29753 * doc/md.texi (@item ^): Change ? into ^.
29755 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
29757 * doc/tm.texi: Regenerated.
29759 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29761 * builtins.c (expand_builtin_return_addr): Add
29762 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
29763 surrounding #ifdef.
29764 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
29766 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
29768 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
29770 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
29773 2015-03-03 Martin Jambor <mjambor@suse.cz>
29774 Eric Botcazou <ebotcazou@adacore.com>
29776 * tree-sra.c (ipa_sra_check_caller_data): New type.
29777 (has_caller_p): Removed.
29778 (ipa_sra_check_caller): New function.
29779 (ipa_sra_preliminary_function_checks): Use it.
29781 2015-03-03 Martin Liska <mliska@suse.cz>
29783 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
29784 instead of if branch.
29786 2015-03-03 Martin Liska <mliska@suse.cz>
29789 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
29791 2015-03-23 Jeff Law <law@redhat.com>
29793 PR tree-optimization/65241
29794 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
29795 hash table if INSERT is true.
29797 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29800 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
29802 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29805 * config/avr/avr.c (context.h, tree-pass.h): Include them.
29806 (avr_pass_data_recompute_notes): New static variable.
29807 (avr_pass_recompute_notes): New class.
29808 (avr_register_passes): New static function.
29809 (avr_option_override): Call it.
29811 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29813 Fix various problems with specs file generation.
29816 * config.gcc (extra_gcc_objs) [avr]: Remove.
29817 * config/avr/driver-avr.c: Remove file.
29818 * config/avr/t-avr (driver-avr.o): Remove rule.
29819 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
29820 INCLUDES to build. Depend on TM_H.
29821 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
29822 build warnings. Fix non-matching types and non-existing %-codes.
29824 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
29825 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
29826 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
29827 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
29828 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
29829 (LIBGCC_SPEC): Remove definitions.
29831 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
29833 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
29834 to create a register in testing mode.
29836 2015-03-03 Martin Liska <mliska@suse.cz>
29837 Jan Hubicka <hubicka@ucw.cz>
29840 * cgraph.c (cgraph_node::has_thunk_p): New function.
29841 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
29842 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
29843 (sem_function::merge): Assert is changed.
29845 2015-03-03 Martin Liska <mliska@suse.cz>
29846 Martin Jambor <mjambor@suse.cz>
29849 * ipa-icf.c (sem_item_optimizer::execute): Change function
29850 return value to boolean.
29851 (sem_item_optimizer::merge_classes): Likewise.
29852 (ipa_icf_driver): Return TODO_remove_functions in case there's
29853 a merge operation processed.
29854 * ipa-icf.h: Change function return value to boolean.
29856 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29859 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
29860 processor type for 64-bit little endian PowerPC.
29862 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
29863 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
29864 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
29865 printing built-in mask so it does not pass NULL pointers.
29867 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
29870 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
29873 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
29874 !ISA_HAS_FP_CONDMOVE.
29876 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
29878 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
29881 2015-03-02 Ulrich Drepper <drepper@gmail.com>
29883 * doc/invoke.texi (Options for Code Generation Conventions):
29884 Fix URL of DSO paper.
29886 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29889 * ipa-inline.c (check_callers): Looks for recursion.
29890 (inline_to_all_callers): Give up on uninlinable or recursive edges.
29891 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
29892 summary of inline clones.
29893 (do_estimate_growth_1): Fix recursion check.
29895 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29898 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
29901 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29902 Aldy Hernandez <aldyh@redhat.com>
29905 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
29906 when checking TYPE_BINFO.
29908 2015-03-02 Richard Biener <rguenther@suse.de>
29911 * ipa-icf-gimple.c: Include builtins.h.
29912 (func_checker::compare_memory_operand): Compare base alignment.
29914 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
29917 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
29918 are never passed by reference.
29920 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
29923 * tree-chkp.c (chkp_check_lower): Don't check against
29924 zero bounds for already instrumented functions.
29925 (chkp_check_upper): Likewise.
29926 (chkp_fini): Clean pass local data to avoid wrong reusage.
29928 2015-02-28 Martin Liska <mliska@suse.cz>
29929 Jan Hubicka <hubicka@ucw.cz>
29931 * ipa-icf.c (sem_variable::equals): Improve debug output;
29932 get variable constructor.
29933 (sem_variable::parse): Do not filter out too early; give up on
29934 volatile and register vars.
29935 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
29937 * ipa-icf.h (sem_variable::init): Do not set ctor.
29938 (sem_variable::ctor): Remove.
29940 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
29942 PR middle-end/65233
29943 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
29945 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29947 * ipa-icf.c: Include stor-layout.h
29948 (sem_function::compare_cgraph_references): Rename to ...
29949 (sem_item::compare_cgraph_references): ... this one.
29950 (sem_variable::equals_wpa): New function
29951 (sem_variable::equals): Do not check stuff already verified by
29953 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
29954 * ipa-icf.h (sem_item): Add compare_cgraph_references.
29955 (sem_function): Remove compare_cgraph_references.
29956 (sem_variable): Turns equals_wpa into non-inline.
29958 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29960 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
29961 (sem_item::add_expr): New function.
29962 (sem_function::hash_stmt): Handle operands of most statements.
29963 (sem_variable::get_hash): Hash the actual constructor.
29964 * ipa-icf.h (sem_item): Add add_expr.
29965 (sem_function): Update prototype of hash_stmt
29967 2015-02-28 Martin Liska <mliska@suse.cz>
29968 Jan Hubicka <hubicka@ucw.cz>
29971 * ipa-icf-gimple.c (func_checker::compare_function_decl):
29973 (func_checker::compare_variable_decl): Skip symtab vars.
29974 (func_checker::compare_cst_or_decl): Update.
29975 * ipa-icf.c (sem_function::parse): Do not consider aliases.
29976 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
29977 use correct symtab predicates.
29978 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
29979 (sem_variable::parse): Update comment.
29980 (sem_item_optimizer::build_graph): Consider ultimate aliases
29983 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29985 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
29988 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29990 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
29991 (sem_variable::merge) Likewise.
29993 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29995 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
29996 target; also match flag_ipa_devirt.
29998 2015-03-01 Martin Liska <mliska@suse.cz>
29999 Jan Hubicka <hubicka@ucw.cz>
30001 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
30002 Validate variable alignment.
30003 * ipa-icf.c (sem_function::equals_private): Be more precise
30004 about non-common function attributes.
30005 (sem_variable::equals): Likewise.
30007 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30010 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
30011 across COMDAT group boundary.
30013 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30016 * ipa-icf.c (clear_decl_rtl): New function.
30017 (sem_function::merge): Clear RTL before forming alias.
30018 (sem_variable::merge): Clear RTL before forming alias.
30020 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30023 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
30025 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
30027 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
30030 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30032 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
30033 a typo in the description.
30035 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30038 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30039 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30040 * lra-constraints.c: Include "params.h".
30041 (EBB_PROBABILITY_CUTOFF): Use
30042 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
30043 (lra_inheritance): Use '<' instead of '<=' for
30044 EBB_PROBABILITY_CUTOFF.
30045 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
30048 2015-02-27 Martin Liska <mliska@suse.cz>
30050 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
30051 vector length condition.
30053 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
30055 * doc/extend.texi (x86 transactional memory intrinsics):
30056 Reorganize discussion of _xbegin. Clarify that the return
30057 value is a bit mask. Expand example and move to end of section.
30059 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30060 Aldy Hernandez <aldyh@redhat.com>
30062 PR rtl-optimization/65220
30063 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
30065 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30068 * lra-remat.c (update_scratch_ops): New.
30069 (do_remat): Call it.
30070 * lra.c (lra_register_new_scratch_op): New. Take code from ...
30071 (remove_scratches): ... here.
30072 * lra-int.h (lra_register_new_scratch_op): New prototype.
30074 2015-02-27 Marek Polacek <polacek@redhat.com>
30077 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
30078 -Wformat-signedness anymore.
30080 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30082 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
30084 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
30086 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30088 * config/s390/s390.c (enum s390_builtin):
30089 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
30090 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
30091 (s390_init_builtins): Generate new builtin functions.
30092 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
30093 (s390_sfpc, s390_efpc): New pattern definitions.
30095 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30097 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
30098 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
30099 (s390_builtin_decls): New array.
30100 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
30101 (s390_builtin_decl): New function.
30102 (TARGET_BUILTIN_DECL): Define macro.
30104 2015-02-27 Richard Biener <rguenther@suse.de>
30106 PR middle-end/63175
30107 * builtins.c (get_object_alignment_2): Make sure to re-apply
30108 the ANDed mask after recursing to its operand gets us a new
30109 misalignment bit position.
30111 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
30112 Martin Liska <mliska@suse.cz>
30115 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
30116 Use address_matters_p.
30117 (redirect_all_callers, set_addressable): New functions.
30118 (sem_function::merge): Reorganize and fix merging issues.
30119 (sem_variable::merge): Likewise.
30120 (sem_variable::compare_sections): Remove.
30121 * common.opt (fmerge-all-constants, fmerge-constants): Remove
30123 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
30125 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
30127 (address_matters_1): New function.
30128 (symtab_node::address_matters_p): New function.
30129 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
30130 check for merged flag.
30131 * cgraph.h (address_matters_p): Declare.
30132 (symtab_node::address_taken_from_non_vtable_p): Remove.
30133 (symtab_node::address_can_be_compared_p): New method.
30134 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
30135 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
30137 (comdat_can_be_unshared_p_1) Use address_matters_p.
30138 (update_vtable_references): Fix formating.
30139 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
30140 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
30141 * cgraphclones.c: Preserve merged and icf_merged flags.
30143 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
30145 * doc/extend.texi (Function Attributes): Fix spelling and typos.
30146 (Label Attributes): Likewise.
30147 (Cilk Plus Builtins): Likewise.
30148 (ARC SIMD Built-in Functions): Likewise.
30149 (ARM C Language Extensions (ACLE)): Likewise.
30150 (PowerPC Built-in Functions): Likewise.
30151 (PowerPC Hardware Transactional Memory Built-in Functions):
30154 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30156 PR tree-optimization/65216
30157 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
30158 new stmt and new SSA_NAME for lhs whenever the arguments have
30159 changed and weren't just swapped. Fix comment typo.
30161 PR tree-optimization/65215
30162 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
30163 for PDP endian targets.
30164 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
30165 Fix up formatting issues.
30166 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
30167 size is smaller than the original, adjust MEM_REF offset by the
30168 difference of sizes. Use is_gimple_mem_ref_addr instead of
30169 is_gimple_min_invariant test to avoid adding address temporaries.
30171 2015-02-26 Martin Liska <mliska@suse.cz>
30172 Jan Hubicka <hubicka@ucw.cz>
30175 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
30176 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
30177 (sem_item_optimizer::process_cong_reduction): Include division by
30178 sensitive references.
30179 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
30180 * ipa-ref.c (ipa_ref::address_matters_p): New function.
30181 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
30183 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
30186 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
30188 * config/avr/avr.c: Same.
30189 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
30190 Refuse any constant address not in 0..0xbf.
30191 * config/avr/avr.md (*mov<mode>, *movsf): Remove
30192 tiny_valid_direct_memory_access_range from insn conditions.
30193 (mov<mode>): Don't special-case expansion of avrtiny addresses.
30195 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
30198 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
30199 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30200 * config/sh/predicates.md (const_logical_operand): New predicate.
30201 * config/sh/sh.md: Add new peephole2 patterns.
30203 2015-02-26 Marek Polacek <polacek@redhat.com>
30206 * ipa-inline.c (early_inliner): Recompute inline parameters.
30208 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30211 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
30212 instructions with TImode operands are included in the analysis.
30214 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30216 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
30217 of an EDGE_FSM_THREAD.
30219 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
30221 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
30223 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
30226 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
30228 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30230 PR tree-optimization/65048
30231 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
30232 (thread_through_all_blocks): Call valid_jump_thread_path.
30233 Remove invalid FSM jump-thread paths.
30235 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30237 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
30238 (ipa_write_optimization_summaries): Likewise.
30239 * tree-streamer.h: Include data-streamer.h.
30240 (streamer_mode_table): Declare extern variable.
30241 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
30242 * lto-streamer-out.c (lto_output_init_mode_table,
30243 lto_write_mode_table): New functions.
30244 (produce_asm_for_decls): Call lto_write_mode_table when streaming
30246 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
30247 (lto_create_simple_input_block): Add mode_table argument to the
30248 lto_input_block constructors.
30249 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
30251 * data-streamer-in.c (string_for_index): Likewise.
30252 * ipa-inline-analysis.c (inline_read_section): Likewise.
30253 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
30254 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
30255 * lto-streamer-in.c (lto_read_body_or_constructor,
30256 lto_input_toplevel_asms): Likewise.
30257 (lto_input_mode_table): New function.
30258 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
30259 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
30260 Use bp_pack_machine_mode.
30261 * real.h (struct real_format): Add name field.
30262 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
30263 (class lto_input_block): Add mode_table member.
30264 (lto_input_block::lto_input_block): Add mode_table_ argument,
30265 initialize mode_table.
30266 (struct lto_file_decl_data): Add mode_table field.
30267 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
30268 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
30269 unpack_ts_decl_common_value_fields,
30270 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
30271 * tree-streamer.c (streamer_mode_table): New variable.
30272 * real.c (ieee_single_format, mips_single_format,
30273 motorola_single_format, spu_single_format, ieee_double_format,
30274 mips_double_format, motorola_double_format,
30275 ieee_extended_motorola_format, ieee_extended_intel_96_format,
30276 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
30277 ibm_extended_format, mips_extended_format, ieee_quad_format,
30278 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
30279 decimal_single_format, decimal_double_format, decimal_quad_format,
30280 ieee_half_format, arm_half_format, real_internal_format): Add name
30282 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
30284 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
30287 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
30288 reordering for selective scheduling.
30290 2015-02-26 Terry Guo <terry.guo@arm.com>
30292 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
30293 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
30294 (arm_arch_no_volatile_ce): Declare new global variable.
30295 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
30296 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
30297 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
30298 (TARGET_NO_VOLATILE_CE): New macro.
30299 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
30300 volatile memory access in IT block
30302 2015-02-25 Kai Tietz <ktietz@redhat.com>
30304 PR tree-optimization/61917
30305 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
30306 that reduc_def_stmt is null.
30308 2015-02-25 Martin Liska <mliska@suse.cz>
30310 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
30311 hard register variables.
30313 2015-02-25 Kai Tietz <ktietz@redhat.com>
30316 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
30317 (symtab::noninterposable_alias): Likewise.
30319 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
30322 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
30324 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
30326 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
30329 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
30330 as split condition; force split via '#' in output pattern.
30332 2015-02-25 Richard Biener <rguenther@suse.de>
30333 Kai Tietz <ktietz@redhat.com>
30335 PR tree-optimization/61917
30336 * tree-vect-loop.c (vectorizable_reduction): Allow
30337 vect_internal_def without reduction to exit graceful.
30339 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30342 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
30343 only with NONDEBUG_INSN_P.
30345 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30347 Use variadic macros with avr-log.c.
30349 * config/avr/avr-protos.h (avr_vdump): New prototype.
30350 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
30351 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
30352 * config/avr/avr-log.c: Adjust comments.
30353 (avr_vdump): New function.
30354 (avr_vadump): Pass caller as 2nd argument instead of format string.
30355 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30356 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30358 2015-02-25 Jakub Jelinek <jakub@redhat.com>
30361 * target.def (target_option_stream_in): New target hook.
30362 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30363 targetm.target_option.post_stream_in if non-NULL.
30364 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30365 * doc/tm.texi: Updated.
30366 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30368 (TARGET_OPTION_POST_STREAM_IN): Redefine.
30370 2015-02-24 Jeff Law <law@redhat.com>
30373 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30374 of operand 0 and operand 2.
30375 (zero_cost_loop_end, loop_end): Similarly.
30377 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
30379 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30382 2015-02-24 DJ Delorie <dj@redhat.com>
30384 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30385 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30386 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30387 instead of hardcoding SImode.
30389 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
30391 * omp-low.c (create_omp_child_function): Tag entrypoint
30392 functions with a special attribute.
30394 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30397 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30399 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
30401 PR rtl-optimization/65123
30402 * lra-remat.c (operand_to_remat): Check hard regs in insn
30405 2015-02-24 Nick Clifton <nickc@redhat.com>
30407 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30410 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
30413 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30414 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30415 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30416 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30417 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30418 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30419 (BUILT_IN_GOACC_PARALLEL): Specify as
30420 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30421 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30422 * builtin-types.def
30423 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30424 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30425 Remove function types.
30426 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30427 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30428 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30429 New function types.
30431 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
30433 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30435 2015-02-24 Jakub Jelinek <jakub@redhat.com>
30437 PR tree-optimization/65170
30438 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30439 if val[1] < 0, clear also val[2] and return 3.
30441 2015-02-24 Alan Modra <amodra@gmail.com>
30444 * config/rs6000/rs6000.c (get_memref_parts): Only return true
30445 when *base is a reg. Handle nested plus addresses. Simplify
30448 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
30450 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30451 use natural alignment when optimizing for size.
30453 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
30456 * config/sh/sh.md (movsicc_true+3): Remove peephole.
30457 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30458 * config/sh/sh.c (replace_n_hard_rtx): Remove.
30460 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
30463 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30464 too big for a wide_int. Implement missing wrapping operation.
30466 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
30469 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30470 instead of const_int 4294901760.
30472 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
30474 * config/avr/t-avr: Fix typo in comment.
30476 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
30478 * doc/rtl.texi (fma): Clarify documentation.
30480 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
30483 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30484 over input_location.
30486 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30488 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30489 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30490 restrict alignments to absolute_biggest_alignment.
30491 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30493 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30494 * doc/tm.texi: Regenerate.
30495 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30497 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
30500 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30502 2015-02-20 Richard Biener <rguenther@suse.de>
30504 PR tree-optimization/65136
30505 * tree-ssa-propagate.c: Include cfgloop.h.
30506 (replace_phi_args_in): Avoid replacing loop latch edge PHI
30507 arguments with constants.
30509 2015-02-20 Jakub Jelinek <jakub@redhat.com>
30510 Martin Liska <mliska@suse.cz>
30513 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30514 don't try to create_thunk if stdarg_p. If
30515 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30516 redirect_callers if possible.
30517 (sem_item_optimizer::execute): Call unregister_hooks here...
30518 (ipa_icf_driver): ... instead of here.
30520 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30522 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30523 Mark operand 0 as earlyclobber in 2nd alternative.
30524 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30525 Write negated shift amount into QI lowpart operand 0 and use it
30527 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30529 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30531 * cgraph.h (clone_function_name_1): Declare.
30532 * cgraphclones.c (clone_function_name_1): New function.
30533 (clone_function_name): Use it.
30534 * lto-partition.c: Include "stringpool.h".
30535 (must_not_rename, maybe_rewrite_identifier)
30536 (validize_symbol_for_target): New static functions.
30537 (privatize_symbol_name): Use must_not_rename.
30538 (promote_symbol): Call validize_symbol_for_target.
30539 (lto_promote_cross_file_statics): Likewise.
30540 (lto_promote_statics_nonwpa): Likewise.
30542 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
30545 * config/avr/avr.md (pushhi_insn): New insn.
30546 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30548 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30549 Jakub Jelinek <jakub@redhat.com>
30551 * tree-streamer.c (preload_common_nodes): Don't preload
30552 TI_VA_LIST* for offloading.
30553 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30556 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
30558 * config/pa/pa.c (pa_emit_move_sequence): Always force
30559 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
30562 * config/pa/pa.c (pa_reloc_rw_mask): New function.
30563 (TARGET_ASM_RELOC_RW_MASK): Define.
30564 (pa_cannot_force_const_mem): Revert previous change.
30566 2015-02-19 Martin Jambor <mjmabor@suse.cz>
30567 Jan Hubicka <hubicka@ucw.cz>
30570 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30571 across jump functions.
30573 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
30575 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30577 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
30579 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30581 2015-02-19 Richard Henderson <rth@redhat.com>
30583 PR middle-end/65074
30584 * varasm.c (default_binds_local_p_2): Don't test node->definition;
30585 test DECL_EXTERNAL independent of symtab_node.
30587 2015-02-19 Jakub Jelinek <jakub@redhat.com>
30590 * varpool.c (varpool_node::get_constructor): Return early
30591 if this->lto_file_data is NULL.
30593 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30595 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30596 (rank_for_schedule_debug): Update.
30597 (ready_sort): Make static. Move sorting logic to ...
30598 (ready_sort_debug, ready_sort_real): New static functions.
30599 (schedule_block): Sort both debug insns and real insns in preparation
30600 for ready list trimming. Improve debug output.
30601 * sched-int.h (ready_sort): Remove global declaration.
30603 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
30605 * ipa-icf.c (sem_function::equals_private): Adjust.
30606 (sem_function::bb_dict_test): Take a vec<int> * instead of
30608 * ipa-icf.h (bb_dict_test): Likewise.
30610 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30612 PR gcov-profile/64634
30613 * tree-eh.c (frob_into_branch_around): Fix up typos
30614 in function comment.
30615 (lower_catch): Put eh_seq resulting from EH lowering of
30616 the cleanup sequence after the cleanup rather than before it.
30618 2015-02-18 Tom de Vries <tom@codesourcery.com>
30620 * common.opt (fstdarg-opt): New option.
30621 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
30622 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
30623 (@item -fstdarg-opt): New item.
30625 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
30628 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
30629 for common symbols.
30631 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30633 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
30635 (ALL_HOST_OBJS): Add mkoffload.o.
30636 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
30638 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
30640 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
30641 (compare_virtual_tables): Be smarter about skipping typeinfos;
30642 do sane output on virtual table table mismatch.
30643 (warn_odr): Be ready for forward declarations of enums;
30644 output sane info on base mismatch and virtual table mismatch.
30645 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
30646 when only one type is polymorphic.
30647 (get_odr_type): Fix hashtable corruption.
30648 (dump_odr_type): Dump mangled names.
30650 2015-02-18 Richard Biener <rguenther@suse.de>
30652 PR tree-optimization/65063
30653 * tree-predcom.c (determine_unroll_factor): Return 1 if we
30654 have replaced looparound PHIs.
30656 2015-02-18 Martin Liska <mliska@suse.cz>
30658 * lto-streamer.c (lto_streamer_init): Encapsulate
30659 streamer_check_handled_ts_structures with checking macro.
30661 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30664 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
30665 section if !implicit_section.
30666 (cgraph_node::create_version_clone_with_body): Likewise.
30667 * trans-mem.c (ipa_tm_create_version): Likewise.
30669 2015-02-18 Richard Biener <rguenther@suse.de>
30671 PR tree-optimization/62217
30672 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
30675 2015-02-18 Marek Polacek <polacek@redhat.com>
30678 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
30679 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
30680 is in range [-16K, -1]. Don't issue run-time error if
30681 (ptr > ptr + offset).
30683 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
30685 * doc/install.texi (nvptx-*-none): New section.
30686 * doc/invoke.texi (Nvidia PTX Options): Likewise.
30687 * config/nvptx/nvptx.opt: Update.
30689 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
30690 (access_check): New functions, copied from
30691 config/i386/intelmic-mkoffload.c.
30692 (main): For non-installed testing, look in all COMPILER_PATHs for
30695 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
30697 2015-02-18 Andrew Pinski <apinski@cavium.com>
30698 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30700 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
30701 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
30703 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30705 * ipa-visibility.c (function_and_variable_visibility): Only
30706 check locality if node is not already local.
30707 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30708 call_for_symbol_and_aliases instead of
30709 call_for_symbol_thunks_and_aliases.
30710 (ipa_inline): Likewise.
30711 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30712 first walk aliases.
30713 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30714 call_for_symbol_and_aliases.
30715 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30716 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30717 (ipa_propagate_frequency): Update.
30718 (ipa_profile): Add opt_for_fn gueards.
30720 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30722 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
30723 * doc/invoke.texi (SH options): Document it.
30724 * config/sh/sh.c (sh_insn_length_adjustment): Check
30725 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
30727 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
30729 * common.opt (fipa-cp-alignment): New.
30730 * ipa-cp.c (ipcp_store_alignment_results): Check
30731 flag_ipa_cp_alignment.
30732 * opts.c (default_options_table): Enable -fipa-cp-alignment for
30734 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
30735 * doc/invoke.texi: Document -fipa-cp-alignment.
30737 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30740 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
30741 to nil. Adjust comments.
30743 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30745 * ipa-visibility.c (function_and_variable_visibility): Only
30746 check locality if node is not already local.
30747 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30748 call_for_symbol_and_aliases instead of
30749 call_for_symbol_thunks_and_aliases.
30750 (ipa_inline): Likewise.
30751 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30752 first walk aliases.
30753 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30754 call_for_symbol_and_aliases.
30755 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30756 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30757 (ipa_propagate_frequency): Update.
30758 (ipa_profile): Add opt_for_fn guards.
30760 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
30762 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
30763 skipping of "strange" tokens.
30765 2015-02-17 Jeff Law <law@redhat.com>
30767 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
30770 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
30772 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
30773 as forcing a HARD_DEP between instructions, thereby
30774 disallowing rewriting to break dependencies.
30776 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
30778 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
30779 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
30780 variables in boundary that have no inlitalizer encoded and are
30782 * varasm.c (default_binds_local_p_2): External definitions do not
30783 count as definitions here.
30785 2015-02-16 Jeff Law <law@redhat.com>
30787 PR tree-optimization/64823
30788 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
30790 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30791 threading through blocks with PHIs, but no statements.
30792 (thread_through_normal_block): Distinguish between blocks where
30793 we did not process all the statements and blocks with no statements.
30795 2015-02-16 Jakub Jelinek <jakub@redhat.com>
30796 James Greenhalgh <james.greenhalgh@arm.com>
30799 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
30800 section if not linkonce. Fix up formatting.
30801 (cgraph_node::create_version_clone_with_body): Copy section.
30802 * trans-mem.c (ipa_tm_create_version): Likewise.
30804 2015-02-16 Richard Biener <rguenther@suse.de>
30806 PR tree-optimization/65077
30807 * tree-ssa-structalias.c (get_constraint_for_1): Handle
30808 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
30809 (find_func_aliases): Allow float values to carry pointers again.
30811 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30813 * doc/install.texi (Specific): Reorder targets list to put
30814 aarch64 in alphabetical order. Add a link to aarch64*-*-*
30817 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30818 David Edelsohn <dje.gcc@gmail.com>
30821 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
30822 mapping class to external variable or function reference.
30823 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
30826 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
30829 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
30830 ASM_WEAKEN_DECL if defined.
30832 2015-02-16 Richard Biener <rguenther@suse.de>
30835 * varasm.c (default_file_start): For LTO produced units
30836 emit <artificial> as file directive.
30838 2015-02-16 Richard Biener <rguenther@suse.de>
30840 PR tree-optimization/63593
30841 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
30842 stmts and releasing SSA names until...
30843 (execute_pred_commoning): ... after processing all chains.
30845 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
30848 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
30849 external functions.
30851 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
30853 * doc/bugreport.texi: Adjust section titles throughout the file
30854 to use "Title Case".
30855 * doc/extend.texi: Likewise.
30856 * doc/gcov.texi: Likewise.
30857 * doc/implement-c.texi: Likewise.
30858 * doc/implement-cxx.texi: Likewise.
30859 * doc/invoke.texi: Likewise.
30860 * doc/objc.texi: Likewise.
30861 * doc/standards.texi: Likewise.
30862 * doc/trouble.texi: Likewise.
30864 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
30866 * cgraph.h (symtab_node::has_aliases_p): Simplify.
30867 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
30868 * tree.c (lookup_binfo_at_offset): Make static.
30869 (get_binfo_at_offset): Do not shadow offset; add explanatory
30872 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
30874 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
30875 for all floading point loads and stores except those using a register
30877 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
30880 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
30882 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
30883 (do_estimate_growth_1): Record if any uninlinable edge was seen.
30884 (estimate_growth): Handle uninlinable edges correctly.
30885 (check_callers): New.
30886 (growth_likely_positive): Handle aliases correctly.
30888 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
30890 * ipa-chkp.c: Use iterate_direct_aliases.
30891 * symtab.c (resolution_used_from_other_file_p): Move inline.
30892 (symtab_node::create_reference): Fix formating.
30893 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
30894 (symtab_node::iterate_reference): Move inline.
30895 (symtab_node::iterate_referring): Move inline.
30896 (symtab_node::iterate_direct_aliases): Move inline.
30897 (symtab_node::used_from_object_file_p_worker): Inline into ...
30898 (symtab_node::used_from_object_file_p): ... this one; move inline.
30899 (symtab_node::call_for_symbol_and_aliases): Move inline;
30900 use iterate_direct_aliases.
30901 (symtab_node::call_for_symbol_and_aliases_1): New method.
30902 (cgraph_node::call_for_symbol_and_aliases): Move inline;
30903 use iterate_direct_aliases.
30904 (cgraph_node::call_for_symbol_and_aliases_1): New method.
30905 (varpool_node::call_for_node_and_aliases): Rename to ...
30906 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
30907 use iterate_direct_aliases.
30908 (varpool_node::call_for_symbol_and_aliases_1): New method.
30909 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
30910 (ipa_discover_readonly_nonaddressable_var): Update.
30911 * ipa-devirt.c: Fix formating.
30912 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
30914 (cgraph_node::call_for_symbol_and_aliases): Move inline.
30915 (cgraph_node::call_for_symbol_and_aliases_1): New function..
30916 * cgraph.h (used_from_object_file_p_worker): Remove.
30917 (resolution_used_from_other_file_p): Move inline.
30918 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
30919 (symtab_node::iterate_reference): Move inline.
30920 (symtab_node::iterate_referring): Move inline.
30921 (symtab_node::iterate_direct_aliases): Move inline.
30922 (symtab_node::used_from_object_file_p_worker): Inline into ...
30923 (symtab_node::used_from_object_file_p): Move inline.
30924 * tree-emutls.c (ipa_lower_emutls): Update.
30925 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
30926 (varpool_node::call_for_node_and_aliases): Remove.
30928 2015-02-14 Jakub Jelinek <jakub@redhat.com>
30930 PR tree-optimization/62209
30931 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
30932 op == range->exp, insert seq and gimplified code after labels
30933 instead of after the phi.
30935 2015-02-13 Jeff Law <law@redhat.com>
30938 Revert my change for tree-optimization/64823.
30940 2015-02-13 Jakub Jelinek <jakub@redhat.com>
30942 PR tree-optimization/65053
30943 * tree-ssa-phiopt.c (value_replacement): When moving assign before
30944 cond, either reset VR on lhs or set it to phi result VR.
30946 2015-02-13 Jeff Law <law@redhat.com>
30948 PR tree-optimization/64823
30949 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
30950 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30951 threading through blocks with PHIs, but no statements.
30952 (thread_through_normal_block): Distinguish between blocks where
30953 we did not process all the statements and blocks with no statements.
30955 PR rtl-optimization/47477
30956 * match.pd (convert (plus/minus (convert @0) (convert @1): New
30957 simplifier to narrow arithmetic.
30959 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
30962 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
30963 polymorphic call info when type is not known to be preserved.
30965 2015-02-13 Maritn Jambor <mjambor@suse.cz>
30968 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
30969 (inline_call): Use it.
30971 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
30973 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
30974 GOMP_DEVICE_NVIDIA_PTX.
30976 2015-02-13 Jakub Jelinek <jakub@redhat.com>
30979 * stmt.c (emit_case_nodes): Use void_type_node instead of
30980 NULL_TREE as LABEL_DECL type.
30982 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
30984 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
30986 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
30987 symbolic references to data to be forced to constant memory on the
30990 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
30992 PR tree-optimization/65002
30993 * tree-cfg.c (pass_data_fixup_cfg): Don't update
30995 * tree-sra.c (some_callers_have_no_vuse_p): New.
30996 (ipa_early_sra): Reject functions whose callers
30997 assume function is read only.
30999 2015-02-13 Richard Biener <rguenther@suse.de>
31002 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
31003 for LTO produced CUs.
31005 2015-02-13 Bin Cheng <bin.cheng@arm.com>
31007 PR tree-optimization/64705
31008 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
31009 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
31010 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
31011 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
31012 expand_simple_operations.
31014 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
31015 Richard Henderson <rth@redhat.com>
31018 * cgraphunit.c (cgraph_node::finalize_function): Set definition
31019 before notice_global_symbol.
31020 (varpool_node::finalize_decl): Likewise.
31021 * varasm.c (default_binds_local_p_2): Rename from
31022 default_binds_local_p_1, add weak_dominate argument. Use direct
31023 returns instead of assigning to local variable. Unify varpool and
31024 cgraph paths via symtab_node. Reject undef weak variables before
31025 testing visibility. Reorder tests for simplicity.
31026 (default_binds_local_p): Use default_binds_local_p_2.
31027 (default_binds_local_p_1): Likewise.
31028 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
31030 (default_elf_asm_output_external): Emit visibility when specified.
31032 2015-02-13 Alan Modra <amodra@gmail.com>
31034 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
31035 code setting up r11 for out-of-line fp restore.
31037 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
31039 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
31040 (muser-mode): Likewise.
31042 2015-02-13 Alan Modra <amodra@gmail.com>
31044 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
31045 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
31047 2015-02-12 David Howells <dhowells@redhat.com>
31049 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
31051 * tree-ssa-uninit.c (dump_predicates): Likewise.
31052 * opts.c (print_filtered_help): Likewise.
31054 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31056 * dwarf2out.c (output_die): Use "%s", name instead of name to
31057 avoid -Wformat-security warning.
31059 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
31060 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31061 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
31062 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31064 2015-02-12 Jason Merrill <jason@redhat.com>
31066 * common.opt (-flifetime-dse): New.
31068 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31071 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
31073 PR tree-optimization/65014
31074 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
31075 use original second operand of arg0 or arg1 instead of
31076 that adjusted by STRIP_NOPS.
31078 2015-02-11 Jeff Law <law@redhat.com>
31081 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
31082 that needs to be queued, just queue it for a single cycle.
31084 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
31086 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
31087 bodies of thunks; comment on why.
31088 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
31089 symbols are extern.
31091 2015-02-11 Richard Henderson <rth@redhat.com>
31094 * tree-eh.c (mark_reachable_handlers): Mark source and destination
31095 regions of __builtin_eh_copy_values.
31097 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31099 PR middle-end/65003
31100 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
31101 ultimate alias is MEM with SYMBOL_REF satisfying
31102 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
31103 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
31105 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
31107 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
31108 "diagnostic-core.h".
31109 (main): Initialize progname, and call diagnostic_initialize.
31111 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
31112 instead of __OPENMP_TARGET__.
31114 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
31115 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
31116 hard-coding PTX_ID.
31118 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
31120 * doc/sourcebuild.texi (pie_enabled): Document.
31122 2015-02-11 Martin Liska <mliska@suse.cz>
31125 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
31126 a return value for call to a function that is noreturn.
31128 2015-02-11 Richard Biener <rguenther@suse.de>
31131 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
31134 2015-02-11 Andrew Pinski <apinski@cavium.com>
31137 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
31138 Change the first argument type to size_type_node and add another
31140 (aarch64_simd_expand_builtin): Handle the new argument to
31141 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
31142 print an out when the first two arguments are not
31143 nonzero integer constants.
31144 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
31145 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
31147 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31150 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
31151 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31152 (ix86_set_current_function): Rewritten.
31153 (ix86_add_new_builtins): Temporarily clear current_target_pragma
31154 when creating builtin fndecls.
31156 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31159 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
31161 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
31162 have no comdat group.
31163 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
31164 (lto_output_varpool_node): Always output alias info.
31165 (output_refs): Output refs of boundary aliases, too.
31166 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
31167 (output_symtab): Output call eges in thunks in boundary.
31168 (get_alias_symbol): Remove.
31169 (input_node, input_varpool_node): Do not special case weakrefs.
31170 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
31171 alias and thunks targets in the boundary; do not take removed symbols
31172 from their comdat groups.
31173 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
31174 (cgraph_node::global_info): Remove.
31175 (cgraph_node::rtl_info): Look through aliases and thunks.
31176 * cgrpah.h (global_info): Remove.
31177 (non_local_p): Remove.
31179 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31180 Sandra Loosemore <sandra@codesourcery.com>
31182 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
31183 to inline asm. List dialects in proper order.
31185 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31186 Sandra Loosemore <sandra@codesourcery.com>
31188 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
31190 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31192 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
31193 modified) reference to Solaris.
31195 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
31197 * doc/extend.texi (Extended Asm): Fix typos.
31199 2015-02-10 Jakub Jelinek <jakub@redhat.com>
31202 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
31204 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
31207 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
31208 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
31209 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
31210 * config/sh/constraints.md (Ara, Add): New constraints.
31211 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
31213 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
31214 atomic_mem_operand_0. Don't use force_reg on the memory address.
31215 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
31216 Sra constraint. Convert to insn_and_split. Add workaround for
31218 (atomic_compare_and_swap<mode>_hard): Copy to
31219 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
31220 Use atomic_mem_operand_0 predicate.
31221 (atomic_compare_and_swap<mode>_soft_gusa,
31222 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
31223 AraAdd constraints.
31224 (atomic_compare_and_swap<mode>_soft_tcb,
31225 atomic_compare_and_swap<mode>_soft_imask,
31226 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
31227 atomic_mem_operand_0 predicate and SraSdd constraints.
31228 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
31230 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
31231 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
31232 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
31233 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
31234 force_reg on the memory address.
31235 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
31236 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
31237 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
31238 atomic_mem_operand_1 predicate and Sra constraint.
31239 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
31240 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31241 Use atomic_mem_operand_1 predicate.
31242 (atomic_<fetchop_name><mode>_hard): Copy to
31243 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31244 Use atomic_mem_operand_1 predicate.
31245 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
31246 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31247 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
31248 insn_and_split. Use atomic_mem_operand_1 predicate.
31249 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
31250 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
31251 Use atomic_mem_operand_1 predicate.
31252 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
31253 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31254 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
31255 in generated insn with original mem operand before emitting the insn.
31256 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
31257 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
31258 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
31259 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
31260 Use atomic_mem_operand_1 predicate and AraAdd constraints.
31261 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
31262 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
31263 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
31264 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
31265 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
31266 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
31267 atomic_not_fetch<mode>_soft_tcb,
31268 atomic_<fetchop_name>_fetch<mode>_soft_imask,
31269 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
31270 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
31271 Use atomic_mem_operand_1 predicate and SraSdd constraints.
31273 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
31275 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
31276 and 3 earlyclobber operands.
31278 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31280 * common.opt (fstack-reuse): Mark as optimization.
31282 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31285 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
31287 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
31289 PR tree-optimization/64326
31290 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
31292 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
31294 PR gcov-profile/61889
31295 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
31297 2015-02-10 Richard Biener <rguenther@suse.de>
31299 PR tree-optimization/64995
31300 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
31301 value we use is final.
31302 (visit_reference_op_store): Always valueize op.
31303 (visit_use): Properly valueize vuses.
31305 2015-02-10 Richard Biener <rguenther@suse.de>
31307 PR tree-optimization/64909
31308 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
31309 pass a scalar-stmt count estimate to the cost model.
31310 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
31312 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
31314 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
31315 enabled by default together with var-tracking.
31317 2015-02-10 Nick Clifton <nickc@redhat.com>
31319 * config/rl78/rl78.c: Remove DIV attribute code accidentally
31320 included in previous rl78 commit.
31322 2015-02-10 Richard Biener <rguenther@suse.de>
31324 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
31325 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
31326 return the bitpack.
31328 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31330 PR gcov-profile/61889
31331 * config.in: regenerate.
31332 * configure.in: Likewise.
31333 * configure.ac: Check for ftw.h.
31334 * gcov-tool.c: Check for ftw.h before using nftw.
31336 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31339 * ipa-visibility.c (update_visibility_by_resolution_info): Only
31340 assert when not in lto mode.
31342 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31344 * ira-color.c (setup_left_conflict_sizes_p): Simplify
31345 initialization/assignment of conflict_size.
31347 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
31350 * ipa-cp.c (gather_caller_stats): Skip thunks.
31351 (propagate_constants_topo): Skip aliases.
31353 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
31356 * config/sh/sh.c (sh_option_override): Don't change
31357 -freorder-blocks-and-partition to -freorder-blocks even when
31358 unwinding is enabled.
31359 (sh_can_follow_jump): Return false if the followee jump is
31360 a crossing jump when -freorder-blocks-and-partition is specified.
31361 * config/sh/sh.md (*jump_compact_crossing): New insn.
31363 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
31364 Kaz Kojima <kkojima@gcc.gnu.org>
31367 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31368 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31369 (sh_can_redirect_branch): Rename to ...
31370 (sh_can_follow_jump): ... this. Constify argument types.
31371 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31372 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31373 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31374 * doc/tm.texi: Regenerate.
31376 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31379 * builtins.c (expand_builtin): Call targetm.expand_builtin
31380 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31382 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31385 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31387 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31390 * ipa-icf.c (set_local): New function.
31391 (sem_function::merge): Use it.
31393 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31395 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31396 (add_type_duplicate): Fix comparison of BINFOs.
31398 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31400 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31401 on getting VOID pointer.
31403 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31406 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31409 2015-02-09 Richard Biener <rguenther@suse.de>
31411 * genmatch.c (replace_id): Copy expr_type.
31413 2015-02-09 Richard Biener <rguenther@suse.de>
31415 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31416 (streamer_write_tree_bitfields): Declare.
31417 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31418 properly unpack padding.
31419 (unpack_value_fields): Inline ...
31420 (streamer_read_tree_bitfields): ... here.
31421 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31422 and properly add padding bits.
31423 (streamer_pack_tree_bitfields): Fold into ...
31424 (streamer_write_tree_bitfields): ... this new function,
31425 exposing the bitpack object.
31426 * lto-streamer-out.c (lto_write_tree_1): Call
31427 streamer_write_tree_bitfields.
31429 2015-02-09 Richard Biener <rguenther@suse.de>
31431 PR tree-optimization/54000
31432 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31433 (struct ivopts_data): Add loop_loc member.
31434 (tree_ssa_iv_optimize_loop): Dump loop location.
31435 (create_new_ivs): Likewise, also dump number of IVs generated.
31437 2015-02-09 Martin Liska <mliska@suse.cz>
31439 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31440 just if not yet registered.
31441 (ipa_icf_generate_summary): Register callgraph hooks.
31443 2015-02-08 Andrew Pinski <apinski@cavium.com>
31445 * config/aarch64/aarch64.c (gty_dummy): Delete.
31447 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31450 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31451 (cgraph_node::local_p): Remove thunk related FIXME.
31453 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31456 * i386.c (ix86_function_regparm): Look through aliases to see if callee
31457 is local and optimized.
31458 (ix86_function_sseregparm): Likewise; also use target's SSE math
31459 settings; error out instead of silently generating wrong code
31461 (init_cumulative_args): Look through aliases.
31463 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31466 * ipa-split.c (execute_split_functions): Split if function has aliases.
31468 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31471 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31472 aliases before trying to expand it.
31473 (cgraph_node::expand_thunk): Fix formating.
31475 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
31477 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31478 (Using Assembly Language with C): Expand introduction.
31479 (Basic Asm): Copy-edit. Add more information about uses of
31481 (Extended Asm): Copy-edit. Document new escape syntax and
31483 (Global Reg Vars): Copy-edit.
31484 (Local Reg Vars): Likewise.
31486 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
31490 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31491 (DBX_CONTIN_CHAR): Define.
31493 2015-02-06 Sebastian Pop <s.pop@samsung.com>
31494 Brian Rzycki <b.rzycki@samsung.com>
31496 PR tree-optimization/64878
31497 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31498 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31499 Stop recursion at loop phi nodes after having visited a loop phi node.
31501 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31503 * toplev.c (process_options): Change flag_ipa_ra before creating
31504 optimization_{default,current}_node.
31507 * cgraphunit.c (cgraph_node::expand_thunk): If
31508 restype is not is_gimple_reg_type nor the thunk_fndecl
31509 returns aggregate_value_p, set restmp to a temporary variable
31510 instead of resdecl.
31512 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
31514 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31516 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31519 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31520 add a general secondary reload handler for SDmode, unless we have
31521 both read/write support for SDmode.
31523 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31525 PR middle-end/64937
31526 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31527 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31528 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31529 1 before, push it to abstract_vec.
31530 (dwarf2out_abstract_function): Adjust caller. Don't call
31531 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31532 DECL_ABSTRACT_P flags for all abstract_vec elts.
31534 2015-02-06 Renlin Li <renlin.li@arm.com>
31536 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31538 * tree-ssa.c (execute_update_addresses_taken): Likewise.
31540 2015-02-06 Jeff Law <law@redhat.com>
31543 * config/h8300/h8300.c (push): New argument "in_prologue".
31544 Pass "in_prologue" along to "F".
31545 (h8300_push_pop): Corresponding changes.
31546 (h8300_expand_prologue): Likewise.
31547 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
31549 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31551 PR rtl-optimization/64957
31553 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31554 IOR rather than for AND.
31556 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
31559 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31560 of shift-add and (add + shift) operations. Rename local variable.
31562 2015-02-05 Jeff Law <law@redhat.com>
31565 * config/h8300/constraints.md (U): Correctly dectect
31566 "eightbit_data" memory addresses.
31567 * config/h8300/h8300.c (eightbit_constant_address_p): Also
31568 handle (const (plus (symbol_ref (x)))) where x is declared
31569 as an 8-bit data memory address.
31570 * config/h8300/h8300.md (call, call_value): Correctly detect
31571 "funcvec" functions.
31574 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31575 24 to 28 bits for the H8/300.
31577 2015-02-06 Alan Modra <amodra@gmail.com>
31580 * config/rs6000/rs6000.c (chain_already_loaded): New function.
31581 (rs6000_call_aix): Use it.
31583 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
31585 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31588 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
31590 * config/h8300/constraints.md ("U" constraint): Use strict
31591 variant of REG_OK_FOR_BASE_P after reload has started.
31593 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
31595 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31596 define to zero if !TARGET_NEON.
31597 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31599 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31600 Trevor Saunders <tsaunders@mozilla.com>
31603 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
31605 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31608 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
31609 when removing varpool nodes.
31611 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31614 * varpool.c (varpool_node::remove): Fix order of variables.
31616 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31619 * ipa-inline.c (inline_small_functions): Fix ordering issue between
31620 speculation resolution and key updates.
31622 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31624 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
31625 about not letting any speculative edges unupdated.
31627 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31630 * gcov-io.c (gcov_var): Export.
31632 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31634 PR middle-end/64922
31635 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
31636 edges that become speculative.
31638 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31640 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
31641 or DW_LANG_Fortran08.
31642 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
31644 (gen_compile_unit_die): Handle "GNU Fortran2003" and
31645 "GNU Fortran2008" language strings.
31646 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
31647 * langhooks.h (lang_GNU_Fortran): New prototype.
31648 * langhooks.c (lang_GNU_Fortran): New function.
31649 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
31652 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31654 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
31655 (RTX_OK_FOR_OLO10_P): Likewise.
31657 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31659 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
31661 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31663 PR middle-end/64922
31664 * gimple.c: Include gimple-ssa.h.
31665 (maybe_remove_unused_call_args): New function.
31666 * gimple.h (maybe_remove_unused_call_args): Declare.
31667 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
31668 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31669 * gimple-fold.c (gimple_fold_call): Likewise.
31671 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
31673 PR rtl-optimization/64905
31674 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
31675 pointer alignment if it isn't needed.
31677 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31679 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
31680 cortex-a72.cortex-a53.
31681 * config/aarch64/aarch64-tune.md: Regenerate.
31682 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
31684 2015-02-04 Nick Clifton <nickc@redhat.com>
31686 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
31689 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31691 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
31692 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
31693 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
31695 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
31696 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
31697 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
31698 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
31699 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
31700 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
31701 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
31702 * tree-core.h (enum built_in_function): In between
31703 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
31704 for builtins that use DEF_BUILTIN_CHKP macro.
31706 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
31709 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
31710 operands for tcc_comparison exprs. Fix typos.
31713 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
31714 of two XORs that have an intervening AND or IOR.
31717 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
31718 simplification of XOR of AND to not allocate new rtx before
31719 committing to a simplification.
31721 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31723 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
31724 manual swaps in all peepholes.
31726 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31728 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
31729 of manual swapping implementation.
31730 (aarch64_expand_vec_perm_const_1): Likewise.
31732 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
31734 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
31735 (generic_addrcost_table): Remove NAMED_PARAM.
31736 (cortexa57_addrcost_table): Likewise.
31737 (xgene1_addrcost_table): Likewise.
31738 (generic_regmove_table): Likewise.
31739 (cortexa53_regmove_table): Likewise.
31740 (xgene1_regmove_table): Likewise.
31741 (generic_vector_table): Likewise.
31742 (cortexa57_vector_table): Likewise.
31743 (xgene1_vector_table): Likewise.
31744 (generic_tunings): Likewise.
31745 (cortexa53_tunings): Likewise.
31746 (cortexa57_tunings): Likewise.
31747 (xgene1_tunings): Likewise.
31749 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31751 * config/arm/arm-cores.def: Add cortex-a72 and
31752 cortex-a72.cortex-a53.
31753 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
31754 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
31755 * config/arm/arm-tune.md: Regenerate.
31756 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
31757 "cortex-a72.cortex-a53".
31758 * doc/invoke.texi (ARM Options/-mtune): Likewise.
31760 2015-02-04 Nick Clifton <nickc@redhat.com>
31763 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
31765 (nonimmediate_di_operand): Likewise.
31767 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
31768 prefixes of known F5 using MSP430 MCUs.
31770 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31772 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
31773 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
31774 instead of __builtin_sqrt.
31776 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
31778 * varasm.c (do_assemble_alias): Follow transparent alias
31780 (default_assemble_visibility): Follow transparent alias
31781 chain for decl name.
31783 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
31785 PR middle-end/62103
31786 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
31787 to compute size of referenced value in the constant case.
31789 2015-02-03 Jakub Jelinek <jakub@redhat.com>
31791 PR rtl-optimization/64756
31792 * cse.c (invalidate_dest): New function.
31793 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
31794 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
31795 invalidate and do not record it.
31797 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
31800 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
31801 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
31802 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
31803 atomic_nand<mode>_soft_tcb): New insns.
31804 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
31805 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
31806 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
31807 Split into atomic_not_fetchsi_hard if operands[0] is unused.
31808 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
31809 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
31810 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
31811 atomic_not<mode>_hard if operands[0] is unused.
31812 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
31813 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
31814 if operands[0] is unused.
31815 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
31816 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
31817 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
31818 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
31820 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
31821 into atomic_not<mode>_soft_tcb if operands[0] is unused.
31822 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
31823 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
31824 if operands[0] is unused.
31825 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
31826 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
31827 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
31828 atomic_nand_fetchsi_hard if operands[0] is unused.
31829 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
31830 atomic_nand<mode>_hard if operands[0] is unused.
31831 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
31832 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
31833 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
31834 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
31835 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
31836 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
31837 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
31838 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
31839 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
31840 atomic_not<mode>_hard if operands[0] is unused.
31841 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
31842 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
31844 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
31845 into atomic_not<mode>_soft_tcb if operands[0] is unused.
31846 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
31847 atomic_nand<mode>_hard if operands[0] is unused.
31848 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
31849 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
31851 2015-02-03 David Malcolm <dmalcolm@redhat.com>
31854 * Makefile.in (GCC_OBJS): Add gcc-main.o.
31855 * gcc-main.c: New file, containing "main" taken from gcc.c.
31856 * gcc.c (do_self_spec): Free decoded_options.
31857 (class driver): Move declaration to gcc.h.
31858 (main): Move declaration and implementation to new file
31860 (driver_get_configure_time_options): New function.
31861 * gcc.h (class driver): Move this declaration here, from
31863 (driver_get_configure_time_options): New declaration.
31865 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
31867 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
31868 cross-module inlining.
31869 * cgraph.h (cgraph_node): Add flag merged.
31870 * ipa-icf.c (sem_function::merge): Maintain it.
31872 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
31874 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
31875 instead of OBJECT_P.
31877 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
31880 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
31881 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
31882 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
31883 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
31885 2015-02-03 Jakub Jelinek <jakub@redhat.com>
31888 * combine.c (reg_n_sets_max): New variable.
31889 (can_change_dest_mode, reg_nonzero_bits_for_combine,
31890 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
31891 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
31892 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
31893 (rest_of_handle_combine): Initialize reg_n_sets_max.
31895 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
31897 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
31898 if some always_inline was inlined, apply changes before inlining
31901 2015-02-02 David Malcolm <dmalcolm@redhat.com>
31904 * config/arm/arm.c (arm_option_override): Set
31905 arm_selected_arch/cpu/tune to NULL on entry.
31907 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
31908 Andrew Pinski <pinskia@gcc.gnu.org>
31909 Jakub Jelinek <jakub@gcc.gnu.org>
31912 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
31913 integer typing for small model. Use IN_RANGE.
31915 2015-02-02 Richard Biener <rguenther@suse.de>
31917 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
31918 * tree-vrp.c (vrp_valueize_1): Likewise.
31920 2015-02-02 Alan Modra <amodra@gmail.com>
31922 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
31923 than mem for toc_restore.
31924 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
31925 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
31926 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
31928 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
31931 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
31932 explicit default options.
31934 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
31937 * ipa-utils.c (ipa_merge_profiles): Add release argument.
31938 * ipa-icf.c (sem_function::merge): Do not release body when merging.
31939 * ipa-utils.h (ipa_merge_profiles): Update prototype.
31941 2015-02-01 Jakub Jelinek <jakub@redhat.com>
31944 * cfgexpand.c (deep_ter_debug_map): New variable.
31945 (avoid_deep_ter_for_debug): New function.
31946 (expand_debug_expr): If TERed SSA_NAME is in
31947 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
31948 instead of trying to expand SSA_NAME's def stmt.
31949 (expand_debug_locations): When expanding debug bind
31950 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
31951 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
31953 (pass_expand::execute): Call avoid_deep_ter_for_debug on
31954 all debug bind stmts. Delete deep_ter_debug_map after
31955 expand_debug_location if non-NULL and clear it.
31957 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
31960 * config/sh/sync.md (atomic_fetch_notsi_hard,
31961 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
31962 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
31963 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
31964 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
31965 atomic_not_fetch<mode>_soft_imask): New insns.
31967 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31969 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
31970 (rank_for_schedule_debug): Split from ...
31971 (rank_for_schedule): ... this.
31972 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
31973 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
31975 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
31977 * doc/md.texi (Machine Constraints): Alphabetize table by target.
31978 * doc/extend.texi (x86 Variable Attributes): Move section to
31979 correct alphabetization after renaming.
31980 (x86 Type Attributes): Likewise.
31981 (Target Builtins): Re-alphabetize menu.
31982 (x86 Built-in Functions): Move section to correct alphabetization
31984 (x86 transactional memory intrinsics): Likewise.
31985 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
31986 and x86 Windows Options in table and menu.
31987 (x86 Options): Move section to correct alphabetization after
31989 (x86 Windows Options): Likewise.
31991 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
31993 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
31994 preferred names of the architecture and its 32- and 64-bit
31996 * doc/invoke.texi: Likewise.
31997 * doc/md.texi: Likewise.
31999 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32002 * config/i386/predicates.md (address_no_seg_operand): Reject
32003 non-CONST_INT_P operands in invalid mode.
32005 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32007 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
32008 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
32009 * config/i386/predicates.md (address_no_seg_operand): Call
32010 address_operand with VOIDmode.
32011 (vsib_address_operand): Ditto.
32012 (address_mpx_no_base_operand): Ditto.
32013 (address_mpx_no_index_operand): Ditto.
32015 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32018 * lra-constraints.c (original_subreg_reg_mode): New.
32019 (simplify_operand_subreg): Try to simplify subreg of const. Use
32020 original_subreg_reg_mode for it.
32021 (swap_operands): Update original_subreg_reg_mode.
32022 (curr_insn_transform): Set up original_subreg_reg_mode.
32024 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32027 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
32029 (process_alt_operands): Use it.
32030 (curr_insn_transform): Check the optional reload pseudo class is
32033 2015-01-30 Joseph Myers <joseph@codesourcery.com>
32035 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
32036 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
32038 * toplev.h (init_asm_output): Update comment on use of
32039 UNKNOWN_LOCATION with fatal_error.
32040 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
32041 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
32042 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
32043 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
32044 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
32045 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
32046 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
32047 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
32048 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
32049 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
32050 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
32051 fatal_error changed to pass input_location as first argument.
32053 2015-01-30 Martin Liska <mliska@suse.cz>
32055 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
32056 in #pragma GCC diagnostic guards.
32058 2015-01-30 Richard Biener <rguenther@suse.de>
32060 PR tree-optimization/64829
32061 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
32062 not add a widening conversion pattern but hand off extra
32063 widenings to callers.
32064 (vect_recog_widen_mult_pattern): Handle extra widening produced
32065 by vect_handle_widen_op_by_const.
32066 (vect_recog_widen_shift_pattern): Likewise.
32067 (vect_pattern_recog_1): Remove excess vertical space in dumping.
32068 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
32069 (vect_init_vector_1): Likewise.
32070 (vect_get_vec_def_for_operand): Likewise.
32071 (vect_finish_stmt_generation): Likewise.
32072 (vectorizable_load): Likewise.
32073 (vect_analyze_stmt): Likewise.
32074 (vect_is_simple_use): Likewise.
32076 2015-01-29 Jeff Law <law@redhat.com>
32078 * combine.c (try_combine): Fix typo in comment.
32080 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
32083 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
32084 (rs6000_stack_info): Add assert.
32085 (rs6000_output_savres_externs): New function, split off from...
32086 (rs6000_output_function_prologue): ... here. Do not call it for
32089 2015-01-29 Jeff Law <law@redhat.com>
32092 * combine.c (try_combine): If I0 is a memory load and I3 a store
32093 to a related address, increase the "goodness" of doing a 4-insn
32094 combination with I0-I3.
32095 (make_field_assignment): Handle SUBREGs in the ior+and case.
32097 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
32099 PR tree-optimization/64746
32100 * tree-if-conv.c (mask_exists): New function.
32101 (predicate_mem_writes): Save created mask with given size for further
32103 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
32104 (ifcvt_repair_bool_pattern): Collect all statements that are root
32105 of bool pattern and use iterative algorithm to remove multiple uses
32106 of predicates, display number of required iterations.
32108 2015-01-29 Richard Biener <rguenther@suse.de>
32110 PR tree-optimization/64853
32111 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
32112 stmt will get simulated again.
32113 * tree-ssa-ccp.c (valueize_op_1): Likewise.
32115 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32117 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
32118 return_in_pc. Remove redundant assignments.
32119 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
32120 (arm_expand_epilogue): Don't compare boolean with true in if condition.
32122 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
32124 * config/i386/i386.c (ix86_mode_after): Make static.
32126 2015-01-29 Richard Biener <rguenther@suse.de>
32128 PR tree-optimization/64844
32129 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
32130 dump cost model analysis.
32131 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32132 Do not register adjusted load/store costs here.
32134 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32135 Uros Bizjak <ubizjak@gmail.com>
32137 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
32138 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
32139 using x86_use_pseudo_pic_reg.
32140 * config/i386/i386.c (ix86_conditional_register_usage): Remove
32141 support for fixed PIC register.
32142 (ix86_use_pseudo_pic_reg): Not static any more.
32144 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32146 PR middle-end/64805
32147 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
32148 to avoid error in cgraph node verification.
32150 2015-01-29 Marek Polacek <polacek@redhat.com>
32152 * doc/standards.texi: Reflect that the default for C is gnu11.
32154 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
32157 * reorg.c (switch_text_sections_between_p): New function.
32158 (relax_delay_slots): Call it when testing if the jump insn
32159 is removable. Use targetm.can_follow_jump when testing if
32160 the conditional branch can follow an unconditional jump.
32162 2015-01-27 Caroline Tice <cmtice@google.com>
32164 Committing VTV Cywin/Ming patch for Patrick Wollgast
32165 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
32166 if -fvtable-verify=preinit/std is used.
32167 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
32168 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
32169 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
32170 if -fvtable-verify=preinit/std is used.
32171 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32172 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
32173 if -fvtable-verify=preinit/std is used.
32174 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
32175 * config/i386/mingw32.h (LIB_SPEC): Likewise.
32176 * varasm.c (assemble_variable): Add code to properly set the comdat
32177 section and name for the .vtable_map_vars section in case the
32178 target is PE or COFF.
32180 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32183 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
32184 make sane BB profile.
32185 (cgraph_node::expand_thunk): Make sane BB profile.
32186 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
32187 * cgraph.h (init_lowered_empty_function): Update prototype.
32188 * config/i386/i386.c (make_resolver_func): Update call.
32189 * predict.c (gate): Disable branch prediction pass if
32190 profile is already there.
32192 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32194 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
32195 * opth-gen.awk: Likewise.
32196 * common.opt: Mark flag_fp_contract_mode as Optimization.
32198 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
32200 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
32201 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
32203 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
32206 * config/sh/predicates.md (atomic_arith_operand,
32207 atomic_logical_operand): Remove.
32208 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
32209 (atomic_arith_operand_0): New predicate.
32210 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
32211 Use atomic_arith_operand_0 for input values.
32212 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
32213 atomic_compare_and_swap<mode>_soft_gusa,
32214 atomic_compare_and_swap<mode>_soft_tcb,
32215 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
32216 arith_reg_operand instead of register_operand.
32217 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
32218 atomic_arith_operand_0 for newval input.
32219 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
32220 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
32221 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
32222 arith_reg_operand instead of register_operand.
32223 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
32224 fetchop_predicate_1, fetchop_constraint_1_llcs,
32225 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
32226 fetchop_constraint_1_imask): New code iterator attributes.
32227 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
32228 register_operand. Use fetchop_predicate_1.
32229 (atomic_fetch_<fetchop_name>si_hard,
32230 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
32231 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
32232 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
32233 and arith_reg_operand instead of register_operand. Use
32234 fetchop_predicate_1, fetchop_constraint_1_gusa.
32235 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
32236 and arith_reg_operand instead of register_operand. Use
32237 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
32239 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
32240 and arith_reg_operand instead of register_operand. Use
32241 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
32243 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
32244 register_operand. Use atomic_logical_operand_1.
32245 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
32246 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
32247 arith_reg_operand instead of register_operand.
32248 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
32249 Use arith_reg_dest and arith_reg_operand instead of register_operand.
32250 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
32251 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
32252 register_operand. Use fetchop_predicate_1.
32253 (atomic_<fetchop_name>_fetchsi_hard,
32254 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
32255 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32256 fetchop_constraint_1_llcs.
32257 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
32258 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32259 fetchop_constraint_1_gusa.
32260 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
32261 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32262 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
32263 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
32264 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32265 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
32266 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
32267 register_operand. Use atomic_logical_operand_1.
32268 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
32269 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
32270 arith_reg_operand instead of register_operand.
32271 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
32272 arith_reg_operand instead of register_operand. Use logical_operand
32273 and K08. Adjust asm sequence to allow R0 usage.
32274 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
32275 arith_reg_operand instead of register_operand. Use logical_operand
32278 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32281 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
32282 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
32283 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
32284 only get_full_len HOST_WIDE_INTs from get_val () array rather than
32285 all bits in *val_wide.
32287 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
32289 * varpool.c (tls_model_names): Fix names.
32290 (varpool_node::dump): Dump tls- prefix for tls models.
32292 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
32293 Bernd Schmidt <bernds@codesourcery.com>
32294 Nathan Sidwell <nathan@codesourcery.com>
32296 * config/nvptx/mkoffload.c: New file.
32297 * config/nvptx/t-nvptx: Add build rules for it.
32298 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
32299 (extra_programs): Add mkoffload.
32300 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
32302 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
32304 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
32306 PR middle-end/64809
32307 * cfgexpand.c (reorder_operands): Skip debug gimples.
32309 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
32311 PR tree-optimization/64277
32312 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
32313 range info when possible to refine estimation.
32315 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32317 PR tree-optimization/64718
32318 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
32319 be a 16bit unsigned integer when n->range is 16.
32320 (bswap_replace): Convert src to that type if necessary for all bswap
32321 sizes. Fix rotation right notation in nearby comment. Use bswap_type
32322 set in pass_optimize_bswap::execute ().
32324 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
32326 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
32327 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
32328 integer and floating point variants.
32329 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
32331 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
32333 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
32334 for all vector modes.
32336 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32339 * doc/sourcebuild.texi (comdat_group): Document.
32341 2015-01-28 Terry Guo <terry.guo@arm.com>
32343 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
32345 2015-01-27 David Malcolm <dmalcolm@redhat.com>
32347 * toplev.c (print_version): Add param "show_global_state", and
32348 only print GGC and plugin information if it is true.
32349 (init_asm_output): Pass in "true" for the new param when calling
32351 (process_options): Likewise.
32352 (toplev::main): Likewise.
32353 * toplev.h (print_version): Add new param to decl.
32355 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32359 * tree.c (lookup_binfo_at_offset): New function.
32360 (get_binfo_at_offset): Use it.
32362 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32365 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32366 on vtable being vtable.
32368 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
32370 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32371 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32372 -mhotpatch= option.
32373 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32374 -mno-hotpatch options. Change syntax of -mhotpatch= option.
32375 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32377 (s390_hotpatch_trampoline_halfwords_max): Renamed.
32378 (s390_hotpatch_hw_max): New name.
32379 (s390_hotpatch_trampoline_halfwords): Renamed.
32380 (s390_hotpatch_hw_before_label): New name.
32381 (get_hotpatch_attribute): Removed.
32382 (s390_hotpatch_hw_after_label): New name.
32383 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32385 (s390_attribute_table): Ditto.
32386 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32387 (s390_function_num_hotpatch_hw): New name.
32388 Remove special handling of inline functions and hotpatching.
32389 Return number of nops before and after the function label.
32390 (s390_can_inline_p): Removed.
32391 (s390_asm_output_function_label): Emit a configurable number of nops
32392 after the function label.
32393 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32394 (TARGET_CAN_INLINE_P) Removed.
32395 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32397 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32398 Jiong Wang <jiong.wang@arm.com>
32400 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32402 (cb<optab><mode>1): Likewise.
32403 * config/aarch64/iterators.md (bcond): New define_code_attr.
32405 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32407 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32410 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32412 * config/s390/s390.c (s390_register_move_cost): Increase costs for
32415 2015-01-27 Richard Biener <rguenther@suse.de>
32417 * tree-vrp.c (update_value_range): Intersect the range with
32418 old recorded SSA name range information.
32420 2015-01-27 Nick Clifton <nickc@redhat.com>
32422 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32423 BC, DE and HL registers directly, not via AX.
32424 When decrementing the stack pointer by a large amount, transfer SP
32425 into AX and perform the subtraction there.
32426 (rl78_expand_epilogue): Perform the inverse of the above
32429 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32431 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32433 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32434 Yury Gribov <y.gribov@samsung.com>
32437 * ubsan.c (ubsan_source_location): Refactor code.
32438 (ubsan_type_descriptor): Update type size. Refactor code.
32440 2015-01-27 Richard Biener <rguenther@suse.de>
32442 PR tree-optimization/56273
32443 PR tree-optimization/59124
32444 PR tree-optimization/64277
32445 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32446 from the first VRP pass.
32448 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32451 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32452 handle the first argument in the same loop as all the other arguments.
32454 PR rtl-optimization/61058
32455 * jump.c (cleanup_barriers): Update basic block boundaries
32456 if BLOCK_FOR_INSN is non-NULL on PREV.
32458 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
32460 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32461 bounds narrowing, already instrumented calls and calls to
32462 not instrumentable functions.
32464 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32466 PR tree-optimization/64807
32467 * wide-int.cc (wi::divmod_internal): Clear
32468 b_dividend[dividend_blocks_needed].
32470 2015-01-26 DJ Delorie <dj@redhat.com>
32472 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32473 volatile memory references.
32475 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
32478 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32480 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32481 shifts if it already fits into K08.
32483 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32486 * ipa-inline.c (inline_small_functions): Print "unknown" even
32487 if edge->call_stmt is non-NULL, but has builtins or unknown
32490 PR middle-end/64421
32491 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32492 with asterisk, skip the first character.
32494 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32497 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32500 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
32503 * config/i386/i386.md (*movdi_internal): Also check operand 0
32504 to determine TYPE_LEA operand.
32505 (*movsi_internal): Ditto.
32507 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32509 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32510 OPTION_MASK_QUAD_MEMORY_ATOMIC.
32512 2015-01-26 Renlin Li <renlin.li@arm.com>
32514 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32516 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32519 2015-01-26 Richard Biener <rguenther@suse.de>
32521 PR middle-end/64764
32522 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32523 combining two BIT_AND_EXPR predicates.
32525 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32528 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32530 2015-01-26 Terry Guo <terry.guo@arm.com>
32532 * config/arm/arm.c (arm_file_start): Update the assignment of
32533 Tag_ABI_HardFP_use.
32535 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
32537 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32539 config/arm/arm.md: Include the new Cortex-A57 model.
32540 (generic_sched): Don't use generic_sched when tuning for
32543 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
32544 Uros Bizjak <ubizjak@gmail.com>
32546 * config/i386/i386.c (get_builtin_code_for_version): Add
32547 support for BMI and BMI2 multiversion functions.
32549 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32551 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32552 (extract_bit_field): Likewise.
32553 (extract_low_bits): Likewise.
32554 (expand_mult): Likewise.
32555 (expand_mult_highpart_adjust): Likewise.
32557 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
32559 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32560 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32561 * config/i386/i386.c (processor_model): Add
32562 M_INTEL_COREI7_BROADWELL.
32563 (arch_names_table): Add "broadwell".
32565 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
32574 * config/sh/sh-protos.h
32575 (sh_extending_set_of_reg::can_use_as_unextended_reg,
32576 sh_extending_set_of_reg::use_as_unextended_reg,
32577 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32578 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32579 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32580 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32581 (sh_treg_insns): New class.
32582 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32583 (scope_counter): New class.
32584 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32585 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32586 sh_extending_set_of_reg::can_use_as_unextended_reg,
32587 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32588 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32589 sh_split_treg_set_expr): New functions.
32590 (addsubcosts): Handle treg_set_expr.
32591 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32592 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32593 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32594 (sh_insn_operands_modified_between_p): Make non-static.
32595 * config/sh/predicates.md (zero_extend_movu_operand): Allow
32596 simple_mem_operand in addition to displacement_mem_operand.
32597 (zero_extend_operand): Don't allow zero_extend_movu_operand.
32598 (treg_set_expr, treg_set_expr_not_const01,
32599 arith_reg_or_treg_set_expr): New predicates.
32600 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32601 arith_or_int_operand instead of logical_operand. Convert to
32602 insn_and_split. Try to optimize constant operand in splitter.
32603 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
32604 (*tstqi_t_zero): Delete.
32605 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
32606 (tstsi_t_and_not): Delete.
32607 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
32608 Convert to insn_and_split.
32609 (unnamed split, tstsi_t_zero_extract_xor,
32610 tstsi_t_zero_extract_subreg_xor_little,
32611 tstsi_t_zero_extract_subreg_xor_big): Delete.
32612 (*tstsi_t_shift_mask): New insn_and_split.
32613 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
32614 to recombine with surrounding insns when splitting.
32615 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
32616 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
32617 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
32618 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
32619 (*cbranch_div0s: Delete.
32620 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32621 Try to recombine with surrounding insns when splitting. Add operand
32623 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
32624 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
32625 *addc_r_r_msb, *addc_2r_msb): Delete.
32626 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
32628 (*addc_negreg_t): New insn_and_split.
32629 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32630 Try to recombine with surrounding insns when splitting.
32631 Add operand order variants.
32632 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
32633 insn_and_split patterns.
32634 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
32635 surrounding insns when splitting.
32636 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
32637 (*rotcl): Likewise. Add zero_extract variant.
32638 (*ashrsi2_31): New insn_and_split.
32639 (*negc): Convert to insn_and_split. Use treg_set_expr.
32640 (*zero_extend<mode>si2_disp_mem): Update comment.
32641 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
32643 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
32644 with surrounding insns when splitting.
32645 (any_treg_expr_to_reg): New insn_and_split.
32646 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
32647 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
32648 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
32649 *zero_extract_2): New single bit zero extract patterns.
32650 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
32651 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
32652 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
32653 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
32655 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
32656 register_operand for set source.
32658 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
32660 * i386.opt (prefetch_sse): New targetsave.
32661 * i386.c (ix86_function_specific_save): Save prefetch_sse.
32662 (ix86_function_specific_restore): Restore prefetch_sse and initialize
32663 ix86_cost/ix86_tune_cost.
32665 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32667 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
32668 Support the JIT by using 0 as the language type.
32670 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
32673 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
32674 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
32675 (mark_regno_live, process_bb_lives): Pass new parameter value to
32676 make_hard_regno_born.
32678 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32680 PR rtl-optimization/63637
32681 PR rtl-optimization/60663
32682 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
32683 if elt->cost is MAX_COST for ASM_OPERANDS.
32684 (find_sets_in_insn): Fix up comment typo.
32685 (cse_insn): Don't set src_volatile for all non-volatile
32686 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
32687 or with "memory" clobber. Set elt->cost to MAX_COST
32688 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
32689 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
32691 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32693 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
32696 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32698 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
32699 libgcc/config/i386/elf-lib.h.
32701 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32704 * gcc.c (print_configuration): Don't print a blank line at the end
32706 (run_attempt): ... but here unstead.
32708 PR middle-end/64734
32709 * omp-low.c (scan_sharing_clauses): Don't ignore
32710 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
32711 on target data/update constructs.
32713 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
32716 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
32717 (DEBUG_RELOAD): Removed define.
32718 (m32c_limit_reload_class): Enable traces with if DEBUG0.
32719 (m32c_function_arg): Added a type cast.
32720 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
32721 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
32722 * config/m32c/bitops.md (andqi3_16): Likewise.
32723 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
32724 (push_a01_l): Likewise.
32726 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32729 * main.c (main): Construct toplev instances with init_signals=true.
32730 * toplev.c (general_init): Add param "init_signals", and use it to
32731 conditionalize the calls to signal and host_hooks.extra_signals.
32732 (toplev::toplev): Add param "init_signals".
32733 (toplev::main): When invoking general_init, pass m_init_signals
32734 to control whether signal-handlers are installed.
32735 * toplev.h (toplev::toplev): Add param "init_signals".
32736 (toplev::m_init_signals): New field.
32738 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32741 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
32742 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
32743 latter may be affected by the former (e.g. on i686).
32745 2015-01-23 Martin Liska <mliska@suse.cz>
32747 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
32748 false positive during profiledbootstrap.
32750 2015-01-23 Tom de Vries <tom@codesourcery.com>
32753 * lto-opts.c (lto_write_options): Output non-explicit conservative
32755 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
32756 (append_compiler_options): Pass -fopenacc through.
32758 2015-01-23 Tom de Vries <tom@codesourcery.com>
32761 * lto-opts.c (lto_write_options): Output non-explicit conservative
32763 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
32764 (append_compiler_options): Pass -fopenmp through.
32766 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32769 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
32772 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
32773 * diagnostic.def (DK_ICE_NOBT): New kind.
32774 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
32775 like DK_ICE, but never print backtrace.
32776 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
32777 (internal_error_no_backtrace): New function.
32778 * gcc.c (execute): Use internal_error_no_backtrace instead of
32781 2015-01-22 Jeff Law <law@redhat.com>
32784 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
32785 improve code density for small immediate to memory case.
32786 (insv): Better handle bitfield assignments when the field is
32787 being set to all ones.
32788 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
32791 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32792 Jakub Jelinek <jakub@redhat.com>
32794 PR middle-end/64729
32795 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
32796 for !TARGET_LIBC_PROVIDES_SSP version and
32797 -fstack-protector-{all,strong,explicit} otherwise.
32798 * config/freebsd.h (LINK_SSP_SPEC): Handle
32799 -fstack-protector-{strong,explicit}.
32801 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
32802 H.J. Lu <hongjiu.lu@intel.com>
32805 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
32808 2015-01-22 Wei Mi <wmi@google.com>
32810 PR rtl-optimization/64557
32811 * dse.c (record_store): Call get_addr for mem_addr.
32812 (check_mem_read_rtx): Likewise.
32814 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
32816 * fold-const.c (const_binop): Add early return for non-tcc_binary.
32818 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
32820 * toplev.c (init_local_tick): Process the failure when read
32821 fails for random_seed.
32823 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
32824 'pretty_name' to avoid memory overflow.
32826 2015-01-22 Richard Biener <rguenther@suse.de>
32828 PR middle-end/64728
32829 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
32830 abnormal coalescing on undefined SSA names.
32832 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
32836 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
32838 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
32840 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
32842 PR middle-end/63325
32843 * fold-const.c (fold_checksum_tree): Don't include value of
32844 expr->decl_with_vis.symtab_node in the checksum.
32846 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32848 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
32850 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
32853 * gcc.c (insert_comments): New function.
32854 (try_generate_repro): Call it.
32855 (append_text): Removed.
32857 2015-01-22 Richard Biener <rguenther@suse.de>
32859 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
32860 with IL incompatible options. Properly honor user optimize
32863 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
32865 PR rtl-optimization/64682
32866 * combine.c (distribute_notes): When moving a death note for
32867 a register that is set in the new I2, make sure to put it
32868 before that new I2.
32870 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
32872 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
32873 not TARGET_DEFAULT.
32875 2015-01-21 Jakub Jelinek <jakub@redhat.com>
32878 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
32879 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
32880 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
32883 * doc/invoke.texi (-fsanitize=vptr): Document.
32885 PR rtl-optimization/62078
32886 * dse.c: Include cfgcleanup.h.
32887 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
32888 anything call purge_all_dead_edges and cleanup_cfg at the end
32891 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
32893 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
32896 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32898 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
32901 2015-01-21 David Sherwood <david.sherwood@arm.com>
32902 Tejas Belagod <Tejas.Belagod@arm.com>
32904 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
32905 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
32906 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
32909 2015-01-21 David Sherwood <david.sherwood@arm.com>
32910 Tejas Belagod <Tejas.Belagod@arm.com>
32912 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
32913 (aarch64_reverse_mask): New decls.
32914 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
32915 (insn_count): New mode_attr.
32916 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
32917 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
32918 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
32919 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
32920 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
32921 (aarch64_simd_st4): New patterns.
32922 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
32923 (aarch64_reverse_mask): New functions.
32925 2015-01-21 Alan Hayward <alan.hayward@arm.com>
32927 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
32929 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
32930 addressing modes for BE.
32931 (aarch64_print_operand): Add 'R' specifier.
32932 (aarch64_simd_disambiguate_copy): Delete.
32933 (aarch64_simd_emit_reg_reg_move): New function.
32934 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
32935 in define_splits for structural moves.
32936 (mov<mode>): Use less restrictive predicates.
32937 (*aarch64_mov<mode>): Simplify and only allow for LE.
32938 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
32940 2015-01-21 Alan Hayward <alan.hayward@arm.com>
32942 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
32944 2015-01-21 Richard Henderson <rth@redhat.com>
32947 * ccmp.c (used_in_cond_stmt_p): Remove.
32948 (expand_ccmp_expr): Don't use it.
32950 2015-01-21 Nick Clifton <nickc@redhat.com>
32952 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
32955 2015-01-21 Richard Biener <rguenther@suse.de>
32957 PR middle-end/64313
32958 * tree-core.h (builtin_info, builtin_info_type): Turn from
32959 an object with two arrays into an array of an object with
32960 decl and two flags, implicit_p and declared_p.
32961 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
32962 set_builtin_decl, set_builtin_decl_implicit_p,
32963 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
32964 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
32965 * builtins.c (builtin_info): Adjust.
32966 * gimplify.c (gimplify_addr_expr): References to builtins
32967 that have been declared by the user makes them eligible for
32968 use by the compiler. Call set_builtin_decl_implicit_p on them.
32970 2015-01-20 Jeff Law <law@redhat.com>
32973 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
32974 allow pc-relative addresses in operand predicates or constraints.
32976 2015-01-21 Bin Cheng <bin.cheng@arm.com>
32978 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
32979 neon on aarch32 processors for stringops.
32981 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32984 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
32986 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32989 * ipa-inline.c: Include lto-streamer.h
32990 (report_inline_failed_reason): Output source file differences and
32991 flags on optimization/target node mismatch.
32992 (can_inline_edge_p): Consider caller to be the outer inline function;
32993 be less restrictive about matching opimize and optimize_size attributes.
32994 (inline_account_function_p): Break out from ...
32995 (inline_small_functions): ... here.
32996 * ipa-inline-transform.c (clone_inlined_nodes): Use
32997 inline_account_function_p.
32998 (inline_call): Use optimize attribution; use inline_account_function_p.
32999 (inline_transform): Use opt_for_fn.
33000 * ipa-inline.h (inline_account_function_p): Declare.
33002 2015-01-20 Jakub Jelinek <jakub@redhat.com>
33005 * dwarf2out.c (decl_piece_node): Don't put bitsize into
33006 mode if bitsize <= 0.
33007 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
33008 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
33009 sizes and positions.
33011 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
33013 * config/nios2/nios2.c (nios2_asm_file_end): Implement
33014 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
33016 (TARGET_ASM_FILE_END): Define.
33018 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33020 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
33021 (struct tune_params): Use the enum.
33022 * arm.c (arm_*_tune): Update.
33023 (arm_option_override): Update.
33025 2015-01-20 Richard Biener <rguenther@suse.de>
33028 * ipa-reference.c (add_static_var): Inline ...
33029 (analyze_function): ... here after splitting out from ...
33030 (is_proper_for_analysis): ... this.
33032 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
33035 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
33036 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
33037 replace the conditional with it's true branch.
33038 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
33039 (arm_lra_p): Remove.
33041 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
33043 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
33045 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33047 * config/tilegx/mul-tables.c: Move symtab.h include after
33048 coretypes.h include.
33049 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
33050 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
33051 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
33052 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
33053 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33055 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
33059 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33061 PR rtl-optimization/64081
33062 * loop-iv.c (def_pred_latch_p): New function.
33063 (latch_dominating_def): Allow specific cases with non-single
33065 (iv_get_reaching_def): Likewise.
33066 (check_complex_exit_p): New function.
33067 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33068 with exits not executing on any iteration.
33070 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33073 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
33074 to set branch cost.
33076 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33079 * i386.c (gate): Check flag_expensive_optimizations and
33081 (ix86_option_override_internal): Drop optimize_size condition
33082 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
33083 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
33084 MASK_PREFER_AVX128.
33085 (ix86_avx256_split_vector_move_misalign,
33086 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
33087 * sse.md (all uses of TARGET_PREFER_AVX128): Add
33088 optimize_insn_for_speed_p check.
33090 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
33092 * config/mips/mips.h (FP_ASM_SPEC): New define.
33093 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
33096 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
33099 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
33100 nullptr for insn when reaching the first insn.
33101 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33102 (sh_insn_operands_modified_between_p): Add nullptr check.
33103 (sh_find_extending_set_of_reg): Fix log message. Don't accept
33104 sign extending mem load if the insn contains any UNSPEC or
33107 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33109 * params.def (inline-unit-growth): Drop to 15%.
33110 * invoke.texi (inline-unit-growth): Document change.
33112 2015-01-19 Martin Liska <mliska@suse.cz>
33115 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
33116 function for second argument of OBJ_TYPE_REF.
33118 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33121 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
33122 whether function is an alias.
33124 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33126 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
33129 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
33131 PR rtl-optimization/64671
33132 * lra-remat.c (operand_to_remat): Don't consider jump and call
33135 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
33138 * config/rs6000/default64.h: Include rs6000-cpus.def.
33139 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
33140 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
33141 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
33143 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
33145 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
33146 pseudo-op to specify assembler dialect.
33148 2015-01-19 Martin Liska <mliska@suse.cz>
33151 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
33152 Handle safe potentially removed nodes during filtering.
33154 2015-01-19 Martin Liska <mliska@suse.cz>
33156 * doc/extend.texi (no_icf): Add new attribute description.
33157 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
33158 where the pass attempts to merge a function with no_icf attribute.
33160 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33163 * doc/md.texi (ARM Options): Document register constraints.
33165 2015-01-19 Jiong Wang <jiong.wang@arm.com>
33166 Andrew Pinski <apinski@cavium.com>
33169 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
33170 (ashl<mode>3): Don't expand if operands[2] is not constant.
33172 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33175 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
33176 Match xor-and-xor RTL pattern.
33178 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33180 PR rtl-optimization/64081
33181 * loop-iv.c (def_pred_latch_p): New function.
33182 (latch_dominating_def): Allow specific cases with non-single
33184 (iv_get_reaching_def): Likewise.
33185 (check_complex_exit_p): New function.
33186 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33187 with exits not executing on any iteration.
33189 2015-01-19 Jakub Jelinek <jakub@redhat.com>
33191 * common.opt (fgraphite): Fix a typo.
33193 2015-01-19 Felix Yang <felix.yang@huawei.com>
33195 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33197 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
33198 uminp, smax_nanp, smin_nanp): New builtins.
33199 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
33200 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
33201 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
33202 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
33203 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
33204 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
33205 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
33206 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
33207 vpminnms_f32): Rewrite using builtin functions.
33209 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
33212 * omp-low.c (offload_symbol_decl): Remove variable.
33213 (get_offload_symbol_decl): Remove function.
33214 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
33215 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
33216 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
33217 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
33218 BUILT_IN_GOACC_UPDATE don't pass it at all.
33220 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33222 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
33225 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33227 * ipa-chkp.c (chkp_produce_thunks): Add early param
33228 to split thunks production into two passes. Keep
33229 'always_inline' function bodies after the first pass.
33230 (pass_data_ipa_chkp_early_produce_thunks): New.
33231 (pass_ipa_chkp_early_produce_thunks): New.
33232 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
33233 chkp_produce_thunks signature.
33234 (make_pass_ipa_chkp_early_produce_thunks): New.
33235 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
33236 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
33237 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
33239 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33241 * cgraph.c (cgraph_node::dump): Dump profile flags.
33243 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
33246 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
33247 reg appear first in the parallel.
33249 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33251 * ipa-reference.c (set_reference_optimization_summary,
33252 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
33254 (ignore_module_statics): New static var.
33255 (propagate_bits): If ipa-reference is disabled, do not look into local
33257 (analyze_function): Disable analysis when ipa_reference is disabled.
33258 (generate_summary): Do not dump when reference is disabled;
33259 collect vars accessed from functions with ipa-reference disabled.
33260 (get_read_write_all_from_node): When ipa-reference is disabled, use the
33262 (gate): Enable for LTO.
33263 (ignore_edge_p): New function.
33264 (propagate): Skip functions w/o ipa-reference analysis.
33265 * optc-save-gen.awk: Handle optimize_debug correctly.
33266 * opth-gen.awk: Likewise.
33267 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
33268 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
33269 fira-share-save-slots, fira-share-spill-slots,
33270 fmodulo-sched-allow-regmoves, fpartial-inlining,
33271 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
33272 ftracer, ftree-parallelize-loops, fassociative-math,
33273 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
33275 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
33276 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
33278 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
33281 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33284 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
33286 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
33288 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
33290 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
33291 Remove duplicate option listings.
33293 2015-01-18 Felix Yang <felix.yang@huawei.com>
33295 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
33296 (autofdo_source_profile::get_callsite_total_count,
33297 function_instance::get_function_instance_by_decl,
33298 string_table::get_index, string_table::get_index_by_decl,
33299 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
33300 Fix comment typos. Reformatting and minor code rearrangement.
33302 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33304 * config/rs6000/rs6000.md (probe_stack): Delete.
33305 (probe_stack_address): New.
33307 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33309 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
33310 to test for 32-bit ABIs, not !TARGET_POWERPC64.
33312 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33314 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
33315 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
33316 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
33318 (rs6000_libcall_value): Use the new function.
33320 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
33322 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
33324 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
33326 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
33327 implement a more precise life analysis for it during backward scan.
33329 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
33331 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
33333 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
33335 PR rtl-optimization/52773
33336 * calls.c (emit_library_call_value): When pushing arguments use
33337 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
33338 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
33339 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
33341 2015-01-17 Jeff Law <law@redhat.com>
33343 PR rtl-optimization/32790
33344 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
33345 not ZERO_EXTEND in SET_DESTs.
33347 2015-01-17 Alan Modra <amodra@gmail.com>
33349 * cprop.c (do_local_cprop): Revert last change.
33351 2015-01-16 DJ Delorie <dj@redhat.com>
33352 Nick Clifton <nickc@redhat.com>
33354 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33355 (addhi3_real): Likewise. Fix [HL+0] syntax.
33356 (subqi3_real): Likewise.
33357 (subhi3_real): Likewise.
33358 (cbranchqi4_real): Likewise. Allow saddr,#imm.
33359 (cbranchhi4_real): Likewise.
33360 (cbranchhi4_real_inverted): Likewise.
33361 (cbranchsi4_real_lt): Likewise.
33362 (cbranchsi4_real_ge): Likewise.
33363 (cbranchsi4_real_ge): Likewise.
33364 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33365 (sub<mode>3_virt): Likewise.
33366 (cbranchqi4_virt): Likewise.
33367 (cbranchhi4_virt): Likewise.
33368 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33369 always use '[reg+imm]' even when imm is zero.
33370 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33371 (rl78_general_operand): New.
33372 (rl78_nonimmediate_operand): New.
33373 (rl78_nonfar_operand): Use them.
33374 (rl78_nonfar_nonimm_operand): Likewise.
33375 (rl78_stack_based_mem): Fix.
33376 * config/rl78/constraints.md (Ibqi): New.
33381 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33382 (iorqi3): Likewise.
33383 (xorqi3): Likewise.
33384 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33386 * config/rl78/constrains (Qs8): New constraint.
33387 * config/rl78/rl78.c (rl78_flags_already_set): New function.
33388 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33389 * config/rl78/rl78-real.md (update_Z): New attribute.
33390 Update patterns to set it.
33391 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33392 shorter compare and branch sequence can be used.
33393 (cbranchhi4_real): Likewise.
33394 (cbranchhi4_real_inverted): Likewise.
33396 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33397 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33399 * config/rl78/rl78.c (rl78_get_name_encoding): New.
33400 (rl78_option_override): Allow -mes0 only if C.
33401 (characterize_address): Support subregs of symbol_refs.
33402 (rl78_addr_space_address_mode): Move. Add __near.
33403 (rl78_far_p): Likewise.
33404 (rl78_addr_space_pointer_mode): Likewise.
33405 (rl78_as_legitimate_address): Likewise.
33406 (rl78_addr_space_subset_p): Likewise.
33407 (rl78_addr_space_convert): Likewise.
33408 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33409 symbols with -mes0.
33410 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
33412 (rl78_alloc_physical_registers_op1): Change logic to prefer
33413 symbol[BC] addressing.
33414 (frodata_section): New.
33415 (rl78_asm_init_sections): Initialize it.
33416 (rl78_select_section): Put __far readonly symbols in .frodata.
33417 (rl78_make_type_far): New.
33418 (rl78_insert_attributes): Force all readonly symbols to be
33420 (rl78_asm_out_integer): New.
33421 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33422 * config/rl78/rl78.opt (-mes0): New.
33424 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33425 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33426 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33427 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33428 (rl78_saddr_p): New.
33429 (rl78_output_aligned_common): New.
33430 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33431 (rl78_handle_saddr_attribute): New.
33432 (rl78_handle_naked_attribute): New.
33433 (rl78_attribute_table): Add saddr.
33434 (rl78_print_operand_1): Don't print '!' on saddr operands.
33435 (rl78_print_operand_1): Strip encodings.
33437 (rl78_strip_name_encoding): New.
33438 (rl78_attrlist_to_encoding): New.
33439 (rl78_encode_section_info): New.
33440 (rl78_asm_init_sections): New.
33441 (rl78_select_section): New.
33442 (rl78_output_labelref): New.
33443 (rl78_output_aligned_common): New.
33444 (rl78_asm_out_integer): New.
33445 (rl78_asm_ctor_dtor): New.
33446 (rl78_asm_constructor): New.
33447 (rl78_asm_destructor): New.
33449 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33450 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33451 (transcode_memory_rtx): Update.
33452 (rl78_expand_epilogue): Use A_REG instead of 0.
33454 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33456 * config/arm/arm-protos.h (struct tune_params): New field
33457 sched_autopref_queue_depth.
33458 * config/arm/arm.c (sched-int.h): Include header.
33459 (arm_first_cycle_multipass_dfa_lookahead_guard,)
33460 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33461 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33462 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33463 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33464 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33465 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33466 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33467 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
33468 * config/arm/t-arm (arm.o): Update.
33469 * haifa-sched.c (update_insn_after_change): Update.
33470 (rank_for_schedule): Use auto-prefetcher model, if requested.
33471 (autopref_multipass_init): New static function.
33472 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33473 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33474 variable for debug dumps.
33475 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33476 (autopref_multipass_dfa_lookahead_guard): New global function that
33477 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33478 (init_h_i_d): Update.
33479 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33480 * sched-int.h (enum autopref_multipass_data_status): New const enum.
33481 (autopref_multipass_data_): Structure for auto-prefetcher data.
33482 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33483 (struct _haifa_insn_data:autopref_multipass_data): New field.
33484 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33485 (autopref_multipass_dfa_lookahead_guard): Declare.
33487 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33489 * rtlanal.c (get_base_term): Handle SCRATCH.
33491 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33493 * config/aarch64/aarch64.c
33494 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33495 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33497 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33498 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33500 2015-01-17 Alan Modra <amodra@gmail.com>
33502 * cprop.c (do_local_cprop): Disallow replacement of fixed
33505 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33508 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33511 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
33513 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33514 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33516 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33518 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33519 * config/arm/thumb1.md: ... Here.
33521 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33523 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33524 TImode for TARGET_32BIT.
33526 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33528 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33529 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33531 (rs6000_abi_word_mode): New function.
33533 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33535 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33536 instead of UNITS_PER_WORD to describe the size of stack slots.
33538 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33540 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33541 as rs6000_promote_function_mode. Move comment to there.
33542 (rs6000_promote_function_mode): New function.
33544 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33546 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33547 -mpowerpc64 is active.
33549 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33551 PR middle-end/64353
33552 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33555 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33557 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33558 introduced in revision 219724.
33560 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33561 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33564 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33565 destination is not a GP reg.
33566 (*movdi_aarch64): Likewise.
33568 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
33571 * config/rs6000/default64.h: Revert ISA change.
33573 2015-01-16 Richard Biener <rguenther@suse.de>
33575 PR middle-end/64614
33576 * tree-ssa-uninit.c: Include tree-cfg.h.
33577 (MAX_SWITCH_CASES): New define.
33578 (convert_control_dep_chain_into_preds): Handle switch statements.
33579 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33580 (normalize_one_pred_1): Do not split bit-manipulations.
33583 2015-01-16 Richard Biener <rguenther@suse.de>
33585 PR tree-optimization/64568
33586 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33587 complex load rewriting for TARGET_MEM_REFs.
33589 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
33591 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33593 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
33596 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33598 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33599 (aarch64_lra_p): Remove.
33601 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33604 * ipa-chkp.h (chkp_instrumentable_p): New.
33605 * ipa-chkp.c: Include tree-inline.h.
33606 (chkp_instrumentable_p): New.
33607 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
33608 Fix processing of not instrumentable functions.
33609 (chkp_versioning): Use chkp_instrumentable_p. Warn about
33610 not instrumentable functions.
33611 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
33612 chkp_instrumentable_p.
33613 * tree-inline.h (copy_forbidden): New.
33614 * tree-inline.c (copy_forbidden): Not static anymore.
33616 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33618 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
33621 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33623 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
33624 type OP_OUT to OP_INOUT.
33626 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33628 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
33629 (high x) y) to y if x and y have the same base.
33631 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33633 * config/arm/cortex-a57.md: New.
33634 * config/aarch64/aarch64.md: Include it.
33635 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
33636 * config/aarch64/aarch64-tune.md: Regenerate.
33638 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
33641 * ccmp.c (expand_ccmp_next): New function.
33642 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
33643 and compare insn sequence.
33644 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
33645 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
33646 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
33647 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
33648 (*ccmp_ior): Changed to ccmp_ior<mode>.
33649 (cmp<mode>): New pattern.
33650 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
33652 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
33654 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
33656 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
33657 _mm256_bsrli_epi128): New.
33658 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
33660 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33662 * expmed.c (store_bit_field_using_insv): Improve warning message.
33663 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
33665 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33667 PR rtl-optimization/64011
33668 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
33669 there is partial overflow.
33671 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33673 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
33675 (nds32_expand_epilogue_v3pop): Likewise.
33676 * config/nds32/nds32.md (sibcall): Define this for sibling call
33678 (sibcall_register): Likewise.
33679 (sibcall_immediate): Likewise.
33680 (sibcall_value): Likewise.
33681 (sibcall_value_register): Likewise.
33682 (sibcall_value_immediate): Likewise.
33683 (sibcall_epilogue): Likewise.
33684 (epilogue): Pass false to indicate this is not a sibcall epilogue.
33685 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
33686 (nds32_expand_epilogue_v3pop): Likewise.
33688 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33690 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
33691 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
33692 (return_internal): New.
33693 (return): Define this named pattern.
33694 (simple_return): Define this named pattern.
33695 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
33696 pattern instead of unspec_volatile_func_return.
33697 (nds32_expand_epilogue_v3pop): Likewise.
33698 (nds32_can_use_return_insn): New function.
33700 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33702 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
33703 * config/nds32/nds32.md (pop25return): New.
33704 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
33705 pop25return pattern.
33707 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33709 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
33710 -mforbid-fp-as-gp, and -mex9 options.
33712 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33714 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
33715 remove -mgp-direct option.
33717 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33719 * doc/invoke.texi (--param early-inlining-insns): Update default value.
33720 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
33722 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33724 * ipa-inline.c (inline_small_functions): Work around hints
33727 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
33730 * doc/invoke.texi (Option Summary): Document new Nios II
33732 (Nios II Options): Likewise.
33733 * config/nios2/nios2.opt: Add -mgpopt= option support.
33734 Modify existing -mgpopt and -mno-gpopt options to be aliases.
33735 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
33736 * config/nios2/nios2.c (nios2_option_override): Adjust
33737 -mgpopt defaulting.
33738 (nios2_in_small_data_p): Return true for explicit small data
33739 sections even with -G0.
33740 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
33743 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33746 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
33748 (inline_call): Fix removal of aliases.
33750 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33752 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
33753 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
33754 * opts.c (common_handle_option): Add -fsanitize=vptr.
33755 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
33756 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
33757 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
33758 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
33759 (ubsan_expand_vptr_ifn): New prototype.
33760 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
33761 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
33762 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
33763 expand_LOOP_VECTORIZED): Make argument nameless, remove
33765 (expand_UBSAN_VPTR): New function.
33766 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
33768 (UBSAN_VPTR): New internal function.
33769 * sanopt.c (tree_map_traits): Renamed to ...
33770 (sanopt_tree_map_traits): ... this.
33771 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
33772 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
33773 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
33774 (maybe_optimize_ubsan_vptr_ifn): New function.
33775 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
33776 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
33778 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
33779 internal calls like pure functions for aliasing, even when they
33780 have other side-effects that prevent making them ECF_PURE.
33781 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
33782 (ubsan_expand_vptr_ifn): New function.
33784 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
33786 PR rtl-optimization/64110
33787 * stmt.c (parse_output_constraint): Process '^' and '$'.
33788 (parse_input_constraint): Ditto.
33789 * lra-constraints.c (process_alt_operands): Process the new
33791 * ira-costs.c (record_reg_classes): Process the new constraint
33793 * genoutput.c (indep_constraints): Add '^' and '$'.
33794 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
33795 * doc/md.texi: Add description of the new constraints.
33797 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
33798 Bernd Schmidt <bernds@codesourcery.com>
33799 Cesar Philippidis <cesar@codesourcery.com>
33800 James Norris <jnorris@codesourcery.com>
33801 Tom de Vries <tom@codesourcery.com>
33802 Ilmir Usmanov <i.usmanov@samsung.com>
33803 Dmitry Bocharnikov <dmitry.b@samsung.com>
33804 Evgeny Gavrin <e.gavrin@samsung.com>
33805 Jakub Jelinek <jakub@redhat.com>
33807 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
33808 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33809 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33810 New function types.
33811 * builtins.c: Include "gomp-constants.h".
33812 (expand_builtin_acc_on_device): New function.
33813 (expand_builtin, is_inexpensive_builtin): Handle
33814 BUILT_IN_ACC_ON_DEVICE.
33815 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
33817 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
33819 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
33820 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
33821 i386/intelmic-offload.h.
33822 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
33823 to libgomp and its dependencies.
33824 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
33825 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
33826 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
33827 * config/ia64/hpux.h (LIB_SPEC): Likewise.
33828 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
33829 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
33830 * doc/generic.texi: Update for OpenACC changes.
33831 * doc/gimple.texi: Likewise.
33832 * doc/invoke.texi: Likewise.
33833 * doc/sourcebuild.texi: Likewise.
33834 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
33835 GF_OMP_FOR_KIND_OACC_LOOP.
33836 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
33837 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
33838 GF_OMP_TARGET_KIND_OACC_UPDATE,
33839 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
33841 * gimple.c: Update comments for OpenACC changes.
33842 * gimple.def: Likewise.
33843 * gimple.h: Likewise.
33844 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
33845 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
33846 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
33847 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
33848 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
33850 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
33851 * gimplify.c: Include "gomp-constants.h".
33852 Update comments for OpenACC changes.
33853 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
33854 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
33855 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
33856 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
33857 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
33858 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
33859 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
33860 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
33861 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
33863 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
33864 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
33865 OMP_CLAUSE_SET_MAP_KIND.
33866 (gimplify_oacc_cache): New function.
33867 (gimplify_omp_for): Handle OACC_LOOP.
33868 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
33870 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
33871 OACC_EXIT_DATA, OACC_UPDATE.
33872 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
33873 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
33874 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
33875 (gimplify_body): Consider flag_openacc next to flag_openmp.
33876 * lto-streamer-out.c: Include "gomp-constants.h".
33877 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
33878 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
33879 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
33880 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
33881 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
33882 (BUILT_IN_ACC_ON_DEVICE): New builtins.
33883 * omp-low.c: Include "gomp-constants.h".
33884 Update comments for OpenACC changes.
33885 (struct omp_context): Add reduction_map, gwv_below, gwv_this
33887 (extract_omp_for_data, use_pointer_for_field, install_var_field)
33888 (new_omp_context, delete_omp_context, scan_sharing_clauses)
33889 (create_omp_child_function, scan_omp_for, scan_omp_target)
33890 (check_omp_nesting_restrictions, lower_reduction_clauses)
33891 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
33892 Update for OpenACC changes.
33893 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
33894 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
33895 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
33896 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
33897 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
33898 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
33900 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
33901 Handle GF_OMP_FOR_KIND_OACC_LOOP.
33902 (expand_omp_target, lower_omp_target): Handle
33903 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
33904 GF_OMP_TARGET_KIND_OACC_UPDATE,
33905 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
33906 GF_OMP_TARGET_KIND_OACC_DATA.
33907 (pass_expand_omp::execute, execute_lower_omp)
33908 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
33910 (offload_symbol_decl): New variable.
33911 (oacc_get_reduction_array_id, oacc_max_threads)
33912 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
33913 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
33914 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
33915 (oacc_gimple_assign, oacc_initialize_reduction_data)
33916 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
33918 (is_targetreg_ctx): Remove function.
33919 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
33920 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
33921 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
33922 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
33923 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
33924 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
33925 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
33926 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
33927 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
33928 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
33929 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
33930 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
33931 * tree-core.h: Update comments for OpenACC changes.
33932 (enum omp_clause_map_kind): Remove.
33933 (struct tree_omp_clause): Change type of map_kind member from enum
33934 omp_clause_map_kind to unsigned char.
33935 * tree-inline.c: Update comments for OpenACC changes.
33936 * tree-nested.c: Likewise. Include "gomp-constants.h".
33937 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
33938 (convert_tramp_reference_stmt, convert_gimple_call): Update for
33939 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
33940 OMP_CLAUSE_SET_MAP_KIND.
33941 * tree-pretty-print.c: Include "gomp-constants.h".
33942 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
33943 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
33944 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
33945 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
33946 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
33947 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
33948 instead of OMP_CLAUSE_MAP_*.
33949 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
33950 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
33951 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
33952 * tree-streamer-in.c: Include "gomp-constants.h".
33953 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
33954 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
33955 * tree-streamer-out.c: Include "gomp-constants.h".
33956 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
33958 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
33959 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
33960 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
33961 * tree.c (omp_clause_num_ops): Update accordingly.
33962 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
33964 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
33965 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
33966 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
33967 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
33968 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
33969 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
33970 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
33971 (OMP_CLAUSE_SET_MAP_KIND): New macro.
33972 * varpool.c (varpool_node::get_create): Consider flag_openacc next
33974 * config/i386/intelmic-offload.h: New file.
33975 * config/nvptx/offload.h: Likewise.
33977 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33979 * explow.h: Remove duplicate contents.
33980 * dojump.h: Likewise.
33982 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
33984 * arm.c (arm_xgene_tune): Add default initializer for instruction
33987 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33991 * ipa.c (symbol_table::remove_unreachable_nodes):
33992 Do not put abstract origins into boundary.
33994 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
33996 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
33997 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
33999 2015-01-15 Steve Ellcey <sellcey@mips.com>
34001 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
34002 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
34003 builtins.def, and chkp-builtins.def.
34005 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
34007 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
34010 2015-01-15 Richard Biener <rguenther@suse.de>
34012 PR tree-optimization/61743
34013 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
34014 information on PHIs for some simple cases.
34016 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34018 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
34020 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
34021 * config/arm/arm-cores.def (xgene1): New entry.
34022 * config/arm/arm-tables.opt: Regenerate.
34023 * config/arm/arm-tune.md: Regenerate.
34024 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
34026 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34028 * tree-if-conv.c: Include hash-map.h.
34029 (aggressive_if_conv): New variable.
34030 (fold_build_cond_expr): Add simplification of non-zero condition.
34031 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
34032 destination block is not always executed.
34033 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
34034 than two predecessors if AGGRESSIVE_IF_CONV is true.
34035 (if_convertible_stmt_p): Fix commentary.
34036 (all_preds_critical_p): New function.
34037 (has_pred_critical_p): New function.
34038 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
34039 BB can have more than two predecessors and all incoming edges can be
34041 (predicate_bbs): Skip predication for loop exit block, use build2_loc
34042 to compute predicate for true edge.
34043 (find_phi_replacement_condition): Delete this function.
34044 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
34045 Allow interchange PHI arguments if EXTENDED is false.
34046 Change check that block containing reduction statement candidate
34047 is predecessor of phi-block since phi may have more than two arguments.
34048 (phi_args_hash_traits): New helper structure.
34049 (struct phi_args_hash_traits): New type.
34050 (phi_args_hash_traits::hash): New function.
34051 (phi_args_hash_traits::equal_keys): New function.
34052 (gen_phi_arg_condition): New function.
34053 (predicate_scalar_phi): Add handling of phi nodes with more than two
34054 arguments, delete COND and TRUE_BB arguments, insert body of
34055 find_phi_replacement_condition to predicate ordinary phi nodes.
34056 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
34057 delete call of find_phi_replacement_condition and invoke
34058 predicate_scalar_phi with two arguments.
34059 (insert_gimplified_predicates): Add assert that non-predicated block
34060 don't have statements to insert.
34061 (ifcvt_split_critical_edges): New function.
34062 (ifcvt_split_def_stmt): Likewise.
34063 (ifcvt_walk_pattern_tree): Likewise.
34064 (stmt_is_root_of_bool_pattern): Likewise.
34065 (ifcvt_repair_bool_pattern): Likewise.
34066 (ifcvt_local_dce): Likewise.
34067 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
34068 is copy of inner or outer loop force_vectorize field, invoke
34069 ifcvt_split_critical_edges, ifcvt_local_dce and
34070 ifcvt_repair_bool_pattern for aggressive if-conversion.
34072 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
34074 * config/aarch64/aarch64.md: Include xgene1.md.
34075 * config/aarch64/xgene1.md: New file.
34077 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34079 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
34080 xgene1 (APM XGene-1) core definition.
34081 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
34082 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
34083 * doc/invoke.texi: Document -mcpu=xgene1.
34085 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34087 * dojump.h: New header file.
34088 * explow.h: Likewise.
34089 * expr.h: Remove includes.
34090 Move expmed.c prototypes to expmed.h.
34091 Move dojump.c prototypes to dojump.h.
34092 Move alias.c prototypes to alias.h.
34093 Move explow.c prototypes to explow.h.
34094 Move calls.c prototypes to calls.h.
34095 Move emit-rtl.c prototypes to emit-rtl.h.
34096 Move varasm.c prototypes to varasm.h.
34097 Move stmt.c prototypes to stmt.h.
34098 (saved_pending_stack_adjust): Move to dojump.h.
34099 (adjust_address): Move to explow.h.
34100 (adjust_address_nv): Move to emit-rtl.h.
34101 (adjust_bitfield_address): Likewise.
34102 (adjust_bitfield_address_size): Likewise.
34103 (adjust_bitfield_address_nv): Likewise.
34104 (adjust_automodify_address_nv): Likewise.
34105 * explow.c (expr_size): Move to expr.c.
34106 (int_expr_size): Likewise.
34107 (tree_expr_size): Likewise.
34108 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34109 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34110 * genemit.c (main): Generate includes statistics.h, real.h,
34111 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
34113 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
34114 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
34115 explow.h, emit-rtl.h, stmt.h.
34116 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
34117 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
34118 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
34119 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
34120 emit-rtl.h, varasm.h, stmt.h.
34121 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
34122 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
34123 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
34124 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
34125 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34126 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
34127 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
34128 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
34129 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
34130 tm.h tree.h varasm.h vec.h wide-int.h.
34131 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34132 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34133 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
34134 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
34135 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
34136 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
34137 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
34138 * loop-iv.c: Likewise.
34139 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
34140 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
34141 statistics.h stmt.h tree.h varasm.h wide-int.h.
34142 * lra-constraints.c: Likewise.
34143 * lra-eliminations.c: Likewise.
34144 * lra-lives.c: Likewise.
34145 * lra-remat.c: Likewise.
34146 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34147 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
34148 statistics.h stmt.h tree.h varasm.h wide-int.h.
34149 * hw-doloop.c: Likewise.
34150 * ira-color.c: Likewise.
34151 * ira-emit.c: Likewise.
34152 * loop-doloop.c: Likewise.
34153 * loop-invariant.c: Likewise.
34154 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34155 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
34156 statistics.h stmt.h tree.h varasm.h wide-int.h.
34157 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
34158 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
34159 statistics.h stmt.h tree.h varasm.h wide-int.h.
34160 * combine-stack-adj.c: Likewise.
34163 * ifcvt.c: Likewise.
34164 * ira-costs.c: Likewise.
34165 * jump.c: Likewise.
34166 * lra-coalesce.c: Likewise.
34167 * lra-spills.c: Likewise.
34168 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34169 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
34170 stmt.h varasm.h wide-int.h.
34171 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34172 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34174 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
34175 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
34176 statistics.h stmt.h varasm.h wide-int.h.
34177 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
34178 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
34179 varasm.h wide-int.h.
34180 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
34181 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34182 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
34183 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
34184 statistics.h stmt.h.
34185 * config/tilepro/tilepro.c: Likewise.
34186 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
34187 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
34188 * config/pdp11/pdp11.c: Likewise.
34189 * config/xtensa/xtensa.c: Likewise.
34190 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
34191 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34193 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34194 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34195 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
34196 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34197 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34198 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
34199 * rtl-chkp.c: Likewise.
34200 * tree-chkp-opt.c: Likewise.
34201 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
34202 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34203 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
34204 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34205 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34206 statistics.h stmt.h.
34207 * tree-vect-data-refs.c: Likewise.
34208 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
34209 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34210 rtl.h statistics.h stmt.h varasm.h.
34211 * internal-fn.c: Likewise.
34212 * ipa-icf-gimple.c: Likewise.
34213 * lto-section-out.c: Likewise.
34214 * tree-data-ref.c: Likewise.
34215 * tree-nested.c: Likewise.
34216 * tree-outof-ssa.c: Likewise.
34217 * tree-predcom.c: Likewise.
34218 * tree-pretty-print.c: Likewise.
34219 * tree-scalar-evolution.c: Likewise.
34220 * tree-ssa-strlen.c: Likewise.
34221 * tree-vect-loop.c: Likewise.
34222 * tree-vect-patterns.c: Likewise.
34223 * tree-vect-slp.c: Likewise.
34224 * tree-vect-stmts.c: Likewise.
34225 * tsan.c: Likewise.
34226 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34227 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
34229 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
34230 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34231 statistics.h stmt.h varasm.h.
34232 * loop-unroll.c: Likewise.
34233 * ubsan.c: Likewise.
34234 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
34235 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
34237 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34238 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
34239 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
34240 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34241 statistics.h stmt.h.
34242 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
34243 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34244 statistics.h stmt.h varasm.h.
34245 * gimple-match-head.c: Likewise.
34246 * lto-cgraph.c: Likewise.
34247 * lto-section-in.c: Likewise.
34248 * lto-streamer-in.c: Likewise.
34249 * lto-streamer-out.c: Likewise.
34250 * tree-affine.c: Likewise.
34251 * tree-cfg.c: Likewise.
34252 * tree-cfgcleanup.c: Likewise.
34253 * tree-if-conv.c: Likewise.
34254 * tree-into-ssa.c: Likewise.
34255 * tree-ssa-alias.c: Likewise.
34256 * tree-ssa-copyrename.c: Likewise.
34257 * tree-ssa-dse.c: Likewise.
34258 * tree-ssa-forwprop.c: Likewise.
34259 * tree-ssa-live.c: Likewise.
34260 * tree-ssa-math-opts.c: Likewise.
34261 * tree-ssa-pre.c: Likewise.
34262 * tree-ssa-sccvn.c: Likewise.
34263 * tree-tailcall.c: Likewise.
34264 * tree-vect-generic.c: Likewise.
34265 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34266 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
34267 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34268 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
34269 * varasm.c: Likewise.
34270 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34271 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
34273 * init-regs.c: Likewise.
34275 * omp-low.c: Likewise.
34276 * stack-ptr-mod.c: Likewise.
34277 * tree-ssa-reassoc.c: Likewise.
34278 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34279 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
34281 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34282 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
34283 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34284 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
34285 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34286 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
34287 * tree-ssa-phiopt.c: Likewise.
34288 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34289 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34290 * config/fr30/fr30.c: Likewise.
34291 * config/frv/frv.c: Likewise.
34292 * expr.c: Likewise.
34293 * final.c: Likewise.
34294 * optabs.c: Likewise.
34295 * passes.c: Likewise.
34296 * simplify-rtx.c: Likewise.
34297 * stmt.c: Likewise.
34298 * toplev.c: Likewise.
34299 * var-tracking.c: Likewise.
34300 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34301 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34302 * lower-subreg.c: Likewise.
34303 * postreload-gcse.c: Likewise.
34305 * reginfo.c: Likewise.
34306 * store-motion.c: Likewise.
34307 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34308 fixed-value.h hashtab.h real.h stmt.h varasm.h.
34309 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34310 fixed-value.h hashtab.h statistics.h stmt.h.
34311 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34312 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34313 * except.c: Likewise.
34314 * explow.c: Likewise.
34315 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34316 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
34318 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34319 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
34320 * tree-ssa-structalias.c: Likewise.
34321 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34322 fixed-value.h insn-config.h real.h statistics.h.
34323 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34324 fixed-value.h insn-config.h real.h statistics.h stmt.h.
34325 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34326 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34327 * cfgbuild.c: Likewise.
34328 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34329 fixed-value.h real.h rtl.h statistics.h stmt.h.
34330 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34331 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34332 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34333 fixed-value.h real.h statistics.h stmt.h.
34334 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34335 fixed-value.h real.h statistics.h stmt.h varasm.h.
34336 * cprop.c: Likewise.
34337 * modulo-sched.c: Likewise.
34338 * postreload.c: Likewise.
34339 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34340 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
34341 statistics.h stmt.h varasm.h.
34342 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
34343 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34344 rtl.h statistics.h stmt.h varasm.h.
34345 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
34346 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
34348 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34349 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
34351 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
34352 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
34354 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34355 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34356 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34357 function.h real.h statistics.h stmt.h varasm.h.
34358 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34359 insn-config.h real.h statistics.h stmt.h.
34360 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34361 statistics.h stmt.h.
34362 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34363 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34364 statistics.h stmt.h varasm.h.
34365 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34366 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34367 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34368 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34369 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34370 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34371 statistics.h stmt.h varasm.h.
34372 * ipa-polymorphic-call.c: Likewise.
34373 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34374 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34375 statistics.h stmt.h.
34376 * config/c6x/c6x.c: Likewise.
34377 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34378 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34379 statistics.h stmt.h varasm.h.
34380 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34381 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34383 * ipa-split.c: Likewise.
34384 * tree-eh.c: Likewise.
34385 * tree-ssa-dce.c: Likewise.
34386 * tree-ssa-loop-niter.c: Likewise.
34387 * tree-vrp.c: Likewise.
34388 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34389 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34391 * config/nds32/nds32-fp-as-gp.c: Likewise.
34392 * config/nds32/nds32-intrinsic.c: Likewise.
34393 * config/nds32/nds32-isr.c: Likewise.
34394 * config/nds32/nds32-md-auxiliary.c: Likewise.
34395 * config/nds32/nds32-memory-manipulation.c: Likewise.
34396 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34397 * config/nds32/nds32-predicates.c: Likewise.
34398 * config/nds32/nds32.c: Likewise.
34399 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34400 fixed-value.h hashtab.h real.h statistics.h.
34401 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34402 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34403 * config/arm/arm.c: Likewise.
34404 * config/avr/avr.c: Likewise.
34405 * config/bfin/bfin.c: Likewise.
34406 * config/h8300/h8300.c: Likewise.
34407 * config/i386/i386.c: Likewise.
34408 * config/ia64/ia64.c: Likewise.
34409 * config/iq2000/iq2000.c: Likewise.
34410 * config/m32c/m32c.c: Likewise.
34411 * config/m32r/m32r.c: Likewise.
34412 * config/m68k/m68k.c: Likewise.
34413 * config/mcore/mcore.c: Likewise.
34414 * config/mep/mep.c: Likewise.
34415 * config/mips/mips.c: Likewise.
34416 * config/mn10300/mn10300.c: Likewise.
34417 * config/moxie/moxie.c: Likewise.
34418 * config/pa/pa.c: Likewise.
34419 * config/rl78/rl78.c: Likewise.
34420 * config/rx/rx.c: Likewise.
34421 * config/s390/s390.c: Likewise.
34422 * config/sh/sh.c: Likewise.
34423 * config/sparc/sparc.c: Likewise.
34424 * config/spu/spu.c: Likewise.
34425 * config/stormy16/stormy16.c: Likewise.
34426 * config/v850/v850.c: Likewise.
34427 * config/vax/vax.c: Likewise.
34428 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34429 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34430 * config/msp430/msp430.c: Likewise.
34431 * predict.c: Likewise.
34432 * value-prof.c: Likewise.
34433 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34434 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34435 * config/microblaze/microblaze.c: Likewise.
34436 * config/nios2/nios2.c: Likewise.
34437 * config/rs6000/rs6000.c: Likewise.
34438 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34439 insn-config.h real.h rtl.h statistics.h stmt.h.
34440 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34441 insn-config.h real.h statistics.h stmt.h.
34442 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34443 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34444 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34445 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34446 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34447 fixed-value.h real.h statistics.h stmt.h.
34448 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34449 fixed-value.h statistics.h stmt.h.
34450 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34453 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34455 * gengtype.c (create_user_defined_type): Workaround
34456 -Wmaybe-uninitialized false positives.
34457 * cse.c (fold_rtx): Likewise.
34458 * loop-invariant.c (gain_for_invariant): Likewise.
34460 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
34462 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34463 set the memory attributes in all cases but clear MEM_EXPR if need be.
34465 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34467 PR tree-optimization/64434
34468 * cfgexpand.c (reorder_operands): New function.
34469 (expand_gimple_basic_block): Insert call of reorder_operands if
34472 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
34474 * config/mips/micromips.md (*swp): Remove explicit parallel.
34475 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34476 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34477 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34478 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34479 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34480 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34481 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34482 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34483 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34484 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34485 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34486 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34487 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34488 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34489 (mips_wrdsp): Likewise.
34490 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34492 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34493 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34494 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34495 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34496 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34497 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34498 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34499 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34500 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34502 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34504 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34505 (mips_print_operand): Support 'y' to print exact log2 in decimal
34507 * config/mips/mips.h (ISA_HAS_LSA): New define.
34508 (ISA_HAS_DLSA): Likewise.
34509 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34510 * config/mips/predicates.md (const_immlsa_operand): New predicate.
34512 2015-01-15 Martin Liska <mliska@suse.cz>
34515 * optc-save-gen.awk: Add support for array types.
34517 2015-01-15 Richard Biener <rguenther@suse.de>
34519 PR middle-end/64365
34520 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34521 for MEM_REF access functions with the same base can never partially
34524 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
34526 * common.opt: New option -fstack-protector-explicit.
34527 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34528 (stack_protect_decl_phase): Handle stack_protect attribute for
34529 explicit stack protection requests.
34530 (expand_used_vars): Similarly.
34531 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34532 * doc/extend.texi: Add documentation for "stack_protect" attribute.
34533 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34535 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
34538 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34540 (sh_extending_set_of_reg): New struct.
34541 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34542 sh_remove_reg_dead_or_unused_notes): New Declarations.
34543 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34544 sh_find_extending_set_of_reg, sh_split_tst_subregs,
34545 sh_extending_set_of_reg::use_as_extended_reg): New functions.
34546 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34547 convert to insn_and_split and use new function sh_split_tst_subregs.
34549 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
34551 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34553 (Optimization Options): Move -fuse-ld documentation to...
34554 (Link Options): ...here.
34556 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34558 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34560 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34561 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34562 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34563 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34564 instead of ZR for the memory operand of LL/SC.
34565 (compare_and_swap_12, sync_add<mode>): Likewise.
34566 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34567 (sync_new_<optab>_12, sync_nand_12): Likewise.
34568 (sync_old_nand_12, sync_new_nand_12): Likewise.
34569 (sync_sub<mode>, sync_old_add<mode>): Likewise.
34570 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34571 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34572 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34573 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34574 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34575 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34576 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34577 * doc/md.texi (ZC): Update description.
34579 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34581 * builtins.c (expand_builtin_atomic_exchange): Remove error when
34582 memory model is CONSUME.
34583 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34584 expand_builtin_atomic_store): Change invalid memory model errors to
34586 (expand_builtin_atomic_clear): Change invalid model errors to warnings
34587 and issue warning for CONSUME.
34589 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
34591 * lto-cgraph: Update function comments for
34592 lto_symtab_encoder_encode_*.
34594 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34596 * Makefile.in (site.exp): Do not set ENABLE_LTO.
34598 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34600 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34601 * lto-cgraph.c (select_what_to_stream): Remove argument, use
34602 lto_stream_offload_p instead.
34603 * lto-streamer.h (select_what_to_stream): Remove argument.
34604 * passes.c (ipa_write_summaries): Likewise.
34605 * tree-pass.h (ipa_write_summaries): Likewise.
34607 2015-01-14 Richard Biener <rguenther@suse.de>
34609 PR tree-optimization/59354
34610 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
34611 groups larger than the slp group size as having gaps.
34613 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34615 PR middle-end/59448
34616 * builtins.c (get_memmodel): Promote consume to acquire always.
34618 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34621 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
34624 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34627 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
34629 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
34630 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
34631 AVX512VBMI, as it implies AVX512BW.
34633 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34636 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
34637 (vec_unpacks_hi_v16sf): Ditto.
34639 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34641 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
34644 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34646 * doc/invoke.texi (mapcs): Mention deprecation.
34647 (mapcs-frame): Likewise.
34649 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
34652 * config/arm/arm.c (callee_saved_reg_p): Define.
34653 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
34654 register is callee saved instead of !call_used_regs[reg].
34655 (thumb1_compute_save_reg_mask): Likewise.
34657 2015-01-14 Hale Wang <hale.wang@arm.com>
34659 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
34662 2015-01-14 Richard Biener <rguenther@suse.de>
34665 * tree-inline.c (insert_debug_decl_map): Check destination
34666 function MAY_HAVE_DEBUG_STMTS.
34667 (insert_init_debug_bind): Likewise.
34668 (insert_init_stmt): Remove redundant check.
34669 (remap_gimple_stmt): Drop debug stmts if the destination
34670 function has var-tracking assignments disabled.
34672 2015-01-14 Martin Liska <mliska@suse.cz>
34674 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
34675 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
34677 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34680 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
34681 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
34683 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34685 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
34686 level from an ARCH; do not inject the default.
34687 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
34688 MIPS_ISA_LEVEL_SPEC.
34689 (MIPS_ISA_NAN2008_SPEC): Update comment.
34690 (BASE_DRIVER_SELF_SPECS): Likewise.
34691 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
34692 MIPS_DEFAULT_ISA_LEVEL_SPEC.
34693 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
34694 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
34695 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
34697 2015-01-14 Richard Biener <rguenther@suse.de>
34699 PR tree-optimization/64493
34700 PR tree-optimization/64495
34701 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
34702 assign the proper vectorized PHI to the inner loop exit PHIs.
34704 2015-01-14 Joey Ye <joey.ye@arm.com>
34706 * config/arm/arm.c (arm_compute_save_reg_mask):
34707 Do not save lr in case of tail call.
34708 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
34710 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
34712 * tree-vrp.c (check_array_ref): Emit more warnings
34713 for warn_array_bounds >= 2.
34714 * common.opt: New option -Warray-bounds=.
34715 * doc/invoke.texi: Document -Warray-bounds=.
34717 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
34719 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
34720 (mforbid-fp-as-gp): Remove.
34722 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
34723 (nds32_symbol_load_store_p): Remove.
34724 (nds32_fp_as_gp_check_available): Clean up implementation.
34725 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
34727 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
34728 fp-as-gp and ex9 cases.
34730 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34732 * tree-profile.c (init_ic_make_global_vars): Drop workaround
34733 for bintuils bug 14342.
34734 (init_ic_make_global_vars): Likewise.
34735 (gimple_init_edge_profiler): Likewise.
34736 (gimple_gen_ic_func_profiler): Likewise.
34738 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34740 * ipa-inline.c (inline_small_functions): Swap the operands in
34743 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34746 * ipa-inline-analysis.c (node_growth_cache): Remove.
34747 (initialize_growth_caches): Do not initialize it.
34748 (free_growth_caches): Do not free it.
34749 (do_estimate_growth): Rename to ...
34750 (estimate_growth): ... this one; drop growth cache code.
34751 (growth_likely_positive): Always go the heuristics way.
34752 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
34753 (reset_edge_caches): Do not reset node growth.
34754 (heap_edge_removal_hook): Do not maintain cache.
34755 (inline_small_functions): Likewise; strenghten sanity check.
34756 (ipa_inline): Do not maintain caches.
34757 * ipa-inline.h (node_growth_cache): Remove.
34758 (do_estimate_growth): Remove to ...
34759 (estimate_growth): this one; remove inline version.
34760 (reset_node_growth_cache): Remove.
34762 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34765 * ipa-inline.c (inline_small_functions): Update callee keys after
34766 resolving speculation
34767 (inline_small_functions): Always check monotonicity of the queue.
34769 2015-01-13 Marek Polacek <polacek@redhat.com>
34771 PR middle-end/64391
34772 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
34774 2015-01-13 Jakub Jelinek <jakub@redhat.com>
34776 PR rtl-optimization/64286
34777 * ree.c (combine_reaching_defs): Move part of comment earlier,
34778 remove !SCALAR_INT_MODE_P check.
34779 (add_removable_extension): Don't add vector mode
34780 extensions if all uses of the source register aren't the same
34783 2015-01-13 Renlin Li <renlin.li@arm.com>
34785 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
34786 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
34788 2015-01-13 Martin Liska <mliska@suse.cz>
34790 * ipa-icf.c (sem_function::equals_private): Call new functions
34791 cl_target_option_print_diff and cl_optimization_print_diff.
34792 * optc-save-gen.awk (cl_target_option_print_diff): New function.
34793 (cl_optimization_print_diff): Likewise.
34794 * opth-gen.awk: Likewise.
34796 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
34798 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
34799 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
34800 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
34801 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
34802 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
34803 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
34805 2015-01-13 Andrew Pinski <apinski@cavium.com>
34807 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
34808 instead of src mode.
34810 2015-01-13 Richard Biener <rguenther@suse.de>
34813 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
34816 2015-01-13 Andrew Pinski <apinski@cavium.com>
34818 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
34820 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
34822 2015-01-13 Jakub Jelinek <jakub@redhat.com>
34824 PR middle-end/63974
34825 * cfgexpand.c (expand_computed_goto): Don't call
34826 convert_memory_address here.
34828 2015-01-13 Richard Biener <rguenther@suse.de>
34830 PR tree-optimization/64406
34831 * tree-loop-distibution.c (pass_loop_distribution::execute):
34832 Reset the SCEV hashtable if we distributed anything.
34834 2015-01-13 Richard Biener <rguenther@suse.de>
34836 PR tree-optimization/64404
34837 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
34838 SLP types for CSEd loads.
34840 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34842 PR tree-optimization/64436
34843 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
34844 merge of two symbolic numbers for a bitwise OR to ...
34845 (perform_symbolic_merge): This. Also fix computation of the range and
34846 end of the symbolic number corresponding to the result of a bitwise OR.
34848 2015-01-13 Richard Biener <rguenther@suse.de>
34850 PR tree-optimization/64568
34851 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
34852 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
34854 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34856 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
34857 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
34859 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34861 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
34862 target-specific symbol_ref flag.
34863 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
34864 resides in rodata section.
34865 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
34866 (nds32_encode_section_info): New function.
34868 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34870 * config/nds32/nds32.md (call): Use pseudo instruction bal which
34871 clobbers TA_REGNUM if large code model is specified.
34872 (call_register): Likewise.
34873 (call_immediate): Likewise.
34874 (call_value): Likewise.
34875 (call_value_register): Likewise.
34876 (call_value_immediate): Likewise.
34878 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34880 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
34881 (TARGET_CMODEL_MEDIUM): New macro.
34882 (TARGET_CMODEL_LARGE): New macro.
34883 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
34884 code model setting in assembly code.
34886 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34888 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34889 Remove MASK_GP_DIRECT flag.
34890 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
34891 one of the multilib default options.
34892 * config/nds32/nds32.opt (mgp-direct): Remove.
34893 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
34894 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
34896 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34898 * config/nds32/nds32.opt (mcmodel): Add new option.
34899 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
34900 to describe code model.
34902 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
34905 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
34907 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
34909 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
34910 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
34911 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
34912 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
34913 __builtin_sh_set_fpscr.
34915 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
34917 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
34918 after a funtion name just to indicate it is a function.
34919 ([-fsanitize-undefined-trap-on-error]): Likewise.
34920 ([-fdbg-cnt=]): Likewise.
34921 ([-mmemcpy]): Likewise.
34922 ([-mflush-func]): Likewise.
34923 ([-msynci]): Likewise.
34925 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
34927 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
34930 2015-01-12 Jakub Jelinek <jakub@redhat.com>
34932 PR tree-optimization/64563
34933 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
34934 instead of != VR_VARYING.
34937 * config/i386/i386.c (ix86_expand_prologue): Add
34938 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
34940 PR tree-optimization/64454
34941 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
34942 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
34943 for signed or [0, op1 - 1] for unsigned modulo.
34944 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
34945 even if op1 does not satisfy integer_pow2p.
34948 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
34950 2015-01-12 Jeff Law <law@redhat.com>
34953 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
34954 (trunchiqi2, truncsihi2): Similarly.
34956 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
34957 rather than calling F.
34959 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
34961 * tsan.c (instrument_expr): Use force_gimple_operand.
34962 Use may_be_nonaddressable_p instead of is_gimple_addressable.
34964 2015-01-12 Richard Biener <rguenther@suse.de>
34966 PR tree-optimization/64530
34967 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
34970 2015-01-12 Richard Biener <rguenther@suse.de>
34972 PR middle-end/64357
34973 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
34976 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34978 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
34979 Cortex-A17 tuning parameters.
34980 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
34982 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34984 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
34985 * config/arm/arm.c (arm_macro_fusion_p): New function.
34986 (arm_macro_fusion_pair_p): Likewise.
34987 (TARGET_SCHED_MACRO_FUSION_P): Define.
34988 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
34989 (ARM_FUSE_NOTHING): Likewise.
34990 (ARM_FUSE_MOVW_MOVT): Likewise.
34991 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
34992 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
34993 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
34994 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
34995 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
34996 arm_cortex_a5_tune): Specify fuseable_ops value.
34998 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
35001 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
35002 test for PIE with copy reloc.
35003 * configure: Regenerated.
35005 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35007 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
35009 (arm_tls_descseq_addr): Likewise.
35010 (arm_gen_movmemqi): Likewise.
35011 (arm_expand_epilogue_apcs_frame): Likewise.
35012 (arm_expand_epilogue): Likewise.
35013 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
35016 2015-01-12 Martin Liska <mliska@suse.cz>
35019 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
35020 volatility for correct operands.
35022 2015-01-12 Martin Liska <mliska@suse.cz>
35024 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
35025 indication that a function is not leaf.
35026 (sem_function::compare_polymorphic_p): Likewise.
35028 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35030 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
35031 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
35032 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
35033 fold-const.h, tree-check.h.
35035 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35039 * ipa-inline.c (compute_uninlined_call_time,
35040 compute_inlined_call_time): Use counts for extra precision when
35042 (big_speedup_p): Fix formating.
35043 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
35044 (relative_time_benefit): Remove.
35045 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
35046 merge guessed and read profile paths.
35047 (inline_small_functions): Count only !optimize_size functions into
35048 initial size; be more lax about sanity check when profile is used;
35049 be sure to update inlined function profile when profile is read.
35051 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35054 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
35055 cost when edge becomes direct.
35056 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
35057 is resolved or when introducing new speculation.
35059 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
35063 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
35064 '||' to fix typo issue.
35066 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
35067 accept and return NULL.
35069 2015-01-12 Martin Liska <mliska@suse.cz>
35071 * cgraph.c (cgraph_edge::remove_callee): Move function to header
35072 file for being inlined.
35073 (cgraph_set_edge_callee): Delete.
35074 (cgraph_edge::redirect_callee): Move function to header file
35076 (cgraph_edge::make_direct): Use new function.
35077 (cgraph_edge::dump_edge_flags): New function created from
35078 static dump_edge_flags function.
35079 (cgraph_node::dump): Use new function.
35080 (cgraph_edge::verify_count_and_frequency): New function created
35081 from verify_edge_count_and_frequency.
35082 (cgraph_edge::verify_corresponds_to_fndecl): New function created
35083 from verify_edge_corresponds_to_fndecl.
35084 (verify_edge_corresponds_to_fndecl): Delete.
35085 (cgraph_node::verify_node): Use new function.
35086 * cgraph.h (cgraph_edge::set_callee): New function.
35087 (cgraph_edge::dump_edge_flags): Likewise.
35088 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
35090 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
35092 * ipa-utils.c (estimate_function_body_sizes): Do not
35093 free node params when called late with early=true.
35095 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
35097 * doc/md.texi (Instruction Patterns): Rewrite text for
35099 (Example): Likewise.
35101 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
35103 * doc/invoke.texi (Option Summary): Break long lines.
35104 [(-fdiagnostics-color)]: Put long literal in @smallexample
35106 [(-fsanitize-recover)]: Likewise.
35107 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
35108 [(-ffast-math)]: Likewise.
35109 [(--param max-inline-insns-recursive)]: Likewise.
35110 [(--param max-inline-recursive-depth)]: Likewise.
35111 [(-mno-text-section-literals)]: Likewise.
35113 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
35115 * doc/install.texi: Update for libgomp being renamed from "GNU
35116 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
35118 * doc/sourcebuild.texi: Likewise.
35120 2015-01-10 Anthony Green <green@moxielogic.com>
35122 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
35123 mul.x availability for moxiebox configuration.
35125 2015-01-09 Anthony Green <green@moxielogic.com>
35127 * config/moxie/moxie.md: Tabify assembly output.
35129 2015-01-09 Anthony Green <green@moxielogic.com>
35131 * config/moxie/moxie.md (CC_REG): Correct register definition.
35133 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
35135 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
35136 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
35139 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35141 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
35143 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
35144 Jakub Jelinek <jakub@redhat.com>
35146 PR middle-end/64412
35147 * lto-streamer.h (lto_stream_offload_p): New declaration.
35148 * lto-streamer.c (lto_stream_offload_p): New variable.
35149 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
35150 at the same time as section_name_prefix.
35151 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
35152 if lto_stream_offload_p.
35153 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
35154 stream TREE_TARGET_OPTION if lto_stream_offload_p.
35155 (write_ts_function_decl_tree_pointers): Don't
35156 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
35157 * tree-streamer-in.c (unpack_value_fields): Don't stream
35158 TREE_TARGET_OPTION in if ACCEL_COMPILER.
35159 (lto_input_ts_function_decl_tree_pointers): Don't stream
35160 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
35161 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
35162 instead of section_name_prefix string comparisons.
35164 2015-01-09 Jakub Jelinek <jakub@redhat.com>
35166 PR rtl-optimization/64536
35167 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
35170 2015-01-09 Michael Collison <michael.collison@linaro.org>
35172 PR tree-optimization/64322
35173 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
35174 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
35176 2015-01-09 Tom de Vries <tom@codesourcery.com>
35178 PR rtl-optimization/64539
35179 * regcprop.c (kill_clobbered_values): Factor out of ...
35180 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
35181 instead of note_stores with kill_clobbered_value.
35183 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35185 * ginclude/unwind-arm-common.h: Revert previous commit.
35187 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35189 * config.gcc (arm*-*-freebsd*): New configuration.
35190 * config/arm/freebsd.h: New file.
35191 * config.host: Add extra components for arm*-*-freebsd*.
35192 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
35193 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
35195 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35197 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
35199 * config/rs6000/t-rtems: Add e6500 multilibs.
35201 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35203 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
35206 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35208 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
35209 MULTILIB_EXCEPTIONS.
35211 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35213 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
35214 MULTILIB_EXCEPTIONS.
35216 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35218 * config/arm/t-rtems-eabi: Rename to...
35219 * config/arm/t-rtems: ...this.
35220 * config/arm/rtems-eabi.h: Rename to...
35221 * config/arm/rtems.h: ...this.
35222 * config.gcc (arm*-*-rtems*): Reflect changes above.
35224 2015-01-09 Richard Biener <rguenther@suse.de>
35226 PR tree-optimization/64410
35227 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
35229 (execute_update_addresses_taken): Deal with that.
35230 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
35231 loads/stores for complex variables.
35233 2015-01-09 Martin Liska <mliska@suse.cz>
35235 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
35237 (func_checker::compare_memory_operand): New function.
35238 (func_checker::compare_operand): Split case to newly
35240 (func_checker::compare_cst_or_decl): New function.
35241 (func_checker::compare_gimple_call): Identify
35243 (func_checker::compare_gimple_assign): Likewise.
35244 * ipa-icf-gimple.h: New function.
35246 2015-01-09 Martin Liska <mliska@suse.cz>
35249 * sreal.c (sreal::dump): Change unsigned format to signed for
35251 (sreal::to_double): Replace exp2 with scalbln.
35253 2015-01-09 Martin Liska <mliska@suse.cz>
35255 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
35256 * ipa-icf.c (sem_function::equals_private): Add support for target and
35257 (sem_item_optimizer::merge_classes): Remove redundant function
35258 optimization flags comparison.
35259 * tree.h (target_opts_for_fn): New function.
35261 2015-01-09 Tom de Vries <tom@codesourcery.com>
35263 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
35265 2015-01-09 Kito Cheng <kito@0xlab.org>
35267 PR rtl-optimization/64348
35268 * lra-constraints.c (split_reg): Fix caller-save store/restore
35269 instruction generation.
35271 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
35273 PR gcov-profile/61790
35274 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
35275 long long. Fallback to int64_t if host doesn't have long long and
35276 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
35278 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35280 PR tree-optimization/63989
35281 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
35282 from 1000 to 10000.
35283 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
35284 (get_stridx): If we don't have a record for certain SSA_NAME,
35285 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
35286 constant offset, call get_stridx_plus_constant.
35287 (get_stridx_plus_constant): New function.
35288 (zero_length_string): Don't use get_stridx here.
35291 PR middle-end/64388
35292 * dse.c (struct insn_info): Mention frame_read set also
35293 before reload for tail calls on some targets.
35294 (scan_insn): Revert 2014-12-22 change. Set frame_read
35295 also before reload for tail calls if
35296 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
35297 instead of add_non_frame_wild_read for non-const/memset
35298 tail calls after reload.
35300 2015-01-08 Jason Merrill <jason@redhat.com>
35302 * ubsan.c (do_ubsan_in_current_function): New.
35303 (pass_ubsan::gate): Use it.
35304 * ubsan.h: Declare it.
35305 * convert.c (convert_to_integer): Use it.
35307 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35310 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
35311 compare_code when it is unconditionally overwritten afterwards.
35312 Use ix86_reverse_condition instead of reverse_condition. Don't
35313 change code if *reverse_condition* returned UNKNOWN and don't
35314 swap ct/cf and negate diff in that case.
35316 2015-01-08 Mike Stump <mikestump@comcast.net>
35318 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
35319 (pass_tsan_O0::gate): Likewise.
35320 * extend.texi (Function Attributes): Add no_sanitize_thread
35323 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
35325 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
35326 for registering builtins.
35327 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
35328 add -fopenmp to the argv_obstack used when invoking
35329 compile_for_target.
35331 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
35332 add "-m32" or "-m64" to argv_obstack.
35333 (generate_host_descr_file): Likewise, when invoking host_compiler.
35334 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
35337 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35339 * config/sh/sh-mem.cc: Use constant as second operand when emitting
35342 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35345 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
35346 constant load if constant operand fits into I08.
35348 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35351 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
35352 and TREE_THIS_VOLATILE for MEM_REFs.
35353 (build5_stat): Fix up initialization of TREE_READONLY and
35354 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35356 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
35359 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35360 of r for the second alternative of the destination operand.
35362 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
35365 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35367 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35369 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35371 ([-fivar-visibility], [-fvisibility]): Likewise.
35373 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35375 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35376 the file where @code, @command, etc is more appropriate.
35378 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
35380 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35381 of -mrecip= documentation.
35383 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35386 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35387 correct reload handler if -m32 -mpowerpc64 is used.
35389 2015-01-06 Tom de Vries <tom@codesourcery.com>
35391 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35393 2015-01-08 Christian Bruel <christian.bruel@st.com>
35396 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35398 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35400 PR tree-optimization/63259
35401 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35402 if optab exists for 16bit byteswap.
35404 2015-01-06 Jakub Jelinek <jakub@redhat.com>
35406 * opts.c (common_handle_option): Add support for
35407 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35408 * doc/invoke.texi: Document -fno-sanitize=all,
35409 -f{,no-}sanitize-recover=all. Document that
35410 -fsanitize=float-cast-overflow is not enabled
35411 by -fsanitize=undefined. Fix up documentation
35412 of -f{,no-}sanitize-recover.
35414 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
35416 * config.gcc: Add Visium support.
35417 * configure.ac: Likewise.
35418 * configure: Regenerate.
35419 * doc/extend.texi (interrupt attribute): Add Visium.
35420 * doc/invoke.texi: Document Visium options.
35421 * doc/install.texi: Document Visium target.
35422 * doc/md.texi: Document Visium constraints.
35423 * common/config/visium: New directory.
35424 * config/visium: Likewise.
35426 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35428 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35429 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35431 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35433 * combine.c (combine_validate_cost): Do not count the cost of a
35434 split I2 twice. Do not display it twice in the dump, either.
35436 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35438 Revert parts of r219199.
35439 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35441 ([-Wtraditional]): Restore markup on <limits.h>.
35443 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
35446 * doc/invoke.texi: Document -Wsuggest-override.
35448 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
35450 PR rtl-optimization/64287
35451 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35452 (process_options): Disable flag_ipa_ra if profiling.
35454 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
35456 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35458 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
35460 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35461 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35462 put under #if TARGET_LOOPS guard.
35464 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
35466 * config/i386/i386.c (output_387_binary_op): Use std::swap.
35468 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
35470 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35471 * rtl.h (refers_to_regno_p): Add overload.
35473 * bt-load.c: Likewise.
35474 * combine.c: Likewise.
35475 * df-scan.c: Likewise.
35476 * sched-deps.c: Likewise.
35477 * config/s390/s390.c: Likewise.
35478 * config/m32r/m32r.c: Likewise.
35479 * config/rs6000/spe.md: Likewise.
35480 * config/rs6000/rs6000.c: Likewise.
35481 * config/pa/pa.c: Likewise.
35482 * config/stormy16/stormy16.c: Likewise.
35483 * config/cris/cris.c: Likewise.
35484 * config/arc/arc.md: Likewise.
35485 * config/arc/arc.c: Likewise.
35486 * config/sh/sh.md: Likewise.
35487 * config/sh/sh.c: Likewise.
35488 * config/frv/frv.c: Likewise.
35490 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35493 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35494 call as cleanup of the whole body.
35495 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35496 * tsan.c (replace_func_exit): New function.
35497 (instrument_func_exit): Moved earlier.
35498 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35499 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35501 (tsan_pass): Don't call instrument_func_exit.
35502 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35503 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35507 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35508 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35509 it to libubsan handler instead of EXPR. Fold comparisons earlier,
35510 if the result is integer_zerop, return NULL_TREE.
35511 * convert.c (convert_to_integer): Pass expr as ARG.
35513 PR tree-optimization/64465
35514 * tree-inline.c (redirect_all_calls): During inlining
35515 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35516 changed the stmt to a non-throwing call.
35518 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35520 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35521 etc markup throughout the file.
35523 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35525 Enable experimental TSAN support for Ada.
35526 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35528 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35530 PR tree-optimization/64494
35531 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35532 clear SSA_NAME_ANTI_RANGE_P flag.
35534 2015-01-05 Marek Polacek <polacek@redhat.com>
35536 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35538 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35540 Update copyright years.
35542 * gcc.c (process_command): Update copyright notice dates.
35543 * gcov-dump.c: Ditto.
35545 * doc/cpp.texi: Bump @copying's copyright year.
35546 * doc/cppinternals.texi: Ditto.
35547 * doc/gcc.texi: Ditto.
35548 * doc/gccint.texi: Ditto.
35549 * doc/gcov.texi: Ditto.
35550 * doc/install.texi: Ditto.
35551 * doc/invoke.texi: Ditto.
35553 * auto-profile.c, auto-profile.h: Fix up Copyright line.
35555 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
35557 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35559 ([-fvtable-verify], [-fvtv-debug]): Likewise.
35560 ([-Wabi]): Likewise.
35561 ([-fmessage-length]): Likewise.
35562 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35563 ([-Wno-discarded-qualifiers]): Likewise.
35564 ([-Wnodiscarded-array-qualifiers]): Likewise.
35565 ([-Wno-virtual-move-assign]): Likewise.
35566 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35567 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35568 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35569 ([-fsanitize-undefined-trap-on-error]): Likewise.
35570 ([-floop-interchange]): Likewise.
35571 ([-ftree-coalesce-inlined-vars]): Likewise.
35572 ([-fvect-cost-model]): Likewise.
35573 ([-flto]): Likewise.
35574 ([--param]): Likewise.
35575 (Spec Files): Likewise.
35576 ([-mstrict-align]): Likewise.
35577 ([-mfix-cortex-a53-835769]): Likewise.
35578 ([-march], [-mtune]): Likewise.
35579 ([-mpic-register]): Likewise.
35580 ([-munaligned-access]): Likewise.
35581 ([-msp8]): Likewise.
35582 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35583 (AVR Built-in Macros): Likewise.
35584 ([-mpreferred-stack-boundary]): Likewise.
35585 ([-mtune-crtl]): Likewise.
35586 ([-mashf]): Likewise.
35587 ([-mmcu=]): Likewise.
35588 ([-minrt]): Likewise.
35589 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35590 ([-mupper-regs]): Likewise.
35591 ([-matomic-model]): Likewise.
35592 ([-mdiv]): Likewise.
35593 ([-mzdcbranch]): Likewise.
35594 ([-mdisable-callt]): Likewise.
35595 ([-msoft-float]): Likewise.
35596 ([-m8byte-align]): Likewise.
35597 ([-fstack-reuse]): Likewise.
35599 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35601 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35602 Fix markup, light copy-editing.
35603 ([-fauto-profile]): Rewrite to fix formatting and content
35606 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35608 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
35609 Copy-edit description.
35610 ([-fisolate-erroneous-paths-attribute]): Likewise.
35611 * common.opt (fisolate-erroneous-paths-dereference):
35612 Copy-edit description.
35613 (fisolate-erroneous-paths-attribute): Likewise.
35615 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35617 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
35620 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35622 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
35623 ([-fvtv-debug]): Likewise.
35624 ([-Wc++-compat]): Likewise.
35625 ([-Wc++11-compat]): Likewise.
35626 ([-Wc++14-compat]): Likewise.
35627 ([-Wno-sized-deallocation]): Likewise.
35628 ([-femit-class-debug-always]): Likewise.
35629 ([-femit-struct-debug-detailed]): Likewise.
35630 ([-fno-keep-inline-dllexport]): Likewise.
35631 ([-fira-algorithm]): Likewise.
35632 ([-fira-region]): Likewise.
35633 ([-flra-remat]): Likewise.
35634 ([-fipa-ra]): Likewise.
35635 ([-fhoist-adjacent-loads]): Likewise.
35636 ([-fisolate-erroneous-paths-dereference]): Likewise.
35637 ([-fisolate-erroneous-paths-attribute]): Likewise.
35638 ([-ftree-switch-conversion]): Likewise.
35639 ([-ftree-tail-merge]): Likewise.
35640 ([-ftree-loop-if-convert]): Likewise.
35641 ([-ftree-loop-if-convert-stores]): Likewise.
35642 ([-ftree-loop-distribution]): Likewise.
35643 ([-ftree-loop-distribute-patterns]): Likewise.
35644 ([-flto-compression-level]): Likewise.
35645 ([-flto-report]): Likewise.
35646 ([-flto-report-wpa]): Likewise.
35647 ([-fuse-linker-plugin]): Likewise.
35648 ([-mfix-cortex-a53-835769]): Likewise.
35649 ([-mno-fix-cortex-a53-835769]): Likewise.
35650 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
35651 explicit listing; add a note to the discussion indicating they
35652 exist. Reorder table to group similar options. Add missing
35653 @opindex entries. Add @need commands throughout the table to
35654 allow it to be split across multiple pages.
35655 ([-m8bit-idiv]): Fix @opindex.
35656 ([-mavx256-split-unaligned-load]): Likewise.
35657 ([-mavx256-split-unaligned-store]): Likewise.
35658 ([-mstack-protector-guard]): Likewise.
35659 ([-mcpu=]): Likewise.
35660 ([-mcpu]): Likewise.
35661 ([-mpointer-size=]): Likewise.
35663 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
35665 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
35666 instead of `m' constraint. Likewise for unnamed movb comparison
35667 patterns using reg_before_reload_operand predicate.
35668 * config/pa/predicates.md (reg_before_reload_operand): Tighten
35669 predicate to reject register index and LO_SUM DLT memory forms
35672 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35674 * doc/invoke.texi (Option Summary): Fix spelling of
35675 -fdevirtualize-at-ltrans.
35676 ([-fdevirtualize]): Fix markup.
35677 ([-fdevirtualize-speculatively]): Fix typo.
35678 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
35679 implementor-speaky.
35680 * common.opt (fdevirtualize-at-ltrans): Likewise.
35681 * ipa-devirt.c: Fix typos in comments throughout the file.
35682 (ipa_devirt): Fix typos in format strings for dump output.
35684 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35686 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
35687 discussion of defaults, light copy-editing.
35689 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35691 * tsan.c (instrument_expr): corrected previous checkin.
35693 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35695 Instrument bit field and unaligned accesses for TSAN.
35696 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
35697 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
35698 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
35699 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
35700 unaligned memory regions.
35702 2015-01-01 Anthony Green <green@moxielogic.com>
35704 * config/moxie/predicates.md (moxie_general_movsrc_operand):
35705 Restrict move source register offsets to 16 bits.
35707 Copyright (C) 2015 Free Software Foundation, Inc.
35709 Copying and distribution of this file, with or without modification,
35710 are permitted in any medium without royalty provided the copyright
35711 notice and this notice are preserved.