libgcc changes for AMD znver1.
[gcc.git] / gcc / ChangeLog
1 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2
3 * config/i386/i386.c (get_builtin_code_for_version): Set priority
4 for PROCESSOR_ZNVER1.
5 (enum processor_model): Add M_AMDFAM17H_znver1.
6 (struct arch_names_table): Likewise.
7 * doc/extend.texi: ADD znver1.
8
9 2015-10-30 Richard Biener <rguenther@suse.de>
10
11 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
12 fold () on single RHSs. Allow CONSTRUCTORS with trailing
13 zeros to be folded to VECTOR_CSTs.
14 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
15 * fold-const.c (fold): Use build_vector_from_ctor.
16
17 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
18
19 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
20 "mov %0.h[0], %1.h[0] to "neon_move".
21 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
22 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
23 "mov_imm".
24 (*cmovsi_insn_uxtw): Likewise.
25
26 2015-10-30 Tom de Vries <tom@codesourcery.com>
27
28 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
29 unsigned, and initialize, and use initial value instead of hardcoded
30 constant. Add generic constraints dumping section. Don't dump global
31 initializers constraints dumping section if empty. Don't update
32 variable from if unused.
33
34 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
35
36 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
37 flag_checking and/or CHECKING_P to eliminate conditional compilation
38 on ENABLE_CHECKING.
39 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
40 * config/bfin/bfin.c (hwloop_optimize): Likewise.
41 * config/i386/i386.c (ix86_print_operand_address): Likewise.
42 (output_387_binary_op): Likewise.
43 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
44 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
45 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
46 Likewise.
47 * config/rs6000/rs6000.h: Likewise.
48 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
49
50 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
51
52 * config/sh/sh.opt (mfdpic): Add missing period.
53
54 2015-08-29 Anatoly Sokolov <aesok@post.ru>
55
56 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
57 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
58 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
59 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
60 mcore_base_register_rtx_p, mcore_legitimate_index_p,
61 mcore_legitimate_address_p): New functions.
62 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
63
64 2015-10-29 Jeff Law <law@redhat.com>
65
66 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
67 method.
68 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
69 * tree-ssa-threadedge.c
70 (record_temporary_equivalences_from_stmts_at_dest): Remove
71 backedge_seen argument and associated code which invalidated
72 equivalences based on the value of that argument.
73 (thread_through_normal_block): Corresponding changes.
74
75 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
76
77 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
78 function earlier in the file.
79 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
80 df_regs_ever_live_p.
81
82 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
83
84 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
85 by ignoring it.
86
87 2015-10-29 Richard Henderson <rth@redhat.com>
88
89 PR target/68124
90 PR rtl-opt/67609
91 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
92 sse check to the exact conditions of PR 67609.
93
94 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
95
96 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
97 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
98 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
99 of the traditional names that TFmode uses for handling IEEE
100 extended double. If -mfloat128, add KFmode functions for all of
101 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
102 make TFmode use the same emulation functions as KFmode.
103 (init_float128_ibm): Likewise.
104 (init_float128_ieee): Likewise.
105 (rs6000_generate_compare): For IEEE 128-bit floating point
106 comparisons, call the unordered comparison function instead of the
107 ordered comparison function.
108 (rs6000_expand_float128_convert): Deal with operands that are
109 memory operands. Restructure the code to use a switch statement on
110 the mode. Add support for TFmode defaulting to either IBM extended
111 double or IEEE 128-bit floating point. If the underlying types are
112 the same, use a move instead of a conversion function.
113 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
114 use for IEEE 128-bit floating point constants with -mfloat128.
115 (rs6000_c_mode_for_suffix): Likewise.
116 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
117 128-bit floating point with IBM extended double floating point.
118 (rs6000_invalid_binary_op): Likewise.
119 (rs6000_gen_le_vsx_permute): On little endian systems generate a
120 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
121 types that can go in vector registers.
122 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
123 point types that can go in vector registers on little endian
124 PowerPC systems.
125 (mark_swaps_for_removal): Likewise.
126 (rs6000_analyze_swaps): Likewise.
127 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
128
129 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
130 rework IEEE 128-bit floating point insns to deal with TFmode being
131 either IBM extended double or IEEE 128-bit floating point.
132 (IFKF): Likewise.
133 (IBM128): Update iterator to add condition that the mode is IBM
134 extended double.
135 (IEEE128): New iterator for IEEE 128-bit floating point.
136 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
137 (FLOAT128): Likewise.
138 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
139 iterator.
140 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
141 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
142 instead of hard coding TFmode or KFmode.
143 (negtf2_internal): Likewise.
144 (neg<mode>2_internal): Likewise.
145 (abs<mode>2): Likewise.
146 (abstf2_internal): Likewise.
147 (abs<mode>2_internal): Likewise.
148 (ieee_128bit_neg<mode>2): Likewise.
149 (ieee_128bit_neg<mode>2_internal): Likewise.
150 (ieee_128bit_abs<mode>2): Likewise.
151 (ieee_128bit_abs<mode>2_internal): Likewise.
152 (ieee_128bit_nabs<mode>2): Likewise.
153 (ieee_128bit_nabs<mode>2_internal): Likewise.
154 (extendiftf2): Add explicit conversions between 128-bit floating
155 point types. Drop the old conversions that had become unwieldy.
156 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
157 (extendifkf2): Likewise.
158 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
159 (extendtfkf2): Likewise.
160 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
161 (trunciftf2): Likewise.
162 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
163 (truncifkf2): Likewise.
164 (float<SDI:mode><IFKF:mode>2): Likewise.
165 (trunckftf2): Likewise.
166 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
167 (trunctfif2): Likewise.
168 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
169 (extenddftf2): Rework 128-bit floating point conversions to
170 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
171 KFmode expanders into one function.
172 (extenddf<mode>2): Likewise.
173 (extenddftf2_fprs): Likewise.
174 (extenddf<mode>2_fprs): Likewise.
175 (extenddftf2_vsx): Likewise.
176 (extenddf<mode>2_vsx): Likewise.
177 (extendsftf2): Likewise.
178 (extendsf<mode>2): Likewise.
179 (trunctfdf2): Likewise.
180 (trunc<mode>df2): Likewise.
181 (trunctfdf2_internal1): Likewise.
182 (trunc<mode>df2_internal1): Likewise.
183 (trunctfdf2_internal2): Likewise.
184 (trunc<mode>df2_internal2): Likewise.
185 (trunctfsf2): Likewise.
186 (trunc<mode>sf2): Likewise.
187 (trunctfsf2_fprs): Likewise.
188 (trunc<mode>sf2_fprs): Likewise.
189 (floatsit2f): Likewise.
190 (floatsi<mode>2): Likewise.
191 (fix_trunc_helper): Likewise.
192 (fix_trunc_helper<mode>): Likewise.
193 (fix_trunctfsi2): Likewise.
194 (fix_trunc<mode>si2): Likewise.
195 (fix_trunctfsi2_fprs): Likewise.
196 (fix_trunc<mode>si2_fprs): Likewise.
197 (fix_trunctfsi2_internal): Likewise.
198 (fix_trunc<mode>si2_internal): Likewise.
199 (fix_trunctfdi2): Likewise.
200 (fix_trunc<mode>di2): Likewise.
201 (fixuns_trunctf<mode>2): Likewise.
202 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
203 (floatditf2): Likewise.
204 (floatdi<mode>2): Likewise.
205 (floatuns<mode>tf2): Likewise.
206 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
207 (cmptf_internal1): Use a mode iterator to add support for both
208 types (IFmode, TFmode) that support IBM extended double.
209 (cmp<mode>_internal1): Likewise.
210 (cmptf_internal2): Likewise.
211 (cmp<mode>_internal2): Likewise.
212
213 * doc/extend.texi (Floating Types): Document __ibm128 and
214 __float128 on PowerPC.
215
216 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
217 -mfloat128 and -mno-float128.
218
219 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
220
221 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
222 floating point modes that can go in vector registers.
223 (MODES_TIEABLE_P): Move tests for vector modes before tests for
224 scalar floating point, so that IEEE 128-bit floating point that
225 can go in vector registers bind with vectors and not FP.
226 (struct rs6000_args): Add libcall field.
227
228 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
229 and -mfloat128-software switches. Replace them with a binary
230 -mfloat128 switch.
231 (-mfloat128): Likewise.
232
233 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
234 128-bit floating point types in GPRs, even if the appropriate
235 option enabling the type was not used.
236 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
237 debugging.
238 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
239 pre-decrement on IEEE 128-bit floating point values.
240 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
241 is IEEE 128-bit floating point.
242 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
243 128-bit floating point types that can go in vector registers.
244 (rs6000_option_override_internal): Change -mfloat128-none and
245 -mfloat128-software to -mfloat128, and move code to be near other
246 VSX option handling.
247 (rs6000_option_override_internal): Disable -mfloat128 if we don't
248 have the Altivec ABI.
249 (rs6000_init_builtins): Don't make TFmode use either IFmode or
250 KFmode floating point nodes. Instead, have three separate nodes.
251 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
252 eventually moving the long double default to IEEE 128-bit floating
253 point.
254 (rs6000_opt_masks): Add -mfloat128.
255 (struct rs6000_opt_var): Fix typo in comment.
256 (init_cumulative_args): Initialize libcall field in
257 CUMULATIVE_ARGS.
258 (rs6000_function_arg): Treat library functions as if they had
259 prototypes to prevent IEEE 128-bit support functions from passing
260 arguments in both GPRs and vector registers.
261 (rs6000_arg_partial_bytes): Likewise.
262
263 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
264 an option that can be turned on via -mcpu=<xxx>.
265
266 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
267 longer used.
268
269 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
270 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
271 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
272 double is IBM extended double.
273
274 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
275 SUBREGs.
276
277 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
278
279 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
280 * genconditions.c: Define CHECKING_P in the generated code.
281 * genextract.c: Use flag_checking in insn_extract.
282 * gengtype.c (main): Remove conditional compilation.
283 * gengtype.h: Likewise.
284
285 2015-10-29 Jeff Law <law@redhat.com>
286
287 PR tree-optimization/67892
288 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
289 in comment.
290 (thread_through_normal_block): If we have seen a backedge, then
291 do nothing. No longer call find_jump_threads_backwards here.
292 (thread_across_edge): Use find_jump_threads_backwards to find
293 jump threads if the old style threader was not successful.
294 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
295 gsi_last_nondebug_bb. Return NULL if the block does not end
296 with a control statement.
297 (find_jump_threads_backwards): Setup code moved here from
298 tree-ssa-threadedge.c::thread_through_normal_block. Accept
299 single edge argument instead of name & block.
300 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
301 prototype.
302
303 2015-10-29 Tom de Vries <tom@codesourcery.com>
304
305 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
306 types.
307
308 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
309
310 * omp-low.c (lower_omp_target): Remove unreachable code & merge
311 ifs.
312
313 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
314
315 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
316
317 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
318
319 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
320 guard_bb0 and use guard_bb throughout.
321
322 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
323
324 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
325 unnecessary label.
326
327 2015-10-29 Richard Biener <rguenther@suse.de>
328
329 PR middle-end/68142
330 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
331 overflow.
332
333 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
334
335 * alias.c: Reorder #include statements and remove duplicates.
336 * asan.c: Likewise.
337 * attribs.c: Likewise.
338 * auto-inc-dec.c: Likewise.
339 * auto-profile.c: Likewise.
340 * bb-reorder.c: Likewise.
341 * bt-load.c: Likewise.
342 * builtins.c: Likewise.
343 * caller-save.c: Likewise.
344 * calls.c: Likewise.
345 * ccmp.c: Likewise.
346 * cfg.c: Likewise.
347 * cfganal.c: Likewise.
348 * cfgbuild.c: Likewise.
349 * cfgcleanup.c: Likewise.
350 * cfgexpand.c: Likewise.
351 * cfghooks.c: Likewise.
352 * cfgloop.c: Likewise.
353 * cfgloopanal.c: Likewise.
354 * cfgloopmanip.c: Likewise.
355 * cfgrtl.c: Likewise.
356 * cgraph.c: Likewise.
357 * cgraphbuild.c: Likewise.
358 * cgraphclones.c: Likewise.
359 * cgraphunit.c: Likewise.
360 * cilk-common.c: Likewise.
361 * combine-stack-adj.c: Likewise.
362 * combine.c: Likewise.
363 * compare-elim.c: Likewise.
364 * convert.c: Likewise.
365 * coverage.c: Likewise.
366 * cppbuiltin.c: Likewise.
367 * cprop.c: Likewise.
368 * cse.c: Likewise.
369 * cselib.c: Likewise.
370 * data-streamer-in.c: Likewise.
371 * data-streamer-out.c: Likewise.
372 * data-streamer.c: Likewise.
373 * dbxout.c: Likewise.
374 * dce.c: Likewise.
375 * ddg.c: Likewise.
376 * debug.c: Likewise.
377 * df-core.c: Likewise.
378 * df-problems.c: Likewise.
379 * df-scan.c: Likewise.
380 * dfp.c: Likewise.
381 * dojump.c: Likewise.
382 * dominance.c: Likewise.
383 * double-int.c: Likewise.
384 * dse.c: Likewise.
385 * dumpfile.c: Likewise.
386 * dwarf2asm.c: Likewise.
387 * dwarf2cfi.c: Likewise.
388 * dwarf2out.c: Likewise.
389 * emit-rtl.c: Likewise.
390 * except.c: Likewise.
391 * explow.c: Likewise.
392 * expmed.c: Likewise.
393 * expr.c: Likewise.
394 * final.c: Likewise.
395 * fixed-value.c: Likewise.
396 * fold-const.c: Likewise.
397 * function.c: Likewise.
398 * fwprop.c: Likewise.
399 * gcse.c: Likewise.
400 * generic-match-head.c: Likewise.
401 * ggc-common.c: Likewise.
402 * gimple-builder.c: Likewise.
403 * gimple-expr.c: Likewise.
404 * gimple-fold.c: Likewise.
405 * gimple-iterator.c: Likewise.
406 * gimple-low.c: Likewise.
407 * gimple-match-head.c: Likewise.
408 * gimple-pretty-print.c: Likewise.
409 * gimple-ssa-isolate-paths.c: Likewise.
410 * gimple-ssa-strength-reduction.c: Likewise.
411 * gimple-streamer-in.c: Likewise.
412 * gimple-streamer-out.c: Likewise.
413 * gimple-walk.c: Likewise.
414 * gimple.c: Likewise.
415 * gimplify-me.c: Likewise.
416 * gimplify.c: Likewise.
417 * godump.c: Likewise.
418 * graph.c: Likewise.
419 * graphite-poly.c: Likewise.
420 * haifa-sched.c: Likewise.
421 * hw-doloop.c: Likewise.
422 * ifcvt.c: Likewise.
423 * incpath.c: Likewise.
424 * init-regs.c: Likewise.
425 * internal-fn.c: Likewise.
426 * ipa-chkp.c: Likewise.
427 * ipa-comdats.c: Likewise.
428 * ipa-cp.c: Likewise.
429 * ipa-devirt.c: Likewise.
430 * ipa-icf-gimple.c: Likewise.
431 * ipa-icf.c: Likewise.
432 * ipa-inline-analysis.c: Likewise.
433 * ipa-inline-transform.c: Likewise.
434 * ipa-inline.c: Likewise.
435 * ipa-polymorphic-call.c: Likewise.
436 * ipa-profile.c: Likewise.
437 * ipa-prop.c: Likewise.
438 * ipa-pure-const.c: Likewise.
439 * ipa-ref.c: Likewise.
440 * ipa-reference.c: Likewise.
441 * ipa-split.c: Likewise.
442 * ipa-utils.c: Likewise.
443 * ipa-visibility.c: Likewise.
444 * ipa.c: Likewise.
445 * ira-build.c: Likewise.
446 * ira-color.c: Likewise.
447 * ira-conflicts.c: Likewise.
448 * ira-costs.c: Likewise.
449 * ira-emit.c: Likewise.
450 * ira-lives.c: Likewise.
451 * ira.c: Likewise.
452 * jump.c: Likewise.
453 * langhooks.c: Likewise.
454 * lcm.c: Likewise.
455 * lists.c: Likewise.
456 * loop-doloop.c: Likewise.
457 * loop-init.c: Likewise.
458 * loop-invariant.c: Likewise.
459 * loop-iv.c: Likewise.
460 * loop-unroll.c: Likewise.
461 * lower-subreg.c: Likewise.
462 * lra-assigns.c: Likewise.
463 * lra-coalesce.c: Likewise.
464 * lra-constraints.c: Likewise.
465 * lra-eliminations.c: Likewise.
466 * lra-lives.c: Likewise.
467 * lra-remat.c: Likewise.
468 * lra-spills.c: Likewise.
469 * lra.c: Likewise.
470 * lto-cgraph.c: Likewise.
471 * lto-compress.c: Likewise.
472 * lto-opts.c: Likewise.
473 * lto-section-in.c: Likewise.
474 * lto-section-out.c: Likewise.
475 * lto-streamer-in.c: Likewise.
476 * lto-streamer-out.c: Likewise.
477 * lto-streamer.c: Likewise.
478 * mode-switching.c: Likewise.
479 * modulo-sched.c: Likewise.
480 * omp-low.c: Likewise.
481 * optabs.c: Likewise.
482 * opts-global.c: Likewise.
483 * passes.c: Likewise.
484 * plugin.c: Likewise.
485 * postreload-gcse.c: Likewise.
486 * postreload.c: Likewise.
487 * predict.c: Likewise.
488 * print-tree.c: Likewise.
489 * profile.c: Likewise.
490 * real.c: Likewise.
491 * realmpfr.c: Likewise.
492 * recog.c: Likewise.
493 * ree.c: Likewise.
494 * reg-stack.c: Likewise.
495 * regcprop.c: Likewise.
496 * reginfo.c: Likewise.
497 * regrename.c: Likewise.
498 * regstat.c: Likewise.
499 * reload.c: Likewise.
500 * reload1.c: Likewise.
501 * reorg.c: Likewise.
502 * resource.c: Likewise.
503 * rtl-chkp.c: Likewise.
504 * rtl-error.c: Likewise.
505 * rtlanal.c: Likewise.
506 * rtlhooks.c: Likewise.
507 * sanopt.c: Likewise.
508 * sched-deps.c: Likewise.
509 * sched-ebb.c: Likewise.
510 * sched-rgn.c: Likewise.
511 * sese.c: Likewise.
512 * shrink-wrap.c: Likewise.
513 * simplify-rtx.c: Likewise.
514 * stack-ptr-mod.c: Likewise.
515 * statistics.c: Likewise.
516 * stmt.c: Likewise.
517 * stor-layout.c: Likewise.
518 * store-motion.c: Likewise.
519 * stringpool.c: Likewise.
520 * symtab.c: Likewise.
521 * target-globals.c: Likewise.
522 * targhooks.c: Likewise.
523 * toplev.c: Likewise.
524 * tracer.c: Likewise.
525 * trans-mem.c: Likewise.
526 * tree-affine.c: Likewise.
527 * tree-call-cdce.c: Likewise.
528 * tree-cfg.c: Likewise.
529 * tree-cfgcleanup.c: Likewise.
530 * tree-chkp-opt.c: Likewise.
531 * tree-chkp.c: Likewise.
532 * tree-chrec.c: Likewise.
533 * tree-complex.c: Likewise.
534 * tree-data-ref.c: Likewise.
535 * tree-dfa.c: Likewise.
536 * tree-diagnostic.c: Likewise.
537 * tree-dump.c: Likewise.
538 * tree-eh.c: Likewise.
539 * tree-emutls.c: Likewise.
540 * tree-if-conv.c: Likewise.
541 * tree-inline.c: Likewise.
542 * tree-into-ssa.c: Likewise.
543 * tree-iterator.c: Likewise.
544 * tree-loop-distribution.c: Likewise.
545 * tree-nested.c: Likewise.
546 * tree-nrv.c: Likewise.
547 * tree-object-size.c: Likewise.
548 * tree-outof-ssa.c: Likewise.
549 * tree-parloops.c: Likewise.
550 * tree-phinodes.c: Likewise.
551 * tree-predcom.c: Likewise.
552 * tree-pretty-print.c: Likewise.
553 * tree-profile.c: Likewise.
554 * tree-scalar-evolution.c: Likewise.
555 * tree-sra.c: Likewise.
556 * tree-ssa-address.c: Likewise.
557 * tree-ssa-alias.c: Likewise.
558 * tree-ssa-ccp.c: Likewise.
559 * tree-ssa-coalesce.c: Likewise.
560 * tree-ssa-copy.c: Likewise.
561 * tree-ssa-dce.c: Likewise.
562 * tree-ssa-dom.c: Likewise.
563 * tree-ssa-dse.c: Likewise.
564 * tree-ssa-forwprop.c: Likewise.
565 * tree-ssa-ifcombine.c: Likewise.
566 * tree-ssa-live.c: Likewise.
567 * tree-ssa-loop-ch.c: Likewise.
568 * tree-ssa-loop-im.c: Likewise.
569 * tree-ssa-loop-ivcanon.c: Likewise.
570 * tree-ssa-loop-ivopts.c: Likewise.
571 * tree-ssa-loop-manip.c: Likewise.
572 * tree-ssa-loop-niter.c: Likewise.
573 * tree-ssa-loop-prefetch.c: Likewise.
574 * tree-ssa-loop-unswitch.c: Likewise.
575 * tree-ssa-loop.c: Likewise.
576 * tree-ssa-math-opts.c: Likewise.
577 * tree-ssa-operands.c: Likewise.
578 * tree-ssa-phiopt.c: Likewise.
579 * tree-ssa-phiprop.c: Likewise.
580 * tree-ssa-pre.c: Likewise.
581 * tree-ssa-propagate.c: Likewise.
582 * tree-ssa-reassoc.c: Likewise.
583 * tree-ssa-sccvn.c: Likewise.
584 * tree-ssa-scopedtables.c: Likewise.
585 * tree-ssa-sink.c: Likewise.
586 * tree-ssa-strlen.c: Likewise.
587 * tree-ssa-structalias.c: Likewise.
588 * tree-ssa-tail-merge.c: Likewise.
589 * tree-ssa-ter.c: Likewise.
590 * tree-ssa-threadedge.c: Likewise.
591 * tree-ssa-threadupdate.c: Likewise.
592 * tree-ssa-uncprop.c: Likewise.
593 * tree-ssa-uninit.c: Likewise.
594 * tree-ssa.c: Likewise.
595 * tree-ssanames.c: Likewise.
596 * tree-stdarg.c: Likewise.
597 * tree-streamer-in.c: Likewise.
598 * tree-streamer-out.c: Likewise.
599 * tree-streamer.c: Likewise.
600 * tree-switch-conversion.c: Likewise.
601 * tree-tailcall.c: Likewise.
602 * tree-vect-data-refs.c: Likewise.
603 * tree-vect-generic.c: Likewise.
604 * tree-vect-loop-manip.c: Likewise.
605 * tree-vect-loop.c: Likewise.
606 * tree-vect-patterns.c: Likewise.
607 * tree-vect-slp.c: Likewise.
608 * tree-vect-stmts.c: Likewise.
609 * tree-vectorizer.c: Likewise.
610 * tree-vrp.c: Likewise.
611 * tree.c: Likewise.
612 * tsan.c: Likewise.
613 * ubsan.c: Likewise.
614 * value-prof.c: Likewise.
615 * var-tracking.c: Likewise.
616 * varasm.c: Likewise.
617 * varpool.c: Likewise.
618 * vtable-verify.c: Likewise.
619 * web.c: Likewise.
620 * wide-int-print.cc: Likewise.
621 * wide-int.cc: Likewise.
622 * xcoffout.c: Likewise.
623
624 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
625
626 * Makefile.in (NO_PIE_CFLAGS): New.
627 (NO_PIE_FLAG): Likewise.
628 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
629 (NO_PIE_FLAG_FOR_BUILD): Likewise.
630 (BUILD_NO_PIE_CFLAGS): Likewise.
631 (BUILD_NO_PIE_FLAG): Likewise.
632 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
633 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
634 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
635 $(BUILD_NO_PIE_CFLAGS).
636 (BUILD_CXXFLAGS): Likewise.
637 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
638 $(BUILD_NO_PIE_FLAG).
639 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
640 (BUILD_NO_PIE_FLAG): Likewise.
641 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
642 (NO_PIE_FLAG_FOR_BUILD): Likewise.
643 * configure: Regenerated.
644
645 2015-10-29 Richard Biener <rguenther@suse.de>
646
647 PR middle-end/56956
648 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
649 unsigned conditonal negation to ABS_EXPR.
650
651 2015-10-29 Richard Biener <rguenther@suse.de>
652
653 * gimple-match-head.c (gimple_simplify): Remove premature checking
654 of builtin_decl_implicit of function calls we simplify.
655
656 2015-10-29 Bin Cheng <bin.cheng@arm.com>
657
658 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
659 (get_computation_cost_at): Ditto.
660 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
661 and inv_expr_id.
662
663 2015-10-28 Tom de Vries <tom@codesourcery.com>
664
665 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
666 superfluous code.
667
668 2015-10-28 Jason Merrill <jason@redhat.com>
669
670 * Makefile.in (TAGS): Include libcpp and libiberty.
671
672 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
673
674 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
675 (extract_omp_for_data): Remove OpenACC special handling of
676 chunking.
677
678 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
679 (struct parallel): Update comment.
680 (nvptx_reorg): Likewise.
681 (nvptx_neuter): Cleanup whitespace.
682
683 2015-10-28 Richard Henderson <rth@redhat.com>
684
685 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
686
687 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
688
689 PR target/67839
690 * config/avr/predicates.md (low_io_address_operand): Don't
691 consider MODE when computing upper bound.
692 (io_address_operand): Likewise.
693
694 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
695
696 * fold-const.c (operand_equal_p): Do not verify that types are
697 compatible for MEM_REFs.
698
699 2015-10-28 Richard Biener <rguenther@suse.de>
700
701 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
702 in simplifying VEC_COND_EXPR conditions.
703
704 2015-10-28 Tom de Vries <tom@codesourcery.com>
705
706 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
707 into vi_next of a full_var.
708
709 2015-10-28 Tom de Vries <tom@codesourcery.com>
710
711 * tree-ssa-structalias.c (new_var_info, make_heapvar)
712 (make_constraint_from_restrict, make_constraint_from_global_restrict)
713 (create_function_info_for, create_variable_info_for_1)
714 (create_variable_info_for): Add and handle add_id parameter.
715 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
716 (init_base_vars): Add extra argument to calls to new_var_info.
717 (get_vi_for_tree): Add extra argument to call to
718 create_variable_info_for.
719 (process_constraint, do_deref, process_all_all_constraints): Add extra
720 argument to calls to new_scalar_tmp_constraint_exp.
721 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
722 argument to calls to make_heapvar.
723 (make_restrict_var_constraints): Add extra argument to call to
724 make_constraint_from_global_restrict.
725 (intra_create_variable_infos): Add extra argument to call to
726 create_variable_info_for_1.
727 (ipa_pta_execute): Add extra argument to call to
728 create_function_info_for.
729
730 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
731
732 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
733 (sibcall_value): Likewise.
734
735 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
736
737 * config/nvptx/nvptx.h (struct machine_function): Add
738 axis_predicate.
739 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
740 nvptx_expand_oacc_join): Declare.
741 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
742 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
743 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
744 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
745 UNSPECV_JOINING, UNSPECV_JOIN): New.
746 (BITS, BITD): New mode iterators.
747 (br_true_uni, br_false_uni): New.
748 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
749 (oacc_dim_size, oacc_dim_pos): New.
750 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
751 (oacc_fork, oacc_join): New.
752 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
753 (worker_load<mode>, worker_store<mode>): New.
754 (nvptx_barsync): New.
755 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
756 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
757 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
758 worker_bcast_sym): New.
759 (nvptx_option_override): Initialize worker broadcast buffer.
760 (nvptx_emit_forking, nvptx_emit_joining): New.
761 (nvptx_init_axis_predicate): New.
762 (nvptx_declare_function_name): Init axis predicates.
763 (nvptx_expand_call): Add fork/join markers around routine call.
764 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
765 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
766 (nvptx_gen_vcast): New.
767 (struct wcast_data_t): New.
768 (enum propagate_mask): New.
769 (nvptx_gen_wcast): New.
770 (nvptx_print_operand): Add 'S' case.
771 (struct parallel): New.
772 (parallel::parallel, parallel::~parallel): New.
773 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
774 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
775 nvptx_find_par, nvptx_discover_pars): New.
776 (nvptx_propagate): New.
777 (vprop_gen, nvptx_vpropagate): New.
778 (wprop_gen, nvptx_wpropagate): New.
779 (nvptx_wsync): New.
780 (nvptx_single, nvptx_skip_par): New.
781 (nvptx_process_pars, nvptx_neuter_pars): New.
782 (ntptx_reorg): Split blocks, generate parallel structure, apply
783 neutering.
784 (nvptx_cannot_copy_insn_p): New.
785 (nvptx_file_end): Emit worker broadcast decl.
786 (nvptx_goacc_fork_join): New.
787 (TARGET_CANNOT_COPY_INSN_P): Override.
788 (TARGET_GOACC_FORK_JOIN): Override.
789
790 2015-10-28 Richard Biener <rguenther@suse.de>
791
792 * fold-const.c (negate_expr_p): Adjust the division case to
793 properly avoid introducing undefined overflow.
794 (fold_negate_expr): Likewise.
795
796 2015-10-28 Richard Biener <rguenther@suse.de>
797
798 PR tree-optimization/65962
799 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
800 Avoid creating loop carried dependences also for outer loops
801 of the loop a use to replace is in.
802
803 2015-10-28 Richard Biener <rguenther@suse.de>
804
805 * common.opt (fchecking): New flag controlling flag_checking.
806 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
807 * timevar.c (timer::print): Adjust output.
808 * doc/invoke.texi (fchecking): Document.
809
810 2015-10-28 Richard Biener <rguenther@suse.de>
811
812 PR middle-end/68067
813 * fold-const.c (negate_expr_p): We cannot negate plus or minus
814 if overflow is not wrapping. Likewise multiplication unless
815 one operand is constant and not power of two.
816 (fold_negate_expr): Adjust accordingly.
817
818 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
819
820 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
821 fields.
822 (is_oacc_parallel, is_oacc_kernels): New.
823 (enclosing_target_ctx): May return NULL.
824 (ctx_in_oacc_kernels_region): New.
825 (check_oacc_kernel_gwv): New.
826 (oacc_loop_or_target_p): Delete.
827 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
828 operands. Strip reductions fro kernels.
829 (scan_omp_target): Don't calculate gwv mask.
830 (lower_oacc_head_mark, lower_oacc_loop_marker,
831 lower_oacc_head_tail): New.
832 (struct oacc_collapse): New.
833 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
834 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
835 Remove OpenACC handling.
836 (expand_oacc_for): New.
837 (expand_omp_for): Call expand_oacc_for.
838 (lower_omp_for): Call lower_oacc_head_tail.
839
840 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
841
842 * attribs.c (check_attribute_tables): New function, broken out from...
843 (init_attributes): Use it.
844 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
845 gcc_checking_assert and checking_* functions to eliminate
846 ENABLE_CHECKING conditionals.
847 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
848 (pass_expand::execute): Likewise.
849 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
850 * cgraphunit.c (mark_functions_to_output): Likewise.
851 (cgraph_node::expand_thunk): Likewise.
852 (symbol_table::compile): Likewise.
853 * ddg.c (add_cross_iteration_register_deps): Likewise.
854 (create_ddg_all_sccs): Likewise.
855 * df-core.c (df_finish_pass, df_analyze): Likewise.
856 * diagnostic-core.h: Likewise.
857 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
858 * dominance.c (calculate_dominance_info): Likewise.
859 * dwarf2out.c (add_AT_die_ref): Likewise.
860 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
861 (loc_list_from_tree, gen_lexical_block_die): Likewise.
862 gen_type_die_with_usage, gen_type_die): Likewise.
863 (dwarf2out_decl): Likewise.
864 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
865 * except.c (duplicate_eh_regions): Likewise.
866 * fwprop.c (register_active_defs, update_df_init): Likewise.
867 (fwprop_init, fwprop_done): Likewise.
868 (update_uses): Likewise.
869 * ggc-page.c (ggc_grow): Likewise.
870 * gimplify.c (gimplify_body): Likewise.
871 (gimplify_hasher::equal): Likewise.
872 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
873 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
874 Likewise.
875 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
876 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
877 * hash-table.h (::find_empty_slot_for_expand): Likewise.
878 * ifcvt.c (if_convert): Likewise.
879 * ipa-cp.c (ipcp_propagate_stage): Likewise.
880 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
881 (odr_type_p, odr_types_equivalent_p): Likewise.
882 (add_type_duplicate, get_odr_type): Likewise.
883 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
884 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
885 (sem_item_optimizer::verify_classes): Likewise.
886 (sem_item_optimizer::traverse_congruence_split): Likewise.
887 (sem_item_optimizer::checking_verify_classes): New.
888 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
889 method.
890 * cfgrtl.c (commit_edge_insertions): Likewise.
891 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
892 (rtl_flow_call_edges_add): Likewise.
893 * cgraph.c (symbol_table::create_edge): Likewise.
894 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
895 * cgraph.h (symtab_node): Likewise.
896 (symtab_node::checking_verify_symtab_nodes): Define.
897 (cgraph_node::checking_verify_cgraph_nodes): Define.
898 * cfghooks.h (checking_verify_flow_info): Define.
899 * cfgloop.h (checking_verify_loop_structure): Define.
900 * dominance.h (checking_verify_dominators): Define.
901 * et-forest.c: Fix comment.
902 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
903 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
904 ENABLE_CHECKING conditionals.
905 * ipa-inline-transform.c (save_inline_function_body): Likewise.
906 * ipa-inline.c (inline_small_functions): Likewise.
907 (early_inliner): Likewise.
908 * ipa-inline.h (estimate_edge_growth): Likewise.
909 * ipa-visibility.c (function_and_variable_visibility): Likewise.
910 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
911 (ipa_single_use): Likewise.
912 * ira-int.h: Likewise.
913 * ira.c (ira): Likewise.
914 * loop-doloop.c (doloop_optimize_loops): Likewise.
915 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
916 * loop-invariant.c (move_loop_invariants): Likewise.
917 * lra-assigns.c (lra_assign): Likewise.
918 * lra-constraints.c (lra_constraints): Likewise.
919 * lra-eliminations.c (lra_eliminate): Likewise.
920 * lra-int.h (struct lra_reg): Likewise.
921 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
922 (lra_create_live_ranges_1): Likewise.
923 * lra-remat.c (create_remat_bb_data): Likewise.
924 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
925 (lra): Likewise.
926 (check_rtl): Always define. Remove incorrect guard around
927 extract_constrain_insn call.
928 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
929 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
930 ENABLE_CHECKING conditionals.
931 * lto-streamer-out.c (DFS::DFS): Likewise.
932 (lto_output): Likewise.
933 * lto-streamer.c (lto_streamer_init): Likewise.
934 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
935 expand_omp_target, execute_expand_omp): Likewise.
936 (lower_omp_target): Likewise.
937 * passes.c (execute_function_todo): Likewise.
938 (execute_todo, execute_one_pass): Likewise.
939 (verify_curr_properties): Always define.
940 * predict.c (tree_estimate_probability: Use flag_checking,
941 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
942 ENABLE_CHECKING conditionals.
943 (propagate_freq): Likewise.
944 * pretty-print.c (pp_format): Likewise.
945 * real.c (real_to_decimal_for_mode): Likewise.
946 * recog.c (split_all_insns): Likewise.
947 * regcprop.c (kill_value_one_regno): Likewise.
948 (copy_value): Likewise.
949 (validate_value_data): Define unconditionally.
950 * reload.c: Fix comment.
951 * timevar.c: Include options.h
952 * tree-ssa.h (checking_verify_ssa): Define.
953 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
954 * sched-deps.c (CHECK): Remove unused macro.
955 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
956 gcc_checking_assert and checking_* functions to eliminate
957 ENABLE_CHECKING conditionals.
958 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
959 * sel-sched.c (struct moveop_static_params): Likewise.
960 (find_best_reg_for_expr, move_cond_jump): Likewise.
961 (move_op_orig_expr_not_found): Likewise.
962 (code_motion_process_successors, move_op): Likewise.
963 * ssa-iterators.h (first_readonly_imm_use): Likewise.
964 (next_readonly_imm_use): Likewise.
965 * store-motion.c (compute_store_table): Likewise.
966 * symbol-summary.h (function_summary::function_summary): Likewise.
967 * target.h (cumulative_args_t): Likewise.
968 (get_cumulative_args, pack_cumulative_args): Likewise.
969 * timevar.c: (timer::print): Likewise.
970 * trans-mem.c (ipa_tm_execute): Likewise.
971 * tree-cfg.c (move_stmt_op): Likewise.
972 (move_sese_region_to_fn): Likewise.
973 (gimple_flow_call_edges_add): Likewise.
974 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
975 Likewise.
976 * tree-eh.c (remove_unreachable_handlers): Likewise.
977 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
978 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
979 * tree-into-ssa.c (update_ssa): Likewise.
980 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
981 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
982 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
983 * tree-predcom.c (suitable_component_p): Likewise.
984 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
985 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
986 * tree-ssa-live.c (verify_live_on_entry): Likewise.
987 * tree-ssa-live.h (register_ssa_partition): Likewise.
988 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
989 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
990 (tree_transform_and_unroll_loop): Likewise.
991 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
992 * tree-ssa-operands.c (get_expr_operands): Likewise.
993 * tree-ssa-propagate.c (replace_exp_1): Likewise.
994 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
995 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
996 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
997 * tree-ssanames.c (release_ssa_name_fn): Likewise.
998 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
999 * tree-vect-loop-manip.c
1000 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1001 (slpeel_checking_verify_cfg_after_peeling): Likewise.
1002 (vect_do_peeling_for_loop_bound): Likewise.
1003 (vect_do_peeling_for_alignment): Likewise.
1004 * tree-vrp.c (supports_overflow_infinity): Likewise.
1005 (set_value_range): Likewise.
1006 * tree.c (free_lang_data_in_cgraph): Likewise.
1007 * value-prof.c (gimple_remove_histogram_value): Likewise.
1008 (free_hist): Likewise.
1009 * var-tracking.c (canonicalize_values_star): Likewise.
1010 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1011
1012 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1013
1014 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1015 IFN_GOACC_LOOP): New.
1016 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1017 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1018 IFN_UNIQUE_OACC_TAIL_MARK.
1019 (enum ifn_goacc_loop_kind): New.
1020 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1021 IFN_UNIQUE_OACC_JOIN cases.
1022 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1023 (expand_GOACC_LOOP): New.
1024 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1025 * omp-low.c: Include gimple-pretty-print.h.
1026 (struct oacc_loop): New.
1027 (enum oacc_loop_flags): New.
1028 (oacc_thread_numbers): New.
1029 (oacc_xform_loop): New.
1030 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1031 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1032 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1033 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1034 oacc_loop_discovery): New.
1035 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1036 oacc_loop_process): New.
1037 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1038 (execute_oacc_device_lower): Discover & process loops. Process
1039 internal fns.
1040 * target.def (goacc.fork_join): Change sense of hook, clarify
1041 documentation.
1042 * doc/tm.texi: Regenerated.
1043
1044 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1045
1046 * target-insns.def (oacc_fork, oacc_join): Define.
1047 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1048 (goacc.fork_join): New GOACC hook.
1049 * targhooks.h (default_goacc_fork_join): Declare.
1050 * omp-low.c (default_goacc_forkjoin): New.
1051 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1052 * doc/tm.texi: Regenerate.
1053
1054 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1055
1056 * omp-low.c (oacc_init_rediction_array): New.
1057 (oacc_initialize_reduction_data): Initialize array.
1058
1059 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1060
1061 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1062
1063 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1064
1065 * internal-fn.c (expand_UNIQUE): New.
1066 * internal-fn.h (enum ifn_unique_kind): New.
1067 * internal-fn.def (IFN_UNIQUE): New.
1068 * target-insns.def (unique): Define.
1069 * gimple.h (gimple_call_internal_unique_p): New.
1070 * gimple.c (gimple_call_same_target_p): Check internal fn
1071 uniqueness.
1072 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1073 * tree-ssa-threadedge.c
1074 (record_temporary_equivalences_from_stmts): Likewise.
1075 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1076
1077 2015-10-27 Richard Henderson <rth@redhat.com>
1078
1079 PR rtl-opt/67609
1080 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1081 narrowing subregs on SSE and MMX registers.
1082 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1083 appear to be sub-words of multi-register pseudos must be rejected.
1084 * doc/tm.texi: Regenerate.
1085
1086 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1087
1088 PR target/68102
1089 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1090 operands[0] is a reg before taking its REGNO in split condition.
1091 (*movdi_aarch64): Likewise.
1092
1093 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1094
1095 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1096 Handle floating point inner modes properly.
1097
1098 2015-10-27 Alan Hayward <alan.hayward@arm.com>
1099
1100 * tree-vect-looop.c
1101 (vectorizable_live_operation): Change iterator.
1102
1103 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1104 Aditya Kumar <aditya.k7@samsung.com>
1105
1106 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1107 function to schedule based on isl_schedule_node.
1108 (get_schedule_map_st): New schedule optimizer based on
1109 isl_schedule_node.
1110 (scop_get_domains): New. Return the isl_union_set containing the
1111 domains of all the pbbs.
1112 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1113
1114 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
1115
1116 PR target/67215
1117 * calls.c (prepare_call_address): Don't handle -fno-plt here.
1118 * config/i386/i386.c (ix86_expand_call): Generate indirect call
1119 via GOT for -fno-plt. Support indirect call via GOT for x32.
1120 * config/i386/predicates.md (sibcall_memory_operand): Allow
1121 GOT memory operand.
1122
1123 2015-10-27 Richard Biener <rguenther@suse.de>
1124
1125 PR tree-optimization/68104
1126 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1127 strided access check ...
1128 (vect_compute_data_refs_alignment): ... here.
1129
1130 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
1131 Joseph Myers <joseph@codesourcery.com>
1132 Mark Shinwell <shinwell@codesourcery.com>
1133 Andrew Stubbs <ams@codesourcery.com>
1134 Rich Felker <dalias@libc.org>
1135
1136 * config.gcc: Handle --enable-fdpic.
1137 * config/sh/constraints.md (Ccl): New constraint.
1138 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1139 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1140 __SH_FDPIC__.
1141 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1142 library functions.
1143 * config/sh/sh-protos.h (function_symbol_result): New struct.
1144 (function_symbol): Return function_symbol_result.
1145 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1146 declarations.
1147 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1148 target hook.
1149 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1150 (sh_option_override): Force -fPIC if FDPIC is in effect.
1151 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1152 UNSPEC_GOTOFFFUNCDESC cases.
1153 (prepare_move_operands): Use FDPIC initial GOT register for
1154 TLS-related GOT access; inhibit cross-section address offset constants
1155 for FDPIC.
1156 (sh_assemble_integer): New function.
1157 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1158 PC-relative call sites.
1159 (expand_ashiftrt): Adapt invocation of function_symbol.
1160 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1161 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1162 UNSPEC_GOTOFFFUNCDESC.
1163 (legitimize_pic_address): Resolve function symbols to function
1164 descriptors for FDPIC. Do not use GOT-relative addressing for local
1165 data that may be read-only on FDPIC.
1166 (sh_emit_storesi, sh_emit_storehi): New functions.
1167 (sh_trampoline_init): Generate FDPIC trampolines.
1168 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1169 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1170 (sh_output_mi_thunk): Generate FDPIC call.
1171 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
1172 FDPIC, generate call site labels to use PC-relative addressing rather
1173 than GOT-relative addressing.
1174 (sh_conditional_register_usage): Make PIC register fixed and call used
1175 when FDPIC is in effect.
1176 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1177 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1178 sh_get_fdpic_reg_initial_val): New functions.
1179 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1180 Handle -mfdpic.
1181 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1182 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1183 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1184 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1185 FDPIC_SELF_SPECS.
1186 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1187 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1188 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1189 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1190 constants.
1191 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1192 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1193 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1194 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1195 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1196 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1197 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1198 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1199 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1200 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1201 block_move_real, block_lump_real, block_move_real_i4,
1202 block_lump_real_i4): Add support for FDPIC calls.
1203 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1204 call_value_pop): Adjust for new function_symbol signature.
1205 * config/sh/sh.opt (-mfdpic): New option.
1206 * doc/install.texi (Options specification): Document --enable-fdpic.
1207 * doc/invoke.texi (SH Options): Document -mfdpic.
1208
1209
1210 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1211
1212 PR tree-optimization/65963
1213 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
1214 as equivalent MULT_EXPRs.
1215
1216 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1217
1218 PR target/67929
1219 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1220 * config/arm/constraints.md (Dp): Update callsite.
1221 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1222
1223 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1224
1225 * builtins.c (fold_builtin_load_exponent): Rename to...
1226 (fold_const_builtin_load_exponent): ...this and only handle
1227 constant arguments.
1228 (fold_builtin_2): Update accordingly.
1229 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1230
1231 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1232
1233 * builtins.c (fold_builtin_logb): Rename to...
1234 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1235 (fold_builtin_significand): Rename to...
1236 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1237 (fold_builtin_1): Update accordingly.
1238
1239 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1240
1241 * builtins.c (fold_builtin_fmin_fmax): Delete.
1242 (fold_builtin_2): Handle constant fmin and fmax arguments here.
1243 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1244
1245 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
1246
1247 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1248 for register extension into sign and zero register extension.
1249 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
1250 for sign and zero register extension.
1251 (cortexa57_addrcost_table): Likewise.
1252 (xgene1_addrcost_table): Likewise.
1253
1254 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1255
1256 * fold-const.c (fold_minmax): Delete.
1257 (fold_binary_loc): Don't call it.
1258 * match.pd: Add rules previously handled by fold_minmax.
1259
1260 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1261
1262 * builtins.c (fold_builtin_fma): Remove constant handling.
1263 (fold_builtin_3): Handle constant fma arguments here.
1264
1265 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1266
1267 * builtins.c (fold_builtin_fabs): Remove constant handling.
1268 (fold_builtin_abs): Likewise.
1269
1270 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1271
1272 * builtins.c (fold_builtin_copysign): Delete.
1273 (fold_builtin_2): Handle constant copysign arguments here.
1274 * match.pd: Add rules previously handled by fold_builtin_copysign.
1275
1276 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1277
1278 * builtins.c (fold_builtin_signbit): Delete.
1279 (fold_builtin_2): Handle constant signbit arguments here.
1280 * match.pd: Add rules previously handled by fold_builtin_signbit.
1281
1282 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1283
1284 * match.pd: Handle sqrt(x) cmp 0 specially.
1285
1286 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
1287
1288 * tree-vect-generic.c (expand_vector_operations_1): Check
1289 optab type before using it.
1290
1291 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1292
1293 * config/aarch64/aarch64-protos.h
1294 (struct tune_params): Add autoprefetcher_model field.
1295 * config/aarch64/aarch64.c: Include params.h
1296 (generic_tunings): Specify autoprefetcher_model value.
1297 (cortexa53_tunings): Likewise.
1298 (cortexa57_tunings): Likewise.
1299 (cortexa72_tunings): Likewise.
1300 (thunderx_tunings): Likewise.
1301 (xgene1_tunings): Likewise.
1302 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
1303 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
1304 (aarch64_override_options_internal): Set
1305 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
1306
1307 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1308
1309 * builtins.c (fold_builtin_exponent): Delete.
1310 (fold_builtin_2): Handle constant expN arguments here.
1311 * match.pd: Fold expN(logN(x)) -> x.
1312
1313 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1314
1315 * builtins.c (fold_builtin_powi): Delete.
1316 (fold_builtin_2): Handle constant powi arguments here.
1317 * match.pd: Add rules previously handled by fold_builtin_powi.
1318
1319 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1320
1321 * builtins.c (fold_builtin_pow): Delete in favor of...
1322 (fold_const_builtin_pow): ...this new function. Only handle constant
1323 arguments.
1324 (fold_builtin_2): Update accordingly.
1325 * match.pd: Add rules previously handled by fold_builtin_pow.
1326
1327 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1328
1329 * builtins.c (fold_builtin_hypot): Delete.
1330 (fold_builtin_2): Handle constant hypot arguments here.
1331 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
1332 hypot(x, x) to fabs(x)*sqrt(2).
1333
1334 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1335
1336 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
1337 instead of make_ssa_name if not yet in SSA form.
1338
1339 2015-10-27 Richard Biener <rguenther@suse.de>
1340
1341 * cfg.c (free_edge): Add function argument and use it instead of cfun.
1342 (clear_edges): Likewise.
1343 * cfg.h (clear_edges): Adjust prototype.
1344 * cfgexpand.c (pass_expand::execute): Adjust.
1345 * cfgloop.c (release_recorded_exits): Add function argument and use
1346 it instead of cfun.
1347 * cfgloop.h (release_recorded_exits): Adjust prototype.
1348 (loops_state_satisfies_p): Add overload with function argument.
1349 (loops_state_set): Likewise.
1350 (loops_state_clear): Likewise.
1351 (struct loop_iterator): Add function argument to constructor
1352 and iterator and use it instead of cfun.
1353 (FOR_EACH_LOOP_FN): New macro.
1354 (loop_optimizer_finalize): Add overload with function argument.
1355 * loop-init.c (loop_optimizer_init): Adjust.
1356 (fix_loop_structure): Likewise.
1357 (loop_optimizer_finaliz): Add function argument and use it
1358 instead of cfun.
1359 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1360 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
1361 * cgraph.c (release_function_body): Do not push/pop cfun.
1362 * final.c (rest_of_clean_state): Adjust.
1363 * graphite.c (graphite_finalize): Likewise.
1364 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1365 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1366 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
1367 (tree_unroll_loops_completely): Likewise.
1368 (pass_complete_unrolli::execute): Likewise.
1369 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
1370 Add function argument and use it instead of cfun.
1371 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
1372 Adjust prototype.
1373 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
1374 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
1375 instead of cfun.
1376 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
1377 * tree-ssanames.c (fini_ssanames): Add function argument and use it
1378 instead of cfun.
1379 * tree-ssanames.c (fini_ssanames): Adjust prototype.
1380 * tree-vrp.c (execute_vrp): Adjust.
1381 * value-prof.c (free_histograms): Add function argument and use it
1382 instead of cfun.
1383 * value-prof.h (free_histograms): Adjust prototype.
1384
1385 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1386
1387 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
1388 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
1389 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
1390
1391 2015-10-27 Tom de Vries <tom@codesourcery.com>
1392
1393 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
1394 field_type.
1395
1396 2015-10-27 Bin Cheng <bin.cheng@arm.com>
1397
1398 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
1399 (inv_can_prop_to_addr_use): New function.
1400 (record_use): Call can_prop_to_addr_uses, set the new field.
1401 (get_inv_cost): Count cost if inv can't be propagated into its
1402 address uses.
1403
1404 2015-10-26 Doug Evans <dje@google.com>
1405
1406 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
1407
1408 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
1409
1410 * match.pd (fold_widened_comparison): Apply simplifications to all
1411 integral types.
1412
1413 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
1414
1415 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
1416 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
1417 * doc/tm.texi: Regenerated.
1418 * reorg.c (dbr_schedule): Use new hook.
1419 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
1420
1421 2015-10-26 Jeff Law <law@redhat.com>
1422
1423 PR tree-optimization/68013
1424 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1425 Make sure the first block in the path is in VISITED_BBs.
1426
1427 2015-10-26 Richard Biener <rguenther@suse.de>
1428 Dominik Vogt <vogt@linux.vnet.ibm.com>
1429
1430 PR middle-end/67443
1431 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
1432 Properly prune ref->ref for accesses outside of ref.
1433
1434 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1435
1436 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
1437 new statements to be inserted if inplace. Allow calls to have
1438 nonempty sequences.
1439
1440 2015-10-26 Richard Biener <rguenther@suse.de>
1441
1442 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
1443 (do_valueize): New function.
1444 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
1445 replace_uses_by.
1446 * tree-ssa-threadedge.c: Remove builtins.h include, include
1447 gimple-fold.h
1448 (fold_assignment_stmt): Remove.
1449 (threadedge_valueize): New function.
1450 (record_temporary_equivalences_from_stmts): Use
1451 gimple_fold_stmt_to_constant_1, note additional cleanup
1452 opportunities.
1453
1454 2015-10-26 Richard Biener <rguenther@suse.de>
1455
1456 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
1457 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
1458
1459 2015-10-26 Alan Hayward <alan.hayward@arm.com>
1460
1461 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1462 VEC_COND_EXPR types.
1463
1464 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1465
1466 * auto-inc-dec.c (insert_move_insn_before): Delete.
1467 (attempt_change): Remember to cost the simple move in the
1468 FORM_PRE_ADD and FORM_POST_ADD cases.
1469
1470 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
1471
1472 PR target/68091
1473 * config/sh/sh.c (sh_vector_mode_supported_p): Use
1474 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
1475
1476 2015-10-26 Tom de Vries <tom@codesourcery.com>
1477
1478 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
1479 factored out of ...
1480 (intra_create_variable_infos): ... here.
1481
1482 2015-10-26 Tom de Vries <tom@codesourcery.com>
1483
1484 * tree-ssa-structalias.c (intra_create_variable_infos): Add
1485 restrict_pointer_p and recursive_restrict_p variables.
1486
1487 2015-10-26 Tom de Vries <tom@codesourcery.com>
1488
1489 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
1490 get_vi_for_tree call.
1491
1492 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1493
1494 PR middle-end/67989
1495 * optabs.c (expand_atomic_compare_and_swap): Handle case when
1496 ptarget_oval or ptarget_bool are const0_rtx.
1497
1498 2015-10-26 Christian Bruel <christian.bruel@st.com>
1499
1500 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
1501 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
1502 * cp/method.c (implicitly_declare_fn): Likewise.
1503 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
1504 * java/class.c (add_method_1): Likewise.
1505
1506 2015-10-26 Richard Biener <rguenther@suse.de>
1507
1508 * alloc-pool.h (base_pool_allocator): Use placement new.
1509 (base_pool_allocator::remove): Likewise. Compute size outside of
1510 flag_checking.
1511
1512 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1513
1514 * builtins.c (do_real_to_int_conversion): New function.
1515 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
1516 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
1517 arguments here.
1518 * match.pd: Add rules previously handled by fold_fixed_mathfn
1519 and fold_builtin_int_roundingfn.
1520
1521 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
1522
1523 * match.pd: Use macros to define built-in operator lists.
1524
1525 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
1526 Richard Biener <rguenther@suse.de>
1527
1528 * genmatch.c (dt_simplify::gen): Skip captures that are
1529 part of the result.
1530 (parser::parse_expr): Allow captures in results too.
1531 * builtins.c (fold_builtin_cexp): Delete.
1532 (fold_builtin_1): Handle constant cexp arguments here.
1533 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
1534
1535 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
1536
1537 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
1538 conditional compilation.
1539 (base_pool_allocator::remove): Use flag_checking.
1540
1541 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
1542
1543 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
1544
1545 PR middle-end/68079
1546 * dojump.c (do_compare_and_jump): Canonicalize both function and
1547 method types.
1548
1549 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
1550
1551 PR target/68084
1552 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
1553 for =@ccae.
1554
1555 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1556
1557 PR ipa/pr67600
1558 * ipa-polymorphic-call.c
1559 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
1560 instance offset with offset of outer type.
1561
1562 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1563
1564 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
1565
1566 2015-10-23 Caroline Tice <cmtice@google.com>
1567
1568 (from Richard Biener
1569 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
1570 call to iterative_hash_host_wide_int.
1571
1572 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
1573
1574 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
1575 Define as yes.
1576
1577 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1578
1579 * tree-vect-generic.c (expand_vector_operations_1): Check
1580 optab exists before use it.
1581
1582 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1583
1584 * tree-vect-generic.c (expand_vector_condition): Avoid
1585 uninitialized variable warning.
1586
1587 2015-10-23 Jeff Law <law@redhat.com>
1588
1589 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
1590 here. Instead...
1591 (execute_todo): Call it here.
1592 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
1593 statistics
1594 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
1595
1596 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
1597 Szabolcs Nagy <szabolcs.nagy@arm.com>
1598
1599 * config.gcc (enable_secureplt): Add *-linux*-musl*.
1600
1601 2015-10-23 Jeff Law <law@redhat.com>
1602
1603 PR tree-optimization/67830
1604 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
1605 Explicitly verify the mask has no bits outside the type of
1606 the innermost operands.
1607
1608 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
1609 Szabolcs Nagy <szabolcs.nagy@arm.com>
1610
1611 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
1612 (MUSL_DYNAMIC_LINKER64): Define.
1613 (GNU_USER_DYNAMIC_LINKER32): Update.
1614 (GNU_USER_DYNAMIC_LINKER64): Update.
1615 (CHOOSE_DYNAMIC_LINKER): Update.
1616
1617 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
1618 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
1619 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
1620 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
1621 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
1622 (CHOOSE_DYNAMIC_LINKER): Update.
1623 (INCLUDE_DEFAULTS): Redefine.
1624
1625 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
1626
1627 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1628
1629 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
1630 comparing addresses.
1631
1632 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
1633
1634 * fold-const.c (operand_equal_p): Handle matching of vector
1635 constructors.
1636
1637 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
1638
1639 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
1640
1641 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
1642 Andrew Pinski <apinski@cavium.com>
1643
1644 PR rtl-optimization/67736
1645 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
1646 of gen_lowpart.
1647
1648 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1649
1650 PR middle-end/68066
1651 * tree.c (build_truth_vector_type): Support BLK mode
1652 returned for boolean vector.
1653
1654 2015-10-23 Alan Hayward <alan.hayward@arm.com>
1655
1656 PR tree-optimization/65947
1657 * tree-vect-loop.c
1658 (vect_is_simple_reduction_1): Find condition reductions.
1659 (vect_model_reduction_cost): Add condition reduction costs.
1660 (get_initial_def_for_reduction): Add condition reduction initial var.
1661 (vect_create_epilog_for_reduction): Add condition reduction epilog.
1662 (vectorizable_reduction): Condition reduction support.
1663 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
1664 * doc/sourcebuild.texi (Vector-specific attributes): Document
1665 vect_max_reduc
1666
1667 2015-10-23 Richard Biener <rguenther@suse.de>
1668
1669 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
1670 and builtins.def.
1671
1672 2015-10-23 Richard Biener <rguenther@suse.de>
1673 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1674
1675 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
1676 into (A ^ B) - B to match.pd
1677 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
1678
1679 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
1680 New simplifier.
1681 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
1682 New simplifier.
1683 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
1684 New simplifier.
1685 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
1686 New simplifier.
1687 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
1688 INTEGER_CST@1)): New simplifier.
1689
1690 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
1691
1692 * builtins.c (integer_valued_real_p): Move to fold-const.c.
1693 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
1694 (fold_builtin_ceil, fold_builtin_round): Delete.
1695 (fold_builtin_1): Handle constant trunc, floor, ceil and round
1696 arguments here.
1697 * convert.c (convert_to_real): Remove narrowing of rounding
1698 functions.
1699 * fold-const.h (integer_valued_real_unary_p)
1700 (integer_valued_real_binary_p, integer_valued_real_call_p)
1701 (integer_valued_real_single_p, integer_valued_real_p): Declare.
1702 * fold-const.c (tree_single_nonnegative_warnv_p): Move
1703 name_registered_for_update_p check to SSA_NAME case statement.
1704 Don't call tree_simple_nonnegative_warnv_p for SSA names.
1705 (integer_valued_real_unary_p, integer_valued_real_binary_p)
1706 (integer_valued_real_call_p, integer_valued_real_single_p)
1707 (integer_valued_real_invalid_p): New functions.
1708 (integer_valued_real_p): Move from fold-const.c and rework
1709 to call the functions above. Handle SSA names.
1710 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
1711 * gimple-fold.c (gimple_assign_integer_valued_real_p)
1712 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
1713 (gimple_stmt_integer_valued_real_p): New functions.
1714 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
1715 Fold f(x)->x for the same f if x is known to be integer-valued.
1716 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
1717 the result. Canonicalize floor(x) as trunc(x) if x is
1718 nonnegative.
1719
1720 2015-10-23 Tom de Vries <tom@codesourcery.com>
1721
1722 * tree-ssa-structalias.c (intra_create_variable_infos): Use
1723 make_constraint_from.
1724
1725 2015-10-23 Tom de Vries <tom@codesourcery.com>
1726
1727 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
1728 setting of is_full_var in case of a single field.
1729
1730 2015-10-22 Martin Sebor <msebor@redhat.com>
1731
1732 PR driver/68043
1733 * config/i386/i386.opt: Add missing periods to the ends of sentences.
1734 * config/msp430/msp430.opt: Same.
1735
1736 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
1737
1738 * doc/extend.exp (Global Register Variables): Rewrite.
1739
1740 2015-10-22 Jeff Law <law@redhat.com>
1741
1742 * genattrtab.c (main): If we do not have any annul-true or annul-false
1743 slots, then write out a dummy eligible_for_annul_true or
1744 eligible_for_annul_false as needed.
1745
1746 2015-10-22 Nick Clifton <nickc@redhat.com>
1747
1748 * config/msp430/msp430.opt: Add -msilicon-errata and
1749 -msilicon-errata-warn.
1750 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
1751 assembler.
1752 * doc/invoke.texi: Document new options.
1753
1754 2015-10-22 Richard Biener <rguenther@suse.de>
1755
1756 PR tree-optimization/58497
1757 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
1758 (expand_vector_operations_1): Use it. Lower operations on
1759 all uniform vectors to scalar operations if the HW supports it.
1760
1761 2015-10-22 Richard Biener <rguenther@suse.de>
1762
1763 PR tree-optimization/19049
1764 PR tree-optimization/65962
1765 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
1766 to strided accesses if single-element interleaving doesn't work.
1767
1768 2015-10-22 Richard Biener <rguenther@suse.de>
1769
1770 PR middle-end/68046
1771 PR middle-end/61893
1772 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
1773 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
1774 (expand_unop): Likewise.
1775
1776 2015-10-22 Richard Biener <rguenther@suse.de>
1777
1778 * fold-const.c (fold_addr_of_array_ref_difference): Properly
1779 convert operands before folding a MINUS_EXPR.
1780 (fold_binary_loc): Move simplification of MINUS_EXPR on
1781 converted POINTER_PLUS_EXPRs ...
1782 * match.pd: ... here.
1783
1784 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1785
1786 * builtins.c (fold_builtin_tan): Delete.
1787 (fold_builtin_1): Handle constant tan arguments here.
1788 * match.pd: Simplify (tan (atan x)) to x.
1789
1790 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
1791
1792 * builtins.c (fold_builtin_cproj): Delete.
1793 (fold_builtin_1): Handle constant arguments here.
1794 (build_complex_cproj): Move and rename to...
1795 * tree.c: (build_complex_inf): ...this.
1796 * tree.h (build_complex_inf): Declare.
1797 * match.pd: Fold cproj(x)->x if x has no infinity.
1798 Use build_complex_inf for existing cproj rules.
1799
1800 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1801
1802 PR target/68015
1803 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
1804 already have a comparison result.
1805
1806 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1807
1808 PR target/63304
1809 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
1810 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
1811 (aarch64_classify_address): Likewise.
1812 (aarch64_secondary_reload): Likewise.
1813 (aarch64_override_options_after_change_1): Adjust.
1814 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
1815 Use aarch64_nopcrelative_literal_loads.
1816 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
1817 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
1818 Declare.
1819
1820 2015-10-21 Martin Sebor <msebor@redhat.com>
1821
1822 PR driver/68043
1823 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
1824 (print_filtered_help): Reference aliased option's name and encourage
1825 readers to use it in preference to the alias if the former is not
1826 documented. Mention when using an option is diagnosed.
1827 * gcc.c (display_help): End each sentence with a period.
1828
1829 * common.opt: End each sentence that describes an option with
1830 a period.
1831 * config/aarch64/aarch64.opt: Same.
1832 * config/alpha/alpha.opt: Same.
1833 * config/arc/arc.opt: Same.
1834 * config/arm/arm.opt: Same.
1835 * config/avr/avr.opt: Same.
1836 * config/bfin/bfin.opt: Same.
1837 * config/c6x/c6x.opt: Same.
1838 * config/cr16/cr16.opt: Same.
1839 * config/cris/cris.opt: Same.
1840 * config/cris/linux.opt: Same.
1841 * config/darwin.opt: Same.
1842 * config/epiphany/epiphany.opt: Same.
1843 * config/fr30/fr30.opt: Same.
1844 * config/frv/frv.opt: Same.
1845 * config/ft32/ft32.opt: Same.
1846 * config/g.opt: Same.
1847 * config/h8300/h8300.opt: Same.
1848 * config/i386/cygming.opt: Same.
1849 * config/i386/djgpp.opt: Same.
1850 * config/i386/i386.opt: Same.
1851 * config/i386/interix.opt: Same.
1852 * config/i386/mingw-w64.opt: Same.
1853 * config/i386/mingw.opt: Same.
1854 * config/ia64/ia64.opt: Same.
1855 * config/ia64/ilp32.opt: Same.
1856 * config/iq2000/iq2000.opt: Same.
1857 * config/linux.opt: Same.
1858 * config/lm32/lm32.opt: Same.
1859 * config/lynx.opt: Same.
1860 * config/m32c/m32c.opt: Same.
1861 * config/m32r/m32r.opt: Same.
1862 * config/m68k/ieee.opt: Same.
1863 * config/m68k/m68k.opt: Same.
1864 * config/mcore/mcore.opt: Same.
1865 * config/mep/mep.opt: Same.
1866 * config/microblaze/microblaze.opt: Same.
1867 * config/mips/mips.opt: Same.
1868 * config/mmix/mmix.opt: Same.
1869 * config/mn10300/mn10300.opt: Same.
1870 * config/moxie/moxie.opt: Same.
1871 * config/msp430/msp430.opt: Same.
1872 * config/nios2/elf.opt: Same.
1873 * config/nios2/nios2.opt: Same.
1874 * config/nvptx/nvptx.opt: Same.
1875 * config/pa/pa-hpux.opt: Same.
1876 * config/pa/pa-hpux1010.opt: Same.
1877 * config/pa/pa-hpux1111.opt: Same.
1878 * config/pa/pa-hpux1131.opt: Same.
1879 * config/pa/pa.opt: Same.
1880 * config/pa/pa64-hpux.opt: Same.
1881 * config/pdp11/pdp11.opt: Same.
1882 * config/rl78/rl78.opt: Same.
1883 * config/rs6000/476.opt: Same.
1884 * config/rs6000/aix64.opt: Same.
1885 * config/rs6000/darwin.opt: Same.
1886 * config/rs6000/linux64.opt: Same.
1887 * config/rs6000/rs6000.opt: Same.
1888 * config/rs6000/sysv4.opt: Same.
1889 * config/s390/s390.opt: Same.
1890 * config/s390/tpf.opt: Same.
1891 * config/sh/sh.opt: Same.
1892 * config/sol2.opt: Same.
1893 * config/sparc/long-double-switch.opt: Same.
1894 * config/sparc/sparc.opt: Same.
1895 * config/spu/spu.opt: Same.
1896 * config/stormy16/stormy16.opt: Same.
1897 * config/tilegx/tilegx.opt: Same.
1898 * config/tilepro/tilepro.opt: Same.
1899 * config/v850/v850.opt: Same.
1900 * config/vax/vax.opt: Same.
1901 * config/visium/visium.opt: Same.
1902 * config/vms/vms.opt: Same.
1903 * config/vxworks.opt: Same.
1904 * config/xtensa/xtensa.opt: Same.
1905
1906 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1907 Sebastian Pop <s.pop@samsung.com>
1908
1909 * graphite-scop-detection.c (parameter_index_in_region): Update call to
1910 invariant_in_sese_p_rec.
1911 * graphite-sese-to-poly.c (extract_affine): Same.
1912 * sese.c (invariant_in_sese_p_rec): Pass in an extra
1913 parameter has_vdefs.
1914 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
1915 variable depends on virtual definitions in the current region.
1916 * sese.h (invariant_in_sese_p_rec): Update declaration.
1917
1918 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
1919 Sebastian Pop <s.pop@samsung.com>
1920
1921 * graphite-scop-detection.c (build_scops): Do not handle scops
1922 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
1923 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
1924
1925 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
1926
1927 * config.in: Regenerate.
1928 * configure: Regenerate.
1929 * configure.ac (CHECKING_P): Define.
1930 * system.h: Use CHECKING_P.
1931
1932 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1933
1934 PR ipa/67056
1935 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
1936 is negative we don't know the type.
1937 (check_stmt_for_type_change): Skip constructors of non-polymorphic
1938 types as those won't help devirutalization.
1939
1940 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1941
1942 * fold-const.c (operand_equal_p): Add code matching empty constructors.
1943
1944 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
1945
1946 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
1947 comments.
1948 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
1949 Add comments on sign of the result.
1950 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
1951 Recurse on operand #1 instead of operand #0.
1952 <CEIL_MOD_EXPR>: Do not recurse.
1953 <ROUND_MOD_EXPR>: Likewise.
1954
1955 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1956
1957 * cfgrtl.c (pass_free_cfg::execute): Adjust.
1958 * final.c (dbr_sequence_length): Always define.
1959 (shorten_branches): Adjust.
1960 * genattr-common.c (main): Always define DELAY_SLOTS.
1961 * genattr.c (main): Unconditionally declare functions and define
1962 macros related to delay slots.
1963 * genattrtab.c (write_eligible_delay): Adjust.
1964 (main): Always write out delay slot functions.
1965 * opts.c (default_options_table): Adjust.
1966 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
1967 (redirect_with_delay_list_safe_p): Likewise.
1968 (fill_simple_delay_slots): Likewise.
1969 (fill_slots_from_thread): Likewise.
1970 (make_return_insns): Likewise.
1971 (dbr_schedule): Likewise.
1972 (rest_of_handle_delay_slots): Likewise.
1973 (pass_delay_slots::gate): Likewise.
1974 * toplev.c (process_options): Likewise.
1975
1976 2015-10-21 Richard Henderson <rth@redhat.com>
1977
1978 * targhooks.c (default_addr_space_pointer_mode): Remove check
1979 for generic address space.
1980 (default_addr_space_address_mode): Likewise.
1981 (default_addr_space_valid_pointer_mode): Likewise.
1982 (default_addr_space_legitimate_address_p): Likewise.
1983 (default_addr_space_legitimize_address): Likewise.
1984 * target.def (addr_space.pointer_mode): Update documentation
1985 of default behavior.
1986 (addr_space.address_mode): Likewise.
1987 * tm.texi: Update.
1988
1989 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
1990 address spaces.
1991
1992 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1993
1994 * builtins.c (fold_builtin_cabs): Delete.
1995 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1996 * match.pd: Add rules previously handled by fold_builtin_cabs.
1997
1998 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
1999
2000 * fold-const.h (fold_strip_sign_ops): Delete.
2001 * fold-const.c (fold_strip_sign_ops): Likewise.
2002 (fold_unary_loc, fold_binary_loc): Remove calls to it.
2003 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2004 (fold_builtin_ccos): Delete.
2005 (fold_builtin_pow): Don't call fold_strip_sign_ops.
2006 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2007 Remove fndecl argument.
2008 (fold_builtin_1): Update calls accordingly. Handle constant
2009 cos, cosh, ccos and ccosh here.
2010
2011 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2012
2013 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2014 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2015 * common.opt (fssa-backprop): New option.
2016 * fold-const.h (negate_mathfn_p): Declare.
2017 * fold-const.c (negate_mathfn_p): Make public.
2018 * timevar.def (TV_TREE_BACKPROP): New.
2019 * tree-pass.h (make_pass_backprop): Declare.
2020 * passes.def (pass_backprop): Add.
2021 * gimple-ssa-backprop.c: New file.
2022
2023 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2024 Sebastian Pop <s.pop@samsung.com>
2025
2026 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2027 Do not call create_empty_if_region_on_edge when cond_expr is true.
2028 (translate_isl_ast_node_for): Check whether a guard has been generated.
2029
2030 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2031
2032 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2033 (operator=): Removed.
2034 (dr_info): Make alias_set number the last argument with default
2035 value of invalid_alias_set.
2036 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2037 of dr_info.
2038 (rewrite_reductions_out_of_ssa): Iterate only through the
2039 basic blocks which are inside region.
2040 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2041 * sese.h (struct sese_l): Removed assignment operator.
2042 (split_region_for_bb): Removed dead code.
2043
2044 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2045
2046 * graphite-poly.h (struct dr_info): Removed conversion constructor.
2047 (struct scop): Renamed scop::region to scop::scop_info
2048 (scop_set_region): Same.
2049 (SCOP_REGION): Removed
2050 (SCOP_CONTEXT): Removed.
2051 (POLY_SCOP_P): Removed.
2052 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2053 Rename scop->region to scop->scop_info.
2054 (add_parameters_to_ivs_params): Same.
2055 (graphite_regenerate_ast_isl): Same.
2056 * graphite-poly.c (new_scop): Same.
2057 (free_scop): Same.
2058 (print_scop_params): Same.
2059 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2060 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2061 (dot_all_scops_1): Rename scop->region to scop->scop_info.
2062 (scop_detection::nb_pbbs_in_loops): Same.
2063 (find_scop_parameters): Same.
2064 (try_generate_gimple_bb): Same.
2065 (gather_bbs::before_dom_children): Same.
2066 (gather_bbs::after_dom_children): Same.
2067 (build_scops): Same.
2068 * graphite-sese-to-poly.c (build_scop_scattering): Same.
2069 (extract_affine_chrec): Same.
2070 (extract_affine): Same.
2071 (set_scop_parameter_dim): Same.
2072 (build_loop_iteration_domains): Same.
2073 (create_pw_aff_from_tree): Same.
2074 (add_param_constraints): Same.
2075 (build_scop_iteration_domain): Same.
2076 (build_scop_drs): Same.
2077 (analyze_drs_in_stmts): Same.
2078 (insert_out_of_ssa_copy_on_edge): Same.
2079 (rewrite_close_phi_out_of_ssa):Same.
2080 (rewrite_reductions_out_of_ssa):Same.
2081 (handle_scalar_deps_crossing_scop_limits):Same.
2082 (rewrite_cross_bb_scalar_deps):Same.
2083 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2084 (build_poly_scop):Same.
2085 (build_alias_set): Use pointer to dr_info.
2086 * graphite.c (print_graphite_scop_statistics):
2087 (graphite_transform_loops):
2088 * sese.h (struct sese_l): Remove conversion constructor.
2089
2090 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2091
2092 PR middle-end/67966
2093 * tree.c (verify_type): Verify that TYPE_MODE match
2094 between TYPE_CANONICAL and type.
2095 * expr.c (store_expr_with_bounds): Revert my previous change.
2096 * expmed.c (store_bit_field_1): Revert prevoius change.
2097 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2098 to match for all types.
2099
2100 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
2101
2102 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2103 nesting.
2104
2105 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2106
2107 * doc/tm.texi: Regenerated.
2108 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2109 * stor-layout.c (layout_type): Use mode to get vector mask size.
2110 * target.def (get_mask_mode): New.
2111 * targhooks.c (default_get_mask_mode): New.
2112 * targhooks.h (default_get_mask_mode): New.
2113 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
2114 for boolean vector.
2115 * tree.c (MAX_BOOL_CACHED_PREC): New.
2116 (nonstandard_boolean_type_cache): New.
2117 (build_nonstandard_boolean_type): New.
2118 (make_vector_type): Vector mask has no canonical type.
2119 (build_truth_vector_type): New.
2120 (build_same_sized_truth_vector_type): New.
2121 (truth_type_for): Support vector masks.
2122 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2123 (build_truth_vector_type): New.
2124 (build_same_sized_truth_vector_type): New.
2125 (build_nonstandard_boolean_type): New.
2126 * tree-cfg.c (verify_gimple_comparison) Require boolean
2127 vector type for vector comparison.
2128 (verify_gimple_assign_ternary): Likewise.
2129 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2130 condition operand.
2131 * tree-vect-stmts.c (vectorizable_condition): Use boolean
2132 vector type for vector comparison.
2133 * tree-vect-generic.c (elem_op_func): Add new operand to hold
2134 vector type.
2135 (do_unop): Adjust to modified function type.
2136 (do_binop): Likewise.
2137 (do_plus_minus): Likewise.
2138 (do_negate); Likewise.
2139 (expand_vector_piecewise): Likewise.
2140 (do_cond): Likewise.
2141 (do_compare): Use comparison instead of condition.
2142 (expand_vector_divmod): Use boolean vector type for comparison.
2143 (expand_vector_operations_1): Skip scalar mask operations.
2144
2145 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2146
2147 * omp-low.c (simd_clone_create): Set in_other_partition
2148 for created clones.
2149
2150 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2151
2152 * doc/extend.exp (Local Register Variables): Rewrite.
2153
2154 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2155
2156 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2157 and x*x in cases where the operands are sign ops. Extend these
2158 rules to handle copysign as a sign op (including for cos, cosh
2159 and pow, which already treated negate and abs as sign ops).
2160
2161 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
2162
2163 PR target/68018
2164 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2165 for 64-bit MS_ABI targets also when default incoming stack boundary
2166 is overriden.
2167
2168 2015-10-21 Richard Biener <rguenther@suse.de>
2169
2170 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2171 cond stmts, enhanced and split out from ...
2172 (vn_phi_eq): ... here.
2173
2174 2015-10-21 Richard Biener <rguenther@suse.de>
2175
2176 PR middle-end/68031
2177 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2178 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2179 (tree_single_nonnegative_warnv_p): ... here. For SSA names
2180 make sure they are not registered for update.
2181
2182 2015-10-21 Richard Biener <rguenther@suse.de>
2183
2184 PR tree-optimization/68026
2185 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2186 unsigned VARYING values.
2187
2188 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2189
2190 * asan.c (asan_emit_stack_protection): Don't pass local stack to
2191 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2192 NULL and use local stack than.
2193 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2194 in addition to __asan_init.
2195 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2196 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2197 * asan.h (asan_intercepted_p): Handle new string builtins.
2198 * ubsan.c (ubsan_use_new_style_p): New function.
2199 (ubsan_instrument_float_cast): If location is unknown, assign
2200 input_location to loc. Propagate loc to ubsan_create_data if
2201 ubsan_use_new_style_p returned true.
2202
2203 2015-10-21 Jeff Law <law@redhat.com>
2204
2205 * Makefile.in (OBJS): Remove sched-vis.c
2206 * sched-vis.c: Removed. Code moved into...
2207 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
2208 * rtl.h: Remove prototypes for functions now living in print-rtl.c
2209 * print-rtl.h Add prototypes for new functions in print-rtl.c.
2210 * auto-inc-dec.c: Include print-rtl.h
2211 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2212 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2213
2214 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2215 ATTRIBUTE_UNUSED.
2216
2217 2015-10-21 Richard Biener <rguenther@suse.de>
2218 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2219
2220 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2221 to match.pd.
2222 Move (a * (1 << b)) is (a << b) to match.pd.
2223 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2224 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2225 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2226
2227 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2228 New simplifier.
2229 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2230 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2231 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2232 : New simplifier.
2233 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2234 New simplifier.
2235 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2236
2237 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
2238 Szabolcs Nagy <szabolcs.nagy@arm.com>
2239 Alan Modra <amodra@gmail.com>
2240
2241 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2242 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2243 (LINK_SPEC): Add %(link_secure_plt).
2244 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2245 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2246
2247 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
2248 Szabolcs Nagy <szabolcs.nagy@arm.com>
2249
2250 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
2251 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
2252
2253 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2254
2255 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
2256 New function.
2257 (fusion_load_store): Use it.
2258 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
2259 ldp and stp in VD modes.
2260 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
2261 (store_pair<mode>, VD): Likewise.
2262
2263 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
2264
2265 PR rtl-optimization/67609
2266 * lra-splill.c (lra_final_code_change): Don't remove all
2267 sub-registers.
2268
2269 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2270
2271 * simplify-rtx.c (simplify_binary_operation): If either operand was
2272 a constant pool reference use them if all other simplifications failed.
2273
2274 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2275
2276 * config/aarch64/aarch64.md
2277 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
2278 * config/aarch64/aarch64-simd.md
2279 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
2280 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
2281 (aarch64_fpconst_pow_of_2): New function.
2282 (aarch64_vec_fpconst_pow_of_2): Likewise.
2283 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
2284 prototype.
2285 (aarch64_vec_fpconst_pow_of_2): Likewise.
2286 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
2287 (aarch64_fp_vec_pow2): Likewise.
2288
2289 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
2290
2291 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
2292 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
2293 * config/alpha/alpha.c (alpha_function_arg_advance): Update
2294 ALPHA_ARG_SIZE usage.
2295 (alpha_arg_partial_bytes): Ditto.
2296
2297 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2298
2299 PR target/66810
2300 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
2301 error_mark_node decls.
2302
2303 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
2304
2305 PR target/67963
2306 PR target/67985
2307 * common/config/i386/i386-common.c (ix86_handle_option): Remove
2308 OPT_miamcu handling.
2309 * config/i386/i386.c (PTA_NO_80387): New macro.
2310 (processor_alias_table): Add PTA_NO_80387 to lakemont.
2311 (ix86_option_override_internal): Update MASK_80387 from
2312 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
2313 SSE math only if 80387 is supported. Don't change
2314 MASK_FLOAT_RETURNS.
2315 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
2316 80387 is supported.
2317 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
2318 if TARGET_80387 is true and TARGET_IAMCU is false.
2319 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
2320 is true and TARGET_IAMCU_P is false.
2321
2322 2015-10-20 Richard Biener <rguenther@suse.de>
2323
2324 PR tree-optimization/68017
2325 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
2326
2327 2015-10-20 Martin Liska <mliska@suse.cz>
2328
2329 * cgraphclones.c (cgraph_node::create_virtual_clone):
2330 Verify cgraph_node.local.versionable instead of calling
2331 tree_versionable_function_p.
2332 * ipa-cp.c (determine_versionability): Save the information
2333 to ipa_node_params summary.
2334 (ipcp_versionable_function_p): Use it.
2335 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
2336 (ipcp_generate_summary): Do not compute cgraph_node
2337 versionability.
2338 * ipa-inline-analysis.c (inline_generate_summary): Compute
2339 versionability for all cgraph nodes.
2340 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
2341 ipa_node_params::versionability.
2342 * ipa-prop.h (struct ipa_node_params): Declare it.
2343
2344 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2345
2346 PR other/67868
2347 * varasm.c (assemble_variable): Move special vtv handling to..
2348 (handle_vtv_comdat_sections): .. here. New function.
2349 (output_object_block): Handle vtv sections.
2350
2351 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
2352
2353 PR target/66912
2354 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
2355
2356 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
2357
2358 * doc/extend.texi: Update documentation WRT inline functions.
2359
2360 2015-10-20 Alan Modra <amodra@gmail.com>
2361
2362 PR go/66870
2363 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
2364 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
2365 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2366
2367 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
2368
2369 PR rtl-optimization/66790
2370 * df.h (DF_MIR): New macro.
2371 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
2372 (DF_MIR_INFO_BB): New macro.
2373 (DF_MIR_IN, DF_MIR_OUT): New macros.
2374 (struct df_mir_bb_info): New.
2375 (df_mir): New macro.
2376 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
2377 declarations.
2378 (df_mir_get_bb_info): New.
2379 * df-problems.c (struct df_mir_problem_data): New.
2380 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
2381 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
2382 df_mir_confluence_0, df_mir_confluence_n,
2383 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
2384 df_mir_bottom_dump, df_mir_verify_solution_start,
2385 df_mir_verify_solution_end): New.
2386 (problem_MIR): New.
2387 (df_mir_add_problem, df_mir_simulate_one_insn): New.
2388 * timevar.def (TV_DF_MIR): New.
2389 * ree.c: Include bitmap.h
2390 (add_removable_extension): Add an INIT_REGS parameter. Use it
2391 to skip zero-extensions that may get an uninitialized register.
2392 (find_removable_extensions): Compute must-initialized registers
2393 using the MIR dataflow problem. Update the call to
2394 add_removable_extension.
2395 (find_and_remove_re): Call df_mir_add_problem.
2396
2397 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
2398
2399 * common/config/mn10300/mn10300-common.c
2400 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
2401 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
2402
2403 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
2404
2405 * doc/extend.texi (Explicit Register Variables): Simplify and
2406 avoid unnecessary and confusion abbreviations. Update cross
2407 references.
2408 doc/implement-c.tex: Update cross reference.
2409
2410 2015-10-19 Jeff Law <law@redhat.com>
2411
2412 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
2413 that create irreducible loops unless the path elimiantes a multiway
2414 branch.
2415
2416 2015-10-19 Richard Biener <rguenther@suse.de>
2417
2418 PR tree-optimization/67975
2419 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
2420 * tree-cfg.c (extract_true_false_controlled_edges): Split out
2421 core worker from ...
2422 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
2423 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
2424 instead of block number for PHIs with two or one args.
2425 (vn_phi_eq): Compare edge predicates of PHIs that are in different
2426 blocks.
2427
2428 2015-10-19 Richard Biener <rguenther@suse.de>
2429
2430 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
2431 (gimple_stmt_nonnegative_warnv_p): Use it.
2432 * match.pd (CPROJ): New operator list.
2433 (cproj (complex ...)): Move simplifications from ...
2434 * builtins.c (fold_builtin_cproj): ... here.
2435
2436 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2437
2438 * config/i386/i386.c (ix86_expand_vector_move): Use
2439 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
2440 alignment.
2441
2442 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2443
2444 * doc/invoke.texi: Replace @optindex with @opindex.
2445
2446 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
2447
2448 PR target/67995
2449 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
2450 arch= is set, clear all bits in x_ix86_isa_flags, except for
2451 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
2452
2453 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
2454
2455 PR middle-end/68002
2456 * common.opt (fkeep-static-functions): New option.
2457 * doc/invoke.texi: Document it.
2458 * cgraphunit.c (cgraph_node::finalize_function): Use it.
2459
2460 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2461
2462 * sched-int.h (struct autopref_multipass_data_): Remove offset
2463 field. Add min_offset, max_offset, multi_mem_insn_p fields.
2464 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
2465 (autopref_multipass_init): Use it. Handle PARALLEL sets.
2466 (autopref_rank_data): New function.
2467 (autopref_rank_for_schedule): Use it.
2468 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
2469
2470 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
2471
2472 PR other/65800
2473 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
2474
2475 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2476
2477 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
2478 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
2479 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
2480 (STANDARD_STARTFILE_PREFIX_1): New.
2481 (STANDARD_STARTFILE_PREFIX_2): New.
2482
2483 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2484
2485 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
2486 (darwin_driver_init): Note a version-min when provided on the c/l.
2487 * config/darwin.h (%darwin_minversion): Remove.
2488 * config/i386/darwin.h: Likewise.
2489 * config/rs6000/darwin.h: Likewise.
2490 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
2491 rather than an arbitrary constant.
2492
2493 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2494
2495 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
2496 PPC, detect conflicts between -arch and multilib settings. Detect
2497 and warn about conflicts between multiple -arch definitions.
2498
2499 2015-10-18 Iain Sandoe <iain@codesourcery.com>
2500
2501 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
2502
2503 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2504
2505 * lra-constraints.c (add_next_usage_insn): Change argument type
2506 from rtx to rtx_insn *.
2507
2508 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
2509
2510 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
2511 for Lakemont.
2512
2513 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
2514
2515 * config/tilepro/gen-mul-tables.cc: Adjust include files.
2516 * config/tilegx/mul-tables.c: Regenerate.
2517 * config/tilepro/mul-tables.c: Regenerate.
2518
2519 * config/tilegx/tilegx-c.c: Adjust include files.
2520 * config/tilegx/tilegx.c: Likewise.
2521 * config/tilepro/tilepro-c.c: Likewise.
2522 * config/tilepro/tilepro.c: Likewise.
2523 * config/aarch64/aarch64-builtins.c: Likewise.
2524 * config/aarch64/aarch64.c: Likewise.
2525 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2526 * config/alpha/alpha.c: Likewise.
2527 * config/arc/arc.c: Likewise.
2528 * config/arm/aarch-common.c: Likewise.
2529 * config/arm/arm-builtins.c: Likewise.
2530 * config/arm/arm-c.c: Likewise.
2531 * config/arm/arm.c: Likewise.
2532 * config/avr/avr-c.c: Likewise.
2533 * config/avr/avr-devices.c: Likewise.
2534 * config/avr/avr-log.c: Likewise.
2535 * config/avr/avr.c: Likewise.
2536 * config/bfin/bfin.c: Likewise.
2537 * config/c6x/c6x.c: Likewise.
2538 * config/cr16/cr16.c: Likewise.
2539 * config/cris/cris.c: Likewise.
2540 * config/darwin-c.c: Likewise.
2541 * config/darwin-driver.c: Likewise.
2542 * config/darwin.c: Likewise.
2543 * config/default-c.c: Likewise.
2544 * config/epiphany/epiphany.c: Likewise.
2545 * config/epiphany/mode-switch-use.c: Likewise.
2546 * config/epiphany/resolve-sw-modes.c: Likewise.
2547 * config/fr30/fr30.c: Likewise.
2548 * config/frv/frv.c: Likewise.
2549 * config/ft32/ft32.c: Likewise.
2550 * config/glibc-c.c: Likewise.
2551 * config/h8300/h8300.c: Likewise.
2552 * config/i386/host-cygwin.c: Likewise.
2553 * config/i386/host-mingw32.c: Likewise.
2554 * config/i386/i386-c.c: Likewise.
2555 * config/i386/i386.c: Likewise.
2556 * config/i386/msformat-c.c: Likewise.
2557 * config/i386/winnt-cxx.c: Likewise.
2558 * config/i386/winnt-stubs.c: Likewise.
2559 * config/i386/winnt.c: Likewise.
2560 * config/ia64/ia64-c.c: Likewise.
2561 * config/ia64/ia64.c: Likewise.
2562 * config/iq2000/iq2000.c: Likewise.
2563 * config/lm32/lm32.c: Likewise.
2564 * config/m32c/m32c-pragma.c: Likewise.
2565 * config/m32c/m32c.c: Likewise.
2566 * config/m32r/m32r.c: Likewise.
2567 * config/mcore/mcore.c: Likewise.
2568 * config/mep/mep-pragma.c: Likewise.
2569 * config/mep/mep.c: Likewise.
2570 * config/microblaze/microblaze-c.c: Likewise.
2571 * config/microblaze/microblaze.c: Likewise.
2572 * config/mips/mips-tables.opt
2573 * config/mips/mips.c: Likewise.
2574 * config/mmix/mmix.c: Likewise.
2575 * config/mn10300/mn10300.c: Likewise.
2576 * config/moxie/moxie.c: Likewise.
2577 * config/msp430/msp430-c.c: Likewise.
2578 * config/msp430/msp430.c: Likewise.
2579 * config/nds32/nds32-cost.c: Likewise.
2580 * config/nds32/nds32-fp-as-gp.c: Likewise.
2581 * config/nds32/nds32-intrinsic.c: Likewise.
2582 * config/nds32/nds32-isr.c: Likewise.
2583 * config/nds32/nds32-md-auxiliary.c: Likewise.
2584 * config/nds32/nds32-memory-manipulation.c: Likewise.
2585 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2586 * config/nds32/nds32-predicates.c: Likewise.
2587 * config/nds32/nds32.c: Likewise.
2588 * config/nios2/nios2.c: Likewise.
2589 * config/nvptx/mkoffload.c: Likewise.
2590 * config/nvptx/nvptx.c: Likewise.
2591 * config/pa/pa.c: Likewise.
2592 * config/pdp11/pdp11.c: Likewise.
2593 * config/rl78/rl78-c.c: Likewise.
2594 * config/rl78/rl78.c: Likewise.
2595 * config/rs6000/host-darwin.c: Likewise.
2596 * config/rs6000/rs6000-c.c: Likewise.
2597 * config/rs6000/rs6000-linux.c: Likewise.
2598 * config/rs6000/rs6000.c: Likewise.
2599 * config/rx/rx.c: Likewise.
2600 * config/s390/s390-c.c: Likewise.
2601 * config/s390/s390.c: Likewise.
2602 * config/sh/sh-c.c: Likewise.
2603 * config/sh/sh-mem.cc: Likewise.
2604 * config/sh/sh.c: Likewise.
2605 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2606 * config/sh/sh_treg_combine.cc: Likewise.
2607 * config/sol2-c.c: Likewise.
2608 * config/sol2-cxx.c: Likewise.
2609 * config/sol2-stubs.c: Likewise.
2610 * config/sol2.c: Likewise.
2611 * config/sparc/sparc-c.c: Likewise.
2612 * config/sparc/sparc.c: Likewise.
2613 * config/spu/spu-c.c: Likewise.
2614 * config/spu/spu.c: Likewise.
2615 * config/stormy16/stormy16.c: Likewise.
2616 * config/v850/v850-c.c: Likewise.
2617 * config/v850/v850.c: Likewise.
2618 * config/vax/vax.c: Likewise.
2619 * config/visium/visium.c: Likewise.
2620 * config/vms/vms-c.c: Likewise.
2621 * config/vms/vms.c: Likewise.
2622 * config/vxworks.c: Likewise.
2623 * config/winnt-c.c: Likewise.
2624 * config/xtensa/xtensa.c: Likewise.
2625
2626 2015-10-16 Christian Bruel <christian.bruel@st.com>
2627
2628 PR target/67745
2629 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
2630 (FUNCTION_BOUNDARY_P): New macro:
2631 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
2632 New hook.
2633 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
2634 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
2635 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
2636 * gcc/function.c (allocate_struct_function): Call
2637 relayout_function hook.
2638 * gcc/passes.c (rest_of_decl_compilation): Likewise.
2639
2640 2015-10-16 Christian Bruel <christian.bruel@st.com>
2641
2642 PR target/67745
2643 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
2644 * config/arm/arm.c (arm_option_override_internal): Call
2645 arm_override_options_after_change_1.
2646 (arm_override_options_after_change): New function.
2647 (arm_override_options_after_change_1): Likewise.
2648 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
2649
2650 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2651
2652 Revert:
2653 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
2654 empty constructors.
2655
2656 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
2657
2658 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
2659 argument is an ADDR_EXPR.
2660
2661 2015-10-16 Richard Biener <rguenther@suse.de>
2662
2663 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
2664 and get rid of force_gimple_operand_gsi.
2665 (gimple_fold_builtin_memory_chk): Likewise.
2666 (gimple_fold_builtin_stxcpy_chk): Likewise.
2667 (rewrite_to_defined_overflow): Likewise.
2668 (gimple_convert_to_ptrofftype): New function.
2669 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
2670
2671 2015-10-16 Richard Biener <rguenther@suse.de>
2672
2673 * tree-nested.h (build_addr): Adjust prototype.
2674 * tree-nested.c (build_addr): Remove context argument and use
2675 mark_addressable.
2676 (get_static_chain): Adjust calls to build_addr.
2677 (convert_nl_goto_reference): Likewise.
2678 (convert_tramp_reference_op): Likewise.
2679 (finalize_nesting_tree_1): Likewise.
2680 * value-prof.c (gimple_ic): Likewise.
2681 * gimple-low.c (lower_builtin_setjmp): Likewise.
2682 * tree-parloops.c (take_address_of): Likewise.
2683 (create_call_for_reduction_1): Likewise.
2684 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
2685 (gimple_gen_ic_func_profiler): Likewise.
2686
2687 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2688
2689 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
2690 empty constructors.
2691
2692 2015-10-16 Michael Collison <michael.collison@linaro.org>
2693 Andrew Pinski <andrew.pinski@caviumnetworks.com>
2694
2695 * match.pd ((x < y) && (x < z) -> x < min (y,z),
2696 (x > y) and (x > z) -> x > max (y,z))
2697
2698 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
2699 Szabolcs Nagy <szabolcs.nagy@arm.com>
2700
2701 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
2702 (DYNAMIC_LINKER): Renamed to ...
2703 (GLIBC_DYNAMIC_LINKER): This.
2704 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
2705
2706 2015-10-15 Marek Polacek <polacek@redhat.com>
2707
2708 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
2709 gimple_call_builtin instead of is_gimple_call.
2710
2711 2015-10-15 Richard Biener <rguenther@suse.de>
2712
2713 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
2714
2715 2015-10-15 Richard Biener <rguenther@suse.de>
2716
2717 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
2718 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
2719 * tree-vect-loop.c (get_initial_def_for_induction): Drop
2720 use of force_gimple_operand in favor of gimple_build.
2721 Use vect_get_new_ssa_name.
2722 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
2723 (vectorizable_mask_load_store): Likewise.
2724 (vectorizable_call): Likewise.
2725 (vectorizable_store): Likewise.
2726 (vectorizable_load): Likewise.
2727 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
2728
2729 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
2730
2731 PR tree-optimization/67945
2732 * tree-pass.h (PROP_gimple_opt_math): New property flag.
2733 * generic-match-head.c (canonicalize_math_p): New function.
2734 * gimple-match-head.c: Include tree-pass.h.
2735 (canonicalize_math_p): New function.
2736 * match.pd: Group math built-in rules into simplifications
2737 and canonicalizations. Guard the latter with canonicalize_math_p.
2738 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
2739 PROP_gimple_opt_math property.
2740
2741 2015-10-15 Marek Polacek <polacek@redhat.com>
2742
2743 PR tree-optimization/67953
2744 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
2745
2746 2015-10-15 Jiong Wang <jiong.wang@arm.com>
2747
2748 * config.gcc: Recognize "." in architecture base name for AArch64.
2749
2750 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2751
2752 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
2753 ROUND_UP macro.
2754 * config/mips/mips.c (mips_setup_incoming_varargs): Use
2755 ROUND_DOWN to calculate off.
2756 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
2757 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
2758 rounded_size.
2759
2760 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
2761
2762 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
2763
2764 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
2765 Torvald Riegel <triegel@redhat.com>
2766
2767 PR target/67281
2768 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
2769 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2770 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
2771 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
2772 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
2773 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
2774 trechkpt, treclaim, tsr, ttest): New define_expands.
2775 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2776 __TM_FENCE__ for htm.
2777 * doc/extend.texi: Update documentation for htm builtins.
2778
2779 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
2780
2781 PR target/67967
2782 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
2783 REG_CFA_EXPRESSION to aligned SSE stores.
2784
2785 2015-10-14 Jeff Law <law@redhat.com>
2786
2787 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
2788 num_threaded_edges for successful FSM threads too.
2789
2790 2015-10-14 Richard Biener <rguenther@suse.de>
2791
2792 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
2793 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
2794 (vect_get_vec_def_for_operand): Remove unused parameter.
2795 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
2796 (vect_create_epilog_for_reduction): Likewise.
2797 (vectorizable_reduction): Likewise.
2798 (vectorizable_live_operation): Likewise.
2799 * tree-vect-patterns.c (type_conversion_p): Likewise.
2800 (vect_recog_vector_vector_shift_pattern): Likewise.
2801 (check_bool_pattern): Likewise.
2802 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2803 (vect_analyze_slp_cost_1): Likewise.
2804 * tree-vect-stmts.c (process_use): Likewise.
2805 (vect_get_vec_def_for_operand): Do not handle reductions.
2806 (vect_get_vec_defs): Adjust.
2807 (vectorizable_mask_load_store): Likewise.
2808 (vectorizable_call): Likewise.
2809 (vectorizable_simd_clone_call): Likewise.
2810 (vect_get_loop_based_defs): Likewise.
2811 (vectorizable_conversion): Likewise.
2812 (vectorizable_assignment): Likewise.
2813 (vectorizable_shift): Likewise.
2814 (vectorizable_operation): Likewise.
2815 (vectorizable_store): Likewise.
2816 (vectorizable_load): Likewise.
2817 (vect_is_simple_cond): Likewise.
2818 (vectorizable_condition): Likewise.
2819 (vect_is_simple_use): Remove unused parameters.
2820 (vect_is_simple_use_1): Adjust and rename.
2821
2822 2015-10-14 Richard Biener <rguenther@suse.de>
2823
2824 PR tree-optimization/67915
2825 * match.pd: Handle comparisons of addresses of STRING_CSTs.
2826 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
2827 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
2828 stmt folding in favor of GIMPLE one.
2829
2830 2015-10-14 Marek Polacek <polacek@redhat.com>
2831
2832 PR tree-optimization/67815
2833 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
2834 (reassociate_bb): Call it.
2835
2836 2015-10-14 Richard Biener <rguenther@suse.de>
2837
2838 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2839 Reset info at start.
2840 (vect_analyze_group_access_1): Add debug print.
2841 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
2842 (vect_compute_single_scalar_iteration_cost): ... to this.
2843 (vect_analyze_loop_2): Adjust.
2844 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
2845 * tree-vectorizer.h: ... here.
2846 (add_stmt_info_to_vec): Remove.
2847 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
2848
2849 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
2850
2851 * targhooks.c (default_target_option_pragma_parse): Do not warn if
2852 called on behalf of "#pragma GCC pop_options".
2853
2854 2015-10-14 Tom de Vries <tom@codesourcery.com>
2855
2856 * cfganal.c (verify_no_unreachable_blocks): New function.
2857 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
2858 verify_no_unreachable_blocks.
2859 cfganal.h (verify_no_unreachable_blocks): Declare.
2860
2861 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
2862
2863 * common.opt: Add flag_checking.
2864 * system.h (CHECKING_P): Define.
2865
2866 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2867 Aldy Hernandez <aldyh@redhat.com>
2868 Ilya Verbin <ilya.verbin@intel.com>
2869
2870 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
2871 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
2872 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
2873 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
2874 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
2875 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
2876 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
2877 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
2878 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
2879 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
2880 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
2881 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
2882 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
2883 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2884 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
2885 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2886 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2887 (struct cgraph_simd_clone_arg): Adjust comment.
2888 * coretypes.h (struct gomp_ordered): New forward decl.
2889 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
2890 set critical clauses to it.
2891 (gimple_build_omp_ordered): Return gomp_ordered * instead of
2892 gimple *. Add CLAUSES argument, set ordered clauses to it.
2893 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
2894 GIMPLE_OMP_ORDERED.
2895 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
2896 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
2897 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
2898 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
2899 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
2900 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
2901 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
2902 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
2903 renumber
2904 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
2905 (gomp_critical): Add clauses field.
2906 (gomp_ordered): New struct.
2907 (is_a_helper <gomp_ordered *>::test): New inline.
2908 (gimple_build_omp_critical): Add CLAUSES argument.
2909 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
2910 instead of gimple *.
2911 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
2912 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
2913 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
2914 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
2915 inline functions.
2916 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
2917 (dump_gimple_omp_target): Handle enter data and exit data.
2918 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
2919 (dump_gimple_omp_critical): Print clauses.
2920 (dump_gimple_omp_ordered): New function.
2921 (dump_gimple_omp_task): Handle taskloop.
2922 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
2923 GIMPLE_OMP_ORDERED.
2924 * gimple-walk.c (walk_gimple_op): Walk clauses on
2925 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
2926 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
2927 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
2928 (struct gimplify_omp_ctx): Add loop_iter_var,
2929 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
2930 and target_firstprivatize_array_bases fields.
2931 (delete_omp_context): Release loop_iter_var.
2932 (gimplify_bind_expr): Handle ORT_NONE.
2933 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
2934 ORT_COMBINED_TARGET.
2935 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
2936 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
2937 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
2938 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
2939 ctx->target_map_scalars_firstprivate.
2940 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
2941 data sharing clauses. For data sharing clause with VLA decl
2942 on omp target/target data don't add firstprivate for the pointer.
2943 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
2944 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
2945 the addition of ORT_COMBINED_TARGET.
2946 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
2947 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
2948 pointers as zero length array sections and
2949 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
2950 data sharing.
2951 (omp_check_private): Handle omp_member_access_dummy_var vars.
2952 (find_decl_expr): New function.
2953 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
2954 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
2955 Handle OMP_CLAUSE_GANG separately. Handle
2956 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2957 clauses. Diagnose linear clause on combined
2958 distribute {, parallel for} simd construct, unless it is the loop
2959 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
2960 Handle map clauses with COMPONENT_REF. Initialize
2961 ctx->target_map_scalars_firstprivate,
2962 ctx->target_firstprivatize_array_bases and
2963 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
2964 linear clause even to target region if combined. Remove
2965 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
2966 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
2967 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
2968 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
2969 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
2970 For linear clause on worksharing loop combined with parallel add
2971 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
2972 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
2973 omp_member_access_dummy_var vars. Add lastprivate clause to outer
2974 taskloop if needed.
2975 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
2976 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
2977 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
2978 GOMP_MAP_POINTER.
2979 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
2980 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
2981 in target body. Handle removal of struct mapping if struct is not
2982 seen in target body. Remove GOMP_MAP_STRUCT map clause on
2983 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
2984 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
2985 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
2986 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
2987 clause appear together. Handle
2988 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
2989 clause if it has map-type-modifier always. Handle
2990 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
2991 clauses.
2992 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
2993 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
2994 callers.
2995 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
2996 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
2997 iterators in doacross loops.
2998 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
2999 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
3000 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
3001 for the addition of ORT_COMBINED_TARGET.
3002 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3003 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
3004 and OMP_TARGET_EXIT_DATA.
3005 (gimplify_omp_ordered): New function.
3006 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3007 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
3008 Gimplify clauses on OMP_CRITICAL.
3009 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3010 expand_GOMP_SIMD_ORDERED_END): New functions.
3011 * internal-fn.def (GOMP_SIMD_ORDERED_START,
3012 GOMP_SIMD_ORDERED_END): New internal functions.
3013 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3014 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3015 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3016 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3017 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3018 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3019 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3020 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3021 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3022 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3023 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3024 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3025 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3026 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3027 adjust type.
3028 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3029 GOMP_target_data_41, adjust type.
3030 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3031 GOMP_target_update_41, adjust type.
3032 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3033 field.
3034 (struct omp_for_data): Add ordered and simd_schedule fields.
3035 (omp_member_access_dummy_var, unshare_and_remap_1,
3036 unshare_and_remap, is_taskloop_ctx): New functions.
3037 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3038 (extract_omp_for_data): Handle taskloops and doacross loops
3039 and simd schedule modifier.
3040 (omp_adjust_chunk_size): New function.
3041 (get_ws_args_for): Use it.
3042 (lookup_sfield): Change first argument to splay_tree_key,
3043 add overload with first argument tree.
3044 (maybe_lookup_field): Likewise.
3045 (use_pointer_for_field): Handle omp_member_access_dummy_var.
3046 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3047 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3048 (build_outer_var_ref): Add LASTPRIVATE argument, handle
3049 taskloops and omp_member_access_dummy_var vars.
3050 (build_sender_ref): Change first argument to splay_tree_key,
3051 add overload with first argument tree.
3052 (install_var_field): For mask & 8 use &DECL_UID as key instead
3053 of the tree itself.
3054 (fixup_child_record_type): Const qualify *.omp_data_i.
3055 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3056 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3057 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3058 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3059 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3060 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3061 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3062 kinds.
3063 (add_taskreg_looptemp_clauses): New function.
3064 (scan_omp_parallel): Use it.
3065 (scan_omp_task): Likewise.
3066 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3067 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3068 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3069 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
3070 sandwiched taskloop constructs. Type check
3071 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
3072 region. Diagnose depend(source) or depend(sink:...) on
3073 target constructs or task/taskloop.
3074 (handle_simd_reference): Use get_name.
3075 (lower_rec_input_clauses): Likewise. Ignore all
3076 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3077 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
3078 before passing it to omp_clause_{default,copy}_ctor. Handle
3079 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
3080 lastprivate_firstprivate flag for linear that needs copyin and
3081 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3082 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3083 on taskloop lookup decl in outer context. Pass true to
3084 build_outer_var_ref lastprivate argument. Handle
3085 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3086 outside of outer taskloop for.
3087 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3088 OMP_CLAUSE_DECL.
3089 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3090 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
3091 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
3092 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
3093 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3094 abstract origin. Handle omp_member_access_dummy_var vars.
3095 (expand_parallel_call): Use expand_omp_build_assign.
3096 (expand_task_call): Handle taskloop construct expansion. Add
3097 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
3098 integers. Add priority argument to GOMP_task* calls. Or in
3099 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3100 GOMP_task call.
3101 (expand_omp_build_assign): Add prototype. Add AFTER
3102 argument, if true emit statements after *GSI_P and continue linking.
3103 (expand_omp_taskreg): Adjust expand_task_call caller.
3104 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3105 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3106 zero_iter2_bb and first_zero_iter2 arguments, handle computation
3107 of counts even for ordered loops.
3108 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3109 (expand_omp_ordered_source, expand_omp_ordered_sink,
3110 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3111 functions.
3112 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
3113 clauses on worksharing loop. Handle DOACROSS loop expansion.
3114 (expand_omp_for_static_nochunk): Handle linear clauses on
3115 worksharing loop. Adjust expand_omp_for_init_counts
3116 callers.
3117 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
3118 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
3119 expand_omp_for_init_counts callers.
3120 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3121 functions.
3122 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3123 Handle doacross loops.
3124 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3125 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
3126 GOMP_target_{41,update_41,enter_exit_data} libcalls.
3127 (expand_omp): Don't expand ordered depend constructs here, record
3128 ord_stmt instead for later expand_omp_for_generic.
3129 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3130 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3131 clause as stand-alone directive.
3132 (lower_omp_ordered_clauses): New function.
3133 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3134 don't lower anything.
3135 (lower_omp_for_lastprivate): Use last _looptemp_ clause
3136 on taskloop for comparison.
3137 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
3138 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3139 expansion for linear adjustments.
3140 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3141 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3142 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
3143 to tree * pointing to the stmt's clauses.
3144 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3145 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3146 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3147 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3148 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3149 clauses. Always use short kind and 8-bit align shift.
3150 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3151 (struct lower_omp_regimplify_operands_data): New type.
3152 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3153 New functions.
3154 (lower_omp_1): Use lower_omp_regimplify_operands instead of
3155 gimple_regimplify_operands.
3156 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3157 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3158 clause as stand-alone directive.
3159 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3160 (simd_clone_mangle): Mangle the various linear kinds
3161 per the new ABI.
3162 (simd_clone_adjust_argument_types): Handle
3163 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3164 (simd_clone_init_simd_arrays): Don't do anything for uval.
3165 (simd_clone_adjust): Handle
3166 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3167 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3168 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3169 * omp-low.h (omp_member_access_dummy_var): New prototype.
3170 * passes.def (pass_simduid_cleanup): Schedule another copy of the
3171 pass after all optimizations.
3172 * tree.c (omp_clause_code_name): Add entries for
3173 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3174 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3175 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
3176 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3177 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3178 OMP_CLAUSE_REDUCTION 5 arguments. Handle
3179 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3180 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3181 clauses.
3182 * tree-core.h (enum omp_clause_linear_kind): New.
3183 (struct tree_omp_clause): Change type of map_kind
3184 from unsigned char to unsigned int. Add subcode.if_modifier
3185 and subcode.linear_kind fields.
3186 (enum omp_clause_code): Add
3187 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3188 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3189 (OMP_CLAUSE_REDUCTION): Document
3190 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3191 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3192 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3193 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
3194 operand.
3195 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
3196 operand.
3197 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3198 codes.
3199 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3200 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3201 char.
3202 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3203 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3204 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3205 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3206 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3207 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3208 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3209 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3210 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3211 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3212 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3213 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3214 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3215 * tree-inline.c (remap_gimple_stmt): Handle clauses on
3216 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
3217 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3218 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3219 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3220 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3221 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3222 (convert_local_omp_clauses): Likewise.
3223 * tree-pretty-print.c (dump_omp_clause): Handle
3224 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3225 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3226 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3227 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3228 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
3229 GOMP_MAP_FORCE_DEALLOC. Handle
3230 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3231 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3232 and clauses on OMP_ORDERED and OMP_CRITICAL.
3233 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3234 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3235 (vectorize_loops): Adjust comments.
3236 (pass_simduid_cleanup::execute): Likewise.
3237 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3238 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3239 * wide-int.h (wi::gcd): New.
3240
3241 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3242
3243 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3244 (ix86_function_arg_advance): Ditto.
3245 (ix86_function_arg): Ditto.
3246 (ix86_gimplify_va_arg): Ditto.
3247 (ix86_class_max_nregs): Ditto.
3248 (inline_memory_move_cost): Ditto.
3249 (ix86_set_reg_reg_cost): Ditto.
3250 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
3251
3252 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
3253
3254 PR middle-end/67912
3255 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
3256
3257 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3258
3259 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
3260 ROUND_UP macro and UNITS_PER_WORD * 2.
3261 * config/sparc/sparc.c (sparc_compute_frame_size):
3262 Use ROUND_UP and ROUND_DOWN macros where applicable.
3263 (function_arg_record_value, function_arg_record_value_1)
3264 (function_arg_record_value_1): Ditto.
3265 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
3266 alignment to double-word.
3267 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
3268 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
3269 rounded_size.
3270
3271 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
3272
3273 * gcc/rtl.h (print_insn): Fix prototype.
3274
3275 2015-10-13 Tom de Vries <tom@codesourcery.com>
3276
3277 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
3278 -1. Add assert that returned entry matches phi argument.
3279 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
3280 free_stmt_vec_info_vec ...
3281 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
3282 with -1.
3283
3284 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
3285
3286 PR tree-optimization/67909, 67947
3287 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
3288 really skip the inner loop.
3289
3290 2015-10-13 Jeff Law <law@redhat.com>
3291
3292 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3293 Allow single block jump threading paths.
3294
3295 2015-10-13 Tom de Vries <tom@codesourcery.com>
3296
3297 PR tree-optimization/67476
3298 * doc/invoke.texi (@item parloops-schedule): New item.
3299 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
3300 * tree-parloops.c: Include params-enum.h.
3301 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
3302
3303 2015-10-13 Tom de Vries <tom@codesourcery.com>
3304
3305 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
3306 * params-enum.h: New file.
3307 * opts.c (handle_param): Handle case that param arg is a string.
3308 * params-list.h: Handle DEFPARAMENUM5 in params.def.
3309 * params.c (find_param): New function, factored out of ...
3310 (set_param_value): ... here.
3311 (param_string_value_p): New function.
3312 * params.h (struct param_info): Add value_names field.
3313 (find_param, param_string_value_p): Declare.
3314
3315 2015-10-13 Tom de Vries <tom@codesourcery.com>
3316
3317 PR tree-optimization/67476
3318 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
3319
3320 2015-10-13 Richard Biener <rguenther@suse.de>
3321
3322 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
3323 the data dependence vector.
3324 (vect_peeling_hash_insert): Get the peeling hash table as argument.
3325 (vect_peeling_hash_get_lowest_cost): Likewise.
3326 (vect_enhance_data_refs_alignment): Adjust.
3327 (struct _vect_peel_info, struct _vect_peel_extended_info,
3328 struct peel_info_hasher): Move from ...
3329 * tree-vectorizer.h: ... here.
3330 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
3331 (LOOP_VINFO_PEELING_HTAB): Likewise.
3332 (struct _loop_vec_info): Remove min_profitable_iters and
3333 peeling_htab members.
3334 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
3335 here.
3336 (destroy_loop_vec_info): Adjust.
3337 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
3338 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
3339 to estimate alias versioning cost.
3340 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
3341
3342 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
3343
3344 * real.h (real_isinteger): Declare.
3345 * real.c (real_isinteger): New function.
3346 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
3347 if y is an even integer.
3348
3349 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3350
3351 revert:
3352 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3353 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3354 counts when these are more informative.
3355
3356 2015-10-12 Jeff Law <law@redhat.com>
3357
3358 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
3359 (fsm_find_control_stmt_paths): Change name of first argument to
3360 more accurately relfect what it really is. Handle simplification
3361 of GIMPLE_COND after finding a thread path for NAME.
3362 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
3363 nontrivial conditions to be handled by FSM threader.
3364 (thread_through_normal_block): Extract the name to looup via
3365 FSM threader from COND_EXPR.
3366
3367 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
3368 restriction that traced SSA_NAME is a user variable.
3369
3370 2015-10-12 Tom de Vries <tom@codesourcery.com>
3371
3372 PR tree-optimization/67476
3373 * omp-low.c (expand_omp_for_generic): Add missing phis.
3374
3375 2015-10-12 Tom de Vries <tom@codesourcery.com>
3376
3377 PR tree-optimization/67476
3378 * omp-low.c (expand_omp_for_generic): Handle simple latch.
3379
3380 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3381
3382 * config/aarch64/aarch64-simd-builtins.def: Update builtins
3383 tables: add tbl3 and tbx4.
3384 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
3385 (aarch64_tbx4v8qi): New.
3386 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
3387 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
3388 Rewrite using builtin functions.
3389 * config/aarch64/iterators.md (UNSPEC_TBX): New.
3390
3391 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3392
3393 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
3394 ROUND_UP macro.
3395 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3396 Use ROUND_UP and ROUND_DOWN macros where applicable.
3397 (rs6000_darwin64_record_arg_flush): Ditto.
3398 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
3399 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
3400 rounded_size.
3401
3402 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
3403
3404 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
3405 (AARCH64_ROUND_DOWN): Ditto.
3406 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
3407
3408 2015-10-12 Richard Biener <rguenther@suse.de>
3409
3410 PR ipa/67783
3411 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
3412 code that analyzes IVs on each stmt but in a cheaper way avoiding
3413 quadratic behavior.
3414
3415 2015-10-12 Nick Clifton <nickc@redhat.com>
3416
3417 * config/msp430/msp430.c (msp430_mcu_names): Rename to
3418 msp430_mcu_data, add fields for ISA and hardware multiply
3419 support. Import latest data from the devices.csv file.
3420 (msp430_override_option): Use the data from the new array.
3421 (msp430_use_f5_series_hwmult): Likewise.
3422 (use_32bit_hwmult): Likewise.
3423 (msp430_no_hwmult): Likewise.
3424 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
3425 MCU names.
3426 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
3427 not recognised then no hardware multiply support is assumed and
3428 that only the MSP430 ISA is allowed.
3429
3430 2015-10-12 Richard Biener <rguenther@suse.de>
3431
3432 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
3433 related code ...
3434 (vect_analyze_loop_2): ... here.
3435
3436 2015-10-11 Jason Merrill <jason@redhat.com>
3437
3438 PR c++/67557
3439 * expr.c (store_field): Call store_constructor directly when
3440 storing a CONSTRUCTOR into a target smaller than its type.
3441 Guard against unsafe bitwise copy.
3442
3443 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3444
3445 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3446 counts when these are more informative.
3447
3448 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3449
3450 * tree-profile.c (tree_profiling): Do not clear
3451 pure/const when not instrumenting.
3452 (pass tree_profile): Add dump of symtab.
3453
3454 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3455
3456 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
3457 addresses.
3458 (fold_addr_of_array_ref_difference): Likewise.
3459
3460 2015-10-11 Jeff Law <law@redhat.com>
3461
3462 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
3463 tree-ssa-threadbackward.c.
3464 (fsm_find_control_statement_thread_paths): Likewise.
3465 (thread_through_normal_block): Break out FSM bits and move them
3466 into a new function in tree-ssa-threadbackward.c. Call new function
3467 instead.
3468 Minimize header file usage.
3469 * tree-ssa-threadbackward.h: New file.
3470 * tree-ssa-threadbackward.c: Likewise.
3471 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
3472
3473 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
3474
3475 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
3476
3477 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
3478
3479 PR rtl-optimization/67864
3480 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
3481 fallthrough edges for conditional jumps. Don't sort candidate
3482 edges if not optimizing for speed.
3483
3484 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3485
3486 * defaults.h (REVERSE_CONDITION): New default definition.
3487 * jump.c (reversed_comparison_code_parts): Adjust.
3488
3489 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3490
3491 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
3492 check HARD_FRAME_POINTER_IS_ARG_POINTER.
3493
3494 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3495
3496 * defaults.h (FRAME_ADDR_RTX): New default definition.
3497 * builtins.c (expand_builtin_return_addr): Adjust.
3498
3499 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3500
3501 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
3502 * builtins.c (expand_builtin_return_addr): Adjust.
3503
3504 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3505
3506 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
3507 * builtins.c (expand_builtin_return_addr): Adjust.
3508 * doc/tm.texi: Likewise.
3509 * doc/tm.texi.in: Likewise.
3510 * except.c (expand_builtin_unwind_init): Likewise.
3511
3512 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3513
3514 * builtins.c (expand_builtin_return_addr): Adjust.
3515 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
3516
3517 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
3518
3519 * tree.c (type_with_interoperable_signedness): New.
3520 (gimple_canonical_types_compatible_p): Use it.
3521 * tree.h (type_with_interoperable_signedness): Declare
3522
3523 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
3524
3525 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
3526 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
3527 when OEP_ADDRESS_OF is se.
3528
3529 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
3530 Sebastian Pop <s.pop@samsung.com>
3531
3532 * graphite-dependences.c (scop_get_dependences): Add dump of the
3533 data dependence graph.
3534 * graphite-poly.c (print_isl_union_map): New.
3535 (debug_isl_union_map): New.
3536 * graphite-poly.h (print_isl_union_map): Declare.
3537 (debug_isl_union_map): Declare.
3538
3539 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
3540 Sebastian Pop <s.pop@samsung.com>
3541
3542 * graphite-poly.c (print_iteration_domain): Remove verbosity.
3543 Remove OpenScop formatting.
3544 (print_iteration_domains): Same.
3545 (debug_iteration_domain): Same.
3546 (debug_iteration_domains): Same.
3547 (print_pdr): Same.
3548 (debug_pdr): Same.
3549 (dump_gbb_cases): Same.
3550 (dump_gbb_conditions): Same.
3551 (print_pdrs): Same.
3552 (debug_pdrs): Same.
3553 (print_pbb_body): Same.
3554 (print_pbb): Same.
3555 (print_scop_params): Same.
3556 (print_scop_context): Same.
3557 (print_scop): Same.
3558 (debug_pbb_domain): Same.
3559 (debug_pbb): Same.
3560 (debug_scop_context): Same.
3561 (debug_scop): Same.
3562 (debug_scop_params): Same.
3563 * graphite-poly.h: Same.
3564 * graphite.c (graphite_transform_loops): Same.
3565
3566 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3567
3568 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
3569 call that isn't needed.
3570
3571 2015-10-09 Jeff Law <law@redhat.com>
3572
3573 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
3574 rather than moving each name to the freelist individually.
3575
3576 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
3577
3578 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
3579 * frame-header-opt.c: New file.
3580 * config/mips/mips-proto.h (mips_register_frame_header_opt):
3581 Add prototype.
3582 * config/mips/mips.c (mips_compute_frame_info): Check
3583 optimize_call_stack flag.
3584 (mips_option_override): Register new frame_header_opt pass.
3585 (mips_frame_info, mips_int_mask, mips_shadow_set,
3586 machine_function): Move these types to...
3587 * config/mips/mips.h: here.
3588 (machine_function): Add does_not_use_frame_header and
3589 optimize_call_stack fields.
3590 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
3591 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
3592 Document new flags.
3593 * config/mips/mips.opt (mframe-header-opt): Add new option.
3594
3595 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
3596
3597 * config/i386/i386.c
3598 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
3599 ROUND_DOWN where applicable.
3600
3601 2015-10-09 Jeff Law <law@redhat.com>
3602
3603 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
3604 correct statement.
3605
3606 2015-10-09 Renlin Li <renlin.li@arm.com>
3607
3608 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
3609 operands[0] and operands[2].
3610 (neon_vtrn<mode>_insn): Likewise.
3611 (neon_vzip<mode>_insn): Likewise.
3612
3613 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
3614
3615 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
3616 ((X & C2) << C1): Expand to...
3617 (X {&,^,|} C2 << C1): ...This.
3618 ((X & C2) >> C1): Expand to...
3619 (X {&,^,|} C2 >> C1): ...This.
3620
3621 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
3622
3623 PR target/67895
3624 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
3625 Adjust embedded rounding/SAE specifier position.
3626 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
3627 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
3628 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
3629 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
3630 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
3631 Likewise.
3632 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
3633
3634 2015-10-09 Martin Jambor <mjambor@suse.cz>
3635
3636 tree-optimization/67794
3637 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
3638 between types of state,ents but accept original definitions as a
3639 parameter.
3640 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
3641 iterate over definitions.
3642
3643 2015-10-09 James Norris <jnorris@codesourcery.com>
3644
3645 * config/rs6000/rs6000.c (rs6000_offload_options): New.
3646 (TARGET_OFFLOAD_OPTIONS): New.
3647
3648 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
3649
3650 PR middle-end/67891
3651 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
3652
3653 PR middle-end/67766
3654 * function.c (expand_function_end): Move return value
3655 promotion past the handling of PARALLELs and CONCATs.
3656
3657 PR rtl-optimization/67828
3658 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
3659 (tree_may_unswitch_on): Don't unswitch on expressions
3660 involving undefined values.
3661
3662 2015-10-09 Richard Biener <rguenther@suse.de>
3663
3664 * genmatch.c (print_operand): Fix formatting.
3665 (dt_node::append_simplify): Warn for multiple simplifiers
3666 that match the same pattern.
3667 * match.pd (log (exp @0)): Remove duplicates.
3668
3669 2015-10-09 Richard Biener <rguenth@suse.de>
3670
3671 PR target/67366
3672 * gimple-fold.c (optabs-query.h): Include
3673 (gimple_fold_builtin_memory_op): Allow unaligned stores
3674 when movmisalign_optabs are available.
3675
3676 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3677
3678 PR target/67366
3679 * config/arm/arm.md (movmisalign<mode>): New.
3680 * config/arm/iterators.md (HSI): New.
3681
3682 2015-10-09 Richard Biener <rguenther@suse.de>
3683
3684 PR tree-optimization/67891
3685 * gimple-match.h (gimple_simplified_result_is_gimple_val):
3686 New helper.
3687 (gimple_resimplify1): Declare.
3688 (gimple_resimplify2): Likewise.
3689 (gimple_resimplify3): Likewise.
3690 * gimple-match-head.c (gimple_resimplify1): Export.
3691 (gimple_resimplify2): Likewise.
3692 (gimple_resimplify3): Likewise.
3693 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
3694 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3695 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
3696 to avoid creating stmts without VN info.
3697
3698 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
3699
3700 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
3701 of availability.
3702
3703 2015-10-08 Jeff Law <law@redhat.com>
3704
3705 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
3706 and release_ssa_name in two places.
3707 (gimple_stringop_fixed_value): Similarly.
3708
3709 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
3710 release_defs.
3711
3712 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
3713 unlink_stmt_vdef and release_ssa_name_fn.
3714
3715 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
3716 release_defs.
3717
3718 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
3719
3720 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
3721 SSE register save area to 16 bytes only if the incoming stack
3722 boundary is no less than 16 bytes.
3723
3724 2015-10-08 Jeff Law <law@redhat.com>
3725
3726 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
3727 release_ssa_name. Fix typo in comment.
3728
3729 2015-10-08 Nathan Sidwell <nathan@acm.org>
3730
3731 * config/nvptx/nvptx.h (struct machine_function): Add comment.
3732 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
3733 may return pointer as well as in memory.
3734 (nvptx_output_return): Likewise.
3735
3736 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3737
3738 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
3739 (fold_builtin_1): Update accordingly. Handle constant arguments here.
3740 * match.pd: Add rules previously handled by fold_builtin_sqrt
3741 and fold_builtin_cbrt.
3742
3743 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
3744
3745 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
3746 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
3747 * fold-const.h (tree_unary_nonnegative_warnv_p)
3748 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3749 (tree_expr_nonnegative_warnv_p): Add depth parameters.
3750 * fold-const.c: Include gimple-fold.h and params.h.
3751 (tree_ssa_name_nonnegative_warnv_p): New function.
3752 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
3753 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
3754 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
3755 Add a depth parameter and increment it for recursive calls to
3756 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
3757 to handle SSA names.
3758 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
3759 (gimple_stmt_nonnegative_warnv_p): Declare.
3760 * tree-vrp.c (remove_range_assertions): Remove assert that condition
3761 cannot be proven false.
3762 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
3763 (gimple_stmt_nonnegative_warnv_p): Move to...
3764 * gimple-fold.c: ...here. Add depth parameters and pass them
3765 down to the tree routines. Accept statements that aren't
3766 assignments or calls but just return false for them.
3767 (gimple_val_nonnegative_real_p): Delete.
3768 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
3769 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
3770 Check HONOR_NANs first.
3771
3772 2015-10-08 Martin Jambor <mjambor@suse.cz>
3773
3774 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
3775 unnecessary MIN.
3776
3777 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3778
3779 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
3780 in the tail of outer-loop.
3781
3782 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
3783
3784 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
3785 return UI_NONE.
3786
3787 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
3788
3789 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
3790 "cfghooks.h", add prototypes for introduced new functions.
3791 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
3792 checks on ability of loop unswitching to tree_unswitch_single_loop;
3793 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
3794 on innermost loop check.
3795 (tree_unswitch_single_loop): Add all required checks on ability of
3796 loop unswitching under zero recursive level guard.
3797 (tree_unswitch_outer_loop): New function.
3798 (find_loop_guard): Likewise.
3799 (empty_bb_without_guard_p): Likewise.
3800 (used_outside_loop_p): Likewise.
3801 (get_vop_from_header): Likewise.
3802 (hoist_guard): Likewise.
3803 (check_exit_phi): Likewise.
3804
3805 2015-10-08 Marek Polacek <polacek@redhat.com>
3806
3807 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
3808 ops element.
3809
3810 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3811
3812 PR c/65345
3813 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
3814 create_tmp_var_raw instead of create_tmp_var.
3815
3816 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
3817
3818 * expr.c (store_expr_with_bounds): Handle aggregate moves from
3819 BLKmode.
3820 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
3821 to define gimple type system; compare aggregates only by size.
3822
3823 2015-10-07 Jeff Law <law@redhat.com>
3824
3825 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
3826 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
3827 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
3828 unnecessarily.
3829
3830 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3831 Sebastian Pop <s.pop@samsung.com>
3832
3833 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
3834 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
3835 (generate_isl_schedule): Same.
3836 * graphite-optimize-isl.c (scop_get_domains): Same.
3837 (apply_schedule_map_to_scop): Same.
3838 * graphite-poly.c (print_iteration_domains): Same.
3839 (remove_gbbs_in_scop): Same.
3840 (new_scop): Same.
3841 (free_scop): Same.
3842 (print_scop): Same.
3843 * graphite-poly.h (struct scop): Rename bbs to pbbs.
3844 (SCOP_BBS): Remove.
3845 * graphite-scop-detection.c (compare_bb_depths): Remove.
3846 (graphite_sort_dominated_info): Remove.
3847 (try_generate_gimple_bb): Move out of scop_detection.
3848 (all_non_dominated_preds_marked_p): Remove.
3849 (build_scop_bbs_1): Remove.
3850 (build_scop_bbs): Remove.
3851 (nb_pbbs_in_loops): Do not use SCOP_BBS.
3852 (find_scop_parameters): Same.
3853 (sese_dom_walker): Rename gather_bbs.
3854 (before_dom_children): Call try_generate_gimple_bb and collect gbb
3855 and pbb.
3856 (build_scops): Call gather_bbs.
3857 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
3858 (add_conditions_to_constraints): Same.
3859 (build_scop_iteration_domain): Same.
3860 (build_scop_drs): Same.
3861 (new_pbb_from_pbb): Same.
3862 * sese.c (new_sese_info): Create bbs.
3863 * sese.h (struct sese_info_t): Add bbs.
3864
3865 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
3866
3867 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
3868 encoding in 64-bit mode.
3869
3870 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
3871
3872 PR target/66697
3873 * config/i386/i386.c (ix86_option_override_internal): Always use
3874 8-byte minimum stack boundary in 64-bit mode.
3875 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
3876 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
3877 Add a REG_CFA_EXPRESSION note if needed.
3878 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
3879 (ix86_handle_force_align_arg_pointer_attribute): New.
3880 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
3881 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
3882 with ix86_handle_force_align_arg_pointer_attribute.
3883 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
3884
3885 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3886 Sebastian Pop <s.pop@samsung.com>
3887
3888 * graphite-scop-detection.c (parameter_index_in_region): Remove
3889 use of SESE_ADD_PARAMS.
3890 (find_scop_parameters): Same.
3891 * sese.c (new_sese_info): Same.
3892 * sese.h (struct sese_info_t): Remove add_params.
3893 (SESE_ADD_PARAMS): Remove.
3894
3895 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
3896 Sebastian Pop <s.pop@samsung.com>
3897
3898 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
3899 an sese_info_p.
3900 (copy_def): Same.
3901 (copy_internal_parameters): Same.
3902 (translate_isl_ast_to_gimple): Use an sese_l.
3903 (build_iv_mapping): Same.
3904 * graphite-poly.c (new_sese): Rename new_sese_info.
3905 (free_sese): Rename free_sese_info.
3906 * graphite-poly.h (struct scop): Use an sese_info_p.
3907 (scop_set_region): Same.
3908 * graphite-scop-detection.c (struct sese_l): Moved...
3909 (get_entry_bb): Moved...
3910 (get_exit_bb): Moved...
3911 (parameter_index_in_region_1): Use an sese_info_p.
3912 (parameter_index_in_region): Same.
3913 (scan_tree_for_params): Same.
3914 (find_params_in_bb): Same.
3915 (sese_dom_walker): Use an sese_l.
3916 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
3917 (reduction_phi_p): Same.
3918 (parameter_index_in_region_1): Use an sese_info_p.
3919 (propagate_expr_outside_region): Use an sese_l.
3920 * graphite.c: Replace uses of SCOP_REGION.
3921 * sese.c (sese_record_loop): Use an sese_info_p.
3922 (build_sese_loop_nests): Same.
3923 (sese_build_liveouts_use): Same.
3924 (sese_build_liveouts_bb): Same.
3925 (sese_build_liveouts_bb): Same.
3926 (sese_bad_liveouts_use): Same.
3927 (sese_reset_debug_liveouts_bb): Same.
3928 (sese_build_liveouts): Same.
3929 (new_sese): Renamed new_sese_info.
3930 (free_sese): Renamed free_sese_info.
3931 (set_rename): Use an sese_info_p.
3932 (graphite_copy_stmts_from_block): Same.
3933 (copy_bb_and_scalar_dependences): Same.
3934 (outermost_loop_in_sese_1): Use an sese_l.
3935 (outermost_loop_in_sese): Same.
3936 (if_region_set_false_region): Use an sese_info_p.
3937 (move_sese_in_condition): Same.
3938 (scalar_evolution_in_region): Use an sese_l.
3939 * sese.h (struct sese_l): ... here.
3940 (SESE_ENTRY): Remove.
3941 (SESE_ENTRY_BB): Remove.
3942 (SESE_EXIT): Remove.
3943 (SESE_EXIT_BB): Remove.
3944 (sese_contains_loop): Use an sese_info_p.
3945 (sese_nb_params): Same.
3946 (bb_in_sese_p): Use an sese_l.
3947 (stmt_in_sese_p): Same.
3948 (defined_in_sese_p): Same.
3949 (loop_in_sese_p): Same.
3950 (sese_loop_depth): Same.
3951 (struct ifsese_s): Use an sese_info_p.
3952 (gbb_loop_at_index): Use an sese_l.
3953 (nb_common_loops): Same.
3954 (scev_analyzable_p): Same.
3955
3956 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3957
3958 * config/i386/i386.c (ix86_conditional_register_usage): Use
3959 CALL_USED_REGISTERS_MASK.
3960 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
3961
3962 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3963
3964 PR bootstrap/67385
3965 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
3966 * configure: Regenerated.
3967
3968 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
3969
3970 PR target/67850
3971 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
3972 (ix86_set_current_function): This.
3973 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
3974
3975 2015-10-07 Richard Biener <rguenther@suse.de>
3976
3977 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
3978 (vinfo_for_stmt): Adjust.
3979 (set_vinfo_for_stmt): Likewise.
3980 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
3981 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
3982 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
3983 of inner loop.
3984 (vect_analyze_loop_1): Remove.
3985 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
3986 inner loop when vectorizing an outer loop by splitting out from ...
3987 (vect_analyze_loop_form): ... here.
3988
3989 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3990
3991 PR c/65345
3992 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
3993 Use create_tmp_var_raw instead of create_tmp_var.
3994
3995 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
3996
3997 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
3998 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
3999 * real.c (CACHED_FRACTION): New helper macro.
4000 (dconst_third_ptr): Use it.
4001 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4002 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4003 dconst_sixth.
4004 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4005
4006 2015-10-06 Jeff Law <law@redhat.com>
4007
4008 PR tree-optimization/67816
4009 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4010 from remove_jump_threads_starting_at. Accept an edge rather than
4011 a basic block.
4012 * tree-ssa-threadupdate.c (removed_edges): New hash table.
4013 (remove_jump_threads_including): Note edges that get removed from
4014 the CFG for later pruning of jump threading paths including them.
4015 (thread_through_all_blocks): Remove paths which include edges that
4016 have been removed.
4017 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4018 on each outgoing edges when optimizing away a control statement.
4019
4020 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4021
4022 * reorg.c (emit_delay_sequence): Store list of delay slot insns
4023 in a vector instead of rtx_insn_list.
4024 (add_to_delay_list): Likewise.
4025 (delete_from_delay_slot): Likewise.
4026 (optimize_skip): Likewise.
4027 (redirect_with_delay_list_safe_p): Likewise.
4028 (check_annul_list_true_false): Likewise.
4029 (steal_delay_list_from_target): Likewise.
4030 (steal_delay_list_from_fallthrough): Likewise.
4031 (redundant_insn): Likewise.
4032 (fill_simple_delay_slots): Likewise.
4033 (fill_slots_from_thread): Likewise.
4034 (fill_eager_delay_slots): Likewise.
4035 (relax_delay_slots): Likewise.
4036
4037 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
4038
4039 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4040 For -mgpopt=local, also exclude unintialized common symbols.
4041 * doc/invoke.texi (Nios II Options): Document the change.
4042
4043 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4044
4045 * config/aarch64/iterators.md (vwcore): Add missing cases for
4046 V4HF/V8HF modes.
4047
4048 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4049 Sebastian Pop <s.pop@samsung.com>
4050
4051 * graphite-poly.c (new_scop): Initialize drs.
4052 * graphite-poly.h (struct dr_info): New.
4053 (struct scop): Add drs.
4054 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4055 (pdr_add_memory_accesses): Same.
4056 (build_poly_dr): Same.
4057 (build_alias_set): Same.
4058 (build_scop_drs): Same.
4059 (build_pbb_drs): Remove.
4060 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4061 * tree-data-ref.h (data_reference): Remove alias_set.
4062
4063 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4064 Sebastian Pop <s.pop@samsung.com>
4065
4066 * graphite-poly.c (free_data_refs_aux): Remove.
4067 (free_gimple_poly_bb): Do not call free_data_refs_aux.
4068 * graphite-poly.h (struct base_alias_pair): Remove.
4069 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4070 base_alias_pair and dr->aux.
4071 (build_alias_set): Same.
4072 * tree-data-ref.c (create_data_ref): Initialize alias_set.
4073 * tree-data-ref.h (data_reference): Add alias_set.
4074
4075 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4076 Sebastian Pop <s.pop@samsung.com>
4077
4078 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4079 Do not set PDR_BASE_OBJECT_SET.
4080 * graphite-poly.h (poly_dr): Same.
4081 (PDR_BASE_OBJECT_SET): Remove.
4082 (new_poly_dr): Update decl.
4083 * graphite-sese-to-poly.c (build_poly_dr): Update call to
4084 new_poly_dr.
4085 (write_alias_graph_to_ascii_dimacs): Remove.
4086 (write_alias_graph_to_ascii_dot): Remove.
4087 (write_alias_graph_to_ascii_ecc): Remove.
4088 (dr_same_base_object_p): Remove.
4089 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
4090 code.
4091 (build_base_obj_set_for_drs): Remove.
4092 (dump_alias_graphs): Remove.
4093 (build_scop_drs): Remove dead code.
4094
4095 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4096 Peter Bergner <bergner@vnet.ibm.com>
4097
4098 PR target/67808
4099 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4100 allow registers, but provide insns for the combiner to create for
4101 loads from memory. Separate VSX code from non-VSX code. For
4102 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4103 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4104 so that registers come before memory operations. Drop support from
4105 converting DFmode to TFmode, if the DFmode value is in a GPR
4106 register.
4107 (extenddftf2_fprs): Likewise.
4108 (extenddftf2_internal): Likewise.
4109 (extenddftf2_vsx): Likewise.
4110 (extendsftf2): In the expander, only allow registers, but provide
4111 insns for the combiner to create for stores and loads.
4112
4113 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4114
4115 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4116 from the decl parameter.
4117
4118 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
4119
4120 PR 67861
4121 * gimple-fold.c (gimple_fold_builtin): Add break after
4122 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4123
4124 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
4125
4126 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4127 to scop->isl_context.
4128
4129 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4130
4131 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4132 (output_probe_stack_range): Rotate the loop and simplify.
4133 (thumb1_expand_prologue): Tweak sorry message.
4134 * config/arm/arm.md (probe_stack): Use bare string.
4135
4136 2015-10-06 Nick Clifton <nickc@redhat.com>
4137
4138 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4139
4140 2015-10-06 Nick Clifton <nickc@redhat.com>
4141
4142 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4143 (ATTR_PERSIST): New constant.
4144 (msp430_data_attr): New function - verifies an attribute that only
4145 applies to variables.
4146 (msp430_attributes): Add noinit and persistent attributes.
4147 (noinit_section): New variable.
4148 (presis_section): New variable.
4149 (TARGET_ASM_INIT_SECTIONS): Define.
4150 (msp430_init_sections): New function - initialises the noinit and
4151 persist section variables.
4152 (msp430_select_section): Add support for noinit and persist
4153 attributes.
4154 (msp430_section_type_flags): Likewise.
4155 * doc/extend.texi: Document the reent, critical, wakeup, noinit
4156 and persistent attributes.
4157
4158 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4159 Sebastian Pop <s.pop@samsung.com>
4160
4161 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4162 (no_violations): Remove.
4163 (subtract_commutative_associative_deps): Remove.
4164 (compute_deps): Do not call subtract_commutative_associative_deps.
4165 (transform_is_safe): Remove.
4166 (graphite_legal_transform): Remove.
4167 * graphite-poly.h (graphite_legal_transform): Remove.
4168
4169 2015-10-05 Aditya Kumar <hiraditya@msn.com>
4170
4171 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4172 which are in this region are passed so gcc_assert and remove redundant
4173 computation.
4174 * sese.c (sese_build_liveouts): Pass only those bbs which are not
4175 in region.
4176 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4177 gcc_assert on that and remove unnecessary computation.
4178 (sese_build_liveouts_use): Same.
4179
4180 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4181
4182 * graphite-dependences.c (scop_get_reads): Renamed scop->context
4183 to scop->param_context.
4184 (scop_get_must_writes): Same.
4185 (scop_get_may_writes): Same.
4186 (scop_get_original_schedule): Same.
4187 (scop_get_transformed_schedule): Same.
4188 (subtract_commutative_associative_deps): Same.
4189 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4190 (generate_isl_context): Same.
4191 (generate_isl_schedule): Same.
4192 (scop_to_isl_ast): Same.
4193 (graphite_regenerate_ast_isl): Same.
4194 * graphite-optimize-isl.c (scop_get_domains): Same.
4195 (optimize_isl): Renamed scop->context to scop->param_context.
4196 * graphite-poly.c (new_poly_bb): Change the type of argument to
4197 gimple_poly_bb_p.
4198 (new_scop): Renamed scop->context to scop->param_context.
4199 (free_scop): Same.
4200 (print_scop_context): Same.
4201 * graphite-poly.h (new_poly_dr): Change the type of argument from
4202 void* to data_reference_p.
4203 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4204 (new_poly_bb): Change the type of argument from void* to
4205 gimple_poly_bb_p.
4206 (pbb_set_black_box): Same.
4207 (struct scop): Rename context to param_context, ctx to isl_context.
4208 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4209 Move declarations closer to assignment.
4210 (find_params_in_bb): Same.
4211 (find_scop_parameters): Same.
4212 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4213 Global to be used for statement IDs.
4214 (isl_id_for_pbb): Use ssa_name_version_typesize.
4215 (simple_copy_phi_p): Move declarations closer to assignment.
4216 (build_pbb_scattering_polyhedrons): Same.
4217 (build_scop_scattering): Same.
4218 (isl_id_for_ssa_name): Same.
4219 (extract_affine_name): Same.
4220 (extract_affine_int): Same.
4221 (extract_affine): Same.
4222 (set_scop_parameter_dim): Use renamed member.
4223 (build_loop_iteration_domains): Same.
4224 (add_param_constraints): Same.
4225 (build_scop_iteration_domain): Same.
4226 (pdr_add_data_dimensions): Same.
4227 (build_poly_dr): Same.
4228 (build_scop_drs): Move declarations closer to assignment.
4229 (analyze_drs_in_stmts): Same.
4230 (insert_out_of_ssa_copy): Same.
4231 (insert_out_of_ssa_copy_on_edge): Same.
4232 (propagate_expr_outside_region): Same.
4233 (rewrite_phi_out_of_ssa): Same.
4234 (rewrite_degenerate_phi): Same.
4235 (rewrite_reductions_out_of_ssa): Same.
4236 (rewrite_cross_bb_scalar_dependence): Same.
4237 (handle_scalar_deps_crossing_scop_limits): Same.
4238 (rewrite_cross_bb_scalar_deps): Same.
4239 * graphite.c (graphite_transform_loops): Use renamed member.
4240
4241 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
4242
4243 PR c/65345
4244 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4245 create_tmp_var_raw instead of create_tmp_var.
4246
4247 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4248
4249 PR c/65345
4250 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
4251 Use create_tmp_var_raw instead of create_tmp_var.
4252
4253 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
4254
4255 PR target/67849
4256 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
4257 split for upper-bank registers when target does not support
4258 AVX512VL.
4259 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
4260 split when target does not support AVX512VL.
4261
4262 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
4263
4264 PR c/65345
4265 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
4266 Adjust to use create_tmp_var_raw instead of create_tmp_var.
4267
4268 2015-10-06 Nick Clifton <nickc@redhat.com>
4269
4270 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
4271 multiplication.
4272
4273 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4274
4275 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
4276 (case ${target}): Add znver1.
4277 * config/i386/cpuid.h(bit_CLZERO): Define.
4278 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4279 -march=native recognize znver1 processors.
4280 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4281 znver1, clzero def_and_undef.
4282 * config/i386/i386.c (struct processor_costs znver1_cost): New.
4283 (m_znver1): New definition.
4284 (m_AMD_MULTIPLE): Includes m_znver1.
4285 (processor_target_table): Add znver1 entry.
4286 (ix86_target_string) : Add clzero entry.
4287 (static const char *const cpu_names): Add znver1 entry.
4288 (ix86_option_override_internal): Add znver1 instruction sets.
4289 (PTA_CLZERO) : New definition.
4290 (ix86_option_override_internal): Handle new clzerooption.
4291 (ix86_issue_rate): Add znver1.
4292 (ix86_adjust_cost): Add znver1.
4293 (ia32_multipass_dfa_lookahead): Add znver1.
4294 (has_dispatch): Add znver1.
4295 * config/i386/i386.h (TARGET_znver1): New definition.
4296 (TARGET_CLZERO): Define.
4297 (TARGET_CLZERO_P): Define.
4298 (struct ix86_size_cost): Add TARGET_ZNVER1.
4299 (enum processor_type): Add PROCESSOR_znver1.
4300 * config/i386/i386.md (define_attr "cpu"): Add znver1.
4301 (set_attr znver1_decode): New definitions for znver1.
4302 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
4303 (mclzero): New.
4304 * config/i386/mmx.md (set_attr znver1_decode): New definitions
4305 for znver1.
4306 * config/i386/sse.md (set_attr znver1_decode): Likewise.
4307 * config/i386/x86-tune.def: Add znver1 tunings.
4308 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
4309 * gcc/doc/invoke.texi: Add details about znver1
4310
4311 2015-10-06 Richard Biener <rguenther@suse.de>
4312
4313 PR tree-optimization/67859
4314 * tree-ssa-pre.c (create_expression_by_pieces): Properly
4315 discard not inserted stmts.
4316
4317 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
4318
4319 * doc/extend.texi (Template Instantiation): Reorder options and
4320 de-emphasize -frepo.
4321 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
4322 example instead of -frepo.
4323
4324 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4325
4326 PR c/65345
4327 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
4328 use create_tmp_var_raw rather than create_tmp_var.
4329
4330 2015-10-06 Richard Biener <rguenther@suse.de>
4331
4332 * tree-vectorizer.h (vec_info): New base class for...
4333 (_loop_vec_info): ... this and ...
4334 (_bb_vec_info): ... this.
4335 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
4336 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4337 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4338 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
4339 vect_destroy_datarefs): Adjust interface to take a vec_info *
4340 rather than both a loop_vec_info and a bb_vec_info argument.
4341 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
4342 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
4343 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
4344 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
4345 accordingly.
4346 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
4347 (destroy_loop_vec_info, vect_analyze_loop_2,
4348 vect_is_simple_reduction_1, get_initial_def_for_induction,
4349 vect_create_epilog_for_reduction, vectorizable_reduction,
4350 vectorizable_live_operation, vect_transform_loop): Adjust.
4351 * tree-vect-patterns.c (type_conversion_p,
4352 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
4353 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
4354 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
4355 check_bool_pattern, vect_recog_bool_pattern,
4356 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
4357 * tree-vect-slp.c (vect_get_and_check_slp_defs,
4358 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
4359 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
4360 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
4361 (new_bb_vec_info): Initialize base classs.
4362 * tree-vect-stmts.c (record_stmt_cost, process_use,
4363 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
4364 vectorizable_mask_load_store, vectorizable_call,
4365 vectorizable_simd_clone_call, vectorizable_conversion,
4366 vectorizable_assignment, vectorizable_shift,
4367 vectorizable_operation, vectorizable_store,
4368 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
4369 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
4370 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
4371
4372 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
4373
4374 PR c/65345
4375 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
4376 create_tmp_var_raw rather than create_tmp_var.
4377
4378 2015-10-05 Marek Polacek <polacek@redhat.com>
4379
4380 * tree-ssa-loop-im.c
4381 (move_computations_dom_walker::before_dom_children): Don't set
4382 SSA_NAME_ANTI_RANGE_P.
4383 * tree-ssa-phiopt.c (value_replacement): Likewise.
4384
4385 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4386 Sebastian Pop <s.pop@samsung.com>
4387
4388 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
4389
4390 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4391 Sebastian Pop <s.pop@samsung.com>
4392
4393 * graphite-poly.c (new_gimple_poly_bb): ... here.
4394 (free_data_refs_aux): ... here.
4395 (free_gimple_poly_bb): ... here.
4396 (remove_gbbs_in_scop): ... here.
4397 (new_scop): Call new_sese.
4398 (free_scop): Call remove_gbbs_in_scop and free_sese.
4399 * graphite-poly.h (base_alias_pair): ... here.
4400 (new_gimple_poly_bb): Declare.
4401 (free_gimple_poly_bb): Declare.
4402 * graphite-scop-detection.c (parameter_index_in_region_1):
4403 (parameter_index_in_region): ... here.
4404 (scan_tree_for_params): ... here.
4405 (find_params_in_bb): ... here.
4406 (find_scop_parameters): ... here.
4407 (build_scops): Call find_scop_parameters.
4408 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
4409 (free_scops): Move...
4410 (single_pred_cond_non_loop_exit): Move...
4411 (sese_dom_walker::before_dom_children): Move...
4412 (sese_dom_walker::after_dom_children): Move...
4413 (build_poly_scop): Move...
4414 * graphite-sese-to-poly.h (base_alias_pair): Move...
4415 * graphite.c (free_scops): ... here.
4416
4417 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4418 Sebastian Pop <s.pop@samsung.com>
4419
4420 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
4421 (trivially_empty_bb_p): Move...
4422 (same_close_phi_node): Move...
4423 (new_gimple_poly_bb): Move...
4424 (compare_bb_depths): Move...
4425 (graphite_sort_dominated_info): Move...
4426 (remove_duplicate_close_phi): Move...
4427 (make_close_phi_nodes_unique): Move...
4428 (canonicalize_loop_closed_ssa): Move...
4429 (canonicalize_loop_closed_ssa_form): Move...
4430 (loop_ivs_can_be_represented): Move...
4431 (single_pred_cond_non_loop_exit): Move...
4432 (graphite_can_represent_init): Move...
4433 (graphite_can_represent_scev): Move...
4434 (stmt_has_simple_data_refs_p): Move...
4435 (stmt_has_side_effects): Move...
4436 (graphite_can_represent_stmt): Move...
4437 (scop_detection): ... here.
4438 (sese_dom_walker): ... and here.
4439 (build_scops): Call all moved functions.
4440 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
4441 (all_non_dominated_preds_marked_p): Move...
4442 (build_scop_bbs_1): Move...
4443 (build_scop_bbs): Move...
4444 (set_scop_parameter_dim): Move...
4445 (nb_pbbs_in_loops): Move...
4446 (build_poly_scop): Do not call all the moved functions.
4447
4448 2015-10-05 Martin Jambor <mjambor@suse.cz>
4449 Jan Hubicka <hubicka@ucw.cz>
4450
4451 * ipa-cp.c (ipcp_alignment_lattice): New type.
4452 (ipcp_param_lattices): Use the above to represent alignment.
4453 (ipcp_alignment_lattice::print): New function.
4454 (print_all_lattices): Use it to print alignment information.
4455 (ipcp_alignment_lattice::top_p): New function.
4456 (ipcp_alignment_lattice::bottom_p): Likewise.
4457 (ipcp_alignment_lattice::set_to_bottom): Likewise.
4458 (ipcp_alignment_lattice::meet_with_1): Likewise.
4459 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
4460 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
4461 (initialize_node_lattices): Likewise.
4462 (propagate_alignment_accross_jump_function): Work with the new class
4463 for alignment lattices.
4464 (propagate_constants_accross_call): Pass only the alignment lattice to
4465 propagate_alignment_accross_jump_function.
4466 (ipcp_store_alignment_results): Work with the new class for alignment
4467 lattices.
4468
4469 2015-10-05 Marek Polacek <polacek@redhat.com>
4470
4471 PR tree-optimization/67821
4472 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
4473
4474 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
4475
4476 PR other/65021
4477 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
4478 function to...
4479 (mkoffload_cleanup): ... this. Adjust all users.
4480 (maybe_unlink): Look at save_temps and verbose flags instead of
4481 debug flag.
4482 (main): Parse "-save-temps" flag.
4483 (generate_target_descr_file, generate_target_offloadend_file)
4484 (generate_host_descr_file, prepare_target_image): Pass it on.
4485 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
4486 (mkoffload_cleanup): New function.
4487 (maybe_unlink): Look at save_temps and verbose flags instead of
4488 debug flag.
4489 (main): Instead of calling utils_cleanup, register atexit handler
4490 for mkoffload_cleanup.
4491 (main): Parse "-save-temps" flag.
4492 (compile_native, main): Pass it on.
4493 * lto-wrapper.c (compile_offload_image): Likewise.
4494
4495 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4496
4497 * gimple.h (gimple_op_ptr): Require a non const gimple *.
4498 (gimple_assign_lhs_ptr): Likewise.
4499 (gimple_assign_rhs1_ptr): Likewise.
4500 (gimple_assign_rhs2_ptr): Likewise.
4501 (gimple_assign_rhs3_ptr): Likewise.
4502 (gimple_call_lhs_ptr): Likewise.
4503 (gimple_call_fn_ptr): Likewise.
4504 (gimple_call_chain_ptr): Likewise.
4505 (gimple_call_arg_ptr): Likewise.
4506 (gimple_cond_lhs_ptr): Likewise.
4507 (gimple_cond_rhs_ptr): Likewise.
4508 (gimple_switch_index_ptr): Likewise.
4509 (gimple_return_retval_ptr): Likewise.
4510
4511 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4512
4513 * gimple.h (gimple_asm_input_op_ptr): Remove.
4514 (gimple_asm_output_op_ptr): Likewise.
4515
4516 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4517
4518 * gimple.h (gimple_location_ptr): Remove.
4519 * tree-vrp.c (check_all_array_refs): Adjust.
4520
4521 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4522
4523 * tree-ssa-operands.c (build_uses): store tree * instead of
4524 tree.
4525 (finalize_ssa_uses): Adjust.
4526 (append_use): Likewise.
4527 (verify_ssa_operands): Likewise.
4528
4529 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4530
4531 * real.h (build_real_truncate): Declare.
4532 * tree.c (build_real_truncate): New function.
4533 (strip_float_extensions): Use it.
4534 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
4535 (fold_builtin_hypot, fold_builtin_pow): Likewise.
4536 * match.pd: Likewise.
4537
4538 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
4539 Jiong Wang <jiong.wang@arm.com>
4540
4541 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
4542
4543 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4544
4545 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
4546 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
4547 (aarch64_print_operand, aarch64_float_const_representable_p)
4548 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
4549 instead of REAL_VALUE_FROM_CONST_DOUBLE.
4550 * config/arc/arc.c (arc_print_operand): Likewise.
4551 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
4552 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
4553 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
4554 Likewise.
4555 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
4556 (consttable_16): Likewise.
4557 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
4558 * config/avr/avr.c (avr_print_operand): Likewise.
4559 * config/bfin/bfin.md: Likewise (in a define_split).
4560 * config/c6x/c6x.md: Likewise (in a define_split).
4561 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
4562 (cr16_print_operand): Likewise.
4563 * config/cris/cris.c (cris_print_operand): Likewise.
4564 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
4565 * config/fr30/fr30.c (fr30_print_operand): Likewise.
4566 (fr30_const_double_is_zero): Likewise.
4567 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
4568 * config/frv/frv.md: Likewise (in a define_split).
4569 * config/frv/predicates.md (int_2word_operand): Likewise.
4570 * config/h8300/h8300.c (h8300_print_operand): Likewise.
4571 * config/i386/i386.c (standard_80387_constant_p): Likewise.
4572 (ix86_print_operand, ix86_split_to_parts): Likewise.
4573 * config/i386/i386.md: Likewise (in a define_split).
4574 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
4575 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
4576 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
4577 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
4578 (print_operand): Likewise.
4579 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
4580 * config/mep/mep.md: Likewise (in define_split).
4581 * config/microblaze/microblaze.c (microblaze_const_double_ok)
4582 (print_operand): Likewise.
4583 * config/mips/mips.md (consttable_float): Likewise.
4584 * config/mmix/mmix.c (mmix_intval): Likewise.
4585 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
4586 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
4587 * config/pa/pa.c (pa_singlemove_string): Likewise.
4588 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
4589 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
4590 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
4591 (output_toc): Likewise.
4592 * config/rs6000/rs6000.md: Likewise (in define_splits).
4593 * config/rx/rx.c (rx_print_operand): Likewise.
4594 * config/s390/s390.c (s390_output_pool_entry): Likewise.
4595 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
4596 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
4597 (and also in define_splits).
4598 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
4599 (fp_high_losum_p): Likewise.
4600 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
4601 (*movsf_high): Likewise.
4602 * config/spu/spu.c (const_double_to_hwint): Likewise.
4603 * config/v850/v850.c (const_double_split): Likewise.
4604 * config/vax/vax.c (vax_float_literal): Likewise.
4605 * config/visium/visium.c (visium_expand_copysign): Likewise.
4606 * config/visium/visium.md: Likewise (in define_split).
4607 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
4608 * config/xtensa/xtensa.c (print_operand): Likewise.
4609 (xtensa_output_literal): Likewise.
4610 * cprop.c (implicit_set_cond_p): Likewise.
4611 * dwarf2out.c (insert_float): Likewise.
4612 * expmed.c (expand_mult, make_tree): Likewise.
4613 * expr.c (compress_float_constant): Likewise.
4614 * rtlanal.c (split_double): Likewise.
4615 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
4616 (simplify_const_unary_operation, simplify_binary_operation_1)
4617 (simplify_const_binary_operation): Likewise.
4618 (simplify_const_relational_operation): Likewise.
4619 * varasm.c (output_constant_pool_2): Likewise.
4620
4621 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4622
4623 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
4624 instead of CONST_DOUBLE_FROM_REAL_VALUE.
4625 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
4626 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
4627 instead of CONST_DOUBLE_FROM_REAL_VALUE.
4628 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
4629 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
4630 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
4631 (ix86_emit_swsqrtsf): Likewise.
4632 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
4633 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4634 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4635 * config/pa/pa.c (pa_expand_builtin): Likewise.
4636 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
4637 (rs6000_scale_v2df): Likewise.
4638 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
4639 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
4640 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
4641 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
4642 (vec_ctul): Likewise.
4643 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
4644 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
4645 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
4646 * cse.c (fold_rtx): Likewise.
4647 * emit-rtl.c (immed_double_const): Likewise (in comments).
4648 (init_emit_once): Likewise.
4649 * expr.c (compress_float_constant, expand_expr_real_1)
4650 (const_vector_from_tree): Likewise.
4651 * optabs.c (expand_float, expand_fix): Likewise.
4652 * reg-stack.c (reg_to_stack): Likewise.
4653 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
4654 (simplify_const_unary_operation, simplify_binary_operation_1)
4655 (simplify_const_binary_operation, simplify_relational_operation)
4656 (simplify_immed_subreg): Likewise.
4657
4658 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4659
4660 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
4661 * doc/tm.texi: Regenerate.
4662 * real.h (REAL_ARITHMETIC): Delete.
4663 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
4664 (ix86_expand_round_sse4): Use real_arithmetic instead of
4665 REAL_ARITHMETIC.
4666 * config/i386/sse.md (round<mode>2): Likewise.
4667 * rtl.h (rtx_to_tree_code): Likewise (in comment).
4668 * explow.c (rtx_to_tree_code): Likewise (in comment).
4669 * match.pd: Likewise.
4670 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4671 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4672 (expand_pow_as_sqrts): Likewise.
4673 * tree-pretty-print.c (dump_generic_node): Remove code that
4674 was conditional on REAL_ARITHMETIC being undefined.
4675
4676 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4677
4678 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
4679 * doc/tm.texi: Regenerate.
4680 * real.h (real_less): Declare.
4681 (REAL_VALUES_LESS): Delete.
4682 * real.c (real_less): New function.
4683 (real_compare): Use it.
4684 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
4685 of REAL_VALUES_LESS.
4686 * config/microblaze/microblaze.c (microblaze_const_double_ok):
4687 Likewise.
4688 * fold-const.c (fold_convert_const_int_from_real): Likewise.
4689 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4690 (simplify_const_relational_operation): Likewise.
4691 * tree-call-cdce.c (check_pow): Likewise.
4692 (gen_conditions_for_pow_cst_base): Likewise.
4693
4694 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4695
4696 * real.h (REAL_VALUES_IDENTICAL): Delete.
4697 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
4698 instead of REAL_VALUES_IDENTICAL.
4699 * fold-const.c (operand_equal_p): Likewise.
4700 * ipa-icf.c (sem_variable::equals): Likewise.
4701 * tree-complex.c (some_nonzerop): Likewise.
4702 (expand_complex_multiplication): Likewise.
4703 * tree.c (simple_cst_equal): Likewise.
4704 * varasm.c (compare_constant): Likewise.
4705
4706 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4707
4708 * real.h (real_equal): Declare.
4709 (REAL_VALUES_EQUAL): Delete.
4710 * real.c (real_equal): New function.
4711 (real_compare): Use it.
4712 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
4713 * doc/tm.texi: Regenerate.
4714 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
4715 real_equal instead of REAL_VALUES_EQUAL.
4716 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
4717 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
4718 (fp_const_from_val): Likewise.
4719 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
4720 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
4721 (floating_exact_log2): Likewise.
4722 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
4723 * config/vax/vax.c (vax_float_literal): Likewise.
4724 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
4725 * cprop.c (implicit_set_cond_p): Likewise.
4726 * expmed.c (expand_mult): Likewise.
4727 * fold-const.c (const_binop): Likewise.
4728 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4729 (simplify_const_binary_operation): Likewise.
4730 (simplify_const_relational_operation): Likewise.
4731 * tree-call-cdce.c (check_pow): Likewise.
4732 (gen_conditions_for_pow_cst_base): Likewise.
4733 * tree-inline.c (estimate_num_insns): Likewise.
4734 * tree-ssa-dom.c (record_equality): Likewise.
4735 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
4736 (gimple_expand_builtin_pow): Likewise.
4737 (pass_optimize_widening_mul::execute): Likewise.
4738 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4739 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
4740 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
4741
4742 2015-10-05 Richard Biener <rguenther@suse.de>
4743
4744 PR ipa/67783
4745 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
4746 consider loop header PHI defs as IVs.
4747
4748 2015-10-05 Richard Biener <rguenther@suse.de>
4749
4750 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
4751 call handling ...
4752 (create_expression_by_pieces): ... here and build GIMPLE
4753 calls directly. Use gimple_build API and avoid force_gimple_operand.
4754 (insert_into_preds_of_block): Simplify.
4755 (do_regular_insertion): Add comment.
4756
4757 2015-10-04 Jason Merrill <jason@redhat.com>
4758
4759 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
4760
4761 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
4762
4763 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
4764 check for general register.
4765 (ix86_emit_save_regs): Ditto.
4766 (ix86_emit_save_regs_using_mov): Ditto.
4767 (ix86_emit_restore_regs_using_pop): Ditto.
4768 (ix86_emit_restore_regs_using_mov): Ditto.
4769
4770 2015-10-03 Marek Polacek <polacek@redhat.com>
4771
4772 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
4773 (insn-dfatab.o): Likewise.
4774
4775 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
4776
4777 * config.gcc (xtensa*-*-uclinux*): New configuration.
4778 * config/xtensa/uclinux.h: New file.
4779 * config/xtensa/uclinux.opt: New file.
4780
4781 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
4782
4783 * doc/cpp.texi (Standard Predefined Macros): Document value of
4784 __cplusplus for C++14.
4785
4786 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
4787
4788 * gcc.c (process_command): Use spec_machine rather than
4789 spec_host_machine to build tooldir_prefix2.
4790
4791 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4792 Bernd Schmidt <bernds@codesourcery.com>
4793
4794 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
4795 (Token, Stmt): Remove structs.
4796 (decls, vars, fns): Remove variables.
4797 (alloc_comment, append_stmt, is_keyword): Remove macros.
4798 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
4799 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
4800 (parse_init, parse_file): Remove functions.
4801 (read_file): Accept a pointer to a length and store into it.
4802 (process): Don't try to parse the input file, just write it out as
4803 a string, but looking for maps. Also write out the length.
4804 (main): Don't use "-S" to compile PTX code.
4805
4806 2015-10-02 Jeff Law <law@redhat.com>
4807
4808 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
4809 fixups.
4810
4811 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4812
4813 PR target/67822
4814 * config/nvptx/mkoffload.c (main): Scan the argument vector for
4815 -fopenmp, and skip generating an offloading image if specified.
4816
4817 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
4818
4819 * system.h (ROUND_UP): New macro definition.
4820 (ROUND_DOWN): Ditto.
4821 * ggc-page.c (ROUND_UP): Remove local macro definition.
4822 (PAGE_ALIGN): Implement using ROUND_UP macro.
4823
4824 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
4825 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
4826 to align values.
4827 (ix86_compute_frame_layout): Ditto.
4828 (ix86_expand_prologue): Ditto.
4829 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
4830 to round down values.
4831 (expand_set_or_movmem_via_rep): Ditto.
4832
4833 2015-10-02 Marek Polacek <polacek@redhat.com>
4834
4835 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
4836
4837 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
4838
4839 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
4840 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
4841 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
4842 (free_gimple_bb): Renamed free_gimple_poly_bb.
4843 (try_generate_gimple_bb): Hoist loop invariant code.
4844 (analyze_drs_in_stmts): Same.
4845 (build_scop_drs): Call renamed functions.
4846 (new_pbb_from_pbb): Same.
4847 (scop_ivs_can_be_represented): Delete as functionality now moved to
4848 graphite-scop-detection.c
4849 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
4850
4851 2015-10-02 Aditya Kumar <hiraditya@msn.com>
4852
4853 * graphite-scop-detection.c (stmt_has_side_effects): New function
4854 outlined from stmt_simple_for_scop_p.
4855 (graphite_can_represent_stmt): Same.
4856 (stmt_simple_for_scop_p): Moved code out of this function for better
4857 readability.
4858
4859 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4860
4861 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
4862 F_AVX512IFMA.
4863 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
4864
4865 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4866
4867 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
4868
4869 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
4870
4871 PR rtl-optimization/67756
4872 * lra-constraints.c (match_reload): Add a new parameter. Use it
4873 for creating a pseudo with the same value.
4874 (curr_insn_transform): Pass a new argument to match_reload.
4875
4876 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4877
4878 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
4879 (expand_vec_perm_even_odd_1): Handle V64QImode.
4880 (ix86_expand_vec_perm_const_1): Try expansion with
4881 expand_vec_perm_even_odd_trunc as well.
4882 * config/i386/sse.md (VI124_AVX512F): Rename to ...
4883 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
4884 to V54QI.
4885 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
4886 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
4887 to V32HI and V16SI.
4888 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
4889 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
4890 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
4891 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
4892 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
4893 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
4894
4895 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
4896
4897 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
4898 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
4899
4900 2015-10-02 Jason Merrill <jason@redhat.com>
4901
4902 PR c/59218
4903 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
4904 (diagnose_tm_1_op): Also diagnose volatile accesses in
4905 transaction_safe function.
4906
4907 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
4908
4909 * system.h (malloc.h): Don't include obsolete header.
4910
4911 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4912
4913 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
4914 (TLS_SECTION_ASM_FLAG): Delete.
4915
4916 2015-10-02 Marek Polacek <polacek@redhat.com>
4917
4918 PR c/64249
4919 * doc/invoke.texi: Document -Wduplicated-cond.
4920 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
4921 (insn-dfatab.o): Likewise.
4922 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
4923 warning.
4924
4925 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
4926
4927 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
4928 sequences.
4929
4930 2015-10-02 Renlin Li <renlin.li@arm.com>
4931
4932 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
4933
4934 2015-10-02 Renlin Li <renlin.li@arm.com>
4935
4936 PR target/66776
4937 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
4938
4939 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4940
4941 PR rtl-optimization/67786
4942 PR rtl-optimization/67787
4943 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
4944 it modifies a reg used in the condition calculation.
4945
4946 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
4947
4948 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
4949 alternatives for reads from memory and moves from general-purpose
4950 registers.
4951 (*aarch64_combinez_be<mode>): Likewise.
4952
4953 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
4954
4955 PR target/51726
4956 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
4957 selectany within this function without need to keep attribute.
4958 (i386_pe_encode_section_info): Remove selectany-code.
4959
4960 2015-10-02 Richard Biener <rguenther@suse.de>
4961
4962 * tree-ssa-sccvn.c (has_VN_INFO): New function.
4963 (free_scc_vn): Use it.
4964 (visit_use): Remove dead code and refactor to use gassign
4965 and use less indentation.
4966
4967 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
4968
4969 PR target/67788
4970 PR target/67789
4971 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
4972 (rs6000_cannot_copy_insn_p): New function.
4973 * config/rs6000/rs6000.md (cannot_copy): New attribute.
4974 (load_toc_v4_PIC_1_normal): Set cannot_copy.
4975 (load_toc_v4_PIC_1_476): Ditto.
4976
4977 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4978
4979 * graphite-scop-detection.c (struct sese_l): New conversion constructor
4980 so that this type can be pushed into a vec.
4981 (class scop_builder): use sese_l to collect scops.
4982 (get_scops): New getter function.
4983 (remove_intersecting_scops): Use sese_l instead of scops_p.
4984 (intersects): Same.
4985 (add_scop): Same.
4986 (subsumes): Same.
4987 (remove_subscops): Same.
4988 (build_scops): Add scops to vec<scops_p> once all the scops have been
4989 detected.
4990
4991 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
4992
4993 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4994 Renamed type from gimple_bb_p to gimple_poly_bb_p.
4995 (translate_isl_ast_node_user): Same.
4996 * graphite-poly.c (new_poly_bb): Same.
4997 * graphite-poly.h (gbb_from_bb): Same.
4998 * sese.h: Same.
4999 * graphite-sese-to-poly.c (new_gimple_bb):
5000 gimple_bb_p -> gimple_poly_bb_p
5001 (build_scop_scattering): Same.
5002 (find_params_in_bb): Same.
5003 (add_conditions_to_domain): Same.
5004 (sese_dom_walker::before_dom_children): Same.
5005 (analyze_drs_in_stmts): Same.
5006 (new_pbb_from_pbb): Same.
5007 (free_data_refs_aux): New pointer to type base_alias_pair.
5008 * graphite-sese-to-poly.h: Same.
5009 * sese.c (if_region_set_false_region): Fixed Indentation.
5010 (move_sese_in_condition): Same.
5011
5012 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5013 Aditya Kumar <aditya.k7@samsung.com>
5014
5015 PR tree-optimization/66980
5016 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5017 when data reference analysis has failed.
5018
5019 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5020 Aditya Kumar <aditya.k7@samsung.com>
5021
5022 PR tree-optimization/67754
5023 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5024 scev analysis on the same loop nest as analyze_drs_in_stmts.
5025 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5026 renamed...
5027 (try_generate_gimple_bb): Call outermost_loop_in_sese.
5028 (analyze_drs_in_stmts): Same.
5029 * sese.c (outermost_loop_in_sese): ...here.
5030
5031 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5032 Aditya Kumar <aditya.k7@samsung.com>
5033
5034 PR tree-optimization/67754
5035 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5036 recursion on the inner loops.
5037
5038 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5039
5040 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5041 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5042 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5043 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5044 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5045
5046 2015-10-01 Marek Polacek <polacek@redhat.com>
5047
5048 PR c/65345
5049 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5050 create_tmp_var_raw rather than create_tmp_var.
5051
5052 2015-10-01 Marek Polacek <polacek@redhat.com>
5053
5054 PR tree-optimization/67769
5055 * tree-ssa-phiopt.c (conditional_replacement): Call
5056 reset_flow_sensitive_info_in_bb.
5057 (minmax_replacement): Likewise.
5058 (abs_replacement): Likewise.
5059
5060 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
5061
5062 * builtins.c: Don't include gomp-constants.h.
5063 (fold_builtin_1): Don't fold acc_on_device here.
5064 * gimple-fold.c: Include gomp-constants.h.
5065 (gimple_fold_builtin_acc_on_device): New.
5066 (gimple_fold_builtin): Call it.
5067
5068 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
5069
5070 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5071 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5072
5073 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
5074
5075 * config/arm/aarch-common-protos.h
5076 (aarch_accumulator_forwarding): New.
5077 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5078 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5079 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5080 * config/arm/cortex-a53.md: Rewrite.
5081
5082 2015-10-01 Richard Biener <rguenther@suse.de>
5083
5084 * gimple-match.h (mprts_hook): Declare.
5085 * gimple-match.head.c (mprts_hook): Define.
5086 (maybe_push_res_to_seq): Use new hook.
5087 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5088 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5089 (vn_ssa_aux::has_constants): Remove.
5090 * tree-ssa-sccvn.c: Include gimple-match.h.
5091 (VN_INFO_GET): Assert we don't re-use SSA names.
5092 (vn_get_expr_for): Remove.
5093 (expr_has_constants): Likewise.
5094 (stmt_has_constants): Likewise.
5095 (simplify_binary_expression): Likewise.
5096 (simplify_unary_expression): Likewise.
5097 (vn_lookup_simplify_result): New hook.
5098 (visit_copy): Adjust.
5099 (visit_reference_op_call): Likewise.
5100 (visit_phi): Likewise.
5101 (visit_use): Likewise.
5102 (process_scc): Likewise.
5103 (init_scc_vn): Likewise.
5104 (visit_reference_op_load): Likewise. Use match-and-simplify and
5105 a gimple seq for inserted expressions.
5106 (try_to_simplify): Remove GENERIC stmt combining code.
5107 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5108 * tree-ssa-pre.c (eliminate_insert): Adjust.
5109 (eliminate_dom_walker::before_dom_children): Likewise.
5110
5111 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5112
5113 * doc/invoke.texi (Optimization Options): Add
5114 -freorder-blocks-algorithm=.
5115 (Optimize Options) <-O>: Add -freorder-blocks.
5116 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
5117 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5118 <-freorder-blocks>: Also enabled at levels -O and -Os.
5119 <-freorder-blocks-algorithm=>: Document new option.
5120
5121 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5122
5123 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5124 with flag_reorder_blocks_algorithm.
5125 * common.opt (freorder-blocks-algorithm=): New flag.
5126 (reorder_blocks_algorithm): New enum.
5127 * flag-types.h (reorder_blocks_algorithm): New enum.
5128 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5129 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5130
5131 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5132
5133 * bb-reorder.c: Add intro comment.
5134 (reorder_basic_blocks_software_trace_cache): Print a header to
5135 the dump file.
5136 (edge_order): New function.
5137 (reorder_basic_blocks_simple): New function.
5138 (reorder_basic_blocks): Choose between the STC and the simple
5139 algorithms (always choose the former).
5140
5141 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5142
5143 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5144 function, factored out from ...
5145 (reorder_basic_blocks): ... here.
5146
5147 2015-10-01 Tom de Vries <tom@codesourcery.com>
5148
5149 * tree-cfg.c (dump_function_to_file): Dump function attributes using
5150 __attribute__(()) string. Move dumping of function attributes to before
5151 function name.
5152
5153 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
5154
5155 PR target/66870
5156 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5157 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5158 based on gold linker version.
5159 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5160 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5161 * configure, config.in: Regenerate.
5162
5163 2015-10-01 Alan Modra <amodra@gmail.com>
5164
5165 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5166 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5167 (rs6000_output_mi_thunk): Likewise.
5168
5169 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5170
5171 * config/nvptx/mkoffload.c (process): Change offload data format.
5172
5173 2015-09-30 Jeff Law <law@redhat.com>
5174
5175 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5176 with constant conditions.
5177 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5178 (remove_ctrl_stmt_and_useless_edges): No longer static.
5179 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5180 (remove_ctrl_stmt_and_useless_edges): Likewise.
5181
5182 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5183 Cesar Philippidis <cesar@codesourcery.com>
5184
5185 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5186 (TARGET_GOACC_VALIDATE_DIMS): Override.
5187 * target.def (TARGET_GOACC): New target hook prefix.
5188 (validate_dims): New hook.
5189 * targhooks.h (default_goacc_validate_dims): New.
5190 * omp-low.c (oacc_validate_dims): New.
5191 (execute_oacc_device_lower): New.
5192 (default_goacc_validate_dims): New.
5193 (pass_data_oacc_device_lower): New.
5194 (pass_oacc_device_lower): New pass.
5195 (make_pass_oacc_device_lower): New.
5196 * tree-pass.h (make_pass_oacc_device_lower): Declare.
5197 * passes.def (pass_oacc_device_lower): Add it.
5198 * doc/tm.texi: Rebuilt.
5199 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5200 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5201
5202 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5203
5204 PR rtl-optimization/67037
5205 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5206
5207 2015-09-30 Bernd Schmidt <bernds@redhat.com>
5208
5209 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5210 * passes.c: Include tree-ssanames.h.
5211 (execute_function_todo): Flush the pending free SSA_NAMEs after
5212 eliminating unreachable basic blocks.
5213 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5214 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5215 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5216 (flush_ssanames_freelist): New function.
5217 (release_ssaname_fn): Put released names on the queue.
5218 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5219 * tree-ssanames.h (flush_ssanames_freelist): Declare.
5220
5221 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5222
5223 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5224 (generate_target_descr_file, generate_target_offloadend_file)
5225 (generate_host_descr_file, prepare_target_image): Pass it on.
5226 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5227 (compile_native, main): Pass it on.
5228 * lto-wrapper.c (compile_offload_image): Likewise.
5229
5230 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5231 Ilya Verbin <ilya.verbin@intel.com>
5232 Andrey Turetskiy <andrey.turetskiy@intel.com>
5233
5234 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5235 (prepare_target_image, main): Refactor argv building to use
5236 obstacks.
5237
5238 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5239
5240 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5241 * config/spu/spu.c (spu_expand_atomic_op): New function.
5242 * config/spu/spu.md (AINT): New mode iterator.
5243 (ATOMIC): New code iterator.
5244 (atomic_name, atomic_pred): New code predicates.
5245 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5246 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5247 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5248 "atomic_<atomic_name>_fetch<mode>"): Likewise.
5249
5250 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
5251
5252 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
5253 debug insns.
5254 (scalar_chain::convert_reg): Likewise.
5255
5256 2015-09-30 Richard Biener <rguenther@suse.de>
5257
5258 * builtins.c: Add comment that no new simplifications should
5259 be added here.
5260
5261 2015-09-30 Marek Polacek <polacek@redhat.com>
5262
5263 PR tree-optimization/67690
5264 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
5265 reset_flow_sensitive_info_in_bb.
5266 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
5267 * tree-ssanames.c: Include "gimple-iterator.h".
5268 (reset_flow_sensitive_info_in_bb): New function.
5269 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
5270
5271 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5272
5273 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
5274 variable, replacing it with...
5275 (offload_abi): ... this new variable. Adjust all users.
5276 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
5277
5278 2015-09-30 Matthias Klose <doko@ubuntu.com>
5279
5280 * configure.ac: Remove extraneous ;;.
5281 * configure: Regenerate.
5282
5283 2015-09-29 James Bowman <james.bowman@ftdichip.com>
5284
5285 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
5286 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
5287 predicate, disallow register for operand 2.
5288
5289 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
5290
5291 * graphite-dependences.c (scop_get_dependences): Moved in down
5292 in order to be visible to its caller.
5293 * graphite-poly.h: Removed compute_deps, and extend_schedule.
5294
5295 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5296 Aditya Kumar <aditya.k7@samsung.com>
5297
5298 PR tree-optimization/67754
5299 * graphite-optimize-isl.c (optimize_isl): Call
5300 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
5301
5302 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5303
5304 * builtins.c (expand_builtin_acc_on_device): Delete.
5305 (expand_builtin): Don't call it.
5306 (fold_builtin_1): Fold acc_on_device.
5307
5308 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
5309
5310 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
5311 (ix86_nsaved_sseregs): Likewise.
5312
5313 2015-09-29 Jeff Law <law@redhat.com>
5314
5315 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
5316 computation of unused value.
5317
5318 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
5319 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
5320 inline macro expansion.
5321
5322 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
5323
5324 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
5325 (gen_shl_sext): Likewise.
5326 * config/sh/sh.md (divsi3): Likewise.
5327 (imm->ext_dest_operand splitter): Likewise.
5328
5329 2015-09-29 Sebastian Pop <s.pop@samsung.com>
5330 Aditya Kumar <aditya.k7@samsung.com>
5331
5332 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
5333 (nb_data_writes_in_bb): Remove.
5334 (split_pbb): Remove.
5335 (split_reduction_stmt): Remove.
5336 (is_reduction_operation_p): Remove.
5337 (phi_contains_arg): Remove.
5338 (follow_ssa_with_commutative_ops): Remove.
5339 (detect_commutative_reduction_arg): Remove.
5340 (detect_commutative_reduction_assign): Remove.
5341 (follow_inital_value_to_phi): Remove.
5342 (edge_initial_value_for_loop_phi): Remove.
5343 (initial_value_for_loop_phi): Remove.
5344 (used_outside_reduction): Remove.
5345 (detect_commutative_reduction): Remove.
5346 (translate_scalar_reduction_to_array_for_stmt): Remove.
5347 (remove_phi): Remove.
5348 (dr_indices_valid_in_loop): Remove.
5349 (close_phi_written_to_memory): Remove.
5350 (translate_scalar_reduction_to_array): Remove.
5351 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
5352 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
5353 (rewrite_commutative_reductions_out_of_ssa): Remove.
5354 (build_poly_scop): Remove call to
5355 rewrite_commutative_reductions_out_of_ssa.
5356
5357 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
5358
5359 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
5360 Add new insn types for vector load and store pairs.
5361 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
5362 types "neon_ldp{,_q}".
5363 * config/arm/cortex-a57.md (neon_load_c): Add insn types
5364 "neon_ldp{,_q}".
5365 (neon_store_complex): Add insn types "neon_stp{,_q}".
5366 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
5367 "neon_{ldp,stp}_q".
5368
5369 2015-09-29 Jeff Law <law@redhat.com>
5370
5371 * config/rx/constraints.md (Int08): Fix undefined left shift
5372 behaviour.
5373 (Sint08, Sint16, Sint24): Likewise.
5374 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5375
5376 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
5377 behaviour.
5378
5379 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
5380 left shift behaviour.
5381 * config/msp430/constraints.md ('L' constraint): Similarly.
5382 ('Ys' constraint): Similarly.
5383
5384 2015-09-29 Richard Biener <rguenther@suse.de>
5385
5386 PR tree-optimization/67170
5387 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
5388 the translate function pointer parameter to get the
5389 bool whether to disambiguate only by reference.
5390 (walk_non_aliased_vuses): Likewise.
5391 * tree-ssa-alias.c (maybe_skip_until): Adjust.
5392 (get_continuation_for_phi_1): Likewise.
5393 (get_continuation_for_phi): Likewise.
5394 (walk_non_aliased_vuses): Likewise.
5395 * tree-ssa-sccvn.c (const_parms): New bitmap.
5396 (vn_reference_lookup_3): Adjust for interface change.
5397 Disambiguate parameters pointing to readonly memory.
5398 (free_scc_vn): Free const_parms.
5399 (run_scc_vn): Initialize const_parms from a fn spec attribute.
5400
5401 2015-09-29 Richard Biener <rguenther@suse.de>
5402
5403 PR tree-optimization/67741
5404 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
5405 builtin calls with correct signature.
5406
5407 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
5408
5409 PR target/65105
5410 * config/i386/i386.c: Include dbgcnt.h.
5411 (has_non_address_hard_reg): New.
5412 (convertible_comparison_p): New.
5413 (scalar_to_vector_candidate_p): New.
5414 (remove_non_convertible_regs): New.
5415 (scalar_chain): New.
5416 (scalar_chain::scalar_chain): New.
5417 (scalar_chain::~scalar_chain): New.
5418 (scalar_chain::add_to_queue): New.
5419 (scalar_chain::mark_dual_mode_def): New.
5420 (scalar_chain::analyze_register_chain): New.
5421 (scalar_chain::add_insn): New.
5422 (scalar_chain::build): New.
5423 (scalar_chain::compute_convert_gain): New.
5424 (scalar_chain::replace_with_subreg): New.
5425 (scalar_chain::replace_with_subreg_in_insn): New.
5426 (scalar_chain::emit_conversion_insns): New.
5427 (scalar_chain::make_vector_copies): New.
5428 (scalar_chain::convert_reg): New.
5429 (scalar_chain::convert_op): New.
5430 (scalar_chain::convert_insn): New.
5431 (scalar_chain::convert): New.
5432 (convert_scalars_to_vector): New.
5433 (pass_data_stv): New.
5434 (pass_stv): New.
5435 (make_pass_stv): New.
5436 (ix86_option_override): Created and register stv pass.
5437 (flag_opts): Add -mstv.
5438 (ix86_option_override_internal): Likewise.
5439 * config/i386/i386.md (SWIM1248x): New.
5440 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
5441 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
5442 (*anddi3_doubleword): New.
5443 (*zext<mode>_doubleword): New.
5444 (*zextsi_doubleword): New.
5445 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
5446 (*<code>di3_doubleword): New.
5447 * config/i386/i386.opt (mstv): New.
5448 * dbgcnt.def (stv_conversion): New.
5449
5450 2015-09-29 Tom de Vries <tom@codesourcery.com>
5451
5452 * tree-cfg.c (dump_function_to_file): Dump function attributes.
5453
5454 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
5455
5456 PR target/67716
5457 * config/sh/sh.c (sh_override_options_after_change): New.
5458 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5459 (sh_option_override): Move align_loops, align_jumps and
5460 align_functions handling into sh_override_options_after_change.
5461
5462 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5463
5464 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
5465 (nvptx_record_offload_symbol): Record function execution geometry.
5466 * config/nvptx/mkoffload.c (process): Include launch geometry in
5467 function data.
5468 * omp-low.c (oacc_launch_pack): New.
5469 (replace_oacc_fn_attrib): New.
5470 (set_oacc_fn_attrib): New.
5471 (get_oacc_fn_attrib): New.
5472 (expand_omp_target): Create keyed varargs for GOACC_parallel call
5473 generation.
5474 * omp-low.h (get_oacc_fn_attrib): Declare.
5475 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
5476 (DEF_FUNCTION_TYPE_VAR_11): Delete.
5477 * tree.h (OMP_CLAUSE_EXPR): New.
5478 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
5479
5480 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5481 Sebastian Pop <s.pop@samsung.com>
5482
5483 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
5484
5485 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5486 Sebastian Pop <s.pop@samsung.com>
5487
5488 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
5489 * graphite-scop-detection.c (struct sese_l): New type.
5490 (get_entry_bb): API for getting entry bb of SESE.
5491 (get_exit_bb): API for getting exit bb of SESE.
5492 (class debug_printer): New type. Simple printer in debug mode.
5493 (trivially_empty_bb_p): New. Return true when BB is empty or
5494 contains only debug instructions.
5495 (graphite_can_represent_expr): Call scalar_evoution_in_region
5496 instead of analyze_scalar_evolution. Pass in scop instead of only
5497 the scop entry.
5498 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
5499 scop entry.
5500 (stmt_simple_for_scop_p): Same.
5501 (harmful_stmt_in_bb): Same.
5502 (graphite_can_represent_loop): Deleted.
5503 (struct scopdet_info): Deleted.
5504 (scopdet_basic_block_info): Deleted.
5505 (build_scops_1): Deleted.
5506 (bb_in_sd_region): Deleted.
5507 (find_single_entry_edge): Deleted.
5508 (find_single_exit_edge): Deleted.
5509 (create_single_entry_edge): Deleted.
5510 (sd_region_without_exit): Deleted.
5511 (create_single_exit_edge): Deleted.
5512 (unmark_exit_edges): Deleted.
5513 (mark_exit_edges): Deleted.
5514 (create_sese_edges): Deleted.
5515 (build_graphite_scops): Deleted.
5516 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
5517 (build_scops): Use the new scop_builder to build scops.
5518 (dot_all_scops_1): Use the new pretty printer. Print loop father
5519 as well.
5520 (loop_body_is_valid_scop): New. Return true if loop body is a
5521 valid scop.
5522 (class scop_builder): New. Builds SCoPs for polyhedral
5523 optimizations.
5524 (scop_builder): New constructor.
5525 (static sese_l invalid_sese): sese_l with invalid edges.
5526 (get_sese): Get an sese (from a loop) if possible, invalid_sese
5527 otherwise.
5528 (get_nearest_dom_with_single_entry): Get nearest dominator of a
5529 basic_block with single entry. Return NULL if we get to the
5530 beginning of a function.
5531 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
5532 a basic_block with single exit. Return NULL if we get to the
5533 beginning of a function.
5534 (print_sese): Pretty-print SESE.
5535 (merge_sese): Merge two SESEs if possible and return the new SESE.
5536 (build_scop_depth): Start building the SCoP within a loop nest.
5537 (build_scop_breadth): Start building the SCoP at a single loop
5538 depth. Merge adjacent SESEs if valid.
5539 (can_represent_loop_1): Returns true if Graphite can represent
5540 loop inside SCoP. Helper for can_represent_loop.
5541 (can_represent_loop): Returns true if Graphite can represent LOOP
5542 and all its nested loops in SCoP.
5543 (loop_is_valid_scop): Returns true if LOOP and all its nests
5544 constitute a valid SCoP.
5545 (region_has_one_loop): Returns true of a region has only one loop.
5546 (add_scop): Add SCoP to the list of valid scops. Removes an
5547 already existing scop if it intersects with or subsumed by this one.
5548 (harmful_stmt_in_region): Returns true if SCoP has any statment
5549 which cannot be represented by Graphite.
5550 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
5551 (remove_subscops): Remove any SCoP from the list of already found
5552 SCoPs, if subsumed by S1.
5553 (intersects): Return true if region bounded by SCoPs S1 and S2
5554 intersect.
5555 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
5556 * graphite.c (print_graphite_scop_statistics):
5557 (print_graphite_statistics): Print SCoP info while debugging.
5558 (graphite_initialize): Early exit in case number of loops in a
5559 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
5560 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
5561 (graphite_finalize):
5562 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
5563 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
5564 (recompute_all_dominators): Recalculate POST_DOMINATORS.
5565 * tree-cfg.c (print_loops): Print the function name while printing
5566 loops.
5567
5568 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
5569 Sebastian Pop <s.pop@samsung.com>
5570
5571 PR tree-optimization/67700
5572 * graphite-sese-to-poly.c (parameter_index_in_region): Call
5573 invariant_in_sese_p_rec.
5574 (extract_affine): Same.
5575 (rewrite_cross_bb_scalar_deps): Call update_ssa.
5576 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
5577 * sese.h (invariant_in_sese_p_rec): Declare.
5578
5579 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
5580
5581 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
5582
5583 2015-09-28 Jiong Wang <jiong.wang@arm.com>
5584
5585 Revert:
5586 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5587 Jiong Wang <jiong.wang@arm.com>
5588
5589 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5590 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5591 (REG_CLASS_NAMES): Likewise.
5592 (REG_CLASS_CONTENTS): Likewise.
5593 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5594 (aarch64_register_move_cost): Likewise.
5595 (aarch64_load_symref_appropriately): Invoke the new added pattern if
5596 possible.
5597 * config/aarch64/constraints.md (Uc0): New constraint.
5598
5599 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
5600
5601 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
5602
5603 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
5604
5605 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
5606 SECTION_EXCLUDE in XO mapping class.
5607
5608 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
5609
5610 PR target/54236
5611 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
5612 and handle ne and eq codes.
5613 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
5614 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
5615 CONST_INT_P. Use reverse_condition.
5616 (sh_split_treg_set_expr): Likewise.
5617
5618 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
5619
5620 * config/arm/types.md (type): Add rotate_imm.
5621 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
5622 ROR immediate case.
5623 (*rorsi3_insn_uxtw): Likewise.
5624 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
5625 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
5626 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
5627
5628 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5629
5630 PR rtl-optimization/67481
5631 * ifcvt.c (contains_ccmode_rtx_p): New function.
5632 (insn_valid_noce_process_p): Use it.
5633
5634 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5635
5636 PR rtl-optimization/67456
5637 PR rtl-optimization/67464
5638 PR rtl-optimization/67465
5639 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
5640 move in the mode of x. Handle combination of complex and simple
5641 block pairs as well as the case when one is empty.
5642
5643 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5644
5645 * doc/gimple.texi: Update references to gimple_statement_base.
5646 * gdbhooks.py: Likewise.
5647 * gimple.h: Likewise.
5648
5649 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5650
5651 * config/sparc/driver-sparc.c: map LEON to leon3
5652
5653 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5654
5655 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
5656 and make it inverse to change default
5657 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
5658 supervisor mode
5659 * doc/invoke.texi: Document change of default
5660
5661 2015-09-28 Daniel Cederman <cederman@gaisler.com>
5662
5663 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
5664 true on %f0 for a target without FPU.
5665 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
5666 without FPU.
5667 (untyped_return): Do not load %f0 for a target without FPU.
5668
5669 2015-09-28 Andrew Pinski <apinski@cavium.com>
5670
5671 * config/aarch64/aarch64.md (prefetch):
5672 Change the predicate of operand 0 to register_operand.
5673
5674 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
5675
5676 * config/i386/predicates.md (register_sse4nonimm_operand): New
5677 predicate.
5678 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
5679 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
5680 Use register_sse4nonimm_operand as operand 0 predicate.
5681 (*vec_extractv8hi_sse2): Remove insn pattern.
5682 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
5683 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
5684
5685 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
5686 Kaz Kojima <kkojima@gcc.gnu.org>
5687
5688 PR target/67391
5689 * config/sh/sh-protos.h (sh_lra_p): Declare.
5690 * config/sh/sh.c (sh_lra_p): Make non-static.
5691 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
5692 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
5693 Expand into addsi3_scr if operands[2] if needed.
5694 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
5695 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
5696 (addsi3_scr, *addsi3): New insn_and_split patterns.
5697
5698 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
5699
5700 PR rtl-optimization/64164
5701 PR tree-optimization/67312
5702 PR middle-end/67340
5703 PR middle-end/67490
5704 PR bootstrap/67597
5705 * cfgexpand.c (parm_in_stack_slot_p): Remove.
5706 (ssa_default_def_partition): Remove.
5707 (get_rtl_for_parm_ssa_default_def): Remove.
5708 (set_rtl): Check that RTL assignments match expectations.
5709 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
5710 default def location for params and results. Record SSA names
5711 or types in REG and MEM attrs, respectively.
5712 (set_parm_rtl): New.
5713 (expand_one_ssa_partition): Drop logic that assigned MEMs with
5714 unassigned addresses.
5715 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
5716 deferred stack alloc vars.
5717 (expand_used_vars): Skip partitions holding parm default defs.
5718 Move adjust_one_expanded_partition_var loop...
5719 (pass_expand::execute): ... here. Drop redundant assert.
5720 Adjust comments before the final loop over all ssa names.
5721 Require assigned rtl of parms and results to match exactly.
5722 Reset its attributes to match them, not any other variables in
5723 the same partition.
5724 (expand_debug_expr): Use entry value for PARM's default defs
5725 only iff they have zero nondebug uses.
5726 * cfgexpand.h (parm_in_stack_slot_p): Remove.
5727 (get_rtl_for_parm_ssa_default_def): Remove.
5728 (set_parm_rtl): Declare.
5729 * doc/invoke.texi: Improve wording.
5730 * explow.c (promote_decl_mode): Fix promote_function_mode for
5731 result decls not by reference.
5732 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
5733 bypass TYPE_MODE to get the actual vector mode.
5734 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
5735 2015-08-19's changes as follows. Drop include of
5736 basic-block.h and df.h.
5737 (rtl_for_parm): Remove.
5738 (maybe_reset_rtl_for_parm): Remove.
5739 (parm_in_unassigned_mem_p): Remove.
5740 (use_register_for_decl): Add logic for RESULT_DECLs matching
5741 assign_parms' behavior.
5742 (split_complex_args): Revert.
5743 (assign_parms_augmented_arg_list): Revert. Add comment
5744 referencing the logic above.
5745 (assign_parm_adjust_stack_rtl): Revert.
5746 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
5747 of SET_DECL_RTL. Set up a REG if the parm demands so.
5748 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
5749 calls into a single set_parm_rtl. Set up a temporary RTL
5750 temporarily for expand_assignment.
5751 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
5752 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
5753 (assign_bounds): Revert.
5754 (assign_parms): Revert. Use set_parm_rtl.
5755 (allocate_struct_function): Relayout result and parms of
5756 non-abstruct functions.
5757 (expand_function_start): Revert. Use set_parm_rtl. If the
5758 result is not a hard reg, create a pseudo from the promoted
5759 mode of the default def. Promote static chain mode.
5760 * tree-outof-ssa.c (remove_ssa_form): Drop unused
5761 partition_has_default_def. Set up
5762 partitions_for_parm_default_defs.
5763 (finish_out_of_ssa): Remove partition_has_default_def.
5764 Release partitions_for_parm_default_defs.
5765 * tree-outof-ssa.h (struct ssaexpand): Remove
5766 partition_has_default_def. Add
5767 partitions_for_parm_default_defs.
5768 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
5769 stor-layout.h.
5770 (build_ssa_conflict_graph): Fix conflict-detection of default
5771 defs of even unused default defs of params and results.
5772 (for_all_parms): New.
5773 (create_default_def): New.
5774 (register_default_def): New.
5775 (coalesce_with_default): New.
5776 (create_outofssa_var_map): Create default defs for all parms
5777 and results, and register their partitions. Add GIMPLE_RETURN
5778 operands as coalesce candidates with results. Add default
5779 defs of each parm or result as coalesce candidates with its
5780 other defs. Mark each result def, and each default def of
5781 parms, as used_in_copy.
5782 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
5783 with the ssa names, even anonymous ones. Drop
5784 parm_in_stack_slot_p calls. Require same signedness and
5785 alignment.
5786 (coalesce_ssa_name): Add coalesce candidates for all defs of
5787 each parm and result, even unused ones.
5788 (parm_default_def_partition_arg): New type.
5789 (set_parm_default_def_partition): New.
5790 (get_parm_default_def_partitions): New.
5791 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
5792 * tree-ssa-live.c (partition_view_init): Regard unused defs of
5793 parms and results as used.
5794 (verify_live_on_entry): Don't error out just because they're
5795 not live.
5796
5797 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
5798
5799 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5800 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
5801 (output_fde): Don't output length for debug_frame on AIX.
5802 (output_call_frame_info): Don't output length for debug_frame on AIX.
5803 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
5804 HAVE_XCOFF_DWARF_EXTRAS.
5805 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
5806 HAVE_XCOFF_DWARF_EXTRAS.
5807 (output_compilation_unit_header): Don't output length on AIX.
5808 (output_pubnames): Don't output length on AIX.
5809 (output_aranges): Delete argument. Compute length locally. Don't
5810 output length on AIX.
5811 (output_line_info): Don't output length on AIX.
5812 (dwarf2out_finish): Don't compute aranges_length.
5813 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
5814 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
5815 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
5816 symbol decoration for AIX.
5817 (rs6000_xcoff_debug_unwind_info): New.
5818 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
5819 for SECTION_DEBUG.
5820 (rs6000_xcoff_declare_function_name): Emit different
5821 .function pseudo-op when DWARF2_DEBUG. Don't call
5822 xcoffout_declare_function for DWARF2_DEBUG.
5823 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
5824 Redefine.
5825 * config/rs6000/aix71.h: New.
5826 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
5827 locations support.
5828 * configure: Regenerate.
5829 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
5830 DWARF support.
5831
5832 2015-09-26 Jeff Law <law@redhat.com>
5833
5834 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
5835 behaviour.
5836 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
5837 behaviour.
5838
5839 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
5840 behaviour
5841
5842 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
5843 undefined behaviour.
5844
5845 * config/cris/cris.md (asrandb): Fix left shift undefined
5846 behaviour.
5847 (asrandw): Likewise.
5848
5849 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
5850
5851 PR target/61578
5852 * lra-constarints.c (match_reload): Check presence of the input pseudo
5853 in the output operand.
5854
5855 2015-09-25 Tobias Burnus <burnus@net-b.de>
5856
5857 * doc/invoke.texi (-fsanitize): Minor wording tweak.
5858
5859 2015-09-25 Tobias Burnus <burnus@net-b.de>
5860
5861 * doc/invoke.texi (-fsanitize): Update URLs.
5862
5863 2015-09-25 Teresa Johnson <tejohnson@google.com>
5864
5865 * opts.c (finish_options): Unset -freorder-blocks-and-partition
5866 if not using profile.
5867
5868 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5869
5870 PR pretty-print/67567
5871 * pretty-print.c (pp_string): Add gcc_checking_assert.
5872 * pretty-print.h (output_buffer_append_r): Likewise.
5873
5874 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
5875
5876 PR target/67675
5877 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
5878 addr2 individually. Don't emit logical or insn if one is known to
5879 be aligned approriately.
5880 (sh_expand_cmpnstr): Likewise.
5881
5882 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
5883
5884 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
5885 __builtin_aarch64_fp[sc]r arguments into a register.
5886
5887 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
5888
5889 * config.gcc (x86_archs): Replace lakemount with lakemont.
5890 (with_cpu): Likewise.
5891 (with_arch): Likewise.
5892 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5893 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
5894 __tune_lakemount__ with __tune_lakemont__.
5895 * config/i386/i386.c (lakemount_cost): Renamed to ...
5896 (lakemont_cost): This.
5897 (m_LAKEMOUNT): Renamed to ...
5898 (m_LAKEMONT): This.
5899 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
5900 (processor_target_table): Replace "lakemount" with "lakemont".
5901 (processor_alias_table): Likewise.
5902 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
5903 PROCESSOR_LAKEMONT.
5904 (ix86_adjust_cost): Likewise.
5905 (ia32_multipass_dfa_lookahead): Likewise.
5906 * config/i386/i386.h (processor_type): Likewise.
5907 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
5908 * doc/invoke.texi: Replace lakemount with lakemont. Replace
5909 Lakemount with Lakemont.
5910
5911 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
5912
5913 * config.gcc (x86_archs): Replace iamcu with lakemount.
5914 (with_cpu): Likewise.
5915 (with_arch): Likewise.
5916 * doc/invoke.texi: Likewise.
5917 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
5918 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
5919 __tune_iamcu__ with __tune_lakemount__.
5920 * config/i386/i386.c (iamcu_cost): Renamed to ...
5921 (lakemount_cost): This.
5922 (m_IAMCU): Renamed to ...
5923 (m_LAKEMOUNT): This.
5924 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
5925 (processor_target_table): Replace "iamcu" with "lakemount".
5926 (processor_alias_table): Likewise.
5927 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
5928 PROCESSOR_LAKEMOUNT.
5929 (ix86_adjust_cost): Likewise.
5930 (ia32_multipass_dfa_lookahead): Likewise.
5931 * config/i386/i386.h (processor_type): Likewise.
5932 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
5933
5934 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
5935
5936 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
5937 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
5938 Declare.
5939 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
5940 (pa_expand_compare_and_swap_loop): New.
5941 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
5942 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
5943 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
5944 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
5945 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
5946 Revise.
5947
5948 2015-09-24 Michael Collison <michael.collison@linaro.org>
5949
5950 PR other/57195
5951 * read-md.c (read_name): Allow mode iterators inside angle
5952 brackets in rtl expressions.
5953
5954 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
5955
5956 PR target/61578
5957 * ira-color.c (update_allocno_cost): Add parameter.
5958 (update_costs_from_allocno): Decrease conflict cost. Pass the new
5959 parameter.
5960
5961 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5962
5963 PR driver/67640
5964 * opts-common.c (prune_options): Discard all -fdiagnostics-color
5965 but the last one, which is moved to the front to be processed
5966 first.
5967 * opts.c (enable_warning_as_error): Reject options that do not
5968 control warnings.
5969
5970 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5971
5972 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
5973
5974 2015-09-24 Jiong Wang <jiong.wang@arm.com>
5975
5976 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
5977 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
5978 (aarch64_cannot_force_const_mem): Likewise.
5979 (aarch64_classify_address): Likewise.
5980 (aarch64_classify_symbolic_expression): Likewise.
5981 (aarch64_print_operand): Likewise.
5982 (aarch64_classify_symbol): Likewise.
5983 (aarch64_mov_operand_p): Likewise.
5984 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
5985 (aarch64_mov_operand): Likewise.
5986
5987 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
5988
5989 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
5990 for info->spe_gp_size.
5991
5992 2015-09-24 Richard Biener <rguenther@suse.de>
5993
5994 PR lto/67699
5995 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
5996 abstract origins.
5997
5998 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
5999
6000 * tree-object-size.c (plus_stmt_object_size)
6001 (cond_expr_object_size): Change the formal parameters from gimple
6002 to gimple *.
6003 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6004 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6005 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6006
6007 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6008
6009 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6010 Check for ld -type pie on Solaris 11.x and 12.
6011 * configure: Regenerate.
6012 * config.in: Regenerate.
6013
6014 * gcc.c (LD_PIE_SPEC): Allow redefinition.
6015
6016 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6017 (STARTFILE_SPEC): Use it.
6018 (ENDFILE_CRTEND_SPEC): Define.
6019 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6020 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6021 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6022 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6023 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6024 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6025 (ENDFILE_ARCH_SPEC): Define.
6026 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6027
6028 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6029
6030 * configure.ac (gcc_cv_solaris_crts): New test.
6031 * configure. Regenerate.
6032 * config.in: Regenerate.
6033 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6034 HAVE_SOLARIS_CRTS variant.
6035
6036 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6037
6038 * tree-inline.h (count_insns_seq): Delete prototype.
6039 (estimate_num_insns_seq): Define prototype.
6040 * tree-inline.c (count_insns_seq): Delete.
6041 (estimate_num_insns_seq): Remove static qualifier.
6042 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6043 with estimate_num_insns_seq.
6044
6045 2015-09-24 Richard Biener <rguenther@suse.de>
6046
6047 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6048 members.
6049 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6050 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
6051 offset.
6052 (ao_ref_init_from_vn_reference): Record clique and base in the
6053 built base.
6054 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6055
6056 2015-09-24 Richard Biener <rguenther@suse.de>
6057
6058 PR tree-optimization/48885
6059 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6060 as not including any restrict tags from other pointers.
6061
6062 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6063
6064 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6065 character when appending to offload_targets.
6066
6067 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6068 offload targets by commas, not colons.
6069 * config.in: Regenerate.
6070 * configure: Likewise.
6071 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6072 instead of setting up the default offload targets here...
6073 (process_command): ..., do it here.
6074 libgomp/
6075 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6076 targets are separated by commas.
6077 * config.h.in: Regenerate.
6078
6079 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6080 Nathan Sidwell <nathan@codesourcery.com>
6081
6082 * omp-low.h (omp_reduction_init_op): Declare.
6083 * omp-low.c (omp_reduction_init_op): New, broken out of ...
6084 (omp_reduction_init): ... here. Call it.
6085 * tree-parloops.c (initialize_reductions): Use
6086 omp_reduction_init_op.
6087
6088 2015-09-23 Richard Biener <rguenther@suse.de>
6089
6090 PR middle-end/67662
6091 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6092 undefined overflow unless they will cancel out.
6093
6094 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6095
6096 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6097 insn emit.
6098
6099 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6100
6101 PR c/49655
6102 * opts.h (write_langs): Declare.
6103 * opts-global.c (write_langs): Make it extern.
6104
6105 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
6106
6107 PR target/67391
6108 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6109 overlapping regs when matching the pattern.
6110
6111 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
6112
6113 * config/aarch64/aarch64-simd.md
6114 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6115 (aarch64_float_truncate_hi_v4sf_le): New.
6116 (aarch64_float_truncate_hi_v4sf_be): Likewise.
6117
6118 2015-09-23 Richard Biener <rguenther@suse.de>
6119
6120 * tree-ssa-structalias.c (intra_create_variable_infos): Build
6121 representatives for all restrict qualified pointer destinations.
6122
6123 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6124
6125 * config/i386/i386.md (define_code_attr mshift): New.
6126 (define_mode_iterator SWI1248_AVX512BW): Rename ...
6127 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6128 only.
6129 (define_insn "*k<logic><mode>"): Use new iterator name.
6130 (define_insn "*<mshift><mode>3"): New.
6131
6132 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
6133
6134 PR middle-end/67649
6135 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6136 mark the block as accessible.
6137
6138 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
6139
6140 * function.c (thread_prologue_and_epilogue_insns): Delete
6141 orig_entry_edge argument to try_shrink_wrapping.
6142 * shrink-wrap.c (can_get_prologue): New function.
6143 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6144 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
6145 can_get_prologue where needed. Remove code that finds a single
6146 edge for the prologue. Remove code that tests if any reg clobbered
6147 by the prologue is live on the prologue edge. Remove code that finds
6148 the new prologue edge after duplicating blocks. Make a new prologue
6149 block and edge.
6150 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6151
6152 2015-09-22 Jeff Law <law@redhat.com>
6153
6154 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6155 behavior.
6156
6157 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6158
6159 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
6160 -Wtemplates, -Wnamespaces): Document.
6161
6162 2015-09-22 Tom de Vries <tom@codesourcery.com>
6163
6164 PR tree-optimization/67671
6165 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6166 pointer references as restrict.
6167
6168 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6169
6170 * config/nios2/nios2.c (nios2_legitimize_address): When handling
6171 'reg + reloc' cases, allow first operand to be non-REG, and use
6172 force_reg() to enforce address pattern.
6173
6174 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
6175
6176 PR target/67480
6177 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6178 (define_mode_iterator VI12_AVX_AVX512F): New.
6179 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6180 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6181 (define_insn "*<code><mode>3"): ... Into new pattern using
6182 VI12_AVX_AVX512F iterators without masking.
6183
6184 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6185
6186 * config.gcc: Support "skylake-avx512".
6187 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6188 PROCESSOR_SKYLAKE_AVX512.
6189 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6190 (processor_target_table): Add "skylake-avx512".
6191 (PTA_SKYLAKE_AVX512): Define.
6192 (ix86_option_override_internal): Add "skylake_avx512".
6193 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6194 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6195 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6196 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6197 * doc/invoke.texi (skylake-avx512): New.
6198
6199 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6200
6201 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
6202 operand in pattern.
6203 (define_insn "kunpcksi"): Ditto.
6204 (define_insn "kunpckdi"): Ditto.
6205
6206 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6207
6208 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
6209 iterator instead of fixed modes.
6210
6211 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6212
6213 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6214 Adjust declaration.
6215 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6216 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
6217 out_result. Update to support update-fetch operations.
6218 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6219 Adjust for change to aarch64_gen_atomic_ldop.
6220 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6221 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6222 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6223 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6224 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6225
6226 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6227
6228 * config/aarch64/aarch64-protos.h
6229 (aarch64_atomic_ldop_supported_p): Declare.
6230 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6231 (enum aarch64_atomic_load_op_code): New.
6232 (aarch64_emit_atomic_load_op): New.
6233 (aarch64_gen_atomic_ldop): Update to support load-operate
6234 patterns.
6235 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6236 to an expander.
6237 (aarch64_atomic_<atomic_optab><mode>): New.
6238 (aarch64_atomic_<atomic_optab><mode>_lse): New.
6239 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6240 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6241 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6242
6243 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6244
6245 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6246 (UNSPECV_ATOMIC_LDOP_OR): New.
6247 (UNSPECV_ATOMIC_LDOP_BIC): New.
6248 (UNSPECV_ATOMIC_LDOP_XOR): New.
6249 (UNSPECV_ATOMIC_LDOP_PLUS): New.
6250 (ATOMIC_LDOP): New.
6251 (atomic_ldop): New.
6252 (aarch64_atomic_load<atomic_ldop><mode>): New.
6253
6254 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6255
6256 * config/aarch64/aarch64.md
6257 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
6258 pattern.
6259
6260 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6261
6262 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6263 Declare.
6264 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
6265 (aarch64_gen_atomic_ldop): New.
6266 (aarch64_split_atomic_op): Fix whitespace and add a comment.
6267 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
6268 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
6269 (atomic_exchange<mode>): Replace with an expander.
6270 (aarch64_atomic_exchange<mode>): New.
6271 (aarch64_atomic_exchange<mode>_lse): New.
6272 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
6273 (aarch64_atomic_swp<mode>): New.
6274
6275 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6276
6277 * tree-inline.c (expand_call_inline): Use inform for extra note.
6278 Do not give a note with UNKNOWN_LOCATION.
6279 Replace input_location with gimple_location (stmt).
6280 Use true/false instead of TRUE/FALSE.
6281
6282 2015-09-22 Tom de Vries <tom@codesourcery.com>
6283
6284 PR tree-optimization/67666
6285 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
6286 with single field non-conservative.
6287
6288 2015-09-21 David S. Miller <davem@davemloft.net>
6289
6290 PR/67622
6291 Revert:
6292 2015-09-11 David S. Miller <davem@davemloft.net>
6293
6294 * config/sparc/constraints.md: Make "U" constraint a real register
6295 constraint.
6296 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6297 (D_MODES, DF_MODES): Add missing cast.
6298 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6299 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6300 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6301 cost to 8.
6302 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6303 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6304 provide these insn when flag_pic.
6305
6306 2015-09-17 David S. Miller <davem@davemloft.net>
6307
6308 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
6309 Declare.
6310 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
6311 function.
6312 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6313 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6314 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6315 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6316 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6317 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6318 provide when flag_pic.
6319
6320 2015-09-21 Jeff Law <law@redhat.com>
6321
6322 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
6323 behavior.
6324
6325 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6326
6327 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
6328
6329 2015-09-21 Richard Biener <rguenther@suse.de>
6330
6331 * passes.c (rest_of_decl_compilation): Do not call
6332 dwarf2out_early_global_decl for aliases.
6333
6334 2015-09-21 Richard Biener <rguenther@suse.de>
6335
6336 PR debug/67664
6337 * dwarf2out.c (add_location_or_const_value_attribute): Remove
6338 attribute parameter. Early exit if either DW_AT_const_value
6339 or DW_AT_location are present already.
6340 (gen_variable_die): Adjust caller.
6341 (dwarf2out_late_global_decl): Likewise.
6342
6343 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6344
6345 PR target/67657
6346 * config/sh/sh.c (sh_remove_overlapping_post_inc,
6347 sh_peephole_emit_move_insn): Add new functions.
6348 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
6349 sh_peephole_emit_move_insn): Declere them.
6350 * config/sh/sh.md: Use them in various peephole2 patterns.
6351
6352 2015-09-21 Richard Biener <rguenther@suse.de>
6353
6354 PR middle-end/67651
6355 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
6356 address with -fno-delete-null-pointer-checks.
6357
6358 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
6359
6360 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
6361 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
6362 (reduc_uplus_v16qi): Remove.
6363
6364 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
6365 (reduc_<VEC_reduc_name>_v2df): Remove.
6366 (reduc_<VEC_reduc_name>_v4sf): Remove.
6367 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
6368
6369 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
6370 gen_ function by removing * prefix.
6371 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
6372
6373 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6374
6375 PR middle-end/60832
6376 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6377 Print i_bound without converting it to a tree.
6378
6379 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
6380
6381 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
6382 operands[4] operands[5] swap with std::swap, removed tmp variable.
6383 (arm_evpc_neon_vzip): Replaced in0/in1 and
6384 out0/out1 swaps with std::swap, removed x variable.
6385 (arm_evpc_neon_vtrn): Replaced in0/int1 and
6386 out0/out1 swaos with std::swap, removed x variable.
6387 (arm_expand_vec_perm_const_1): Replaced
6388 d->op0/d->op1 swap with std::swap, removed x variable.
6389 (arm_evpc_neon_vuzp): Replaced in0/in1 and
6390 out0/out1 swaps with std::swap, removed x variable.
6391
6392 2015-09-21 Jonathan Yong <10walls@gmail.com>
6393
6394 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6395 sysroot/usr/lib/32api for additional win32 libraries,
6396 fixes failing Cygwin bootstrapping.
6397
6398 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6399
6400 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
6401
6402 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
6403
6404 PR target/67126
6405 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
6406 (*mov_t_msb_neg): Rewrite negc pattern.
6407
6408 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6409
6410 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
6411 immediate generation code.
6412
6413 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6414
6415 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
6416 redundant immediate generation code.
6417
6418 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6419
6420 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
6421 (AARCH64_NUM_BITMASKS): Remove.
6422 (aarch64_bitmasks_cmp): Remove.
6423 (aarch64_build_bitmask_table): Remove.
6424
6425 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6426
6427 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
6428 slow immediate matching loops with a faster algorithm.
6429
6430 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
6431
6432 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
6433 faster algorithm.
6434
6435 2015-09-20 Jeff Law <law@redhat.com>
6436
6437 PR tree-optimization/47679
6438 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
6439 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
6440 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
6441 (thread_through_normal_block): Use record_temporary_equivalences.
6442
6443 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
6444
6445 * coretypes.h (gimple): Change typedef to be a forward declaration.
6446 * gimple.h (gimple_statement_base): rename to gimple.
6447 * (all functions and types using gimple): Adjust.
6448 * *.[ch]: Likewise.
6449
6450 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
6451 David Edelsohn <dje.gcc@gmail.com>
6452
6453 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
6454 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6455 (EH_FRAME_THROUGH_COLLECT2): Define.
6456 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6457 (ASM_OUTPUT_DWARF_PCREL): Define.
6458 (ASM_OUTPUT_DWARF_DATAREL): Define.
6459
6460 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
6461
6462 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
6463 of TARGET_ELF32.
6464
6465 2015-09-18 Jeff Law <law@redhat.com>
6466
6467 PR tree-optimization/47679
6468 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
6469 it here ...
6470 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
6471 object. Update constructor.
6472 (pass_dominator::execute): Corresponding chagnes to declaration
6473 and initialization of avail_exprs_stack. Update constructor call
6474 for dom_opt_dom_walker object.
6475 (lookup_avail_expr, record_cond): Accept additional argument. Pass
6476 it down to children as needed.
6477 (record_equivalences_from_incoming_edge): Likewise.
6478 (eliminate_redundant_computations): Likewise.
6479 (record_equivalences_from_stmt): Likewise.
6480 (simplify_stmt_for_jump_threading): Likewise.
6481 (record_temporary_equivalences): Likewise.
6482 (optimize_stmt): Likewise.
6483 (dom_opt_dom_walker::thread_across_edge): Update access to
6484 avail_exprs_stack object and pass it to children as needed.
6485 (dom_opt_dom_walker::before_dom_children): Similarly.
6486 (dom_opt_dom_walker::after_dom_children): Similarly.
6487 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
6488 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
6489 Add avail_expr_stack argument. Pass it to children as needed.
6490 (dummy_simplify): Likewise.
6491 (simplify_control_stmt_condition): Likewise.
6492 (thread_around_empty_blocks): Likewise.
6493 (thread_through_normal_block): Likewise.
6494 (thread_across_edge): Likewise.
6495 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6496 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
6497
6498 PR tree-optimization/47679
6499 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
6500 it here ...
6501 (dom_opt_dom_walker): New private member holding the const_and_copies
6502 object. Update constructor.
6503 (pass_dominator::execute): Corresponding changes to declaration
6504 and initialization of const_and_copies. Update constructor call
6505 for the dom_opt_dom_walker object.
6506 (record_temporary_equivalences): Accept const_and_copies argument
6507 pass it down to children as needed.
6508 (record_equality): Likewise.
6509 (record_equivalences_from_incoming_edge): Likewise.
6510 (cprop_into_successor_phis, optimize_stmt): Likewise.
6511 (eliminate_redundant_computations): Likewise.
6512 (dom_opt_dom_walker::thread_across_edge): Update access to
6513 const_and_copies object and pass it to children as needed.
6514 (dom_opt_dom_walker::before_dom_children): Similarly.
6515 (dom_opt_dom_walker::after_dom_children): Similarly.
6516
6517 PR tree-optimization/47679
6518 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
6519 it into the avail_exprs_stack class.
6520 (pass_dominator::execute): Corresponding changes to declaration
6521 and initialization of avail_exprs. Pass avail_exprs to
6522 dump_dominator_optimization_stats.
6523 (record_cond): Extract avail_exprs from avail_exprs_stack.
6524 (lookup_avail_expr): Similarly.
6525 (htab_staticstics): Remove unnecessary prototype. Move to earlier
6526 position in file.
6527 (dump_dominator_optimization_stats): Make static and prototype.
6528 Add argument for the hash table to dump.
6529 (debug_dominator_optimization_stats): Remove.
6530 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
6531 prototype.
6532 (debug_dominator_optimization_stats): Similarly.
6533 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
6534 "void" in prototype for pop_to_marker method. Add accessor method
6535 for the underlying avail_exprs table.
6536
6537 * tree-ssa-threadedge.c: Remove trailing whitespace.
6538
6539 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
6540
6541 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
6542 unsigned.
6543 (pa_ldil_cint_p): Likewise.
6544 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
6545 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
6546 Update callers.
6547 * config/pa/pa.md: Likewise.
6548
6549 2015-09-18 David Malcolm <dmalcolm@redhat.com>
6550
6551 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
6552 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
6553 (diagnostic_show_locus): Likewise.
6554 (diagnostic_print_caret_line): Likewise.
6555 * diagnostic-show-locus.c: New file.
6556
6557 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
6558
6559 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
6560 "back" parameter. Declare label in #if block.
6561
6562 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
6563
6564 PR middle-end/67619
6565 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
6566 the address to a register.
6567
6568 2015-09-18 Jeff Law <law@redhat.com>
6569
6570 PR tree-optimization/47679
6571 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
6572 * tree-ssa-dom.c: Remove unnecessary header includes.
6573 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
6574 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
6575 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
6576 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
6577 (pass_phi_only_cprop::execute): Likewise.
6578 (make_pass_phi_only_cprop): Likewise.
6579 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
6580 uses of file scoped statics by passing the required objects
6581 as parameters wherever needed.
6582
6583 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
6584 David Edelsohn <dje.gcc@gmail.com>
6585
6586 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
6587 EH_FRAME_THROUGH_COLLECT2.
6588 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
6589 DW_EH_PE_datarel.
6590 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
6591 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
6592 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
6593 * except.c (switch_to_exception_section): Use a read-only section
6594 even if EH_FRAME_SECTION_NAME is undefined.
6595 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
6596 * collect2.c (write_c_file_stat): Provide dbase on AIX.
6597 (scan_prog_file): Don't export __dso_handle nor
6598 __gcc_unwind_dbase.
6599 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6600 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6601 (ASM_OUTPUT_DWARF_PCREL): Define.
6602 (ASM_OUTPUT_DWARF_DATAREL): Define.
6603 (EH_FRAME_THROUGH_COLLECT2): Define.
6604 (EH_FRAME_IN_DATA_SECTION): Delete.
6605 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
6606 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
6607 Declare.
6608 (rs6000_asm_output_dwarf_datarel): Declare.
6609 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
6610 (rs6000_aix_asm_output_dwarf_datarel): New.
6611 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
6612 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
6613 (EH_FRAME_THROUGH_COLLECT2): Define.
6614 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
6615 (EH_FRAME_THROUGH_COLLECT2): Define.
6616 (EH_TABLES_CAN_BE_READ_ONLY): Define.
6617 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
6618 (EH_FRAME_THROUGH_COLLECT2): New.
6619 (ASM_OUTPUT_DWARF_DATAREL): New.
6620 * doc/tm.texi: Regenerate.
6621
6622 2015-09-18 Richard Biener <rguenther@suse.de>
6623
6624 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
6625 we're in early phase.
6626 (schedule_generic_params_dies_gen): Likewise.
6627 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
6628 work as possible, retaining unhandled cases.
6629 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
6630 clear out generic_type_instances at the end.
6631 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
6632 (dwarf2out_early_finish): ... here. Do most of
6633 gen_remaining_tmpl_value_param_die_attribute here.
6634
6635 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
6636
6637 PR tree-optimization/67283
6638 * tree-sra.c (type_consists_of_records_p): Rename to...
6639 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6640 (completely_scalarize_record): Rename to...
6641 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6642 (scalarize_elem): New.
6643 (analyze_all_variable_accesses): Follow renamings.
6644
6645 2015-09-18 Richard Biener <rguenther@suse.de>
6646
6647 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
6648 in early-dwarf.
6649
6650 2015-09-18 Richard Biener <rguenther@suse.de>
6651
6652 PR tree-optimization/66142
6653 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
6654 treat MEM[&x] and x the same.
6655 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
6656 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
6657 when we simplified sth.
6658 (vn_reference_maybe_forwprop_address): Likewise.
6659 (valueize_refs_1): When we simplified through
6660 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
6661 set valueized_anything to true.
6662 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
6663 one ref kills the other instead of just a offset-based test.
6664 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
6665 for the operand_equal_p test to compare bases and also compare
6666 sizes.
6667
6668 2015-09-17 Christian Bruel <christian.bruel@st.com>
6669
6670 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
6671
6672 2015-09-17 Richard Henderson <rth@redhat.com>
6673
6674 PR libstdc++/65913
6675 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
6676 pointers that encode the alignment of the object.
6677
6678 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6679
6680 PR rtl-optimization/66790
6681 * df-problems.c (LIVE): Amend documentation.
6682
6683 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
6684
6685 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
6686 and optabs-tree.o.
6687 (GTFILES): Replace optabs.c with optabs-libfunc.c.
6688 * genopinit.c (main): Add an include guard to insn-opinit.h.
6689 Protect the rtx_code parts with NUM_RTX_CODE.
6690 * optabs.h: Split parts out to...
6691 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
6692 * optabs.c: Split parts out to...
6693 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
6694 * cilk-common.c: Include optabs-query.h rather than optabs.h.
6695 * fold-const.c: Likewise.
6696 * target-globals.c: Likewise.
6697 * tree-if-conv.c: Likewise.
6698 * tree-ssa-forwprop.c: Likewise.
6699 * tree-ssa-loop-prefetch.c: Likewise.
6700 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
6701 Remove unncessary include files.
6702 * tree-ssa-phiopt.c: Likewise.
6703 * tree-ssa-reassoc.c: Likewise.
6704 * tree-switch-conversion.c: Likewise.
6705 * tree-vect-data-refs.c: Likewise.
6706 * tree-vect-generic.c: Likewise.
6707 * tree-vect-loop.c: Likewise.
6708 * tree-vect-patterns.c: Likewise.
6709 * tree-vect-slp.c: Likewise.
6710 * tree-vect-stmts.c: Likewise.
6711 * tree-vrp.c: Likewise.
6712 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
6713 rather than optabs.h.
6714 * expr.c: Include optabs-tree.h.
6715 * function.c: Likewise.
6716
6717 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
6718
6719 PR middle-end/65958
6720 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
6721 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
6722 * config/arm/arm.c: Include common/common-target.h.
6723 (use_return_insn): Return 0 if the static chain register was saved
6724 above a non-APCS frame.
6725 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
6726 (struct scratch_reg): New.
6727 (get_scratch_register_on_entry): New function.
6728 (release_scratch_register_on_entry): Likewise.
6729 (arm_emit_probe_stack_range): Likewise.
6730 (output_probe_stack_range): Likewise.
6731 (arm_expand_prologue): Factor out code dealing with the IP register
6732 for nested function and adjust it for stack checking.
6733 Invoke arm_emit_probe_stack_range if static builtin stack checking
6734 is enabled.
6735 (thumb1_expand_prologue): Sorry out if static builtin stack checking
6736 is enabled.
6737 (arm_expand_epilogue): Add the saved static chain register, if any, to
6738 the amount of pre-pushed registers to pop.
6739 (arm_frame_pointer_required): Return true if static stack checking is
6740 enabled and we want to catch the exception with the EABI unwinder.
6741 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
6742 (UNSPEC_PROBE_STACK_RANGE): Likewise.
6743 * config/arm/arm.md (probe_stack): New insn.
6744 (probe_stack_range): Likewise.
6745
6746 2015-09-17 Richard Biener <rguenther@suse.de>
6747
6748 * genmatch.c (parser::parse_expr): Improve error message
6749 for mis-placed flags.
6750
6751 2015-09-17 Richard Biener <rguenther@suse.de>
6752
6753 * passes.c (rest_of_decl_compilation): Always call early_global_decl
6754 debug hook when we created a varpool node.
6755 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
6756 dwarf2out_early_global_decl, when not just add location or
6757 value attributes to existing DIEs.
6758
6759 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
6760
6761 * config/aarch64/aarch64.md (copysigndf3): New.
6762 (copysignsf3): Likewise.
6763
6764 2015-09-17 David S. Miller <davem@davemloft.net>
6765
6766 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
6767 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
6768 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6769 (HARD_REGNO_CALLER_SAVE_MODE): Define.
6770 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6771 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6772 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6773 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6774 provide when flag_pic.
6775
6776 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
6777
6778 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
6779 object_allocator change.
6780
6781 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6782
6783 PR tree-optimization/66388
6784 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
6785 (dump_iv): Dump no_overflow information.
6786 (alloc_iv): Initialize new field for struct iv.
6787 (mark_bivs): Count number of no_overflow bivs.
6788 (find_deriving_biv_for_expr, record_biv_for_address_use): New
6789 functions.
6790 (idx_find_step): Call new functions above.
6791 (add_candidate_1, add_candidate): New paramter.
6792 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
6793 (get_computation_aff): Simplify convertion of cand for BIV.
6794 (get_computation_cost_at): Step cand's base if necessary.
6795
6796 2015-09-17 Bin Cheng <bin.cheng@arm.com>
6797
6798 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
6799 parameter.
6800 (tree_simplify_using_condition): Ditto.
6801 (simplify_using_initial_conditions): Ditto.
6802 (loop_exits_before_overflow): Pass new argument to function
6803 simplify_using_initial_conditions. Remove case for type conversions
6804 simplification.
6805 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
6806 parameter.
6807 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
6808 in iv base using loop initial conditions.
6809
6810 2015-09-16 Jeff Law <law@redhat.com>
6811
6812 PR tree-optimization/47679
6813 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
6814 (free_all_edge_infos): Use it.
6815 (allocate_edge_info): Free preexisting edge info data.
6816 (pass_dominator::execute): Set up initial edge info structures.
6817 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
6818 thread_across_edge.
6819 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
6820 If non-null, then push/pop markers appropriately.
6821 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6822 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
6823 thread-across_edge.
6824
6825 2015-09-16 James Bowman <james.bowman@ftdichip.com>
6826
6827 * config/ft32/ft32.c: Fix the memory address space predicate.
6828
6829 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
6830
6831 PR target/67573
6832 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
6833 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6834
6835 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6836
6837 * toplev.h (check_global_declaration): Remove declaration.
6838 * toplev.c (check_global_declaration): Move to ...
6839 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
6840 (analyze_functions): Update call.
6841
6842 2015-09-16 David S. Miller <davem@davemloft.net>
6843
6844 * lra-constraints.c (simplify_operand_subreg): Do not assume that
6845 lowpart of a SUBREG has offset zero.
6846
6847 2015-09-16 Jeff Law <law@redhat.com>
6848
6849 PR tree-optimization/47679
6850 * tree-ssa-dom.c (enum expr_kind): Moved from here to
6851 tree-ssa-scopedtables.h.
6852 (struct hashable_expr, class expr_hash_elt): Likewise.
6853 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
6854 Move associated methods into tree-ssa-scopedtables.c.
6855 (avail_expr_hash, initialize_expr_from_cond): Similarly.
6856 (hashable_expr_equal_p, add_expr_commutative): Likewise.
6857 (add_hashable_expr): Likewise.
6858 (record_cond): Delete element directly.
6859 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
6860 private copy ctor and assignment operator methods.
6861 (expr_elt_hasher): Inline trivial methods.
6862 (initialize_expr_from_cond): Prototype.
6863 * tree-ssa-scopedtables.c: Add necessary includes, functions and
6864 methods that were previously in tree-ssa-dom.c. Improve various
6865 comments.
6866
6867 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
6868
6869 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
6870
6871 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
6872
6873 PR bootstrap/67587
6874 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6875 fixup_partitions.
6876
6877 2015-09-16 Richard Biener <rguenther@suse.de>
6878
6879 PR middle-end/67253
6880 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
6881 location of possibly shared trees.
6882
6883 2015-09-16 Richard Biener <rguenther@suse.de>
6884
6885 PR middle-end/67271
6886 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
6887
6888 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
6889
6890 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
6891 offset and size computations instead of HOST_WIDE_INT.
6892
6893 2015-09-16 Richard Biener <rguenther@suse.de>
6894
6895 PR middle-end/67442
6896 * fold-const.c (extract_muldiv_1): Properly extend multiplication
6897 result before builting a tree via wide_int_to_tree.
6898
6899 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
6900
6901 * Makefile.in: Add memory-block.cc
6902 (pool_allocator::initialize): Use fixed block size.
6903 (pool_allocator::release): Use memory_block_pool.
6904 (pool_allocator::allocate): Likewise.
6905 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
6906 object pools.
6907 * cfg.c (initialize_original_copy_tables): Likewise.
6908 * cselib.c (elt_list_pool, elt_loc_list_pool,
6909 cselib_val_pool): Likewise.
6910 * df-problems.c (df_chain_alloc): Likewise.
6911 * df-scan.c (df_scan_alloc): Likewise.
6912 * dse.c (cse_store_info_pool, rtx_store_info_pool,
6913 read_info_type_pool, insn_info_type_pool, bb_info_pool,
6914 group_info_pool, deferred_change_pool): Likewise.
6915 * et-forest.c (et_nodes, et_occurrences): Likewise.
6916 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
6917 ipcp_agg_lattice_pool): Likewise.
6918 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
6919 * ipa-profile.c (histogram_pool): Likewise.
6920 * ipa-prop.c (ipa_refdesc_pool): Likewise.
6921 * ira-build.c (live_range_pool, allocno_pool, object_pool,
6922 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
6923 * ira-color.c (update_cost_record_pool): Likewise.
6924 * lra-lives.c (lra_live_range_pool): Likewise.
6925 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
6926 * memory-block.cc: New file.
6927 * memory-block.h: New file.
6928 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
6929 * sched-deps.c (sched_deps_init): Likewise.
6930 * sel-sched-ir.c (sched_lists_pool): Likewise.
6931 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
6932 * tree-sra.c (access_pool): Likewise.
6933 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6934 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
6935 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
6936 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6937 * tree-ssa-strlen.c (strinfo_pool): Likewise.
6938 * tree-ssa-structalias.c (variable_info_pool): Likewise.
6939 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
6940 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
6941
6942 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6943
6944 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
6945 definition.
6946 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
6947 call0 ABI.
6948
6949 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
6950
6951 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
6952 to pass TLS call argument, according to current ABI.
6953 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
6954 callx0 for TLS call, according to current ABI.
6955
6956 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
6957
6958 * tree-eh.c (lower_try_finally_dup_block): Clear location information
6959 on stack restore statements.
6960 (decide_copy_try_finally): Do not consider a stack restore statement as
6961 coming from sources.
6962
6963 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
6964
6965 * config/alpha/alpha.c (alpha_expand_block_clear): Use
6966 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
6967
6968 2015-09-15 Jeff Law <law@redhat.com>
6969
6970 PR tree-optimization/47679
6971 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
6972 methods and private members.
6973 (avail_exprs_stack): Similarly. Change type of global
6974 from a pair of expr_hash_elt_t to the new class.
6975 (expr_elt_hasher::hash): Corresponding changes.
6976 (expr_elt_hasher::equal): Similarly.
6977 (avail_expr_hash): Similarly.
6978 (pass_dominator::execute): Similarly.
6979 (dom_opt_dom_walker::thread_across_edge): Similarly.
6980 (record_cond): Similarly.
6981 (dom_opt_dom_walker::before_dom_children): Similarly.
6982 (dom_opt_dom_walker::after_dom_children): Similarly.
6983 (lookup_avail_expr): Likewise.
6984 (initialize_hash_element): Now a expr_hash_elt constructor.
6985 (initialize_hash_element_from_expr): Similarly.
6986 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
6987 (free_expr_hash_elt): Call dtor for the element.
6988 (remove_local_expressions_from_table): Now the "pop_to_marker"
6989 method in the available_exprs_stack class.
6990 (avail_expr_stack::record_expr): Method factored out.
6991 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
6992 Fix formatting.
6993 (hashable_expr_equal_p): Fix formatting.
6994
6995 2015-09-15 David Malcolm <dmalcolm@redhat.com>
6996
6997 * input.h (location_get_source_line): Drop "expanded_location"
6998 param in favor of a file and line number.
6999 * input.c (location_get_source_line): Likewise.
7000 (dump_location_info): Update for change in signature of
7001 location_get_source_line.
7002 * diagnostic.c (diagnostic_print_caret_line): Likewise.
7003
7004 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7005
7006 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7007 Bump to 4KB for SJLJ exceptions.
7008 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
7009 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7010 * doc/tm.texi: Regenerate.
7011
7012 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7013
7014 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7015 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
7016 Update prototype.
7017
7018 2015-09-15 Richard Biener <rguenther@suse.de>
7019
7020 PR tree-optimization/67470
7021 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7022 structure for PHI hoisting by inserting a forwarder block
7023 if appropriate.
7024
7025 2015-09-15 Christian Bruel <christian.bruel@st.com>
7026
7027 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7028 (arm_option_print): New function.
7029
7030 2015-09-15 Christian Bruel <christian.bruel@st.com>
7031
7032 PR target/52144
7033 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7034 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7035 Remove flags parameter.
7036 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7037 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7038 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7039 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7040 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7041 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7042 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7043 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7044
7045 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7046
7047 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7048
7049 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7050 AARCH64_VALID_SIMD_DREG_MODE.
7051
7052 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7053
7054 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7055 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7056 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7057 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7058 aarch64_ld4_lane<mode>): Combine together, making...
7059 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7060 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7061 aarch64_st4_lane<mode>): Combine together, making...
7062 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7063 * config/aarch64/iterators.md (nregs): Add comment.
7064
7065 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7066
7067 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7068 Change operand mode from <V_TWO_ELEM> to BLK.
7069 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7070 (aarch64_vec_store_lanesoi_lane<mode): Likewise
7071 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7072 (aarch64_ld2_lane<mode>): Likewise.
7073 (aarch64_st2_lane<VQ:mode>): Likewise.
7074 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7075
7076 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7077
7078 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7079 Change operand mode from <V_FOUR_ELEM> to BLK.
7080 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7081 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7082 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7083 (aarch64_ld4_lane<mode>): Likewise.
7084 (aarch64_st4_lane<mode>): Likewise.
7085 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7086
7087 2015-09-15 Richard Biener <rguenther@suse.de>
7088
7089 PR middle-end/67563
7090 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7091 transfer EH info from old to new stmt.
7092 (replace_call_with_value): Likewise.
7093 (replace_call_with_call_and_fold): Likewise.
7094 (gimple_fold_builtin_memory_op): Likewise.
7095 (gimple_fold_builtin_memset): Likewise.
7096 (gimple_fold_builtin_stpcpy): Likewise.
7097 (gimple_fold_call): Likewise.
7098
7099 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7100
7101 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7102 comment.
7103 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7104 (aarch64_simd_intEI_type_node): Likewise.
7105 (aarch64_simd_builtin_std_type): Remove EImode case.
7106 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7107 * config/aarch64/aarch64-modes.def: Remove EImode.
7108
7109 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7110
7111 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7112 Change operand mode from <V_THREE_ELEM> to BLK.
7113 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7114 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7115 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7116 (aarch64_ld3_lane<mode>): Likewise.
7117 (aarch64_st3_lane<mode>): Likewise.
7118 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7119
7120 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7121
7122 * config/aarch64/aarch64-simd.md
7123 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7124 Change all TImode operands to BLKmode.
7125 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7126 Change all EImode operands to BLKmode.
7127 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7128 Change all OImode operands to BLKmode.
7129
7130 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7131 and call set_mem_size.
7132 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7133
7134 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7135
7136 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7137
7138 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7139 to...
7140 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7141
7142 (vec_store_lanesci_lane<mode>): Rename to...
7143 (aarch64_vec_store_lanesci_lane<mode>): ...this.
7144
7145 (vec_store_lanesxi_lane<mode>): Rename to...
7146 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7147
7148 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7149 aarch64_st4_lane<mode>): Follow renaming.
7150
7151 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7152
7153 * config/s390/s390.c (s390_const_operand_ok): Add missing
7154 brackets.
7155
7156 2015-09-15 Richard Biener <rguenther@suse.de>
7157
7158 PR lto/67568
7159 * lto-streamer.h (lto_location_cache::current_sysp): Properly
7160 initialize.
7161 * lto-streamer-out.c (clear_line_info): Likewise.
7162
7163 2015-09-15 Richard Biener <rguenther@suse.de>
7164
7165 * doc/match-and-simplify.texi: Fix wording.
7166
7167 2015-09-15 Bin Cheng <bin.cheng@arm.com>
7168
7169 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7170 unnecessary type conversion in op1.
7171
7172 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7173
7174 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7175 (dup_block_and_redirect): Delete function.
7176 (can_dup_for_shrink_wrapping): New function.
7177 (fix_fake_fallthrough_edge): New function.
7178 (try_shrink_wrapping): Rewrite function.
7179 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7180
7181 2015-09-14 Rich Felker <dalias@libc.org>
7182
7183 * configure.ac: Change target pattern for sh TLS support
7184 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7185 * configure: Regenerate.
7186
7187 2015-09-14 Jeff Law <law@redhat.com>
7188
7189 PR tree-optimization/47679
7190 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7191 type rather than void *.
7192
7193 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7194
7195 PR fortran/67460
7196 * diagnostic.c (diagnostic_initialize): Do not set
7197 some_warnings_are_errors.
7198 (diagnostic_finish): Use DK_WERROR count instead.
7199 (diagnostic_report_diagnostic): Do not set
7200 some_warnings_are_errors.
7201 * diagnostic.h (struct diagnostic_context): Remove
7202 some_warnings_are_errors.
7203
7204 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
7205
7206 * config/sparc/predicates.md (const_all_ones_operand): Use
7207 CONSTM1_RTX to simplify definition.
7208
7209 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
7210
7211 PR target/67061
7212 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7213 Handle call insns.
7214
7215 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
7216
7217 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7218 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7219 OPT_fshow_column to handled saved option cases.
7220 (append_compiler_options): Do not skip the above added options.
7221
7222 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7223
7224 PR target/63304
7225 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7226 nopcrelative_literal_loads.
7227 (aarch64_classify_address): Likewise.
7228 (aarch64_constant_pool_reload_icode): Define.
7229 (aarch64_secondary_reload): Handle secondary reloads for
7230 literal pools.
7231 (aarch64_override_options): Handle nopcrelative_literal_loads.
7232 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7233 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7234 Define.
7235 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7236 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7237 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7238 predicate.
7239 * doc/invoke.texi (mpc-relative-literal-loads): Document.
7240
7241 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
7242
7243 PR middle-end/67401
7244 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7245 sync_compare_and_swap_optab libcall to target_oval.
7246
7247 2015-09-14 Marek Polacek <polacek@redhat.com>
7248
7249 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
7250 value.
7251 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
7252
7253 2015-09-11 Mark Wielaard <mjw@redhat.com>
7254
7255 PR c/28901
7256 * toplev.c (check_global_declaration): Check and use
7257 warn_unused_const_variable.
7258 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
7259 (-Wunused-variable): Remove non-constant. For C implies
7260 -Wunused-const-variable.
7261 (-Wunused-const-variable): New.
7262
7263 2015-09-14 Richard Biener <rguenther@suse.de>
7264
7265 * doc/match-and-simplify.texi: Update for changed syntax
7266 of inner ifs and the new switch expression.
7267
7268 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7269
7270 * config/i386/haswell.md: New file describing Haswell pipeline.
7271 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
7272 haswell-like processors.
7273 (ix86_reassociation_width): Increase reassociation width for 64-bit
7274 Haswell processor family.
7275 * config/i386/i386.md: Introduce haswell cpu and include new md file.
7276
7277 2015-09-14 Richard Biener <rguenther@suse.de>
7278
7279 * doc/match-and-simplify.texi: Fixup some formatting issues
7280 and document the 's' flag.
7281
7282 2015-09-13 Olivier Hainque <hainque@adacore.com>
7283 Eric Botcazou <ebotcazou@adacore.com>
7284
7285 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
7286 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
7287 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
7288 (TARGET_CPU_gr5): Likewise.
7289 (TARGET_CPU_gr6): Likewise.
7290 (MULTILIB_DEFAULTS): Likewise.
7291 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
7292 for mcpu=gr5 and mcpu=gr6.
7293 (MULTILIB_DIRNAMES): Adjust accordingly.
7294
7295 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7296
7297 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
7298 (mem_ref_p): Likewise.
7299 (outermost_indep_loop): Adjust.
7300 (mem_ref_in_stmt): Likewise.
7301 (determine_max_movement): Likewise.
7302 (mem_ref_alloc): Likewise.
7303 (record_mem_ref_loc): Likewise.
7304 (set_ref_stored_in_loop): Likewise.
7305 (mark_ref_stored): Likewise.
7306 (gather_mem_refs_stmt): Likewise.
7307 (mem_refs_may_alias_p): Likewise.
7308 (for_all_locs_in_loop): Likewise.
7309 (struct rewrite_mem_ref_loc): Likewise.
7310 (rewrite_mem_refs): Likewise.
7311 (struct first_mem_ref_loc_1): Likewise.
7312 (first_mem_ref_loc): Likewise.
7313 (struct sm_set_flag_if_changed): Likewise.
7314 (execute_sm_if_changed_flag_set): Likewise.
7315 (execute_sm): Likewise.
7316 (hoist_memory_references):
7317 (struct ref_always_accessed): Likewise.
7318 (ref_always_accessed_p): Likewise.
7319 (refs_independent_p): Likewise.
7320 (record_dep_loop): Likewise.
7321 (ref_indep_loop_p_1): Likewise.
7322 (ref_indep_loop_p_2): Likewise.
7323 (ref_indep_loop_p): Likewise.
7324 (can_sm_ref_p): Likewise.
7325 (find_refs_for_sm): Likewise.
7326 (tree_ssa_lim_finalize): Likewise.
7327
7328 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7329
7330 * dwarf2out.c (dw_attr_ref): Remove typedef.
7331 (dw_line_info_ref): Likewise.
7332 (pubname_ref): Likewise.
7333 (dw_ranges_ref): Likewise.
7334 (dw_ranges_by_label_ref): Likewise.
7335 (comdat_type_node_ref): Likewise.
7336 (get_AT): Adjust.
7337 (get_AT_low_pc): Likewise.
7338 (get_AT_hi_pc): Likewise.
7339 (get_AT_string): Likewise.
7340 (get_AT_flag): Likewise.
7341 (get_AT_unsigned): Likewise.
7342 (get_AT_ref): Likewise.
7343 (get_AT_file): Likewise.
7344 (remove_AT): Likewise.
7345 (print_die): Likewise.
7346 (check_die): Likewise.
7347 (die_checksum): Likewise.
7348 (attr_checksum_ordered): Likewise.
7349 (struct checksum_attributes): Likewise.
7350 (collect_checksum_attributes): Likewise.
7351 (die_checksum_ordered): Likewise.
7352 (same_die_p): Likewise.
7353 (is_declaration_die): Likewise.
7354 (clone_die): Likewise.
7355 (clone_as_declaration): Likewise.
7356 (copy_declaration_context): Likewise.
7357 (break_out_comdat_types): Likewise.
7358 (copy_decls_walk): Likewise.
7359 (output_location_lists): Likewise.
7360 (external_ref_hasher::hash): Likewise.
7361 (optimize_external_refs_1): Likewise.
7362 (build_abbrev_table): Likewise.
7363 (size_of_die): Likewise.
7364 (unmark_all_dies): Likewise.
7365 (size_of_pubnames): Likewise.
7366 (output_die_abbrevs): Likewise.
7367 (output_die): Likewise.
7368 (output_pubnames): Likewise.
7369 (add_ranges_num): Likewise.
7370 (add_ranges_by_labels): Likewise.
7371 (add_high_low_attributes): Likewise.
7372 (gen_producer_string): Likewise.
7373 (dwarf2out_set_name): Likewise.
7374 (new_line_info_table): Likewise.
7375 (prune_unused_types_walk_attribs): Likewise.
7376 (prune_unused_types_update_strings): Likewise.
7377 (prune_unused_types): Likewise.
7378 (resolve_addr): Likewise.
7379 (optimize_location_lists_1): Likewise.
7380 (index_location_lists): Likewise.
7381 (dwarf2out_finish): Likewise.
7382
7383 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7384
7385 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
7386
7387 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7388
7389 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
7390 (dump_asserts_for): Adjust.
7391 (register_new_assert_for): Likewise.
7392 (process_assert_insertions): Likewise.
7393 (insert_range_assertions): Likewise.
7394
7395 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7396
7397 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
7398 and remove typedef.
7399 (new_temp_expr_table): Adjust.
7400 (free_temp_expr_table): Likewise.
7401 (version_to_be_replaced_p): Likewise.
7402 (make_dependent_on_partition): Likewise.
7403 (add_to_partition_kill_list): Likewise.
7404 (remove_from_partition_kill_list): Likewise.
7405 (add_dependence): Likewise.
7406 (finished_with_expr): Likewise.
7407 (process_replaceable): Likewise.
7408 (kill_expr): Likewise.
7409 (kill_virtual_exprs): Likewise.
7410 (mark_replaceable): Likewise.
7411 (find_replaceable_in_bb): Likewise.
7412 (find_replaceable_exprs): Likewise.
7413 (debug_ter): Likewise.
7414
7415 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7416
7417 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
7418 (struct btr_user): Rename from btr_user_s.
7419 (struct btr_def): Rename from btr_def_s.
7420 (find_btr_def_group): Adjust.
7421 (add_btr_def): Likewise.
7422 (new_btr_user): Likewise.
7423 (note_other_use_this_block): Likewise.
7424 (compute_defs_uses_and_gen): Likewise.
7425 (link_btr_uses): Likewise.
7426 (build_btr_def_use_webs): Likewise.
7427 (block_at_edge_of_live_range_p): Likewise.
7428 (btr_def_live_range): Likewise.
7429 (combine_btr_defs): Likewise.
7430 (move_btr_def): Likewise.
7431 (migrate_btr_def): Likewise.
7432 (migrate_btr_defs): Likewise.
7433
7434 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7435
7436 * var-tracking.c (shared_hash_def): Rename to shared_hash.
7437 (shared_hash): Remove typedef.
7438 (struct dataflow_set): Adjust.
7439 (shared_hash_unshare): Likewise.
7440 (dataflow_set_merge): Likewise.
7441 (vt_initialize): Likewise.
7442 (vt_finalize): Likewise.
7443
7444 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7445
7446 * var-tracking.c (struct location_chain): Rename from
7447 location_chain_def.
7448 (struct variable_part): Adjust.
7449 (variable_htab_free): Likewise.
7450 (unshare_variable): Likewise.
7451 (get_init_value): Likewise.
7452 (get_addr_from_local_cache): Likewise.
7453 (drop_overlapping_mem_locs): Likewise.
7454 (val_reset): Likewise.
7455 (struct variable_union_info): Likewise.
7456 (variable_union): Likewise.
7457 (find_loc_in_1pdv): Likewise.
7458 (insert_into_intersection): Likewise.
7459 (intersect_loc_chains): Likewise.
7460 (canonicalize_loc_order_check): Likewise.
7461 (canonicalize_values_mark): Likewise.
7462 (canonicalize_values_star): Likewise.
7463 (canonicalize_vars_star): Likewise.
7464 (variable_merge_over_cur): Likewise.
7465 (remove_duplicate_values): Likewise.
7466 (variable_post_merge_new_vals): Likewise.
7467 (variable_post_merge_perm_vals): Likewise.
7468 (find_mem_expr_in_1pdv): Likewise.
7469 (dataflow_set_preserve_mem_locs): Likewise.
7470 (dataflow_set_remove_mem_locs): Likewise.
7471 (variable_part_different_p): Likewise.
7472 (onepart_variable_different_p): Likewise.
7473 (find_src_set_src): Likewise.
7474 (dump_var): Likewise.
7475 (set_slot_part): Likewise.
7476 (clobber_slot_part): Likewise.
7477 (delete_slot_part): Likewise.
7478 (vt_expand_var_loc_chain): Likewise.
7479 (emit_note_insn_var_location): Likewise.
7480 (vt_finalize): Likewise.
7481
7482 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7483
7484 * dse.c (store_info_t): Remove typedef.
7485 (group_info_t): Likewise.
7486 (const_group_info_t): Likewise.
7487 (deferred_change_t): Likewise.
7488 (get_group_info): Adjust.
7489 (free_store_info): Likewise.
7490 (canon_address): Likewise.
7491 (clear_rhs_from_active_local_stores): Likewise.
7492 (record_store): Likewise.
7493 (replace_read): Likewise.
7494 (check_mem_read_rtx): Likewise.
7495 (scan_insn): Likewise.
7496 (remove_useless_values): Likewise.
7497 (dse_step1): Likewise.
7498 (dse_step2_init): Likewise.
7499 (dse_step2_nospill): Likewise.
7500 (scan_stores_nospill): Likewise.
7501 (scan_reads_nospill): Likewise.
7502 (dse_step3_exit_block_scan): Likewise.
7503 (dse_step3): Likewise.
7504 (dse_step5_nospill): Likewise.
7505 (dse_step6): Likewise.
7506
7507 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7508
7509 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
7510 (alias_set_entry): Remove typedef.
7511 (alias_set_subset_of): Adjust.
7512 (alias_sets_conflict_p): Likewise.
7513 (init_alias_set_entry): Likewise.
7514 (get_alias_set): Likewise.
7515 (new_alias_set): Likewise.
7516 (record_alias_subset): Likewise.
7517
7518 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
7519
7520 * doc/install.texi (Downloading the source): Mark up
7521 contrib/download_prerequisites properly and drop leading "./".
7522
7523 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7524
7525 * config/arc/arc.h: Remove define of STRUCT_VALUE.
7526 * config/lm32/lm32.h: Likewise.
7527 * config/mep/mep.h: Likewise.
7528 * config/visium/visium.h: Likewise.
7529 * system.h: Poison STRUCT_VALUE macro.
7530
7531 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
7532
7533 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
7534 CONSTANT_P operands.
7535
7536 2015-09-11 David S. Miller <davem@davemloft.net>
7537
7538 * config/sparc/constraints.md: Make "U" constraint a real register
7539 constraint.
7540 * config/sparc/sparc.c (TARGET_LRA_P): Define.
7541 (D_MODES, DF_MODES): Add missing cast.
7542 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
7543 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
7544 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
7545 cost to 8.
7546 * config/sparc/sparc.h (PROMOTE_MODE): Define.
7547 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
7548 provide these insn when flag_pic.
7549
7550 2015-09-11 Jeff Law <law@redhat.com>
7551
7552 PR tree-optimization/47679
7553 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
7554 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
7555 member with m_. Update inline member functions as necessary. Add
7556 toplevel comment.
7557 * tree-ssa-scopedtables.c: Update const_and_copies's member
7558 functions to use m_ prefix to access the stack.
7559
7560 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
7561
7562 * graphite-optimize-isl.c (disable_tiling): Remove.
7563 (get_schedule_for_band): Do not use disable_tiling.
7564 (get_prevector_map): Delete function.
7565 (enable_polly_vector): Remove.
7566 (get_schedule_for_band_list): Remove dead code.
7567
7568 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
7569
7570 * graphite-optimize-isl.c (get_tile_map): Refactor.
7571 (get_schedule_for_band): Same.
7572 (getScheduleForBand): Same.
7573 (get_prevector_map): Same.
7574 (get_schedule_for_band_list): Same.
7575 (get_schedule_map): Same.
7576 (get_single_map): Same.
7577 (apply_schedule_map_to_scop): Same.
7578 (optimize_isl): Same.
7579
7580 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7581
7582 PR target/63304
7583 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
7584 (movtf): Delete.
7585 * config/aarch64/iterators.md (GPF_TF_F16): New.
7586 (GPF_F16): Delete.
7587
7588 2015-09-10 Nathan Sidwell <nathan@acm.org>
7589
7590 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
7591 (nvptx_reorg): Adjust comments.
7592
7593 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
7594
7595 PR bootstrap/67363
7596 * configure.ac: Check if setenv and unsetenv are declared.
7597 * configure: Rebuild.
7598 * config.in: Rebuild.
7599 * system.h: Declare setenv and unsetenv if not declared.
7600
7601 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7602
7603 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
7604 commentary to simplify permute mask adjustment equation.
7605 (special_handling_values): Add SH_VPERM.
7606 (const_load_sequence_p): New function.
7607 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
7608 the mask loaded from the constant pool.
7609 (adjust_vperm): New function.
7610 (handle_special_swappables): Call adjust_vperm.
7611 (dump_swap_insn_table): Handle SH_VPERM.
7612
7613 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
7614
7615 * shrink-wrap.c (requires_stack_frame_p): Remove static.
7616 * shrink-wrap.h (requires_stack_frame_p): Put back.
7617
7618 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
7619
7620 * reload1.c (elimination_costs_in_insn): Locally turn
7621 -Wmaybe-uninitialized into a warning.
7622
7623 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
7624
7625 * shrink-wrap.c (requires_stack_frame_p): Make static.
7626 (prepare_shrink_wrap): Likewise.
7627 (dup_block_and_redirect): Likewise.
7628 * shrink-wrap.h: Remove declarations of those functions.
7629
7630 2015-09-10 Mark Wielaard <mjw@redhat.com>
7631
7632 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
7633
7634 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
7635
7636 PR target/67506
7637 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
7638 missing simplify_gen_subreg.
7639
7640 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7641
7642 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
7643 the vector element is bigger than 64 bit.
7644
7645 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7646
7647 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
7648 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
7649
7650 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7651
7652 * config/s390/s390.c: Add V1TImode to constant pool modes.
7653
7654 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7655
7656 PR target/67439
7657 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
7658 predicate. Set predicable_short_it attr to "no".
7659
7660 2015-09-10 Jiong Wang <jiong.wang@arm.com>
7661
7662 PR rtl-optimization/67421
7663 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
7664 left wide shift tranformation.
7665
7666 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
7667
7668 * common/config/arc/arc-common.c: Remove references to A5.
7669 * config/arc/arc-opts.h: Likewise.
7670 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
7671 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
7672 * config/arc/t-arc-newlib: Likewise.
7673
7674 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
7675
7676 * config/arc/arc.md (length): Fix attribute length for conditional
7677 executed instructions with long immediate.
7678
7679 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7680
7681 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
7682 type for second alternative.
7683
7684 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
7685
7686 * doc/invoke.texi (Downloading GCC): Mention
7687 contrib/download_prerequisites script.
7688
7689 2015-09-10 Jakub Jelinek <jakub@redhat.com>
7690
7691 PR c++/67523
7692 * gimplify.c (gimplify_omp_for): If inner stmt is not found
7693 for combined loop, assert seen_error () and return GS_ERROR.
7694
7695 PR middle-end/67521
7696 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
7697 if decl is already in outer->variables.
7698
7699 PR middle-end/67517
7700 * gimplify.c (gimplify_scan_omp_clauses): Instead of
7701 asserting that decl is not specified in octx->variables,
7702 break out of the loop if it is.
7703
7704 PR c++/67514
7705 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
7706 iterator is not explicitly determined, but is defined inside
7707 of the combined workshare region, handle it like if it has
7708 DECL_EXPR in OMP_FOR_PRE_BODY.
7709
7710 2015-09-09 Nathan Sidwell <nathan@acm.org>
7711
7712 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
7713 (*cmp<mode>): Add assembler spacing.
7714 (setcc_int<mode>, set_cc_float<mode>): Likewise.
7715 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
7716 level.
7717 (write_func_decl_from_insn): Refactor argument loops & comma emission.
7718 (nvptx_expand_call): Likewise.
7719 (nvptx_output_call_insn): Likewise.
7720 (nvptx_reorg_subreg): Add spacing.
7721
7722 2015-09-09 Marek Polacek <polacek@redhat.com>
7723
7724 PR middle-end/67512
7725 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
7726 for comparisons.
7727
7728 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
7729
7730 PR c++/53184
7731 * doc/invoke.texi ([Wsubobject-linkage]): Document.
7732
7733 2015-09-09 Tom de Vries <tom@codesourcery.com>
7734
7735 * params-list.h: Add missing copyright notice.
7736
7737 2015-09-09 Nathan Sidwell <nathan@acm.org>
7738
7739 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
7740 sel_truesi, not andsi.
7741
7742 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7743
7744 * config/arm/arm.md (*subsi3_compare0): Rename to...
7745 (subsi3_compare0): ... This.
7746 (modsi3): New define_expand.
7747 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
7748 when operand is power of 2.
7749
7750 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7751
7752 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
7753 (*neg<mode>2_compare0): Rename to...
7754 (neg<mode>2_compare0): ... This.
7755 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
7756 Move check for speed inside the if-then-elses. Reflect
7757 CSNEG sequence in MOD by power of 2 case.
7758
7759 2015-09-09 Alan Modra <amodra@gmail.com>
7760
7761 PR target/67378
7762 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
7763 reload replacement for PRE_MODIFY address reg.
7764
7765 2015-09-09 Sebastian Pop <s.pop@samsung.com>
7766
7767 PR tree-optimization/53852
7768 * config.in: Regenerate.
7769 * configure: Regenerate.
7770 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
7771 * graphite-optimize-isl.c (optimize_isl): Stop computation when
7772 PARAM_MAX_ISL_OPERATIONS is reached.
7773 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
7774 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
7775 result equal to isl_stat_ok as the status now can be isl_error_quota.
7776 (subtract_commutative_associative_deps): Same.
7777 (compute_deps): Same.
7778
7779 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7780 Sebastian Pop <s.pop@samsung.com>
7781
7782 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7783 Return the parameter if it was saved in corresponding
7784 parameter_rename_map of the region.
7785 (copy_def): Copy def from sese region to the newly created region.
7786 (copy_internal_parameters): Copy all the internal parameters defined
7787 within a region to the newly created region.
7788 (graphite_regenerate_ast_isl): Copy parameters to the new region before
7789 translating isl to gimple.
7790 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
7791 the loop-nest does not have any data-references.
7792 (build_graphite_scops): Create a scop only when there is at least one
7793 loop inside it.
7794 (contains_only_close_phi_nodes): Deleted.
7795 (print_graphite_scop_statistics): Deleted
7796 (print_graphite_statistics): Deleted
7797 (limit_scops): Deleted.
7798 (build_scops): Removed call to limit_scops.
7799 * sese.c (new_sese): Construct.
7800 (free_sese): Destruct.
7801 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
7802 added.
7803 (set_rename): Pass sese region so that parameters inside the region can
7804 be added to its parameter_rename_map.
7805 (rename_uses): Pass sese region.
7806 (graphite_copy_stmts_from_block): Do not copy parameters that have been
7807 generated in the header of the scop. For each SSA_NAME in the
7808 parameter_rename_map rename its usage.
7809 (invariant_in_sese_p_rec): Return false if tree t is defined outside
7810 sese region.
7811 (scalar_evolution_in_region): If the tree t is invariant just return t.
7812 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
7813 struct sese to keep track of all the parameters which need renaming.
7814 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
7815 any data-refs.
7816 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
7817
7818 2015-09-08 Tom de Vries <tom@codesourcery.com>
7819
7820 * Makefile.in (generated_files): Add params.list.
7821 (params.list, s-params.list): Add rule.
7822 * params.h (enum compiler_param): Include params-list.h. Move define
7823 DEFPARAM, include params.def and undef DEFPARAM ...
7824 * params-list.h: ... here. New file.
7825
7826 2015-09-08 David Malcolm <dmalcolm@redhat.com>
7827
7828 * pretty-print.h (printer_fn): Fix typo in comment.
7829
7830 2015-09-07 Jeff Law <law@redhat.com>
7831
7832 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
7833
7834 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7835
7836 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
7837 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
7838 (arm_neon_fp16_hw): New.
7839
7840 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7841
7842 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
7843 UNITS_PER_WORD >= 4.
7844
7845 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7846
7847 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
7848 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
7849 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
7850 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
7851 (aarch64_float_extend_lo_v2df): Rename to...
7852 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
7853
7854 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
7855 (float_extend_lo): Add v4sf.
7856
7857 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
7858 * config/aarch64/iterators.md (VQ_HSF): New iterator.
7859 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
7860 (Vwide): New mode_attr.
7861
7862 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7863
7864 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
7865 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
7866 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
7867 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
7868 V4HF and V8HF variants to iterator.
7869
7870 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
7871
7872 * config/aarch64/iterators.md (VDQF_F16): New.
7873 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
7874
7875 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7876
7877 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
7878 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
7879 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
7880 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
7881 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
7882 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
7883 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
7884 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
7885 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
7886 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
7887 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
7888 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
7889 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
7890 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
7891 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
7892 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
7893 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
7894 vld1q_dup_f16): New.
7895
7896 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7897
7898 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
7899 Reparameterize to...
7900 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
7901 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
7902 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
7903
7904 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
7905 v8hf variant.
7906 (float_truncate_lo_): Use BUILTIN_VDF iterator.
7907
7908 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
7909
7910 * config/aarch64/iterators.md (VDF, Vdtype): New.
7911 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
7912
7913 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7914
7915 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
7916 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
7917 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
7918 Add __builtin_aarch64_simd_hf.
7919 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
7920 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
7921 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
7922 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
7923 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
7924 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
7925 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
7926 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
7927 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
7928
7929 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
7930 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
7931 (VDC, Vdbl): Add V4HF.
7932
7933 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7934
7935 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
7936 V4HFmode and V8HFmode.
7937 (aarch64_split_simd_move): Add case for V8HFmode.
7938 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
7939 (aarch64_simd_builtin_std_type): Handle HFmode.
7940 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
7941
7942 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
7943 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
7944 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
7945
7946 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
7947 Float16x8_t.
7948
7949 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
7950 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
7951 New typedefs.
7952 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
7953 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
7954 vst1q_lane_f16): New.
7955 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
7956 (VALLDI_F16, VALL_F16): New.
7957 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
7958 Add cases for V4HF and V8HF.
7959 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
7960
7961 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
7962
7963 * config/arm/arm-builtins.c (VAR11, VAR12): New.
7964 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
7965 vld4_dup): Add v4hf variant.
7966 (vget_high, vget_low): Add v8hf variant.
7967 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
7968 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
7969 v4hf and v8hf variants.
7970
7971 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
7972 (VDX): Add V4HF.
7973 (V_DOUBLE): Add case for V4HF.
7974 (VQX): Add V8HF.
7975 (V_HALF): Add case for V8HF.
7976 (VDQX): Add V4HF, V8HF.
7977 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
7978 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
7979
7980 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
7981 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
7982 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
7983 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
7984 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
7985 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
7986 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
7987 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
7988 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
7989
7990 (neon_vcreate, neon_vreinterpretv8qi<mode>,
7991 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
7992 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
7993 Change VDX to VD_RE.
7994
7995 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
7996 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
7997 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
7998
7999 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8000 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8001 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8002 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8003 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8004 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8005 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8006 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8007 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8008
8009 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8010
8011 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8012 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8013 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8014 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8015 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8016 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8017 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8018 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8019 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8020 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8021 New.
8022
8023 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8024
8025 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8026
8027 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8028
8029 * config/arm/arm-builtins.c (v8hf_UP): New.
8030 (arm_init_simd_builtin_types): Initialise Float16x8_t.
8031
8032 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8033
8034 * config/arm/arm_neon.h (float16x8_t): New typedef.
8035
8036 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8037
8038 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8039 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8040 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8041 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8042 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8043 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8044 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8045 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8046 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8047 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8048
8049 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
8050
8051 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8052 non-alphanumeric characters in the symbol name.
8053
8054 2015-09-07 Marek Polacek <polacek@redhat.com>
8055
8056 PR inline-asm/67448
8057 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8058 a memory input.
8059
8060 2015-09-07 Marek Polacek <polacek@redhat.com>
8061
8062 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8063
8064 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
8065
8066 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8067 not warn.
8068
8069 2015-09-04 Jakub Jelinek <jakub@redhat.com>
8070
8071 PR middle-end/67452
8072 * tree-ssa-live.c: Include cfgloop.h.
8073 (remove_unused_locals): Clear loop->simduid if simduid is about
8074 to be removed from cfun->local_decls.
8075
8076 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8077
8078 PR target/65210
8079 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8080 attribute as well.
8081
8082 2015-09-04 Tom de Vries <tom@codesourcery.com>
8083
8084 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8085
8086 2015-09-04 Jeff Law <law@redhat.com>
8087
8088 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8089 unnecessary constructor. It's now trivial and implemented inside...
8090 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8091 constructor. Add comments to various methods. Remove unused
8092 private fields.
8093 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8094 * tree-vrp.c (identify_jump_threads): Likewise.
8095 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8096 indentation issues.
8097 (thread_across_edge): Similarly.
8098 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8099 arguments in constructor call.
8100
8101 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8102
8103 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8104 temp path contains a '-'.
8105
8106 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8107 Petr Murzin <petr.murzin@intel.com>
8108 Kirill Yukhin <kirill.yukhin@intel.com>
8109
8110 * config/i386/i386-builtin-types.def
8111 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8112 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8113 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8114 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8115 * config/i386/i386.c
8116 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8117 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8118 IX86_BUILTIN_SCATTERALTDIV16SI.
8119 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8120 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8121 __builtin_ia32_scatteraltdiv8si.
8122 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8123 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8124 IX86_BUILTIN_SCATTERALTDIV16SI.
8125 (ix86_vectorize_builtin_scatter): New.
8126 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8127 ix86_vectorize_builtin_scatter.
8128
8129 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8130 Petr Murzin <petr.murzin@intel.com>
8131 Kirill Yukhin <kirill.yukhin@intel.com>
8132
8133 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8134 * doc/tm.texi: Regenerate.
8135 * target.def: Add scatter builtin.
8136 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8137 for loads/stores in case of gather/scatter accordingly.
8138 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8139 STMT_VINFO_GATHER_P(S).
8140 (vect_check_gather): Rename to ...
8141 (vect_check_gather_scatter): this.
8142 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8143 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8144 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8145 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8146 variable and new checkings for it accordingly.
8147 * tree-vect-stmts.c
8148 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8149 STMT_VINFO_GATHER_P(S).
8150 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8151 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8152
8153 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8154
8155 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8156 define_insn.
8157 (mulv16qi3): New define_expand.
8158
8159 2015-09-03 Martin Sebor <msebor@redhat.com>
8160
8161 PR c/66516
8162 * doc/extend.texi (Other Builtins): Document when the address
8163 of a built-in function can be taken.
8164
8165 2015-09-03 Richard Biener <rguenther@suse.de>
8166
8167 * dwarf2out.c (flush_limbo_die_list): Split out from ...
8168 (dwarf2out_early_finish): ... here.
8169 (dwarf2out_finish): Do not call dwarf2out_early_finish but
8170 flush_limbo_die_list. Assert we have no deferred asm names.
8171
8172 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8173
8174 * optabs.c (expand_binop): Don't create a broadcast vector with a
8175 source element wider than the inner mode.
8176
8177 2015-09-03 Richard Biener <rguenther@suse.de>
8178
8179 * varasm.c (output_constant): Use fold_convert instead of
8180 wide_int_to_tree.
8181
8182 2015-09-03 Tom de Vries <tom@codesourcery.com>
8183
8184 PR tree-optimization/65637
8185 * omp-low.c (expand_omp_for_static_chunk): Handle case that
8186 fin_bb has 2 predecessors.
8187
8188 2015-09-03 Tom de Vries <tom@codesourcery.com>
8189
8190 PR tree-optimization/65637
8191 * omp-low.c (find_phi_with_arg_on_edge): New function.
8192 (expand_omp_for_static_chunk): Fix inner loop phi.
8193
8194 2015-09-03 Tom de Vries <tom@codesourcery.com>
8195
8196 PR tree-optimization/65637
8197 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8198 that head is NULL.
8199
8200 2015-09-03 Tom de Vries <tom@codesourcery.com>
8201
8202 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8203
8204 2015-09-03 Tom de Vries <tom@codesourcery.com>
8205
8206 * doc/invoke.texi (parloops-chunk-size): Add item.
8207 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8208 * tree-parloops.c: Include params.h.
8209 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8210 param parloops-chunk-size is used.
8211
8212 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8213
8214 PR middle-end/67351
8215 * fold-const.c (fold_binary_loc) : Move
8216 Transform (x >> c) << c into x & (-1<<c) or
8217 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8218 types using simplify and match.
8219 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8220 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8221
8222 2015-09-03 Richard Biener <rguenther@suse.de>
8223
8224 PR ipa/66705
8225 * tree-ssa-structalias.c (ctor_for_analysis): New function.
8226 (create_variable_info_for_1): Use ctor_for_analysis instead
8227 of get_constructor.
8228 (create_variable_info_for): Likewise.
8229
8230 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
8231
8232 PR ipa/67280
8233 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8234 in new callgraph edge.
8235
8236 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
8237
8238 PR target/59810
8239 PR target/63652
8240 PR target/63653
8241 * config/aarch64/aarch64-simd.md
8242 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8243 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8244 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8245 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8246
8247 2015-09-02 Alan Modra <amodra@gmail.com>
8248
8249 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
8250 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
8251 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
8252
8253 2015-09-02 Alan Modra <amodra@gmail.com>
8254
8255 PR target/67417
8256 * config/rs6000/predicates.md (current_file_function_operand): Don't
8257 return true for weak symbols.
8258 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
8259
8260 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
8261 Andrew Bennett <andrew.bennett@imgtec.com>
8262
8263 * config/mips/mips-opts.h (mips_cb_setting): New enum.
8264 * config/mips/mips-protos.h: Add definitions for
8265 mips_output_jump and mips_output_equal_conditional_branch
8266 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
8267 JIC instruction.
8268 (mips_emit_compare): Add support for the MIPS R6 conditional
8269 compact branches.
8270 (mips_process_sync_loop): Likewise.
8271 (mips_output_order_conditional_branch): Likewise.
8272 (mips16_build_call_stub): Change MIPS_CALL to
8273 mips_output_jump.
8274 (mips_print_operand_punctuation): Update 's' case to only
8275 apply to micromips r2.
8276 (mips_adjust_insn_length): Add support for forbidden slot
8277 hazards.
8278 (mips_avoid_hazard): Likewise.
8279 (mips_reorg_process_insns): Likewise.
8280 (mips_output_jump): New function.
8281 (mips_output_equal_conditional_branch): Likewise.
8282 (mips_output_conditional_branch): Use jrc/bc if compact
8283 branch support is enabled. Ensure the forbidden slots
8284 between the two branch instructions is filled with a nop.
8285 (mips_option_override): Add support to process the compact
8286 branch option and set the correct defaults. Prevent
8287 non-explict relocs being using for MIPS R6.
8288 (mips_trampoline_init): Add compact branch support.
8289 (mips_mult_zero_zero_cost): Allow zero initialisation of
8290 accumulators with TARGET_DSP.
8291 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
8292 (TARGET_CB_MAYBE): New define.
8293 (TARGET_CB_ALWAYS): New define.
8294 (ISA_HAS_DELAY_SLOTS): New define.
8295 (ISA_HAS_COMPACT_BRANCHES): New define.
8296 (ISA_HAS_JRC): New define.
8297 (MIPS_BRANCH_C): New define.
8298 (MIPS_CALL): Removed.
8299 (MICROMIPS_J): Removed.
8300 * config/mips/mips.md (compact_form): New attr.
8301 (hazard): Add support for forbidden slots.
8302 (define_delay): Add support for compact branches.
8303 (*branch_order<mode>): Likewise.
8304 (*branch_order<mode>_inverted): Likewise.
8305 (*branch_equality<mode>): Likewise.
8306 (*branch_equality<mode>_inverted): Likewise.
8307 (*jump_absolute): Likewise.
8308 (*jump_pic): Likewise.
8309 (indirect_jump): Use mips_output_jump to produce assembly output.
8310 (tablejump_<mode>"): Likewise.
8311 (*<optab>"): Likewise.
8312 (<optab>_internal): Likewise.
8313 (sibcall_internal): Likewise.
8314 (sibcall_value_internal): Likewise.
8315 (sibcall_value_multiple_internal): Likewise.
8316 (call_internal): Likewise.
8317 (call_split): Likewise.
8318 (call_internal_direct): Likewise.
8319 (call_direct_split): Likewise.
8320 (call_value_internal): Likewise.
8321 (call_value_split): Likewise.
8322 (call_value_internal_direct): Likewise.
8323 (call_value_direct_split): Likewise.
8324 (call_value_multiple_internal): Likewise.
8325 (call_value_multiple_split): Likewise.
8326 (mips_get_fcsr_mips16_<mode>): Likewise.
8327 (mips_set_fcsr_mips16_<mode>): Likewise.
8328 (tls_get_tp_mips16_<mode>): Likewise.
8329 * config/mips/mips.opt: Add -mcompact-branches option.
8330 * config/mips/predicates.md (order_operator): Ensure the
8331 conditional compact branches are only used if the ISA them.
8332 * doc/invoke.texi: Document -mcompact-branches option.
8333
8334 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
8335
8336 PR target/61578
8337 * lra-lives.c (process_bb_lives): Process move pseudos with the
8338 same value for copies and preferences
8339 * lra-constraints.c (match_reload): Create match reload pseudo
8340 with the same value from single dying input pseudo.
8341
8342 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8343
8344 PR target/67405
8345 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
8346
8347 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
8348
8349 * trans-mem.c: Add contributed-by.
8350 * trans-mem.h: Same.
8351
8352 2015-09-01 Richard Biener <rguenther@suse.de>
8353
8354 * expr.c (expand_expr_real_1): For expanding TERed defs
8355 set the current location to that of the def if not UNKNOWN.
8356
8357 2015-09-01 David Sherwood <david.sherwood@arm.com>
8358
8359 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
8360
8361 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8362
8363 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
8364 then_cost, else_cost fields. Change branch_cost field to unsigned int.
8365 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
8366 Include rtl-iter.h.
8367 (noce_simple_bbs): New function.
8368 (noce_try_move): Bail if basic blocks are not simple.
8369 (noce_try_store_flag): Likewise.
8370 (noce_try_store_flag_constants): Likewise.
8371 (noce_try_addcc): Likewise.
8372 (noce_try_store_flag_mask): Likewise.
8373 (noce_try_cmove): Likewise.
8374 (noce_try_minmax): Likewise.
8375 (noce_try_abs): Likewise.
8376 (noce_try_sign_mask): Likewise.
8377 (noce_try_bitop): Likewise.
8378 (bbs_ok_for_cmove_arith): New function.
8379 (noce_emit_all_but_last): Likewise.
8380 (noce_emit_insn): Likewise.
8381 (noce_emit_bb): Likewise.
8382 (noce_try_cmove_arith): Handle non-simple basic blocks.
8383 (insn_valid_noce_process_p): New function.
8384 (contains_mem_rtx_p): Likewise.
8385 (bb_valid_for_noce_process_p): Likewise.
8386 (noce_process_if_block): Allow non-simple basic blocks
8387 where appropriate.
8388
8389 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
8390
8391 * tree-ssa-dom.c (record_equivalences_from_phis,
8392 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
8393 (lookup_avail_expr): Likewise, and remove comment and unused temp.
8394
8395 2015-09-01 Nick Clifton <nickc@redhat.com>
8396
8397 * config/msp430/msp430.opt (mcpu): Fix typo.
8398
8399 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8400
8401 * config/aarch64/aarch64.c (aarch64_set_current_function):
8402 Re-layout any vector parameters have non-simd layout.
8403 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
8404 Delete.
8405 (aarch64_simd_expand_args): Delete call to the above.
8406
8407 2015-08-31 Mike Frysinger <vapier@gentoo.org>
8408
8409 * doc/invoke.texi (asan-stack): Add space before option.
8410
8411 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8412
8413 * tree.h (zerop): New function.
8414 * tree.c (zerop): Likewise.
8415 (element_precision): Handle expressions.
8416 * match.pd (define_predicates): Add zerop.
8417 (x <= +Inf): Fix comment.
8418 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
8419 * fold-const.c (fold_binary_loc): ... here. Remove.
8420
8421 2015-08-31 Richard Biener <rguenther@suse.de>
8422
8423 PR middle-end/67381
8424 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
8425
8426 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
8427
8428 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
8429 (CEXPI): New operator list.
8430 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
8431 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
8432 Converted from ...
8433 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
8434
8435 2015-08-31 Tom de Vries <tom@codesourcery.com>
8436
8437 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
8438 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
8439 parameter.
8440 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
8441 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
8442 (rewrite_into_loop_closed_ssa): ... here.
8443 (replace_uses_in_dominated_bbs): Remove function.
8444 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
8445 rewrite_into_loop_closed_ssa_1.
8446
8447 2015-08-31 Michael Matz <matz@suse.de>
8448
8449 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
8450 enter entry and exit blocks for reverse post order.
8451
8452 2015-08-31 Richard Biener <rguenther@suse.de>
8453
8454 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
8455 (lto_location_cache::current_sysp): Likewise.
8456 (output_block::current_sysp): Likewise.
8457 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
8458 (lto_location_cache::apply_location_cache): Properly record
8459 system header locations.
8460 (lto_location_cache::input_location): Input whether a file
8461 is a system header.
8462 * lto-streamer-out.c (lto_output_location): Stream whether a file
8463 is a system header.
8464
8465 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8466
8467 PR bootstrap/67363
8468 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
8469
8470 2015-08-31 Tom de Vries <tom@codesourcery.com>
8471
8472 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
8473 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
8474 Improve function header comments.
8475
8476 2015-08-30 Michael Collison <michael.collison@linaro.org>
8477
8478 PR other/67320
8479 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
8480 standard names
8481
8482 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8483
8484 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
8485 special_handling bitfield.
8486 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
8487 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
8488 that represents a general xxpermdi.
8489 (insn_is_swappable_p): Add handling for vec_concat of two
8490 doublewords, which maps to a specific xxpermdi.
8491 (adjust_xxpermdi): New function.
8492 (adjust_concat): Likewise.
8493 (handle_special_swappables): Call adjust_xxpermdi and
8494 adjust_concat.
8495 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
8496
8497 2015-08-30 Rich Felker <dalias@libc.org>
8498
8499 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
8500 case instead of sh[123456ble]-*-*.
8501
8502 2015-08-29 Anatoly Sokolov <aesok@post.ru>
8503
8504 * ira.c (print_unform_and_important_classes,
8505 print_translated_classes): Remove reg_class_names static array.
8506 (print_unform_and_important_classes): Rename to ...
8507 (print_uniform_and_important_classes): ... this.
8508 (ira_debug_allocno_classes): Update accordingly.
8509
8510 2015-08-29 Tom de Vries <tom@codesourcery.com>
8511
8512 PR tree-optimization/46193
8513 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
8514 clause.
8515
8516 2015-08-28 Jeff Law <law@redhat.com>
8517
8518 PR lto/66752
8519 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
8520 unable to find X NE 0 in the tables, return X as the simplified
8521 condition.
8522 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8523 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
8524 to VISISTED_BBS.
8525 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
8526 after removing the control flow statement and unnecessary edges.
8527
8528 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
8529
8530 Revert:
8531 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8532
8533 PR tree-optimization/67283
8534 * tree-sra.c (type_consists_of_records_p): Rename to...
8535 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8536
8537 (completely_scalarize_record): Rename to...
8538 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
8539 code to:
8540 (scalarize_elem): New.
8541
8542 2015-08-28 Jiong Wang <jiong.wang@arm.com>
8543
8544 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
8545 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
8546 (aarch64_symbol_type): Likewise.
8547 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8548 Likewise.
8549 (aarch64_expand_mov_immediate): Likewise.
8550 (aarch64_print_operand): Likewise.
8551 (aarch64_classify_tls_symbol): Likewise.
8552
8553 2015-08-28 Richard Biener <rguenther@suse.de>
8554
8555 * cgraphunit.c (symbol_table::compile): Move early debug generation
8556 and finish...
8557 (symbol_table::finalize_compilation_unit): ... back here and
8558 add a !seen_error () guard.
8559
8560 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8561
8562 * toplev.c (process_options): Do not use flag_loop_block,
8563 flag_loop_interchange, and flag_loop_strip_mine. Add check for
8564 flag_loop_optimize_isl.
8565
8566 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8567
8568 * Makefile.in (OBJS): Remove graphite-blocking.o and
8569 graphite-interchange.o.
8570 * common.opt (floop-strip-mine, floop-interchange, floop-block):
8571 Alias of floop-nest-optimize.
8572 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
8573 Document as alias of -floop-nest-optimize.
8574 * graphite-blocking.c: Remove.
8575 * graphite-interchange.c: Remove.
8576 * graphite-optimize-isl.c: Include dumpfile.h.
8577 (getScheduleForBand): Add dump for tiled loops. Use
8578 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
8579 * graphite-poly.c (scop_max_loop_depth): Remove.
8580 (print_scattering_function_1): Remove.
8581 (print_scattering_function): Remove.
8582 (print_scattering_functions): Remove.
8583 (debug_scattering_function): Remove.
8584 (debug_scattering_functions): Remove.
8585 (apply_poly_transforms): Remove use of flag_loop_block,
8586 flag_loop_strip_mine, and flag_loop_interchange.
8587 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
8588 PBB_ORIGINAL.
8589 (print_pdr_access_layout): Remove.
8590 (print_pdr): Print ISL representation.
8591 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
8592 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
8593 (free_scop): Same.
8594 (openscop_print_pbb_domain): Remove.
8595 (print_pbb): Remove call to print_scattering_function.
8596 (openscop_print_scop_context): Remove.
8597 (print_scop_context): Do not print matrices anymore.
8598 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
8599 SCOP_TRANSFORMED_SCHEDULE.
8600 (print_isl_set): Add printing of a new line.
8601 (print_isl_map): Same.
8602 (print_isl_aff): Same.
8603 (print_isl_constraint): Same.
8604 (loop_to_lst): Remove.
8605 (scop_to_lst): Remove.
8606 (lst_indent_to): Remove.
8607 (print_lst): Remove.
8608 (debug_lst): Remove.
8609 (dot_lst_1): Remove.
8610 (dot_lst): Remove.
8611 (reverse_loop_at_level): Remove.
8612 (reverse_loop_for_pbbs): Remove.
8613 * graphite-poly.h (pdr_dim_iter_domain): Remove.
8614 (pdr_nb_params): Remove.
8615 (pdr_alias_set_dim): Remove.
8616 (pdr_subscript_dim): Remove.
8617 (pdr_iterator_dim): Remove.
8618 (pdr_parameter_dim): Remove.
8619 (same_pdr_p): Remove.
8620 (struct poly_scattering): Remove.
8621 (struct poly_bb): Remove _original, _transformed, _saved.
8622 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
8623 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
8624 (PBB_NB_LOCAL_VARIABLES): Remove.
8625 (PBB_NB_SCATTERING_TRANSFORM): Remove.
8626 (schedule_to_scattering): Remove.
8627 (number_of_write_pdrs): Remove.
8628 (pbb_dim_iter_domain): Remove.
8629 (pbb_nb_params): Remove.
8630 (pbb_nb_scattering_orig): Remove.
8631 (pbb_nb_scattering_transform): Remove.
8632 (pbb_nb_dynamic_scattering_transform): Remove.
8633 (pbb_nb_local_vars): Remove.
8634 (pbb_iterator_dim): Remove.
8635 (pbb_parameter_dim): Remove.
8636 (psco_scattering_dim): Remove.
8637 (psct_scattering_dim): Remove.
8638 (psct_local_var_dim): Remove.
8639 (psco_iterator_dim): Remove.
8640 (psct_iterator_dim): Remove.
8641 (psco_parameter_dim): Remove.
8642 (psct_parameter_dim): Remove.
8643 (psct_dynamic_dim): Remove.
8644 (psct_static_dim): Remove.
8645 (psct_add_local_variable): Remove.
8646 (new_lst_loop): Remove.
8647 (new_lst_stmt): Remove.
8648 (free_lst): Remove.
8649 (copy_lst): Remove.
8650 (lst_add_loop_under_loop): Remove.
8651 (lst_depth): Remove.
8652 (lst_dewey_number): Remove.
8653 (lst_dewey_number_at_depth): Remove.
8654 (lst_pred): Remove.
8655 (lst_succ): Remove.
8656 (lst_find_pbb): Remove.
8657 (find_lst_loop): Remove.
8658 (lst_find_first_pbb): Remove.
8659 (lst_empty_p): Remove.
8660 (lst_find_last_pbb): Remove.
8661 (lst_contains_p): Remove.
8662 (lst_contains_pbb): Remove.
8663 (lst_create_nest): Remove.
8664 (lst_remove_from_sequence): Remove.
8665 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
8666 (lst_niter_for_loop): Remove.
8667 (pbb_update_scattering): Remove.
8668 (lst_update_scattering_under): Remove.
8669 (lst_update_scattering): Remove.
8670 (lst_insert_in_sequence): Remove.
8671 (lst_replace): Remove.
8672 (lst_substitute_3): Remove.
8673 (lst_distribute_lst): Remove.
8674 (lst_remove_all_before_including_pbb): Remove.
8675 (lst_remove_all_before_excluding_pbb): Remove.
8676 (struct scop): Remove original_schedule, transformed_schedule, and
8677 saved_schedule.
8678 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
8679 (SCOP_SAVED_SCHEDULE): Remove.
8680 (poly_scattering_new): Remove.
8681 (poly_scattering_free): Remove.
8682 (poly_scattering_copy): Remove.
8683 (store_scattering_pbb): Remove.
8684 (store_lst_schedule): Remove.
8685 (restore_lst_schedule): Remove.
8686 (store_scattering): Remove.
8687 (restore_scattering_pbb): Remove.
8688 (restore_scattering): Remove.
8689 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8690 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
8691 compute the scattering polyhedron dimension from the dimension of
8692 pbb->domain.
8693 (build_scop_scattering): Update call to
8694 build_pbb_scattering_polyhedrons.
8695 (build_poly_scop): Remove call to scop_to_lst.
8696 * graphite.c (graphite_transform_loops): Add call to print_scop.
8697 (gate_graphite_transforms): Remove use of flag_loop_block,
8698 flag_loop_interchange, and flag_loop_strip_mine.
8699
8700 2015-08-27 Sebastian Pop <s.pop@samsung.com>
8701
8702 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
8703 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
8704 -floop-nest-optimize.
8705 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
8706 (generate_luj_sepclass): Remove.
8707 (generate_luj_options): Remove.
8708 (set_options): Remove opt_luj.
8709 (scop_to_isl_ast): Remove opt_luj.
8710 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
8711 flag_loop_unroll_jam.
8712 (getPrevectorMap_full): Remove.
8713 (getScheduleForBandList): Remove map_sepcl.
8714 (getScheduleMap): Same.
8715 (apply_schedule_map_to_scop): Remove sepcl.
8716 (optimize_isl): Same.
8717 * graphite-poly.c (apply_poly_transforms): Remove check for
8718 flag_loop_unroll_jam.
8719 (new_poly_bb): Remove map_sepclass.
8720 * graphite-poly.h (struct poly_bb): Same.
8721 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
8722 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
8723 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
8724 * toplev.c (process_options): Remove flag_loop_unroll_jam.
8725
8726 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
8727
8728 PR target/67317
8729 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
8730 (addqi3_cc): Ditto.
8731 (UNSPEC_ADD_CARRY): Remove.
8732 (addqi3_cconly_overflow): New expander.
8733 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
8734 Adjust for changed add<mode>3_carry.
8735 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
8736 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
8737 (<plusminus_insn><mode>3_carry): Remove expander.
8738 (*<plusminus_insn><mode>3_carry): Split insn pattern to
8739 add<mode>3_carry and sub<mode>3_carry.
8740 (plusminus_carry_mnemonic): Remove code attribute.
8741 (add<mode>3_carry): Canonicalize insn pattern.
8742 (*addsi3_carry_zext): Ditto.
8743 (sub<mode>3_carry): Ditto.
8744 (*subsi3_carry_zext): Ditto.
8745 (adcx<mode>3): Remove insn pattern.
8746 (addcarry<mode>): New insn pattern.
8747 (subborrow<mode>): Ditto.
8748 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
8749 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
8750 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
8751 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
8752 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
8753 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
8754 Rewrite expander to not clobber carry flag chains.
8755
8756 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
8757
8758 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
8759 instead of a rotate.
8760
8761 2015-08-27 Marek Polacek <polacek@redhat.com>
8762
8763 PR middle-end/67005
8764 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
8765 an entry into an irreducible region.
8766
8767 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8768
8769 * configure: Regenerate.
8770
8771 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8772
8773 PR tree-optimization/67283
8774 * tree-sra.c (type_consists_of_records_p): Rename to...
8775 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8776
8777 (completely_scalarize_record): Rename to...
8778 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8779 (scalarize_elem): New.
8780
8781 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
8782
8783 * tree-sra.c (completely_scalarize_var): Rename to...
8784 (create_total_scalarization_access): ... Here. Drop call to
8785 completely_scalarize_record.
8786
8787 (analyze_all_variable_accesses): Replace completely_scalarize_var
8788 with create_total_scalarization_access and completely_scalarize_record.
8789
8790 2015-08-27 Alan Modra <amodra@gmail.com>
8791
8792 PR target/67356
8793 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
8794 for operand 1.
8795
8796 2015-08-27 Richard Biener <rguenther@suse.de>
8797
8798 * passes.c (rest_of_decl_compilation): Guard early_global_decl
8799 call with !seen_error ().
8800 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
8801 early debug generation and finish...
8802 (symbol_table::compile): ... here to put it after a !seen_error ()
8803 guard.
8804
8805 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8806
8807 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
8808 Solaris 12+.
8809
8810 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8811 Andre Vieira <andre.simoesdiasvieira@arm.com>
8812
8813 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
8814 (*cb<optab><mode>1): Likewise.
8815 (*tb<optab><mode>1): Likewise.
8816 (*cb<optab><mode>1): Likewise.
8817 * config/aarch64/iterators.md (inv_cb): New code attribute.
8818 (inv_tb): Likewise.
8819 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
8820 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
8821
8822 2015-08-27 Richard Biener <rguenther@suse.de>
8823
8824 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
8825
8826 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8827
8828 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
8829 trap to fix ICE.
8830
8831 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8832
8833 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
8834 Add declaration.
8835
8836 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
8837 comment.
8838 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
8839 floating point in VSX registers.
8840 (rs6000_output_move_128bit): Always print out the set insn if we
8841 can't generate an appropriate 128-bit move.
8842 (rs6000_generate_compare): Add support for IEEE 128-bit floating
8843 point in VSX registers comparisons.
8844 (rs6000_expand_float128_convert): Likewise.
8845
8846 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
8847 predicate for only GPR hard registers.
8848
8849 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
8850 modes to iterators. Add new iterators for moving 128-bit values in
8851 scalar FPR registers and VSX registers.
8852 (FMOVE128): Likewise.
8853 (FMOVE128_FPR): Likewise.
8854 (FMOVE128_GPR): Likewise.
8855 (FMOVE128_VSX): Likewise.
8856 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
8857 in VSX registers.
8858 (IFKF): Likewise.
8859 (IBM128): Likewise.
8860 (TFIFKF): Likewise.
8861 (RELOAD): Add IEEE 128-bit floating point modes.
8862 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
8863 floating point in VSX registers modes.
8864 (signbit<mode>2, IBM128 iterator): Likewise.
8865 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
8866 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8867 (negtf2): Likewise.
8868 (neg<mode>2, TFIFKF iterator): Likewise.
8869 (negtf2_internal): Likewise.
8870 (abstf2): Likewise.
8871 (abs<mode>2, TFIFKF iterator): Likewise.
8872 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
8873 VSX insn support for negate, absolute value, and negative absolute
8874 value.
8875 (ieee_128bit_vsx_neg<mode>2): Likewise.
8876 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
8877 (ieee_128bit_vsx_abs<mode>2): Likewise.
8878 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8879 (ieee_128bit_vsx_nabs<mode>2): Likewise.
8880 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8881 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
8882 floating point in VSX registers.
8883 (unpack<mode>_dm): Likewise.
8884 (unpack<mode>_nodm): Likewise.
8885 (pack<mode>): Likewise.
8886 (unpackv1ti): Likewise.
8887 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
8888 (packv1ti): Likewise.
8889 (pack<mode>, FMOVE128_VSX iterator): Likewise.
8890 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
8891 registers.
8892 (extenddftf2_internal): Likewise.
8893 (trunctfdf2): Likewise.
8894 (trunctfdf2_internal2): Likewise.
8895 (fix_trunc_helper): Likewise.
8896 (fix_trunctfdi2"): Likewise.
8897 (floatditf2): Likewise.
8898 (floatuns<mode>tf2): Likewise.
8899 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8900 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8901 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8902 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8903 (float<SDI:mode><IFKF:mode>2): Likewise.
8904 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8905
8906 2015-08-26 Renlin Li <renlin.li@arm.com>
8907
8908 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
8909
8910 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8911 Jiong Wang <jiong.wang@arm.com>
8912
8913 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
8914 (tlsie_tiny_<mode>): New define_insn.
8915 (tlsie_tiny_sidi): Likewise.
8916 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
8917 SYMBOL_TINY_TLSIE.
8918 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
8919 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8920 SYMBOL_TINY_TLSIE.
8921 (aarch64_expand_mov_immediate): Likewise.
8922 (aarch64_print_operand): Likewise.
8923 (arch64_classify_tls_symbol): Likewise.
8924
8925 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8926
8927 * config/arm/arm-arches.def: Replace single value flags with
8928 an initializer built from ARM_FSET_MAKE_CPU1.
8929 * config/arm/arm-cores.def: Likewise.
8930 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
8931 derivation from the ARM_CORE macro definition, use the given value
8932 instead.
8933 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
8934 ARM_ARCH macro definition, use the given value instead.
8935
8936 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8937
8938 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
8939 feature set.
8940 (struct builtin_description): Replace field mask with field
8941 features.
8942 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
8943 (IWMMXT2_BUILTIN): Likewise.
8944 (IWMMXT2_BUILTIN2): Likewise.
8945 (FP_BUILTIN): Likewise.
8946 (CRC32_BUILTIN): Likewise.
8947 (CRYPTO_BUILTIN): Likewise.
8948 (iwmmx_mbuiltin): Likewise.
8949 (iwmmx2_mbuiltin): Likewise.
8950 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
8951 struct builtin_description.
8952
8953 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8954
8955 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
8956 (struct builtin_description): Change type of mask to unsigned
8957 long.
8958 * config/arm/arm-protos.h (insn_flags): Declare as type
8959 arm_feature_set.
8960 (tune_flags): Likewise.
8961 * config/arm/arm.c (feature_count): New.
8962 (insn_flags): Define as type arm_feature_set.
8963 (tune_flags): Likewise.
8964 (struct processors): Define field flags as type arm_feature_set.
8965 (all_cores): Update for change to struct processors.
8966 (all_architectures): Likewise.
8967 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
8968 macros.
8969 (arm_option_override_internal): Likewise.
8970 (arm_option_override): Likewise.
8971
8972 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
8973 Jiong Wang <jiong.wang@arm.com>
8974
8975 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
8976 tls size for tiny, small, large memory model.
8977 (aarch64_load_symref_appropriately): Support new symbol types.
8978 (aarch64_expand_mov_immediate): Likewise.
8979 (aarch64_print_operand): Likewise.
8980 (aarch64_classify_tls_symbol): Likewise.
8981 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
8982 (aarch64_symbol_type): Likewise.
8983 * config/aarch64/aarch64.md (tlsle): Deleted.
8984 (tlsle12_<mode>): New define_insn.
8985 (tlsle24_<mode>): Likewise.
8986 (tlsle32_<mode>): Likewise.
8987 (tlsle48_<mode>): Likewise.
8988 * doc/sourcebuild.texi (AArch64-specific attributes): Document
8989 "aarch64_tlsle32".
8990
8991 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
8992
8993 * config/arm/arm-protos.h (FL_NONE): New.
8994 (FL_ANY): New.
8995 (arm_feature_set): New.
8996 (ARM_FSET_MAKE): New.
8997 (ARM_FSET_MAKE_CPU1): New.
8998 (ARM_FSET_MAKE_CPU2): New.
8999 (ARM_FSET_CPU1): New.
9000 (ARM_FSET_CPU2): New.
9001 (ARM_FSET_EMPTY): New.
9002 (ARM_FSET_ANY): New.
9003 (ARM_FSET_HAS_CPU1): New.
9004 (ARM_FSET_HAS_CPU2): New.
9005 (ARM_FSET_HAS_CPU): New.
9006 (ARM_FSET_ADD_CPU1): New.
9007 (ARM_FSET_ADD_CPU2): New.
9008 (ARM_FSET_DEL_CPU1): New.
9009 (ARM_FSET_DEL_CPU2): New.
9010 (ARM_FSET_UNION): New.
9011 (ARM_FSET_INTER): New.
9012 (ARM_FSET_XOR): New.
9013 (ARM_FSET_EXCLUDE): New.
9014 (AFM_FSET_IS_EMPTY): New.
9015 (ARM_FSET_CPU_SUBSET): New.
9016
9017 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9018
9019 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9020 SYMBOL_TLSLE to SYMBOL_TLSLE24.
9021 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9022 Likewise.
9023 (aarch64_expand_mov_immediate): Likewise.
9024 (aarch64_print_operand): Likewise.
9025 (aarch64_classify_symbol): Likewise.
9026
9027 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9028
9029 * config/aarch64/aarch64.opt (mtls-size): New entry.
9030 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9031 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9032 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9033
9034 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9035
9036 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9037 ARM_CORE entry. Fix some white-space.
9038 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9039 ARM_CORE definition.
9040
9041 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9042
9043 * fold-const.c (fold_binary_loc) : Move Optimize
9044 root(x)*root(y) as root(x*y) to match.pd.
9045 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9046 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9047 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9048 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9049 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9050 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9051 (mult (exps:s @0) (exps:s @1)) : New simplifier.
9052 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9053 (rdiv @0 (exps:s @1)) : New simplifier.
9054
9055 2015-08-25 Joseph Myers <joseph@codesourcery.com>
9056
9057 * gcc.c (driver::finalize): Only assign to extra_specs if
9058 [EXTRA_SPECS].
9059
9060 2015-08-25 Marek Polacek <polacek@redhat.com>
9061
9062 PR middle-end/67330
9063 * varasm.c (declare_weak): Return after giving an error.
9064
9065 2015-08-25 David Malcolm <dmalcolm@redhat.com>
9066
9067 * gcc-main.c (main): Add params to driver ctor.
9068 * gcc.c (class env_manager): New.
9069 (env): New global.
9070 (env_manager::init): New.
9071 (env_manager::get): New.
9072 (env_manager::xput): New.
9073 (env_manager::restore): New.
9074 Poison getenv and putenv.
9075 (DEFAULT_TARGET_SYSTEM_ROOT): New.
9076 (target_system_root): Update initialization to use
9077 DEFAULT_TARGET_SYSTEM_ROOT.
9078 (struct spec_list): Add field "default_ptr".
9079 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9080 (init_spec): Likewise.
9081 (set_spec): Clear field "default_ptr".
9082 (read_specs): Free "spec" and "buffer".
9083 (xputenv): Reimplement in terms of env_manager.
9084 (process_command): Replace ::getenv calls with calls to the
9085 env_manager singleton.
9086 (process_brace_body): Free string in three places.
9087 (driver::driver): New.
9088 (driver::~driver): New.
9089 (used_arg): Convert from a function to...
9090 (class used_arg_t): ...this class, and...
9091 (used_arg): ...this new global instance.
9092 (used_arg_t::finalize): New function.
9093 (getenv_spec_function): Add "const" to local "value". Replace
9094 ::getenv call with call to the env_manager singleton.
9095 (path_prefix_reset): New function.
9096 (driver::finalize): New function.
9097 * gcc.h (driver::driver): New.
9098 (driver::~driver): New.
9099 (driver::finalize): New.
9100
9101 2015-08-25 Nathan Sidwell <nathan@acm.org>
9102
9103 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9104 target doesn't have one.
9105
9106 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9107
9108 PR target/67346
9109 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9110
9111 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9112
9113 PR target/67344
9114 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9115 a define_insn, remove second alternative.
9116
9117 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
9118 Joseph Myers <joseph@codesourcery.com>
9119
9120 * gcc.c (struct switchstr): Expand comment.
9121
9122 2015-08-25 Nathan Sidwell <nathan@acm.org>
9123
9124 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9125 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9126
9127 2015-08-25 Richard Biener <rguenther@suse.de>
9128
9129 PR middle-end/67306
9130 * genmatch.c (expr::gen_transform): Verify the result of
9131 builtin_decl_implicit.
9132 (dt_simplify::gen_1): Likewise.
9133
9134 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
9135
9136 * config/arm/constraints.md: Also list Cs and US ARM-specific
9137 constraints as used.
9138
9139 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
9140
9141 PR target/66609
9142 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9143 UNSPEC_PCREL.
9144 (nonpic_symbol_mentioned_p): Likewise.
9145 (sh_delegitimize_address): Likewise.
9146 (sh_function_ok_for_sibcall): Take into account weak symbols.
9147 (sh_expand_sym_label2reg): New.
9148 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9149 * config/sh/sh.md (UNSPEC_PCREL): New enum.
9150 (call_pcrel): Use sh_expand_sym_label2reg.
9151 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9152 (symPCREL_label2reg) New expand.
9153
9154 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9155
9156 * graphite-poly.c: Change type of region from void* to sese.
9157 * graphite-poly.h (struct scop): Changing the type of scop::region
9158 from void* to sese. Change accessor macro accordingly.
9159 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9160
9161 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9162
9163 * graphite-scop-detection.c (stmt_simple_for_scop_p):
9164 Constrain only on INTEGER_TYPE.
9165
9166 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9167
9168 PR target/67211
9169 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9170 -mefficient-unaligned-vsx on ISA 2.7.
9171
9172 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9173 option to a masked option.
9174
9175 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9176 logic for -mefficient-unaligned-vsx so that it is set via an arch
9177 ISA option, instead of being set if -mtune=power8 is set. Move
9178 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9179 near other default option handling.
9180
9181 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9182
9183 * genflags.c (gen_macro): Delete.
9184 (gen_proto): Don't create GEN.*CALL.* macros.
9185 * gensupport.h (get_file_location): Declare.
9186 * gensupport.c (rtx_locs): New variable.
9187 (read_md_rtx): Record rtx locations.
9188 (get_file_location): New function.
9189 * target-insns.def (call, call_pop, call_value, call_value_pop)
9190 (sibcall, sibcall_value): New patterns.
9191 * gentarget-def.c (parse_argument): New function.
9192 (def_target_insn): Use it. Handle optional operands. Raise an
9193 error if an .md pattern has the wrong number of operands for the
9194 pattern name. Remove the names of unused operands from the prototype.
9195 * builtins.c (expand_builtin_apply): Use targetm functions
9196 instead of HAVE_call_value and GEN_CALL_VALUE.
9197 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
9198 and sibcall_value_pop.
9199 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9200 of GEN_CALL.
9201 * config/alpha/alpha.md (untyped_call): Likewise.
9202 * config/iq2000/iq2000.md (untyped_call): Likewise.
9203 * config/m68k/m68k.md (untyped_call): Likewise.
9204 * config/mips/mips.md (untyped_call): Likewise.
9205 * config/pa/pa.md (untyped_call): Likewise.
9206 * config/rs6000/rs6000.md (untyped_call): Likewise.
9207 * config/sparc/sparc.md (untyped_call): Likewise.
9208 * config/tilegx/tilegx.md (untyped_call): Likewise.
9209 * config/tilepro/tilepro.md (untyped_call): Likewise.
9210 * config/visium/visium.md (untyped_call): Likewise.
9211 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9212 gen_call_value instead of GEN_CALL_VALUE.
9213 * config/arm/arm.md (untyped_call): Likewise.
9214 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9215 GEN_CALL.
9216
9217 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9218
9219 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9220 (have_cbranchcc4): New variable.
9221 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9222 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9223 (if_convert): Initialize have_cbranchcc4.
9224
9225 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9226
9227 * builtins.c (expand_cmpstrn): Rename to...
9228 (expand_cmpstrn_or_cmpmem): ...this.
9229 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9230 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9231 Remove mode argument.
9232 (expand_builtin): Update accordingly.
9233
9234 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9235
9236 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9237 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
9238 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9239 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9240 Add predicates for operands 0 and 3.
9241 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9242 operand.
9243 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9244 immediate_operand to nonmemory_operand.
9245
9246 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9247
9248 * df-scan.c (df_insn_info_init_fields): New function, split out
9249 from...
9250 (df_insn_create_insn_record): ...here.
9251 (df_insn_info_free_fields): New function, split out from...
9252 (df_insn_info_delete): ...here.
9253 (df_insn_rescan): Use the new functions instead of freeing and
9254 reallocating the df_insn_info.
9255
9256 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9257
9258 * doc/install.texi (Binaries): Remove links no longer valid.
9259
9260 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
9261
9262 * config/nvptx/mkoffload.c (process): Replace
9263 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
9264
9265 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
9266
9267 PR target/67329
9268 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
9269
9270 2015-08-24 Renlin Li <renlin.li@arm.com>
9271
9272 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
9273 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
9274 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
9275 * config/arm/constraints.md ("j"): Add check for high code.
9276
9277 2015-08-24 Tom de Vries <tom@codesourcery.com>
9278
9279 PR tree-optimization/65468
9280 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
9281 chunk_size is one.
9282
9283 2015-08-24 Nathan Sidwell <nathan@acm.org>
9284
9285 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
9286 change to nvptx_type_from_mode call. Use arg_promotion for both
9287 split and non-split args.
9288
9289 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9290
9291 * target-insns.def (movstr): New pattern.
9292 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
9293 (expand_movstr): Use targetm rather than HAVE_movstr/
9294 CODE_FOR_movstr.
9295
9296 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9297
9298 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
9299 cast syntax.
9300
9301 2015-08-24 Andrew Pinski <apinski@cavium.com>
9302
9303 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
9304 AARCH64_EXTRA_TUNING_OPTION.
9305 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
9306 New enum.
9307 (aarch64_extra_tuning_flags): Base the shifted value on the index
9308 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
9309 * config/aarch64/aarch64.c: Remove the last argument to
9310 AARCH64_EXTRA_TUNING_OPTION.
9311
9312 2015-08-23 Nathan Sidwell <nathan@acm.org>
9313
9314 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
9315 decls.
9316 (nvptx_declare_function_name): Insert formatting tabs for
9317 consistency.
9318
9319 2015-08-23 Tom de Vries <tom@codesourcery.com>
9320
9321 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
9322 parm_decl, rather than generating a dummy default def in cfun.
9323 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
9324 ssa_name from cfun and child_fn do not share a stmt as def stmt.
9325 (move_stmt_op): Handle PARM_DECl.
9326 (gather_ssa_name_hash_map_from): New function.
9327 (move_sese_region_to_fn): Add default defs for function params, and add
9328 them to vars_map. Release copied ssa names.
9329 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
9330
9331 2015-08-23 Tom de Vries <tom@codesourcery.com>
9332
9333 * doc/sourcebuild.texi: Rename vect_no_int_max with
9334 vect_no_int_min_max. Update description.
9335
9336 2015-08-22 Andrew Pinski <apinski@cavium.com>
9337
9338 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
9339 * config/aarch64/aarch64-protos.h
9340 (aarch64_fusion_pairs_index): New enum.
9341 (aarch64_fusion_pairs): Base the shifted value on the index instead
9342 Rewrite AARCH64_FUSE_ALL to be based on the end index.
9343 of the argument to AARCH64_FUSION_PAIR.
9344 * config/aarch64/aarch64.c: Remove the last argument to
9345 AARCH64_FUSION_PAIR.
9346
9347 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
9348
9349 * dominance.c (new_zero_array): Define.
9350 (dom_info): Redefine as class with proper encapsulation.
9351 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
9352 Add new members.
9353 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
9354 allocations/deallocations. Pass function as parameter (instead of
9355 using cfun).
9356 (dom_info::get_idom): Define accessor method.
9357 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
9358 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
9359 (calculate_dominance_info): Adjust to use dom_info class.
9360 (verify_dominators): Likewise.
9361
9362 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
9363
9364 * print-rtl.c (print_rtx): Check the correct range for
9365 flag_dump_unnumbered_links to behave as documented.
9366
9367 PR rtl-optimization/67227
9368 PR rtl-optimization/64164
9369 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
9370 (nonoverlapping_memrefs_p): Test offsets and sizes when given
9371 identical gimple_reg exprs.
9372
9373 2015-08-21 Nathan Sidwell <nathan@acm.org>
9374
9375 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
9376 expansion.
9377 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
9378 crtl->stack_alignment_needed to determine alignment.
9379 (nvptx_get_drap_rtx): New.
9380 (TARGET_GET_DRAP_RTX): Override.
9381 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
9382
9383 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9384
9385 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
9386
9387 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9388
9389 * configure.ac: Remove uwin* cases.
9390 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
9391 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
9392 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
9393 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
9394 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
9395 i[34567]86-*-uwin*, powerpc-*-beos*.
9396
9397 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
9398
9399 * gencodes.c (gencodes): Print the comma for the preceding
9400 enum value rather than the current one. Use aliased enum values
9401 rather than #defines for compiled-out patterns.
9402 (main): Update accordingly. Replace LAST_INSN_CODE with
9403 NUM_INSN_CODES.
9404 * lra.c (insn_code_data): Update accordingly.
9405 (finish_insn_code_data_once, get_static_insn_data): Likewise.
9406 * recog.h (target_recog): Likewise.
9407 (preprocess_insn_constraints): Change parameter to unsigned int.
9408 * recog.c (preprocess_insn_constraints): Likewise.
9409 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
9410 * tree-vect-stmts.c (vectorizable_operation): Simplify.
9411
9412 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9413
9414 PR rtl-optimization/61657
9415 * loop-iv.c (iv_number_of_iterations): Declare up and down as
9416 unsigned. Remove superflous uint64_t cast.
9417
9418 2014-08-21 Felix Yang <felix.yang@huawei.com>
9419 Jiji Jiang <jiangjiji@huawei.com>
9420
9421 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
9422 argument and get builtin function code directly from CALL.
9423 (gimple_stringop_fixed_value): Modified accordingly.
9424 (gimple_stringops_transform, gimple_stringops_values_to_profile):
9425 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
9426
9427 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
9428
9429 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
9430
9431 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9432
9433 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
9434 to match.pd.
9435 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
9436 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
9437 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
9438 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
9439 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
9440 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
9441 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
9442 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
9443 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
9444 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
9445
9446 * match.pd (SIN ) : New Operator.
9447 (TAN) : New Operator.
9448 (mult (SQRT@1 @0) @1) : New simplifier.
9449 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
9450 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9451 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9452 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
9453 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
9454 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
9455 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
9456 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
9457 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
9458 (rdiv @0 (POW:s @1 @2)) : New simplifier.
9459
9460 2015-08-21 Bin Cheng <bin.cheng@arm.com>
9461
9462 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
9463 loop if EXPR is simplified to const value.
9464
9465 2015-08-21 Yury Gribov <y.gribov@samsung.com>
9466
9467 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
9468 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
9469
9470 2015-08-21 Richard Biener <rguenther@suse.de>
9471
9472 PR middle-end/67285
9473 * gimple-fold.c (replace_stmt_with_simplification): Assert
9474 seq is empty when replacing a call with itself but different
9475 arguments.
9476 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
9477 a call require that it is const.
9478
9479 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9480
9481 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
9482 * builtins.c (get_object_alignment_2): Adjust.
9483 * varasm.c (align_variable): Likewise.
9484 (get_variable_align): Likewise.
9485 (build_constant_desc): Likewise.
9486 (force_const_mem): Likewise.
9487 * doc/tm.texi.in: Likewise.
9488 * doc/tm.texi: Regenerate.
9489
9490 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9491
9492 * genconfig.c (main): Always define HAVE_cc0.
9493 * recog.c (rest_of_handle_peephole2): Adjust.
9494
9495 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9496
9497 * reorg.c (relax_delay_slots): Don't use #if to check value of
9498 HAVE_cc0.
9499
9500 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9501
9502 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
9503 * targhooks.c (default_have_conditional_execution): Adjust.
9504
9505 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
9506
9507 * rtl.h (rtvec_all_equal_p): Declare.
9508 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
9509 * rtl.c (rtvec_all_equal_p): New function.
9510 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
9511 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
9512 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
9513 * config/arm/arm.c (neon_vdup_constant): Likewise.
9514 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
9515 * config/tilegx/constraints.md (W, Y): Likewise.
9516 * config/tilepro/constraints.md (W, Y): Likewise.
9517 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
9518 (classify_immediate): Use unwrap_const_vec_duplicate.
9519 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
9520 (reg_or_v2s8bit_operand): Likewise.
9521 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
9522 (reg_or_v4s8bit_operand): Likewise.
9523
9524 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9525
9526 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
9527 (vec_shasigma_be): New #define.
9528 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
9529 (VPMSUMH): Likewise.
9530 (VPMSUMW): Likewise.
9531 (VPMSUMD): Likewise.
9532 (VPMSUM): New BU_P8V_OVERLOAD_2.
9533 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
9534 entries for VEC_MADD and VEC_VPMSUM.
9535
9536 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
9537
9538 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
9539 Multiply argument avr_n_flash by 64 to match unit of "KiB".
9540 (avr_pgm_check_var_decl): Same.
9541
9542 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
9543
9544 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
9545 initialization of HFmode scalar type (float16_t) to...
9546 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
9547 code.
9548
9549 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
9550
9551 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
9552 having an -mfp16-format.
9553
9554 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
9555
9556 * config/i386/predicates.md (vector_all_ones_operand): Use
9557 CONSTM1_RTX to simplify definition.
9558
9559 2015-08-20 Richard Biener <rguenther@suse.de>
9560
9561 * toplev.c (compile_file): Remove loop calling late_global_decl
9562 on all symbols.
9563 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
9564 on decls we assembled.
9565
9566 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
9567
9568 * common/config/aarch64/aarch64-common.c
9569 (AARCH64_CPU_NAME_LENGTH): Delete.
9570 (aarch64_option_extension): New.
9571 (all_extensions): Likewise.
9572 (processor_name_to_arch): Likewise.
9573 (arch_to_arch_name): Likewise.
9574 (all_cores): New.
9575 (all_architectures): Likewise.
9576 (aarch64_get_extension_string_for_isa_flags): Likewise.
9577 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
9578 architecture names.
9579 * config/aarch64/aarch64-protos.h
9580 (aarch64_get_extension_string_for_isa_flags): New.
9581 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
9582 (aarch64_option_print): Get the string to print from
9583 aarch64_get_extension_string_for_isa_flags.
9584 (aarch64_declare_function_name): Likewise.
9585 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
9586 (MCPU_TO_MARCH_SPEC): This.
9587 (ASM_CPU_SPEC): Use it.
9588 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
9589 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
9590 (EXTRA_SPEC_FUNCTIONS): Use it.
9591
9592 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
9593
9594 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
9595 expansion when !ISA_HAS_LWL_LWR.
9596 (mips_block_move_straight): Update the size of elements copied to
9597 account for alignment when !ISA_HAS_LWL_LWR.
9598 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
9599
9600 2015-08-19 Jiong Wang <jiong.wang@arm.com>
9601
9602 * expr.c (expand_expr_real_2): Check gimple statement during
9603 LSHIFT_EXPR expand.
9604
9605 2015-08-19 Magnus Granberg <zorry@gentoo.org>
9606
9607 * common.opt (fstack-protector): Initialize to -1.
9608 (fstack-protector-all): Likewise.
9609 (fstack-protector-strong): Likewise.
9610 (fstack-protector-explicit): Likewise.
9611 * configure.ac: Add --enable-default-ssp.
9612 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
9613 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
9614 -1.
9615 * doc/install.texi: Document --enable-default-ssp.
9616 * config.in: Regenerated.
9617 * configure: Likewise.
9618
9619 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
9620
9621 PR rtl-optimization/64164
9622 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
9623 (parm_in_stack_slot_p): ... this. Disregard mode, what
9624 matters is whether the parm will live in a pseudo or a stack
9625 slot.
9626 (expand_one_ssa_partition): Deal with params without a default
9627 def. Disregard mode.
9628 * cfgexpand.h: Renamed function declaration.
9629 * tree-ssa-coalesce.c: Adjust.
9630 * function.c (split_complex_args): Allocate stack slot for
9631 unassigned parms before splitting.
9632 (parm_in_unassigned_mem_p): New. Use it instead of
9633 parm_maybe_byref_p throughout this file.
9634 (assign_parm_setup_block): Use it. Accept pseudos in the
9635 expand-assigned rtl.
9636 (assign_parm_setup_reg): Drop BLKmode requirement.
9637 (assign_parm_setup_stack): Allocate and fill in the address of
9638 unassigned MEM parms.
9639
9640 2015-08-19 David Sherwood <david.sherwood@arm.com>
9641
9642 * genmodes.c (emit_mode_unit_size_inline): New function.
9643 (emit_mode_unit_precision_inline): New function.
9644 (emit_insn_modes_h): Emit new #define. Emit new functions.
9645 (emit_mode_unit_size): New function.
9646 (emit_mode_unit_precision): New function.
9647 (emit_mode_adjustments): Add mode_unit_size adjustments.
9648 (emit_insn_modes_c): Emit new arrays.
9649 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
9650 use new inline methods.
9651
9652 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9653
9654 * config/aarch64/aarch64.c (bit_count): Delete prototype
9655 and definition.
9656 (aarch64_print_operand): Use popcount_hwi instead of the above.
9657
9658 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9659
9660 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
9661 comment.
9662
9663 2015-08-19 Marek Polacek <polacek@redhat.com>
9664
9665 PR middle-end/67133
9666 * gimple-ssa-isolate-paths.c
9667 (insert_trap_and_remove_trailing_statements): Rename to ...
9668 (insert_trap): ... this. Don't remove trailing statements; split
9669 block instead.
9670 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
9671
9672 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
9673
9674 PR other/67042
9675 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
9676 conditionalize the whole on __GNUC__. Add fallback code
9677 depending neither on undefined nor implementation-defined behaviour.
9678
9679 2015-08-19 Jiong Wang <jiong.wang@arm.com>
9680
9681 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
9682 whitespaces with tab.
9683
9684 2015-08-19 Florian Weimer <fweimer@redhat.com>
9685
9686 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
9687 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
9688 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
9689 Move Name_Ids instantiation to the Prj.Proc package, to avoid
9690 trampolines.
9691
9692 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9693
9694 * config/arm/arm.c (bounds_check): Use %wd print format
9695 for HOST_WIDE_INT arguments.
9696
9697 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
9698
9699 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
9700 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
9701 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
9702 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
9703 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
9704 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
9705 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
9706 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
9707 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
9708 typedefs.
9709
9710 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
9711
9712 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
9713 function.c, graphite-scop-detection.c, haifa-sched.c,
9714 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
9715 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
9716 varasm.c: Remove typedefs of structs.
9717
9718 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9719
9720 * config/rs6000/altivec.h (vec_adde): New define.
9721 (vec_addec): Likewise.
9722 (vec_double): Likewise.
9723 (vec_bperm): Likewise.
9724 (vec_gb): Likewise.
9725 * config/rs6000/rs6000-builtin.def (ADDE): New
9726 BU_ALTIVEC_OVERLOAD_3.
9727 (ADDEC): Likewise.
9728 (DOUBLE): New BU_VSX_OVERLOAD_1.
9729 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
9730 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
9731 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
9732 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
9733 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
9734 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
9735 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
9736 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
9737 and P8V_BUILTIN_VEC_VBPERMQ.
9738
9739 2015-08-18 Jason Merrill <jason@redhat.com>
9740
9741 * print-tree.c (print_node): Handle TREE_BINFO.
9742
9743 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9744
9745 PR middle-end/36757
9746 * builtins.c (expand_builtin_signbit): Add asserts to make sure
9747 we can expand BUILT_IN_SIGNBIT inline.
9748 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
9749 * doc/extend.texi: Document the type-generic __builtin_signbit.
9750
9751 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
9752
9753 PR rtl-optimization/67218
9754 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
9755 (simplify_unary_operation_1): Use it.
9756
9757 2015-08-18 Marek Polacek <polacek@redhat.com>
9758
9759 PR middle-end/67222
9760 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
9761 if the call isn't valid.
9762 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
9763 gimple_call_builtin_p.
9764 (call_may_clobber_ref_p_1): Likewise.
9765 (stmt_kills_ref_p): Likewise.
9766
9767 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
9768
9769 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
9770 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
9771 (mips_hard_regno_scratch_ok): Likewise.
9772 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
9773 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
9774
9775 2015-08-18 Bin Cheng <bin.cheng@arm.com>
9776
9777 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
9778 (determine_value_range): Call refine_value_range_using_guard for
9779 each loop initial condition to improve value range.
9780
9781 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
9782
9783 * config/i386/i386.c: Remove include of fibheap.h.
9784
9785 2015-08-17 Richard Biener <rguenther@suse.de>
9786
9787 PR tree-optimization/67221
9788 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
9789 (sccvn_dom_walker::before_dom_children): Mark backedges of
9790 non-executable blocks as not executable.
9791
9792 2015-08-17 David Sherwood <david.sherwood@arm.com>
9793
9794 * config/arm/arm.c (neon_element_bits): Replace call to
9795 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
9796 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
9797 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
9798 (neon_vdup_lane<mode>): Likewise.
9799 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
9800 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
9801 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
9802 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
9803 * config/spu/spu.c (arith_immediate_p): Likewise.
9804 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9805 * expr.c (expand_expr_real_2): Likewise.
9806 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
9807 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9808 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
9809 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
9810 New variable.
9811 * fold-const.c (fold_binary_loc): Replace call to
9812 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
9813 GET_MODE_UNIT_PRECISION (m).
9814
9815 2015-08-17 Mike Stump <mikestump@comcast.net>
9816
9817 * config/arm/arm.c (arm_block_move_unaligned_straight):
9818 Emit normal move instead of unaligned load when source or destination
9819 are appropriately aligned.
9820
9821 2015-08-17 Richard Biener <rguenther@suse.de>
9822 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9823
9824 PR middle-end/16107
9825 * match.pd (div (coss (op @0) : New simplifier.
9826
9827 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
9828
9829 PR rtl-optimization/64164
9830 PR bootstrap/66978
9831 PR middle-end/66983
9832 PR rtl-optimization/67000
9833 PR middle-end/67034
9834 PR middle-end/67035
9835 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9836 * tree-ssa-copyrename.c: Removed.
9837 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9838 -ftree-coalesce-vars.
9839 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9840 * common.opt (ftree-copyrename): Ignore.
9841 (ftree-coalesce-inlined-vars): Likewise.
9842 * doc/invoke.texi: Remove the ignored options above.
9843 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9844 * tree-ssa-coalesce.h: ... here.
9845 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9846 headers required by it.
9847 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9848 across variables when flag_tree_coalesce_vars. Check register
9849 use and promoted modes to allow coalescing. Do not coalesce
9850 maybe-byref parms with SSA_NAMEs of other variables, or
9851 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
9852 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9853 with its member functions to tree-ssa-coalesce.c.
9854 (var_map_base_init): Likewise. Renamed to
9855 compute_samebase_partition_bases.
9856 (partition_view_normal): Drop want_bases parameter.
9857 (partition_view_bitmap): Likewise.
9858 * tree-ssa-live.h: Adjust declarations.
9859 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
9860 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9861 default defs at the entry point.
9862 (dump_part_var_map): New.
9863 (compute_optimized_partition_bases): New, called by...
9864 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9865 of compute_samebase_partition_bases. Adjust.
9866 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9867 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
9868 (ssa_default_def_partition): New.
9869 (get_rtl_for_parm_ssa_default_def): New.
9870 (align_local_variable, add_stack_var): Support anonymous SSA
9871 names.
9872 (defer_stack_allocation): Likewise. Declare earlier.
9873 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9874 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9875 Do no record deferred-allocation marker in
9876 SA.partition_to_pseudo.
9877 (expand_stack_vars): Adjust check for the marker in it.
9878 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9879 redundant MEM attr setting.
9880 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9881 from...
9882 (expand_one_stack_var): ... this. New wrapper to check and
9883 skip already expanded SSA partitions.
9884 (record_alignment_for_reg_var): New, factored out of...
9885 (expand_one_var): ... this.
9886 (expand_one_ssa_partition): New.
9887 (adjust_one_expanded_partition_var): New.
9888 (expand_one_register_var): Check and skip already expanded SSA
9889 partitions.
9890 (expand_used_vars): Don't create DECLs for anonymous SSA
9891 names. Expand all SSA partitions, then adjust all SSA names.
9892 (pass::execute): Replace the loops that set
9893 SA.partition_to_pseudo from partition leaders and cleared
9894 DECL_RTL for multi-location variables, and that which used to
9895 rename vars and set attrs, with one that clears DECL_RTL and
9896 checks that PARMs and RESULTs default_defs match DECL_RTL.
9897 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9898 * emit-rtl.c: Include stor-layout.h.
9899 (set_reg_attrs_for_parm): Handle NULL decl.
9900 (set_reg_attrs_for_decl_rtl): Take mode from expression if
9901 it's not a DECL.
9902 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
9903 rather than its possibly-NULL DECL.
9904 * explow.c (promote_ssa_mode): New.
9905 * explow.h (promote_ssa_mode): Declare.
9906 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9907 (read_complex_part): Export.
9908 * expr.h (read_complex_part): Declare.
9909 * cfgexpand.h (parm_maybe_byref_p): Declare.
9910 * function.c: Include cfgexpand.h.
9911 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9912 (use_register_for_parm_decl): Wrapper for the above to
9913 special-case the result_ptr.
9914 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9915 (split_complex_args): Take assign_parm_data_all argument.
9916 Pass it to rtl_for_parm. Set up rtl and context for split
9917 args. Reset complex parm before fetching its default decl
9918 rtl.
9919 (assign_parms_unsplit_complex): Use the default-def complex
9920 parm rtl if it matches the components.
9921 (assign_parms_augmented_arg_list): Adjust.
9922 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9923 multiple locations. Recognize split complex args.
9924 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9925 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9926 (assign_parm_setup_block): Prefer SSA-assigned location, and
9927 fill in its address if the memory location of a maybe-byref
9928 parm was not assigned by cfgexpand.
9929 (assign_parm_setup_reg): Likewise. Adjust its mode as
9930 needed. Use entry_parm for equiv if stack_parm is NULL. Make
9931 sure passed_pointer parms don't need conversion. Copy address
9932 or value as needed.
9933 (assign_parm_setup_stack): Prefer SSA-assigned location.
9934 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9935 rtl before testing for pointer bounds. Special-case result_ptr.
9936 (expand_function_start): Maybe reset DECL_RTL of result.
9937 Prefer SSA-assigned location for result and static chain.
9938 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
9939 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
9940 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9941 anonymous SSA names. Use promote_ssa_mode.
9942 (get_temp_reg): Likewise.
9943 (remove_ssa_form): Adjust.
9944 * stor-layout.c (layout_decl): Don't set mem attributes of
9945 non-MEMs.
9946 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9947 and get its reg_usage for reg invalidation.
9948 (compute_bb_dataflow): Pass it insn.
9949 (emit_notes_in_bb): Likewise.
9950
9951 2015-08-14 Marek Polacek <polacek@redhat.com>
9952
9953 * tree-core.h (tree_base): Fix typo.
9954
9955 2015-08-14 Marek Polacek <polacek@redhat.com>
9956
9957 PR middle-end/67133
9958 * gimple.c (infer_nonnull_range_by_attribute): Check that the
9959 nonnull argument position is not outside function arguments.
9960
9961 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
9962
9963 PR target/67143
9964 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
9965 'lconst_atomic' with 'const_atomic'.
9966 (atomic_fetch_<optab><mode>): Likewise.
9967 (atomic_<optab>_fetch<mode>): Likewise.
9968 * config/aarch64/iterators.md (lconst-atomic): Move below
9969 'const_atomic'.
9970 (const_atomic): New.
9971
9972 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
9973 Bernd Schmidt <bernds@codesourcery.com>
9974
9975 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
9976 debug options.
9977 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
9978 (DWARF2_DEBUGGING_INFO): Don't define.
9979 * debug.h (dwarf2_lineno_debug_hooks): Declare.
9980 * toplev.c (process_options): Add a case for it.
9981 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
9982 (dwarf2out_init): Skip most initializations if
9983 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
9984 case.
9985 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
9986 DWARF2_LINENO_DEBUGGING_INFO.
9987 * opts.c (set_debug_level): Likewise.
9988
9989 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
9990
9991 * config/arm/types.md (is_neon_type): Add missing types.
9992
9993 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9994
9995 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
9996 for skylake.
9997 * config/i386/i386.c (PTA_SKYLAKE): New macros.
9998 (processor_alias_table): Add skylake description.
9999 (enum processor_model): Add skylake processor.
10000 (arch_names_table): Add skylake record.
10001 * doc/invoke.texi: Add skylake item.
10002
10003 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
10004
10005 * ira-int.h: Include recog.h.
10006 * ira-build.c: Don't include recog.h.
10007 * ira-color.c: Likewise.
10008 * ira-conflicts.c: Likewise.
10009 * ira-costs.c: Likewise.
10010 * ira-emit.c: Likewise.
10011 * ira-lives.c: Likewise.
10012 * ira.c: Likewise.
10013 * sched-deps.c: Likewise.
10014 * sel-sched.c: Likewise.
10015 * target-globals.c: Likewise.
10016
10017 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
10018
10019 PR bootstrap/55035
10020 * reload1.c (elimination_costs_in_insn): Make it obvious to the
10021 compiler that the n_dups and n_operands loop bounds are invariant.
10022
10023 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10024
10025 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10026 expressions in A and B.
10027
10028 2015-08-13 Richard Biener <rguenther@suse.de>
10029
10030 * tree.c (nonnull_arg_p): Move from ...
10031 * tree-vrp.c (nonnull_arg_p): ... here.
10032 * tree.h (nonnull_arg_p): Declare.
10033 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10034 here, register ptr != 0 for nonnull_arg_p pointer arguments.
10035 Properly initialize static chain and by-reference result pointer.
10036 (run_scc_vn): Adjust.
10037
10038 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10039
10040 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10041 TUNE_I6400.
10042
10043 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10044
10045 * config/aarch64/aarch64-protos.h
10046 (aarch64_gen_atomic_cas): Declare.
10047 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10048 Choose appropriate instruction pattern for the target.
10049 (aarch64_gen_atomic_cas): New.
10050 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10051 (atomic_compare_and_swap<mode>_1): Rename to
10052 aarch64_compare_and_swap<mode>. Fix some indentation.
10053 (aarch64_compare_and_swap<mode>_lse): New.
10054 (aarch64_atomic_cas<mode>): New.
10055
10056 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10057
10058 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10059 (TARGET_LSE): New.
10060
10061 2015-08-13 Richard Biener <rguenther@suse.de>
10062
10063 PR tree-optimization/67191
10064 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10065 assert we value-numbered last stmts operand because it can validly
10066 trigger for unreachable code.
10067
10068 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10069
10070 PR rtl-optimization/67103
10071 * ifcvt.c (noce_try_store_flag_constants): Move
10072 x = (-(test != 0) & (b - a)) + a transformation to...
10073 (noce_try_cmove): ... Here. Try it if normal conditional
10074 move fails.
10075
10076 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10077
10078 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10079 pseudo-processors.
10080 * config/mips/mips.md (processor): Remove w32 and w64.
10081
10082 2015-08-13 Richard Biener <rguenther@suse.de>
10083
10084 PR tree-optimization/66502
10085 PR tree-optimization/67167
10086 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10087 backedge arguments.
10088 (vn_phi_lookup): Adjust.
10089 (vn_phi_insert): Likewise.
10090 (visit_phi): Prefer to value-number to another PHI node
10091 over value-numbering to a PHI argument.
10092 (init_scc_vn): Mark DFS back edges.
10093
10094 2015-08-13 Richard Biener <rguenther@suse.de>
10095
10096 * gimple.h (gcall::code_): New constant static member.
10097 (gcond::code_): Likewise.
10098 * gimple.c (gcall::code_): Define.
10099 (gcond::code_): Likewise.
10100 (is_a_helper <const gcond *>): Add.
10101 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10102 and forward to a new gcall overload with less checking and a
10103 cheaper way to access the operand.
10104 (gimple_call_lhs_ptr): Likewise.
10105 (gimple_call_set_lhs): Likewise.
10106 (gimple_call_internal_p): Likewise.
10107 (gimple_call_with_bounds_p): Likewise.
10108 (gimple_call_set_with_bounds): Likewise.
10109 (gimple_call_internal_fn): Likewise.
10110 (gimple_call_set_ctrl_altering): Likewise.
10111 (gimple_call_ctrl_altering_p): Likewise.
10112 (gimple_call_fntype): Likewise.
10113 (gimple_call_fn): Likewise.
10114 (gimple_call_fn_ptr): Likewise.
10115 (gimple_call_set_fndecl): Likewise.
10116 (gimple_call_fndecl): Likewise.
10117 (gimple_call_chain): Likewise.
10118 (gimple_call_num_args): Likewise.
10119 (gimple_call_arg): Likewise.
10120 (gimple_call_arg_ptr): Likewise.
10121 (gimple_call_set_arg): Likewise.
10122 (gimple_call_noreturn_p): Likewise.
10123 (gimple_cond_code): Likewise.
10124 (gimple_cond_lhs): Likewise.
10125 (gimple_cond_rhs): Likewise.
10126 (gimple_has_lhs): Reduce checking.
10127
10128 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10129
10130 PR middle-end/25529
10131 * match.pd (div (mult @0 @1) @1) : New simplifier.
10132
10133 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10134
10135 PR target/67071
10136 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10137 predicate to allow construction of vector constants using the
10138 VSLDOI vector shift instruction.
10139
10140 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10141 declaration.
10142
10143 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10144 the number of bytes to be shifted left and filled in with either
10145 all zero or all one bits.
10146 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10147 methods exist.
10148 (output_vec_const_move): On power8, generate XXLORC to generate
10149 a vector constant with all 1's. Do a split if we need to use a
10150 VSLDOI instruction.
10151
10152 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10153 properly test for the MSB.
10154
10155 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10156 vector constants that can be created with VSLDOI.
10157
10158 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10159
10160 revert:
10161 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10162 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10163 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10164 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10165 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10166 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10167 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10168 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10169 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10170
10171 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
10172
10173 * config/xtensa/constraints.md (define_constraint "Y"): New
10174 constraint.
10175 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10176 * config/xtensa/linux.h (ASM_SPEC): Likewise.
10177 * config/xtensa/predicates.md (move_operand): Match constants
10178 and symbols in the presence of TARGET_AUTO_LITPOOLS.
10179 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10180 immediate references to TLS data.
10181 (xtensa_emit_move_sequence): Don't force constants to memory in
10182 the presence of TARGET_AUTO_LITPOOLS.
10183 (print_operand): Add 'y' format, same as default, but capable of
10184 printing SF mode constants as well.
10185 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10186 (movsf_internal): Add movi pattern that loads literal.
10187 (movsf, movdf): Don't force constants to memory in the presence
10188 of TARGET_AUTO_LITPOOLS.
10189 (movdf_internal): Add 'Y' constraint.
10190 * config/xtensa/xtensa.opt (mauto-litpools): New option.
10191 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10192
10193 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10194
10195 * config/arm/arm-fpus.def: Replace booleans with feature flags.
10196 Update comment.
10197 * config/arm/arm.c (ARM_FPU): Update macro.
10198 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10199 (TARGET_FP16): Likewise.
10200 (TARGET_CRYPTO): Likewise.
10201 (TARGET_NEON): Likewise.
10202 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
10203 field features.
10204
10205 2015-08-12 Tom de Vries <tom@codesourcery.com>
10206
10207 PR other/67092
10208 PR other/67098
10209 * doc/install.texi: Remove --with_host_libstdcxx item. Update
10210 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10211 accordingly. Mention default for --with-stage1-ldflags.
10212
10213 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10214
10215 * config/arm/arm.h (arm_fpu_feature_set): New.
10216 (ARM_FPU_FSET_HAS): New.
10217 (FPU_FL_NONE): New.
10218 (FPU_FL_NEON): New.
10219 (FPU_FL_FP16): New.
10220 (FPU_FL_CRYPTO): New.
10221
10222 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10223
10224 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10225 after -mcmodel=large -fPIC sorry.
10226
10227 2015-08-12 Richard Biener <rguenther@suse.de>
10228
10229 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10230 comparison operand order and commutative ternary op operand order.
10231 (sccvn_dom_walker::cond_stack): New state to track temporary
10232 expressions.
10233 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10234 no longer valid.
10235 (sccvn_dom_walker::record_cond): Add a single temporary conditional
10236 expression.
10237 (sccvn_dom_walker::record_conds): Add a temporary conditional
10238 expressions and all related expressions also true/false.
10239 (sccvn_dom_walker::before_dom_children): Record temporary
10240 expressions based on the controlling condition of a single
10241 predecessor. When trying to simplify a conditional statement
10242 lookup expressions we might have inserted earlier.
10243
10244 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
10245
10246 PR target/67127
10247 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10248 to ARM core registers.
10249
10250 2015-08-12 Nathan Sidwell <nathan@acm.org>
10251
10252 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
10253 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
10254
10255 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
10256
10257 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
10258 line with comments.
10259 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
10260
10261 2015-08-12 Richard Biener <rguenther@suse.de>
10262
10263 * gimple.h (remove_pointer): New trait.
10264 (GIMPLE_CHECK2): New inline template function.
10265 (gassign::code_): New constant static member.
10266 (is_a_helper<const gassign *>): Add.
10267 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
10268 and forward to a new gassign overload with less checking and a
10269 cheaper way to access the operand.
10270 (gimple_assign_lhs_ptr): Likewise.
10271 (gimple_assign_set_lhs): Likewise.
10272 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
10273 Likewise.
10274 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
10275 Likewise.
10276 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
10277 Likewise.
10278 (gimple_assign_rhs_code): Likewise.
10279 * gimple.c (gassign::code_): Define.
10280
10281 2015-08-12 Richard Biener <rguenther@suse.de>
10282
10283 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10284 Eliminate edges marked as not executable by SCCVN.
10285 * tree-ssa-sccvn.c: Include gimple-iterator.h.
10286 (cond_dom_walker): Rename to sccvn_dom_walker.
10287 (sccvn_dom_walker::before_dom_children): Value-number defs
10288 of all stmts.
10289 (run_scc_vn): Remove loop value-numbering all SSA names.
10290 Drop not visited SSA names to varying.
10291
10292 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10293
10294 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10295 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10296 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10297 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10298 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10299 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10300 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10301 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10302 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10303
10304 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
10305
10306 PR target/66954
10307 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
10308 to enum feature_priority and feature_list.
10309 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
10310 and isa_names_table.
10311
10312 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
10313
10314 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
10315 vect_induction_def.
10316
10317 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10318
10319 PR c/66098
10320 PR c/66711
10321 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
10322 account when deciding what was the command-line status.
10323
10324 2015-08-11 Nathan Sidwell <nathan@acm.org>
10325
10326 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
10327
10328 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
10329 we're not the only contributor to target phi.
10330
10331 2015-08-11 Jiong Wang <jiong.wang@arm.com>
10332
10333 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
10334 FIXED_REG0.
10335
10336 2015-08-11 Tom de Vries <tom@codesourcery.com>
10337
10338 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
10339
10340 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
10341
10342 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
10343 with CPU_SLM.
10344 * config/i386/i386.md (cpu): Remove knl.
10345
10346 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10347
10348 PR libgomp/65742
10349 PR middle-end/66332
10350 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
10351 open-coded sequence.
10352 * omp-low.c (oacc_process_reduction_data): Remove handline of
10353 GOMP_DEVICE_HOST_NONSHM.
10354
10355 * lto-streamer-in.c (lto_input_mode_table): Adjust to
10356 GET_MODE_INNER changes.
10357
10358 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
10359 Ilya Verbin <ilya.verbin@intel.com>
10360
10361 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
10362
10363 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10364
10365 * doc/options.texi (EnabledBy): Document that the argument must be
10366 a Common option.
10367 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
10368 Not enabled by -Wall.
10369 * optc-gen.awk: Give nicer error messages. Detect if the argument
10370 of EnabledBy is not a Common option.
10371 * common.opt (Wnull-dereference): Not enabled by -Wall.
10372 * opt-functions.awk (lang_enabled_by): Nicer error messages.
10373
10374 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
10375
10376 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
10377 model == 0x4f as Broadwell.
10378
10379 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
10380
10381 PR rtl-optimization/67028
10382 * combine.c (simplify_comparison): Fix comment. Rearrange code.
10383 Add test to see if a const_int fits in the new mode.
10384
10385 2015-08-07 DJ Delorie <dj@redhat.com>
10386
10387 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
10388
10389 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
10390
10391 PR rtl-optimization/67029
10392 * ira-color.c: Include "recog.h" before including "ira-int.h".
10393 * target-globals.c: Likewise.
10394 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
10395 adds an alternative_mask argument and use it instead of
10396 preferred_alternatives.
10397 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
10398 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
10399 * sched-deps.c: Include "ira-int.h" after including "ira.h".
10400 (sched_analyze_insn): Update call to
10401 ira_implicitly_set_insn_hard_regs.
10402 * sel-sched.c: Include "ira-int.h" after including "ira.h".
10403 (implicit_clobber_conflict_p): Update call to
10404 ira_implicitly_set_insn_hard_regs.
10405
10406 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10407
10408 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
10409
10410 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
10411
10412 PR target/67002
10413 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
10414 currently_expanding_to_rtl is set.
10415
10416 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
10417
10418 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
10419 * configure: Regenerate.
10420
10421 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10422 Jiong Wang <jiong.wang@arm.com>
10423
10424 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10425 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10426 (REG_CLASS_NAMES): Likewise.
10427 (REG_CLASS_CONTENTS): Likewise.
10428 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10429 (aarch64_register_move_cost): Likewise.
10430 (aarch64_load_symref_appropriately): Invoke the new added pattern if
10431 possible.
10432 * config/aarch64/constraints.md (Uc0): New constraint.
10433
10434 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10435
10436 * config/aarch64/constraints.md (Usf): Add the test of
10437 aarch64_is_noplt_call_p.
10438
10439 2015-08-06 Jiong Wang <jiong.wang@arm.com>
10440
10441 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
10442 declaration.
10443 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
10444 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
10445 (call_symbol): Likewise.
10446
10447 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10448
10449 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
10450 for vectorizing multiplication patterns.
10451 * tree-vectorizer.h: Adjust the number of patterns.
10452
10453 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
10454
10455 * config/i386/sse.md (*vec_concatv2df): Declare added
10456 alternatives as sselog type.
10457
10458 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10459
10460 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
10461 all GPRs.
10462
10463 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10464
10465 * config/s390/s390.c (s390_expand_tbegin): Expand either
10466 tbegin_1_z13 or tbegin_1 depending on VX flag.
10467 * config/s390/s390.md ("tbegin_1_z13"): New expander.
10468
10469 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10470
10471 * config/s390/s390.opt: Clarify description for -mzvector
10472 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
10473 -mzvector.
10474
10475 2015-08-06 Richard Biener <rguenther@suse.de>
10476
10477 * gimple.h (gimple_call_set_fn): Access op member directly.
10478 (gimple_call_chain_ptr): Likewise.
10479 (gimple_call_set_chain): Likewise.
10480 (gimple_cond_lhs_ptr): Likewise.
10481 (gimple_cond_set_lhs): Likewise.
10482 (gimple_cond_rhs_ptr): Likewise.
10483 (gimple_cond_set_rhs): Likewise.
10484 (gimple_cond_true_label): Likewise.
10485 (gimple_cond_set_true_label): Likewise.
10486 (gimple_cond_set_false_label): Likewise.
10487 (gimple_cond_false_label): Likewise.
10488 (gimple_label_label): Likewise.
10489 (gimple_label_set_label): Likewise.
10490 (gimple_goto_set_dest): Likewise.
10491 (gimple_asm_input_op): Likewise.
10492 (gimple_asm_input_op_ptr): Likewise.
10493 (gimple_asm_set_input_op): Likewise.
10494 (gimple_asm_output_op): Likewise.
10495 (gimple_asm_output_op_ptr): Likewise.
10496 (gimple_asm_set_output_op): Likewise.
10497 (gimple_asm_clobber_op): Likewise.
10498 (gimple_asm_set_clobber_op): Likewise.
10499 (gimple_asm_label_op): Likewise.
10500 (gimple_asm_set_label_op): Likewise.
10501 (gimple_switch_index): Likewise.
10502 (gimple_switch_index_ptr): Likewise.
10503 (gimple_return_retval_ptr): Likewise.
10504 (gimple_return_retval): Likewise.
10505 (gimple_return_set_retval): Likewise.
10506 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
10507 (gimple_switch_label): Likewise.
10508 (gimple_switch_set_label): Likewise.
10509
10510 2015-08-06 Richard Biener <rguenther@suse.de>
10511
10512 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
10513 bool comparison canonicalization and restrict to integers.
10514
10515 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
10516
10517 * coretypes.h (enum symbol_visibility): Relocate here.
10518 * flag-types.h (enum symbol_visibility): Remove.
10519 * tree-core.h (enum symbol_visibility): Remove.
10520
10521 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
10522
10523 PR target/66870
10524 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
10525 for no_split_stack function attribute along with
10526 flag_split_stack.
10527 (rs6000_expand_split_stack_prologue): Likewise.
10528
10529 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
10530 Jeff Law <law@redhat.com>
10531
10532 PR c/16351
10533 * doc/invoke.texi (Wnull-dereference): New.
10534 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
10535 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
10536 Warn for potential NULL dereferences.
10537 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
10538 * ubsan.c (instrument_nonnull_arg): Call
10539 infer_nonnull_range_by_attribute.
10540 (instrument_nonnull_return): Likewise.
10541 * common.opt (Wnull-dereference); New.
10542 * gimple.c (infer_nonnull_range): Remove bool arguments.
10543 (infer_nonnull_range_by_dereference): New.
10544 (infer_nonnull_range_by_attribute): New.
10545 * gimple.h: Update declarations.
10546
10547 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10548
10549 * gensupport.c (sequence_num): Replace with...
10550 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
10551 ...these new variables.
10552 (init_rtx_reader_args_cb): Update accordingly.
10553 (get_num_code_insns): Likewise.
10554 (read_md_rtx): Rework to use a while loop and get_c_test.
10555 Use the new counters. Remove redundant DEFINE_SUBST case.
10556 * genoutput.c (gen_split): Delete.
10557 (main): Don't call it.
10558
10559 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10560
10561 * gensupport.h (get_c_test): Declare.
10562 * gensupport.c (get_c_test): New function.
10563 * genconditions.c (main): Use it.
10564 * genrecog.c (validate_pattern): Likewise.
10565 (match_pattern_1): Likewise. Remove c_test argument.
10566 (match_pattern): Update accordingly and remove c_test argument.
10567 (main): Update accordingly.
10568
10569 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10570
10571 * gensupport.h (get_num_insn_codes): Declare.
10572 * gensupport.c (get_num_insn_codes): New function.
10573 * genattrtab.c (optimize_attrs): Rename max_insn_code to
10574 num_insn_codes.
10575 (main): Likewise. Use get_num_insn_codes.
10576 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
10577
10578 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10579
10580 PR middle-end/66311
10581 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
10582 is zero- rather than sign-extended.
10583
10584 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
10585
10586 * target-insns.def (can_extend): Delete.
10587
10588 2015-08-05 Richard Biener <rguenther@suse.de>
10589
10590 PR tree-optimization/67121
10591 * tree-if-conv.c (combine_blocks): Clear range-info produced
10592 by stmts no longer executed conditionally.
10593
10594 2015-08-05 Nick Clifton <nickc@redhat.com>
10595
10596 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
10597 to allow identical far pointers to remain.
10598
10599 2015-08-05 Richard Biener <rguenther@suse.de>
10600
10601 PR middle-end/67120
10602 * match.pd: Compare address bases with == if they are decls
10603 or SSA names, not operand_equal_p. Otherwise fail.
10604
10605 2015-08-05 Richard Biener <rguenther@suse.de>
10606
10607 PR tree-optimization/67055
10608 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
10609 NULL gimple_block.
10610
10611 * g++.dg/torture/pr67055.C: New testcase.
10612
10613 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
10614
10615 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
10616 noavx512vl.
10617 (define_attr "enabled"): Handle avx521vl and noavx512vl.
10618 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
10619 AVX-512 alternative out of SSE.
10620 (define_insn "*vec_concatv2df"): Ditto.
10621
10622 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
10623
10624 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
10625 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
10626 CODE_FOR_avx_ptestv4di.
10627 * config/i386/sse.md (define_mode_iterator V_AVX): New.
10628 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
10629 (define_insn "avx_ptest256"): Merge this ...
10630 (define_insn "sse4_1_ptest"): And this ...
10631 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
10632
10633 2015-08-05 Richard Biener <rguenther@suse.de>
10634
10635 PR tree-optimization/67109
10636 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
10637 against too big groups. Print whether this is a load or store
10638 group. Rename from ...
10639 (vect_analyze_group_access): ... this which is now a wrapper
10640 dissolving an invalid group.
10641 (vect_analyze_data_ref_accesses): Print whether this is a load
10642 or store group.
10643
10644 2015-08-05 Richard Biener <rguenther@suse.de>
10645
10646 PR middle-end/67107
10647 * match.pd: Guard const_binop result checking against NULL_TREE
10648 result.
10649
10650 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
10651
10652 * cse.c (cse_insn): Restoring old behaviour for src_eqv
10653 when dest and value in the REG_EQUAL are same and dest
10654 is STRICT_LOW_PART.
10655
10656 2015-08-04 Anatoly Sokolov <aesok@post.ru>
10657
10658 * config/moxie/moxie.h (PRINT_OPERAND,
10659 PRINT_OPERAND_ADDRESS): Remove macros.
10660 * config/moxie/moxie-protos.h (moxie_print_operand,
10661 moxie_print_operand_address): Remove declaration.
10662 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
10663 TARGET_PRINT_OPERAND_ADDRESS): Define.
10664 (moxie_print_operand, moxie_print_operand_address): Make static.
10665
10666 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10667
10668 PR target/66731
10669 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
10670 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
10671
10672 2015-08-04 Richard Biener <rguenther@suse.de>
10673
10674 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
10675 generated code.
10676 (dt_operand::gen_gimple_expr): Adjust.
10677
10678 2015-08-04 Richard Biener <rguenther@suse.de>
10679
10680 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
10681 bool compares on RHS.
10682 * match.pd: Add X ==/!= !X is false/true pattern.
10683
10684 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
10685
10686 * config/aarch64/aarch64.c: Change inner loop statement cost
10687 to be consistent with other targets.
10688
10689 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
10690
10691 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
10692 targets.
10693
10694 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
10695
10696 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
10697 (machine_function): Remove pseudos field.
10698
10699 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10700
10701 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10702 Exit early and use target_option_current_node if processing current
10703 pragma.
10704
10705 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10706
10707 * doc/extend.texi (AArch64 Function Attributes): New node.
10708 (AArch64 Pragmas): Likewise.
10709
10710 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10711
10712 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
10713 Initialize simd builtins if TARGET_SIMD.
10714 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
10715 Make sure that the builtins are initialized only once no matter how
10716 many times the function is called.
10717 (aarch64_init_builtins): Unconditionally initialize crc builtins.
10718 (aarch64_relayout_simd_param): New function.
10719 (aarch64_simd_expand_args): Use above during argument expansion.
10720 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
10721 simd builtins if TARGET_SIMD.
10722 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
10723 prototype.
10724 (aarch64_relayout_simd_types): Likewise.
10725
10726 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10727
10728 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
10729 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
10730 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
10731 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10732 static keyword.
10733 (aarch64_reset_previous_fndecl): New function.
10734 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
10735 the string.
10736 * config/aarch64/aarch64-c.c: New file.
10737 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
10738 Push and pop options at beginning and end. Remove ifdef
10739 __ARM_FEATURE_CRC32.
10740 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
10741 Add pragma +nothing+simd and +nothing+crypto where appropriate.
10742 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
10743 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
10744 Define prototype.
10745 (aarch64_register_pragmas): Likewise.
10746 (aarch64_reset_previous_fndecl): Likewise.
10747 (aarch64_process_target_attr): Likewise.
10748 (aarch64_override_options_internal): Likewise.
10749
10750 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10751
10752 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
10753 New function.
10754 (aarch64_can_inline_p): Likewise.
10755 (TARGET_CAN_INLINE_P): Define.
10756
10757 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10758
10759 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10760 Remove static. Handle OPT_mgeneral_regs_only,
10761 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
10762 OPT_momit_leaf_frame_pointer.
10763 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
10764 (aarch64_attr_opt_type): New enum.
10765 (aarch64_attribute_info): New struct.
10766 (aarch64_handle_attr_arch): New function.
10767 (aarch64_handle_attr_cpu): Likewise.
10768 (aarch64_handle_attr_tune): Likewise.
10769 (aarch64_handle_attr_isa_flags): Likewise.
10770 (aarch64_attributes): New table.
10771 (aarch64_process_one_target_attr): New function.
10772 (num_occurences_in_str): Likewise.
10773 (aarch64_process_target_attr): Likewise.
10774 (aarch64_option_valid_attribute_p): Likewise.
10775 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10776 * config/aarch64/aarch64-protos.h: Include input.h
10777 (aarch64_handle_option): Declare prototype.
10778
10779 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10780
10781 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
10782 * config/aarch64/aarch64.c: Include target-globals.h
10783 (aarch64_previous_fndecl): New variable.
10784 (aarch64_set_current_function): New function.
10785 (TARGET_SET_CURRENT_FUNCTION): Define.
10786
10787 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10788
10789 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
10790 (explicit_arch): Likewise.
10791 (x_aarch64_isa_flags): Likewise.
10792 (mgeneral-regs-only): Mark as Save.
10793 (mfix-cortex-a53-835769): Likewise.
10794 (mcmodel=): Likewise.
10795 (mstrict-align): Likewise.
10796 (momit-leaf-frame-pointer): Likewise.
10797 (mtls-dialect): Likewise.
10798 (master=): Likewise.
10799 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
10800 (aarch64_isa_flags): Remove extern declaration.
10801 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
10802 to indicate success or failure.
10803 (aarch64_validate_march): Likewise.
10804 (aarch64_validate_mtune): Likewise.
10805 (aarch64_isa_flags): Delete.
10806 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
10807 instead of aarch64_isa_flags.
10808 (aarch64_get_tune_cpu): New function.
10809 (aarch64_get_arch): Likewise.
10810 (aarch64_override_options): Use above and set up explicit_tune_core
10811 and explicit_arch.
10812 (aarch64_print_extension): Move earlier in file. Add isa_flags
10813 argument and use that instead of the global aarch64_isa_flags.
10814 (aarch64_option_save): New function.
10815 (aarch64_option_restore): Likewise.
10816 (aarch64_option_print): Likewise.
10817 (aarch64_declare_function_name): Likewise.
10818 (aarch64_start_file): Delete.
10819 (TARGET_ASM_FILE_START): Do not define.
10820 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
10821 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
10822 Declare prototype.
10823
10824 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10825
10826 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
10827 flag_omit_leaf_frame_pointer to 2.
10828
10829 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10830
10831 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
10832 define to 0 or 1.
10833 (TARGET_FIX_ERR_A53_835769): New macro.
10834 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
10835 handling of opts->x_aarch64_fix_a53_err835769.
10836 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
10837 than aarch64_fix_a53_err835769.
10838 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
10839 * config/aarch64/aarch64-linux.h: Likewise.
10840
10841 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
10842
10843 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
10844 ix86_expand_int_movcc as boolean.
10845
10846 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10847
10848 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
10849 (aarch64_cpu_string): Likewise.
10850 (aarch64_tune_string): Likewise.
10851 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
10852 (aarch64_parse_extension): Return aarch64_parse_opt_result.
10853 Add extra argument to put result into.
10854 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
10855 (aarch64_parse_cpu): Add arguments to put results into. Return
10856 aarch64_parse_opt_result.
10857 (aarch64_parse_tune): Likewise.
10858 (aarch64_override_options_after_change_1): New function.
10859 (aarch64_override_options_internal): New function.
10860 (aarch64_validate_mcpu): Likewise.
10861 (aarch64_validate_march): Likewise.
10862 (aarch64_validate_mtune): Likewise.
10863 (aarch64_override_options): Update to reflect above changes.
10864 Move some logic into aarch64_override_options_internal.
10865 Initialize target_option_default_node and target_option_current_node.
10866 (aarch64_override_options_after_change): Move logic into
10867 aarch64_override_options_after_change_1 and call it with global_options.
10868 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
10869 flag values from that.
10870
10871 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10872
10873 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10874 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
10875 * config/aarch64/aarch64.c (struct processor): Add arch field.
10876 (all_architectures): Handle above, move above all_cores.
10877 (all_cores): Handle above.
10878 (aarch64_parse_arch): Handle above changes.
10879 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
10880 above. Update comments.
10881 (armv8.1-a): Likewise.
10882 * config/aarch64/aarch64-cores.def: Update according to above.
10883 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
10884 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
10885 aarch64_arch_driver_info.
10886
10887 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10888
10889 * config/aarch64/aarch64.c (struct processor): Add ident field.
10890 Rename core sched_core.
10891 (all_cores): Handle above changes.
10892 (all_architectures): Likewise.
10893 (aarch64_parse_arch): Likewise.
10894 (aarch64_override_options): Likewise.
10895
10896 2015-08-04 Richard Biener <rguenther@suse.de>
10897
10898 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
10899 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
10900 comparisons embedded in [VEC_]COND_EXPRs.
10901
10902 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
10903
10904 * tree-if-conv.c: Fix various typos in comments.
10905 * tree-vect-stmts.c: Likewise.
10906
10907 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10908
10909 PR tree-optimization/67043
10910 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
10911 preheader after hoisting invariant in it.
10912 (find_defs): Force recomputation of all luids.
10913
10914 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
10915
10916 * config/rs6000/htm.md (tabort.): Restrict the source operand to
10917 using a base register.
10918
10919 2015-08-03 David Malcolm <dmalcolm@redhat.com>
10920
10921 * main.c (main): Pass in NULL for toplev's external_timer.
10922 * timevar.c: Include coretypes.h.
10923 (class timer::named_items): New.
10924 (timer::named_items::named_items): New.
10925 (timer::named_items::~named_items): New.
10926 (timer::named_items::push): New.
10927 (timer::named_items::pop): New.
10928 (timer::named_items::print): New.
10929 (timer::timer): Initialize field "m_jit_client_items".
10930 (timer::~timer): New.
10931 (timer::push): Move bulk of implementation to...
10932 (timer::push_internal): ...here. New function.
10933 (timer::pop): Move bulk of implementation to...
10934 (timer::pop_internal): ...here. New function.
10935 (timer::push_client_item): New.
10936 (timer::pop_client_item): New.
10937 (timer::print_row): New function, taken from timer::print.
10938 (timer::print): Print "GCC items" header if we also have client
10939 items. Move row-printing to timer::print_row. Print any client
10940 items.
10941 (timer::get_topmost_item_name): New method.
10942 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
10943 (TV_JIT_CLIENT_CODE): New.
10944 * timevar.h (timer::push_client_item): New declaration.
10945 (timer::pop_client_item): New declaration.
10946 (timer::get_topmost_item_name): New method.
10947 (timer::push_internal): New declaration.
10948 (timer::pop_internal): New declaration.
10949 (timer::print_row): New declaration.
10950 (timer::named_items): New declaration.
10951 (timer::m_jit_client_items): New field.
10952 (timer): Add friend class named_items.
10953 (auto_timevar::auto_timevar): Add timer param.
10954 (auto_timevar::~auto_timevar): Use field "m_timer".
10955 (auto_timevar::m_timer): New field.
10956 * toplev.c (initialize_rtl): Add g_timer as param when
10957 constructing auto_timevar instance.
10958 (toplev::toplev): Add "external_timer" param, and use it to
10959 initialize the "g_timer" global if non-NULL.
10960 (toplev::~toplev): If this created "g_timer", delete it.
10961 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
10962 with "external_timer" timer *.
10963
10964 2015-08-03 Alexander Basov <coohpt@gmail.com>
10965
10966 PR middle-end/64744
10967 PR middle-end/48470
10968 PR middle-end/43404
10969 * cfgexpand.c (expand_one_var): Add check if stack is going to
10970 be used in naked function.
10971 * expr.c (expand_expr_addr_expr_1): Remove excess checking
10972 whether expression should not reside in MEM.
10973 * function.c (use_register_for_decl): Do not use registers for
10974 non-register things (volatile, float, BLKMode) in naked functions.
10975
10976 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
10977
10978 PR target/67060
10979 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
10980 Adjust splits to match new pattern.
10981
10982 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10983
10984 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
10985 (VEC_M): Likewise.
10986 (VEC_N): Likewise.
10987 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
10988 point in VSX registers.
10989
10990 * config/rs6000/constraints.md (wb constraint): Document unused
10991 w<x> constraint.
10992 (we constraint): Likewise.
10993 (wo constraint): Likewise.
10994 (wp constraint): New constraint for IEEE 128-bit floating point in
10995 VSX registers.
10996 (wq constraint): Likewise.
10997
10998 * config/rs6000/predicates.md (easy_fp_constant): Add support for
10999 IEEE 128-bit floating point in VSX registers.
11000 (easy_scalar_constant): Likewise.
11001
11002 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11003 constraints (wp, wq) for IEEE 128-bit floating point in VSX
11004 registers.
11005 (rs6000_init_hard_regno_mode_ok): Likewise.
11006
11007 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11008 floating point in VSX registers.
11009 (VSX_L): Likewise.
11010 (VSX_M): Likewise.
11011 (VSX_M2): Likewise.
11012 (VSm): Likewise.
11013 (VSs): Likewise.
11014 (VSr): Likewise.
11015 (VSa): Likewise.
11016 (VSv): Likewise.
11017 (vsx_le_permute_<mode>): Add support to properly swap bytes for
11018 IEEE 128-bit floating point in VSX registers on little endian.
11019 (vsx_le_undo_permute_<mode>): Likewise.
11020 (vsx_le_perm_load_<mode>): Likewise.
11021 (vsx_le_perm_store_<mode>): Likewise.
11022 (splitters for IEEE 128-bit fp moves): Likewise.
11023
11024 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11025 wq constraints.
11026
11027 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11028 floating point in VSX registers.
11029 (VM2): Likewise.
11030
11031 * doc/md.text (Machine Constraints): Document wp and wq
11032 constraints on PowerPC.
11033
11034 2015-08-03 Jeff Law <law@redhat.com>
11035
11036 PR middle-end/66314
11037 PR gcov-profile/66899
11038 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11039 iterate over the jump threading paths when an element in the
11040 jump threading paths array is eliminated.
11041
11042 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
11043
11044 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11045
11046 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
11047
11048 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11049 is_use_properly_guarded the variable def_preds. Free its
11050 contents before returning.
11051 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11052 (is_use_properly_guarded): Replace local variable def_preds with
11053 a parameter. Adjust accordingly. Only update *def_preds if it's
11054 the empty vector.
11055
11056 2015-08-03 Richard Biener <rguenther@suse.de>
11057
11058 * genmatch.c (simplify::for_subst_vec): New member.
11059 (binary_ok): New helper for for lowering.
11060 (lower_for): Delay substituting operators into result expressions
11061 if we can merge the results eventually again.
11062 (capture_info::walk_result): Adjust for user_id appearing as
11063 result expression operator.
11064 (expr::gen_transform): Likewise.
11065 (dt_simplify::gen_1): Likewise.
11066 (dt_simplify::gen): Pass not substituted operators to tail
11067 functions or initialize local variable with it.
11068 (decision_tree::gen): Adjust function signature.
11069 * match.pd: Fix tests against global code and add default
11070 cases to switch stmts.
11071
11072 2015-08-03 Richard Biener <rguenther@suse.de>
11073
11074 * genmatch.c (dt_simplify::gen): Create captures array
11075 with an initializer.
11076
11077 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11078
11079 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11080 the host compiler is affected by placement new aliasing bug.
11081 * configure: Regenerate.
11082 * Makefile.in (ALIASING_FLAGS): New variable.
11083 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11084
11085 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11086
11087 PR target/66731
11088 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11089 (negmulsf3_vfp): Likewise.
11090 (muldf3negdf_vfp): Disable for -frounding-math.
11091 (mulsf3negsf_vfp): Likewise.
11092 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11093 fix MULT cost with -frounding-math.
11094
11095 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11096
11097 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11098 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11099 explicit. Prefer to add the flag whenever possible.
11100 (noce_process_if_block): Try noce_try_store_flag_constants before
11101 noce_try_cmove.
11102
11103 2015-08-03 Richard Biener <rguenther@suse.de>
11104
11105 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11106 New hash-map to record equivalent transforms.
11107 (dt_node::analyze): Populate the equivalent transforms hash-map.
11108 (dt_simplify::info): Add reference to hash-map entry.
11109 (dt_simplify::gen): If we have split out a function for the
11110 transform, generate a call to it.
11111 (sinfo_hashmap_traits::hash): New function.
11112 (compare_op): New helper function for ...
11113 (sinfo_hashmap_traits::equal_keys): ... this new function.
11114 (decision_tree::gen): Split out common equivalent transforms
11115 into functions.
11116
11117 2015-08-03 Richard Biener <rguenther@suse.de>
11118
11119 * gimple-fold.c (fold_gimple_assign): Remove folding of
11120 the comparison in COND_EXPRs.
11121
11122 2015-08-03 Richard Biener <rguenther@suse.de>
11123
11124 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11125 on the rhs of assignments first simplify the embedded
11126 GENERIC condition.
11127
11128 2015-08-03 Richard Biener <rguenther@suse.de>
11129
11130 PR tree-optimization/66917
11131 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11132 field.
11133 (DR_VECT_AUX): New macro.
11134 (set_dr_misalignment): Adjust.
11135 (dr_misalignment): Likewise.
11136 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11137 Compute whether the base is at least element aligned.
11138 * tree-vect-stmts.c (ensure_base_align): Adjust.
11139 (vectorizable_store): If the base is not element aligned
11140 preserve alignment of the original access if misalignment is unknown.
11141 (vectorizable_load): Likewise.
11142
11143 2015-08-02 Martin Sebor <msebor@redhat.com>
11144
11145 * c-family/c.opt (-Wframe-address): New warning option.
11146 * doc/invoke.texi (Wframe-address): Document it.
11147 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11148 Clarify possible effects of calling the functions with non-zero
11149 arguments and mention -Wframe-address.
11150 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11151
11152 2015-08-01 Michael Collison <michael.collison@linaro.org
11153 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11154
11155 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
11156 (*arm_umin_cmp): Likewise.
11157
11158 2015-08-01 Caroline Tice <cmtice@google.com>
11159
11160 PR 66521
11161 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11162 global variables.
11163 (vtbl_find_mangled_name): New function.
11164 (vtbl_register_mangled_name): New function.
11165 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
11166 mangled name in mangled name vectors.
11167 (find_or_create_vtbl_map_node): Ditto.
11168 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
11169 update recursion_depth on function entry; pass it to every recursive
11170 call; automatically exit if depth > 25 (give up looking at that point).
11171 (verify_bb_vtables): Initialize recursion_depth and pass it to
11172 var_is_used_for_virtual_call_p.
11173 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11174 global variable decls.
11175 (vtbl_register_mangled_name): New extern function decl.
11176
11177 2015-08-01 Tom de Vries <tom@codesourcery.com>
11178
11179 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11180 function.
11181 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11182 Declare.
11183 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11184 operation_no_trapping_overflow. Allow non-overflow operations.
11185 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11186 operations.
11187
11188 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
11189
11190 PR target/67049
11191 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11192
11193 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11194
11195 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11196 Enable for TARGET_32BIT.
11197 (*if_move_neg): Likewise.
11198
11199 2015-07-31 Nick Clifton <nickc@redhat.com>
11200
11201 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11202 Returns true for __model__.
11203 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11204
11205 2015-07-31 Alan Modra <amodra@gmail.com>
11206
11207 PR target/66870
11208 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11209 (rs6000_emit_prologue): Set it.
11210 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11211
11212 2015-07-31 Richard Biener <rguenther@suse.de>
11213
11214 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11215 -> X == (C1 ^ C2) which is already implemented in match.pd.
11216 Remove redundant dispatching to fold_relational_const.
11217 Move unordered self and NaN compares ...
11218 * match.pd: ... as patterns here. Remove some stray captures
11219 and add a comment.
11220
11221 2015-07-31 Petr Murzin <petr.murzin@intel.com>
11222
11223 * config/i386/i386.c
11224 (bdesc_special_args): Convert mask type from signed to unsigned for
11225 masked builtins.
11226 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11227 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11228 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11229 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11230 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11231 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11232 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11233 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11234 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11235 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11236 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11237 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11238 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11239 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11240 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11241 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11242 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11243 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11244 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11245 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11246 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11247 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11248 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11249 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
11250 * config/i386/i386-builtin-types.def
11251 (V16QI_FTYPE_V16SI): Remove.
11252 (V8DF_FTYPE_V8SI): Ditto.
11253 (V8HI_FTYPE_V8DI): Ditto.
11254 (V8SI_FTYPE_V8DI): Ditto.
11255 (V8SF_FTYPE_V8DF): Ditto.
11256 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
11257 (V16HI_FTYPE_V16SI): Ditto.
11258 (V16SF_FTYPE_V16HI): Ditto.
11259 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
11260 (V16SF_FTYPE_V16SI): Ditto.
11261 (V4DI_FTYPE_V4DI): Ditto.
11262 (V16SI_FTYPE_V16SF): Ditto.
11263 (V16SF_FTYPE_FLOAT): Ditto.
11264 (V8DF_FTYPE_DOUBLE): Ditto.
11265 (V8DI_FTYPE_INT64): Ditto.
11266 (V8DI_FTYPE_V4DI): Ditto.
11267 (V16QI_FTYPE_V8DI): Ditto.
11268 (UINT_FTYPE_V4SF): Ditto.
11269 (UINT64_FTYPE_V4SF): Ditto.
11270 (UINT_FTYPE_V2DF): Ditto.
11271 (UINT64_FTYPE_V2DF): Ditto.
11272 (V16SI_FTYPE_V16SI): Ditto.
11273 (V8DI_FTYPE_V8DI): Ditto.
11274 (V16SI_FTYPE_PV4SI): Ditto.
11275 (V16SF_FTYPE_PV4SF): Ditto.
11276 (V8DI_FTYPE_PV2DI): Ditto.
11277 (V8DF_FTYPE_PV2DF): Ditto.
11278 (V4DI_FTYPE_PV2DI): Ditto.
11279 (V4DF_FTYPE_PV2DF): Ditto.
11280 (V16SI_FTYPE_PV2SI): Ditto.
11281 (V16SF_FTYPE_PV2SF): Ditto.
11282 (V8DI_FTYPE_PV4DI): Ditto.
11283 (V8DF_FTYPE_PV4DF): Ditto.
11284 (V8SF_FTYPE_FLOAT): Ditto.
11285 (V4SF_FTYPE_FLOAT): Ditto.
11286 (V4DF_FTYPE_DOUBLE): Ditto.
11287 (V8SF_FTYPE_PV4SF): Ditto.
11288 (V8SI_FTYPE_PV4SI): Ditto.
11289 (V4SI_FTYPE_PV2SI): Ditto.
11290 (V8SF_FTYPE_PV2SF): Ditto.
11291 (V8SI_FTYPE_PV2SI): Ditto.
11292 (V16SF_FTYPE_PV8SF): Ditto.
11293 (V16SI_FTYPE_PV8SI): Ditto.
11294 (V8DI_FTYPE_V8SF): Ditto.
11295 (V4DI_FTYPE_V4SF): Ditto.
11296 (V2DI_FTYPE_V4SF): Ditto.
11297 (V64QI_FTYPE_QI): Ditto.
11298 (V32HI_FTYPE_HI): Ditto.
11299 (V8UHI_FTYPE_V8UHI): Ditto.
11300 (V16UHI_FTYPE_V16UHI): Ditto.
11301 (V32UHI_FTYPE_V32UHI): Ditto.
11302 (V2UDI_FTYPE_V2UDI): Ditto.
11303 (V4UDI_FTYPE_V4UDI): Ditto.
11304 (V8UDI_FTYPE_V8UDI): Ditto.
11305 (V4USI_FTYPE_V4USI): Ditto.
11306 (V8USI_FTYPE_V8USI): Ditto.
11307 (V16USI_FTYPE_V16USI): Ditto.
11308 (V2DF_FTYPE_V2DF_UINT64): Ditto.
11309 (V2DI_FTYPE_V2DF_V2DF): Ditto.
11310 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
11311 (V8DF_FTYPE_V8DF_V8DI): Ditto.
11312 (V4SF_FTYPE_V4SF_UINT64): Ditto.
11313 (V4SI_FTYPE_V4SF_V4SF): Ditto.
11314 (V16SF_FTYPE_V16SF_V16SI): Ditto.
11315 (V64QI_FTYPE_V32HI_V32HI): Ditto.
11316 (V32HI_FTYPE_V16SI_V16SI): Ditto.
11317 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
11318 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
11319 (V32HI_FTYPE_V64QI_V64QI): Ditto.
11320 (V32HI_FTYPE_V32HI_V32HI): Ditto.
11321 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
11322 (V16SI_FTYPE_V16SI_V4SI): Ditto.
11323 (V16SI_FTYPE_V16SI_V16SI): Ditto.
11324 (V16SI_FTYPE_V32HI_V32HI): Ditto.
11325 (V16SI_FTYPE_V16SI_SI): Ditto.
11326 (V8DI_FTYPE_V8DI_V8DI): Ditto.
11327 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
11328 (V8DI_FTYPE_V16SI_V16SI): Ditto.
11329 (V8DI_FTYPE_V8DI_V2DI): Ditto.
11330 (QI_FTYPE_QI): Ditto.
11331 (SI_FTYPE_SI): Ditto.
11332 (DI_FTYPE_DI): Ditto.
11333 (QI_FTYPE_QI_QI): Ditto.
11334 (QI_FTYPE_QI_INT): Ditto.
11335 (HI_FTYPE_HI_INT): Ditto.
11336 (SI_FTYPE_SI_INT): Ditto.
11337 (DI_FTYPE_DI_INT): Ditto.
11338 (HI_FTYPE_V16QI_V16QI): Ditto.
11339 (SI_FTYPE_V32QI_V32QI): Ditto.
11340 (DI_FTYPE_V64QI_V64QI): Ditto.
11341 (QI_FTYPE_V8HI_V8HI): Ditto.
11342 (HI_FTYPE_V16HI_V16HI): Ditto.
11343 (SI_FTYPE_V32HI_V32HI): Ditto.
11344 (QI_FTYPE_V4SI_V4SI): Ditto.
11345 (QI_FTYPE_V8SI_V8SI): Ditto.
11346 (QI_FTYPE_V2DI_V2DI): Ditto.
11347 (QI_FTYPE_V4DI_V4DI): Ditto.
11348 (QI_FTYPE_V8DI_V8DI): Ditto.
11349 (HI_FTYPE_V16SI_V16SI): Ditto.
11350 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
11351 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
11352 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
11353 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
11354 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
11355 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
11356 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
11357 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
11358 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
11359 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
11360 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
11361 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
11362 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
11363 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
11364 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
11365 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
11366 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
11367 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
11368 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
11369 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
11370 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
11371 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
11372 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
11373 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11374 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11375 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11376 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11377 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11378 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11379 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11380 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11381 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
11382 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
11383 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
11384 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11385 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11386 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11387 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
11388 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
11389 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
11390 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
11391 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
11392 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
11393 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
11394 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
11395 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
11396 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
11397 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11398 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11399 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
11400 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11401 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11402 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
11403 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
11404 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
11405 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
11406 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
11407 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
11408 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
11409 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
11410 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
11411 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
11412 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
11413 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
11414 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
11415 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
11416 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
11417 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
11418 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
11419 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
11420 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
11421 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
11422 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
11423 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
11424 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
11425 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
11426 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
11427 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
11428 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
11429 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
11430 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
11431 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
11432 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
11433 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
11434 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
11435 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
11436 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
11437 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
11438 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
11439 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
11440 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
11441 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
11442 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
11443 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
11444 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
11445 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
11446 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
11447 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
11448 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
11449 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
11450 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
11451 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11452 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11453 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11454 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
11455 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
11456 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
11457 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
11458 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
11459 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
11460 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
11461 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
11462 (HI_FTYPE_HI): Ditto.
11463 (HI_FTYPE_V16QI): Ditto.
11464 (SI_FTYPE_V32QI): Ditto.
11465 (DI_FTYPE_V64QI): Ditto.
11466 (QI_FTYPE_V8HI): Ditto.
11467 (HI_FTYPE_V16HI): Ditto.
11468 (SI_FTYPE_V32HI): Ditto.
11469 (QI_FTYPE_V4SI): Ditto.
11470 (QI_FTYPE_V8SI): Ditto.
11471 (HI_FTYPE_V16SI): Ditto.
11472 (QI_FTYPE_V2DI): Ditto.
11473 (QI_FTYPE_V4DI): Ditto.
11474 (QI_FTYPE_V8DI): Ditto.
11475 (V16QI_FTYPE_HI): Ditto.
11476 (V32QI_FTYPE_SI): Ditto.
11477 (V64QI_FTYPE_DI): Ditto.
11478 (V8HI_FTYPE_QI): Ditto.
11479 (V16HI_FTYPE_HI): Ditto.
11480 (V32HI_FTYPE_SI): Ditto.
11481 (V4SI_FTYPE_QI): Ditto.
11482 (V4SI_FTYPE_HI): Ditto.
11483 (V8SI_FTYPE_QI): Ditto.
11484 (V8SI_FTYPE_HI): Ditto.
11485 (V2DI_FTYPE_QI): Ditto.
11486 (V4DI_FTYPE_QI): Ditto.
11487 (HI_FTYPE_HI_HI): Ditto.
11488 (SI_FTYPE_SI_SI): Ditto.
11489 (DI_FTYPE_DI_DI): Ditto.
11490 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
11491 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
11492 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
11493 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
11494 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
11495 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
11496 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
11497 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
11498 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
11499 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
11500 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
11501 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
11502 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
11503 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
11504 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
11505 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
11506 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
11507 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
11508 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
11509 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
11510 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
11511 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
11512 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
11513 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
11514 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
11515 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
11516 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
11517 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
11518 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
11519 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
11520 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
11521 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
11522 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
11523 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
11524 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
11525 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
11526 (V16SI_FTYPE_HI): Ditto.
11527 (V8DI_FTYPE_QI): Ditto.
11528 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
11529 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
11530 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
11531 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
11532 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
11533 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
11534 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
11535 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
11536 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
11537 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
11538 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
11539 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
11540 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
11541 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
11542 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
11543 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
11544 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
11545 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
11546 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
11547 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
11548 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
11549 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
11550 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
11551 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
11552 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
11553 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
11554 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
11555 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
11556 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
11557 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
11558 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
11559 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
11560 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
11561 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
11562 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
11563 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
11564 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
11565 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
11566 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
11567 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
11568 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
11569 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
11570 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
11571 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
11572 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
11573 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
11574 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
11575 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
11576 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
11577 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
11578 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
11579 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
11580 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
11581 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
11582 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
11583 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
11584 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
11585 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
11586 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
11587 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
11588 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
11589 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
11590 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
11591 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
11592 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
11593 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
11594 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
11595 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
11596 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
11597 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
11598 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
11599 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
11600 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
11601 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
11602 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
11603 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
11604 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
11605 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
11606 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
11607 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
11608 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
11609 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
11610 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
11611 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
11612 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
11613 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
11614 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
11615 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
11616 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
11617 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
11618 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
11619 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
11620 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
11621 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
11622 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
11623 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
11624 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
11625 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
11626 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
11627 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
11628 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
11629 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
11630 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
11631 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
11632 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
11633 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
11634 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
11635 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
11636 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
11637 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
11638 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
11639 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
11640 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
11641 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
11642 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
11643 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
11644 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
11645 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
11646 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
11647 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
11648 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
11649 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
11650 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
11651 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
11652 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
11653 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
11654 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
11655 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
11656 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
11657 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
11658 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
11659 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
11660 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
11661 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
11662 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
11663 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
11664 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
11665 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
11666 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
11667 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
11668 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
11669 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
11670 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
11671 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
11672 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
11673 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
11674 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
11675 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11676 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11677 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11678 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11679 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11680 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11681 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11682 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
11683 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
11684 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
11685 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11686 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11687 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11688 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11689 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11690 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11691 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11692 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11693 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
11694 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11695 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11696 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
11697 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11698 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11699 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
11700 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
11701 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
11702 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11703 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11704 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
11705 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11706 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11707 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11708 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11709 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11710 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11711 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11712 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11713 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11714 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11715 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
11716 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11717 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11718 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11719 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11720 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11721 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11722 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11723 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11724 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11725 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11726 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11727 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11728 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11729 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11730 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11731 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11732 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11733 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11734 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11735 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11736 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11737 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11738 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11739 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11740 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11741 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
11742 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11743 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11744 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11745 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11746 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11747 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11748 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11749 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11750 (QI_FTYPE_V8DF_INT_QI): Ditto.
11751 (QI_FTYPE_V4DF_INT_QI): Ditto.
11752 (QI_FTYPE_V2DF_INT_QI): Ditto.
11753 (HI_FTYPE_V16SF_INT_HI): Ditto.
11754 (QI_FTYPE_V8SF_INT_QI): Ditto.
11755 (QI_FTYPE_V4SF_INT_QI): Ditto.
11756 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
11757
11758 2015-07-31 Richard Biener <rguenther@suse.de>
11759
11760 * gimple-fold.c (fold_gimple_assign): Remove folding of
11761 GIMPLE_BINARY_RHS.
11762
11763 2015-07-31 Tom de Vries <tom@codesourcery.com>
11764
11765 PR tree-optimization/66846
11766 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
11767 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
11768 (expand_omp_target) [ENABLE_CHECKING]: Same.
11769 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
11770 cfun if !LOOPS_NEED_FIXUP.
11771 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
11772 that omp_for already has its own loop struct.
11773 * tree-parloops.c (create_phi_for_local_result)
11774 (create_call_for_reduction): Handle simple latch bb.
11775 (create_parallel_loop): Add simple latch bb to preserve
11776 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
11777 (gen_parallel_loop): Remove call to cancel_loop_tree.
11778 (parallelize_loops): Skip loops that are inner loops of parallelized
11779 loops.
11780 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
11781 verify_loop_structure.
11782
11783 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11784
11785 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
11786 * config/v850/v850.md (RV_REGNUM): New constants.
11787 * config/v850/v850.c (v850_libcall_value): New functions.
11788 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
11789 (TARGET_LIBCALL_VALUE): Define.
11790
11791 2015-07-30 Anatoly Sokolov <aesok@post.ru>
11792
11793 * rtl.h (lowpart_subreg): Move in file.
11794 * loop-iv.c (lowpart_subreg): Move to...
11795 * simplify-rtx.c (lowpart_subreg): ...here.
11796 (simplify_binary_operation_1): Use lowpart_subreg instead of
11797 simplify_gen_subreg.
11798 * expr.c (expand_expr_real_2): Ditto.
11799 * emit-rtl.c (gen_lowpart_common): Ditto.
11800 * combine.c (gen_lowpart_for_combine): Ditto.
11801 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
11802 expand_debug_source_expr): Ditto.
11803
11804 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
11805
11806 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
11807 (expand_builtin_atomic_clear): Remove support for atomic_clear
11808 pattern.
11809
11810 2015-07-30 Richard Biener <rguenther@suse.de>
11811
11812 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
11813 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
11814 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
11815 redundant operand canonicalization.
11816
11817 2015-07-30 David Sherwood <david.sherwood@arm.com>
11818
11819 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
11820 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
11821 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
11822 * config/arm/arm.c (neon_valid_immediate): Likewise.
11823 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
11824 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
11825 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
11826 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11827 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
11828 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11829 * config/i386/sse.md
11830 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
11831 (*ssse3_palignr<mode>_perm): Likewise.
11832 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
11833 * config/spu/spu.c (arith_immediate_p): Likewise.
11834 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11835 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
11836
11837 2015-07-30 Richard Biener <rguenther@suse.de>
11838
11839 * genmatch.c (decision_tree::gen_gimple): Merge with ...
11840 (decision_tree::gen_generic): ... this into ...
11841 (decision_tree::gen): ... this.
11842 (main): Adjust callers.
11843
11844 2015-07-30 Richard Biener <rguenther@suse.de>
11845
11846 * genmatch.c (verbose): New global.
11847 (warning_at): Add overload with source_location.
11848 (capture_info::capture_info): Add bool whether generating gimple
11849 or generic. Add gimple member.
11850 (capture_info::cinfo): Add capture member.
11851 (capture_info::walk_match): Record capture. Warn on
11852 non-captured leafs.
11853 (capture_info::walk_c_expr): Add more fragments captures cannot
11854 escape through. Warn on escaped captures.
11855 (dt_simplify::gen_1): Warn on operands we force to have no
11856 side-effects.
11857 (main): Initialize verbose.
11858 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
11859
11860 2015-07-30 Richard Biener <rguenther@suse.de>
11861
11862 PR middle-end/67053
11863 * match.pd: Allow both operands to independently have conversion
11864 when simplifying compares of addresses.
11865
11866 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
11867
11868 PR target/66217
11869 PR target/67045
11870 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
11871 around those cases that need one.
11872
11873 2015-07-29 Aditya Kumar <hiraditya@msn.com>
11874
11875 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
11876
11877 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
11878
11879 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
11880 New. Copied from config/i386/gnu-user.h.
11881 (ASM_COMMENT_START): Likewise.
11882 (DBX_REGISTER_NUMBER): Likewise.
11883
11884 2015-07-29 Richard Biener <rguenther@suse.de>
11885
11886 * gimple-fold.c (fold_gimple_cond): Remove.
11887 (fold_stmt_1): Do not call it.
11888
11889 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
11890
11891 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
11892 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
11893
11894 * config/aarch64/aarch64-modes.def: Add HFmode.
11895
11896 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11897 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
11898
11899 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
11900 aarch64_promoted_type): New.
11901
11902 (aarch64_float_const_representable_p): Disable HFmode.
11903 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
11904 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
11905 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
11906
11907 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
11908 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
11909
11910 * config/aarch64/iterators.md (GPF_F16): New.
11911
11912 2015-07-29 Richard Biener <rguenther@suse.de>
11913
11914 * match.pd: Merge address comparison patterns and make them
11915 handle some more cases.
11916
11917 2015-07-29 Richard Biener <rguenther@suse.de>
11918
11919 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
11920 (parser::parse_capture): Add bool argument on whether to reject
11921 unknown captures.
11922 (parser::parse_expr): Adjust.
11923 (parser::parse_op): Likewise.
11924 (parser::parse_pattern): Likewise.
11925
11926 2015-07-29 Richard Biener <rguenther@suse.de>
11927
11928 * gimple-fold.c (has_use_on_stmt): New function.
11929 (replace_stmt_with_simplification): Use it to allow
11930 abnormals originally referenced in the stmt.
11931 (fold_stmt_1): Canonicalize operand order.
11932
11933 2015-07-28 David Sherwood <david.sherwood@arm.com>
11934
11935 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
11936 GET_MODE_INNER unconditionally.
11937 * config/spu/spu.c (arith_immediate_p): Likewise.
11938 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
11939 * expmed.c (synth_mult): Remove check for VOIDmode result from
11940 GET_MODE_INNER.
11941 (expand_mult_const): Likewise.
11942 * fold-const.c (fold_binary_loc): Replace call to element_precision
11943 with call to GET_MODE_PRECISION.
11944 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
11945 m->name.
11946 (emit_mode_inner): Likewise.
11947 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
11948 result check.
11949 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
11950 (GET_MODE_UNIT_PRECISION): Likewise.
11951 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
11952 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11953 * stor-layout.c (bitwise_type_for_mode): Update assert.
11954 (element_precision): Remove.
11955
11956 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11957
11958 * target-insns.def (reload_load_address): New targetm instruction
11959 pattern.
11960 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
11961
11962 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11963
11964 * target-insns.def (atomic_test_and_set): New targetm instruction
11965 pattern.
11966 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
11967 HAVE_*/gen_* interface.
11968
11969 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11970
11971 * target-insns.def (can_extend, ptr_extend): New targetm instruction
11972 patterns.
11973 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
11974 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11975 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11976 * rtlanal.c (nonzero_bits1): Likewise.
11977 (num_sign_bit_copies1): Likewise.
11978
11979 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11980
11981 * target-insns.def (eh_return): New targetm instruction pattern.
11982 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
11983 interface.
11984 * function.c (thread_prologue_and_epilogue_insns): Remove
11985 preprocessor condition.
11986
11987 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11988
11989 * target-insns.def (indirect_jump): New targetm instruction pattern.
11990 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
11991 interface.
11992
11993 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
11994
11995 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
11996 instead of nonimmediate_operand. Remove C condiition.
11997
11998 2015-07-28 Richard Biener <rguenther@suse.de>
11999
12000 * match.pd: Add more simplification of address comparisons.
12001
12002 2015-07-28 Richard Biener <rguenther@suse.de>
12003
12004 * match.pd: Re-order two cases in comparison with max/min
12005 value simplification to make it apply for bools.
12006
12007 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12008
12009 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12010 Handle simple SIGN_EXTEND or ZERO_EXTEND.
12011 (aarch64_rtx_costs): Properly strip extend or extract before
12012 passing down to rtx costs again.
12013
12014 2015-07-28 Nick Clifton <nickc@redhat.com>
12015
12016 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12017 Optimizes the case where -mes0 is active and a constant symbolic
12018 address is used.
12019 * config/rl78/rl78-protos.h: Prototype the new function.
12020 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12021
12022 2015-07-28 Tom de Vries <tom@codesourcery.com>
12023
12024 * tree-parloops.c (reduc_stmt_res): New function.
12025 (initialize_reductions, add_field_for_reduction)
12026 (create_phi_for_local_result, create_loads_for_reductions)
12027 (create_stores_for_reduction, build_new_reduction): Handle case that
12028 reduc_stmt is a phi.
12029 (gather_scalar_reductions): Allow double_reduc reductions.
12030
12031 2015-07-28 Richard Biener <rguenther@suse.de>
12032
12033 * fold-const.c (fold_comparison): Remove equality folding
12034 of decl addresses ...
12035 * match.pd: ... here and merge with existing pattern.
12036
12037 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12038
12039 PR tree-optimization/66828
12040 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12041 from int64_t to uint64_t.
12042
12043 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
12044
12045 * opts-common.c (read_cmdline_option): List DriverOnly enum values
12046 as valid only in the error message of the driver, not in the
12047 messages of the language compilers.
12048
12049 2015-07-27 Tom de Vries <tom@codesourcery.com>
12050
12051 * tree-parloops.c (gather_scalar_reductions): Simplify function
12052 structure.
12053
12054 2015-07-27 Marek Polacek <polacek@redhat.com>
12055
12056 * ipa-devirt.c (types_same_for_odr): Fix typo.
12057
12058 2015-07-27 Jason Merrill <jason@redhat.com>
12059
12060 PR debug/66468
12061 * dwarf2out.c (gen_inlined_subroutine_die): Check
12062 cgraph_function_possibly_inlined_p.
12063
12064 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12065
12066 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12067 Place integer variant first.
12068 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12069
12070 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12071
12072 PR/63870
12073 * config/arm/arm-builtins.c (enum arm_builtins):
12074 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12075 (ARM_BUILTIN_NEON_BASE): Rename macro to....
12076 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12077 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12078 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12079
12080 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12081
12082 PR/63870
12083 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12084 Add qualifier_lane_index.
12085 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12086 (arm_getlane_qualifiers): Use qualifier_lane_index.
12087 (arm_lanemac_qualifiers): Rename to...
12088 (arm_mac_n_qualifiers): ...this.
12089 (LANEMAC_QUALIFIERS): Rename to...
12090 (MAC_N_QUALIFIERS): ...this.
12091 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12092 (arm_setlane_qualifiers): Use qualifier_lane_index.
12093 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12094 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12095 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12096 (arm_expand_neon_builtin): Handle qualifier_lane_index.
12097
12098 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12099 * config/arm/arm.c (bounds_check): Likewise, improve error message.
12100 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12101 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12102 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12103 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12104 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12105 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12106 qualifiers to TERNOP_IMM.
12107 (vdup_lane): Change qualifiers to GETLANE.
12108 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12109 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12110 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12111 vqdmlsl_n): Change qualifiers to MAC_N.
12112
12113 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12114 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12115 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12116 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12117 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12118 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12119 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12120 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12121 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12122 Remove call to neon_lane_bounds.
12123
12124 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12125
12126 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12127 Place integer variant first.
12128
12129 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
12130
12131 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12132 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12133 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12134 for armv6kz targets.
12135 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12136 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12137 (FL_FOR_ARCH6ZK): Remove.
12138 (FL_FOR_ARCH6KZ): New.
12139 (arm_arch6zk): New declaration.
12140 * config/arm/arm-tables.opt: Regenerate.
12141 * config/arm/arm.c (arm_arch6kz): New.
12142 (arm_option_override): Set arm_arch6kz.
12143 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12144 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12145 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12146
12147 2015-07-27 Marek Polacek <polacek@redhat.com>
12148
12149 PR c++/66555
12150 PR c/54979
12151 * doc/invoke.texi: Document -Wtautological-compare.
12152
12153 2015-07-27 Richard Biener <rguenther@suse.de>
12154
12155 * genmatch.c (decision_tree::gen_gimple): Split out large
12156 subtrees into separate functions.
12157 (decision_tree::gen_generic): Likewise.
12158
12159 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
12160
12161 * config/alpha/alpha.c: Use SUBREG_P predicate.
12162 * config/alpha/predicates.md: Ditto.
12163
12164 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
12165
12166 * config.host (s390*-*-*): Include driver-native.c only when
12167 building with s390* as host *and* target.
12168
12169 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
12170
12171 PR target/66930
12172 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12173 T bit register modified_between_p check.
12174
12175 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12176
12177 * config/i386/i386.c: Use SUBREG_P predicate.
12178 * config/i386/i386.md: Ditto.
12179 * config/i386/sse.md: Ditto.
12180 * config/i386/predicates.md: Ditto.
12181
12182 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12183
12184 PR target/67004
12185 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12186 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12187
12188 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12189
12190 * Makefile.in: Remove use of TREEBROWSER.
12191 * config.in: Regenerated.
12192 * configure: Regenerated.
12193 * configure.ac: Remove definition of TREEBROWSER.
12194 * tree-browser.c: Removed.
12195 * tree-browser.def: Removed.
12196
12197 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12198
12199 * graphite-scop-detection.c: Include gimple-pretty-print.h.
12200 (stmt_simple_for_scop_p): Print when a stmt is not handled in
12201 Graphite.
12202 (scopdet_basic_block_info): Print when a loop or bb cannot be
12203 represented in Graphite.
12204
12205 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12206
12207 PR target/66648
12208 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12209 execution guard when min_size is less than size_needed.
12210
12211 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12212
12213 * doc/install.texi: Document supported versions of ISL.
12214
12215 2015-07-25 Jeff Law <law@redhat.com>
12216
12217 Revert:
12218 PR lto/66752
12219 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12220 unable to find X NE 0 in the tables, return X as the simplified
12221 condition.
12222 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12223 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12224 to VISISTED_BBS. */
12225 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12226 after removing the control flow statement and unnecessary edges.
12227
12228 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
12229
12230 Revert:
12231 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12232
12233 PR rtl-optimization/64164
12234 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12235 * tree-ssa-copyrename.c: Removed.
12236 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12237 -ftree-coalesce-vars.
12238 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12239 * common.opt (ftree-copyrename): Ignore.
12240 (ftree-coalesce-inlined-vars): Likewise.
12241 * doc/invoke.texi: Remove the ignored options above.
12242 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12243 * tree-ssa-coalesce.h: ... here.
12244 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12245 headers required by it.
12246 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12247 across variables when flag_tree_coalesce_vars. Check register
12248 use and promoted modes to allow coalescing. Moved to
12249 tree-ssa-coalesce.c.
12250 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12251 with its member functions to tree-ssa-coalesce.c.
12252 (var_map_base_init): Likewise. Renamed to
12253 compute_samebase_partition_bases.
12254 (partition_view_normal): Drop want_bases parameter.
12255 (partition_view_bitmap): Likewise.
12256 * tree-ssa-live.h: Adjust declarations.
12257 * tree-ssa-coalesce.c: Include explow.h.
12258 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12259 default defs at the entry point.
12260 (dump_part_var_map): New.
12261 (compute_optimized_partition_bases): New, called by...
12262 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12263 of compute_samebase_partition_bases. Adjust.
12264 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12265 * cfgexpand.c (leader_merge): New.
12266 (get_rtl_for_parm_ssa_default_def): New.
12267 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12268 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12269 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12270 redundant MEM attr setting.
12271 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12272 from...
12273 (expand_one_stack_var): ... this. New wrapper to check and
12274 skip already expanded SSA partitions.
12275 (record_alignment_for_reg_var): New, factored out of...
12276 (expand_one_var): ... this.
12277 (expand_one_ssa_partition): New.
12278 (adjust_one_expanded_partition_var): New.
12279 (expand_one_register_var): Check and skip already expanded SSA
12280 partitions.
12281 (expand_used_vars): Don't create DECLs for anonymous SSA
12282 names. Expand all SSA partitions, then adjust all SSA names.
12283 (pass::execute): Replace the loops that set
12284 SA.partition_to_pseudo from partition leaders and cleared
12285 DECL_RTL for multi-location variables, and that which used to
12286 rename vars and set attrs, with one that clears DECL_RTL and
12287 checks that PARMs and RESULTs default_defs match DECL_RTL.
12288 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12289 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12290 * explow.c (promote_ssa_mode): New.
12291 * explow.h (promote_ssa_mode): Declare.
12292 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12293 * function.c: Include cfgexpand.h.
12294 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12295 (use_register_for_parm_decl): Wrapper for the above to
12296 special-case the result_ptr.
12297 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12298 (split_complex_args): Take assign_parm_data_all argument.
12299 Pass it to rtl_for_parm. Set up rtl and context for split
12300 args.
12301 (assign_parms_augmented_arg_list): Adjust.
12302 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12303 multiple locations. Recognize split complex args.
12304 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12305 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12306 (assign_parm_setup_block): Prefer SSA-assigned location.
12307 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12308 if stack_parm is NULL.
12309 (assign_parm_setup_stack): Prefer SSA-assigned location.
12310 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12311 rtl before testing for pointer bounds. Special-case result_ptr.
12312 (expand_function_start): Maybe reset DECL_RTL of result.
12313 Prefer SSA-assigned location for result and static chain.
12314 Factor out DECL_RESULT and SET_DECL_RTL.
12315 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12316 anonymous SSA names. Use promote_ssa_mode.
12317 (get_temp_reg): Likewise.
12318 (remove_ssa_form): Adjust.
12319 * stor-layout.c (layout_decl): Don't set mem attributes of
12320 non-MEMs.
12321 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12322 and get its reg_usage for reg invalidation.
12323 (compute_bb_dataflow): Pass it insn.
12324 (emit_notes_in_bb): Likewise.
12325
12326 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12327
12328 * config/i386/i386.c (ix86_va_start): Remove
12329 unneeded !TARGET_64BIT check.
12330 (ix86_gimplify_va_arg): Ditto.
12331
12332 2015-07-24 Tom de Vries <tom@codesourcery.com>
12333
12334 * graphite-sese-to-poly.c (build_poly_scop): Always call
12335 rewrite_commutative_reductions_out_of_ssa.
12336
12337 2015-07-24 Tom de Vries <tom@codesourcery.com>
12338
12339 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
12340 flag_associative_math to FLOAT_TYPE_P. Honour
12341 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
12342
12343 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12344
12345 PR c++/64079
12346 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
12347 and "%qD" in warning_at instead of "%q+D" in warning.
12348
12349 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12350
12351 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
12352 (ix86_function_abi): Cleanup.
12353
12354 2015-07-24 Michael Darling <darlingm@gmail.com>
12355
12356 PR other/66259
12357 * acinclude.m4: Reflects renaming of configure.in to configure.ac
12358 * configure: Likewise
12359 * configure.ac: Likewise
12360 * doc/install.texi: Likewise
12361 * doc/tm.texi: Likewise
12362 * doc/tm.texi.in: Likewise
12363
12364 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12365
12366 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
12367 manually swapping values.
12368 * cse.c (fold_rtx): Likewise.
12369 * lra-eliminations.c (form_sum): Likewise.
12370
12371 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
12372
12373 PR target/64003
12374 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
12375 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
12376 (*jcc_1, *jcc_2, jump, simple_return_internal)
12377 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
12378 Set length_nobnd attribute instead of length attribute.
12379 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
12380 (length_nobnd): Remove attribute.
12381 (length): Remove length_nobnd processing.
12382
12383 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
12384
12385 * gimplify.c (omp_default_clause): New function. Reorganize flow
12386 for clarity. Broken out of ...
12387 (omp_notice_variable): ... here.
12388
12389 2015-07-24 Gary Funck <gary@intrepid.com>
12390
12391 PR middle-end/66984
12392 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
12393 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
12394
12395 2015-07-24 Tom de Vries <tom@codesourcery.com>
12396
12397 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
12398 exit-first loop transform.
12399
12400 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12401
12402 PR 66714
12403 * tree-cfg.c (struct replace_decls_d): New struct.
12404 (replace_block_vars_by_duplicates_1): New function.
12405 (replace_block_vars_by_duplicates): Use it to replace the decls
12406 in the value exprs by duplicates.
12407
12408 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12409
12410 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
12411 -shared, -symbolic, -rdynamic.
12412
12413 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
12414
12415 PR target/65711
12416 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
12417 -dynamic-linker within %{!static %{!shared, and -rdynamic within
12418 %{!static.
12419
12420 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
12421
12422 PR ipa/66566
12423 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
12424 edge summary is available.
12425
12426 2015-07-24 Richard Biener <rguenther@suse.de>
12427
12428 * genmatch.c (struct dt_node): Add statistic fields.
12429 (dt_node::analyze): New method.
12430 (decision_tree::gen_gimple): Call analyze on the root node
12431 and print statistics to stderr.
12432 (decision_tree::gen_generic): Likewise.
12433
12434 2015-07-24 Richard Biener <rguenther@suse.de>
12435
12436 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
12437 against the highest or lowest possible integer ...
12438 * match.pd: ... as patterns here.
12439
12440 2015-07-24 Richard Biener <rguenther@suse.de>
12441
12442 * genmatch.c (struct capture_info): Add same_as field.
12443 (capture_info::capture_info): Initialize same_as.
12444 (capture_info::walk_match): Compute same_as.
12445 (capture_info::walk_result): Compute stuff for the leader.
12446 (capture_info::walk_c_expr): Likewise.
12447 (dt_simplify::gen_1): Only look at leaders when deciding
12448 to force no side-effects or emit side-effects of omitted operands.
12449
12450 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12451
12452 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
12453 reg note to the GPR -> FPR save instructions.
12454
12455 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12456
12457 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
12458 cheaper.
12459 (s390_expand_insv): Don't generate risbg pattern for constant zero
12460 sources.
12461 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
12462 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
12463 splitters.
12464
12465 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12466
12467 * config/s390/s390.c (s390_reorg): Clean up handling of processors
12468 with
12469 -mtune=
12470 (s390_issue_rate): Likewise.
12471 (s390_sched_reorder): Likewise.
12472 (s390_sched_variable_issue): Likewise.
12473 (s390_loop_unroll_adjust): Likewise.
12474 (s390_option_override): Likewise.
12475
12476 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12477
12478 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
12479 processor capabilities with -march=native.
12480 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
12481 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
12482 (S390_TARGET_BITS_STRING): Macro to simplify specs.
12483
12484 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12485
12486 * config/s390/s390.c (s390_issue_rate): Handle
12487 PROCESSOR_2094_Z9_EC.
12488 (s390_option_override): Likewise.
12489 (s390_adjust_priority): Likewise.
12490
12491 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
12492
12493 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
12494 when cross compiling.
12495
12496 2015-07-24 Richard Biener <rguenther@suse.de>
12497
12498 * fold-const.c (maybe_canonicalize_comparison_1): Move
12499 A code CST canonicalization ...
12500 * match.pd: ... to a pattern here.
12501
12502 2015-07-24 Jiong Wang <jiong.wang@arm.com>
12503
12504 Revert:
12505 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12506 PR target/63521
12507 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12508 (HONOR_REG_ALLOC_ORDER): Define.
12509
12510 2015-07-24 Richard Biener <rguenther@suse.de>
12511
12512 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
12513 * fold-const.c (fold_comparison): Move parameter does not
12514 alias &local simplification ...
12515 * match.pd: ... as a pattern here.
12516
12517 2015-07-24 Richard Biener <rguenther@suse.de>
12518
12519 * gimple-fold.c (replace_stmt_with_simplification): Special-case
12520 valueizing call operands.
12521 * gimple-match-head.c (maybe_push_res_to_seq): Take
12522 number of call arguments from ops array.
12523 (do_valueize): New function.
12524 (gimple_simplify): Return true if valueization changed
12525 any operand even if the result didn't simplify further.
12526
12527 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12528
12529 PR middle-end/25530
12530 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
12531
12532 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12533
12534 PR middle-end/25529
12535 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
12536
12537 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12538
12539 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
12540 instruction.
12541
12542 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12543
12544 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
12545 clean up.
12546
12547 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
12548
12549 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
12550 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
12551 targets here.
12552 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
12553 ms_va_list_type_node initialization.
12554
12555 2015-07-23 Jeff Law <law@redhat.com>
12556
12557 PR lto/66752
12558 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12559 unable to find X NE 0 in the tables, return X as the simplified
12560 condition.
12561 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12562 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12563 to VISISTED_BBS. */
12564 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12565 after removing the control flow statement and unnecessary edges.
12566
12567 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
12568
12569 * tree-pass.h (get_current_pass_name): Removed.
12570
12571 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12572
12573 PR rtl-optimization/64164
12574 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12575 * tree-ssa-copyrename.c: Removed.
12576 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12577 -ftree-coalesce-vars.
12578 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12579 * common.opt (ftree-copyrename): Ignore.
12580 (ftree-coalesce-inlined-vars): Likewise.
12581 * doc/invoke.texi: Remove the ignored options above.
12582 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12583 * tree-ssa-coalesce.h: ... here.
12584 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12585 headers required by it.
12586 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12587 across variables when flag_tree_coalesce_vars. Check register
12588 use and promoted modes to allow coalescing. Moved to
12589 tree-ssa-coalesce.c.
12590 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12591 with its member functions to tree-ssa-coalesce.c.
12592 (var_map_base_init): Likewise. Renamed to
12593 compute_samebase_partition_bases.
12594 (partition_view_normal): Drop want_bases parameter.
12595 (partition_view_bitmap): Likewise.
12596 * tree-ssa-live.h: Adjust declarations.
12597 * tree-ssa-coalesce.c: Include explow.h.
12598 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12599 default defs at the entry point.
12600 (dump_part_var_map): New.
12601 (compute_optimized_partition_bases): New, called by...
12602 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12603 of compute_samebase_partition_bases. Adjust.
12604 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12605 * cfgexpand.c (leader_merge): New.
12606 (get_rtl_for_parm_ssa_default_def): New.
12607 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12608 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12609 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12610 redundant MEM attr setting.
12611 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12612 from...
12613 (expand_one_stack_var): ... this. New wrapper to check and
12614 skip already expanded SSA partitions.
12615 (record_alignment_for_reg_var): New, factored out of...
12616 (expand_one_var): ... this.
12617 (expand_one_ssa_partition): New.
12618 (adjust_one_expanded_partition_var): New.
12619 (expand_one_register_var): Check and skip already expanded SSA
12620 partitions.
12621 (expand_used_vars): Don't create DECLs for anonymous SSA
12622 names. Expand all SSA partitions, then adjust all SSA names.
12623 (pass::execute): Replace the loops that set
12624 SA.partition_to_pseudo from partition leaders and cleared
12625 DECL_RTL for multi-location variables, and that which used to
12626 rename vars and set attrs, with one that clears DECL_RTL and
12627 checks that PARMs and RESULTs default_defs match DECL_RTL.
12628 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12629 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12630 * explow.c (promote_ssa_mode): New.
12631 * explow.h (promote_ssa_mode): Declare.
12632 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12633 * function.c: Include cfgexpand.h.
12634 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12635 (use_register_for_parm_decl): Wrapper for the above to
12636 special-case the result_ptr.
12637 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12638 (split_complex_args): Take assign_parm_data_all argument.
12639 Pass it to rtl_for_parm. Set up rtl and context for split
12640 args.
12641 (assign_parms_augmented_arg_list): Adjust.
12642 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12643 multiple locations. Recognize split complex args.
12644 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12645 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12646 (assign_parm_setup_block): Prefer SSA-assigned location.
12647 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
12648 if stack_parm is NULL.
12649 (assign_parm_setup_stack): Prefer SSA-assigned location.
12650 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12651 rtl before testing for pointer bounds. Special-case result_ptr.
12652 (expand_function_start): Maybe reset DECL_RTL of result.
12653 Prefer SSA-assigned location for result and static chain.
12654 Factor out DECL_RESULT and SET_DECL_RTL.
12655 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12656 anonymous SSA names. Use promote_ssa_mode.
12657 (get_temp_reg): Likewise.
12658 (remove_ssa_form): Adjust.
12659 * stor-layout.c (layout_decl): Don't set mem attributes of
12660 non-MEMs.
12661 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12662 and get its reg_usage for reg invalidation.
12663 (compute_bb_dataflow): Pass it insn.
12664 (emit_notes_in_bb): Likewise.
12665
12666 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12667
12668 PR target/66217
12669 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
12670 prototype.
12671 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
12672 (rs6000_emit_2insn_and): Handle dot forms.
12673 * config/rs6000/rs6000.md (and<mode>3): Adjust.
12674 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
12675 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
12676
12677 2015-07-23 Richard Biener <rguenther@suse.de>
12678
12679 * generic-match-head.c: Include cgraph.h.
12680 * gimple-match-head.c: Likewise.
12681 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
12682 SSA names.
12683 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
12684 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
12685 pattern.
12686
12687 2015-07-23 Richard Biener <rguenther@suse.de>
12688
12689 * gimple-fold.c (fold_gimple_cond): Do not require folding
12690 results to pass valid_gimple_rhs_p.
12691 * tree-cfg.h (fold_cond_expr_cond): Remove.
12692 * tree-cfg.c (fold_cond_expr_cond): Likewise.
12693 (make_edges): Do not call it.
12694 * tree-inline.c (tree_function_versioning): Likewise.
12695
12696 2015-07-23 Tom de Vries <tom@codesourcery.com>
12697
12698 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
12699 vect_force_simple_reduction.
12700 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
12701 (vect_is_simple_reduction_1): Add and handle
12702 need_wrapping_integral_overflow parameter.
12703 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
12704 need_wrapping_integral_overflow parameter.
12705 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
12706 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
12707 decl.
12708
12709 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
12710
12711 PR tree-optimization/66926,66951
12712 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
12713 INNER_LOOP and fix up condition for renaming virtual operands.
12714
12715 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12716
12717 * combine.c (try_combine): Use std::swap instead of manually
12718 swapping.
12719
12720 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
12721
12722 * config/mips/i6400.md: New file.
12723 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
12724 (mips64r6): Likewise.
12725 (i6400): Define.
12726 * config/mips/mips-tables.opt: Regenerate.
12727 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
12728 (mips_issue_rate): Add support for i6400.
12729 (mips_multipass_dfa_lookahead): Likewise.
12730 * config/mips/mips.h (TUNE_I6400): Define.
12731 * config/mips/mips.md: Include i6400.md.
12732 (processor): Add i6400.
12733 * doc/invoke.texi (-march=@var{arch}): Add i6400.
12734
12735 2015-07-23 Richard Biener <rguenther@suse.de>
12736
12737 PR middle-end/66916
12738 * match.pd: Guard widen and sign-change comparison simplification
12739 with single_use.
12740
12741 2015-07-23 Richard Biener <rguenther@suse.de>
12742
12743 PR tree-optimization/66945
12744 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
12745 ::before_dom_children): Force the propagators idea of
12746 non-executable edges to materialize, not what the folder
12747 chooses.
12748
12749 2015-07-23 Richard Biener <rguenther@suse.de>
12750
12751 * gimple.h (gimple_cond_make_false): Use 0 != 0.
12752 (gimple_cond_make_true): Use 1 != 0.
12753
12754 2015-07-22 DJ Delorie <dj@redhat.com>
12755
12756 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
12757 slashes.
12758
12759 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
12760 (ashrhi3): Likewise.
12761 (lshrhi3): Likewise.
12762 (movhi): Take advantage of zero-extend to load small constants.
12763 (movpsi): Likewise.
12764 (and<mode>3): Likewise.
12765 (zero_extendqihi2): Likewise.
12766 (zero_extendqisi2): New.
12767 * config/msp430/constraints.md (N,O): New.
12768 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
12769
12770 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
12771
12772 PR target/66954
12773 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
12774 to enum feature_priority and feature_list.
12775 (fold_builtin_cpu): Add F_AES to enum processor_features
12776 and isa_names_table.
12777
12778 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12779
12780 PR driver/66737
12781 * config/i386/linux-common.h (MPX_SPEC): Use linker option
12782 for 64bit target only.
12783
12784 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
12785
12786 * config/nvptx/nvptx.c: Expand some comments.
12787
12788 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
12789
12790 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
12791 (cortex_a53_advsimd): ...This.
12792
12793 2015-07-22 Richard Biener <rguenther@suse.de>
12794
12795 * genmatch.c (expr::gen_transform): Clarify error message
12796 and display location.
12797
12798 2015-07-22 Richard Biener <rguenther@suse.de>
12799
12800 * genmatch.c (struct operand): Add location member.
12801 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
12802 constructors.
12803 (struct simplify): Remove match_location and result_location
12804 members.
12805 (elsehwere): Adjust.
12806
12807 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
12808
12809 * config/mips/m5100.md: New file.
12810 * config/mips/mips-cpus.def (m5100, m5101): Define.
12811 * config/mips/mips-tables.opt: Regenerate.
12812 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
12813 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
12814 -march=m5101 to -mips32r5.
12815 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
12816 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
12817 !-msoft-float.
12818 * config/mips/mips.md: Include m5100.md.
12819 (processor): Add m5100.
12820 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
12821
12822 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
12823
12824 * config/mips/mips-cpus.def (interaptiv): Define.
12825 * config/mips/mips-tables.opt: Regenerate.
12826 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
12827 -mips32r2.
12828 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
12829 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
12830
12831 2015-07-22 Jiong Wang <jiong.wang@arm.com>
12832
12833 PR target/63521
12834 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
12835 (HONOR_REG_ALLOC_ORDER): Define.
12836
12837 2015-07-22 Richard Biener <rguenther@suse.de>
12838
12839 PR tree-optimization/66952
12840 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
12841 blocks we end up executing unconditionally reset all SSA
12842 info such as range and alignment.
12843 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
12844 * tree-ssanames.c (reset_flow_sensitive_info): New function.
12845
12846 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12847
12848 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
12849 typo in attribute.
12850
12851 2015-07-22 Richard Biener <rguenther@suse.de>
12852
12853 * genmatch.c (parser::parse_result): Properly handle
12854 match with result operands and conditions.
12855
12856 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
12857
12858 PR target/63870
12859 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12860 Add qualifier_struct_load_store_lane_index.
12861 (aarch64_types_loadstruct_lane_qualifiers): Use
12862 qualifier_struct_load_store_lane_index for lane index argument for
12863 last argument.
12864 (aarch64_types_storestruct_lane_qualifiers): Ditto.
12865 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12866 (aarch64_simd_expand_args): Add new argument describing mode of
12867 builtin. Check lane bounds for arguments with
12868 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12869 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
12870 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
12871 (aarch64_simd_expand_builtin): Handle arguments with
12872 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
12873 aarch64_simd_expand_args.
12874 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
12875 vst[234]_lane with BUILTIN_VALLDIF.
12876 * config/aarch64/aarch64-simd.md:
12877 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
12878 endianness reversal on lane index.
12879 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
12880 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
12881 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
12882 (vec_store_lanesci_lane<mode>): Ditto.
12883 (vec_store_lanesxi_lane<mode>): Ditto.
12884 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
12885 reversal of lane index.
12886 (aarch64_ld3_lane<mode>): Ditto.
12887 (aarch64_ld4_lane<mode>): Ditto.
12888 (aarch64_st2_lane<mode>): Ditto.
12889 (aarch64_st3_lane<mode>): Ditto.
12890 (aarch64_st4_lane<mode>): Ditto.
12891 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
12892 to qmode. Add new mode parameter. Update uses.
12893 (__LD3_LANE_FUNC): Ditto.
12894 (__LD4_LANE_FUNC): Ditto.
12895 (__ST2_LANE_FUNC): Ditto.
12896 (__ST3_LANE_FUNC): Ditto.
12897 (__ST4_LANE_FUNC): Ditto.
12898
12899 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
12900
12901 * doc/invoke.texi (Language Independent Options): Rename node to
12902 Diagnostic Message Formatting Options.
12903
12904 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
12905
12906 PR ipa/66424.
12907 * lra-remat.c (operand_to_remat): Prevent using insns with input
12908 subregs processed separately by IRA.
12909
12910 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
12911
12912 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
12913 straight loops.
12914 (single_imm_use): Check for iterator node.
12915 (num_imm_uses): Likewise.
12916 * tree-ssa-operands.c (has_zero_uses_1): Delete.
12917 (single_imm_use_1): Check for iterator node.
12918
12919 2015-07-21 Mike Frysinger <vapier@gentoo.org>
12920 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12921
12922 * configure.ac: Add check for new options in isl-0.15.
12923 * config.in, configure: Rebuilt.
12924 * graphite-blocking.c: Include <isl/constraint.h>
12925 * graphite-interchange.c, graphite-poly.c: Likewise.
12926 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
12927 * graphite.c: Likewise.
12928 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
12929 <isl/union_set.h>.
12930 * graphite-dependences.c: Include <isl/constraint.h>.
12931 (max_number_of_out_dimensions): Returns isl_stat.
12932 (extend_schedule_1): Likewise
12933 (extend_schedule): Corresponding changes.
12934 * graphite-optimize-isl.c: Include <isl/constraint.h> and
12935 <isl/union_set.h>.
12936 (getSingleMap): Change return type of isl_stat.
12937 (optimize_isl): Conditionally use
12938 isl_options_set_schedule_serialize_sccs.
12939 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
12940 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
12941
12942 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
12943
12944 PR target/66956
12945 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
12946 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
12947
12948 2015-07-21 Richard Biener <rguenther@suse.de>
12949
12950 PR tree-optimization/66948
12951 * genmatch.c (capture_info::walk_match): Also recurse to
12952 captures. Properly compute expr state from captures of
12953 captures.
12954 * match.pd: Add single-use guards to
12955 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
12956
12957 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12958
12959 * config/nvptx/mkoffload.c (process): Add static destructor call.
12960
12961 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12962
12963 PR middle-end/66915
12964 * match.pd (A - B -> A + (-B)): Don't allow folding
12965 when type if a fixed-point type.
12966
12967 2015-07-20 DJ Delorie <dj@redhat.com>
12968
12969 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
12970 (iorqi3_real): Likewise for set1.
12971
12972 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
12973
12974 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
12975 for !TARGET_64BIT.
12976
12977 2015-07-20 Aditya Kumar <hiraditya@msn.com>
12978
12979 * graphite-isl-ast-to-gimple.c:
12980 Refactor so that each function can access 'region'. This will help
12981 maintain a parameter rename_map within a region.
12982
12983 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12984
12985 * config/rs6000/rs6000.md (*lt0_disi): New.
12986
12987 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
12988
12989 PR target/66217
12990 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
12991 "available letters" comment.
12992 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
12993 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
12994 and_2rld_operand): Delete.
12995 (and_operand): Adjust.
12996 (rotate_mask_operator): New.
12997 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
12998 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
12999 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13000 extract_ME): Delete.
13001 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13002 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13003 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13004 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13005 rs6000_emit_2insn_and): New.
13006 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13007 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13008 includes_rldic_lshift_p, includes_rldicr_lshift_p,
13009 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13010 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13011 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13012 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13013 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13014 rs6000_emit_2insn_and): New.
13015 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13016 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13017 handling.
13018 <NOT>: Don't fall through to next case.
13019 <AND>: Handle the various rotate-and-mask cases directly.
13020 <IOR>: Always cost as one insn.
13021 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13022 (and<mode>3): Adjust expander for the new patterns.
13023 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13024 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13025 (*and<mode>3_imm_dot_shifted): New.
13026 (*and<mode>3_mask): Delete, rewrite as ...
13027 (and<mode>3_mask): ... New.
13028 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13029 (andsi3_internal0_nomc): Delete.
13030 (*andsi3_internal6): Delete.
13031 (*and<mode>3_2insn): New.
13032 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13033 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13034 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13035 *insvdi_internal3): Delete.
13036 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13037 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13038 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13039 *ior<mode>_mask): New.
13040 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13041 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13042 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13043 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13044 Delete.
13045 (ashr<mode>3): Delete expander.
13046 (*ashr<mode>3): Rename to ...
13047 (ashr<mode>3): ... This.
13048 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13049 (*rotldi3_internal4, *rotldi3_internal5 and split,
13050 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13051 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13052 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13053 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13054 (splitter for loading a mask): Adjust.
13055 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13056
13057 2015-07-20 Marek Polacek <polacek@redhat.com>
13058
13059 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13060 output_add_clobbers, output_added_clobbers_hard_reg_p,
13061 gen_rtx_scratch): Remove declarations.
13062
13063 2015-07-20 Marek Polacek <polacek@redhat.com>
13064
13065 PR c++/55095
13066 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13067
13068 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13069
13070 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13071 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13072
13073 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13074
13075 * combine.c (combine_simplify_rtx): Move simplification step
13076 before various transformations/substitutions.
13077
13078 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
13079
13080 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13081 (struct int_traits): Likewise.
13082
13083 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13084
13085 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13086 function to vmsdbgout_function_decl.
13087
13088 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13089
13090 PR target/66922
13091 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13092 from misaligned positions.
13093 (ix86_expand_pinsr): Reject insertions to misaligned positions.
13094
13095 2015-07-18 Sebastian Pop <s.pop@samsung.com>
13096
13097 PR middle-end/46851
13098 PR middle-end/60340
13099 * Makefile.in: Removed omega.o.
13100 * common.opt: Document flag fcheck-data-deps as deprecated.
13101 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13102 its associated params: omega-max-vars, omega-max-geqs,
13103 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13104 omega-max-keys, omega-eliminate-redundant-constraints.
13105 * doc/loop.texi: Remove all the section on Omega.
13106 * graphite-blocking.c: Include missing params.h: it used to be
13107 included through tree-data-ref.h and omega.h.
13108 * graphite-isl-ast-to-gimple.c: Same.
13109 * graphite-optimize-isl.c: Same.
13110 * graphite-sese-to-poly.c: Same.
13111 * graphite.c: Same.
13112 * omega.c: Remove.
13113 * omega.h: Remove.
13114 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13115 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13116 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13117 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13118 * passes.def: Remove pass_check_data_deps.
13119 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13120 (dump_conflict_function): Same.
13121 (dump_subscript): Same.
13122 (print_direction_vector): Same.
13123 (print_dir_vectors): Same.
13124 (print_lambda_vector): Same.
13125 (print_dist_vectors): Same.
13126 (dump_data_dependence_relation): Same.
13127 (dump_data_dependence_relations): Same.
13128 (dump_dist_dir_vectors): Same.
13129 (dump_ddrs): Same.
13130 (init_omega_eq_with_af): Removed.
13131 (omega_extract_distance_vectors): Removed.
13132 (omega_setup_subscript): Removed.
13133 (init_omega_for_ddr_1): Removed.
13134 (init_omega_for_ddr): Removed.
13135 (ddr_consistent_p): Removed.
13136 (compute_affine_dependence): Do not use omega to check data
13137 dependences.
13138 (compute_data_dependences_for_bb): Removed.
13139 (analyze_all_data_dependences): Removed.
13140 (tree_check_data_deps): Removed.
13141 * tree-data-ref.h: Do not include omega.h.
13142 (compute_data_dependences_for_bb): Removed.
13143 (tree_check_data_deps): Removed.
13144 * tree-ssa-loop.c (pass_check_data_deps): Removed.
13145 (make_pass_check_data_deps): Removed.
13146 * tree-ssa-phiopt.c: Include params.h.
13147 * tree-vect-data-refs.c: Same.
13148 * tree-vect-slp.c: Same.
13149
13150 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13151
13152 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13153 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
13154 (mem->fpreg splitters): Ditto.
13155 (general_operand->nonimmediate_operand splitter): Use explicit modes.
13156 Disable DFmode for TARGET_64BIT.
13157
13158 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
13159
13160 PR target/66906
13161 * config/i386/i386.c (ix86_expand_prologue): Replicate static
13162 chain on the stack.
13163
13164 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13165
13166 * config/nvptx/mkoffload.c (process): Constify host data.
13167 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13168 Constify host data.
13169 (generate_host_descr_file): Likewise.
13170
13171 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
13172 Sebastian Pop <s.pop@samsung.com>
13173
13174 PR middle-end/61929
13175 * graphite-dependences.c (add_pdr_constraints): Renamed
13176 pdr->extent to pdr->subscript_sizes.
13177 * graphite-interchange.c (build_linearized_memory_access): Add
13178 back all gcc_assert's that the "isl_int to isl_val conversion"
13179 patch has removed. Refactored.
13180 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13181 * graphite-poly.c (new_poly_dr): Same.
13182 (free_poly_dr): Same.
13183 * graphite-poly.h (struct poly_dr): Same.
13184 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13185 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13186 * graphite-scop-detection.h: Fix space.
13187 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13188 back all gcc_assert's removed by a previous patch.
13189 (wrap): Remove the_isl_ctx global variable that the same patch has
13190 added.
13191 (build_loop_iteration_domains): Same.
13192 (add_param_constraints): Same.
13193 (pdr_add_data_dimensions): Same. Refactored.
13194 (build_poly_dr): Renamed extent to subscript_sizes.
13195
13196 2015-07-17 Marek Polacek <polacek@redhat.com>
13197
13198 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13199 * match.pd: ... here.
13200
13201 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13202
13203 * config/nvptx/mkoffload.c (process): Constify target data.
13204 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13205 Constify target data.
13206 (generate_target_offloadend_file): Likewise.
13207
13208 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13209
13210 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13211 to allow renaming of PHI arguments on edges incoming from outer
13212 loop header, add corresponding check before start PHI iterator.
13213 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13214 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13215 with true force_vectorize. Set-up dominator for outer loop too.
13216 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13217 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13218 was marked with force_vectorize and has restricted cfg.
13219 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13220 inner loop.
13221 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13222 do peeling for outer loops.
13223
13224 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
13225 Matthias Klose <doko@ubuntu.com>
13226
13227 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13228 build-sysroot, sysroot from the `Miscenalleous configure options' to
13229 the `Directories' section and strip trailing `/' from with_sysroot.
13230 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13231 * configure: Regenerated.
13232
13233 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13234
13235 PR target/66824
13236 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13237 (TARGET_HARD_DF_REGS): Ditto.
13238 (TARGET_HARD_XF_REGS): Ditto.
13239 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13240 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13241 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13242 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13243 (*movsf_internal): Add alternatives 16 and 17. Enable
13244 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13245
13246 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13247
13248 PR rtl-optimization/66891
13249 * calls.c (expand_call): Wrap precompute_register_parameters with
13250 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
13251
13252 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13253
13254 * config/nvptx/mkoffload.c (process): Constify mapping variables.
13255 Define target data struct and initialize it.
13256
13257 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
13258
13259 PR rtl-optimization/66626
13260 * ira.h (emit-rtl.h): Include.
13261 (non_spilled_static_chain_regno_p): New.
13262 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
13263 unless it is non spilled static chain pseudo.
13264 (assign_hard_rego): Spill memory profitable allocno unless it is
13265 non spilled static chain pseudo.
13266 (allocno_spill_priority_compare): Put non spilled static chain
13267 pseudo at the end of sorted array.
13268 (improve_allocation): Do nothing if we have static chain and
13269 non-local goto.
13270 (allocno__priority_compare_func): Put non spilled static chain
13271 pseudo at the beginning of sorted array.
13272 (move_spill_restore): Ignore non spilled static chain pseudo.
13273 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
13274 to non spilled static chain pseudo.
13275 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
13276 pseudo at the beginning of sorted array.
13277 (spill_for): Spill non spilled static chain pseudo last.
13278 * lra-constraints.c (lra_constraints): Remove static chain pseudo
13279 check for equivalence.
13280
13281 2015-07-16 Martin Liska <mliska@suse.cz>
13282
13283 PR ipa/66896.
13284 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
13285 dst_ctx if it does not exist.
13286
13287 2015-07-16 Martin Liska <mliska@suse.cz>
13288
13289 * hash-set.h (remove): New function.
13290 (iterator): New iteration class for hash_set.
13291
13292 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13293
13294 * genattrtab.c (make_canonical): Add a file_location parameter.
13295 Use fatal_at rather than fatal.
13296 (get_attr_value): Likewise. Update call to make_canonical.
13297 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
13298 (make_internal_attr): Update calls accordingly.
13299
13300 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13301
13302 * read-md.h (message_with_line, error_with_line): Delete.
13303 * read-md.c (message_with_line, error_with_line): Delete.
13304 * gensupport.h: Include read-md.h.
13305 (md_rtx_info): New structure.
13306 (read_md_rtx): Use it. Return a bool success value.
13307 * gensupport.c (read_md_rtx): Likewise.
13308 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
13309 (main): Update after interface changes.
13310 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
13311 (main): Update after interface changes.
13312 * genattrtab.c (insn_code_number): Delete.
13313 (optimize_attrs): Add a max_insn_code parameter and use it instead
13314 of insn_code_number.
13315 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
13316 Use *_at rather than *_with_line functions.
13317 (gen_insn): Likewise.
13318 (gen_delay): Likewise.
13319 (gen_insn_reserv): Likewise.
13320 (gen_bypass): Take an md_rtx_info rather than an rtx.
13321 (main): Update after interface changes. Use a local max_insn_code
13322 variable instead of insn_code_number.
13323 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
13324 an rtx. Use fatal_at rather than fatal.
13325 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
13326 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
13327 (gen_absence_set, gen_final_absence_set, gen_automaton)
13328 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
13329 (main): Update after interface changes.
13330 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
13331 and code number.
13332 (main): Update after interface changes.
13333 * genconditions.c (main): Use new read_md_rtx interface.
13334 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
13335 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
13336 (main): Update after interface changes.
13337 * genemit.c (insn_code_number, insn_index_number): Delete.
13338 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13339 Use fatal_at rather than fatal.
13340 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
13341 rather than fatal.
13342 (gen_split): Likewise.
13343 (main): Update after interface changes.
13344 * genextract.c (line_no): Delete.
13345 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13346 Update call to walk_rtx.
13347 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
13348 rather than message_with_line.
13349 (walk_rtx): Add an md_rtx_info argument. Update call to
13350 VEC_safe_set_locstr.
13351 (main): Update after interface changes.
13352 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
13353 and lineno. Use error_at rather than separate message_with_line
13354 calls and have_error assignments.
13355 (main): Update after interface changes.
13356 * genmddump.c (main): Use new read_md_rtx interface.
13357 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
13358 (main): Update after interface changes.
13359 * genoutput.c (next_code_number): Delete.
13360 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13361 (gen_peephole, gen_expand, gen_split): Likewise.
13362 (note_constraint): Likewise. Use *_at rather than *_with_line
13363 functions.
13364 (main): Update after interface changes.
13365 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
13366 rtx and lineno.
13367 (main): Update after interface changes.
13368 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
13369 than an rtx and lineno.
13370 (process_define_constraint): Likewise.
13371 (process_define_register_constraint): Likewise.
13372 (main): Update after interface changes.
13373 * genrecog.c (next_insn_code, pattern_lineno): Delete.
13374 (validate_pattern): Replace top-level rtx with an md_rtx_info.
13375 Use *_at rather than *_with_line functions.
13376 (match_pattern_2): Likewise.
13377 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
13378 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
13379 Use *_at rather than *_with_line functions.
13380 * gentarget-def.c (add_insn): New function.
13381 (main): Use it. Use new read_md_rtx interface.
13382
13383 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13384
13385 * gensupport.h (compute_test_codes): Take a file_location rather
13386 than a line number.
13387 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
13388 rather than *_with_line functions.
13389 (process_define_predicate): Update call to compute_test_codes.
13390 * genpreds.c (validate_exp): Take a file_location rather than a
13391 line number. Use *_at functions rather than *_with_line functions.
13392 (process_define_predicate): Update call to validate_exp.
13393 (constraint_data): Replace lineno field with a file_location.
13394 (add_constraint): Take a file_location rather than a line number.
13395 Use *_at functions rather than *_with_line functions. Fix error
13396 message for address constraints. Update after changes to
13397 validate_exp, constraint_data and compute_test_codes.
13398 (process_define_constraint): Update accordingly.
13399 (process_define_register_constraint): Likewise.
13400
13401 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13402
13403 * genoutput.c (data): Use a file_location to record the source
13404 position.
13405 (nothing): Delete.
13406 (idata, idata_end): Remove initialization.
13407 (constraint_data): Replace lineno with a file_location.
13408 (output_insn_data): Update after changes to data.
13409 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
13410 (scan_operands): Likewise, using *_at rather than *_with_line
13411 functions.
13412 (process_template): Likewise.
13413 (validate_insn_alternatives): Likewise.
13414 (validate_insn_operands): Likewise.
13415 (validate_optab_operands): Likewise.
13416 (init_insn_for_nothing): Initialize idata and idata_end.
13417 (note_constraint): Update after changes to constraint_data,
13418 using at rather than with_line functions.
13419 (mdep_constraint_len): Take a file_location rather than a
13420 line number. Use at rather than with_line functions.
13421
13422 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13423
13424 * read-md.h (fatal_at): Declare.
13425 * read-md.c (fatal_at): New function.
13426 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
13427 to record the source position.
13428 (check_attr_test): Take a file_location instead of a line number.
13429 Use fatal_at instead of fatal.
13430 (check_attr_value): Update after above changes, using "at"
13431 rather than "with_line" reporting functions.
13432 (convert_set_attr_alternative): Likewise.
13433 (gen_attr): Likewise.
13434 (check_defs): Likewise. Don't assign to read_md_filename.
13435 (gen_insn): Update initialization after above changes.
13436 (gen_delay): Likewise.
13437 (write_insn_cases): Print the filename for a define_peephole.
13438 (gen_insn_reserv): Take a line number as argument and update
13439 the call to check_attr_test.
13440 (main): Pass a line number to gen_insn_reserv.
13441
13442 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13443
13444 * read-md.h (file_location): New structure.
13445 (directive_handler_t): Take a file_location rather than a line number.
13446 (message_at, error_at): Declare.
13447 (read_skip_construct): Delete.
13448 * read-md.c (message_with_line_1): Replace with...
13449 (message_at_1): ...this new function.
13450 (message_at, error_at): New functions.
13451 (message_with_line, error_with_line): Update to use message_at_1.
13452 (handle_enum): Take a file_location rather than a line number
13453 and use error_at for error reporting.
13454 (handle_include): Likewise.
13455 (read_skip_construct): Likewise. Make static.
13456 (handle_file): Update after above changes. Pass a file_location
13457 rather than a line number to handle_directive.
13458 * gensupport.c (queue_elem): Replace separate filename and lineno
13459 with a file_location.
13460 (queue_pattern): Replace filename and lineno arguments with a
13461 file_location. Update after change to queue_elem.
13462 (process_define_predicate): Replace lineno argument with a
13463 file_location and use error_at for error reporting. Update
13464 after above changes.
13465 (process_rtx): Likewise.
13466 (subst_pattern_match): Likewise.
13467 (get_alternatives_number): Likewise.
13468 (alter_predicate_for_insn): Likewise.
13469 (rtx_handle_directive): Likewise.
13470 (is_predicable): Update after above changes, using error_at rather
13471 than error_with_line.
13472 (has_subst_attribute): Likewise.
13473 (identify_predicable_attribute): Likewise.
13474 (alter_attrs_for_subst_insn): Likewise.
13475 (process_one_cond_exec): Likewise.
13476 (process_substs_on_one_elem): Likewise.
13477 (process_define_subst): Likewise.
13478 (check_define_attr_duplicates): Likewise.
13479 (read_md_rtx): Update after change to queue_elem.
13480
13481 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13482
13483 * genoutput.c (next_index_number): Delete.
13484 (data): Remove index_number.
13485 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
13486 (main): Remove manipulation of next_index_number.
13487
13488 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
13489
13490 * genattrtab.c (check_attr_value): Remove handling of null attrs.
13491 (make_canonical): Likewise.
13492
13493 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
13494
13495 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
13496 instead of adjust_address_nv.
13497 (restore_stack_nonlocal): Likewise.
13498 (nonlocal_goto): Likewise.
13499
13500 2015-07-16 Tom de Vries <tom@codesourcery.com>
13501
13502 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
13503 not have a corresponding loop header phi.
13504
13505 2015-07-16 Tom de Vries <tom@codesourcery.com>
13506
13507 * tree-parloops.c (create_loads_for_reductions): Handle case that
13508 reduction is unused.
13509
13510 2015-07-16 Richard Biener <rguenther@suse.de>
13511
13512 PR tree-optimization/66894
13513 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
13514 about deriving NE_EXPR from truncated values.
13515
13516 2015-07-16 Martin Liska <mliska@suse.cz>
13517
13518 * alloc-pool.h
13519 (object_allocator): Add new class.
13520 (pool_allocator::initialize): Use the underlying class.
13521 (pool_allocator::allocate): Likewise.
13522 (pool_allocator::remove): Likewise.
13523 (operator new): A new generic allocator.
13524 * asan.c (struct asan_mem_ref): Remove unused members.
13525 (asan_mem_ref_new): Replace new operator with
13526 object_allocator::allocate.
13527 (free_mem_ref_resources): Change deallocation.
13528 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
13529 with object_allocator.
13530 * config/sh/sh.c (add_constant): Replace new operator with
13531 object_allocator::allocate.
13532 (sh_reorg): Change call to a release method.
13533 * cselib.c (struct elt_list): Remove unused members.
13534 (new_elt_list): Replace new operator with
13535 object_allocator::allocate.
13536 (new_elt_loc_list): Likewise.
13537 (new_cselib_val): Likewise.
13538 (unchain_one_elt_list): Change delete operator with remove method.
13539 (unchain_one_elt_loc_list): Likewise.
13540 (unchain_one_value): Likewise.
13541 (cselib_finish): Release newly added static allocators.
13542 * cselib.h (struct cselib_val): Remove unused members.
13543 (struct elt_loc_list): Likewise.
13544 * df-problems.c (df_chain_alloc): Replace pool_allocator with
13545 object_allocator.
13546 * df-scan.c (struct df_scan_problem_data): Likewise.
13547 (df_scan_alloc): Likewise.
13548 * df.h (struct dataflow): Likewise.
13549 * dse.c (struct read_info_type): Likewise.
13550 (struct insn_info_type): Likewise.
13551 (struct dse_bb_info_type): Likewise.
13552 (struct group_info): Likewise.
13553 (struct deferred_change): Likewise.
13554 (get_group_info): Likewise.
13555 (delete_dead_store_insn): Likewise.
13556 (free_read_records): Likewise.
13557 (replace_read): Likewise.
13558 (check_mem_read_rtx): Likewise.
13559 (scan_insn): Likewise.
13560 (dse_step1): Likewise.
13561 (dse_step7): Likewise.
13562 * et-forest.c (struct et_occ): Remove unused members.
13563 (et_new_occ): Use allocate instead of new operator.
13564 (et_new_tree): Likewise.
13565 (et_free_tree): Call release method explicitly.
13566 (et_free_tree_force): Likewise.
13567 (et_free_pools): Likewise.
13568 (et_split): Use remove instead of delete operator.
13569 * et-forest.h (struct et_node): Remove unused members.
13570 * ipa-cp.c: Change pool_allocator to object_allocator.
13571 * ipa-inline-analysis.c: Likewise.
13572 * ipa-profile.c: Likewise.
13573 * ipa-prop.c: Likewise.
13574 * ipa-prop.h: Likewise.
13575 * ira-build.c (initiate_cost_vectors): Cast return value.
13576 (ira_allocate_cost_vector): Likewise.
13577 * ira-color.c (struct update_cost_record): Remove unused members.
13578 * lra-int.h (struct lra_live_range): Likewise.
13579 (struct lra_copy): Likewise.
13580 (struct lra_insn_reg): Likewise.
13581 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
13582 * lra.c (new_insn_reg): Replace new operator with allocate method.
13583 (free_insn_regs): Same for operator delete.
13584 (finish_insn_regs): Release new static allocator.
13585 (finish_insn_recog_data): Likewise.
13586 (lra_free_copies): Replace delete operator with remove method.
13587 (lra_create_copy): Replace operator new with allocate method.
13588 (invalidate_insn_data_regno_info): Same for remove method.
13589 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
13590 (free_debug_insn_changes): Replace delete operator with remove method.
13591 (replace_oldest_value_reg): Replace operator new with allocate method.
13592 (pass_cprop_hardreg::execute): Release new static variable.
13593 * sched-deps.c (sched_deps_init): Change pool_allocator to
13594 object_allocator.
13595 * sel-sched-ir.c: Likewise.
13596 * sel-sched-ir.h: Likewise.
13597 * stmt.c (expand_case): Likewise.
13598 (expand_sjlj_dispatch_table): Likewise.
13599 * tree-sra.c (struct access): Remove unused members.
13600 (struct assign_link): Likewise.
13601 (sra_deinitialize): Release newly added static pools.
13602 (create_access_1):Replace operator new with allocate method.
13603 (build_accesses_from_assign): Likewise.
13604 (create_artificial_child_access): Likewise.
13605 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
13606 pool_allocator to object_allocator.
13607 * tree-ssa-pre.c: Likewise.
13608 * tree-ssa-reassoc.c: Likewise.
13609 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13610 * tree-ssa-strlen.c: Likewise.
13611 * tree-ssa-structalias.c: Likewise.
13612 * var-tracking.c (onepart_pool_allocate): New function.
13613 (unshare_variable): Use the newly added function.
13614 (variable_merge_over_cur): Likewise.
13615 (variable_from_dropped): Likewise.
13616 (variable_was_changed): Likewise.
13617 (set_slot_part): Likewise.
13618 (emit_notes_for_differences_1): Likewise.
13619 (vt_finalize): Release newly added static pools.
13620
13621 2015-07-16 Martin Jambor <mjambor@suse.cz>
13622
13623 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
13624 all uses. Fix two typos in its general comment.
13625 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
13626
13627 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
13628
13629 * config/i386/linux-common.h (LINK_MPX): New.
13630 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
13631 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
13632 indicating '-z bndplt' support by linker.
13633 * configure: Regenerate.
13634 * config.in: Regenerate.
13635
13636 2015-07-16 Richard Biener <rguenther@suse.de>
13637
13638 * fold-const.c (fold_widened_comparison): Remove.
13639 (fold_sign_changed_comparison): Likewise.
13640 (fold_comparison): Move widened and sign-changed comparison
13641 simplification ...
13642 * match.pd: ... to patterns here.
13643 * generic-match-head.c: Include target.h.
13644 * gimple-match-head.c: Likewise.
13645
13646 2015-07-16 Richard Biener <rguenther@suse.de>
13647
13648 * tree-ssa-dom.c (dom_valueize): New function.
13649 (record_temporary_equivalences): Also record equivalences
13650 for dominating stmts that have uses of equivalences we are
13651 about to record.
13652
13653 2015-07-16 Bin Cheng <bin.cheng@arm.com>
13654
13655 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
13656 add_autoinc_candidates.
13657 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
13658 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
13659 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
13660 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
13661 Call new function.
13662 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
13663 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
13664 Remove parameter struct iv*. Call add_autoinc_candidates here.
13665 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
13666 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
13667 Call new function.
13668 (find_iv_candidates): Call new functions.
13669
13670 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
13671
13672 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
13673 uninitialized-variable warning.
13674
13675 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
13676
13677 PR target/65249
13678 * config/sh/sh.md (movdi): Split simple reg move to two movsi
13679 when the destination is R0.
13680
13681 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
13682
13683 PR target/66866
13684 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
13685 * config/i386/i386.c (ix86_expand_pextr): New function.
13686 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
13687 for non-lowpart subregs.
13688 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
13689 (insv<mode>): Use SWI248 mode iterator.
13690 (insv<mode>_1): Ditto.
13691
13692 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13693 Sebastian Pop <s.pop@samsung.com>
13694
13695 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
13696 iterator to use_stmt.
13697
13698 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13699 Sebastian Pop <s.pop@samsung.com>
13700
13701 * graphite-scop-detection.c (build_scops_1): Discard scops for
13702 which entry==exit.
13703
13704 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13705 Sebastian Pop <s.pop@samsung.com>
13706
13707 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
13708 case of a return statement in scop.
13709
13710 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
13711 Sebastian Pop <s.pop@samsung.com>
13712
13713 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
13714 INTEGER_TYPE parameters.
13715 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
13716 VECTOR_CST in scan_tree_for_params.
13717 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
13718
13719 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13720
13721 * gimple-pretty-print.h: Don't include pretty-print.h.
13722 * tree-streamer.h: Don't include lto-streamer.h.
13723 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
13724 * gimple-streamer-in.c: Remove redundant includes.
13725 * gimple-streamer-out.c: Likewise.
13726 * ipa-devirt.c: Likewise.
13727 * ipa-icf.c: Likewise.
13728 * ipa-inline-analysis.c: Likewise.
13729 * ipa-polymorphic-call.c: Likewise.
13730 * ipa-profile.c: Likewise.
13731 * ipa-prop.c: Likewise.
13732 * ipa-pure-const.c: Likewise.
13733 * lto-cgraph.c: Likewise.
13734 * lto-streamer-in.c: Likewise.
13735 * lto-streamer-out.c: Likewise.
13736 * lto-streamer.c: Likewise.
13737 * tree-streamer-in.c: Likewise.
13738 * tree-streamer-out.c: Likewise.
13739 * tree-streamer.c: Likewise.
13740
13741 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
13742
13743 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
13744 include input.h.
13745 * opts.c: Remove multiline #include comment.
13746
13747 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
13748
13749 * config/nvptx/mkoffload.c (process): Add C++ protection to
13750 emitted code.
13751
13752 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13753
13754 PR target/66854
13755 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
13756 null before IEEE 128-bit floating point support patch.
13757
13758 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13759
13760 * simplify-rtx.c (simplify_ternary_operation): Add simplification
13761 for (!c) != {0,...,0} ? a : b for vector modes.
13762
13763 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
13764 Martin Jambor <mjambor@suse.cz>
13765
13766 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
13767 struct func_body_info* instead of struct ipa_node_params*, expecting
13768 fbi->info to be filled in. Replace throughout. Adjust call to
13769 ipa_load_from_parm_agg.
13770 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
13771 instead of struct ipa_node_params*. Adjust calls to other functions
13772 so that they pass either fbi or fbi->info.
13773 (set_switch_stmt_execution_predicate): Likewise.
13774 (will_be_nonconstant_predicate): Likewise.
13775 (compute_bb_predicates): Likewise.
13776 (estimate_function_body_sizes): Move asserts earlier. Fill in
13777 struct func_body_info, replace parms_info with fbi.info. Adjust
13778 calls to functions that now accept struct func_body_info.
13779 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
13780 (struct func_body_info): Likewise.
13781 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
13782 remove static. Adjust callers.
13783 (ipa_load_from_parm_agg): Remove.
13784 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
13785 (func_body_info): Likewise.
13786 (ipa_load_from_parm_agg): Adjust prototype.
13787
13788 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13789
13790 * gensupport.c (rtx_handle_directive): Adjust.
13791 * read-rtl.c (apply_iterators): Take vector to add rtxs to
13792 instead of expr list rtx.
13793 (add_define_attr_for_define_subst): Likewise.
13794 (add_define_subst_attr): Likewise.
13795 (read_subst_mapping): Likewise.
13796 (read_rtx): Likewise.
13797 * rtl.h (read_rtx): Adjust.
13798
13799 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13800
13801 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
13802
13803 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13804
13805 PR target/58066
13806 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
13807 (*tls_local_dynamic_base_64_<mode>): Ditto.
13808 (*tls_local_dynamic_base_64_largepic): Ditto.
13809 (tls_global_dynamic_64_<mode>): Update expander pattern.
13810 (tls_local_dynamic_base_64_<mode>): Ditto.
13811
13812 2015-07-15 Richard Biener <rguenther@suse.de>
13813
13814 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
13815 and bool_var == 1 -> bool_var simplifications ...
13816 * match.pd: ... to patterns here. Factor out negate_expr_p
13817 cases from the A - B -> A + (-B) patterns as negate_expr_p
13818 predicate and add a -(A + B) -> (-B) - A pattern.
13819
13820 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13821
13822 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
13823
13824 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
13825 Robert Suchanek <robert.suchanek@imgtec.com>
13826
13827 * config/mips/mips.c (mips_int_mask): New enum.
13828 (mips_shadow_set): Likewise.
13829 (int_mask): New variable.
13830 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
13831 (machine_function): Add int_mask and use_shadow_register_set.
13832 (mips_attribute_table): Add attribute handlers for interrupt and
13833 use_shadow_register_set.
13834 (mips_interrupt_mask): New static function.
13835 (mips_handle_interrupt_attr): Likewise.
13836 (mips_handle_use_shadow_register_set_attr): Likewise.
13837 (mips_use_shadow_register_set): Change return type to enum
13838 mips_shadow_set. Add argument handling for use_shadow_register_set
13839 attribute.
13840 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
13841 compare with mips_shadow_set enum.
13842 (mips_compute_frame_info): Add interrupt mask and
13843 use_shadow_register_set to per-function information structure.
13844 Add a stack slot for EPC unconditionally.
13845 (mips_expand_prologue): Compare use_shadow_register_set value
13846 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
13847 masked interrupt register but in EIC mode use K0 and save Cause in K0.
13848 EPC saved and restored unconditionally. Use PMODE_INSN macro when
13849 copying the stack pointer from the shadow register set.
13850 * config/mips/mips.h (SR_IM0): New define.
13851 * config/mips/mips.md (mips_rdpgpr): Rename to...
13852 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
13853 * doc/extend.texi (Declaring Attributes of Functions): Document
13854 optional arguments for interrupt and use_shadow_register_set
13855 attributes.
13856
13857 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
13858
13859 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
13860 interrupt attribute.
13861 (mips_expand_prologue): Disable the floating point unit in an ISR.
13862 * config/mips/mips.h (SR_COP1): New define.
13863
13864 2015-07-15 Richard Biener <rguenther@suse.de>
13865
13866 * genmatch.c (parser::peek, parser::peek_ident): Add argument
13867 to tell how many tokens to peek ahead (default 1).
13868 (parser::eat_token, parser::eat_ident): Return token consumed.
13869 (parser::parse_result): Parse new switch statement.
13870 * match.pd: Use case statements where appropriate.
13871
13872 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13873
13874 PR rtl-optimization/58066
13875 * calls.c (expand_call): Precompute register parameters before stack
13876 alignment is performed.
13877
13878 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
13879
13880 PR rtl-optimization/66838
13881 * postreload.c (reload_cse_move2add): Also process
13882 CALL_INSN_FUNCTION_USAGE when resetting information of
13883 call-clobbered registers.
13884
13885 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13886 Cesar Philippidis <cesar@codesourcery.com>
13887 Chung-Lin Tang <cltang@codesourcery.com>
13888
13889 * config/nios2/constraints.md (U, v): New constraints.
13890 * config/nios2/predicates.md (rdprs_dcache_operand): New.
13891 (ldstex_memory_operand): New.
13892 * config/nios2/sync.md: New file.
13893 * config/nios2/nios2.md (unspecv): Add new builtin function
13894 UNSPECV codes.
13895 (rdprs, flushd, flushda, wrpie, eni): New patterns.
13896 (top-level): Include sync.md.
13897 * config/nios2/nios2.c (N2_FTYPES): Add function types for
13898 new builtins.
13899 (N2_BUILTINS): Add arch field setting, add new builtins.
13900 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
13901 for arch field.
13902 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
13903 Also handle ldex/stex/ldsex/stsex builtins.
13904 (nios2_expand_rdprs_builtin): New function.
13905 (nios2_expand_cache_builtin): New function.
13906 (nios2_expand_wrpie_builtin): New function.
13907 (nios2_expand_eni_builtin): New function.
13908 (nios2_expand_builtin): Add arch field handling and new builtin
13909 cases.
13910 * doc/extend.texi (Altera Nios II Built-in Functions): Document
13911 new builtins.
13912 * doc/md.texi (Machine Constraints): Document U and v constraints.
13913
13914 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13915 Cesar Philippidis <cesar@codesourcery.com>
13916 Chung-Lin Tang <cltang@codesourcery.com>
13917
13918 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
13919 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
13920 callee_save_reg_size and uses_anonymous_args fields.
13921 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
13922 (nios2_create_cfa_notes): New function.
13923 (nios2_adjust_stack): New function for adjusting stack.
13924 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
13925 Use nios2_adjust_stack.
13926 (nios2_expand_epilogue): Likewise.
13927 (nios2_expand_return): New function.
13928 (nios2_can_use_return_insn): Update for CDX pop.n usage.
13929 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
13930 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
13931 * config/nios2/nios2.md (return): Use nios2_expand_return.
13932
13933 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13934 Cesar Philippidis <cesar@codesourcery.com>
13935 Chung-Lin Tang <cltang@codesourcery.com>
13936
13937 * config/nios2/predicates.md (pop_operation): New.
13938 (ldwm_operation, stwm_operation): New.
13939 (nios2_hard_register_operand): New.
13940 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
13941 (ldstwm_operation_p): Declare.
13942 (gen_ldstwm_peep): Declare.
13943 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
13944 (base_reg_adjustment_p): New.
13945 (pop_operation_p): New.
13946 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
13947 (nios2_ldstwm_regset_p): New.
13948 (ldstwm_operation_p): New.
13949 (gen_ldst): New.
13950 (nios2_ldst_parallel): New.
13951 (struct ldswm_operand): Declare.
13952 (compare_ldstwm_operands): New.
13953 (can_use_cdx_ldstw): New.
13954 (gen_ldstwm_peep): New.
13955 * config/nios2/nios2-ldstwm.sml: New.
13956 * config/nios2/nios2.md: Include ldstwm.md.
13957 * config/nios2/ldstwm.md: Generated.
13958
13959 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
13960 Cesar Philippidis <cesar@codesourcery.com>
13961 Chung-Lin Tang <cltang@codesourcery.com>
13962
13963 * config/nios2/nios2.h (LABEL_ALIGN): Define.
13964 (REG_ALLOC_ORDER): Define.
13965 (ADJUST_REG_ALLOC_ORDER): Define.
13966 (HONOR_REG_ALLOC_ORDER): Define.
13967 (CDX_REG_P): Define.
13968 (ANDCLEAR_INT): Define.
13969 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
13970 (nios2_label_align): Declare.
13971 (nios2_cdx_narrow_form_p): Declare.
13972 (nios2_adjust_reg_alloc_order): Declare.
13973 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
13974 operation.
13975 (nios2_large_unspec_reloc_p): New function, split from...
13976 (nios2_legitimate_pic_operand_p): ...here.
13977 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
13978 (nios2_print_operand_punct_valid_p): New.
13979 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
13980 (split_mem_address): New.
13981 (split_alu_insn): New.
13982 (cdxreg): New.
13983 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
13984 (enum nios2_add_insn_kind): New.
13985 (nios2_add_insn_names, nios2_add_insn_narrow): New.
13986 (nios2_add_insn_classify): New.
13987 (nios2_add_insn_asm): New.
13988 (nios2_cdx_narrow_form_p): New.
13989 (label_align, min_labelno, max_labelno): New.
13990 (nios2_reorg): New.
13991 (nios2_label_align): New.
13992 (nios2_adjust_reg_alloc_order): New.
13993 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13994 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13995 * config/nios2/constraints.md (P): New constraint.
13996 * config/nios2/predicates.md (const_and_operand): New.
13997 (and_operand): New.
13998 (stack_memory_operand): New.
13999 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14000 (length): Update to use nios2_cdx_narrow_form_p().
14001 (type): Add new insn type values.
14002 (control, alu, st, ld, shift): Update insn reservations with
14003 new insn type values.
14004 (*high, *lo_sum): Define new insn patterns for constant generation.
14005 (movqi_internal, movhi_internal, movsi_internal): Reduce
14006 alternatives, update asm template to handle CDX variants, update
14007 type attributes.
14008 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14009 template, update type attributes.
14010 (extendhisi2, extendqi<mode>2): Likewise.
14011 (addsi3): Change to use function for asm string.
14012 (subsi3): Add CDX notation to asm template, update type attributes.
14013 (negsi3, one_cmplsi3): Likewise.
14014 (andsi3): New pattern, specialized from logical patterns.
14015 (<code>si3): Remove and case, combine alternatives, update asm
14016 template.
14017 (<shift_op>si3): Add CDX notation, update type attributes.
14018 (rotrsi3): Update type attribute.
14019 (*merge, extzv, insv): New insn patterns.
14020 (return): Change to define_expand.
14021 (simple_return): Add CDX notation, update type attributes.
14022 (indirect_jump): Add CDX notation.
14023 (jump): Update asm cases, update length attribute expression.
14024 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14025 (nios2_cbranch): Update asm cases and length attribute expression
14026 to handle CDX variants.
14027 (nios2_cmp<code>): Update asm template.
14028 (nop): Add CDX notation, update type attributes.
14029 (trap): Add CDX notation.
14030 (ctrapsi4): Update asm cases and length attribute expression to
14031 handle CDX variant.
14032 * doc/md.texi (Machine Constraints): Document P constraint.
14033
14034 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14035 Cesar Philippidis <cesar@codesourcery.com>
14036 Chung-Lin Tang <cltang@codesourcery.com>
14037
14038 * config/nios2/nios2.h (SMALL_INT12): New macro.
14039 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14040 (nios2_valid_addr_expr_p): Use it.
14041 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14042 with implicit "io" instructions on R2.
14043 * config/nios2/constraints.md (w): New constraint.
14044 * config/nios2/predicates.md (ldstio_memory_operand): New.
14045 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14046 operand predicate and constraint.
14047 (ld<bh>io_signed, st<bhw>io>): Likewise.
14048 * doc/md.texi (Machine Constraints): Document w constraint.
14049
14050 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14051 Cesar Philippidis <cesar@codesourcery.com>
14052 Chung-Lin Tang <cltang@codesourcery.com>
14053
14054 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14055 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14056 Nios II architecture level.
14057 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14058 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14059 (OPTION_DEFAULT_SPECS): Define.
14060 (ASM_SPEC): Add -march= spec strings.
14061 * config/nios2/nios2.c (nios2_option_override): Check for
14062 conflicts involving new options.
14063 * config.gcc (nios2*-*-*): Support --with-arch=.
14064 * doc/invoke.texi (Option Summary, Nios II Options): Document
14065 -march=, -mbmx, and -mcdx.
14066
14067 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
14068
14069 PR rtl-optimization/66626
14070 * lra-constraints.c (lra_constraints): Prevent equivalence
14071 substitution for static chain pseudo in functions with nonlocal
14072 goto.
14073
14074 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14075
14076 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14077 (nios2_emit_stack_limit_check): Add size parameter. Handle
14078 -fstack-limit-symbol as well as -fstack-limit-register.
14079 (nios2_expand_prologue): Emit only a single stack limit check,
14080 even if multiple stack adjustments are required.
14081 (nios2_option_override): Diagnose unsupported combination of -fpic
14082 and -stack-limit-symbol.
14083
14084 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
14085
14086 * Makefile.in (top_srcdir): New.
14087 * configure.ac: Use AM_ZLIB.
14088 * configure: Regeneated.
14089
14090 2015-07-14 Matthias Klose <doko@ubuntu.com>
14091
14092 PR target/66840
14093 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14094
14095 2015-07-14 Richard Biener <rguenther@suse.de>
14096
14097 PR tree-optimization/66863
14098 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14099 what we record for conversion use stmt lhs inequalities.
14100
14101 2015-07-14 Richard Biener <rguenther@suse.de>
14102
14103 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14104 (decision_tree::gen_gimple): Likewise.
14105
14106 2015-07-14 Tom de Vries <tom@codesourcery.com>
14107
14108 * gcc.c (greater_than_spec_func): Declare forward.
14109 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14110 -ftree-parallelize-loops={0,1}.
14111 (static_spec_functions): Add greater_than_spec_func function with name
14112 "gt".
14113 (greater_than_spec_func): New function.
14114
14115 2015-07-14 Richard Biener <rguenther@suse.de>
14116
14117 * tree-ssa-dom.c (record_temporary_equivalences): Merge
14118 wideing type conversion case from record_equivalences_from_incoming_edge
14119 and use record_equality to record equivalences.
14120 (record_equivalences_from_incoming_edge): Call
14121 record_temporary_equivalences.
14122
14123 2015-07-14 Richard Biener <rguenther@suse.de>
14124
14125 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14126 (struct if_expr): New.
14127 (struct with_expr): Likewise.
14128 (is_a_helper): Add helpers for if_expr and with_expr.
14129 (struct simplify): Add simplify_kind enum and member. Remove
14130 ifexpr_vec member.
14131 (simplify::simplify): Adjust.
14132 (lower_commutative): Adjust.
14133 (lower_opt_convert): Likewise.
14134 (lower_cond): Likewise.
14135 (replace_id): Handle with_expr and if_expr.
14136 (lower_for): Adjust.
14137 (dt_simplify::gen_1): New recursive worker, split out from ...
14138 (dt_simplify::gen): ... here. Deal with if and with expansion
14139 recursively.
14140 (capture_info::capture_info): Take context argument
14141 (capture_info::walk_result): Only analyze specific result.
14142 (parser::parse_result): New function.
14143 (parser::parse_simplify): Adjust to parse ifs with then end
14144 else case.
14145 (parser::parse_if): Simplify.
14146 (parser::parse_pattern): Pass down simplify kind.
14147 * match.pd: Convert if structure to new syntax.
14148
14149 2015-07-13 Marek Polacek <polacek@redhat.com>
14150
14151 * rtl.c (rtx_equal_p_cb): Fix typo.
14152
14153 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
14154
14155 * omega.h: Don't include config.h, don't include params.h again if
14156 omega.h has already been included.
14157 * graphite-poly.h: Include sese.h.
14158 * graphite.c: Don't include sese.h, remove needless includes and
14159 minimize includes outside #ifdef HAVE_isl block.
14160 * graphite-blocking.c: Don't include sese.h, remove needless includes,
14161 and wrap entire file in #ifdef HAVE_isl
14162 * graphite-dependences.c: Likewise.
14163 * graphite-interchange.c: Likewise.
14164 * graphite-isl-ast-to-gimple.c: Likewise.
14165 * graphite-optimize-isl.c: Likewise.
14166 * graphite-poly.c: Likewise.
14167 * graphite-scop-detection.c: Likewise.
14168 * graphite-sese-to-poly.c: Likewise.
14169
14170 2015-07-13 Tom de Vries <tom@codesourcery.com>
14171
14172 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14173
14174 2015-07-13 Renlin Li <renlin.li@arm.com>
14175
14176 PR rtl/66556
14177 * simplify-rtx.c (simplify_const_relational_operation): Add
14178 side_effects_p checks.
14179
14180 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
14181
14182 * bitmap.h: Fix double word typos.
14183 * builtins.c: Same.
14184 * calls.c: Same.
14185 * cfgloopmanip.c: Same.
14186 * cgraph.c: Same.
14187 * cgraph.h: Same.
14188 * cgraphclones.c: Same.
14189 * combine.c: Same.
14190 * config/aarch64/aarch64-protos.h: Same.
14191 * config/aarch64/aarch64.c: Same.
14192 * config/aarch64/aarch64.md: Same.
14193 * config/arm/arm.md: Same.
14194 * config/arm/arm1020e.md: Same.
14195 * config/arm/arm1026ejs.md: Same.
14196 * config/arm/arm926ejs.md: Same.
14197 * config/arm/fa526.md: Same.
14198 * config/arm/fa606te.md: Same.
14199 * config/arm/fa626te.md: Same.
14200 * config/arm/fa726te.md: Same.
14201 * config/arm/fmp626.md: Same.
14202 * config/darwin.c: Same.
14203 * config/epiphany/epiphany.c: Same.
14204 * config/frv/frv.c: Same.
14205 * config/ft32/ft32.c: Same.
14206 * config/gnu-user.h: Same.
14207 * config/h8300/constraints.md: Same.
14208 * config/i386/i386.c: Same.
14209 * config/i386/i386.md: Same.
14210 * config/iq2000/iq2000.md: Same.
14211 * config/mips/mips.c: Same.
14212 * config/mmix/mmix.md: Same.
14213 * config/moxie/moxie.c: Same.
14214 * config/nds32/nds32.md: Same.
14215 * config/pa/pa.h: Same.
14216 * config/rs6000/aix.h: Same.
14217 * config/rs6000/rs6000.h: Same.
14218 * config/sh/sh.c: Same.
14219 * config/tilegx/tilegx.md: Same.
14220 * config/tilepro/gen-mul-tables.cc: Same.
14221 * cse.c: Same.
14222 * dbxout.c: Same.
14223 * doc/invoke.texi: Same.
14224 * dse.c: Same.
14225 * dwarf2out.c: Same.
14226 * final.c: Same.
14227 * gcc.c: Same.
14228 * genmatch.c: Same.
14229 * gimplify.c: Same.
14230 * hash-table.h: Same.
14231 * internal-fn.c: Same.
14232 * ipa-cp.c: Same.
14233 * ipa-devirt.c: Same.
14234 * ipa-icf.c: Same.
14235 * ipa-icf.h: Same.
14236 * ipa-profile.c: Same.
14237 * ipa-prop.c: Same.
14238 * ipa-prop.h: Same.
14239 * ira.c: Same.
14240 * omp-low.c: Same.
14241 * reg-stack.c: Same.
14242 * regcprop.c: Same.
14243 * reorg.c: Same.
14244 * rtl.h: Same.
14245 * sbitmap.h: Same.
14246 * tree-eh.c: Same.
14247 * tree-inline.c: Same.
14248 * tree-sra.c: Same.
14249 * tree-ssa-dom.c: Same.
14250 * tree-ssa-loop-ivopts.c: Same.
14251 * tree-ssa-structalias.c: Same.
14252 * tree-ssa-tail-merge.c: Same.
14253 * tree-ssa-ter.c: Same.
14254 * tree-ssa-threadupdate.c: Same.
14255 * tree-ssa-uninit.c: Same.
14256 * tree-ssanames.c: Same.
14257 * tree-vect-loop-manip.c: Same.
14258 * tree-vrp.c: Same.
14259 * tree.c: Same.
14260 * valtrack.c: Same.
14261 * vec.h: Same.
14262
14263 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14264
14265 PR middle-end/66726
14266 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
14267 tree_ssa_phiopt_worker): Call it.
14268
14269 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14270
14271 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
14272 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
14273 REG_EQUAL note.
14274
14275 2015-07-11 Marek Polacek <polacek@redhat.com>
14276
14277 PR middle-end/66353
14278 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
14279 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
14280 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
14281 rather than bb_has_abnormal_call_pred.
14282 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
14283 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
14284 rather than bb_has_abnormal_call_pred.
14285
14286 2015-07-10 Anatoly Sokolov <aesok@post.ru>
14287
14288 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14289 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
14290 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14291 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
14292 v850_legitimate_address_p): New functions.
14293 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14294
14295 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
14296
14297 PR target/66819
14298 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
14299 indirect sibcall with register arguments if register available
14300 for argument passing.
14301 (init_cumulative_args): Set cfun->machine->arg_reg_available
14302 to (cum->nregs > 0) or to true if function has a variable
14303 argument list.
14304 (function_arg_advance_32): Set cfun->machine->arg_reg_available
14305 to false if cum->nregs <= 0.
14306 * config/i386/i386.h (machine_function): Add arg_reg_available.
14307
14308 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14309
14310 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
14311 and gen_higpart instead of gen_rtx_SUBREG.
14312 * config/i386/i386.md
14313 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
14314 (read-modify peephole2): Use gen_lowpart instead of
14315 gen_rtx_SUBREG for operand 5.
14316
14317 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14318
14319 * config/tilepro/gen-mul-tables.cc (main): Change include list for
14320 generated files.
14321 * config/tilepro/mul-tables.c: Regenerate.
14322 * config/tilegx/mul-tables.c: Regenerate.
14323
14324 2015-07-10 Richard Biener <rguenther@suse.de>
14325
14326 * fold-const.c (distribute_bit_expr): Remove.
14327 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
14328 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
14329 to A & (B | C) and simplifying A << C1 << C2 to ...
14330 * match.pd: ... patterns here.
14331
14332 2015-07-10 Jiong Wang <jiong.wang@arm.com>
14333
14334 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14335 Mark mem as READONLY and NOTRAP for PIC symbol.
14336
14337 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
14338
14339 * gimple-predict.h: New file.
14340 (gimple_predict_predictor, gimple_predict_set_predictor,
14341 gimple_predict_outcome, gimple_predict_set_outcome,
14342 gimple_build_predict): Relocate here.
14343 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
14344 gimple_predict_outcome, gimple_predict_set_outcome): Move to
14345 gimple-predict.h.
14346 * gimple.c (gimple_build_predict): Move to gimple-predict.h
14347 * basic-block.h: Don't include cfghooks.h.
14348 * backend.h: Don't include predict.h.
14349 * cfghooks.h: Include predict.h.
14350 * gimple-pretty-print.c: Include gimple-predict.h.
14351 * gimplify.c: Likwise.
14352 * predict.c: Adjust includes.
14353 * tree-inline.c: Likewise.
14354 * asan.c: Likewise.
14355 * auto-inc-dec.c: Likewise.
14356 * auto-profile.c: Likewise.
14357 * bb-reorder.c: Likewise.
14358 * builtins.c: Likewise.
14359 * caller-save.c: Likewise.
14360 * calls.c: Likewise.
14361 * cfganal.c: Likewise.
14362 * cfgbuild.c: Likewise.
14363 * cfg.c: Likewise.
14364 * cfgcleanup.c: Likewise.
14365 * cfgexpand.c: Likewise.
14366 * cfghooks.c: Likewise.
14367 * cfgloopanal.c: Likewise.
14368 * cfgloop.c: Likewise.
14369 * cfgloopmanip.c: Likewise.
14370 * cfgrtl.c: Likewise.
14371 * cgraph.c: Likewise.
14372 * cgraphunit.c: Likewise.
14373 * combine.c: Likewise.
14374 * cprop.c: Likewise.
14375 * cse.c: Likewise.
14376 * dce.c: Likewise.
14377 * dojump.c: Likewise.
14378 * dse.c: Likewise.
14379 * except.c: Likewise.
14380 * expmed.c: Likewise.
14381 * expr.c: Likewise.
14382 * final.c: Likewise.
14383 * fold-const.c: Likewise.
14384 * function.c: Likewise.
14385 * fwprop.c: Likewise.
14386 * gcc-plugin.h: Likewise.
14387 * gcse.c: Likewise.
14388 * genattrtab.c: Likewise.
14389 * genemit.c: Likewise.
14390 * gengtype.c: Likewise.
14391 * genopinit.c: Likewise.
14392 * genoutput.c: Likewise.
14393 * genpreds.c: Likewise.
14394 * genrecog.c: Likewise.
14395 * gimple-fold.c: Likewise.
14396 * gimple-iterator.c: Likewise.
14397 * gimple-ssa-isolate-paths.c: Likewise.
14398 * gimple-ssa-strength-reduction.c: Likewise.
14399 * graph.c: Likewise.
14400 * graphite-blocking.c: Likewise.
14401 * graphite.c: Likewise.
14402 * graphite-dependences.c: Likewise.
14403 * graphite-interchange.c: Likewise.
14404 * graphite-isl-ast-to-gimple.c: Likewise.
14405 * graphite-optimize-isl.c: Likewise.
14406 * graphite-poly.c: Likewise.
14407 * graphite-scop-detection.c: Likewise.
14408 * graphite-sese-to-poly.c: Likewise.
14409 * haifa-sched.c: Likewise.
14410 * ifcvt.c: Likewise.
14411 * internal-fn.c: Likewise.
14412 * ipa-cp.c: Likewise.
14413 * ipa-profile.c: Likewise.
14414 * ipa-split.c: Likewise.
14415 * ipa-utils.c: Likewise.
14416 * ira-build.c: Likewise.
14417 * ira-color.c: Likewise.
14418 * ira-conflicts.c: Likewise.
14419 * ira-costs.c: Likewise.
14420 * ira-emit.c: Likewise.
14421 * ira-lives.c: Likewise.
14422 * jump.c: Likewise.
14423 * loop-doloop.c: Likewise.
14424 * loop-init.c: Likewise.
14425 * loop-invariant.c: Likewise.
14426 * loop-unroll.c: Likewise.
14427 * lower-subreg.c: Likewise.
14428 * lra-assigns.c: Likewise.
14429 * lra.c: Likewise.
14430 * lra-coalesce.c: Likewise.
14431 * lra-constraints.c: Likewise.
14432 * lra-lives.c: Likewise.
14433 * lto-cgraph.c: Likewise.
14434 * lto-streamer-in.c: Likewise.
14435 * mode-switching.c: Likewise.
14436 * modulo-sched.c: Likewise.
14437 * omp-low.c: Likewise.
14438 * optabs.c: Likewise.
14439 * passes.c: Likewise.
14440 * postreload.c: Likewise.
14441 * postreload-gcse.c: Likewise.
14442 * profile.c: Likewise.
14443 * recog.c: Likewise.
14444 * regstat.c: Likewise.
14445 * reload1.c: Likewise.
14446 * reorg.c: Likewise.
14447 * rtlanal.c: Likewise.
14448 * sched-ebb.c: Likewise.
14449 * sel-sched-ir.c: Likewise.
14450 * sese.c: Likewise.
14451 * shrink-wrap.c: Likewise.
14452 * simplify-rtx.c: Likewise.
14453 * stmt.c: Likewise.
14454 * store-motion.c: Likewise.
14455 * tracer.c: Likewise.
14456 * trans-mem.c: Likewise.
14457 * tree-call-cdce.c: Likewise.
14458 * tree-cfg.c: Likewise.
14459 * tree-cfgcleanup.c: Likewise.
14460 * tree-chkp.c: Likewise.
14461 * tree-complex.c: Likewise.
14462 * tree-eh.c: Likewise.
14463 * tree-if-conv.c: Likewise.
14464 * tree-loop-distribution.c: Likewise.
14465 * tree-outof-ssa.c: Likewise.
14466 * tree-parloops.c: Likewise.
14467 * tree-predcom.c: Likewise.
14468 * tree-pretty-print.c: Likewise.
14469 * tree-profile.c: Likewise.
14470 * tree-sra.c: Likewise.
14471 * tree-ssa.c: Likewise.
14472 * tree-ssa-coalesce.c: Likewise.
14473 * tree-ssa-dce.c: Likewise.
14474 * tree-ssa-dom.c: Likewise.
14475 * tree-ssa-forwprop.c: Likewise.
14476 * tree-ssa-ifcombine.c: Likewise.
14477 * tree-ssa-loop-ch.c: Likewise.
14478 * tree-ssa-loop-im.c: Likewise.
14479 * tree-ssa-loop-ivcanon.c: Likewise.
14480 * tree-ssa-loop-ivopts.c: Likewise.
14481 * tree-ssa-loop-manip.c: Likewise.
14482 * tree-ssa-loop-prefetch.c: Likewise.
14483 * tree-ssa-loop-unswitch.c: Likewise.
14484 * tree-ssa-math-opts.c: Likewise.
14485 * tree-ssa-phiopt.c: Likewise.
14486 * tree-ssa-pre.c: Likewise.
14487 * tree-ssa-reassoc.c: Likewise.
14488 * tree-ssa-sink.c: Likewise.
14489 * tree-ssa-tail-merge.c: Likewise.
14490 * tree-ssa-threadedge.c: Likewise.
14491 * tree-ssa-threadupdate.c: Likewise.
14492 * tree-switch-conversion.c: Likewise.
14493 * tree-tailcall.c: Likewise.
14494 * tree-vect-data-refs.c: Likewise.
14495 * tree-vect-loop.c: Likewise.
14496 * tree-vect-loop-manip.c: Likewise.
14497 * tree-vectorizer.c: Likewise.
14498 * tree-vrp.c: Likewise.
14499 * ubsan.c: Likewise.
14500 * value-prof.c: Likewise.
14501 * varasm.c: Likewise.
14502 * var-tracking.c: Likewise.
14503 * config/aarch64/aarch64-builtins.c: Likewise.
14504 * config/aarch64/aarch64.c: Likewise.
14505 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14506 * config/alpha/alpha.c: Likewise.
14507 * config/arc/arc.c: Likewise.
14508 * config/arm/arm.c: Likewise.
14509 * config/avr/avr.c: Likewise.
14510 * config/bfin/bfin.c: Likewise.
14511 * config/c6x/c6x.c: Likewise.
14512 * config/cr16/cr16.c: Likewise.
14513 * config/cris/cris.c: Likewise.
14514 * config/darwin.c: Likewise.
14515 * config/darwin-c.c: Likewise.
14516 * config/epiphany/epiphany.c: Likewise.
14517 * config/epiphany/mode-switch-use.c: Likewise.
14518 * config/epiphany/resolve-sw-modes.c: Likewise.
14519 * config/fr30/fr30.c: Likewise.
14520 * config/frv/frv.c: Likewise.
14521 * config/ft32/ft32.c: Likewise.
14522 * config/h8300/h8300.c: Likewise.
14523 * config/i386/i386.c: Likewise.
14524 * config/i386/winnt.c: Likewise.
14525 * config/ia64/ia64.c: Likewise.
14526 * config/iq2000/iq2000.c: Likewise.
14527 * config/lm32/lm32.c: Likewise.
14528 * config/m32c/m32c.c: Likewise.
14529 * config/m32r/m32r.c: Likewise.
14530 * config/m68k/m68k.c: Likewise.
14531 * config/mcore/mcore.c: Likewise.
14532 * config/mep/mep.c: Likewise.
14533 * config/microblaze/microblaze.c: Likewise.
14534 * config/mips/mips.c: Likewise.
14535 * config/mmix/mmix.c: Likewise.
14536 * config/mn10300/mn10300.c: Likewise.
14537 * config/moxie/moxie.c: Likewise.
14538 * config/msp430/msp430.c: Likewise.
14539 * config/nds32/nds32.c: Likewise.
14540 * config/nds32/nds32-cost.c: Likewise.
14541 * config/nds32/nds32-fp-as-gp.c: Likewise.
14542 * config/nds32/nds32-intrinsic.c: Likewise.
14543 * config/nds32/nds32-isr.c: Likewise.
14544 * config/nds32/nds32-md-auxiliary.c: Likewise.
14545 * config/nds32/nds32-memory-manipulation.c: Likewise.
14546 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14547 * config/nds32/nds32-predicates.c: Likewise.
14548 * config/nios2/nios2.c: Likewise.
14549 * config/nvptx/nvptx.c: Likewise.
14550 * config/pa/pa.c: Likewise.
14551 * config/pdp11/pdp11.c: Likewise.
14552 * config/rl78/rl78.c: Likewise.
14553 * config/rs6000/rs6000.c: Likewise.
14554 * config/rx/rx.c: Likewise.
14555 * config/s390/s390.c: Likewise.
14556 * config/sh/sh.c: Likewise.
14557 * config/sh/sh-mem.cc: Likewise.
14558 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14559 * config/sh/sh_treg_combine.cc: Likewise.
14560 * config/sparc/sparc.c: Likewise.
14561 * config/spu/spu.c: Likewise.
14562 * config/stormy16/stormy16.c: Likewise.
14563 * config/tilegx/tilegx.c: Likewise.
14564 * config/tilepro/tilepro.c: Likewise.
14565 * config/v850/v850.c: Likewise.
14566 * config/vax/vax.c: Likewise.
14567 * config/visium/visium.c: Likewise.
14568 * config/xtensa/xtensa.c: Likewise.
14569
14570 2015-07-10 Richard Biener <rguenther@suse.de>
14571
14572 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
14573 (decision_tree::gen_gimple): Likewise.
14574 (decision_tree::gen_generic): Likewise.
14575
14576 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
14577
14578 PR target/66813
14579 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
14580 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
14581
14582 2015-07-10 Jakub Jelinek <jakub@redhat.com>
14583
14584 PR middle-end/66820
14585 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
14586 or ORT_TASK contexts.
14587 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
14588 is non-zero.
14589
14590 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14591
14592 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
14593 above function.
14594
14595 2015-07-10 Tom de Vries <tom@codesourcery.com>
14596
14597 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
14598 insert nit + 1 bound.
14599
14600 2015-07-10 Richard Biener <rguenther@suse.de>
14601
14602 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
14603 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
14604 (if_convertible_loop_p_1): For this always compute bb predicates.
14605 (if_convertible_loop_p): And free them.
14606
14607 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14608
14609 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
14610 in dump message.
14611
14612 2015-07-10 Richard Biener <rguenther@suse.de>
14613
14614 PR tree-optimization/66823
14615 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
14616 inverted predicate.
14617
14618 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
14619
14620 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
14621 to handle mips[32|64]r3 and mips[32|64]r5.
14622
14623 2015-07-09 Jakub Jelinek <jakub@redhat.com>
14624
14625 PR middle-end/66633
14626 * tree-nested.c (get_static_chain): Or in a flag into
14627 info->static_chain_added.
14628 (get_frame_field, get_nonlocal_debug_decl): Likewise.
14629 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
14630 2015-07-01 changes.
14631 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
14632 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
14633 add it to clauses.
14634
14635 PR tree-optimization/66718
14636 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
14637 field.
14638 (vect_simd_lane_linear): New function.
14639 (vectorizable_simd_clone_call): Support using linear arguments for
14640 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
14641
14642 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14643
14644 PR target/66821
14645 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
14646
14647 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
14648
14649 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
14650 Use machine mode, not enum machine_mode in the prototype.
14651
14652 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
14653 classify 128-bit floating point support.
14654 (FLOAT128_IBM_P): Likewise.
14655 (FLOAT128_VECTOR_P): Likewise.
14656 (FLOAT128_2REG_P): Likewise.
14657 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
14658 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
14659 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14660 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
14661
14662 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
14663 tests against TFmode/TDmode, since those modes do not use VSX
14664 addresses.
14665 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
14666 support.
14667 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
14668 tests against TFmode, etc.
14669 (invalid_e500_subreg): Add tests against IFmode/KFmode.
14670 (reg_offset_addressing_ok_p): Likewise.
14671 (rs6000_legitimate_offset_address_p): Likewise.
14672 (rs6000_legitimize_address): Likewise.
14673 (rs6000_legitimize_reload_address): Likewise.
14674 (rs6000_legitimate_address_p): Clean up tests against TFmode and
14675 TDmode to use the new helper macros, which will include IFmode and
14676 KFmode.
14677 (rs6000_emit_move): Likewise.
14678 (rs6000_darwin64_record_arg_recurse): Likewise.
14679 (print_operand): Likewise.
14680 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
14681 that uses a single vector register as a vector and not as a
14682 floating point register in terms of the calling sequence.
14683 (rs6000_discover_homogeneous_aggregate): Likewise.
14684 (rs6000_return_in_memory): Likewise.
14685 (init_cumulative_args): Likewise.
14686 (rs6000_function_arg_boundary): Likewise.
14687 (rs6000_function_arg_advance_1): Likewise.
14688 (rs6000_function_arg): Likewise.
14689 (rs6000_pass_by_reference): Likewise.
14690 (rs6000_gimplify_va_arg): Likewise.
14691 (rs6000_secondary_reload_memory): Use machine_mode not enum
14692 machine mode.
14693 (rs6000_split_multireg_move): Use new helper macros.
14694 (spe_func_has_64bit_regs_p): Likewise.
14695 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
14696 (output_toc): Use new helper macros.
14697 (rs6000_register_move_cost): Likewise.
14698 (rs6000_function_value): Add IEEE 128-bit floating point calling
14699 sequence support.
14700 (rs6000_libcall_value): Likewise.
14701 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
14702 floating point support.
14703 (rs6000_vector_mode_supported_p): Likewise.
14704
14705 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
14706
14707 PR rtl-optimization/66782
14708 * lra-int.h (struct lra_insn_recog_data): Add comment about
14709 clobbered hard regs for arg_hard_regs.
14710 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
14711 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
14712 Add condition for processing used hard regs.
14713 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
14714 Process clobbered hard regs.
14715
14716 2015-07-09 Michael Matz <matz@suse.de>
14717
14718 * genmatch.c (fprintf_indent): New function.
14719 (operand::gen_transform): Add indent parameter.
14720 (expr::gen_transform, c_expr::gen_transform,
14721 capture::gen_transform): Ditto and use fprintf_indent.
14722 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
14723 (dt_operand::gen, dt_operand::gen_predicate,
14724 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
14725 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
14726 (decision_tree::gen_gimple): Adjust calls and indent generated
14727 code.
14728 (decision_tree::gen_generic): Ditto.
14729 (write_predicate): Ditto.
14730
14731 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14732
14733 PR target/66814
14734 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
14735 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
14736 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
14737 {GENERAL,SSE,MMX}_REG_P where appropriate.
14738
14739 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14740
14741 * lto-streamer.h: Don't include target.h and alloc-pool.h.
14742 * builtins.c: Adjust includes.
14743 * gimple.c: Likewise.
14744 * ipa-icf.c: Likewise.
14745 * lto-opts.c: Likewise.
14746 * ipa-reference.c: Likewise.
14747 * lto-section-out.c: Likewise.
14748 * lto-streamer-in.c: Likewise.
14749 * lto-streamer-out.c: Likewise.
14750 * opts-global.c: Likewise.
14751 * symtab.c: Likewise.
14752 * tree-chkp.c: Likewise.
14753 * tree-ssa-live.c: Likewise.
14754 * tree-streamer-in.c: Likewise.
14755 * tree-streamer-out.c: Likewise.
14756 * config/darwin.c: Likewise.
14757 * config/i386/winnt.c: Likewise.
14758
14759 2015-07-09 Richard Biener <rguenther@suse.de>
14760
14761 * genmatch.c (struct expr): Add force_single_use flag.
14762 (expr::expr): Add copy constructor.
14763 (capture_info::walk_match): Gather force_single_use captures.
14764 (expr::gen_transform): Use possibly NULLified sequence.
14765 (dt_simplify::gen): Apply single-use restrictions by NULLifying
14766 seq if any constrained expr is not single-use.
14767 (parser::parse_expr): Refactor to allow multiple flags. Handle
14768 's' flag to force an expression have a single-use if the pattern
14769 simplifies to more than one statement.
14770 * match.pd: Convert most single_use conditionals to :s flags.
14771
14772 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14773
14774 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
14775 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
14776 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
14777
14778 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
14779
14780 * flags.h: Don't include flag-types.h or options.h.
14781 * opts-common.c: Adjust includes.
14782 * opts-global.c: Likewise.
14783 * common/config/epiphany/epiphany-common.c: Likewise.
14784
14785 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14786
14787 PR target/66818
14788 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
14789 for IA MCU.
14790
14791 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
14792
14793 PR target/66817
14794 * config/i386/i386.c (ix86_return_in_memory): Return true
14795 if int_size_in_bytes returns negative for IA MCU.
14796
14797 2015-07-09 Marek Polacek <polacek@redhat.com>
14798
14799 PR tree-optimization/66718
14800 * Makefile.in (OBJS): Add gimple-laddress.o.
14801 * passes.def: Schedule pass_laddress.
14802 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
14803 * tree-pass.h (make_pass_laddress): Declare.
14804 * gimple-laddress.c: New file.
14805
14806 2015-07-09 Richard Biener <rguenther@suse.de>
14807
14808 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
14809
14810 2015-07-09 Richard Biener <rguenther@suse.de>
14811
14812 PR tree-optimization/66807
14813 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
14814
14815 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
14816
14817 * function.c (stack_protect_epilogue): Use if rather than switch for
14818 check targetm.have_stack_protect_test.
14819
14820 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14821
14822 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
14823 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
14824 * config/arc/arc.h: Likewise.
14825 * config/arm/arm.h: Likewise.
14826 * config/bfin/bfin.h: Likewise.
14827 * config/epiphany/epiphany.h: Likewise.
14828 * config/frv/frv.h: Likewise.
14829 * config/ia64/ia64.h: Likewise.
14830 * config/iq2000/iq2000.h: Likewise.
14831 * config/lm32/lm32.h: Likewise.
14832 * config/m32r/m32r.h: Likewise.
14833 * config/mcore/mcore.h: Likewise.
14834 * config/mep/mep.h: Likewise.
14835 * config/microblaze/microblaze.h: Likewise.
14836 * config/mips/mips.h: Likewise.
14837 * config/mmix/mmix.h: Likewise.
14838 * config/mn10300/mn10300.h: Likewise.
14839 * config/nds32/nds32.h: Likewise.
14840 * config/nios2/nios2.h: Likewise.
14841 * config/pa/pa.h: Likewise.
14842 * config/rl78/rl78.h: Likewise.
14843 * config/sh/sh.h: Likewise.
14844 * config/sparc/sparc.h: Likewise.
14845 * config/stormy16/stormy16.h: Likewise.
14846 * config/tilegx/tilegx.h: Likewise.
14847 * config/tilepro/tilepro.h: Likewise.
14848 * config/v850/v850.h: Likewise.
14849 * config/xtensa/xtensa.h: Likewise.
14850 * doc/tm.texi: Regenerate.
14851 * doc/tm.texi.in: Adjust.
14852 * combine.c (simplify_set): Likewise.
14853 (simplify_comparison): Likewise.
14854 * expr.c (store_constructor): Likewise.
14855 * internal-fn.c (expand_arith_overflow): Likewise.
14856 * reload.c (push_reload): Likewise.
14857 (find_reloads): Likewise.
14858 (find_reloads_subreg_address): Likewise.
14859 * reload1.c (eliminate_regs_1): Likewise.
14860 * rtlanal.c (nonzero_bits1): Likewise.
14861 (num_sign_bit_copies1): Likewise.
14862 * simplify-rtx.c (simplify_truncation): Likewise.
14863
14864 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14865
14866 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
14867 of AUTO_INC_DEC with the preprocessor.
14868 * combine.c (combine_instructions): Likewise.
14869 (can_combine_p): Likewise.
14870 (try_combine): Likewise.
14871 * emit-rtl.c (try_split): Likewise.
14872 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14873 * lower-subreg.c (resolve_simple_move): Likewise.
14874 * lra.c (update_inc_notes): Likewise.
14875 * recog.c (asm_operand_ok): Likewise.
14876 (constrain_operands): Likewise.
14877 * regrename.c (scan_rtx_address): Likewise.
14878 * reload.c (update_auto_inc_notes): Likewise.
14879 (reg_inc_found_and_valid_p): Likewise.
14880 * reload1.c (reload): Likewise.
14881 (emit_input_reload_insns): Likewise.
14882 (delete_output_reload): Likewise.
14883 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14884 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14885
14886 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14887
14888 * rtl.h: Always define AUTO_INC_DEC.
14889 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
14890 * combine.c (combine_instructions): Likewise.
14891 (can_combine_p): Likewise.
14892 (try_combine): Likewise.
14893 * emit-rtl.c (try_split): Likewise.
14894 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14895 * lower-subreg.c (resolve_simple_move): Likewise.
14896 * lra.c (update_inc_notes): Likewise.
14897 * recog.c (asm_operand_ok): Likewise.
14898 (constrain_operands): Likewise.
14899 * regrename.c (scan_rtx_address): Likewise.
14900 * reload.c (update_auto_inc_notes): Likewise.
14901 (find_equiv_reg): Likewise.
14902 * reload1.c (reload): Likewise.
14903 (reload_as_needed): Likewise.
14904 (choose_reload_regs): Likewise.
14905 (emit_input_reload_insns): Likewise.
14906 (delete_output_reload): Likewise.
14907 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14908 * valtrack.c (cleanup_auto_inc_dec): Likewise.
14909
14910 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14911
14912 * combine.c (can_combine_def_p): Don't check the value of
14913 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
14914 (combinable_i3pat): Likewise.
14915 (mark_used_regs_combine): Likewise.
14916 * regrename.c (rename_chains): Likewise.
14917 * reload.c (find_reloads_address): Likewise.
14918 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14919
14920 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14921
14922 * combine.c (update_rsp_from_reg_equal): Don't check if
14923 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
14924 (reg_nonzero_bits_for_combine): Likewise.
14925 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
14926 1.
14927 * config/frv/frv.h: Likewise.
14928 * config/lm32/lm32.h: Likewise.
14929 * config/mep/mep.h: Likewise.
14930 * config/mips/mips.h: Likewise.
14931 * config/rs6000/rs6000.h: Likewise.
14932 * config/sh/sh.h: Likewise.
14933 * config/tilegx/tilegx.h (enum reg_class): Likewise.
14934 * config/tilepro/tilepro.h: Likewise.
14935 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
14936 * doc/tm.texi: Regenerate.
14937 * doc/tm.texi.in: Adjust.
14938 * rtlanal.c (nonzero_bits1): Likewise.
14939
14940 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14941
14942 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
14943 with the preprocessor.
14944 (combine_instructions): Likewise.
14945 (try_combine): Likewise.
14946 (subst): Likewise.
14947 (distribute_notes): Likewise.
14948
14949 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14950
14951 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
14952 defined.
14953 (simplify_set): Likewise.
14954 * cse.c (cse_insn): Likewise.
14955 * fold-const.c (fold_single_bit_test): Likewise.
14956 (fold_unary_loc): Likewise.
14957 * postreload.c (reload_cse_simplify_set): Likewise.
14958 (reload_cse_simplify_operands): Likewise.
14959
14960 2015-07-08 Jiong Wang <jiong.wang@arm.com>
14961
14962 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
14963 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
14964
14965 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14966
14967 PR target/66746
14968 * config/i386/x86intrin.h: Include <adxintrin.h> even if
14969 __iamcu__ is defined.
14970
14971 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
14972
14973 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
14974
14975 2015-07-08 Iain Sandoe <iain@codesourcery.com>
14976
14977 PR target/66523
14978 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
14979 names from preservation.
14980
14981 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
14982
14983 PR target/66806
14984 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
14985 change for IAMCU.
14986 (function_arg_advance_32): Don't pass vectors in registers for
14987 IAMCU.
14988 (function_arg_32): Likewise.
14989 (ix86_return_in_memory): Don't return vectors in registers for
14990 IAMCU.
14991
14992 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
14993
14994 PR middle-end/66334
14995 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
14996 hard regno live at the start of BB with incoming abnormal edges.
14997 * lra-lives.c (process_bb_lives): Ditto.
14998
14999 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15000
15001 PR libgomp/65099
15002 * config/nvptx/mkoffload.c (main): Create an offload image only in
15003 64-bit configurations.
15004
15005 2015-07-08 Martin Liska <mliska@suse.cz>
15006
15007 PR bootstrap/66744
15008 * tree-sra.c (create_access_1): Call ctor without brackets.
15009 (create_artificial_child_access): Likewise.
15010
15011 2015-07-08 Richard Biener <rguenther@suse.de>
15012
15013 PR tree-optimization/66793
15014 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15015 Properly split the block after stmts ending it.
15016
15017 2015-07-08 Richard Biener <rguenther@suse.de>
15018
15019 PR tree-optimization/66794
15020 * passes.c (execute_function_todo): Assert that post-dominators
15021 are not computed.
15022 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15023 Free post-dominators.
15024
15025 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15026
15027 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15028 with early exit.
15029
15030 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15031
15032 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15033 more than or equal 8 and less than 32 when optimizing for size.
15034
15035 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15036
15037 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15038 COSTS_N_INSNS (1) and increment it appropriately throughout the
15039 function.
15040
15041 2015-07-08 Richard Biener <rguenther@suse.de>
15042
15043 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15044
15045 2015-07-08 Alan Modra <amodra@gmail.com>
15046
15047 * target.def (rtx_costs): Remove "code" param, add "mode".
15048 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15049 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
15050 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15051 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
15052 call. Track mode when given in rtx.
15053 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
15054 (default_address_cost): Pass Pmode to rtx_cost.
15055 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15056 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15057 with NULL set.
15058 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
15059 (notreg_cost): Add mode param. Use it.
15060 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
15061 mode param and pass to set_src_cost. Update all calls.
15062 (hash_scan_set): Formatting.
15063 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15064 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15065 * hooks.h: Ditto.
15066 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15067 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15068 emit_store_flag): Update set_src_cost and rtx_cost calls.
15069 * auto-inc-dec.c (attempt_change): Likewise.
15070 * calls.c (precompute_register_parameters): Likewise.
15071 * combine.c (expand_compound_operation, make_extraction,
15072 force_to_mode, distribute_and_simplify_rtx): Likewise.
15073 * dojump.c (prefer_and_bit_test): Likewise.
15074 * dse.c (find_shift_sequence): Likewise.
15075 * expr.c (compress_float_constant): Likewise.
15076 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15077 * ifcvt.c (noce_try_sign_mask): Likewise.
15078 * loop-doloop.c (doloop_optimize): Likewise.
15079 * loop-invariant.c (create_new_invariant): Likewise.
15080 * lower-subreg.c (shift_cost, compute_costs): Likewise.
15081 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15082 lshift_cheap_p): Likewise.
15083 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15084 try_replace_in_use, reload_cse_move2add): Likewise.
15085 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15086 Likewise.
15087 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15088 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15089 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15090 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15091 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15092 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
15093 to rtx_cost calls.
15094 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15095 * config/arc/arc.c (arc_rtx_costs): Likewise.
15096 * config/arm/arm.c (arm_rtx_costs): Likewise.
15097 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15098 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15099 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15100 * config/cris/cris.c (cris_rtx_costs): Likewise.
15101 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15102 * config/frv/frv.c (frv_rtx_costs): Likewise.
15103 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15104 * config/i386/i386.c (ix86_rtx_costs): Likewise.
15105 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15106 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15107 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15108 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15109 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15110 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15111 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15112 * config/mep/mep.c (mep_rtx_cost): Likewise.
15113 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15114 * config/mips/mips.c (mips_rtx_costs): Likewise.
15115 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15116 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15117 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15118 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15119 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15120 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15121 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15122 * config/pa/pa.c (hppa_rtx_costs): Likewise.
15123 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15124 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15125 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15126 * config/s390/s390.c (s390_rtx_costs): Likewise.
15127 * config/sh/sh.c (sh_rtx_costs): Likewise.
15128 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15129 * config/spu/spu.c (spu_rtx_costs): Likewise.
15130 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15131 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15132 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15133 * config/v850/v850.c (v850_rtx_costs): Likewise.
15134 * config/vax/vax.c (vax_rtx_costs): Likewise.
15135 * config/visium/visium.c (visium_rtx_costs): Likewise.
15136 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15137 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15138 "code" param, and pass as outer_code to first rtx_cost call. Pass
15139 mode to rtx_cost calls.
15140 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15141 calls.
15142 (aarch64_rtx_costs_wrapper): Update.
15143 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15144 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15145 rtx_cost calls.
15146 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15147 and rtx_cost calls.
15148 (avr_operand_rtx_cost): Similarly.
15149 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15150 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15151 * config/mips/mips.c (mips_stack_address_p): Comment typo.
15152 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15153 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15154 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15155 rtx_cost.
15156 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15157 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15158 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15159 * doc/tm.texi: Regenerate.
15160
15161 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
15162
15163 * tree-core.h: Include symtab.h.
15164 * rtl.h: Include hard-reg-set.h but not flags.h.
15165 (HARD_CONST): Remove condition compilation involving HARD_CONST since
15166 hard-reg-set.h is always included.
15167 * regs.h: Don't include hard-reg-set.h or rtl.h.
15168 * cfg.h: Include dominance.h.
15169 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15170 * backend.h: New. Aggregate commonly used backend header files.
15171 * gimple-ssa.h: Don't include tree-hasher.h.
15172 * ssa.h: New. Aggregate commonly used SSA header files.
15173 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15174 * sel-sched-ir.h: Flatten includes.
15175 * lra-int.h: Flatten completely.
15176 * sel-sched-dump.h: Flatten includes.
15177 * ira-int.h: Flatten includes.
15178 * gimple-streamer.h: Remove all includes.
15179 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15180 * resource.h: Flatten hard-reg-set.h and df.h.
15181 * sched-int.h: Flatten insn-arrt.h and df.h.
15182 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15183 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15184 * genattrtab.c (write_header): Adjust generated includes.
15185 * genautomata.c (main): Likewise.
15186 * genconditions.c (write-header): Likewise.
15187 * genemit.c (main): Likewise.
15188 * gengtype.c (open_base_files): Likewise.
15189 * genopinit.c (main): Likewise.
15190 * genoutput.c (output_prologue): Likewise.
15191 * genpeep.c (main): Likewise.
15192 * genpreds.c (write_insn_preds_c): Likewise.
15193 * genrecog.c (write_header): Likewise.
15194 * alias.c: Adjust includes.
15195 * asan.c: Likewise.
15196 * attribs.c: Likewise.
15197 * auto-inc-dec.c: Likewise.
15198 * auto-profile.c: Likewise.
15199 * bb-reorder.c: Likewise.
15200 * bt-load.c: Likewise.
15201 * builtins.c: Likewise.
15202 * caller-save.c: Likewise.
15203 * calls.c: Likewise.
15204 * ccmp.c: Likewise.
15205 * cfg.c: Likewise.
15206 * cfganal.c: Likewise.
15207 * cfgbuild.c: Likewise.
15208 * cfgcleanup.c: Likewise.
15209 * cfgexpand.c: Likewise.
15210 * cfghooks.c: Likewise.
15211 * cfgloop.c: Likewise.
15212 * cfgloopanal.c: Likewise.
15213 * cfgloopmanip.c: Likewise.
15214 * cfgrtl.c: Likewise.
15215 * cgraph.c: Likewise.
15216 * cgraphbuild.c: Likewise.
15217 * cgraphclones.c: Likewise.
15218 * cgraphunit.c: Likewise.
15219 * cilk-common.c: Likewise.
15220 * combine-stack-adj.c: Likewise.
15221 * combine.c: Likewise.
15222 * compare-elim.c: Likewise.
15223 * convert.c: Likewise.
15224 * coverage.c: Likewise.
15225 * cppbuiltin.c: Likewise.
15226 * cprop.c: Likewise.
15227 * cse.c: Likewise.
15228 * cselib.c: Likewise.
15229 * data-streamer-in.c: Likewise.
15230 * data-streamer-out.c: Likewise.
15231 * data-streamer.c: Likewise.
15232 * dbxout.c: Likewise.
15233 * dce.c: Likewise.
15234 * ddg.c: Likewise.
15235 * debug.c: Likewise.
15236 * df-core.c: Likewise.
15237 * df-problems.c: Likewise.
15238 * df-scan.c: Likewise.
15239 * dfp.c: Likewise.
15240 * dojump.c: Likewise.
15241 * dominance.c: Likewise.
15242 * domwalk.c: Likewise.
15243 * double-int.c: Likewise.
15244 * dse.c: Likewise.
15245 * dumpfile.c: Likewise.
15246 * dwarf2asm.c: Likewise.
15247 * dwarf2cfi.c: Likewise.
15248 * dwarf2out.c: Likewise.
15249 * emit-rtl.c: Likewise.
15250 * et-forest.c: Likewise.
15251 * except.c: Likewise.
15252 * explow.c: Likewise.
15253 * expmed.c: Likewise.
15254 * expr.c: Likewise.
15255 * final.c: Likewise.
15256 * fixed-value.c: Likewise.
15257 * fold-const.c: Likewise.
15258 * function.c: Likewise.
15259 * fwprop.c: Likewise.
15260 * gcc-plugin.h: Likewise.
15261 * gcse-common.c: Likewise.
15262 * gcse.c: Likewise.
15263 * generic-match-head.c: Likewise.
15264 * ggc-page.c: Likewise.
15265 * gimple-builder.c: Likewise.
15266 * gimple-expr.c: Likewise.
15267 * gimple-fold.c: Likewise.
15268 * gimple-iterator.c: Likewise.
15269 * gimple-low.c: Likewise.
15270 * gimple-match-head.c: Likewise.
15271 * gimple-pretty-print.c: Likewise.
15272 * gimple-ssa-isolate-paths.c: Likewise.
15273 * gimple-ssa-strength-reduction.c: Likewise.
15274 * gimple-streamer-in.c: Likewise.
15275 * gimple-streamer-out.c: Likewise.
15276 * gimple-walk.c: Likewise.
15277 * gimple.c: Likewise.
15278 * gimplify-me.c: Likewise.
15279 * gimplify.c: Likewise.
15280 * godump.c: Likewise.
15281 * graph.c: Likewise.
15282 * graphite-blocking.c: Likewise.
15283 * graphite-dependences.c: Likewise.
15284 * graphite-interchange.c: Likewise.
15285 * graphite-isl-ast-to-gimple.c: Likewise.
15286 * graphite-optimize-isl.c: Likewise.
15287 * graphite-poly.c: Likewise.
15288 * graphite-scop-detection.c: Likewise.
15289 * graphite-sese-to-poly.c: Likewise.
15290 * graphite.c: Likewise.
15291 * haifa-sched.c: Likewise.
15292 * hw-doloop.c: Likewise.
15293 * ifcvt.c: Likewise.
15294 * init-regs.c: Likewise.
15295 * internal-fn.c: Likewise.
15296 * ipa-chkp.c: Likewise.
15297 * ipa-comdats.c: Likewise.
15298 * ipa-cp.c: Likewise.
15299 * ipa-devirt.c: Likewise.
15300 * ipa-icf-gimple.c: Likewise.
15301 * ipa-icf.c: Likewise.
15302 * ipa-inline-analysis.c: Likewise.
15303 * ipa-inline-transform.c: Likewise.
15304 * ipa-inline.c: Likewise.
15305 * ipa-polymorphic-call.c: Likewise.
15306 * ipa-profile.c: Likewise.
15307 * ipa-prop.c: Likewise.
15308 * ipa-pure-const.c: Likewise.
15309 * ipa-ref.c: Likewise.
15310 * ipa-reference.c: Likewise.
15311 * ipa-split.c: Likewise.
15312 * ipa-utils.c: Likewise.
15313 * ipa-visibility.c: Likewise.
15314 * ipa.c: Likewise.
15315 * ira-build.c: Likewise.
15316 * ira-color.c: Likewise.
15317 * ira-conflicts.c: Likewise.
15318 * ira-costs.c: Likewise.
15319 * ira-emit.c: Likewise.
15320 * ira-lives.c: Likewise.
15321 * ira.c: Likewise.
15322 * jump.c: Likewise.
15323 * langhooks.c: Likewise.
15324 * lcm.c: Likewise.
15325 * loop-doloop.c: Likewise.
15326 * loop-init.c: Likewise.
15327 * loop-invariant.c: Likewise.
15328 * loop-iv.c: Likewise.
15329 * loop-unroll.c: Likewise.
15330 * lower-subreg.c: Likewise.
15331 * lra-assigns.c: Likewise.
15332 * lra-coalesce.c: Likewise.
15333 * lra-constraints.c: Likewise.
15334 * lra-eliminations.c: Likewise.
15335 * lra-lives.c: Likewise.
15336 * lra-remat.c: Likewise.
15337 * lra-spills.c: Likewise.
15338 * lra.c: Likewise.
15339 * lto-cgraph.c: Likewise.
15340 * lto-compress.c: Likewise.
15341 * lto-opts.c: Likewise.
15342 * lto-section-in.c: Likewise.
15343 * lto-section-out.c: Likewise.
15344 * lto-streamer-in.c: Likewise.
15345 * lto-streamer-out.c: Likewise.
15346 * lto-streamer.c: Likewise.
15347 * mcf.c: Likewise.
15348 * mode-switching.c: Likewise.
15349 * modulo-sched.c: Likewise.
15350 * omega.c: Likewise.
15351 * omp-low.c: Likewise.
15352 * optabs.c: Likewise.
15353 * opts-global.c: Likewise.
15354 * passes.c: Likewise.
15355 * plugin.c: Likewise.
15356 * postreload-gcse.c: Likewise.
15357 * postreload.c: Likewise.
15358 * predict.c: Likewise.
15359 * print-rtl.c: Likewise.
15360 * print-tree.c: Likewise.
15361 * profile.c: Likewise.
15362 * real.c: Likewise.
15363 * realmpfr.c: Likewise.
15364 * recog.c: Likewise.
15365 * ree.c: Likewise.
15366 * reg-stack.c: Likewise.
15367 * regcprop.c: Likewise.
15368 * reginfo.c: Likewise.
15369 * regrename.c: Likewise.
15370 * regstat.c: Likewise.
15371 * reload.c: Likewise.
15372 * reload1.c: Likewise.
15373 * reorg.c: Likewise.
15374 * resource.c: Likewise.
15375 * rtl-chkp.c: Likewise.
15376 * rtlanal.c: Likewise.
15377 * rtlhooks.c: Likewise.
15378 * sanopt.c: Likewise.
15379 * sched-deps.c: Likewise.
15380 * sched-ebb.c: Likewise.
15381 * sched-rgn.c: Likewise.
15382 * sched-vis.c: Likewise.
15383 * sdbout.c: Likewise.
15384 * sel-sched-dump.c: Likewise.
15385 * sel-sched-ir.c: Likewise.
15386 * sel-sched.c: Likewise.
15387 * sese.c: Likewise.
15388 * shrink-wrap.c: Likewise.
15389 * simplify-rtx.c: Likewise.
15390 * stack-ptr-mod.c: Likewise.
15391 * stmt.c: Likewise.
15392 * stor-layout.c: Likewise.
15393 * store-motion.c: Likewise.
15394 * stringpool.c: Likewise.
15395 * symtab.c: Likewise.
15396 * target-globals.c: Likewise.
15397 * targhooks.c: Likewise.
15398 * toplev.c: Likewise.
15399 * tracer.c: Likewise.
15400 * trans-mem.c: Likewise.
15401 * tree-affine.c: Likewise.
15402 * tree-browser.c: Likewise.
15403 * tree-call-cdce.c: Likewise.
15404 * tree-cfg.c: Likewise.
15405 * tree-cfgcleanup.c: Likewise.
15406 * tree-chkp-opt.c: Likewise.
15407 * tree-chkp.c: Likewise.
15408 * tree-chrec.c: Likewise.
15409 * tree-complex.c: Likewise.
15410 * tree-data-ref.c: Likewise.
15411 * tree-dfa.c: Likewise.
15412 * tree-diagnostic.c: Likewise.
15413 * tree-dump.c: Likewise.
15414 * tree-eh.c: Likewise.
15415 * tree-emutls.c: Likewise.
15416 * tree-if-conv.c: Likewise.
15417 * tree-inline.c: Likewise.
15418 * tree-into-ssa.c: Likewise.
15419 * tree-iterator.c: Likewise.
15420 * tree-loop-distribution.c: Likewise.
15421 * tree-nested.c: Likewise.
15422 * tree-nrv.c: Likewise.
15423 * tree-object-size.c: Likewise.
15424 * tree-outof-ssa.c: Likewise.
15425 * tree-parloops.c: Likewise.
15426 * tree-phinodes.c: Likewise.
15427 * tree-predcom.c: Likewise.
15428 * tree-pretty-print.c: Likewise.
15429 * tree-profile.c: Likewise.
15430 * tree-scalar-evolution.c: Likewise.
15431 * tree-sra.c: Likewise.
15432 * tree-ssa-address.c: Likewise.
15433 * tree-ssa-alias.c: Likewise.
15434 * tree-ssa-ccp.c: Likewise.
15435 * tree-ssa-coalesce.c: Likewise.
15436 * tree-ssa-copy.c: Likewise.
15437 * tree-ssa-copyrename.c: Likewise.
15438 * tree-ssa-dce.c: Likewise.
15439 * tree-ssa-dom.c: Likewise.
15440 * tree-ssa-dse.c: Likewise.
15441 * tree-ssa-forwprop.c: Likewise.
15442 * tree-ssa-ifcombine.c: Likewise.
15443 * tree-ssa-live.c: Likewise.
15444 * tree-ssa-loop-ch.c: Likewise.
15445 * tree-ssa-loop-im.c: Likewise.
15446 * tree-ssa-loop-ivcanon.c: Likewise.
15447 * tree-ssa-loop-ivopts.c: Likewise.
15448 * tree-ssa-loop-manip.c: Likewise.
15449 * tree-ssa-loop-niter.c: Likewise.
15450 * tree-ssa-loop-prefetch.c: Likewise.
15451 * tree-ssa-loop-unswitch.c: Likewise.
15452 * tree-ssa-loop.c: Likewise.
15453 * tree-ssa-math-opts.c: Likewise.
15454 * tree-ssa-operands.c: Likewise.
15455 * tree-ssa-phiopt.c: Likewise.
15456 * tree-ssa-phiprop.c: Likewise.
15457 * tree-ssa-pre.c: Likewise.
15458 * tree-ssa-propagate.c: Likewise.
15459 * tree-ssa-reassoc.c: Likewise.
15460 * tree-ssa-sccvn.c: Likewise.
15461 * tree-ssa-scopedtables.c: Likewise.
15462 * tree-ssa-sink.c: Likewise.
15463 * tree-ssa-strlen.c: Likewise.
15464 * tree-ssa-structalias.c: Likewise.
15465 * tree-ssa-tail-merge.c: Likewise.
15466 * tree-ssa-ter.c: Likewise.
15467 * tree-ssa-threadedge.c: Likewise.
15468 * tree-ssa-threadupdate.c: Likewise.
15469 * tree-ssa-uncprop.c: Likewise.
15470 * tree-ssa-uninit.c: Likewise.
15471 * tree-ssa.c: Likewise.
15472 * tree-ssanames.c: Likewise.
15473 * tree-stdarg.c: Likewise.
15474 * tree-streamer-in.c: Likewise.
15475 * tree-streamer-out.c: Likewise.
15476 * tree-streamer.c: Likewise.
15477 * tree-switch-conversion.c: Likewise.
15478 * tree-tailcall.c: Likewise.
15479 * tree-vect-data-refs.c: Likewise.
15480 * tree-vect-generic.c: Likewise.
15481 * tree-vect-loop-manip.c: Likewise.
15482 * tree-vect-loop.c: Likewise.
15483 * tree-vect-patterns.c: Likewise.
15484 * tree-vect-slp.c: Likewise.
15485 * tree-vect-stmts.c: Likewise.
15486 * tree-vectorizer.c: Likewise.
15487 * tree-vrp.c: Likewise.
15488 * tree.c: Likewise.
15489 * tsan.c: Likewise.
15490 * ubsan.c: Likewise.
15491 * valtrack.c: Likewise.
15492 * value-prof.c: Likewise.
15493 * var-tracking.c: Likewise.
15494 * varasm.c: Likewise.
15495 * varpool.c: Likewise.
15496 * vmsdbgout.c: Likewise.
15497 * vtable-verify.c: Likewise.
15498 * web.c: Likewise.
15499 * wide-int.cc: Likewise.
15500 * xcoffout.c: Likewise.
15501 * config/aarch64/aarch64-builtins.c: Likewise.
15502 * config/aarch64/aarch64.c: Likewise.
15503 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15504 * config/alpha/alpha.c: Likewise.
15505 * config/arc/arc.c: Likewise.
15506 * config/arm/aarch-common.c: Likewise.
15507 * config/arm/arm-builtins.c: Likewise.
15508 * config/arm/arm-c.c: Likewise.
15509 * config/arm/arm.c: Likewise.
15510 * config/avr/avr-c.c: Likewise.
15511 * config/avr/avr-log.c: Likewise.
15512 * config/avr/avr.c: Likewise.
15513 * config/bfin/bfin.c: Likewise.
15514 * config/c6x/c6x.c: Likewise.
15515 * config/cr16/cr16.c: Likewise.
15516 * config/cris/cris.c: Likewise.
15517 * config/darwin-c.c: Likewise.
15518 * config/darwin.c: Likewise.
15519 * config/epiphany/epiphany.c: Likewise.
15520 * config/epiphany/mode-switch-use.c: Likewise.
15521 * config/epiphany/resolve-sw-modes.c: Likewise.
15522 * config/fr30/fr30.c: Likewise.
15523 * config/frv/frv.c: Likewise.
15524 * config/ft32/ft32.c: Likewise.
15525 * config/h8300/h8300.c: Likewise.
15526 * config/i386/i386-c.c: Likewise.
15527 * config/i386/i386.c: Likewise.
15528 * config/i386/msformat-c.c: Likewise.
15529 * config/i386/winnt-cxx.c: Likewise.
15530 * config/i386/winnt-stubs.c: Likewise.
15531 * config/i386/winnt.c: Likewise.
15532 * config/ia64/ia64-c.c: Likewise.
15533 * config/ia64/ia64.c: Likewise.
15534 * config/iq2000/iq2000.c: Likewise.
15535 * config/lm32/lm32.c: Likewise.
15536 * config/m32c/m32c-pragma.c: Likewise.
15537 * config/m32c/m32c.c: Likewise.
15538 * config/m32r/m32r.c: Likewise.
15539 * config/m68k/m68k.c: Likewise.
15540 * config/mcore/mcore.c: Likewise.
15541 * config/mep/mep-pragma.c: Likewise.
15542 * config/mep/mep.c: Likewise.
15543 * config/microblaze/microblaze-c.c: Likewise.
15544 * config/microblaze/microblaze.c: Likewise.
15545 * config/mips/mips.c: Likewise.
15546 * config/mmix/mmix.c: Likewise.
15547 * config/mn10300/mn10300.c: Likewise.
15548 * config/moxie/moxie.c: Likewise.
15549 * config/msp430/msp430-c.c: Likewise.
15550 * config/msp430/msp430.c: Likewise.
15551 * config/nds32/nds32-cost.c: Likewise.
15552 * config/nds32/nds32-fp-as-gp.c: Likewise.
15553 * config/nds32/nds32-intrinsic.c: Likewise.
15554 * config/nds32/nds32-isr.c: Likewise.
15555 * config/nds32/nds32-md-auxiliary.c: Likewise.
15556 * config/nds32/nds32-memory-manipulation.c: Likewise.
15557 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15558 * config/nds32/nds32-predicates.c: Likewise.
15559 * config/nds32/nds32.c: Likewise.
15560 * config/nios2/nios2.c: Likewise.
15561 * config/nvptx/nvptx.c: Likewise.
15562 * config/pa/pa.c: Likewise.
15563 * config/pdp11/pdp11.c: Likewise.
15564 * config/rl78/rl78-c.c: Likewise.
15565 * config/rl78/rl78.c: Likewise.
15566 * config/rs6000/rs6000-c.c: Likewise.
15567 * config/rs6000/rs6000.c: Likewise.
15568 * config/rx/rx.c: Likewise.
15569 * config/s390/s390-c.c: Likewise.
15570 * config/s390/s390.c: Likewise.
15571 * config/sh/sh-c.c: Likewise.
15572 * config/sh/sh-mem.cc: Likewise.
15573 * config/sh/sh.c: Likewise.
15574 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15575 * config/sh/sh_treg_combine.cc: Likewise.
15576 * config/sol2-c.c: Likewise.
15577 * config/sol2-cxx.c: Likewise.
15578 * config/sol2-stubs.c: Likewise.
15579 * config/sol2.c: Likewise.
15580 * config/sparc/sparc-c.c: Likewise.
15581 * config/sparc/sparc.c: Likewise.
15582 * config/spu/spu-c.c: Likewise.
15583 * config/spu/spu.c: Likewise.
15584 * config/stormy16/stormy16.c: Likewise.
15585 * config/tilegx/mul-tables.c: Likewise.
15586 * config/tilegx/tilegx-c.c: Likewise.
15587 * config/tilegx/tilegx.c: Likewise.
15588 * config/tilepro/mul-tables.c: Likewise.
15589 * config/tilepro/tilepro-c.c: Likewise.
15590 * config/tilepro/tilepro.c: Likewise.
15591 * config/v850/v850-c.c: Likewise.
15592 * config/v850/v850.c: Likewise.
15593 * config/vax/vax.c: Likewise.
15594 * config/visium/visium.c: Likewise.
15595 * config/vms/vms-c.c: Likewise.
15596 * config/vms/vms.c: Likewise.
15597 * config/vxworks.c: Likewise.
15598 * config/xtensa/xtensa.c: Likewise.
15599
15600 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
15601
15602 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
15603 Remove operand constraints. Change operand 2 predicate to
15604 nonmemory operand. Limit const_int values to mode bitsize. Only
15605 allow const_int values less than 32 when optimizing for size.
15606 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
15607 Remove operand constraints.
15608 (*bt<mode>): Use SImode for const_int values less than 32.
15609 (regmode): Remove mode attribute.
15610
15611 2015-07-07 Anatoly Sokolov <aesok@post.ru>
15612
15613 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15614 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
15615 moxie_legitimate_address_p): New functions.
15616 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
15617
15618 2015-07-07 Tom de Vries <tom@codesourcery.com>
15619
15620 PR tree-optimization/66642
15621 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
15622 header comment. Rename split_edge variable to edge_at_split. Split
15623 exit edge to create new loop exit bb. Insert loop exit phis in new
15624 loop exit bb.
15625
15626 2015-07-07 Tom de Vries <tom@codesourcery.com>
15627
15628 * tree-cfg.c (get_virtual_phi): New function.
15629 * tree-cfg.h (get_virtual_phi): Declare.
15630 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
15631 (rewrite_virtuals_into_loop_closed_ssa): New function.
15632 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
15633 Declare.
15634 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
15635 (transform_to_exit_first_loop_alt): Use
15636 rewrite_virtuals_into_loop_closed_ssa.
15637
15638 2015-07-07 Richard Biener <rguenther@suse.de>
15639
15640 * fold-const.c (fold_binary_loc): Move
15641 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
15642 * match.pd: ... here.
15643 Add (X * C1) % C2 -> 0 simplification pattern derived from
15644 extract_muldiv_1.
15645
15646 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
15647
15648 PR target/66780
15649 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
15650 change for target/65249.
15651
15652 2015-07-07 Paulo Matos <pmatos@broadcom.com>
15653
15654 * symtab.c (address_matters_1): Fix typo in comment above.
15655 (can_increase_alignment_p): Likewise.
15656
15657 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15658
15659 * function.c (free_after_compilation): Clear PROP_cfg in
15660 f->curr_properties.
15661
15662 2015-07-07 Richard Biener <rguenther@suse.de>
15663
15664 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
15665 add which use to.
15666 (add_control_edge): Remove excessive vertical space in dumping.
15667 (process_ssa_edge_worklist): Simulate at most one statement and
15668 return whether we did. Do not simulate PHIs if they are in a
15669 BB not yet simulated.
15670 (ssa_propagate): Adjust to always drain the BB worklist whenever
15671 a BB is available there, likewise the VARYING edges list before
15672 the interesting edge list.
15673
15674 2015-07-07 Christian Bruel <christian.bruel@st.com>
15675
15676 PR target/52144
15677 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
15678
15679 2015-07-07 Richard Biener <rguenther@suse.de>
15680
15681 PR middle-end/66739
15682 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
15683 A - B.
15684
15685 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15686
15687 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
15688 modes for operands 0 and 3. Use SImode for operands 2 and 3.
15689 Copy operand 0 to a temporary if !ext_register_operand. Remove
15690 ancient extract_bit_field workaround.
15691 (insv<mode>_1): Rename from mov<mode>_insv_1.
15692 (*insvqi): Rename from *movqi_insv_2.
15693 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
15694 for renamed insvsi_1.
15695 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
15696
15697 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
15698
15699 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
15700 call to nvptx_reorg_subreg.
15701
15702 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
15703
15704 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
15705 * graphite-dependencies.c, graphite-interchange.c,
15706 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
15707 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
15708 Likewise.
15709
15710 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
15711
15712 * match.pd: Remove element_mode inside HONOR_*.
15713 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
15714 (~X | X -> -1, ~X ^ X -> -1): Merge.
15715 * tree.c (build_each_one_cst): New function.
15716 * tree.h (build_each_one_cst): Likewise.
15717
15718 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15719
15720 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15721 PROCESSOR_IAMCU.
15722
15723 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
15724
15725 * config.gcc <mips*-*-*>: Add fused-madd.opt.
15726 * config/mips/mips.opt (mfused-madd): Remove.
15727 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
15728 * config/mips/mips.h (TARGET_MIPS8000): New.
15729 (ISA_HAS_FP_MADD4_MSUB4): Remove.
15730 (ISA_HAS_FP_MADDF_MSUBF): Remove.
15731 (ISA_HAS_FP_MADD3_MSUB3): Remove.
15732 (ISA_HAS_NMADD4_NMSUB4): Remove.
15733 (ISA_HAS_NMADD3_NMSUB3): Remove.
15734 (ISA_HAS_FUSED_MADD4): New.
15735 (ISA_HAS_UNFUSED_MADD4): New.
15736 (ISA_HAS_FUSED_MADDF): New.
15737 (ISA_HAS_FUSED_MADD3): New.
15738 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
15739 (*fma<mode>4_madd3) New.
15740 (*fma<mode>4_madd4) New.
15741 (*fma<mode>4_maddf) New.
15742 (fms<mode>4) New.
15743 (*fms<mode>4_msub3) New.
15744 (*fms<mode>4_msub4) New.
15745 (fnma<mode>4) New.
15746 (*fnma<mode>4_nmadd3) New.
15747 (*fnma<mode>4_nmadd4) New.
15748 (fnms<mode>4) New.
15749 (*fnms<mode>4_nmsub3) New.
15750 (*fnms<mode>4_nmsub4) New.
15751 (*madd4<mode>) Modify to be unfused only.
15752 (*msub4<mode>) Modify to be unfused only.
15753 (*nmadd4<mode>) Modify to be unfused only.
15754 (*nmsub4<mode>) Modify to be unfused only.
15755 (*madd3<mode>) Remove.
15756 (*msub3<mode>) Remove.
15757 (*nmadd3<mode>) Remove.
15758 (*nmsub3<mode>) Remove.
15759 (*nmadd3<mode>_fastmath) Remove.
15760 (*nmsub3<mode>_fastmath) Remove.
15761 (*nmadd4<mode>_fastmath) Update condition.
15762 (*nmsub4<mode>_fastmath) Update condition.
15763
15764 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15765
15766 PR target/65956
15767 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
15768 alignment attribute, exploring one level down for records and arrays.
15769
15770 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
15771
15772 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
15773 modes for operands 0 and 1. Use SImode for operands 2 and 3.
15774 Copy operand 1 to a temporary if !ext_register_operand. Remove
15775 ancient extract_bit_field workaround.
15776 (*extv<mode>): Rename from *mov<mode>_extv_1.
15777 (*extvqi): Rename from *movqi_extv_1.
15778 (extzv<mode>): Rename from extzv. Use SWI248 modes for
15779 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
15780 to a temporary if !ext_register_operand. Remove ancient
15781 extract_bit_field workaround.
15782 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
15783 (*extzvqi): Rename from *movqi_extzv_2.
15784 (*testqi_ext_3): Remove modes from const_int_operand predicated
15785 operands. Add "n" constraint.
15786 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
15787 operand. Add "J" constraint.
15788 (*btsq, *btrq, *btcq peephole2s): Remove mode from
15789 const_0_to_63 predicated operand.
15790 (regmode): New insn attribute.
15791 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
15792 to nonmemory_operand. Use regmode insn attribute.
15793 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
15794 (*jcc_bt<mode>_mask): Remove mode from operand 3.
15795 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
15796 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
15797 operands. Use "N" constraint instead of "n".
15798
15799 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
15800
15801 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
15802
15803 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15804
15805 PR target/66749
15806 * config/i386/i386.c (iamcu_cost): New.
15807 (m_IAMCU): Likewise.
15808 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
15809 (processor_target_table): Add an entry for "iamcu".
15810 (processor_alias_table): Likewise.
15811 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
15812 (ix86_adjust_cost): Likewise.
15813 (ia32_multipass_dfa_lookahead): Likewise.
15814 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
15815 * config/i386/x86-tune.def: Updated for m_IAMCU.
15816
15817 2015-07-06 Richard Biener <rguenther@suse.de>
15818
15819 PR tree-optimization/66772
15820 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
15821 values are available in the PHI node BB when there are
15822 still unexecutable edges.
15823
15824 2015-07-06 Richard Biener <rguenther@suse.de>
15825
15826 PR tree-optimization/66767
15827 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
15828 Make sure to build the alignment test on a SSA name without
15829 final alignment info valid only if the alignment test
15830 evaluates to true.
15831
15832 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
15833
15834 PR target/66620
15835 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
15836 loop start when inserting LSETUP.
15837
15838 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
15839
15840 PR target/53383
15841 * config/i386/i386.c (ix86_option_override_internal): Allow
15842 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
15843
15844 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15845
15846 * read-md.c (decimal_string): Rename to ...
15847 (md_decimal_string): ... this.
15848 (handle_enum): Reflect this.
15849
15850 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15851
15852 PR target/66731
15853 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
15854
15855 2015-07-06 Richard Biener <rguenther@suse.de>
15856
15857 PR middle-end/66759
15858 * match.pd: Add missing constraint of y to REAL_CST in
15859 REAL_CST - x CMP y to y - CST CMP x simplification.
15860
15861 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
15862
15863 PR tree-optimization/66757
15864 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
15865
15866 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
15867 Sandra Loosemore <sandra@codesourcery.com>
15868
15869 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
15870 Delete extern declaration.
15871 (gprel_constant_p): Add extern declaration.
15872 * config/nios2/constraints.md ("S"): Use gprel_constant_p
15873 instead of nios2_symbol_ref_in_small_data_p.
15874 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
15875 (nios2_symbol_ref_in_small_data_p): Make static.
15876 (gprel_constant_p): Make non-static.
15877
15878 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
15879
15880 * doc/fragments.texi (Target Fragment): Convert debian.org
15881 link to use https.
15882 * doc/install.texi (Configuration): Ditto.
15883
15884 2015-07-05 Jakub Jelinek <jakub@redhat.com>
15885
15886 PR tree-optimization/66718
15887 * tree-vect-stmts.c (vectorizable_call): Replace uses of
15888 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
15889
15890 PR tree-optimization/66718
15891 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
15892 vectorizable_load, vectorizable_condition): Move vectype,
15893 nunits, ncopies computation after checking what kind of statement
15894 stmt is.
15895
15896 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15897
15898 * target-insns.def (extv, extzv, insv): New targetm instruction
15899 patterns.
15900 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
15901 interface.
15902 * recog.c (simplify_while_replacing): Likewise.
15903
15904 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15905
15906 * target-insns.def (doloop_begin, doloop_end): New targetm
15907 instruction patterns.
15908 * loop-init.c: Include target.h.
15909 (pass_loop2::gate): Use the new targetm patterns instead of
15910 HAVE_*/gen_* interface.
15911 (pass_rtl_doloop::gate): Likewise.
15912 (pass_rtl_doloop::execute): Remove preprocessor condition.
15913 * hw-doloop.c: Build unconditionally.
15914 * loop-doloop.c: Likewise.
15915 (doloop_optimize): Use the new targetm patterns instead of
15916 HAVE_*/gen_* interface.
15917 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
15918 * modulo-sched.c (doloop_register_get): Likewise.
15919
15920 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15921
15922 * target-insns.def (clear_cache): New targetm instruction pattern.
15923 * builtins.c (expand_builtin___clear_cache): Use it instead of
15924 HAVE_*/gen_* interface.
15925
15926 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15927
15928 * target-insns.def (allocate_stack, check_stack, probe_stack)
15929 (probe_stack_address, split_stack_prologue, split_stack_space_check):
15930 New targetm instruction patterns.
15931 * explow.c (allocate_dynamic_stack_space): Use them instead of
15932 HAVE_*/gen_* interface.
15933 (emit_stack_probe): Likewise.
15934 (probe_stack_range): Likewise.
15935 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15936
15937 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15938
15939 * target-insns.def (stack_protect_set, stack_protect_test): New
15940 targetm instruction patterns.
15941 * cfgexpand.c (stack_protect_prologue): Use them instead of
15942 HAVE_*/gen_* interface.
15943 * function.c (stack_protect_epilogue): Likewise.
15944
15945 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15946
15947 * expr.h (gen_move_insn_uncast): Delete.
15948 * expr.c (gen_move_insn_uncast): Delete.
15949
15950 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15951
15952 * target-insns.def (restore_stack_block, restore_stack_function)
15953 (restore_stack_nonlocal, save_stack_block, save_stack_function)
15954 (save_stack_nonlocal): New targetm instruction patterns.
15955 * builtins.c (expand_builtin_apply): Use them instead of
15956 HAVE_*/gen_* interface.
15957 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
15958
15959 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15960
15961 * target-insns.def (trap): New targetm instruction pattern.
15962 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
15963 interface.
15964 * explow.c (allocate_dynamic_stack_space): Likewise.
15965 * ifcvt.c (find_if_header): Likewise.
15966
15967 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15968
15969 * target-insns.def (prefetch): New targetm instruction pattern.
15970 * tree-ssa-loop-prefetch.c: Include targeth.
15971 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
15972 of HAVE_*/gen_* interface.
15973 * builtins.c (expand_builtin_prefetch): Likewise.
15974 * toplev.c (process_options): Likewise.
15975
15976 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15977
15978 * target-insns.def (untyped_call, untyped_return): New targetm
15979 instruction patterns.
15980 * builtins.c (expand_builtin_apply): Use them instead of
15981 HAVE_*/gen_* interface.
15982 (result_vector): Define unconditionally.
15983
15984 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15985
15986 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
15987 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
15988 (nonlocal_goto_receiver): New targetm instruction patterns.
15989 * builtins.c (expand_builtin_setjmp_setup): Use them instead
15990 of HAVE_*/gen_* interface.
15991 (expand_builtin_setjmp_receiver): Likewise.
15992 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
15993 * except.c (expand_dw2_landing_pad_for_region): Likewise.
15994
15995 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
15996
15997 * target.def: Add code_for_* hooks.
15998 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
15999 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16000 * target-insns.def (casesi, tablejump): New targetm instruction
16001 patterns.
16002 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16003 (do_tablejump): Likewise.
16004 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16005 (expand_sjlj_dispatch_table): Likewise.
16006 * targhooks.c (default_case_values_threshold): Likewise.
16007
16008 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
16009
16010 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16011 Use rtx_insn * instead of rtx.
16012 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16013 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16014 (nios2_call_tls_get_addr): Likewise.
16015 (nios2_emit_expensive_div): Likewise.
16016 (nios2_emit_move_sequence): Change return type to bool.
16017 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16018 Change return type to bool.
16019
16020 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16021
16022 PR target/66747
16023 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16024
16025 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
16026
16027 PR target/66114
16028 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16029 of register_operand. Remove constraint.
16030
16031 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
16032
16033 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16034 the first argument.
16035
16036 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
16037
16038 * attribs.c (decl_attributes): Guard inform with the return value
16039 of the preceding warning.
16040
16041 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16042
16043 * doc/invoke.texi (moverride): Move to correct section.
16044
16045 2015-07-03 Richard Biener <rguenther@suse.de>
16046
16047 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16048 Copy from tree.c
16049 (dt_operand::gen_gimple_expr): After valueizing operands
16050 re-canonicalize operand order for commutative tree codes.
16051
16052 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
16053
16054 PR target/66746.
16055 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16056 is defined.
16057 (__crc32w): Likewise.
16058 (__crc32d): Likewise.
16059 (__rdpmc): Likewise.
16060 (__rdtscp): Likewise.
16061 (_rdpmc): Likewise.
16062 (_rdtscp): Likewise.
16063 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16064 is defined.
16065
16066 2015-07-03 Richard Biener <rguenther@suse.de>
16067
16068 * fold-const.c (fold_mathfn_compare): Remove.
16069 (fold_inf_compare): Likewise.
16070 (fold_comparison): Move floating point comparison simplifications...
16071 * match.pd: ... to patterns here. Introduce simple_comparisons
16072 operator list and use it for patterns formerly in fold_comparison.
16073
16074 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16075
16076 PR tree-optimization/66119
16077 * toplev.c (process_options): Don't set up default values for
16078 the sra_max_scalarization_size_{speed,size} parameters.
16079 * tree-sra (analyze_all_variable_accesses): If no values
16080 have been set for the sra_max_scalarization_size_{speed,size}
16081 parameters, call get_move_ratio to get target defaults.
16082
16083 2015-07-03 Richard Biener <rguenther@suse.de>
16084
16085 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16086 * match.pd: ... here.
16087
16088 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
16089
16090 PR target/37072
16091 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16092 is not actually the default on FreeBSD.
16093
16094 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16095
16096 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16097 definition.
16098 (CMPGE_8HI): Likewise.
16099 (CMPGE_4SI): Likewise.
16100 (CMPGE_2DI): Likewise.
16101 (CMPGE_U16QI): Likewise.
16102 (CMPGE_U8HI): Likewise.
16103 (CMPGE_U4SI): Likewise.
16104 (CMPGE_U2DI): Likewise.
16105 (CMPLE_16QI): Likewise.
16106 (CMPLE_8HI): Likewise.
16107 (CMPLE_4SI): Likewise.
16108 (CMPLE_2DI): Likewise.
16109 (CMPLE_U16QI): Likewise.
16110 (CMPLE_U8HI): Likewise.
16111 (CMPLE_U4SI): Likewise.
16112 (CMPLE_U2DI): Likewise.
16113 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16114 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16115 ALTIVEC_BUILTIN_VEC_CMPLE.
16116 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16117 floating-point vector modes.
16118 (vector_nlt<mode>): New define_expand.
16119 (vector_nltu<mode>): Likewise.
16120 (vector_ngt<mode>): Likewise.
16121 (vector_ngtu<mode>): Likewise.
16122
16123 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16124
16125 PR rtl-optimization/66706
16126 * combine.c (make_compound_operation): If an AND of SUBREG of
16127 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16128
16129 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
16130
16131 * tree-pass.h (make_pass_ch_vect): New.
16132 * passes.def: Add pass_ch_vect just before pass_if_conversion.
16133
16134 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16135 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16136 make_pass_ch_vect): New.
16137 (pass_ch): Extend ch_base.
16138
16139 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16140 (ch_base::copy_headers): ...here.
16141
16142 2015-07-02 Richard Biener <rguenther@suse.de>
16143
16144 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16145 * fold-const.c (get_pointer_modulus_and_residue): Remove.
16146 (fold_binary_loc): Implement (T)ptr & CST in terms of
16147 get_pointer_alignment_1.
16148 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16149 Make sure to build the alignment test on a SSA name without
16150 final alignment info valid only after the prologue.
16151
16152 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
16153
16154 * config/cris/cris.md ("epilogue"): Remove condition.
16155 ("prologue"): Ditto.
16156
16157 2015-07-02 Richard Biener <rguenther@suse.de>
16158
16159 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16160 parameter to record a condition that is false.
16161 (record_conditions): When recording an extra NE_EXPR that is
16162 true also record a EQ_EXPR that is false.
16163
16164 2015-07-02 Bin Cheng <bin.cheng@arm.com>
16165
16166 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16167 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16168 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
16169 (set_iv, find_interesting_uses_address, add_candidate_1): New
16170 argument to alloc_iv.
16171 (find_interesting_uses_op, find_interesting_uses_cond): Don't
16172 duplicate struct iv.
16173 (free_loop_data): Don't free struct iv explicitly.
16174 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16175
16176 2015-07-01 DJ Delorie <dj@redhat.com>
16177
16178 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16179 (LIB_SPEC): Add.
16180 (SUPPORTS_DISCRIMINATOR): Define.
16181
16182 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16183
16184 PR bootstrap/66685
16185 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16186 there are no CALLs in the same pattern.
16187
16188 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16189
16190 PR rtl-optimization/61047
16191 * rtlanal.c (get_initial_register_offset): New function.
16192 (rtx_addr_can_trap_p_1): Check offsets of stack references.
16193
16194 2015-07-01 Richard Biener <rguenther@suse.de>
16195
16196 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16197 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16198 ~X CMP C -> X CMP' ~C to ...
16199 * match.pd: ... patterns here.
16200
16201 2015-07-01 Nick Clifton <nickc@redhat.com>
16202
16203 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16204 a 16-bit value into a 20-bit memory slot.
16205
16206 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16207
16208 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16209 "aarch64_tiny", "aarch64_small", "aarch64_large",
16210 "aarch64_little_endian", "aarch64_big_endian".
16211
16212 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16213
16214 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16215 Document "aarch64_small_fpic".
16216
16217 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16218
16219 * configure.ac: Add check for aarch64 assembler -fpic relocation
16220 modifier support.
16221 * configure: Regenerate.
16222 * config.in: Regenerate.
16223 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16224 to -fPIC if not support of -fpic relocation modifier in assembler.
16225
16226 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16227
16228 PR bootstrap/66685
16229 * rtl.c (classify_insn): Handle returns in PARALLELs.
16230
16231 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
16232
16233 PR middle-end/66633
16234 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16235 to true if the function is nested and if not optimizing.
16236 (convert_local_omp_clauses): Initialize need_frame to true if the
16237 function contains nested functions and if not optimizing.
16238
16239 2015-07-01 Richard Biener <rguenther@suse.de>
16240
16241 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16242 (X & Y) ^ Y -> ~X & Y transforms to ...
16243 * match.pd: ... here.
16244
16245 2015-07-01 Richard Biener <rguenther@suse.de>
16246
16247 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16248 of converts to avoid uninteresting noise from the conversion
16249 simplifying patterns.
16250
16251 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
16252
16253 * config/c6x/c6x.c (try_rename_operands): Do not depend on
16254 gcc_assert evaluating its argument for side-effect.
16255
16256 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
16257
16258 PR target/64833
16259 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
16260 flag_pic is set.
16261
16262 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16263
16264 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
16265 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
16266 (hash_scc): Add this_ref_p and ref_p parameters and pass them
16267 to the inner DFS walk.
16268
16269 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16270
16271 * target-insns.def (jump): New targetm instruction pattern.
16272 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
16273 instead of gen_jump.
16274 (fix_up_crossing_landing_pad): Likewise.
16275 (add_labels_and_missing_jumps): Likewise.
16276 (fix_crossing_conditional_branches): Likewise.
16277 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16278 (force_nonfallthru_and_redirect): Likewise.
16279 * cse.c (cse_insn): Likewise.
16280 * expmed.c (expand_divmod): Likewise.
16281 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
16282 * haifa-sched.c (init_before_recovery): Likewise.
16283 (sched_create_recovery_edges): Likewise.
16284 * ifcvt.c (find_cond_trap): Likewise.
16285 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
16286 (expand_float, expand_fix): Likewise.
16287 * stmt.c (emit_jump): Likewise.
16288
16289 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16290
16291 * defaults.h (HAVE_load_multiple, gen_load_multiple)
16292 (HAVE_store_multiple, gen_store_multiple): Delete.
16293 * target-insns.def (load_multiple, store_multiple): New targetm
16294 instruction patterns.
16295 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
16296 of HAVE_*/gen_* interface.
16297
16298 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16299
16300 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
16301 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
16302 (gen_mem_signal_fence): Delete.
16303 * target-insns.def (mem_signal_fence, mem_thread_fence)
16304 (memory_barrier): New targetm instruction patterns.
16305 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
16306 interface.
16307 (expand_mem_signal_fence): Likewise.
16308
16309 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16310
16311 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
16312 * target-insns.def (epilogue, prologue, sibcall_prologue): New
16313 targetm instruction patterns.
16314 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
16315 interface.
16316 * calls.c (expand_call): Likewise.
16317 * cfgrtl.c (cfg_layout_finalize): Likewise.
16318 * df-scan.c (df_get_entry_block_def_set): Likewise.
16319 (df_get_exit_block_use_set): Likewise.
16320 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
16321 * final.c (final_start_function): Likewise.
16322 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16323 (reposition_prologue_and_epilogue_notes): Likewise.
16324 * reorg.c (find_end_label): Likewise.
16325 * toplev.c (process_options): Likewise.
16326
16327 2015-06-30 David Malcolm <dmalcolm@redhat.com>
16328
16329 * typed-splay-tree.h: New file.
16330
16331 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
16332
16333 PR debug/66691
16334 * lra-int.h (lra_substitute_pseudo): Add a parameter.
16335 (lra_substitute_pseudo_within_insn): Ditto.
16336 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
16337 of constant.
16338 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
16339 to lra_substitute_pseudo.
16340 * lra-lives.c (process_bb_lives): Add an argument to
16341 lra_substitute_pseudo_within_insn call.
16342 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
16343 argument to lra_substitute_pseudo and
16344 lra_substitute_pseudo_within_insn calls.
16345 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
16346
16347 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16348
16349 * configure: Regenerated.
16350
16351 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
16352
16353 * config.gcc: Support i[34567]86-*-elfiamcu target.
16354 * config/i386/iamcu.h: New.
16355 * config/i386/i386.opt: Add -miamcu.
16356 * doc/invoke.texi: Document -miamcu.
16357 * common/config/i386/i386-common.c (ix86_handle_option): Turn
16358 off x87/MMX/SSE/AVX codegen for -miamcu.
16359 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16360 __iamcu/__iamcu__ for -miamcu.
16361 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
16362 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
16363 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
16364 * config/i386/i386.c (ix86_option_override_internal): Ignore and
16365 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
16366 MCU by default. Default long double to 64-bit for Intel MCU.
16367 Turn on -freg-struct-return for Intel MCU. Issue an error when
16368 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
16369 AVX is turned on.
16370 (function_arg_advance_32): Pass value whose size is no larger
16371 than 8 bytes in registers for Intel MCU.
16372 (function_arg_32): Likewise.
16373 (ix86_return_in_memory): Return value whose size is no larger
16374 than 8 bytes in registers for Intel MCU.
16375 (iamcu_alignment): New function.
16376 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
16377 true.
16378 (ix86_local_alignment): Don't increase alignment for Intel MCU.
16379 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
16380 true.
16381
16382 2015-06-30 Marek Polacek <polacek@redhat.com>
16383
16384 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
16385 both operands of the resulting expression.
16386
16387 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
16388 the final expression with the operand's type and then convert
16389 it to the type of the expression.
16390
16391 2015-06-30 Richard Biener <rguenther@suse.de>
16392
16393 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
16394 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
16395 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
16396 * match.pd: ... to patterns here.
16397
16398 2015-06-30 Richard Biener <rguenther@suse.de>
16399
16400 PR tree-optimization/66704
16401 * tree-vect-data-refs.c (vect_setup_realignment): Use
16402 make_ssa_name for non-SSA name source.
16403
16404 2015-06-30 Jakub Jelinek <jakub@redhat.com>
16405
16406 PR middle-end/66702
16407 * omp-low.c (simd_clone_adjust): Handle addressable linear
16408 or uniform parameters or non-gimple type uniform parameters.
16409
16410 2015-06-30 Richard Biener <rguenther@suse.de>
16411
16412 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
16413 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
16414 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
16415 * match.pd: ... here.
16416 Add a few cases of A - B -> A + (-B) when B "easily" negates.
16417 Move (x & y) | x -> x and friends before
16418 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
16419
16420 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16421
16422 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
16423 -mfix-ut699 is not specified.
16424 (leon3_load): Rename into...
16425 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
16426 is specified.
16427
16428 2015-06-30 Marek Polacek <polacek@redhat.com>
16429
16430 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
16431 * match.pd: ... here.
16432
16433 2015-06-30 Richard Biener <rguenther@suse.de>
16434
16435 * target-insns.def (canonicalize_funcptr_for_compare): Add.
16436 * fold-const.c (build_range_check): Replace uses of
16437 HAVE_canonicalize_funcptr_for_compare.
16438 (fold_widened_comparison): Likewise.
16439 (fold_sign_changed_comparison): Likewise.
16440 * dojump.c: Include "target.h".
16441 (do_compare_and_jump): Replace uses of
16442 HAVE_canonicalize_funcptr_for_compare and
16443 gen_canonicalize_funcptr_for_compare.
16444 * expr.c (do_store_flag): Likewise.
16445
16446 2015-06-30 Tom de Vries <tom@codesourcery.com>
16447
16448 PR tree-optimization/66652
16449 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
16450 max_loop_iterations to determine if nit + 1 overflows.
16451
16452 2015-06-30 Richard Biener <rguenther@suse.de>
16453
16454 * tree-vrp.c (register_edge_assert_for_2): Also register
16455 asserts for dominating conversion results.
16456
16457 2015-06-30 Bin Cheng <bin.cheng@arm.com>
16458
16459 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
16460 field in struct iv.
16461
16462 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
16463
16464 PR target/66509
16465 * configure.ac: Fix filds and fildq test for 64-bit.
16466 * configure: Regenerated.
16467
16468 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
16469
16470 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
16471 (nvptx_reorg): Here. Keep the non-subreg pieces.
16472
16473 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
16474
16475 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
16476 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16477
16478 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
16479
16480 * config/i386/i386.md (*jcc_1): Use %! in asm template.
16481 Set attribute "length_nobnd" instead of "length".
16482 (*jcc_2): Ditto.
16483 (jump): Ditto.
16484 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
16485
16486 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
16487
16488 * config/nios2/nios2.c (nios2_delegitimize_address): Make
16489 assert less restrictive.
16490
16491 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
16492
16493 PR fortran/66605
16494 * cgraphunit.c (cgraph_node::finalize_function): Do not call
16495 do_warn_unused_parameter.
16496 * function.c (do_warn_unused_parameter): Move from here.
16497 * function.h (do_warn_unused_parameter): Do not declare.
16498
16499 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16500
16501 PR target/65697
16502 * gcc.target/arm/armv-sync-comp-swap.c: New.
16503 * gcc.target/arm/armv-sync-op-acquire.c: New.
16504 * gcc.target/arm/armv-sync-op-full.c: New.
16505 * gcc.target/arm/armv-sync-op-release.c: New.
16506
16507 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16508
16509 PR target/65697
16510 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
16511 initial acquire barrier with final barrier.
16512
16513 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16514
16515 PR target/65697
16516 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
16517 initial acquire barrier with final barrier.
16518
16519 2015-06-29 Richard Henderson <rth@redhat.com>
16520
16521 * config/i386/constraints.md (Bf): New constraint.
16522 * config/i386/i386-c.c (ix86_target_macros): Define
16523 __GCC_ASM_FLAG_OUTPUTS__.
16524 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
16525 as flags outputs.
16526 * doc/extend.texi (FlagOutputOperands): Document them.
16527
16528 2015-06-29 Jiong Wang <jiong.wang@arm.com>
16529
16530 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
16531 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
16532 unspec name.
16533 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
16534 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
16535 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
16536 (aarch64_symbol_context): Ditto.
16537 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
16538 and use new pattern name.
16539 (aarch64_expand_mov_immediate): Ditto.
16540 (aarch64_print_operand): Ditto.
16541 (aarch64_classify_tls_symbol): Ditto.
16542
16543 2015-06-29 Marek Polacek <polacek@redhat.com>
16544 Marc Glisse <marc.glisse@inria.fr>
16545
16546 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
16547 * match.pd: ... pattern here.
16548
16549 2015-06-29 Tom de Vries <tom@codesourcery.com>
16550
16551 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
16552 function structure.
16553
16554 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
16555
16556 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
16557 feature description, split out the native option, add a link to
16558 the feature documentation, rearrange and slightly rewrite text.
16559 (Aarch64 options, -mcpu): Likewise.
16560 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
16561 +rdma implies Adv. SIMD.
16562
16563 2015-06-29 Marek Polacek <polacek@redhat.com>
16564
16565 PR c/66322
16566 * function.c (stack_protect_epilogue): Remove a cast to int.
16567 * doc/invoke.texi: Update -Wswitch-bool description.
16568
16569 2015-06-29 Richard Biener <rguenther@suse.de>
16570
16571 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
16572 * fold-const.c (fold_binary_loc): Move &A - &B simplification
16573 via ptr_difference_const ...
16574 * match.pd: ... here.
16575 When matching (X ^ Y) == Y also match with swapped operands.
16576
16577 2015-06-29 Richard Biener <rguenther@suse.de>
16578
16579 * lto-streamer.h (LTO_major_version): Bump to 5.
16580
16581 2015-06-29 Richard Biener <rguenther@suse.de>
16582
16583 PR tree-optimization/66677
16584 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
16585 STMT_VINFO_VEC_STMT clobbering less strict.
16586
16587 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16588
16589 PR middle-end/64130
16590 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
16591 division, compute max and min when value ranges for dividend and
16592 divisor are available.
16593
16594 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
16595 Sandra Loosemore <sandra@codesourcery.com>
16596
16597 * regrename.h (regrename_do_replace): Change to return bool.
16598 * regrename.c (rename_chains): Check return value of
16599 regname_do_replace.
16600 (regrename_do_replace): Re-validate the modified insns and
16601 return bool status.
16602 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
16603 Update to match rename_chains changes.
16604 * config/c6x/c6x.c (try_rename_operands): Assert that
16605 regrename_do_replace returns true.
16606
16607 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
16608
16609 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
16610 operand 2 here. Use copy_addr_to_reg to copy non-index
16611 register operand 2 to a temporary.
16612 (<mode>_stx): Ditto for operand 1.
16613 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
16614 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
16615 (ix86_store_bounds): Ditto.
16616
16617 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
16618
16619 * print-tree.c (print_node) [TREE_VEC]: Print its length.
16620
16621 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
16622
16623 * gimple.c (gimple_call_set_fndecl): Remove.
16624 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
16625 build1_loc directly instead of build_fold_addr_expr_loc.
16626
16627 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16628
16629 * hash-map.h (hash_map::traverse): Use the definition of the
16630 Key typedef rather than the typedef itself.
16631
16632 2015-06-26 Martin Jambor <mjambor@suse.cz>
16633
16634 PR debug/66301
16635 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
16636 NULL instead of calling dump_enabled_p.
16637
16638 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16639
16640 * config/aarch64/aarch64.opt: (override): New.
16641 * doc/invoke.texi (override): Document.
16642 * config/aarch64/aarch64.c (aarch64_flag_desc): New
16643 (aarch64_fusible_pairs): Likewise.
16644 (aarch64_tuning_flags): Likewise.
16645 (aarch64_tuning_override_function): Likewise.
16646 (aarch64_tuning_override_functions): Likewise.
16647 (aarch64_parse_one_option_token): Likewise.
16648 (aarch64_parse_boolean_options): Likewise.
16649 (aarch64_parse_fuse_string): Likewise.
16650 (aarch64_parse_tune_string): Likewise.
16651 (aarch64_parse_one_override_token): Likewise.
16652 (aarch64_parse_override_string): Likewise.
16653 (aarch64_override_options): Parse the -override string if it
16654 is present.
16655
16656 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16657
16658 * config/aarch64/aarch64-protos.h (tune_params): Remove
16659 const from members.
16660 (aarch64_tune_params): Remove const, change to no longer be
16661 a pointer.
16662 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
16663 change to no longer be a pointer, initialize to generic_tunings.
16664 (aarch64_min_divisions_for_recip_mul): Change dereference of
16665 aarch64_tune_params to member access.
16666 (aarch64_reassociation_width): Likewise.
16667 (aarch64_rtx_mult_cost): Likewise.
16668 (aarch64_address_cost): Likewise.
16669 (aarch64_branch_cost): Likewise.
16670 (aarch64_rtx_costs): Likewise.
16671 (aarch64_register_move_cost): Likewise.
16672 (aarch64_memory_move_cost): Likewise.
16673 (aarch64_sched_issue_rate): Likewise.
16674 (aarch64_builtin_vectorization_cost): Likewise.
16675 (aarch64_override_options): Take a copy of the selected tuning
16676 struct in to aarch64_tune_params, rather than just setting
16677 a pointer, change dereferences of aarch64_tune_params to member
16678 accesses.
16679 (aarch64_override_options_after_change): Change dereferences of
16680 aarch64_tune_params to member access.
16681 (aarch64_macro_fusion_p): Likewise.
16682 (aarch_macro_fusion_pair_p): Likewise.
16683 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
16684
16685 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16686
16687 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
16688 (aarch64_tune_flags): Likewise.
16689 (AARCH64_TUNE_FMA_STEERING): Likewise.
16690 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
16691 to AARCH64_FL_USE_FMA_STEERING_PASS.
16692 (cortex-a57.cortex-a53): Likewise.
16693 (cortex-a72): Use cortexa72_tunings.
16694 (cortex-a72.cortex-a53): Likewise.
16695 (exynos-m1): Likewise.
16696 * config/aarch64/aarch64-protos.h (tune_params): Add
16697 a field: extra_tuning_flags.
16698 * config/aarch64/aarch64-tuning-flags.def: New.
16699 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
16700 (aarch64_extra_tuning_flags): Likewise.
16701 (aarch64_tune_params): Declare here.
16702 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
16703 (cortexa53_tunings): Likewise.
16704 (cortexa57_tunings): Likewise.
16705 (thunderx_tunings): Likewise.
16706 (xgene1_tunings): Likewise.
16707 (cortexa72_tunings): New.
16708 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
16709 (gate): Check against aarch64_tune_params.
16710 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
16711 aarch64-protos.h.
16712
16713 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16714
16715 * config/aarch64/aarch64-fusion-pairs.def: New.
16716 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
16717 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
16718 aarch64_fusion_pairs.
16719 (AARCH64_FUSE_MOV_MOVK): Likewise.
16720 (AARCH64_FUSE_ADRP_ADD): Likewise.
16721 (AARCH64_FUSE_MOVK_MOVK): Likewise.
16722 (AARCH64_FUSE_ADRP_LDR): Likewise.
16723 (AARCH64_FUSE_CMP_BRANCH): Likewise.
16724
16725 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16726
16727 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
16728 SYMBOL_SMALL_GOT_28K.
16729 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
16730 relocation modifiers.
16731 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
16732 (ldr_got_small_28k_<mode>): New.
16733 (ldr_got_small_28k_sidi): New.
16734 * config/aarch64/iterators.md (got_modifier): New mode iterator.
16735 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
16736 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16737 SYMBOL_SMALL_GOT_28K.
16738 (aarch64_rtx_costs): Add costs for new instruction sequences.
16739 (initialize_aarch64_code_model): Initialize new model.
16740 (aarch64_classify_symbol): Recognize new model and new symbol classification.
16741 (aarch64_asm_preferred_eh_data_format): Support new model.
16742 (aarch64_load_symref_appropriately): Generate new instruction
16743 sequences for -fpic.
16744 (TARGET_USE_PSEUDO_PIC_REG): New definition.
16745 (aarch64_use_pseudo_pic_reg): New function.
16746
16747 2015-06-26 Jiong Wang <jiong.wang@arm.com>
16748
16749 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16750 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
16751 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
16752 (aarch64_expand_mov_immediate): Ditto.
16753 (aarch64_print_operand): Ditto.
16754 (aarch64_classify_symbol): Ditto.
16755
16756 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
16757
16758 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
16759
16760 2015-06-26 Bin Cheng <bin.cheng@arm.com>
16761
16762 PR bootstrap/66638
16763 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
16764 assertion failed. Remove assertion itself.
16765
16766 2015-06-26 Richard Biener <rguenther@suse.de>
16767
16768 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
16769 and -A CMP CST -> A CMP -CST which is redundant with a pattern
16770 in match.pd.
16771 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
16772 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
16773 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
16774 * match.pd: ... patterns here.
16775
16776 2015-06-26 Marek Polacek <polacek@redhat.com>
16777
16778 * match.pd ((x | y) & ~(x & y) -> x ^ y,
16779 (x | y) & (~x ^ y) -> x & y): New patterns.
16780
16781 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
16782
16783 * rtl.h (emit): Add an optional boolean parameter to control
16784 whether barriers are emitted.
16785 * emit-rtl.c (emit): Likewise.
16786 * gensupport.c (get_emit_function): Return null rather than "emit".
16787 * genemit.c (gen_emit_seq): Handle the null return value.
16788 Don't emit barriers after the final instruction in the sequence.
16789 * gentarget-def.c (main): Don't emit barriers after the instruction.
16790
16791 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16792
16793 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
16794 TARGET_UNIFIED_ASM.
16795
16796 2015-06-26 Richard Biener <rguenther@suse.de>
16797
16798 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
16799
16800 2015-06-26 Richard Biener <rguenther@suse.de>
16801
16802 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
16803 irrespective on whether the inner operation has a single use
16804 of both off are constant.
16805
16806 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
16807 Segher Boessenkool <segher@kernel.crashing.org>
16808
16809 PR target/66412
16810 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
16811 before doing PUT_MODE or PUT_CODE on operands to avoid
16812 in-place RTX modification.
16813
16814 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16815
16816 * gentarget-def.c (def_target_insn): Cast return of strtol to
16817 unsigned int.
16818
16819 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16820
16821 * gimple.h (gimple_call_set_fn): Move inline function.
16822 * gimple.c (gimple_call_set_fn): Relocate here.
16823
16824 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
16825
16826 PR target/65979
16827 PR target/66611
16828 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
16829 the replacement insn will work.
16830
16831 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
16832
16833 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
16834 by default.
16835
16836 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16837
16838 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
16839 * cgraph.h: Include ipa-ref.h and plugin-api.h.
16840 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
16841 (symtab_node::address_can_be_compared_p): Move function.
16842 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
16843 definition here.
16844 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
16845 * auto-profile.c: Likewise.
16846 * bb-reorder.c: Likewise.
16847 * builtins.c: Likewise.
16848 * calls.c: Likewise.
16849 * cfgexpand.c: Likewise.
16850 * cgraphbuild.c: Likewise.
16851 * cgraphclones.c: Likewise.
16852 * cgraphunit.c: Likewise.
16853 * combine.c: Likewise.
16854 * coverage.c: Likewise.
16855 * data-streamer-in.c: Likewise.
16856 * data-streamer-out.c: Likewise.
16857 * data-streamer.c: Likewise.
16858 * dbxout.c: Likewise.
16859 * dwarf2out.c: Likewise.
16860 * except.c: Likewise.
16861 * expr.c: Likewise.
16862 * final.c: Likewise.
16863 * fold-const.c: Likewise.
16864 * ggc-page.c: Likewise.
16865 * gimple-fold.c: Likewise.
16866 * gimple-iterator.c: Likewise.
16867 * gimple-pretty-print.c: Likewise.
16868 * gimple-streamer-in.c: Likewise.
16869 * gimple-streamer-out.c: Likewise.
16870 * gimple.c: Likewise.
16871 * gimplify.c: Likewise.
16872 * ipa-chkp.c: Likewise.
16873 * ipa-comdats.c: Likewise.
16874 * ipa-cp.c: Likewise.
16875 * ipa-devirt.c: Likewise.
16876 * ipa-icf-gimple.c: Likewise.
16877 * ipa-icf.c: Likewise.
16878 * ipa-inline-analysis.c: Likewise.
16879 * ipa-inline-transform.c: Likewise.
16880 * ipa-inline.c: Likewise.
16881 * ipa-polymorphic-call.c: Likewise.
16882 * ipa-profile.c: Likewise.
16883 * ipa-prop.c: Likewise.
16884 * ipa-pure-const.c: Likewise.
16885 * ipa-ref.c: Likewise.
16886 * ipa-reference.c: Likewise.
16887 * ipa-split.c: Likewise.
16888 * ipa-utils.c: Likewise.
16889 * ipa-visibility.c: Likewise.
16890 * ipa.c: Likewise.
16891 * langhooks.c: Likewise.
16892 * lto-cgraph.c: Likewise.
16893 * lto-compress.c: Likewise.
16894 * lto-opts.c: Likewise.
16895 * lto-section-in.c: Likewise.
16896 * lto-section-out.c: Likewise.
16897 * lto-streamer-in.c: Likewise.
16898 * lto-streamer-out.c: Likewise.
16899 * lto-streamer.c: Likewise.
16900 * omp-low.c: Likewise.
16901 * opts-global.c: Likewise.
16902 * passes.c: Likewise.
16903 * predict.c: Likewise.
16904 * print-tree.c: Likewise.
16905 * profile.c: Likewise.
16906 * ree.c: Likewise.
16907 * sanopt.c: Likewise.
16908 * stor-layout.c: Likewise.
16909 * symtab.c: Likewise.
16910 * toplev.c: Likewise.
16911 * trans-mem.c: Likewise.
16912 * tree-cfg.c: Likewise.
16913 * tree-chkp.c: Likewise.
16914 * tree-eh.c: Likewise.
16915 * tree-emutls.c: Likewise.
16916 * tree-inline.c: Likewise.
16917 * tree-nested.c: Likewise.
16918 * tree-parloops.c: Likewise.
16919 * tree-pretty-print.c: Likewise.
16920 * tree-profile.c: Likewise.
16921 * tree-sra.c: Likewise.
16922 * tree-ssa-alias.c: Likewise.
16923 * tree-ssa-live.c: Likewise.
16924 * tree-ssa-loop-ivcanon.c: Likewise.
16925 * tree-ssa-loop-ivopts.c: Likewise.
16926 * tree-ssa-pre.c: Likewise.
16927 * tree-ssa-sccvn.c: Likewise.
16928 * tree-ssa-strlen.c: Likewise.
16929 * tree-ssa-structalias.c: Likewise.
16930 * tree-streamer-in.c: Likewise.
16931 * tree-streamer-out.c: Likewise.
16932 * tree-streamer.c: Likewise.
16933 * tree-switch-conversion.c: Likewise.
16934 * tree-tailcall.c: Likewise.
16935 * tree-vect-data-refs.c: Likewise.
16936 * tree-vect-stmts.c: Likewise.
16937 * tree-vectorizer.c: Likewise.
16938 * tree.c: Likewise.
16939 * tsan.c: Likewise.
16940 * ubsan.c: Likewise.
16941 * value-prof.c: Likewise.
16942 * varasm.c: Likewise.
16943 * varpool.c: Likewise.
16944 * config/arm/arm.c: Likewise.
16945 * config/bfin/bfin.c: Likewise.
16946 * config/c6x/c6x.c: Likewise.
16947 * config/cris/cris.c: Likewise.
16948 * config/darwin-c.c: Likewise.
16949 * config/darwin.c: Likewise.
16950 * config/i386/i386.c: Likewise.
16951 * config/i386/winnt.c: Likewise.
16952 * config/microblaze/microblaze.c: Likewise.
16953 * config/mips/mips.c: Likewise.
16954 * config/rs6000/rs6000.c: Likewise.
16955 * config/rx/rx.c: Likewise.
16956 * config/s390/s390.c: Likewise.
16957 * config/tilegx/mul-tables.c: Likewise.
16958
16959 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16960
16961 * config/aarch64/aarch64.c, config/alpha/alpha.c,
16962 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
16963 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
16964 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
16965 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
16966 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
16967 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
16968 config/microblaze/microblaze.c, config/mips/mips.c,
16969 config/mmix/mmix.c, config/mn10300/mn10300.c,
16970 config/moxie/moxie.c, config/msp430/msp430.c,
16971 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
16972 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
16973 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
16974 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
16975 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16976 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
16977 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
16978 target-def.h include.
16979 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
16980
16981 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16982
16983 * Makefile.in (TARGET_DEF): Add target-insns.def.
16984 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
16985 (build/gentarget-def.o): New rule.
16986 (genprogrtl): Add target-def.
16987 * target-insns.def, gentarget-def.c: New files.
16988 * target.def: Add targetm.have_* and targetm.gen_* hooks,
16989 based on the contents of target-insns.def.
16990 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
16991 (HAVE_return, gen_return): Delete.
16992 * target-def.h: Include insn-target-def.h.
16993 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
16994 instead of direct calls. Rely on them to do the appropriate assertions.
16995 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
16996 (convert_jumps_to_returns): Use targetm interface instead of
16997 direct calls.
16998 (thread_prologue_and_epilogue_insns): Likewise.
16999 * reorg.c (find_end_label, dbr_schedule): Likewise.
17000 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17001 * shrink-wrap.c (convert_to_simple_return): Likewise.
17002 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17003
17004 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17005
17006 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17007 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17008 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17009 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17010 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17011 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17012 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17013 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17014 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17015 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17016 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17017 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17018 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17019 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17020 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17021 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17022 includes to end.
17023
17024 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17025
17026 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17027 (unbounded_int_hashmap_traits::key_type): Likewise.
17028 * hash-map.h (hash_map): Get the key type from the traits.
17029 * hash-traits.h (default_hash_traits): By default, inherit from the
17030 template parameter.
17031 * alias.c (alias_set_traits): Delete.
17032 (alias_set_entry_d::children): Use alias_set_hash as the first
17033 template parameter.
17034 (record_alias_subset): Update accordingly.
17035 * except.c (tree_hash_traits): Delete.
17036 (type_to_runtime_map): Use tree_hash as the first template parameter.
17037 (init_eh): Update accordingly.
17038 * genmatch.c (capture_id_map_hasher): Delete.
17039 (cid_map_t): Use nofree_string_hash as first template parameter.
17040 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17041 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17042 Use symbol_compare_hash as the first template parameter in
17043 subdivide_hash_map.
17044 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17045 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17046 template parameter.
17047 * passes.c (pass_registry_hasher): Delete.
17048 (name_to_pass_map): Use nofree_string_hash as the first template
17049 parameter.
17050 (register_pass_name): Update accordingly.
17051 * sanopt.c (sanopt_tree_map_traits): Delete.
17052 (sanopt_tree_triplet_map_traits): Delete.
17053 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17054 template parameter.
17055 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17056 the first template parameter.
17057 * sese.c (rename_map_hasher): Delete.
17058 (rename_map_type): Use tree_ssa_name_hash as the first template
17059 parameter.
17060 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17061 (function_summary::m_map): Use map_hash as the first template
17062 parameter.
17063 (function_summary::release): Update accordingly.
17064 * tree-if-conv.c (phi_args_hash_traits): Delete.
17065 (predicate_scalar_phi): Use tree_operand_hash as the first template
17066 parameter to phi_arg_map.
17067 * tree-inline.h (dependence_hasher): Delete.
17068 (copy_body_data::dependence_map): Use dependence_hash as the first
17069 template parameter.
17070 * tree-inline.c (remap_dependence_clique): Update accordingly.
17071 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17072 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17073 parameter.
17074 (addr_stridxptr): Update accordingly.
17075 * value-prof.c (profile_id_traits): Delete.
17076 (cgraph_node_map): Use profile_id_hash as the first template
17077 parameter.
17078 (init_node_map): Update accordingly.
17079 * config/alpha/alpha.c (string_traits): Delete.
17080 (machine_function::links): Use nofree_string_hash as the first
17081 template parameter.
17082 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17083 * config/m32c/m32c.c (pragma_traits): Delete.
17084 (pragma_htab): Use nofree_string_hash as the first template parameter.
17085 (m32c_note_pragma_address): Update accordingly.
17086 * config/mep/mep.c (pragma_traits): Delete.
17087 (pragma_htab): Use nofree_string_hash as the first template parameter.
17088 (mep_note_pragma_flag): Update accordingly.
17089 * config/mips/mips.c (mips16_flip_traits): Delete.
17090 (mflip_mips16_htab): Use nofree_string_hash as the first template
17091 parameter.
17092 (mflip_mips16_use_mips16_p): Update accordingly.
17093 (local_alias_traits): Delete.
17094 (mips16_local_aliases): Use nofree_string_hash as the first template
17095 parameter.
17096 (mips16_local_alias): Update accordingly.
17097
17098 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17099
17100 * hash-map-traits.h (default_hashmap_traits): Delete.
17101
17102 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17103
17104 * hash-map-traits.h (unbounded_hashmap_traits): New class.
17105 (unbounded_int_hashmap_traits): Likewise.
17106 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17107
17108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17109
17110 * ipa-icf.h (symbol_compare_hash): New class.
17111 (symbol_compare_hashmap_traits): Use it.
17112 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17113 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17114 (mem_alloc_description::reverse_mem_map_t): Remove redundant
17115 default_hashmap_traits.
17116 * sanopt.c (sanopt_tree_triplet_hash): New class.
17117 (sanopt_tree_triplet_map_traits): Use it.
17118
17119 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17120
17121 * gengtype-parse.c (require_template_declaration): Allow '+' in
17122 template parameters. Consolidate cases.
17123 * hash-traits.h (int_hash): New class.
17124 * alias.c (alias_set_hash): New structure.
17125 (alias_set_traits): Use it.
17126 * symbol-summary.h (function_summary::map_hash): New class.
17127 (function_summary::summary_hashmap_traits): Use it.
17128 * tree-inline.h (dependence_hash): New class.
17129 (dependence_hasher): Use it.
17130 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17131 * value-prof.c (profile_id_hash): New class.
17132 (profile_id_traits): Use it.
17133
17134 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17135
17136 * config/mips/mips.c (mips16_flip_traits): Use it.
17137 (local_alias_traits, mips16_local_aliases): Convert from a map of
17138 rtxes to a map of symbol names.
17139 (mips16_local_alias): Update accordingly.
17140
17141 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17142
17143 * hash-traits.h (string_hash, nofree_string_hash): New classes.
17144 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17145 * passes.c (pass_registry_hasher): Likewise.
17146 * config/alpha/alpha.c (string_traits): Likewise.
17147 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17148 * config/m32c/m32c.c (pragma_traits): Likewise.
17149 * config/mep/mep.c (pragma_traits): Likewise.
17150
17151 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17152
17153 * tree-hash-traits.h (tree_hash): New class.
17154 * except.c: Include tree-hash-traits.h.
17155 (tree_hash_traits): Use tree_hash.
17156
17157 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17158
17159 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17160 * sese.c: Include tree-hash-traits.h.
17161 (rename_map_hasher): Use tree_ssa_name_hasher.
17162
17163 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17164
17165 * tree-hash-traits.h (tree_decl_hash): New class.
17166 * tree-ssa-strlen.c: Include tree-hash-traits.h.
17167 (stridxlist_hash_traits): Use tree_decl_hash.
17168
17169 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17170
17171 * tree-hash-traits.h: New file.
17172 (tree_operand_hash): New class.
17173 * sanopt.c: Include tree-hash-traits.h.
17174 (sanopt_tree_map_traits): Use tree_operand_hash.
17175 * tree-if-conv.c: Include tree-hash-traits.h.
17176 (phi_args_hash_traits): Use tree_operand_hash.
17177 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17178 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17179
17180 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17181
17182 * hash-map-traits.h: Include hash-traits.h.
17183 (simple_hashmap_traits): New class.
17184 * mem-stats.h (hash_map): Change the default traits to
17185 simple_hashmap_traits<default_hash_traits<Key> >.
17186
17187 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17188
17189 * hash-table.h: Update comments.
17190
17191 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17192
17193 * hash-traits.h (default_hash_traits): New structure.
17194 * hash-set.h (default_hashset_traits): Delete.
17195 (hash_set): Use default_hash_traits<Key> instead of
17196 default_hashset_traits. Delete hash_entry type and use Key directly.
17197 * ipa-devirt.c (pair_traits): Delete.
17198 (default_hash_traits <type_pair>): Override.
17199 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17200 (odr_types_equivalent_p, add_type_duplicate): Likewise.
17201
17202 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17203
17204 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17205
17206 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17207
17208 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17209 (has_is_empty, is_empty_helper): Delete.
17210 (has_mark_deleted, mark_deleted_helper): Delete.
17211 (has_mark_empty, mark_empty_helper): Delete.
17212 (hash_table::is_deleted): Call the Descriptor unconditionally.
17213 (hash_table::is_empty): Likewise.
17214 (hash_table::mark_deleted): Likewise.
17215 (hash_table::mark_empty): Likewise.
17216
17217 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17218
17219 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
17220 redundant typedefs and members.
17221 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
17222 redundant typedefs.
17223 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17224 * ipa-devirt.c (odr_name_hasher): Likewise.
17225 (polymorphic_call_target_hasher): Likewise.
17226 * ira-costs.c (cost_classes_hasher): Likewise.
17227 * statistics.c (stats_counter_hasher): Likewise.
17228 * trans-mem.c (log_entry_hasher): Likewise.
17229 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17230 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17231 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17232 * var-tracking.c (variable_hasher): Likewise.
17233 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17234 Remove redundant typedefs and members.
17235
17236 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17237
17238 * hash-traits.h (ggc_cache_hasher): Rename to...
17239 (ggc_cache_remove): ...this and remove typedefs.
17240 (ggc_cache_ptr_hash): New class.
17241 * hash-table.h: Update commentary.
17242 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17243 rather than ggc_cache_hasher.
17244 (const_wide_int_hasher, reg_attr_hasher): Likewise.
17245 (const_double_hasher, const_fixed_hasher): Likewise.
17246 * function.c (insn_cache_hasher): Likewise.
17247 * trans-mem.c (tm_wrapper_hasher): Likewise.
17248 * tree.h (tree_decl_map_cache_hasher): Likewise.
17249 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
17250 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
17251 * ubsan.c (tree_type_map_cache_hasher): Likewise.
17252 * varasm.c (tm_clone_hasher): Likewise.
17253 * config/i386/i386.c (dllimport_hasher): Likewise.
17254 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
17255 (tree_hasher): Likewise.
17256
17257 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17258
17259 * hash-traits.h (ggc_hasher): Rename to...
17260 (ggc_remover): ...this and remove typedefs.
17261 (ggc_cache_hasher): Update accordingly. Add typedefs.
17262 (ggc_ptr_hash): New class.
17263 * hash-table.h: Update comment.
17264 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
17265 ggc_hasher.
17266 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
17267 (tree_descriptor_hasher): Likewise.
17268 * cgraph.c (function_version_hasher): Likewise.
17269 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
17270 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
17271 (dw_loc_list_hasher, addr_hasher): Likewise.
17272 * function.h (used_type_hasher): Likewise.
17273 * function.c (temp_address_hasher): Likewise.
17274 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
17275 * libfuncs.h (libfunc_hasher): Likewise.
17276 * lto-streamer.h (decl_state_hasher): Likewise.
17277 * optabs.c (libfunc_decl_hasher): Likewise.
17278 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
17279 * varasm.c (section_hasher, object_block_hasher): Likewise.
17280 (const_rtx_desc_hasher): Likewise.
17281 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
17282 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
17283
17284 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17285
17286 * hash-traits.h (free_ptr_hash): New class.
17287 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
17288 rather than typed_free_remove. Remove redudant typedefs.
17289 (external_ref_hasher): Likewise.
17290 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
17291 (ehspec_hasher): Likewise.
17292 * ggc-common.c (saving_hasher): Likewise.
17293 * gimplify.c (gimplify_hasher): Likewise.
17294 * haifa-sched.c (delay_i2_hasher): Likewise.
17295 * loop-invariant.c (invariant_expr_hasher): Likewise.
17296 * loop-iv.c (biv_entry_hasher): Likewise.
17297 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
17298 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
17299 * tree-cfg.c (locus_discrim_hasher): Likewise.
17300 * tree-eh.c (finally_tree_hasher): Likewise.
17301 * tree-into-ssa.c (var_info_hasher): Likewise.
17302 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
17303 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
17304 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
17305 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
17306 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
17307 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
17308 (shared_bitmap_hasher): Likewise.
17309 * tree-ssa-threadupdate.c (redirection_data): Likewise.
17310 * tree-vectorizer.h (peel_info_hasher): Likewise.
17311 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
17312 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
17313
17314 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17315
17316 * hash-table.h: Update comments.
17317 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
17318 (nofree_ptr_hash): New class.
17319 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
17320 than typed_noop_remove. Remove redudant typedefs.
17321 * attribs.c (attribute_hasher): Likewise.
17322 * cfg.c (bb_copy_hasher): Likewise.
17323 * cselib.c (cselib_hasher): Likewise.
17324 * dse.c (invariant_group_base_hasher): Likewise.
17325 * dwarf2cfi.c (trace_info_hasher): Likewise.
17326 * dwarf2out.c (macinfo_entry_hasher): Likewise.
17327 (comdat_type_hasher, loc_list_hasher): Likewise.
17328 * gcse.c (pre_ldst_expr_hasher): Likewise.
17329 * genmatch.c (id_base): Likewise.
17330 * genrecog.c (test_pattern_hasher): Likewise.
17331 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
17332 * haifa-sched.c (delay_i1_hasher): Likewise.
17333 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
17334 * ipa-icf.h (congruence_class_group_hash): Likewise.
17335 * ipa-profile.c (histogram_hash): Likewise.
17336 * ira-color.c (allocno_hard_regs_hasher): Likewise.
17337 * lto-streamer.h (string_slot_hasher): Likewise.
17338 * lto-streamer.c (tree_entry_hasher): Likewise.
17339 * plugin.c (event_hasher): Likewise.
17340 * postreload-gcse.c (expr_hasher): Likewise.
17341 * store-motion.c (st_expr_hasher): Likewise.
17342 * tree-sra.c (uid_decl_hasher): Likewise.
17343 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
17344 (ssa_name_var_hash): Likewise.
17345 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
17346 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
17347 * tree-ssa-pre.c (pre_expr_d): Likewise.
17348 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
17349 * vtable-verify.h (registration_hasher): Likewise.
17350 * vtable-verify.c (vtbl_map_hasher): Likewise.
17351 * config/arm/arm.c (libcall_hasher): Likewise.
17352 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
17353 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
17354 * config/sol2.c (comdat_entry_hasher): Likewise.
17355 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
17356 (print_fold_checksum, fold_checksum_tree): Likewise.
17357 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
17358 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
17359 (fold_build_call_array_loc): Likewise.
17360 * tree-ssa-ccp.c (gimple_htab): Likewise.
17361 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
17362 rather than pointer_type.
17363
17364 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17365
17366 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
17367 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
17368
17369 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17370
17371 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
17372 (ggc_hasher::ggc_mx): Likewise.
17373 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
17374 that duplicate ggc_hasher ones.
17375
17376 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17377
17378 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
17379 (gt_cleare_cache): Check here for deleted and empty entries.
17380 Replace handle_cache_entry with a call to keep_cache_entry.
17381 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
17382 (ggc_cache_hasher::keep_cache_entry): New function.
17383 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
17384 (tm_wrapper_hasher::keep_cache_entry): New function.
17385 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
17386 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17387 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
17388 (type_cache_hasher::keep_cache_entry): New function.
17389 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
17390 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17391 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
17392 (tree_type_map_cache_hasher::keep_cache_entry): New function.
17393 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
17394 (tm_clone_hasher::keep_cache_entry): New function.
17395 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
17396 (dllimport_hasher::keep_cache_entry): New function.
17397
17398 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17399
17400 * hash-table.h: Include hash-traits.h.
17401 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
17402 (ggc_cache_hasher): Move to...
17403 * hash-traits.h: ...this new file.
17404
17405 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17406
17407 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
17408 struct cl_optimization.
17409 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
17410 * tree.c (make_node_stat): Allocate cl_optimization struct.
17411 (copy_node_stat): Allocate and copy cl_optimization struct.
17412
17413 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17414
17415 * function.h (struct incoming_args): Move struct.
17416 (pass_by_reference, reference_callee_copied): Remove prototypes.
17417 * emit-rtl.h (struct incoming_args): Relocate struct here.
17418 * calls.h (pass_by_reference, reference_callee_copied): Relocate
17419 prototypes here.
17420 * function.c (pass_by_reference, reference_callee_copied): Move.
17421 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
17422 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
17423 * ipa-chkp.c: Include calls.h.
17424
17425 2015-06-25 Andrew Macleod <amacleod@redhat.com>
17426
17427 * alias.h (alias_set_type): Move typedef.
17428 * coretypes.h (alias_set_type): Relocate typedef here.
17429 * rtl.h: Don't include alias.h.
17430
17431 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17432
17433 * cgraph.h (cgraph_rtl_info): Move to rtl.h
17434 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
17435 and instance.
17436 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
17437 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
17438 doesn't exist.
17439 * calls.c: Include hard-reg-set.h before rtl.h.
17440 * ira.c: Likewise.
17441
17442 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17443 Vladimir Makarov <vmakarov@redhat.com>
17444
17445 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
17446 Add assert.
17447
17448 2015-06-25 Richard Biener <rguenther@suse.de>
17449
17450 * fold-const.c (fold_binary_loc): Move simplification of
17451 (X <<>> C1) & C2 ...
17452 * match.pd: ... here.
17453
17454 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
17455
17456 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
17457
17458 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17459
17460 * match.pd: Add patterns for vec_conds between 1 and 0.
17461
17462 2015-06-25 Richard Biener <rguenther@suse.de>
17463
17464 * tree-vect-stmts.c (vectorizable_conversion): Do not set
17465 STMT_VINFO_VEC_STMT for SLP.
17466 (vectorizable_store): Likewise.
17467 (vectorizable_load): Likewise.
17468 (vect_transform_stmt): Catch SLP vectorization clobbering
17469 STMT_VINFO_VEC_STMT.
17470
17471 2015-06-25 Richard Biener <rguenther@suse.de>
17472
17473 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
17474 dumping.
17475 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
17476 cleanup resulting dead code and parameters.
17477 (vect_transform_slp_perm_load): Adjust.
17478
17479 2015-06-25 Nick Clifton <nickc@redhat.com>
17480
17481 * config/bfin/bfin.c (bfin_expand_prologue): Set
17482 current_function_static_stack_size if flag_stack_usage_info is set.
17483 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
17484 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
17485 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
17486 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
17487
17488 2015-06-25 Tom de Vries <tom@codesourcery.com>
17489
17490 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
17491 comment that the generated IV is unsigned.
17492
17493 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17494
17495 PR target/29693
17496 * config/arm/arm.c (arm_dbx_register_number): Return
17497 DWARF_FRAME_REGISTERS by default.
17498
17499 2015-06-25 Tom de Vries <tom@codesourcery.com>
17500
17501 * dominance.c (calculate_dominance_info): Fix verify_dominators call
17502 argument. Call verify_dominator when reusing dominator info.
17503
17504 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
17505
17506 PR target/66563
17507 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
17508 an additional element of the unspec vector. Modify indices
17509 of operands.
17510 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
17511 * config/sh/sh.c (prepare_move_operands): Pass incremented
17512 const_int to gen_GOTaddr2picreg.
17513 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
17514
17515 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17516
17517 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
17518 Condition on TARGET_FLOAT.
17519
17520 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17521
17522 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
17523 and (no)crypto.
17524
17525 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
17526
17527 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
17528
17529 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
17530 aarch64_err_no_fpadvsimd.
17531
17532 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
17533 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
17534 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
17535 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
17536 Turn error into assert, test TARGET_FLOAT.
17537 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
17538 TARGET_FLOAT.
17539
17540 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
17541
17542 PR debug/66482
17543 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
17544
17545 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
17546
17547 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
17548
17549 2015-06-24 Renlin Li <renlin.li@arm.com>
17550
17551 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
17552 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
17553
17554 2015-06-24 Richard Biener <rguenther@suse.de>
17555
17556 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
17557 (main): Likewise.
17558 (lower_opt_convert): Support lowering of conditional view_convert.
17559 (parser::parse_operation): Likewise.
17560 (parser::parse_for): Likewise.
17561
17562 2015-06-24 Renlin Li <renlin.li@arm.com>
17563
17564 * varasm.c (emit_local): Use unsigned int for align variable.
17565
17566 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17567
17568 PR target/63408
17569 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
17570 for negative numbers.
17571
17572 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17573
17574 PR rtl-optimization/66306
17575 * reload.c (find_reloads): Swap the match_dup info for
17576 commutative operands.
17577
17578 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17579
17580 * config/s390/vx-builtins.md
17581 ("vec_scatter_element<mode>_<non_vec_int>")
17582 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
17583 attribute with bhfgq.
17584
17585 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17586
17587 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
17588
17589 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17590
17591 * config/s390/s390-builtin-types.def: Add flag to indicate the
17592 options under which the function type is needed.
17593 * config/s390/s390-builtins.def: Add flag to indicate the options
17594 under which the builtin is enabled.
17595 * config/s390/s390-builtins.h: Add flags parameter to macro
17596 definitions.
17597 (bflags_for_builtin): New function.
17598 (flags_for_builtin): Renamed to ...
17599 (opflags_for_builtin): ... this.
17600 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
17601 flags_for_builtin to bflags_for_builtin and
17602 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
17603 * config/s390/s390.c: Add initialization of bflags_builtin and
17604 opflags_builtin arrays.
17605 Remove code for flags_builtin.
17606 (s390_init_builtins): Only create builtin function types if one of
17607 their flags is active.
17608 Only create builtins if all of their flags are active.
17609 (s390_expand_builtin): Rename flags_for_builtin to
17610 opflags_for_builtin.
17611
17612 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17613
17614 * config/s390/vecintrin.h: Remove internal builtins.
17615
17616 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17617
17618 * config/s390/s390.c (s390_secondary_reload): Fix check for
17619 GENERAL_REGS register class.
17620
17621 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17622
17623 * config/s390/s390.c (s390_support_vector_misalignment): Call
17624 default implementation for !TARGET_VX.
17625
17626 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17627
17628 * config/s390/s390.c (s390_legitimate_constant_p): Add
17629 TARGET_VX check.
17630
17631 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17632
17633 * config/s390/s390.c (s390_vector_abi): New variable definition.
17634 (s390_check_type_for_vector_abi): New function.
17635 (TARGET_ASM_FILE_END): New macro definition.
17636 (s390_asm_file_end): New function.
17637 (s390_function_arg): Call s390_check_type_for_vector_abi.
17638 (s390_gimplify_va_arg): Likewise.
17639 * configure: Regenerate.
17640 * configure.ac: Check for .gnu_attribute Binutils feature.
17641
17642 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
17643
17644 PR target/65803
17645 * config/bfin/bfin.c (hwloop_optimize): Initialize
17646 JUMP_LABEL for newly created jump.
17647
17648 2015-06-23 Tristan Gingold <gingold@adacore.com>
17649
17650 * collect-utils.c (collect_wait): Unlink the response file here
17651 instead of...
17652 (do_wait): ...here.
17653 (utils_cleanup): ...and here.
17654
17655 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
17656
17657 * df-scan.c: Don't include target-def.h.
17658 * targhooks.c: Likewise.
17659 * config/arm/arm-c.c: Likewise.
17660 * config/i386/i386-c.c: Likewise.
17661 * config/nds32/nds32-cost.c: Likewise.
17662 * config/nds32/nds32-fp-as-gp.c: Likewise.
17663 * config/nds32/nds32-intrinsic.c: Likewise.
17664 * config/nds32/nds32-isr.c: Likewise.
17665 * config/nds32/nds32-md-auxiliary.c: Likewise.
17666 * config/nds32/nds32-memory-manipulation.c: Likewise.
17667 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17668 * config/nds32/nds32-predicates.c: Likewise.
17669
17670 2015-06-23 Richard Biener <rguenther@suse.de>
17671
17672 PR tree-optimization/66636
17673 * tree-vect-stmts.c (vectorizable_store): Properly compute the
17674 def type for further defs for strided stores.
17675
17676 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
17677
17678 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
17679 conditional selects.
17680 (setcc_int<mode>, setcc_float<mode>): Reformat.
17681
17682 2015-06-23 Marek Polacek <polacek@redhat.com>
17683
17684 * match.pd ((x + y) - (x | y) -> x & y,
17685 (x + y) - (x & y) -> x | y): New patterns.
17686
17687 2015-06-23 Ludovic Courtès <ludo@gnu.org>
17688
17689 PR 65711
17690 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
17691 '-dynamic-linker' within %{!shared: ...}.
17692
17693 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
17694
17695 PR target/66560
17696 * config/i386/predicates.md (addsub_vm_operator): New predicate.
17697 (addsub_vs_operator): Ditto.
17698 (addsub_vs_parallel): Ditto.
17699 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
17700 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
17701 Put minus RTX before plus and adjust vec_merge selector.
17702 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
17703 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
17704 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
17705 (addsub vec_merge splitters): New combiner splitters.
17706 (addsub vec_select/vec_concat splitters): Ditto.
17707
17708 2015-06-23 Bin Cheng <bin.cheng@arm.com>
17709
17710 PR tree-optimization/66449
17711 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
17712 POINTER_PLUS_EXPR for pointers.
17713
17714 2015-06-23 Alan Modra <amodra@gmail.com>
17715
17716 * rtlanal.c (commutative_operand_precedence): Correct comments.
17717 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
17718 declaration. Return an int. Distinguish REG,REG return from
17719 others.
17720 (struct simplify_plus_minus_op_data): Make local to function.
17721 (simplify_plus_minus): Don't set canonicalized if merely sorting
17722 registers. Avoid packing ops if nothing changes. White space fixes.
17723
17724 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
17725
17726 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
17727 -fdump-ada-spec is passed but not if -fsyntax-only is.
17728
17729 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
17730
17731 PR bootstrap/63740
17732 * lra-lives.c (process_bb_lives): Check insn copying the same
17733 reload pseudo and don't create a copy for it.
17734
17735 2015-06-22 Tom de Vries <tom@codesourcery.com>
17736
17737 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
17738 for cond_stmt.
17739
17740 2015-06-22 Tom de Vries <tom@codesourcery.com>
17741
17742 * builtins.def (DEF_GOMP_BUILTIN): Test
17743 'flag_tree_parallelize_loops > 1' instead of
17744 'flag_tree_parallelize_loops'. Test flag_cilkplus.
17745
17746 2015-06-22 Tom de Vries <tom@codesourcery.com>
17747
17748 * dominance.c (calculate_dominance_info): Verify dominators if
17749 early-out.
17750
17751 2015-06-22 Marek Polacek <polacek@redhat.com>
17752
17753 * match.pd ((x ^ y) ^ (x | y) -> x & y,
17754 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
17755 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
17756 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
17757
17758 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
17759
17760 PR target/65871
17761 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
17762 cost of embedded comparison.
17763
17764 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17765
17766 PR target/65914
17767 * config/rs6000/predicates.md (altivec_register_operand): Permit
17768 virtual stack registers.
17769 (vsx_register_operand): Likewise.
17770 (vfloat_operand): Likewise.
17771 (vint_operand): Likewise.
17772 (vlogical_operand): Likewise.
17773
17774 2015-06-22 Richard Biener <rguenther@suse.de>
17775
17776 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
17777 and single_scalar_iteration_cost members.
17778 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
17779 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
17780 (vect_get_single_scalar_iteration_cost): Remove.
17781 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17782 Use LOOP_VINFO_SCALAR_ITERATION_COST.
17783 * tree-vect-loop.c (destroy_loop_vec_info): Free
17784 scalar_cost_vec.
17785 (vect_get_single_scalar_iteration_cost): Compute result into
17786 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
17787 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
17788 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
17789 (vect_estimate_min_profitable_iters): Use them.
17790
17791 2015-06-22 Christian Bruel <christian.bruel@st.com>
17792
17793 PR target/52144
17794 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
17795 (TARGET_INSERT_ATTRIBUTES): Define.
17796 (thumb_flipper): New var.
17797 * config/arm/arm.opt (-mflip-thumb): New switch.
17798
17799 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17800 Martin Liska <mliska@suse.cz>
17801
17802 PR ipa/65908
17803 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
17804 construction of arg_types.
17805 (sem_function::sem_function): Likewise.
17806 (sem_function::~sem_function): Remove destruction of arg_types.
17807 (sem_function::compatible_parm_types_p): New function.
17808 (sem_function::equals_wpa): Reorg matching of return values
17809 and parameter types.
17810 (sem_function::equals_private): Reorg mathcing of argument types.
17811 (sem_function::parse_tree_args): Remove.
17812 * ipa-icf.h (init_wpa): Do not call it.
17813 (parse_tree_args): Remove.
17814 (compatible_parm_types_p): Declare.
17815 (result_type): Remove.
17816 (arg_types): Remove.
17817
17818 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
17819
17820 PR ipa/66351
17821 * ipa-polymorphic-call.c
17822 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
17823 initializing alias oracle; fix formating; set base_alias_set if it
17824 is known.
17825
17826 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
17827
17828 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
17829 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
17830 (find_inc): Likewise.
17831 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
17832 swapping.
17833 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
17834 * df-scan.c (df_swap_refs): Remove.
17835 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
17836 * dominance.c (link_roots): Use std::swap instead of manually swapping.
17837 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
17838 * fold-const.c (fold_relational_const): Likewise.
17839 * genattrtab.c (simplify_test_exp): Likewise.
17840 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
17841 gimple_simplify): Likewise.
17842 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
17843 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
17844 * ipa-devirt.c (add_type_duplicate): Likewise.
17845 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
17846 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
17847 * lra.c (lra_create_copy): Likewise.
17848 * lto-streamer-out.c (DFS::DFS): Likewise.
17849 * modulo-sched.c (get_sched_window): Likewise.
17850 * omega.c (omega_pretty_print_problem): Likewise.
17851 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
17852 * reload1.c (reloads_unique_chain_p): Likewise.
17853 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
17854 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
17855 use std::swap.
17856 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
17857 manually swapping.
17858 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
17859 predicate_mem_writes): Likewise.
17860 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
17861 * tree-predcom.c (combine_chains): Likewise.
17862 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
17863 refs_may_alias_p_1): Likewise.
17864 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
17865 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17866 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
17867 number_of_iterations_cond): Likewise.
17868 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17869 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
17870 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17871 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
17872 * tree-vrp.c (extract_range_from_binary_expr_1,
17873 extract_range_from_unary_expr_1): Likewise.
17874
17875 2015-06-20 Marek Polacek <polacek@redhat.com>
17876
17877 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
17878
17879 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
17880
17881 PR target/66591
17882 * config/sh/sh.c (prepare_move_operands): Replace subreg
17883 index term with R0 for base and index addressing.
17884
17885 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
17886
17887 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
17888 op1 is an fp zero.
17889 (movsf_aarch64): Change condition from register_operand to
17890 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
17891 load1. Change type for alternative 7 to store1.
17892 (movdf_aarch64): Likewise.
17893
17894 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
17895
17896 * config/vax/vax.md: Adjust sign/zero extend patterns to
17897 handle SUBREGs in operands[1].
17898
17899 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17900
17901 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
17902 of manually swapping.
17903 (expand_vec_perm_interleave2): Likewise.
17904
17905 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
17906
17907 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
17908 reuse bounds created for abnormal ssa names.
17909
17910 2015-06-19 Jakub Jelinek <jakub@redhat.com>
17911
17912 * config/nvptx/nvptx.md (allocate_stack): Rename to...
17913 (allocate_stack_<mode>): ... this, and add :P on both
17914 match_operand and unspec.
17915 (allocate_stack): New expander.
17916
17917 2015-06-19 Christian Bruel <christian.bruel@st.com>
17918
17919 PR target/66541
17920 PR target/52144
17921 * config/arm/arm.c (arm_set_current_function): Handle
17922 explicit default options.
17923
17924 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17925
17926 * config/i386/i386.md (*movsicc_noc_zext): New insn.
17927 (zero-extended cmove with mem peephole2): New pattern.
17928 (cmove with mem peephole2): Merge patterns.
17929
17930 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17931
17932 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
17933
17934 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
17935
17936 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
17937 * config/mips/mips.md (*madd4<mode>): Ditto.
17938 (*nmadd3<mode>) Ditto.
17939 (*nmadd4<mode>_fastmath): Ditto.
17940 (*nmadd3<mode>_fastmath): Ditto.
17941 (*nmsub4<mode>): Ditto.
17942 (*nmsub3<mode>): Ditto.
17943 (*nmsub4<mode>_fastmath): Ditto.
17944 (*nmsub3<mode>_fastmath): Ditto.
17945
17946 2015-06-18 Michael Matz <matz@suse.de>
17947
17948 PR middle-end/66253
17949 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
17950 grouped strided stores.
17951 (vectorizable_load): Don't use the DR from first_stmt in
17952 the non-SLP grouped strided case.
17953
17954 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17955
17956 PR target/66569
17957 * function.c (assign_bounds): Add arguments assign_regs,
17958 assign_special, assign_bt.
17959 (assign_parms): For vararg functions handle bounds in BT
17960 and special slots after incoming vararg bounds.
17961
17962 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17963
17964 PR middle-end/66568
17965 * cfgexpand.c (expand_return): Handle missing bounds.
17966 (expand_gimple_stmt_1): Likewise.
17967 * tree-chkp.c (chkp_expand_zero_bounds): New.
17968 * tree-chkp.h (chkp_expand_zero_bounds): New.
17969
17970 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17971
17972 PR middle-end/66567
17973 * ipa-chkp.c (chkp_maybe_create_clone): Require
17974 functions to be instrumentable.
17975 * tree-chkp.c (chkp_replace_function_pointer): Use
17976 chkp_instrumentable_p instead of attribute check.
17977
17978 2015-06-18 Richard Biener <rguenther@suse.de>
17979
17980 PR tree-optimization/66510
17981 * tree-vect-stmts.c (vectorizable_load): Properly compute the
17982 number of vector loads for SLP permuted loads.
17983 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
17984 check the stride for loop vectorization.
17985 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
17986 vectorization factor.
17987 (vect_analyze_group_access): If the group size is not a power
17988 of two require a epilogue loop.
17989 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
17990 compute and optimizing and alias test pruning after final
17991 vectorization factor computation.
17992 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
17993 vector alignment.
17994 (vect_transform_slp_perm_load): Properly compute the original
17995 number of vector load stmts.
17996
17997 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
17998
17999 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18000 "unlikely character , in @var" warning.
18001
18002 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
18003
18004 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18005 (ix86_function_arg_advance): Ditto.
18006 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
18007
18008 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18009
18010 * function.h (struct rtl_data): Remove struct and accessor macros.
18011 * emit-rtl.h (struct rtl_data): Relocate to here.
18012 * Makefile.in (GTFILES): Add emit-rtl.h.
18013 * df-core.c: Include emit-rtl.h.
18014 * genattrtab.c: Likewise.
18015 * genconditions.c: Likewise.
18016 * genpreds.c: Likewise.
18017 * genrecog.c: Likewise.
18018 * regcprop.c: Likewise.
18019 * resource.c: Likewise.
18020 * sched-rgn.c: Likewise.
18021 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18022 * config/i386/winnt.c: Likewise.
18023
18024 2015-06-17 Jakub Jelinek <jakub@redhat.com>
18025
18026 PR middle-end/66429
18027 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18028 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
18029 and has_force_vectorize_loops flags from cfun into
18030 child_cfun.
18031 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18032 if simduid is non-NULL.
18033 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18034 * passes.def (pass_simduid_cleanup): Add new pass after loop
18035 passes.
18036 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18037 indirection from htab argument's type.
18038 (shrink_simd_arrays): New function.
18039 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
18040 Don't call adjust_simduid_builtins if there are no loops.
18041 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18042 (pass_simduid_cleanup::execute): New method.
18043 (make_pass_simduid_cleanup): New function.
18044
18045 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
18046
18047 * tree-core.h (tree_target_option): Make opts field a pointer to a
18048 cl_target_option instead of an instance of the struct.
18049 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18050 the structure.
18051 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18052 TARGET_OPTION_NODE.
18053 (copy_node_stat): Allocate and copy struct cl_target_option.
18054
18055 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18056
18057 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18058 Remove conditional exposure of prototypes.
18059 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18060 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
18061 definitions in tree.h with functions.
18062 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18063 anon_aggrname_p.
18064 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18065
18066 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
18067
18068 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18069 (*cmp<mode>_signed): ... this.
18070 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18071 (*cmp<mode>_unsigned): ... this. Remove %b.
18072
18073 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18074
18075 * coretypes.h: Include input.h and as-a.h.
18076 * rtl.h: Include input.h and as-a.h for generator files.
18077 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18078 * vec.c: Don't include diagnostic-core.h.
18079 * alias.c: Do not include input.h, line-map.h or is-a.h.
18080 * asan.c: Likewise.
18081 * attribs.c: Likewise.
18082 * auto-inc-dec.c: Likewise.
18083 * auto-profile.c: Likewise.
18084 * bb-reorder.c: Likewise.
18085 * bt-load.c: Likewise.
18086 * builtins.c: Likewise.
18087 * caller-save.c: Likewise.
18088 * calls.c: Likewise.
18089 * ccmp.c: Likewise.
18090 * cfg.c: Likewise.
18091 * cfganal.c: Likewise.
18092 * cfgbuild.c: Likewise.
18093 * cfgcleanup.c: Likewise.
18094 * cfgexpand.c: Likewise.
18095 * cfghooks.c: Likewise.
18096 * cfgloop.c: Likewise.
18097 * cfgloop.h: Likewise.
18098 * cfgloopanal.c: Likewise.
18099 * cfgloopmanip.c: Likewise.
18100 * cfgrtl.c: Likewise.
18101 * cgraph.c: Likewise.
18102 * cgraphbuild.c: Likewise.
18103 * cgraphclones.c: Likewise.
18104 * cgraphunit.c: Likewise.
18105 * cilk-common.c: Likewise.
18106 * combine-stack-adj.c: Likewise.
18107 * combine.c: Likewise.
18108 * compare-elim.c: Likewise.
18109 * convert.c: Likewise.
18110 * coverage.c: Likewise.
18111 * cppbuiltin.c: Likewise.
18112 * cprop.c: Likewise.
18113 * cse.c: Likewise.
18114 * cselib.c: Likewise.
18115 * data-streamer-in.c: Likewise.
18116 * data-streamer-out.c: Likewise.
18117 * data-streamer.c: Likewise.
18118 * dbxout.c: Likewise.
18119 * dce.c: Likewise.
18120 * ddg.c: Likewise.
18121 * debug.c: Likewise.
18122 * df-core.c: Likewise.
18123 * df-problems.c: Likewise.
18124 * df-scan.c: Likewise.
18125 * df.h: Likewise.
18126 * dfp.c: Likewise.
18127 * diagnostic-core.h: Likewise.
18128 * diagnostic.c: Likewise.
18129 * dojump.c: Likewise.
18130 * dominance.c: Likewise.
18131 * domwalk.c: Likewise.
18132 * double-int.c: Likewise.
18133 * dse.c: Likewise.
18134 * dumpfile.c: Likewise.
18135 * dumpfile.h: Likewise.
18136 * dwarf2asm.c: Likewise.
18137 * dwarf2cfi.c: Likewise.
18138 * dwarf2out.c: Likewise.
18139 * emit-rtl.c: Likewise.
18140 * et-forest.c: Likewise.
18141 * except.c: Likewise.
18142 * explow.c: Likewise.
18143 * expmed.c: Likewise.
18144 * expr.c: Likewise.
18145 * final.c: Likewise.
18146 * fixed-value.c: Likewise.
18147 * fold-const.c: Likewise.
18148 * function.c: Likewise.
18149 * fwprop.c: Likewise.
18150 * gcc-plugin.h: Likewise.
18151 * gcse.c: Likewise.
18152 * generic-match-head.c: Likewise.
18153 * ggc-page.c: Likewise.
18154 * gimple-builder.c: Likewise.
18155 * gimple-expr.c: Likewise.
18156 * gimple-fold.c: Likewise.
18157 * gimple-iterator.c: Likewise.
18158 * gimple-low.c: Likewise.
18159 * gimple-match-head.c: Likewise.
18160 * gimple-pretty-print.c: Likewise.
18161 * gimple-ssa-isolate-paths.c: Likewise.
18162 * gimple-ssa-strength-reduction.c: Likewise.
18163 * gimple-streamer-in.c: Likewise.
18164 * gimple-streamer-out.c: Likewise.
18165 * gimple-streamer.h: Likewise.
18166 * gimple-walk.c: Likewise.
18167 * gimple.c: Likewise.
18168 * gimplify-me.c: Likewise.
18169 * gimplify.c: Likewise.
18170 * godump.c: Likewise.
18171 * graph.c: Likewise.
18172 * graphite-blocking.c: Likewise.
18173 * graphite-dependences.c: Likewise.
18174 * graphite-interchange.c: Likewise.
18175 * graphite-isl-ast-to-gimple.c: Likewise.
18176 * graphite-optimize-isl.c: Likewise.
18177 * graphite-poly.c: Likewise.
18178 * graphite-scop-detection.c: Likewise.
18179 * graphite-sese-to-poly.c: Likewise.
18180 * graphite.c: Likewise.
18181 * haifa-sched.c: Likewise.
18182 * hw-doloop.c: Likewise.
18183 * ifcvt.c: Likewise.
18184 * init-regs.c: Likewise.
18185 * input.c: Likewise.
18186 * internal-fn.c: Likewise.
18187 * ipa-chkp.c: Likewise.
18188 * ipa-comdats.c: Likewise.
18189 * ipa-cp.c: Likewise.
18190 * ipa-devirt.c: Likewise.
18191 * ipa-icf-gimple.c: Likewise.
18192 * ipa-icf.c: Likewise.
18193 * ipa-inline-analysis.c: Likewise.
18194 * ipa-inline-transform.c: Likewise.
18195 * ipa-inline.c: Likewise.
18196 * ipa-polymorphic-call.c: Likewise.
18197 * ipa-profile.c: Likewise.
18198 * ipa-prop.c: Likewise.
18199 * ipa-pure-const.c: Likewise.
18200 * ipa-ref.c: Likewise.
18201 * ipa-reference.c: Likewise.
18202 * ipa-split.c: Likewise.
18203 * ipa-utils.c: Likewise.
18204 * ipa-visibility.c: Likewise.
18205 * ipa.c: Likewise.
18206 * ira-build.c: Likewise.
18207 * ira-color.c: Likewise.
18208 * ira-conflicts.c: Likewise.
18209 * ira-costs.c: Likewise.
18210 * ira-emit.c: Likewise.
18211 * ira-lives.c: Likewise.
18212 * ira.c: Likewise.
18213 * jump.c: Likewise.
18214 * langhooks.c: Likewise.
18215 * lcm.c: Likewise.
18216 * loop-doloop.c: Likewise.
18217 * loop-init.c: Likewise.
18218 * loop-invariant.c: Likewise.
18219 * loop-iv.c: Likewise.
18220 * loop-unroll.c: Likewise.
18221 * lower-subreg.c: Likewise.
18222 * lra-assigns.c: Likewise.
18223 * lra-coalesce.c: Likewise.
18224 * lra-constraints.c: Likewise.
18225 * lra-eliminations.c: Likewise.
18226 * lra-lives.c: Likewise.
18227 * lra-remat.c: Likewise.
18228 * lra-spills.c: Likewise.
18229 * lra.c: Likewise.
18230 * lto-cgraph.c: Likewise.
18231 * lto-compress.c: Likewise.
18232 * lto-opts.c: Likewise.
18233 * lto-section-in.c: Likewise.
18234 * lto-section-out.c: Likewise.
18235 * lto-streamer-in.c: Likewise.
18236 * lto-streamer-out.c: Likewise.
18237 * lto-streamer.c: Likewise.
18238 * mcf.c: Likewise.
18239 * mode-switching.c: Likewise.
18240 * modulo-sched.c: Likewise.
18241 * omega.c: Likewise.
18242 * omp-low.c: Likewise.
18243 * optabs.c: Likewise.
18244 * opts-global.c: Likewise.
18245 * opts.h: Likewise.
18246 * passes.c: Likewise.
18247 * plugin.c: Likewise.
18248 * postreload-gcse.c: Likewise.
18249 * postreload.c: Likewise.
18250 * predict.c: Likewise.
18251 * pretty-print.h: Likewise.
18252 * print-rtl.c: Likewise.
18253 * print-tree.c: Likewise.
18254 * profile.c: Likewise.
18255 * real.c: Likewise.
18256 * realmpfr.c: Likewise.
18257 * recog.c: Likewise.
18258 * ree.c: Likewise.
18259 * reg-stack.c: Likewise.
18260 * regcprop.c: Likewise.
18261 * reginfo.c: Likewise.
18262 * regrename.c: Likewise.
18263 * regstat.c: Likewise.
18264 * reload.c: Likewise.
18265 * reload1.c: Likewise.
18266 * reorg.c: Likewise.
18267 * resource.c: Likewise.
18268 * rtl-chkp.c: Likewise.
18269 * rtl-error.c: Likewise.
18270 * rtlanal.c: Likewise.
18271 * rtlhooks.c: Likewise.
18272 * sanopt.c: Likewise.
18273 * sched-deps.c: Likewise.
18274 * sched-ebb.c: Likewise.
18275 * sched-rgn.c: Likewise.
18276 * sched-vis.c: Likewise.
18277 * sdbout.c: Likewise.
18278 * sel-sched-dump.c: Likewise.
18279 * sel-sched-ir.c: Likewise.
18280 * sel-sched.c: Likewise.
18281 * sese.c: Likewise.
18282 * shrink-wrap.c: Likewise.
18283 * simplify-rtx.c: Likewise.
18284 * stack-ptr-mod.c: Likewise.
18285 * statistics.c: Likewise.
18286 * stmt.c: Likewise.
18287 * stor-layout.c: Likewise.
18288 * store-motion.c: Likewise.
18289 * streamer-hooks.c: Likewise.
18290 * stringpool.c: Likewise.
18291 * symtab.c: Likewise.
18292 * target-globals.c: Likewise.
18293 * targhooks.c: Likewise.
18294 * toplev.c: Likewise.
18295 * tracer.c: Likewise.
18296 * trans-mem.c: Likewise.
18297 * tree-affine.c: Likewise.
18298 * tree-browser.c: Likewise.
18299 * tree-call-cdce.c: Likewise.
18300 * tree-cfg.c: Likewise.
18301 * tree-cfgcleanup.c: Likewise.
18302 * tree-chkp-opt.c: Likewise.
18303 * tree-chkp.c: Likewise.
18304 * tree-chrec.c: Likewise.
18305 * tree-complex.c: Likewise.
18306 * tree-data-ref.c: Likewise.
18307 * tree-dfa.c: Likewise.
18308 * tree-diagnostic.c: Likewise.
18309 * tree-dump.c: Likewise.
18310 * tree-eh.c: Likewise.
18311 * tree-emutls.c: Likewise.
18312 * tree-if-conv.c: Likewise.
18313 * tree-inline.c: Likewise.
18314 * tree-into-ssa.c: Likewise.
18315 * tree-iterator.c: Likewise.
18316 * tree-loop-distribution.c: Likewise.
18317 * tree-nested.c: Likewise.
18318 * tree-nrv.c: Likewise.
18319 * tree-object-size.c: Likewise.
18320 * tree-outof-ssa.c: Likewise.
18321 * tree-parloops.c: Likewise.
18322 * tree-phinodes.c: Likewise.
18323 * tree-predcom.c: Likewise.
18324 * tree-pretty-print.c: Likewise.
18325 * tree-profile.c: Likewise.
18326 * tree-scalar-evolution.c: Likewise.
18327 * tree-sra.c: Likewise.
18328 * tree-ssa-address.c: Likewise.
18329 * tree-ssa-alias.c: Likewise.
18330 * tree-ssa-ccp.c: Likewise.
18331 * tree-ssa-coalesce.c: Likewise.
18332 * tree-ssa-copy.c: Likewise.
18333 * tree-ssa-copyrename.c: Likewise.
18334 * tree-ssa-dce.c: Likewise.
18335 * tree-ssa-dom.c: Likewise.
18336 * tree-ssa-dse.c: Likewise.
18337 * tree-ssa-forwprop.c: Likewise.
18338 * tree-ssa-ifcombine.c: Likewise.
18339 * tree-ssa-live.c: Likewise.
18340 * tree-ssa-loop-ch.c: Likewise.
18341 * tree-ssa-loop-im.c: Likewise.
18342 * tree-ssa-loop-ivcanon.c: Likewise.
18343 * tree-ssa-loop-ivopts.c: Likewise.
18344 * tree-ssa-loop-manip.c: Likewise.
18345 * tree-ssa-loop-niter.c: Likewise.
18346 * tree-ssa-loop-prefetch.c: Likewise.
18347 * tree-ssa-loop-unswitch.c: Likewise.
18348 * tree-ssa-loop.c: Likewise.
18349 * tree-ssa-math-opts.c: Likewise.
18350 * tree-ssa-operands.c: Likewise.
18351 * tree-ssa-phiopt.c: Likewise.
18352 * tree-ssa-phiprop.c: Likewise.
18353 * tree-ssa-pre.c: Likewise.
18354 * tree-ssa-propagate.c: Likewise.
18355 * tree-ssa-reassoc.c: Likewise.
18356 * tree-ssa-sccvn.c: Likewise.
18357 * tree-ssa-scopedtables.c: Likewise.
18358 * tree-ssa-sink.c: Likewise.
18359 * tree-ssa-strlen.c: Likewise.
18360 * tree-ssa-structalias.c: Likewise.
18361 * tree-ssa-tail-merge.c: Likewise.
18362 * tree-ssa-ter.c: Likewise.
18363 * tree-ssa-threadedge.c: Likewise.
18364 * tree-ssa-threadupdate.c: Likewise.
18365 * tree-ssa-uncprop.c: Likewise.
18366 * tree-ssa-uninit.c: Likewise.
18367 * tree-ssa.c: Likewise.
18368 * tree-ssanames.c: Likewise.
18369 * tree-stdarg.c: Likewise.
18370 * tree-streamer-in.c: Likewise.
18371 * tree-streamer-out.c: Likewise.
18372 * tree-streamer.c: Likewise.
18373 * tree-switch-conversion.c: Likewise.
18374 * tree-tailcall.c: Likewise.
18375 * tree-vect-data-refs.c: Likewise.
18376 * tree-vect-generic.c: Likewise.
18377 * tree-vect-loop-manip.c: Likewise.
18378 * tree-vect-loop.c: Likewise.
18379 * tree-vect-patterns.c: Likewise.
18380 * tree-vect-slp.c: Likewise.
18381 * tree-vect-stmts.c: Likewise.
18382 * tree-vectorizer.c: Likewise.
18383 * tree-vrp.c: Likewise.
18384 * tree.c: Likewise.
18385 * tsan.c: Likewise.
18386 * ubsan.c: Likewise.
18387 * valtrack.c: Likewise.
18388 * value-prof.c: Likewise.
18389 * var-tracking.c: Likewise.
18390 * varasm.c: Likewise.
18391 * varpool.c: Likewise.
18392 * vmsdbgout.c: Likewise.
18393 * vtable-verify.c: Likewise.
18394 * web.c: Likewise.
18395 * wide-int.cc: Likewise.
18396 * xcoffout.c: Likewise.
18397 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
18398 * common/common-targhooks.c: Likewise.
18399 * config/aarch64/aarch64-builtins.c: Likewise.
18400 * config/aarch64/aarch64.c: Likewise.
18401 * config/alpha/alpha.c: Likewise.
18402 * config/arc/arc.c: Likewise.
18403 * config/arm/aarch-common.c: Likewise.
18404 * config/arm/arm-builtins.c: Likewise.
18405 * config/arm/arm-c.c: Likewise.
18406 * config/arm/arm.c: Likewise.
18407 * config/avr/avr-c.c: Likewise.
18408 * config/avr/avr-log.c: Likewise.
18409 * config/avr/avr.c: Likewise.
18410 * config/bfin/bfin.c: Likewise.
18411 * config/c6x/c6x.c: Likewise.
18412 * config/cr16/cr16.c: Likewise.
18413 * config/cris/cris.c: Likewise.
18414 * config/darwin-c.c: Likewise.
18415 * config/darwin.c: Likewise.
18416 * config/default-c.c: Likewise.
18417 * config/epiphany/epiphany.c: Likewise.
18418 * config/epiphany/mode-switch-use.c: Likewise.
18419 * config/epiphany/resolve-sw-modes.c: Likewise.
18420 * config/fr30/fr30.c: Likewise.
18421 * config/frv/frv.c: Likewise.
18422 * config/ft32/ft32.c: Likewise.
18423 * config/glibc-c.c: Likewise.
18424 * config/h8300/h8300.c: Likewise.
18425 * config/i386/i386-c.c: Likewise.
18426 * config/i386/i386.c: Likewise.
18427 * config/i386/msformat-c.c: Likewise.
18428 * config/i386/winnt-cxx.c: Likewise.
18429 * config/i386/winnt-stubs.c: Likewise.
18430 * config/i386/winnt.c: Likewise.
18431 * config/ia64/ia64-c.c: Likewise.
18432 * config/ia64/ia64.c: Likewise.
18433 * config/iq2000/iq2000.c: Likewise.
18434 * config/lm32/lm32.c: Likewise.
18435 * config/m32c/m32c-pragma.c: Likewise.
18436 * config/m32c/m32c.c: Likewise.
18437 * config/m32r/m32r.c: Likewise.
18438 * config/m68k/m68k.c: Likewise.
18439 * config/mcore/mcore.c: Likewise.
18440 * config/mep/mep-pragma.c: Likewise.
18441 * config/mep/mep.c: Likewise.
18442 * config/microblaze/microblaze-c.c: Likewise.
18443 * config/microblaze/microblaze.c: Likewise.
18444 * config/mips/mips.c: Likewise.
18445 * config/mmix/mmix.c: Likewise.
18446 * config/mn10300/mn10300.c: Likewise.
18447 * config/moxie/moxie.c: Likewise.
18448 * config/msp430/msp430-c.c: Likewise.
18449 * config/msp430/msp430.c: Likewise.
18450 * config/nds32/nds32-cost.c: Likewise.
18451 * config/nds32/nds32-fp-as-gp.c: Likewise.
18452 * config/nds32/nds32-intrinsic.c: Likewise.
18453 * config/nds32/nds32-isr.c: Likewise.
18454 * config/nds32/nds32-md-auxiliary.c: Likewise.
18455 * config/nds32/nds32-memory-manipulation.c: Likewise.
18456 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18457 * config/nds32/nds32-predicates.c: Likewise.
18458 * config/nds32/nds32.c: Likewise.
18459 * config/nios2/nios2.c: Likewise.
18460 * config/nvptx/nvptx.c: Likewise.
18461 * config/pa/pa.c: Likewise.
18462 * config/pdp11/pdp11.c: Likewise.
18463 * config/rl78/rl78-c.c: Likewise.
18464 * config/rl78/rl78.c: Likewise.
18465 * config/rs6000/rs6000-c.c: Likewise.
18466 * config/rs6000/rs6000.c: Likewise.
18467 * config/rx/rx.c: Likewise.
18468 * config/s390/s390-c.c: Likewise.
18469 * config/s390/s390.c: Likewise.
18470 * config/sh/sh-c.c: Likewise.
18471 * config/sh/sh-mem.cc: Likewise.
18472 * config/sh/sh.c: Likewise.
18473 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18474 * config/sh/sh_treg_combine.cc: Likewise.
18475 * config/sol2-c.c: Likewise.
18476 * config/sol2-cxx.c: Likewise.
18477 * config/sol2-stubs.c: Likewise.
18478 * config/sol2.c: Likewise.
18479 * config/sparc/sparc-c.c: Likewise.
18480 * config/sparc/sparc.c: Likewise.
18481 * config/spu/spu-c.c: Likewise.
18482 * config/spu/spu.c: Likewise.
18483 * config/stormy16/stormy16.c: Likewise.
18484 * config/tilegx/mul-tables.c: Likewise.
18485 * config/tilegx/tilegx-c.c: Likewise.
18486 * config/tilegx/tilegx.c: Likewise.
18487 * config/tilepro/mul-tables.c: Likewise.
18488 * config/tilepro/tilepro-c.c: Likewise.
18489 * config/tilepro/tilepro.c: Likewise.
18490 * config/v850/v850-c.c: Likewise.
18491 * config/v850/v850.c: Likewise.
18492 * config/vax/vax.c: Likewise.
18493 * config/visium/visium.c: Likewise.
18494 * config/vms/vms-c.c: Likewise.
18495 * config/vms/vms.c: Likewise.
18496 * config/vxworks.c: Likewise.
18497 * config/winnt-c.c: Likewise.
18498 * config/xtensa/xtensa.c: Likewise.
18499
18500 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
18501
18502 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
18503 function.
18504 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
18505
18506 2015-06-17 Richard Biener <rguenther@suse.de>
18507
18508 PR tree-optimization/66251
18509 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
18510 stmts for SLP strided stores.
18511
18512 Revert
18513 2015-05-22 Richard Biener <rguenther@suse.de>
18514
18515 PR tree-optimization/66251
18516 * tree-vect-stmts.c (vectorizable_conversion): Properly
18517 set STMT_VINFO_VEC_STMT even for the SLP case.
18518
18519 2015-05-26 Michael Matz <matz@suse.de>
18520
18521 PR middle-end/66251
18522 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
18523 STMT_VINFO_VEC_STMT, also with SLP.
18524
18525 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
18526
18527 PR target/56766
18528 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
18529 (*avx_addsubv4df3_1s): Ditto.
18530 (*sse3_addsubv2df3_1): Ditto.
18531 (*sse3_addsubv2df3_1s): Ditto.
18532 (*avx_addsubv8sf3_1): Ditto.
18533 (*avx_addsubv8sf3_1s): Ditto.
18534 (*sse3_addsubv4sf3_1): Ditto.
18535 (*sse3_addsubv4sf3_1s): Ditto.
18536
18537 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
18538
18539 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
18540 (SYSROOT_SUFFIX_SPEC): Update.
18541 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
18542 (STARTFILE_PREFIX_SPEC): Update.
18543 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
18544 (MULTILIB_REQUIRED): New.
18545 (MULTILIB_OSDIRNAMES): New.
18546 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
18547 (MULTILIB_REQUIRED): New.
18548 (MULTILIB_OSDIRNAMES): New.
18549
18550 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
18551
18552 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
18553 * config/aarch64/aarch64-options-extensions.def: Update "fP",
18554 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
18555 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
18556 (AARCH64_FL_PAN): New.
18557 (AARCH64_FL_LOR): New.
18558 (AARCH64_FL_RDMA): New.
18559 (AARCH64_FL_FOR_ARCH8_1): New.
18560 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
18561 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
18562
18563 2015-06-16 Martin Liska <mliska@suse.cz>
18564
18565 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
18566 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
18567 guard.
18568
18569 2015-06-16 Richard Biener <rguenther@suse.de>
18570
18571 * tree-vect-stmts.c (vectorizable_store): Adjust.
18572 (vectorizable_load): Likewise.
18573 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18574 Simplify.
18575 (vect_create_data_ref_ptr): Likewise.
18576 (bump_vector_ptr): Adjust.
18577
18578 2015-06-16 Richard Biener <rguenther@suse.de>
18579
18580 * tree-vect-stmts.c (vectorizable_load): Properly start loads
18581 with the first element if this is grouped loads.
18582
18583 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
18584
18585 * config/arm/arm-protos.h (struct tune_params): Rename
18586 log_op_non_sc to log_op_non_short_circuit, and rename enum
18587 values to expand SC to SHORT_CIRCUIT.
18588 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
18589 to LOG_OP_NON_SHORT_CIRCUIT.
18590 (arm_fastmul_tune):Likewise
18591 (arm_strongarm_tune): Likewise.
18592 (arm_xscale_tune): Likewise.
18593 (arm_9e_tune): Likewise.
18594 (arm_marvell_pj4_tune): Likewise.
18595 (arm_v6t2_tune): Likewise.
18596 (arm_cortex_tune): Likewise.
18597 (arm_cortex_a8_tune): Likewise.
18598 (arm_cortex_a7_tune): Likewise.
18599 (arm_cortex_a15_tune): Likewise.
18600 (arm_cortex_a53_tune): Likewise.
18601 (arm_cortex_a57_tune): Likewise.
18602 (arm_xgene1_tune): Likewise.
18603 (arm_cortex_a5_tune): Likewise.
18604 (arm_cortex_a9_tune): Likewise.
18605 (arm_cortex_a12_tune): Likewise.
18606 (arm_v7m_tune): Likewise.
18607 (arm_cortex_m7_tune): Likewise.
18608 (arm_v6m_tune): Likewise.
18609 (arm_fa726te_tune): Likewise.
18610
18611 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
18612
18613 * altivec.md: Delete UNSPEC_VMLADDUHM.
18614 (mulv4si3_p8): New pattern.
18615 (mulv4si3): Use it for POWER8.
18616 (mulv8hi3): Use vmladduhm with zero addend.
18617 (altivec_vmladduhm): Descriptive RTL.
18618
18619 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
18620
18621 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
18622 to use neon_move instead of mov_imm.
18623 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
18624 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
18625
18626 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
18627 aarch64_float_const_zero_rtx_p check before TFmode check.
18628 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
18629 an fp zero.
18630 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
18631 code and attributes to match. Change condition from register_operand
18632 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
18633 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
18634 to store2.
18635
18636 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
18637
18638 PR debug/66535
18639 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
18640 there is no parent.
18641
18642 2015-06-14 Shiva Chen <shiva0217@gmail.com>
18643
18644 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
18645 HOST_WIDE_INT parameter.
18646
18647 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
18648
18649 PR ipa/66181
18650 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
18651 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
18652 TYPE_NO_FORCE_BLK.
18653 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
18654
18655 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
18656
18657 * rtl.h (classify_insn): Declare.
18658 * emit-rtl.c (classify_insn): Move to...
18659 * rtl.c: ...here and add generator support.
18660 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
18661 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
18662 * genemit.c (gen_emit_seq): New function.
18663 (gen_expand, gen_split): Use it.
18664
18665 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
18666
18667 * tree.c (make_vector_stat): Fix comment to state that the
18668 function returns a VECTOR_CST.
18669
18670 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
18671
18672 * gensupport.h (add_implicit_parallel): Declare.
18673 * genrecog.c (add_implicit_parallel): Move to...
18674 * gensupport.c (add_implicit_parallel): ...here.
18675 (process_one_cond_exec): Use it.
18676 * genemit.c (gen_insn): Likewise.
18677
18678 2015-06-13 Iain Sandoe <iain@codesourcery.com>
18679
18680 PR bootstrap/66448
18681 * passes.c (rest_of_decl_compilation): Do not register globals for
18682 early debug if they are declared in built-ins.
18683
18684 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
18685
18686 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
18687
18688 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18689
18690 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
18691 manually swapping.
18692 (noce_try_cmove_arith): Likewise.
18693 (noce_get_alt_condition): Likewise.
18694
18695 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18696
18697 * common/config/i386/i386-common.c
18698 (OPTION_MASK_ISA_MWAITX_SET): New.
18699 (ix86_handle_option): Handle mwaitx.
18700 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
18701 (x86_64-*-*): Likewise.
18702 * config/i386/mwaitxintrin.h: New header.
18703 * config/i386/cpuid.h (bit_MWAITX): Define.
18704 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18705 MWAITX support.
18706 * config/i386/i386.opt (mwaitx): New.
18707 * config/i386/i386-builtin-types.def
18708 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
18709 * config/i386/i386-c.c: Define __MWAITX__ if needed.
18710 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
18711 (PTA_MWAITX): New.
18712 (ix86_option_override_internal): Handle new option.
18713 (processor_alias_table): Added PTA_MWAITX.
18714 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
18715 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
18716 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
18717 IX86_BUILTIN_MONITORX built-ins.
18718 * config/i386/i386.h (TARGET_MWAITX): New.
18719 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
18720 UNSPEC_MONITORX.
18721 (mwaitx): New pattern.
18722 (monitorx_<mode>): New pattern.
18723 * config/i386/x86intrin.h: Include mwaitxintrin.h.
18724 * doc/extend.texi: Document monitorx and mwaitx builtins.
18725 * doc/invoke.texi: Document -mmwaitx option.
18726
18727 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
18728
18729 * emit-rtl.c (need_atomic_barrier_p): Mask model with
18730 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
18731
18732 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18733
18734 * dbxout.c (xcoff_debug_hooks): Provide a function for
18735 register_main_translation_unit hook.
18736
18737 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
18738
18739 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
18740 variants cases from switch.
18741 (rs6000_post_atomic_barrier): Same.
18742 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
18743 (rs6000_expand_atomic_exchange): Same.
18744 (rs6000_expand_atomic_op): Same.
18745 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
18746 SYNC variants cases from switch.
18747 (atomic_load): Same.
18748 (atomic_store): Same.
18749
18750 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
18751
18752 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
18753 CONST_INT for goto.
18754
18755 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
18756
18757 PR bootstrap/66448
18758 * dwarf2out.c (check_die): Check for common duplicate attributes.
18759 (add_location_or_const_value_attribute): Do not add duplicate
18760 attributes.
18761 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
18762 time around.
18763 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
18764 (gen_type_die_with_usage): Call check_die.
18765 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
18766
18767 2015-06-11 Jason Merrill <jason@redhat.com>
18768
18769 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
18770 dies.
18771
18772 2015-06-11 Marek Polacek <polacek@redhat.com>
18773
18774 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
18775
18776 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
18777
18778 PR bootstrap/66252
18779 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
18780 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
18781 (*addx_extend_sp32): Fix pasto.
18782 (*subx_extend): Rename into...
18783 (*subx_extend_sp32): ...this.
18784 (*adddi3_extend_sp32): Add earlyclobber.
18785 (*subdi3_insn_sp32): Likewise.
18786 (*subdi3_extend_sp32): Likewise.
18787 (*and_not_di_sp32): Likewise.
18788 (*or_not_di_sp32): Likewise.
18789 (*xor_not_di_sp32): Likewise.
18790 (*negdi2_sp32): Likewise.
18791 (*one_cmpldi2_sp32): Likewise.
18792
18793 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
18794
18795 * debug.h (struct gcc_debug_hooks): Add a
18796 register_main_translation_unit hook.
18797 * debug.c (do_nothing_debug_hooks): Provide a function for this
18798 new hook.
18799 * dbxout.c (dbx_debug_hooks): Likewise.
18800 * sdbout.c (sdb_debug_hooks): Likewise.
18801 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18802 * dwarf2out.c (main_translation_unit): New global variable.
18803 (dwarf2out_register_main_translation_unit): New function
18804 implementing the new hook.
18805 (dwarf2_debug_hooks): Assign
18806 dwarf2out_register_main_translation_unit to this new hook.
18807 (dwarf2out_init): Associate any main translation unit to
18808 comp_unit_die ().
18809
18810 2015-06-11 Marek Polacek <polacek@redhat.com>
18811
18812 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
18813
18814 2015-06-11 Marek Polacek <polacek@redhat.com>
18815
18816 * match.pd: Use single_use throughout.
18817
18818 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18819
18820 * config/arm/arm.c (arm_option_params_internal): When optimising
18821 for speed set max_insns_skipped when arm_restrict_it.
18822
18823 2015-06-11 Christian Bruel <christian.bruel@st.com>
18824
18825 PR target/52144
18826 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
18827 macros in ...
18828 (arm_cpu_builtins): New function.
18829 (arm_pragma_target_parse): Call arm_cpu_builtins.
18830 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
18831 (arm_register_target_pragmas): Likewise.
18832 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
18833 Call arm_register_target_pragmas.
18834 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
18835 (arm_pragma_target_parse): Likewise.
18836
18837 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
18838
18839 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
18840 of the second operand.
18841
18842 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
18843
18844 PR target/66473
18845 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
18846 to prepare mask operand for AVX512 modes.
18847
18848 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18849
18850 PR target/66474
18851 * doc/md.texi (Machine Constraints): Document that on the PowerPC
18852 if you use a constraint that targets a VSX register, you must use
18853 %x<n> in the template.
18854
18855 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
18856
18857 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
18858 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
18859 (define_insn "trap"): New definition.
18860
18861 2015-06-10 Richard Biener <rguenther@suse.de>
18862
18863 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
18864 out from ...
18865 (vect_supported_load_permutation_p): ... here. Handle
18866 supportable permutations in reductions.
18867 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
18868 for vectorizing strided group loads.
18869
18870 2015-06-10 Jakub Jelinek <jakub@redhat.com>
18871
18872 PR target/66470
18873 * config/i386/i386.c (ix86_split_long_move): For collisions
18874 involving direct tls segment refs, move the UNSPEC_TP possibly
18875 wrapped in ZERO_EXTEND out of the address for lea, to each of
18876 the memory loads.
18877
18878 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18879
18880 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
18881 dmb sy. Adjust tabs.
18882
18883 2015-06-10 Tom de Vries <tom@codesourcery.com>
18884
18885 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
18886
18887 2015-06-10 Martin Liska <mliska@suse.cz>
18888
18889 PR bootstrap/66471
18890 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
18891 all enum values in mem_alloc_origin.
18892 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
18893 name.
18894 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
18895 * bitmap.c (bitmap_register): Likewise.
18896 (dump_bitmap_statistics): Likewise.
18897 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
18898 (ggc_record_overhead): Likewise.
18899 * hash-map.h: Likewise.
18900 * hash-set.h: Likewise.
18901 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
18902 * hash-table.h: Likewise.
18903 * vec.c (vec_prefix::register_overhead): Likewise.
18904 (vec_prefix::release_overhead): Likewise.
18905 (dump_vec_loc_statistics): Likewise.
18906
18907 2015-06-09 Christian Bruel <christian.bruel@st.com>
18908
18909 PR target/52144
18910 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
18911 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
18912 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
18913 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
18914 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
18915 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
18916 (arm_valid_target_attribute_p): Likewise.
18917 (arm_set_current_function, arm_can_inline_p): Likewise.
18918 (arm_valid_target_attribute_rec): Likewise.
18919 (arm_previous_fndecl): New variable.
18920 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18921 (TARGET_CAN_INLINE_P): Define.
18922 (arm_asm_trampoline_template): Emit mode.
18923 (arm_file_start): Don't set unified syntax.
18924 (arm_declare_function_name): Set unified syntax and mode.
18925 (arm_option_override): Init target_option_default_node.
18926 and target_option_current_node.
18927 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
18928 (*call_symbol): Likewise.
18929 * doc/extend.texi: Document ARM/Thumb target attribute.
18930 * doc/invoke.texi: Likewise.
18931
18932 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18933
18934 Revert:
18935 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
18936 PR rtl-optimization/64164
18937 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18938 * tree-ssa-copyrename.c: Removed.
18939 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18940 -ftree-coalesce-vars.
18941 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18942 * common.opt (ftree-copyrename): Ignore.
18943 (ftree-coalesce-inlined-vars): Likewise.
18944 * doc/invoke.texi: Remove the ignored options above.
18945 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18946 * tree-ssa-coalesce.h: ... here.
18947 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18948 headers required by it.
18949 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18950 across variables when flag_tree_coalesce_vars. Check register
18951 use and promoted modes to allow coalescing. Moved to
18952 tree-ssa-coalesce.c.
18953 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18954 with its member functions to tree-ssa-coalesce.c.
18955 (var_map_base_init): Likewise. Renamed to
18956 compute_samebase_partition_bases.
18957 (partition_view_normal): Drop want_bases parameter.
18958 (partition_view_bitmap): Likewise.
18959 * tree-ssa-live.h: Adjust declarations.
18960 * tree-ssa-coalesce.c: Include explow.h.
18961 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18962 default defs at the entry point.
18963 (dump_part_var_map): New.
18964 (compute_optimized_partition_bases): New, called by...
18965 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18966 of compute_samebase_partition_bases. Adjust.
18967 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18968 * cfgexpand.c (leader_merge): New.
18969 (get_rtl_for_parm_ssa_default_def): New.
18970 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18971 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18972 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18973 redundant MEM attr setting.
18974 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18975 from...
18976 (expand_one_stack_var): ... this. New wrapper to check and
18977 skip already expanded SSA partitions.
18978 (record_alignment_for_reg_var): New, factored out of...
18979 (expand_one_var): ... this.
18980 (expand_one_ssa_partition): New.
18981 (adjust_one_expanded_partition_var): New.
18982 (expand_one_register_var): Check and skip already expanded SSA
18983 partitions.
18984 (expand_used_vars): Don't create DECLs for anonymous SSA
18985 names. Expand all SSA partitions, then adjust all SSA names.
18986 (pass::execute): Replace the loops that set
18987 SA.partition_to_pseudo from partition leaders and cleared
18988 DECL_RTL for multi-location variables, and that which used to
18989 rename vars and set attrs, with one that clears DECL_RTL and
18990 checks that PARMs and RESULTs default_defs match DECL_RTL.
18991 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18992 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18993 * explow.c (promote_ssa_mode): New.
18994 * explow.h (promote_ssa_mode): Declare.
18995 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18996 * function.c: Include cfgexpand.h.
18997 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18998 (use_register_for_parm_decl): Wrapper for the above to
18999 special-case the result_ptr.
19000 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19001 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19002 multiple locations.
19003 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19004 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19005 (assign_parm_setup_block): Prefer SSA-assigned location.
19006 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19007 if stack_parm is NULL.
19008 (assign_parm_setup_stack): Prefer SSA-assigned location.
19009 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19010 rtl before testing for pointer bounds. Special-case result_ptr.
19011 (expand_function_start): Maybe reset DECL_RTL of result.
19012 Prefer SSA-assigned location for result and static chain.
19013 Factor out DECL_RESULT and SET_DECL_RTL.
19014 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19015 anonymous SSA names. Use promote_ssa_mode.
19016 (get_temp_reg): Likewise.
19017 (remove_ssa_form): Adjust.
19018 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19019 and get its reg_usage for reg invalidation.
19020 (compute_bb_dataflow): Pass it insn.
19021 (emit_notes_in_bb): Likewise.
19022 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19023 fail assert on conversion between unsigned types.
19024
19025 2015-06-09 Tom de Vries <tom@codesourcery.com>
19026
19027 PR tree-optimization/65460
19028 * omp-low.c (expand_omp_target): Set parallelized_function on
19029 cgraph_node for child_fn.
19030
19031 2015-06-09 Tom de Vries <tom@codesourcery.com>
19032
19033 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19034 parallelized_function before add_new_function.
19035
19036 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
19037
19038 * gcc-plugin.h: Move decls to plugin.h and include it.
19039 * plugin.h: Relocate decls from gcc-plugin.h
19040 * ggc-page.c: Include required header files.
19041 * passes.c: Likewise.
19042 * cgraphunit.c: Likewise.
19043
19044 2015-06-09 Tom de Vries <tom@codesourcery.com>
19045
19046 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19047
19048 2015-06-09 Jason Merrill <jason@redhat.com>
19049
19050 PR bootstrap/66448
19051 * toplev.c (check_global_declaration): Don't warn about a clone.
19052
19053 2015-06-09 Marek Polacek <polacek@redhat.com>
19054
19055 PR tree-optimization/66299
19056 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19057 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19058 patterns.
19059
19060 2015-06-09 Richard Biener <rguenther@suse.de>
19061
19062 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19063 (vect_analyze_slp_instance): Instead do not falsely drop
19064 load permutations.
19065
19066 2015-06-09 Richard Biener <rguenther@suse.de>
19067
19068 PR middle-end/66423
19069 * match.pd: Handle A % (unsigned)(1 << B).
19070
19071 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
19072
19073 * varasm.c (output_object_block_htab): Remove.
19074 (output_object_block_compare): New.
19075 (output_object_blocks): Sort named object_blocks before outputting
19076 them.
19077
19078 2015-06-09 Richard Biener <rguenther@suse.de>
19079
19080 PR tree-optimization/66419
19081 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19082 consider GROUP_GAP when detecting a perfect subchain.
19083
19084 2015-06-09 Nick Clifton <nickc@redhat.com>
19085
19086 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19087 place read only data in the .frodata section.
19088
19089 2015-06-09 Shiva Chen <shiva0217@gmail.com>
19090
19091 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19092 (atomic_store<mode>): Likewise.
19093
19094 2015-06-09 Richard Biener <rguenther@suse.de>
19095
19096 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19097
19098 2015-06-09 Richard Biener <rguenther@suse.de>
19099
19100 PR middle-end/66413
19101 * tree-inline.c (insert_init_debug_bind): Unshare value.
19102
19103 2015-06-09 Richard Biener <rguenther@suse.de>
19104
19105 PR tree-optimization/66396
19106 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19107 Rename virtual operands.
19108
19109 2015-06-09 Tom de Vries <tom@codesourcery.com>
19110
19111 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19112 always return false.
19113
19114 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19115
19116 PR rtl-optimization/64164
19117 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19118 * tree-ssa-copyrename.c: Removed.
19119 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19120 -ftree-coalesce-vars.
19121 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19122 * common.opt (ftree-copyrename): Ignore.
19123 (ftree-coalesce-inlined-vars): Likewise.
19124 * doc/invoke.texi: Remove the ignored options above.
19125 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19126 * tree-ssa-coalesce.h: ... here.
19127 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19128 headers required by it.
19129 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19130 across variables when flag_tree_coalesce_vars. Check register
19131 use and promoted modes to allow coalescing. Moved to
19132 tree-ssa-coalesce.c.
19133 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19134 with its member functions to tree-ssa-coalesce.c.
19135 (var_map_base_init): Likewise. Renamed to
19136 compute_samebase_partition_bases.
19137 (partition_view_normal): Drop want_bases parameter.
19138 (partition_view_bitmap): Likewise.
19139 * tree-ssa-live.h: Adjust declarations.
19140 * tree-ssa-coalesce.c: Include explow.h.
19141 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19142 default defs at the entry point.
19143 (dump_part_var_map): New.
19144 (compute_optimized_partition_bases): New, called by...
19145 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19146 of compute_samebase_partition_bases. Adjust.
19147 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19148 * cfgexpand.c (leader_merge): New.
19149 (get_rtl_for_parm_ssa_default_def): New.
19150 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19151 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19152 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19153 redundant MEM attr setting.
19154 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19155 from...
19156 (expand_one_stack_var): ... this. New wrapper to check and
19157 skip already expanded SSA partitions.
19158 (record_alignment_for_reg_var): New, factored out of...
19159 (expand_one_var): ... this.
19160 (expand_one_ssa_partition): New.
19161 (adjust_one_expanded_partition_var): New.
19162 (expand_one_register_var): Check and skip already expanded SSA
19163 partitions.
19164 (expand_used_vars): Don't create DECLs for anonymous SSA
19165 names. Expand all SSA partitions, then adjust all SSA names.
19166 (pass::execute): Replace the loops that set
19167 SA.partition_to_pseudo from partition leaders and cleared
19168 DECL_RTL for multi-location variables, and that which used to
19169 rename vars and set attrs, with one that clears DECL_RTL and
19170 checks that PARMs and RESULTs default_defs match DECL_RTL.
19171 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19172 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19173 * explow.c (promote_ssa_mode): New.
19174 * explow.h (promote_ssa_mode): Declare.
19175 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19176 * function.c: Include cfgexpand.h.
19177 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19178 (use_register_for_parm_decl): Wrapper for the above to
19179 special-case the result_ptr.
19180 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19181 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19182 multiple locations.
19183 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19184 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19185 (assign_parm_setup_block): Prefer SSA-assigned location.
19186 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19187 if stack_parm is NULL.
19188 (assign_parm_setup_stack): Prefer SSA-assigned location.
19189 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19190 rtl before testing for pointer bounds. Special-case result_ptr.
19191 (expand_function_start): Maybe reset DECL_RTL of result.
19192 Prefer SSA-assigned location for result and static chain.
19193 Factor out DECL_RESULT and SET_DECL_RTL.
19194 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19195 anonymous SSA names. Use promote_ssa_mode.
19196 (get_temp_reg): Likewise.
19197 (remove_ssa_form): Adjust.
19198 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19199 and get its reg_usage for reg invalidation.
19200 (compute_bb_dataflow): Pass it insn.
19201 (emit_notes_in_bb): Likewise.
19202 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19203 fail assert on conversion between unsigned types.
19204
19205 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19206
19207 PR debug/58315
19208 * tree-inline.c (reset_debug_binding): New.
19209 (reset_debug_bindings): Likewise.
19210 (expand_call_inline): Call it.
19211
19212 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19213
19214 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19215 TYPE_STRING_FLAG.
19216
19217 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19218
19219 * lto-streamer-out.c (lto_output_location): Stream
19220 reserved locations correctly.
19221 * lto-streamer-in.c (lto_output_location): Likewise.
19222
19223 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
19224
19225 * coretypes.h: Include hash-table.h and hash-set.h for host files.
19226 * ggc.h: Don't include statistics.h>
19227 * hash-map.h: Remove all includes.
19228 * hash-set.h: Likewise.
19229 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19230 the include list. Remove <new>.
19231 * inchash.h: Remove all includes.
19232 * mem-stats.h: Likewise.
19233 * vec.h: No special processing for generators or ggc.
19234 * alias.c : Adjust include files.
19235 * alloc-pool.c : Likewise.
19236 * alloc-pool.h : Likewise.
19237 * asan.c : Likewise.
19238 * attribs.c : Likewise.
19239 * auto-inc-dec.c : Likewise.
19240 * auto-profile.c : Likewise.
19241 * bb-reorder.c : Likewise.
19242 * bitmap.c : Likewise.
19243 * bitmap.h : Likewise.
19244 * bt-load.c : Likewise.
19245 * builtins.c : Likewise.
19246 * caller-save.c : Likewise.
19247 * calls.c : Likewise.
19248 * ccmp.c : Likewise.
19249 * cfg.c : Likewise.
19250 * cfganal.c : Likewise.
19251 * cfgbuild.c : Likewise.
19252 * cfgcleanup.c : Likewise.
19253 * cfgexpand.c : Likewise.
19254 * cfghooks.c : Likewise.
19255 * cfgloop.c : Likewise.
19256 * cfgloop.h : Likewise.
19257 * cfgloopanal.c : Likewise.
19258 * cfgloopmanip.c : Likewise.
19259 * cfgrtl.c : Likewise.
19260 * cgraph.c : Likewise.
19261 * cgraphbuild.c : Likewise.
19262 * cgraphclones.c : Likewise.
19263 * cgraphunit.c : Likewise.
19264 * cilk-common.c : Likewise.
19265 * combine-stack-adj.c : Likewise.
19266 * combine.c : Likewise.
19267 * compare-elim.c : Likewise.
19268 * context.c : Likewise.
19269 * convert.c : Likewise.
19270 * coverage.c : Likewise.
19271 * cppbuiltin.c : Likewise.
19272 * cprop.c : Likewise.
19273 * cse.c : Likewise.
19274 * cselib.c : Likewise.
19275 * data-streamer-in.c : Likewise.
19276 * data-streamer-out.c : Likewise.
19277 * data-streamer.c : Likewise.
19278 * data-streamer.h : Likewise.
19279 * dbxout.c : Likewise.
19280 * dce.c : Likewise.
19281 * ddg.c : Likewise.
19282 * debug.c : Likewise.
19283 * df-core.c : Likewise.
19284 * df-problems.c : Likewise.
19285 * df-scan.c : Likewise.
19286 * df.h : Likewise.
19287 * dfp.c : Likewise.
19288 * dojump.c : Likewise.
19289 * dominance.c : Likewise.
19290 * domwalk.c : Likewise.
19291 * double-int.c : Likewise.
19292 * dse.c : Likewise.
19293 * dumpfile.c : Likewise.
19294 * dwarf2asm.c : Likewise.
19295 * dwarf2cfi.c : Likewise.
19296 * dwarf2out.c : Likewise.
19297 * emit-rtl.c : Likewise.
19298 * et-forest.c : Likewise.
19299 * except.c : Likewise.
19300 * except.h : Likewise.
19301 * explow.c : Likewise.
19302 * expmed.c : Likewise.
19303 * expr.c : Likewise.
19304 * final.c : Likewise.
19305 * fixed-value.c : Likewise.
19306 * fold-const.c : Likewise.
19307 * function.c : Likewise.
19308 * fwprop.c : Likewise.
19309 * gcc-plugin.h : Likewise.
19310 * gcc.c : Likewise.
19311 * gcse-common.c : Likewise.
19312 * gcse.c : Likewise.
19313 * genattrtab.c : Likewise.
19314 * genautomata.c : Likewise.
19315 * genconditions.c : Likewise.
19316 * genemit.c : Likewise.
19317 * generic-match-head.c : Likewise.
19318 * genextract.c : Likewise.
19319 * gengtype-state.c : Likewise.
19320 * gengtype.c : Likewise.
19321 * genhooks.c : Likewise.
19322 * genmatch.c : Likewise.
19323 * genmodes.c : Likewise.
19324 * genrecog.c : Likewise.
19325 * gensupport.c : Likewise.
19326 * ggc-common.c : Likewise.
19327 * ggc-internal.h : Likewise.
19328 * ggc-none.c : Likewise.
19329 * ggc-page.c : Likewise.
19330 * gimple-builder.c : Likewise.
19331 * gimple-expr.c : Likewise.
19332 * gimple-fold.c : Likewise.
19333 * gimple-iterator.c : Likewise.
19334 * gimple-low.c : Likewise.
19335 * gimple-match-head.c : Likewise.
19336 * gimple-pretty-print.c : Likewise.
19337 * gimple-ssa-isolate-paths.c : Likewise.
19338 * gimple-ssa-strength-reduction.c : Likewise.
19339 * gimple-ssa.h : Likewise.
19340 * gimple-streamer-in.c : Likewise.
19341 * gimple-streamer-out.c : Likewise.
19342 * gimple-streamer.h : Likewise.
19343 * gimple-walk.c : Likewise.
19344 * gimple.c : Likewise.
19345 * gimplify-me.c : Likewise.
19346 * gimplify.c : Likewise.
19347 * godump.c : Likewise.
19348 * graph.c : Likewise.
19349 * graphds.c : Likewise.
19350 * graphite-blocking.c : Likewise.
19351 * graphite-dependences.c : Likewise.
19352 * graphite-interchange.c : Likewise.
19353 * graphite-isl-ast-to-gimple.c : Likewise.
19354 * graphite-optimize-isl.c : Likewise.
19355 * graphite-poly.c : Likewise.
19356 * graphite-scop-detection.c : Likewise.
19357 * graphite-sese-to-poly.c : Likewise.
19358 * graphite.c : Likewise.
19359 * haifa-sched.c : Likewise.
19360 * hard-reg-set.h : Likewise.
19361 * hw-doloop.c : Likewise.
19362 * ifcvt.c : Likewise.
19363 * inchash.c : Likewise.
19364 * incpath.c : Likewise.
19365 * init-regs.c : Likewise.
19366 * input.c : Likewise.
19367 * internal-fn.c : Likewise.
19368 * ipa-chkp.c : Likewise.
19369 * ipa-comdats.c : Likewise.
19370 * ipa-cp.c : Likewise.
19371 * ipa-devirt.c : Likewise.
19372 * ipa-icf-gimple.c : Likewise.
19373 * ipa-icf.c : Likewise.
19374 * ipa-inline-analysis.c : Likewise.
19375 * ipa-inline-transform.c : Likewise.
19376 * ipa-inline.c : Likewise.
19377 * ipa-polymorphic-call.c : Likewise.
19378 * ipa-profile.c : Likewise.
19379 * ipa-prop.c : Likewise.
19380 * ipa-pure-const.c : Likewise.
19381 * ipa-ref.c : Likewise.
19382 * ipa-reference.c : Likewise.
19383 * ipa-split.c : Likewise.
19384 * ipa-utils.c : Likewise.
19385 * ipa-visibility.c : Likewise.
19386 * ipa.c : Likewise.
19387 * ira-build.c : Likewise.
19388 * ira-color.c : Likewise.
19389 * ira-conflicts.c : Likewise.
19390 * ira-costs.c : Likewise.
19391 * ira-emit.c : Likewise.
19392 * ira-lives.c : Likewise.
19393 * ira.c : Likewise.
19394 * jump.c : Likewise.
19395 * langhooks.c : Likewise.
19396 * lcm.c : Likewise.
19397 * libfuncs.h : Likewise.
19398 * lists.c : Likewise.
19399 * loop-doloop.c : Likewise.
19400 * loop-init.c : Likewise.
19401 * loop-invariant.c : Likewise.
19402 * loop-iv.c : Likewise.
19403 * loop-unroll.c : Likewise.
19404 * lower-subreg.c : Likewise.
19405 * lra-assigns.c : Likewise.
19406 * lra-coalesce.c : Likewise.
19407 * lra-constraints.c : Likewise.
19408 * lra-eliminations.c : Likewise.
19409 * lra-lives.c : Likewise.
19410 * lra-remat.c : Likewise.
19411 * lra-spills.c : Likewise.
19412 * lra.c : Likewise.
19413 * lto-cgraph.c : Likewise.
19414 * lto-compress.c : Likewise.
19415 * lto-opts.c : Likewise.
19416 * lto-section-in.c : Likewise.
19417 * lto-section-out.c : Likewise.
19418 * lto-streamer-in.c : Likewise.
19419 * lto-streamer-out.c : Likewise.
19420 * lto-streamer.c : Likewise.
19421 * lto-streamer.h : Likewise.
19422 * mcf.c : Likewise.
19423 * mode-switching.c : Likewise.
19424 * modulo-sched.c : Likewise.
19425 * omega.c : Likewise.
19426 * omp-low.c : Likewise.
19427 * optabs.c : Likewise.
19428 * opts-global.c : Likewise.
19429 * opts.h : Likewise.
19430 * passes.c : Likewise.
19431 * plugin.c : Likewise.
19432 * postreload-gcse.c : Likewise.
19433 * postreload.c : Likewise.
19434 * predict.c : Likewise.
19435 * print-rtl.c : Likewise.
19436 * print-tree.c : Likewise.
19437 * profile.c : Likewise.
19438 * read-md.c : Likewise.
19439 * read-md.h : Likewise.
19440 * read-rtl.c : Likewise.
19441 * real.c : Likewise.
19442 * realmpfr.c : Likewise.
19443 * recog.c : Likewise.
19444 * ree.c : Likewise.
19445 * reg-stack.c : Likewise.
19446 * regcprop.c : Likewise.
19447 * reginfo.c : Likewise.
19448 * regrename.c : Likewise.
19449 * regstat.c : Likewise.
19450 * reload.c : Likewise.
19451 * reload1.c : Likewise.
19452 * reorg.c : Likewise.
19453 * resource.c : Likewise.
19454 * rtl-chkp.c : Likewise.
19455 * rtl.c : Likewise.
19456 * rtl.h : Likewise.
19457 * rtlanal.c : Likewise.
19458 * rtlhash.c : Likewise.
19459 * rtlhash.h : Likewise.
19460 * rtlhooks.c : Likewise.
19461 * sanopt.c : Likewise.
19462 * sched-deps.c : Likewise.
19463 * sched-ebb.c : Likewise.
19464 * sched-rgn.c : Likewise.
19465 * sched-vis.c : Likewise.
19466 * sdbout.c : Likewise.
19467 * sel-sched-dump.c : Likewise.
19468 * sel-sched-ir.c : Likewise.
19469 * sel-sched-ir.h : Likewise.
19470 * sel-sched.c : Likewise.
19471 * sese.c : Likewise.
19472 * shrink-wrap.c : Likewise.
19473 * shrink-wrap.h : Likewise.
19474 * simplify-rtx.c : Likewise.
19475 * stack-ptr-mod.c : Likewise.
19476 * statistics.c : Likewise.
19477 * stmt.c : Likewise.
19478 * stor-layout.c : Likewise.
19479 * store-motion.c : Likewise.
19480 * stringpool.c : Likewise.
19481 * symtab.c : Likewise.
19482 * target-globals.c : Likewise.
19483 * targhooks.c : Likewise.
19484 * tlink.c : Likewise.
19485 * toplev.c : Likewise.
19486 * tracer.c : Likewise.
19487 * trans-mem.c : Likewise.
19488 * tree-affine.c : Likewise.
19489 * tree-affine.h : Likewise.
19490 * tree-browser.c : Likewise.
19491 * tree-call-cdce.c : Likewise.
19492 * tree-cfg.c : Likewise.
19493 * tree-cfgcleanup.c : Likewise.
19494 * tree-chkp-opt.c : Likewise.
19495 * tree-chkp.c : Likewise.
19496 * tree-chrec.c : Likewise.
19497 * tree-complex.c : Likewise.
19498 * tree-data-ref.c : Likewise.
19499 * tree-dfa.c : Likewise.
19500 * tree-diagnostic.c : Likewise.
19501 * tree-dump.c : Likewise.
19502 * tree-eh.c : Likewise.
19503 * tree-eh.h : Likewise.
19504 * tree-emutls.c : Likewise.
19505 * tree-hasher.h : Likewise.
19506 * tree-if-conv.c : Likewise.
19507 * tree-inline.c : Likewise.
19508 * tree-inline.h : Likewise.
19509 * tree-into-ssa.c : Likewise.
19510 * tree-iterator.c : Likewise.
19511 * tree-loop-distribution.c : Likewise.
19512 * tree-nested.c : Likewise.
19513 * tree-nrv.c : Likewise.
19514 * tree-object-size.c : Likewise.
19515 * tree-outof-ssa.c : Likewise.
19516 * tree-parloops.c : Likewise.
19517 * tree-phinodes.c : Likewise.
19518 * tree-predcom.c : Likewise.
19519 * tree-pretty-print.c : Likewise.
19520 * tree-profile.c : Likewise.
19521 * tree-scalar-evolution.c : Likewise.
19522 * tree-sra.c : Likewise.
19523 * tree-ssa-address.c : Likewise.
19524 * tree-ssa-alias.c : Likewise.
19525 * tree-ssa-ccp.c : Likewise.
19526 * tree-ssa-coalesce.c : Likewise.
19527 * tree-ssa-copy.c : Likewise.
19528 * tree-ssa-copyrename.c : Likewise.
19529 * tree-ssa-dce.c : Likewise.
19530 * tree-ssa-dom.c : Likewise.
19531 * tree-ssa-dse.c : Likewise.
19532 * tree-ssa-forwprop.c : Likewise.
19533 * tree-ssa-ifcombine.c : Likewise.
19534 * tree-ssa-live.c : Likewise.
19535 * tree-ssa-loop-ch.c : Likewise.
19536 * tree-ssa-loop-im.c : Likewise.
19537 * tree-ssa-loop-ivcanon.c : Likewise.
19538 * tree-ssa-loop-ivopts.c : Likewise.
19539 * tree-ssa-loop-manip.c : Likewise.
19540 * tree-ssa-loop-niter.c : Likewise.
19541 * tree-ssa-loop-prefetch.c : Likewise.
19542 * tree-ssa-loop-unswitch.c : Likewise.
19543 * tree-ssa-loop.c : Likewise.
19544 * tree-ssa-math-opts.c : Likewise.
19545 * tree-ssa-operands.c : Likewise.
19546 * tree-ssa-phiopt.c : Likewise.
19547 * tree-ssa-phiprop.c : Likewise.
19548 * tree-ssa-pre.c : Likewise.
19549 * tree-ssa-propagate.c : Likewise.
19550 * tree-ssa-reassoc.c : Likewise.
19551 * tree-ssa-sccvn.c : Likewise.
19552 * tree-ssa-scopedtables.c : Likewise.
19553 * tree-ssa-sink.c : Likewise.
19554 * tree-ssa-strlen.c : Likewise.
19555 * tree-ssa-structalias.c : Likewise.
19556 * tree-ssa-tail-merge.c : Likewise.
19557 * tree-ssa-ter.c : Likewise.
19558 * tree-ssa-threadedge.c : Likewise.
19559 * tree-ssa-threadupdate.c : Likewise.
19560 * tree-ssa-uncprop.c : Likewise.
19561 * tree-ssa-uninit.c : Likewise.
19562 * tree-ssa.c : Likewise.
19563 * tree-ssanames.c : Likewise.
19564 * tree-stdarg.c : Likewise.
19565 * tree-streamer-in.c : Likewise.
19566 * tree-streamer-out.c : Likewise.
19567 * tree-streamer.c : Likewise.
19568 * tree-streamer.h : Likewise.
19569 * tree-switch-conversion.c : Likewise.
19570 * tree-tailcall.c : Likewise.
19571 * tree-vect-data-refs.c : Likewise.
19572 * tree-vect-generic.c : Likewise.
19573 * tree-vect-loop-manip.c : Likewise.
19574 * tree-vect-loop.c : Likewise.
19575 * tree-vect-patterns.c : Likewise.
19576 * tree-vect-slp.c : Likewise.
19577 * tree-vect-stmts.c : Likewise.
19578 * tree-vectorizer.c : Likewise.
19579 * tree-vectorizer.h : Likewise.
19580 * tree-vrp.c : Likewise.
19581 * tree.c : Likewise.
19582 * tsan.c : Likewise.
19583 * ubsan.c : Likewise.
19584 * valtrack.c : Likewise.
19585 * valtrack.h : Likewise.
19586 * value-prof.c : Likewise.
19587 * var-tracking.c : Likewise.
19588 * varasm.c : Likewise.
19589 * varpool.c : Likewise.
19590 * vec.c: Likewise.
19591 * vmsdbgout.c : Likewise.
19592 * vtable-verify.c : Likewise.
19593 * vtable-verify.h : Likewise.
19594 * web.c : Likewise.
19595 * wide-int.cc : Likewise.
19596 * xcoffout.c : Likewise.
19597 * config/aarch64/aarch64-builtins.c : Likewise.
19598 * config/aarch64/aarch64.c : Likewise.
19599 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
19600 * config/alpha/alpha.c : Likewise.
19601 * config/arc/arc.c : Likewise.
19602 * config/arm/aarch-common.c : Likewise.
19603 * config/arm/arm-builtins.c : Likewise.
19604 * config/arm/arm-c.c : Likewise.
19605 * config/arm/arm.c : Likewise.
19606 * config/avr/avr-c.c : Likewise.
19607 * config/avr/avr-log.c : Likewise.
19608 * config/avr/avr.c : Likewise.
19609 * config/bfin/bfin.c : Likewise.
19610 * config/c6x/c6x.c : Likewise.
19611 * config/cr16/cr16.c : Likewise.
19612 * config/cris/cris.c : Likewise.
19613 * config/darwin-c.c : Likewise.
19614 * config/darwin.c : Likewise.
19615 * config/default-c.c : Likewise.
19616 * config/epiphany/epiphany.c : Likewise.
19617 * config/epiphany/mode-switch-use.c : Likewise.
19618 * config/epiphany/resolve-sw-modes.c : Likewise.
19619 * config/fr30/fr30.c : Likewise.
19620 * config/frv/frv.c : Likewise.
19621 * config/ft32/ft32.c : Likewise.
19622 * config/glibc-c.c : Likewise.
19623 * config/h8300/h8300.c : Likewise.
19624 * config/i386/i386-c.c : Likewise.
19625 * config/i386/i386.c : Likewise.
19626 * config/i386/msformat-c.c : Likewise.
19627 * config/i386/winnt-cxx.c : Likewise.
19628 * config/i386/winnt-stubs.c : Likewise.
19629 * config/i386/winnt.c : Likewise.
19630 * config/ia64/ia64-c.c : Likewise.
19631 * config/ia64/ia64.c : Likewise.
19632 * config/iq2000/iq2000.c : Likewise.
19633 * config/lm32/lm32.c : Likewise.
19634 * config/m32c/m32c-pragma.c : Likewise.
19635 * config/m32c/m32c.c : Likewise.
19636 * config/m32r/m32r.c : Likewise.
19637 * config/m68k/m68k.c : Likewise.
19638 * config/mcore/mcore.c : Likewise.
19639 * config/mep/mep-pragma.c : Likewise.
19640 * config/mep/mep.c : Likewise.
19641 * config/microblaze/microblaze-c.c : Likewise.
19642 * config/microblaze/microblaze.c : Likewise.
19643 * config/mips/mips.c : Likewise.
19644 * config/mmix/mmix.c : Likewise.
19645 * config/mn10300/mn10300.c : Likewise.
19646 * config/moxie/moxie.c : Likewise.
19647 * config/msp430/msp430-c.c : Likewise.
19648 * config/msp430/msp430.c : Likewise.
19649 * config/nds32/nds32-cost.c : Likewise.
19650 * config/nds32/nds32-fp-as-gp.c : Likewise.
19651 * config/nds32/nds32-intrinsic.c : Likewise.
19652 * config/nds32/nds32-isr.c : Likewise.
19653 * config/nds32/nds32-md-auxiliary.c : Likewise.
19654 * config/nds32/nds32-memory-manipulation.c : Likewise.
19655 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
19656 * config/nds32/nds32-predicates.c : Likewise.
19657 * config/nds32/nds32.c : Likewise.
19658 * config/nios2/nios2.c : Likewise.
19659 * config/nvptx/nvptx.c : Likewise.
19660 * config/pa/pa.c : Likewise.
19661 * config/pdp11/pdp11.c : Likewise.
19662 * config/rl78/rl78-c.c : Likewise.
19663 * config/rl78/rl78.c : Likewise.
19664 * config/rs6000/rs6000-c.c : Likewise.
19665 * config/rs6000/rs6000.c : Likewise.
19666 * config/rx/rx.c : Likewise.
19667 * config/s390/s390-c.c : Likewise.
19668 * config/s390/s390.c : Likewise.
19669 * config/sh/sh-c.c : Likewise.
19670 * config/sh/sh-mem.cc : Likewise.
19671 * config/sh/sh.c : Likewise.
19672 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
19673 * config/sh/sh_treg_combine.cc : Likewise.
19674 * config/sol2-c.c : Likewise.
19675 * config/sol2-cxx.c : Likewise.
19676 * config/sol2-stubs.c : Likewise.
19677 * config/sol2.c : Likewise.
19678 * config/sparc/sparc-c.c : Likewise.
19679 * config/sparc/sparc.c : Likewise.
19680 * config/spu/spu-c.c : Likewise.
19681 * config/spu/spu.c : Likewise.
19682 * config/stormy16/stormy16.c : Likewise.
19683 * config/tilegx/mul-tables.c : Likewise.
19684 * config/tilegx/tilegx-c.c : Likewise.
19685 * config/tilegx/tilegx.c : Likewise.
19686 * config/tilepro/mul-tables.c : Likewise.
19687 * config/tilepro/tilepro-c.c : Likewise.
19688 * config/tilepro/tilepro.c : Likewise.
19689 * config/v850/v850-c.c : Likewise.
19690 * config/v850/v850.c : Likewise.
19691 * config/vax/vax.c : Likewise.
19692 * config/visium/visium.c : Likewise.
19693 * config/vms/vms-c.c : Likewise.
19694 * config/vms/vms.c : Likewise.
19695 * config/vxworks.c : Likewise.
19696 * config/winnt-c.c : Likewise.
19697 * config/xtensa/xtensa.c : Likewise.
19698
19699 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19700
19701 PR lto/65378
19702 * ipa-utils.h (warn_types_mismatch): Update prototype.
19703 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
19704 parameters.
19705 (type_mismatch_p): New function.
19706 (warn_types_mismatch): Reorg to work better on non-C++ types.
19707 (odr_types_equivalent_p): Add loc1/loc2 parameters.
19708 (add_type_duplicate): Update.
19709
19710 2015-06-08 Tom de Vries <tom@codesourcery.com>
19711
19712 PR rtl-optimization/66444
19713 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
19714 call_used_regs.
19715
19716 2015-06-08 Richard Biener <rguenther@suse.de>
19717
19718 PR tree-optimization/66422
19719 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
19720 block after inserted gcc_unreachable.
19721
19722 2015-06-08 Nick Clifton <nickc@redhat.com>
19723
19724 * config/rx/rx.c (rx_function_value): Do not promote vector types.
19725 (rx_promote_function_mode): Likewise.
19726 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
19727
19728 2015-06-08 Jakub Jelinek <jakub@redhat.com>
19729
19730 * genattrtab.c (insn_alternatives): Change type from int *
19731 to uint64_t *.
19732 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
19733 (get_attr_value): Change type of num_alt to uint64_t.
19734 (compute_alternative_mask): Change return type from
19735 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
19736 (make_alternative_compare, mk_attr_alt): Change argument type
19737 from int to uint64_t.
19738 (simplify_test_exp): Change type of i from int to uint64_t.
19739 Shift ((uint64_t) 1) instead of 1 up.
19740 (main): Adjust oballocvec first argument from int to uint64_t.
19741 Shift ((uint64_t) 1) instead of 1 up.
19742
19743 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
19744
19745 PR other/65366
19746 * gdbhooks.py: Import sys.
19747 (intptr): New function. Replace int(...) by intptr(...).
19748
19749 2015-06-08 Richard Biener <rguenther@suse.de>
19750
19751 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
19752 adjustment for gaps at the end of a SLP load group properly.
19753 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
19754 all permutations we can generate.
19755 (vect_transform_slp_perm_load): Use the correct group-size.
19756
19757 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
19758
19759 * genmatch.c (expr::gen_transform): For conditions, guess the type
19760 from the second operand.
19761
19762 2015-06-08 Tom de Vries <tom@codesourcery.com>
19763
19764 PR tree-optimization/66442
19765 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
19766 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
19767 if the loop latch is not a singleton. Use
19768 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
19769
19770 2015-06-08 Marek Polacek <polacek@redhat.com>
19771
19772 PR sanitizer/66452
19773 * toplev.c (check_global_declaration): Don't warn about artificial
19774 decls.
19775
19776 2015-06-08 Tom de Vries <tom@codesourcery.com>
19777
19778 PR tree-optimization/66436
19779 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
19780 dump file.
19781 * gimplify.c: Add tree-dump.h include.
19782 (gimplify_function_tree): Dump function to gimple dump file.
19783 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
19784 dump file.
19785
19786 2015-06-08 Tom de Vries <tom@codesourcery.com>
19787
19788 PR tree-optimization/66435
19789 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
19790 function.
19791
19792 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
19793
19794 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
19795 of ptr_type_node to not be ptr_to_node.
19796 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
19797 TREE_TYPE of pointers.
19798 * gimple-expr.c (useless_type_conversion): Reorder the check for
19799 function pointers and TYPE_CANONICAL.
19800
19801 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
19802
19803 PR bootstrap/66319
19804 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
19805 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
19806 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
19807 later.
19808 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
19809 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
19810 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
19811 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
19812 and non iso if unix2003.
19813
19814 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
19815
19816 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
19817
19818 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
19819
19820 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
19821 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
19822 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
19823 except.c, final.c, function.c, gcse-common.c, genemit.c,
19824 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
19825 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
19826 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
19827 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
19828 more derived ones.
19829
19830 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
19831
19832 * combine.c (combine_split_insns): Remove cast.
19833 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
19834 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
19835 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
19836 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
19837 * genemit.c (gen_split): Change return type of generated functions to
19838 rtx_insn.
19839 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
19840 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
19841 gen_peephole2_* functions.
19842 (print_subroutine, main): Likewise.
19843 * recog.c (peephole2_optimize): Remove cast.
19844 (peep2_next_insn): Promote return type to rtx_insn.
19845 * recog.h (peep2_next_insn): Fix prototype.
19846 * rtl.h (try_split, split_insns): Likewise.
19847
19848 2015-06-06 DJ Delorie <dj@redhat.com>
19849
19850 * config/msp430/msp430.c (msp430_asm_integer): Support addition
19851 and subtraction too.
19852
19853 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
19854
19855 PR target/66410
19856 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
19857 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
19858 instead of Snd. Disparage Sid/z alternative with '^'.
19859
19860 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
19861
19862 * dwarf2out.c: Remove deferred_locations*.
19863 (dwarf2_debug_hooks): Add early_finish hook.
19864 Remove global_decl hook.
19865 Add early_global_decl and late_global_decl hook.
19866 New global early_dwarf.
19867 New structure set_early_dwarf.
19868 (output_die): Indicate whether a DIE was generated early
19869 when generating assembly with -dA.
19870 (struct limbo_die_struct): Document created_for field.
19871 Remove file_table_last_lookup.
19872 (remove_AT): Return TRUE if successful.
19873 (remove_child_TAG): Clear die_parent.
19874 (reparent_child): New function abstracted from...
19875 (splice_child_die): ...here.
19876 (new_die): ICE if a DIE ends up in limbo too late.
19877 (check_die): New.
19878 (defer_location): Remove.
19879 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
19880 (fill_variable_array_bounds): New.
19881 (decl_start_label): Call fill_variable_array_bounds.
19882 (gen_formal_parameter_die): Rewrite to reuse previously generated
19883 DIEs.
19884 (gen_subprogram_die): Same.
19885 (gen_variable_die): Same.
19886 (gen_const_die): Same.
19887 (gen_label_die): Same.
19888 (gen_lexical_block_die): Same.
19889 (decl_will_get_specification_p): New.
19890 (local_function_static): New.
19891 (gen_struct_or_union_type_die): Fill in variable-length fields.
19892 (gen_typedef_die): Fill in variable-length typedefs.
19893 (gen_tagged_type_die): Gracefully return on error_mark_node.
19894 Handle re-entrancy.
19895 (gen_type_die_with_usage): Handle variable-length types.
19896 Remove duplicate code for ARRAY_TYPE case.
19897 (process_scope_var): Only process imported modules during early
19898 dwarf.
19899 (dwarf2out_early_global_decl): New.
19900 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
19901 (dwarf2out_type_decl): Set early_dwarf while calling
19902 dwarf2out_decl.
19903 (dwarf2out_decl): Verify that we did not recreate a previously
19904 generated DIE.
19905 Do not return on DECL_EXTERNALs in VAR_DECLs.
19906 Abstract some code to local_function_static.
19907 (lookup_filename): Remove use of file_table_last_lookup.
19908 Gracefully exit on missing file_name.
19909 (dwarf2out_finish): Verify limbo list.
19910 Remove deferred_locations_list use.
19911 Move deferred_asm_name and limbo flushing to...
19912 (dwarf2out_early_finish): ...here. New.
19913 (dwarf2out_c_finalize): Remove set of deferred_location_list,
19914 deferred_asm_name, and file_table_last_lookup.
19915 * cgraph.h (referred_to_p): Add default argument.
19916 * cgraphunit.c (referred_to_p): Add and handle include_self
19917 argument.
19918 (analyze_functions): Add first_time argument.
19919 Call check_global_declaration for all symbols.
19920 Call late_global_decl for nodes for moribund nodes.
19921 (finalize_compilation_unit): Add new argument to
19922 analyze_functions.
19923 Call early_global_decl for functions.
19924 Call early_finish debug hook.
19925 * dbxout.c (dbxout_early_global_decl): New.
19926 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
19927 (dbx_debug_hooks): Add new hooks.
19928 (xcoff_debug_hooks): Same.
19929 * debug.c (do_nothing_debug_hooks): Add early_finish field.
19930 Add early and late debug hooks.
19931 Remove global_decl hook.
19932 * debug.h (struct gcc_debug_hooks): Add early_finish,
19933 early_global_decl, and late_global_decl fields.
19934 Remove global_decl field.
19935 Document gcc_debug_hooks.
19936 * gengtype.c (output_typename): Remove.
19937 * godump.c (go_early_global_decl): New.
19938 (go_late_global_decl): New.
19939 (go_global_decl): Remove.
19940 (dump_go_spec_init): Remove global_decl. Add
19941 {early,late}_global_decl.
19942 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
19943 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
19944 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
19945 (write_global_declarations): Remove.
19946 (global_decl_processing): New.
19947 * langhooks.h (struct lang_hooks_for_decls): Remove
19948 final_write_globals field.
19949 Add post_compilation_parsing_cleanups field.
19950 * passes.c (rest_of_decl_compilation): Call early_global_decl.
19951 * sdbout.c: Add early and late_global_decl hooks. Remove
19952 sdbout_global_decl hook.
19953 Add early_finish field for sdb_debug_hooks.
19954 (sdbout_global_decl): Remove.
19955 (sdbout_early_global_decl): New.
19956 (sdbout_late_global_decl): New.
19957 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
19958 * toplev.c (check_global_declaration): Rename from
19959 check_global_declaration_1.
19960 Adapt to use symtab infrastructure.
19961 (check_global_declarations): Remove.
19962 (emit_debug_global_declarations): Remove.
19963 (compile_file): Remove call to final_write_globals langhook.
19964 Run the actual compilation process.
19965 Perform any post compilation parser cleanups.
19966 Generate late debug info.
19967 * toplev.h (check_global_declaration): New.
19968 (check_global_declaration_1): Remove.
19969 (check_global_declarations): Remove.
19970 (write_global_declarations): Remove.
19971 (emit_debug_global_declarations): Remove.
19972 (global_decl_processing): New.
19973 * tree-core.h (struct tree_block): Add DIE field.
19974 * tree.h (BLOCK_DIE): New.
19975 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
19976 throughout.
19977 (vmsdbgout_early_global_decl): New.
19978 (vmsdbgout_late_global_decl): New.
19979 Add early_finish debug hook field to vmsdbg_debug_hooks.
19980 Remove vmsdbgout_decl to vmsdbgout_function_decl.
19981 Add early and late_global_decl debug hooks.
19982
19983 2015-06-05 Julian Brown <julian@codesourcery.com>
19984 Sandra Loosemore <sandra@codesourcery.com>
19985
19986 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
19987 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
19988 to print-sysroot-suffix.sh script.
19989
19990 2015-06-05 Tom de Vries <tom@codesourcery.com>
19991
19992 merge from gomp4 branch:
19993 2015-05-28 Tom de Vries <tom@codesourcery.com>
19994
19995 PR tree-optimization/65443
19996 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
19997 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
19998 (try_transform_to_exit_first_loop_alt): New function.
19999 (transform_to_exit_first_loop): Use
20000 try_transform_to_exit_first_loop_alt.
20001
20002 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
20003
20004 * builtins.c (expand_builtin_atomic_compare_exchange): Call
20005 emit_cmp_and_jump_insns with the mode of target.
20006
20007 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20008
20009 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20010
20011 2015-06-04 DJ Delorie <dj@redhat.com>
20012
20013 * config/msp430/msp430.md (movsi_s): New. Special case for
20014 storing a 20-bit symbol into a 32-bit register.
20015 * config/msp430/msp430.c (msp430_subreg): Add support for it.
20016 * config/msp430/predicates.md (msp430_symbol_operand): New.
20017
20018 2015-06-04 Sriraman Tallam <tmsriram@google.com>
20019
20020 * c-family/c-common.c (noplt): New attribute.
20021 (handle_noplt_attribute): New handler.
20022 * calls.c (prepare_call_address): Check for noplt
20023 attribute.
20024 * config/i386/i386.c (ix86_expand_call): Check
20025 for noplt attribute.
20026 (ix86_nopic_noplt_attribute_p): New function.
20027 (ix86_output_call_insn): Output indirect call for non-pic
20028 no plt calls.
20029 * doc/extend.texi (noplt): Document new attribute.
20030 * doc/invoke.texi: Document new attribute.
20031
20032 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
20033
20034 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20035 real.h, and fixed-value.h when included in host source files.
20036 * double-int.h: Remove redundant #includes listed above.
20037 * fixed-value.h: Likewise.
20038 * real.h: Likewise.
20039 * wide-int.h: Likewise.
20040 * inchash.h: Likewise.
20041 * rtl.h: Add some include files When included from a generator file.
20042 * target.h: Remove wide-int.h and insn-modes.h from the include list.
20043 * internal-fn.h: Don't include coretypes.h.
20044 * alias.c: Adjust includes for restructured coretypes.h.
20045 * asan.c: Likewise.
20046 * attribs.c: Likewise.
20047 * auto-inc-dec.c: Likewise.
20048 * auto-profile.c: Likewise.
20049 * bb-reorder.c: Likewise.
20050 * bt-load.c: Likewise.
20051 * builtins.c: Likewise.
20052 * caller-save.c: Likewise.
20053 * calls.c: Likewise.
20054 * ccmp.c: Likewise.
20055 * cfg.c: Likewise.
20056 * cfganal.c: Likewise.
20057 * cfgbuild.c: Likewise.
20058 * cfgcleanup.c: Likewise.
20059 * cfgexpand.c: Likewise.
20060 * cfghooks.c: Likewise.
20061 * cfgloop.c: Likewise.
20062 * cfgloop.h: Likewise.
20063 * cfgloopanal.c: Likewise.
20064 * cfgloopmanip.c: Likewise.
20065 * cfgrtl.c: Likewise.
20066 * cgraph.c: Likewise.
20067 * cgraphbuild.c: Likewise.
20068 * cgraphclones.c: Likewise.
20069 * cgraphunit.c: Likewise.
20070 * cilk-common.c: Likewise.
20071 * combine-stack-adj.c: Likewise.
20072 * combine.c: Likewise.
20073 * compare-elim.c: Likewise.
20074 * convert.c: Likewise.
20075 * coverage.c: Likewise.
20076 * cppbuiltin.c: Likewise.
20077 * cprop.c: Likewise.
20078 * cse.c: Likewise.
20079 * cselib.c: Likewise.
20080 * data-streamer-in.c: Likewise.
20081 * data-streamer-out.c: Likewise.
20082 * data-streamer.c: Likewise.
20083 * dbxout.c: Likewise.
20084 * dce.c: Likewise.
20085 * ddg.c: Likewise.
20086 * debug.c: Likewise.
20087 * df-core.c: Likewise.
20088 * df-problems.c: Likewise.
20089 * df-scan.c: Likewise.
20090 * df.h: Likewise.
20091 * dfp.c: Likewise.
20092 * dojump.c: Likewise.
20093 * dominance.c: Likewise.
20094 * domwalk.c: Likewise.
20095 * double-int.c: Likewise.
20096 * dse.c: Likewise.
20097 * dumpfile.c: Likewise.
20098 * dwarf2asm.c: Likewise.
20099 * dwarf2cfi.c: Likewise.
20100 * dwarf2out.c: Likewise.
20101 * dwarf2out.h: Likewise.
20102 * emit-rtl.c: Likewise.
20103 * et-forest.c: Likewise.
20104 * except.c: Likewise.
20105 * explow.c: Likewise.
20106 * expmed.c: Likewise.
20107 * expr.c: Likewise.
20108 * final.c: Likewise.
20109 * fixed-value.c: Likewise.
20110 * fold-const.c: Likewise.
20111 * function.c: Likewise.
20112 * fwprop.c: Likewise.
20113 * gcc-plugin.h: Likewise.
20114 * gcse.c: Likewise.
20115 * generic-match-head.c: Likewise.
20116 * ggc-page.c: Likewise.
20117 * gimple-builder.c: Likewise.
20118 * gimple-expr.c: Likewise.
20119 * gimple-fold.c: Likewise.
20120 * gimple-iterator.c: Likewise.
20121 * gimple-low.c: Likewise.
20122 * gimple-match-head.c: Likewise.
20123 * gimple-pretty-print.c: Likewise.
20124 * gimple-ssa-isolate-paths.c: Likewise.
20125 * gimple-ssa-strength-reduction.c: Likewise.
20126 * gimple-streamer-in.c: Likewise.
20127 * gimple-streamer-out.c: Likewise.
20128 * gimple-streamer.h: Likewise.
20129 * gimple-walk.c: Likewise.
20130 * gimple.c: Likewise.
20131 * gimplify-me.c: Likewise.
20132 * gimplify.c: Likewise.
20133 * godump.c: Likewise.
20134 * graph.c: Likewise.
20135 * graphite-blocking.c: Likewise.
20136 * graphite-dependences.c: Likewise.
20137 * graphite-interchange.c: Likewise.
20138 * graphite-isl-ast-to-gimple.c: Likewise.
20139 * graphite-optimize-isl.c: Likewise.
20140 * graphite-poly.c: Likewise.
20141 * graphite-scop-detection.c: Likewise.
20142 * graphite-sese-to-poly.c: Likewise.
20143 * graphite.c: Likewise.
20144 * haifa-sched.c: Likewise.
20145 * hooks.h: Likewise.
20146 * hw-doloop.c: Likewise.
20147 * ifcvt.c: Likewise.
20148 * incpath.c: Likewise.
20149 * init-regs.c: Likewise.
20150 * internal-fn.c: Likewise.
20151 * ipa-chkp.c: Likewise.
20152 * ipa-comdats.c: Likewise.
20153 * ipa-cp.c: Likewise.
20154 * ipa-devirt.c: Likewise.
20155 * ipa-icf-gimple.c: Likewise.
20156 * ipa-icf.c: Likewise.
20157 * ipa-inline-analysis.c: Likewise.
20158 * ipa-inline-transform.c: Likewise.
20159 * ipa-inline.c: Likewise.
20160 * ipa-polymorphic-call.c: Likewise.
20161 * ipa-profile.c: Likewise.
20162 * ipa-prop.c: Likewise.
20163 * ipa-pure-const.c: Likewise.
20164 * ipa-ref.c: Likewise.
20165 * ipa-reference.c: Likewise.
20166 * ipa-split.c: Likewise.
20167 * ipa-utils.c: Likewise.
20168 * ipa-visibility.c: Likewise.
20169 * ipa.c: Likewise.
20170 * ira-build.c: Likewise.
20171 * ira-color.c: Likewise.
20172 * ira-conflicts.c: Likewise.
20173 * ira-costs.c: Likewise.
20174 * ira-emit.c: Likewise.
20175 * ira-lives.c: Likewise.
20176 * ira.c: Likewise.
20177 * jump.c: Likewise.
20178 * langhooks.c: Likewise.
20179 * lcm.c: Likewise.
20180 * loop-doloop.c: Likewise.
20181 * loop-init.c: Likewise.
20182 * loop-invariant.c: Likewise.
20183 * loop-iv.c: Likewise.
20184 * loop-unroll.c: Likewise.
20185 * lower-subreg.c: Likewise.
20186 * lra-assigns.c: Likewise.
20187 * lra-coalesce.c: Likewise.
20188 * lra-constraints.c: Likewise.
20189 * lra-eliminations.c: Likewise.
20190 * lra-lives.c: Likewise.
20191 * lra-remat.c: Likewise.
20192 * lra-spills.c: Likewise.
20193 * lra.c: Likewise.
20194 * lto-cgraph.c: Likewise.
20195 * lto-compress.c: Likewise.
20196 * lto-opts.c: Likewise.
20197 * lto-section-in.c: Likewise.
20198 * lto-section-out.c: Likewise.
20199 * lto-streamer-in.c: Likewise.
20200 * lto-streamer-out.c: Likewise.
20201 * lto-streamer.c: Likewise.
20202 * mcf.c: Likewise.
20203 * mode-switching.c: Likewise.
20204 * modulo-sched.c: Likewise.
20205 * omega.c: Likewise.
20206 * omp-low.c: Likewise.
20207 * optabs.c: Likewise.
20208 * opts-global.c: Likewise.
20209 * passes.c: Likewise.
20210 * plugin.c: Likewise.
20211 * postreload-gcse.c: Likewise.
20212 * postreload.c: Likewise.
20213 * predict.c: Likewise.
20214 * print-rtl.c: Likewise.
20215 * print-tree.c: Likewise.
20216 * profile.c: Likewise.
20217 * real.c: Likewise.
20218 * realmpfr.c: Likewise.
20219 * realmpfr.h: Likewise.
20220 * recog.c: Likewise.
20221 * ree.c: Likewise.
20222 * reg-stack.c: Likewise.
20223 * regcprop.c: Likewise.
20224 * reginfo.c: Likewise.
20225 * regrename.c: Likewise.
20226 * regs.h: Likewise.
20227 * regstat.c: Likewise.
20228 * reload.c: Likewise.
20229 * reload1.c: Likewise.
20230 * reorg.c: Likewise.
20231 * resource.c: Likewise.
20232 * rtl-chkp.c: Likewise.
20233 * rtlanal.c: Likewise.
20234 * rtlhooks.c: Likewise.
20235 * sanopt.c: Likewise.
20236 * sched-deps.c: Likewise.
20237 * sched-ebb.c: Likewise.
20238 * sched-rgn.c: Likewise.
20239 * sched-vis.c: Likewise.
20240 * sdbout.c: Likewise.
20241 * sel-sched-dump.c: Likewise.
20242 * sel-sched-ir.c: Likewise.
20243 * sel-sched.c: Likewise.
20244 * sese.c: Likewise.
20245 * shrink-wrap.c: Likewise.
20246 * shrink-wrap.h: Likewise.
20247 * simplify-rtx.c: Likewise.
20248 * stack-ptr-mod.c: Likewise.
20249 * statistics.c: Likewise.
20250 * stmt.c: Likewise.
20251 * stor-layout.c: Likewise.
20252 * store-motion.c: Likewise.
20253 * stringpool.c: Likewise.
20254 * symtab.c: Likewise.
20255 * target-globals.c: Likewise.
20256 * targhooks.c: Likewise.
20257 * toplev.c: Likewise.
20258 * tracer.c: Likewise.
20259 * trans-mem.c: Likewise.
20260 * tree-affine.c: Likewise.
20261 * tree-affine.h: Likewise.
20262 * tree-browser.c: Likewise.
20263 * tree-call-cdce.c: Likewise.
20264 * tree-cfg.c: Likewise.
20265 * tree-cfgcleanup.c: Likewise.
20266 * tree-chkp-opt.c: Likewise.
20267 * tree-chkp.c: Likewise.
20268 * tree-chrec.c: Likewise.
20269 * tree-complex.c: Likewise.
20270 * tree-data-ref.c: Likewise.
20271 * tree-dfa.c: Likewise.
20272 * tree-diagnostic.c: Likewise.
20273 * tree-dump.c: Likewise.
20274 * tree-eh.c: Likewise.
20275 * tree-emutls.c: Likewise.
20276 * tree-if-conv.c: Likewise.
20277 * tree-inline.c: Likewise.
20278 * tree-into-ssa.c: Likewise.
20279 * tree-iterator.c: Likewise.
20280 * tree-loop-distribution.c: Likewise.
20281 * tree-nested.c: Likewise.
20282 * tree-nrv.c: Likewise.
20283 * tree-object-size.c: Likewise.
20284 * tree-outof-ssa.c: Likewise.
20285 * tree-parloops.c: Likewise.
20286 * tree-phinodes.c: Likewise.
20287 * tree-predcom.c: Likewise.
20288 * tree-pretty-print.c: Likewise.
20289 * tree-pretty-print.h: Likewise.
20290 * tree-profile.c: Likewise.
20291 * tree-scalar-evolution.c: Likewise.
20292 * tree-sra.c: Likewise.
20293 * tree-ssa-address.c: Likewise.
20294 * tree-ssa-alias.c: Likewise.
20295 * tree-ssa-ccp.c: Likewise.
20296 * tree-ssa-coalesce.c: Likewise.
20297 * tree-ssa-copy.c: Likewise.
20298 * tree-ssa-copyrename.c: Likewise.
20299 * tree-ssa-dce.c: Likewise.
20300 * tree-ssa-dom.c: Likewise.
20301 * tree-ssa-dse.c: Likewise.
20302 * tree-ssa-forwprop.c: Likewise.
20303 * tree-ssa-ifcombine.c: Likewise.
20304 * tree-ssa-live.c: Likewise.
20305 * tree-ssa-loop-ch.c: Likewise.
20306 * tree-ssa-loop-im.c: Likewise.
20307 * tree-ssa-loop-ivcanon.c: Likewise.
20308 * tree-ssa-loop-ivopts.c: Likewise.
20309 * tree-ssa-loop-manip.c: Likewise.
20310 * tree-ssa-loop-niter.c: Likewise.
20311 * tree-ssa-loop-prefetch.c: Likewise.
20312 * tree-ssa-loop-unswitch.c: Likewise.
20313 * tree-ssa-loop.c: Likewise.
20314 * tree-ssa-loop.h: Likewise.
20315 * tree-ssa-math-opts.c: Likewise.
20316 * tree-ssa-operands.c: Likewise.
20317 * tree-ssa-phiopt.c: Likewise.
20318 * tree-ssa-phiprop.c: Likewise.
20319 * tree-ssa-pre.c: Likewise.
20320 * tree-ssa-propagate.c: Likewise.
20321 * tree-ssa-reassoc.c: Likewise.
20322 * tree-ssa-sccvn.c: Likewise.
20323 * tree-ssa-scopedtables.c: Likewise.
20324 * tree-ssa-sink.c: Likewise.
20325 * tree-ssa-strlen.c: Likewise.
20326 * tree-ssa-structalias.c: Likewise.
20327 * tree-ssa-tail-merge.c: Likewise.
20328 * tree-ssa-ter.c: Likewise.
20329 * tree-ssa-threadedge.c: Likewise.
20330 * tree-ssa-threadupdate.c: Likewise.
20331 * tree-ssa-uncprop.c: Likewise.
20332 * tree-ssa-uninit.c: Likewise.
20333 * tree-ssa.c: Likewise.
20334 * tree-ssanames.c: Likewise.
20335 * tree-stdarg.c: Likewise.
20336 * tree-streamer-in.c: Likewise.
20337 * tree-streamer-out.c: Likewise.
20338 * tree-streamer.c: Likewise.
20339 * tree-switch-conversion.c: Likewise.
20340 * tree-tailcall.c: Likewise.
20341 * tree-vect-data-refs.c: Likewise.
20342 * tree-vect-generic.c: Likewise.
20343 * tree-vect-loop-manip.c: Likewise.
20344 * tree-vect-loop.c: Likewise.
20345 * tree-vect-patterns.c: Likewise.
20346 * tree-vect-slp.c: Likewise.
20347 * tree-vect-stmts.c: Likewise.
20348 * tree-vectorizer.c: Likewise.
20349 * tree-vrp.c: Likewise.
20350 * tree.c: Likewise.
20351 * tsan.c: Likewise.
20352 * ubsan.c: Likewise.
20353 * valtrack.c: Likewise.
20354 * value-prof.c: Likewise.
20355 * var-tracking.c: Likewise.
20356 * varasm.c: Likewise.
20357 * varpool.c: Likewise.
20358 * vmsdbgout.c: Likewise.
20359 * vtable-verify.c: Likewise.
20360 * web.c: Likewise.
20361 * wide-int-print.cc: Likewise.
20362 * wide-int-print.h: Likewise.
20363 * wide-int.cc: Likewise.
20364 * xcoffout.c: Likewise.
20365 * config/aarch64/aarch64-builtins.c: Likewise.
20366 * config/aarch64/aarch64.c: Likewise.
20367 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20368 * config/alpha/alpha.c: Likewise.
20369 * config/arc/arc.c: Likewise.
20370 * config/arm/aarch-common.c: Likewise.
20371 * config/arm/arm-builtins.c: Likewise.
20372 * config/arm/arm-c.c: Likewise.
20373 * config/arm/arm.c: Likewise.
20374 * config/avr/avr-c.c: Likewise.
20375 * config/avr/avr-log.c: Likewise.
20376 * config/avr/avr.c: Likewise.
20377 * config/bfin/bfin.c: Likewise.
20378 * config/c6x/c6x.c: Likewise.
20379 * config/cr16/cr16.c: Likewise.
20380 * config/cris/cris.c: Likewise.
20381 * config/darwin-c.c: Likewise.
20382 * config/darwin.c: Likewise.
20383 * config/default-c.c: Likewise.
20384 * config/epiphany/epiphany.c: Likewise.
20385 * config/epiphany/mode-switch-use.c: Likewise.
20386 * config/epiphany/resolve-sw-modes.c: Likewise.
20387 * config/fr30/fr30.c: Likewise.
20388 * config/frv/frv.c: Likewise.
20389 * config/ft32/ft32.c: Likewise.
20390 * config/glibc-c.c: Likewise.
20391 * config/h8300/h8300.c: Likewise.
20392 * config/i386/i386-c.c: Likewise.
20393 * config/i386/i386.c: Likewise.
20394 * config/i386/msformat-c.c: Likewise.
20395 * config/i386/winnt-cxx.c: Likewise.
20396 * config/i386/winnt-stubs.c: Likewise.
20397 * config/i386/winnt.c: Likewise.
20398 * config/ia64/ia64-c.c: Likewise.
20399 * config/ia64/ia64.c: Likewise.
20400 * config/iq2000/iq2000.c: Likewise.
20401 * config/lm32/lm32.c: Likewise.
20402 * config/m32c/m32c-pragma.c: Likewise.
20403 * config/m32c/m32c.c: Likewise.
20404 * config/m32r/m32r.c: Likewise.
20405 * config/m68k/m68k.c: Likewise.
20406 * config/mcore/mcore.c: Likewise.
20407 * config/mep/mep-pragma.c: Likewise.
20408 * config/mep/mep.c: Likewise.
20409 * config/microblaze/microblaze-c.c: Likewise.
20410 * config/microblaze/microblaze.c: Likewise.
20411 * config/mips/mips.c: Likewise.
20412 * config/mmix/mmix.c: Likewise.
20413 * config/mn10300/mn10300.c: Likewise.
20414 * config/moxie/moxie.c: Likewise.
20415 * config/msp430/msp430-c.c: Likewise.
20416 * config/msp430/msp430.c: Likewise.
20417 * config/nds32/nds32-cost.c: Likewise.
20418 * config/nds32/nds32-fp-as-gp.c: Likewise.
20419 * config/nds32/nds32-intrinsic.c: Likewise.
20420 * config/nds32/nds32-isr.c: Likewise.
20421 * config/nds32/nds32-md-auxiliary.c: Likewise.
20422 * config/nds32/nds32-memory-manipulation.c: Likewise.
20423 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20424 * config/nds32/nds32-predicates.c: Likewise.
20425 * config/nds32/nds32.c: Likewise.
20426 * config/nios2/nios2.c: Likewise.
20427 * config/nvptx/nvptx.c: Likewise.
20428 * config/pa/pa.c: Likewise.
20429 * config/pdp11/pdp11.c: Likewise.
20430 * config/rl78/rl78-c.c: Likewise.
20431 * config/rl78/rl78.c: Likewise.
20432 * config/rs6000/rs6000-c.c: Likewise.
20433 * config/rs6000/rs6000.c: Likewise.
20434 * config/rx/rx.c: Likewise.
20435 * config/s390/s390-c.c: Likewise.
20436 * config/s390/s390.c: Likewise.
20437 * config/sh/sh-c.c: Likewise.
20438 * config/sh/sh-mem.cc: Likewise.
20439 * config/sh/sh.c: Likewise.
20440 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20441 * config/sh/sh_treg_combine.cc: Likewise.
20442 * config/sol2-c.c: Likewise.
20443 * config/sol2-cxx.c: Likewise.
20444 * config/sol2-stubs.c: Likewise.
20445 * config/sol2.c: Likewise.
20446 * config/sparc/sparc-c.c: Likewise.
20447 * config/sparc/sparc.c: Likewise.
20448 * config/spu/spu-c.c: Likewise.
20449 * config/spu/spu.c: Likewise.
20450 * config/stormy16/stormy16.c: Likewise.
20451 * config/tilegx/mul-tables.c: Likewise.
20452 * config/tilegx/tilegx-c.c: Likewise.
20453 * config/tilegx/tilegx.c: Likewise.
20454 * config/tilepro/mul-tables.c: Likewise.
20455 * config/tilepro/tilepro-c.c: Likewise.
20456 * config/tilepro/tilepro.c: Likewise.
20457 * config/v850/v850-c.c: Likewise.
20458 * config/v850/v850.c: Likewise.
20459 * config/vax/vax.c: Likewise.
20460 * config/visium/visium.c: Likewise.
20461 * config/vms/vms-c.c: Likewise.
20462 * config/vms/vms.c: Likewise.
20463 * config/vxworks.c: Likewise.
20464 * config/winnt-c.c: Likewise.
20465 * config/xtensa/xtensa.c: Likewise.
20466 * common/config/bfin/bfin-common.c: Likewise.
20467
20468 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
20469
20470 * tree.h (tree_code_for_canonical_type_merging): New function.
20471 * tree.c (gimple_canonical_types_compatible_p): Use
20472 tree_code_for_canonical_type_merging..
20473
20474 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20475
20476 PR c++/66192
20477 PR target/66200
20478 * doc/tm.texi: Regenerate.
20479 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
20480 * target.def (TARGET_RELAXED_ORDERING): Likewise.
20481 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
20482 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
20483 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
20484 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
20485 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
20486 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
20487 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
20488
20489 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20490
20491 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
20492 register fma steering pass.
20493 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
20494 AARCH64_TUNE_FMA_STEERING.
20495
20496 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
20497
20498 * tree.c (verify_type_variant): Verify that type and variant is
20499 compatible.
20500 (gimple_canonical_types_compatible_p): Look for main variants.
20501
20502 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
20503
20504 * config.gcc (powerpc*-*-*): Add support for a new configure
20505 option --with-advance-toolchain=<xxx> which overrides using the
20506 default header files, libraries and dynamic linker.
20507
20508 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
20509 specs to support the configure --with-advance-toolchain=<xxx>
20510 option.
20511 (INCLUDE_EXTRA_SPEC): Likewise.
20512 (LINK_OS_EXTRA_SPEC32): Likewise.
20513 (LINK_OK_EXTRA_SPEC64): Likewise.
20514 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
20515 (DYNAMIC_LINKER_PREFIX): Likewise.
20516 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
20517 toolchain support.
20518 (GLIBC_DYNAMIC_LINKER32): Likewise.
20519 (GLIBC_DYNAMIC_LINKER64): Likewise.
20520 (LINK_OS_LINUX_SPEC32): Likewise.
20521 (LINK_OS_LINUX_SPEC64): Likewise.
20522
20523 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
20524 configuration option.
20525
20526 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
20527
20528 PR target/66275
20529 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
20530 to determine current function ABI.
20531 (ix86_function_value_regno_p): Ditto.
20532
20533 2015-06-03 Martin Liska <mliska@suse.cz>
20534
20535 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
20536 * bitmap.h (struct bitmap_usage): Likewise.
20537 * ggc-common.c (struct ggc_usage): Likewise.
20538 * mem-stats.h (struct mem_location): Likewise.
20539 (struct mem_usage): Likewise.
20540 * vec.c (struct vec_usage): Likewise.
20541
20542 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
20543
20544 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
20545 -Bsymbolic.
20546
20547 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
20548
20549 * doc/plugins.texi (enum plugin_event): New event.
20550 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
20551 and PLUGIN_FINISH_FUNCTION.
20552 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
20553 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
20554
20555 2015-06-03 Richard Biener <rguenther@suse.de>
20556
20557 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20558 compute GROUP_GAP for the first element.
20559 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
20560 on in-group gaps.
20561
20562 2015-06-03 Nick Clifton <nickc@redhat.com>
20563
20564 * config/rl78/rl78-real.md: Add peepholes to avoid a register
20565 copy when calling a function.
20566 * config/rl78/rl78.c (need_to_save): Do not push the frame
20567 pointer in an interrupt handler prologue if it is never used.
20568
20569 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20570
20571 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
20572
20573 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
20574
20575 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
20576 reference when cloning alias node.
20577
20578 2015-06-03 Martin Liska <mliska@suse.cz>
20579
20580 * alloc-pool.h (struct pool_usage): Correct space padding.
20581 * ggc-page.c (ggc_print_statistics): Align columns in a report.
20582 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
20583 * tree.c (dump_tree_statistics): Align columns in a report.
20584
20585 2015-06-03 Martin Liska <mliska@suse.cz>
20586
20587 * alloc-pool.c (allocate_pool_descriptor): Remove.
20588 (struct pool_output_info): Likewise.
20589 (print_alloc_pool_statistics): Likewise.
20590 (dump_alloc_pool_statistics): Likewise.
20591 * alloc-pool.h (struct pool_usage): New struct.
20592 (pool_allocator::initialize): Change usage of memory statistics
20593 to a new interface.
20594 (pool_allocator::release): Likewise.
20595 (pool_allocator::allocate): Likewise.
20596 (pool_allocator::remove): Likewise.
20597 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
20598 for a pool allocator.
20599 * mem-stats.h (struct mem_location): Add new ctor.
20600 (struct mem_usage): Add counter for number of
20601 instances.
20602 (mem_alloc_description::register_descriptor): New overload of
20603 * mem-stats.h (mem_location::to_string): New function.
20604 * bitmap.h (struct bitmap_usage): Use this new function.
20605 * ggc-common.c (struct ggc_usage): Likewise.
20606 the function.
20607
20608 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
20609
20610 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
20611 of GCC_INSN_FLAGS_H block.
20612
20613 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
20614
20615 * explow.c (plus_constant): Update check after force_const_mem call
20616 to see if the value returned is not a NULL_RTX.
20617
20618 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
20619
20620 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
20621 remove instumentation thunks calling reachable functions.
20622 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
20623 * lto/lto-partition.c (privatize_symbol_name_1): New.
20624 (privatize_symbol_name): Privatize both decl and orig_decl
20625 names for instrumented functions.
20626 * cgraph.c (cgraph_node::verify_node): Add transparent
20627 alias chain check for instrumented node.
20628
20629 2015-06-03 Marek Polacek <polacek@redhat.com>
20630
20631 PR c/64223
20632 PR c/29358
20633 * tree.c (attribute_value_equal): Handle attribute format.
20634 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
20635
20636 2015-06-03 Richard Biener <rguenther@suse.de>
20637
20638 PR tree-optimization/63916
20639 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20640 Forward-propagate non-invariant addresses by splicing their
20641 reference ops if the result isn't going to be used by PRE.
20642 (vn_reference_lookup_3): Remove pointless assert.
20643
20644 2015-06-03 Richard Biener <rguenther@suse.de>
20645
20646 PR tree-optimization/66375
20647 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
20648 add to the evolution before following SSA edges.
20649
20650 2015-06-03 Bin Cheng <bin.cheng@arm.com>
20651
20652 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
20653 (dump_use, dump_cand, find_induction_variables): Pass new argument
20654 to dump_iv.
20655 (record_use): Preserve the ssa name information in IV.
20656
20657 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
20658
20659 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
20660 NO_MODE_TEST.
20661 (add_mode_tests): Don't add mode tests if the predicate only
20662 accepts scalar constant integers. Otherwise, allow the mode
20663 of "op" to be VOIDmode if the predicate does accept such integers.
20664
20665 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
20666
20667 PR target/66258
20668 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
20669 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
20670 (aarch64_secondary_reload): Likewise
20671 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
20672 to !TARGET_FLOAT.
20673 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
20674 Likewise.
20675
20676 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
20677 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20678
20679 PR target/65768
20680 * cprop.c (try_replace_reg): Check cost of constants before propagating.
20681
20682 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20683
20684 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
20685 provide access to the IBM extended double floating point mode if
20686 long double is IEEE 128-bit floating point.
20687 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
20688 point if long double is the IBM extended double type.
20689
20690 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
20691 enable adding IEEE 128-bit floating point support.
20692 (-mfloat128-software): Likewise.
20693 (-mfloat128-sw): Likewise.
20694
20695 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
20696 128-bit floating point types to occupy any register if
20697 -mlong-double-64. Do not allow use of IFmode/KFmode unless
20698 -mfloat128-software is enabled.
20699 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
20700 support.
20701 (rs6000_option_override_internal): Add -mfloat128-* support.
20702 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
20703
20704 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
20705 and float128 type nodes.
20706 (ieee128_float_type_node): Likewise.
20707 (ibm128_float_type_node): Likewise.
20708
20709 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
20710
20711 PR target/66136
20712 * config/aarch64/geniterators.sh: Rewrite in awk.
20713
20714 2015-06-02 Martin Liska <mliska@suse.cz>
20715
20716 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
20717 values to avoid -Wmaybe-uninitialized errors.
20718
20719 2015-06-02 Richard Biener <rguenther@suse.de>
20720
20721 PR debug/65549
20722 * dwarf2out.c (lookup_context_die): New function.
20723 (resolve_addr): Avoid forcing a full DIE for the
20724 target of a DW_TAG_GNU_call_site during late compilation.
20725 Instead create a stub DIE without a type if we have a
20726 context DIE present.
20727
20728 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
20729
20730 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
20731
20732 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20733
20734 PR tree-optimization/48052
20735 * cfgloop.h (struct control_iv): New.
20736 (struct loop): New field control_ivs.
20737 * tree-ssa-loop-niter.c : Include "stor-layout.h".
20738 (number_of_iterations_lt): Set no_overflow information.
20739 (number_of_iterations_exit): Init control iv in niter struct.
20740 (record_control_iv): New.
20741 (estimate_numbers_of_iterations_loop): Call record_control_iv.
20742 (loop_exits_before_overflow): New. Interface factored out of
20743 scev_probably_wraps_p.
20744 (scev_probably_wraps_p): Factor loop niter related code into
20745 loop_exits_before_overflow.
20746 (free_numbers_of_iterations_estimates_loop): Free control ivs.
20747 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
20748
20749 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
20750
20751 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
20752 the target doesn't belong to the current function.
20753
20754 2015-06-02 Marek Polacek <polacek@redhat.com>
20755
20756 PR middle-end/66345
20757 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
20758 get_maxval_strlen does not produce an INTEGER_CST.
20759
20760 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
20761
20762 * config/arc/constraints.md: Use lower-case names in match_code.
20763 * config/mmix/constraints.md: Likewise.
20764
20765 2015-06-02 Richard Biener <rguenther@suse.de>
20766
20767 PR tree-optimization/65961
20768 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
20769 check and clarify dump message.
20770 (vect_build_slp_tree): If all children are built up from scalars
20771 build up the parent from scalars instead.
20772 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
20773
20774 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
20775
20776 PR other/65366
20777 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
20778 instead of print ... .
20779
20780 2015-06-02 Alan Modra <amodra@gmail.com>
20781
20782 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
20783 2014-08-11 change.
20784
20785 2015-06-02 Bin Cheng <bin.cheng@arm.com>
20786
20787 PR tree-optimization/52563
20788 PR tree-optimization/62173
20789 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
20790 (alloc_iv, set_iv): New parameter.
20791 (determine_biv_step): Delete.
20792 (find_bivs): Inline original determine_biv_step. Pass new
20793 argument to set_iv.
20794 (idx_find_step): Use no_overflow information for conversion.
20795 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
20796 resolve_mixers handle folded_casts.
20797 (instantiate_scev_name): Change bool parameter to bool pointer.
20798 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
20799 (instantiate_array_ref, instantiate_scev_not): Ditto.
20800 (instantiate_scev_3, instantiate_scev_2): Ditto.
20801 (instantiate_scev_1, instantiate_scev_r): Ditto.
20802 (instantiate_scev_convert, ): Change parameter. Pass argument
20803 to chrec_convert_aggressive.
20804 (instantiate_scev): Change argument.
20805 (resolve_mixers): New parameter and set it.
20806 (scev_const_prop): New argument.
20807 * tree-scalar-evolution.h (resolve_mixers): New parameter.
20808 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
20809 of chrec_conert_1.
20810 (chrec_convert): New parameter. Move definition below.
20811 (chrec_convert_aggressive): New parameter and set it. Call
20812 convert_affine_scev.
20813 * tree-chrec.h (chrec_convert): New parameter.
20814 (chrec_convert_aggressive): Ditto.
20815
20816 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
20817
20818 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
20819 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
20820 the LHS of a no-return call if its type has variable size.
20821 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
20822 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
20823
20824 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
20825
20826 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
20827 * config.in: Regenerate.
20828
20829 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20830
20831 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20832 consecutive accesses within outer-loop with force_vectorize
20833 for references with zero step in inner-loop.
20834
20835 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20836
20837 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
20838 rather than from gcc/build directory.
20839
20840 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20841
20842 PR target/65697
20843 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
20844 for __sync memory models, emit initial loads and final barriers as
20845 appropriate.
20846
20847 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
20848
20849 PR target/65697
20850 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
20851 (aarch64_split_atomic_op): Check for __sync memory models, emit
20852 appropriate initial loads and final barriers.
20853
20854 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
20855
20856 * Makefile.in: Fix gcov dependencies that should
20857 not point to a build folder.
20858
20859 2015-06-01 Richard Biener <rguenther@suse.de>
20860
20861 Revert
20862 2015-05-29 Richard Biener <rguenther@suse.de>
20863
20864 PR tree-optimization/66314
20865 * tree-ssa-threadupdate.c (create_block_for_threading): Add
20866 parameter that says which loop the new block belongs to.
20867 (ssa_create_duplicates): Blocks duplicated for the threaded
20868 path belong to the loop of the thread destination.
20869
20870 2015-06-01 Martin Liska <mliska@suse.cz>
20871
20872 * sched-deps.c: Include pool-alloc.h before
20873 cselib.h header file is included.
20874
20875 2015-06-01 Richard Biener <rguenther@suse.de>
20876
20877 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
20878 functions.
20879
20880 2015-06-01 Martin Liska <mliska@suse.cz>
20881
20882 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
20883 a function local variable.
20884
20885 2015-06-01 Martin Liska <mliska@suse.cz>
20886
20887 * alloc-pool.c (create_alloc_pool): Remove.
20888 (empty_alloc_pool): Likewise.
20889 (free_alloc_pool): Likewise.
20890 (free_alloc_pool_if_empty): Likewise.
20891 (pool_alloc): Likewise.
20892 (pool_free): Likewise.
20893 * alloc-pool.h: Remove old declarations.
20894
20895 2015-06-01 Martin Liska <mliska@suse.cz>
20896
20897 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
20898 (ira_create_object): Likewise.
20899 (ira_create_allocno): Likewise.
20900 (ira_create_live_range): Likewise.
20901 (copy_live_range): Likewise.
20902 (ira_finish_live_range): Likewise.
20903 (ira_free_allocno_costs): Likewise.
20904 (finish_allocno): Likewise.
20905 (finish_allocnos): Likewise.
20906 (initiate_prefs): Likewise.
20907 (ira_create_pref): Likewise.
20908 (finish_pref): Likewise.
20909 (finish_prefs): Likewise.
20910 (initiate_copies): Likewise.
20911 (ira_create_copy): Likewise.
20912 (finish_copy): Likewise.
20913 (finish_copies): Likewise.
20914 (finish_prefs): Likewise.
20915
20916 2015-06-01 Martin Liska <mliska@suse.cz>
20917
20918 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
20919 (allocate_and_init_ipcp_value): Likewise.
20920 (ipcp_lattice::add_value): Likewise.
20921 (merge_agg_lats_step): Likewise.
20922 (ipcp_driver): Likewise.
20923 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
20924 (ipa_free_all_structures_after_iinln): Likewise.
20925 * ipa-prop.h: Likewise.
20926
20927 2015-06-01 Martin Liska <mliska@suse.cz>
20928
20929 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
20930 pool allocator.
20931 (set_hint_predicate): Likewise.
20932 (inline_summary_alloc): Likewise.
20933 (reset_inline_edge_summary): Likewise.
20934 (reset_inline_summary): Likewise.
20935 (set_cond_stmt_execution_predicate): Likewise.
20936 (set_switch_stmt_execution_predicate): Likewise.
20937 (compute_bb_predicates): Likewise.
20938 (estimate_function_body_sizes): Likewise.
20939 (inline_free_summary): Likewise.
20940
20941 2015-06-01 Martin Liska <mliska@suse.cz>
20942
20943 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
20944 (ipa_edge_duplication_hook): Likewise.
20945 (ipa_free_all_structures_after_ipa_cp): Likewise.
20946 (ipa_free_all_structures_after_iinln): Likewise.
20947
20948 2015-06-01 Martin Liska <mliska@suse.cz>
20949
20950 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
20951 (ipa_profile_generate_summary): Likewise.
20952 (ipa_profile_read_summary): Likewise.
20953 (ipa_profile): Likewise.
20954
20955 2015-06-01 Martin Liska <mliska@suse.cz>
20956
20957 * tree-ssa-structalias.c (new_var_info): Use new type-based
20958 pool allocator.
20959 (new_constraint): Likewise.
20960 (init_alias_vars): Likewise.
20961 (delete_points_to_sets): Likewise.
20962
20963 2015-06-01 Martin Liska <mliska@suse.cz>
20964
20965 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
20966 (free_strinfo): Likewise.
20967 (pass_strlen::execute): Likewise.
20968
20969 2015-06-01 Martin Liska <mliska@suse.cz>
20970
20971 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
20972 pool allocator.
20973 (vn_reference_insert_pieces): Likewise.
20974 (vn_phi_insert): Likewise.
20975 (visit_reference_op_call): Likewise.
20976 (copy_phi): Likewise.
20977 (copy_reference): Likewise.
20978 (process_scc): Likewise.
20979 (allocate_vn_table): Likewise.
20980 (free_vn_table): Likewise.
20981
20982 2015-06-01 Martin Liska <mliska@suse.cz>
20983
20984 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
20985 pool allocator.
20986 (add_repeat_to_ops_vec): Likewise.
20987 (get_ops): Likewise.
20988 (maybe_optimize_range_tests): Likewise.
20989 (init_reassoc): Likewise.
20990 (fini_reassoc): Likewise.
20991
20992 2015-06-01 Martin Liska <mliska@suse.cz>
20993
20994 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
20995 pool allocator.
20996 (bitmap_set_new): Likewise.
20997 (get_or_alloc_expr_for_constant): Likewise.
20998 (get_or_alloc_expr_for): Likewise.
20999 (phi_translate_1): Likewise.
21000 (compute_avail): Likewise.
21001 (init_pre): Likewise.
21002 (fini_pre): Likewise.
21003
21004 2015-06-01 Martin Liska <mliska@suse.cz>
21005
21006 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21007 (delete_dep_node): Likewise.
21008 (create_deps_list): Likewise.
21009 (free_deps_list): Likewise.
21010 (sched_deps_init): Likewise.
21011 (sched_deps_finish): Likewise.
21012
21013 2015-06-01 Martin Liska <mliska@suse.cz>
21014
21015 * regcprop.c (free_debug_insn_changes): Use new type-based
21016 pool allocator.
21017 (replace_oldest_value_reg): Likewise.
21018 (pass_cprop_hardreg::execute): Likewise.
21019
21020 2015-06-01 Martin Liska <mliska@suse.cz>
21021
21022 * ira-build.c (initiate_cost_vectors): Use new type-based
21023 pool allocator.
21024 (ira_allocate_cost_vector): Likewise.
21025 (ira_free_cost_vector): Likewise.
21026 (finish_cost_vectors): Likewise.
21027
21028 2015-06-01 Martin Liska <mliska@suse.cz>
21029
21030 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21031 pool allocator.
21032 (free_sched_pools): Likewise.
21033 * sel-sched-ir.h (_list_alloc): Likewise.
21034 (_list_remove): Likewise.
21035
21036 2015-06-01 Martin Liska <mliska@suse.cz>
21037
21038 * stmt.c (add_case_node): Use new type-based pool allocator.
21039 (expand_case): Likewise.
21040 (expand_sjlj_dispatch_table): Likewise.
21041
21042 2015-06-01 Martin Liska <mliska@suse.cz>
21043
21044 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21045 (free_bb): Likewise.
21046 (pass_cse_reciprocals::execute): Likewise.
21047
21048 2015-06-01 Martin Liska <mliska@suse.cz>
21049
21050 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21051 (sra_deinitialize) Likewise.
21052 (create_access_1) Likewise.
21053 (build_accesses_from_assign) Likewise.
21054 (create_artificial_child_access) Likewise.
21055
21056 2015-06-01 Martin Liska <mliska@suse.cz>
21057
21058 * dse.c (get_group_info):Use new type-based pool allocator.
21059 (dse_step0) Likewise.
21060 (free_store_info) Likewise.
21061 (delete_dead_store_insn) Likewise.
21062 (free_read_records) Likewise.
21063 (record_store) Likewise.
21064 (replace_read) Likewise.
21065 (check_mem_read_rtx) Likewise.
21066 (scan_insn) Likewise.
21067 (dse_step1) Likewise.
21068 (dse_step7) Likewise.
21069
21070 2015-06-01 Martin Liska <mliska@suse.cz>
21071
21072 * df-scan.c (struct df_scan_problem_data):Use new type-based
21073 pool allocator.
21074 (df_scan_free_internal) Likewise.
21075 (df_scan_alloc) Likewise.
21076 (df_grow_reg_info) Likewise.
21077 (df_free_ref) Likewise.
21078 (df_insn_create_insn_record) Likewise.
21079 (df_mw_hardreg_chain_delete) Likewise.
21080 (df_insn_info_delete) Likewise.
21081 (df_free_collection_rec) Likewise.
21082 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21083 (df_sort_and_compress_mws) Likewise.
21084 (df_ref_create_structure) Likewise.
21085 (df_ref_record) Likewise.
21086
21087 2015-06-01 Martin Liska <mliska@suse.cz>
21088
21089 * df-problems.c (df_chain_create):Use new type-based pool allocator.
21090 (df_chain_unlink_1) Likewise.
21091 (df_chain_unlink) Likewise.
21092 (df_chain_remove_problem) Likewise.
21093 (df_chain_alloc) Likewise.
21094 (df_chain_free) Likewise.
21095 * df.h (struct dataflow) Likewise.
21096
21097 2015-06-01 Martin Liska <mliska@suse.cz>
21098
21099 * cselib.c (new_elt_list):Use new type-based pool allocator.
21100 (new_elt_loc_list) Likewise.
21101 (unchain_one_elt_list) Likewise.
21102 (unchain_one_elt_loc_list) Likewise.
21103 (unchain_one_value) Likewise.
21104 (new_cselib_val) Likewise.
21105 (cselib_init) Likewise.
21106 (cselib_finish) Likewise.
21107
21108 2015-06-01 Martin Liska <mliska@suse.cz>
21109
21110 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21111 (sh_reorg) Likewise.
21112
21113 2015-06-01 Martin Liska <mliska@suse.cz>
21114
21115 * cfg.c (initialize_original_copy_tables):Use new type-based
21116 pool allocator.
21117 (free_original_copy_tables) Likewise.
21118 (copy_original_table_clear) Likewise.
21119 (copy_original_table_set) Likewise.
21120
21121 2015-06-01 Martin Liska <mliska@suse.cz>
21122
21123 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21124 pool allocator.
21125 (asan_mem_ref_new) Likewise.
21126 (free_mem_ref_resources) Likewise.
21127
21128 2015-06-01 Martin Liska <mliska@suse.cz>
21129
21130 * var-tracking.c (variable_htab_free):Use new type-based
21131 pool allocator.
21132 (attrs_list_clear) Likewise.
21133 (attrs_list_insert) Likewise.
21134 (attrs_list_copy) Likewise.
21135 (shared_hash_unshare) Likewise.
21136 (shared_hash_destroy) Likewise.
21137 (unshare_variable) Likewise.
21138 (var_reg_delete_and_set) Likewise.
21139 (var_reg_delete) Likewise.
21140 (var_regno_delete) Likewise.
21141 (drop_overlapping_mem_locs) Likewise.
21142 (variable_union) Likewise.
21143 (insert_into_intersection) Likewise.
21144 (canonicalize_values_star) Likewise.
21145 (variable_merge_over_cur) Likewise.
21146 (dataflow_set_merge) Likewise.
21147 (remove_duplicate_values) Likewise.
21148 (variable_post_merge_new_vals) Likewise.
21149 (dataflow_set_preserve_mem_locs) Likewise.
21150 (dataflow_set_remove_mem_locs) Likewise.
21151 (variable_from_dropped) Likewise.
21152 (variable_was_changed) Likewise.
21153 (set_slot_part) Likewise.
21154 (clobber_slot_part) Likewise.
21155 (delete_slot_part) Likewise.
21156 (loc_exp_insert_dep) Likewise.
21157 (notify_dependents_of_changed_value) Likewise.
21158 (emit_notes_for_differences_1) Likewise.
21159 (vt_emit_notes) Likewise.
21160 (vt_initialize) Likewise.
21161 (vt_finalize) Likewise.
21162
21163 2015-06-01 Martin Liska <mliska@suse.cz>
21164
21165 * ira-color.c (init_update_cost_records):Use new type-based
21166 pool allocator.
21167 (get_update_cost_record) Likewise.
21168 (free_update_cost_record_list) Likewise.
21169 (finish_update_cost_records) Likewise.
21170 (initiate_cost_update) Likewise.
21171
21172 2015-06-01 Martin Liska <mliska@suse.cz>
21173
21174 * lra.c (init_insn_regs): Use new type-based pool allocator.
21175 (new_insn_reg) Likewise.
21176 (free_insn_reg) Likewise.
21177 (free_insn_regs) Likewise.
21178 (finish_insn_regs) Likewise.
21179 (init_insn_recog_data) Likewise.
21180 (init_reg_info) Likewise.
21181 (finish_reg_info) Likewise.
21182 (lra_free_copies) Likewise.
21183 (lra_create_copy) Likewise.
21184 (invalidate_insn_data_regno_info) Likewise.
21185
21186 2015-06-01 Martin Liska <mliska@suse.cz>
21187
21188 * lra-lives.c (free_live_range): Use new type-based pool allocator.
21189 (free_live_range_list) Likewise.
21190 (create_live_range) Likewise.
21191 (copy_live_range) Likewise.
21192 (lra_merge_live_ranges) Likewise.
21193 (remove_some_program_points_and_update_live_ranges) Likewise.
21194 (lra_live_ranges_init) Likewise.
21195 (lra_live_ranges_finish) Likewise.
21196
21197 2015-06-01 Martin Liska <mliska@suse.cz>
21198
21199 * et-forest.c (et_new_occ): Use new type-based pool allocator.
21200 (et_new_tree): Likewise.
21201 (et_free_tree): Likewise.
21202 (et_free_tree_force): Likewise.
21203 (et_free_pools): Likewise.
21204 (et_split): Likewise.
21205
21206 2015-06-01 Martin Liska <mliska@suse.cz>
21207
21208 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21209 to header file.
21210 * alloc-pool.h (pool_allocator::pool_allocator): New function.
21211 (pool_allocator::release): Likewise.
21212 (inline pool_allocator::release_if_empty): Likewise.
21213 (inline pool_allocator::~pool_allocator): Likewise.
21214 (pool_allocator::allocate): Likewise.
21215 (pool_allocator::remove): Likewise.
21216
21217 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21218
21219 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21220 in comment.
21221
21222 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21223
21224 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21225 to fusible_ops.
21226 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
21227 (arm_macro_fusion_p): Likewise.
21228 (arm_macro_fusion_pair_p): Likewise.
21229
21230 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21231
21232 * config/aarch64/aarch64-protos.h (tune_params): Rename
21233 fuseable_ops to fusible_ops.
21234 * config/aarch64/aarch64.c (generic_tunings): Rename
21235 fuseable_ops to fusible_ops.
21236 (cortexa53_tunings): Likewise.
21237 (cortexa57_tunings): Likewise.
21238 (thunderx_tunings): Likewise.
21239 (xgene1_tunings): Likewise.
21240 (aarch64_macro_fusion_p): Likewise.
21241 (aarch64_macro_fusion_pair_p): Likewise.
21242
21243 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
21244
21245 * config/s390/driver-native.c: New file.
21246 * config/s390/x-native: New file.
21247 * config.host: Add new files for s390.
21248 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
21249 and -march=native
21250 * config.gcc: Likewise.
21251 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
21252 * config/s390/s390-opts.h (enum processor_type): Ditto.
21253 * config/s390/s390.c (s390_option_override): Catch unhandled
21254 PROCESSOR_NATIVE
21255
21256 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
21257
21258 PR target/65527
21259 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
21260 redirection for instrumented calls.
21261 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
21262 (append_compiler_options): Append -fcheck-pointer-bounds.
21263 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
21264 (chkp_redirect_edge): New.
21265 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
21266 (chkp_redirect_edge): New.
21267
21268 2015-06-01 Richard Biener <rguenther@suse.de>
21269
21270 PR tree-optimization/66280
21271 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
21272 def-use walking.
21273
21274 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21275
21276 * config/aarch64/aarch64.md
21277 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
21278 logic_shift_imm.
21279
21280 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21281
21282 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
21283 Remove obsolete kludge.
21284
21285 2015-06-01 Richard Biener <rguenther@suse.de>
21286
21287 * tree-ssa-reassoc.c (get_rank): Simplify.
21288
21289 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
21290
21291 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
21292 * configure: Regenerated.
21293
21294 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
21295
21296 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
21297 issue (add space between string literal and macro).
21298 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
21299
21300 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
21301
21302 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
21303 implict or explicit -fPIE or -fpie.
21304
21305 2015-05-30 Mike Frysinger <vapier@gentoo.org>
21306
21307 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
21308
21309 2015-05-28 DJ Delorie <dj@redhat.com>
21310
21311 * expmed.c (extract_bit_field_1): Avoid clobbering a
21312 yet-to-be-used base/index register.
21313
21314 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
21315
21316 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
21317 (alias_stats): Add num_universal.
21318 (alias_set_subset_of): Special case pointers; be ready for NULL
21319 children.
21320 (alias_sets_conflict_p): Special case pointers; be ready for NULL
21321 children.
21322 (init_alias_set_entry): Break out from ...
21323 (record_alias_subset): ... here; propagate new fields;
21324 allocate children only when really needed.
21325 (get_alias_set): Do less generous pointer globbing.
21326 (dump_alias_stats_in_alias_c): Update statistics.
21327
21328 2015-05-30 Alan Modra <amodra@gmail.com>
21329
21330 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
21331 correct block for use of r12.
21332 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
21333
21334 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21335
21336 PR target/66215
21337 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
21338 with -mhotpatch=.
21339
21340 2015-05-29 Jakub Jelinek <jakub@redhat.com>
21341
21342 PR tree-optimization/66142
21343 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
21344 virtual phis that feed themselves.
21345
21346 2015-05-29 Richard Biener <rguenther@suse.de>
21347
21348 PR tree-optimization/66314
21349 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21350 parameter that says which loop the new block belongs to.
21351 (ssa_create_duplicates): Blocks duplicated for the threaded
21352 path belong to the loop of the thread destination.
21353
21354 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21355
21356 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
21357 to cleanup-saved-temps.
21358 * doc/sourcebuild.texi (Clean up generated test files): Expand
21359 introduction.
21360 (dg-keep-saved-temps): Document new proc.
21361 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
21362 cleanup-saved-temps): Remove.
21363
21364 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
21365
21366 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
21367 gcc_AC_CHECK_DECLS.
21368 * configure: Regenerate.
21369
21370 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21371
21372 * config/nios2/linux.h (CPP_SPEC): Define.
21373
21374 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21375
21376 * config/microblaze/linux.h (CPP_SPEC): Define.
21377
21378 2015-05-28 Mike Frysinger <vapier@gentoo.org>
21379
21380 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
21381 -pthread is specified.
21382
21383 2015-05-28 Richard Biener <rguenther@suse.de>
21384
21385 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
21386 (vect_fixup_scalar_cycles_with_patterns): Likewise.
21387 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
21388 after pattern recog.
21389 (vect_create_epilog_for_reduction): Properly handle reductions
21390 with patterns.
21391 (vectorizable_reduction): Likewise.
21392 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
21393 reduction chains.
21394 (vect_get_constant_vectors): Create the correct number of
21395 initial values for reductions.
21396 (vect_schedule_slp_instance): Handle reduction chains that are
21397 type changing properly.
21398 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
21399
21400 2015-05-28 Richard Biener <rguenther@suse.de>
21401
21402 PR tree-optimization/66142
21403 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
21404 values better in memcpy destination handling. Handle non-aliasing
21405 we discover here.
21406
21407 2015-05-28 Lawrence Velázquez <vq@larryv.me>
21408
21409 PR target/63810
21410 * config/darwin-c.c (version_components): New global enum.
21411 (parse_version, version_as_legacy_macro)
21412 (version_as_modern_macro, macosx_version_as_macro): New functions.
21413 (version_as_macro): Remove.
21414 (darwin_cpp_builtins): Use new function.
21415
21416 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
21417
21418 * builtins.c (expand_builtin_acc_on_device): Mark parameters
21419 with ATTRIBUTE_UNUSED.
21420
21421 2015-05-28 Julian Brown <julian@codesourcery.com>
21422
21423 PR libgomp/65742
21424
21425 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
21426 sequence for !ACCEL_COMPILER.
21427
21428 2015-05-28 Nick Clifton <nickc@redhat.com>
21429
21430 * config/rx/rx.c (push_regs): New function. Extracts code from...
21431 (rx_expand_prologue): ... here. Use push_regs to push even small
21432 spans of registers.
21433 (pop_regs): New function.
21434 (rx_expand_epilogue): Use pop_regs to pop even small spans of
21435 registers.
21436
21437 2015-05-28 Richard Biener <rguenther@suse.de>
21438
21439 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
21440 member.
21441 (SLP_INSTANCE_BODY_COST_VEC): Remove.
21442 (vect_update_slp_costs_according_to_vf): Likewise.
21443 (vect_slp_analyze_operations): Update prototype.
21444 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
21445 vect_update_slp_costs_according_to_vf, adjust.
21446 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
21447 (vect_analyze_slp_cost_1): Likewise.
21448 (vect_analyze_slp_cost): Likewise. Properly deal with
21449 widening reduction ops. Commit body costs.
21450 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
21451 cost for loops from here.
21452 (vect_slp_analyze_operations): But do it from here when
21453 the vectorization factor is known and stmts are analyzed.
21454 (vect_bb_vectorization_profitable_p): Simplify.
21455 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
21456 (vect_update_slp_costs_according_to_vf): Remove.
21457
21458 2015-05-27 Magnus Granberg <zorry@gentoo.org>
21459 H.J. Lu <hongjiu.lu@intel.com>
21460
21461 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
21462 (BUILD_CFLAGS): Likewise.
21463 (BUILD_CXXFLAGS): Likewise.
21464 (LINKER): Add @NO_PIE_FLAG@.
21465 (BUILD_LDFLAGS): Likewise.
21466 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
21467 --enable-default-pie.
21468 * common.opt (fPIE): Initialize to -1.
21469 (fpie): Likewise.
21470 (no-pie): New option.
21471 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
21472 * configure.ac: Add --enable-default-pie.
21473 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
21474 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
21475 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
21476 * gcc.c (NO_PIE_SPEC): New.
21477 (PIE_SPEC): Likewise.
21478 (NO_FPIE1_SPEC): Likewise.
21479 (FPIE1_SPEC): Likewise.
21480 (NO_FPIE2_SPEC): Likewise.
21481 (FPIE2_SPEC): Likewise.
21482 (NO_FPIE2_SPEC): Likewise.
21483 (FPIE_SPEC): Likewise.
21484 (NO_FPIE_SPEC): Likewise.
21485 (NO_FPIC1_SPEC): Likewise.
21486 (FPIC1_SPEC): Likewise.
21487 (NO_FPIC2_SPEC): Likewise.
21488 (FPIC2_SPEC): Likewise.
21489 (NO_FPIC2_SPEC): Likewise.
21490 (FPIC_SPEC): Likewise.
21491 (NO_FPIC_SPEC): Likewise.
21492 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
21493 (FPIE1_OR_FPIC1_SPEC): Likewise.
21494 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
21495 (FPIE2_OR_FPIC2_SPEC): Likewise.
21496 (NO_FPIE_AND_FPIC_SPEC): Likewise.
21497 (FPIE_OR_FPIC_SPEC): Likewise.
21498 (LD_PIE_SPEC): Likewise.
21499 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
21500 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
21501 * config/darwin.h (PIE_SPEC): Renamed to ...
21502 (DARWIN_PIE_SPEC): This.
21503 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
21504 * config/darwin9.h (PIE_SPEC): Renamed to ...
21505 (DARWIN_PIE_SPEC): This.
21506 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
21507 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21508 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
21509 FPIE2_OR_FPIC2_SPEC.
21510 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
21511 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
21512 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
21513 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21514 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21515 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21516 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
21517 * config/m32r/m32r.h (ASM_SPEC): Likewise.
21518 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
21519 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
21520 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
21521 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
21522 * config/sparc/linux.h (ASM_SPEC): Likewise.
21523 * config/sparc/linux64.h (ASM_SPEC): Likewise.
21524 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
21525 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
21526 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21527 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21528 * config/sparc/sparc.h (ASM_SPEC): Likewise.
21529 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
21530 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
21531 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
21532 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
21533 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
21534 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
21535 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
21536 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
21537 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
21538 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
21539 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
21540 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
21541 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21542 * config/vax/linux.h (ASM_SPEC): Likewise.
21543 * doc/install.texi: Document --enable-default-pie.
21544 * doc/invoke.texi: Document -no-pie.
21545 * config.in: Regenerated.
21546 * configure: Likewise.
21547
21548 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21549
21550 PR rtl-optimization/66168
21551 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
21552 can_move_invariant_reg.
21553
21554 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
21555
21556 PR target/66148
21557 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
21558 REG_EQUAL note when doing insert.
21559
21560 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
21561 instead of "%d" for 'o' operand.
21562
21563 2015-05-27 Nathan Sidwell <nathan@acm.org>
21564
21565 PR c++/66270
21566 * tree.c (build_pointer_type_for_mode): Canonical type does not
21567 inherit can_alias_all.
21568 (build_reference_type_for_mode): Likewise.
21569
21570 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
21571
21572 * expr.h (array_at_struct_end_p): Move to...
21573 (array_ref_element_size): Likewise.
21574 (component_ref_field_offset): Likewise.
21575 * tree.h (array_ref_element_size): ...here.
21576 (array_at_struct_end_p): Likewise.
21577 (component_ref_field_offset): Likewise.
21578 * expr.c (array_ref_element_size): Move to...
21579 (array_ref_low_bound): Likewise.
21580 (array_at_struct_end_p): Likewise.
21581 (array_ref_up_bound): Likewise.
21582 (component_ref_field_offset): Likewise.
21583 * tree.c (array_ref_element_size): ...here.
21584 (array_ref_low_bound): Likewise.
21585 (array_ref_up_bound): Likewise.
21586 (array_at_struct_end_p): Likewise.
21587 (component_ref_field_offset): Likewise.
21588
21589 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
21590 Szabolcs Nagy <szabolcs.nagy@arm.com>
21591
21592 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
21593
21594 2015-05-27 Jason Merrill <jason@redhat.com>
21595
21596 PR bootstrap/66304
21597 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
21598 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
21599 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
21600
21601 2015-05-22 Aditya Kumar <hiraditya@msn.com>
21602
21603 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
21604 is true.
21605
21606 * statistics.c (statistics_fini_pass): Print pass name.
21607
21608 2015-05-27 Richard Biener <rguenther@suse.de>
21609
21610 PR tree-optimization/66272
21611 Revert parts of
21612 2014-08-15 Richard Biener <rguenther@suse.de>
21613
21614 PR tree-optimization/62031
21615 * tree-data-ref.c (dr_analyze_indices): Do not set
21616 DR_UNCONSTRAINED_BASE.
21617 (dr_may_alias_p): All indirect accesses have to go the
21618 formerly DR_UNCONSTRAINED_BASE path.
21619 * tree-data-ref.h (struct indices): Remove
21620 unconstrained_base member.
21621 (DR_UNCONSTRAINED_BASE): Remove.
21622
21623 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
21624
21625 * dwarf2out.c: Remove block_map.
21626 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
21627 (gen_lexical_block_die): Same.
21628 (dwarf2out_function_decl): Remove block_map use.
21629 (dwarf2out_c_finalize): Same.
21630 * tree-core.h (struct tree_block): Add die field.
21631 * tree.h (BLOCK_DIE): New.
21632
21633 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21634
21635 PR target/65358
21636 * expr.c (memory_load_overlap): New function.
21637 (emit_push_insn): When pushing partial args to the stack would
21638 clobber the register part load the overlapping part into a pseudo
21639 and put it into the hard reg after pushing. Change return type
21640 to bool. Add bool argument.
21641 * expr.h (emit_push_insn): Change return type to bool.
21642 Add bool argument.
21643 * calls.c (expand_call): Cancel sibcall optimization when encountering
21644 partial argument on targets with ARGS_GROW_DOWNWARD and
21645 !STACK_GROWS_DOWNWARD.
21646 (emit_library_call_value_1): Update callsite of emit_push_insn.
21647 (store_one_arg): Likewise.
21648
21649 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
21650
21651 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
21652
21653 2015-05-27 Martin Liska <mliska@suse.cz>
21654
21655 * Makefile.in: Add additional dependencies related to memory report
21656 enhancement.
21657 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
21658 * bitmap.c (struct bitmap_descriptor_d): Remove.
21659 (struct loc): Likewise.
21660 (struct bitmap_desc_hasher): Likewise.
21661 (bitmap_desc_hasher::hash): Likewise.
21662 (bitmap_desc_hasher::equal): Likewise.
21663 (get_bitmap_descriptor): Likewise.
21664 (bitmap_register): User new memory descriptor API.
21665 (register_overhead): Likewise.
21666 (bitmap_find_bit): Register nsearches and search_iter statistics.
21667 (struct bitmap_output_info): Remove.
21668 (print_statistics): Likewise.
21669 (dump_bitmap_statistics): Use new memory descriptor.
21670 * bitmap.h (struct bitmap_usage): New class.
21671 * genmatch.c: Extend header file inclusion.
21672 * genpreds.c: Likewise.
21673 * ggc-common.c (struct ggc_usage): New class.
21674 (struct ggc_loc_desc_hasher): Remove.
21675 (ggc_loc_desc_hasher::hash): Likewise.
21676 (ggc_loc_desc_hasher::equal): Likewise.
21677 (struct ggc_ptr_hash_entry): Likewise.
21678 (struct ptr_hash_hasher): Likewise.
21679 (ptr_hash_hasher::hash): Likewise.
21680 (ptr_hash_hasher::equal): Likewise.
21681 (make_loc_descriptor): Likewise.
21682 (ggc_prune_ptr): Likewise.
21683 (dump_ggc_loc_statistics): Use new memory descriptor.
21684 (ggc_record_overhead): Likewise.
21685 (ggc_free_overhead): Likewise.
21686 (final_cmp_statistic): Remove.
21687 (cmp_statistic): Likewise.
21688 (ggc_add_statistics): Liekwise.
21689 (ggc_prune_overhead_list): Likewise.
21690 * hash-map-traits.h: New file.
21691 * hash-map.h (struct default_hashmap_traits): Move the traits to a
21692 separate header file.
21693 * hash-set.h: Pass memory statistics info to ctor.
21694 * hash-table.c (void dump_hash_table_loc_statistics): New function.
21695 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
21696 (hash_table::~hash_table): Register memory release operation.
21697 (hash_table::alloc_entries): Handle memory allocation operation.
21698 (hash_table::expand): Likewise.
21699 * inchash.c (iterative_hash_hashval_t): Move implementation to header
21700 file.
21701 (iterative_hash_host_wide_int): Likewise.
21702 * inchash.h (class hash): Likewise.
21703 * mem-stats-traits.h: New file.
21704 * mem-stats.h: New file.
21705 (mem_location): Add new class.
21706 (mem_usage): Likewise.
21707 (mem_alloc_description): Likewise.
21708 * sese.c: Add new header file inclusision.
21709 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
21710 and hash_set.
21711 * tree-sra.c: Add new header file inclusision.
21712 * vec.c (struct vec_descriptor): Remove.
21713 (hash_descriptor): Likewise.
21714 (struct vec_usage): Likewise.
21715 (struct ptr_hash_entry): Likewise.
21716 (hash_ptr): Likewise.
21717 (eq_ptr): Likewise.
21718 (vec_prefix::register_overhead): Use new memory descriptor API.
21719 (vec_prefix::release_overhead): Likewise.
21720 (add_statistics): Remove.
21721 (dump_vec_loc_statistics): Use new memory descriptor API.
21722 * vec.h (struct vec_prefix): Likewise.
21723 (va_heap::reserve): Likewise.
21724 (va_heap::release): Likewise.
21725 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
21726
21727 2015-05-27 Richard Biener <rguenther@suse.de>
21728
21729 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
21730 earlier and remove ??? comment.
21731 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
21732 and got called from loop analysis bail out. Always pass the SLP
21733 node to the vectorizable_* functions.
21734 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
21735 the premature SLP check here.
21736 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
21737 detected SLP stmts.
21738 (vect_detect_hybrid_slp_1): Likewise.
21739
21740 2015-05-26 Jeff Law <law@redhat.com>
21741
21742 * combine.c (find_split_point): Verify that the shift count is a
21743 constant when choosing (plus (ashift ...)) as a split point.
21744
21745 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
21746 No functional changes.
21747
21748 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
21749
21750 * ipa-polymorphic-call.c
21751 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
21752 case when call target is already known.
21753
21754 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
21755
21756 PR target/65979
21757 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
21758 take into account the case that operands[1] and operands[2]
21759 are the same register.
21760
21761 2015-05-26 Michael Matz <matz@suse.de>
21762
21763 PR middle-end/66251
21764
21765 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
21766 stores.
21767 (vect_create_vectorized_demotion_stmts): Always set
21768 STMT_VINFO_VEC_STMT, also with SLP.
21769 (vectorizable_store): Handle strided group stores.
21770
21771 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21772
21773 PR target/66049
21774 * config/aarch64/aarch64.md
21775 (*adds_shift_imm_<mode>): New pattern.
21776 (*subs_shift_imm_<mode>): Likewise.
21777 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21778 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
21779 (*add_uxt<mode>_shift2): Likewise.
21780 (*add_uxtsi_shift2_uxtw): Likewise.
21781 (*sub_uxt<mode>_shift2): Likewise.
21782 (*sub_uxtsi_shift2_uxtw): Likewise.
21783
21784 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
21785
21786 * config/rs6000/constraints.md (Y, U): Use match_test.
21787
21788 2015-05-26 Christian Bruel <christian.bruel@st.com>
21789
21790 PR target/52144
21791 * config/arm/arm.c (arm_option_check_internal)
21792 (arm_option_params_internal): Check opts->target_flags to set macros.
21793 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21794 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
21795 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21796 (builtin_define): Replaced with def_or_undef_macro.
21797 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
21798 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
21799 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
21800 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
21801 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
21802 (TARGET_ARM_FEATURE_LDREX_P)
21803 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
21804 * config/arm/arm-c.c (def_or_undef_macro): New function.
21805 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
21806
21807 2015-05-26 Christian Bruel <christian.bruel@st.com>
21808
21809 * c-common.h (builtin_define_with_int_value)
21810 (builtin_define_type_sizeof): Declare.
21811 * c-cppbuiltin.c (builtin_define_with_int_value)
21812 (builtin_define_type_sizeof): Externalize.
21813 (builtin_define_std): Cleanup declaration.
21814 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
21815 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
21816 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
21817 (builtin_define, builtin_assert): New macros.
21818
21819 2015-05-26 Richard Biener <rguenther@suse.de>
21820
21821 PR tree-optimization/66142
21822 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
21823 MEM_REFs for the same base address.
21824
21825 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21826
21827 PR ipa/66181
21828 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
21829
21830 2015-05-26 Jason Merrill <jason@redhat.com>
21831
21832 * configure.ac: Set CXXFLAGS for ISL test.
21833 * configure: Regenerate.
21834
21835 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
21836 strstr and basename.
21837 * configure: Regenerate.
21838
21839 2015-05-26 Richard Biener <rguenther@suse.de>
21840
21841 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
21842 X % C -> X & (C - 1) for C being a power-of two to ...
21843 * match.pd: ... patterns.
21844
21845 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
21846
21847 * match.pd (swapped_tcc_comparison): New operator list.
21848 (-A CMP -B): New simplification.
21849 * fold-const.c (fold_comparison): Remove corresponding code.
21850
21851 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21852
21853 * caller-save.c (init_caller_save): Base temporary register numbers
21854 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
21855 * cfgloopanal.c (init_set_costs): Likewise.
21856 * dojump.c (prefer_and_bit_test): Likewise.
21857 * expr.c (init_expr_target): Likewise.
21858 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21859 * lower-subreg.c (init_lower_subreg): Likewise.
21860 * postreload.c (reload_cse_regs_1): Likewise.
21861
21862 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
21863
21864 * gensupport.h (compute_test_codes): Declare.
21865 * gensupport.c (compute_predicate_codes): Rename to...
21866 (compute_test_codes): ...this. Generalize error message.
21867 (process_define_predicate): Update accordingly.
21868 * genpreds.c (compute_maybe_allows): Delete.
21869 (add_constraint): Use compute_test_codes to determine whether
21870 something can accept a SUBREG, REG or MEM.
21871
21872 2015-05-26 Torvald Riegel <triegel@redhat.com>
21873
21874 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
21875 'memory model' to align with C++11; fix description of memory orders;
21876 fix a few typos.
21877
21878 2015-05-26 Richard Biener <rguenther@suse.de>
21879
21880 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
21881 (vect_analyze_loop_operations): ... here. Remove slp parameter,
21882 detect whether we apply SLP. Remove call to
21883 vect_update_slp_costs_according_to_vf.
21884 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
21885 vect_update_slp_costs_according_to_vf from here. Dispatch
21886 to vect_slp_analyze_operations to analyze SLP stmts.
21887 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
21888 unused bb_vec_info parameter, adjust assert.
21889 (vect_slp_analyze_operations): Pass in the slp instance tree
21890 instead of bb_vec_info.
21891 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
21892 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
21893
21894 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21895
21896 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
21897 Q_REGS. Expand comment.
21898 (REG_CLASS_NAMES): Ditto.
21899 (REG_CLASS_CONTENTS): Ditto.
21900
21901 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
21902
21903 PR target/66274
21904 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
21905 when LEGACY_INT_REGNO_P is processed.
21906
21907 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
21908
21909 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
21910
21911 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21912
21913 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
21914 register if not marked dead/unused, before return.
21915
21916 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21917
21918 PR lto/66180
21919 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
21920 is set; check for assembler name at LTO time.
21921 (type_in_anonymous_namespace): Remove hacks, check that all
21922 anonymous types are called "<anon>"
21923 (odr_type_p): Simplify; add check for "<anon>"
21924 (odr_subtypes_equivalent): Add odr_type_p check.
21925 * tree.c (need_assembler_name_p): Even anonymous namespace needs
21926 assembler name.
21927
21928 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21929
21930 * ipa-utils.h (method_class_type): Remove.
21931 * cgraphunit.c (walk_polymorphic_call_targets): Use
21932 TYPE_METHOD_BASETYPE.
21933 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
21934 on main variants only.
21935 (method_class_type): Remove.
21936 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
21937 (build_type_inheritance_graph): Likewise.
21938 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21939 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
21940 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
21941
21942 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
21943
21944 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
21945 is_typedef_decl, typedef_variant_p): Constify.
21946 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
21947 is_typedef_decl, typedef_variant_p): Constify.
21948
21949 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21950
21951 * defaults.h (gen_tablejump): New function.
21952 (HAVE_tablejump): Add default value.
21953 * expr.c: Adjust.
21954 * stmt.c: Likewise.
21955
21956 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21957
21958 * defaults.h (gen_store_multiple): New function.
21959 (HAVE_store_multiple): Add default value.
21960 * expr.c (move_block_from_reg): Adjust.
21961
21962 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21963
21964 * defaults.h (gen_load_multiple): New function.
21965 (HAVE_load_multiple): Add default value.
21966 * expr.c (move_block_to_reg): Adjust.
21967
21968 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21969
21970 * defaults.h (gen_mem_signal_fence): New function.
21971 (HAVE_mem_signal_fence): Add default value.
21972 * optabs.c: Adjust.
21973
21974 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21975
21976 * defaults.h (gen_memory_barrier): New function.
21977 (HAVE_memory_barrier): Add default value.
21978 * optabs.c: Adjust.
21979
21980 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21981
21982 * defaults.h (gen_mem_thread_fence): New function.
21983 (HAVE_mem_thread_fence): Add default definition.
21984 * optabs.c: Adjust.
21985
21986 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21987
21988 * combine.c (find_split_point): Check the value of HAVE_lo_sum
21989 instead of if it is defined.
21990 (combine_simplify_rtx): Likewise.
21991 * lra-constraints.c (process_address_1): Likewise.
21992 * config/darwin.c: Adjust.
21993 * genconfig.c (main): Always define HAVE_lo_sum.
21994
21995 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21996
21997 * genmatch.c (parser::parse_operation): Reject expanding
21998 operator-list inside 'for'.
21999
22000 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22001
22002 * genmatch.c (parser::parse_for): Reject iterator if used as
22003 operator-list.
22004
22005 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22006
22007 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22008 after end of id-list.
22009
22010 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22011
22012 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22013 we do not try to compute canonical type for type that does not need
22014 alias set.
22015 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22016 FUNCITON_TYPE.
22017 * tree.h (type_with_alias_set_p): New.
22018
22019 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22020
22021 * tree.c (gimple_canonical_types_compatible_p): Do not compare
22022 function attributes.
22023 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22024
22025 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
22026
22027 * Makefile.in (check_gcc_parallelize): Delete.
22028 (lang_checks_parallelized): Update comment.
22029
22030 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
22031
22032 PR rtl-optimization/66237
22033 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22034 location of an "as_a" cast.
22035
22036 2015-05-22 Jeff Law <law@redhat.com>
22037
22038 * config/pa/pa.md (non-canonical shift-add insns): Remove.
22039 (peepholes with non-canonical RTL sources): Remove.
22040 (peepholes for indexed stores of FP regs in integer modes): Match and
22041 generate canonical RTL.
22042
22043 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22044
22045 PR tree-optimization/63387
22046 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22047 ((x ord x) & (y ord y) -> (x ord y),
22048 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22049 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22050 vectors like scalars.
22051
22052 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22053
22054 * convert.c (convert_to_integer, convert_to_vector): Include the
22055 types in the error message.
22056
22057 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22058
22059 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22060 simplifications.
22061
22062 2015-05-22 Jeff Law <law@redhat.com>
22063
22064 * config/pa/pa.md (integer_indexed_store splitters): Use
22065 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
22066 insns -- adjusting the constant 2nd operand accordingly.
22067
22068 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22069 (plus (ashift X log2) Y) if it is a split point.
22070
22071 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22072 out of hppa_legitimize_address to handle both forms of a multiply
22073 by 2, 4 or 8.
22074 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22075 Always generate the ASHIFT variant as the result is not directly
22076 used in a MEM. Update comments and refactor slightly to improve
22077 readability.
22078
22079 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22080
22081 PR target/65491
22082 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22083 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
22084 (aarch64_composite_type_p): Return false if given type and mode are
22085 for a short vector.
22086
22087 2015-05-22 Richard Biener <rguenther@suse.de>
22088
22089 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22090 member.
22091 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22092 patterns when determining whether SLP is pure.
22093 (vect_is_slp_reduction): Remove check for pattern stmts.
22094 (vect_is_simple_reduction_1): Remove dead code.
22095 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22096 (vect_get_and_check_slp_defs): Pass in the stmt number.
22097 Allow the first def in a reduction to be not a pattern stmt when
22098 the rest of the stmts def are patterns.
22099 (vect_build_slp_tree_1): Allow tcc_expression codes like
22100 SAD_EXPR and DOT_PROD_EXPR.
22101 (vect_build_slp_tree): Adjust.
22102 (vect_analyze_slp): Refactor and move BB vect error message ...
22103 (vect_slp_analyze_bb_1): ... here.
22104
22105 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
22106
22107 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22108 for CSWTCH temporary.
22109
22110 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22111
22112 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22113 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
22114 unknown unspecs.
22115
22116 2015-05-22 Richard Biener <rguenther@suse.de>
22117
22118 PR tree-optimization/66251
22119 * tree-vect-stmts.c (vectorizable_conversion): Properly
22120 set STMT_VINFO_VEC_STMT even for the SLP case.
22121
22122 2015-05-22 Marek Polacek <polacek@redhat.com>
22123
22124 * doc/extend.texi: Use @pxref instead of @xref.
22125
22126 2015-05-22 hiraditya <hiraditya@msn.com>
22127
22128 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22129 redundant if.
22130
22131 2015-05-22 Richard Biener <rguenther@suse.de>
22132
22133 PR tree-optimization/65701
22134 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22135 Move peeling cost models into one place. Peel for alignment
22136 for single loads only if an aligned load is cheaper than
22137 an unaligned load.
22138
22139 2015-05-22 Marek Polacek <polacek@redhat.com>
22140
22141 PR c/47043
22142 * doc/extend.texi (Enumerator Attributes): New section.
22143 Document syntax of enumerator attributes.
22144
22145 2015-05-22 Richard Biener <rguenther@suse.de>
22146
22147 * tree-vect-loop.c (get_reduction_op): New function.
22148 (vect_model_reduction_cost): Use it, add reduc_index parameter.
22149 Make ready for BB reductions.
22150 (vect_create_epilog_for_reduction): Use get_reduction_op.
22151 (vectorizable_reduction): Init reduc_index to a valid value.
22152 Adjust vect_model_reduction_cost call.
22153 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22154 operand for reduction defaults. Add SAD_EXPR support.
22155 Assert we have a neutral op for SLP reductions.
22156 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22157 walking pattern stmt ops only recurse to SSA names.
22158
22159 2015-05-22 Richard Biener <rguenther@suse.de>
22160
22161 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22162 assert with guard, remove check on detected reduction.
22163 (vect_recog_sad_pattern): Likewise.
22164 (vect_recog_widen_sum_pattern): Likewise.
22165
22166 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22167
22168 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22169 __always_inline__ attribute.
22170 (vaesdq_u8): Likewise.
22171 (vaesmcq_u8): Likewise.
22172 (vaesimcq_u8): Likewise.
22173 (vsha1cq_u32): Likewise.
22174 (vsha1mq_u32): Likewise.
22175 (vsha1pq_u32): Likewise.
22176 (vsha1h_u32): Likewise.
22177 (vsha1su0q_u32): Likewise.
22178 (vsha1su1q_u32): Likewise.
22179 (vsha256hq_u32): Likewise.
22180 (vsha256h2q_u32): Likewise.
22181 (vsha256su0q_u32): Likewise.
22182 (vsha256su1q_u32): Likewise.
22183 (vmull_p64): Likewise.
22184 (vmull_high_p64): Likewise.
22185
22186 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22187
22188 * final.c (final_scan_insn): Don't check HAVE_peephole with the
22189 preprocessor.
22190 * output.h: Likewise.
22191 * genconfig.c (main): Alwways define HAVE_peephole.
22192 * genpeep.c: Don't emit checks of HAVE_peephole.
22193
22194 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22195
22196 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22197 check HAVE_conditional_move with the preprocessor.
22198
22199 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22200
22201 * genconfig.c (main): Always define HAVE_conditional_move.
22202 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22203 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22204 is defined.
22205
22206 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22207
22208 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22209 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22210 and FRAME_POINTER_REGNUM with the preprocessor.
22211
22212 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22213
22214 * defaults.h: Add default for STACK_PUSH_CODE.
22215 * expr.c: Don't redefine STACK_PUSH_CODE.
22216 * recog.c: Likewise.
22217
22218 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22219
22220 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22221 sched-deps.c: Use if instead of preprocessor checks with
22222 STACK_GROWS_DOWNWARD.
22223
22224 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22225
22226 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22227 is defined.
22228 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22229 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22230 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22231 * doc/tm.texi: Regenerate.
22232
22233 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
22234
22235 PR target/66232
22236 * config/i386/constraints.md (Bg): New constraint for GOT memory
22237 operand.
22238 * config/i386/i386.md (*call_got_x32): New pattern.
22239 (*call_value_got_x32): Likewise.
22240 * config/i386/predicates.md (GOT_memory_operand): New predicate.
22241
22242 2015-05-21 Jakub Jelinek <jakub@redhat.com>
22243
22244 PR tree-optimization/66233
22245 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22246 Simplify.
22247
22248 2015-05-21 Jeff Law <law@redhat.com>
22249
22250 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
22251 than MULT for shadd sequences.
22252
22253 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
22254
22255 * alias.c (alias_stats): New static var.
22256 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
22257 (dump_alias_stats_in_alias_c): New function.
22258 * alias.h (dump_alias_stats_in_alias_c): Declare.
22259 * tree-ssa-alias.c (dump_alias_stats): Call it.
22260
22261 2015-05-08 Michael Matz <matz@suse.de>
22262
22263 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
22264 to strided_p.
22265 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
22266 (STMT_VINFO_STRIDED_P): ... this.
22267 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
22268 (vect_verify_datarefs_alignment): Likewise.
22269 (vect_enhance_data_refs_alignment): Likewise.
22270 (vect_analyze_data_ref_access): Likewise.
22271 (vect_analyze_data_refs): Accept strided stores.
22272 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
22273 (vect_model_load_cost): Adjust for macro rename.
22274 (vectorizable_mask_load_store): Likewise.
22275 (vectorizable_load): Likewise.
22276 (vectorizable_store): Open code strided stores.
22277
22278 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22279
22280 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
22281 Document sqrt_insn.
22282
22283 2015-05-21 Richard Biener <rguenther@suse.de>
22284
22285 PR c++/66211
22286 * match.pd: Guard pattern optimzing (int)(float)int
22287 conversions to apply only on GIMPLE.
22288
22289 2015-05-21 Jeff Law <law@redhat.com>
22290
22291 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
22292 multiply-accumulate/shift-add insn generation.
22293
22294 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
22295
22296 PR target/54236
22297 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
22298 operands[1] are the same.
22299
22300 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
22301
22302 PR middle-end/66221
22303 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
22304 build_distinct_type_copy to copy bounds.
22305
22306 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
22307
22308 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
22309 Change to unsigned int.
22310
22311 2015-05-20 Jeff Law <law@redhat.com>
22312
22313 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
22314 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
22315 (pa_shadd_constant_p): Allow constants for shadd insns rather
22316 than valid scaling constants for memory addresses.
22317 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
22318 * config/pa/predicates.md (mem_shadd_operand): New predicate.
22319 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
22320 (shift-add insns using ASHIFT): New patterns.
22321
22322 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
22323
22324 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
22325 feasible.
22326 (fix_up_fall_thru_edges): Likewise.
22327 (fix_crossing_conditional_branches): Likewise. Promote jump targets
22328 from to rtx_insn to rtx_code_label where feasible.
22329 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
22330 gen_move_insn (returned type changed to rtx_insn).
22331 * builtins.c (expand_errno_check): Fix arguments of
22332 do_compare_rtx_and_jump (now expects rtx_code_label).
22333 (expand_builtin_acc_on_device): Likewise.
22334 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
22335 invert_jump (now exprects rtx_jump_insn).
22336 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
22337 (construct_init_block): Use rtx_code_label.
22338 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
22339 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
22340 calling redirect_jump.
22341 (patch_jump_insn): Likewise.
22342 (redirect_branch_edge): Likewise.
22343 (force_nonfallthru_and_redirect): Likewise.
22344 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
22345 when suitable.
22346 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
22347 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
22348 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
22349 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
22350 to store the value retured by gen_label_rtx.
22351 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
22352 rtx_jump_insn.
22353 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
22354 (split_branches): Fix calls of redirect_jump.
22355 * dojump.c (jumpifnot): Promote argument type from rtx to
22356 rtx_code_label.
22357 (jumpifnot_1): Likewise.
22358 (jumpif): Likewise.
22359 (jumpif_1): Likewise.
22360 (do_jump_1): Likewise.
22361 (do_jump): Likewise. Use rtx_code_label when feasible.
22362 (do_jump_by_parts_greater_rtx): Likewise.
22363 (do_jump_by_parts_zero_rtx): Likewise.
22364 (do_jump_by_parts_equality_rtx): Likewise.
22365 (do_compare_rtx_and_jump): Likewise.
22366 * dojump.h: Update function prototypes.
22367 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
22368 returns rtx_insn).
22369 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
22370 rtx_jump_insn.
22371 (emit_label_before): Likewise.
22372 (emit_jump_insn_after_noloc): Likewise.
22373 (emit_jump_insn_after_setloc): Likewise.
22374 (emit_jump_insn_after): Likewise
22375 (emit_jump_insn_before_setloc): Likewise.
22376 (emit_jump_insn_before): Likewise.
22377 (emit_label_before): Promote return type to rtx_code_label.
22378 (emit_label): Likewise.
22379 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
22380 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
22381 gen_move_insn.
22382 (emit_stack_restore): Likewise.
22383 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
22384 (do_cmp_and_jump): Likewise.
22385 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
22386 from rtx to rtx_code_label.
22387 (gen_move_insn_uncast): New function.
22388 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
22389 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
22390 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
22391 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
22392 invert_jump_1 and redirect_jump_1.
22393 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
22394 do_compare_rtx_and_jump.
22395 (expand_addsub_overflow): Likewise.
22396 (expand_neg_overflow): Likewise.
22397 (expand_mul_overflow): Likewise.
22398 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
22399 return value of gen_move_insn.
22400 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
22401 * loop-doloop.c (add_test): Use rtx_code_label.
22402 (doloop_modify): Likewise.
22403 (doloop_optimize): Likewise.
22404 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
22405 * lra-constraints.c (emit_spill_move): Remove cast of value returned
22406 by gen_move_insn.
22407 (inherit_reload_reg): Add cast when calling dump_insn_slim.
22408 (split_reg): Likewise.
22409 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
22410 gen_move_insn.
22411 * optabs.c (expand_binop_directly): Remove casts of values returned by
22412 maybe_gen_insn.
22413 (expand_unop_direct): Likewise.
22414 (expand_abs): Likewise.
22415 (maybe_emit_unop_insn): Likewise.
22416 (maybe_gen_insn): Promote return type to rtx_insn.
22417 * optabs.h: Update prototype of maybe_gen_insn.
22418 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
22419 redundant cast.
22420 * recog.c (struct peep2_insn_data): Promote type of insn field to
22421 rtx_insn.
22422 (peep2_reinit_state): Use NULL instead of NULL_RTX.
22423 (peep2_attempt): Remove casts of insn in peep2_insn_data.
22424 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
22425 * recog.h (struct insn_gen_fn): Promote return types of function
22426 pointers and operator ().from rtx to rtx_insn.
22427 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
22428 (fill_eager_delay_slots): Likewise.
22429 (relax_delay_slots): Likewise.
22430 (make_return_insns): Likewise.
22431 (dbr_schedule): Likewise.
22432 (optimize_skips): Likewise.
22433 (reorg_redirect_jump): Likewise.
22434 (fill_slots_from_thread): Likewise.
22435 * reorg.h: Update prototypes.
22436 * resource.c (find_dead_or_set_registers): Use dyn_cast to
22437 rtx_jump_insn instead of check. Use it's jump_target method.
22438 * rtl.h (rtx_jump_insn::jump_label): Define new method.
22439 (rtx_jump_insn::jump_target): Define new method.
22440 (rtx_jump_insn::set_jump_target): Define new method.
22441 * rtlanal.c (tablejump_p): Promote type of one local variable.
22442 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
22443 (sched_analyze_insn): Likewise.
22444 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
22445 (print_insn): Likewise.
22446 * stmt.c (label_rtx): Promote return type to rtx_insn.
22447 (force_label_rtx): Likewise.
22448 (jump_target_rtx): Define new function.
22449 (expand_label): Use it, get rid of one cast.
22450 (expand_naked_return): Promote rtx to rtx_code_label.
22451 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
22452 (expand_case): Use rtx_code_label instread of rtx where feasible.
22453 (expand_sjlj_dispatch_table): Likewise.
22454 (emit_case_nodes): Likewise.
22455 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
22456 * store-motion.c (insert_store): Make use of new return type of
22457 gen_move_insn and remove a cast.
22458 (replace_store_insn): Likewise.
22459
22460 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
22461
22462 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
22463 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
22464
22465 2015-05-20 Jeff Law <law@redhat.com>
22466
22467 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
22468 dispose of the jump thread path when the jump threading
22469 opportunity is cancelled.
22470
22471 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
22472
22473 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
22474 when printing the caret character.
22475
22476 2015-05-20 Marek Polacek <polacek@redhat.com>
22477
22478 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
22479
22480 2015-05-20 Marek Polacek <polacek@redhat.com>
22481
22482 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
22483 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
22484 * gimple-fold.c (canonicalize_bool): Likewise.
22485 (same_bool_result_p): Likewise.
22486 * tree-if-conv.c (parse_predicate): Likewise.
22487
22488 2015-05-20 Marek Polacek <polacek@redhat.com>
22489
22490 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
22491 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
22492
22493 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22494
22495 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
22496 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
22497 values.
22498
22499 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
22500
22501 * config/mips/mips.h (micromips_globals): Declare.
22502
22503 2015-05-20 David Malcolm <dmalcolm@redhat.com>
22504
22505 * timevar.def (TV_INITIALIZE_RTL): New.
22506 * toplev.c (initialize_rtl): Use an auto_timevar to account this
22507 function's time to TV_INITIALIZE_RTL.
22508
22509 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
22510
22511 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
22512 gimple_build_nop calls.
22513 (chkp_find_bounds_for_elem): Likewise.
22514 (chkp_get_zero_bounds): Likewise.
22515 (chkp_get_none_bounds): Likewise.
22516 (chkp_get_bounds_by_definition): Likewise.
22517 (chkp_generate_extern_var_bounds): Likewise.
22518 (chkp_get_bounds_for_decl_addr): Likewise.
22519 (chkp_get_bounds_for_string_cst): Likewise.
22520
22521 2015-05-20 Bin Cheng <bin.cheng@arm.com>
22522
22523 PR tree-optimization/65447
22524 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
22525 (dump_use, dump_uses): Support to dump sub use.
22526 (record_use): New parameters to support sub use. Remove call to
22527 dump_use.
22528 (record_sub_use, record_group_use): New functions.
22529 (compute_max_addr_offset, split_all_small_groups): New functions.
22530 (group_address_uses, rewrite_use_address): New functions.
22531 (strip_offset): New declaration.
22532 (find_interesting_uses_address): Call record_group_use.
22533 (add_candidate): New assertion.
22534 (infinite_cost_p): Move definition forward.
22535 (add_costs): Check INFTY cost and return immediately.
22536 (get_computation_cost_at): Clear setup cost and dependent bitmap
22537 for sub uses.
22538 (determine_use_iv_cost_address): Compute cost for sub uses.
22539 (rewrite_use_address_1): Rename from old rewrite_use_address.
22540 (free_loop_data): Free sub uses.
22541 (tree_ssa_iv_optimize_loop): Call group_address_uses.
22542
22543 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
22544 Jim Wilson <jim.wilson@linaro.org>
22545
22546 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
22547 new fields loadv and storev.
22548 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
22549 Initialize loadv and storev.
22550 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
22551 (cortexa53_extra_costs): Likewise.
22552 (cortexa57_extra_costs): Likewise.
22553 (xgene1_extra_costs): Likewise.
22554 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
22555 rtx_costs.
22556
22557 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
22558
22559 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
22560 storev.
22561 (cortexa8_extra_costs): Likewise.
22562 (cortexa5_extra_costs): Likewise.
22563 (cortexa7_extra_costs): Likewise.
22564 (cortexa12_extra_costs): Likewise.
22565 (cortexa15_extra_costs): Likewise.
22566 (v7m_extra_costs): Likewise.
22567
22568 2015-05-20 Jeff Law <law@redhat.com>
22569
22570 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
22571 instead of open-coded version. Also delete the jump thread created
22572 within this function.
22573
22574 2015-05-20 Alan Modra <amodra@gmail.com>
22575
22576 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
22577 stack adjusting insn. Formatting.
22578 (rs6000_emit_prologue): Track stack adjusting insn, and use of
22579 r12. If possible, emit first -fsplit-stack arg pointer insn
22580 before stack adjust. Don't use r12 to save cr if split-stack.
22581
22582 2015-05-20 Alan Modra <amodra@gmail.com>
22583
22584 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
22585 Define.
22586 (rs6000_supports_split_stack): New function.
22587 * gcc/config/rs6000/rs6000.c (machine_function): Add
22588 split_stack_arg_pointer.
22589 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
22590 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
22591 rather than virtual_incoming_args_rtx.
22592 (rs6000_va_start): Likewise.
22593 (split_stack_arg_pointer_used_p): New function.
22594 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
22595 (morestack_ref): New var.
22596 (gen_add3_const, rs6000_expand_split_stack_prologue,
22597 rs6000_internal_arg_pointer, rs6000_live_on_entry,
22598 rs6000_split_stack_space_check): New functions.
22599 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
22600 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
22601 (UNSPECV_SPLIT_STACK_RETURN): Define.
22602 (split_stack_prologue, load_split_stack_limit,
22603 load_split_stack_limit_di, load_split_stack_limit_si,
22604 split_stack_return, split_stack_space_check): New expands and insns.
22605 * gcc/config/rs6000/rs6000-protos.h
22606 (rs6000_expand_split_stack_prologue): Declare.
22607 (rs6000_split_stack_space_check): Declare.
22608
22609 2015-05-20 Alan Modra <amodra@gmail.com>
22610
22611 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
22612 (direct_return): Test vrsave_size rather than vrsave_mask.
22613 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
22614 (rs6000_emit_epilogue): Likewise.
22615
22616 2015-05-20 Alan Modra <amodra@gmail.com>
22617
22618 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
22619 when not saving registers.
22620 (debug_stack_info): Adjust to omit printing unused offsets,
22621 as before.
22622 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
22623 expression.
22624
22625 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22626
22627 PR c++/65835
22628 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
22629 value_type to const char *.
22630
22631 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
22632
22633 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
22634 to build a biarch toolchain again.
22635
22636 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22637
22638 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
22639 or implicit declarations.
22640 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
22641 into it.
22642 (get_odr_type): Check type has linkage before adding bases.
22643 (register_odr_type): Check that type has linkage before adding it.
22644 (type_known_to_have_no_deriavations_p): Rename to ..
22645 (type_known_to_have_no_derivations_p): This one.
22646 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
22647 (type_known_to_have_no_derivations_p): This one.
22648 * ipa-polymorphic-call.c
22649 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
22650 type has linkage.
22651
22652 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22653
22654 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
22655 (layout_type): Use RECORD_OR_UNION_TYPE_P.
22656
22657 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22658
22659 * config/s390/s390.c (s390_vector_bool_type_p): New function.
22660 (s390_invalid_binary_op): New function.
22661 (TARGET_INVALID_BINARY_OP): Define macro.
22662
22663 2015-05-19 David Sherwood <david.sherwood@arm.com>
22664
22665 * loop-invariant.c (create_new_invariant): Don't calculate address cost
22666 if mode is not a scalar integer.
22667 (get_inv_cost): Increase computational cost for unused invariants.
22668
22669 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22670
22671 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
22672 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
22673 * config/s390/s390-builtin-types.def: New file.
22674 * config/s390/s390-builtins.def: New file.
22675 * config/s390/s390-builtins.h: New file.
22676 * config/s390/s390-c.c: New file.
22677 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
22678 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
22679 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
22680 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
22681 prototypes.
22682 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
22683 Include.
22684 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
22685 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
22686 variable definitions.
22687 (s390_const_operand_ok): New function.
22688 (s390_expand_builtin): Rewrite.
22689 (s390_init_builtins): New function.
22690 (s390_handle_vectorbool_attribute): New function.
22691 (s390_attribute_table): Add s390_vector_bool attribute.
22692 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
22693 (s390_branch_condition_mask): Generate masks for new modes.
22694 (s390_expand_vec_compare_cc): New function.
22695 (s390_mangle_type): Add mangling for vector bool types.
22696 (enum s390_builtin): Remove.
22697 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
22698 efpc builtins.
22699 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
22700 s390_cpu_cpp_builtins.
22701 (REGISTER_TARGET_PRAGMAS): New macro.
22702 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
22703 (insn_cmp mode attribute): Add new CC modes.
22704 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
22705 (lcbb): New pattern definition.
22706 * config/s390/s390intrin.h: Include vecintrin.h.
22707 * config/s390/t-s390: New file.
22708 * config/s390/vecintrin.h: New file.
22709 * config/s390/vector.md: Include vx-builtins.md.
22710 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
22711 support.
22712
22713 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22714
22715 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
22716 CCVFHE.
22717 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
22718 (s390_select_ccmode): Likewise.
22719 (s390_canonicalize_comparison): Swap operands if necessary.
22720 (s390_expand_vec_compare_scalar): Expand DFmode compare using
22721 single element vector instructions.
22722 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
22723 (s390_branch_condition_mask): Generate CC masks for the new modes.
22724 * config/s390/s390.md (v0, vf, vd): New mode attributes.
22725 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
22726 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
22727 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
22728 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
22729 (*extend<DSF:mode><BFP:mode>2): New insn definition.
22730 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
22731 (extend<DSF:mode><BFP:mode>2): Turn into expander.
22732 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
22733 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
22734 (sqrt<mode>2): Add vector instruction.
22735
22736 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22737
22738 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
22739 constraints.
22740 * config/s390/predicates.md (const0_operand, constm1_operand)
22741 (constable_operand): Accept vector operands.
22742 * config/s390/s390-modes.def: Add supported vector modes.
22743 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
22744 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
22745 (s390_bytemask_vector_p, s390_expand_vec_strlen)
22746 (s390_expand_vec_compare, s390_expand_vcond)
22747 (s390_expand_vec_init): Add prototypes.
22748 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
22749 (s390_vector_mode_supported_p): New function.
22750 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
22751 (s390_contiguous_bitmask_vector_p): New function.
22752 (s390_bytemask_vector_p): New function.
22753 (s390_split_ok_p): Vector regs don't work either.
22754 (regclass_map): Add VEC_REGS.
22755 (s390_legitimate_constant_p): Handle vector constants.
22756 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
22757 (legitimate_reload_vector_constant_p): New function.
22758 (s390_preferred_reload_class): Handle CONST_VECTOR.
22759 (s390_reload_symref_address): Likewise.
22760 (s390_secondary_reload): Vector memory instructions only support
22761 short displacements. Rename reload*_nonoffmem* to reload*_la*.
22762 (s390_emit_ccraw_jump): New function.
22763 (s390_expand_vec_strlen): New function.
22764 (s390_expand_vec_compare): New function.
22765 (s390_expand_vcond): New function.
22766 (s390_expand_vec_init): New function.
22767 (s390_dwarf_frame_reg_mode): New function.
22768 (print_operand): Handle addresses with 'O' and 'R' constraints.
22769 (NR_C_MODES, constant_modes): Add vector modes.
22770 (s390_output_pool_entry): Handle vector constants.
22771 (s390_hard_regno_mode_ok): Handle vector registers.
22772 (s390_class_max_nregs): Likewise.
22773 (s390_cannot_change_mode_class): New function.
22774 (s390_invalid_arg_for_unprototyped_fn): New function.
22775 (s390_function_arg_vector): New function.
22776 (s390_function_arg_float): Remove size variable.
22777 (s390_pass_by_reference): Handle vector arguments.
22778 (s390_function_arg_advance): Likewise.
22779 (s390_function_arg): Likewise.
22780 (s390_return_in_memory): Vector values are returned in a VR if
22781 possible.
22782 (s390_function_and_libcall_value): Handle vector arguments.
22783 (s390_gimplify_va_arg): Likewise.
22784 (s390_call_saved_register_used): Consider the arguments named.
22785 (s390_conditional_register_usage): Disable v16-v31 for non-vec
22786 targets.
22787 (s390_preferred_simd_mode): New function.
22788 (s390_support_vector_misalignment): New function.
22789 (s390_vector_alignment): New function.
22790 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
22791 (TARGET_VECTOR_MODE_SUPPORTED_P)
22792 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
22793 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
22794 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
22795 (TARGET_VECTOR_ALIGNMENT): Define target macro.
22796 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
22797 (FIRST_PSEUDO_REGISTER): Increase value.
22798 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
22799 (VECTOR_REG_P): Define macros.
22800 (FIXED_REGISTERS, CALL_USED_REGISTERS)
22801 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
22802 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
22803 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
22804 Add vector registers.
22805 (CANNOT_CHANGE_MODE_CLASS): Call C function.
22806 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
22807 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
22808 memory.
22809 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
22810 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
22811 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
22812 (VR*_REGNUM): New constants.
22813 (ALL): New mode iterator.
22814 (INTALL): Remove mode iterator.
22815 Include vector.md.
22816 (movti): Implement TImode moves for VRs.
22817 Disable TImode splitter for VR targets.
22818 Implement splitting TImode GPR<->VR moves.
22819 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
22820 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
22821 reload<mode>_la_in, reload<mode>_la_out.
22822 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
22823 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
22824 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
22825 (mov<mode> SF SD): Prefer lder, lde for loading.
22826 Add lrl and strl instructions.
22827 Add vector instructions.
22828 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
22829 Call s390_expand_vec_strlen on z13.
22830 (*cc_to_int): Change predicate to nonimmediate_operand.
22831 (addti3): Rename to *addti3. New expander.
22832 (subti3): Rename to *subti3. New expander.
22833 * config/s390/vector.md: New file.
22834
22835 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22836
22837 * common/config/s390/s390-common.c (processor_flags_table): Add
22838 z13.
22839 * config.gcc: Add z13.
22840 * config/s390/s390-opts.h (enum processor_type): Add
22841 PROCESSOR_2964_Z13.
22842 * config/s390/s390.c (s390_adjust_priority): Check for
22843 PROCESSOR_2964_Z13.
22844 (s390_reorg): Likewise.
22845 (s390_sched_reorder): Likewise.
22846 (s390_sched_variable_issue): Likewise.
22847 (s390_loop_unroll_adjust): Likewise.
22848 (s390_option_override): Likewise. Default to -mvx when available.
22849 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
22850 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
22851 (TARGET_VX_ABI): Define macros.
22852 macros.
22853 (TARGET_DEFAULT): Add MASK_OPT_VX.
22854 * config/s390/s390.md ("cpu" attribute): Add z13.
22855 ("cpu_facility" attribute): Add vec.
22856 * config/s390/s390.opt (processor_type): Add z13.
22857 (mvx): New options.
22858 * doc/invoke.texi: Add z13 option for -march.
22859
22860 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22861
22862 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
22863 mode check to make sure that only scalar integer values are
22864 accepted.
22865
22866 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
22867
22868 * tree.c (verify_type_variant): Fix #undef.
22869 (gimple_canonical_types_compatible_p): Move here from lto.c
22870 (verify_type): Verify TYPE_CANONICAL compatibility.
22871 * tree.h (gimple_canonical_types_compatible_p): Declare.
22872
22873 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22874
22875 PR middle-end/66199
22876 * tree.h (OMP_TEAMS_COMBINED): Define.
22877 * gimplify.c (enum gimplify_omp_var_data): Add
22878 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
22879 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
22880 (omp_notice_variable): Accept both ORT_TEAMS
22881 and ORT_COMBINED_TEAMS. Don't recurse if
22882 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
22883 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
22884 GOVD_FIRSTPRIVATE.
22885 (omp_no_lastprivate): New function.
22886 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
22887 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
22888 notice_outer and set appropriate bits, otherwise make
22889 sure default(none) combined constructs won't complain.
22890 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
22891 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
22892 omp_no_lastprivate either remove the clause or turn it
22893 into OMP_CLAUSE_PRIVATE.
22894 (gimplify_omp_for): Fix up handling of implicit
22895 lastprivate or linear iterators.
22896 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
22897 ORT_COMBINED_TEAMS.
22898 * omp-low.c (lower_omp_for_lastprivate): For combined
22899 for simd use fd.loop.n2 from the for rather than simd.
22900
22901 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
22902
22903 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
22904 instead of gen_rtx_raw_REG.
22905 (cris_expand_epilogue): Likewise.
22906 * config/microblaze/microblaze.c (microblaze_classify_address):
22907 Likewise.
22908 * config/sparc/sparc.md: Likewise.
22909
22910 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
22911
22912 * config/alpha/alpha.c (alpha_legitimize_reload_address)
22913 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
22914 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
22915 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
22916 Use CASE_CONST_SCALAR_INT.
22917 (print_operand) <case 'M'>: Use mode_width_operand to check the
22918 value of the constant.
22919 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
22920 * config/alpha/predicates.md (input_operand): Use general_operand
22921 instead of match_code as operand check.
22922 (symbolic_operand): Use match_code with subexpression digits.
22923 * config/alpha/constraints.md (Q): Ditto.
22924
22925 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22926
22927 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
22928
22929 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22930
22931 * config/s390/s390.c (s390_secondary_reload): Fix check for
22932 load/store relative.
22933
22934 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22935
22936 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
22937 alternative_mask to uint64_t.
22938
22939 2015-05-19 Jakub Jelinek <jakub@redhat.com>
22940
22941 PR tree-optimization/66187
22942 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
22943 Pass TYPE_SIGN to tree_int_cst_min_precision. If
22944 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
22945
22946 2015-05-19 David Malcolm <dmalcolm@redhat.com>
22947
22948 * diagnostic.c (diagnostic_report_current_module): Strengthen
22949 local "new_map" from const line_map * to
22950 const line_map_ordinary *.
22951 * genmatch.c (error_cb): Likewise for local "map".
22952 (output_line_directive): Likewise for local "map".
22953 * input.c (expand_location_1): Likewise for local "map".
22954 Pass NULL rather than &map to
22955 linemap_unwind_to_first_non_reserved_loc, since the value is never
22956 read from there, and the value written back not read from here.
22957 (is_location_from_builtin_token): Strengthen local "map" from
22958 const line_map * to const line_map_ordinary *.
22959 (dump_location_info): Strengthen locals "map" from
22960 line_map *, one to const line_map_ordinary *, the other
22961 to const line_map_macro *.
22962 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
22963 const line_map * to const line_map_macro *.
22964 (maybe_unwind_expanded_macro_loc): Add a call to
22965 linemap_check_macro when writing to the "map" field of the
22966 loc_map_pair.
22967 Introduce local const line_map_ordinary * "ord_map", using it in
22968 place of "map" in the part of the function where we know we have
22969 an ordinary map. Strengthen local "m" from const line_map * to
22970 const line_map_ordinary *.
22971
22972 2015-05-19 Nick Clifton <nickc@redhat.com>
22973
22974 PR target/66156
22975 * config/msp430/msp430.md (zero_extendhisi2): Add support for
22976 separate source and destination registers.
22977
22978 2015-05-19 Richard Biener <rguenther@suse.de>
22979
22980 PR tree-optimization/66165
22981 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
22982 for no load permutation.
22983
22984 PR tree-optimization/66185
22985 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
22986 when building the SLP node from scalars.
22987
22988 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
22989 Tristan Gingold <gingold@adacore.com>
22990
22991 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
22992 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
22993 (expand_stack_restore): Call record_new_stack_level.
22994 (expand_stack_save): Do not call do_pending_stack_adjust.
22995 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
22996 * calls.c (expand_call): Call record_new_stack_level for alloca.
22997 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
22998 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
22999 (update_sjlj_context): New global function.
23000 * except.h (update_sjlj_context): Declare.
23001 * explow.c (record_new_stack_level): New global function.
23002 (allocate_dynamic_stack_space): Call record_new_stack_level.
23003 * explow.h (record_new_stack_level): Declare.
23004 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23005 * cfgrtl.c (duplicate_insn_chain): Likewise.
23006
23007 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23008
23009 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23010 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23011 STACK_GROWS_DOWNWARD as normal if.
23012 (expand_call): Likewise.
23013
23014 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
23015
23016 PR target/54236
23017 * config/sh/sh.md (*round_int_even): New insn_and_split and
23018 accompanying new unnamed split.
23019
23020 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23021
23022 * bitmap.c (bitmap_set_range): Handle count==1 specially.
23023 (bitmap_clear_range): Likewise.
23024 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23025 bitmap_set_range unconditionally.
23026 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23027 * df-scan.c (df_mark_reg): Likewise.
23028 * haifa-sched.c (setup_ref_regs): Likewise.
23029 * sched-rgn.c (update_live_1): Likewise.
23030
23031 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23032
23033 * regs.h (END_HARD_REGNO): Delete.
23034 (END_REGNO): Move to...
23035 * rtl.h: ...here.
23036 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23037 * caller-save.c (mark_set_regs): Likewise.
23038 * combine.c (move_deaths, distribute_notes): Likewise.
23039 * cse.c (invalidate, invalidate_for_call): Likewise.
23040 * df-scan.c (df_ref_record): Likewise.
23041 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23042 (record_last_reg_set_info): Likewise.
23043 * reg-stack.c (convert_regs_exit): Likewise.
23044 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23045 * resource.c (update_live_status): Likewise.
23046 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23047
23048 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23049
23050 * rtl.h (reg_info): Add an nregs field.
23051 (REG_NREGS): Use it.
23052 (SET_REGNO_RAW): Delete.
23053 (set_regno_raw): New function.
23054 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23055 (END_REGNO): Redefine in terms of REG_NREGS.
23056 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23057 SET_REGNO_RAW.
23058 * emit-rtl.c (set_mode_and_regno): Likewise.
23059 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23060 instead of SET_REGNO_RAW.
23061
23062 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23063
23064 * rtl.h (PUT_MODE_RAW): New macro.
23065 (PUT_REG_NOTE_KIND): Use it.
23066 (set_mode_and_regno): Declare.
23067 (gen_raw_REG): Change regno to "unsigned int".
23068 (gen_rtx_REG): Change "unsigned" to "unsigned int".
23069 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23070 use set_mode_and_regno to change the mode of registers.
23071 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23072 * emit-rtl.c (set_mode_and_regno): New function.
23073 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
23074 * caller-save.c (reg_save_code): Use set_mode_and_regno.
23075 * expr.c (init_expr_target): Likewise.
23076 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23077 * postreload.c (reload_cse_simplify_operands): Likewise.
23078
23079 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23080
23081 * caller-save.c (init_caller_save): Use word_mode and
23082 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23083 * expr.c (init_expr_target): Likewise.
23084 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23085 * postreload.c (reload_cse_regs_1): Likewise.
23086
23087 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23088
23089 * rtl.def (REG): Change format to "r".
23090 * rtl.h (rtunion): Remove rt_reg.
23091 (reg_info): New structure.
23092 (rtx_def): Add reg field to main union.
23093 (X0REGATTR): Delete.
23094 (REG_CHECK): New macro.
23095 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23096 * rtl.c (rtx_format): Document "r".
23097 (rtx_code_size): Handle REG specially.
23098 * gengenrtl.c (special_format): Return true for formats
23099 that include 'r'.
23100 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23101 Deal with REG_ATTRS after the field loop.
23102 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23103 * expmed.c (init_expmed): Call gen_raw_REG instead of
23104 gen_rtx_raw_REG.
23105 * expr.c (init_expr_target): Likewise.
23106 * regcprop.c (maybe_mode_change): Likewise.
23107 * varasm.c (make_decl_rtl): Likewise.
23108 * final.c (leaf_renumber_regs_insn): Return early after
23109 handling REGs.
23110 * genemit.c (gen_exp): Handle 'r' fields.
23111 * genpeep.c (match_rtx): Likewise.
23112 * gensupport.c (subst_pattern_match): Likewise.
23113 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23114 (alter_constraints, subst_dup): Likewise.
23115 * read-rtl.c (read_rtx_code): Likewise.
23116 * print-rtl.c (print_rtx): Likewise.
23117 * genrecog.c (find_operand, find_matching_operand): Likewise.
23118 (validate_pattern, match_pattern_2): Likewise.
23119 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23120 (rtx_test::regno_field): New function.
23121 (operator ==, safe_to_hoist_p, transition_parameter_type)
23122 (parameter_type_string, print_parameter_value)
23123 (print_nonbool_test, print_test): Handle new enum values.
23124 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23125 * lra-constraints.c (operands_match_p): Likewise.
23126
23127 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23128
23129 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23130 Change type of new_regno to unsigned int.
23131 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23132 new_regno to unsigned int.
23133 (df_ref_change_reg_with_loc): Remove old_regno parameter.
23134 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
23135 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23136 (SET_REGNO_RAW): Add space after ",".
23137
23138 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23139
23140 * rtl.h (REG_NREGS): New macro
23141 * alias.c (record_set): Use it.
23142 * cfgcleanup.c (mark_effect): Likewise.
23143 * combine.c (likely_spilled_retval_1): Likewise.
23144 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23145 (move_deaths, distribute_notes): Likewise.
23146 * cselib.c (cselib_record_set): Likewise.
23147 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23148 * df-scan.c (df_mark_reg): Likewise.
23149 * dse.c (look_for_hardregs): Likewise.
23150 * dwarf2out.c (reg_loc_descriptor): Likewise.
23151 (multiple_reg_loc_descriptor): Likewise.
23152 * expr.c (write_complex_part, read_complex_part): Likewise.
23153 (emit_move_complex): Likewise.
23154 * haifa-sched.c (setup_ref_regs): Likewise.
23155 * ira-lives.c (mark_hard_reg_live): Likewise.
23156 * lra.c (lra_set_insn_recog_data): Likewise.
23157 * mode-switching.c (create_pre_exit): Likewise.
23158 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23159 (reload_combine_recognize_pattern): Likewise.
23160 (reload_combine_note_use, move2add_record_mode): Likewise.
23161 (reload_cse_move2add): Likewise.
23162 * reg-stack.c (subst_stack_regs_pat): Likewise.
23163 * regcprop.c (kill_value, copy_value): Likewise.
23164 (copyprop_hardreg_forward_1): Likewise.
23165 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23166 (build_def_use): Likewise.
23167 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23168 (deps_analyze_insn): Likewise.
23169 * sched-rgn.c (check_live_1, update_live_1): Likewise.
23170 * sel-sched.c (count_occurrences_equiv): Likewise.
23171 * valtrack.c (dead_debug_insert_temp): Likewise.
23172
23173 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23174
23175 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23176 * dse.c (note_add_store): Likewise.
23177 * ira-lives.c (mark_hard_reg_dead): Likewise.
23178 * loop-invariant.c (mark_reg_store): Likewise.
23179 (mark_reg_death): Likewise.
23180 * postreload.c (reload_combine): Likewise.
23181 (reload_combine_note_store): Likewise.
23182 (reload_combine_note_use): Likewise.
23183 * recog.c (peep2_reg_dead_p): Likewise.
23184
23185 2015-05-19 Alan Modra <amodra@gmail.com>
23186
23187 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23188 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23189 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23190 unused predicates.
23191 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23192 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
23193 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23194 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23195
23196 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
23197
23198 * config/mips/mips.md (JOIN_MODE): New mode iterator.
23199 (join2_load_Store<JOIN_MODE:mode>): New pattern.
23200 (join2_loadhi): Likewise.
23201 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23202 load-load and store-stores.
23203 * config/mips/mips.opt (mload-store-pairs): New option.
23204 (TARGET_LOAD_STORE_PAIRS): New macro.
23205 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23206 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23207 * config/mips/mips.c (mips_load_store_bonding_p): New function.
23208
23209 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
23210
23211 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23212 explicit swaps.
23213 * dojump.c (do_compare_rtx_and_jump): Likewise.
23214 * expmed.c (emit_store_flag_1): Likewise.
23215 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23216 * final.c (sprint_ul): Use std::reverse for reversing a string.
23217 * fold-const.c (extract_muldiv_1): Use std::swap.
23218 * genmodes.c (emit_mode_int_n): Likewise.
23219 * ifcvt.c (dead_or_predicable): Likewise.
23220 * ira-build.c (ira_merge_live_ranges): Likewise.
23221 (swap_allocno_copy_ends_if_necessary): Likewise.
23222 * ira.c (ira_setup_alts): Likewise.
23223 * loop-iv.c (iv_analyze_expr): Likewise.
23224 (implies_p): Likewise.
23225 (canon_condition): Likewise.
23226 * lra-constraints.c (swap_operands): Likewise.
23227 * lra-lives.c (lra_merge_live_ranges): Likewise.
23228 * omega.c (swap): Remove.
23229 (bswap): Remove.
23230 (omega_unprotect_1): Use std::swap.
23231 (omega_solve_geq): Likewise.
23232 * optabs.c (expand_binop_directly): Likewise.
23233 (expand_binop): Likewise.
23234 (emit_conditional_move): Likewise.
23235 (emit_conditional_add): Likewise.
23236 * postreload.c (reload_cse_simplify_operands): Likewise.
23237 * reg-stack.c (emit_swap_insn): Likewise.
23238 (swap_to_top): Likewise.
23239 (compare_for_stack_reg): Likewise.
23240 (subst_asm_stack_regs): Likewise.
23241 * reload.c (find_reloads): Likewise.
23242 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23243 * sel-sched.c (invoke_reorder_hooks): Likewise.
23244 (create_block_for_bookkeeping): Likewise.
23245 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23246 (lambda_matrix_right_hermite): Use std::swap.
23247 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23248 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23249 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
23250 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
23251 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
23252 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
23253 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
23254 * tree-vrp.c (compare_ranges): Likewise.
23255 * var-tracking.c (add_with_sets): Likewise.
23256 (vt_find_locations): Likewise.
23257
23258 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
23259
23260 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
23261 pie executables.
23262 (FBSD_ENDFILE_SPEC): Likewise.
23263 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
23264 config/freebsd-spec.h.
23265 (ENDFILE_SPEC): Likewise.
23266
23267 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
23268 Richard Henderson <rth@redhat.com>
23269
23270 PR target/57032
23271 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
23272 Check for a memory location that is not a reference (using an AND)
23273 to an unaligned location here.
23274 * config/alpha/predicates.md (normal_memory_operand): Remove.
23275
23276 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
23277
23278 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
23279 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
23280
23281 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
23282
23283 * config/mips/mips.c (micromips_globals): New variable.
23284 (mips_set_compression_mode): Save and reinitialize target-dependent
23285 state for microMIPS.
23286
23287 2015-05-18 Martin Liska <mliska@suse.cz>
23288
23289 * dbgcnt.def: Add new counter.
23290 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
23291
23292 2015-05-18 Martin Liska <mliska@suse.cz>
23293
23294 * dbgcnt.def: Sort counters.
23295 * opts.c (common_handle_option): Do not compile if
23296 -fdbg-cnt-list is enabled.
23297
23298 2015-05-18 Tom de Vries <tom@codesourcery.com>
23299
23300 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
23301 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
23302 address operator to va_list operand.
23303 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
23304 unconditionally.
23305 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
23306 operand.
23307 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
23308 * config/s390/s390.c (s390_gimplify_va_arg): Same.
23309 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
23310
23311 2015-05-18 Tom de Vries <tom@codesourcery.com>
23312
23313 * tree-ssa-tail-merge.c: Fix whitespace.
23314
23315 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
23316
23317 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
23318 cortex-a17, and cortex-a17.cortex-a7.
23319
23320 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
23321
23322 PR target/54236
23323 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
23324
23325 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
23326
23327 PR target/66174
23328 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
23329 QImode inner modes for TARGET_AVX512BW. Force mask operand
23330 to a register for AVX512F modes.
23331
23332 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23333
23334 * toplev.c (emit_debug_global_declarations): Do not output debug info
23335 when doing slim LTO objects.
23336
23337 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23338
23339 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
23340 odr_types_equivalent_p): Declare.
23341 (odr_type_p): Use gcc_checking_assert.
23342 (type_in_anonymous_namespace_p) Declare.
23343 (type_with_linkage_p): Declare.
23344 * common.opt (Wlto-type-mismatch): New warning.
23345 * ipa-devirt.c (compound_type_base): New function.
23346 (odr_or_derived_type_p): New function.
23347 (odr_types_equivalent_p): New function.
23348 (add_type_duplicate): Simplify.
23349 (type_with_linkage_p): Add hack to prevent false positives on C types
23350 (type_in_anonymous_namespace_p): Likewise.
23351 * tree.c (need_assembler_name_p): Use type_with_linkage.
23352 * tree.h (type_in_anonymous_namespace_p): Remove.
23353 * doc/invoke.texi (-Wlto-type-mismatch): Document
23354
23355 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
23356
23357 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
23358 (verify_type): Verify STRING_FLAG.
23359
23360 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
23361
23362 PR fortran/44054
23363 * tree-pretty-print.c (percent_K_format): Replace locus pointer
23364 with accessor function.
23365 * tree-diagnostic.c (diagnostic_report_current_function): Use
23366 diagnostic_location function.
23367 (maybe_unwind_expanded_macro_loc): Likewise.
23368 (virt_loc_aware_diagnostic_finalizer): Likewise.
23369 (default_tree_printer): Replace locus pointer with accessor function.
23370 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
23371 (diagnostic_set_info_translated): Initialize second location.
23372 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
23373 (diagnostic_show_locus): Handle two locations. Call
23374 diagnostic_print_caret_line.
23375 (diagnostic_print_caret_line): New.
23376 (default_diagnostic_starter): Use diagnostic_location function.
23377 (diagnostic_report_diagnostic): Use diagnostic_location function.
23378 (verbatim): Do not set text.locus.
23379 * diagnostic.h (struct diagnostic_info): Remove location field.
23380 (struct diagnostic_context): Make caret_chars an array of two.
23381 (diagnostic_location): New inline.
23382 (diagnostic_expand_location): Handle two locations.
23383 (diagnostic_same_line): New inline.
23384 (diagnostic_print_caret_line): Declare.
23385 (CARET_LINE_MARGIN): New constant.
23386 * pretty-print.c (pp_printf): Do not set text.locus.
23387 (pp_verbatim): Do not set text.locus.
23388 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
23389 (struct text_info): Replace locus pointer with locations
23390 array. Add accessor functions.
23391
23392 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
23393 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23394
23395 PR target/65768
23396 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
23397 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
23398 large constants in register instead of splitting them.
23399
23400 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
23401
23402 PR target/66140
23403 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
23404 replacements in memory addresses.
23405 (get_unaligned_address): Ditto.
23406
23407 2015-05-16 James Bowman <james.bowman@ftdichip.com>
23408
23409 * config/ft32/*: New files for FT32 port.
23410 * doc/install.texi: Add FT32 information.
23411 * doc/invoke.texi: Add FT32 information.
23412 * doc/md.texi: Add FT32 information.
23413 * doc/contrib.texi: Self added.
23414
23415 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
23416
23417 PR tree-optimization/64454
23418 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
23419 (-1 - A -> ~A): Remove unnecessary condition.
23420
23421 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
23422
23423 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
23424 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
23425 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
23426
23427 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
23428
23429 * ipa-chkp.h (chkp_wrap_function): New.
23430 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
23431 (chkp_wrap_function_name): New.
23432 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
23433 to get wrapper name.
23434 * lto-cgraph.c: Include ipa-chkp.h.
23435 (input_cgraph_1): Avoid alias chain for wrappers.
23436
23437 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23438
23439 PR middle-end/66134
23440 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
23441 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
23442
23443 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23444
23445 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
23446 (AARCH64_FL_SLOWMUL): Delete.
23447 (AARCH64_FL_CRC): Redefine to 1<<3.
23448 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
23449
23450 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23451
23452 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
23453 casting.
23454
23455 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
23456
23457 * config/alpha/alpha.md (extendqidi2): Use general_operand
23458 instead of some_operand for operand[1] predicate.
23459 (extendhidi2): Ditto.
23460 (cbranchdi4): Use general_operand instead of some_operand
23461 for operand[1] and operands[2] predicates.
23462 (cstoredi4): Ditto.
23463 * config/alpha/predicates.md (some_operand): Remove unused predicate.
23464 (some_ni_operand): Ditto.
23465
23466 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
23467
23468 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
23469 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
23470 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
23471 low part of the constant using alpha_emit_set_const_1.
23472 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
23473
23474 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
23475
23476 * varasm.c (output_constant_pool_1): Pass down alignment from
23477 constant pool entry's descriptor to output_constant_pool_2.
23478 (output_object_block): Add comment prior to call to
23479 output_constant_pool_1.
23480
23481 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
23482
23483 PR rtl-optimization/65862
23484 * target.def (ira_change_pseudo_allocno_class): New hook.
23485 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
23486 value of the hook.
23487 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
23488 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
23489 hook.
23490 * ira-costs.c (find_costs_and_classes): Call the hook and change
23491 classes when it is necessary.
23492 * doc/tm.texi: Update.
23493
23494 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
23495
23496 * config/i386/i386.md (sibcall_memory): Check that register with
23497 callee address is not also used as one of the arguments, instead
23498 of checking that it is not live after the sibcall.
23499 (sibcall_pop_memory): Ditto.
23500 (sibcall_value_memory): Ditto.
23501 (sibcall_value_pop_memory): Ditto.
23502
23503 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
23504
23505 * generic-match-head.c (types_match): Handle non-types.
23506 * gimple-match-head.c (types_match): Likewise.
23507 * match.pd: Remove unnecessary TREE_TYPE for types_match.
23508
23509 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
23510
23511 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
23512 (csneg3<mode>_insn): Enable expansion of pattern.
23513
23514 2015-05-14 Nick Clifton <nickc@redhat.com>
23515
23516 * config/rl78/rl78.c (rl78_select_section): Select the correct
23517 default section based upon the category of the decl.
23518
23519 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23520
23521 PR rtl-optimization/30967
23522 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
23523 destination mode for the cost of scc patterns.
23524
23525 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
23526
23527 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
23528 using SWIM248 mode iterator.
23529 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
23530 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
23531 for operand[2] constraint.
23532 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
23533
23534 2015-05-13 Jakub Jelinek <jakub@redhat.com>
23535
23536 PR middle-end/66133
23537 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
23538 make sure it is never noreturn, even when the task body does not
23539 return.
23540 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
23541 right before GIMPLE_OMP_RETURN.
23542 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
23543 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
23544 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
23545
23546 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23547
23548 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
23549 * tree-ssa-math-opts.c: Include params.h
23550 (pow_synth_sqrt_info): New struct.
23551 (representable_as_half_series_p): New function.
23552 (get_fn_chain): Likewise.
23553 (print_nested_fn): Likewise.
23554 (dump_fractional_sqrt_sequence): Likewise.
23555 (dump_integer_part): Likewise.
23556 (expand_pow_as_sqrts): Likewise.
23557 (gimple_expand_builtin_pow): Use above to attempt to expand
23558 pow as series of square roots. Removed now unused variables.
23559
23560 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
23561
23562 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
23563 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
23564 Remove *p0 and *p1 arguments. Rewrite function.
23565 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
23566 (alpha_split_const_mov): Update calls to alpha_extract_integer and
23567 alpha_emit_set_long_const.
23568 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
23569 (alpha_output_mi_thunk_osf): Ditto.
23570 * config/alpha/alpha.md (movti): Do not check operands[1]
23571 for CONST_DOUBLE.
23572
23573 2015-05-13 Richard Biener <rguenther@suse.de>
23574
23575 PR tree-optimization/66129
23576 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
23577 commutative.
23578 (vect_schedule_slp_instance): Fix typo.
23579
23580 2015-05-13 David Malcolm <dmalcolm@redhat.com>
23581
23582 * common.opt (fdump-internal-locations): New option.
23583 * input.c: Include diagnostic-core.h.
23584 (get_end_location): New function.
23585 (write_digit): New function.
23586 (write_digit_row): New function.
23587 (dump_location_range): New function.
23588 (dump_labelled_location_range): New function.
23589 (dump_location_info): New function.
23590 * input.h (dump_location_info): New prototype.
23591 * toplev.c (compile_file): Handle flag_dump_locations.
23592
23593 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
23594
23595 * gimple-expr.h (is_gimple_constant): Reorder.
23596 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
23597
23598 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23599
23600 * combine.c (simplify_set): When generating a CC set, if the
23601 source already is in the correct mode, do not wrap it in a
23602 compare. Simplify the rest of that code.
23603
23604 2015-05-13 Richard Biener <rguenther@suse.de>
23605
23606 PR tree-optimization/66123
23607 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
23608 a taken edge.
23609
23610 2015-05-13 Richard Biener <rguenther@suse.de>
23611
23612 PR middle-end/66110
23613 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
23614 specially.
23615 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
23616
23617 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23618
23619 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
23620 * aclocal.m4: Regenerated with automake-1.11.6.
23621
23622 2015-05-13 Tom de Vries <tom@codesourcery.com>
23623
23624 PR tree-optimization/66010
23625 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
23626 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
23627 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
23628 and rval based on do_deref.
23629
23630 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23631
23632 PR target/65103
23633 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
23634 link time constants into adress expressions and therefore set
23635 their cost to 0.
23636
23637 2015-05-13 Jakub Jelinek <jakub@redhat.com>
23638
23639 PR target/66112
23640 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
23641 Use SWI248 iterator instead of SWI.
23642 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
23643 Use eq_attr "alternative" "0" instead of match_test in
23644 length_immediate attribute computation.
23645 (*mulvhi4, *mulvhi4_1): New define_insns.
23646
23647 PR target/66112
23648 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
23649 SIGNED to get precision of non-negative value.
23650
23651 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23652
23653 PR target/66048
23654 * function.c (diddle_return_value_1): Process bounds first.
23655 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
23656 register.
23657
23658 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23659
23660 PR rtl-optimization/64616
23661 * loop-invariant.c (can_move_invariant_reg): New.
23662 (move_invariant_reg): Call above new function to decide whether
23663 instruction can just be moved, skipping creation of temporary
23664 register.
23665
23666 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23667
23668 PR target/pr66047.c
23669 * i386.c (ix86_function_sseregparm): Only return -1 if local function
23670 with implied regparm is called from -mno-sse function.
23671 (init_cumulative_args): Output error if ix86_function_sseregparm
23672 return -1 and SSE register would be needed.
23673 (function_arg_advance_32): Likewise.
23674 (function_arg_32): Likewise.
23675 * i386.h (ix86_args): Add decl field.
23676
23677 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23678
23679 PR ipa/65873
23680 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
23681 inlines across optimization boundary.
23682
23683 2015-05-12 Jason Merrill <jason@redhat.com>
23684
23685 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
23686 string literal and macro name.
23687
23688 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
23689
23690 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
23691 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
23692 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
23693
23694 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23695
23696 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
23697 (-Wmisleading-indentation): New option.
23698 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
23699
23700 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
23701
23702 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
23703 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
23704 (alpha_extract_integer): Ditto.
23705 (alpha_legitimate_constant_p): Ditto.
23706 (alpha_split_tmode_pair): Ditto.
23707 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
23708 (alpha_expand_mov): Ditto.
23709 (print_operand): Remove handling of 'H' modifier.
23710 <case 'm'>: Remove CONST_DOUBLE handling.
23711 (summarize_insn): Handle CONST_WIDE_INT.
23712 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
23713 (anddi3): Ditto.
23714 (movti): Handle CONST_WIDE_INT.
23715 * config/alpha/constraints.md ('H'): Remove constraint definition.
23716 ('G'): Do not match MODE_FLOAT class.
23717 * config/alpha/predicates.md (const0_operand): Also match
23718 const_wide_int.
23719 (non_add_const_operand): Ditto.
23720 (non_zero_const_operand): Ditto.
23721 (some_operand): Ditto.
23722 (input_operand): Ditto. Handle CONST_WIDE_INT.
23723 (and_operand): Do not match const_double.
23724 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
23725
23726 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
23727
23728 PR target/65697
23729 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
23730 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
23731 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
23732 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
23733 is_mm_seq_cst, is_mm_sync): New accessor functions.
23734 * builtins.c (expand_builtin_sync_operation,
23735 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
23736 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
23737 (get_memmodel, expand_builtin_atomic_compare_exchange,
23738 expand_builtin_atomic_load, expand_builtin_atomic_store,
23739 expand_builtin_atomic_clear): Use new accessor routines.
23740 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
23741 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
23742 (maybe_emit_sync_lock_test_and_set): Use new accessors and
23743 MEMMODEL_SYNC_ACQUIRE.
23744 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
23745 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
23746 expand_atomic_store): Use new accessors.
23747 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
23748 * tsan.c (instrument_builtin_call): Update check for memory model beyond
23749 final enum to use MEMMODEL_LAST.
23750 * c-family/c-common.c: Use new accessor for memmodel_base.
23751 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
23752 accessors.
23753 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
23754 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
23755 mem_thread_fence, *dmb): Likewise.
23756 * config/alpha/alpha.c (alpha_split_compare_and_swap,
23757 alpha_split_compare_and_swap_12): Likewise.
23758 * config/arm/arm.c (arm_expand_compare_and_swap,
23759 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
23760 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
23761 atomic_loaddi): Likewise.
23762 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
23763 Likewise.
23764 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
23765 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
23766 use new accessors.
23767 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
23768 atomic_store<mode>, atomic_compare_and_swap<mode>,
23769 atomic_exchange<mode>): Use new accessors.
23770 * config/mips/mips.c (mips_process_sync_loop): Likewise.
23771 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
23772 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
23773 rs6000_post_atomic_barrier): Add new cases.
23774 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
23775 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
23776 (atomic_load<mode>): Add new cases and use new accessors.
23777 (store_quadpti): Add new cases.
23778 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
23779 accessors.
23780 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
23781 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
23782 model, not 8.
23783
23784 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
23785
23786 * ipa-devirt.c (type_with_linkage_p): New function.
23787 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
23788 type has linkage.
23789 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
23790 (can_be_name_hashed_p): Simplify.
23791 (hash_odr_name): Check that type has linkage before checking if it is
23792 anonymous.
23793 (types_same_for_odr): Likewise.
23794 (odr_name_hasher::equal): Likewise.
23795 (odr_subtypes_equivalent_p): Likewise.
23796 (warn_types_mismatch): Likewise.
23797 (get_odr_type): Likewise.
23798 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
23799 * ipa-utils.h (odr_type_p): Move offline.
23800 * tree.c (need_assembler_name_p): Fix handling of types
23801 without linkages.
23802 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
23803
23804 2015-05-12 David Malcolm <dmalcolm@redhat.com>
23805
23806 * timevar.c (timevar_enable): Delete in favor of...
23807 (g_timer): New global.
23808 (struct timevar_def): Move to timevar.h inside class timer.
23809 (struct timevar_stack_def): Likewise.
23810 (timevars): Delete global in favor of field "m_timevars" within
23811 class timer in timevar.h
23812 (stack): Likewise, in favor of field "m_stack".
23813 (unused_stack_instances): Likewise, in favor of field
23814 "m_unused_stack_instances".
23815 (start_time): Likewise, in favor of field "m_start_time".
23816 (get_time): Eliminate check for timevar_enable.
23817 (timer::timer): New function, built from part of timevar_init.
23818 (timevar_init): Rewrite idempotency test from using
23819 "timevar_enable" bool to using dynamic allocation of "g_timer".
23820 Move rest of implementation into timer's constructor.
23821 (timevar_push_1): Rename to...
23822 (timer::push): ...this, adding "m_" prefixes to variables that
23823 are now fields of timer.
23824 (timevar_pop_1): Likewise, rename to...
23825 (timer::pop): ...this, and add "m_" prefixes.
23826 (timevar_start): Replace test for "timevar_enable" with one for
23827 "g_timer", and move bulk of implementation to...
23828 (timer::start): ...here, adding "m_" prefixes.
23829 (timevar_stop): Likewise, from here...
23830 (timer::stop): ...to here.
23831 (timevar_cond_start): Likewise, from here...
23832 (timer::cond_start): ...to here.
23833 (timevar_cond_stop): Likewise, from here...
23834 (timer::cond_stop): ...to here.
23835 (validate_phases): Rename to...
23836 (timer::validate_phases): ...this, and add "m_" prefixes. Make
23837 locals "total" and "tv" const.
23838 (timevar_print): Rename to...
23839 (timer::print): ...this, and add "m_" prefixes. Make locals
23840 "total" and "tv" const. Eliminate test for timevar_enable.
23841 * timevar.h (timevar_enable): Eliminate.
23842 (g_timer): New declaration.
23843 (timevar_push_1): Eliminate.
23844 (timevar_pop_1): Eliminate.
23845 (timevar_print): Eliminate.
23846 (class timer): New class.
23847 (timevar_push): Rewrite to use g_timer.
23848 (timevar_pop): Likewise.
23849 * toplev.c (toplev::~toplev): Likewise.
23850
23851 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
23852
23853 * arm-protos.h (arm_sched_autopref): Delete.
23854 (tune_params): Re-organize, use enums for flag values.
23855 (FUSE_OPS): New macro.
23856 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
23857 (ARM_PREFETCH_BENEFICIAL): Likewise.
23858 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
23859 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
23860 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
23861 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
23862 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
23863 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
23864 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
23865 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
23866 format.
23867 (arm_option_override, thumb2_reorg, arm_print_tune_info)
23868 (aarch_macro_fusion_pair_p): Update uses of current_tune.
23869 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
23870
23871 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
23872
23873 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
23874 "break".
23875
23876 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
23877 Sandra Loosemore <sandra@codesourcery.com>
23878
23879 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
23880 value.
23881 (REG_CLASS_NAMES): Add "IJMP_REGS".
23882 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
23883 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
23884 use new "c" register constraint.
23885 * config/nios2/constraint.md (c): New register constraint
23886 corresponding to IJMP_REGS.
23887
23888 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23889
23890 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
23891 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
23892 define_splits): Delete, revamp, transmogrify into ...
23893 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
23894 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
23895 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
23896 New.
23897
23898 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23899
23900 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
23901 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
23902
23903 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23904
23905 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
23906 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
23907 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
23908 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
23909 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
23910 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
23911 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
23912 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
23913 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
23914 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23915 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
23916 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
23917 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
23918 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
23919 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
23920 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
23921 and 30 corresponding splitters): Delete.
23922
23923 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23924
23925 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
23926 zero_extract.
23927
23928 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23929
23930 * combine.c (recog_for_combine_1): New function, factored out
23931 from recog_for_combine.
23932 (change_zero_ext): New function.
23933 (recog_for_combine): If recog fails, try again with the pattern
23934 modified by change_zero_ext; if that still fails, restore the
23935 pattern.
23936
23937 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
23938
23939 * combine.c (get_undo_marker): New function.
23940 (undo_to_marker): New function, largely factored out from ...
23941 (undo_all): ... this. Adjust.
23942
23943 2015-05-12 Richard Biener <rguenther@suse.de>
23944
23945 PR tree-optimization/66101
23946 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
23947 fixup if we turn a loop exit edge to a fallthru edge.
23948
23949 2015-05-12 Richard Biener <rguenther@suse.de>
23950
23951 PR tree-optimization/37021
23952 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
23953 (SLP_TREE_TWO_OPERATORS): New define.
23954 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
23955 SLP_TREE_TWO_OPERATORS.
23956 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
23957 SLP node.
23958 (vect_build_slp_tree): Adjust.
23959 (vect_analyze_slp_cost_1): Likewise.
23960 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
23961 emitting two vector stmts and mixing the results.
23962
23963 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
23964
23965 * call.c (print_z_candidates): Remove dead code.
23966
23967 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23968
23969 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
23970 and zEC12_simple_fp.
23971 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
23972 to 1.
23973
23974 2015-05-12 Tom de Vries <tom@codesourcery.com>
23975
23976 PR tree-optimization/66010
23977 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
23978 ifn_va_arg.
23979 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
23980 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
23981 va_lists are passed, and remove corresponding handling.
23982 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
23983 do_deref argument to ifn_va_arg.
23984 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
23985 ifn_va_arg.
23986
23987 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23988
23989 PR target/65955
23990 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
23991 REG before taking its REGNO.
23992
23993 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23994
23995 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
23996 rsp->sign_bit_copies and rsp->nonzero_bits into ...
23997 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
23998 present to get more accurate information about the number of sign bit
23999 copies and non zero bits.
24000
24001 2015-05-12 Richard Biener <rguenther@suse.de>
24002
24003 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24004 do not allow unrolling.
24005
24006 2015-05-11 Richard Henderson <rth@redhat.com>
24007
24008 * config/i386/i386-modes.def (CCP): New.
24009 * config/i386/i386.c (put_condition_code): Handle it.
24010 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24011
24012 2015-05-11 Richard Henderson <rth@redhat.com>
24013
24014 * target.def (md_asm_clobbers): Replace with...
24015 (md_asm_adjust): this.
24016 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24017 (TARGET_MD_ASM_ADJUST): New.
24018 * tm.texi: Rebuild.
24019 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24020 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24021 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24022
24023 * cfgexpand.c (check_operand_nalternatives): Accept vector of
24024 constraints instead of lists of outputs and inputs.
24025 (expand_asm_stmt): Save and restore input_location around the
24026 body of the function. Move asm data into vectors instead of
24027 building tree lists. Generate cleanup sequences as needed,
24028 rather than waiting til the end. Use new md_asm_adjust hook.
24029
24030 * config/vxworks.c: Include vec.h before target.h.
24031 * gimple.c: Likewise.
24032 * incpath.c: Likewise.
24033 * mode-switching.c: Likewise.
24034
24035 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24036 (cris_md_asm_adjust): this.
24037 (TARGET_MD_ASM_CLOBBERS): Remove.
24038 (TARGET_MD_ASM_ADJUST): New.
24039 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24040 (ix86_md_asm_adjust): this.
24041 (TARGET_MD_ASM_CLOBBERS): Remove.
24042 (TARGET_MD_ASM_ADJUST): New.
24043 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24044 (mn10300_md_asm_adjust): this.
24045 (TARGET_MD_ASM_CLOBBERS): Remove.
24046 (TARGET_MD_ASM_ADJUST): New.
24047 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24048 (rs6000_md_asm_adjust): this.
24049 (TARGET_MD_ASM_CLOBBERS): Remove.
24050 (TARGET_MD_ASM_ADJUST): New.
24051 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24052 (visium_md_asm_adjust): this.
24053 (TARGET_MD_ASM_CLOBBERS): Remove.
24054 (TARGET_MD_ASM_ADJUST): New.
24055
24056 2015-05-11 Richard Henderson <rth@redhat.com>
24057
24058 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24059 if noutputs is zero.
24060 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24061
24062 * cfgexpand.c (expand_asm_operands): Merge into...
24063 (expand_asm_stmt): ... here.
24064
24065 * cfgexpand.c (expand_asm_operands): Don't call
24066 resolve_asm_operand_names.
24067 * stmt.c (resolve_asm_operand_names): Clarify block comment.
24068
24069 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
24070
24071 * dwarf2out.c (gen_member_die): Sanity check that we access
24072 TYPE_MAIN_VARIANT for TYPE_METHODS.
24073 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24074 checking TYPE_METHODS.
24075 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24076 if non-null.
24077 (build_distinct_type_copy): Clear TYPE_METHODS.
24078 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24079 (verify_type): Allow TYPE_METHODS to be error_mark_node.
24080 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24081
24082 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
24083
24084 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24085 (emit_pattern_before_setloc): Likewise.
24086
24087 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24088
24089 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24090 for define_peephole2s.
24091 (get_peephole2_pattern): New function.
24092 (main): Use it. Call validate_pattern.
24093
24094 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24095
24096 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24097 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24098 (Last callee saved reg is different for AVR_TINY architecture)
24099
24100 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24101
24102 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24103 when looking for memory references.
24104
24105 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24106
24107 PR target/65753
24108 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24109 via function pointers.
24110
24111 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24112
24113 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24114 indirect call by forcing address into a pseudo with -fno-plt.
24115 * common.opt (flag_plt): New option.
24116 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24117 ([-fno-plt]): Document.
24118
24119 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
24120
24121 PR bootstrap/66105
24122 * config/rs6000/option-defaults.h: Add space between string literal
24123 and macro name.
24124
24125 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
24126
24127 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24128 accross ARM targets.
24129
24130 2015-05-11 Christian Bruel <christian.bruel@st.com>
24131
24132 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24133 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24134
24135 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24136
24137 PR rtl-optimization/66076
24138 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24139 Don't grow the heap array if it is already big enough from a
24140 previous iteration.
24141
24142 2015-05-11 Christian Bruel <christian.bruel@st.com>
24143
24144 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24145 (is_called_in_ARM_mode): Remove.
24146 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24147 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24148 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24149 arm_declare_function_name.
24150
24151 2015-05-11 Christian Bruel <christian.bruel@st.com>
24152
24153 * config/arm/arm.c (arm_option_override): Reoganized and split into :
24154 (arm_option_params_internal); New function.
24155 (arm_option_check_internal): New function.
24156 (arm_option_override_internal): New function.
24157 (thumb_code, thumb1_code): Remove.
24158 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24159 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24160 (thumb_code, thumb1_code): Remove.
24161 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24162
24163 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24164
24165 * config/alpha/alpha.c (alpha_emit_set_const_1)
24166 (alpha_emit_set_long_const, alpha_extract_integer)
24167 (alpha_legitimate_constant_p, alpha_split_const_mov)
24168 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24169 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24170 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24171 HOST_WIDE_INT_1U.
24172 * config/alpha/predicates.md (mode_mask_operand): Do not match
24173 const_double RTX.
24174 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24175 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24176 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24177 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24178 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24179
24180 2015-05-11 Jakub Jelinek <jakub@redhat.com>
24181
24182 PR target/65780
24183 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24184 default_binds_local_p_2.
24185 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24186 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24187
24188 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24189
24190 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24191
24192 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24193
24194 Patch by Richard Biener
24195 * coverage.c (coverage_obj_init): Delay building of type variant
24196 until the type is finished.
24197
24198 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24199
24200 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24201 mismatch between C and C++ type; compoare correctly ARG_TYPES
24202 for non-prototypes and output correctly parameter index for METHOD_TYPE.
24203 (odr_types_equivalent_p): Fix wording of warning about attributes;
24204 it is OK to match prototype and non-prototype.
24205
24206 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24207
24208 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24209 TYPE_ARG_TYPES list.
24210 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24211 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24212
24213 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24214
24215 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24216 * tree.h (is_lang_specific): Constify.
24217
24218 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
24219
24220 PR tree-optimization/64454
24221 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24222 Rewrite.
24223
24224 2015-05-08 Jason Merrill <jason@redhat.com>
24225
24226 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24227 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24228 config/darwin.h, config/darwin9.h, config/elfos.h,
24229 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24230 config/microblaze/microblaze.h, config/mips/mips.h,
24231 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24232 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24233 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24234 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24235 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24236 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24237 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24238 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24239 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24240 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24241 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24242 between string literal and macro name.
24243
24244 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24245
24246 * jump.c: Change argument types to rtx_insn *.
24247 * rtl.h: Adjust.
24248
24249 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24250
24251 * lra-constraints.c: Change argument type to rtx_insn *.
24252
24253 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24254
24255 * df-problems.c: Change argument type to rtx_insn *.
24256
24257 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24258
24259 * combine.c: Change argument type to rtx_insn *.
24260
24261 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24262
24263 * rtl.h: Adjust.
24264 * rtlanal.c: Change argument type to rtx_insn *.
24265
24266 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24267
24268 * sched-deps.c: Change argument types to rtx_insn *.
24269 * sched-int.h: Adjust.
24270
24271 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24272
24273 * dwarf2cfi.c: Change argument type to rtx_insn *.
24274
24275 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24276
24277 * ira.c (decrease_live_ranges_number): Changetype of local
24278 variable to rtx_insn *.
24279 * recog.c: Change argument types to rtx_insn *.
24280 * recog.h: Adjust.
24281
24282 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24283
24284 * reorg.c: Change argument types to rtx_insn *.
24285
24286 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24287
24288 * ira-color.c: Change argument types to rtx_insn *.
24289 * lra-eliminations.c: Likewise.
24290 * ira.h: Adjust.
24291
24292 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24293
24294 * gcse.c: Change argument types to rtx_insn *.
24295
24296 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24297
24298 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
24299
24300 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24301
24302 * emit-rtl.c (emit_debug_insn_before): Change argument type to
24303 rtx_insn *.
24304 * rtl.h: Adjust.
24305
24306 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24307
24308 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
24309 * rtl.h: Adjust.
24310
24311 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24312
24313 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
24314 * rtl.h: Adjust.
24315
24316 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24317
24318 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
24319 * rtl.h: Adjust.
24320
24321 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24322
24323 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
24324 * rtl.h: Adjust.
24325
24326 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24327
24328 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
24329 to rtx_insn *.
24330 * rtl.h: Adjust.
24331
24332 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24333
24334 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
24335 to rtx_insn *.
24336 * rtl.h: Likewise.
24337
24338 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24339
24340 * except.c (can_nonlocal_goto): Change type of argument to
24341 rtx_insn *.
24342 * rtl.h: Adjust.
24343
24344 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24345
24346 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
24347 * rtl.h: Adjust.
24348
24349 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24350
24351 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
24352 * cfgrtl.c (can_delete_label_p): Adjust.
24353 * rtl.h: likewise.
24354
24355 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24356
24357 * reorg.c (stop_search_p): Change argument to rtx_insn *.
24358
24359 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24360
24361 * except.c (make_reg_eh_region_note): Change argument to
24362 rtx_insn *.
24363 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
24364 * except.h: Adjust.
24365
24366 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24367
24368 * mode-switching.c (commit_mode_sets): Change type of local
24369 variable from rtx to rtx_insn *.
24370
24371 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
24372
24373 * doc/install.texi (--enable-languages): Add missing jit and lto info.
24374 Add ^ to grep command.
24375 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
24376 arg to last gimple_simplify declaration. Add missing gimple_build
24377 declaration for built-in function case with four tree args.
24378
24379 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24380 Szabolcs Nagy <szabolcs.nagy@arm.com>
24381
24382 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
24383 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
24384 (GNU_USER_DYNAMIC_LINKERN32): Update.
24385
24386 2015-05-08 Richard Biener <rguenther@suse.de>
24387
24388 PR tree-optimization/66036
24389 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24390 Handle strided group loads.
24391 (vect_verify_datarefs_alignment): Likewise.
24392 (vect_enhance_data_refs_alignment): Likewise.
24393 (vect_analyze_group_access): Likewise.
24394 (vect_analyze_data_ref_access): Likewise.
24395 (vect_analyze_data_ref_accesses): Likewise.
24396 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
24397 (vectorizable_load): Likewise.
24398
24399 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
24400
24401 * config/rs6000/rs6000.md: Require operand inequality in one
24402 of the peepholes.
24403
24404 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
24405 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24406
24407 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
24408 from (set ...).
24409 * config/rx/rx.md (movdi, movdf): Likewise.
24410 Likewise for define_peephole2s.
24411
24412 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24413
24414 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
24415 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
24416 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
24417 vtst_u64): Rewrite using gcc vector extensions.
24418
24419 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24420
24421 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
24422 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
24423
24424 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
24425
24426 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
24427
24428 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
24429
24430 * config/glibc-stdint.h (OPTION_MUSL): Define.
24431 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
24432 Change the definition based on OPTION_MUSL for 64 bit targets.
24433 * config/linux.h (OPTION_MUSL): Redefine.
24434 * config/alpha/linux.h (OPTION_MUSL): Redefine.
24435 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
24436 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
24437
24438 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
24439 Szabolcs Nagy <szabolcs.nagy@arm.com>
24440
24441 * config.gcc (LIBC_MUSL): New tm_defines macro.
24442 * config/linux.h (OPTION_MUSL): Define.
24443 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
24444 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
24445 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24446 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24447 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24448 * config/linux.opt (mmusl): New option.
24449 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
24450 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24451 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24452 * configure: Regenerate.
24453
24454 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
24455 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24456
24457 PR target/48904
24458 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
24459 * config/i386/knetbsd-gnu64.h: New file.
24460
24461 2015-05-08 Marek Polacek <polacek@redhat.com>
24462
24463 PR c/64918
24464 * doc/invoke.texi: Document -Woverride-init-side-effects.
24465
24466 2015-05-07 Marek Polacek <polacek@redhat.com>
24467
24468 PR c/65179
24469 * doc/invoke.texi: Document -Wshift-negative-value.
24470
24471 2015-05-06 Aditya Kumar <hiraditya@msn.com>
24472
24473 * gcov-tool.c (do_merge): Refactore to remove int ret.
24474 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
24475 !type == FUNC to type != FUNC.
24476 * reload.h (struct target_reload): Changee to type of
24477 x_spill_indirect_levels from bool to unsigned char.
24478
24479 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
24480
24481 * rtl.h (always_void_p): New function.
24482 * gengenrtl.c (always_void_p): Likewise.
24483 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
24484 with code foo are always VOIDmode.
24485 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
24486 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
24487 compare-elim.c, config/aarch64/aarch64.c,
24488 config/aarch64/aarch64.md, config/alpha/alpha.c,
24489 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
24490 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
24491 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
24492 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24493 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
24494 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
24495 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
24496 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
24497 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
24498 config/ia64/vect.md, config/iq2000/iq2000.c,
24499 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
24500 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
24501 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
24502 config/mep/mep.c, config/microblaze/microblaze.c,
24503 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
24504 config/mn10300/mn10300.c, config/msp430/msp430.c,
24505 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
24506 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
24507 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
24508 config/rs6000/altivec.md, config/rs6000/rs6000.c,
24509 config/rs6000/rs6000.md, config/rs6000/vector.md,
24510 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
24511 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
24512 config/sh/sh.md, config/sh/sh_treg_combine.cc,
24513 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
24514 config/spu/spu.md, config/stormy16/stormy16.c,
24515 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
24516 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
24517 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
24518 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
24519 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
24520 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
24521 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
24522 var-tracking.c: Update calls accordingly.
24523
24524 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24525
24526 PR middle-end/192
24527 PR middle-end/54303
24528 * varasm.c (function_mergeable_rodata_prefix): New function.
24529 (mergeable_string_section): Use it.
24530 (mergeable_constant_section): Use it.
24531
24532 2015-05-07 Jeff Law <law@redhat.com>
24533
24534 PR target/39726
24535 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24536 simplifier to narrow arithmetic.
24537 * generic-match-head.c: (types_match, single_use): New functions.
24538 * gimple-match-head.c: (types_match, single_use): New functions.
24539
24540 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24541
24542 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
24543 rtx type.
24544
24545 2015-05-07 Richard Biener <rguenther@suse.de>
24546
24547 PR tree-optimization/66002
24548 * passes.def: Schedule another pass_merge_phi after ifcombine, right
24549 before phiopt.
24550
24551 2015-05-07 Marek Polacek <polacek@redhat.com>
24552 Martin Uecker <uecker@eecs.berkeley.edu>
24553
24554 * doc/invoke.texi: Document -fsanitize=bounds-strict.
24555 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
24556 into SANITIZE_NONDEFAULT.
24557 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
24558
24559 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
24560
24561 PR target/66015
24562 * config/alpha/alpha.c (alpha_override_options_after_change): New.
24563 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
24564 (alpha_override_options): Move align_loops, align_jumps and
24565 align_functions handling into alpha_override_options_after_change.
24566
24567 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
24568 Chris Jones <chrisj@nvidia.com>
24569 Joshua Conner <jconner@nvidia.com>
24570
24571 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
24572 linking of crtfastmath.o.
24573 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
24574
24575 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24576
24577 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
24578 (cstore<mode>4_unsigned_imm): New expander.
24579 (cstore<mode>4): Remove empty constraint strings. Use the new
24580 expanders.
24581
24582 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
24583
24584 PR target/64208
24585 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
24586 alternatives.
24587
24588 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
24589
24590 * config/aarch64/geniterators.sh: Use standard BRE in sed.
24591
24592 2015-05-06 Alan Modra <amodra@gmail.com>
24593
24594 PR target/66033
24595 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
24596 (UNSPEC_NOP): Define.
24597 (reload_vsx_from_gpr<mode>): Add missing DONE.
24598 (reload_gpr_from_vsx<mode>): Likewise.
24599 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
24600 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
24601
24602 2015-05-06 Christian Bruel <christian.bruel@st.com>
24603
24604 PR target/66015
24605 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
24606 align_jumps, align_functions into aarch64_override_options_after_change.
24607
24608 2015-05-06 Richard Biener <rguenther@suse.de>
24609
24610 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
24611 vect_transform_slp_perm_load to check if we support a permutation
24612 for basic-block vectorization.
24613
24614 2015-05-06 Nick Clifton <nickc@redhat.com>
24615
24616 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
24617 used, even if it is not being used as a frame pointer.
24618
24619 2015-05-05 Jason Merrill <jason@redhat.com>
24620
24621 * dwarf2out.c (gen_member_die): Don't emit anything for an
24622 anonymous class constructor.
24623
24624 2015-05-05 David Malcolm <dmalcolm@redhat.com>
24625
24626 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
24627 that it reflects the block structure.
24628 (afdo_propagate_edge): Likewise.
24629 (afdo_calculate_branch_prob): Likewise.
24630 (afdo_annotate_cfg): Likewise.
24631 * cfgcleanup.c (equal_different_set_p): Likewise.
24632 (try_crossjump_to_edge): Likewise.
24633 * cgraph.c (cgraph_node::verify_node): Likewise.
24634 * cgraphunit.c (expand_all_functions): Likewise.
24635 * config/i386/i386.c (ix86_expand_copysign): Likewise.
24636 (exact_dependency_1): Likewise.
24637 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
24638 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
24639 * gensupport.c (process_define_subst): Likewise.
24640 * lto-wrapper.c (merge_and_complain): Likewise.
24641 * tree-if-conv.c (if_convertible_bb_p): Likewise.
24642 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
24643 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
24644 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
24645 * tree-vect-loop.c (vectorizable_reduction): Likewise.
24646 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
24647 * tree-vect-stmts.c (vectorizable_shift): Likewise.
24648 * tree-vrp.c (vrp_finalize): Likewise.
24649 * tree.c (variably_modified_type_p): Likewise.
24650
24651 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
24652
24653 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
24654 on darwin12 and later.
24655 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
24656 file to pass -rdynamic on darwin12 and later.
24657 * config/darwin.opt (rdynamic): Add.
24658
24659 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24660
24661 * doc/extend.texi (C Extensions): Update menu for moved Variable
24662 Attributes and Type Attributes sections.
24663
24664 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24665
24666 PR target/65990
24667 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
24668 if rep_8byte stringop strategy was specified for 32-bit target.
24669
24670 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
24671
24672 PR target/65915
24673 * config/i386/i386.md (vector convert to float spltiter): Check for
24674 xmm16+, when splitting scalar float conversion.
24675 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
24676
24677 2015-05-05 Nick Clifton <nickc@redhat.com>
24678
24679 * config/msp430/msp430-opts.h (enum msp430_regions): New.
24680 * config/msp430/msp430.c (msp430_override_options): Complain if
24681 -mcode-region or -mdata-region is used on a non MSP430X.
24682 (msp430_section_attr): New function. Checks lower, upper and
24683 either attributes.
24684 (msp430_attribute_table): Add lower, upper and either.
24685 (gen_prefix): New function. Generates a prefix for a section
24686 name.
24687 (msp430_select_section): New function - handles the choice of
24688 section for an object. Takes into account memory region
24689 attributes and options.
24690 (msp430_function_section): Use gen_prefix.
24691 (TARGET_SECTION_TYPE_FLAGS): Define.
24692 (msp430_section_type_flags): New function.
24693 (TARGET_ASM_UNIQUE_SECTION): Define.
24694 (msp430_unique_section): New function.
24695 (msp430_output_aligned_decl_common): New function.
24696 (msp430_do_not_relax_short_jumps): New function.
24697 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
24698 Define.
24699 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
24700 * config/msp430/msp430-protos.h
24701 (msp430_do_not_relax_short_jumps): New prototype.
24702 (msp430_output_aligned_decl_common): New prototype.
24703 * config/msp430/msp430.md (length): New attribute.
24704 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
24705 then use a long code sequence for short jumps.
24706 * config/msp430/msp430.opt (mcode-region): New.
24707 (mdata-region): New.
24708 * doc/invoke.texi: Document new options.
24709 * doc/extend.texi: Document new attributes.
24710
24711 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24712
24713 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
24714 (tune_params): Add field branch_costs.
24715 (aarch64_branch_cost): Declare.
24716 * gcc/config/aarch64.c (generic_branch_cost): New.
24717 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
24718 (cortexa53_tunings): Likewise.
24719 (cortexa57_tunings): Likewise.
24720 (thunderx_tunings): Likewise.
24721 (xgene1_tunings): Likewise.
24722 (aarch64_branch_cost): Define.
24723 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
24724
24725 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24726
24727 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
24728 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
24729 * config/i386/i386.md: Ditto.
24730 * config/i386/winnt.c: Ditto.
24731
24732 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
24733
24734 * doc/extend.texi (__atomic Builtins): Move implementation details
24735 to the end of the description, rewrite opening paragraphs, state
24736 difference with __sync builtins, state C11/C++11 assumptions,
24737 weaken itemized descriptions, add explanation of memory model
24738 behaviour, expand description of compare-exchange, simplify text.
24739
24740 2015-05-05 Renlin Li <renlin.li@arm.com>
24741
24742 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
24743
24744 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
24745
24746 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
24747 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24748 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
24749 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
24750 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
24751 * configure: Regenerate.
24752 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
24753 * doc/install.texi (aarch64*-*-*): Document new
24754 --enable-fix-cortex-a53-843419 option.
24755 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
24756 and -mno-fix-cortex-a53-843419 options.
24757
24758 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
24759
24760 PR target/65871
24761 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
24762
24763 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
24764
24765 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
24766 fix overactive TYPE_MIN_VALUE check and add FIXME for type
24767 compatibility problems.
24768
24769 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24770
24771 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
24772 constraints.
24773 (cbranchsi4_reg): New.
24774 * config/microblaze/microblaze.c
24775 (microblaze_expand_conditional_branch_reg): New.
24776 * config/microblaze/microblaze-protos.h
24777 (microblaze_expand_conditional_branch_reg): New prototype.
24778
24779 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
24780
24781 * config/microblaze/microblaze.md (peephole2): New.
24782
24783 2015-05-04 Jeff Law <law@redhat.com>
24784
24785 Revert:
24786 2015-05-04 Jeff Law <law@redhat.com>
24787
24788 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24789 simplifier to narrow arithmetic.
24790 * generic-match-head.c: (types_match, single_use): New functions.
24791 * gimple-match-head.c: (types_match, single_use): New functions.
24792
24793 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
24794
24795 PR target/65987
24796 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
24797 (split_branches): Likewise.
24798
24799 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
24800
24801 * common.opt (fdelete-null-pointer-checks): Init to -1.
24802 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
24803 override flag_delete_null_pointer_checks default.
24804 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
24805 behavior re address zero. Better document target-specific behavior.
24806 (-fisolate-errneous-paths-dereference): Mention relationship to
24807 -fdelete-null-pointer-checks.
24808
24809 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24810
24811 PR tree-optimization/65984
24812 * ubsan.c: Include tree-cfg.h.
24813 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
24814 stmt_could_throw_p test, rename can_throw variable to ends_bb.
24815
24816 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24817
24818 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
24819 to CONST_DOUBLE_P predicate.
24820 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
24821 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
24822 allow only operands that satisfy standard_sse_constant_p predicate.
24823 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
24824 to CONST_DOUBLE_P predicate.
24825
24826 2015-05-04 Jeff Law <law@redhat.com>
24827
24828 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
24829 simplifier to narrow arithmetic.
24830 * generic-match-head.c: (types_match, single_use): New functions.
24831 * gimple-match-head.c: (types_match, single_use): New functions.
24832
24833 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
24834
24835 * config/arm/arm.c: Restore bootstrap.
24836
24837 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
24838
24839 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
24840 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
24841 as CONST_WIDE_INT, not CONST_DOUBLE.
24842 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
24843 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
24844 (ix86_find_base_term): Do not check for CONST_DOUBLE.
24845 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
24846 (ix86_build_signbit_mask): Rewrite using wide ints.
24847 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
24848 (ix86_rtx_costs): Handle CONST_WIDE_INT.
24849 (find_constant): Ditto.
24850 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
24851 using gen_int_mode.
24852 * config/i386/predicates.md (x86_64_immediate_operand)
24853 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24854 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
24855 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
24856 (const0_operand): Also match const_wide_int.
24857 (constm1_operand): Ditto.
24858 (const1_operand): Ditto.
24859
24860 2015-05-04 Richard Biener <rguenther@suse.de>
24861
24862 PR tree-optimization/65965
24863 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
24864 store groups at gaps.
24865
24866 2015-05-04 Richard Biener <rguenther@suse.de>
24867
24868 PR tree-optimization/65935
24869 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
24870 then make sure to apply that swapping to the IL.
24871
24872 2015-05-04 Jakub Jelinek <jakub@redhat.com>
24873
24874 * Makefile.in (PATCHLEVEL_c): New variable.
24875 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
24876 expand the same way as if DEVPHASE_c was non-empty.
24877
24878 2015-05-04 Kai Tietz <ktietz@redhat.com>
24879
24880 PR target/65559
24881 * lto-wrapper.c (run_gcc): Open filename
24882 in binary-mode.
24883
24884 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
24885
24886 * doc/extend.texi (Variable Attributes, Type Attributes): Move
24887 sections up in file, to immediately after the Function Attributes
24888 section.
24889
24890 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
24891
24892 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
24893
24894 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24895
24896 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
24897 (insert_partition_copy_on_edge): Adjust.
24898 (insert_rtx_to_part_on_edge): Likewise.
24899 (insert_part_to_rtx_on_edge): Likewise.
24900
24901 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24902
24903 * function.c (set_return_jump_label): Change type of argument to
24904 rtx_insn *.
24905 * function.h (set_return_jump_label): Adjust.
24906
24907 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24908
24909 * reload.h (struct reg_equivs_t): Change type of init to
24910 rtx_insn *.
24911 * ira.c (fix_reg_equiv_init): Adjust.
24912 * reload1.c (eliminate_regs_1): Likewise.
24913 (init_eliminable_invariants): Likewise.
24914
24915 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24916
24917 * cselib.c (fp_setter_insn): Take a rtx_insn *.
24918 * cselib.h (fp_setter_insn): Adjust.
24919
24920 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24921
24922 * recog.c (struct validate_replace_src_data): Change type of
24923 insn field to rtx_insn *.
24924 (validate_replace_src_group): Change type of argument to rtx_insn *.
24925 * recog.h (validate_replace_src_group): Adjust.
24926
24927 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24928
24929 * haifa-sched.c: Change the type of some variables to rtx_insn *.
24930 * sched-deps.c: Likewise.
24931 * sched-int.h: Likewise.
24932 * sched-rgn.c: Likewise.
24933 * sel-sched.c: Likewise.
24934
24935 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24936
24937 to rtx_insn *.
24938 * config/i386/i386.c: Change the type of some arguments to
24939 rtx_insn *.
24940 * config/arm/arm.c: Likewise.
24941
24942 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24943
24944 * lra-constraints.c: Change type of some arguments to rtx_insn *.
24945
24946 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24947
24948 * regcprop.c (kill_autoinc_value): Change type of argument to
24949 rtx_insn *.
24950
24951 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24952
24953 * genrecog.c (print_subroutine): Adjust.
24954 * recog.c (get_bool_attr_mask_uncached): Likewise.
24955 * recog.h (struct recog_data_d): Change the type of insn to
24956 rtx_insn *.
24957
24958 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24959
24960 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
24961
24962 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24963
24964 * df-problems.c (df_set_note): Change type of argument to
24965 rtx_insn *.
24966
24967 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24968
24969 * builtins.c (expand_builtin_trap): Change type of local
24970 variable to rtx_insn *.
24971 (add_sched_insns_for_speculation): Likewise.
24972 (ix86_emit_save_regs): Likewise.
24973 (get_scratch_register_on_entry): Likewise.
24974 (ix86_emit_restore_reg_using_pop): Likewise.
24975 (ix86_emit_leave): Likewise.
24976 (ix86_emit_restore_regs_using_mov): Likewise.
24977 (ix86_expand_epilogue): Likewise.
24978 Likewise.
24979 (rl78_alloc_physical_registers_umul): Likewise.
24980 * cselib.c (discard_useless_locs): Likewise.
24981 (cselib_invalidate_regno): Likewise.
24982 (cselib_invalidate_mem): Likewise.
24983 * function.c (expand_function_start): Likewise.
24984 (emit_use_return_register_into_block): Likewise.
24985 * gcse.c: Likewise.
24986 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
24987 * ifcvt.c (noce_get_alt_condition): Likewise.
24988 * loop-doloop.c (doloop_condition_get): Likewise.
24989 * lra-constraints.c (inherit_in_ebb): Likewise.
24990 * modulo-sched.c (sms_schedule_by_order): Likewise.
24991 * recog.c (next_insn_tests_no_inequality): Likewise.
24992 * reorg.c (emit_delay_sequence): Likewise.
24993 (update_reg_dead_notes): Likewise.
24994 (fix_reg_dead_note): Likewise.
24995 (fill_slots_from_thread): Likewise.
24996 (delete_computation): Likewise.
24997
24998 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
24999
25000 * doc/extend.texi (Variable Attributes): Add menu and proper
25001 @nodes to subsections. Move Microsoft Windows attributes to
25002 their own subsection.
25003 (Type Attributes): Reorganize introduction to remove duplicate
25004 list of attributes. Add menu and proper @nodes to subsections.
25005 Alphabetize the main table of common attributes.
25006
25007 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
25008
25009 * match.pd: New simplification patterns.
25010 (x + (x & 1)) -> ((x + 1) & ~1)
25011 (x & ~(x & y)) -> ((x & ~y))
25012 (x | ~(x | y)) -> ((x | ~y))
25013
25014 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25015
25016 * target.def (attribute_table): Mention that struct attribute_spec
25017 is defined in tree-core.h rather than tree.h
25018 * doc/tm.texi: Regenerate.
25019
25020 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
25021
25022 * genrecog.c (test): Rename to rtx_test. Update rest of file
25023 accordingly.
25024
25025 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
25026
25027 PR translation/65959
25028 * params.h (DEFPARAM): Rename msgid to nocmsgid.
25029
25030 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25031
25032 * gcc/config/aarch64/aarch64-protos.h (tune_params):
25033 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25034 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25035 Return value depending on target.
25036 (generic_tunings): Initialize new target settings.
25037 (cortexa53_tunings): Likewise.
25038 (cortexa57_tunings): Likewise.
25039 (thunderx_tunings): Likewise.
25040 (xgene1_tunings): Likewise.
25041
25042 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25043
25044 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25045 Make Cortex-A53 shift costs more accurate.
25046
25047 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25048
25049 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25050 UNSIGNED_FLOAT.
25051
25052 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25053
25054 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
25055 Calculate cost of op0 and op1 in PLUS and MINUS cases.
25056
25057 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25058
25059 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25060 Add cost of op0 in the compare-with-fpzero case.
25061
25062 2015-04-30 David Malcolm <dmalcolm@redhat.com>
25063
25064 * builtins.c (fold_builtin_1): Remove spurious second
25065 semicolon.
25066 * cgraph.h (symtab_node::get_availability): Likewise.
25067 * opts.c (common_handle_option): Remove spurious second semicolon.
25068 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25069 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25070
25071 2015-04-30 Caroline Tice <cmtice@google.com>
25072
25073 PR gcov-profile/65929
25074 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25075 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25076 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25077 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25078 * doc/tm.texi: Regenerate.
25079 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
25080 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25081 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
25082 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25083
25084 2015-04-30 Marek Polacek <polacek@redhat.com>
25085
25086 * varasm.c (handle_cache_entry): Fix logic.
25087
25088 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25089
25090 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25091 (*extrsi5_insn_uxtw_alt): Likewise.
25092 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25093 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25094 operations.
25095
25096 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25097
25098 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25099 fabd in ABS case.
25100
25101 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25102
25103 * config/aarch64/aarch64.md
25104 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25105 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25106 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25107 appropriately. Handle alternative EON form.
25108
25109 2015-04-30 Renlin Li <renlin.li@arm.com>
25110
25111 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25112 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25113
25114 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25115
25116 PR ipa/65873
25117 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25118 -fstrict-aliasing boundaries.
25119
25120 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25121
25122 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25123 and [SU]MNEGL patterns.
25124
25125 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25126
25127 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25128 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25129 combined arithmetic-shift ops. Properly handle all shift and extend
25130 operations that can occur in combination with PLUS/MINUS.
25131 Rename maybe_fma to compound_p.
25132 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25133 arithmetic and shift operations.
25134
25135 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25136
25137 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25138 rather than arith_shift cost when costing ADD/MINUS of an
25139 extended value.
25140
25141 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25142
25143 PR lto/65948
25144 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25145 to itself.
25146
25147 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
25148
25149 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25150 are for the same position.
25151
25152 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
25153
25154 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
25155 vectorize_loops.
25156 (vectorize_loops): Use it.
25157
25158 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25159
25160 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25161 for aggregate types.
25162 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25163 type to be non_ODR.
25164 * tree.c (need_assembler_name_p): Compute mangled name for
25165 non-fundamental types and integer types.
25166
25167 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
25168
25169 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25170 manual swaps.
25171 * expr.c (expand_expr_real_2): Likewise.
25172
25173 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25174
25175 * tree.c (build_common_builtin_nodes): Do not build
25176 __builtin_alloca_with_align as equivalent of library alloca.
25177
25178 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25179
25180 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25181 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25182 bugus variants.
25183 * tree.c: Include print-tree.h and ipa-utils.h
25184 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25185 (free_lang_data_in_cgraph): Call verify_type.
25186 (verify_type_variant): New function.
25187 (verify_type): New function.
25188 * tree.h (verify_type): Declare.
25189
25190 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
25191
25192 * config/mips/mips-cpus.def: (mips4): Change default processor
25193 from PROCESSOR_R8000 to PROCESSOR_R10000.
25194
25195 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
25196
25197 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25198 la/jalr instead of jal.
25199
25200 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
25201
25202 PR target/65871
25203 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25204 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25205 (setcc+movzbl peephole2): Check also clobbered reg.
25206 (setcc+andl peephole2): Ditto.
25207
25208 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25209
25210 PR libgomp/65099
25211 * config/nvptx/mkoffload.c (target_ilp32): New variable.
25212 (main): Set it depending on "-foffload-abi=[...]".
25213 (compile_native, main): Use it to pass "-m32" or "-m64" to the
25214 compiler.
25215
25216 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25217
25218 PR target/65770
25219 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25220 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25221 Flip lane index back at assembly time for bigendian.
25222
25223 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25224
25225 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25226 * gimplify.c (gimplify_omp_workshare): Use it.
25227
25228 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25229
25230 * Makefile.in (build/genrecog.o): Depend on inchash.h.
25231 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25232 build/inchash.o
25233 * genrecog.c: Rewrite most of the code except for the third page.
25234
25235 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25236
25237 * inchash.h, inchash.c: Include bconfig.h for build objects.
25238 * Makefile.in (build/inchash.o): New rule.
25239
25240 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
25241
25242 PR target/65924
25243 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25244 number in type attribute expression.
25245
25246 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25247
25248 * loop-iv.c (canon_condition): Generalize to all types of integer
25249 constant.
25250
25251 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
25252
25253 * gimple-walk.c: Prune duplicate or unneeded includes.
25254 (walk_gimple_asm): Only call parse_input_constraint or
25255 parse_output_constraint if their findings are used.
25256 Honour parse_input_constraint and parse_output_constraint
25257 result.
25258
25259 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25260
25261 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
25262
25263 2015-04-29 Tom de Vries <tom@codesourcery.com>
25264
25265 PR tree-optimization/65893
25266 * passes.def (pass_all_optimizations): Move pass_stdarg to after
25267 pass_dce.
25268
25269 2015-04-29 Richard Biener <rguenther@suse.de>
25270
25271 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25272 compute GROUP_SIZE for basic-block SLP.
25273 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
25274 take into account gaps.
25275 (vect_get_mask_element): Properly reject references to previous
25276 vectors.
25277 (vect_transform_slp_perm_load): Likewise.
25278
25279 2015-04-29 Christian Bruel <christian.bruel@st.com>
25280
25281 PR target/64835
25282 * config/i386/i386.c (ix86_default_align): New function.
25283 (ix86_override_options_after_change): Call ix86_default_align.
25284 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
25285 (ix86_override_options_after_change): New function.
25286
25287 2015-04-28 Jeff Law <law@redhat.com>
25288
25289 * tree-ssa-dom.c (record_equality); Fix comment typos.
25290
25291 2015-04-28 Tom de Vries <tom@codesourcery.com>
25292
25293 PR tree-optimization/65887
25294 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
25295
25296 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
25297
25298 * doc/extend.texi (Declaring Attributes of Functions): Split into
25299 subsections by target. Alphabetize the table of common attributes.
25300 Rewrite some of the introductory text to reflect the new structure.
25301 Update some cross-references to point to the new subsections.
25302 (Attribute Syntax): Put paragraph about "__" naming here. Remove
25303 duplicate copies in the discussion of function, label, and type
25304 attributes.
25305
25306 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
25307
25308 PR bootstrap/65910
25309 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
25310
25311 2015-04-28 Jason Merrill <jason@redhat.com>
25312
25313 PR c++/65734
25314 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
25315 (finalize_type_size): Respect TYPE_USER_ALIGN.
25316 (layout_type) [ARRAY_TYPE]: Likewise.
25317
25318 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
25319
25320 * config/arm/arm.md (*arm_movt): Fix type attribute.
25321 (*cmpsi_shiftsi): Likewise.
25322 (*cmpsi_shiftsi_swp): Likewise.
25323 (*movsicc_insn): Likewise.
25324 (*cond_move): Likewise.
25325 (*if_plus_move): Likewise.
25326 (*if_move_plus): Likewise.
25327 (*if_arith_move): Likewise.
25328 (*if_move_arith): Likewise.
25329 (*if_shift_move): Likewise.
25330 (*if_move_shift): Likewise.
25331 (*arm_movtas_ze): Likewise.
25332 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
25333 redundancy and type attribute.
25334 (*thumb2_movsi_insn): Fix type attribute.
25335 (*thumb2_addsi_short): Likewise.
25336 (thumb2_addsi3_compare0): Likewise.
25337 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
25338 attributes accordingly.
25339
25340 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25341
25342 PR other/65911
25343 * function.c (pad_to_arg_alignment): Add parentheses.
25344
25345 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
25346
25347 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
25348 libgcc/config/frv/elf-lib.h.
25349
25350 2015-04-28 Tom de Vries <tom@codesourcery.com>
25351
25352 * tree-call-cdce.c: Fix example in header comment.
25353
25354 2015-04-28 Richard Biener <rguenther@suse.de>
25355
25356 PR tree-optimization/62283
25357 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
25358 fails fatally and we are vectorizing a basic-block simply
25359 cause the child to be constructed piecewise.
25360 (vect_analyze_slp_cost_1): Adjust.
25361 (vect_detect_hybrid_slp_stmts): Likewise.
25362 (vect_bb_slp_scalar_cost): Likewise.
25363 (vect_get_constant_vectors): For piecewise constructed
25364 constants place them after the last def.
25365 (vect_get_slp_defs): Adjust.
25366 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
25367 externals for basic-block vectorization.
25368
25369 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25370
25371 PR target/63503
25372 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
25373 aarch64-*-*.
25374 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
25375 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
25376 (AARCH64_TUNE_FMA_STEERING): Likewise.
25377 * config/aarch64/aarch64-cores.def: Set
25378 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
25379 FMUL/FMADD instructions.
25380 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
25381 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
25382 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
25383 * config/aarch64/cortex-a57-fma-steering.h: New file.
25384 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25385
25386 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
25387
25388 * gensupport.c (std_preds): Add missing codes to address_operand entry.
25389
25390 2015-04-28 Richard Biener <rguenther@suse.de>
25391
25392 PR tree-optimization/65851
25393 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
25394 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
25395 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
25396 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
25397 (ccp_visit_phi_node): Adjust.
25398 (evaluate_stmt): For simplifications to SSA names return its
25399 lattice value if that isn't VARYING. Return immediately when
25400 simplified to a constant.
25401 (visit_assignment): Adjust.
25402 (ccp_visit_stmt): Likewise.
25403
25404 2015-04-28 Tom de Vries <tom@codesourcery.com>
25405
25406 PR tree-optimization/65818
25407 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
25408 evaluated.
25409
25410 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25411
25412 * calls.c (save_fixed_argument_area): Don't check
25413 ARGS_GROW_DOWNWARD with the preprocessor.
25414 (restore_fixed_argument_area): Likewise.
25415 (mem_overlaps_already_clobbered_arg_p): Likewise.
25416 (check_sibcall_argument_overlap): Likewise.
25417 (expand_call): Likewise.
25418 (emit_library_call_value_1): Likewise.
25419 (store_one_arg): Likewise.
25420 * function.c (assign_parms): Likewise.
25421 (locate_and_pad_parm): Likewise.
25422 (pad_to_arg_alignment): Likewise.
25423 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25424
25425 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25426
25427 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
25428 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
25429 * calls.c (save_fixed_argument_area): Don't chekc if
25430 ARGS_GROW_DOWNWARD is defined.
25431 (restore_fixed_argument_area): Likewise.
25432 (mem_overlaps_already_clobbered_arg_p): Likewise.
25433 (check_sibcall_argument_overlap): Likewise.
25434 (expand_call): Likewise.
25435 (emit_library_call_value_1): Likewise.
25436 (store_one_arg): Likewise.
25437 * function.c (assign_parms): Likewise.
25438 (locate_and_pad_parm): Likewise.
25439 (pad_to_arg_alignment): Likewise.
25440 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25441
25442 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25443
25444 * defaults.h (gen_epilogue): New function.
25445 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
25446 defined.
25447 * cfgrtl.c (cfg_layout_finalize): Likewise.
25448 * df-scan.c: Likewise.
25449 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25450 (reposition_prologue_and_epilogue_notes): Likewise.
25451 * reorg.c (find_end_label): Likewise.
25452 * toplev.c: Likewise.
25453
25454 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25455
25456 * bb-reorder.c (HAVE_return): Don't check if its undefined.
25457 * defaults.h (gen_simple_return): New function.
25458 (gen_simple_return): Likewise.
25459 (HAVE_return): Add default definition to false.
25460 (HAVE_simple_return): Likewise.
25461 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
25462 HAVE_return and HAVE_simple_return are defined.
25463 * function.c (gen_return_pattern): Likewise.
25464 (convert_jumps_to_returns): Likewise.
25465 (thread_prologue_and_epilogue_insns): Likewise.
25466 * reorg.c (find_end_label): Likewise.
25467 (dbr_schedule): Likewise.
25468 * shrink-wrap.c: Likewise.
25469 * shrink-wrap.h: Likewise.
25470
25471 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25472
25473 * defaults.h (EPILOGUE_USES): Add default definition of false.
25474 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
25475 * resource.c (init_resource_info): Likewise.
25476
25477 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25478
25479 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
25480 to false.
25481 * dwarf2out.c (field_byte_offset): REmove check if
25482 PCC_BITFIELD_TYPE_MATTERS is defined.
25483 * stor-layout.c (layout_decl): Likewise.
25484 (update_alignment_for_field): Likewise.
25485 (place_field): Likewise.
25486
25487 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25488
25489 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
25490 true.
25491 * regrename.c (check_new_reg_p): Remove check if
25492 HARD_REGNO_RENAME_OK is defined.
25493 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
25494
25495 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25496
25497 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
25498 * cse.c (fold_rtx): Likewise.
25499 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
25500 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
25501 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
25502 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
25503 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
25504 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
25505 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
25506 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
25507 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
25508 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
25509 * Likewise.
25510 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
25511 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
25512 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
25513 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
25514 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
25515 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
25516 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
25517 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
25518 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
25519 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
25520 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
25521 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
25522 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
25523 * doc/tm.texi: Regenerate.
25524 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
25525 either true or false.
25526
25527 2015-04-27 Jeff Law <law@redhat.com>
25528
25529 PR tree-optimization/65217
25530 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
25531 of them has a single use, make sure it is the LHS of the implied
25532 copy.
25533
25534 2015-04-28 Alan Modra <amodra@gmail.com>
25535
25536 PR target/65810
25537 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
25538 (offsettable_ok_by_alignment): Use minimum of decl and toc
25539 pointer alignment. Replace dead code with assertion.
25540 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
25541 case if size exceeds toc pointer alignment.
25542 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
25543 (rs6000_emit_move): Likewise.
25544 * configure.ac: Add linker toc pointer alignment check.
25545 * configure: Regenerate.
25546 * config.in: Regenerate.
25547
25548 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
25549
25550 * config.gcc: Add h8300-*-linux.
25551 * config/h8300/linux.h: New.
25552 * config/h8300/t-linux: New.
25553 * config/h8300/h8300.c (h8300_option_override): Normal mode
25554 is not supported for h8300-*-linux.
25555 (h8300_file_start): Target priority change.
25556 (get_shift_alg): Likewise.
25557 (h8300_shift_need_scratch_p): Likewise.
25558 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
25559 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
25560
25561 2015-04-27 Caroline Tice <cmtice@google.com>
25562
25563 * final.c (final_scan_insn): Output cold_function_name as function
25564 type.
25565 * varasm.c (cold_function_name): Make global.
25566 (assemble_start_function): Re-set cold_function_name.
25567 (assemble_end_function): Output cold partition size.
25568 * varasm.h (cold_function_name): Declare global.
25569
25570 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
25571
25572 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
25573 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
25574 constraint.
25575 (*movxi_internal_avx512f): Ditto.
25576 (define_split): Check for xmm16+, when splitting scalar float_extend.
25577 (*extendsfdf2_mixed): Use "v" constraint.
25578 (define_split): Check for xmm16+, when splitting scalar float_truncate.
25579 (*truncdfsf_fast_sse): Use "v" constraint.
25580 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
25581 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
25582 (define_peephole2): Check for xmm16+, when converting scalar
25583 float_truncate.
25584 (define_peephole2): Check for xmm16+, when converting scalar
25585 float_extend.
25586 (*fop_<mode>_comm_mixed): Use "v" constraint.
25587 (*fop_<mode>_comm_sse): Ditto.
25588 (*fop_<mode>_1_mixed): Ditto.
25589 (*sqrt<mode>2_sse): Ditto.
25590 (*ieee_s<ieee_maxmin><mode>3): Ditto.
25591
25592 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25593
25594 * combine.c (simplify_if_then_else): Use std::swap instead
25595 of manually swapping.
25596 (known_cond): Likewise.
25597 (simplify_comparison): Likewise.
25598
25599 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
25600
25601 PR target/64579
25602 * config/rs6000/htm.md: Remove all define_expands.
25603 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
25604 UNSPECV_HTM_TABORTWCI): Remove.
25605 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
25606 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
25607 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
25608 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
25609 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
25610 tabortwci_internal): Remove define_insns.
25611 (tabort<wd>c, tabort<wd>ci): New define_insns.
25612 (tabort): Use gpc_reg_operand.
25613 (tcheck): Remove operand.
25614 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
25615 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
25616 expected value.
25617 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
25618 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
25619 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
25620 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
25621 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
25622 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
25623 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
25624 (tcheck): Remove builtin argument.
25625 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
25626 not TARGET_64BIT.
25627 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
25628 tabortdc and tabortdci builtins when not in 64-bit mode.
25629 Modify code to handle the loss of the HTM define_expands.
25630 Emit code to copy the CR register to TARGET.
25631 (htm_init_builtins): Modify code to handle the loss of the HTM
25632 define_expands.
25633 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
25634 (RS6000_BTC_64BIT): Likewise.
25635 (RS6000_BTC_CR): New macro.
25636 * doc/extend.texi: Update documentation for htm builtins.
25637
25638 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25639
25640 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
25641 of manually swapping.
25642 (simplify_associative_operation): Likewise.
25643 (simplify_binary_operation): Likewise.
25644 (simplify_plus_minus): Likewise.
25645 (simplify_relational_operation): Likewise.
25646 (simplify_ternary_operation): Likewise.
25647
25648 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
25649
25650 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
25651 (xs_hi_nonmemory_operand): Remove error.
25652 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
25653 general_operand rather than xs_hi_general_operand.
25654
25655 2015-04-27 Richard Biener <rguenther@suse.de>
25656
25657 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
25658 (record_equivalences_from_stmt): Valueize rhs.
25659 (record_equality): Canonicalize x and y order via
25660 tree_swap_operands_p. Do not swap operands for same loop depth.
25661
25662 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
25663
25664 PR target/65296
25665 PR target/65895
25666 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
25667 Add hint how to use own spec file.
25668
25669 2015-04-27 Jakub Jelinek <jakub@redhat.com>
25670
25671 PR tree-optimization/65875
25672 * tree-vrp.c (update_value_range): If in is_new case setting
25673 old_vr to VR_VARYING, also set new_vr to it. Remove
25674 old_vr->type == VR_VARYING test.
25675 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
25676 SSA_PROP_INTERESTING if update_value_range returned true,
25677 but new range is VR_VARYING.
25678
25679 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
25680
25681 * combine.c (sign_extend_short_imm): New.
25682 (set_nonzero_bits_and_sign_copies): Use above new function for sign
25683 extension of src short immediate.
25684 (reg_nonzero_bits_for_combine): Likewise for tem.
25685
25686 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25687
25688 * stor-layout.c (self_referential_component_ref_p): New predicate.
25689 (copy_self_referential_tree_r): Use it.
25690 (self_referential_size): Punt for simple operations directly involving
25691 self-referential component references.
25692 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
25693
25694 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
25695
25696 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
25697
25698 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
25699
25700 * vec.h (vec): Make splice arguments const. Update definitions
25701 accordingly.
25702
25703 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
25704
25705 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
25706 alternatives.
25707
25708 2015-04-26 Tom de Vries <tom@codesourcery.com>
25709
25710 PR tree-optimization/65826
25711 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
25712
25713 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
25714
25715 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
25716 (*madd3<mode>): Ditto.
25717 (*msub4<mode>): Ditto.
25718 (*msub3<mode>): Ditto.
25719 (*nmadd4<mode>): Ditto.
25720 (*nmadd3<mode>): Ditto.
25721 (*nmadd4<mode>_fastmath): Ditto.
25722 (*nmadd3<mode>_fastmath): Ditto.
25723 (*nmsub4<mode>): Ditto.
25724 (*nmsub3<mode>): Ditto.
25725 (*nmsub4<mode>_fastmath): Ditto.
25726 (*nmsub3<mode>_fastmath): Ditto.
25727
25728 2015-04-24 Jason Merrill <jason@redhat.com>
25729
25730 PR c++/50800
25731 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
25732 down when building TYPE_CANONICAL.
25733 (build_pointer_type_for_mode): Likewise.
25734
25735 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
25736
25737 * genrecog.c (validate_pattern): Check matching constraint refers
25738 to a lower numbered operand.
25739
25740 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25741
25742 PR target/65849
25743 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
25744 save to independent variables use the Save attribute. This will
25745 allow these options to be modified with the #pragma/attribute
25746 target support.
25747 (-mallow-movmisalign): Likewise.
25748 (-mallow-df-permute): Likewise.
25749 (-msched-groups): Likewise.
25750 (-malways-hint): Likewise.
25751 (-malign-branch-targets): Likewise.
25752 (-mvectorize-builtins): Likewise.
25753 (-msave-toc-indirect): Likewise.
25754
25755 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
25756 can be set via the #pragma/attribute target support.
25757 (rs6000_opt_vars): Likewise.
25758 (rs6000_inner_target_options): If VSX was set, also set
25759 -mno-avoid-indexed-addresses.
25760
25761 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25762
25763 * config/arm/iterators.md (shiftable_ops): Rename to...
25764 (SHIFTABLE_OPS): ... This. Update use in comments.
25765 (ior_xor): Rename to...
25766 (IOR_XOR): ... This.
25767 (vqh_ops): Rename to...
25768 (VQH_OPS): ... This.
25769 (vqhs_ops): Rename to...
25770 (VQHS_OPS): ... This.
25771 (rshifts): Rename to...
25772 (RSHIFTS): ... This.
25773 (returns): Rename to...
25774 (RETURNS): ... This.
25775 * config/arm/arm.md: Update uses of the above.
25776 * config/arm/neon.md: Likewise.
25777
25778 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25779
25780 * config.host (case ${host}): Add aarch64*-*-linux case.
25781 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
25782 fields to all the cores.
25783 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
25784 Add MCPU_MTUNE_NATIVE_SPECS.
25785 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
25786 field to all extensions.
25787 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
25788 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
25789 Adjust definition of AARCH64_OPT_EXTENSION.
25790 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
25791 (MCPU_MTUNE_NATIVE_SPECS): Define.
25792 * config/aarch64/driver-aarch64.c: New file.
25793 * config/aarch64/x-arch64: New file.
25794 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
25795 -mtune and -march.
25796
25797 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25798 Wei Mi <wmi@google.com>
25799
25800 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
25801 * config/i386/i386.c (extract_base_offset_in_addr): New function.
25802 (ix86_operands_ok_for_move_multiple): Ditto.
25803 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
25804 (movlpd/movhpd to movupd peephole2): Ditto.
25805
25806 2015-04-24 Marek Polacek <polacek@redhat.com>
25807
25808 PR c/61534
25809 * input.h (from_macro_expansion_at): Define.
25810
25811 PR c/63357
25812 * doc/invoke.texi: Update description of -Wlogical-op.
25813
25814 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25815
25816 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
25817 ternary operator in fprintf and harmonize spacing.
25818
25819 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25820
25821 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
25822 Mark operand1 commutative.
25823
25824 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
25825
25826 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
25827 input operands in memory.
25828 (*vec_concatv2si_sse4_1): Ditto.
25829 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
25830 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
25831 register_operand.
25832 (vec_extract_hi_v32hi): Ditto.
25833 (vec_extract_hi_v64hi): Ditto.
25834 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
25835
25836 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
25837 Steven Bosscher <steven@gcc.gnu.org>
25838
25839 PR rtl-optimization/34503
25840 * cprop.c (cprop_reg_p): New.
25841 (hash_scan_set): Use above function to check if register can be
25842 propagated.
25843 (find_avail_set): Return up to two sets, one whose source is a
25844 register and one whose source is a constant. Sets are returned in an
25845 array passed as parameter rather than as a return value.
25846 (cprop_insn): Use a do while loop rather than a goto. Try each of the
25847 sets returned by find_avail_set, starting with the one whose source is
25848 a constant. Use cprop_reg_p to check if register can be propagated.
25849 (do_local_cprop): Use cprop_reg_p to check if register can be
25850 propagated.
25851 (implicit_set_cond_p): Likewise.
25852
25853 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25854
25855 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
25856 (sem_function::equals): IGNORED_NODES parameter is now unused;
25857 update call of equals_private.
25858 (sem_function::equals_private): Do not call equals_wpa; skip
25859 gimple body matching if there is no body.
25860 (sem_function::init): Add logic to hash tthunk info.
25861 (sem_function::parse): Also parse thunks.
25862 * ipa-icf.h (equals_private): Update declaration.
25863
25864 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25865
25866 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
25867 asterisk from name so this can be generated directly.
25868 (*altivec_stvx_<mode>_internal): Likewise.
25869 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
25870 that this is never called during or after reload/lra.
25871 (rs6000_frame_related): Remove split_reg
25872 argument and logic that references it.
25873 (emit_frame_save): Remove last parameter from call to
25874 rs6000_frame_related.
25875 (rs6000_emit_prologue): Remove last parameter from eight calls to
25876 rs6000_frame_related. Force generation of stvx instruction for
25877 Altivec register saves. Remove split_reg handling, which is no
25878 longer needed.
25879 (rs6000_emit_epilogue): Force generation of lvx instruction for
25880 Altivec register restores.
25881
25882 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25883
25884 * config/rs6000/rs6000.opt (mcrypto): Change option description to
25885 match category changes in ISA 2.07B.
25886
25887 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25888
25889 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
25890 iterators.
25891 (cmp_op, cmp_type): New code attributes.
25892 (NEON_VCMP, NEON_VACMP): New int iterators.
25893 (cmp_op_unsp): New int attribute.
25894 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
25895 (neon_vceq<mode>): Delete.
25896 (neon_vc<cmp_op><mode>_insn): New pattern.
25897 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
25898 (neon_vcgeu<mode>): Delete.
25899 (neon_vcle<mode>): Likewise.
25900 (neon_vclt<mode>: Likewise.
25901 (neon_vcage<mode>): Likewise.
25902 (neon_vcagt<mode>): Likewise.
25903 (neon_vca<cmp_op><mode>): New define_expand.
25904 (neon_vca<cmp_op><mode>_insn): New pattern.
25905 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
25906
25907 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25908
25909 * tree.h (attribute_value_equal): Declare.
25910 * tree.c (attribute_value_equal): Export.
25911
25912 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25913
25914 * ipa-icf.c (sem_item::compare_attributes): New function.
25915 (sem_item::compare_referenced_symbol_properties): Compare variable
25916 attributes.
25917 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
25918 (sem_function::param_used_p): New function.
25919 (sem_function::equals_wpa): Fix attribute comparsion; match
25920 parameter type codes; do not compare paremter flags when
25921 they are not used; compare edge flags; compare indirect calls.
25922 (sem_item::update_hash_by_addr_refs): Hash reference type.
25923 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
25924 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
25925 reference use type.
25926 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
25927 * ipa-icf.h (compare_attributes, param_used_p): Declare.
25928
25929 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
25930
25931 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
25932 cleanup.
25933 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
25934 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
25935 (sem_item::compare_referenced_symbol_properties): New.
25936 (sem_item::hash_referenced_symbol_properties): New.
25937 (sem_item::compare_cgraph_references): Rename to ...
25938 (sem_item::compare_symbol_references): ... this one; use
25939 compare_referenced_symbol_properties.
25940 (sem_function::equals_wpa): Do not compare
25941 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
25942 DECL_IS_OPERATOR_NEW; compare pointer sizes.
25943 (sem_item::update_hash_by_addr_refs): Call
25944 hash_referenced_symbol_properties.
25945 (sem_item::update_hash_by_local_refs): Cleanup.
25946 (sem_function::merge): Do not mix up symbol properties.
25947 (sem_variable::equals_wpa): Use compare_symbol_references.
25948 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
25949 (sem_item::hash_referenced_symbol_properties): New.
25950 (sem_item::compare_symbol_references): New.
25951 (sem_item::compare_cgraph_references): Remove.
25952
25953 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
25954
25955 PR target/26702
25956 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
25957 Emit size of local.
25958
25959 2015-04-23 Nick Clifton <nickc@redhat.com>
25960
25961 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
25962 ATTRIBUTE_UNUSED to x parameter.
25963 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
25964
25965 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25966
25967 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
25968 TARGET_CRYPTO to TARGET_P8_VECTOR>
25969 (crypto_vpermxor_<mode>): Likewise.
25970 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
25971 (BU_CRYPTO_3A): Likewise.
25972 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
25973 (BU_CRYPTO_OVERLOAD_3A): New #define.
25974 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
25975 (VPMSUMH): Likewise.
25976 (VPMSUMW): Likewise.
25977 (VPMSUMD): Likewise.
25978 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
25979 (VPERMXOR_V4SI): Likewise.
25980 (VPERMXOR_V8HI): Likewise.
25981 (VPERMXOR_V16QI): Likewise.
25982 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
25983 BU_CRYPTO_OVERLOAD_2A.
25984 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
25985 BU_CRYPTO_OVERLOAD_3A.
25986 * config/rs6000/rs6000.opt (mcrypto): Change description of
25987 option.
25988
25989 2015-04-23 Richard Biener <rguenther@suse.de>
25990
25991 * passes.def: Remove copy propagation passes run directly after CCP.
25992 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
25993 SSA names.
25994 (ccp_visit_phi_node): Rework to handle first executable edge
25995 specially.
25996
25997 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
25998
25999 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26000 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26001 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26002 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26003 (thumb_legimitimize_reload_address): Remove.
26004 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26005 Remove.
26006 (thumb_legimitimize_reload_address): Remove.
26007
26008 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26009
26010 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26011
26012 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26013
26014 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26015 MAX_LDM_STM_OPS.
26016 (store_multiple): Likewise.
26017
26018 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26019
26020 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26021 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26022 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26023 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26024 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26025 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26026 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26027 Specify issue_rate value.
26028 (arm_issue_rate): Look up issue rate from tuning structs. Remove
26029 large switch statement.
26030 (arm_marvell_pj4_tune): New struct.
26031 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26032 struct.
26033
26034 2015-04-23 Richard Biener <rguenther@suse.de>
26035
26036 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26037 (vect_find_last_store_in_slp_instance): Rename to ...
26038 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26039 (vect_analyze_slp_cost_1): Use vector_load for constant defs
26040 and vec_construct for external defs when estimating prologue cost.
26041 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26042 Compute costs here only when vectorizing loops.
26043 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26044 have been determined.
26045 (vect_schedule_slp_instance): Simplify vectorized code placement
26046 and prepare for in-BB external defs.
26047 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26048 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26049 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26050 guard.
26051 (vect_model_load_cost): Likewise.
26052 (vectorizable_store): Instead add it here.
26053 (vectorizable_load): Likewise.
26054 (vect_is_simple_use): Dump def type textually.
26055
26056 2015-04-23 Richard Biener <rguenther@suse.de>
26057
26058 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26059 * cfgloop.c (verify_loop_structure): Verify the root loop node.
26060 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26061 instead of get_eh_region_from_lp_number.
26062 * loop-init.c (fix_loop_structure): If we removed a loop, reset
26063 the SCEV cache.
26064
26065 2015-04-23 Anton Blanchard <anton@samba.org>
26066
26067 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26068 need for -mprofile-kernel to save LR to stack.
26069
26070 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26071
26072 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26073 adjustments.
26074 (insn_is_swappable_p): Return 1 for a convert from double to
26075 single precision when all of its uses are splats of BE element
26076 zero.
26077
26078 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
26079
26080 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26081
26082 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26083
26084 PR target/65456
26085 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
26086 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26087 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26088 option.
26089 (rs6000_builtin_mask_for_load): Return 0 for targets with
26090 efficient unaligned VSX accesses so that the vectorizer will use
26091 direct unaligned loads.
26092 (rs6000_builtin_support_vector_misalignment): Always return true
26093 for targets with efficient unaligned VSX accesses.
26094 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26095 stores on targets with efficient unaligned VSX accesses is almost
26096 always the same as the cost of an aligned load or store, so model
26097 it that way.
26098 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26099 unaligned vectors if we have efficient unaligned VSX accesses.
26100 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26101 undocumented option.
26102
26103 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26104
26105 Revert:
26106 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26107
26108 * config.gcc (LIBC_MUSL): New tm_defines macro.
26109 * config/linux.h (OPTION_MUSL): Define.
26110 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26111 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26112 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26113
26114 * config/linux.opt (mmusl): New option.
26115 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26116 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26117
26118 * configure: Regenerate.
26119
26120 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26121
26122 * config.gcc (LIBC_MUSL): New tm_defines macro.
26123 * config/linux.h (OPTION_MUSL): Define.
26124 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26125 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26126 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26127
26128 * config/linux.opt (mmusl): New option.
26129 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26130 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26131
26132 * configure: Regenerate.
26133
26134 2015-04-22 Yury Gribov <y.gribov@samsung.com>
26135
26136 * doc/invoke.texi (-fsanitize-sections): Update description.
26137 * asan.c (set_sanitized_sections): Parse incoming arg.
26138 (section_sanitized_p): Support wildcards.
26139
26140 2015-04-22 Tom de Vries <tom@codesourcery.com>
26141
26142 PR tree-optimization/65823
26143 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26144 equality between ap_copy and ap.
26145
26146 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26147
26148 PR target/47098
26149 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26150
26151 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26152
26153 PR target/47122
26154 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26155
26156 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26157
26158 PR target/55144
26159 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26160 remove already contained t-files.
26161
26162 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26163
26164 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26165 Remove unneeded forward declarations.
26166 (suitable_for_tail_call_opt_p): Commentary typo fix.
26167
26168 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26169
26170 * varasm.c (emit_bss): Remove redundant guard.
26171
26172 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26173
26174 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26175
26176 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26177
26178 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26179
26180 2015-04-22 Hale Wang <hale.wang@arm.com>
26181 Terry Guo <terry.guo@arm.com>
26182
26183 PR rtl-optimization/64818
26184 * combine.c (can_combine_p): Don't combine user-specified
26185 register if it is in an asm input.
26186
26187 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
26188
26189 PR ipa/65076
26190 * passes.def (early_optimizations): Add pass_dse.
26191
26192 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26193
26194 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26195 * reorg.c (redundant_insn): Remove ifdef
26196 INSN_REFERENCES_ARE_DELAYED.
26197 * resource.c (mark_referenced_resources): Likewise.
26198
26199 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26200
26201 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26202 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26203 * resource.c (mark_set_resources): Likewise.
26204
26205 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26206
26207 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26208 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26209 (flow_find_head_matching_sequence): Likewise.
26210 (try_head_merge_bb): Likewise.
26211 * combine.c (can_combine_p): Likewise.
26212 (try_combine): Likewise.
26213 (distribute_notes): Likewise.
26214 * df-problems.c (can_move_insns_across): Likewise.
26215 * final.c (final): Likewise.
26216 * gcse.c (insert_insn_end_basic_block): Likewise.
26217 * ira.c (find_moveable_pseudos): Likewise.
26218 * reorg.c (try_merge_delay_insns): Likewise.
26219 (fill_simple_delay_slots): Likewise.
26220 (fill_slots_from_thread): Likewise.
26221 * sched-deps.c (sched_analyze_2): Likewise.
26222
26223 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26224
26225 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26226 PIC_OFFSET_TABLE_REGNUM.
26227
26228 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26229
26230 * alias.c (init_alias_target): Remove ifdef
26231 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26232 * df-scan.c (df_insn_refs_collect): Likewise.
26233 (df_get_regular_block_artificial_uses): Likewise.
26234 (df_get_eh_block_artificial_uses): Likewise.
26235 (df_get_entry_block_def_set): Likewise.
26236 (df_get_exit_block_use_set): Likewise.
26237 * emit-rtl.c (gen_rtx_REG): Likewise.
26238 * ira.c (ira_setup_eliminable_regset): Likewise.
26239 * reginfo.c (init_reg_sets_1): Likewise.
26240 * regrename.c (rename_chains): Likewise.
26241 * reload1.c (reload): Likewise.
26242 (eliminate_regs_in_insn): Likewise.
26243 * resource.c (mark_referenced_resources): Likewise.
26244 (init_resource_info): Likewise.
26245
26246 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26247
26248 * defaults.h (MASK_RETURN_ADDR): New definition.
26249 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26250 MASK_RETURN_ADDR.
26251
26252 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26253
26254 * defaults.h (RETURN_ADDR_OFFSET): New definition.
26255 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26256 RETURN_ADDR_OFFSET.
26257 (expand_builtin_frob_return_addr): Likewise.
26258
26259 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26260
26261 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
26262 (try_redirect_by_replacing_jump): Likewise.
26263 (rtl_tidy_fallthru_edge): Likewise.
26264 * combine.c (insn_a_feeds_b): Likewise.
26265 (find_split_point): Likewise.
26266 (simplify_set): Likewise.
26267 * cprop.c (cprop_jump): Likewise.
26268 * cse.c (cse_extended_basic_block): Likewise.
26269 * df-problems.c (can_move_insns_across): Likewise.
26270 * function.c (emit_use_return_register_into_block): Likewise.
26271 * haifa-sched.c (sched_init): Likewise.
26272 * ira.c (find_moveable_pseudos): Likewise.
26273 * loop-invariant.c (find_invariant_insn): Likewise.
26274 * lra-constraints.c (curr_insn_transform): Likewise.
26275 * postreload.c (reload_combine_recognize_const_pattern):
26276 * Likewise.
26277 * reload.c (find_reloads): Likewise.
26278 * reorg.c (delete_scheduled_jump): Likewise.
26279 (steal_delay_list_from_target): Likewise.
26280 (steal_delay_list_from_fallthrough): Likewise.
26281 (redundant_insn): Likewise.
26282 (fill_simple_delay_slots): Likewise.
26283 (fill_slots_from_thread): Likewise.
26284 (delete_computation): Likewise.
26285 * sched-rgn.c (add_branch_dependences): Likewise.
26286
26287 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26288
26289 * genconfig.c (main): Always define HAVE_cc0.
26290 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
26291 HAVE_cc0.
26292 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26293 (flow_find_head_matching_sequence): Likewise.
26294 (try_head_merge_bb): Likewise.
26295 * cfgrtl.c (rtl_merge_blocks): Likewise.
26296 (try_redirect_by_replacing_jump): Likewise.
26297 (rtl_tidy_fallthru_edge): Likewise.
26298 * combine.c (do_SUBST_MODE): Likewise.
26299 (insn_a_feeds_b): Likewise.
26300 (combine_instructions): Likewise.
26301 (can_combine_p): Likewise.
26302 (try_combine): Likewise.
26303 (find_split_point): Likewise.
26304 (subst): Likewise.
26305 (simplify_set): Likewise.
26306 (distribute_notes): Likewise.
26307 * cprop.c (cprop_jump): Likewise.
26308 * cse.c (cse_extended_basic_block): Likewise.
26309 * df-problems.c (can_move_insns_across): Likewise.
26310 * final.c (final): Likewise.
26311 (final_scan_insn): Likewise.
26312 * function.c (emit_use_return_register_into_block): Likewise.
26313 * gcse.c (insert_insn_end_basic_block): Likewise.
26314 * haifa-sched.c (sched_init): Likewise.
26315 * ira.c (find_moveable_pseudos): Likewise.
26316 * loop-invariant.c (find_invariant_insn): Likewise.
26317 * lra-constraints.c (curr_insn_transform): Likewise.
26318 * optabs.c (prepare_cmp_insn): Likewise.
26319 * postreload.c (reload_combine_recognize_const_pattern):
26320 * Likewise.
26321 * reload.c (find_reloads): Likewise.
26322 (find_reloads_address_1): Likewise.
26323 * reorg.c (delete_scheduled_jump): Likewise.
26324 (steal_delay_list_from_target): Likewise.
26325 (steal_delay_list_from_fallthrough): Likewise.
26326 (try_merge_delay_insns): Likewise.
26327 (redundant_insn): Likewise.
26328 (fill_simple_delay_slots): Likewise.
26329 (fill_slots_from_thread): Likewise.
26330 (delete_computation): Likewise.
26331 (relax_delay_slots): Likewise.
26332 * sched-deps.c (sched_analyze_2): Likewise.
26333 * sched-rgn.c (add_branch_dependences): Likewise.
26334
26335 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26336
26337 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
26338 that is trivially ded on non cc0 targets.
26339 (simplify_set): Likewise.
26340 (mark_used_regs_combine): Likewise.
26341 * cse.c (new_basic_block): Likewise.
26342 (fold_rtx): Likewise.
26343 (cse_insn): Likewise.
26344 (cse_extended_basic_block): Likewise.
26345 (set_live_p): Likewise.
26346 * rtlanal.c (canonicalize_condition): Likewise.
26347 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
26348
26349 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26350
26351 * conditions.h: Define macros even if HAVE_cc0 is undefined.
26352 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
26353 * final.c: Likewise.
26354 * jump.c: Likewise.
26355 * recog.c: Likewise.
26356 * recog.h: Declare functions even when HAVE_cc0 is undefined.
26357 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
26358
26359 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26360
26361 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
26362 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
26363 * builtins.c (expand_builtin): Remove check if
26364 EH_RETURN_DATA_REGNO is defined.
26365 * df-scan.c (df_bb_refs_collect): Likewise.
26366 (df_get_exit_block_use_set): Likewise.
26367 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
26368 * ira-lives.c (process_bb_node_lives): Likewise.
26369 * lra-lives.c (process_bb_lives): Likewise.
26370
26371 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26372
26373 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
26374 FIRST_PSEUDO_REG): New.
26375 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
26376 (ARG_POINTER_REGNUM): Define to ARGP_REG.
26377 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
26378 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
26379 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
26380 (FIRST_INT_REG): New.
26381 (LAST_INT_REG): New.
26382 (FIRST_*_REG): Define using *_REG.
26383 (LAST_*_REG): Ditto.
26384 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
26385 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
26386 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
26387
26388 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26389
26390 * expmed.c: (synth_mult): Only assume overlapping
26391 shift with previous steps in alg_sub_t_m2 case.
26392
26393 2015-04-21 Richard Biener <rguenther@suse.de>
26394
26395 PR tree-optimization/65650
26396 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
26397 transitions involving copies.
26398 (set_lattice_value): Adjust for copy lattice state.
26399 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
26400 if that doesn't dominate the merge point.
26401 (bit_value_unop): Adjust what we treat as varying mask.
26402 (bit_value_binop): Likewise.
26403 (bit_value_assume_aligned): Likewise.
26404 (evaluate_stmt): When we simplified to a SSA name record a copy
26405 instead of dropping to varying.
26406 (visit_assignment): Simplify.
26407
26408 * gimple-match.h (gimple_simplify): Add another callback.
26409 * gimple-fold.c (fold_stmt_1): Adjust caller.
26410 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
26411 for the 2nd callback.
26412 * gimple-match-head.c (gimple_simplify): Add a callback that is
26413 used to valueize the stmt operands and use it that way.
26414
26415 2015-04-21 Richard Biener <rguenther@suse.de>
26416
26417 PR tree-optimization/65788
26418 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
26419
26420 2015-04-21 Richard Biener <rguenther@suse.de>
26421
26422 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
26423 vec_construct cost by vec_stmt_cost.
26424
26425 2015-04-21 Richard Biener <rguenther@suse.de>
26426
26427 * cfghooks.h (create_basic_block): Replace with two overloads
26428 for RTL and GIMPLE.
26429 (split_block): Likewise.
26430 * cfghooks.c (split_block): Rename to ...
26431 (split_block_1): ... this.
26432 (split_block): Add two type-safe overloads for RTL and GIMPLE.
26433 (split_block_after_labels): Call split_block_1.
26434 (create_basic_block): Rename to ...
26435 (create_basic_block_1): ... this.
26436 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
26437 (create_empty_bb): Call create_basic_block_1.
26438 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
26439 split_block_after_labels.
26440 * omp-low.c (expand_parallel_call): Likewise.
26441 (expand_omp_target): Likewise.
26442 (simd_clone_adjust): Likewise.
26443 * tree-chkp.c (chkp_get_entry_block): Likewise.
26444 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
26445 create_basic_block overload.
26446 (cgraph_node::expand_thunk): Likewise.
26447 * tree-cfg.c (make_blocks): Likewise.
26448 (handle_abnormal_edges): Likewise.
26449 * tree-inline.c (copy_bb): Likewise.
26450
26451 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26452
26453 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
26454 New pattern.
26455 (*xor_one_cmplsidi3_ze): Likewise.
26456
26457 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
26458
26459 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
26460 use df_remove_problem rather than manually removing problems, leaving
26461 holes in df->problems_in_order[].
26462
26463 2015-04-21 Tom de Vries <tom@codesourcery.com>
26464
26465 PR tree-optimization/65802
26466 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
26467
26468 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26469
26470 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
26471 Increase to 128.
26472 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
26473 at '.'. Assert that there's enough space for everything.
26474
26475 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
26476
26477 PR tree-optimization/64950
26478 Revert:
26479 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
26480
26481 PR target/41089
26482 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
26483 as volatile.
26484
26485 2015-04-20 Shiva Chen <shiva0217@gmail.com>
26486
26487 PR rtl-optimization/64916
26488 * cfgcleanup.c (values_equal_p): New function.
26489 (can_replace_by): Use it.
26490
26491 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
26492
26493 PR c++/65801
26494 * doc/invoke.texi ([-Wnarrowing]): Update.
26495
26496 2015-04-20 Jeff Law <law@redhat.com>
26497
26498 PR tree-optimization/65658
26499 * tree-ssa-threadupdate.c (redirection_block_p): Remove
26500 redundant test for GIMPLE_ASSIGN in last change.
26501
26502 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
26503
26504 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
26505 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
26506 (legitimize_tls_address): Ditto.
26507 (ix86_expand_move): Ditto.
26508 (ix86_expand_binary_operator): Remove reload_in_progress checks.
26509 (ix86_expand_unary_operator): Ditto.
26510 * config/i386/predicates.md (index_register_operand): Ditto.
26511
26512 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
26513
26514 * reorg.c (try_merge_delay_insns): Improve correctness checking
26515 for targets with multiple delay slots.
26516
26517 2015-04-20 Jeff Law <law@redhat.com>
26518
26519 PR tree-optimization/65658
26520 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
26521 statements too.
26522
26523 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
26524
26525 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
26526 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
26527 Delete.
26528
26529 2015-04-20 Jakub Jelinek <jakub@redhat.com>
26530
26531 PR debug/65807
26532 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
26533
26534 2015-04-20 Richard Biener <rguenther@suse.de>
26535
26536 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
26537 * gimple-fold.c (gimple_build_valueize): New function.
26538 (gimple_build): Always use gimple_build_valueize as valueize hook.
26539
26540 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
26541
26542 PR target/64134
26543 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
26544 and overwrite variable parts if <= 1/2 the elements are variable.
26545
26546 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
26547
26548 PR rtl-optimization/65805
26549 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
26550 Don't use difference of offset and previous offset if
26551 update_sp_offset is non-zero.
26552 (eliminate_regs_in_insn): Ditto.
26553 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
26554 lra_eliminate_regs_1 call.
26555 * lra-constraints.c (get_equiv_with_elimination): Ditto.
26556
26557 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
26558
26559 * hash-table.h: Remove version of hash_table that stored value_type *.
26560 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
26561 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
26562 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
26563 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
26564 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
26565 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
26566 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
26567 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
26568 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
26569 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
26570 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
26571 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
26572 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
26573 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
26574 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
26575 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
26576
26577 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26578 Jakub Jelinek <jakub@redhat.com>
26579
26580 PR target/65787
26581 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
26582 subsequent SH_NONE operand does not overwrite an existing *special
26583 value.
26584 (adjust_extract): Handle case where a vec_extract operation is
26585 wrapped in a PARALLEL.
26586
26587 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
26588
26589 PR target/65780
26590 * config/i386/i386.c (ix86_binds_local_p): Define only if
26591 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
26592
26593 2015-04-17 Jeff Law <law@redhat.com>
26594
26595 PR tree-optimization/47679
26596 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
26597 * tree-ssa-scopedtables.c: New file.
26598 * tree-ssa-scopedtables.h: New file.
26599 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
26600 (const_and_copies): Change name/type.
26601 (record_const_or_copy): Move into tree-ssa-scopedtables.c
26602 (record_const_or_copy_1): Similarly.
26603 (restore_vars_to_original_value): Similarly.
26604 (pass_dominator::execute): Create and destroy const_and_copies table.
26605 (thread_across_edge): Update passing of const_and_copies.
26606 (record_temporary_equivalence): Use method calls rather than
26607 manipulating const_and_copies directly.
26608 (record_equality, cprop_into_successor_phis): Similarly.
26609 (dom_opt_dom_walker::before_dom_children): Similarly.
26610 (dom_opt_dom_walker::after_dom_children): Similarly.
26611 (eliminate_redundant_computations): Similarly.
26612 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
26613 (record_temporary_equivalence): Likewise.
26614 (invalidate_equivalences): Likewise.
26615 (record_temporary_equivalences_from_phis): Update due to type
26616 change of const_and_copies. Use method calls rather than
26617 manipulating the stack directly.
26618 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
26619 (thread_through_normal_block, thread_across_edge): Likewise.
26620 (thread_across_edge): Likewise.
26621 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
26622 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
26623 of equiv_stack.
26624 (identify_jump_threads): Update due to type change of equiv_stack.
26625 (finalize_jump_threads): Delete the equiv_stack when complete.
26626
26627 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
26628
26629 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26630 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
26631 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
26632
26633 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
26634
26635 PR target/65535
26636 * config.gcc: Exit with a comment when we do not have a major version
26637 number for the FreeBSD target.
26638
26639 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26640
26641 PR target/65689
26642 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
26643 maybe_allows_mem bitfields.
26644 (maybe_allows_none_start, maybe_allows_none_end,
26645 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
26646 maybe_allows_mem_end): New variables.
26647 (compute_maybe_allows): New function.
26648 (add_constraint): Use it to initialize maybe_allows_reg and
26649 maybe_allows_mem fields.
26650 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
26651 is_address constraints such that those that allow neither mem nor
26652 reg come first, then those that only allow reg but not mem, then
26653 those that only allow mem but not reg, then the rest.
26654 (write_allows_reg_mem_function): New function.
26655 (write_tm_preds_h): Call it.
26656 * stmt.c (parse_output_constraint, parse_input_constraint): Use
26657 the generated insn_extra_constraint_allows_reg_mem function
26658 instead of always setting *allows_reg = true; *allows_mem = true;
26659 for unknown extra constraints.
26660
26661 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
26662
26663 PR target/65780
26664 * output.h (default_binds_local_p_3): New.
26665 * varasm.c (default_binds_local_p_3): Make it public. Take an
26666 argument to indicate if common symbol may be local. If common
26667 symbol may be local, treat non-external variable as defined
26668 locally.
26669 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
26670 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
26671 * config/i386/i386.c (ix86_binds_local_p): New.
26672 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
26673 ix86_binds_local_p.
26674
26675 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26676
26677 PR debug/65771
26678 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
26679 trying mem_loc_descriptor on XEXP (rtl, 0).
26680
26681 2015-04-17 Martin Liska <mliska@suse.cz>
26682
26683 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
26684 Release symbol_compare_collection.
26685 * ipa-reference.c: Add TODO that a vector should be released.
26686
26687 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
26688
26689 PR target/65296
26690 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
26691 to new AVR-LibC file layout (bug #44574).
26692 (*avrlibc_devicelib): Same.
26693 * config/avr/avr-mcus.def: Adjust comments.
26694 * config/avr/avr.opt (nodevicelib): Adjust help.
26695
26696 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
26697
26698 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
26699
26700 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
26701
26702 PR c++/64527
26703 * gimplify.c (gimplify_init_constructor): Always emit a
26704 side-effecting constructor.
26705
26706 2015-04-17 Tom de Vries <tom@codesourcery.com>
26707
26708 PR tree-optimization/64950
26709 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
26710 in cfun->curr_properties.
26711 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
26712 if we generate an IFN_VA_ARG.
26713 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
26714 function if PROP_gimple_lva is not set in src function.
26715
26716 2015-04-17 Tom de Vries <tom@codesourcery.com>
26717 Michael Matz <matz@suse.de>
26718
26719 PR tree-optimization/64950
26720 * gimple-iterator.c (update_modified_stmts): Remove static.
26721 * gimple-iterator.h (update_modified_stmts): Declare.
26722 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
26723 (gimplify_va_arg_internal): New function.
26724 (gimplify_va_arg_expr): Use IFN_VA_ARG.
26725 * gimplify.h (gimplify_va_arg_internal): Declare.
26726 * internal-fn.c (expand_VA_ARG): New unreachable function.
26727 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
26728 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
26729 (expand_ifn_va_arg): New function.
26730 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
26731 (pass_stdarg::execute): Call expand_ifn_va_arg.
26732 (pass_data_lower_vaarg): New pass_data.
26733 (pass_lower_vaarg): New gimple_opt_pass.
26734 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
26735 (make_pass_lower_vaarg): New function.
26736 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
26737 properties_required field.
26738 * passes.def (all_passes): Add pass_lower_vaarg.
26739 * tree-pass.h (PROP_gimple_lva): Add define.
26740 (make_pass_lower_vaarg): Declare.
26741
26742 2015-04-17 Tom de Vries <tom@codesourcery.com>
26743
26744 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
26745 * calls.c (call_expr_flags): Same.
26746
26747 2015-04-17 Tom de Vries <tom@codesourcery.com>
26748
26749 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
26750 (pass_stdarg::execute): ... here.
26751
26752 2015-04-17 Tom de Vries <tom@codesourcery.com>
26753 Michael Matz <matz@suse.de>
26754
26755 * tree-cfg.c (make_blocks_1): Factor out of ...
26756 (make_blocks): ... here.
26757 (make_edges_bb): Factor out of ...
26758 (make_edges): ... here.
26759 (gimple_find_sub_bbs): New function.
26760 * tree-cfg.h (gimple_find_sub_bbs): Declare.
26761
26762 2015-04-17 Tom de Vries <tom@codesourcery.com>
26763
26764 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
26765
26766 2015-04-17 Yury Gribov <y.gribov@samsung.com>
26767
26768 * asan.c (set_sanitized_sections): New function.
26769 (section_sanitized_p): Ditto.
26770 (asan_protect_global): Optionally sanitize user-defined
26771 sections.
26772 * asan.h (set_sanitized_sections): Declare new function.
26773 * common.opt (fsanitize-sections): New option.
26774 * doc/invoke.texi (-fsanitize-sections): Document new option.
26775 * opts-global.c (handle_common_deferred_options): Handle new
26776 option.
26777
26778 2015-04-17 Jakub Jelinek <jakub@redhat.com>
26779
26780 PR debug/65771
26781 * dwarf2out.c (loc_list_from_tree): Return NULL
26782 for DEBUG_EXPR_DECL.
26783
26784 2015-04-17 Christian Bruel <christian.bruel@st.com>
26785
26786 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
26787 same attributes.
26788
26789 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26790
26791 * ira-color.c (setup_left_conflict_sizes_p): Do not process
26792 node itself when computing left conflict subnode size.
26793
26794 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26795
26796 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
26797 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
26798 *fop_<mode>_1_sse using enabled attribute. Use
26799 register_mixssei387nonimm_operand operand 1 predicate. Change
26800 alternative 3 constraints from "x" to "v".
26801
26802 2015-04-16 Richard Biener <rguenther@suse.de>
26803
26804 PR tree-optimization/65774
26805 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
26806 bit-value tracking on.
26807
26808 2015-04-16 Richard Biener <rguenther@suse.de>
26809
26810 PR tree-optimization/64277
26811 * tree-vrp.c (check_array_ref): Fix anti-range handling,
26812 simplify upper bound handling.
26813 (search_for_addr_array): Simplify.
26814 (check_array_bounds): Handle ADDR_EXPRs here.
26815 (check_all_array_refs): Simplify.
26816
26817 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
26818
26819 * config/i386/i386.c (print_reg): Rewrite function.
26820
26821 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26822
26823 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
26824 Invert the condition.
26825
26826 2015-04-16 Renlin Li <renlin.li@arm.com>
26827
26828 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
26829 simplifications for UNSIGNED_FLOAT.
26830
26831 2015-04-16 Nick Clifton <nickc@redhat.com>
26832
26833 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
26834 MUL_UNINIT.
26835 (enum rl78_cpu_type): New.
26836 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
26837 (umulhi3_shift_virt): Remove m constraint from operand 1.
26838 (umulqihi3_virt): Likewise.
26839 * config/rl78/rl78.c (rl78_option_override): Add code to process
26840 -mcpu and -mmul options.
26841 (rl78_alloc_physical_registers): Add code to handle divhi and
26842 divsi valloc attributes.
26843 (set_origin): Likewise.
26844 * config/rl78/rl78.h (RL78_MUL_G14): Define.
26845 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
26846 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
26847 __RL78_Gxx__.
26848 (ASM_SPEC): Pass -mcpu on to assembler.
26849 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
26850 (mulqi3_rl78): Likewise.
26851 (mulhi3_g13): Likewise.
26852 (mulhi3): Generate the G13 or G14 versions of the insn directly.
26853 (mulsi3): Likewise.
26854 (mulhi3_g14): Add clobbers of AX and BC.
26855 (mulsi3_g14): Likewise.
26856 (mulsi3_g13): Likewise.
26857 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
26858 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
26859 * config/rl78/rl78.opt (mmul): Initialise value to
26860 RL78_MUL_UNINIT.
26861 (mcpu): New option.
26862 (m13, m14, mrl78): New option aliases.
26863 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
26864 (MULTILIB_DIRNAMES): Add g13 and g14.
26865 * doc/invoke.texi: Document -mcpu and -mmul options.
26866
26867 2015-04-16 Richard Biener <rguenther@suse.de>
26868
26869 * tree-ssa-ccp.c (likely_value): See if we have operands that
26870 are marked as never simulate again and return CONSTANT in this
26871 case.
26872 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
26873 not have any operands that will be simulated again as
26874 not being simulated again.
26875
26876 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
26877
26878 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
26879 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
26880 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
26881 attribute.
26882 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
26883 enabled attribute.
26884 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
26885 *float<SWI48:mode><MODEF:mode>2_sse.
26886 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
26887 enabled attribute.
26888 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
26889 enabled attribute.
26890
26891 2015-04-15 Tom de Vries <tom@codesourcery.com>
26892
26893 PR other/65487
26894 * function.c (push_dummy_function): New function.
26895 (init_dummy_function_start): Use push_dummy_function.
26896 (pop_dummy_function): New function. Factored out of ...
26897 (expand_dummy_function_end): ... here.
26898 * function.h (push_dummy_function, pop_dummy_function): Declare.
26899 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
26900 pop_dummy_function.
26901 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
26902
26903 2015-04-15 Jeff Law <law@redhat.com>
26904
26905 PR tree-optimization/47679
26906 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
26907 need for forward declaration in upcoming changes.
26908 (record_conditions, record_edge_info): Likewise.
26909
26910 PR rtl-optimization/42522
26911 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
26912 SIGN_EXTRACT as a whole object rather than simplifying
26913 its operand.
26914
26915 2015-04-15 Jakub Jelinek <jakub@redhat.com>
26916
26917 PR ipa/65765
26918 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
26919 and GIMPLE_PREDICT use break instead of return true. For
26920 GIMPLE_EH_DISPATCH, compare dispatch region.
26921
26922 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
26923
26924 * doc/extend.texi (__sync Builtins): Simplify some text. Update
26925 details about the implementation. Make clear preference for
26926 __atomic builtins. Reduce possibility of future change.
26927
26928 2015-04-15 Nick Clifton <nickc@redhat.com>
26929
26930 * config/rx/rx.opt (mallow-string-insns): New option.
26931 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
26932 builtin if string instructions are denied.
26933 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
26934 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
26935 appropriate.
26936 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
26937 * config/rx/rx.md (movstr): Enable pattern only if string
26938 instructions are allowed.
26939 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
26940 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
26941 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
26942 (MULTILIB_DIRNAMES): Add no-strings.
26943 * doc/invoke.texi: Document -mno-allow-string-insns.
26944
26945 2015-04-15 Alan Modra <amodra@gmail.com>
26946
26947 PR target/65408
26948 PR target/58744
26949 PR middle-end/36043
26950 * calls.c (load_register_parameters): Don't load past end of
26951 mem unless suitably aligned.
26952
26953 2015-04-15 Nick Clifton <nickc@redhat.com>
26954
26955 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
26956 decrement instruction as being frame related.
26957 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
26958 based addresses.
26959 If zero extending a function address enclose the operation in
26960 %code(...).
26961 (rl78_preferred_reload_class): New function.
26962 (TARGET_PREFERRED_RELOAD_CLASS): Define.
26963 * config/rl78/rl78.md: Remove useless constraints in expanders.
26964 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
26965 (mulhi3_rl78): Likewise.
26966 (mulhi3_g13): Likewise.
26967 (mulsi3_rl78): Likewise.
26968 (es_addr): Move to before the multiply patterns.
26969
26970 2015-04-15 Alan Modra <amodra@gmail.com>
26971
26972 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
26973 and sequence_stack. Add seq.
26974 (seq_stack): Delete.
26975 * function.c (prepare_function_start): Don't access x_last_insn.
26976 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
26977 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
26978 * emit_rtl.c (start_sequence, push_topmost_sequence,
26979 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
26980 sequence accessors.
26981 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
26982 remove_insn): Likewise. Simplify.
26983 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
26984 and pop_topmost_sequence.
26985 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
26986 debug insns.
26987 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
26988
26989 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
26990
26991 PR target/65729
26992 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
26993 the assertiion.
26994
26995 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
26996
26997 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
26998 (LEGACY_INT_REGNO_P): Ditto.
26999 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27000 (ANY_MASK_REG_P): Remove.
27001 (BND_REG_P): Rename from ANY_BND_REG_P.
27002 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27003 legacy integer registers. Do not handle MMX_REG_P in a special way.
27004 Merge 64byte and 32byte SSE handling.
27005
27006 2015-04-14 Nick Clifton <nickc@redhat.com>
27007
27008 * expr.c (expand_assignment): Force an address offset computation
27009 into a register before changing its mode.
27010 (expand_expr_real_1): Likewise.
27011
27012 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
27013
27014 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27015 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27016 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27017 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27018 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27019 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27020 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27021 and __aarch64_vget_lane_any.
27022
27023 2015-04-14 Jakub Jelinek <jakub@redhat.com>
27024
27025 PR rtl-optimization/65761
27026 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27027 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27028
27029 2015-04-14 Richard Biener <rguenther@suse.de>
27030
27031 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27032 (graphite_can_represent_scev): Use POINTER_TYPE_P.
27033
27034 2015-04-14 Richard Biener <rguenther@suse.de>
27035
27036 PR tree-optimization/65758
27037 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27038 against -1.
27039 (ccp_lattice_meet): Likewise.
27040 (bit_value_unop): Likewise.
27041 (bit_value_binop): Likewise.
27042 (bit_value_assume_aligned): Likewise.
27043
27044 2015-04-14 Christian Bruel <christian.bruel@st.com>
27045
27046 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27047 function.
27048
27049 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
27050
27051 PR tree-optimization/63387
27052 * match.pd ((x unord x) | (y unord y) -> (x unord y),
27053 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27054
27055 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27056
27057 * config/i386/predicates.md (any_QIreg_operand): Rename from
27058 q_regs_operand. Do not process subregs.
27059 (QIreg_operand): Use QI_REGNO_P predicate.
27060 (ext_QIreg_operand): Ditto.
27061 (ext_register_operand): Ditto.
27062 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27063 (AND splitters): Ditto.
27064 (AND with -65536 splitter): Add SWI48 mode for operand 0.
27065 (AND with -256 splitter): Use any_QIreg_operand predicate and
27066 SWI248 mode for operand 0.
27067 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27068 mode for operand 0.
27069 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27070
27071 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
27072
27073 * doc/plugins.texi: Rewrite first introductory paragraph.
27074
27075 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27076
27077 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27078 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27079
27080 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27081
27082 * ipa-profie.c (ipa_profile): Check number of parameters
27083 and possible polymorphic call targets before
27084 devirtualizing.
27085
27086 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
27087
27088 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27089 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27090
27091 2015-04-13 Richard Biener <rguenther@suse.de>
27092
27093 PR tree-optimization/65204
27094 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27095 takens for bit-CCP.
27096
27097 2015-04-13 Richard Biener <rguenther@suse.de>
27098
27099 PR target/65660
27100 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27101 and cond_not_taken_branch_cost to 4 and 2.
27102 (bdver2_cost): Likewise.
27103 (bdver3_cost): Likewise.
27104 (bdver4_cost): Likewise.
27105
27106 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27107
27108 * hash-table.h (hash_table constructor): Add mem stats.
27109 (alloc_entries): Likewise.
27110
27111 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27112
27113 * ipa-cp.c (ipcp_driver): Relase prev_edge.
27114 * passes.c (execute_one_pass): Only add transform if pass has one.
27115
27116 2015-04-12 Joseph Myers <joseph@codesourcery.com>
27117
27118 * config/i386/i386.c (ix86_option_override_internal): Don't set
27119 -fprefetch-loop-arrays if optimizing for size.
27120
27121 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27122 Gerald Pfeifer <gerald@pfeifer.com>
27123
27124 * doc/contrib.texi (Contributors): Add Martin Jambor and
27125 Michael Matz.
27126
27127 2015-04-12 Jakub Jelinek <jakub@redhat.com>
27128
27129 * BASE-VER: Set to 6.0.0.
27130
27131 PR tree-optimization/65747
27132 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27133 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27134
27135 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27136
27137 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27138 sentence. Improve grammar.
27139
27140 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27141
27142 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27143
27144 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27145
27146 PR ipa/65743
27147 * ipa-inline-transform.c (speculation_removed): Remove static var.
27148 (check_speculations): New function.
27149 (clone_inlined_nodes): Do not check spculations.
27150 (inline_call): Call check_speculations.
27151 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27152 consider non-invariants.
27153
27154 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27155 Martin Liska <mliska@suse.cz>
27156
27157 PR ipa/65722
27158 * ipa-icf.c (sem_item::compare_cgraph_references): function and
27159 variable can not match.
27160 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27161 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27162
27163 2015-04-11 Jakub Jelinek <jakub@redhat.com>
27164
27165 PR tree-optimization/65735
27166 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27167 Remove visited_phis argument, add visited_bbs, avoid recursing into the
27168 same bb rather than just into the same phi node.
27169 (thread_through_normal_block): Adjust caller.
27170
27171 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27172
27173 * doc/contrib.texi (Contributors): Add Ira Rosen.
27174
27175 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
27176
27177 * gcov.c (find_source): Fix miswording in error message.
27178 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27179 (ix86_expand_sse_comi_round): Fix typo in error message.
27180
27181 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27182
27183 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27184
27185 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
27186
27187 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27188
27189 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27190
27191 PR target/65710
27192 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27193 Print bad_spills_num and insn_pseudos_num.
27194
27195 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27196
27197 PR target/65694
27198 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27199 when creating +1 values for SImode.
27200
27201 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27202
27203 PR target/65729
27204 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27205 assert.
27206
27207 2015-04-10 Jakub Jelinek <jakub@redhat.com>
27208 Iain Sandoe <iain@codesourcery.com>
27209
27210 PR target/65351
27211 * configure: Regenerate.
27212
27213 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27214
27215 PR target/65671
27216 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27217
27218 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
27219
27220 * doc/contrib.texi (Contributors): Add John Marino.
27221
27222 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27223
27224 PR tree-optimization/65709
27225 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27226 TREE_TYPE (TREE_TYPE (t)).
27227
27228 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
27229
27230 PR target/65710
27231 * lra-int.h (lra_bad_spill_regno_start): New.
27232 * lra.c (lra_bad_spill_regno_start): New.
27233 (lra): Set up lra_bad_spill_regno_start. Set up
27234 lra_constraint_new_regno_start unconditionally.
27235 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27236 spill preferences.
27237
27238 2015-04-09 Marek Polacek <polacek@redhat.com>
27239 Jakub Jelinek <jakub@redhat.com>
27240
27241 PR middle-end/65554
27242 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27243 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27244 of STRIP_NOPS.
27245
27246 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
27247
27248 PR rtl-optimization/65693
27249 * combine.c (is_parallel_of_n_reg_sets): Move outside of
27250 #ifndef HAVE_cc0.
27251
27252 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
27253
27254 PR target/65296
27255 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
27256 device specs file if "device-specs%s" didn't resolve to a path.
27257
27258 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27259
27260 PR target/65676
27261 * config/i386/i386.c (fixup_modeless_constant): New.
27262 (ix86_expand_args_builtin): Fixup modeless constant operand.
27263 (ix86_expand_round_builtin): Ditto.
27264 (ix86_expand_special_args_builtin): Ditto.
27265 (ix86_expand_builtin): Ditto.
27266
27267 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27268
27269 PR target/65693
27270 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
27271 any pow2 integer in between 2 and 0x80000000U inclusive.
27272
27273 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
27274
27275 PR rtl-optimization/65693
27276 * combine.c (is_parallel_of_n_reg_sets): Change first argument
27277 from an rtx_insn * to an rtx.
27278 (try_combine): Adjust both callers. Use it once more.
27279
27280 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27281
27282 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
27283 (chkp_make_static_const_bounds): Search existing
27284 symbol by assembler name. Use make_decl_one_only.
27285 (chkp_get_zero_bounds_var): Remove node search which
27286 is now performed in chkp_make_static_const_bounds.
27287 (chkp_get_none_bounds_var): Likewise.
27288
27289 2015-04-08 Michael Witten <mfwitten@gmail.com>
27290
27291 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
27292 to an example.
27293
27294 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27295
27296 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
27297
27298 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27299
27300 * doc/extend.texi (__sync Builtins): Fix grammar.
27301
27302 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27303
27304 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
27305
27306 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27307
27308 * varasm.c (emit_local): Move definition of align.
27309
27310 2015-04-08 Julian Brown <julian@codesourcery.com>
27311
27312 * config/nvptx/mkoffload.c (process): Support variable mapping.
27313
27314 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
27315
27316 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
27317 alpha_links **.
27318 (alpha_write_one_linkage): Correct typo.
27319
27320 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27321
27322 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
27323
27324 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
27325
27326 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
27327
27328 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
27329
27330 * tree-chkp.h (chkp_insert_retbnd_call): New.
27331 * tree-chkp.c (chkp_insert_retbnd_call): New.
27332 * ipa-split.c (insert_bndret_call_after): Remove.
27333 (split_function): Use chkp_insert_retbnd_call.
27334 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
27335 bounds for instrumented functions.
27336
27337 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
27338
27339 PR ipa/65540
27340 * calls.c (initialize_argument_information): When producing tail
27341 call also turn SSA_NAMES passed by references to original PARM_DECLs
27342
27343 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
27344
27345 PR target/65648
27346 * lra-remat.c (do_remat): Process input and non-input insn
27347 registers separately.
27348
27349 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27350
27351 PR debug/65678
27352 * valtrack.c (debug_lowpart_subreg): New function.
27353 (dead_debug_insert_temp): Use it.
27354
27355 PR middle-end/65680
27356 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
27357 into signed HOST_WIDE_INT the same as negative bit_offset.
27358
27359 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
27360
27361 * ipa-comdats.c (ipa_comdats): Visit all thunks
27362 to set proper comdat group.
27363
27364 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27365
27366 PR target/65489
27367 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
27368 on constants for NEON VSTRUCT modes.
27369
27370 2015-04-07 Jakub Jelinek <jakub@redhat.com>
27371 Iain Sandoe <iain@codesourcery.com>
27372
27373 PR target/65351
27374 * configure: Regenerate.
27375
27376 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27377
27378 PR target/65614
27379 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
27380 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
27381 that LFD is used to load double constants instead of LFS. Add
27382 defaults for all costs structures. Add comments for missing
27383 initialization fields.
27384 (size32_cost): Likewise.
27385 (size64_cost): Likewise.
27386 (rs64a_cost): Likewise.
27387 (mpccore_cost): Likewise.
27388 (ppc403_cost): Likewise.
27389 (ppc405_cost): Likewise.
27390 (ppc440_cost): Likewise.
27391 (ppc476_cost): Likewise.
27392 (ppc601_cost): Likewise.
27393 (ppc603_cost): Likewise.
27394 (ppc604_cost): Likewise.
27395 (ppc604e_cost): Likewise.
27396 (ppc620_cost): Likewise.
27397 (ppc630_cost): Likewise.
27398 (ppccell_cost): Likewise.
27399 (ppc750_cost): Likewise.
27400 (ppc7450_cost): Likewise.
27401 (ppc8540_cost): Likewise.
27402 (ppce300c2c3_cost): Likewise.
27403 (ppce500mc_cost): Likewise.
27404 (ppce500mc64_cost): Likewise.
27405 (ppce5500_cost): Likewise.
27406 (ppce6500_cost): Likewise.
27407 (titan_cost): Likewise.
27408 (power4_cost): Likewise.
27409 (power6_cost): Likewise.
27410 (power7_cost): Likewise.
27411 (power8_cost): Likewise.
27412 (ppca2_cost): Likewise.
27413 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
27414
27415 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
27416 instead of XXLOR to copy SFmode to clear out dirty bits created
27417 when SFmode denormals are generated.
27418 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
27419 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
27420
27421 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27422
27423 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
27424 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
27425 * config/aarch64/aarch64-tune.md: Regenerate.
27426
27427 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
27428
27429 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
27430 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
27431 * config/arm/arm-cores.def (exynos-m1): New core.
27432 * config/arm/arm-tune.md: Regenerate.
27433 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
27434 * config/arm/bpabi.h: Likewise.
27435
27436 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27437
27438 * ipa-cp (set_single_call_flag): Remove too
27439 restrictive assert.
27440
27441 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
27442
27443 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
27444 GOMP_offload_unregister from the destructor.
27445
27446 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
27447
27448 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
27449 flags for instrumentation thunk.
27450 (chkp_produce_thunks): Likewise.
27451
27452 2015-04-05 Martin Liska <mliska@suse.cz>
27453
27454 PR ipa/65665
27455 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
27456 has computed data structure.
27457 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
27458
27459 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
27460
27461 * invoke.texi (inline-unit-growth): Increase growth to 20%
27462 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
27463
27464 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
27465
27466 PR target/65647
27467 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
27468 value checking.
27469 (lra_rematerialization_iter): New.
27470 * lra.c (lra): Initialize lra_rematerialization_iter.
27471 Stop updating lra_constraint_new_regno_start after switching of
27472 inheritance and rematerialization.
27473 * lra-remat.c (lra_rematerialization_iter): New.
27474 (lra_remat): Add printing pass iteration. Do rematerialization
27475 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
27476
27477 2015-04-04 Richard Biener <rguenther@suse.de>
27478
27479 PR tree-optimization/64909
27480 PR tree-optimization/65660
27481 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
27482 to take a cost vector for scalar iteration cost.
27483 (vect_get_single_scalar_iteration_cost): Likewise.
27484 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
27485 Compute the scalar iteration cost into a cost vector.
27486 (vect_get_known_peeling_cost): Use the scalar cost vector to
27487 account for the cost of the peeled iterations.
27488 (vect_estimate_min_profitable_iters): Likewise.
27489 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
27490 Likewise.
27491
27492 2015-04-04 Alan Modra <amodra@gmail.com>
27493
27494 PR target/65576
27495 PR target/65240
27496 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
27497 0.0 constant unless TARGET_VSX.
27498 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
27499 alternative.
27500
27501 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27502
27503 PR ipa/65654
27504 * ipa-inline-transform.c (inline_call): Skip sanity check to work
27505 around the ICE
27506
27507 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27508
27509 PR ipa/65655
27510 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
27511 speculative indirect edges to avoid ordering issue.
27512
27513 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
27514
27515 PR ipa/65076
27516 * ipa-inline.c (edge_badness): Add combined size to the denominator.
27517
27518 2015-04-03 Jakub Jelinek <jakub@redhat.com>
27519
27520 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
27521 TYPE_ARTIFICIAL on the .omp_data* types.
27522
27523 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27524
27525 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
27526 instrumentation thunks.
27527
27528 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27529
27530 * config/i386/i386.c (ix86_expand_call): Avoid nested
27531 PARALLEL in returned call value.
27532
27533 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27534
27535 * lto-cgraph.c (input_cgraph_1): Always link instrumented
27536 assembler name with original one.
27537
27538 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27539
27540 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
27541
27542 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27543
27544 Revert parts of r216820.
27545 * config/i386/i386.md (movqi_internal): Correct type calculation
27546 for alternatives 3 and 5.
27547
27548 2015-04-02 Jakub Jelinek <jakub@redhat.com>
27549
27550 PR preprocessor/61977
27551 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
27552 predefine __vector/__bool/__pixel macros nor context sensitive
27553 macros for CLK_ASM.
27554 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
27555
27556 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
27557
27558 * config/pa/pa.c (pa_output_move_double): Directly handle register
27559 indexed memory operand. Simplify handling of scaled register indexed
27560 memory operands.
27561
27562 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
27563
27564 PR driver/65444
27565 * config/i386/linux-common.h (MPX_SPEC): New.
27566 (CHKP_SPEC): Add MPX_SPEC.
27567 * doc/invoke.texi (-fcheck-pointer-boudns): Document
27568 possible issues with '-z bndplt' support in linker.
27569
27570 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
27571
27572 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
27573 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
27574 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
27575 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
27576 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
27577
27578 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
27579
27580 * config/i386/sync.md (UNSPEC_MOVA): Remove.
27581 (atomic_load<mode>): Change operand 0 predicate to
27582 nonimmediate_operand and fix up the destination when needed.
27583 Use UNSPEC_LDA.
27584 (atomic_loaddi_fpu): Use UNSPEC_LDA.
27585 (atomic_store<mode>): Change operand 1 predicate to
27586 nonimmendate_operand and move the source to register when needed.
27587 Use UNSPEC_STA.
27588 (atomic_store<mode>_1): Use UNSPEC_STA.
27589 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
27590 Fix moves from memory operand. Use UNSPEC_STA.
27591
27592 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27593
27594 * expmed.c (strict_volatile_bitfield_p): Check that the access will
27595 not cross a MODESIZE boundary.
27596 (store_bit_field, extract_bit_field): Added assertions in the
27597 strict volatile bitfields code path.
27598
27599 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
27600
27601 PR target/65624
27602 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
27603 Increase args array size by one to avoid buffer overflow.
27604
27605 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
27606
27607 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
27608 split_part.
27609 * ipa-inline.c (edge_badness): Add wrapper penalty.
27610 (sum_callers): Move up.
27611 (inline_small_functions): Set single_caller.
27612 * ipa-inline.h (inline_summary): Add single_caller.
27613 * ipa-split.c (split_function): Set split_part.
27614 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
27615 * cgraph.h (cgraph_node): Add split_part.
27616
27617 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
27618
27619 PR target/58945
27620 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
27621 Do not split operands 0 and operands 2 to halfmode.
27622 (atomic_compare_and_swap<mode>): Update for
27623 atomic_compare_and_swap<dwi>_doubleword changes.
27624
27625 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
27626
27627 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
27628 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
27629 no caching is done.
27630
27631 2015-03-31 Martin Liska <mliska@suse.cz>
27632
27633 PR ipa/65557
27634 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
27635 has already filled up function summary.
27636 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
27637
27638 2015-03-31 Richard Biener <rguenther@suse.de>
27639
27640 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
27641 of types.
27642
27643 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
27644
27645 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
27646 nested functions.
27647 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
27648 (s390_asm_output_function_label): Adapt to new signature of
27649 s390_function_num_hotpatch_hw
27650 Optimise the code generating assembler output.
27651 Add comments to assembler file.
27652
27653 2015-03-31 Richard Biener <rguenther@suse.de>
27654
27655 PR middle-end/65626
27656 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
27657 of the noreturn call so it is last and cleanup_control_flow_bb
27658 can do the CFG part.
27659
27660 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
27661
27662 PR target/65531
27663 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
27664 same_comdat_group for external symbols.
27665 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
27666 infinite same_comdat_group traversal loop.
27667
27668 2015-03-31 Jakub Jelinek <jakub@redhat.com>
27669
27670 PR plugins/61176
27671 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
27672 automatically to $headers.
27673
27674 2015-03-30 Jakub Jelinek <jakub@redhat.com>
27675
27676 PR ipa/65610
27677 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
27678 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
27679 function.
27680 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
27681 Use it.
27682 * ipa-prop.c (param_type_may_change_p): Likewise.
27683 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
27684 (remove_unused_scope_block_p): Add in_ctor_dtor_block
27685 argument. Before inlining, preserve
27686 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
27687 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
27688 recursive calls.
27689 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
27690
27691 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27692
27693 PR ipa/65076
27694 * ipa-inline.c (edge_badness): Base denominator on callee's
27695 grwoth squared.
27696
27697 2015-03-27 Martin Jambor <mjambor@suse.cz>
27698
27699 PR ipa/65478
27700 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
27701 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
27702 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
27703 node_calling_single_call.
27704 * ipa-cp.c (count_callers): New function.
27705 (set_single_call_flag): Likewise.
27706 (initialize_node_lattices): Count callers and set single_flag_call if
27707 necessary.
27708 (incorporate_penalties): New function.
27709 (good_cloning_opportunity_p): Use it, dump new flags.
27710 (propagate_constants_topo): Set node_within_scc flag if appropriate.
27711 * doc/invoke.texi (ipa-cp-recursion-penalty,
27712 ipa-cp-single-call-pentalty): Document.
27713
27714 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27715
27716 PR ipa/65588
27717 * symtab.c (symtab_node::get_partitioning_class): Register vars
27718 are duplicated.
27719 * varpool.c (symbol_table::output_variables) Do not assemble unefined
27720 decls for non-symbols.
27721
27722 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
27723
27724 PR target/65248
27725 * output.h (default_binds_local_p_2): New.
27726 * varasm.c (default_binds_local_p_2): Renamed to ...
27727 (default_binds_local_p_3): This. Don't return true on protected
27728 data symbol if protected data may be external.
27729 (default_binds_local_p): Use default_binds_local_p_3.
27730 (default_binds_local_p_1): Likewise.
27731 (default_binds_local_p_2): New.
27732 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
27733 default_binds_local_p_2 if TARGET_MACHO is undefined.
27734
27735 2015-03-27 Jakub Jelinek <jakub@redhat.com>
27736
27737 PR target/65593
27738 * config/i386/i386.c (legitimize_pic_address): If base
27739 is SYMBOL_REF or LABEL_REF using %rip addressing, force
27740 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
27741
27742 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27743
27744 PR target/65531
27745 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
27746 comdat groups.
27747
27748 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
27749
27750 PR ipa/65600
27751 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
27752 of optimized out indirect call.
27753 (redirect_to_unreachable): Always build symbol table node for
27754 BUILT_IN_UNREACHABLE
27755
27756 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
27757
27758 PR target/65407
27759 * ira-costs.c (record_reg_classes): Process all constraint string
27760 containing 0-9.
27761
27762 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
27763
27764 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
27765 memory_operand.
27766
27767 PR target/65052
27768 * config/c6x/constraints.md (S3): New constraint.
27769 * config/c6x/c6x.md (real_jump): Use it.
27770
27771 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27772
27773 PR middle-end/65595
27774 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
27775 do redirection if the call is not optimized out.
27776
27777 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
27778
27779 PR target/65495
27780 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
27781 (fchkp-check-incomplete-type): Add LTO.
27782 (fchkp-zero-input-bounds-for-main): Likewise.
27783 (fchkp-first-field-has-own-bounds): Likewise.
27784 (fchkp-narrow-bounds): Likewise.
27785 (fchkp-narrow-to-innermost-array): Likewise.
27786 (fchkp-use-static-bounds): Likewise.
27787 (fchkp-use-static-const-bounds): Likewise.
27788 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
27789
27790 2015-03-27 Marek Polacek <polacek@redhat.com>
27791
27792 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
27793
27794 2015-03-27 Marek Polacek <polacek@redhat.com>
27795
27796 PR sanitizer/65583
27797 * ubsan.c (ubsan_create_edge): New function.
27798 (instrument_bool_enum_load): Call it.
27799 (instrument_nonnull_arg): Likewise.
27800 (instrument_nonnull_return): Likewise.
27801 (instrument_object_size): Likewise.
27802
27803 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27804
27805 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
27806 auto_vec.
27807
27808 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27809
27810 PR lto/65536
27811 * lto-streamer.h (class lto_location_cache): New.
27812 (struct data_in): Add location_cache.
27813 (lto_input_location): Update prototype.
27814 (stream_input_location_now): New.
27815 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
27816 pointer to location.
27817 (stream_input_location): Update.
27818 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
27819 (warn_odr): Apply location cache before warning.
27820 (lto_input_location): Update prototype.
27821 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
27822 Use stream_input_location_now.
27823 * lto-streamer-in.c (lto_location_cache::current_cache): New static
27824 variable.
27825 (lto_location_cache::cmp_loc): New function.
27826 (lto_location_cache::apply_location_cache): New function.
27827 (lto_location_cache::accept_location_cache): New function.
27828 (lto_location_cache::revert_location_cache): New function.
27829 (lto_location_cache::input_location): New function.
27830 (lto_input_location): Do location caching.
27831 (stream_input_location_now): New function.
27832 (input_eh_region, input_struct_function_base): Use
27833 stream_input_location_now.
27834 (lto_data_in_create): use new.
27835 (lto_data_in_delete): Use delete.
27836 * tree-streamer-in.c (unpack_ts_block_value_fields,
27837 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
27838 lto_input_ts_exp_tree_pointers): Update for cached location api.
27839
27840 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27841
27842 PR ipa/65076
27843 * passes.def: Add pass_nothrow.
27844 * ipa-pure-const.c: (pass_data_nothrow): New.
27845 (pass_nothrow): New.
27846 (pass_nothrow::execute): New.
27847 (make_pass_nothrow): New.
27848 * tree-pass.h (make_pass_nothrow): Declare.
27849
27850 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27851
27852 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
27853 edge to change by speculation resolution or redirection.
27854 (edge_set_predicate): Likewise.
27855 (inline_summary_t::duplicate): Likewise.
27856 (remap_edge_summaries): Likewise.
27857
27858 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27859
27860 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
27861 New macros.
27862 (can_inline_edge_p): Relax option matching for always inline functions.
27863
27864 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
27865
27866 PR target/65561
27867 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
27868 Check operand 4 and operand 0 for equality.
27869 (avx512f_vextract<shuffletype>32x4_1_maskm):
27870 Check operand 6 and operand 0 for equality.
27871 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
27872 for equality.
27873 (vec_extract_hi_<mode>_maskm): Ditto.
27874
27875 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27876
27877 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
27878 dead calls back to live.
27879 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
27880 cross check to ...
27881 (cgraph_node::verify_node): ... here; verify only callee edges,
27882 not caller.
27883 * cif-code.def (CILK_SPAWN): New code.
27884
27885 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
27886
27887 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
27888 (edge_set_predicate): Use it to mark unreachable edges.
27889 (inline_summary_t::duplicate): Remove unnecesary code.
27890 (remap_edge_summaries): Likewise.
27891 (dump_inline_summary): Report contains_cilk_spawn.
27892 (compute_inline_parameters): Compute contains_cilk_spawn.
27893 (inline_read_section, inline_write_summary): Stream
27894 contains_cilk_spawn.
27895 * ipa-inline.c (can_inline_edge_p): Do not touch
27896 DECL_STRUCT_FUNCTION that may not be available;
27897 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
27898 remove check for callee_fun->can_throw_non_call_exceptions and
27899 replace it by optimization attribute check; check for flag_exceptions.
27900 * ipa-inline-transform.c (inline_call): Maintain
27901 DECL_FUNCTION_PERSONALITY
27902 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
27903
27904 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27905
27906 PR tree-optimization/65551
27907 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
27908 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
27909
27910 2015-03-26 Richard Biener <rguenther@suse.de>
27911
27912 PR middle-end/65555
27913 * tree-cfg.c (verify_gimple_call): Do not require a call to
27914 have no LHS if it wasn't recognized as control altering yet.
27915
27916 2015-03-26 Jakub Jelinek <jakub@redhat.com>
27917
27918 PR tree-optimization/64715
27919 * passes.def: Add another instance of pass_object_sizes before ccp1.
27920 * tree-object-size.c (pass_object_sizes::execute): In
27921 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
27922 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
27923 __bos result and the computed constant. Remove redundant
27924 checks, obsoleted by gimple_call_builtin_p test.
27925
27926 * var-tracking.c (variable_tracking_main_1): Don't track
27927 variables for targetm.no_register_allocation targets.
27928
27929 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
27930
27931 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
27932 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
27933
27934 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
27935
27936 PR target/65569
27937 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
27938 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
27939 0.0 is correctly setup.
27940 (extenddftf2_internal): Likewise.
27941
27942 2015-03-25 Sebastian Pop <s.pop@samsung.com>
27943
27944 PR tree-optimization/65177
27945 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
27946 (bb_in_bbs): New.
27947 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
27948 edges not adjacent on the path to the original code.
27949
27950 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
27951
27952 PR bootstrap/65537
27953 * doc/install.texi (Building a native compiler): Document new
27954 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
27955 configuration assumes that the host supports the linker plugin.
27956
27957 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
27958
27959 PR target/65508
27960 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
27961 chain for generated call.
27962
27963 2015-03-25 Richard Biener <rguenther@suse.de>
27964
27965 * passes.c (pass_manager::execute_early_local_passes): Guard
27966 execution of pass_chkp_instrumentation_passes with
27967 flag_check_pointer_bounds.
27968 (pass_chkp_instrumentation_passes::gate): Likewise.
27969
27970 2015-03-25 Martin Liska <mliska@suse.cz>
27971
27972 PR tree-optimization/65538
27973 * symbol-summary.h (function_summary::~function_summary):
27974 Relese memory for allocated summaries.
27975 (function_summary::release): New function.
27976
27977 2015-03-25 Jakub Jelinek <jakub@redhat.com>
27978
27979 PR lto/65515
27980 * lto-streamer-out.c (DFS::worklist): New struct.
27981 (DFS::worklist_vec): New data member.
27982 (DFS::next_dfs_num): Remove.
27983 (DFS::DFS): Rewritten using worklist instead of recursion,
27984 using most of code from DFS::DFS_write_tree.
27985 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
27986 pass it to DFS_write_tree calls.
27987 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
27988 quick initial checks push it into worklist_vec and return.
27989
27990 2015-03-25 Richard Biener <rguenther@suse.de>
27991
27992 PR middle-end/65519
27993 * genmatch.c (expr::gen_transform): Re-write to avoid
27994 using gimple_build.
27995
27996 2015-03-25 Bin Cheng <bin.cheng@arm.com>
27997
27998 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
27999
28000 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28001
28002 * config/arm/arm.opt (print_tune_info): New option.
28003 * config/arm/arm.c (arm_print_tune_info): New function.
28004 (arm_file_start): Call arm_print_tune_info.
28005 * config/arm/arm-protos.h (struct tune_params): Add comment.
28006 * doc/invoke.texi (@item -mprint-tune-info): New item.
28007 (-mtune): mention it in ARM Option Summary.
28008
28009 2015-03-25 DJ Delorie <dj@redhat.com>
28010
28011 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28012 correct clause.
28013
28014 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
28015 Martin Liska <mliska@suse.cz>
28016
28017 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28018 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28019 (sem_item::add_type): New function.
28020 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28021 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28022 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28023 (sem_function::equals_wpa): Fix typo.
28024 * ipa-icf.h (sem_item::add_type): New function.
28025 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28026 order.
28027
28028 2015-03-24 Jakub Jelinek <jakub@redhat.com>
28029
28030 PR tree-optimization/65533
28031 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28032 with swapped operands, call vect_free_slp_tree on
28033 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28034 vector.
28035
28036 2015-03-24 Richard Biener <rguenther@suse.de>
28037
28038 PR middle-end/65517
28039 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28040 for fixup if necessary.
28041
28042 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
28043
28044 * doc/extend.texi (Function Attributes): Add @cindex entries
28045 for all attributes and regularize their format. Delete text
28046 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
28047 information about "eightbit_data", "tiny_data", and "model"
28048 variable attributes to the Variable Attributes section. Fix
28049 some obvious typos and copy-editing issues.
28050 (Variable Attributes, Type Attributes): Likewise add/fix
28051 @cindex entries for all attributes.
28052
28053 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28054
28055 PR target/65523
28056 * tree-chkp.c (chkp_build_returned_bound): Ignore
28057 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28058
28059 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
28060
28061 PR target/65505
28062 * config/sh/predicates.md (simple_mem_operand,
28063 displacement_mem_operand): Add test for reg.
28064 (short_displacement_mem_operand): Test for displacement_mem_operand
28065 before invoking sh_disp_addr_displacement.
28066 * config/sh/constraints.md (Sdd, Sra): Simplify.
28067 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28068 Remove redundant displacement_mem_operand tests.
28069
28070 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
28071
28072 PR target/65296
28073 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28074 the same -mmcu=MCU more than once.
28075
28076 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28077
28078 PR bootstrap/65522
28079 * ipa-devirt.c: Remove duplicate demangle.h include.
28080
28081 PR target/65504
28082 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28083 on the pseudo.
28084 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28085 REG_POINTER on *destptr after adjusting it for prologue size.
28086
28087 PR ipa/65521
28088 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28089 ultimate_alias_target ()->order ints instead of
28090 ultimate_alias_target () pointers.
28091
28092 2015-03-23 Richard Biener <rguenther@suse.de>
28093
28094 PR tree-optimization/65518
28095 * tree-vect-stmts.c (vectorizable_load): Reject single-element
28096 interleaving cases we generate absymal code for.
28097
28098 2015-03-23 Richard Biener <rguenther@suse.de>
28099
28100 PR tree-optimization/65494
28101 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28102 matches here.
28103 (vect_analyze_slp_instance): But do that here, always and once.
28104
28105 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28106
28107 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28108 adding T or multiplying by T+1 and subracting T.
28109
28110 2015-03-22 Jeff Law <law@redhat.com>
28111
28112 PR rtl-optimization/64317
28113 * Makefile.in (OBJS): Add gcse-common.c
28114 * gcse.c: Include gcse-common.h
28115 (struct modify_pair_s): Move structure definition to gcse-common.h
28116 (compute_transp): Move function to gcse-common.c.
28117 (canon_list_insert): Similarly.
28118 (record_last_mem_set_info): Break out some code and put it into
28119 gcse-common.c. Call into the new common code.
28120 (compute_local_properties): Pass additional arguments to compute_transp.
28121 * postreload-gcse.c: Include gcse-common.h and df.h
28122 (modify_mem_list_set, blocks_with_calls): New variables.
28123 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28124 (get_bb_avail_insn): Pass in the expression index too.
28125 (alloc_mem): Allocate memory for the new bitmaps and lists.
28126 (free_mem): Free memory for the new bitmaps and lists.
28127 (insert_expr_in_table): Record a bitmap index for each entry we
28128 add to the table.
28129 (record_last_mem_set_info): Call into common code in gcse-common.c.
28130 (get_bb_avail_insn): If no available insn was found in the requested
28131 BB. If BB has a single predecessor, see if the expression is
28132 transparent in BB and available in that single predecessor.
28133 (compute_expr_transp): New wrapper for compute_transp.
28134 (eliminate_partially_redundant_load): Pass expression's bitmap_index
28135 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
28136 (gcse_after_reload_main): If there are elements in the hash table,
28137 then compute transparency for all the elements in the hash table.
28138 * gcse-common.h: New file.
28139 * gcse-common.c: New file.
28140
28141 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
28142
28143 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28144 as an adjective.
28145 (System Headers): Likewise.
28146 (Ifdef): Likewise.
28147 (Traditional macros): Likewise.
28148 (Invocation): Likewise.
28149 (Option Index): Likewise.
28150 * doc/cppopts.texi (-M): Likewise.
28151 (-finput-charset): Likewise.
28152 (--help): Likewise.
28153 * doc.invoke.texi (AVR Options): Likewise.
28154 (V850 Options): Likewise.
28155
28156 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
28157
28158 PR ipa/65475
28159 * ipa-devirt.c: Include demangle.h
28160 (odr_type_d): Add field rtti_broken.
28161 (odr_subtypes_equivalent_p): Do not require name to match.
28162 (compare_virtual_tables): Fix typo; if type already has ODR violation,
28163 bypass the tests; be ready for function referneces in vtables that are
28164 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28165 (warn_odr): Give up for nameless types.
28166 (warn_types_mismatch): Report mismatch in mangled names;
28167 report mismatch in anonymous namespaces; look into component types to
28168 give useful error; report when mismatch is dragged in from other ODR
28169 type.
28170 (odr_types_equivalent_p): Match types for being polymorphic; avoid
28171 duplicated diagnostics.
28172 (add_type_duplicate): Reorder checks so more informative ones come
28173 first; fix typo; do not output "the extra base is defined here" when
28174 we did not warn.
28175 (BINFO_N_BASE_BINFOS): Relax sanity check.
28176
28177 2015-03-22 Martin Liska <mliska@suse.cz>
28178 Jakub Jelinek <jakub@redhat.com>
28179
28180 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28181 masks that can potentially include a builtin.
28182 (ix86_add_new_builtins): Introduce fast filter for isa values
28183 that cannot trigger builtin inclusion.
28184
28185 2015-03-22 Martin Liska <mliska@suse.cz>
28186
28187 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28188 (sem_item::update_hash_by_local_refs): Likewise.
28189 (sem_variable::get_hash): Empty line is fixed.
28190 (sem_item_optimizer::execute): Include adding of hash references.
28191 (sem_item_optimizer::update_hash_by_addr_refs): New function.
28192 (sem_item_optimizer::build_hash_based_classes): Use local hash.
28193 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28194 (sem_item::update_hash_by_local_refs): Likewise.
28195
28196 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28197
28198 PR ipa/65502
28199 * ipa-comdats.c (enqueue_references): Walk through thunks.
28200 (ipa_comdats): Likewise.
28201 (set_comdat_group_1): New function.
28202
28203 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28204
28205 PR ipa/65475
28206 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28207 non-polymorphic
28208
28209 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
28210 Gerald Pfeifer <gerald@pfeifer.com>
28211
28212 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28213
28214 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28215 Sandra Loosemore <sandra@codesourcery.com>
28216
28217 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28218 function parameter declaration.
28219 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28220 Update arguments to nios2_adjust_call_address().
28221 (sibcall_internal): Rename from *sibcall.
28222 (sibcall_value_internal): Rename from *sibcall_value.
28223 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28224 (nios2_large_got_address): Add target temp reg parameter.
28225 (nios2_got_address): Adjust call to nios2_large_got_address, add
28226 force_reg around it.
28227 (nios2_load_pic_address): Add target temp reg parameter, replace call
28228 to nios2_got_address with corresponding code.
28229 (nios2_legitimize_constant_address): Update call to
28230 nios2_load_pic_address.
28231 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28232 to use temp reg for PIC loading purposes.
28233 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28234 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28235 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28236
28237 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28238
28239 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28240 usage of "the @option{...}".
28241 (-Wopenmp-simd): Likewise.
28242 (-fsanitize-recover): Likewise.
28243 (-fsanitize-undefined-trap-on-error): Likewise.
28244 (-flto): Likewise.
28245 (tracer-dynamic-coverage-feedback): Likewise.
28246 (reorder-block-duplicate-feedback): Likewise.
28247 (loop-unroll-jam-size): Likewise.
28248 (-B): Likewise.
28249 (-I-): Likewise.
28250 (-mabs=legacy): Likewise.
28251 (-mupper-regs-df): Likewise.
28252 (-mupper-regs-sf): Likewise.
28253 (-mpointers-to-nested-functions): Likewise.
28254
28255 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28256
28257 * doc/extend.texi (Cilk Plus Builtins): Add markup.
28258
28259 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28260
28261 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
28262 additional index entries and cross-references.
28263 (-fchkp-check-incomplete-type): Likewise.
28264 (-fchkp-first-field-has-own-bounds): Likewise.
28265 (-fchkp-narrow-to-innermost-array): Likewise.
28266 (-fchkp-use-fast-string-functions): Likewise.
28267 (-fchkp-use-nochk-string-functions): Likewise.
28268 (-fchkp-use-static-const-bounds): Likewise.
28269 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28270 (-fchkp-instrument-marked-only): Likewise.
28271 (-fchkp-use-wrappers): Likewise.
28272 (-static-libmpx): Likewise.
28273 (-static-libmpxwrappers): Likewise.
28274 * doc/extend.texi (bnd_legacy): Likewise.
28275 (bnd_instrument): Likewise.
28276 (bnd_variable_size): Likewise.
28277 (Pointer Bounds Checker builtins): Likewise.
28278
28279 2015-03-21 Tom de Vries <tom@codesourcery.com>
28280
28281 PR tree-optimization/65458
28282 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
28283 * cgraph.h (cgraph_node): Add parallelized_function field.
28284 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
28285 (input_overwrite_node): Read parallelized_function field.
28286 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
28287 parallelized_function on cgraph_node for child_fn.
28288 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
28289 Remove include of gt-tree-parloops.h.
28290 (parallelized_functions): Remove static variable.
28291 (parallelized_function_p): Rewrite using parallelized_function field of
28292 cgraph_node.
28293 (create_loop_fn): Remove adding to parallelized_functions.
28294 * Makefile.in (GTFILES): Remove tree-parloops.c
28295
28296 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
28297
28298 PR rtl-optimization/64366
28299 * lra.c (lra_update_insn_regno_info): Consider regs in
28300 CALL_INSN_FUNCTION_USAGE memory.
28301
28302 2015-03-20 Richard Biener <rguenther@suse.de>
28303
28304 PR middle-end/64715
28305 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
28306 for type comparison and gcc_checking_assert.
28307 (chrec_fold_plus_poly_poly): Likewise.
28308 (chrec_fold_multiply_poly_poly): Likewise.
28309 (chrec_convert_1): Likewise.
28310 * gimplify.c (gimplify_expr): Remove premature folding of
28311 &X + CST to &MEM[&X, CST].
28312
28313 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28314
28315 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
28316 already is final.
28317 (ipa_inline): Recompute inline_failed codes.
28318 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28319 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
28320 CIF_FINAL_ERROR.
28321
28322 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
28323
28324 PR rtl-optimization/60851
28325 * recog.c (constrain_operands): Accept a pseudo register before reload
28326 for LRA enabled targets.
28327
28328 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
28329
28330 PR target/65240
28331 * config/rs6000/predicates.md (easy_fp_constant): Remove special
28332 -ffast-math handling that kept non-0 constants live in the RTL
28333 until reload. Remove logic testing the number of instructions it
28334 took to create a constant in a GPR that was never used, due to a
28335 test for soft-float earlier.
28336 (memory_fp_constant): Delete, no longer used.
28337
28338 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
28339 alternatives for loading non-0 constants into GPRs for hard
28340 floating point that is no longer needed due to changes in
28341 easy_fp_constant. Add support for loading 0.0 into GPRs.
28342 (mov<mode>_hardfloat32): Likewise.
28343 (mov<mode>_hardfloat64): Likewise.
28344 (mov<mode>_64bit_dm): Likewise.
28345 (movtd_64bit_nodm): Likewise.
28346 (pre-reload move FP constant define_split): Delete define_split,
28347 since it is no longer used.
28348 (extenddftf2_internal): Remove GHF constraints that are not valid
28349 for extenddftf2.
28350
28351 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
28352
28353 PR rtl-optimization/63491
28354 * lra-constraints.c (check_and_process_move): Use src instead of
28355 sreg. Remove some dead code.
28356
28357 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
28358
28359 PR ipa/65380
28360 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
28361 (sem_variable::merge): Likewise.
28362
28363 2015-03-19 Martin Liska <mliska@suse.cz>
28364
28365 PR ipa/65465
28366 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
28367 all fields of cgraph_thunk_info.
28368
28369 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
28370
28371 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
28372 clone instrumented thunks.
28373
28374 2015-03-19 Richard Biener <rguenther@suse.de>
28375
28376 Revert
28377 2015-03-10 Richard Biener <rguenther@suse.de>
28378
28379 PR middle-end/63155
28380 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28381 * tree-ssa-coalesce.c: Include timevar.h.
28382 (attempt_coalesce): Handle graph being NULL.
28383 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28384 Split out abnormal coalescing to ...
28385 (perform_abnormal_coalescing): ... this function.
28386 (coalesce_ssa_name): Perform abnormal coalescing without computing
28387 live/conflict.
28388 (verify_ssa_coalescing_worker): New function.
28389 (verify_ssa_coalescing): Likewise.
28390
28391 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
28392 Jakub Jelinek <jakub@redhat.com>
28393
28394 PR sanitizer/65400
28395 * tsan.c (instrument_gimple): Clear tail call flag on
28396 calls.
28397
28398 2015-03-19 Jakub Jelinek <jakub@redhat.com>
28399
28400 PR sanitizer/65400
28401 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
28402 call in the return bb.
28403 (find_split_points): Add RETURN_BB argument, don't call
28404 find_return_bb.
28405 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
28406 if true append TSAN_FUNC_EXIT internal call after the call to
28407 the split off function.
28408 (execute_split_functions): Call find_return_bb here.
28409 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
28410 Adjust find_split_points and split_function calls.
28411
28412 2015-03-18 DJ Delorie <dj@redhat.com>
28413
28414 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
28415 (iorqi3_virt): Likewise.
28416
28417 2015-03-18 Tom de Vries <tom@codesourcery.com>
28418
28419 * tree-parloops.c (parallelize_loops): Make static.
28420 * tree-parloops.h (parallelize_loops): Remove extern declaration.
28421
28422 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
28423
28424 PR middle-end/64491
28425 Revert:
28426 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
28427
28428 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
28429 condition would be removed due to undefined behaviour.
28430
28431 2015-03-18 Martin Liska <mliska@suse.cz>
28432
28433 PR ipa/65432
28434 * cgraph.c (cgraph_node::get_create): Remove unnecessary
28435 xstrdup_for_dump wrapper.
28436 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
28437 sem_item::name.
28438 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
28439 with xstrdup_for_dump.
28440 (sem_variable::equals): Likewise.
28441 (sem_item_optimizer::read_section): Use symtab_node::name instead of
28442 sem_item::name.
28443 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
28444 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
28445 symtab_node::asm_name with xstrdup_for_dump.
28446 (congruence_class::dump): Use symtab_node::name instead of
28447 sem_item::name.
28448 * ipa-icf.h (symtab_node::name): Remove.
28449 (symtab_node::asm_name): Likewise.
28450
28451 2015-03-18 Jakub Jelinek <jakub@redhat.com>
28452
28453 PR tree-optimization/65450
28454 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
28455 function.
28456 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
28457 it instead of duplicate_ssa_name_ptr_info.
28458
28459 PR target/65222
28460 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
28461
28462 2015-03-18 Richard Biener <rguenther@suse.de>
28463
28464 * tree-data-ref.h (struct access_matrix): Remove.
28465 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
28466 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
28467 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
28468 (am_vector_index_for_loop): Likewise.
28469 (struct data_reference): Remove access_matrix member.
28470 (DR_ACCESS_MATRIX): Remove.
28471 (lambda_vector_new): Add comment.
28472 (lambda_matrix_new): Use XOBNEWVEC.
28473
28474 2015-03-18 Richard Biener <rguenther@suse.de>
28475
28476 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
28477 (pass_ch::execute): Cleanup the CFG only if we did sth.
28478 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
28479
28480 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28481
28482 * expmed.c (synth_mult): Use std::swap instead of manually
28483 swapping algorithms.
28484
28485 2015-03-18 Jakub Jelinek <jakub@redhat.com>
28486
28487 PR target/65078
28488 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
28489
28490 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
28491
28492 PR target/65296
28493 * config/avr/avr.opt (-nodevicelib): New option.
28494 * doc/invoke.texi (AVR Options): Document it.
28495 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
28496 libgcc.a, libc.a, libm.a.
28497 * config/avr/specs.h: Same.
28498 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
28499 which don't (directly) depend on the device. Print more help.
28500 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
28501 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
28502 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
28503 case of an error.
28504 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
28505 for specs file name.
28506 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
28507 * config/avr/avr-mcus.def: Adjust initializers and comments.
28508
28509 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
28510
28511 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
28512 DECL_ONE_ONLY to check if decl is one only.
28513 * ipa-split.c (consider_split): Limit splitt of one only functions.
28514
28515 2015-03-16 Jakub Jelinek <jakub@redhat.com>
28516
28517 PR tree-optimization/65427
28518 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
28519 functions.
28520 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
28521
28522 2015-03-16 Marek Polacek <polacek@redhat.com>
28523
28524 * cgraph.h (add_new_static_var): Remove declaration.
28525 * varpool.c (add_new_static_var): Remove function.
28526
28527 2015-03-16 Jakub Jelinek <jakub@redhat.com>
28528
28529 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
28530 instead of vec<tree> * with vec_alloc and release for args.
28531 Adjust all users.
28532
28533 PR middle-end/65431
28534 * omp-low.c (delete_omp_context): Only splay_tree_delete
28535 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
28536 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
28537
28538 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
28539
28540 PR sanitizer/64820
28541 * cfgexpand.c (align_base): New function.
28542 (alloc_stack_frame_space): Call it.
28543 (expand_stack_vars): Align prev_frame to be sure
28544 data->asan_vec elements aligned properly.
28545
28546 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
28547
28548 PR middle-end/65409
28549 * expr.c (store_field): Do not do a direct block copy if the source is
28550 a PARALLEL with BLKmode.
28551
28552 2015-03-16 Tom de Vries <tom@codesourcery.com>
28553
28554 PR middle-end/65414
28555 Revert:
28556 2015-03-12 Tom de Vries <tom@codesourcery.com>
28557
28558 PR rtl-optimization/64895
28559 * lra-lives.c (check_pseudos_live_through_calls): Use
28560 actual_call_used_reg_set instead of call_used_reg_set, if available.
28561
28562 2015-03-16 Alan Modra <amodra@gmail.com>
28563
28564 PR target/63150
28565 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
28566 Modify Z->r bswapdi splitter to use dest in place of scratch.
28567 In r->Z and Z->r bswapdi splitter rename word_high, word_low
28568 to word1, word2 and rearrange logic to suit.
28569 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
28570 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
28571 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
28572 Add one '?' on r->r. Modify Z->r splitter to avoid need for
28573 early clobber.
28574
28575 2015-03-14 Jakub Jelinek <jakub@redhat.com>
28576
28577 PR tree-optimization/65369
28578 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
28579 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
28580 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
28581
28582 PR tree-optimization/65418
28583 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
28584 are casts in the first PLUS_EXPR operand, ensure tbias and
28585 *totallowp are in the inner type.
28586
28587 PR rtl-optimization/65401
28588 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
28589 argument. If true, adjust_address_nv of x with big-endian
28590 correction for the mode widening to GET_MODE (y).
28591 (make_field_assignment): Don't do MEM mode widening here.
28592 Use MEM_P instead of GET_CODE == MEM.
28593
28594 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
28595
28596 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
28597 the external decls.
28598
28599 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28600
28601 PR target/64600
28602 * config/arm/arm.c (arm_gen_constant, AND case): Use
28603 ARM_SIGN_EXTEND when constructing AND mask.
28604
28605 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
28606
28607 * graph.c (print_graph_cfg): Make function names visible and append
28608 parenthesis to it. Also make groups of basic blocks belonging to the
28609 same function visible.
28610
28611 2015-03-12 Richard Biener <rguenther@suse.de>
28612
28613 PR middle-end/44563
28614 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
28615 to avoid quadratic behavior with inline expansion splitting blocks.
28616 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
28617 with the successor if the predecessor will be merged with it.
28618 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
28619 entry block with its successor.
28620
28621 2015-03-13 Richard Biener <rguenther@suse.de>
28622
28623 PR middle-end/44563
28624 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
28625 (cleanup_tree_cfg_1): Do not call it.
28626 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
28627 (fixup_noreturn_call): Mark the stmt as control altering.
28628 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
28629 here.
28630 (pass_data_fixup_cfg): Produce a dump file.
28631 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
28632 (need_noreturn_fixup): New global.
28633 (pass_dominator::execute): Fixup queued noreturn calls.
28634 (optimize_stmt): Queue calls that became noreturn for fixup.
28635 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
28636 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
28637 (el_to_fixup): New global.
28638 (eliminate_dom_walker::before_dom_childre): Queue calls that
28639 became noreturn for fixup.
28640 (eliminate): Fixup queued noreturn calls.
28641 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
28642 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
28643 (substitute_and_fold_dom_walker::before_dom_children): Queue
28644 alls that became noreturn for fixup.
28645 (substitute_and_fold): Fixup queued noreturn calls.
28646
28647 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
28648
28649 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
28650 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
28651 are building; for methods check ODR type of class they belong to if
28652 they may lead to a polymorphic call.
28653 (sem_function::compare_polymorphic_p): Be bit smarter about testing
28654 when function may lead to a polymorphic call.
28655 (sem_function::compare_type_list): Remove.
28656 (sem_variable::equals): Update use of compatible_types_p.
28657 (sem_variable::parse_tree_refs): Remove.
28658 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
28659 cdtor.
28660 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
28661 matching here.
28662 (func_checker::compatible_polymorphic_types_p): Break out from ...
28663 (unc_checker::compatible_types_p): ... here.
28664 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
28665 Declare.
28666 (unc_checker::compatible_types_p): Update.
28667 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
28668 Remove.
28669
28670 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28671
28672 PR rtl-optimization/65235
28673 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
28674 When first element of vec_concat is const_int, calculate its size
28675 using second element.
28676
28677 2015-03-12 Richard Biener <rguenther@suse.de>
28678
28679 PR middle-end/65270
28680 * fold-const.c (operand_equal_p): Fix ordering of resetting
28681 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
28682
28683 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
28684
28685 * config/s390/s390.c (s390_reorg): Move code to output nops after label
28686 to s390_reorg ().
28687 (s390_asm_output_function_label): Likewise.
28688 * config/s390/s390.c (s390_asm_output_function_label):
28689 Fix function label alignment with -mhtopatch.
28690 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
28691 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
28692 ("nop_2_byte"): New define_insn.
28693 ("nop_4_byte"): Likewise.
28694 ("nop_6_byte"): Likewise.
28695 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
28696 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
28697
28698 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28699
28700 PR target/65103
28701 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
28702 register.
28703
28704 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
28705
28706 PR target/65044
28707 * toplev.c (process_options): Restrict Pointer Bounds Checker
28708 usage with Address Sanitizer.
28709
28710 2015-03-12 Richard Biener <rguenther@suse.de>
28711
28712 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
28713 to split on.
28714 * omp-low.c (expand_omp_taskreg): Split block before removing
28715 the stmt.
28716 (expand_omp_target): Likewise.
28717 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
28718 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
28719 stmt to split_block.
28720
28721 2015-03-12 Tom de Vries <tom@codesourcery.com>
28722
28723 PR rtl-optimization/64895
28724 * lra-lives.c (check_pseudos_live_through_calls): Use
28725 actual_call_used_reg_set instead of call_used_reg_set, if available.
28726
28727 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28728
28729 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
28730 (cgraph_node::remove): Likewise.
28731 (cgraph_node::get_untransformed_body): Likewise.
28732 * varpool.c (varpool_node::remove): Likewise.
28733 (varpool_node::get_constructor): Add sanity check.
28734
28735 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
28736
28737 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
28738 old GCC versions.
28739 (-fabi-compat-version): Likewise.
28740 (-ffriend-injection): Likewise.
28741 (-Wdeclaration-after-statement): Likewise.
28742 (-fomit-frame-pointer): Likewise.
28743 (-ftree-coalesce-inlined-vars): Likewise.
28744 (-fvisibility=): Likewise.
28745 * doc/extend.texi (Typeof): Likewise.
28746 (Zero Length): Likewise.
28747 (Escaped Newlines): Likewise.
28748 (Compound Literals): Likewise.
28749 (Function Attributes): Likewise.
28750 (Label Attributes): Likewise.
28751 (Type Attributes): Likewise.
28752 (Function Names): Likewise.
28753 (Other Builtins): Likewise.
28754 (Function Specific Option Pragmas): Likewise.
28755 (C++ Interface): Likewise.
28756
28757 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
28758
28759 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
28760
28761 2015-03-11 Marek Polacek <polacek@redhat.com>
28762
28763 PR tree-optimization/65388
28764 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
28765
28766 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28767
28768 PR target/65296
28769 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
28770 * configure: Regenerate.
28771 * config.in: Regenerate.
28772 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
28773 [-mn-flash]: Document it.
28774 [__AVR_ARCH__]: Document avrtiny.
28775
28776 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
28777 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
28778 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
28779
28780 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28781
28782 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
28783
28784 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28785
28786 PR target/65242
28787 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
28788 allow reloads of PLUS in floating point/VSX registers.
28789
28790 2015-03-11 Junmo Park <junmoz.park@samsung.com>
28791
28792 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
28793 crypto_sha256_fast.
28794 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
28795
28796 2015-03-11 Richard Biener <rguenther@suse.de>
28797
28798 PR tree-optimization/65310
28799 * tree-sra.c (build_ref_for_offset): Also preserve larger
28800 alignment.
28801
28802 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
28803
28804 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
28805
28806 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28807
28808 PR target/65368
28809 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
28810 new define_expand.
28811 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
28812
28813 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
28814
28815 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
28816 (sem_function::equals_wpa): ... here.
28817
28818 2015-03-10 Marek Polacek <polacek@redhat.com>
28819 Jakub Jelinek <jakub@redhat.com>
28820
28821 PR sanitizer/65367
28822 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
28823 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
28824 separately.
28825
28826 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28827
28828 PR target/65286
28829 * config/rs6000/t-linux: For powerpc64* target set
28830 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
28831
28832 2015-03-10 Richard Biener <rguenther@suse.de>
28833
28834 PR middle-end/44563
28835 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
28836 for redirect_all_calls.
28837
28838 2015-03-10 Marek Polacek <polacek@redhat.com>
28839
28840 * gdbinit.in (pcfun): Define and document.
28841
28842 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
28843
28844 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
28845 of libgomp-plugin.h.
28846 (find_target_compiler): Support a case when the path to gcc is
28847 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
28848 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
28849 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
28850 libgomp-plugin.h.
28851 (main): Use GCC_INSTALL_NAME as target_driver_name.
28852 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
28853 define.
28854 (mkoffload.o): Remove obsolete include path and defines.
28855 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
28856
28857 2015-03-10 Richard Biener <rguenther@suse.de>
28858
28859 PR middle-end/63155
28860 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28861 * tree-ssa-coalesce.c: Include timevar.h.
28862 (attempt_coalesce): Handle graph being NULL.
28863 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28864 Split out abnormal coalescing to ...
28865 (perform_abnormal_coalescing): ... this function.
28866 (coalesce_ssa_name): Perform abnormal coalescing without computing
28867 live/conflict.
28868 (verify_ssa_coalescing_worker): New function.
28869 (verify_ssa_coalescing): Likewise.
28870
28871 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
28872
28873 PR target/65296
28874 * config.gcc (extra_options) [avr]: Remove.
28875 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
28876 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
28877 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
28878
28879 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
28880 (-mmcu=): Add Var and MissingArgError properties.
28881 (-march=): Remove.
28882 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
28883 * config/avr/t-multilib: Regenerate.
28884 * config/avr/specs.h: New file.
28885 * config/avr/driver-avr.c: New file.
28886 * config/avr/genopt.sh: Remove file.
28887 * config/avr/avr-tables.opt: Remove file.
28888 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
28889 * config/avr/avr-c.c: Same.
28890 * avr-arch.h: Same.
28891 (avr_current_device): Remove proto.
28892 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
28893 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
28894 (EXTRA_SPEC_FUNCTIONS): Define.
28895 (avr_devicespecs_file): New specs function proto.
28896 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
28897 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
28898 (avr_current_device): Remove definition and usage.
28899 (avr_set_core_architecture): New static function.
28900 (avr_option_override): Use it.
28901 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
28902 (mcu_name): New static array.
28903 (comparator, avr_archs_str, avr_mcus_str): New static functions.
28904 (avr_inform_devices, avr_inform_core_architectures): New functions.
28905 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
28906 (avrlibc.h) [WITH_AVRLIBC]: Include.
28907 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
28908 (print_mcu): Rewrite from scratch.
28909 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
28910 Forward to avr-specific specs defined in device-specs file.
28911 * config/avr/t-avr (driver-avr.o): New rule.
28912 (avr-devices.o): Depend on avr-arch.h.
28913 (avr-mcus): No more depend on avr-tables.opt.
28914 (avr-tables.opt): Remove rule.
28915 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
28916
28917 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28918
28919 * c-family/c.opt (fchkp-use-wrappers): New.
28920 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
28921 (chkp_wrap_function): New.
28922 (chkp_build_instrumented_fndecl): Support wrapped
28923 functions.
28924 * doc/invoke.texi (-fcheck-pointer-bounds): New.
28925 (-fchkp-check-incomplete-type): New.
28926 (-fchkp-first-field-has-own-bounds): New.
28927 (-fchkp-narrow-bounds): New.
28928 (-fchkp-narrow-to-innermost-array): New.
28929 (-fchkp-optimize): New.
28930 (-fchkp-use-fast-string-functions): New.
28931 (-fchkp-use-nochk-string-functions): New.
28932 (-fchkp-use-static-bounds): New.
28933 (-fchkp-use-static-const-bounds): New.
28934 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
28935 (-fchkp-check-read): New.
28936 (-fchkp-check-write): New.
28937 (-fchkp-store-bounds): New.
28938 (-fchkp-instrument-calls): New.
28939 (-fchkp-instrument-marked-only): New.
28940 (-fchkp-use-wrappers): New.
28941 (-static-libmpx): New.
28942 (-static-libmpxwrappers): New.
28943
28944 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28945
28946 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
28947 (CHKP_SPEC): Add wrappers library.
28948 * c-family/c.opt (static-libmpxwrappers): New.
28949
28950 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
28951
28952 * config/i386/linux-common.h (LIBMPX_LIBS): New.
28953 (LIBMPX_SPEC): New.
28954 (CHKP_SPEC): New.
28955 * gcc.c (CHKP_SPEC): New.
28956 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
28957 * c-family/c.opt (static-libmpx): New.
28958
28959 2015-03-10 Richard Biener <rguenther@suse.de>
28960
28961 PR middle-end/44563
28962 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
28963 for compare_type.
28964 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
28965 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
28966 (cgraph_add_edge_to_call_site_hash): Likewise.
28967 (cgraph_node::get_edge): Likewise.
28968 (cgraph_edge::set_call_stmt): Likewise.
28969 (cgraph_edge::remove_caller): Likewise.
28970
28971 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
28972
28973 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
28974 (callee_saved_gpr_regs_size): ... this.
28975 (callee_saved_regs_first_regno): Rename to ...
28976 (callee_saved_first_gpr_regno): ... this.
28977 (callee_saved_regs_last_regno) Rename to ...
28978 (callee_saved_last_gpr_regno): ... this.
28979 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
28980 variables.
28981 (nds32_initial_elimination_offset): Likewise.
28982 (nds32_expand_prologue): Likewise.
28983 (nds32_expand_epilogue): Likewise.
28984 (nds32_expand_prologue_v3push): Likewise.
28985 (nds32_expand_epilogue_v3pop): Likewise.
28986 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
28987 Adjust renamed variables.
28988 (nds32_output_stack_pop): Likewise.
28989
28990 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
28991
28992 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
28993 code in comment.
28994
28995 2015-03-10 Jakub Jelinek <jakub@redhat.com>
28996
28997 PR rtl-optimization/65321
28998 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
28999 than shift mode.
29000 * var-tracking.c (use_narrower_mode): Likewise.
29001
29002 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29003
29004 PR tree-optimization/65355
29005 * varasm.c (notice_global_symbol): Do not produce RTL.
29006 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29007 anchor.
29008 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29009 check for section anchors.
29010
29011 2015-03-10 Alan Modra <amodra@gmail.com>
29012
29013 PR target/65286
29014 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29015 to be single-arch by default. Set cpu_is_64bit for powerpc64
29016 given --with-cpu=native.
29017 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29018 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29019 and powerpc64le.
29020 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29021 rs6000_isa_flags rather than TARGET_64BIT.
29022
29023 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
29024 Kaz Kojima <kkojima@gcc.gnu.org>
29025
29026 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29027
29028 2015-03-09 Jakub Jelinek <jakub@redhat.com>
29029
29030 PR lto/65361
29031 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29032 on a TREE_BINFO, instead use BINFO_TYPE.
29033
29034 2015-03-09 Richard Biener <rguenther@suse.de>
29035
29036 PR middle-end/65270
29037 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29038 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29039 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
29040 of that. When comparing dereferences compare alignment.
29041 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29042
29043 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29044
29045 * ipa-inline-analysis.c (check_callers): Check
29046 node->can_remove_if_no_direct_calls_and_refs_p.
29047 (growth_likely_positive): Reorganize to call
29048 can_remove_if_no_direct_calls_p later.
29049 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29050 will_be_removed_from_program_if_no_direct_calls_p): Add
29051 will_inline parameter.
29052 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29053 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29054 Handle inliner case correctly.
29055
29056 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
29057
29058 PR tree-optimization/63743
29059 * cfgexpand.c (reorder_operands): Also reorder if only second operand
29060 had its definition forwarded by TER.
29061
29062 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29063
29064 PR lto/65316
29065 * ipa-utils.h (types_odr_comparable): Add strict argument.
29066 * ipa-devirt.c: Fix whitespace;
29067 (odr_hasher): Remove.
29068 (odr_name_hasher, odr_vtable_hasher): New hashers.
29069 (can_be_name_hashed_p): New predicate.
29070 (hash_type_name): remove.
29071 (hash_odr_name): New.
29072 (odr_name_hasher::hash): new.
29073 (can_be_vtable_hashed_p): New.
29074 (hash_odr_vtable): New.
29075 (odr_vtable_hasher::hash): New.
29076 (types_same_for_odr): Add strict parameter.
29077 (types_odr_comparable): Likewise.
29078 (odr_name_hasher::equal): New.
29079 (odr_vtable_hasher::equal): New.
29080 (odr_name_hasher::remove): New.
29081 (odr_hash_type): Change to hash_table<odr_name_hasher>.
29082 (odr_vtable_hash_type): New.
29083 (odr_vtable_hash): New.
29084 (odr_subtypes_equivalent_p): Do strict comparsion.
29085 (add_type_duplicate): Merge type names; cleanup; avoid type
29086 duplicates.
29087 (register_odr_type): Initialize vtable hash.
29088 (build_type_inheritance_graph): Likewise
29089 (get_odr_type): Reorg to use two hashes.
29090 (dump_possible_polymorphic_call_targets): Move sanity check after debug
29091 output.
29092 (ipa_devirt): Dump type_inheritance_graph.
29093 (types_same_for_odr): Add strict mode.
29094
29095 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29096
29097 PR ipa/65334
29098 * cgraph.h (symtab_node): Add definition_alignment,
29099 can_increase_alignment_p and increase_alignment.
29100 * symtab.c (symtab_node::can_increase_alignment_p,
29101 increase_alignment_1, symtab_node::increase_alignment,
29102 symtab_node::definition_alignment): New.
29103 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29104 can_increase_alignment_p.
29105 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29106 * tree-vect-stmts.c (ensure_base_align): Likewise.
29107 * varasm.c (function_section_1): Use definition_alignment.
29108 (assemble_start_function): Likewise.
29109 (emit_local): likewise.
29110 (build_constant_desc): Likewsie.
29111 (output_constant_def_contents): Likewise.
29112 (place_block_symbol): Likewise.
29113 (output_object_block): Likewise.
29114
29115 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29116
29117 PR ipa/65316
29118 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29119 when outputting debug.
29120
29121 2015-03-07 Marek Polacek <polacek@redhat.com>
29122 Martin Uecker <uecker@eecs.berkeley.edu>
29123
29124 PR sanitizer/65280
29125 * doc/invoke.texi: Update description of -fsanitize=bounds.
29126
29127 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
29128
29129 * tree-ssa-phiopt.c (neg_replacement): Remove.
29130 (tree_ssa_phiopt_worker): Remove negate optimization.
29131
29132 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29133
29134 PR ipa/65302
29135 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29136
29137 2015-03-06 Richard Biener <rguenther@suse.de>
29138
29139 PR middle-end/64928
29140 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29141 and liveout_obstack members.
29142 (calculate_live_on_exit): Remove.
29143 (calculate_live_ranges): Change declaration.
29144 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29145 (new_tree_live_info): Adjust.
29146 (calculate_live_ranges): Delete livein when not wanted.
29147 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29148 Deal with partly deleted live info.
29149 (loe_visit_block): Remove temporary bitmap by using
29150 bitmap_ior_and_compl_into.
29151 (live_worklist): Adjust accordingly.
29152 (calculate_live_on_exit): Make static.
29153 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29154 we do not need livein.
29155
29156 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
29157
29158 * real.c (real_from_string): Fix typo in assertion.
29159
29160 2015-03-06 Alex Velenko <alex.velenko@arm.com>
29161
29162 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29163 the patch.
29164
29165 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29166
29167 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29168
29169 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
29170
29171 PR target/64342
29172 * lra-assigns.c (find_hard_regno_for): Rename to
29173 find_hard_regno_for_1. Add a new parameter.
29174 (find_hard_regno_for): New function using find_hard_regno_for_1.
29175
29176 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29177
29178 PR rtl-optimization/65067
29179 * expmed.c (store_bit_field, extract_bit_field): Reworked the
29180 strict volatile bitfield handling.
29181
29182 2015-03-05 Martin Liska <mliska@suse.cz>
29183
29184 PR ipa/65318
29185 * ipa-icf.c (sem_variable::equals): Compare variables types.
29186
29187 2015-03-05 Richard Henderson <rth@redhat.com>
29188
29189 PR target/65121
29190 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29191 correctly check weak symbol binding.
29192
29193 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
29194
29195 PR middle-end/65315
29196 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29197 needed alignment.
29198
29199 2015-03-05 Martin Liska <mliska@suse.cz>
29200
29201 * ipa-inline.c (inline_small_functions): Set default value to
29202 prevent warning during bootstrap.
29203 * tree.h: Add pragma guard that ignores false positives during
29204 bootstrap.
29205
29206 2015-03-05 Richard Biener <rguenther@suse.de>
29207
29208 PR tree-optimization/65310
29209 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29210 Properly preserve alignment of the base of the access.
29211
29212 2015-03-05 Richard Biener <rguenther@suse.de>
29213
29214 PR ipa/65270
29215 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29216 Compare dependence info.
29217
29218 2015-03-05 Richard Biener <rguenther@suse.de>
29219
29220 PR middle-end/65233
29221 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29222 tree-into-ssa.h.
29223 (walk_ssa_copies): Revert last chage. Instead do not walk
29224 SSA names registered for SSA update.
29225
29226 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29227
29228 PR ipa/65270
29229 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29230 vtable references for their containing type.
29231 (sem_function::equals_wpa): Compare TYPE_RESTRICT
29232 and type attributes.
29233
29234 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
29235
29236 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29237 before negating it.
29238 * stor-layout.c (finalize_record_size): Revert latest change.
29239
29240 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
29241
29242 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29243
29244 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29245
29246 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29247 for correct comdat handling.
29248 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29249 Likewise.
29250 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
29251 (used_from_object_file_p_worker): Remove.
29252 (cgraph_node::only_called_directly_or_alised): Add
29253 used_from_object_file_p.
29254 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
29255 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
29256 can_remove_if_no_direct_calls_and_refs_p.
29257
29258 2015-03-04 Nick Clifton <nickc@redhat.com>
29259
29260 * config/rl78/rl78.h (enum reg_class): Remove real registers from
29261 General register class.
29262 * config/rl78/rl78-real.md: Replace general register constraints
29263 with real+virtual register constraints.
29264
29265 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29266
29267 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
29268 from checking for -mhtm option.
29269
29270 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29271
29272 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
29273 (struct ipa_sra_check_caller_data): Add has_thunk field.
29274 (ipa_sra_check_caller): Check for thunk.
29275 (ipa_sra_preliminary_function_checks): Give up on function with
29276 thunks.
29277 (ipa_early_sra): Use call_for_symbol_and_aliases.
29278
29279 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29280
29281 PR target/65249
29282 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
29283 called for __stack_chk_guard symbol.
29284
29285 2015-03-03 DJ Delorie <dj@redhat.com>
29286
29287 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
29288 inc/dec.
29289 (*addhi3_real): Likewise.
29290 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
29291 pattern to match incrementing memory.
29292 * config/rl78/predicates.md (rl78_1_2_operand): New.
29293 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
29294 it's the same and only mem.
29295 (rl78_alloc_physical_registers_op2): If there's effectively only
29296 one MEM, transcode it into HL.
29297 (rl78_far_p): Reject addresses that aren't legitimate.
29298
29299 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
29300
29301 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
29302 negating it.
29303
29304 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
29305
29306 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29307
29308 Implement call0 ABI for xtensa
29309 * config/xtensa/constraints.md ("a" constraint): Include stack
29310 pointer in case of call0 ABI.
29311 ("q" constraint): Make empty in case of call0 ABI.
29312 ("D" constraint): Include stack pointer in case of call0 ABI.
29313 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
29314 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
29315 prototypes.
29316 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
29317 variable.
29318 (xtensa_regno_to_class): Make it a local variable in the
29319 function xtensa_regno_to_class.
29320 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
29321 macro, function prototype and implementation.
29322 (reg_nonleaf_alloc_order): Make it a local variable in the
29323 function order_regs_for_local_alloc.
29324 (xtensa_conditional_register_usage): New function.
29325 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
29326 (xtensa_valid_move): Allow direct moves to stack pointer
29327 register in call0 ABI.
29328 (xtensa_setup_frame_addresses): Only spill register windows in
29329 windowed ABI.
29330 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
29331 call0 ABI respectively.
29332 (xtensa_function_arg_1): Only mark a7 register for copying in
29333 windowed ABI.
29334 (xtensa_call_save_reg): New function.
29335 (compute_frame_size): Add space for callee saved register
29336 storage to the frame size in call0 ABI.
29337 (xtensa_expand_prologue): Generate code to set up stack frame
29338 and save callee-saved registers in call0 ABI.
29339 (xtensa_expand_epilogue): New function.
29340 (xtensa_set_return_address): New function.
29341 (xtensa_return_addr): Calculate return address in call0 ABI.
29342 (xtensa_builtin_saveregs): Only mark a7 register for copying and
29343 emit copying code in windowed ABI.
29344 (order_regs_for_local_alloc): Add preferred register allocation
29345 order for non-leaf function in call0 ABI.
29346 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
29347 (xtensa_asm_trampoline_template): Add trampoline generation for
29348 call0 ABI.
29349 (xtensa_trampoline_init): Add trampoline initialization for
29350 call0 ABI.
29351 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
29352 functions.
29353 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
29354 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
29355 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
29356 ABI call-used registers.
29357 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
29358 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
29359 call0 ABI.
29360 (REG_CLASS_CONTENTS): Include all registers into the preferred
29361 reload registers set, adjust the set in the
29362 xtensa_conditional_register_usage.
29363 (xtensa_regno_to_class): Drop variable declaration.
29364 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
29365 function.
29366 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
29367 respectively.
29368 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
29369 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
29370 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
29371 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
29372 location in call0 ABI.
29373 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
29374 stack adjustment size when handling exception.
29375 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
29376 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
29377 definitions.
29378 ("return" pattern): Generate ret.n/ret in call0 ABI.
29379 ("epilogue" pattern): Expand epilogue.
29380 ("nonlocal_goto" pattern): Use default in call0 ABI.
29381 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
29382 emit eh_set_a0_* depending on ABI.
29383 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
29384 ("eh_set_a0_call0", "blockage"): New patterns.
29385
29386 2015-03-03 Martin Liska <mliska@suse.cz>
29387
29388 PR ipa/65287
29389 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
29390
29391 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29392
29393 PR 65138/target
29394 * config/rs6000/rs6000-tables.opt: Regenerate table.
29395
29396 2015-03-03 Renlin Li <renlin.li@arm.com>
29397
29398 * doc/md.texi (@item ^): Change ? into ^.
29399
29400 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
29401
29402 * doc/tm.texi: Regenerated.
29403
29404 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
29405
29406 * builtins.c (expand_builtin_return_addr): Add
29407 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
29408 surrounding #ifdef.
29409 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
29410 definition to 1.
29411 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
29412 Likewise.
29413 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
29414 undefined.
29415 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
29416 paragraph.
29417
29418 2015-03-03 Martin Jambor <mjambor@suse.cz>
29419 Eric Botcazou <ebotcazou@adacore.com>
29420
29421 * tree-sra.c (ipa_sra_check_caller_data): New type.
29422 (has_caller_p): Removed.
29423 (ipa_sra_check_caller): New function.
29424 (ipa_sra_preliminary_function_checks): Use it.
29425
29426 2015-03-03 Martin Liska <mliska@suse.cz>
29427
29428 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
29429 instead of if branch.
29430
29431 2015-03-03 Martin Liska <mliska@suse.cz>
29432
29433 PR ipa/65282
29434 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
29435
29436 2015-03-23 Jeff Law <law@redhat.com>
29437
29438 PR tree-optimization/65241
29439 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
29440 hash table if INSERT is true.
29441
29442 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29443
29444 PR target/65296
29445 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
29446
29447 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29448
29449 PR target/64331
29450 * config/avr/avr.c (context.h, tree-pass.h): Include them.
29451 (avr_pass_data_recompute_notes): New static variable.
29452 (avr_pass_recompute_notes): New class.
29453 (avr_register_passes): New static function.
29454 (avr_option_override): Call it.
29455
29456 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
29457
29458 Fix various problems with specs file generation.
29459
29460 PR target/65296
29461 * config.gcc (extra_gcc_objs) [avr]: Remove.
29462 * config/avr/driver-avr.c: Remove file.
29463 * config/avr/t-avr (driver-avr.o): Remove rule.
29464 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
29465 INCLUDES to build. Depend on TM_H.
29466 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
29467 build warnings. Fix non-matching types and non-existing %-codes.
29468 (tm.h): Include.
29469 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
29470 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
29471 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
29472 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
29473 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
29474 (LIBGCC_SPEC): Remove definitions.
29475
29476 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
29477
29478 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
29479 to create a register in testing mode.
29480
29481 2015-03-03 Martin Liska <mliska@suse.cz>
29482 Jan Hubicka <hubicka@ucw.cz>
29483
29484 PR ipa/65263
29485 * cgraph.c (cgraph_node::has_thunk_p): New function.
29486 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
29487 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
29488 (sem_function::merge): Assert is changed.
29489
29490 2015-03-03 Martin Liska <mliska@suse.cz>
29491 Martin Jambor <mjambor@suse.cz>
29492
29493 PR ipa/65087
29494 * ipa-icf.c (sem_item_optimizer::execute): Change function
29495 return value to boolean.
29496 (sem_item_optimizer::merge_classes): Likewise.
29497 (ipa_icf_driver): Return TODO_remove_functions in case there's
29498 a merge operation processed.
29499 * ipa-icf.h: Change function return value to boolean.
29500
29501 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29502
29503 PR 65138/target
29504 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
29505 processor type for 64-bit little endian PowerPC.
29506
29507 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
29508 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
29509 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
29510 printing built-in mask so it does not pass NULL pointers.
29511
29512 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
29513 -mcpu=powerpc64le.
29514
29515 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
29516
29517 PR target/58158
29518 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
29519 !ISA_HAS_FP_CONDMOVE.
29520
29521 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
29522
29523 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
29524 reload_completed.
29525
29526 2015-03-02 Ulrich Drepper <drepper@gmail.com>
29527
29528 * doc/invoke.texi (Options for Code Generation Conventions):
29529 Fix URL of DSO paper.
29530
29531 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29532
29533 PR ipa/65130
29534 * ipa-inline.c (check_callers): Looks for recursion.
29535 (inline_to_all_callers): Give up on uninlinable or recursive edges.
29536 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
29537 summary of inline clones.
29538 (do_estimate_growth_1): Fix recursion check.
29539
29540 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29541
29542 PR ipa/64988
29543 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
29544 comdat groups.
29545
29546 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
29547 Aldy Hernandez <aldyh@redhat.com>
29548
29549 PR lto/65276
29550 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
29551 when checking TYPE_BINFO.
29552
29553 2015-03-02 Richard Biener <rguenther@suse.de>
29554
29555 PR ipa/65270
29556 * ipa-icf-gimple.c: Include builtins.h.
29557 (func_checker::compare_memory_operand): Compare base alignment.
29558
29559 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
29560
29561 PR target/65184
29562 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
29563 are never passed by reference.
29564
29565 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
29566
29567 PR target/65183
29568 * tree-chkp.c (chkp_check_lower): Don't check against
29569 zero bounds for already instrumented functions.
29570 (chkp_check_upper): Likewise.
29571 (chkp_fini): Clean pass local data to avoid wrong reusage.
29572
29573 2015-02-28 Martin Liska <mliska@suse.cz>
29574 Jan Hubicka <hubicka@ucw.cz>
29575
29576 * ipa-icf.c (sem_variable::equals): Improve debug output;
29577 get variable constructor.
29578 (sem_variable::parse): Do not filter out too early; give up on
29579 volatile and register vars.
29580 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
29581 variables.
29582 * ipa-icf.h (sem_variable::init): Do not set ctor.
29583 (sem_variable::ctor): Remove.
29584
29585 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
29586
29587 PR middle-end/65233
29588 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
29589
29590 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29591
29592 * ipa-icf.c: Include stor-layout.h
29593 (sem_function::compare_cgraph_references): Rename to ...
29594 (sem_item::compare_cgraph_references): ... this one.
29595 (sem_variable::equals_wpa): New function
29596 (sem_variable::equals): Do not check stuff already verified by
29597 equals_wpa.
29598 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
29599 * ipa-icf.h (sem_item): Add compare_cgraph_references.
29600 (sem_function): Remove compare_cgraph_references.
29601 (sem_variable): Turns equals_wpa into non-inline.
29602
29603 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29604
29605 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
29606 (sem_item::add_expr): New function.
29607 (sem_function::hash_stmt): Handle operands of most statements.
29608 (sem_variable::get_hash): Hash the actual constructor.
29609 * ipa-icf.h (sem_item): Add add_expr.
29610 (sem_function): Update prototype of hash_stmt
29611
29612 2015-02-28 Martin Liska <mliska@suse.cz>
29613 Jan Hubicka <hubicka@ucw.cz>
29614
29615 PR ipa/65245
29616 * ipa-icf-gimple.c (func_checker::compare_function_decl):
29617 Remove.
29618 (func_checker::compare_variable_decl): Skip symtab vars.
29619 (func_checker::compare_cst_or_decl): Update.
29620 * ipa-icf.c (sem_function::parse): Do not consider aliases.
29621 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
29622 use correct symtab predicates.
29623 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
29624 (sem_variable::parse): Update comment.
29625 (sem_item_optimizer::build_graph): Consider ultimate aliases
29626 for references.
29627
29628 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29629
29630 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
29631 of OBJ_TYPE_REF.
29632
29633 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29634
29635 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
29636 (sem_variable::merge) Likewise.
29637
29638 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29639
29640 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
29641 target; also match flag_ipa_devirt.
29642
29643 2015-03-01 Martin Liska <mliska@suse.cz>
29644 Jan Hubicka <hubicka@ucw.cz>
29645
29646 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
29647 Validate variable alignment.
29648 * ipa-icf.c (sem_function::equals_private): Be more precise
29649 about non-common function attributes.
29650 (sem_variable::equals): Likewise.
29651
29652 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29653
29654 PR ipa/65237
29655 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
29656 across COMDAT group boundary.
29657
29658 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29659
29660 PR ipa/65232
29661 * ipa-icf.c (clear_decl_rtl): New function.
29662 (sem_function::merge): Clear RTL before forming alias.
29663 (sem_variable::merge): Clear RTL before forming alias.
29664
29665 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
29666
29667 PR ipa/65236
29668 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
29669
29670 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
29671
29672 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
29673 to neon_to_gp<q>.
29674
29675 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29676
29677 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
29678 a typo in the description.
29679
29680 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29681
29682 PR target/64317
29683 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
29684 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
29685 * lra-constraints.c: Include "params.h".
29686 (EBB_PROBABILITY_CUTOFF): Use
29687 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
29688 (lra_inheritance): Use '<' instead of '<=' for
29689 EBB_PROBABILITY_CUTOFF.
29690 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
29691 Document change.
29692
29693 2015-02-27 Martin Liska <mliska@suse.cz>
29694
29695 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
29696 vector length condition.
29697
29698 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
29699
29700 * doc/extend.texi (x86 transactional memory intrinsics):
29701 Reorganize discussion of _xbegin. Clarify that the return
29702 value is a bit mask. Expand example and move to end of section.
29703
29704 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29705 Aldy Hernandez <aldyh@redhat.com>
29706
29707 PR rtl-optimization/65220
29708 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
29709
29710 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
29711
29712 PR target/65032
29713 * lra-remat.c (update_scratch_ops): New.
29714 (do_remat): Call it.
29715 * lra.c (lra_register_new_scratch_op): New. Take code from ...
29716 (remove_scratches): ... here.
29717 * lra-int.h (lra_register_new_scratch_op): New prototype.
29718
29719 2015-02-27 Marek Polacek <polacek@redhat.com>
29720
29721 PR c/65040
29722 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
29723 -Wformat-signedness anymore.
29724
29725 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29726
29727 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
29728 function.
29729 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
29730
29731 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29732
29733 * config/s390/s390.c (enum s390_builtin):
29734 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
29735 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
29736 (s390_init_builtins): Generate new builtin functions.
29737 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
29738 (s390_sfpc, s390_efpc): New pattern definitions.
29739
29740 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29741
29742 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
29743 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
29744 (s390_builtin_decls): New array.
29745 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
29746 (s390_builtin_decl): New function.
29747 (TARGET_BUILTIN_DECL): Define macro.
29748
29749 2015-02-27 Richard Biener <rguenther@suse.de>
29750
29751 PR middle-end/63175
29752 * builtins.c (get_object_alignment_2): Make sure to re-apply
29753 the ANDed mask after recursing to its operand gets us a new
29754 misalignment bit position.
29755
29756 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
29757 Martin Liska <mliska@suse.cz>
29758
29759 PR bootstrap/65150
29760 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
29761 Use address_matters_p.
29762 (redirect_all_callers, set_addressable): New functions.
29763 (sem_function::merge): Reorganize and fix merging issues.
29764 (sem_variable::merge): Likewise.
29765 (sem_variable::compare_sections): Remove.
29766 * common.opt (fmerge-all-constants, fmerge-constants): Remove
29767 Optimization flag.
29768 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
29769 redirect them.
29770 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
29771 decl is used.
29772 (address_matters_1): New function.
29773 (symtab_node::address_matters_p): New function.
29774 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
29775 check for merged flag.
29776 * cgraph.h (address_matters_p): Declare.
29777 (symtab_node::address_taken_from_non_vtable_p): Remove.
29778 (symtab_node::address_can_be_compared_p): New method.
29779 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
29780 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
29781 Remove.
29782 (comdat_can_be_unshared_p_1) Use address_matters_p.
29783 (update_vtable_references): Fix formating.
29784 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
29785 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
29786 * cgraphclones.c: Preserve merged and icf_merged flags.
29787
29788 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
29789
29790 * doc/extend.texi (Function Attributes): Fix spelling and typos.
29791 (Label Attributes): Likewise.
29792 (Cilk Plus Builtins): Likewise.
29793 (ARC SIMD Built-in Functions): Likewise.
29794 (ARM C Language Extensions (ACLE)): Likewise.
29795 (PowerPC Built-in Functions): Likewise.
29796 (PowerPC Hardware Transactional Memory Built-in Functions):
29797 Likewise.
29798
29799 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29800
29801 PR tree-optimization/65216
29802 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
29803 new stmt and new SSA_NAME for lhs whenever the arguments have
29804 changed and weren't just swapped. Fix comment typo.
29805
29806 PR tree-optimization/65215
29807 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
29808 for PDP endian targets.
29809 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
29810 Fix up formatting issues.
29811 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
29812 size is smaller than the original, adjust MEM_REF offset by the
29813 difference of sizes. Use is_gimple_mem_ref_addr instead of
29814 is_gimple_min_invariant test to avoid adding address temporaries.
29815
29816 2015-02-26 Martin Liska <mliska@suse.cz>
29817 Jan Hubicka <hubicka@ucw.cz>
29818
29819 PR ipa/64693
29820 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
29821 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
29822 (sem_item_optimizer::process_cong_reduction): Include division by
29823 sensitive references.
29824 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
29825 * ipa-ref.c (ipa_ref::address_matters_p): New function.
29826 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
29827
29828 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
29829
29830 PR target/65192
29831 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
29832 Remove.
29833 * config/avr/avr.c: Same.
29834 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
29835 Refuse any constant address not in 0..0xbf.
29836 * config/avr/avr.md (*mov<mode>, *movsf): Remove
29837 tiny_valid_direct_memory_access_range from insn conditions.
29838 (mov<mode>): Don't special-case expansion of avrtiny addresses.
29839
29840 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
29841
29842 PR target/61142
29843 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
29844 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
29845 * config/sh/predicates.md (const_logical_operand): New predicate.
29846 * config/sh/sh.md: Add new peephole2 patterns.
29847
29848 2015-02-26 Marek Polacek <polacek@redhat.com>
29849
29850 PR ipa/65008
29851 * ipa-inline.c (early_inliner): Recompute inline parameters.
29852
29853 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29854
29855 PR target/65171
29856 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
29857 instructions with TImode operands are included in the analysis.
29858
29859 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29860
29861 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
29862 of an EDGE_FSM_THREAD.
29863
29864 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
29865
29866 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
29867
29868 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
29869
29870 PR debug/46102
29871 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
29872
29873 2015-02-26 Sebastian Pop <s.pop@samsung.com>
29874
29875 PR tree-optimization/65048
29876 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
29877 (thread_through_all_blocks): Call valid_jump_thread_path.
29878 Remove invalid FSM jump-thread paths.
29879
29880 2015-02-26 Jakub Jelinek <jakub@redhat.com>
29881
29882 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
29883 (ipa_write_optimization_summaries): Likewise.
29884 * tree-streamer.h: Include data-streamer.h.
29885 (streamer_mode_table): Declare extern variable.
29886 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
29887 * lto-streamer-out.c (lto_output_init_mode_table,
29888 lto_write_mode_table): New functions.
29889 (produce_asm_for_decls): Call lto_write_mode_table when streaming
29890 offloading LTO.
29891 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
29892 (lto_create_simple_input_block): Add mode_table argument to the
29893 lto_input_block constructors.
29894 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
29895 Likewise.
29896 * data-streamer-in.c (string_for_index): Likewise.
29897 * ipa-inline-analysis.c (inline_read_section): Likewise.
29898 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
29899 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29900 * lto-streamer-in.c (lto_read_body_or_constructor,
29901 lto_input_toplevel_asms): Likewise.
29902 (lto_input_mode_table): New function.
29903 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
29904 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
29905 Use bp_pack_machine_mode.
29906 * real.h (struct real_format): Add name field.
29907 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
29908 (class lto_input_block): Add mode_table member.
29909 (lto_input_block::lto_input_block): Add mode_table_ argument,
29910 initialize mode_table.
29911 (struct lto_file_decl_data): Add mode_table field.
29912 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
29913 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
29914 unpack_ts_decl_common_value_fields,
29915 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
29916 * tree-streamer.c (streamer_mode_table): New variable.
29917 * real.c (ieee_single_format, mips_single_format,
29918 motorola_single_format, spu_single_format, ieee_double_format,
29919 mips_double_format, motorola_double_format,
29920 ieee_extended_motorola_format, ieee_extended_intel_96_format,
29921 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
29922 ibm_extended_format, mips_extended_format, ieee_quad_format,
29923 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
29924 decimal_single_format, decimal_double_format, decimal_quad_format,
29925 ieee_half_format, arm_half_format, real_internal_format): Add name
29926 field.
29927 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
29928
29929 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
29930
29931 PR target/65161
29932 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
29933 reordering for selective scheduling.
29934
29935 2015-02-26 Terry Guo <terry.guo@arm.com>
29936
29937 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
29938 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
29939 (arm_arch_no_volatile_ce): Declare new global variable.
29940 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
29941 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
29942 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
29943 (TARGET_NO_VOLATILE_CE): New macro.
29944 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
29945 volatile memory access in IT block
29946
29947 2015-02-25 Kai Tietz <ktietz@redhat.com>
29948
29949 PR tree-optimization/61917
29950 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
29951 that reduc_def_stmt is null.
29952
29953 2015-02-25 Martin Liska <mliska@suse.cz>
29954
29955 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
29956 hard register variables.
29957
29958 2015-02-25 Kai Tietz <ktietz@redhat.com>
29959
29960 PR target/64212
29961 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
29962 (symtab::noninterposable_alias): Likewise.
29963
29964 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
29965
29966 PR target/65167
29967 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
29968 bounds registers.
29969 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
29970
29971 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
29972
29973 PR target/64997
29974 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
29975 as split condition; force split via '#' in output pattern.
29976
29977 2015-02-25 Richard Biener <rguenther@suse.de>
29978 Kai Tietz <ktietz@redhat.com>
29979
29980 PR tree-optimization/61917
29981 * tree-vect-loop.c (vectorizable_reduction): Allow
29982 vect_internal_def without reduction to exit graceful.
29983
29984 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29985
29986 PR target/65196
29987 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
29988 only with NONDEBUG_INSN_P.
29989
29990 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
29991
29992 Use variadic macros with avr-log.c.
29993
29994 * config/avr/avr-protos.h (avr_vdump): New prototype.
29995 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
29996 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
29997 * config/avr/avr-log.c: Adjust comments.
29998 (avr_vdump): New function.
29999 (avr_vadump): Pass caller as 2nd argument instead of format string.
30000 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30001 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30002
30003 2015-02-25 Jakub Jelinek <jakub@redhat.com>
30004
30005 PR lto/64374
30006 * target.def (target_option_stream_in): New target hook.
30007 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30008 targetm.target_option.post_stream_in if non-NULL.
30009 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30010 * doc/tm.texi: Updated.
30011 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30012 function.
30013 (TARGET_OPTION_POST_STREAM_IN): Redefine.
30014
30015 2015-02-24 Jeff Law <law@redhat.com>
30016
30017 PR target/65117
30018 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30019 of operand 0 and operand 2.
30020 (zero_cost_loop_end, loop_end): Similarly.
30021
30022 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
30023
30024 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30025 CXX_MEM_STAT_INFO.
30026
30027 2015-02-24 DJ Delorie <dj@redhat.com>
30028
30029 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30030 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30031 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30032 instead of hardcoding SImode.
30033
30034 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
30035
30036 * omp-low.c (create_omp_child_function): Tag entrypoint
30037 functions with a special attribute.
30038
30039 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30040
30041 PR target/65058
30042 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30043
30044 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
30045
30046 PR rtl-optimization/65123
30047 * lra-remat.c (operand_to_remat): Check hard regs in insn
30048 definition too.
30049
30050 2015-02-24 Nick Clifton <nickc@redhat.com>
30051
30052 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30053 to the assembler.
30054
30055 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
30056
30057 PR libgomp/64625
30058 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30059 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30060 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30061 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30062 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30063 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30064 (BUILT_IN_GOACC_PARALLEL): Specify as
30065 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30066 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30067 * builtin-types.def
30068 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30069 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30070 Remove function types.
30071 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30072 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30073 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30074 New function types.
30075
30076 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
30077
30078 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30079
30080 2015-02-24 Jakub Jelinek <jakub@redhat.com>
30081
30082 PR tree-optimization/65170
30083 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30084 if val[1] < 0, clear also val[2] and return 3.
30085
30086 2015-02-24 Alan Modra <amodra@gmail.com>
30087
30088 PR target/65172
30089 * config/rs6000/rs6000.c (get_memref_parts): Only return true
30090 when *base is a reg. Handle nested plus addresses. Simplify
30091 pre_modify test.
30092
30093 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
30094
30095 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30096 use natural alignment when optimizing for size.
30097
30098 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
30099
30100 PR target/65153
30101 * config/sh/sh.md (movsicc_true+3): Remove peephole.
30102 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30103 * config/sh/sh.c (replace_n_hard_rtx): Remove.
30104
30105 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
30106
30107 PR fortran/63427
30108 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30109 too big for a wide_int. Implement missing wrapping operation.
30110
30111 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
30112
30113 PR target/65163
30114 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30115 instead of const_int 4294901760.
30116
30117 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
30118
30119 * config/avr/t-avr: Fix typo in comment.
30120
30121 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
30122
30123 * doc/rtl.texi (fma): Clarify documentation.
30124
30125 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
30126
30127 PR debug/58123
30128 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30129 over input_location.
30130
30131 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30132
30133 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30134 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30135 restrict alignments to absolute_biggest_alignment.
30136 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30137 Define.
30138 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30139 * doc/tm.texi: Regenerate.
30140 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30141
30142 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
30143
30144 PR target/64172
30145 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30146
30147 2015-02-20 Richard Biener <rguenther@suse.de>
30148
30149 PR tree-optimization/65136
30150 * tree-ssa-propagate.c: Include cfgloop.h.
30151 (replace_phi_args_in): Avoid replacing loop latch edge PHI
30152 arguments with constants.
30153
30154 2015-02-20 Jakub Jelinek <jakub@redhat.com>
30155 Martin Liska <mliska@suse.cz>
30156
30157 PR target/63892
30158 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30159 don't try to create_thunk if stdarg_p. If
30160 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30161 redirect_callers if possible.
30162 (sem_item_optimizer::execute): Call unregister_hooks here...
30163 (ipa_icf_driver): ... instead of here.
30164
30165 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30166
30167 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30168 Mark operand 0 as earlyclobber in 2nd alternative.
30169 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30170 Write negated shift amount into QI lowpart operand 0 and use it
30171 in the shift step.
30172 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30173
30174 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30175
30176 * cgraph.h (clone_function_name_1): Declare.
30177 * cgraphclones.c (clone_function_name_1): New function.
30178 (clone_function_name): Use it.
30179 * lto-partition.c: Include "stringpool.h".
30180 (must_not_rename, maybe_rewrite_identifier)
30181 (validize_symbol_for_target): New static functions.
30182 (privatize_symbol_name): Use must_not_rename.
30183 (promote_symbol): Call validize_symbol_for_target.
30184 (lto_promote_cross_file_statics): Likewise.
30185 (lto_promote_statics_nonwpa): Likewise.
30186
30187 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
30188
30189 PR target/64452
30190 * config/avr/avr.md (pushhi_insn): New insn.
30191 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30192
30193 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30194 Jakub Jelinek <jakub@redhat.com>
30195
30196 * tree-streamer.c (preload_common_nodes): Don't preload
30197 TI_VA_LIST* for offloading.
30198 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30199 in_lto_p.
30200
30201 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
30202
30203 * config/pa/pa.c (pa_emit_move_sequence): Always force
30204 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
30205 note on insn.
30206
30207 * config/pa/pa.c (pa_reloc_rw_mask): New function.
30208 (TARGET_ASM_RELOC_RW_MASK): Define.
30209 (pa_cannot_force_const_mem): Revert previous change.
30210
30211 2015-02-19 Martin Jambor <mjmabor@suse.cz>
30212 Jan Hubicka <hubicka@ucw.cz>
30213
30214 PR ipa/65028
30215 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30216 across jump functions.
30217
30218 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
30219
30220 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30221
30222 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
30223
30224 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30225
30226 2015-02-19 Richard Henderson <rth@redhat.com>
30227
30228 PR middle-end/65074
30229 * varasm.c (default_binds_local_p_2): Don't test node->definition;
30230 test DECL_EXTERNAL independent of symtab_node.
30231
30232 2015-02-19 Jakub Jelinek <jakub@redhat.com>
30233
30234 PR lto/65012
30235 * varpool.c (varpool_node::get_constructor): Return early
30236 if this->lto_file_data is NULL.
30237
30238 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30239
30240 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30241 (rank_for_schedule_debug): Update.
30242 (ready_sort): Make static. Move sorting logic to ...
30243 (ready_sort_debug, ready_sort_real): New static functions.
30244 (schedule_block): Sort both debug insns and real insns in preparation
30245 for ready list trimming. Improve debug output.
30246 * sched-int.h (ready_sort): Remove global declaration.
30247
30248 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
30249
30250 * ipa-icf.c (sem_function::equals_private): Adjust.
30251 (sem_function::bb_dict_test): Take a vec<int> * instead of
30252 auto_vec<int>.
30253 * ipa-icf.h (bb_dict_test): Likewise.
30254
30255 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30256
30257 PR gcov-profile/64634
30258 * tree-eh.c (frob_into_branch_around): Fix up typos
30259 in function comment.
30260 (lower_catch): Put eh_seq resulting from EH lowering of
30261 the cleanup sequence after the cleanup rather than before it.
30262
30263 2015-02-18 Tom de Vries <tom@codesourcery.com>
30264
30265 * common.opt (fstdarg-opt): New option.
30266 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
30267 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
30268 (@item -fstdarg-opt): New item.
30269
30270 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
30271
30272 PR target/65064
30273 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
30274 for common symbols.
30275
30276 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30277
30278 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
30279 insn-modes.h.
30280 (ALL_HOST_OBJS): Add mkoffload.o.
30281 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
30282
30283 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
30284
30285 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
30286 (compare_virtual_tables): Be smarter about skipping typeinfos;
30287 do sane output on virtual table table mismatch.
30288 (warn_odr): Be ready for forward declarations of enums;
30289 output sane info on base mismatch and virtual table mismatch.
30290 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
30291 when only one type is polymorphic.
30292 (get_odr_type): Fix hashtable corruption.
30293 (dump_odr_type): Dump mangled names.
30294
30295 2015-02-18 Richard Biener <rguenther@suse.de>
30296
30297 PR tree-optimization/65063
30298 * tree-predcom.c (determine_unroll_factor): Return 1 if we
30299 have replaced looparound PHIs.
30300
30301 2015-02-18 Martin Liska <mliska@suse.cz>
30302
30303 * lto-streamer.c (lto_streamer_init): Encapsulate
30304 streamer_check_handled_ts_structures with checking macro.
30305
30306 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30307
30308 PR ipa/65087
30309 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
30310 section if !implicit_section.
30311 (cgraph_node::create_version_clone_with_body): Likewise.
30312 * trans-mem.c (ipa_tm_create_version): Likewise.
30313
30314 2015-02-18 Richard Biener <rguenther@suse.de>
30315
30316 PR tree-optimization/62217
30317 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
30318 into BIVs.
30319
30320 2015-02-18 Marek Polacek <polacek@redhat.com>
30321
30322 PR sanitizer/65081
30323 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
30324 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
30325 is in range [-16K, -1]. Don't issue run-time error if
30326 (ptr > ptr + offset).
30327
30328 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
30329
30330 * doc/install.texi (nvptx-*-none): New section.
30331 * doc/invoke.texi (Nvidia PTX Options): Likewise.
30332 * config/nvptx/nvptx.opt: Update.
30333
30334 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
30335 (access_check): New functions, copied from
30336 config/i386/intelmic-mkoffload.c.
30337 (main): For non-installed testing, look in all COMPILER_PATHs for
30338 GCC_INSTALL_NAME.
30339
30340 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
30341
30342 2015-02-18 Andrew Pinski <apinski@cavium.com>
30343 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30344
30345 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
30346 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
30347
30348 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30349
30350 * ipa-visibility.c (function_and_variable_visibility): Only
30351 check locality if node is not already local.
30352 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30353 call_for_symbol_and_aliases instead of
30354 call_for_symbol_thunks_and_aliases.
30355 (ipa_inline): Likewise.
30356 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30357 first walk aliases.
30358 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30359 call_for_symbol_and_aliases.
30360 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30361 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30362 (ipa_propagate_frequency): Update.
30363 (ipa_profile): Add opt_for_fn gueards.
30364
30365 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30366
30367 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
30368 * doc/invoke.texi (SH options): Document it.
30369 * config/sh/sh.c (sh_insn_length_adjustment): Check
30370 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
30371
30372 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
30373
30374 * common.opt (fipa-cp-alignment): New.
30375 * ipa-cp.c (ipcp_store_alignment_results): Check
30376 flag_ipa_cp_alignment.
30377 * opts.c (default_options_table): Enable -fipa-cp-alignment for
30378 -O2.
30379 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
30380 * doc/invoke.texi: Document -fipa-cp-alignment.
30381
30382 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
30383
30384 PR target/64793
30385 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
30386 to nil. Adjust comments.
30387
30388 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
30389
30390 * ipa-visibility.c (function_and_variable_visibility): Only
30391 check locality if node is not already local.
30392 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30393 call_for_symbol_and_aliases instead of
30394 call_for_symbol_thunks_and_aliases.
30395 (ipa_inline): Likewise.
30396 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30397 first walk aliases.
30398 * ipa.c (symbol_table::remove_unreachable_nodes): Use
30399 call_for_symbol_and_aliases.
30400 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30401 (ipa_propagate_frequency_1): Use it; use opt_for_fn
30402 (ipa_propagate_frequency): Update.
30403 (ipa_profile): Add opt_for_fn guards.
30404
30405 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
30406
30407 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
30408 skipping of "strange" tokens.
30409
30410 2015-02-17 Jeff Law <law@redhat.com>
30411
30412 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
30413 obsolete comment.
30414
30415 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
30416
30417 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
30418 as forcing a HARD_DEP between instructions, thereby
30419 disallowing rewriting to break dependencies.
30420
30421 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
30422
30423 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
30424 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
30425 variables in boundary that have no inlitalizer encoded and are
30426 not aliases.
30427 * varasm.c (default_binds_local_p_2): External definitions do not
30428 count as definitions here.
30429
30430 2015-02-16 Jeff Law <law@redhat.com>
30431
30432 PR tree-optimization/64823
30433 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
30434 statements.
30435 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30436 threading through blocks with PHIs, but no statements.
30437 (thread_through_normal_block): Distinguish between blocks where
30438 we did not process all the statements and blocks with no statements.
30439
30440 2015-02-16 Jakub Jelinek <jakub@redhat.com>
30441 James Greenhalgh <james.greenhalgh@arm.com>
30442
30443 PR ipa/64963
30444 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
30445 section if not linkonce. Fix up formatting.
30446 (cgraph_node::create_version_clone_with_body): Copy section.
30447 * trans-mem.c (ipa_tm_create_version): Likewise.
30448
30449 2015-02-16 Richard Biener <rguenther@suse.de>
30450
30451 PR tree-optimization/65077
30452 * tree-ssa-structalias.c (get_constraint_for_1): Handle
30453 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
30454 (find_func_aliases): Allow float values to carry pointers again.
30455
30456 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30457
30458 * doc/install.texi (Specific): Reorder targets list to put
30459 aarch64 in alphabetical order. Add a link to aarch64*-*-*
30460 from the top menu.
30461
30462 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30463 David Edelsohn <dje.gcc@gmail.com>
30464
30465 PR target/65058
30466 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
30467 mapping class to external variable or function reference.
30468 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
30469 mapping class.
30470
30471 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
30472
30473 PR target/53348
30474 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
30475 ASM_WEAKEN_DECL if defined.
30476
30477 2015-02-16 Richard Biener <rguenther@suse.de>
30478
30479 PR lto/65015
30480 * varasm.c (default_file_start): For LTO produced units
30481 emit <artificial> as file directive.
30482
30483 2015-02-16 Richard Biener <rguenther@suse.de>
30484
30485 PR tree-optimization/63593
30486 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
30487 stmts and releasing SSA names until...
30488 (execute_pred_commoning): ... after processing all chains.
30489
30490 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
30491
30492 PR ipa/65059
30493 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
30494 external functions.
30495
30496 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
30497
30498 * doc/bugreport.texi: Adjust section titles throughout the file
30499 to use "Title Case".
30500 * doc/extend.texi: Likewise.
30501 * doc/gcov.texi: Likewise.
30502 * doc/implement-c.texi: Likewise.
30503 * doc/implement-cxx.texi: Likewise.
30504 * doc/invoke.texi: Likewise.
30505 * doc/objc.texi: Likewise.
30506 * doc/standards.texi: Likewise.
30507 * doc/trouble.texi: Likewise.
30508
30509 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
30510
30511 * cgraph.h (symtab_node::has_aliases_p): Simplify.
30512 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
30513 * tree.c (lookup_binfo_at_offset): Make static.
30514 (get_binfo_at_offset): Do not shadow offset; add explanatory
30515 comment.
30516
30517 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
30518
30519 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
30520 for all floading point loads and stores except those using a register
30521 index address.
30522 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
30523 to a register.
30524
30525 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
30526
30527 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
30528 (do_estimate_growth_1): Record if any uninlinable edge was seen.
30529 (estimate_growth): Handle uninlinable edges correctly.
30530 (check_callers): New.
30531 (growth_likely_positive): Handle aliases correctly.
30532
30533 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
30534
30535 * ipa-chkp.c: Use iterate_direct_aliases.
30536 * symtab.c (resolution_used_from_other_file_p): Move inline.
30537 (symtab_node::create_reference): Fix formating.
30538 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
30539 (symtab_node::iterate_reference): Move inline.
30540 (symtab_node::iterate_referring): Move inline.
30541 (symtab_node::iterate_direct_aliases): Move inline.
30542 (symtab_node::used_from_object_file_p_worker): Inline into ...
30543 (symtab_node::used_from_object_file_p): ... this one; move inline.
30544 (symtab_node::call_for_symbol_and_aliases): Move inline;
30545 use iterate_direct_aliases.
30546 (symtab_node::call_for_symbol_and_aliases_1): New method.
30547 (cgraph_node::call_for_symbol_and_aliases): Move inline;
30548 use iterate_direct_aliases.
30549 (cgraph_node::call_for_symbol_and_aliases_1): New method.
30550 (varpool_node::call_for_node_and_aliases): Rename to ...
30551 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
30552 use iterate_direct_aliases.
30553 (varpool_node::call_for_symbol_and_aliases_1): New method.
30554 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
30555 (ipa_discover_readonly_nonaddressable_var): Update.
30556 * ipa-devirt.c: Fix formating.
30557 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
30558 Move inline.
30559 (cgraph_node::call_for_symbol_and_aliases): Move inline.
30560 (cgraph_node::call_for_symbol_and_aliases_1): New function..
30561 * cgraph.h (used_from_object_file_p_worker): Remove.
30562 (resolution_used_from_other_file_p): Move inline.
30563 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
30564 (symtab_node::iterate_reference): Move inline.
30565 (symtab_node::iterate_referring): Move inline.
30566 (symtab_node::iterate_direct_aliases): Move inline.
30567 (symtab_node::used_from_object_file_p_worker): Inline into ...
30568 (symtab_node::used_from_object_file_p): Move inline.
30569 * tree-emutls.c (ipa_lower_emutls): Update.
30570 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
30571 (varpool_node::call_for_node_and_aliases): Remove.
30572
30573 2015-02-14 Jakub Jelinek <jakub@redhat.com>
30574
30575 PR tree-optimization/62209
30576 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
30577 op == range->exp, insert seq and gimplified code after labels
30578 instead of after the phi.
30579
30580 2015-02-13 Jeff Law <law@redhat.com>
30581
30582 PR bootstrap/65060
30583 Revert my change for tree-optimization/64823.
30584
30585 2015-02-13 Jakub Jelinek <jakub@redhat.com>
30586
30587 PR tree-optimization/65053
30588 * tree-ssa-phiopt.c (value_replacement): When moving assign before
30589 cond, either reset VR on lhs or set it to phi result VR.
30590
30591 2015-02-13 Jeff Law <law@redhat.com>
30592
30593 PR tree-optimization/64823
30594 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
30595 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30596 threading through blocks with PHIs, but no statements.
30597 (thread_through_normal_block): Distinguish between blocks where
30598 we did not process all the statements and blocks with no statements.
30599
30600 PR rtl-optimization/47477
30601 * match.pd (convert (plus/minus (convert @0) (convert @1): New
30602 simplifier to narrow arithmetic.
30603
30604 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
30605
30606 PR ipa/65028
30607 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
30608 polymorphic call info when type is not known to be preserved.
30609
30610 2015-02-13 Maritn Jambor <mjambor@suse.cz>
30611
30612 PR ipa/65028
30613 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
30614 (inline_call): Use it.
30615
30616 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
30617
30618 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
30619 GOMP_DEVICE_NVIDIA_PTX.
30620
30621 2015-02-13 Jakub Jelinek <jakub@redhat.com>
30622
30623 PR ipa/65034
30624 * stmt.c (emit_case_nodes): Use void_type_node instead of
30625 NULL_TREE as LABEL_DECL type.
30626
30627 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
30628
30629 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
30630 constraints.
30631 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
30632 symbolic references to data to be forced to constant memory on the
30633 SOM target.
30634
30635 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
30636
30637 PR tree-optimization/65002
30638 * tree-cfg.c (pass_data_fixup_cfg): Don't update
30639 SSA on start.
30640 * tree-sra.c (some_callers_have_no_vuse_p): New.
30641 (ipa_early_sra): Reject functions whose callers
30642 assume function is read only.
30643
30644 2015-02-13 Richard Biener <rguenther@suse.de>
30645
30646 PR lto/65015
30647 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
30648 for LTO produced CUs.
30649
30650 2015-02-13 Bin Cheng <bin.cheng@arm.com>
30651
30652 PR tree-optimization/64705
30653 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
30654 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
30655 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
30656 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
30657 expand_simple_operations.
30658
30659 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
30660 Richard Henderson <rth@redhat.com>
30661
30662 PR rtl/32219
30663 * cgraphunit.c (cgraph_node::finalize_function): Set definition
30664 before notice_global_symbol.
30665 (varpool_node::finalize_decl): Likewise.
30666 * varasm.c (default_binds_local_p_2): Rename from
30667 default_binds_local_p_1, add weak_dominate argument. Use direct
30668 returns instead of assigning to local variable. Unify varpool and
30669 cgraph paths via symtab_node. Reject undef weak variables before
30670 testing visibility. Reorder tests for simplicity.
30671 (default_binds_local_p): Use default_binds_local_p_2.
30672 (default_binds_local_p_1): Likewise.
30673 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
30674 via symtab_node.
30675 (default_elf_asm_output_external): Emit visibility when specified.
30676
30677 2015-02-13 Alan Modra <amodra@gmail.com>
30678
30679 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
30680 code setting up r11 for out-of-line fp restore.
30681
30682 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
30683
30684 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
30685 (muser-mode): Likewise.
30686
30687 2015-02-13 Alan Modra <amodra@gmail.com>
30688
30689 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
30690 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
30691
30692 2015-02-12 David Howells <dhowells@redhat.com>
30693
30694 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
30695 warning.
30696 * tree-ssa-uninit.c (dump_predicates): Likewise.
30697 * opts.c (print_filtered_help): Likewise.
30698
30699 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30700
30701 * dwarf2out.c (output_die): Use "%s", name instead of name to
30702 avoid -Wformat-security warning.
30703
30704 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
30705 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30706 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
30707 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
30708
30709 2015-02-12 Jason Merrill <jason@redhat.com>
30710
30711 * common.opt (-flifetime-dse): New.
30712
30713 2015-02-12 Jakub Jelinek <jakub@redhat.com>
30714
30715 PR sanitizer/65019
30716 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
30717
30718 PR tree-optimization/65014
30719 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
30720 use original second operand of arg0 or arg1 instead of
30721 that adjusted by STRIP_NOPS.
30722
30723 2015-02-11 Jeff Law <law@redhat.com>
30724
30725 PR target/63347
30726 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
30727 that needs to be queued, just queue it for a single cycle.
30728
30729 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
30730
30731 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
30732 bodies of thunks; comment on why.
30733 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
30734 symbols are extern.
30735
30736 2015-02-11 Richard Henderson <rth@redhat.com>
30737
30738 PR sanitize/65000
30739 * tree-eh.c (mark_reachable_handlers): Mark source and destination
30740 regions of __builtin_eh_copy_values.
30741
30742 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30743
30744 PR middle-end/65003
30745 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
30746 ultimate alias is MEM with SYMBOL_REF satisfying
30747 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
30748 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
30749
30750 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
30751
30752 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
30753 "diagnostic-core.h".
30754 (main): Initialize progname, and call diagnostic_initialize.
30755
30756 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
30757 instead of __OPENMP_TARGET__.
30758
30759 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
30760 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
30761 hard-coding PTX_ID.
30762
30763 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
30764
30765 * doc/sourcebuild.texi (pie_enabled): Document.
30766
30767 2015-02-11 Martin Liska <mliska@suse.cz>
30768
30769 PR ipa/64813
30770 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
30771 a return value for call to a function that is noreturn.
30772
30773 2015-02-11 Richard Biener <rguenther@suse.de>
30774
30775 PR lto/65015
30776 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
30777 and -fresolution.
30778
30779 2015-02-11 Andrew Pinski <apinski@cavium.com>
30780
30781 PR target/64893
30782 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
30783 Change the first argument type to size_type_node and add another
30784 size_type_node.
30785 (aarch64_simd_expand_builtin): Handle the new argument to
30786 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
30787 print an out when the first two arguments are not
30788 nonzero integer constants.
30789 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
30790 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
30791
30792 2015-02-11 Jakub Jelinek <jakub@redhat.com>
30793
30794 PR target/61925
30795 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
30796 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
30797 (ix86_set_current_function): Rewritten.
30798 (ix86_add_new_builtins): Temporarily clear current_target_pragma
30799 when creating builtin fndecls.
30800
30801 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30802
30803 PR ipa/65005
30804 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
30805 function.
30806 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
30807 have no comdat group.
30808 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
30809 (lto_output_varpool_node): Always output alias info.
30810 (output_refs): Output refs of boundary aliases, too.
30811 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
30812 (output_symtab): Output call eges in thunks in boundary.
30813 (get_alias_symbol): Remove.
30814 (input_node, input_varpool_node): Do not special case weakrefs.
30815 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
30816 alias and thunks targets in the boundary; do not take removed symbols
30817 from their comdat groups.
30818 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
30819 (cgraph_node::global_info): Remove.
30820 (cgraph_node::rtl_info): Look through aliases and thunks.
30821 * cgrpah.h (global_info): Remove.
30822 (non_local_p): Remove.
30823
30824 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30825 Sandra Loosemore <sandra@codesourcery.com>
30826
30827 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
30828 to inline asm. List dialects in proper order.
30829
30830 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30831 Sandra Loosemore <sandra@codesourcery.com>
30832
30833 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
30834
30835 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
30836
30837 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
30838 modified) reference to Solaris.
30839
30840 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
30841
30842 * doc/extend.texi (Extended Asm): Fix typos.
30843
30844 2015-02-10 Jakub Jelinek <jakub@redhat.com>
30845
30846 PR sanitizer/65004
30847 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
30848
30849 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
30850
30851 PR target/64661
30852 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
30853 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
30854 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
30855 * config/sh/constraints.md (Ara, Add): New constraints.
30856 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
30857 predicates.
30858 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
30859 atomic_mem_operand_0. Don't use force_reg on the memory address.
30860 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
30861 Sra constraint. Convert to insn_and_split. Add workaround for
30862 PR 64974.
30863 (atomic_compare_and_swap<mode>_hard): Copy to
30864 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
30865 Use atomic_mem_operand_0 predicate.
30866 (atomic_compare_and_swap<mode>_soft_gusa,
30867 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
30868 AraAdd constraints.
30869 (atomic_compare_and_swap<mode>_soft_tcb,
30870 atomic_compare_and_swap<mode>_soft_imask,
30871 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
30872 atomic_mem_operand_0 predicate and SraSdd constraints.
30873 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
30874 constraint.
30875 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
30876 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
30877 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
30878 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
30879 force_reg on the memory address.
30880 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
30881 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
30882 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
30883 atomic_mem_operand_1 predicate and Sra constraint.
30884 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
30885 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30886 Use atomic_mem_operand_1 predicate.
30887 (atomic_<fetchop_name><mode>_hard): Copy to
30888 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
30889 Use atomic_mem_operand_1 predicate.
30890 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
30891 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30892 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
30893 insn_and_split. Use atomic_mem_operand_1 predicate.
30894 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
30895 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
30896 Use atomic_mem_operand_1 predicate.
30897 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
30898 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
30899 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
30900 in generated insn with original mem operand before emitting the insn.
30901 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
30902 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
30903 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
30904 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
30905 Use atomic_mem_operand_1 predicate and AraAdd constraints.
30906 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
30907 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
30908 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
30909 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
30910 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
30911 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
30912 atomic_not_fetch<mode>_soft_tcb,
30913 atomic_<fetchop_name>_fetch<mode>_soft_imask,
30914 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
30915 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
30916 Use atomic_mem_operand_1 predicate and SraSdd constraints.
30917
30918 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
30919
30920 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
30921 and 3 earlyclobber operands.
30922
30923 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30924
30925 * common.opt (fstack-reuse): Mark as optimization.
30926
30927 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
30928
30929 PR ipa/64982
30930 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
30931
30932 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
30933
30934 PR tree-optimization/64326
30935 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
30936
30937 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
30938
30939 PR gcov-profile/61889
30940 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
30941
30942 2015-02-10 Richard Biener <rguenther@suse.de>
30943
30944 PR tree-optimization/64995
30945 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
30946 value we use is final.
30947 (visit_reference_op_store): Always valueize op.
30948 (visit_use): Properly valueize vuses.
30949
30950 2015-02-10 Richard Biener <rguenther@suse.de>
30951
30952 PR tree-optimization/64909
30953 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
30954 pass a scalar-stmt count estimate to the cost model.
30955 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
30956
30957 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
30958
30959 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
30960 enabled by default together with var-tracking.
30961
30962 2015-02-10 Nick Clifton <nickc@redhat.com>
30963
30964 * config/rl78/rl78.c: Remove DIV attribute code accidentally
30965 included in previous rl78 commit.
30966
30967 2015-02-10 Richard Biener <rguenther@suse.de>
30968
30969 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
30970 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
30971 return the bitpack.
30972
30973 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30974
30975 PR gcov-profile/61889
30976 * config.in: regenerate.
30977 * configure.in: Likewise.
30978 * configure.ac: Check for ftw.h.
30979 * gcov-tool.c: Check for ftw.h before using nftw.
30980
30981 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
30982
30983 PR lto/64076
30984 * ipa-visibility.c (update_visibility_by_resolution_info): Only
30985 assert when not in lto mode.
30986
30987 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30988
30989 * ira-color.c (setup_left_conflict_sizes_p): Simplify
30990 initialization/assignment of conflict_size.
30991
30992 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
30993
30994 PR ipa/64978
30995 * ipa-cp.c (gather_caller_stats): Skip thunks.
30996 (propagate_constants_topo): Skip aliases.
30997
30998 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
30999
31000 PR target/64761
31001 * config/sh/sh.c (sh_option_override): Don't change
31002 -freorder-blocks-and-partition to -freorder-blocks even when
31003 unwinding is enabled.
31004 (sh_can_follow_jump): Return false if the followee jump is
31005 a crossing jump when -freorder-blocks-and-partition is specified.
31006 * config/sh/sh.md (*jump_compact_crossing): New insn.
31007
31008 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
31009 Kaz Kojima <kkojima@gcc.gnu.org>
31010
31011 PR target/64761
31012 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31013 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31014 (sh_can_redirect_branch): Rename to ...
31015 (sh_can_follow_jump): ... this. Constify argument types.
31016 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31017 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31018 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31019 * doc/tm.texi: Regenerate.
31020
31021 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31022
31023 PR sanitizer/64981
31024 * builtins.c (expand_builtin): Call targetm.expand_builtin
31025 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31026
31027 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31028
31029 PR ipa/61548
31030 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31031
31032 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31033
31034 PR ipa/63566
31035 * ipa-icf.c (set_local): New function.
31036 (sem_function::merge): Use it.
31037
31038 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31039
31040 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31041 (add_type_duplicate): Fix comparison of BINFOs.
31042
31043 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31044
31045 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31046 on getting VOID pointer.
31047
31048 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31049
31050 PR target/64979
31051 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31052 va_list escapes.
31053
31054 2015-02-09 Richard Biener <rguenther@suse.de>
31055
31056 * genmatch.c (replace_id): Copy expr_type.
31057
31058 2015-02-09 Richard Biener <rguenther@suse.de>
31059
31060 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31061 (streamer_write_tree_bitfields): Declare.
31062 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31063 properly unpack padding.
31064 (unpack_value_fields): Inline ...
31065 (streamer_read_tree_bitfields): ... here.
31066 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31067 and properly add padding bits.
31068 (streamer_pack_tree_bitfields): Fold into ...
31069 (streamer_write_tree_bitfields): ... this new function,
31070 exposing the bitpack object.
31071 * lto-streamer-out.c (lto_write_tree_1): Call
31072 streamer_write_tree_bitfields.
31073
31074 2015-02-09 Richard Biener <rguenther@suse.de>
31075
31076 PR tree-optimization/54000
31077 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31078 (struct ivopts_data): Add loop_loc member.
31079 (tree_ssa_iv_optimize_loop): Dump loop location.
31080 (create_new_ivs): Likewise, also dump number of IVs generated.
31081
31082 2015-02-09 Martin Liska <mliska@suse.cz>
31083
31084 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31085 just if not yet registered.
31086 (ipa_icf_generate_summary): Register callgraph hooks.
31087
31088 2015-02-08 Andrew Pinski <apinski@cavium.com>
31089
31090 * config/aarch64/aarch64.c (gty_dummy): Delete.
31091
31092 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31093
31094 PR ipa/63566
31095 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31096 (cgraph_node::local_p): Remove thunk related FIXME.
31097
31098 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31099
31100 PR ipa/63566
31101 * i386.c (ix86_function_regparm): Look through aliases to see if callee
31102 is local and optimized.
31103 (ix86_function_sseregparm): Likewise; also use target's SSE math
31104 settings; error out instead of silently generating wrong code
31105 on mismatches.
31106 (init_cumulative_args): Look through aliases.
31107
31108 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31109
31110 PR ipa/63566
31111 * ipa-split.c (execute_split_functions): Split if function has aliases.
31112
31113 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31114
31115 PR ipa/63566
31116 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31117 aliases before trying to expand it.
31118 (cgraph_node::expand_thunk): Fix formating.
31119
31120 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
31121
31122 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31123 (Using Assembly Language with C): Expand introduction.
31124 (Basic Asm): Copy-edit. Add more information about uses of
31125 basic asm.
31126 (Extended Asm): Copy-edit. Document new escape syntax and
31127 %l[label] syntax.
31128 (Global Reg Vars): Copy-edit.
31129 (Local Reg Vars): Likewise.
31130
31131 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
31132
31133 PR debug/2714
31134 PR bootstrap/64256
31135 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31136 (DBX_CONTIN_CHAR): Define.
31137
31138 2015-02-06 Sebastian Pop <s.pop@samsung.com>
31139 Brian Rzycki <b.rzycki@samsung.com>
31140
31141 PR tree-optimization/64878
31142 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31143 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31144 Stop recursion at loop phi nodes after having visited a loop phi node.
31145
31146 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31147
31148 * toplev.c (process_options): Change flag_ipa_ra before creating
31149 optimization_{default,current}_node.
31150
31151 PR ipa/64896
31152 * cgraphunit.c (cgraph_node::expand_thunk): If
31153 restype is not is_gimple_reg_type nor the thunk_fndecl
31154 returns aggregate_value_p, set restmp to a temporary variable
31155 instead of resdecl.
31156
31157 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
31158
31159 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31160
31161 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31162
31163 PR target/64205
31164 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31165 add a general secondary reload handler for SDmode, unless we have
31166 both read/write support for SDmode.
31167
31168 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31169
31170 PR middle-end/64937
31171 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31172 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31173 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31174 1 before, push it to abstract_vec.
31175 (dwarf2out_abstract_function): Adjust caller. Don't call
31176 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31177 DECL_ABSTRACT_P flags for all abstract_vec elts.
31178
31179 2015-02-06 Renlin Li <renlin.li@arm.com>
31180
31181 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31182 complex gimple.
31183 * tree-ssa.c (execute_update_addresses_taken): Likewise.
31184
31185 2015-02-06 Jeff Law <law@redhat.com>
31186
31187 PR target/64889
31188 * config/h8300/h8300.c (push): New argument "in_prologue".
31189 Pass "in_prologue" along to "F".
31190 (h8300_push_pop): Corresponding changes.
31191 (h8300_expand_prologue): Likewise.
31192 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
31193
31194 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31195
31196 PR rtl-optimization/64957
31197 PR debug/64817
31198 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31199 IOR rather than for AND.
31200
31201 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
31202
31203 PR target/62631
31204 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31205 of shift-add and (add + shift) operations. Rename local variable.
31206
31207 2015-02-05 Jeff Law <law@redhat.com>
31208
31209 PR target/17306
31210 * config/h8300/constraints.md (U): Correctly dectect
31211 "eightbit_data" memory addresses.
31212 * config/h8300/h8300.c (eightbit_constant_address_p): Also
31213 handle (const (plus (symbol_ref (x)))) where x is declared
31214 as an 8-bit data memory address.
31215 * config/h8300/h8300.md (call, call_value): Correctly detect
31216 "funcvec" functions.
31217
31218 PR target/43264
31219 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31220 24 to 28 bits for the H8/300.
31221
31222 2015-02-06 Alan Modra <amodra@gmail.com>
31223
31224 PR target/64876
31225 * config/rs6000/rs6000.c (chain_already_loaded): New function.
31226 (rs6000_call_aix): Use it.
31227
31228 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
31229
31230 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31231 check.
31232
31233 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
31234
31235 * config/h8300/constraints.md ("U" constraint): Use strict
31236 variant of REG_OK_FOR_BASE_P after reload has started.
31237
31238 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
31239
31240 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31241 define to zero if !TARGET_NEON.
31242 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31243
31244 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31245 Trevor Saunders <tsaunders@mozilla.com>
31246
31247 PR ipa/61548
31248 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
31249
31250 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31251
31252 PR ipa/61548
31253 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
31254 when removing varpool nodes.
31255
31256 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31257
31258 PR ipa/61548
31259 * varpool.c (varpool_node::remove): Fix order of variables.
31260
31261 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31262
31263 PR ipa/64686
31264 * ipa-inline.c (inline_small_functions): Fix ordering issue between
31265 speculation resolution and key updates.
31266
31267 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31268
31269 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
31270 about not letting any speculative edges unupdated.
31271
31272 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31273
31274 PR gcov/64123
31275 * gcov-io.c (gcov_var): Export.
31276
31277 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31278
31279 PR middle-end/64922
31280 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
31281 edges that become speculative.
31282
31283 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31284
31285 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
31286 or DW_LANG_Fortran08.
31287 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
31288 DW_LANG_Fortran08.
31289 (gen_compile_unit_die): Handle "GNU Fortran2003" and
31290 "GNU Fortran2008" language strings.
31291 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
31292 * langhooks.h (lang_GNU_Fortran): New prototype.
31293 * langhooks.c (lang_GNU_Fortran): New function.
31294 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
31295 lang_GNU_Fortran.
31296
31297 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31298
31299 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
31300 (RTX_OK_FOR_OLO10_P): Likewise.
31301
31302 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
31303
31304 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
31305
31306 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31307
31308 PR middle-end/64922
31309 * gimple.c: Include gimple-ssa.h.
31310 (maybe_remove_unused_call_args): New function.
31311 * gimple.h (maybe_remove_unused_call_args): Declare.
31312 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
31313 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31314 * gimple-fold.c (gimple_fold_call): Likewise.
31315
31316 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
31317
31318 PR rtl-optimization/64905
31319 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
31320 pointer alignment if it isn't needed.
31321
31322 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31323
31324 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
31325 cortex-a72.cortex-a53.
31326 * config/aarch64/aarch64-tune.md: Regenerate.
31327 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
31328
31329 2015-02-04 Nick Clifton <nickc@redhat.com>
31330
31331 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
31332 inside a MEM.
31333
31334 2015-02-04 Jakub Jelinek <jakub@redhat.com>
31335
31336 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
31337 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
31338 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
31339 of DEF_BUILTIN.
31340 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
31341 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
31342 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
31343 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
31344 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
31345 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
31346 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
31347 * tree-core.h (enum built_in_function): In between
31348 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
31349 for builtins that use DEF_BUILTIN_CHKP macro.
31350
31351 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
31352
31353 PR debug/64817
31354 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
31355 operands for tcc_comparison exprs. Fix typos.
31356
31357 PR debug/64817
31358 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
31359 of two XORs that have an intervening AND or IOR.
31360
31361 PR debug/64817
31362 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
31363 simplification of XOR of AND to not allocate new rtx before
31364 committing to a simplification.
31365
31366 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31367
31368 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
31369 manual swaps in all peepholes.
31370
31371 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31372
31373 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
31374 of manual swapping implementation.
31375 (aarch64_expand_vec_perm_const_1): Likewise.
31376
31377 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
31378
31379 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
31380 (generic_addrcost_table): Remove NAMED_PARAM.
31381 (cortexa57_addrcost_table): Likewise.
31382 (xgene1_addrcost_table): Likewise.
31383 (generic_regmove_table): Likewise.
31384 (cortexa53_regmove_table): Likewise.
31385 (xgene1_regmove_table): Likewise.
31386 (generic_vector_table): Likewise.
31387 (cortexa57_vector_table): Likewise.
31388 (xgene1_vector_table): Likewise.
31389 (generic_tunings): Likewise.
31390 (cortexa53_tunings): Likewise.
31391 (cortexa57_tunings): Likewise.
31392 (xgene1_tunings): Likewise.
31393
31394 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
31395
31396 * config/arm/arm-cores.def: Add cortex-a72 and
31397 cortex-a72.cortex-a53.
31398 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
31399 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
31400 * config/arm/arm-tune.md: Regenerate.
31401 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
31402 "cortex-a72.cortex-a53".
31403 * doc/invoke.texi (ARM Options/-mtune): Likewise.
31404
31405 2015-02-04 Nick Clifton <nickc@redhat.com>
31406
31407 PR target/64408
31408 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
31409 of accepted codes.
31410 (nonimmediate_di_operand): Likewise.
31411
31412 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
31413 prefixes of known F5 using MSP430 MCUs.
31414
31415 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31416
31417 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
31418 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
31419 instead of __builtin_sqrt.
31420
31421 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
31422
31423 * varasm.c (do_assemble_alias): Follow transparent alias
31424 chain for target.
31425 (default_assemble_visibility): Follow transparent alias
31426 chain for decl name.
31427
31428 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
31429
31430 PR middle-end/62103
31431 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
31432 to compute size of referenced value in the constant case.
31433
31434 2015-02-03 Jakub Jelinek <jakub@redhat.com>
31435
31436 PR rtl-optimization/64756
31437 * cse.c (invalidate_dest): New function.
31438 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
31439 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
31440 invalidate and do not record it.
31441
31442 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
31443
31444 PR target/64660
31445 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
31446 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
31447 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
31448 atomic_nand<mode>_soft_tcb): New insns.
31449 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
31450 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
31451 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
31452 Split into atomic_not_fetchsi_hard if operands[0] is unused.
31453 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
31454 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
31455 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
31456 atomic_not<mode>_hard if operands[0] is unused.
31457 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
31458 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
31459 if operands[0] is unused.
31460 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
31461 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
31462 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
31463 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
31464 unused.
31465 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
31466 into atomic_not<mode>_soft_tcb if operands[0] is unused.
31467 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
31468 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
31469 if operands[0] is unused.
31470 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
31471 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
31472 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
31473 atomic_nand_fetchsi_hard if operands[0] is unused.
31474 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
31475 atomic_nand<mode>_hard if operands[0] is unused.
31476 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
31477 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
31478 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
31479 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
31480 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
31481 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
31482 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
31483 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
31484 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
31485 atomic_not<mode>_hard if operands[0] is unused.
31486 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
31487 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
31488 unused.
31489 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
31490 into atomic_not<mode>_soft_tcb if operands[0] is unused.
31491 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
31492 atomic_nand<mode>_hard if operands[0] is unused.
31493 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
31494 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
31495
31496 2015-02-03 David Malcolm <dmalcolm@redhat.com>
31497
31498 PR jit/64810
31499 * Makefile.in (GCC_OBJS): Add gcc-main.o.
31500 * gcc-main.c: New file, containing "main" taken from gcc.c.
31501 * gcc.c (do_self_spec): Free decoded_options.
31502 (class driver): Move declaration to gcc.h.
31503 (main): Move declaration and implementation to new file
31504 gcc-main.c.
31505 (driver_get_configure_time_options): New function.
31506 * gcc.h (class driver): Move this declaration here, from
31507 gcc.c.
31508 (driver_get_configure_time_options): New declaration.
31509
31510 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
31511
31512 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
31513 cross-module inlining.
31514 * cgraph.h (cgraph_node): Add flag merged.
31515 * ipa-icf.c (sem_function::merge): Maintain it.
31516
31517 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
31518
31519 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
31520 instead of OBJECT_P.
31521
31522 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
31523
31524 PR target/62631
31525 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
31526 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
31527 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
31528 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
31529
31530 2015-02-03 Jakub Jelinek <jakub@redhat.com>
31531
31532 PR other/63504
31533 * combine.c (reg_n_sets_max): New variable.
31534 (can_change_dest_mode, reg_nonzero_bits_for_combine,
31535 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
31536 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
31537 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
31538 (rest_of_handle_combine): Initialize reg_n_sets_max.
31539
31540 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
31541
31542 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
31543 if some always_inline was inlined, apply changes before inlining
31544 heuristically.
31545
31546 2015-02-02 David Malcolm <dmalcolm@redhat.com>
31547
31548 PR jit/64810
31549 * config/arm/arm.c (arm_option_override): Set
31550 arm_selected_arch/cpu/tune to NULL on entry.
31551
31552 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
31553 Andrew Pinski <pinskia@gcc.gnu.org>
31554 Jakub Jelinek <jakub@gcc.gnu.org>
31555
31556 PR target/64231
31557 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
31558 integer typing for small model. Use IN_RANGE.
31559
31560 2015-02-02 Richard Biener <rguenther@suse.de>
31561
31562 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
31563 * tree-vrp.c (vrp_valueize_1): Likewise.
31564
31565 2015-02-02 Alan Modra <amodra@gmail.com>
31566
31567 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
31568 than mem for toc_restore.
31569 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
31570 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
31571 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
31572
31573 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
31574
31575 PR target/64047
31576 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
31577 explicit default options.
31578
31579 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
31580
31581 PR ipa/64872
31582 * ipa-utils.c (ipa_merge_profiles): Add release argument.
31583 * ipa-icf.c (sem_function::merge): Do not release body when merging.
31584 * ipa-utils.h (ipa_merge_profiles): Update prototype.
31585
31586 2015-02-01 Jakub Jelinek <jakub@redhat.com>
31587
31588 PR debug/64817
31589 * cfgexpand.c (deep_ter_debug_map): New variable.
31590 (avoid_deep_ter_for_debug): New function.
31591 (expand_debug_expr): If TERed SSA_NAME is in
31592 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
31593 instead of trying to expand SSA_NAME's def stmt.
31594 (expand_debug_locations): When expanding debug bind
31595 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
31596 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
31597 value.
31598 (pass_expand::execute): Call avoid_deep_ter_for_debug on
31599 all debug bind stmts. Delete deep_ter_debug_map after
31600 expand_debug_location if non-NULL and clear it.
31601
31602 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
31603
31604 PR target/64851
31605 * config/sh/sync.md (atomic_fetch_notsi_hard,
31606 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
31607 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
31608 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
31609 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
31610 atomic_not_fetch<mode>_soft_imask): New insns.
31611
31612 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31613
31614 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
31615 (rank_for_schedule_debug): Split from ...
31616 (rank_for_schedule): ... this.
31617 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
31618 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
31619
31620 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
31621
31622 * doc/md.texi (Machine Constraints): Alphabetize table by target.
31623 * doc/extend.texi (x86 Variable Attributes): Move section to
31624 correct alphabetization after renaming.
31625 (x86 Type Attributes): Likewise.
31626 (Target Builtins): Re-alphabetize menu.
31627 (x86 Built-in Functions): Move section to correct alphabetization
31628 after renaming.
31629 (x86 transactional memory intrinsics): Likewise.
31630 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
31631 and x86 Windows Options in table and menu.
31632 (x86 Options): Move section to correct alphabetization after
31633 renaming.
31634 (x86 Windows Options): Likewise.
31635
31636 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
31637
31638 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
31639 preferred names of the architecture and its 32- and 64-bit
31640 variants.
31641 * doc/invoke.texi: Likewise.
31642 * doc/md.texi: Likewise.
31643
31644 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
31645
31646 PR target/64882
31647 * config/i386/predicates.md (address_no_seg_operand): Reject
31648 non-CONST_INT_P operands in invalid mode.
31649
31650 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
31651
31652 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
31653 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
31654 * config/i386/predicates.md (address_no_seg_operand): Call
31655 address_operand with VOIDmode.
31656 (vsib_address_operand): Ditto.
31657 (address_mpx_no_base_operand): Ditto.
31658 (address_mpx_no_index_operand): Ditto.
31659
31660 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
31661
31662 PR target/64688
31663 * lra-constraints.c (original_subreg_reg_mode): New.
31664 (simplify_operand_subreg): Try to simplify subreg of const. Use
31665 original_subreg_reg_mode for it.
31666 (swap_operands): Update original_subreg_reg_mode.
31667 (curr_insn_transform): Set up original_subreg_reg_mode.
31668
31669 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
31670
31671 PR target/64617
31672 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
31673 function.
31674 (process_alt_operands): Use it.
31675 (curr_insn_transform): Check the optional reload pseudo class is
31676 ok for the mode.
31677
31678 2015-01-30 Joseph Myers <joseph@codesourcery.com>
31679
31680 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
31681 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
31682 prototype.
31683 * toplev.h (init_asm_output): Update comment on use of
31684 UNKNOWN_LOCATION with fatal_error.
31685 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
31686 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
31687 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
31688 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
31689 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
31690 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
31691 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
31692 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
31693 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
31694 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
31695 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
31696 fatal_error changed to pass input_location as first argument.
31697
31698 2015-01-30 Martin Liska <mliska@suse.cz>
31699
31700 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
31701 in #pragma GCC diagnostic guards.
31702
31703 2015-01-30 Richard Biener <rguenther@suse.de>
31704
31705 PR tree-optimization/64829
31706 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
31707 not add a widening conversion pattern but hand off extra
31708 widenings to callers.
31709 (vect_recog_widen_mult_pattern): Handle extra widening produced
31710 by vect_handle_widen_op_by_const.
31711 (vect_recog_widen_shift_pattern): Likewise.
31712 (vect_pattern_recog_1): Remove excess vertical space in dumping.
31713 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
31714 (vect_init_vector_1): Likewise.
31715 (vect_get_vec_def_for_operand): Likewise.
31716 (vect_finish_stmt_generation): Likewise.
31717 (vectorizable_load): Likewise.
31718 (vect_analyze_stmt): Likewise.
31719 (vect_is_simple_use): Likewise.
31720
31721 2015-01-29 Jeff Law <law@redhat.com>
31722
31723 * combine.c (try_combine): Fix typo in comment.
31724
31725 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
31726
31727 PR target/64580
31728 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
31729 (rs6000_stack_info): Add assert.
31730 (rs6000_output_savres_externs): New function, split off from...
31731 (rs6000_output_function_prologue): ... here. Do not call it for
31732 thunks.
31733
31734 2015-01-29 Jeff Law <law@redhat.com>
31735
31736 PR target/15184
31737 * combine.c (try_combine): If I0 is a memory load and I3 a store
31738 to a related address, increase the "goodness" of doing a 4-insn
31739 combination with I0-I3.
31740 (make_field_assignment): Handle SUBREGs in the ior+and case.
31741
31742 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
31743
31744 PR tree-optimization/64746
31745 * tree-if-conv.c (mask_exists): New function.
31746 (predicate_mem_writes): Save created mask with given size for further
31747 use.
31748 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
31749 (ifcvt_repair_bool_pattern): Collect all statements that are root
31750 of bool pattern and use iterative algorithm to remove multiple uses
31751 of predicates, display number of required iterations.
31752
31753 2015-01-29 Richard Biener <rguenther@suse.de>
31754
31755 PR tree-optimization/64853
31756 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
31757 stmt will get simulated again.
31758 * tree-ssa-ccp.c (valueize_op_1): Likewise.
31759
31760 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31761
31762 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
31763 return_in_pc. Remove redundant assignments.
31764 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
31765 (arm_expand_epilogue): Don't compare boolean with true in if condition.
31766
31767 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
31768
31769 * config/i386/i386.c (ix86_mode_after): Make static.
31770
31771 2015-01-29 Richard Biener <rguenther@suse.de>
31772
31773 PR tree-optimization/64844
31774 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
31775 dump cost model analysis.
31776 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31777 Do not register adjusted load/store costs here.
31778
31779 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31780 Uros Bizjak <ubizjak@gmail.com>
31781
31782 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
31783 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
31784 using x86_use_pseudo_pic_reg.
31785 * config/i386/i386.c (ix86_conditional_register_usage): Remove
31786 support for fixed PIC register.
31787 (ix86_use_pseudo_pic_reg): Not static any more.
31788
31789 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
31790
31791 PR middle-end/64805
31792 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
31793 to avoid error in cgraph node verification.
31794
31795 2015-01-29 Marek Polacek <polacek@redhat.com>
31796
31797 * doc/standards.texi: Reflect that the default for C is gnu11.
31798
31799 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
31800
31801 PR target/64761
31802 * reorg.c (switch_text_sections_between_p): New function.
31803 (relax_delay_slots): Call it when testing if the jump insn
31804 is removable. Use targetm.can_follow_jump when testing if
31805 the conditional branch can follow an unconditional jump.
31806
31807 2015-01-27 Caroline Tice <cmtice@google.com>
31808
31809 Committing VTV Cywin/Ming patch for Patrick Wollgast
31810 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
31811 if -fvtable-verify=preinit/std is used.
31812 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
31813 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
31814 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
31815 if -fvtable-verify=preinit/std is used.
31816 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
31817 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
31818 if -fvtable-verify=preinit/std is used.
31819 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
31820 * config/i386/mingw32.h (LIB_SPEC): Likewise.
31821 * varasm.c (assemble_variable): Add code to properly set the comdat
31822 section and name for the .vtable_map_vars section in case the
31823 target is PE or COFF.
31824
31825 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31826
31827 PR ipa/64801
31828 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
31829 make sane BB profile.
31830 (cgraph_node::expand_thunk): Make sane BB profile.
31831 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
31832 * cgraph.h (init_lowered_empty_function): Update prototype.
31833 * config/i386/i386.c (make_resolver_func): Update call.
31834 * predict.c (gate): Disable branch prediction pass if
31835 profile is already there.
31836
31837 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
31838
31839 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
31840 * opth-gen.awk: Likewise.
31841 * common.opt: Mark flag_fp_contract_mode as Optimization.
31842
31843 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
31844
31845 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
31846 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
31847
31848 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
31849
31850 PR target/64659
31851 * config/sh/predicates.md (atomic_arith_operand,
31852 atomic_logical_operand): Remove.
31853 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
31854 (atomic_arith_operand_0): New predicate.
31855 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
31856 Use atomic_arith_operand_0 for input values.
31857 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
31858 atomic_compare_and_swap<mode>_soft_gusa,
31859 atomic_compare_and_swap<mode>_soft_tcb,
31860 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
31861 arith_reg_operand instead of register_operand.
31862 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
31863 atomic_arith_operand_0 for newval input.
31864 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
31865 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
31866 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
31867 arith_reg_operand instead of register_operand.
31868 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
31869 fetchop_predicate_1, fetchop_constraint_1_llcs,
31870 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
31871 fetchop_constraint_1_imask): New code iterator attributes.
31872 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
31873 register_operand. Use fetchop_predicate_1.
31874 (atomic_fetch_<fetchop_name>si_hard,
31875 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
31876 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
31877 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
31878 and arith_reg_operand instead of register_operand. Use
31879 fetchop_predicate_1, fetchop_constraint_1_gusa.
31880 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
31881 and arith_reg_operand instead of register_operand. Use
31882 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
31883 to allow R0 usage.
31884 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
31885 and arith_reg_operand instead of register_operand. Use
31886 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
31887 to allow R0 usage.
31888 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
31889 register_operand. Use atomic_logical_operand_1.
31890 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
31891 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
31892 arith_reg_operand instead of register_operand.
31893 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
31894 Use arith_reg_dest and arith_reg_operand instead of register_operand.
31895 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
31896 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
31897 register_operand. Use fetchop_predicate_1.
31898 (atomic_<fetchop_name>_fetchsi_hard,
31899 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
31900 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31901 fetchop_constraint_1_llcs.
31902 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
31903 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31904 fetchop_constraint_1_gusa.
31905 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
31906 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31907 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
31908 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
31909 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
31910 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
31911 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
31912 register_operand. Use atomic_logical_operand_1.
31913 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
31914 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
31915 arith_reg_operand instead of register_operand.
31916 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
31917 arith_reg_operand instead of register_operand. Use logical_operand
31918 and K08. Adjust asm sequence to allow R0 usage.
31919 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
31920 arith_reg_operand instead of register_operand. Use logical_operand
31921 and K08.
31922
31923 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31924
31925 PR other/63504
31926 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
31927 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
31928 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
31929 only get_full_len HOST_WIDE_INTs from get_val () array rather than
31930 all bits in *val_wide.
31931
31932 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
31933
31934 * varpool.c (tls_model_names): Fix names.
31935 (varpool_node::dump): Dump tls- prefix for tls models.
31936
31937 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
31938 Bernd Schmidt <bernds@codesourcery.com>
31939 Nathan Sidwell <nathan@codesourcery.com>
31940
31941 * config/nvptx/mkoffload.c: New file.
31942 * config/nvptx/t-nvptx: Add build rules for it.
31943 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
31944 (extra_programs): Add mkoffload.
31945 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
31946 function.
31947 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
31948
31949 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
31950
31951 PR middle-end/64809
31952 * cfgexpand.c (reorder_operands): Skip debug gimples.
31953
31954 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
31955
31956 PR tree-optimization/64277
31957 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
31958 range info when possible to refine estimation.
31959
31960 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31961
31962 PR tree-optimization/64718
31963 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
31964 be a 16bit unsigned integer when n->range is 16.
31965 (bswap_replace): Convert src to that type if necessary for all bswap
31966 sizes. Fix rotation right notation in nearby comment. Use bswap_type
31967 set in pass_optimize_bswap::execute ().
31968
31969 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
31970
31971 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
31972 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
31973 integer and floating point variants.
31974 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
31975
31976 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
31977
31978 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
31979 for all vector modes.
31980
31981 2015-01-28 Jakub Jelinek <jakub@redhat.com>
31982
31983 PR bootstrap/64612
31984 * doc/sourcebuild.texi (comdat_group): Document.
31985
31986 2015-01-28 Terry Guo <terry.guo@arm.com>
31987
31988 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
31989
31990 2015-01-27 David Malcolm <dmalcolm@redhat.com>
31991
31992 * toplev.c (print_version): Add param "show_global_state", and
31993 only print GGC and plugin information if it is true.
31994 (init_asm_output): Pass in "true" for the new param when calling
31995 print_version.
31996 (process_options): Likewise.
31997 (toplev::main): Likewise.
31998 * toplev.h (print_version): Add new param to decl.
31999
32000 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32001
32002 PR ipa/60871
32003 PR ipa/64139
32004 * tree.c (lookup_binfo_at_offset): New function.
32005 (get_binfo_at_offset): Use it.
32006
32007 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32008
32009 PR ipa/64282
32010 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32011 on vtable being vtable.
32012
32013 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
32014
32015 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32016 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32017 -mhotpatch= option.
32018 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32019 -mno-hotpatch options. Change syntax of -mhotpatch= option.
32020 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32021 Renamed.
32022 (s390_hotpatch_trampoline_halfwords_max): Renamed.
32023 (s390_hotpatch_hw_max): New name.
32024 (s390_hotpatch_trampoline_halfwords): Renamed.
32025 (s390_hotpatch_hw_before_label): New name.
32026 (get_hotpatch_attribute): Removed.
32027 (s390_hotpatch_hw_after_label): New name.
32028 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32029 attribute.
32030 (s390_attribute_table): Ditto.
32031 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32032 (s390_function_num_hotpatch_hw): New name.
32033 Remove special handling of inline functions and hotpatching.
32034 Return number of nops before and after the function label.
32035 (s390_can_inline_p): Removed.
32036 (s390_asm_output_function_label): Emit a configurable number of nops
32037 after the function label.
32038 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32039 (TARGET_CAN_INLINE_P) Removed.
32040 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32041
32042 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32043 Jiong Wang <jiong.wang@arm.com>
32044
32045 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32046 of scratch reg.
32047 (cb<optab><mode>1): Likewise.
32048 * config/aarch64/iterators.md (bcond): New define_code_attr.
32049
32050 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32051
32052 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32053 memory accesses.
32054
32055 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32056
32057 * config/s390/s390.c (s390_register_move_cost): Increase costs for
32058 FPR->GPR moves.
32059
32060 2015-01-27 Richard Biener <rguenther@suse.de>
32061
32062 * tree-vrp.c (update_value_range): Intersect the range with
32063 old recorded SSA name range information.
32064
32065 2015-01-27 Nick Clifton <nickc@redhat.com>
32066
32067 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32068 BC, DE and HL registers directly, not via AX.
32069 When decrementing the stack pointer by a large amount, transfer SP
32070 into AX and perform the subtraction there.
32071 (rl78_expand_epilogue): Perform the inverse of the above
32072 enhancements.
32073
32074 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32075
32076 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32077
32078 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32079 Yury Gribov <y.gribov@samsung.com>
32080
32081 PR ubsan/64741
32082 * ubsan.c (ubsan_source_location): Refactor code.
32083 (ubsan_type_descriptor): Update type size. Refactor code.
32084
32085 2015-01-27 Richard Biener <rguenther@suse.de>
32086
32087 PR tree-optimization/56273
32088 PR tree-optimization/59124
32089 PR tree-optimization/64277
32090 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32091 from the first VRP pass.
32092
32093 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32094
32095 PR ipa/64776
32096 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32097 handle the first argument in the same loop as all the other arguments.
32098
32099 PR rtl-optimization/61058
32100 * jump.c (cleanup_barriers): Update basic block boundaries
32101 if BLOCK_FOR_INSN is non-NULL on PREV.
32102
32103 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
32104
32105 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32106 bounds narrowing, already instrumented calls and calls to
32107 not instrumentable functions.
32108
32109 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32110
32111 PR tree-optimization/64807
32112 * wide-int.cc (wi::divmod_internal): Clear
32113 b_dividend[dividend_blocks_needed].
32114
32115 2015-01-26 DJ Delorie <dj@redhat.com>
32116
32117 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32118 volatile memory references.
32119
32120 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
32121
32122 PR target/49263
32123 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32124 remove_insn.
32125 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32126 shifts if it already fits into K08.
32127
32128 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32129
32130 PR ipa/64730
32131 * ipa-inline.c (inline_small_functions): Print "unknown" even
32132 if edge->call_stmt is non-NULL, but has builtins or unknown
32133 location.
32134
32135 PR middle-end/64421
32136 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32137 with asterisk, skip the first character.
32138
32139 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32140
32141 PR target/64806
32142 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32143 order change.
32144
32145 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
32146
32147 PR target/64795
32148 * config/i386/i386.md (*movdi_internal): Also check operand 0
32149 to determine TYPE_LEA operand.
32150 (*movsi_internal): Ditto.
32151
32152 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32153
32154 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32155 OPTION_MASK_QUAD_MEMORY_ATOMIC.
32156
32157 2015-01-26 Renlin Li <renlin.li@arm.com>
32158
32159 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32160 the comment.
32161 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32162 for higher part.
32163
32164 2015-01-26 Richard Biener <rguenther@suse.de>
32165
32166 PR middle-end/64764
32167 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32168 combining two BIT_AND_EXPR predicates.
32169
32170 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32171
32172 PR bootstrap/64754
32173 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32174
32175 2015-01-26 Terry Guo <terry.guo@arm.com>
32176
32177 * config/arm/arm.c (arm_file_start): Update the assignment of
32178 Tag_ABI_HardFP_use.
32179
32180 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
32181
32182 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32183 pipeline model.
32184 config/arm/arm.md: Include the new Cortex-A57 model.
32185 (generic_sched): Don't use generic_sched when tuning for
32186 Cortex-A57.
32187
32188 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
32189 Uros Bizjak <ubizjak@gmail.com>
32190
32191 * config/i386/i386.c (get_builtin_code_for_version): Add
32192 support for BMI and BMI2 multiversion functions.
32193
32194 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32195
32196 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32197 (extract_bit_field): Likewise.
32198 (extract_low_bits): Likewise.
32199 (expand_mult): Likewise.
32200 (expand_mult_highpart_adjust): Likewise.
32201
32202 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
32203
32204 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32205 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32206 * config/i386/i386.c (processor_model): Add
32207 M_INTEL_COREI7_BROADWELL.
32208 (arch_names_table): Add "broadwell".
32209
32210 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
32211
32212 PR target/49263
32213 PR target/53987
32214 PR target/64345
32215 PR target/59533
32216 PR target/52933
32217 PR target/54236
32218 PR target/51244
32219 * config/sh/sh-protos.h
32220 (sh_extending_set_of_reg::can_use_as_unextended_reg,
32221 sh_extending_set_of_reg::use_as_unextended_reg,
32222 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32223 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32224 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32225 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32226 (sh_treg_insns): New class.
32227 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32228 (scope_counter): New class.
32229 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32230 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32231 sh_extending_set_of_reg::can_use_as_unextended_reg,
32232 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32233 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32234 sh_split_treg_set_expr): New functions.
32235 (addsubcosts): Handle treg_set_expr.
32236 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32237 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32238 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32239 (sh_insn_operands_modified_between_p): Make non-static.
32240 * config/sh/predicates.md (zero_extend_movu_operand): Allow
32241 simple_mem_operand in addition to displacement_mem_operand.
32242 (zero_extend_operand): Don't allow zero_extend_movu_operand.
32243 (treg_set_expr, treg_set_expr_not_const01,
32244 arith_reg_or_treg_set_expr): New predicates.
32245 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32246 arith_or_int_operand instead of logical_operand. Convert to
32247 insn_and_split. Try to optimize constant operand in splitter.
32248 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
32249 (*tstqi_t_zero): Delete.
32250 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
32251 (tstsi_t_and_not): Delete.
32252 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
32253 Convert to insn_and_split.
32254 (unnamed split, tstsi_t_zero_extract_xor,
32255 tstsi_t_zero_extract_subreg_xor_little,
32256 tstsi_t_zero_extract_subreg_xor_big): Delete.
32257 (*tstsi_t_shift_mask): New insn_and_split.
32258 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
32259 to recombine with surrounding insns when splitting.
32260 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
32261 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
32262 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
32263 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
32264 (*cbranch_div0s: Delete.
32265 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32266 Try to recombine with surrounding insns when splitting. Add operand
32267 order variants.
32268 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
32269 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
32270 *addc_r_r_msb, *addc_2r_msb): Delete.
32271 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
32272 order variant.
32273 (*addc_negreg_t): New insn_and_split.
32274 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32275 Try to recombine with surrounding insns when splitting.
32276 Add operand order variants.
32277 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
32278 insn_and_split patterns.
32279 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
32280 surrounding insns when splitting.
32281 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
32282 (*rotcl): Likewise. Add zero_extract variant.
32283 (*ashrsi2_31): New insn_and_split.
32284 (*negc): Convert to insn_and_split. Use treg_set_expr.
32285 (*zero_extend<mode>si2_disp_mem): Update comment.
32286 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
32287 condition.
32288 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
32289 with surrounding insns when splitting.
32290 (any_treg_expr_to_reg): New insn_and_split.
32291 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
32292 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
32293 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
32294 *zero_extract_2): New single bit zero extract patterns.
32295 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
32296 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
32297 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
32298 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
32299 set destination.
32300 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
32301 register_operand for set source.
32302
32303 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
32304
32305 * i386.opt (prefetch_sse): New targetsave.
32306 * i386.c (ix86_function_specific_save): Save prefetch_sse.
32307 (ix86_function_specific_restore): Restore prefetch_sse and initialize
32308 ix86_cost/ix86_tune_cost.
32309
32310 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32311
32312 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
32313 Support the JIT by using 0 as the language type.
32314
32315 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
32316
32317 PR target/64317
32318 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
32319 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
32320 (mark_regno_live, process_bb_lives): Pass new parameter value to
32321 make_hard_regno_born.
32322
32323 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32324
32325 PR rtl-optimization/63637
32326 PR rtl-optimization/60663
32327 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
32328 if elt->cost is MAX_COST for ASM_OPERANDS.
32329 (find_sets_in_insn): Fix up comment typo.
32330 (cse_insn): Don't set src_volatile for all non-volatile
32331 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
32332 or with "memory" clobber. Set elt->cost to MAX_COST
32333 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
32334 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
32335
32336 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32337
32338 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
32339 alternative 1.
32340
32341 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
32342
32343 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
32344 libgcc/config/i386/elf-lib.h.
32345
32346 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32347
32348 PR driver/64737
32349 * gcc.c (print_configuration): Don't print a blank line at the end
32350 here...
32351 (run_attempt): ... but here unstead.
32352
32353 PR middle-end/64734
32354 * omp-low.c (scan_sharing_clauses): Don't ignore
32355 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
32356 on target data/update constructs.
32357
32358 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
32359
32360 PR target/50928
32361 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
32362 (DEBUG_RELOAD): Removed define.
32363 (m32c_limit_reload_class): Enable traces with if DEBUG0.
32364 (m32c_function_arg): Added a type cast.
32365 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
32366 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
32367 * config/m32c/bitops.md (andqi3_16): Likewise.
32368 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
32369 (push_a01_l): Likewise.
32370
32371 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32372
32373 PR jit/64721
32374 * main.c (main): Construct toplev instances with init_signals=true.
32375 * toplev.c (general_init): Add param "init_signals", and use it to
32376 conditionalize the calls to signal and host_hooks.extra_signals.
32377 (toplev::toplev): Add param "init_signals".
32378 (toplev::main): When invoking general_init, pass m_init_signals
32379 to control whether signal-handlers are installed.
32380 * toplev.h (toplev::toplev): Add param "init_signals".
32381 (toplev::m_init_signals): New field.
32382
32383 2015-01-23 David Malcolm <dmalcolm@redhat.com>
32384
32385 PR jit/64722
32386 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
32387 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
32388 latter may be affected by the former (e.g. on i686).
32389
32390 2015-01-23 Martin Liska <mliska@suse.cz>
32391
32392 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
32393 false positive during profiledbootstrap.
32394
32395 2015-01-23 Tom de Vries <tom@codesourcery.com>
32396
32397 PR libgomp/64672
32398 * lto-opts.c (lto_write_options): Output non-explicit conservative
32399 -fno-openacc.
32400 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
32401 (append_compiler_options): Pass -fopenacc through.
32402
32403 2015-01-23 Tom de Vries <tom@codesourcery.com>
32404
32405 PR libgomp/64707
32406 * lto-opts.c (lto_write_options): Output non-explicit conservative
32407 -fno-openmp.
32408 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
32409 (append_compiler_options): Pass -fopenmp through.
32410
32411 2015-01-23 Jakub Jelinek <jakub@redhat.com>
32412
32413 PR debug/64511
32414 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
32415 GTY markup.
32416
32417 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
32418 * diagnostic.def (DK_ICE_NOBT): New kind.
32419 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
32420 like DK_ICE, but never print backtrace.
32421 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
32422 (internal_error_no_backtrace): New function.
32423 * gcc.c (execute): Use internal_error_no_backtrace instead of
32424 internal_error.
32425
32426 2015-01-22 Jeff Law <law@redhat.com>
32427
32428 PR target/52076
32429 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
32430 improve code density for small immediate to memory case.
32431 (insv): Better handle bitfield assignments when the field is
32432 being set to all ones.
32433 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
32434 operand predicate.
32435
32436 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32437 Jakub Jelinek <jakub@redhat.com>
32438
32439 PR middle-end/64729
32440 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
32441 for !TARGET_LIBC_PROVIDES_SSP version and
32442 -fstack-protector-{all,strong,explicit} otherwise.
32443 * config/freebsd.h (LINK_SSP_SPEC): Handle
32444 -fstack-protector-{strong,explicit}.
32445
32446 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
32447 H.J. Lu <hongjiu.lu@intel.com>
32448
32449 PR ipa/64694
32450 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
32451 heap.
32452
32453 2015-01-22 Wei Mi <wmi@google.com>
32454
32455 PR rtl-optimization/64557
32456 * dse.c (record_store): Call get_addr for mem_addr.
32457 (check_mem_read_rtx): Likewise.
32458
32459 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
32460
32461 * fold-const.c (const_binop): Add early return for non-tcc_binary.
32462
32463 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
32464
32465 * toplev.c (init_local_tick): Process the failure when read
32466 fails for random_seed.
32467
32468 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
32469 'pretty_name' to avoid memory overflow.
32470
32471 2015-01-22 Richard Biener <rguenther@suse.de>
32472
32473 PR middle-end/64728
32474 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
32475 abnormal coalescing on undefined SSA names.
32476
32477 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
32478
32479 PR target/64688
32480 PR target/64477
32481 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
32482 for alternative 3.
32483 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
32484
32485 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
32486
32487 PR middle-end/63325
32488 * fold-const.c (fold_checksum_tree): Don't include value of
32489 expr->decl_with_vis.symtab_node in the checksum.
32490
32491 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32492
32493 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
32494
32495 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
32496
32497 PR driver/64690
32498 * gcc.c (insert_comments): New function.
32499 (try_generate_repro): Call it.
32500 (append_text): Removed.
32501
32502 2015-01-22 Richard Biener <rguenther@suse.de>
32503
32504 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
32505 with IL incompatible options. Properly honor user optimize
32506 attributes.
32507
32508 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
32509
32510 PR rtl-optimization/64682
32511 * combine.c (distribute_notes): When moving a death note for
32512 a register that is set in the new I2, make sure to put it
32513 before that new I2.
32514
32515 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
32516
32517 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
32518 not TARGET_DEFAULT.
32519
32520 2015-01-21 Jakub Jelinek <jakub@redhat.com>
32521
32522 PR debug/64511
32523 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
32524 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
32525 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
32526
32527 PR sanitizer/64706
32528 * doc/invoke.texi (-fsanitize=vptr): Document.
32529
32530 PR rtl-optimization/62078
32531 * dse.c: Include cfgcleanup.h.
32532 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
32533 anything call purge_all_dead_edges and cleanup_cfg at the end
32534 of the pass.
32535
32536 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
32537
32538 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
32539 edges.
32540
32541 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32542
32543 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
32544 decl attribute.
32545
32546 2015-01-21 David Sherwood <david.sherwood@arm.com>
32547 Tejas Belagod <Tejas.Belagod@arm.com>
32548
32549 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
32550 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
32551 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
32552 Removed.
32553
32554 2015-01-21 David Sherwood <david.sherwood@arm.com>
32555 Tejas Belagod <Tejas.Belagod@arm.com>
32556
32557 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
32558 (aarch64_reverse_mask): New decls.
32559 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
32560 (insn_count): New mode_attr.
32561 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
32562 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
32563 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
32564 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
32565 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
32566 (aarch64_simd_st4): New patterns.
32567 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
32568 (aarch64_reverse_mask): New functions.
32569
32570 2015-01-21 Alan Hayward <alan.hayward@arm.com>
32571
32572 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
32573 Declare.
32574 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
32575 addressing modes for BE.
32576 (aarch64_print_operand): Add 'R' specifier.
32577 (aarch64_simd_disambiguate_copy): Delete.
32578 (aarch64_simd_emit_reg_reg_move): New function.
32579 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
32580 in define_splits for structural moves.
32581 (mov<mode>): Use less restrictive predicates.
32582 (*aarch64_mov<mode>): Simplify and only allow for LE.
32583 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
32584
32585 2015-01-21 Alan Hayward <alan.hayward@arm.com>
32586
32587 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
32588
32589 2015-01-21 Richard Henderson <rth@redhat.com>
32590
32591 PR target/64669
32592 * ccmp.c (used_in_cond_stmt_p): Remove.
32593 (expand_ccmp_expr): Don't use it.
32594
32595 2015-01-21 Nick Clifton <nickc@redhat.com>
32596
32597 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
32598 PARALLELs.
32599
32600 2015-01-21 Richard Biener <rguenther@suse.de>
32601
32602 PR middle-end/64313
32603 * tree-core.h (builtin_info, builtin_info_type): Turn from
32604 an object with two arrays into an array of an object with
32605 decl and two flags, implicit_p and declared_p.
32606 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
32607 set_builtin_decl, set_builtin_decl_implicit_p,
32608 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
32609 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
32610 * builtins.c (builtin_info): Adjust.
32611 * gimplify.c (gimplify_addr_expr): References to builtins
32612 that have been declared by the user makes them eligible for
32613 use by the compiler. Call set_builtin_decl_implicit_p on them.
32614
32615 2015-01-20 Jeff Law <law@redhat.com>
32616
32617 PR target/59946
32618 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
32619 allow pc-relative addresses in operand predicates or constraints.
32620
32621 2015-01-21 Bin Cheng <bin.cheng@arm.com>
32622
32623 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
32624 neon on aarch32 processors for stringops.
32625
32626 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32627
32628 PR ipa/63576
32629 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
32630
32631 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32632
32633 PR lto/45375
32634 * ipa-inline.c: Include lto-streamer.h
32635 (report_inline_failed_reason): Output source file differences and
32636 flags on optimization/target node mismatch.
32637 (can_inline_edge_p): Consider caller to be the outer inline function;
32638 be less restrictive about matching opimize and optimize_size attributes.
32639 (inline_account_function_p): Break out from ...
32640 (inline_small_functions): ... here.
32641 * ipa-inline-transform.c (clone_inlined_nodes): Use
32642 inline_account_function_p.
32643 (inline_call): Use optimize attribution; use inline_account_function_p.
32644 (inline_transform): Use opt_for_fn.
32645 * ipa-inline.h (inline_account_function_p): Declare.
32646
32647 2015-01-20 Jakub Jelinek <jakub@redhat.com>
32648
32649 PR debug/64663
32650 * dwarf2out.c (decl_piece_node): Don't put bitsize into
32651 mode if bitsize <= 0.
32652 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
32653 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
32654 sizes and positions.
32655
32656 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
32657
32658 * config/nios2/nios2.c (nios2_asm_file_end): Implement
32659 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
32660 needed.
32661 (TARGET_ASM_FILE_END): Define.
32662
32663 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32664
32665 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
32666 (struct tune_params): Use the enum.
32667 * arm.c (arm_*_tune): Update.
32668 (arm_option_override): Update.
32669
32670 2015-01-20 Richard Biener <rguenther@suse.de>
32671
32672 PR ipa/64684
32673 * ipa-reference.c (add_static_var): Inline ...
32674 (analyze_function): ... here after splitting out from ...
32675 (is_proper_for_analysis): ... this.
32676
32677 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
32678
32679 PR target/64149
32680 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
32681 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
32682 replace the conditional with it's true branch.
32683 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
32684 (arm_lra_p): Remove.
32685
32686 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
32687
32688 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
32689
32690 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32691
32692 * config/tilegx/mul-tables.c: Move symtab.h include after
32693 coretypes.h include.
32694 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
32695 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
32696 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
32697 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
32698 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32699
32700 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
32701
32702 PR bootstrap/64676
32703 Revert:
32704 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32705
32706 PR rtl-optimization/64081
32707 * loop-iv.c (def_pred_latch_p): New function.
32708 (latch_dominating_def): Allow specific cases with non-single
32709 definitions.
32710 (iv_get_reaching_def): Likewise.
32711 (check_complex_exit_p): New function.
32712 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32713 with exits not executing on any iteration.
32714
32715 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32716
32717 PR lto/45375
32718 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
32719 to set branch cost.
32720
32721 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32722
32723 PR lto/45375
32724 * i386.c (gate): Check flag_expensive_optimizations and
32725 optimize_size.
32726 (ix86_option_override_internal): Drop optimize_size condition
32727 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
32728 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
32729 MASK_PREFER_AVX128.
32730 (ix86_avx256_split_vector_move_misalign,
32731 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
32732 * sse.md (all uses of TARGET_PREFER_AVX128): Add
32733 optimize_insn_for_speed_p check.
32734
32735 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
32736
32737 * config/mips/mips.h (FP_ASM_SPEC): New define.
32738 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
32739 instead.
32740
32741 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
32742
32743 PR target/53988
32744 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
32745 nullptr for insn when reaching the first insn.
32746 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
32747 (sh_insn_operands_modified_between_p): Add nullptr check.
32748 (sh_find_extending_set_of_reg): Fix log message. Don't accept
32749 sign extending mem load if the insn contains any UNSPEC or
32750 UNSPEC_VOLATILE.
32751
32752 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32753
32754 * params.def (inline-unit-growth): Drop to 15%.
32755 * invoke.texi (inline-unit-growth): Document change.
32756
32757 2015-01-19 Martin Liska <mliska@suse.cz>
32758
32759 PR ipa/64668
32760 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
32761 function for second argument of OBJ_TYPE_REF.
32762
32763 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32764
32765 PR ipa/64218
32766 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
32767 whether function is an alias.
32768
32769 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
32770
32771 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
32772 cases.
32773
32774 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
32775
32776 PR rtl-optimization/64671
32777 * lra-remat.c (operand_to_remat): Don't consider jump and call
32778 insns.
32779
32780 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
32781
32782 PR target/59828
32783 * config/rs6000/default64.h: Include rs6000-cpus.def.
32784 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
32785 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
32786 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
32787 and POWER8.
32788 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
32789 POWER8.
32790 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
32791 pseudo-op to specify assembler dialect.
32792
32793 2015-01-19 Martin Liska <mliska@suse.cz>
32794
32795 PR ipa/64664
32796 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
32797 Handle safe potentially removed nodes during filtering.
32798
32799 2015-01-19 Martin Liska <mliska@suse.cz>
32800
32801 * doc/extend.texi (no_icf): Add new attribute description.
32802 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
32803 where the pass attempts to merge a function with no_icf attribute.
32804
32805 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32806
32807 PR target/64532
32808 * doc/md.texi (ARM Options): Document register constraints.
32809
32810 2015-01-19 Jiong Wang <jiong.wang@arm.com>
32811 Andrew Pinski <apinski@cavium.com>
32812
32813 PR target/64304
32814 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
32815 (ashl<mode>3): Don't expand if operands[2] is not constant.
32816
32817 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32818
32819 PR target/64448
32820 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
32821 Match xor-and-xor RTL pattern.
32822
32823 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
32824
32825 PR rtl-optimization/64081
32826 * loop-iv.c (def_pred_latch_p): New function.
32827 (latch_dominating_def): Allow specific cases with non-single
32828 definitions.
32829 (iv_get_reaching_def): Likewise.
32830 (check_complex_exit_p): New function.
32831 (check_simple_exit): Use check_complex_exit_p to allow certain cases
32832 with exits not executing on any iteration.
32833
32834 2015-01-19 Jakub Jelinek <jakub@redhat.com>
32835
32836 * common.opt (fgraphite): Fix a typo.
32837
32838 2015-01-19 Felix Yang <felix.yang@huawei.com>
32839
32840 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
32841 pattern.
32842 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
32843 uminp, smax_nanp, smin_nanp): New builtins.
32844 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
32845 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
32846 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
32847 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
32848 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
32849 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
32850 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
32851 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
32852 vpminnms_f32): Rewrite using builtin functions.
32853
32854 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
32855
32856 PR libgomp/64625
32857 * omp-low.c (offload_symbol_decl): Remove variable.
32858 (get_offload_symbol_decl): Remove function.
32859 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
32860 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
32861 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
32862 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
32863 BUILT_IN_GOACC_UPDATE don't pass it at all.
32864
32865 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32866
32867 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
32868 callers.
32869
32870 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
32871
32872 * ipa-chkp.c (chkp_produce_thunks): Add early param
32873 to split thunks production into two passes. Keep
32874 'always_inline' function bodies after the first pass.
32875 (pass_data_ipa_chkp_early_produce_thunks): New.
32876 (pass_ipa_chkp_early_produce_thunks): New.
32877 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
32878 chkp_produce_thunks signature.
32879 (make_pass_ipa_chkp_early_produce_thunks): New.
32880 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
32881 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
32882 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
32883
32884 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32885
32886 * cgraph.c (cgraph_node::dump): Dump profile flags.
32887
32888 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
32889
32890 PR target/64652
32891 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
32892 reg appear first in the parallel.
32893
32894 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32895
32896 * ipa-reference.c (set_reference_optimization_summary,
32897 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
32898 disabled.
32899 (ignore_module_statics): New static var.
32900 (propagate_bits): If ipa-reference is disabled, do not look into local
32901 properties.
32902 (analyze_function): Disable analysis when ipa_reference is disabled.
32903 (generate_summary): Do not dump when reference is disabled;
32904 collect vars accessed from functions with ipa-reference disabled.
32905 (get_read_write_all_from_node): When ipa-reference is disabled, use the
32906 node flags.
32907 (gate): Enable for LTO.
32908 (ignore_edge_p): New function.
32909 (propagate): Skip functions w/o ipa-reference analysis.
32910 * optc-save-gen.awk: Handle optimize_debug correctly.
32911 * opth-gen.awk: Likewise.
32912 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
32913 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
32914 fira-share-save-slots, fira-share-spill-slots,
32915 fmodulo-sched-allow-regmoves, fpartial-inlining,
32916 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
32917 ftracer, ftree-parallelize-loops, fassociative-math,
32918 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
32919 Optimization
32920 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
32921 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
32922 Optimization.
32923 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
32924 Fix for IPA.
32925
32926 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
32927
32928 PR ipa/64378
32929 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
32930 flag correctly.
32931 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
32932
32933 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
32934
32935 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
32936 Remove duplicate option listings.
32937
32938 2015-01-18 Felix Yang <felix.yang@huawei.com>
32939
32940 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
32941 (autofdo_source_profile::get_callsite_total_count,
32942 function_instance::get_function_instance_by_decl,
32943 string_table::get_index, string_table::get_index_by_decl,
32944 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
32945 Fix comment typos. Reformatting and minor code rearrangement.
32946
32947 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32948
32949 * config/rs6000/rs6000.md (probe_stack): Delete.
32950 (probe_stack_address): New.
32951
32952 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32953
32954 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
32955 to test for 32-bit ABIs, not !TARGET_POWERPC64.
32956
32957 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
32958
32959 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
32960 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
32961 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
32962 snafu.
32963 (rs6000_libcall_value): Use the new function.
32964
32965 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
32966
32967 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
32968
32969 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
32970
32971 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
32972 implement a more precise life analysis for it during backward scan.
32973
32974 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
32975
32976 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
32977
32978 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
32979
32980 PR rtl-optimization/52773
32981 * calls.c (emit_library_call_value): When pushing arguments use
32982 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
32983 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
32984 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
32985
32986 2015-01-17 Jeff Law <law@redhat.com>
32987
32988 PR rtl-optimization/32790
32989 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
32990 not ZERO_EXTEND in SET_DESTs.
32991
32992 2015-01-17 Alan Modra <amodra@gmail.com>
32993
32994 * cprop.c (do_local_cprop): Revert last change.
32995
32996 2015-01-16 DJ Delorie <dj@redhat.com>
32997 Nick Clifton <nickc@redhat.com>
32998
32999 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33000 (addhi3_real): Likewise. Fix [HL+0] syntax.
33001 (subqi3_real): Likewise.
33002 (subhi3_real): Likewise.
33003 (cbranchqi4_real): Likewise. Allow saddr,#imm.
33004 (cbranchhi4_real): Likewise.
33005 (cbranchhi4_real_inverted): Likewise.
33006 (cbranchsi4_real_lt): Likewise.
33007 (cbranchsi4_real_ge): Likewise.
33008 (cbranchsi4_real_ge): Likewise.
33009 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33010 (sub<mode>3_virt): Likewise.
33011 (cbranchqi4_virt): Likewise.
33012 (cbranchhi4_virt): Likewise.
33013 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33014 always use '[reg+imm]' even when imm is zero.
33015 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33016 (rl78_general_operand): New.
33017 (rl78_nonimmediate_operand): New.
33018 (rl78_nonfar_operand): Use them.
33019 (rl78_nonfar_nonimm_operand): Likewise.
33020 (rl78_stack_based_mem): Fix.
33021 * config/rl78/constraints.md (Ibqi): New.
33022 (IBqi): New.
33023 (Wsa): New.
33024 (Wsf): New.
33025 (Cs1): Fix.
33026 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33027 (iorqi3): Likewise.
33028 (xorqi3): Likewise.
33029 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33030
33031 * config/rl78/constrains (Qs8): New constraint.
33032 * config/rl78/rl78.c (rl78_flags_already_set): New function.
33033 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33034 * config/rl78/rl78-real.md (update_Z): New attribute.
33035 Update patterns to set it.
33036 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33037 shorter compare and branch sequence can be used.
33038 (cbranchhi4_real): Likewise.
33039 (cbranchhi4_real_inverted): Likewise.
33040
33041 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33042 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33043 address space.
33044 * config/rl78/rl78.c (rl78_get_name_encoding): New.
33045 (rl78_option_override): Allow -mes0 only if C.
33046 (characterize_address): Support subregs of symbol_refs.
33047 (rl78_addr_space_address_mode): Move. Add __near.
33048 (rl78_far_p): Likewise.
33049 (rl78_addr_space_pointer_mode): Likewise.
33050 (rl78_as_legitimate_address): Likewise.
33051 (rl78_addr_space_subset_p): Likewise.
33052 (rl78_addr_space_convert): Likewise.
33053 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33054 symbols with -mes0.
33055 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
33056 addressing.
33057 (rl78_alloc_physical_registers_op1): Change logic to prefer
33058 symbol[BC] addressing.
33059 (frodata_section): New.
33060 (rl78_asm_init_sections): Initialize it.
33061 (rl78_select_section): Put __far readonly symbols in .frodata.
33062 (rl78_make_type_far): New.
33063 (rl78_insert_attributes): Force all readonly symbols to be
33064 __far when -mes0.
33065 (rl78_asm_out_integer): New.
33066 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33067 * config/rl78/rl78.opt (-mes0): New.
33068
33069 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33070 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33071 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33072 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33073 (rl78_saddr_p): New.
33074 (rl78_output_aligned_common): New.
33075 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33076 (rl78_handle_saddr_attribute): New.
33077 (rl78_handle_naked_attribute): New.
33078 (rl78_attribute_table): Add saddr.
33079 (rl78_print_operand_1): Don't print '!' on saddr operands.
33080 (rl78_print_operand_1): Strip encodings.
33081 (rl78_sfr_p): New.
33082 (rl78_strip_name_encoding): New.
33083 (rl78_attrlist_to_encoding): New.
33084 (rl78_encode_section_info): New.
33085 (rl78_asm_init_sections): New.
33086 (rl78_select_section): New.
33087 (rl78_output_labelref): New.
33088 (rl78_output_aligned_common): New.
33089 (rl78_asm_out_integer): New.
33090 (rl78_asm_ctor_dtor): New.
33091 (rl78_asm_constructor): New.
33092 (rl78_asm_destructor): New.
33093
33094 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33095 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33096 (transcode_memory_rtx): Update.
33097 (rl78_expand_epilogue): Use A_REG instead of 0.
33098
33099 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33100
33101 * config/arm/arm-protos.h (struct tune_params): New field
33102 sched_autopref_queue_depth.
33103 * config/arm/arm.c (sched-int.h): Include header.
33104 (arm_first_cycle_multipass_dfa_lookahead_guard,)
33105 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33106 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33107 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33108 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33109 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33110 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33111 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33112 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
33113 * config/arm/t-arm (arm.o): Update.
33114 * haifa-sched.c (update_insn_after_change): Update.
33115 (rank_for_schedule): Use auto-prefetcher model, if requested.
33116 (autopref_multipass_init): New static function.
33117 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33118 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33119 variable for debug dumps.
33120 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33121 (autopref_multipass_dfa_lookahead_guard): New global function that
33122 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33123 (init_h_i_d): Update.
33124 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33125 * sched-int.h (enum autopref_multipass_data_status): New const enum.
33126 (autopref_multipass_data_): Structure for auto-prefetcher data.
33127 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33128 (struct _haifa_insn_data:autopref_multipass_data): New field.
33129 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33130 (autopref_multipass_dfa_lookahead_guard): Declare.
33131
33132 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33133
33134 * rtlanal.c (get_base_term): Handle SCRATCH.
33135
33136 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33137
33138 * config/aarch64/aarch64.c
33139 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33140 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33141 * config/arm/arm.c
33142 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33143 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33144
33145 2015-01-17 Alan Modra <amodra@gmail.com>
33146
33147 * cprop.c (do_local_cprop): Disallow replacement of fixed
33148 hard registers.
33149
33150 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33151
33152 PR target/62066
33153 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33154 early return 0.
33155
33156 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
33157
33158 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33159 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33160
33161 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33162
33163 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33164 * config/arm/thumb1.md: ... Here.
33165
33166 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33167
33168 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33169 TImode for TARGET_32BIT.
33170
33171 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33172
33173 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33174 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33175 as ...
33176 (rs6000_abi_word_mode): New function.
33177
33178 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33179
33180 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33181 instead of UNITS_PER_WORD to describe the size of stack slots.
33182
33183 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33184
33185 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33186 as rs6000_promote_function_mode. Move comment to there.
33187 (rs6000_promote_function_mode): New function.
33188
33189 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33190
33191 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33192 -mpowerpc64 is active.
33193
33194 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33195
33196 PR middle-end/64353
33197 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33198 virtuals on start.
33199
33200 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33201
33202 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33203 introduced in revision 219724.
33204
33205 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33206 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33207
33208 PR target/64263
33209 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33210 destination is not a GP reg.
33211 (*movdi_aarch64): Likewise.
33212
33213 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
33214
33215 PR target/64623
33216 * config/rs6000/default64.h: Revert ISA change.
33217
33218 2015-01-16 Richard Biener <rguenther@suse.de>
33219
33220 PR middle-end/64614
33221 * tree-ssa-uninit.c: Include tree-cfg.h.
33222 (MAX_SWITCH_CASES): New define.
33223 (convert_control_dep_chain_into_preds): Handle switch statements.
33224 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33225 (normalize_one_pred_1): Do not split bit-manipulations.
33226 Record (x & CST).
33227
33228 2015-01-16 Richard Biener <rguenther@suse.de>
33229
33230 PR tree-optimization/64568
33231 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33232 complex load rewriting for TARGET_MEM_REFs.
33233
33234 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
33235
33236 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33237
33238 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
33239
33240 PR target/64149
33241 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33242 variable.
33243 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33244 (aarch64_lra_p): Remove.
33245
33246 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33247
33248 PR target/64363
33249 * ipa-chkp.h (chkp_instrumentable_p): New.
33250 * ipa-chkp.c: Include tree-inline.h.
33251 (chkp_instrumentable_p): New.
33252 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
33253 Fix processing of not instrumentable functions.
33254 (chkp_versioning): Use chkp_instrumentable_p. Warn about
33255 not instrumentable functions.
33256 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
33257 chkp_instrumentable_p.
33258 * tree-inline.h (copy_forbidden): New.
33259 * tree-inline.c (copy_forbidden): Not static anymore.
33260
33261 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33262
33263 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
33264 ptr1, ptr2 unused.
33265
33266 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33267
33268 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
33269 type OP_OUT to OP_INOUT.
33270
33271 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33272
33273 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
33274 (high x) y) to y if x and y have the same base.
33275
33276 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33277
33278 * config/arm/cortex-a57.md: New.
33279 * config/aarch64/aarch64.md: Include it.
33280 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
33281 * config/aarch64/aarch64-tune.md: Regenerate.
33282
33283 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
33284
33285 PR target/64015
33286 * ccmp.c (expand_ccmp_next): New function.
33287 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
33288 and compare insn sequence.
33289 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
33290 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
33291 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
33292 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
33293 (*ccmp_ior): Changed to ccmp_ior<mode>.
33294 (cmp<mode>): New pattern.
33295 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
33296 parameters.
33297 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
33298
33299 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
33300
33301 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
33302 _mm256_bsrli_epi128): New.
33303 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
33304
33305 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33306
33307 * expmed.c (store_bit_field_using_insv): Improve warning message.
33308 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
33309
33310 2015-01-15 Jiong Wang <jiong.wang@arm.com>
33311
33312 PR rtl-optimization/64011
33313 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
33314 there is partial overflow.
33315
33316 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33317
33318 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
33319 prototype.
33320 (nds32_expand_epilogue_v3pop): Likewise.
33321 * config/nds32/nds32.md (sibcall): Define this for sibling call
33322 optimization.
33323 (sibcall_register): Likewise.
33324 (sibcall_immediate): Likewise.
33325 (sibcall_value): Likewise.
33326 (sibcall_value_register): Likewise.
33327 (sibcall_value_immediate): Likewise.
33328 (sibcall_epilogue): Likewise.
33329 (epilogue): Pass false to indicate this is not a sibcall epilogue.
33330 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
33331 (nds32_expand_epilogue_v3pop): Likewise.
33332
33333 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33334
33335 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
33336 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
33337 (return_internal): New.
33338 (return): Define this named pattern.
33339 (simple_return): Define this named pattern.
33340 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
33341 pattern instead of unspec_volatile_func_return.
33342 (nds32_expand_epilogue_v3pop): Likewise.
33343 (nds32_can_use_return_insn): New function.
33344
33345 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33346
33347 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
33348 * config/nds32/nds32.md (pop25return): New.
33349 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
33350 pop25return pattern.
33351
33352 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33353
33354 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
33355 -mforbid-fp-as-gp, and -mex9 options.
33356
33357 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
33358
33359 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
33360 remove -mgp-direct option.
33361
33362 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33363
33364 * doc/invoke.texi (--param early-inlining-insns): Update default value.
33365 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
33366
33367 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33368
33369 * ipa-inline.c (inline_small_functions): Work around hints
33370 cache issue.
33371
33372 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
33373
33374 PR target/59710
33375 * doc/invoke.texi (Option Summary): Document new Nios II
33376 -mgpopt= syntax.
33377 (Nios II Options): Likewise.
33378 * config/nios2/nios2.opt: Add -mgpopt= option support.
33379 Modify existing -mgpopt and -mno-gpopt options to be aliases.
33380 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
33381 * config/nios2/nios2.c (nios2_option_override): Adjust
33382 -mgpopt defaulting.
33383 (nios2_in_small_data_p): Return true for explicit small data
33384 sections even with -G0.
33385 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
33386 option choices.
33387
33388 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33389
33390 PR ipa/64612
33391 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
33392 of comdat locals.
33393 (inline_call): Fix removal of aliases.
33394
33395 2015-01-15 Jakub Jelinek <jakub@redhat.com>
33396
33397 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
33398 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
33399 * opts.c (common_handle_option): Add -fsanitize=vptr.
33400 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
33401 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
33402 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
33403 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
33404 (ubsan_expand_vptr_ifn): New prototype.
33405 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
33406 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
33407 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
33408 expand_LOOP_VECTORIZED): Make argument nameless, remove
33409 ATTRIBUTE_UNUSED.
33410 (expand_UBSAN_VPTR): New function.
33411 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
33412 in fn spec.
33413 (UBSAN_VPTR): New internal function.
33414 * sanopt.c (tree_map_traits): Renamed to ...
33415 (sanopt_tree_map_traits): ... this.
33416 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
33417 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
33418 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
33419 (maybe_optimize_ubsan_vptr_ifn): New function.
33420 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
33421 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
33422 -fsanitize=vptr.
33423 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
33424 internal calls like pure functions for aliasing, even when they
33425 have other side-effects that prevent making them ECF_PURE.
33426 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
33427 (ubsan_expand_vptr_ifn): New function.
33428
33429 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
33430
33431 PR rtl-optimization/64110
33432 * stmt.c (parse_output_constraint): Process '^' and '$'.
33433 (parse_input_constraint): Ditto.
33434 * lra-constraints.c (process_alt_operands): Process the new
33435 constraints.
33436 * ira-costs.c (record_reg_classes): Process the new constraint
33437 '^'.
33438 * genoutput.c (indep_constraints): Add '^' and '$'.
33439 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
33440 * doc/md.texi: Add description of the new constraints.
33441
33442 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
33443 Bernd Schmidt <bernds@codesourcery.com>
33444 Cesar Philippidis <cesar@codesourcery.com>
33445 James Norris <jnorris@codesourcery.com>
33446 Tom de Vries <tom@codesourcery.com>
33447 Ilmir Usmanov <i.usmanov@samsung.com>
33448 Dmitry Bocharnikov <dmitry.b@samsung.com>
33449 Evgeny Gavrin <e.gavrin@samsung.com>
33450 Jakub Jelinek <jakub@redhat.com>
33451
33452 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
33453 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33454 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33455 New function types.
33456 * builtins.c: Include "gomp-constants.h".
33457 (expand_builtin_acc_on_device): New function.
33458 (expand_builtin, is_inexpensive_builtin): Handle
33459 BUILT_IN_ACC_ON_DEVICE.
33460 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
33461 New macros.
33462 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
33463 flag_openmp.
33464 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
33465 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
33466 i386/intelmic-offload.h.
33467 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
33468 to libgomp and its dependencies.
33469 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
33470 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
33471 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
33472 * config/ia64/hpux.h (LIB_SPEC): Likewise.
33473 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
33474 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
33475 * doc/generic.texi: Update for OpenACC changes.
33476 * doc/gimple.texi: Likewise.
33477 * doc/invoke.texi: Likewise.
33478 * doc/sourcebuild.texi: Likewise.
33479 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
33480 GF_OMP_FOR_KIND_OACC_LOOP.
33481 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
33482 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
33483 GF_OMP_TARGET_KIND_OACC_UPDATE,
33484 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
33485 Dump more data.
33486 * gimple.c: Update comments for OpenACC changes.
33487 * gimple.def: Likewise.
33488 * gimple.h: Likewise.
33489 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
33490 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
33491 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
33492 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
33493 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
33494 appropriate place.
33495 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
33496 * gimplify.c: Include "gomp-constants.h".
33497 Update comments for OpenACC changes.
33498 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
33499 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
33500 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
33501 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
33502 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
33503 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
33504 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
33505 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
33506 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
33507 OMP_CLAUSE_SEQ.
33508 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
33509 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
33510 OMP_CLAUSE_SET_MAP_KIND.
33511 (gimplify_oacc_cache): New function.
33512 (gimplify_omp_for): Handle OACC_LOOP.
33513 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
33514 OACC_DATA.
33515 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
33516 OACC_EXIT_DATA, OACC_UPDATE.
33517 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
33518 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
33519 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
33520 (gimplify_body): Consider flag_openacc next to flag_openmp.
33521 * lto-streamer-out.c: Include "gomp-constants.h".
33522 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
33523 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
33524 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
33525 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
33526 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
33527 (BUILT_IN_ACC_ON_DEVICE): New builtins.
33528 * omp-low.c: Include "gomp-constants.h".
33529 Update comments for OpenACC changes.
33530 (struct omp_context): Add reduction_map, gwv_below, gwv_this
33531 members.
33532 (extract_omp_for_data, use_pointer_for_field, install_var_field)
33533 (new_omp_context, delete_omp_context, scan_sharing_clauses)
33534 (create_omp_child_function, scan_omp_for, scan_omp_target)
33535 (check_omp_nesting_restrictions, lower_reduction_clauses)
33536 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
33537 Update for OpenACC changes.
33538 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
33539 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
33540 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
33541 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
33542 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
33543 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
33544 OMP_CLAUSE_MAP_*.
33545 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
33546 Handle GF_OMP_FOR_KIND_OACC_LOOP.
33547 (expand_omp_target, lower_omp_target): Handle
33548 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
33549 GF_OMP_TARGET_KIND_OACC_UPDATE,
33550 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
33551 GF_OMP_TARGET_KIND_OACC_DATA.
33552 (pass_expand_omp::execute, execute_lower_omp)
33553 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
33554 flag_openmp.
33555 (offload_symbol_decl): New variable.
33556 (oacc_get_reduction_array_id, oacc_max_threads)
33557 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
33558 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
33559 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
33560 (oacc_gimple_assign, oacc_initialize_reduction_data)
33561 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
33562 functions.
33563 (is_targetreg_ctx): Remove function.
33564 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
33565 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
33566 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
33567 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
33568 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
33569 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
33570 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
33571 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
33572 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
33573 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
33574 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
33575 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
33576 * tree-core.h: Update comments for OpenACC changes.
33577 (enum omp_clause_map_kind): Remove.
33578 (struct tree_omp_clause): Change type of map_kind member from enum
33579 omp_clause_map_kind to unsigned char.
33580 * tree-inline.c: Update comments for OpenACC changes.
33581 * tree-nested.c: Likewise. Include "gomp-constants.h".
33582 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
33583 (convert_tramp_reference_stmt, convert_gimple_call): Update for
33584 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
33585 OMP_CLAUSE_SET_MAP_KIND.
33586 * tree-pretty-print.c: Include "gomp-constants.h".
33587 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
33588 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
33589 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
33590 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
33591 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
33592 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
33593 instead of OMP_CLAUSE_MAP_*.
33594 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
33595 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
33596 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
33597 * tree-streamer-in.c: Include "gomp-constants.h".
33598 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
33599 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
33600 * tree-streamer-out.c: Include "gomp-constants.h".
33601 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
33602 OMP_CLAUSE_MAP_*.
33603 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
33604 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
33605 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
33606 * tree.c (omp_clause_num_ops): Update accordingly.
33607 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
33608 Likewise.
33609 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
33610 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
33611 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
33612 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
33613 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
33614 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
33615 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
33616 (OMP_CLAUSE_SET_MAP_KIND): New macro.
33617 * varpool.c (varpool_node::get_create): Consider flag_openacc next
33618 to flag_openmp.
33619 * config/i386/intelmic-offload.h: New file.
33620 * config/nvptx/offload.h: Likewise.
33621
33622 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33623
33624 * explow.h: Remove duplicate contents.
33625 * dojump.h: Likewise.
33626
33627 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
33628
33629 * arm.c (arm_xgene_tune): Add default initializer for instruction
33630 fusion.
33631
33632 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
33633
33634 PR ipa/64068
33635 PR ipa/64559
33636 * ipa.c (symbol_table::remove_unreachable_nodes):
33637 Do not put abstract origins into boundary.
33638
33639 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
33640
33641 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
33642 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
33643
33644 2015-01-15 Steve Ellcey <sellcey@mips.com>
33645
33646 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
33647 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
33648 builtins.def, and chkp-builtins.def.
33649
33650 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
33651
33652 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
33653 ISA 2.7 (POWER8).
33654
33655 2015-01-15 Richard Biener <rguenther@suse.de>
33656
33657 PR tree-optimization/61743
33658 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
33659 information on PHIs for some simple cases.
33660
33661 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33662
33663 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
33664 Include xgene1.md.
33665 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
33666 * config/arm/arm-cores.def (xgene1): New entry.
33667 * config/arm/arm-tables.opt: Regenerate.
33668 * config/arm/arm-tune.md: Regenerate.
33669 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
33670
33671 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
33672
33673 * tree-if-conv.c: Include hash-map.h.
33674 (aggressive_if_conv): New variable.
33675 (fold_build_cond_expr): Add simplification of non-zero condition.
33676 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
33677 destination block is not always executed.
33678 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
33679 than two predecessors if AGGRESSIVE_IF_CONV is true.
33680 (if_convertible_stmt_p): Fix commentary.
33681 (all_preds_critical_p): New function.
33682 (has_pred_critical_p): New function.
33683 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
33684 BB can have more than two predecessors and all incoming edges can be
33685 critical.
33686 (predicate_bbs): Skip predication for loop exit block, use build2_loc
33687 to compute predicate for true edge.
33688 (find_phi_replacement_condition): Delete this function.
33689 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
33690 Allow interchange PHI arguments if EXTENDED is false.
33691 Change check that block containing reduction statement candidate
33692 is predecessor of phi-block since phi may have more than two arguments.
33693 (phi_args_hash_traits): New helper structure.
33694 (struct phi_args_hash_traits): New type.
33695 (phi_args_hash_traits::hash): New function.
33696 (phi_args_hash_traits::equal_keys): New function.
33697 (gen_phi_arg_condition): New function.
33698 (predicate_scalar_phi): Add handling of phi nodes with more than two
33699 arguments, delete COND and TRUE_BB arguments, insert body of
33700 find_phi_replacement_condition to predicate ordinary phi nodes.
33701 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
33702 delete call of find_phi_replacement_condition and invoke
33703 predicate_scalar_phi with two arguments.
33704 (insert_gimplified_predicates): Add assert that non-predicated block
33705 don't have statements to insert.
33706 (ifcvt_split_critical_edges): New function.
33707 (ifcvt_split_def_stmt): Likewise.
33708 (ifcvt_walk_pattern_tree): Likewise.
33709 (stmt_is_root_of_bool_pattern): Likewise.
33710 (ifcvt_repair_bool_pattern): Likewise.
33711 (ifcvt_local_dce): Likewise.
33712 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
33713 is copy of inner or outer loop force_vectorize field, invoke
33714 ifcvt_split_critical_edges, ifcvt_local_dce and
33715 ifcvt_repair_bool_pattern for aggressive if-conversion.
33716
33717 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
33718
33719 * config/aarch64/aarch64.md: Include xgene1.md.
33720 * config/aarch64/xgene1.md: New file.
33721
33722 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33723
33724 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
33725 xgene1 (APM XGene-1) core definition.
33726 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
33727 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
33728 * doc/invoke.texi: Document -mcpu=xgene1.
33729
33730 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33731
33732 * dojump.h: New header file.
33733 * explow.h: Likewise.
33734 * expr.h: Remove includes.
33735 Move expmed.c prototypes to expmed.h.
33736 Move dojump.c prototypes to dojump.h.
33737 Move alias.c prototypes to alias.h.
33738 Move explow.c prototypes to explow.h.
33739 Move calls.c prototypes to calls.h.
33740 Move emit-rtl.c prototypes to emit-rtl.h.
33741 Move varasm.c prototypes to varasm.h.
33742 Move stmt.c prototypes to stmt.h.
33743 (saved_pending_stack_adjust): Move to dojump.h.
33744 (adjust_address): Move to explow.h.
33745 (adjust_address_nv): Move to emit-rtl.h.
33746 (adjust_bitfield_address): Likewise.
33747 (adjust_bitfield_address_size): Likewise.
33748 (adjust_bitfield_address_nv): Likewise.
33749 (adjust_automodify_address_nv): Likewise.
33750 * explow.c (expr_size): Move to expr.c.
33751 (int_expr_size): Likewise.
33752 (tree_expr_size): Likewise.
33753 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33754 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33755 * genemit.c (main): Generate includes statistics.h, real.h,
33756 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
33757 stmt.h.
33758 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
33759 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
33760 explow.h, emit-rtl.h, stmt.h.
33761 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
33762 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
33763 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
33764 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
33765 emit-rtl.h, varasm.h, stmt.h.
33766 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
33767 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
33768 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
33769 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
33770 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33771 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
33772 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
33773 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
33774 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
33775 tm.h tree.h varasm.h vec.h wide-int.h.
33776 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33777 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33778 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
33779 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
33780 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
33781 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
33782 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
33783 * loop-iv.c: Likewise.
33784 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
33785 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
33786 statistics.h stmt.h tree.h varasm.h wide-int.h.
33787 * lra-constraints.c: Likewise.
33788 * lra-eliminations.c: Likewise.
33789 * lra-lives.c: Likewise.
33790 * lra-remat.c: Likewise.
33791 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33792 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
33793 statistics.h stmt.h tree.h varasm.h wide-int.h.
33794 * hw-doloop.c: Likewise.
33795 * ira-color.c: Likewise.
33796 * ira-emit.c: Likewise.
33797 * loop-doloop.c: Likewise.
33798 * loop-invariant.c: Likewise.
33799 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33800 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
33801 statistics.h stmt.h tree.h varasm.h wide-int.h.
33802 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
33803 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
33804 statistics.h stmt.h tree.h varasm.h wide-int.h.
33805 * combine-stack-adj.c: Likewise.
33806 * cse.c: Likewise.
33807 * ddg.c: Likewise.
33808 * ifcvt.c: Likewise.
33809 * ira-costs.c: Likewise.
33810 * jump.c: Likewise.
33811 * lra-coalesce.c: Likewise.
33812 * lra-spills.c: Likewise.
33813 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33814 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
33815 stmt.h varasm.h wide-int.h.
33816 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
33817 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33818 varasm.h.
33819 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
33820 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
33821 statistics.h stmt.h varasm.h wide-int.h.
33822 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
33823 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
33824 varasm.h wide-int.h.
33825 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
33826 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33827 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
33828 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
33829 statistics.h stmt.h.
33830 * config/tilepro/tilepro.c: Likewise.
33831 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
33832 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
33833 * config/pdp11/pdp11.c: Likewise.
33834 * config/xtensa/xtensa.c: Likewise.
33835 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
33836 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
33837 varasm.h.
33838 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33839 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33840 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
33841 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33842 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
33843 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
33844 * rtl-chkp.c: Likewise.
33845 * tree-chkp-opt.c: Likewise.
33846 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
33847 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
33848 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
33849 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33850 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
33851 statistics.h stmt.h.
33852 * tree-vect-data-refs.c: Likewise.
33853 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
33854 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33855 rtl.h statistics.h stmt.h varasm.h.
33856 * internal-fn.c: Likewise.
33857 * ipa-icf-gimple.c: Likewise.
33858 * lto-section-out.c: Likewise.
33859 * tree-data-ref.c: Likewise.
33860 * tree-nested.c: Likewise.
33861 * tree-outof-ssa.c: Likewise.
33862 * tree-predcom.c: Likewise.
33863 * tree-pretty-print.c: Likewise.
33864 * tree-scalar-evolution.c: Likewise.
33865 * tree-ssa-strlen.c: Likewise.
33866 * tree-vect-loop.c: Likewise.
33867 * tree-vect-patterns.c: Likewise.
33868 * tree-vect-slp.c: Likewise.
33869 * tree-vect-stmts.c: Likewise.
33870 * tsan.c: Likewise.
33871 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33872 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
33873 stmt.h.
33874 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
33875 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33876 statistics.h stmt.h varasm.h.
33877 * loop-unroll.c: Likewise.
33878 * ubsan.c: Likewise.
33879 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
33880 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
33881 stmt.h varasm.h.
33882 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33883 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
33884 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
33885 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33886 statistics.h stmt.h.
33887 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
33888 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
33889 statistics.h stmt.h varasm.h.
33890 * gimple-match-head.c: Likewise.
33891 * lto-cgraph.c: Likewise.
33892 * lto-section-in.c: Likewise.
33893 * lto-streamer-in.c: Likewise.
33894 * lto-streamer-out.c: Likewise.
33895 * tree-affine.c: Likewise.
33896 * tree-cfg.c: Likewise.
33897 * tree-cfgcleanup.c: Likewise.
33898 * tree-if-conv.c: Likewise.
33899 * tree-into-ssa.c: Likewise.
33900 * tree-ssa-alias.c: Likewise.
33901 * tree-ssa-copyrename.c: Likewise.
33902 * tree-ssa-dse.c: Likewise.
33903 * tree-ssa-forwprop.c: Likewise.
33904 * tree-ssa-live.c: Likewise.
33905 * tree-ssa-math-opts.c: Likewise.
33906 * tree-ssa-pre.c: Likewise.
33907 * tree-ssa-sccvn.c: Likewise.
33908 * tree-tailcall.c: Likewise.
33909 * tree-vect-generic.c: Likewise.
33910 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33911 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
33912 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33913 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
33914 * varasm.c: Likewise.
33915 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33916 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
33917 varasm.h.
33918 * init-regs.c: Likewise.
33919 * ira.c: Likewise.
33920 * omp-low.c: Likewise.
33921 * stack-ptr-mod.c: Likewise.
33922 * tree-ssa-reassoc.c: Likewise.
33923 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33924 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
33925 varasm.h.
33926 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33927 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
33928 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33929 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
33930 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33931 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
33932 * tree-ssa-phiopt.c: Likewise.
33933 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33934 fixed-value.h hashtab.h real.h statistics.h stmt.h.
33935 * config/fr30/fr30.c: Likewise.
33936 * config/frv/frv.c: Likewise.
33937 * expr.c: Likewise.
33938 * final.c: Likewise.
33939 * optabs.c: Likewise.
33940 * passes.c: Likewise.
33941 * simplify-rtx.c: Likewise.
33942 * stmt.c: Likewise.
33943 * toplev.c: Likewise.
33944 * var-tracking.c: Likewise.
33945 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33946 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
33947 * lower-subreg.c: Likewise.
33948 * postreload-gcse.c: Likewise.
33949 * ree.c: Likewise.
33950 * reginfo.c: Likewise.
33951 * store-motion.c: Likewise.
33952 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33953 fixed-value.h hashtab.h real.h stmt.h varasm.h.
33954 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33955 fixed-value.h hashtab.h statistics.h stmt.h.
33956 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33957 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
33958 * except.c: Likewise.
33959 * explow.c: Likewise.
33960 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33961 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
33962 varasm.h.
33963 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33964 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
33965 * tree-ssa-structalias.c: Likewise.
33966 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33967 fixed-value.h insn-config.h real.h statistics.h.
33968 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33969 fixed-value.h insn-config.h real.h statistics.h stmt.h.
33970 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33971 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
33972 * cfgbuild.c: Likewise.
33973 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33974 fixed-value.h real.h rtl.h statistics.h stmt.h.
33975 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33976 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
33977 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33978 fixed-value.h real.h statistics.h stmt.h.
33979 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
33980 fixed-value.h real.h statistics.h stmt.h varasm.h.
33981 * cprop.c: Likewise.
33982 * modulo-sched.c: Likewise.
33983 * postreload.c: Likewise.
33984 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33985 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
33986 statistics.h stmt.h varasm.h.
33987 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
33988 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
33989 rtl.h statistics.h stmt.h varasm.h.
33990 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
33991 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
33992 varasm.h.
33993 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
33994 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
33995 varasm.h.
33996 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
33997 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
33998 varasm.h.
33999 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34000 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34001 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34002 function.h real.h statistics.h stmt.h varasm.h.
34003 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34004 insn-config.h real.h statistics.h stmt.h.
34005 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34006 statistics.h stmt.h.
34007 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34008 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34009 statistics.h stmt.h varasm.h.
34010 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34011 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34012 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34013 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34014 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34015 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34016 statistics.h stmt.h varasm.h.
34017 * ipa-polymorphic-call.c: Likewise.
34018 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34019 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34020 statistics.h stmt.h.
34021 * config/c6x/c6x.c: Likewise.
34022 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34023 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34024 statistics.h stmt.h varasm.h.
34025 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34026 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34027 stmt.h varasm.h.
34028 * ipa-split.c: Likewise.
34029 * tree-eh.c: Likewise.
34030 * tree-ssa-dce.c: Likewise.
34031 * tree-ssa-loop-niter.c: Likewise.
34032 * tree-vrp.c: Likewise.
34033 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34034 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34035 stmt.h.
34036 * config/nds32/nds32-fp-as-gp.c: Likewise.
34037 * config/nds32/nds32-intrinsic.c: Likewise.
34038 * config/nds32/nds32-isr.c: Likewise.
34039 * config/nds32/nds32-md-auxiliary.c: Likewise.
34040 * config/nds32/nds32-memory-manipulation.c: Likewise.
34041 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34042 * config/nds32/nds32-predicates.c: Likewise.
34043 * config/nds32/nds32.c: Likewise.
34044 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34045 fixed-value.h hashtab.h real.h statistics.h.
34046 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34047 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34048 * config/arm/arm.c: Likewise.
34049 * config/avr/avr.c: Likewise.
34050 * config/bfin/bfin.c: Likewise.
34051 * config/h8300/h8300.c: Likewise.
34052 * config/i386/i386.c: Likewise.
34053 * config/ia64/ia64.c: Likewise.
34054 * config/iq2000/iq2000.c: Likewise.
34055 * config/m32c/m32c.c: Likewise.
34056 * config/m32r/m32r.c: Likewise.
34057 * config/m68k/m68k.c: Likewise.
34058 * config/mcore/mcore.c: Likewise.
34059 * config/mep/mep.c: Likewise.
34060 * config/mips/mips.c: Likewise.
34061 * config/mn10300/mn10300.c: Likewise.
34062 * config/moxie/moxie.c: Likewise.
34063 * config/pa/pa.c: Likewise.
34064 * config/rl78/rl78.c: Likewise.
34065 * config/rx/rx.c: Likewise.
34066 * config/s390/s390.c: Likewise.
34067 * config/sh/sh.c: Likewise.
34068 * config/sparc/sparc.c: Likewise.
34069 * config/spu/spu.c: Likewise.
34070 * config/stormy16/stormy16.c: Likewise.
34071 * config/v850/v850.c: Likewise.
34072 * config/vax/vax.c: Likewise.
34073 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34074 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34075 * config/msp430/msp430.c: Likewise.
34076 * predict.c: Likewise.
34077 * value-prof.c: Likewise.
34078 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34079 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34080 * config/microblaze/microblaze.c: Likewise.
34081 * config/nios2/nios2.c: Likewise.
34082 * config/rs6000/rs6000.c: Likewise.
34083 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34084 insn-config.h real.h rtl.h statistics.h stmt.h.
34085 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34086 insn-config.h real.h statistics.h stmt.h.
34087 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34088 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34089 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34090 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34091 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34092 fixed-value.h real.h statistics.h stmt.h.
34093 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34094 fixed-value.h statistics.h stmt.h.
34095 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34096 stmt.h.
34097
34098 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34099
34100 * gengtype.c (create_user_defined_type): Workaround
34101 -Wmaybe-uninitialized false positives.
34102 * cse.c (fold_rtx): Likewise.
34103 * loop-invariant.c (gain_for_invariant): Likewise.
34104
34105 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
34106
34107 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34108 set the memory attributes in all cases but clear MEM_EXPR if need be.
34109
34110 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34111
34112 PR tree-optimization/64434
34113 * cfgexpand.c (reorder_operands): New function.
34114 (expand_gimple_basic_block): Insert call of reorder_operands if
34115 optimized is true.
34116
34117 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
34118
34119 * config/mips/micromips.md (*swp): Remove explicit parallel.
34120 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34121 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34122 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34123 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34124 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34125 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34126 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34127 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34128 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34129 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34130 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34131 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34132 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34133 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34134 (mips_wrdsp): Likewise.
34135 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34136 parallel.
34137 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34138 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34139 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34140 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34141 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34142 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34143 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34144 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34145 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34146
34147 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34148
34149 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34150 (mips_print_operand): Support 'y' to print exact log2 in decimal
34151 of a const_int.
34152 * config/mips/mips.h (ISA_HAS_LSA): New define.
34153 (ISA_HAS_DLSA): Likewise.
34154 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34155 * config/mips/predicates.md (const_immlsa_operand): New predicate.
34156
34157 2015-01-15 Martin Liska <mliska@suse.cz>
34158
34159 PR target/64377
34160 * optc-save-gen.awk: Add support for array types.
34161
34162 2015-01-15 Richard Biener <rguenther@suse.de>
34163
34164 PR middle-end/64365
34165 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34166 for MEM_REF access functions with the same base can never partially
34167 overlap.
34168
34169 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
34170
34171 * common.opt: New option -fstack-protector-explicit.
34172 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34173 (stack_protect_decl_phase): Handle stack_protect attribute for
34174 explicit stack protection requests.
34175 (expand_used_vars): Similarly.
34176 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34177 * doc/extend.texi: Add documentation for "stack_protect" attribute.
34178 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34179
34180 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
34181
34182 PR target/53988
34183 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34184 reg-reg copies.
34185 (sh_extending_set_of_reg): New struct.
34186 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34187 sh_remove_reg_dead_or_unused_notes): New Declarations.
34188 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34189 sh_find_extending_set_of_reg, sh_split_tst_subregs,
34190 sh_extending_set_of_reg::use_as_extended_reg): New functions.
34191 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34192 convert to insn_and_split and use new function sh_split_tst_subregs.
34193
34194 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
34195
34196 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34197 option.
34198 (Optimization Options): Move -fuse-ld documentation to...
34199 (Link Options): ...here.
34200
34201 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34202
34203 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34204 offsets.
34205 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34206 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34207 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34208 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34209 instead of ZR for the memory operand of LL/SC.
34210 (compare_and_swap_12, sync_add<mode>): Likewise.
34211 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34212 (sync_new_<optab>_12, sync_nand_12): Likewise.
34213 (sync_old_nand_12, sync_new_nand_12): Likewise.
34214 (sync_sub<mode>, sync_old_add<mode>): Likewise.
34215 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34216 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34217 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34218 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34219 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34220 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34221 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34222 * doc/md.texi (ZC): Update description.
34223
34224 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34225
34226 * builtins.c (expand_builtin_atomic_exchange): Remove error when
34227 memory model is CONSUME.
34228 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34229 expand_builtin_atomic_store): Change invalid memory model errors to
34230 warnings.
34231 (expand_builtin_atomic_clear): Change invalid model errors to warnings
34232 and issue warning for CONSUME.
34233
34234 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
34235
34236 * lto-cgraph: Update function comments for
34237 lto_symtab_encoder_encode_*.
34238
34239 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34240
34241 * Makefile.in (site.exp): Do not set ENABLE_LTO.
34242
34243 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34244
34245 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34246 * lto-cgraph.c (select_what_to_stream): Remove argument, use
34247 lto_stream_offload_p instead.
34248 * lto-streamer.h (select_what_to_stream): Remove argument.
34249 * passes.c (ipa_write_summaries): Likewise.
34250 * tree-pass.h (ipa_write_summaries): Likewise.
34251
34252 2015-01-14 Richard Biener <rguenther@suse.de>
34253
34254 PR tree-optimization/59354
34255 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
34256 groups larger than the slp group size as having gaps.
34257
34258 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34259
34260 PR middle-end/59448
34261 * builtins.c (get_memmodel): Promote consume to acquire always.
34262
34263 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34264
34265 PR target/64386
34266 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
34267 V32HImode.
34268
34269 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34270
34271 PR target/64393
34272 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
34273 Enable AVX512BW.
34274 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
34275 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
34276 AVX512VBMI, as it implies AVX512BW.
34277
34278 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34279
34280 PR target/64387
34281 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
34282 (vec_unpacks_hi_v16sf): Ditto.
34283
34284 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34285
34286 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
34287 is not available.
34288
34289 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34290
34291 * doc/invoke.texi (mapcs): Mention deprecation.
34292 (mapcs-frame): Likewise.
34293
34294 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
34295
34296 PR target/64453
34297 * config/arm/arm.c (callee_saved_reg_p): Define.
34298 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
34299 register is callee saved instead of !call_used_regs[reg].
34300 (thumb1_compute_save_reg_mask): Likewise.
34301
34302 2015-01-14 Hale Wang <hale.wang@arm.com>
34303
34304 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
34305 Cortex-M7.
34306
34307 2015-01-14 Richard Biener <rguenther@suse.de>
34308
34309 PR lto/64415
34310 * tree-inline.c (insert_debug_decl_map): Check destination
34311 function MAY_HAVE_DEBUG_STMTS.
34312 (insert_init_debug_bind): Likewise.
34313 (insert_init_stmt): Remove redundant check.
34314 (remap_gimple_stmt): Drop debug stmts if the destination
34315 function has var-tracking assignments disabled.
34316
34317 2015-01-14 Martin Liska <mliska@suse.cz>
34318
34319 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
34320 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
34321
34322 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34323
34324 PR target/64460
34325 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
34326 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
34327
34328 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34329
34330 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
34331 level from an ARCH; do not inject the default.
34332 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
34333 MIPS_ISA_LEVEL_SPEC.
34334 (MIPS_ISA_NAN2008_SPEC): Update comment.
34335 (BASE_DRIVER_SELF_SPECS): Likewise.
34336 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
34337 MIPS_DEFAULT_ISA_LEVEL_SPEC.
34338 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
34339 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
34340 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
34341
34342 2015-01-14 Richard Biener <rguenther@suse.de>
34343
34344 PR tree-optimization/64493
34345 PR tree-optimization/64495
34346 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
34347 assign the proper vectorized PHI to the inner loop exit PHIs.
34348
34349 2015-01-14 Joey Ye <joey.ye@arm.com>
34350
34351 * config/arm/arm.c (arm_compute_save_reg_mask):
34352 Do not save lr in case of tail call.
34353 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
34354
34355 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
34356
34357 * tree-vrp.c (check_array_ref): Emit more warnings
34358 for warn_array_bounds >= 2.
34359 * common.opt: New option -Warray-bounds=.
34360 * doc/invoke.texi: Document -Warray-bounds=.
34361
34362 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
34363
34364 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
34365 (mforbid-fp-as-gp): Remove.
34366 (mex9): Remove.
34367 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
34368 (nds32_symbol_load_store_p): Remove.
34369 (nds32_fp_as_gp_check_available): Clean up implementation.
34370 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
34371 cases.
34372 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
34373 fp-as-gp and ex9 cases.
34374
34375 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34376
34377 * tree-profile.c (init_ic_make_global_vars): Drop workaround
34378 for bintuils bug 14342.
34379 (init_ic_make_global_vars): Likewise.
34380 (gimple_init_edge_profiler): Likewise.
34381 (gimple_gen_ic_func_profiler): Likewise.
34382
34383 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34384
34385 * ipa-inline.c (inline_small_functions): Swap the operands in
34386 enum.
34387
34388 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34389
34390 PR ipa/64481
34391 * ipa-inline-analysis.c (node_growth_cache): Remove.
34392 (initialize_growth_caches): Do not initialize it.
34393 (free_growth_caches): Do not free it.
34394 (do_estimate_growth): Rename to ...
34395 (estimate_growth): ... this one; drop growth cache code.
34396 (growth_likely_positive): Always go the heuristics way.
34397 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
34398 (reset_edge_caches): Do not reset node growth.
34399 (heap_edge_removal_hook): Do not maintain cache.
34400 (inline_small_functions): Likewise; strenghten sanity check.
34401 (ipa_inline): Do not maintain caches.
34402 * ipa-inline.h (node_growth_cache): Remove.
34403 (do_estimate_growth): Remove to ...
34404 (estimate_growth): this one; remove inline version.
34405 (reset_node_growth_cache): Remove.
34406
34407 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
34408
34409 PR ipa/64565
34410 * ipa-inline.c (inline_small_functions): Update callee keys after
34411 resolving speculation
34412 (inline_small_functions): Always check monotonicity of the queue.
34413
34414 2015-01-13 Marek Polacek <polacek@redhat.com>
34415
34416 PR middle-end/64391
34417 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
34418
34419 2015-01-13 Jakub Jelinek <jakub@redhat.com>
34420
34421 PR rtl-optimization/64286
34422 * ree.c (combine_reaching_defs): Move part of comment earlier,
34423 remove !SCALAR_INT_MODE_P check.
34424 (add_removable_extension): Don't add vector mode
34425 extensions if all uses of the source register aren't the same
34426 vector extensions.
34427
34428 2015-01-13 Renlin Li <renlin.li@arm.com>
34429
34430 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
34431 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
34432
34433 2015-01-13 Martin Liska <mliska@suse.cz>
34434
34435 * ipa-icf.c (sem_function::equals_private): Call new functions
34436 cl_target_option_print_diff and cl_optimization_print_diff.
34437 * optc-save-gen.awk (cl_target_option_print_diff): New function.
34438 (cl_optimization_print_diff): Likewise.
34439 * opth-gen.awk: Likewise.
34440
34441 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
34442
34443 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
34444 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
34445 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
34446 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
34447 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
34448 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
34449
34450 2015-01-13 Andrew Pinski <apinski@cavium.com>
34451
34452 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
34453 instead of src mode.
34454
34455 2015-01-13 Richard Biener <rguenther@suse.de>
34456
34457 PR lto/64373
34458 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
34459 DECL_CONTEXT.
34460
34461 2015-01-13 Andrew Pinski <apinski@cavium.com>
34462
34463 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
34464 volatile mems.
34465 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
34466
34467 2015-01-13 Jakub Jelinek <jakub@redhat.com>
34468
34469 PR middle-end/63974
34470 * cfgexpand.c (expand_computed_goto): Don't call
34471 convert_memory_address here.
34472
34473 2015-01-13 Richard Biener <rguenther@suse.de>
34474
34475 PR tree-optimization/64406
34476 * tree-loop-distibution.c (pass_loop_distribution::execute):
34477 Reset the SCEV hashtable if we distributed anything.
34478
34479 2015-01-13 Richard Biener <rguenther@suse.de>
34480
34481 PR tree-optimization/64404
34482 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
34483 SLP types for CSEd loads.
34484
34485 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34486
34487 PR tree-optimization/64436
34488 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
34489 merge of two symbolic numbers for a bitwise OR to ...
34490 (perform_symbolic_merge): This. Also fix computation of the range and
34491 end of the symbolic number corresponding to the result of a bitwise OR.
34492
34493 2015-01-13 Richard Biener <rguenther@suse.de>
34494
34495 PR tree-optimization/64568
34496 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
34497 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
34498
34499 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34500
34501 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
34502 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
34503
34504 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34505
34506 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
34507 target-specific symbol_ref flag.
34508 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
34509 resides in rodata section.
34510 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
34511 (nds32_encode_section_info): New function.
34512
34513 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34514
34515 * config/nds32/nds32.md (call): Use pseudo instruction bal which
34516 clobbers TA_REGNUM if large code model is specified.
34517 (call_register): Likewise.
34518 (call_immediate): Likewise.
34519 (call_value): Likewise.
34520 (call_value_register): Likewise.
34521 (call_value_immediate): Likewise.
34522
34523 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34524
34525 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
34526 (TARGET_CMODEL_MEDIUM): New macro.
34527 (TARGET_CMODEL_LARGE): New macro.
34528 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
34529 code model setting in assembly code.
34530
34531 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34532
34533 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34534 Remove MASK_GP_DIRECT flag.
34535 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
34536 one of the multilib default options.
34537 * config/nds32/nds32.opt (mgp-direct): Remove.
34538 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
34539 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
34540
34541 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
34542
34543 * config/nds32/nds32.opt (mcmodel): Add new option.
34544 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
34545 to describe code model.
34546
34547 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
34548
34549 PR target/64479
34550 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
34551
34552 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
34553
34554 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
34555 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
34556 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
34557 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
34558 __builtin_sh_set_fpscr.
34559
34560 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
34561
34562 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
34563 after a funtion name just to indicate it is a function.
34564 ([-fsanitize-undefined-trap-on-error]): Likewise.
34565 ([-fdbg-cnt=]): Likewise.
34566 ([-mmemcpy]): Likewise.
34567 ([-mflush-func]): Likewise.
34568 ([-msynci]): Likewise.
34569
34570 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
34571
34572 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
34573 example.
34574
34575 2015-01-12 Jakub Jelinek <jakub@redhat.com>
34576
34577 PR tree-optimization/64563
34578 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
34579 instead of != VR_VARYING.
34580
34581 PR target/64513
34582 * config/i386/i386.c (ix86_expand_prologue): Add
34583 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
34584
34585 PR tree-optimization/64454
34586 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
34587 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
34588 for signed or [0, op1 - 1] for unsigned modulo.
34589 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
34590 even if op1 does not satisfy integer_pow2p.
34591
34592 PR other/64370
34593 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
34594
34595 2015-01-12 Jeff Law <law@redhat.com>
34596
34597 PR target/64461
34598 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
34599 (trunchiqi2, truncsihi2): Similarly.
34600
34601 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
34602 rather than calling F.
34603
34604 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
34605
34606 * tsan.c (instrument_expr): Use force_gimple_operand.
34607 Use may_be_nonaddressable_p instead of is_gimple_addressable.
34608
34609 2015-01-12 Richard Biener <rguenther@suse.de>
34610
34611 PR tree-optimization/64530
34612 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
34613 back dr1.
34614
34615 2015-01-12 Richard Biener <rguenther@suse.de>
34616
34617 PR middle-end/64357
34618 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
34619 latches properly.
34620
34621 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34622
34623 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
34624 Cortex-A17 tuning parameters.
34625 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
34626
34627 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34628
34629 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
34630 * config/arm/arm.c (arm_macro_fusion_p): New function.
34631 (arm_macro_fusion_pair_p): Likewise.
34632 (TARGET_SCHED_MACRO_FUSION_P): Define.
34633 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
34634 (ARM_FUSE_NOTHING): Likewise.
34635 (ARM_FUSE_MOVW_MOVT): Likewise.
34636 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
34637 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
34638 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
34639 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
34640 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
34641 arm_cortex_a5_tune): Specify fuseable_ops value.
34642
34643 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
34644
34645 PR bootstrap/64561
34646 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
34647 test for PIE with copy reloc.
34648 * configure: Regenerated.
34649
34650 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34651
34652 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
34653 in gen_rtx_REG.
34654 (arm_tls_descseq_addr): Likewise.
34655 (arm_gen_movmemqi): Likewise.
34656 (arm_expand_epilogue_apcs_frame): Likewise.
34657 (arm_expand_epilogue): Likewise.
34658 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
34659 in gen_rtx_REG.
34660
34661 2015-01-12 Martin Liska <mliska@suse.cz>
34662
34663 PR ipa/64550
34664 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
34665 volatility for correct operands.
34666
34667 2015-01-12 Martin Liska <mliska@suse.cz>
34668
34669 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
34670 indication that a function is not leaf.
34671 (sem_function::compare_polymorphic_p): Likewise.
34672
34673 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34674
34675 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
34676 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
34677 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
34678 fold-const.h, tree-check.h.
34679
34680 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34681
34682 PR ipa/63967
34683 PR ipa/64425
34684 * ipa-inline.c (compute_uninlined_call_time,
34685 compute_inlined_call_time): Use counts for extra precision when
34686 needed possible.
34687 (big_speedup_p): Fix formating.
34688 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
34689 (relative_time_benefit): Remove.
34690 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
34691 merge guessed and read profile paths.
34692 (inline_small_functions): Count only !optimize_size functions into
34693 initial size; be more lax about sanity check when profile is used;
34694 be sure to update inlined function profile when profile is read.
34695
34696 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
34697
34698 PR ipa/63470
34699 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
34700 cost when edge becomes direct.
34701 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
34702 is resolved or when introducing new speculation.
34703
34704 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
34705
34706 PR ipa/64551
34707 PR ipa/64552
34708 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
34709 '||' to fix typo issue.
34710
34711 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
34712 accept and return NULL.
34713
34714 2015-01-12 Martin Liska <mliska@suse.cz>
34715
34716 * cgraph.c (cgraph_edge::remove_callee): Move function to header
34717 file for being inlined.
34718 (cgraph_set_edge_callee): Delete.
34719 (cgraph_edge::redirect_callee): Move function to header file
34720 for being inlined.
34721 (cgraph_edge::make_direct): Use new function.
34722 (cgraph_edge::dump_edge_flags): New function created from
34723 static dump_edge_flags function.
34724 (cgraph_node::dump): Use new function.
34725 (cgraph_edge::verify_count_and_frequency): New function created
34726 from verify_edge_count_and_frequency.
34727 (cgraph_edge::verify_corresponds_to_fndecl): New function created
34728 from verify_edge_corresponds_to_fndecl.
34729 (verify_edge_corresponds_to_fndecl): Delete.
34730 (cgraph_node::verify_node): Use new function.
34731 * cgraph.h (cgraph_edge::set_callee): New function.
34732 (cgraph_edge::dump_edge_flags): Likewise.
34733 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
34734
34735 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
34736
34737 * ipa-utils.c (estimate_function_body_sizes): Do not
34738 free node params when called late with early=true.
34739
34740 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
34741
34742 * doc/md.texi (Instruction Patterns): Rewrite text for
34743 clarity.
34744 (Example): Likewise.
34745
34746 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
34747
34748 * doc/invoke.texi (Option Summary): Break long lines.
34749 [(-fdiagnostics-color)]: Put long literal in @smallexample
34750 instead of inline.
34751 [(-fsanitize-recover)]: Likewise.
34752 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
34753 [(-ffast-math)]: Likewise.
34754 [(--param max-inline-insns-recursive)]: Likewise.
34755 [(--param max-inline-recursive-depth)]: Likewise.
34756 [(-mno-text-section-literals)]: Likewise.
34757
34758 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
34759
34760 * doc/install.texi: Update for libgomp being renamed from "GNU
34761 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
34762 Runtime Library".
34763 * doc/sourcebuild.texi: Likewise.
34764
34765 2015-01-10 Anthony Green <green@moxielogic.com>
34766
34767 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
34768 mul.x availability for moxiebox configuration.
34769
34770 2015-01-09 Anthony Green <green@moxielogic.com>
34771
34772 * config/moxie/moxie.md: Tabify assembly output.
34773
34774 2015-01-09 Anthony Green <green@moxielogic.com>
34775
34776 * config/moxie/moxie.md (CC_REG): Correct register definition.
34777
34778 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
34779
34780 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
34781 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
34782 of log files.
34783
34784 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34785
34786 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
34787
34788 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
34789 Jakub Jelinek <jakub@redhat.com>
34790
34791 PR middle-end/64412
34792 * lto-streamer.h (lto_stream_offload_p): New declaration.
34793 * lto-streamer.c (lto_stream_offload_p): New variable.
34794 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
34795 at the same time as section_name_prefix.
34796 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
34797 if lto_stream_offload_p.
34798 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
34799 stream TREE_TARGET_OPTION if lto_stream_offload_p.
34800 (write_ts_function_decl_tree_pointers): Don't
34801 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
34802 * tree-streamer-in.c (unpack_value_fields): Don't stream
34803 TREE_TARGET_OPTION in if ACCEL_COMPILER.
34804 (lto_input_ts_function_decl_tree_pointers): Don't stream
34805 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
34806 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
34807 instead of section_name_prefix string comparisons.
34808
34809 2015-01-09 Jakub Jelinek <jakub@redhat.com>
34810
34811 PR rtl-optimization/64536
34812 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
34813 tablejumps.
34814
34815 2015-01-09 Michael Collison <michael.collison@linaro.org>
34816
34817 PR tree-optimization/64322
34818 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
34819 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
34820
34821 2015-01-09 Tom de Vries <tom@codesourcery.com>
34822
34823 PR rtl-optimization/64539
34824 * regcprop.c (kill_clobbered_values): Factor out of ...
34825 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
34826 instead of note_stores with kill_clobbered_value.
34827
34828 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34829
34830 * ginclude/unwind-arm-common.h: Revert previous commit.
34831
34832 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
34833
34834 * config.gcc (arm*-*-freebsd*): New configuration.
34835 * config/arm/freebsd.h: New file.
34836 * config.host: Add extra components for arm*-*-freebsd*.
34837 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
34838 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
34839
34840 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34841
34842 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
34843 for -mcpu=e6500.
34844 * config/rs6000/t-rtems: Add e6500 multilibs.
34845
34846 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34847
34848 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
34849 MPC8540.
34850
34851 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34852
34853 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
34854 MULTILIB_EXCEPTIONS.
34855
34856 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34857
34858 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
34859 MULTILIB_EXCEPTIONS.
34860
34861 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
34862
34863 * config/arm/t-rtems-eabi: Rename to...
34864 * config/arm/t-rtems: ...this.
34865 * config/arm/rtems-eabi.h: Rename to...
34866 * config/arm/rtems.h: ...this.
34867 * config.gcc (arm*-*-rtems*): Reflect changes above.
34868
34869 2015-01-09 Richard Biener <rguenther@suse.de>
34870
34871 PR tree-optimization/64410
34872 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
34873 on the LHS.
34874 (execute_update_addresses_taken): Deal with that.
34875 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
34876 loads/stores for complex variables.
34877
34878 2015-01-09 Martin Liska <mliska@suse.cz>
34879
34880 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
34881 name comparison.
34882 (func_checker::compare_memory_operand): New function.
34883 (func_checker::compare_operand): Split case to newly
34884 added functions.
34885 (func_checker::compare_cst_or_decl): New function.
34886 (func_checker::compare_gimple_call): Identify
34887 memory operands.
34888 (func_checker::compare_gimple_assign): Likewise.
34889 * ipa-icf-gimple.h: New function.
34890
34891 2015-01-09 Martin Liska <mliska@suse.cz>
34892
34893 PR ipa/64503
34894 * sreal.c (sreal::dump): Change unsigned format to signed for
34895 m_exp value.
34896 (sreal::to_double): Replace exp2 with scalbln.
34897
34898 2015-01-09 Martin Liska <mliska@suse.cz>
34899
34900 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
34901 * ipa-icf.c (sem_function::equals_private): Add support for target and
34902 (sem_item_optimizer::merge_classes): Remove redundant function
34903 optimization flags comparison.
34904 * tree.h (target_opts_for_fn): New function.
34905
34906 2015-01-09 Tom de Vries <tom@codesourcery.com>
34907
34908 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
34909
34910 2015-01-09 Kito Cheng <kito@0xlab.org>
34911
34912 PR rtl-optimization/64348
34913 * lra-constraints.c (split_reg): Fix caller-save store/restore
34914 instruction generation.
34915
34916 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
34917
34918 PR gcov-profile/61790
34919 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
34920 long long. Fallback to int64_t if host doesn't have long long and
34921 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
34922
34923 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34924
34925 PR tree-optimization/63989
34926 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
34927 from 1000 to 10000.
34928 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
34929 (get_stridx): If we don't have a record for certain SSA_NAME,
34930 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
34931 constant offset, call get_stridx_plus_constant.
34932 (get_stridx_plus_constant): New function.
34933 (zero_length_string): Don't use get_stridx here.
34934
34935 PR target/55023
34936 PR middle-end/64388
34937 * dse.c (struct insn_info): Mention frame_read set also
34938 before reload for tail calls on some targets.
34939 (scan_insn): Revert 2014-12-22 change. Set frame_read
34940 also before reload for tail calls if
34941 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
34942 instead of add_non_frame_wild_read for non-const/memset
34943 tail calls after reload.
34944
34945 2015-01-08 Jason Merrill <jason@redhat.com>
34946
34947 * ubsan.c (do_ubsan_in_current_function): New.
34948 (pass_ubsan::gate): Use it.
34949 * ubsan.h: Declare it.
34950 * convert.c (convert_to_integer): Use it.
34951
34952 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34953
34954 PR target/64338
34955 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
34956 compare_code when it is unconditionally overwritten afterwards.
34957 Use ix86_reverse_condition instead of reverse_condition. Don't
34958 change code if *reverse_condition* returned UNKNOWN and don't
34959 swap ct/cf and negate diff in that case.
34960
34961 2015-01-08 Mike Stump <mikestump@comcast.net>
34962
34963 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
34964 (pass_tsan_O0::gate): Likewise.
34965 * extend.texi (Function Attributes): Add no_sanitize_thread
34966 documentation.
34967
34968 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
34969
34970 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
34971 for registering builtins.
34972 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
34973 add -fopenmp to the argv_obstack used when invoking
34974 compile_for_target.
34975
34976 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
34977 add "-m32" or "-m64" to argv_obstack.
34978 (generate_host_descr_file): Likewise, when invoking host_compiler.
34979 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
34980 ld.
34981
34982 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34983
34984 * config/sh/sh-mem.cc: Use constant as second operand when emitting
34985 tstsi_t insns.
34986
34987 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
34988
34989 PR target/55212
34990 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
34991 constant load if constant operand fits into I08.
34992
34993 2015-01-08 Jakub Jelinek <jakub@redhat.com>
34994
34995 PR sanitizer/64336
34996 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
34997 and TREE_THIS_VOLATILE for MEM_REFs.
34998 (build5_stat): Fix up initialization of TREE_READONLY and
34999 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35000
35001 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
35002
35003 PR target/64533
35004 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35005 of r for the second alternative of the destination operand.
35006
35007 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
35008
35009 PR target/36557
35010 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35011
35012 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35013
35014 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35015 keywords.
35016 ([-fivar-visibility], [-fvisibility]): Likewise.
35017
35018 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35019
35020 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35021 the file where @code, @command, etc is more appropriate.
35022
35023 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
35024
35025 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35026 of -mrecip= documentation.
35027
35028 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35029
35030 PR target/64505
35031 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35032 correct reload handler if -m32 -mpowerpc64 is used.
35033
35034 2015-01-06 Tom de Vries <tom@codesourcery.com>
35035
35036 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35037
35038 2015-01-08 Christian Bruel <christian.bruel@st.com>
35039
35040 PR target/64507
35041 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35042
35043 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35044
35045 PR tree-optimization/63259
35046 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35047 if optab exists for 16bit byteswap.
35048
35049 2015-01-06 Jakub Jelinek <jakub@redhat.com>
35050
35051 * opts.c (common_handle_option): Add support for
35052 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35053 * doc/invoke.texi: Document -fno-sanitize=all,
35054 -f{,no-}sanitize-recover=all. Document that
35055 -fsanitize=float-cast-overflow is not enabled
35056 by -fsanitize=undefined. Fix up documentation
35057 of -f{,no-}sanitize-recover.
35058
35059 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
35060
35061 * config.gcc: Add Visium support.
35062 * configure.ac: Likewise.
35063 * configure: Regenerate.
35064 * doc/extend.texi (interrupt attribute): Add Visium.
35065 * doc/invoke.texi: Document Visium options.
35066 * doc/install.texi: Document Visium target.
35067 * doc/md.texi: Document Visium constraints.
35068 * common/config/visium: New directory.
35069 * config/visium: Likewise.
35070
35071 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35072
35073 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35074 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35075
35076 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35077
35078 * combine.c (combine_validate_cost): Do not count the cost of a
35079 split I2 twice. Do not display it twice in the dump, either.
35080
35081 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35082
35083 Revert parts of r219199.
35084 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35085 <inttypes.h>.
35086 ([-Wtraditional]): Restore markup on <limits.h>.
35087
35088 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
35089
35090 PR c++/31397
35091 * doc/invoke.texi: Document -Wsuggest-override.
35092
35093 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
35094
35095 PR rtl-optimization/64287
35096 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35097 (process_options): Disable flag_ipa_ra if profiling.
35098
35099 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
35100
35101 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35102
35103 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
35104
35105 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35106 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35107 put under #if TARGET_LOOPS guard.
35108
35109 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
35110
35111 * config/i386/i386.c (output_387_binary_op): Use std::swap.
35112
35113 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
35114
35115 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35116 * rtl.h (refers_to_regno_p): Add overload.
35117 * cse.c: Use it.
35118 * bt-load.c: Likewise.
35119 * combine.c: Likewise.
35120 * df-scan.c: Likewise.
35121 * sched-deps.c: Likewise.
35122 * config/s390/s390.c: Likewise.
35123 * config/m32r/m32r.c: Likewise.
35124 * config/rs6000/spe.md: Likewise.
35125 * config/rs6000/rs6000.c: Likewise.
35126 * config/pa/pa.c: Likewise.
35127 * config/stormy16/stormy16.c: Likewise.
35128 * config/cris/cris.c: Likewise.
35129 * config/arc/arc.md: Likewise.
35130 * config/arc/arc.c: Likewise.
35131 * config/sh/sh.md: Likewise.
35132 * config/sh/sh.c: Likewise.
35133 * config/frv/frv.c: Likewise.
35134
35135 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35136
35137 PR sanitizer/64265
35138 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35139 call as cleanup of the whole body.
35140 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35141 * tsan.c (replace_func_exit): New function.
35142 (instrument_func_exit): Moved earlier.
35143 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35144 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35145 been found.
35146 (tsan_pass): Don't call instrument_func_exit.
35147 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35148 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35149 inlining.
35150
35151 PR sanitizer/64344
35152 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35153 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35154 it to libubsan handler instead of EXPR. Fold comparisons earlier,
35155 if the result is integer_zerop, return NULL_TREE.
35156 * convert.c (convert_to_integer): Pass expr as ARG.
35157
35158 PR tree-optimization/64465
35159 * tree-inline.c (redirect_all_calls): During inlining
35160 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35161 changed the stmt to a non-throwing call.
35162
35163 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35164
35165 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35166 etc markup throughout the file.
35167
35168 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35169
35170 Enable experimental TSAN support for Ada.
35171 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35172
35173 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35174
35175 PR tree-optimization/64494
35176 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35177 clear SSA_NAME_ANTI_RANGE_P flag.
35178
35179 2015-01-05 Marek Polacek <polacek@redhat.com>
35180
35181 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35182
35183 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35184
35185 Update copyright years.
35186
35187 * gcc.c (process_command): Update copyright notice dates.
35188 * gcov-dump.c: Ditto.
35189 * gcov.c: Ditto.
35190 * doc/cpp.texi: Bump @copying's copyright year.
35191 * doc/cppinternals.texi: Ditto.
35192 * doc/gcc.texi: Ditto.
35193 * doc/gccint.texi: Ditto.
35194 * doc/gcov.texi: Ditto.
35195 * doc/install.texi: Ditto.
35196 * doc/invoke.texi: Ditto.
35197
35198 * auto-profile.c, auto-profile.h: Fix up Copyright line.
35199
35200 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
35201
35202 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35203 verb tense, etc.
35204 ([-fvtable-verify], [-fvtv-debug]): Likewise.
35205 ([-Wabi]): Likewise.
35206 ([-fmessage-length]): Likewise.
35207 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35208 ([-Wno-discarded-qualifiers]): Likewise.
35209 ([-Wnodiscarded-array-qualifiers]): Likewise.
35210 ([-Wno-virtual-move-assign]): Likewise.
35211 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35212 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35213 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35214 ([-fsanitize-undefined-trap-on-error]): Likewise.
35215 ([-floop-interchange]): Likewise.
35216 ([-ftree-coalesce-inlined-vars]): Likewise.
35217 ([-fvect-cost-model]): Likewise.
35218 ([-flto]): Likewise.
35219 ([--param]): Likewise.
35220 (Spec Files): Likewise.
35221 ([-mstrict-align]): Likewise.
35222 ([-mfix-cortex-a53-835769]): Likewise.
35223 ([-march], [-mtune]): Likewise.
35224 ([-mpic-register]): Likewise.
35225 ([-munaligned-access]): Likewise.
35226 ([-msp8]): Likewise.
35227 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35228 (AVR Built-in Macros): Likewise.
35229 ([-mpreferred-stack-boundary]): Likewise.
35230 ([-mtune-crtl]): Likewise.
35231 ([-mashf]): Likewise.
35232 ([-mmcu=]): Likewise.
35233 ([-minrt]): Likewise.
35234 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35235 ([-mupper-regs]): Likewise.
35236 ([-matomic-model]): Likewise.
35237 ([-mdiv]): Likewise.
35238 ([-mzdcbranch]): Likewise.
35239 ([-mdisable-callt]): Likewise.
35240 ([-msoft-float]): Likewise.
35241 ([-m8byte-align]): Likewise.
35242 ([-fstack-reuse]): Likewise.
35243
35244 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35245
35246 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35247 Fix markup, light copy-editing.
35248 ([-fauto-profile]): Rewrite to fix formatting and content
35249 problems.
35250
35251 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35252
35253 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
35254 Copy-edit description.
35255 ([-fisolate-erroneous-paths-attribute]): Likewise.
35256 * common.opt (fisolate-erroneous-paths-dereference):
35257 Copy-edit description.
35258 (fisolate-erroneous-paths-attribute): Likewise.
35259
35260 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35261
35262 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
35263 tidy grammar.
35264
35265 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35266
35267 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
35268 ([-fvtv-debug]): Likewise.
35269 ([-Wc++-compat]): Likewise.
35270 ([-Wc++11-compat]): Likewise.
35271 ([-Wc++14-compat]): Likewise.
35272 ([-Wno-sized-deallocation]): Likewise.
35273 ([-femit-class-debug-always]): Likewise.
35274 ([-femit-struct-debug-detailed]): Likewise.
35275 ([-fno-keep-inline-dllexport]): Likewise.
35276 ([-fira-algorithm]): Likewise.
35277 ([-fira-region]): Likewise.
35278 ([-flra-remat]): Likewise.
35279 ([-fipa-ra]): Likewise.
35280 ([-fhoist-adjacent-loads]): Likewise.
35281 ([-fisolate-erroneous-paths-dereference]): Likewise.
35282 ([-fisolate-erroneous-paths-attribute]): Likewise.
35283 ([-ftree-switch-conversion]): Likewise.
35284 ([-ftree-tail-merge]): Likewise.
35285 ([-ftree-loop-if-convert]): Likewise.
35286 ([-ftree-loop-if-convert-stores]): Likewise.
35287 ([-ftree-loop-distribution]): Likewise.
35288 ([-ftree-loop-distribute-patterns]): Likewise.
35289 ([-flto-compression-level]): Likewise.
35290 ([-flto-report]): Likewise.
35291 ([-flto-report-wpa]): Likewise.
35292 ([-fuse-linker-plugin]): Likewise.
35293 ([-mfix-cortex-a53-835769]): Likewise.
35294 ([-mno-fix-cortex-a53-835769]): Likewise.
35295 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
35296 explicit listing; add a note to the discussion indicating they
35297 exist. Reorder table to group similar options. Add missing
35298 @opindex entries. Add @need commands throughout the table to
35299 allow it to be split across multiple pages.
35300 ([-m8bit-idiv]): Fix @opindex.
35301 ([-mavx256-split-unaligned-load]): Likewise.
35302 ([-mavx256-split-unaligned-store]): Likewise.
35303 ([-mstack-protector-guard]): Likewise.
35304 ([-mcpu=]): Likewise.
35305 ([-mcpu]): Likewise.
35306 ([-mpointer-size=]): Likewise.
35307
35308 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
35309
35310 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
35311 instead of `m' constraint. Likewise for unnamed movb comparison
35312 patterns using reg_before_reload_operand predicate.
35313 * config/pa/predicates.md (reg_before_reload_operand): Tighten
35314 predicate to reject register index and LO_SUM DLT memory forms
35315 after reload.
35316
35317 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35318
35319 * doc/invoke.texi (Option Summary): Fix spelling of
35320 -fdevirtualize-at-ltrans.
35321 ([-fdevirtualize]): Fix markup.
35322 ([-fdevirtualize-speculatively]): Fix typo.
35323 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
35324 implementor-speaky.
35325 * common.opt (fdevirtualize-at-ltrans): Likewise.
35326 * ipa-devirt.c: Fix typos in comments throughout the file.
35327 (ipa_devirt): Fix typos in format strings for dump output.
35328
35329 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
35330
35331 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
35332 discussion of defaults, light copy-editing.
35333
35334 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35335
35336 * tsan.c (instrument_expr): corrected previous checkin.
35337
35338 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
35339
35340 Instrument bit field and unaligned accesses for TSAN.
35341 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
35342 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
35343 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
35344 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
35345 unaligned memory regions.
35346
35347 2015-01-01 Anthony Green <green@moxielogic.com>
35348
35349 * config/moxie/predicates.md (moxie_general_movsrc_operand):
35350 Restrict move source register offsets to 16 bits.
35351 \f
35352 Copyright (C) 2015 Free Software Foundation, Inc.
35353
35354 Copying and distribution of this file, with or without modification,
35355 are permitted in any medium without royalty provided the copyright
35356 notice and this notice are preserved.