* config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-10-26  Doug Evans  <dje@google.com>
2
3         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4
5 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
6
7         * match.pd (fold_widened_comparison): Apply simplifications to all
8         integral types.
9
10 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
11
12         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
13         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
14         * doc/tm.texi: Regenerated.
15         * reorg.c (dbr_schedule): Use new hook.
16         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
17
18 2015-10-26  Jeff Law  <law@redhat.com>
19
20         PR tree-optimization/68013
21         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22         Make sure the first block in the path is in VISITED_BBs.
23
24 2015-10-26  Richard Biener  <rguenther@suse.de>
25         Dominik Vogt  <vogt@linux.vnet.ibm.com>
26
27         PR middle-end/67443
28         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
29         Properly prune ref->ref for accesses outside of ref.
30
31 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
32
33         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
34         new statements to be inserted if inplace.  Allow calls to have
35         nonempty sequences.
36
37 2015-10-26  Richard Biener  <rguenther@suse.de>
38
39         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
40         (do_valueize): New function.
41         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
42         replace_uses_by.
43         * tree-ssa-threadedge.c: Remove builtins.h include, include
44         gimple-fold.h
45         (fold_assignment_stmt): Remove.
46         (threadedge_valueize): New function.
47         (record_temporary_equivalences_from_stmts): Use
48         gimple_fold_stmt_to_constant_1, note additional cleanup
49         opportunities.
50
51 2015-10-26  Richard Biener  <rguenther@suse.de>
52
53         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
54         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
55
56 2015-10-26  Alan Hayward <alan.hayward@arm.com>
57
58         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
59         VEC_COND_EXPR types.
60
61 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
62
63         * auto-inc-dec.c (insert_move_insn_before): Delete.
64         (attempt_change): Remember to cost the simple move in the
65         FORM_PRE_ADD and FORM_POST_ADD cases.
66
67 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
68
69         PR target/68091
70         * config/sh/sh.c (sh_vector_mode_supported_p): Use
71         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
72
73 2015-10-26  Tom de Vries  <tom@codesourcery.com>
74
75         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
76         factored out of ...
77         (intra_create_variable_infos): ... here.
78
79 2015-10-26  Tom de Vries  <tom@codesourcery.com>
80
81         * tree-ssa-structalias.c (intra_create_variable_infos): Add
82         restrict_pointer_p and recursive_restrict_p variables.
83
84 2015-10-26  Tom de Vries  <tom@codesourcery.com>
85
86         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
87         get_vi_for_tree call.
88
89 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
90
91         PR middle-end/67989
92         * optabs.c (expand_atomic_compare_and_swap): Handle case when
93         ptarget_oval or ptarget_bool are const0_rtx.
94
95 2015-10-26  Christian Bruel  <christian.bruel@st.com>
96
97         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
98         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
99         * cp/method.c (implicitly_declare_fn): Likewise.
100         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
101         * java/class.c (add_method_1): Likewise.
102
103 2015-10-26  Richard Biener  <rguenther@suse.de>
104
105         * alloc-pool.h (base_pool_allocator): Use placement new.
106         (base_pool_allocator::remove): Likewise.  Compute size outside of
107         flag_checking.
108
109 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
110
111         * builtins.c (do_real_to_int_conversion): New function.
112         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
113         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
114         arguments here.
115         * match.pd: Add rules previously handled by fold_fixed_mathfn
116         and fold_builtin_int_roundingfn.
117
118 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
119
120         * match.pd: Use macros to define built-in operator lists.
121
122 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
123             Richard Biener  <rguenther@suse.de>
124
125         * genmatch.c (dt_simplify::gen): Skip captures that are
126         part of the result.
127         (parser::parse_expr): Allow captures in results too.
128         * builtins.c (fold_builtin_cexp): Delete.
129         (fold_builtin_1): Handle constant cexp arguments here.
130         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
131
132 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
133
134         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
135         conditional compilation.
136         (base_pool_allocator::remove): Use flag_checking.
137
138 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
139
140         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
141
142         PR middle-end/68079
143         * dojump.c (do_compare_and_jump): Canonicalize both function and
144         method types.
145
146 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
147
148         PR target/68084
149         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
150         for =@ccae.
151
152 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
153
154         PR ipa/pr67600
155         * ipa-polymorphic-call.c
156         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
157         instance offset with offset of outer type.
158
159 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
160
161         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
162
163 2015-10-23  Caroline Tice  <cmtice@google.com>
164
165         (from Richard Biener
166         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
167         call to iterative_hash_host_wide_int.
168
169 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
170
171         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
172         Define as yes.
173
174 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
175
176         * tree-vect-generic.c (expand_vector_operations_1): Check
177         optab exists before use it.
178
179 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
180
181         * tree-vect-generic.c (expand_vector_condition): Avoid
182         uninitialized variable warning.
183
184 2015-10-23  Jeff Law  <law@redhat.com>
185
186         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
187         here.  Instead...
188         (execute_todo): Call it here.
189         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
190         statistics
191         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
192
193 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
194             Szabolcs Nagy  <szabolcs.nagy@arm.com>
195
196         * config.gcc (enable_secureplt): Add *-linux*-musl*.
197
198 2015-10-23  Jeff Law  <law@redhat.com>
199
200         PR tree-optimization/67830
201         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
202         Explicitly verify the mask has no bits outside the type of
203         the innermost operands.
204
205 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
206             Szabolcs Nagy  <szabolcs.nagy@arm.com>
207
208         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
209         (MUSL_DYNAMIC_LINKER64): Define.
210         (GNU_USER_DYNAMIC_LINKER32): Update.
211         (GNU_USER_DYNAMIC_LINKER64): Update.
212         (CHOOSE_DYNAMIC_LINKER): Update.
213
214         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
215         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
216         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
217         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
218         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
219         (CHOOSE_DYNAMIC_LINKER): Update.
220         (INCLUDE_DEFAULTS): Redefine.
221
222         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
223
224 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
225
226         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
227         comparing addresses.
228
229 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
230
231         * fold-const.c (operand_equal_p): Handle matching of vector
232         constructors.
233
234 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
235
236         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
237
238 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
239             Andrew Pinski  <apinski@cavium.com>
240
241         PR rtl-optimization/67736
242         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
243         of gen_lowpart.
244
245 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
246
247         PR middle-end/68066
248         * tree.c (build_truth_vector_type): Support BLK mode
249         returned for boolean vector.
250
251 2015-10-23  Alan Hayward <alan.hayward@arm.com>
252
253         PR tree-optimization/65947
254         * tree-vect-loop.c
255         (vect_is_simple_reduction_1): Find condition reductions.
256         (vect_model_reduction_cost): Add condition reduction costs.
257         (get_initial_def_for_reduction): Add condition reduction initial var.
258         (vect_create_epilog_for_reduction): Add condition reduction epilog.
259         (vectorizable_reduction): Condition reduction support.
260         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
261         * doc/sourcebuild.texi (Vector-specific attributes): Document
262         vect_max_reduc
263
264 2015-10-23  Richard Biener  <rguenther@suse.de>
265
266         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
267         and builtins.def.
268
269 2015-10-23  Richard Biener  <rguenther@suse.de>
270             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
271
272         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
273         into (A ^ B) - B to match.pd
274         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
275
276         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
277         New simplifier.
278         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
279         New simplifier.
280         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
281         New simplifier.
282         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
283         New simplifier.
284         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
285         INTEGER_CST@1)): New simplifier.
286
287 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
288
289         * builtins.c (integer_valued_real_p): Move to fold-const.c.
290         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
291         (fold_builtin_ceil, fold_builtin_round): Delete.
292         (fold_builtin_1): Handle constant trunc, floor, ceil and round
293         arguments here.
294         * convert.c (convert_to_real): Remove narrowing of rounding
295         functions.
296         * fold-const.h (integer_valued_real_unary_p)
297         (integer_valued_real_binary_p, integer_valued_real_call_p)
298         (integer_valued_real_single_p, integer_valued_real_p): Declare.
299         * fold-const.c (tree_single_nonnegative_warnv_p): Move
300         name_registered_for_update_p check to SSA_NAME case statement.
301         Don't call tree_simple_nonnegative_warnv_p for SSA names.
302         (integer_valued_real_unary_p, integer_valued_real_binary_p)
303         (integer_valued_real_call_p, integer_valued_real_single_p)
304         (integer_valued_real_invalid_p): New functions.
305         (integer_valued_real_p): Move from fold-const.c and rework
306         to call the functions above.  Handle SSA names.
307         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
308         * gimple-fold.c (gimple_assign_integer_valued_real_p)
309         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
310         (gimple_stmt_integer_valued_real_p): New functions.
311         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
312         Fold f(x)->x for the same f if x is known to be integer-valued.
313         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
314         the result.  Canonicalize floor(x) as trunc(x) if x is
315         nonnegative.
316
317 2015-10-23  Tom de Vries  <tom@codesourcery.com>
318
319         * tree-ssa-structalias.c (intra_create_variable_infos): Use
320         make_constraint_from.
321
322 2015-10-23  Tom de Vries  <tom@codesourcery.com>
323
324         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
325         setting of is_full_var in case of a single field.
326
327 2015-10-22  Martin Sebor  <msebor@redhat.com>
328
329         PR driver/68043
330         * config/i386/i386.opt: Add missing periods to the ends of sentences.
331         * config/msp430/msp430.opt: Same.
332
333 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
334
335         * doc/extend.exp (Global Register Variables): Rewrite.
336
337 2015-10-22  Jeff Law  <law@redhat.com>
338
339         * genattrtab.c (main): If we do not have any annul-true or annul-false
340         slots, then write out a dummy eligible_for_annul_true or
341         eligible_for_annul_false as needed.
342
343 2015-10-22  Nick Clifton  <nickc@redhat.com>
344
345         * config/msp430/msp430.opt: Add -msilicon-errata and
346         -msilicon-errata-warn.
347         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
348         assembler.
349         * doc/invoke.texi: Document new options.
350
351 2015-10-22  Richard Biener  <rguenther@suse.de>
352
353         PR tree-optimization/58497
354         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
355         (expand_vector_operations_1): Use it.  Lower operations on
356         all uniform vectors to scalar operations if the HW supports it.
357
358 2015-10-22  Richard Biener  <rguenther@suse.de>
359
360         PR tree-optimization/19049
361         PR tree-optimization/65962
362         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
363         to strided accesses if single-element interleaving doesn't work.
364
365 2015-10-22  Richard Biener  <rguenther@suse.de>
366
367         PR middle-end/68046
368         PR middle-end/61893
369         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
370         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
371         (expand_unop): Likewise.
372
373 2015-10-22  Richard Biener  <rguenther@suse.de>
374
375         * fold-const.c (fold_addr_of_array_ref_difference): Properly
376         convert operands before folding a MINUS_EXPR.
377         (fold_binary_loc): Move simplification of MINUS_EXPR on
378         converted POINTER_PLUS_EXPRs ...
379         * match.pd: ... here.
380
381 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
382
383         * builtins.c (fold_builtin_tan): Delete.
384         (fold_builtin_1): Handle constant tan arguments here.
385         * match.pd: Simplify (tan (atan x)) to x.
386
387 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
388
389         * builtins.c (fold_builtin_cproj): Delete.
390         (fold_builtin_1): Handle constant arguments here.
391         (build_complex_cproj): Move and rename to...
392         * tree.c: (build_complex_inf): ...this.
393         * tree.h (build_complex_inf): Declare.
394         * match.pd: Fold cproj(x)->x if x has no infinity.
395         Use build_complex_inf for existing cproj rules.
396
397 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
398
399         PR target/68015
400         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
401         already have a comparison result.
402
403 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
404
405         PR target/63304
406         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
407         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
408         (aarch64_classify_address): Likewise.
409         (aarch64_secondary_reload): Likewise.
410         (aarch64_override_options_after_change_1): Adjust.
411         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
412         Use aarch64_nopcrelative_literal_loads.
413         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
414         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
415         Declare.
416
417 2015-10-21  Martin Sebor  <msebor@redhat.com>
418
419         PR driver/68043
420         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
421         (print_filtered_help): Reference aliased option's name and encourage
422         readers to use it in preference to the alias if the former is not
423         documented.  Mention when using an option is diagnosed.
424         * gcc.c (display_help): End each sentence with a period.
425
426         * common.opt: End each sentence that describes an option with
427         a period.
428         * config/aarch64/aarch64.opt: Same.
429         * config/alpha/alpha.opt: Same.
430         * config/arc/arc.opt: Same.
431         * config/arm/arm.opt: Same.
432         * config/avr/avr.opt: Same.
433         * config/bfin/bfin.opt: Same.
434         * config/c6x/c6x.opt: Same.
435         * config/cr16/cr16.opt: Same.
436         * config/cris/cris.opt: Same.
437         * config/cris/linux.opt: Same.
438         * config/darwin.opt: Same.
439         * config/epiphany/epiphany.opt: Same.
440         * config/fr30/fr30.opt: Same.
441         * config/frv/frv.opt: Same.
442         * config/ft32/ft32.opt: Same.
443         * config/g.opt: Same.
444         * config/h8300/h8300.opt: Same.
445         * config/i386/cygming.opt: Same.
446         * config/i386/djgpp.opt: Same.
447         * config/i386/i386.opt: Same.
448         * config/i386/interix.opt: Same.
449         * config/i386/mingw-w64.opt: Same.
450         * config/i386/mingw.opt: Same.
451         * config/ia64/ia64.opt: Same.
452         * config/ia64/ilp32.opt: Same.
453         * config/iq2000/iq2000.opt: Same.
454         * config/linux.opt: Same.
455         * config/lm32/lm32.opt: Same.
456         * config/lynx.opt: Same.
457         * config/m32c/m32c.opt: Same.
458         * config/m32r/m32r.opt: Same.
459         * config/m68k/ieee.opt: Same.
460         * config/m68k/m68k.opt: Same.
461         * config/mcore/mcore.opt: Same.
462         * config/mep/mep.opt: Same.
463         * config/microblaze/microblaze.opt: Same.
464         * config/mips/mips.opt: Same.
465         * config/mmix/mmix.opt: Same.
466         * config/mn10300/mn10300.opt: Same.
467         * config/moxie/moxie.opt: Same.
468         * config/msp430/msp430.opt: Same.
469         * config/nios2/elf.opt: Same.
470         * config/nios2/nios2.opt: Same.
471         * config/nvptx/nvptx.opt: Same.
472         * config/pa/pa-hpux.opt: Same.
473         * config/pa/pa-hpux1010.opt: Same.
474         * config/pa/pa-hpux1111.opt: Same.
475         * config/pa/pa-hpux1131.opt: Same.
476         * config/pa/pa.opt: Same.
477         * config/pa/pa64-hpux.opt: Same.
478         * config/pdp11/pdp11.opt: Same.
479         * config/rl78/rl78.opt: Same.
480         * config/rs6000/476.opt: Same.
481         * config/rs6000/aix64.opt: Same.
482         * config/rs6000/darwin.opt: Same.
483         * config/rs6000/linux64.opt: Same.
484         * config/rs6000/rs6000.opt: Same.
485         * config/rs6000/sysv4.opt: Same.
486         * config/s390/s390.opt: Same.
487         * config/s390/tpf.opt: Same.
488         * config/sh/sh.opt: Same.
489         * config/sol2.opt: Same.
490         * config/sparc/long-double-switch.opt: Same.
491         * config/sparc/sparc.opt: Same.
492         * config/spu/spu.opt: Same.
493         * config/stormy16/stormy16.opt: Same.
494         * config/tilegx/tilegx.opt: Same.
495         * config/tilepro/tilepro.opt: Same.
496         * config/v850/v850.opt: Same.
497         * config/vax/vax.opt: Same.
498         * config/visium/visium.opt: Same.
499         * config/vms/vms.opt: Same.
500         * config/vxworks.opt: Same.
501         * config/xtensa/xtensa.opt: Same.
502
503 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
504             Sebastian Pop  <s.pop@samsung.com>
505
506         * graphite-scop-detection.c (parameter_index_in_region): Update call to
507         invariant_in_sese_p_rec.
508         * graphite-sese-to-poly.c (extract_affine): Same.
509         * sese.c (invariant_in_sese_p_rec): Pass in an extra
510         parameter has_vdefs.
511         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
512         variable depends on virtual definitions in the current region.
513         * sese.h (invariant_in_sese_p_rec): Update declaration.
514
515 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
516             Sebastian Pop  <s.pop@samsung.com>
517
518         * graphite-scop-detection.c (build_scops): Do not handle scops
519         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
520         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
521
522 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
523
524         * config.in: Regenerate.
525         * configure: Regenerate.
526         * configure.ac (CHECKING_P): Define.
527         * system.h: Use CHECKING_P.
528
529 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
530
531         PR ipa/67056
532         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
533         is negative we don't know the type.
534         (check_stmt_for_type_change): Skip constructors of non-polymorphic
535         types as those won't help devirutalization.
536
537 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
538
539         * fold-const.c (operand_equal_p): Add code matching empty constructors.
540
541 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
542
543         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
544         comments.
545         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
546         Add comments on sign of the result.
547         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
548         Recurse on operand #1 instead of operand #0.
549         <CEIL_MOD_EXPR>: Do not recurse.
550         <ROUND_MOD_EXPR>: Likewise.
551
552 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
553
554         * cfgrtl.c (pass_free_cfg::execute): Adjust.
555         * final.c (dbr_sequence_length): Always define.
556         (shorten_branches): Adjust.
557         * genattr-common.c (main): Always define DELAY_SLOTS.
558         * genattr.c (main): Unconditionally declare functions and define
559         macros related to delay slots.
560         * genattrtab.c (write_eligible_delay): Adjust.
561         (main): Always write out delay slot functions.
562         * opts.c (default_options_table): Adjust.
563         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
564         (redirect_with_delay_list_safe_p): Likewise.
565         (fill_simple_delay_slots): Likewise.
566         (fill_slots_from_thread): Likewise.
567         (make_return_insns): Likewise.
568         (dbr_schedule): Likewise.
569         (rest_of_handle_delay_slots): Likewise.
570         (pass_delay_slots::gate): Likewise.
571         * toplev.c (process_options): Likewise.
572
573 2015-10-21  Richard Henderson  <rth@redhat.com>
574
575         * targhooks.c (default_addr_space_pointer_mode): Remove check
576         for generic address space.
577         (default_addr_space_address_mode): Likewise.
578         (default_addr_space_valid_pointer_mode): Likewise.
579         (default_addr_space_legitimate_address_p): Likewise.
580         (default_addr_space_legitimize_address): Likewise.
581         * target.def (addr_space.pointer_mode): Update documentation
582         of default behavior.
583         (addr_space.address_mode): Likewise.
584         * tm.texi: Update.
585
586         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
587         address spaces.
588
589 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
590
591         * builtins.c (fold_builtin_cabs): Delete.
592         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
593         * match.pd: Add rules previously handled by fold_builtin_cabs.
594
595 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
596
597         * fold-const.h (fold_strip_sign_ops): Delete.
598         * fold-const.c (fold_strip_sign_ops): Likewise.
599         (fold_unary_loc, fold_binary_loc): Remove calls to it.
600         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
601         (fold_builtin_ccos): Delete.
602         (fold_builtin_pow): Don't call fold_strip_sign_ops.
603         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
604         Remove fndecl argument.
605         (fold_builtin_1): Update calls accordingly.  Handle constant
606         cos, cosh, ccos and ccosh here.
607
608 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
609
610         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
611         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
612         * common.opt (fssa-backprop): New option.
613         * fold-const.h (negate_mathfn_p): Declare.
614         * fold-const.c (negate_mathfn_p): Make public.
615         * timevar.def (TV_TREE_BACKPROP): New.
616         * tree-pass.h (make_pass_backprop): Declare.
617         * passes.def (pass_backprop): Add.
618         * gimple-ssa-backprop.c: New file.
619
620 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
621             Sebastian Pop  <s.pop@samsung.com>
622
623         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
624         Do not call create_empty_if_region_on_edge when cond_expr is true.
625         (translate_isl_ast_node_for): Check whether a guard has been generated.
626
627 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
628
629         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
630         (operator=): Removed.
631         (dr_info): Make alias_set number the last argument with default
632         value of invalid_alias_set.
633         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
634         of dr_info.
635         (rewrite_reductions_out_of_ssa): Iterate only through the
636         basic blocks which are inside region.
637         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
638         * sese.h (struct sese_l): Removed assignment operator.
639         (split_region_for_bb): Removed dead code.
640
641 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
642
643         * graphite-poly.h (struct dr_info): Removed conversion constructor.
644         (struct scop): Renamed scop::region to scop::scop_info
645         (scop_set_region): Same.
646         (SCOP_REGION): Removed
647         (SCOP_CONTEXT): Removed.
648         (POLY_SCOP_P): Removed.
649         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
650         Rename scop->region to scop->scop_info.
651         (add_parameters_to_ivs_params): Same.
652         (graphite_regenerate_ast_isl): Same.
653         * graphite-poly.c (new_scop): Same.
654         (free_scop): Same.
655         (print_scop_params): Same.
656         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
657         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
658         (dot_all_scops_1): Rename scop->region to scop->scop_info.
659         (scop_detection::nb_pbbs_in_loops): Same.
660         (find_scop_parameters): Same.
661         (try_generate_gimple_bb): Same.
662         (gather_bbs::before_dom_children): Same.
663         (gather_bbs::after_dom_children): Same.
664         (build_scops): Same.
665         * graphite-sese-to-poly.c (build_scop_scattering): Same.
666         (extract_affine_chrec): Same.
667         (extract_affine): Same.
668         (set_scop_parameter_dim): Same.
669         (build_loop_iteration_domains): Same.
670         (create_pw_aff_from_tree): Same.
671         (add_param_constraints): Same.
672         (build_scop_iteration_domain): Same.
673         (build_scop_drs): Same.
674         (analyze_drs_in_stmts): Same.
675         (insert_out_of_ssa_copy_on_edge): Same.
676         (rewrite_close_phi_out_of_ssa):Same.
677         (rewrite_reductions_out_of_ssa):Same.
678         (handle_scalar_deps_crossing_scop_limits):Same.
679         (rewrite_cross_bb_scalar_deps):Same.
680         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
681         (build_poly_scop):Same.
682         (build_alias_set): Use pointer to dr_info.
683         * graphite.c (print_graphite_scop_statistics):
684         (graphite_transform_loops):
685         * sese.h (struct sese_l): Remove conversion constructor.
686
687 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
688
689         PR middle-end/67966
690         * tree.c (verify_type): Verify that TYPE_MODE match
691         between TYPE_CANONICAL and type.
692         * expr.c (store_expr_with_bounds): Revert my previous change.
693         * expmed.c (store_bit_field_1): Revert prevoius change.
694         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
695         to match for all types.
696
697 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
698
699         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
700         nesting.
701
702 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
703
704         * doc/tm.texi: Regenerated.
705         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
706         * stor-layout.c (layout_type): Use mode to get vector mask size.
707         * target.def (get_mask_mode): New.
708         * targhooks.c (default_get_mask_mode): New.
709         * targhooks.h (default_get_mask_mode): New.
710         * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
711         for boolean vector.
712         * tree.c (MAX_BOOL_CACHED_PREC): New.
713         (nonstandard_boolean_type_cache): New.
714         (build_nonstandard_boolean_type): New.
715         (make_vector_type): Vector mask has no canonical type.
716         (build_truth_vector_type): New.
717         (build_same_sized_truth_vector_type): New.
718         (truth_type_for): Support vector masks.
719         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
720         (build_truth_vector_type): New.
721         (build_same_sized_truth_vector_type): New.
722         (build_nonstandard_boolean_type): New.
723         * tree-cfg.c (verify_gimple_comparison) Require boolean
724         vector type for vector comparison.
725         (verify_gimple_assign_ternary): Likewise.
726         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
727         condition operand.
728         * tree-vect-stmts.c (vectorizable_condition): Use boolean
729         vector type for vector comparison.
730         * tree-vect-generic.c (elem_op_func): Add new operand to hold
731         vector type.
732         (do_unop): Adjust to modified function type.
733         (do_binop): Likewise.
734         (do_plus_minus): Likewise.
735         (do_negate); Likewise.
736         (expand_vector_piecewise): Likewise.
737         (do_cond): Likewise.
738         (do_compare): Use comparison instead of condition.
739         (expand_vector_divmod): Use boolean vector type for comparison.
740         (expand_vector_operations_1): Skip scalar mask operations.
741
742 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
743
744         * omp-low.c (simd_clone_create): Set in_other_partition
745         for created clones.
746
747 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
748
749         * doc/extend.exp (Local Register Variables): Rewrite.
750
751 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
752
753         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
754         and x*x in cases where the operands are sign ops.  Extend these
755         rules to handle copysign as a sign op (including for cos, cosh
756         and pow, which already treated negate and abs as sign ops).
757
758 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
759
760         PR target/68018
761         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
762         for 64-bit MS_ABI targets also when default incoming stack boundary
763         is overriden.
764
765 2015-10-21  Richard Biener  <rguenther@suse.de>
766
767         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
768         cond stmts, enhanced and split out from ...
769         (vn_phi_eq): ... here.
770
771 2015-10-21  Richard Biener  <rguenther@suse.de>
772
773         PR middle-end/68031
774         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
775         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
776         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
777         make sure they are not registered for update.
778
779 2015-10-21  Richard Biener  <rguenther@suse.de>
780
781         PR tree-optimization/68026
782         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
783         unsigned VARYING values.
784
785 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
786
787         * asan.c (asan_emit_stack_protection): Don't pass local stack to
788         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
789         NULL and use local stack than.
790         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
791         in addition to __asan_init.
792         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
793         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
794         * asan.h (asan_intercepted_p): Handle new string builtins.
795         * ubsan.c (ubsan_use_new_style_p): New function.
796         (ubsan_instrument_float_cast): If location is unknown, assign
797         input_location to loc. Propagate loc to ubsan_create_data if
798         ubsan_use_new_style_p returned true.
799
800 2015-10-21  Jeff Law  <law@redhat.com>
801
802         * Makefile.in (OBJS): Remove sched-vis.c
803         * sched-vis.c: Removed.  Code moved into...
804         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
805         * rtl.h: Remove prototypes for functions now living in print-rtl.c
806         * print-rtl.h Add prototypes for new functions in print-rtl.c.
807         * auto-inc-dec.c: Include print-rtl.h
808         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
809         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
810
811         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
812         ATTRIBUTE_UNUSED.
813
814 2015-10-21  Richard Biener  <rguenther@suse.de>
815             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
816
817         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
818         to match.pd.
819         Move (a * (1 << b)) is (a << b) to match.pd.
820         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
821         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
822         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
823
824         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
825         New simplifier.
826         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
827         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
828         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
829         : New simplifier.
830         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
831         New simplifier.
832         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
833
834 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
835             Szabolcs Nagy  <szabolcs.nagy@arm.com>
836             Alan Modra  <amodra@gmail.com>
837
838         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
839         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
840         (LINK_SPEC): Add %(link_secure_plt).
841         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
842         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
843
844 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
845             Szabolcs Nagy  <szabolcs.nagy@arm.com>
846
847         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
848         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
849
850 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
851
852         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
853         New function.
854         (fusion_load_store): Use it.
855         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
856         ldp and stp in VD modes.
857         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
858         (store_pair<mode>, VD): Likewise.
859
860 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
861
862         PR rtl-optimization/67609
863         * lra-splill.c (lra_final_code_change): Don't remove all
864         sub-registers.
865
866 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
867
868         * simplify-rtx.c (simplify_binary_operation): If either operand was
869         a constant pool reference use them if all other simplifications failed.
870
871 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
872
873         * config/aarch64/aarch64.md
874         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
875         * config/aarch64/aarch64-simd.md
876         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
877         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
878         (aarch64_fpconst_pow_of_2): New function.
879         (aarch64_vec_fpconst_pow_of_2): Likewise.
880         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
881         prototype.
882         (aarch64_vec_fpconst_pow_of_2): Likewise.
883         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
884         (aarch64_fp_vec_pow2): Likewise.
885
886 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
887
888         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
889         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
890         * config/alpha/alpha.c (alpha_function_arg_advance): Update
891         ALPHA_ARG_SIZE usage.
892         (alpha_arg_partial_bytes): Ditto.
893
894 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
895
896         PR target/66810
897         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
898         error_mark_node decls.
899
900 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
901
902         PR target/67963
903         PR target/67985
904         * common/config/i386/i386-common.c (ix86_handle_option): Remove
905         OPT_miamcu handling.
906         * config/i386/i386.c (PTA_NO_80387): New macro.
907         (processor_alias_table): Add PTA_NO_80387 to lakemont.
908         (ix86_option_override_internal): Update MASK_80387 from
909         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
910         SSE math only if 80387 is supported.  Don't change
911         MASK_FLOAT_RETURNS.
912         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
913         80387 is supported.
914         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
915         if TARGET_80387 is true and TARGET_IAMCU is false.
916         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
917         is true and TARGET_IAMCU_P is false.
918
919 2015-10-20  Richard Biener  <rguenther@suse.de>
920
921         PR tree-optimization/68017
922         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
923
924 2015-10-20  Martin Liska  <mliska@suse.cz>
925
926         * cgraphclones.c (cgraph_node::create_virtual_clone):
927         Verify cgraph_node.local.versionable instead of calling
928         tree_versionable_function_p.
929         * ipa-cp.c (determine_versionability): Save the information
930         to ipa_node_params summary.
931         (ipcp_versionable_function_p): Use it.
932         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
933         (ipcp_generate_summary): Do not compute cgraph_node
934         versionability.
935         * ipa-inline-analysis.c (inline_generate_summary): Compute
936         versionability for all cgraph nodes.
937         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
938         ipa_node_params::versionability.
939         * ipa-prop.h (struct ipa_node_params): Declare it.
940
941 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
942
943         PR other/67868
944         * varasm.c (assemble_variable): Move special vtv handling to..
945         (handle_vtv_comdat_sections): .. here. New function.
946         (output_object_block): Handle vtv sections.
947
948 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
949
950         PR target/66912
951         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
952
953 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
954
955         * doc/extend.texi: Update documentation WRT inline functions.
956
957 2015-10-20  Alan Modra  <amodra@gmail.com>
958
959         PR go/66870
960         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
961         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
962         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
963
964 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
965
966         PR rtl-optimization/66790
967         * df.h (DF_MIR): New macro.
968         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
969         (DF_MIR_INFO_BB): New macro.
970         (DF_MIR_IN, DF_MIR_OUT): New macros.
971         (struct df_mir_bb_info): New.
972         (df_mir): New macro.
973         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
974         declarations.
975         (df_mir_get_bb_info): New.
976         * df-problems.c (struct df_mir_problem_data): New.
977         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
978         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
979         df_mir_confluence_0, df_mir_confluence_n,
980         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
981         df_mir_bottom_dump, df_mir_verify_solution_start,
982         df_mir_verify_solution_end): New.
983         (problem_MIR): New.
984         (df_mir_add_problem, df_mir_simulate_one_insn): New.
985         * timevar.def (TV_DF_MIR): New.
986         * ree.c: Include bitmap.h
987         (add_removable_extension): Add an INIT_REGS parameter.  Use it
988         to skip zero-extensions that may get an uninitialized register.
989         (find_removable_extensions): Compute must-initialized registers
990         using the MIR dataflow problem. Update the call to
991         add_removable_extension.
992         (find_and_remove_re): Call df_mir_add_problem.
993
994 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
995
996         * common/config/mn10300/mn10300-common.c
997         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
998         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
999
1000 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
1001
1002         * doc/extend.texi (Explicit Register Variables): Simplify and
1003         avoid unnecessary and confusion abbreviations.  Update cross
1004         references.
1005         doc/implement-c.tex: Update cross reference.
1006
1007 2015-10-19  Jeff Law  <law@redhat.com>
1008
1009         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
1010         that create irreducible loops unless the path elimiantes a multiway
1011         branch.
1012
1013 2015-10-19  Richard Biener  <rguenther@suse.de>
1014
1015         PR tree-optimization/67975
1016         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
1017         * tree-cfg.c (extract_true_false_controlled_edges): Split out
1018         core worker from ...
1019         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
1020         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
1021         instead of block number for PHIs with two or one args.
1022         (vn_phi_eq): Compare edge predicates of PHIs that are in different
1023         blocks.
1024
1025 2015-10-19  Richard Biener  <rguenther@suse.de>
1026
1027         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
1028         (gimple_stmt_nonnegative_warnv_p): Use it.
1029         * match.pd (CPROJ): New operator list.
1030         (cproj (complex ...)): Move simplifications from ...
1031         * builtins.c (fold_builtin_cproj): ... here.
1032
1033 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1034
1035         * config/i386/i386.c (ix86_expand_vector_move): Use
1036         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
1037         alignment.
1038
1039 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1040
1041         * doc/invoke.texi: Replace @optindex with @opindex.
1042
1043 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1044
1045         PR target/67995
1046         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
1047         arch= is set,  clear all bits in x_ix86_isa_flags, except for
1048         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
1049
1050 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
1051
1052         PR middle-end/68002
1053         * common.opt (fkeep-static-functions): New option.
1054         * doc/invoke.texi: Document it.
1055         * cgraphunit.c (cgraph_node::finalize_function): Use it.
1056
1057 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1058
1059         * sched-int.h (struct autopref_multipass_data_): Remove offset
1060         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
1061         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
1062         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
1063         (autopref_rank_data): New function.
1064         (autopref_rank_for_schedule): Use it.
1065         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
1066
1067 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
1068
1069         PR other/65800
1070         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
1071
1072 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1073
1074         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1075         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
1076         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1077         (STANDARD_STARTFILE_PREFIX_1): New.
1078         (STANDARD_STARTFILE_PREFIX_2): New.
1079
1080 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1081
1082         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1083         (darwin_driver_init): Note a version-min when provided on the c/l.
1084         * config/darwin.h (%darwin_minversion): Remove.
1085         * config/i386/darwin.h: Likewise.
1086         * config/rs6000/darwin.h: Likewise.
1087         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1088         rather than an arbitrary constant.
1089
1090 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1091
1092         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1093         PPC, detect conflicts between -arch and multilib settings.  Detect
1094         and warn about conflicts between multiple -arch definitions.
1095
1096 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1097
1098         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1099
1100 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1101
1102         * lra-constraints.c (add_next_usage_insn): Change argument type
1103         from rtx to rtx_insn *.
1104
1105 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
1106
1107         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1108         for Lakemont.
1109
1110 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
1111
1112         * config/tilepro/gen-mul-tables.cc: Adjust include files.
1113         * config/tilegx/mul-tables.c: Regenerate.
1114         * config/tilepro/mul-tables.c: Regenerate.
1115
1116         * config/tilegx/tilegx-c.c: Adjust include files.
1117         * config/tilegx/tilegx.c: Likewise.
1118         * config/tilepro/tilepro-c.c: Likewise.
1119         * config/tilepro/tilepro.c: Likewise.
1120         * config/aarch64/aarch64-builtins.c: Likewise.
1121         * config/aarch64/aarch64.c: Likewise.
1122         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1123         * config/alpha/alpha.c: Likewise.
1124         * config/arc/arc.c: Likewise.
1125         * config/arm/aarch-common.c: Likewise.
1126         * config/arm/arm-builtins.c: Likewise.
1127         * config/arm/arm-c.c: Likewise.
1128         * config/arm/arm.c: Likewise.
1129         * config/avr/avr-c.c: Likewise.
1130         * config/avr/avr-devices.c: Likewise.
1131         * config/avr/avr-log.c: Likewise.
1132         * config/avr/avr.c: Likewise.
1133         * config/bfin/bfin.c: Likewise.
1134         * config/c6x/c6x.c: Likewise.
1135         * config/cr16/cr16.c: Likewise.
1136         * config/cris/cris.c: Likewise.
1137         * config/darwin-c.c: Likewise.
1138         * config/darwin-driver.c: Likewise.
1139         * config/darwin.c: Likewise.
1140         * config/default-c.c: Likewise.
1141         * config/epiphany/epiphany.c: Likewise.
1142         * config/epiphany/mode-switch-use.c: Likewise.
1143         * config/epiphany/resolve-sw-modes.c: Likewise.
1144         * config/fr30/fr30.c: Likewise.
1145         * config/frv/frv.c: Likewise.
1146         * config/ft32/ft32.c: Likewise.
1147         * config/glibc-c.c: Likewise.
1148         * config/h8300/h8300.c: Likewise.
1149         * config/i386/host-cygwin.c: Likewise.
1150         * config/i386/host-mingw32.c: Likewise.
1151         * config/i386/i386-c.c: Likewise.
1152         * config/i386/i386.c: Likewise.
1153         * config/i386/msformat-c.c: Likewise.
1154         * config/i386/winnt-cxx.c: Likewise.
1155         * config/i386/winnt-stubs.c: Likewise.
1156         * config/i386/winnt.c: Likewise.
1157         * config/ia64/ia64-c.c: Likewise.
1158         * config/ia64/ia64.c: Likewise.
1159         * config/iq2000/iq2000.c: Likewise.
1160         * config/lm32/lm32.c: Likewise.
1161         * config/m32c/m32c-pragma.c: Likewise.
1162         * config/m32c/m32c.c: Likewise.
1163         * config/m32r/m32r.c: Likewise.
1164         * config/mcore/mcore.c: Likewise.
1165         * config/mep/mep-pragma.c: Likewise.
1166         * config/mep/mep.c: Likewise.
1167         * config/microblaze/microblaze-c.c: Likewise.
1168         * config/microblaze/microblaze.c: Likewise.
1169         * config/mips/mips-tables.opt
1170         * config/mips/mips.c: Likewise.
1171         * config/mmix/mmix.c: Likewise.
1172         * config/mn10300/mn10300.c: Likewise.
1173         * config/moxie/moxie.c: Likewise.
1174         * config/msp430/msp430-c.c: Likewise.
1175         * config/msp430/msp430.c: Likewise.
1176         * config/nds32/nds32-cost.c: Likewise.
1177         * config/nds32/nds32-fp-as-gp.c: Likewise.
1178         * config/nds32/nds32-intrinsic.c: Likewise.
1179         * config/nds32/nds32-isr.c: Likewise.
1180         * config/nds32/nds32-md-auxiliary.c: Likewise.
1181         * config/nds32/nds32-memory-manipulation.c: Likewise.
1182         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1183         * config/nds32/nds32-predicates.c: Likewise.
1184         * config/nds32/nds32.c: Likewise.
1185         * config/nios2/nios2.c: Likewise.
1186         * config/nvptx/mkoffload.c: Likewise.
1187         * config/nvptx/nvptx.c: Likewise.
1188         * config/pa/pa.c: Likewise.
1189         * config/pdp11/pdp11.c: Likewise.
1190         * config/rl78/rl78-c.c: Likewise.
1191         * config/rl78/rl78.c: Likewise.
1192         * config/rs6000/host-darwin.c: Likewise.
1193         * config/rs6000/rs6000-c.c: Likewise.
1194         * config/rs6000/rs6000-linux.c: Likewise.
1195         * config/rs6000/rs6000.c: Likewise.
1196         * config/rx/rx.c: Likewise.
1197         * config/s390/s390-c.c: Likewise.
1198         * config/s390/s390.c: Likewise.
1199         * config/sh/sh-c.c: Likewise.
1200         * config/sh/sh-mem.cc: Likewise.
1201         * config/sh/sh.c: Likewise.
1202         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1203         * config/sh/sh_treg_combine.cc: Likewise.
1204         * config/sol2-c.c: Likewise.
1205         * config/sol2-cxx.c: Likewise.
1206         * config/sol2-stubs.c: Likewise.
1207         * config/sol2.c: Likewise.
1208         * config/sparc/sparc-c.c: Likewise.
1209         * config/sparc/sparc.c: Likewise.
1210         * config/spu/spu-c.c: Likewise.
1211         * config/spu/spu.c: Likewise.
1212         * config/stormy16/stormy16.c: Likewise.
1213         * config/v850/v850-c.c: Likewise.
1214         * config/v850/v850.c: Likewise.
1215         * config/vax/vax.c: Likewise.
1216         * config/visium/visium.c: Likewise.
1217         * config/vms/vms-c.c: Likewise.
1218         * config/vms/vms.c: Likewise.
1219         * config/vxworks.c: Likewise.
1220         * config/winnt-c.c: Likewise.
1221         * config/xtensa/xtensa.c: Likewise.
1222
1223 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1224
1225         PR target/67745
1226         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1227         (FUNCTION_BOUNDARY_P): New macro:
1228         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1229         New hook.
1230         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1231         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1232         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1233         * gcc/function.c (allocate_struct_function): Call
1234         relayout_function hook.
1235         * gcc/passes.c (rest_of_decl_compilation): Likewise.
1236
1237 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1238
1239         PR target/67745
1240         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1241         * config/arm/arm.c (arm_option_override_internal): Call
1242         arm_override_options_after_change_1.
1243         (arm_override_options_after_change): New function.
1244         (arm_override_options_after_change_1): Likewise.
1245         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1246
1247 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1248
1249         Revert:
1250         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1251         empty constructors.
1252
1253 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1254
1255         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1256         argument is an ADDR_EXPR.
1257
1258 2015-10-16  Richard Biener  <rguenther@suse.de>
1259
1260         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1261         and get rid of force_gimple_operand_gsi.
1262         (gimple_fold_builtin_memory_chk): Likewise.
1263         (gimple_fold_builtin_stxcpy_chk): Likewise.
1264         (rewrite_to_defined_overflow): Likewise.
1265         (gimple_convert_to_ptrofftype): New function.
1266         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1267
1268 2015-10-16  Richard Biener  <rguenther@suse.de>
1269
1270         * tree-nested.h (build_addr): Adjust prototype.
1271         * tree-nested.c (build_addr): Remove context argument and use
1272         mark_addressable.
1273         (get_static_chain): Adjust calls to build_addr.
1274         (convert_nl_goto_reference): Likewise.
1275         (convert_tramp_reference_op): Likewise.
1276         (finalize_nesting_tree_1): Likewise.
1277         * value-prof.c (gimple_ic): Likewise.
1278         * gimple-low.c (lower_builtin_setjmp): Likewise.
1279         * tree-parloops.c (take_address_of): Likewise.
1280         (create_call_for_reduction_1): Likewise.
1281         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1282         (gimple_gen_ic_func_profiler): Likewise.
1283
1284 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1285
1286         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1287         empty constructors.
1288
1289 2015-10-16  Michael Collison  <michael.collison@linaro.org>
1290             Andrew Pinski <andrew.pinski@caviumnetworks.com>
1291
1292         * match.pd ((x < y) && (x < z) -> x < min (y,z),
1293         (x > y) and (x > z) -> x > max (y,z))
1294
1295 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
1296             Szabolcs Nagy  <szabolcs.nagy@arm.com>
1297
1298         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1299         (DYNAMIC_LINKER): Renamed to ...
1300         (GLIBC_DYNAMIC_LINKER): This.
1301         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1302
1303 2015-10-15  Marek Polacek  <polacek@redhat.com>
1304
1305         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1306         gimple_call_builtin instead of is_gimple_call.
1307
1308 2015-10-15  Richard Biener  <rguenther@suse.de>
1309
1310         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1311
1312 2015-10-15  Richard Biener  <rguenther@suse.de>
1313
1314         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1315         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1316         * tree-vect-loop.c (get_initial_def_for_induction): Drop
1317         use of force_gimple_operand in favor of gimple_build.
1318         Use vect_get_new_ssa_name.
1319         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1320         (vectorizable_mask_load_store): Likewise.
1321         (vectorizable_call): Likewise.
1322         (vectorizable_store): Likewise.
1323         (vectorizable_load): Likewise.
1324         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
1325
1326 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
1327
1328         PR tree-optimization/67945
1329         * tree-pass.h (PROP_gimple_opt_math): New property flag.
1330         * generic-match-head.c (canonicalize_math_p): New function.
1331         * gimple-match-head.c: Include tree-pass.h.
1332         (canonicalize_math_p): New function.
1333         * match.pd: Group math built-in rules into simplifications
1334         and canonicalizations.  Guard the latter with canonicalize_math_p.
1335         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
1336         PROP_gimple_opt_math property.
1337
1338 2015-10-15  Marek Polacek  <polacek@redhat.com>
1339
1340         PR tree-optimization/67953
1341         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
1342
1343 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
1344
1345         * config.gcc: Recognize "." in architecture base name for AArch64.
1346
1347 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1348
1349         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1350         ROUND_UP macro.
1351         * config/mips/mips.c (mips_setup_incoming_varargs): Use
1352         ROUND_DOWN to calculate off.
1353         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1354         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1355         rounded_size.
1356
1357 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1358
1359         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1360
1361 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
1362             Torvald Riegel  <triegel@redhat.com>
1363
1364         PR target/67281
1365         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1366         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1367         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1368         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1369         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
1370         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1371         trechkpt, treclaim, tsr, ttest): New define_expands.
1372         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1373         __TM_FENCE__ for htm.
1374         * doc/extend.texi: Update documentation for htm builtins.
1375
1376 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1377
1378         PR target/67967
1379         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1380         REG_CFA_EXPRESSION to aligned SSE stores.
1381
1382 2015-10-14  Jeff Law  <law@redhat.com>
1383
1384         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1385         num_threaded_edges for successful FSM threads too.
1386
1387 2015-10-14  Richard Biener  <rguenther@suse.de>
1388
1389         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1390         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
1391         (vect_get_vec_def_for_operand): Remove unused parameter.
1392         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1393         (vect_create_epilog_for_reduction): Likewise.
1394         (vectorizable_reduction): Likewise.
1395         (vectorizable_live_operation): Likewise.
1396         * tree-vect-patterns.c (type_conversion_p): Likewise.
1397         (vect_recog_vector_vector_shift_pattern): Likewise.
1398         (check_bool_pattern): Likewise.
1399         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1400         (vect_analyze_slp_cost_1): Likewise.
1401         * tree-vect-stmts.c (process_use): Likewise.
1402         (vect_get_vec_def_for_operand): Do not handle reductions.
1403         (vect_get_vec_defs): Adjust.
1404         (vectorizable_mask_load_store): Likewise.
1405         (vectorizable_call): Likewise.
1406         (vectorizable_simd_clone_call): Likewise.
1407         (vect_get_loop_based_defs): Likewise.
1408         (vectorizable_conversion): Likewise.
1409         (vectorizable_assignment): Likewise.
1410         (vectorizable_shift): Likewise.
1411         (vectorizable_operation): Likewise.
1412         (vectorizable_store): Likewise.
1413         (vectorizable_load): Likewise.
1414         (vect_is_simple_cond): Likewise.
1415         (vectorizable_condition): Likewise.
1416         (vect_is_simple_use): Remove unused parameters.
1417         (vect_is_simple_use_1): Adjust and rename.
1418
1419 2015-10-14  Richard Biener  <rguenther@suse.de>
1420
1421         PR tree-optimization/67915
1422         * match.pd: Handle comparisons of addresses of STRING_CSTs.
1423         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1424         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1425         stmt folding in favor of GIMPLE one.
1426
1427 2015-10-14  Marek Polacek  <polacek@redhat.com>
1428
1429         PR tree-optimization/67815
1430         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1431         (reassociate_bb): Call it.
1432
1433 2015-10-14  Richard Biener  <rguenther@suse.de>
1434
1435         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1436         Reset info at start.
1437         (vect_analyze_group_access_1): Add debug print.
1438         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1439         (vect_compute_single_scalar_iteration_cost): ... to this.
1440         (vect_analyze_loop_2): Adjust.
1441         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1442         * tree-vectorizer.h: ... here.
1443         (add_stmt_info_to_vec): Remove.
1444         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1445
1446 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1447
1448         * targhooks.c (default_target_option_pragma_parse): Do not warn if
1449         called on behalf of "#pragma GCC pop_options".
1450
1451 2015-10-14  Tom de Vries  <tom@codesourcery.com>
1452
1453         * cfganal.c (verify_no_unreachable_blocks): New function.
1454         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1455         verify_no_unreachable_blocks.
1456         cfganal.h (verify_no_unreachable_blocks): Declare.
1457
1458 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
1459
1460         * common.opt: Add flag_checking.
1461         * system.h (CHECKING_P): Define.
1462
1463 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
1464             Aldy Hernandez  <aldyh@redhat.com>
1465             Ilya Verbin  <ilya.verbin@intel.com>
1466
1467         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1468         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1469         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1470         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1471         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1472         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1473         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1474         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1475         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1476         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1477         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1478         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1479         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1480         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1481         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1482         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1483         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1484         (struct cgraph_simd_clone_arg): Adjust comment.
1485         * coretypes.h (struct gomp_ordered): New forward decl.
1486         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1487         set critical clauses to it.
1488         (gimple_build_omp_ordered): Return gomp_ordered * instead of
1489         gimple *.  Add CLAUSES argument, set ordered clauses to it.
1490         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1491         GIMPLE_OMP_ORDERED.
1492         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1493         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1494         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
1495         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1496         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
1497         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1498         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
1499         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1500         renumber
1501         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1502         (gomp_critical): Add clauses field.
1503         (gomp_ordered): New struct.
1504         (is_a_helper <gomp_ordered *>::test): New inline.
1505         (gimple_build_omp_critical): Add CLAUSES argument.
1506         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
1507         instead of gimple *.
1508         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1509         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1510         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1511         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1512         inline functions.
1513         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1514         (dump_gimple_omp_target): Handle enter data and exit data.
1515         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1516         (dump_gimple_omp_critical): Print clauses.
1517         (dump_gimple_omp_ordered): New function.
1518         (dump_gimple_omp_task): Handle taskloop.
1519         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1520         GIMPLE_OMP_ORDERED.
1521         * gimple-walk.c (walk_gimple_op): Walk clauses on
1522         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1523         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1524         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1525         (struct gimplify_omp_ctx): Add loop_iter_var,
1526         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1527         and target_firstprivatize_array_bases fields.
1528         (delete_omp_context): Release loop_iter_var.
1529         (gimplify_bind_expr): Handle ORT_NONE.
1530         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1531         ORT_COMBINED_TARGET.
1532         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1533         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1534         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
1535         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
1536         ctx->target_map_scalars_firstprivate.
1537         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
1538         data sharing clauses.  For data sharing clause with VLA decl
1539         on omp target/target data don't add firstprivate for the pointer.
1540         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1541         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1542         the addition of ORT_COMBINED_TARGET.
1543         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
1544         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
1545         pointers as zero length array sections and
1546         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1547         data sharing.
1548         (omp_check_private): Handle omp_member_access_dummy_var vars.
1549         (find_decl_expr): New function.
1550         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
1551         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1552         Handle OMP_CLAUSE_GANG separately.  Handle
1553         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1554         clauses.  Diagnose linear clause on combined
1555         distribute {, parallel for} simd construct, unless it is the loop
1556         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1557         Handle map clauses with COMPONENT_REF.  Initialize
1558         ctx->target_map_scalars_firstprivate,
1559         ctx->target_firstprivatize_array_bases and
1560         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
1561         linear clause even to target region if combined.  Remove
1562         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1563         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
1564         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1565         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
1566         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1567         For linear clause on worksharing loop combined with parallel add
1568         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
1569         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
1570         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
1571         taskloop if needed.
1572         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1573         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1574         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1575         GOMP_MAP_POINTER.
1576         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
1577         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1578         in target body.  Handle removal of struct mapping if struct is not
1579         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
1580         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
1581         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
1582         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1583         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1584         clause appear together.  Handle
1585         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
1586         clause if it has map-type-modifier always.  Handle
1587         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1588         clauses.
1589         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1590         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1591         callers.
1592         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
1593         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
1594         iterators in doacross loops.
1595         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1596         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
1597         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
1598         for the addition of ORT_COMBINED_TARGET.
1599         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1600         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
1601         and OMP_TARGET_EXIT_DATA.
1602         (gimplify_omp_ordered): New function.
1603         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1604         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
1605         Gimplify clauses on OMP_CRITICAL.
1606         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1607         expand_GOMP_SIMD_ORDERED_END): New functions.
1608         * internal-fn.def (GOMP_SIMD_ORDERED_START,
1609         GOMP_SIMD_ORDERED_END): New internal functions.
1610         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1611         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1612         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1613         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1614         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1615         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1616         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1617         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1618         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1619         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1620         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1621         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1622         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1623         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1624         adjust type.
1625         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1626         GOMP_target_data_41, adjust type.
1627         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1628         GOMP_target_update_41, adjust type.
1629         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1630         field.
1631         (struct omp_for_data): Add ordered and simd_schedule fields.
1632         (omp_member_access_dummy_var, unshare_and_remap_1,
1633         unshare_and_remap, is_taskloop_ctx): New functions.
1634         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1635         (extract_omp_for_data): Handle taskloops and doacross loops
1636         and simd schedule modifier.
1637         (omp_adjust_chunk_size): New function.
1638         (get_ws_args_for): Use it.
1639         (lookup_sfield): Change first argument to splay_tree_key,
1640         add overload with first argument tree.
1641         (maybe_lookup_field): Likewise.
1642         (use_pointer_for_field): Handle omp_member_access_dummy_var.
1643         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1644         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1645         (build_outer_var_ref): Add LASTPRIVATE argument, handle
1646         taskloops and omp_member_access_dummy_var vars.
1647         (build_sender_ref): Change first argument to splay_tree_key,
1648         add overload with first argument tree.
1649         (install_var_field): For mask & 8 use &DECL_UID as key instead
1650         of the tree itself.
1651         (fixup_child_record_type): Const qualify *.omp_data_i.
1652         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1653         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1654         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1655         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1656         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1657         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1658         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1659         kinds.
1660         (add_taskreg_looptemp_clauses): New function.
1661         (scan_omp_parallel): Use it.
1662         (scan_omp_task): Likewise.
1663         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1664         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1665         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1666         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
1667         sandwiched taskloop constructs.  Type check
1668         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
1669         region.  Diagnose depend(source) or depend(sink:...) on
1670         target constructs or task/taskloop.
1671         (handle_simd_reference): Use get_name.
1672         (lower_rec_input_clauses): Likewise.  Ignore all
1673         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1674         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
1675         before passing it to omp_clause_{default,copy}_ctor.  Handle
1676         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
1677         lastprivate_firstprivate flag for linear that needs copyin and
1678         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1679         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1680         on taskloop lookup decl in outer context.  Pass true to
1681         build_outer_var_ref lastprivate argument.  Handle
1682         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1683         outside of outer taskloop for.
1684         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1685         OMP_CLAUSE_DECL.
1686         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1687         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
1688         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
1689         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
1690         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1691         abstract origin.  Handle omp_member_access_dummy_var vars.
1692         (expand_parallel_call): Use expand_omp_build_assign.
1693         (expand_task_call): Handle taskloop construct expansion.  Add
1694         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
1695         integers.  Add priority argument to GOMP_task* calls.  Or in
1696         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1697         GOMP_task call.
1698         (expand_omp_build_assign): Add prototype.  Add AFTER
1699         argument, if true emit statements after *GSI_P and continue linking.
1700         (expand_omp_taskreg): Adjust expand_task_call caller.
1701         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1702         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1703         zero_iter2_bb and first_zero_iter2 arguments, handle computation
1704         of counts even for ordered loops.
1705         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1706         (expand_omp_ordered_source, expand_omp_ordered_sink,
1707         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1708         functions.
1709         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
1710         clauses on worksharing loop.  Handle DOACROSS loop expansion.
1711         (expand_omp_for_static_nochunk): Handle linear clauses on
1712         worksharing loop.  Adjust expand_omp_for_init_counts
1713         callers.
1714         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
1715         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
1716         expand_omp_for_init_counts callers.
1717         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1718         functions.
1719         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1720         Handle doacross loops.
1721         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1722         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
1723         GOMP_target_{41,update_41,enter_exit_data} libcalls.
1724         (expand_omp): Don't expand ordered depend constructs here, record
1725         ord_stmt instead for later expand_omp_for_generic.
1726         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1727         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1728         clause as stand-alone directive.
1729         (lower_omp_ordered_clauses): New function.
1730         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1731         don't lower anything.
1732         (lower_omp_for_lastprivate): Use last _looptemp_ clause
1733         on taskloop for comparison.
1734         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
1735         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1736         expansion for linear adjustments.
1737         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1738         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1739         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
1740         to tree * pointing to the stmt's clauses.
1741         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1742         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1743         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1744         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1745         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1746         clauses.  Always use short kind and 8-bit align shift.
1747         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1748         (struct lower_omp_regimplify_operands_data): New type.
1749         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1750         New functions.
1751         (lower_omp_1): Use lower_omp_regimplify_operands instead of
1752         gimple_regimplify_operands.
1753         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1754         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1755         clause as stand-alone directive.
1756         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1757         (simd_clone_mangle): Mangle the various linear kinds
1758         per the new ABI.
1759         (simd_clone_adjust_argument_types): Handle
1760         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1761         (simd_clone_init_simd_arrays): Don't do anything for uval.
1762         (simd_clone_adjust): Handle
1763         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1764         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1765         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1766         * omp-low.h (omp_member_access_dummy_var): New prototype.
1767         * passes.def (pass_simduid_cleanup): Schedule another copy of the
1768         pass after all optimizations.
1769         * tree.c (omp_clause_code_name): Add entries for
1770         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1771         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1772         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
1773         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1774         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1775         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
1776         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1777         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1778         clauses.
1779         * tree-core.h (enum omp_clause_linear_kind): New.
1780         (struct tree_omp_clause): Change type of map_kind
1781         from unsigned char to unsigned int.  Add subcode.if_modifier
1782         and subcode.linear_kind fields.
1783         (enum omp_clause_code): Add
1784         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1785         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1786         (OMP_CLAUSE_REDUCTION): Document
1787         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1788         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1789         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1790         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
1791         operand.
1792         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
1793         operand.
1794         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1795         codes.
1796         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1797         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1798         char.
1799         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1800         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1801         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1802         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1803         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1804         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1805         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1806         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1807         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1808         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1809         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1810         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1811         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1812         * tree-inline.c (remap_gimple_stmt): Handle clauses on
1813         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
1814         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1815         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1816         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1817         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1818         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1819         (convert_local_omp_clauses): Likewise.
1820         * tree-pretty-print.c (dump_omp_clause): Handle
1821         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1822         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1823         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1824         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1825         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
1826         GOMP_MAP_FORCE_DEALLOC.  Handle
1827         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1828         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1829         and clauses on OMP_ORDERED and OMP_CRITICAL.
1830         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1831         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1832         (vectorize_loops): Adjust comments.
1833         (pass_simduid_cleanup::execute): Likewise.
1834         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1835         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1836         * wide-int.h (wi::gcd): New.
1837
1838 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1839
1840         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1841         (ix86_function_arg_advance): Ditto.
1842         (ix86_function_arg): Ditto.
1843         (ix86_gimplify_va_arg): Ditto.
1844         (ix86_class_max_nregs): Ditto.
1845         (inline_memory_move_cost): Ditto.
1846         (ix86_set_reg_reg_cost): Ditto.
1847         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1848
1849 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
1850
1851         PR middle-end/67912
1852         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1853
1854 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1855
1856         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1857         ROUND_UP macro and UNITS_PER_WORD * 2.
1858         * config/sparc/sparc.c (sparc_compute_frame_size):
1859         Use ROUND_UP and ROUND_DOWN macros where applicable.
1860         (function_arg_record_value, function_arg_record_value_1)
1861         (function_arg_record_value_1): Ditto.
1862         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1863         alignment to double-word.
1864         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1865         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1866         rounded_size.
1867
1868 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1869
1870         * gcc/rtl.h (print_insn): Fix prototype.
1871
1872 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1873
1874         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1875         -1.  Add assert that returned entry matches phi argument.
1876         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1877         free_stmt_vec_info_vec ...
1878         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
1879         with -1.
1880
1881 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1882
1883         PR tree-optimization/67909, 67947
1884         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1885         really skip the inner loop.
1886
1887 2015-10-13  Jeff Law  <law@redhat.com>
1888
1889         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1890         Allow single block jump threading paths.
1891
1892 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1893
1894         PR tree-optimization/67476
1895         * doc/invoke.texi (@item parloops-schedule): New item.
1896         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1897         * tree-parloops.c: Include params-enum.h.
1898         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1899
1900 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1901
1902         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1903         * params-enum.h: New file.
1904         * opts.c (handle_param): Handle case that param arg is a string.
1905         * params-list.h: Handle DEFPARAMENUM5 in params.def.
1906         * params.c (find_param): New function, factored out of ...
1907         (set_param_value): ... here.
1908         (param_string_value_p): New function.
1909         * params.h (struct param_info): Add value_names field.
1910         (find_param, param_string_value_p): Declare.
1911
1912 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1913
1914         PR tree-optimization/67476
1915         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1916
1917 2015-10-13  Richard Biener  <rguenther@suse.de>
1918
1919         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1920         the data dependence vector.
1921         (vect_peeling_hash_insert): Get the peeling hash table as argument.
1922         (vect_peeling_hash_get_lowest_cost): Likewise.
1923         (vect_enhance_data_refs_alignment): Adjust.
1924         (struct _vect_peel_info, struct _vect_peel_extended_info,
1925         struct peel_info_hasher): Move from ...
1926         * tree-vectorizer.h: ... here.
1927         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1928         (LOOP_VINFO_PEELING_HTAB): Likewise.
1929         (struct _loop_vec_info): Remove min_profitable_iters and
1930         peeling_htab members.
1931         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1932         here.
1933         (destroy_loop_vec_info): Adjust.
1934         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1935         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1936         to estimate alias versioning cost.
1937         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1938
1939 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
1940
1941         * real.h (real_isinteger): Declare.
1942         * real.c (real_isinteger): New function.
1943         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1944         if y is an even integer.
1945
1946 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1947
1948         revert:
1949         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1950         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1951         counts when these are more informative.
1952
1953 2015-10-12  Jeff Law  <law@redhat.com>
1954
1955         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1956         (fsm_find_control_stmt_paths): Change name of first argument to
1957         more accurately relfect what it really is.  Handle simplification
1958         of GIMPLE_COND after finding a thread path for NAME.
1959         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1960         nontrivial conditions to be handled by FSM threader.
1961         (thread_through_normal_block): Extract the name to looup via
1962         FSM threader from COND_EXPR.
1963
1964         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1965         restriction that traced SSA_NAME is a user variable.
1966
1967 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1968
1969         PR tree-optimization/67476
1970         * omp-low.c (expand_omp_for_generic): Add missing phis.
1971
1972 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1973
1974         PR tree-optimization/67476
1975         * omp-low.c (expand_omp_for_generic): Handle simple latch.
1976
1977 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
1978
1979         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1980         tables: add tbl3 and tbx4.
1981         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1982         (aarch64_tbx4v8qi): New.
1983         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1984         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1985         Rewrite using builtin functions.
1986         * config/aarch64/iterators.md (UNSPEC_TBX): New.
1987
1988 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1989
1990         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1991         ROUND_UP macro.
1992         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1993         Use ROUND_UP and ROUND_DOWN macros where applicable.
1994         (rs6000_darwin64_record_arg_flush): Ditto.
1995         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1996         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1997         rounded_size.
1998
1999 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
2000
2001         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
2002         (AARCH64_ROUND_DOWN): Ditto.
2003         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
2004
2005 2015-10-12  Richard Biener  <rguenther@suse.de>
2006
2007         PR ipa/67783
2008         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
2009         code that analyzes IVs on each stmt but in a cheaper way avoiding
2010         quadratic behavior.
2011
2012 2015-10-12  Nick Clifton  <nickc@redhat.com>
2013
2014         * config/msp430/msp430.c (msp430_mcu_names): Rename to
2015         msp430_mcu_data, add fields for ISA and hardware multiply
2016         support.  Import latest data from the devices.csv file.
2017         (msp430_override_option): Use the data from the new array.
2018         (msp430_use_f5_series_hwmult): Likewise.
2019         (use_32bit_hwmult): Likewise.
2020         (msp430_no_hwmult): Likewise.
2021         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
2022         MCU names.
2023         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
2024         not recognised then no hardware multiply support is assumed and
2025         that only the MSP430 ISA is allowed.
2026
2027 2015-10-12  Richard Biener  <rguenther@suse.de>
2028
2029         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
2030         related code ...
2031         (vect_analyze_loop_2): ... here.
2032
2033 2015-10-11  Jason Merrill  <jason@redhat.com>
2034
2035         PR c++/67557
2036         * expr.c (store_field): Call store_constructor directly when
2037         storing a CONSTRUCTOR into a target smaller than its type.
2038         Guard against unsafe bitwise copy.
2039
2040 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2041
2042         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2043         counts when these are more informative.
2044
2045 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2046
2047         * tree-profile.c (tree_profiling): Do not clear
2048         pure/const when not instrumenting.
2049         (pass tree_profile): Add dump of symtab.
2050
2051 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2052
2053         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
2054         addresses.
2055         (fold_addr_of_array_ref_difference): Likewise.
2056
2057 2015-10-11  Jeff Law  <law@redhat.com>
2058
2059         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
2060         tree-ssa-threadbackward.c.
2061         (fsm_find_control_statement_thread_paths): Likewise.
2062         (thread_through_normal_block): Break out FSM bits and move them
2063         into a new function in tree-ssa-threadbackward.c.  Call new function
2064         instead.
2065         Minimize header file usage.
2066         * tree-ssa-threadbackward.h: New file.
2067         * tree-ssa-threadbackward.c: Likewise.
2068         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
2069
2070 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
2071
2072         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2073
2074 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
2075
2076         PR rtl-optimization/67864
2077         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2078         fallthrough edges for conditional jumps.  Don't sort candidate
2079         edges if not optimizing for speed.
2080
2081 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2082
2083         * defaults.h (REVERSE_CONDITION): New default definition.
2084         * jump.c (reversed_comparison_code_parts): Adjust.
2085
2086 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2087
2088         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2089         check HARD_FRAME_POINTER_IS_ARG_POINTER.
2090
2091 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2092
2093         * defaults.h (FRAME_ADDR_RTX): New default definition.
2094         * builtins.c (expand_builtin_return_addr): Adjust.
2095
2096 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2097
2098         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2099         * builtins.c (expand_builtin_return_addr): Adjust.
2100
2101 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2102
2103         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2104         * builtins.c (expand_builtin_return_addr): Adjust.
2105         * doc/tm.texi: Likewise.
2106         * doc/tm.texi.in: Likewise.
2107         * except.c (expand_builtin_unwind_init): Likewise.
2108
2109 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2110
2111         * builtins.c (expand_builtin_return_addr): Adjust.
2112         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2113
2114 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
2115
2116         * tree.c (type_with_interoperable_signedness): New.
2117         (gimple_canonical_types_compatible_p): Use it.
2118         * tree.h (type_with_interoperable_signedness): Declare
2119
2120 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
2121
2122         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2123         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2124         when OEP_ADDRESS_OF is se.
2125
2126 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
2127             Sebastian Pop  <s.pop@samsung.com>
2128
2129         * graphite-dependences.c (scop_get_dependences): Add dump of the
2130         data dependence graph.
2131         * graphite-poly.c (print_isl_union_map): New.
2132         (debug_isl_union_map): New.
2133         * graphite-poly.h (print_isl_union_map): Declare.
2134         (debug_isl_union_map): Declare.
2135
2136 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
2137             Sebastian Pop  <s.pop@samsung.com>
2138
2139         * graphite-poly.c (print_iteration_domain): Remove verbosity.
2140         Remove OpenScop formatting.
2141         (print_iteration_domains): Same.
2142         (debug_iteration_domain): Same.
2143         (debug_iteration_domains): Same.
2144         (print_pdr): Same.
2145         (debug_pdr): Same.
2146         (dump_gbb_cases): Same.
2147         (dump_gbb_conditions): Same.
2148         (print_pdrs): Same.
2149         (debug_pdrs): Same.
2150         (print_pbb_body): Same.
2151         (print_pbb): Same.
2152         (print_scop_params): Same.
2153         (print_scop_context): Same.
2154         (print_scop): Same.
2155         (debug_pbb_domain): Same.
2156         (debug_pbb): Same.
2157         (debug_scop_context): Same.
2158         (debug_scop): Same.
2159         (debug_scop_params): Same.
2160         * graphite-poly.h: Same.
2161         * graphite.c (graphite_transform_loops): Same.
2162
2163 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2164
2165         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2166         call that isn't needed.
2167
2168 2015-10-09  Jeff Law  <law@redhat.com>
2169
2170         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2171         rather than moving each name to the freelist individually.
2172
2173 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
2174
2175         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2176         * frame-header-opt.c: New file.
2177         * config/mips/mips-proto.h (mips_register_frame_header_opt):
2178         Add prototype.
2179         * config/mips/mips.c (mips_compute_frame_info): Check
2180         optimize_call_stack flag.
2181         (mips_option_override): Register new frame_header_opt pass.
2182         (mips_frame_info, mips_int_mask, mips_shadow_set,
2183         machine_function): Move these types to...
2184         * config/mips/mips.h: here.
2185         (machine_function): Add does_not_use_frame_header and
2186         optimize_call_stack fields.
2187         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2188         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2189         Document new flags.
2190         * config/mips/mips.opt (mframe-header-opt): Add new option.
2191
2192 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
2193
2194         * config/i386/i386.c
2195         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2196         ROUND_DOWN where applicable.
2197
2198 2015-10-09  Jeff Law  <law@redhat.com>
2199
2200         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2201         correct statement.
2202
2203 2015-10-09  Renlin Li  <renlin.li@arm.com>
2204
2205         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2206         operands[0] and operands[2].
2207         (neon_vtrn<mode>_insn): Likewise.
2208         (neon_vzip<mode>_insn): Likewise.
2209
2210 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2211
2212         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2213         ((X & C2) << C1): Expand to...
2214         (X {&,^,|} C2 << C1): ...This.
2215         ((X & C2) >> C1): Expand to...
2216         (X {&,^,|} C2 >> C1): ...This.
2217
2218 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
2219
2220         PR target/67895
2221         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2222         Adjust embedded rounding/SAE specifier position.
2223         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2224         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2225         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2226         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2227         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2228         Likewise.
2229         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2230
2231 2015-10-09  Martin Jambor  <mjambor@suse.cz>
2232
2233         tree-optimization/67794
2234         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2235         between types of state,ents but accept original definitions as a
2236         parameter.
2237         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2238         iterate over definitions.
2239
2240 2015-10-09  James Norris  <jnorris@codesourcery.com>
2241
2242         * config/rs6000/rs6000.c (rs6000_offload_options): New.
2243         (TARGET_OFFLOAD_OPTIONS): New.
2244
2245 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
2246
2247         PR middle-end/67891
2248         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2249
2250         PR middle-end/67766
2251         * function.c (expand_function_end): Move return value
2252         promotion past the handling of PARALLELs and CONCATs.
2253
2254         PR rtl-optimization/67828
2255         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2256         (tree_may_unswitch_on): Don't unswitch on expressions
2257         involving undefined values.
2258
2259 2015-10-09  Richard Biener  <rguenther@suse.de>
2260
2261         * genmatch.c (print_operand): Fix formatting.
2262         (dt_node::append_simplify): Warn for multiple simplifiers
2263         that match the same pattern.
2264         * match.pd (log (exp @0)): Remove duplicates.
2265
2266 2015-10-09  Richard Biener  <rguenth@suse.de>
2267
2268         PR target/67366
2269         * gimple-fold.c (optabs-query.h): Include
2270         (gimple_fold_builtin_memory_op): Allow unaligned stores
2271         when movmisalign_optabs are available.
2272
2273 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2274
2275         PR target/67366
2276         * config/arm/arm.md (movmisalign<mode>): New.
2277         * config/arm/iterators.md (HSI): New.
2278
2279 2015-10-09  Richard Biener  <rguenther@suse.de>
2280
2281         PR tree-optimization/67891
2282         * gimple-match.h (gimple_simplified_result_is_gimple_val):
2283         New helper.
2284         (gimple_resimplify1): Declare.
2285         (gimple_resimplify2): Likewise.
2286         (gimple_resimplify3): Likewise.
2287         * gimple-match-head.c (gimple_resimplify1): Export.
2288         (gimple_resimplify2): Likewise.
2289         (gimple_resimplify3): Likewise.
2290         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2291         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2292         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2293         to avoid creating stmts without VN info.
2294
2295 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
2296
2297         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2298         of availability.
2299
2300 2015-10-08  Jeff Law  <law@redhat.com>
2301
2302         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2303         and release_ssa_name in two places.
2304         (gimple_stringop_fixed_value): Similarly.
2305
2306         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2307         release_defs.
2308
2309         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2310         unlink_stmt_vdef and release_ssa_name_fn.
2311
2312         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2313         release_defs.
2314
2315 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
2316
2317         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2318         SSE register save area to 16 bytes only if the incoming stack
2319         boundary is no less than 16 bytes.
2320
2321 2015-10-08  Jeff Law  <law@redhat.com>
2322
2323         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2324         release_ssa_name.  Fix typo in comment.
2325
2326 2015-10-08  Nathan Sidwell  <nathan@acm.org>
2327
2328         * config/nvptx/nvptx.h (struct machine_function): Add comment.
2329         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
2330         may return pointer as well as in memory.
2331         (nvptx_output_return): Likewise.
2332
2333 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2334
2335         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
2336         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
2337         * match.pd: Add rules previously handled by fold_builtin_sqrt
2338         and fold_builtin_cbrt.
2339
2340 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2341
2342         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
2343         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
2344         * fold-const.h (tree_unary_nonnegative_warnv_p)
2345         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2346         (tree_expr_nonnegative_warnv_p): Add depth parameters.
2347         * fold-const.c: Include gimple-fold.h and params.h.
2348         (tree_ssa_name_nonnegative_warnv_p): New function.
2349         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2350         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2351         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2352         Add a depth parameter and increment it for recursive calls to
2353         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
2354         to handle SSA names.
2355         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2356         (gimple_stmt_nonnegative_warnv_p): Declare.
2357         * tree-vrp.c (remove_range_assertions): Remove assert that condition
2358         cannot be proven false.
2359         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2360         (gimple_stmt_nonnegative_warnv_p): Move to...
2361         * gimple-fold.c: ...here.  Add depth parameters and pass them
2362         down to the tree routines.  Accept statements that aren't
2363         assignments or calls but just return false for them.
2364         (gimple_val_nonnegative_real_p): Delete.
2365         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2366         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2367         Check HONOR_NANs first.
2368
2369 2015-10-08  Martin Jambor  <mjambor@suse.cz>
2370
2371         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
2372         unnecessary MIN.
2373
2374 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2375
2376         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2377         in the tail of outer-loop.
2378
2379 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
2380
2381         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2382         return UI_NONE.
2383
2384 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2385
2386         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2387         "cfghooks.h", add prototypes for introduced new functions.
2388         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2389         checks on ability of loop unswitching to tree_unswitch_single_loop;
2390         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2391         on innermost loop check.
2392         (tree_unswitch_single_loop): Add all required checks on ability of
2393         loop unswitching under zero recursive level guard.
2394         (tree_unswitch_outer_loop): New function.
2395         (find_loop_guard): Likewise.
2396         (empty_bb_without_guard_p): Likewise.
2397         (used_outside_loop_p): Likewise.
2398         (get_vop_from_header): Likewise.
2399         (hoist_guard): Likewise.
2400         (check_exit_phi): Likewise.
2401
2402 2015-10-08  Marek Polacek  <polacek@redhat.com>
2403
2404         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2405         ops element.
2406
2407 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2408
2409         PR c/65345
2410         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2411         create_tmp_var_raw instead of create_tmp_var.
2412
2413 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
2414
2415         * expr.c (store_expr_with_bounds): Handle aggregate moves from
2416         BLKmode.
2417         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2418         to define gimple type system; compare aggregates only by size.
2419
2420 2015-10-07  Jeff Law  <law@redhat.com>
2421
2422         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2423         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2424         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
2425         unnecessarily.
2426
2427 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2428             Sebastian Pop  <s.pop@samsung.com>
2429
2430         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2431         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2432         (generate_isl_schedule): Same.
2433         * graphite-optimize-isl.c (scop_get_domains): Same.
2434         (apply_schedule_map_to_scop): Same.
2435         * graphite-poly.c (print_iteration_domains): Same.
2436         (remove_gbbs_in_scop): Same.
2437         (new_scop): Same.
2438         (free_scop): Same.
2439         (print_scop): Same.
2440         * graphite-poly.h (struct scop): Rename bbs to pbbs.
2441         (SCOP_BBS): Remove.
2442         * graphite-scop-detection.c (compare_bb_depths): Remove.
2443         (graphite_sort_dominated_info): Remove.
2444         (try_generate_gimple_bb): Move out of scop_detection.
2445         (all_non_dominated_preds_marked_p): Remove.
2446         (build_scop_bbs_1): Remove.
2447         (build_scop_bbs): Remove.
2448         (nb_pbbs_in_loops): Do not use SCOP_BBS.
2449         (find_scop_parameters): Same.
2450         (sese_dom_walker): Rename gather_bbs.
2451         (before_dom_children): Call try_generate_gimple_bb and collect gbb
2452         and pbb.
2453         (build_scops): Call gather_bbs.
2454         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2455         (add_conditions_to_constraints): Same.
2456         (build_scop_iteration_domain): Same.
2457         (build_scop_drs): Same.
2458         (new_pbb_from_pbb): Same.
2459         * sese.c (new_sese_info): Create bbs.
2460         * sese.h (struct sese_info_t): Add bbs.
2461
2462 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
2463
2464         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2465         encoding in 64-bit mode.
2466
2467 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
2468
2469         PR target/66697
2470         * config/i386/i386.c (ix86_option_override_internal): Always use
2471         8-byte minimum stack boundary in 64-bit mode.
2472         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2473         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2474         Add a REG_CFA_EXPRESSION note if needed.
2475         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2476         (ix86_handle_force_align_arg_pointer_attribute): New.
2477         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2478         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2479         with ix86_handle_force_align_arg_pointer_attribute.
2480         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2481
2482 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2483             Sebastian Pop  <s.pop@samsung.com>
2484
2485         * graphite-scop-detection.c (parameter_index_in_region): Remove
2486         use of SESE_ADD_PARAMS.
2487         (find_scop_parameters): Same.
2488         * sese.c (new_sese_info): Same.
2489         * sese.h (struct sese_info_t): Remove add_params.
2490         (SESE_ADD_PARAMS): Remove.
2491
2492 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2493             Sebastian Pop  <s.pop@samsung.com>
2494
2495         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2496         an sese_info_p.
2497         (copy_def): Same.
2498         (copy_internal_parameters): Same.
2499         (translate_isl_ast_to_gimple): Use an sese_l.
2500         (build_iv_mapping): Same.
2501         * graphite-poly.c (new_sese): Rename new_sese_info.
2502         (free_sese): Rename free_sese_info.
2503         * graphite-poly.h (struct scop): Use an sese_info_p.
2504         (scop_set_region): Same.
2505         * graphite-scop-detection.c (struct sese_l): Moved...
2506         (get_entry_bb): Moved...
2507         (get_exit_bb): Moved...
2508         (parameter_index_in_region_1): Use an sese_info_p.
2509         (parameter_index_in_region): Same.
2510         (scan_tree_for_params): Same.
2511         (find_params_in_bb): Same.
2512         (sese_dom_walker): Use an sese_l.
2513         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2514         (reduction_phi_p): Same.
2515         (parameter_index_in_region_1): Use an sese_info_p.
2516         (propagate_expr_outside_region): Use an sese_l.
2517         * graphite.c: Replace uses of SCOP_REGION.
2518         * sese.c (sese_record_loop): Use an sese_info_p.
2519         (build_sese_loop_nests): Same.
2520         (sese_build_liveouts_use): Same.
2521         (sese_build_liveouts_bb): Same.
2522         (sese_build_liveouts_bb): Same.
2523         (sese_bad_liveouts_use): Same.
2524         (sese_reset_debug_liveouts_bb): Same.
2525         (sese_build_liveouts): Same.
2526         (new_sese): Renamed new_sese_info.
2527         (free_sese): Renamed free_sese_info.
2528         (set_rename): Use an sese_info_p.
2529         (graphite_copy_stmts_from_block): Same.
2530         (copy_bb_and_scalar_dependences): Same.
2531         (outermost_loop_in_sese_1): Use an sese_l.
2532         (outermost_loop_in_sese): Same.
2533         (if_region_set_false_region): Use an sese_info_p.
2534         (move_sese_in_condition): Same.
2535         (scalar_evolution_in_region): Use an sese_l.
2536         * sese.h (struct sese_l): ... here.
2537         (SESE_ENTRY): Remove.
2538         (SESE_ENTRY_BB): Remove.
2539         (SESE_EXIT): Remove.
2540         (SESE_EXIT_BB): Remove.
2541         (sese_contains_loop): Use an sese_info_p.
2542         (sese_nb_params): Same.
2543         (bb_in_sese_p): Use an sese_l.
2544         (stmt_in_sese_p): Same.
2545         (defined_in_sese_p): Same.
2546         (loop_in_sese_p): Same.
2547         (sese_loop_depth): Same.
2548         (struct ifsese_s): Use an sese_info_p.
2549         (gbb_loop_at_index): Use an sese_l.
2550         (nb_common_loops): Same.
2551         (scev_analyzable_p): Same.
2552
2553 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2554
2555         * config/i386/i386.c (ix86_conditional_register_usage): Use
2556         CALL_USED_REGISTERS_MASK.
2557         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2558
2559 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2560
2561         PR bootstrap/67385
2562         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2563         * configure: Regenerated.
2564
2565 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2566
2567         PR target/67850
2568         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2569         (ix86_set_current_function): This.
2570         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2571
2572 2015-10-07  Richard Biener  <rguenther@suse.de>
2573
2574         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2575         (vinfo_for_stmt): Adjust.
2576         (set_vinfo_for_stmt): Likewise.
2577         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2578         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2579         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2580         of inner loop.
2581         (vect_analyze_loop_1): Remove.
2582         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2583         inner loop when vectorizing an outer loop by splitting out from ...
2584         (vect_analyze_loop_form): ... here.
2585
2586 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2587
2588         PR c/65345
2589         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2590         Use create_tmp_var_raw instead of create_tmp_var.
2591
2592 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
2593
2594         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2595         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2596         * real.c (CACHED_FRACTION): New helper macro.
2597         (dconst_third_ptr): Use it.
2598         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2599         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2600         dconst_sixth.
2601         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2602
2603 2015-10-06  Jeff Law  <law@redhat.com>
2604
2605         PR tree-optimization/67816
2606         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2607         from remove_jump_threads_starting_at.  Accept an edge rather than
2608         a basic block.
2609         * tree-ssa-threadupdate.c (removed_edges): New hash table.
2610         (remove_jump_threads_including): Note edges that get removed from
2611         the CFG for later pruning of jump threading paths including them.
2612         (thread_through_all_blocks): Remove paths which include edges that
2613         have been removed.
2614         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2615         on each outgoing edges when optimizing away a control statement.
2616
2617 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2618
2619         * reorg.c (emit_delay_sequence): Store list of delay slot insns
2620         in a vector instead of rtx_insn_list.
2621         (add_to_delay_list): Likewise.
2622         (delete_from_delay_slot): Likewise.
2623         (optimize_skip): Likewise.
2624         (redirect_with_delay_list_safe_p): Likewise.
2625         (check_annul_list_true_false): Likewise.
2626         (steal_delay_list_from_target): Likewise.
2627         (steal_delay_list_from_fallthrough): Likewise.
2628         (redundant_insn): Likewise.
2629         (fill_simple_delay_slots): Likewise.
2630         (fill_slots_from_thread): Likewise.
2631         (fill_eager_delay_slots): Likewise.
2632         (relax_delay_slots): Likewise.
2633
2634 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
2635
2636         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2637         For -mgpopt=local, also exclude unintialized common symbols.
2638         * doc/invoke.texi (Nios II Options): Document the change.
2639
2640 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2641
2642         * config/aarch64/iterators.md (vwcore): Add missing cases for
2643          V4HF/V8HF modes.
2644
2645 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2646             Sebastian Pop  <s.pop@samsung.com>
2647
2648         * graphite-poly.c (new_scop): Initialize drs.
2649         * graphite-poly.h (struct dr_info): New.
2650         (struct scop): Add drs.
2651         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2652         (pdr_add_memory_accesses): Same.
2653         (build_poly_dr): Same.
2654         (build_alias_set): Same.
2655         (build_scop_drs): Same.
2656         (build_pbb_drs): Remove.
2657         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2658         * tree-data-ref.h (data_reference): Remove alias_set.
2659
2660 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2661             Sebastian Pop  <s.pop@samsung.com>
2662
2663         * graphite-poly.c (free_data_refs_aux): Remove.
2664         (free_gimple_poly_bb): Do not call free_data_refs_aux.
2665         * graphite-poly.h (struct base_alias_pair): Remove.
2666         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2667         base_alias_pair and dr->aux.
2668         (build_alias_set): Same.
2669         * tree-data-ref.c (create_data_ref): Initialize alias_set.
2670         * tree-data-ref.h (data_reference): Add alias_set.
2671
2672 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2673             Sebastian Pop  <s.pop@samsung.com>
2674
2675         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2676         Do not set PDR_BASE_OBJECT_SET.
2677         * graphite-poly.h (poly_dr): Same.
2678         (PDR_BASE_OBJECT_SET): Remove.
2679         (new_poly_dr): Update decl.
2680         * graphite-sese-to-poly.c (build_poly_dr): Update call to
2681         new_poly_dr.
2682         (write_alias_graph_to_ascii_dimacs): Remove.
2683         (write_alias_graph_to_ascii_dot): Remove.
2684         (write_alias_graph_to_ascii_ecc): Remove.
2685         (dr_same_base_object_p): Remove.
2686         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
2687         code.
2688         (build_base_obj_set_for_drs): Remove.
2689         (dump_alias_graphs): Remove.
2690         (build_scop_drs): Remove dead code.
2691
2692 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2693             Peter Bergner  <bergner@vnet.ibm.com>
2694
2695         PR target/67808
2696         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2697         allow registers, but provide insns for the combiner to create for
2698         loads from memory. Separate VSX code from non-VSX code. For
2699         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2700         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2701         so that registers come before memory operations. Drop support from
2702         converting DFmode to TFmode, if the DFmode value is in a GPR
2703         register.
2704         (extenddftf2_fprs): Likewise.
2705         (extenddftf2_internal): Likewise.
2706         (extenddftf2_vsx): Likewise.
2707         (extendsftf2): In the expander, only allow registers, but provide
2708         insns for the combiner to create for stores and loads.
2709
2710 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2711
2712         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2713         from the decl parameter.
2714
2715 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
2716
2717         PR 67861
2718         * gimple-fold.c (gimple_fold_builtin): Add break after
2719         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2720
2721 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2722
2723         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2724         to scop->isl_context.
2725
2726 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2727
2728         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2729         (output_probe_stack_range): Rotate the loop and simplify.
2730         (thumb1_expand_prologue): Tweak sorry message.
2731         * config/arm/arm.md (probe_stack): Use bare string.
2732
2733 2015-10-06  Nick Clifton  <nickc@redhat.com>
2734
2735         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2736
2737 2015-10-06  Nick Clifton  <nickc@redhat.com>
2738
2739         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2740         (ATTR_PERSIST): New constant.
2741         (msp430_data_attr): New function - verifies an attribute that only
2742         applies to variables.
2743         (msp430_attributes): Add noinit and persistent attributes.
2744         (noinit_section): New variable.
2745         (presis_section): New variable.
2746         (TARGET_ASM_INIT_SECTIONS): Define.
2747         (msp430_init_sections): New function - initialises the noinit and
2748         persist section variables.
2749         (msp430_select_section): Add support for noinit and persist
2750         attributes.
2751         (msp430_section_type_flags): Likewise.
2752         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
2753         and persistent attributes.
2754
2755 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2756             Sebastian Pop  <s.pop@samsung.com>
2757
2758         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2759         (no_violations): Remove.
2760         (subtract_commutative_associative_deps): Remove.
2761         (compute_deps): Do not call subtract_commutative_associative_deps.
2762         (transform_is_safe): Remove.
2763         (graphite_legal_transform): Remove.
2764         * graphite-poly.h (graphite_legal_transform): Remove.
2765
2766 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
2767
2768         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2769         which are in this region are passed so gcc_assert and remove redundant
2770         computation.
2771         * sese.c (sese_build_liveouts): Pass only those bbs which are not
2772         in region.
2773         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2774         gcc_assert on that and remove unnecessary computation.
2775         (sese_build_liveouts_use): Same.
2776
2777 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2778
2779         * graphite-dependences.c (scop_get_reads): Renamed scop->context
2780         to scop->param_context.
2781         (scop_get_must_writes): Same.
2782         (scop_get_may_writes): Same.
2783         (scop_get_original_schedule): Same.
2784         (scop_get_transformed_schedule): Same.
2785         (subtract_commutative_associative_deps): Same.
2786         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2787         (generate_isl_context): Same.
2788         (generate_isl_schedule): Same.
2789         (scop_to_isl_ast): Same.
2790         (graphite_regenerate_ast_isl): Same.
2791         * graphite-optimize-isl.c (scop_get_domains): Same.
2792         (optimize_isl): Renamed scop->context to scop->param_context.
2793         * graphite-poly.c (new_poly_bb): Change the type of argument to
2794         gimple_poly_bb_p.
2795         (new_scop): Renamed scop->context to scop->param_context.
2796         (free_scop): Same.
2797         (print_scop_context): Same.
2798         * graphite-poly.h (new_poly_dr): Change the type of argument from
2799         void* to data_reference_p.
2800         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2801         (new_poly_bb): Change the type of argument from void* to
2802         gimple_poly_bb_p.
2803         (pbb_set_black_box): Same.
2804         (struct scop): Rename context to param_context, ctx to isl_context.
2805         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2806         Move declarations closer to assignment.
2807         (find_params_in_bb): Same.
2808         (find_scop_parameters): Same.
2809         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2810         Global to be used for statement IDs.
2811         (isl_id_for_pbb): Use ssa_name_version_typesize.
2812         (simple_copy_phi_p): Move declarations closer to assignment.
2813         (build_pbb_scattering_polyhedrons): Same.
2814         (build_scop_scattering): Same.
2815         (isl_id_for_ssa_name): Same.
2816         (extract_affine_name): Same.
2817         (extract_affine_int): Same.
2818         (extract_affine): Same.
2819         (set_scop_parameter_dim): Use renamed member.
2820         (build_loop_iteration_domains): Same.
2821         (add_param_constraints): Same.
2822         (build_scop_iteration_domain): Same.
2823         (pdr_add_data_dimensions): Same.
2824         (build_poly_dr): Same.
2825         (build_scop_drs): Move declarations closer to assignment.
2826         (analyze_drs_in_stmts): Same.
2827         (insert_out_of_ssa_copy): Same.
2828         (insert_out_of_ssa_copy_on_edge): Same.
2829         (propagate_expr_outside_region): Same.
2830         (rewrite_phi_out_of_ssa): Same.
2831         (rewrite_degenerate_phi): Same.
2832         (rewrite_reductions_out_of_ssa): Same.
2833         (rewrite_cross_bb_scalar_dependence): Same.
2834         (handle_scalar_deps_crossing_scop_limits): Same.
2835         (rewrite_cross_bb_scalar_deps): Same.
2836         * graphite.c (graphite_transform_loops): Use renamed member.
2837
2838 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
2839
2840         PR c/65345
2841         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2842         create_tmp_var_raw instead of create_tmp_var.
2843
2844 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2845
2846         PR c/65345
2847         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2848         Use create_tmp_var_raw instead of create_tmp_var.
2849
2850 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
2851
2852         PR target/67849
2853         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2854         split for upper-bank registers when target does not support
2855         AVX512VL.
2856         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2857         split when target does not support AVX512VL.
2858
2859 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
2860
2861         PR c/65345
2862         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2863         Adjust to use create_tmp_var_raw instead of create_tmp_var.
2864
2865 2015-10-06  Nick Clifton  <nickc@redhat.com>
2866
2867         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2868         multiplication.
2869
2870 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2871
2872         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2873         (case ${target}): Add znver1.
2874         * config/i386/cpuid.h(bit_CLZERO):  Define.
2875         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2876         -march=native recognize znver1 processors.
2877         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2878         znver1, clzero def_and_undef.
2879         * config/i386/i386.c (struct processor_costs znver1_cost): New.
2880         (m_znver1): New definition.
2881         (m_AMD_MULTIPLE): Includes m_znver1.
2882         (processor_target_table): Add znver1 entry.
2883         (ix86_target_string) : Add clzero entry.
2884         (static const char *const cpu_names): Add znver1 entry.
2885         (ix86_option_override_internal): Add znver1 instruction sets.
2886         (PTA_CLZERO) :  New definition.
2887         (ix86_option_override_internal): Handle new clzerooption.
2888         (ix86_issue_rate): Add znver1.
2889         (ix86_adjust_cost): Add znver1.
2890         (ia32_multipass_dfa_lookahead): Add znver1.
2891         (has_dispatch): Add znver1.
2892         * config/i386/i386.h (TARGET_znver1): New definition.
2893         (TARGET_CLZERO): Define.
2894         (TARGET_CLZERO_P): Define.
2895         (struct ix86_size_cost): Add TARGET_ZNVER1.
2896         (enum processor_type): Add PROCESSOR_znver1.
2897         * config/i386/i386.md (define_attr "cpu"): Add znver1.
2898         (set_attr znver1_decode): New definitions for znver1.
2899         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2900         (mclzero): New.
2901         * config/i386/mmx.md (set_attr znver1_decode): New definitions
2902         for znver1.
2903         * config/i386/sse.md (set_attr znver1_decode): Likewise.
2904         * config/i386/x86-tune.def:  Add znver1 tunings.
2905         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2906         * gcc/doc/invoke.texi: Add details about znver1
2907
2908 2015-10-06  Richard Biener  <rguenther@suse.de>
2909
2910         PR tree-optimization/67859
2911         * tree-ssa-pre.c (create_expression_by_pieces): Properly
2912         discard not inserted stmts.
2913
2914 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
2915
2916         * doc/extend.texi (Template Instantiation): Reorder options and
2917         de-emphasize -frepo.
2918         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2919         example instead of -frepo.
2920
2921 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2922
2923         PR c/65345
2924         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2925         use create_tmp_var_raw rather than create_tmp_var.
2926
2927 2015-10-06  Richard Biener  <rguenther@suse.de>
2928
2929         * tree-vectorizer.h (vec_info): New base class for...
2930         (_loop_vec_info): ... this and ...
2931         (_bb_vec_info): ... this.
2932         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2933         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2934         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2935         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2936         vect_destroy_datarefs): Adjust interface to take a vec_info *
2937         rather than both a loop_vec_info and a bb_vec_info argument.
2938         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2939         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2940         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2941         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2942         accordingly.
2943         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2944         (destroy_loop_vec_info, vect_analyze_loop_2,
2945         vect_is_simple_reduction_1, get_initial_def_for_induction,
2946         vect_create_epilog_for_reduction, vectorizable_reduction,
2947         vectorizable_live_operation, vect_transform_loop): Adjust.
2948         * tree-vect-patterns.c (type_conversion_p,
2949         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2950         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2951         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2952         check_bool_pattern, vect_recog_bool_pattern,
2953         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2954         * tree-vect-slp.c (vect_get_and_check_slp_defs,
2955         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2956         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2957         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2958         (new_bb_vec_info): Initialize base classs.
2959         * tree-vect-stmts.c (record_stmt_cost, process_use,
2960         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2961         vectorizable_mask_load_store, vectorizable_call,
2962         vectorizable_simd_clone_call, vectorizable_conversion,
2963         vectorizable_assignment, vectorizable_shift,
2964         vectorizable_operation, vectorizable_store,
2965         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2966         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2967         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2968
2969 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2970
2971         PR c/65345
2972         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2973         create_tmp_var_raw rather than create_tmp_var.
2974
2975 2015-10-05  Marek Polacek  <polacek@redhat.com>
2976
2977         * tree-ssa-loop-im.c
2978         (move_computations_dom_walker::before_dom_children): Don't set
2979         SSA_NAME_ANTI_RANGE_P.
2980         * tree-ssa-phiopt.c (value_replacement): Likewise.
2981
2982 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2983             Sebastian Pop  <s.pop@samsung.com>
2984
2985         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2986
2987 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2988             Sebastian Pop  <s.pop@samsung.com>
2989
2990         * graphite-poly.c (new_gimple_poly_bb): ... here.
2991         (free_data_refs_aux): ... here.
2992         (free_gimple_poly_bb): ... here.
2993         (remove_gbbs_in_scop): ... here.
2994         (new_scop): Call new_sese.
2995         (free_scop): Call remove_gbbs_in_scop and free_sese.
2996         * graphite-poly.h (base_alias_pair): ... here.
2997         (new_gimple_poly_bb): Declare.
2998         (free_gimple_poly_bb): Declare.
2999         * graphite-scop-detection.c (parameter_index_in_region_1):
3000         (parameter_index_in_region): ... here.
3001         (scan_tree_for_params): ... here.
3002         (find_params_in_bb): ... here.
3003         (find_scop_parameters): ... here.
3004         (build_scops): Call find_scop_parameters.
3005         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
3006         (free_scops): Move...
3007         (single_pred_cond_non_loop_exit): Move...
3008         (sese_dom_walker::before_dom_children): Move...
3009         (sese_dom_walker::after_dom_children): Move...
3010         (build_poly_scop): Move...
3011         * graphite-sese-to-poly.h (base_alias_pair): Move...
3012         * graphite.c (free_scops): ... here.
3013
3014 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
3015             Sebastian Pop  <s.pop@samsung.com>
3016
3017         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
3018         (trivially_empty_bb_p): Move...
3019         (same_close_phi_node): Move...
3020         (new_gimple_poly_bb): Move...
3021         (compare_bb_depths): Move...
3022         (graphite_sort_dominated_info): Move...
3023         (remove_duplicate_close_phi): Move...
3024         (make_close_phi_nodes_unique): Move...
3025         (canonicalize_loop_closed_ssa): Move...
3026         (canonicalize_loop_closed_ssa_form): Move...
3027         (loop_ivs_can_be_represented): Move...
3028         (single_pred_cond_non_loop_exit): Move...
3029         (graphite_can_represent_init): Move...
3030         (graphite_can_represent_scev): Move...
3031         (stmt_has_simple_data_refs_p): Move...
3032         (stmt_has_side_effects):  Move...
3033         (graphite_can_represent_stmt): Move...
3034         (scop_detection): ... here.
3035         (sese_dom_walker): ... and here.
3036         (build_scops): Call all moved functions.
3037         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
3038         (all_non_dominated_preds_marked_p): Move...
3039         (build_scop_bbs_1): Move...
3040         (build_scop_bbs): Move...
3041         (set_scop_parameter_dim): Move...
3042         (nb_pbbs_in_loops): Move...
3043         (build_poly_scop): Do not call all the moved functions.
3044
3045 2015-10-05  Martin Jambor  <mjambor@suse.cz>
3046             Jan Hubicka  <hubicka@ucw.cz>
3047
3048         * ipa-cp.c (ipcp_alignment_lattice): New type.
3049         (ipcp_param_lattices): Use the above to represent alignment.
3050         (ipcp_alignment_lattice::print): New function.
3051         (print_all_lattices): Use it to print alignment information.
3052         (ipcp_alignment_lattice::top_p): New function.
3053         (ipcp_alignment_lattice::bottom_p): Likewise.
3054         (ipcp_alignment_lattice::set_to_bottom): Likewise.
3055         (ipcp_alignment_lattice::meet_with_1): Likewise.
3056         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
3057         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
3058         (initialize_node_lattices): Likewise.
3059         (propagate_alignment_accross_jump_function): Work with the new class
3060         for alignment lattices.
3061         (propagate_constants_accross_call): Pass only the alignment lattice to
3062         propagate_alignment_accross_jump_function.
3063         (ipcp_store_alignment_results): Work with the new class for alignment
3064         lattices.
3065
3066 2015-10-05  Marek Polacek  <polacek@redhat.com>
3067
3068         PR tree-optimization/67821
3069         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
3070
3071 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
3072
3073         PR other/65021
3074         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3075         function to...
3076         (mkoffload_cleanup): ... this.  Adjust all users.
3077         (maybe_unlink): Look at save_temps and verbose flags instead of
3078         debug flag.
3079         (main): Parse "-save-temps" flag.
3080         (generate_target_descr_file, generate_target_offloadend_file)
3081         (generate_host_descr_file, prepare_target_image): Pass it on.
3082         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3083         (mkoffload_cleanup): New function.
3084         (maybe_unlink): Look at save_temps and verbose flags instead of
3085         debug flag.
3086         (main): Instead of calling utils_cleanup, register atexit handler
3087         for mkoffload_cleanup.
3088         (main): Parse "-save-temps" flag.
3089         (compile_native, main): Pass it on.
3090         * lto-wrapper.c (compile_offload_image): Likewise.
3091
3092 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3093
3094         * gimple.h (gimple_op_ptr): Require a non const gimple *.
3095         (gimple_assign_lhs_ptr): Likewise.
3096         (gimple_assign_rhs1_ptr): Likewise.
3097         (gimple_assign_rhs2_ptr): Likewise.
3098         (gimple_assign_rhs3_ptr): Likewise.
3099         (gimple_call_lhs_ptr): Likewise.
3100         (gimple_call_fn_ptr): Likewise.
3101         (gimple_call_chain_ptr): Likewise.
3102                 (gimple_call_arg_ptr): Likewise.
3103                 (gimple_cond_lhs_ptr): Likewise.
3104         (gimple_cond_rhs_ptr): Likewise.
3105         (gimple_switch_index_ptr): Likewise.
3106         (gimple_return_retval_ptr): Likewise.
3107
3108 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3109
3110         * gimple.h (gimple_asm_input_op_ptr): Remove.
3111         (gimple_asm_output_op_ptr): Likewise.
3112
3113 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3114
3115         * gimple.h (gimple_location_ptr): Remove.
3116         * tree-vrp.c (check_all_array_refs): Adjust.
3117
3118 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3119
3120         * tree-ssa-operands.c (build_uses): store tree * instead of
3121         tree.
3122         (finalize_ssa_uses): Adjust.
3123         (append_use): Likewise.
3124         (verify_ssa_operands): Likewise.
3125
3126 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3127
3128         * real.h (build_real_truncate): Declare.
3129         * tree.c (build_real_truncate): New function.
3130         (strip_float_extensions): Use it.
3131         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3132         (fold_builtin_hypot, fold_builtin_pow): Likewise.
3133         * match.pd: Likewise.
3134
3135 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3136            Jiong Wang  <jiong.wang@arm.com>
3137
3138         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3139
3140 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3141
3142         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3143         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3144         (aarch64_print_operand, aarch64_float_const_representable_p)
3145         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3146         instead of REAL_VALUE_FROM_CONST_DOUBLE.
3147         * config/arc/arc.c (arc_print_operand): Likewise.
3148         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3149         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3150         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3151         Likewise.
3152         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3153         (consttable_16): Likewise.
3154         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3155         * config/avr/avr.c (avr_print_operand): Likewise.
3156         * config/bfin/bfin.md: Likewise (in a define_split).
3157         * config/c6x/c6x.md: Likewise (in a define_split).
3158         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3159         (cr16_print_operand): Likewise.
3160         * config/cris/cris.c (cris_print_operand): Likewise.
3161         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3162         * config/fr30/fr30.c (fr30_print_operand): Likewise.
3163         (fr30_const_double_is_zero): Likewise.
3164         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3165         * config/frv/frv.md: Likewise (in a define_split).
3166         * config/frv/predicates.md (int_2word_operand): Likewise.
3167         * config/h8300/h8300.c (h8300_print_operand): Likewise.
3168         * config/i386/i386.c (standard_80387_constant_p): Likewise.
3169         (ix86_print_operand, ix86_split_to_parts): Likewise.
3170         * config/i386/i386.md: Likewise (in a define_split).
3171         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3172         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3173         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3174         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3175         (print_operand): Likewise.
3176         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3177         * config/mep/mep.md: Likewise (in define_split).
3178         * config/microblaze/microblaze.c (microblaze_const_double_ok)
3179         (print_operand): Likewise.
3180         * config/mips/mips.md (consttable_float): Likewise.
3181         * config/mmix/mmix.c (mmix_intval): Likewise.
3182         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3183         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3184         * config/pa/pa.c (pa_singlemove_string): Likewise.
3185         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3186         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3187         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3188         (output_toc): Likewise.
3189         * config/rs6000/rs6000.md: Likewise (in define_splits).
3190         * config/rx/rx.c (rx_print_operand): Likewise.
3191         * config/s390/s390.c (s390_output_pool_entry): Likewise.
3192         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3193         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3194         (and also in define_splits).
3195         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3196         (fp_high_losum_p): Likewise.
3197         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3198         (*movsf_high): Likewise.
3199         * config/spu/spu.c (const_double_to_hwint): Likewise.
3200         * config/v850/v850.c (const_double_split): Likewise.
3201         * config/vax/vax.c (vax_float_literal): Likewise.
3202         * config/visium/visium.c (visium_expand_copysign): Likewise.
3203         * config/visium/visium.md: Likewise (in define_split).
3204         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3205         * config/xtensa/xtensa.c (print_operand): Likewise.
3206         (xtensa_output_literal): Likewise.
3207         * cprop.c (implicit_set_cond_p): Likewise.
3208         * dwarf2out.c (insert_float): Likewise.
3209         * expmed.c (expand_mult, make_tree): Likewise.
3210         * expr.c (compress_float_constant): Likewise.
3211         * rtlanal.c (split_double): Likewise.
3212         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3213         (simplify_const_unary_operation, simplify_binary_operation_1)
3214         (simplify_const_binary_operation): Likewise.
3215         (simplify_const_relational_operation): Likewise.
3216         * varasm.c (output_constant_pool_2): Likewise.
3217
3218 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3219
3220         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3221         instead of CONST_DOUBLE_FROM_REAL_VALUE.
3222         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3223         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3224         instead of CONST_DOUBLE_FROM_REAL_VALUE.
3225         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3226         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3227         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3228         (ix86_emit_swsqrtsf): Likewise.
3229         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3230         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3231         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3232         * config/pa/pa.c (pa_expand_builtin): Likewise.
3233         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3234         (rs6000_scale_v2df): Likewise.
3235         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3236         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3237         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3238         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3239         (vec_ctul): Likewise.
3240         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3241         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3242         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3243         * cse.c (fold_rtx): Likewise.
3244         * emit-rtl.c (immed_double_const): Likewise (in comments).
3245         (init_emit_once): Likewise.
3246         * expr.c (compress_float_constant, expand_expr_real_1)
3247         (const_vector_from_tree): Likewise.
3248         * optabs.c (expand_float, expand_fix): Likewise.
3249         * reg-stack.c (reg_to_stack): Likewise.
3250         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3251         (simplify_const_unary_operation, simplify_binary_operation_1)
3252         (simplify_const_binary_operation, simplify_relational_operation)
3253         (simplify_immed_subreg): Likewise.
3254
3255 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3256
3257         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3258         * doc/tm.texi: Regenerate.
3259         * real.h (REAL_ARITHMETIC): Delete.
3260         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3261         (ix86_expand_round_sse4): Use real_arithmetic instead of
3262         REAL_ARITHMETIC.
3263         * config/i386/sse.md (round<mode>2): Likewise.
3264         * rtl.h (rtx_to_tree_code): Likewise (in comment).
3265         * explow.c (rtx_to_tree_code): Likewise (in comment).
3266         * match.pd: Likewise.
3267         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3268         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3269         (expand_pow_as_sqrts): Likewise.
3270         * tree-pretty-print.c (dump_generic_node): Remove code that
3271         was conditional on REAL_ARITHMETIC being undefined.
3272
3273 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3274
3275         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3276         * doc/tm.texi: Regenerate.
3277         * real.h (real_less): Declare.
3278         (REAL_VALUES_LESS): Delete.
3279         * real.c (real_less): New function.
3280         (real_compare): Use it.
3281         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3282         of REAL_VALUES_LESS.
3283         * config/microblaze/microblaze.c (microblaze_const_double_ok):
3284         Likewise.
3285         * fold-const.c (fold_convert_const_int_from_real): Likewise.
3286         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3287         (simplify_const_relational_operation): Likewise.
3288         * tree-call-cdce.c (check_pow): Likewise.
3289         (gen_conditions_for_pow_cst_base): Likewise.
3290
3291 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3292
3293         * real.h (REAL_VALUES_IDENTICAL): Delete.
3294         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3295         instead of REAL_VALUES_IDENTICAL.
3296         * fold-const.c (operand_equal_p): Likewise.
3297         * ipa-icf.c (sem_variable::equals): Likewise.
3298         * tree-complex.c (some_nonzerop): Likewise.
3299         (expand_complex_multiplication): Likewise.
3300         * tree.c (simple_cst_equal): Likewise.
3301         * varasm.c (compare_constant): Likewise.
3302
3303 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3304
3305         * real.h (real_equal): Declare.
3306         (REAL_VALUES_EQUAL): Delete.
3307         * real.c (real_equal): New function.
3308         (real_compare): Use it.
3309         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3310         * doc/tm.texi: Regenerate.
3311         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3312         real_equal instead of REAL_VALUES_EQUAL.
3313         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3314         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3315         (fp_const_from_val): Likewise.
3316         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3317         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3318         (floating_exact_log2): Likewise.
3319         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3320         * config/vax/vax.c (vax_float_literal): Likewise.
3321         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3322         * cprop.c (implicit_set_cond_p): Likewise.
3323         * expmed.c (expand_mult): Likewise.
3324         * fold-const.c (const_binop): Likewise.
3325         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3326         (simplify_const_binary_operation): Likewise.
3327         (simplify_const_relational_operation): Likewise.
3328         * tree-call-cdce.c (check_pow): Likewise.
3329         (gen_conditions_for_pow_cst_base): Likewise.
3330         * tree-inline.c (estimate_num_insns): Likewise.
3331         * tree-ssa-dom.c (record_equality): Likewise.
3332         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3333         (gimple_expand_builtin_pow): Likewise.
3334         (pass_optimize_widening_mul::execute): Likewise.
3335         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3336         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3337         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
3338
3339 2015-10-05  Richard Biener  <rguenther@suse.de>
3340
3341         PR ipa/67783
3342         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
3343         consider loop header PHI defs as IVs.
3344
3345 2015-10-05  Richard Biener  <rguenther@suse.de>
3346
3347         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3348         call handling ...
3349         (create_expression_by_pieces): ... here and build GIMPLE
3350         calls directly.  Use gimple_build API and avoid force_gimple_operand.
3351         (insert_into_preds_of_block): Simplify.
3352         (do_regular_insertion): Add comment.
3353
3354 2015-10-04  Jason Merrill  <jason@redhat.com>
3355
3356         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3357
3358 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
3359
3360         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3361         check for general register.
3362         (ix86_emit_save_regs): Ditto.
3363         (ix86_emit_save_regs_using_mov): Ditto.
3364         (ix86_emit_restore_regs_using_pop): Ditto.
3365         (ix86_emit_restore_regs_using_mov): Ditto.
3366
3367 2015-10-03  Marek Polacek  <polacek@redhat.com>
3368
3369         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3370         (insn-dfatab.o): Likewise.
3371
3372 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
3373
3374         * config.gcc (xtensa*-*-uclinux*): New configuration.
3375         * config/xtensa/uclinux.h: New file.
3376         * config/xtensa/uclinux.opt: New file.
3377
3378 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
3379
3380         * doc/cpp.texi (Standard Predefined Macros): Document value of
3381         __cplusplus for C++14.
3382
3383 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
3384
3385         * gcc.c (process_command): Use spec_machine rather than
3386         spec_host_machine to build tooldir_prefix2.
3387
3388 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3389             Bernd Schmidt  <bernds@codesourcery.com>
3390
3391         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3392         (Token, Stmt): Remove structs.
3393         (decls, vars, fns): Remove variables.
3394         (alloc_comment, append_stmt, is_keyword): Remove macros.
3395         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3396         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3397         (parse_init, parse_file): Remove functions.
3398         (read_file): Accept a pointer to a length and store into it.
3399         (process): Don't try to parse the input file, just write it out as
3400         a string, but looking for maps.  Also write out the length.
3401         (main): Don't use "-S" to compile PTX code.
3402
3403 2015-10-02  Jeff Law  <law@redhat.com>
3404
3405         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3406         fixups.
3407
3408 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3409
3410         PR target/67822
3411         * config/nvptx/mkoffload.c (main): Scan the argument vector for
3412         -fopenmp, and skip generating an offloading image if specified.
3413
3414 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
3415
3416         * system.h (ROUND_UP): New macro definition.
3417         (ROUND_DOWN): Ditto.
3418         * ggc-page.c (ROUND_UP): Remove local macro definition.
3419         (PAGE_ALIGN): Implement using ROUND_UP macro.
3420
3421         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3422         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3423         to align values.
3424         (ix86_compute_frame_layout): Ditto.
3425         (ix86_expand_prologue): Ditto.
3426         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3427         to round down values.
3428         (expand_set_or_movmem_via_rep): Ditto.
3429
3430 2015-10-02  Marek Polacek  <polacek@redhat.com>
3431
3432         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3433
3434 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
3435
3436         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3437         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3438         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3439         (free_gimple_bb): Renamed free_gimple_poly_bb.
3440         (try_generate_gimple_bb): Hoist loop invariant code.
3441         (analyze_drs_in_stmts): Same.
3442         (build_scop_drs): Call renamed functions.
3443         (new_pbb_from_pbb): Same.
3444         (scop_ivs_can_be_represented): Delete as functionality now moved to
3445         graphite-scop-detection.c
3446         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3447
3448 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
3449
3450         * graphite-scop-detection.c (stmt_has_side_effects): New function
3451           outlined from stmt_simple_for_scop_p.
3452         (graphite_can_represent_stmt): Same.
3453         (stmt_simple_for_scop_p): Moved code out of this function for better
3454         readability.
3455
3456 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3457
3458         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3459         F_AVX512IFMA.
3460         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3461
3462 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3463
3464         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3465
3466 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
3467
3468         PR rtl-optimization/67756
3469         * lra-constraints.c (match_reload): Add a new parameter.  Use it
3470         for creating a pseudo with the same value.
3471         (curr_insn_transform): Pass a new argument to match_reload.
3472
3473 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3474
3475         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3476         (expand_vec_perm_even_odd_1): Handle V64QImode.
3477         (ix86_expand_vec_perm_const_1): Try expansion with
3478         expand_vec_perm_even_odd_trunc as well.
3479         * config/i386/sse.md (VI124_AVX512F): Rename to ...
3480         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3481         to V54QI.
3482         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3483         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3484         to V32HI and V16SI.
3485         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3486         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3487         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3488         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3489         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3490         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3491
3492 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3493
3494         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3495         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3496
3497 2015-10-02  Jason Merrill  <jason@redhat.com>
3498
3499         PR c/59218
3500         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3501         (diagnose_tm_1_op): Also diagnose volatile accesses in
3502         transaction_safe function.
3503
3504 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
3505
3506         * system.h (malloc.h): Don't include obsolete header.
3507
3508 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3509
3510         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3511         (TLS_SECTION_ASM_FLAG): Delete.
3512
3513 2015-10-02  Marek Polacek  <polacek@redhat.com>
3514
3515         PR c/64249
3516         * doc/invoke.texi: Document -Wduplicated-cond.
3517         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3518         (insn-dfatab.o): Likewise.
3519         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3520         warning.
3521
3522 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
3523
3524         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3525         sequences.
3526
3527 2015-10-02  Renlin Li  <renlin.li@arm.com>
3528
3529         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3530
3531 2015-10-02  Renlin Li  <renlin.li@arm.com>
3532
3533         PR target/66776
3534         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3535
3536 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3537
3538         PR rtl-optimization/67786
3539         PR rtl-optimization/67787
3540         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3541         it modifies a reg used in the condition calculation.
3542
3543 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
3544
3545         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3546         alternatives for reads from memory and moves from general-purpose
3547         registers.
3548         (*aarch64_combinez_be<mode>): Likewise.
3549
3550 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
3551
3552         PR target/51726
3553         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3554         selectany within this function without need to keep attribute.
3555         (i386_pe_encode_section_info): Remove selectany-code.
3556
3557 2015-10-02  Richard Biener  <rguenther@suse.de>
3558
3559         * tree-ssa-sccvn.c (has_VN_INFO): New function.
3560         (free_scc_vn): Use it.
3561         (visit_use): Remove dead code and refactor to use gassign
3562         and use less indentation.
3563
3564 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3565
3566         PR target/67788
3567         PR target/67789
3568         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3569         (rs6000_cannot_copy_insn_p): New function.
3570         * config/rs6000/rs6000.md (cannot_copy): New attribute.
3571         (load_toc_v4_PIC_1_normal): Set cannot_copy.
3572         (load_toc_v4_PIC_1_476): Ditto.
3573
3574 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3575
3576         * graphite-scop-detection.c (struct sese_l): New conversion constructor
3577         so that this type can be pushed into a vec.
3578         (class scop_builder): use sese_l to collect scops.
3579         (get_scops): New getter function.
3580         (remove_intersecting_scops): Use sese_l instead of scops_p.
3581         (intersects): Same.
3582         (add_scop): Same.
3583         (subsumes): Same.
3584         (remove_subscops): Same.
3585         (build_scops): Add scops to vec<scops_p> once all the scops have been
3586         detected.
3587
3588 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3589
3590         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3591         Renamed type from gimple_bb_p to gimple_poly_bb_p.
3592         (translate_isl_ast_node_user): Same.
3593         * graphite-poly.c (new_poly_bb): Same.
3594         * graphite-poly.h (gbb_from_bb): Same.
3595         * sese.h: Same.
3596         * graphite-sese-to-poly.c (new_gimple_bb):
3597         gimple_bb_p -> gimple_poly_bb_p
3598         (build_scop_scattering): Same.
3599         (find_params_in_bb): Same.
3600         (add_conditions_to_domain): Same.
3601         (sese_dom_walker::before_dom_children): Same.
3602         (analyze_drs_in_stmts): Same.
3603         (new_pbb_from_pbb): Same.
3604         (free_data_refs_aux): New pointer to type base_alias_pair.
3605         * graphite-sese-to-poly.h: Same.
3606         * sese.c (if_region_set_false_region): Fixed Indentation.
3607         (move_sese_in_condition): Same.
3608
3609 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3610             Aditya Kumar  <aditya.k7@samsung.com>
3611
3612         PR tree-optimization/66980
3613         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3614         when data reference analysis has failed.
3615
3616 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3617             Aditya Kumar  <aditya.k7@samsung.com>
3618
3619         PR tree-optimization/67754
3620         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3621         scev analysis on the same loop nest as analyze_drs_in_stmts.
3622         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3623         renamed...
3624         (try_generate_gimple_bb): Call outermost_loop_in_sese.
3625         (analyze_drs_in_stmts): Same.
3626         * sese.c (outermost_loop_in_sese): ...here.
3627
3628 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3629             Aditya Kumar  <aditya.k7@samsung.com>
3630
3631         PR tree-optimization/67754
3632         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3633         recursion on the inner loops.
3634
3635 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3636
3637         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3638         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3639         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3640         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3641         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3642
3643 2015-10-01  Marek Polacek  <polacek@redhat.com>
3644
3645         PR c/65345
3646         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3647         create_tmp_var_raw rather than create_tmp_var.
3648
3649 2015-10-01  Marek Polacek  <polacek@redhat.com>
3650
3651         PR tree-optimization/67769
3652         * tree-ssa-phiopt.c (conditional_replacement): Call
3653         reset_flow_sensitive_info_in_bb.
3654         (minmax_replacement): Likewise.
3655         (abs_replacement): Likewise.
3656
3657 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3658
3659         * builtins.c: Don't include gomp-constants.h.
3660         (fold_builtin_1): Don't fold acc_on_device here.
3661         * gimple-fold.c: Include gomp-constants.h.
3662         (gimple_fold_builtin_acc_on_device): New.
3663         (gimple_fold_builtin): Call it.
3664
3665 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3666
3667         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3668         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3669
3670 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
3671
3672         * config/arm/aarch-common-protos.h
3673         (aarch_accumulator_forwarding): New.
3674         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3675         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3676         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3677         * config/arm/cortex-a53.md: Rewrite.
3678
3679 2015-10-01  Richard Biener  <rguenther@suse.de>
3680
3681         * gimple-match.h (mprts_hook): Declare.
3682         * gimple-match.head.c (mprts_hook): Define.
3683         (maybe_push_res_to_seq): Use new hook.
3684         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3685         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3686         (vn_ssa_aux::has_constants): Remove.
3687         * tree-ssa-sccvn.c: Include gimple-match.h.
3688         (VN_INFO_GET): Assert we don't re-use SSA names.
3689         (vn_get_expr_for): Remove.
3690         (expr_has_constants): Likewise.
3691         (stmt_has_constants): Likewise.
3692         (simplify_binary_expression): Likewise.
3693         (simplify_unary_expression): Likewise.
3694         (vn_lookup_simplify_result): New hook.
3695         (visit_copy): Adjust.
3696         (visit_reference_op_call): Likewise.
3697         (visit_phi): Likewise.
3698         (visit_use): Likewise.
3699         (process_scc): Likewise.
3700         (init_scc_vn): Likewise.
3701         (visit_reference_op_load): Likewise.  Use match-and-simplify and
3702         a gimple seq for inserted expressions.
3703         (try_to_simplify): Remove GENERIC stmt combining code.
3704         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3705         * tree-ssa-pre.c (eliminate_insert): Adjust.
3706         (eliminate_dom_walker::before_dom_children): Likewise.
3707
3708 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3709
3710         * doc/invoke.texi (Optimization Options): Add
3711         -freorder-blocks-algorithm=.
3712         (Optimize Options) <-O>: Add -freorder-blocks.
3713         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
3714         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3715         <-freorder-blocks>: Also enabled at levels -O and -Os.
3716         <-freorder-blocks-algorithm=>: Document new option.
3717
3718 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3719
3720         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3721         with flag_reorder_blocks_algorithm.
3722         * common.opt (freorder-blocks-algorithm=): New flag.
3723         (reorder_blocks_algorithm): New enum.
3724         * flag-types.h (reorder_blocks_algorithm): New enum.
3725         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3726         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3727
3728 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3729
3730         * bb-reorder.c: Add intro comment.
3731         (reorder_basic_blocks_software_trace_cache): Print a header to
3732         the dump file.
3733         (edge_order): New function.
3734         (reorder_basic_blocks_simple): New function.
3735         (reorder_basic_blocks): Choose between the STC and the simple
3736         algorithms (always choose the former).
3737
3738 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3739
3740         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3741         function, factored out from ...
3742         (reorder_basic_blocks): ... here.
3743
3744 2015-10-01  Tom de Vries  <tom@codesourcery.com>
3745
3746         * tree-cfg.c (dump_function_to_file): Dump function attributes using
3747         __attribute__(()) string.  Move dumping of function attributes to before
3748         function name.
3749
3750 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
3751
3752         PR target/66870
3753         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3754         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3755         based on gold linker version.
3756         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3757         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3758         * configure, config.in: Regenerate.
3759
3760 2015-10-01  Alan Modra  <amodra@gmail.com>
3761
3762         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3763         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3764         (rs6000_output_mi_thunk): Likewise.
3765
3766 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3767
3768         * config/nvptx/mkoffload.c (process): Change offload data format.
3769
3770 2015-09-30  Jeff Law  <law@redhat.com>
3771
3772         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3773         with constant conditions.
3774         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3775         (remove_ctrl_stmt_and_useless_edges): No longer static.
3776         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3777         (remove_ctrl_stmt_and_useless_edges): Likewise.
3778
3779 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3780             Cesar Philippidis  <cesar@codesourcery.com>
3781
3782         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3783         (TARGET_GOACC_VALIDATE_DIMS): Override.
3784         * target.def (TARGET_GOACC): New target hook prefix.
3785         (validate_dims): New hook.
3786         * targhooks.h (default_goacc_validate_dims): New.
3787         * omp-low.c (oacc_validate_dims): New.
3788         (execute_oacc_device_lower): New.
3789         (default_goacc_validate_dims): New.
3790         (pass_data_oacc_device_lower): New.
3791         (pass_oacc_device_lower): New pass.
3792         (make_pass_oacc_device_lower): New.
3793         * tree-pass.h (make_pass_oacc_device_lower): Declare.
3794         * passes.def (pass_oacc_device_lower): Add it.
3795         * doc/tm.texi: Rebuilt.
3796         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3797         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3798
3799 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3800
3801         PR rtl-optimization/67037
3802         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3803
3804 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
3805
3806         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3807         * passes.c: Include tree-ssanames.h.
3808         (execute_function_todo): Flush the pending free SSA_NAMEs after
3809         eliminating unreachable basic blocks.
3810         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3811         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3812         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3813         (flush_ssanames_freelist): New function.
3814         (release_ssaname_fn): Put released names on the queue.
3815         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3816         * tree-ssanames.h (flush_ssanames_freelist): Declare.
3817
3818 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3819
3820         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3821         (generate_target_descr_file, generate_target_offloadend_file)
3822         (generate_host_descr_file, prepare_target_image): Pass it on.
3823         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3824         (compile_native, main): Pass it on.
3825         * lto-wrapper.c (compile_offload_image): Likewise.
3826
3827 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3828             Ilya Verbin  <ilya.verbin@intel.com>
3829             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3830
3831         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3832         (prepare_target_image, main): Refactor argv building to use
3833         obstacks.
3834
3835 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3836
3837         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3838         * config/spu/spu.c (spu_expand_atomic_op): New function.
3839         * config/spu/spu.md (AINT): New mode iterator.
3840         (ATOMIC): New code iterator.
3841         (atomic_name, atomic_pred): New code predicates.
3842         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3843         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3844         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3845         "atomic_<atomic_name>_fetch<mode>"): Likewise.
3846
3847 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
3848
3849         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3850         debug insns.
3851         (scalar_chain::convert_reg): Likewise.
3852
3853 2015-09-30  Richard Biener  <rguenther@suse.de>
3854
3855         * builtins.c: Add comment that no new simplifications should
3856         be added here.
3857
3858 2015-09-30  Marek Polacek  <polacek@redhat.com>
3859
3860         PR tree-optimization/67690
3861         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3862         reset_flow_sensitive_info_in_bb.
3863         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3864         * tree-ssanames.c: Include "gimple-iterator.h".
3865         (reset_flow_sensitive_info_in_bb): New function.
3866         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3867
3868 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3869
3870         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3871         variable, replacing it with...
3872         (offload_abi): ... this new variable.  Adjust all users.
3873         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3874
3875 2015-09-30  Matthias Klose  <doko@ubuntu.com>
3876
3877         * configure.ac: Remove extraneous ;;.
3878         * configure: Regenerate.
3879
3880 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
3881
3882         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3883         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3884         predicate, disallow register for operand 2.
3885
3886 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
3887
3888         * graphite-dependences.c (scop_get_dependences): Moved in down
3889         in order to be visible to its caller.
3890         * graphite-poly.h: Removed compute_deps, and extend_schedule.
3891
3892 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3893             Aditya Kumar  <aditya.k7@samsung.com>
3894
3895         PR tree-optimization/67754
3896         * graphite-optimize-isl.c (optimize_isl): Call
3897         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3898
3899 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
3900
3901         * builtins.c (expand_builtin_acc_on_device): Delete.
3902         (expand_builtin): Don't call it.
3903         (fold_builtin_1): Fold acc_on_device.
3904
3905 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3906
3907         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3908         (ix86_nsaved_sseregs): Likewise.
3909
3910 2015-09-29  Jeff Law  <law@redhat.com>
3911
3912         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3913         computation of unused value.
3914
3915         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3916         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3917         inline macro expansion.
3918
3919         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3920
3921         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3922         (gen_shl_sext): Likewise.
3923         * config/sh/sh.md (divsi3): Likewise.
3924         (imm->ext_dest_operand splitter): Likewise.
3925
3926 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3927             Aditya Kumar  <aditya.k7@samsung.com>
3928
3929         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3930         (nb_data_writes_in_bb): Remove.
3931         (split_pbb): Remove.
3932         (split_reduction_stmt): Remove.
3933         (is_reduction_operation_p): Remove.
3934         (phi_contains_arg): Remove.
3935         (follow_ssa_with_commutative_ops): Remove.
3936         (detect_commutative_reduction_arg): Remove.
3937         (detect_commutative_reduction_assign): Remove.
3938         (follow_inital_value_to_phi): Remove.
3939         (edge_initial_value_for_loop_phi): Remove.
3940         (initial_value_for_loop_phi): Remove.
3941         (used_outside_reduction): Remove.
3942         (detect_commutative_reduction): Remove.
3943         (translate_scalar_reduction_to_array_for_stmt): Remove.
3944         (remove_phi): Remove.
3945         (dr_indices_valid_in_loop): Remove.
3946         (close_phi_written_to_memory): Remove.
3947         (translate_scalar_reduction_to_array): Remove.
3948         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3949         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3950         (rewrite_commutative_reductions_out_of_ssa): Remove.
3951         (build_poly_scop): Remove call to
3952         rewrite_commutative_reductions_out_of_ssa.
3953
3954 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
3955
3956         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3957         Add new insn types for vector load and store pairs.
3958         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3959         types "neon_ldp{,_q}".
3960         * config/arm/cortex-a57.md (neon_load_c): Add insn types
3961         "neon_ldp{,_q}".
3962         (neon_store_complex): Add insn types "neon_stp{,_q}".
3963         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3964         "neon_{ldp,stp}_q".
3965
3966 2015-09-29  Jeff Law  <law@redhat.com>
3967
3968         * config/rx/constraints.md (Int08): Fix undefined left shift
3969         behaviour.
3970         (Sint08, Sint16, Sint24): Likewise.
3971         * config/rx/rx.c (rx_get_stack_layout): Likewise.
3972
3973         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3974         behaviour.
3975
3976         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3977         left shift behaviour.
3978         * config/msp430/constraints.md ('L' constraint): Similarly.
3979         ('Ys' constraint): Similarly.
3980
3981 2015-09-29  Richard Biener  <rguenther@suse.de>
3982
3983         PR tree-optimization/67170
3984         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3985         the translate function pointer parameter to get the
3986         bool whether to disambiguate only by reference.
3987         (walk_non_aliased_vuses): Likewise.
3988         * tree-ssa-alias.c (maybe_skip_until): Adjust.
3989         (get_continuation_for_phi_1): Likewise.
3990         (get_continuation_for_phi): Likewise.
3991         (walk_non_aliased_vuses): Likewise.
3992         * tree-ssa-sccvn.c (const_parms): New bitmap.
3993         (vn_reference_lookup_3): Adjust for interface change.
3994         Disambiguate parameters pointing to readonly memory.
3995         (free_scc_vn): Free const_parms.
3996         (run_scc_vn): Initialize const_parms from a fn spec attribute.
3997
3998 2015-09-29  Richard Biener  <rguenther@suse.de>
3999
4000         PR tree-optimization/67741
4001         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
4002         builtin calls with correct signature.
4003
4004 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
4005
4006         PR target/65105
4007         * config/i386/i386.c: Include dbgcnt.h.
4008         (has_non_address_hard_reg): New.
4009         (convertible_comparison_p): New.
4010         (scalar_to_vector_candidate_p): New.
4011         (remove_non_convertible_regs): New.
4012         (scalar_chain): New.
4013         (scalar_chain::scalar_chain): New.
4014         (scalar_chain::~scalar_chain): New.
4015         (scalar_chain::add_to_queue): New.
4016         (scalar_chain::mark_dual_mode_def): New.
4017         (scalar_chain::analyze_register_chain): New.
4018         (scalar_chain::add_insn): New.
4019         (scalar_chain::build): New.
4020         (scalar_chain::compute_convert_gain): New.
4021         (scalar_chain::replace_with_subreg): New.
4022         (scalar_chain::replace_with_subreg_in_insn): New.
4023         (scalar_chain::emit_conversion_insns): New.
4024         (scalar_chain::make_vector_copies): New.
4025         (scalar_chain::convert_reg): New.
4026         (scalar_chain::convert_op): New.
4027         (scalar_chain::convert_insn): New.
4028         (scalar_chain::convert): New.
4029         (convert_scalars_to_vector): New.
4030         (pass_data_stv): New.
4031         (pass_stv): New.
4032         (make_pass_stv): New.
4033         (ix86_option_override): Created and register stv pass.
4034         (flag_opts): Add -mstv.
4035         (ix86_option_override_internal): Likewise.
4036         * config/i386/i386.md (SWIM1248x): New.
4037         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
4038         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
4039         (*anddi3_doubleword): New.
4040         (*zext<mode>_doubleword): New.
4041         (*zextsi_doubleword): New.
4042         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
4043         (*<code>di3_doubleword): New.
4044         * config/i386/i386.opt (mstv): New.
4045         * dbgcnt.def (stv_conversion): New.
4046
4047 2015-09-29  Tom de Vries  <tom@codesourcery.com>
4048
4049         * tree-cfg.c (dump_function_to_file): Dump function attributes.
4050
4051 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4052
4053         PR target/67716
4054         * config/sh/sh.c (sh_override_options_after_change): New.
4055         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4056         (sh_option_override): Move align_loops, align_jumps and
4057         align_functions handling into sh_override_options_after_change.
4058
4059 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
4060
4061         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
4062         (nvptx_record_offload_symbol): Record function execution geometry.
4063         * config/nvptx/mkoffload.c (process): Include launch geometry in
4064         function data.
4065         * omp-low.c (oacc_launch_pack): New.
4066         (replace_oacc_fn_attrib): New.
4067         (set_oacc_fn_attrib): New.
4068         (get_oacc_fn_attrib): New.
4069         (expand_omp_target): Create keyed varargs for GOACC_parallel call
4070         generation.
4071         * omp-low.h (get_oacc_fn_attrib): Declare.
4072         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4073         (DEF_FUNCTION_TYPE_VAR_11): Delete.
4074         * tree.h (OMP_CLAUSE_EXPR): New.
4075         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4076
4077 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4078             Sebastian Pop  <s.pop@samsung.com>
4079
4080         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4081
4082 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4083             Sebastian Pop  <s.pop@samsung.com>
4084
4085         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4086         * graphite-scop-detection.c (struct sese_l): New type.
4087         (get_entry_bb): API for getting entry bb of SESE.
4088         (get_exit_bb): API for getting exit bb of SESE.
4089         (class debug_printer): New type.  Simple printer in debug mode.
4090         (trivially_empty_bb_p): New.  Return true when BB is empty or
4091         contains only debug instructions.
4092         (graphite_can_represent_expr): Call scalar_evoution_in_region
4093         instead of analyze_scalar_evolution.  Pass in scop instead of only
4094         the scop entry.
4095         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4096         scop entry.
4097         (stmt_simple_for_scop_p): Same.
4098         (harmful_stmt_in_bb): Same.
4099         (graphite_can_represent_loop): Deleted.
4100         (struct scopdet_info): Deleted.
4101         (scopdet_basic_block_info): Deleted.
4102         (build_scops_1): Deleted.
4103         (bb_in_sd_region): Deleted.
4104         (find_single_entry_edge): Deleted.
4105         (find_single_exit_edge): Deleted.
4106         (create_single_entry_edge): Deleted.
4107         (sd_region_without_exit): Deleted.
4108         (create_single_exit_edge): Deleted.
4109         (unmark_exit_edges): Deleted.
4110         (mark_exit_edges): Deleted.
4111         (create_sese_edges): Deleted.
4112         (build_graphite_scops): Deleted.
4113         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4114         (build_scops): Use the new scop_builder to build scops.
4115         (dot_all_scops_1): Use the new pretty printer.  Print loop father
4116         as well.
4117         (loop_body_is_valid_scop): New.  Return true if loop body is a
4118         valid scop.
4119         (class scop_builder): New.  Builds SCoPs for polyhedral
4120         optimizations.
4121         (scop_builder): New constructor.
4122         (static sese_l invalid_sese): sese_l with invalid edges.
4123         (get_sese): Get an sese (from a loop) if possible, invalid_sese
4124         otherwise.
4125         (get_nearest_dom_with_single_entry): Get nearest dominator of a
4126         basic_block with single entry.  Return NULL if we get to the
4127         beginning of a function.
4128         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4129         a basic_block with single exit.  Return NULL if we get to the
4130         beginning of a function.
4131         (print_sese): Pretty-print SESE.
4132         (merge_sese): Merge two SESEs if possible and return the new SESE.
4133         (build_scop_depth): Start building the SCoP within a loop nest.
4134         (build_scop_breadth): Start building the SCoP at a single loop
4135         depth.  Merge adjacent SESEs if valid.
4136         (can_represent_loop_1): Returns true if Graphite can represent
4137         loop inside SCoP.  Helper for can_represent_loop.
4138         (can_represent_loop): Returns true if Graphite can represent LOOP
4139         and all its nested loops in SCoP.
4140         (loop_is_valid_scop): Returns true if LOOP and all its nests
4141         constitute a valid SCoP.
4142         (region_has_one_loop): Returns true of a region has only one loop.
4143         (add_scop): Add SCoP to the list of valid scops.  Removes an
4144         already existing scop if it intersects with or subsumed by this one.
4145         (harmful_stmt_in_region): Returns true if SCoP has any statment
4146         which cannot be represented by Graphite.
4147         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4148         (remove_subscops): Remove any SCoP from the list of already found
4149         SCoPs, if subsumed by S1.
4150         (intersects): Return true if region bounded by SCoPs S1 and S2
4151         intersect.
4152         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4153         * graphite.c (print_graphite_scop_statistics):
4154         (print_graphite_statistics): Print SCoP info while debugging.
4155         (graphite_initialize): Early exit in case number of loops in a
4156         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4157         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4158         (graphite_finalize):
4159         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4160         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4161         (recompute_all_dominators): Recalculate POST_DOMINATORS.
4162         * tree-cfg.c (print_loops): Print the function name while printing
4163         loops.
4164
4165 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4166             Sebastian Pop  <s.pop@samsung.com>
4167
4168         PR tree-optimization/67700
4169         * graphite-sese-to-poly.c (parameter_index_in_region): Call
4170         invariant_in_sese_p_rec.
4171         (extract_affine): Same.
4172         (rewrite_cross_bb_scalar_deps): Call update_ssa.
4173         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
4174         * sese.h (invariant_in_sese_p_rec): Declare.
4175
4176 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
4177
4178         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4179
4180 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
4181
4182         Revert:
4183         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4184                     Jiong Wang  <jiong.wang@arm.com>
4185
4186         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4187         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4188         (REG_CLASS_NAMES): Likewise.
4189         (REG_CLASS_CONTENTS): Likewise.
4190         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4191         (aarch64_register_move_cost): Likewise.
4192         (aarch64_load_symref_appropriately): Invoke the new added pattern if
4193         possible.
4194         * config/aarch64/constraints.md (Uc0): New constraint.
4195
4196 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
4197
4198         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4199
4200 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
4201
4202         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4203         SECTION_EXCLUDE in XO mapping class.
4204
4205 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
4206
4207         PR target/54236
4208         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4209         and handle ne and eq codes.
4210         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4211         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
4212         CONST_INT_P.  Use reverse_condition.
4213         (sh_split_treg_set_expr): Likewise.
4214
4215 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
4216
4217         * config/arm/types.md (type): Add rotate_imm.
4218         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4219         ROR immediate case.
4220         (*rorsi3_insn_uxtw): Likewise.
4221         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4222         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4223         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4224
4225 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4226
4227         PR rtl-optimization/67481
4228         * ifcvt.c (contains_ccmode_rtx_p): New function.
4229         (insn_valid_noce_process_p): Use it.
4230
4231 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4232
4233         PR rtl-optimization/67456
4234         PR rtl-optimization/67464
4235         PR rtl-optimization/67465
4236         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4237         move in the mode of x.  Handle combination of complex and simple
4238         block pairs as well as the case when one is empty.
4239
4240 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4241
4242         * doc/gimple.texi: Update references to gimple_statement_base.
4243         * gdbhooks.py: Likewise.
4244         * gimple.h: Likewise.
4245
4246 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4247
4248         * config/sparc/driver-sparc.c: map LEON to leon3
4249
4250 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4251
4252         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4253           and make it inverse to change default
4254         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4255           supervisor mode
4256         * doc/invoke.texi: Document change of default
4257
4258 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4259
4260         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4261         true on %f0 for a target without FPU.
4262         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4263         without FPU.
4264         (untyped_return): Do not load %f0 for a target without FPU.
4265
4266 2015-09-28  Andrew Pinski  <apinski@cavium.com>
4267
4268         * config/aarch64/aarch64.md (prefetch):
4269         Change the predicate of operand 0 to register_operand.
4270
4271 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
4272
4273         * config/i386/predicates.md (register_sse4nonimm_operand): New
4274         predicate.
4275         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4276         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4277         Use register_sse4nonimm_operand as operand 0 predicate.
4278         (*vec_extractv8hi_sse2): Remove insn pattern.
4279         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4280         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4281
4282 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
4283             Kaz Kojima  <kkojima@gcc.gnu.org>
4284
4285         PR target/67391
4286         * config/sh/sh-protos.h (sh_lra_p): Declare.
4287         * config/sh/sh.c (sh_lra_p): Make non-static.
4288         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4289         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
4290         Expand into addsi3_scr if operands[2] if needed.
4291         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
4292         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
4293         (addsi3_scr, *addsi3): New insn_and_split patterns.
4294
4295 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
4296
4297         PR rtl-optimization/64164
4298         PR tree-optimization/67312
4299         PR middle-end/67340
4300         PR middle-end/67490
4301         PR bootstrap/67597
4302         * cfgexpand.c (parm_in_stack_slot_p): Remove.
4303         (ssa_default_def_partition): Remove.
4304         (get_rtl_for_parm_ssa_default_def): Remove.
4305         (set_rtl): Check that RTL assignments match expectations.
4306         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
4307         default def location for params and results.  Record SSA names
4308         or types in REG and MEM attrs, respectively.
4309         (set_parm_rtl): New.
4310         (expand_one_ssa_partition): Drop logic that assigned MEMs with
4311         unassigned addresses.
4312         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4313         deferred stack alloc vars.
4314         (expand_used_vars): Skip partitions holding parm default defs.
4315         Move adjust_one_expanded_partition_var loop...
4316         (pass_expand::execute): ... here.  Drop redundant assert.
4317         Adjust comments before the final loop over all ssa names.
4318         Require assigned rtl of parms and results to match exactly.
4319         Reset its attributes to match them, not any other variables in
4320         the same partition.
4321         (expand_debug_expr): Use entry value for PARM's default defs
4322         only iff they have zero nondebug uses.
4323         * cfgexpand.h (parm_in_stack_slot_p): Remove.
4324         (get_rtl_for_parm_ssa_default_def): Remove.
4325         (set_parm_rtl): Declare.
4326         * doc/invoke.texi: Improve wording.
4327         * explow.c (promote_decl_mode): Fix promote_function_mode for
4328         result decls not by reference.
4329         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
4330         bypass TYPE_MODE to get the actual vector mode.
4331         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
4332         2015-08-19's changes as follows.  Drop include of
4333         basic-block.h and df.h.
4334         (rtl_for_parm): Remove.
4335         (maybe_reset_rtl_for_parm): Remove.
4336         (parm_in_unassigned_mem_p): Remove.
4337         (use_register_for_decl): Add logic for RESULT_DECLs matching
4338         assign_parms' behavior.
4339         (split_complex_args): Revert.
4340         (assign_parms_augmented_arg_list): Revert.  Add comment
4341         referencing the logic above.
4342         (assign_parm_adjust_stack_rtl): Revert.
4343         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
4344         of SET_DECL_RTL.  Set up a REG if the parm demands so.
4345         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
4346         calls into a single set_parm_rtl.  Set up a temporary RTL
4347         temporarily for expand_assignment.
4348         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
4349         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
4350         (assign_bounds): Revert.
4351         (assign_parms): Revert.  Use set_parm_rtl.
4352         (allocate_struct_function): Relayout result and parms of
4353         non-abstruct functions.
4354         (expand_function_start): Revert.  Use set_parm_rtl.  If the
4355         result is not a hard reg, create a pseudo from the promoted
4356         mode of the default def.  Promote static chain mode.
4357         * tree-outof-ssa.c (remove_ssa_form): Drop unused
4358         partition_has_default_def.  Set up
4359         partitions_for_parm_default_defs.
4360         (finish_out_of_ssa): Remove partition_has_default_def.
4361         Release partitions_for_parm_default_defs.
4362         * tree-outof-ssa.h (struct ssaexpand): Remove
4363         partition_has_default_def.  Add
4364         partitions_for_parm_default_defs.
4365         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4366         stor-layout.h.
4367         (build_ssa_conflict_graph): Fix conflict-detection of default
4368         defs of even unused default defs of params and results.
4369         (for_all_parms): New.
4370         (create_default_def): New.
4371         (register_default_def): New.
4372         (coalesce_with_default): New.
4373         (create_outofssa_var_map): Create default defs for all parms
4374         and results, and register their partitions.  Add GIMPLE_RETURN
4375         operands as coalesce candidates with results.  Add default
4376         defs of each parm or result as coalesce candidates with its
4377         other defs.  Mark each result def, and each default def of
4378         parms, as used_in_copy.
4379         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
4380         with the ssa names, even anonymous ones.  Drop
4381         parm_in_stack_slot_p calls.  Require same signedness and
4382         alignment.
4383         (coalesce_ssa_name): Add coalesce candidates for all defs of
4384         each parm and result, even unused ones.
4385         (parm_default_def_partition_arg): New type.
4386         (set_parm_default_def_partition): New.
4387         (get_parm_default_def_partitions): New.
4388         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4389         * tree-ssa-live.c (partition_view_init): Regard unused defs of
4390         parms and results as used.
4391         (verify_live_on_entry): Don't error out just because they're
4392         not live.
4393
4394 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
4395
4396         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4397         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4398         (output_fde): Don't output length for debug_frame on AIX.
4399         (output_call_frame_info): Don't output length for debug_frame on AIX.
4400         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4401         HAVE_XCOFF_DWARF_EXTRAS.
4402         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4403         HAVE_XCOFF_DWARF_EXTRAS.
4404         (output_compilation_unit_header): Don't output length on AIX.
4405         (output_pubnames): Don't output length on AIX.
4406         (output_aranges): Delete argument. Compute length locally. Don't
4407         output length on AIX.
4408         (output_line_info): Don't output length on AIX.
4409         (dwarf2out_finish): Don't compute aranges_length.
4410         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4411         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4412         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4413         symbol decoration for AIX.
4414         (rs6000_xcoff_debug_unwind_info): New.
4415         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4416         for SECTION_DEBUG.
4417         (rs6000_xcoff_declare_function_name): Emit different
4418         .function pseudo-op when DWARF2_DEBUG. Don't call
4419         xcoffout_declare_function for DWARF2_DEBUG.
4420         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4421         Redefine.
4422         * config/rs6000/aix71.h: New.
4423         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4424         locations support.
4425         * configure: Regenerate.
4426         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4427         DWARF support.
4428
4429 2015-09-26  Jeff Law  <law@redhat.com>
4430
4431         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4432         behaviour.
4433         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4434         behaviour.
4435
4436         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4437         behaviour
4438
4439         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4440         undefined behaviour.
4441
4442         * config/cris/cris.md (asrandb): Fix left shift undefined
4443         behaviour.
4444         (asrandw): Likewise.
4445
4446 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4447
4448         PR target/61578
4449         * lra-constarints.c (match_reload): Check presence of the input pseudo
4450         in the output operand.
4451
4452 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4453
4454         * doc/invoke.texi (-fsanitize): Minor wording tweak.
4455
4456 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4457
4458         * doc/invoke.texi (-fsanitize): Update URLs.
4459
4460 2015-09-25  Teresa Johnson  <tejohnson@google.com>
4461
4462         * opts.c (finish_options): Unset -freorder-blocks-and-partition
4463         if not using profile.
4464
4465 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4466
4467         PR pretty-print/67567
4468         * pretty-print.c (pp_string): Add gcc_checking_assert.
4469         * pretty-print.h (output_buffer_append_r): Likewise.
4470
4471 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4472
4473         PR target/67675
4474         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4475         addr2 individually.  Don't emit logical or insn if one is known to
4476         be aligned approriately.
4477         (sh_expand_cmpnstr): Likewise.
4478
4479 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
4480
4481         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4482         __builtin_aarch64_fp[sc]r arguments into a register.
4483
4484 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4485
4486         * config.gcc (x86_archs): Replace lakemount with lakemont.
4487         (with_cpu): Likewise.
4488         (with_arch): Likewise.
4489         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4490         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
4491         __tune_lakemount__ with __tune_lakemont__.
4492         * config/i386/i386.c (lakemount_cost): Renamed to ...
4493         (lakemont_cost): This.
4494         (m_LAKEMOUNT): Renamed to ...
4495         (m_LAKEMONT): This.
4496         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4497         (processor_target_table): Replace "lakemount" with "lakemont".
4498         (processor_alias_table): Likewise.
4499         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4500         PROCESSOR_LAKEMONT.
4501         (ix86_adjust_cost): Likewise.
4502         (ia32_multipass_dfa_lookahead): Likewise.
4503         * config/i386/i386.h (processor_type): Likewise.
4504         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4505         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
4506         Lakemount with Lakemont.
4507
4508 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
4509
4510         * config.gcc (x86_archs): Replace iamcu with lakemount.
4511         (with_cpu): Likewise.
4512         (with_arch): Likewise.
4513         * doc/invoke.texi: Likewise.
4514         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4515         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
4516         __tune_iamcu__ with __tune_lakemount__.
4517         * config/i386/i386.c (iamcu_cost): Renamed to ...
4518         (lakemount_cost): This.
4519         (m_IAMCU): Renamed to ...
4520         (m_LAKEMOUNT): This.
4521         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4522         (processor_target_table): Replace "iamcu" with "lakemount".
4523         (processor_alias_table): Likewise.
4524         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4525         PROCESSOR_LAKEMOUNT.
4526         (ix86_adjust_cost): Likewise.
4527         (ia32_multipass_dfa_lookahead): Likewise.
4528         * config/i386/i386.h (processor_type): Likewise.
4529         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4530
4531 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
4532
4533         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4534         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4535         Declare.
4536         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4537         (pa_expand_compare_and_swap_loop): New.
4538         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4539         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4540         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4541         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4542         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4543         Revise.
4544
4545 2015-09-24  Michael Collison  <michael.collison@linaro.org>
4546
4547         PR other/57195
4548         * read-md.c (read_name): Allow mode iterators inside angle
4549         brackets in rtl expressions.
4550
4551 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
4552
4553         PR target/61578
4554         * ira-color.c (update_allocno_cost): Add parameter.
4555         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
4556         parameter.
4557
4558 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4559
4560         PR driver/67640
4561         * opts-common.c (prune_options): Discard all -fdiagnostics-color
4562         but the last one, which is moved to the front to be processed
4563         first.
4564         * opts.c (enable_warning_as_error): Reject options that do not
4565         control warnings.
4566
4567 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4568
4569         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4570
4571 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4572
4573         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4574         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4575         (aarch64_cannot_force_const_mem): Likewise.
4576         (aarch64_classify_address): Likewise.
4577         (aarch64_classify_symbolic_expression): Likewise.
4578         (aarch64_print_operand): Likewise.
4579         (aarch64_classify_symbol): Likewise.
4580         (aarch64_mov_operand_p): Likewise.
4581         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4582         (aarch64_mov_operand): Likewise.
4583
4584 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
4585
4586         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4587         for info->spe_gp_size.
4588
4589 2015-09-24  Richard Biener  <rguenther@suse.de>
4590
4591         PR lto/67699
4592         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4593         abstract origins.
4594
4595 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
4596
4597         * tree-object-size.c (plus_stmt_object_size)
4598         (cond_expr_object_size): Change the formal parameters from gimple
4599         to gimple *.
4600         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4601         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4602         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4603
4604 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4605
4606         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4607         Check for ld -type pie on Solaris 11.x and 12.
4608         * configure: Regenerate.
4609         * config.in: Regenerate.
4610
4611         * gcc.c (LD_PIE_SPEC): Allow redefinition.
4612
4613         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4614         (STARTFILE_SPEC): Use it.
4615         (ENDFILE_CRTEND_SPEC): Define.
4616         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4617         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4618         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4619         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4620         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4621         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4622         (ENDFILE_ARCH_SPEC): Define.
4623         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4624
4625 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4626
4627         * configure.ac (gcc_cv_solaris_crts): New test.
4628         * configure. Regenerate.
4629         * config.in: Regenerate.
4630         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4631         HAVE_SOLARIS_CRTS variant.
4632
4633 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4634
4635         * tree-inline.h (count_insns_seq): Delete prototype.
4636         (estimate_num_insns_seq): Define prototype.
4637         * tree-inline.c (count_insns_seq): Delete.
4638         (estimate_num_insns_seq): Remove static qualifier.
4639         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4640         with estimate_num_insns_seq.
4641
4642 2015-09-24  Richard Biener  <rguenther@suse.de>
4643
4644         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4645         members.
4646         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4647         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
4648         offset.
4649         (ao_ref_init_from_vn_reference): Record clique and base in the
4650         built base.
4651         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4652
4653 2015-09-24  Richard Biener  <rguenther@suse.de>
4654
4655         PR tree-optimization/48885
4656         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4657         as not including any restrict tags from other pointers.
4658
4659 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4660
4661         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4662         character when appending to offload_targets.
4663
4664         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4665         offload targets by commas, not colons.
4666         * config.in: Regenerate.
4667         * configure: Likewise.
4668         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4669         instead of setting up the default offload targets here...
4670         (process_command): ..., do it here.
4671         libgomp/
4672         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4673         targets are separated by commas.
4674         * config.h.in: Regenerate.
4675
4676 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4677             Nathan Sidwell  <nathan@codesourcery.com>
4678
4679         * omp-low.h (omp_reduction_init_op): Declare.
4680         * omp-low.c (omp_reduction_init_op): New, broken out of ...
4681         (omp_reduction_init): ... here.  Call it.
4682         * tree-parloops.c (initialize_reductions): Use
4683         omp_reduction_init_op.
4684
4685 2015-09-23   Richard Biener  <rguenther@suse.de>
4686
4687         PR middle-end/67662
4688         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4689         undefined overflow unless they will cancel out.
4690
4691 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4692
4693         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4694         insn emit.
4695
4696 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4697
4698         PR c/49655
4699         * opts.h (write_langs): Declare.
4700         * opts-global.c (write_langs): Make it extern.
4701
4702 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
4703
4704         PR target/67391
4705         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4706         overlapping regs when matching the pattern.
4707
4708 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
4709
4710         * config/aarch64/aarch64-simd.md
4711         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4712         (aarch64_float_truncate_hi_v4sf_le): New.
4713         (aarch64_float_truncate_hi_v4sf_be): Likewise.
4714
4715 2015-09-23  Richard Biener  <rguenther@suse.de>
4716
4717         * tree-ssa-structalias.c (intra_create_variable_infos): Build
4718         representatives for all restrict qualified pointer destinations.
4719
4720 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4721
4722         * config/i386/i386.md (define_code_attr mshift): New.
4723         (define_mode_iterator SWI1248_AVX512BW): Rename ...
4724         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4725         only.
4726         (define_insn "*k<logic><mode>"): Use new iterator name.
4727         (define_insn "*<mshift><mode>3"): New.
4728
4729 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
4730
4731         PR middle-end/67649
4732         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4733         mark the block as accessible.
4734
4735 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
4736
4737         * function.c (thread_prologue_and_epilogue_insns): Delete
4738         orig_entry_edge argument to try_shrink_wrapping.
4739         * shrink-wrap.c (can_get_prologue): New function.
4740         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4741         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
4742         can_get_prologue where needed.  Remove code that finds a single
4743         edge for the prologue.  Remove code that tests if any reg clobbered
4744         by the prologue is live on the prologue edge.  Remove code that finds
4745         the new prologue edge after duplicating blocks.  Make a new prologue
4746         block and edge.
4747         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4748
4749 2015-09-22  Jeff Law  <law@redhat.com>
4750
4751         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4752         behavior.
4753
4754 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4755
4756         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
4757         -Wtemplates, -Wnamespaces): Document.
4758
4759 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4760
4761         PR tree-optimization/67671
4762         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4763         pointer references as restrict.
4764
4765 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
4766
4767         * config/nios2/nios2.c (nios2_legitimize_address): When handling
4768         'reg + reloc' cases, allow first operand to be non-REG, and use
4769         force_reg() to enforce address pattern.
4770
4771 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
4772
4773         PR target/67480
4774         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4775         (define_mode_iterator VI12_AVX_AVX512F): New.
4776         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4777         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4778         (define_insn "*<code><mode>3"): ... Into new pattern using
4779         VI12_AVX_AVX512F iterators without masking.
4780
4781 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4782
4783         * config.gcc: Support "skylake-avx512".
4784         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4785         PROCESSOR_SKYLAKE_AVX512.
4786         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4787         (processor_target_table): Add "skylake-avx512".
4788         (PTA_SKYLAKE_AVX512): Define.
4789         (ix86_option_override_internal): Add "skylake_avx512".
4790         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4791         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4792         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4793         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4794         * doc/invoke.texi (skylake-avx512): New.
4795
4796 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4797
4798         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4799         operand in pattern.
4800         (define_insn "kunpcksi"): Ditto.
4801         (define_insn "kunpckdi"): Ditto.
4802
4803 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4804
4805         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4806         iterator instead of fixed modes.
4807
4808 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4809
4810         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4811         Adjust declaration.
4812         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4813         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
4814         out_result.  Update to support update-fetch operations.
4815         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4816         Adjust for change to aarch64_gen_atomic_ldop.
4817         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4818         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4819         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4820         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4821         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4822
4823 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4824
4825         * config/aarch64/aarch64-protos.h
4826         (aarch64_atomic_ldop_supported_p): Declare.
4827         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4828         (enum aarch64_atomic_load_op_code): New.
4829         (aarch64_emit_atomic_load_op): New.
4830         (aarch64_gen_atomic_ldop): Update to support load-operate
4831         patterns.
4832         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4833         to an expander.
4834         (aarch64_atomic_<atomic_optab><mode>): New.
4835         (aarch64_atomic_<atomic_optab><mode>_lse): New.
4836         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4837         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4838         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4839
4840 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4841
4842         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4843         (UNSPECV_ATOMIC_LDOP_OR): New.
4844         (UNSPECV_ATOMIC_LDOP_BIC): New.
4845         (UNSPECV_ATOMIC_LDOP_XOR): New.
4846         (UNSPECV_ATOMIC_LDOP_PLUS): New.
4847         (ATOMIC_LDOP): New.
4848         (atomic_ldop): New.
4849         (aarch64_atomic_load<atomic_ldop><mode>): New.
4850
4851 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4852
4853         * config/aarch64/aarch64.md
4854         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4855         pattern.
4856
4857 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4858
4859         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4860         Declare.
4861         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4862         (aarch64_gen_atomic_ldop): New.
4863         (aarch64_split_atomic_op): Fix whitespace and add a comment.
4864         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4865         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4866         (atomic_exchange<mode>): Replace with an expander.
4867         (aarch64_atomic_exchange<mode>): New.
4868         (aarch64_atomic_exchange<mode>_lse): New.
4869         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4870         (aarch64_atomic_swp<mode>): New.
4871
4872 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4873
4874         * tree-inline.c (expand_call_inline): Use inform for extra note.
4875         Do not give a note with UNKNOWN_LOCATION.
4876         Replace input_location with gimple_location (stmt).
4877         Use true/false instead of TRUE/FALSE.
4878
4879 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4880
4881         PR tree-optimization/67666
4882         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4883         with single field non-conservative.
4884
4885 2015-09-21  David S. Miller  <davem@davemloft.net>
4886
4887         PR/67622
4888         Revert:
4889         2015-09-11  David S. Miller  <davem@davemloft.net>
4890
4891         * config/sparc/constraints.md: Make "U" constraint a real register
4892         constraint.
4893         * config/sparc/sparc.c (TARGET_LRA_P): Define.
4894         (D_MODES, DF_MODES): Add missing cast.
4895         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4896         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4897         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4898         cost to 8.
4899         * config/sparc/sparc.h (PROMOTE_MODE): Define.
4900         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4901         provide these insn when flag_pic.
4902
4903         2015-09-17  David S. Miller  <davem@davemloft.net>
4904
4905         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4906         Declare.
4907         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4908         function.
4909         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4910         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4911         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4912         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4913         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4914         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4915         provide when flag_pic.
4916
4917 2015-09-21  Jeff Law  <law@redhat.com>
4918
4919         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4920         behavior.
4921
4922 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4923
4924         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4925
4926 2015-09-21  Richard Biener  <rguenther@suse.de>
4927
4928         * passes.c (rest_of_decl_compilation): Do not call
4929         dwarf2out_early_global_decl for aliases.
4930
4931 2015-09-21  Richard Biener  <rguenther@suse.de>
4932
4933         PR debug/67664
4934         * dwarf2out.c (add_location_or_const_value_attribute): Remove
4935         attribute parameter.  Early exit if either DW_AT_const_value
4936         or DW_AT_location are present already.
4937         (gen_variable_die): Adjust caller.
4938         (dwarf2out_late_global_decl): Likewise.
4939
4940 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4941
4942         PR target/67657
4943         * config/sh/sh.c (sh_remove_overlapping_post_inc,
4944         sh_peephole_emit_move_insn): Add new functions.
4945         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4946         sh_peephole_emit_move_insn): Declere them.
4947         * config/sh/sh.md: Use them in various peephole2 patterns.
4948
4949 2015-09-21  Richard Biener  <rguenther@suse.de>
4950
4951         PR middle-end/67651
4952         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4953         address with -fno-delete-null-pointer-checks.
4954
4955 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
4956
4957         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4958         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4959         (reduc_uplus_v16qi): Remove.
4960
4961         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4962         (reduc_<VEC_reduc_name>_v2df): Remove.
4963         (reduc_<VEC_reduc_name>_v4sf): Remove.
4964         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4965
4966         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4967         gen_ function by removing * prefix.
4968         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4969
4970 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4971
4972         PR middle-end/60832
4973         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4974         Print i_bound without converting it to a tree.
4975
4976 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
4977
4978         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4979         operands[4] operands[5] swap with std::swap, removed tmp variable.
4980         (arm_evpc_neon_vzip): Replaced in0/in1 and
4981         out0/out1 swaps with std::swap, removed x variable.
4982         (arm_evpc_neon_vtrn): Replaced in0/int1 and
4983         out0/out1 swaos with std::swap, removed x variable.
4984         (arm_expand_vec_perm_const_1): Replaced
4985         d->op0/d->op1 swap with std::swap, removed x variable.
4986         (arm_evpc_neon_vuzp): Replaced in0/in1 and
4987         out0/out1 swaps with std::swap, removed x variable.
4988
4989 2015-09-21  Jonathan Yong  <10walls@gmail.com>
4990
4991         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4992         sysroot/usr/lib/32api for additional win32 libraries,
4993         fixes failing Cygwin bootstrapping.
4994
4995 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4996
4997         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4998
4999 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
5000
5001         PR target/67126
5002         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
5003         (*mov_t_msb_neg): Rewrite negc pattern.
5004
5005 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5006
5007         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
5008         immediate generation code.
5009
5010 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5011
5012         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
5013         redundant immediate generation code.
5014
5015 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5016
5017         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
5018         (AARCH64_NUM_BITMASKS): Remove.
5019         (aarch64_bitmasks_cmp): Remove.
5020         (aarch64_build_bitmask_table): Remove.
5021
5022 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5023
5024         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
5025         slow immediate matching loops with a faster algorithm.
5026
5027 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
5028
5029         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
5030         faster algorithm.
5031
5032 2015-09-20  Jeff Law  <law@redhat.com>
5033
5034         PR tree-optimization/47679
5035         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
5036         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
5037         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
5038         (thread_through_normal_block): Use record_temporary_equivalences.
5039
5040 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
5041
5042         * coretypes.h (gimple): Change typedef to be a forward declaration.
5043         * gimple.h (gimple_statement_base): rename to gimple.
5044         * (all functions and types using gimple): Adjust.
5045         * *.[ch]: Likewise.
5046
5047 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
5048             David Edelsohn  <dje.gcc@gmail.com>
5049
5050         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
5051         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5052         (EH_FRAME_THROUGH_COLLECT2): Define.
5053         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5054         (ASM_OUTPUT_DWARF_PCREL): Define.
5055         (ASM_OUTPUT_DWARF_DATAREL): Define.
5056
5057 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
5058
5059         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
5060         of TARGET_ELF32.
5061
5062 2015-09-18  Jeff Law  <law@redhat.com>
5063
5064         PR tree-optimization/47679
5065         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
5066         it here ...
5067         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
5068         object.  Update constructor.
5069         (pass_dominator::execute):  Corresponding chagnes to declaration
5070         and initialization of avail_exprs_stack.  Update constructor call
5071         for dom_opt_dom_walker object.
5072         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
5073         it down to children as needed.
5074         (record_equivalences_from_incoming_edge): Likewise.
5075         (eliminate_redundant_computations): Likewise.
5076         (record_equivalences_from_stmt): Likewise.
5077         (simplify_stmt_for_jump_threading): Likewise.
5078         (record_temporary_equivalences): Likewise.
5079         (optimize_stmt): Likewise.
5080         (dom_opt_dom_walker::thread_across_edge): Update access to
5081         avail_exprs_stack object and pass it to children as needed.
5082         (dom_opt_dom_walker::before_dom_children): Similarly.
5083         (dom_opt_dom_walker::after_dom_children): Similarly.
5084         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5085         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5086         Add avail_expr_stack argument.  Pass it to children as needed.
5087         (dummy_simplify): Likewise.
5088         (simplify_control_stmt_condition): Likewise.
5089         (thread_around_empty_blocks): Likewise.
5090         (thread_through_normal_block): Likewise.
5091         (thread_across_edge): Likewise.
5092         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5093         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5094
5095         PR tree-optimization/47679
5096         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
5097         it here ...
5098         (dom_opt_dom_walker): New private member holding the const_and_copies
5099         object.  Update constructor.
5100         (pass_dominator::execute): Corresponding changes to declaration
5101         and initialization of const_and_copies.  Update constructor call
5102         for the dom_opt_dom_walker object.
5103         (record_temporary_equivalences): Accept const_and_copies argument
5104         pass it down to children as needed.
5105         (record_equality): Likewise.
5106         (record_equivalences_from_incoming_edge): Likewise.
5107         (cprop_into_successor_phis, optimize_stmt): Likewise.
5108         (eliminate_redundant_computations): Likewise.
5109         (dom_opt_dom_walker::thread_across_edge): Update access to
5110         const_and_copies object and pass it to children as needed.
5111         (dom_opt_dom_walker::before_dom_children): Similarly.
5112         (dom_opt_dom_walker::after_dom_children): Similarly.
5113
5114         PR tree-optimization/47679
5115         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
5116         it into the avail_exprs_stack class.
5117         (pass_dominator::execute): Corresponding changes to declaration
5118         and initialization of avail_exprs.  Pass avail_exprs to
5119         dump_dominator_optimization_stats.
5120         (record_cond): Extract avail_exprs from avail_exprs_stack.
5121         (lookup_avail_expr): Similarly.
5122         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
5123         position in file.
5124         (dump_dominator_optimization_stats): Make static and prototype.
5125         Add argument for the hash table to dump.
5126         (debug_dominator_optimization_stats): Remove.
5127         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5128         prototype.
5129         (debug_dominator_optimization_stats): Similarly.
5130         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5131         "void" in prototype for pop_to_marker method.  Add accessor method
5132         for the underlying avail_exprs table.
5133
5134         * tree-ssa-threadedge.c: Remove trailing whitespace.
5135
5136 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
5137
5138         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5139         unsigned.
5140         (pa_ldil_cint_p): Likewise.
5141         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5142         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5143         Update callers.
5144         * config/pa/pa.md: Likewise.
5145
5146 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
5147
5148         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5149         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5150         (diagnostic_show_locus): Likewise.
5151         (diagnostic_print_caret_line): Likewise.
5152         * diagnostic-show-locus.c: New file.
5153
5154 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
5155
5156         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5157         "back" parameter. Declare label in #if block.
5158
5159 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
5160
5161         PR middle-end/67619
5162         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5163         the address to a register.
5164
5165 2015-09-18  Jeff Law  <law@redhat.com>
5166
5167         PR tree-optimization/47679
5168         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5169         * tree-ssa-dom.c: Remove unnecessary header includes.
5170         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5171         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5172         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5173         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5174         (pass_phi_only_cprop::execute): Likewise.
5175         (make_pass_phi_only_cprop): Likewise.
5176         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
5177         uses of file scoped statics by passing the required objects
5178         as parameters wherever needed.
5179
5180 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
5181             David Edelsohn  <dje.gcc@gmail.com>
5182
5183         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5184         EH_FRAME_THROUGH_COLLECT2.
5185         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5186         DW_EH_PE_datarel.
5187         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5188         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
5189         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5190         * except.c (switch_to_exception_section): Use a read-only section
5191         even if EH_FRAME_SECTION_NAME is undefined.
5192         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5193         * collect2.c (write_c_file_stat): Provide dbase on AIX.
5194         (scan_prog_file): Don't export __dso_handle nor
5195         __gcc_unwind_dbase.
5196         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5197         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5198         (ASM_OUTPUT_DWARF_PCREL): Define.
5199         (ASM_OUTPUT_DWARF_DATAREL): Define.
5200         (EH_FRAME_THROUGH_COLLECT2): Define.
5201         (EH_FRAME_IN_DATA_SECTION): Delete.
5202         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5203         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5204         Declare.
5205         (rs6000_asm_output_dwarf_datarel): Declare.
5206         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5207         (rs6000_aix_asm_output_dwarf_datarel): New.
5208         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5209         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5210         (EH_FRAME_THROUGH_COLLECT2): Define.
5211         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5212         (EH_FRAME_THROUGH_COLLECT2): Define.
5213         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5214         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5215         (EH_FRAME_THROUGH_COLLECT2): New.
5216         (ASM_OUTPUT_DWARF_DATAREL): New.
5217         * doc/tm.texi: Regenerate.
5218
5219 2015-09-18  Richard Biener  <rguenther@suse.de>
5220
5221         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5222         we're in early phase.
5223         (schedule_generic_params_dies_gen): Likewise.
5224         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5225         work as possible, retaining unhandled cases.
5226         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5227         clear out generic_type_instances at the end.
5228         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5229         (dwarf2out_early_finish): ... here.  Do most of
5230         gen_remaining_tmpl_value_param_die_attribute here.
5231
5232 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
5233
5234         PR tree-optimization/67283
5235         * tree-sra.c (type_consists_of_records_p): Rename to...
5236         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5237         (completely_scalarize_record): Rename to...
5238         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5239         (scalarize_elem): New.
5240         (analyze_all_variable_accesses): Follow renamings.
5241
5242 2015-09-18  Richard Biener  <rguenther@suse.de>
5243
5244         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5245         in early-dwarf.
5246
5247 2015-09-18  Richard Biener  <rguenther@suse.de>
5248
5249         PR tree-optimization/66142
5250         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5251         treat MEM[&x] and x the same.
5252         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5253         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5254         when we simplified sth.
5255         (vn_reference_maybe_forwprop_address): Likewise.
5256         (valueize_refs_1): When we simplified through
5257         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5258         set valueized_anything to true.
5259         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5260         one ref kills the other instead of just a offset-based test.
5261         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5262         for the operand_equal_p test to compare bases and also compare
5263         sizes.
5264
5265 2015-09-17  Christian Bruel  <christian.bruel@st.com>
5266
5267         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5268
5269 2015-09-17  Richard Henderson  <rth@redhat.com>
5270
5271         PR libstdc++/65913
5272         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5273         pointers that encode the alignment of the object.
5274
5275 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5276
5277         PR rtl-optimization/66790
5278         * df-problems.c (LIVE): Amend documentation.
5279
5280 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
5281
5282         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5283         and optabs-tree.o.
5284         (GTFILES): Replace optabs.c with optabs-libfunc.c.
5285         * genopinit.c (main): Add an include guard to insn-opinit.h.
5286         Protect the rtx_code parts with NUM_RTX_CODE.
5287         * optabs.h: Split parts out to...
5288         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5289         * optabs.c: Split parts out to...
5290         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5291         * cilk-common.c: Include optabs-query.h rather than optabs.h.
5292         * fold-const.c: Likewise.
5293         * target-globals.c: Likewise.
5294         * tree-if-conv.c: Likewise.
5295         * tree-ssa-forwprop.c: Likewise.
5296         * tree-ssa-loop-prefetch.c: Likewise.
5297         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5298         Remove unncessary include files.
5299         * tree-ssa-phiopt.c: Likewise.
5300         * tree-ssa-reassoc.c: Likewise.
5301         * tree-switch-conversion.c: Likewise.
5302         * tree-vect-data-refs.c: Likewise.
5303         * tree-vect-generic.c: Likewise.
5304         * tree-vect-loop.c: Likewise.
5305         * tree-vect-patterns.c: Likewise.
5306         * tree-vect-slp.c: Likewise.
5307         * tree-vect-stmts.c: Likewise.
5308         * tree-vrp.c: Likewise.
5309         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5310         rather than optabs.h.
5311         * expr.c: Include optabs-tree.h.
5312         * function.c: Likewise.
5313
5314 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5315
5316         PR middle-end/65958
5317         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5318         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5319         * config/arm/arm.c: Include common/common-target.h.
5320         (use_return_insn): Return 0 if the static chain register was saved
5321         above a non-APCS frame.
5322         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5323         (struct scratch_reg): New.
5324         (get_scratch_register_on_entry): New function.
5325         (release_scratch_register_on_entry): Likewise.
5326         (arm_emit_probe_stack_range): Likewise.
5327         (output_probe_stack_range): Likewise.
5328         (arm_expand_prologue): Factor out code dealing with the IP register
5329         for nested function and adjust it for stack checking.
5330         Invoke arm_emit_probe_stack_range if static builtin stack checking
5331         is enabled.
5332         (thumb1_expand_prologue): Sorry out if static builtin stack checking
5333         is enabled.
5334         (arm_expand_epilogue): Add the saved static chain register, if any, to
5335         the amount of pre-pushed registers to pop.
5336         (arm_frame_pointer_required): Return true if static stack checking is
5337         enabled and we want to catch the exception with the EABI unwinder.
5338         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
5339         (UNSPEC_PROBE_STACK_RANGE): Likewise.
5340         * config/arm/arm.md (probe_stack): New insn.
5341         (probe_stack_range): Likewise.
5342
5343 2015-09-17  Richard Biener  <rguenther@suse.de>
5344
5345         * genmatch.c (parser::parse_expr): Improve error message
5346         for mis-placed flags.
5347
5348 2015-09-17  Richard Biener  <rguenther@suse.de>
5349
5350         * passes.c (rest_of_decl_compilation): Always call early_global_decl
5351         debug hook when we created a varpool node.
5352         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5353         dwarf2out_early_global_decl, when not just add location or
5354         value attributes to existing DIEs.
5355
5356 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
5357
5358         * config/aarch64/aarch64.md (copysigndf3): New.
5359         (copysignsf3): Likewise.
5360
5361 2015-09-17  David S. Miller  <davem@davemloft.net>
5362
5363         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5364         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5365         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5366         (HARD_REGNO_CALLER_SAVE_MODE): Define.
5367         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5368         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5369         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5370         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5371         provide when flag_pic.
5372
5373 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5374
5375         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5376         object_allocator change.
5377
5378 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5379
5380         PR tree-optimization/66388
5381         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5382         (dump_iv): Dump no_overflow information.
5383         (alloc_iv): Initialize new field for struct iv.
5384         (mark_bivs): Count number of no_overflow bivs.
5385         (find_deriving_biv_for_expr, record_biv_for_address_use): New
5386         functions.
5387         (idx_find_step): Call new functions above.
5388         (add_candidate_1, add_candidate): New paramter.
5389         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5390         (get_computation_aff): Simplify convertion of cand for BIV.
5391         (get_computation_cost_at): Step cand's base if necessary.
5392
5393 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5394
5395         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5396         parameter.
5397         (tree_simplify_using_condition): Ditto.
5398         (simplify_using_initial_conditions): Ditto.
5399         (loop_exits_before_overflow): Pass new argument to function
5400         simplify_using_initial_conditions.  Remove case for type conversions
5401         simplification.
5402         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5403         parameter.
5404         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5405         in iv base using loop initial conditions.
5406
5407 2015-09-16  Jeff Law  <law@redhat.com>
5408
5409         PR tree-optimization/47679
5410         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5411         (free_all_edge_infos): Use it.
5412         (allocate_edge_info): Free preexisting edge info data.
5413         (pass_dominator::execute): Set up initial edge info structures.
5414         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5415         thread_across_edge.
5416         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5417         If non-null, then push/pop markers appropriately.
5418         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5419         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5420         thread-across_edge.
5421
5422 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
5423
5424         * config/ft32/ft32.c: Fix the memory address space predicate.
5425
5426 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5427
5428         PR target/67573
5429         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5430         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5431
5432 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5433
5434         * toplev.h (check_global_declaration): Remove declaration.
5435         * toplev.c (check_global_declaration): Move to ...
5436         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5437         (analyze_functions): Update call.
5438
5439 2015-09-16  David S. Miller  <davem@davemloft.net>
5440
5441         * lra-constraints.c (simplify_operand_subreg): Do not assume that
5442         lowpart of a SUBREG has offset zero.
5443
5444 2015-09-16  Jeff Law  <law@redhat.com>
5445
5446         PR tree-optimization/47679
5447         * tree-ssa-dom.c (enum expr_kind): Moved from here to
5448         tree-ssa-scopedtables.h.
5449         (struct hashable_expr, class expr_hash_elt): Likewise.
5450         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5451         Move associated methods into tree-ssa-scopedtables.c.
5452         (avail_expr_hash, initialize_expr_from_cond): Similarly.
5453         (hashable_expr_equal_p, add_expr_commutative): Likewise.
5454         (add_hashable_expr): Likewise.
5455         (record_cond): Delete element directly.
5456         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5457         private copy ctor and assignment operator methods.
5458         (expr_elt_hasher): Inline trivial methods.
5459         (initialize_expr_from_cond): Prototype.
5460         * tree-ssa-scopedtables.c: Add necessary includes, functions and
5461         methods that were previously in tree-ssa-dom.c.  Improve various
5462         comments.
5463
5464 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
5465
5466         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5467
5468 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
5469
5470         PR bootstrap/67587
5471         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5472         fixup_partitions.
5473
5474 2015-09-16  Richard Biener  <rguenther@suse.de>
5475
5476         PR middle-end/67253
5477         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5478         location of possibly shared trees.
5479
5480 2015-09-16  Richard Biener  <rguenther@suse.de>
5481
5482         PR middle-end/67271
5483         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5484
5485 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
5486
5487         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5488         offset and size computations instead of HOST_WIDE_INT.
5489
5490 2015-09-16  Richard Biener  <rguenther@suse.de>
5491
5492         PR middle-end/67442
5493         * fold-const.c (extract_muldiv_1): Properly extend multiplication
5494         result before builting a tree via wide_int_to_tree.
5495
5496 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
5497
5498         * Makefile.in: Add memory-block.cc
5499         (pool_allocator::initialize): Use fixed block size.
5500         (pool_allocator::release): Use memory_block_pool.
5501         (pool_allocator::allocate): Likewise.
5502         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5503         object pools.
5504         * cfg.c (initialize_original_copy_tables): Likewise.
5505         * cselib.c (elt_list_pool, elt_loc_list_pool,
5506         cselib_val_pool): Likewise.
5507         * df-problems.c (df_chain_alloc): Likewise.
5508         * df-scan.c (df_scan_alloc): Likewise.
5509         * dse.c (cse_store_info_pool, rtx_store_info_pool,
5510         read_info_type_pool, insn_info_type_pool, bb_info_pool,
5511         group_info_pool, deferred_change_pool): Likewise.
5512         * et-forest.c (et_nodes, et_occurrences): Likewise.
5513         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5514         ipcp_agg_lattice_pool): Likewise.
5515         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5516         * ipa-profile.c (histogram_pool): Likewise.
5517         * ipa-prop.c (ipa_refdesc_pool): Likewise.
5518         * ira-build.c (live_range_pool, allocno_pool, object_pool,
5519         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5520         * ira-color.c (update_cost_record_pool): Likewise.
5521         * lra-lives.c (lra_live_range_pool): Likewise.
5522         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5523         * memory-block.cc: New file.
5524         * memory-block.h: New file.
5525         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5526         * sched-deps.c (sched_deps_init): Likewise.
5527         * sel-sched-ir.c (sched_lists_pool): Likewise.
5528         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5529         * tree-sra.c (access_pool): Likewise.
5530         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5531         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5532         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5533         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5534         * tree-ssa-strlen.c (strinfo_pool): Likewise.
5535         * tree-ssa-structalias.c (variable_info_pool): Likewise.
5536         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5537         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5538
5539 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5540
5541         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5542         definition.
5543         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5544         call0 ABI.
5545
5546 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5547
5548         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5549         to pass TLS call argument, according to current ABI.
5550         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5551         callx0 for TLS call, according to current ABI.
5552
5553 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5554
5555         * tree-eh.c (lower_try_finally_dup_block): Clear location information
5556         on stack restore statements.
5557         (decide_copy_try_finally): Do not consider a stack restore statement as
5558         coming from sources.
5559
5560 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
5561
5562         * config/alpha/alpha.c (alpha_expand_block_clear): Use
5563         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5564
5565 2015-09-15  Jeff Law  <law@redhat.com>
5566
5567         PR tree-optimization/47679
5568         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5569         methods and private members.
5570         (avail_exprs_stack): Similarly.  Change type of global
5571         from a pair of expr_hash_elt_t to the new class.
5572         (expr_elt_hasher::hash): Corresponding changes.
5573         (expr_elt_hasher::equal): Similarly.
5574         (avail_expr_hash): Similarly.
5575         (pass_dominator::execute): Similarly.
5576         (dom_opt_dom_walker::thread_across_edge): Similarly.
5577         (record_cond): Similarly.
5578         (dom_opt_dom_walker::before_dom_children): Similarly.
5579         (dom_opt_dom_walker::after_dom_children): Similarly.
5580         (lookup_avail_expr): Likewise.
5581         (initialize_hash_element): Now a expr_hash_elt constructor.
5582         (initialize_hash_element_from_expr): Similarly.
5583         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5584         (free_expr_hash_elt): Call dtor for the element.
5585         (remove_local_expressions_from_table): Now the "pop_to_marker"
5586         method in the available_exprs_stack class.
5587         (avail_expr_stack::record_expr): Method factored out.
5588         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5589         Fix formatting.
5590         (hashable_expr_equal_p): Fix formatting.
5591
5592 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
5593
5594         * input.h (location_get_source_line): Drop "expanded_location"
5595         param in favor of a file and line number.
5596         * input.c (location_get_source_line): Likewise.
5597         (dump_location_info): Update for change in signature of
5598         location_get_source_line.
5599         * diagnostic.c (diagnostic_print_caret_line): Likewise.
5600
5601 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5602
5603         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5604         Bump to 4KB for SJLJ exceptions.
5605         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
5606         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5607         * doc/tm.texi: Regenerate.
5608
5609 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5610
5611         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5612         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
5613         Update prototype.
5614
5615 2015-09-15  Richard Biener  <rguenther@suse.de>
5616
5617         PR tree-optimization/67470
5618         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5619         structure for PHI hoisting by inserting a forwarder block
5620         if appropriate.
5621
5622 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5623
5624         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5625         (arm_option_print): New function.
5626
5627 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5628
5629         PR target/52144
5630         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5631         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5632         Remove flags parameter.
5633         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5634         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5635         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5636         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5637         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5638         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5639         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5640         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5641
5642 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5643
5644         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5645
5646         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5647         AARCH64_VALID_SIMD_DREG_MODE.
5648
5649 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5650
5651         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5652         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5653         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5654         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5655         aarch64_ld4_lane<mode>): Combine together, making...
5656         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5657         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5658         aarch64_st4_lane<mode>): Combine together, making...
5659         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5660         * config/aarch64/iterators.md (nregs): Add comment.
5661
5662 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5663
5664         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5665         Change operand mode from <V_TWO_ELEM> to BLK.
5666         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5667         (aarch64_vec_store_lanesoi_lane<mode): Likewise
5668         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5669         (aarch64_ld2_lane<mode>): Likewise.
5670         (aarch64_st2_lane<VQ:mode>): Likewise.
5671         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5672
5673 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5674
5675         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5676         Change operand mode from <V_FOUR_ELEM> to BLK.
5677         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5678         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5679         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5680         (aarch64_ld4_lane<mode>): Likewise.
5681         (aarch64_st4_lane<mode>): Likewise.
5682         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5683
5684 2015-09-15  Richard Biener  <rguenther@suse.de>
5685
5686         PR middle-end/67563
5687         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5688         transfer EH info from old to new stmt.
5689         (replace_call_with_value): Likewise.
5690         (replace_call_with_call_and_fold): Likewise.
5691         (gimple_fold_builtin_memory_op): Likewise.
5692         (gimple_fold_builtin_memset): Likewise.
5693         (gimple_fold_builtin_stpcpy): Likewise.
5694         (gimple_fold_call): Likewise.
5695
5696 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5697
5698         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5699         comment.
5700         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5701         (aarch64_simd_intEI_type_node): Likewise.
5702         (aarch64_simd_builtin_std_type): Remove EImode case.
5703         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5704         * config/aarch64/aarch64-modes.def: Remove EImode.
5705
5706 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5707
5708         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5709         Change operand mode from <V_THREE_ELEM> to BLK.
5710         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5711         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5712         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5713         (aarch64_ld3_lane<mode>): Likewise.
5714         (aarch64_st3_lane<mode>): Likewise.
5715         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5716
5717 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5718
5719         * config/aarch64/aarch64-simd.md
5720         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5721         Change all TImode operands to BLKmode.
5722         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5723         Change all EImode operands to BLKmode.
5724         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5725         Change all OImode operands to BLKmode.
5726
5727         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5728         and call set_mem_size.
5729         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5730
5731         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5732
5733 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5734
5735         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5736         to...
5737         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5738
5739         (vec_store_lanesci_lane<mode>): Rename to...
5740         (aarch64_vec_store_lanesci_lane<mode>): ...this.
5741
5742         (vec_store_lanesxi_lane<mode>): Rename to...
5743         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5744
5745         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5746         aarch64_st4_lane<mode>): Follow renaming.
5747
5748 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5749
5750         * config/s390/s390.c (s390_const_operand_ok): Add missing
5751         brackets.
5752
5753 2015-09-15  Richard Biener  <rguenther@suse.de>
5754
5755         PR lto/67568
5756         * lto-streamer.h (lto_location_cache::current_sysp): Properly
5757         initialize.
5758         * lto-streamer-out.c (clear_line_info): Likewise.
5759
5760 2015-09-15  Richard Biener  <rguenther@suse.de>
5761
5762         * doc/match-and-simplify.texi: Fix wording.
5763
5764 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
5765
5766         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5767         unnecessary type conversion in op1.
5768
5769 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5770
5771         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5772         (dup_block_and_redirect): Delete function.
5773         (can_dup_for_shrink_wrapping): New function.
5774         (fix_fake_fallthrough_edge): New function.
5775         (try_shrink_wrapping): Rewrite function.
5776         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5777
5778 2015-09-14  Rich Felker  <dalias@libc.org>
5779
5780         * configure.ac: Change target pattern for sh TLS support
5781         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5782         * configure: Regenerate.
5783
5784 2015-09-14  Jeff Law  <law@redhat.com>
5785
5786         PR tree-optimization/47679
5787         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5788         type rather than void *.
5789
5790 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5791
5792         PR fortran/67460
5793         * diagnostic.c (diagnostic_initialize): Do not set
5794         some_warnings_are_errors.
5795         (diagnostic_finish): Use DK_WERROR count instead.
5796         (diagnostic_report_diagnostic): Do not set
5797         some_warnings_are_errors.
5798         * diagnostic.h (struct diagnostic_context): Remove
5799         some_warnings_are_errors.
5800
5801 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
5802
5803         * config/sparc/predicates.md (const_all_ones_operand): Use
5804         CONSTM1_RTX to simplify definition.
5805
5806 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
5807
5808         PR target/67061
5809         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5810         Handle call insns.
5811
5812 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
5813
5814         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5815         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5816         OPT_fshow_column to handled saved option cases.
5817         (append_compiler_options): Do not skip the above added options.
5818
5819 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5820
5821         PR target/63304
5822         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5823         nopcrelative_literal_loads.
5824         (aarch64_classify_address): Likewise.
5825         (aarch64_constant_pool_reload_icode): Define.
5826         (aarch64_secondary_reload): Handle secondary reloads for
5827         literal pools.
5828         (aarch64_override_options): Handle nopcrelative_literal_loads.
5829         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5830         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5831         Define.
5832         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5833         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5834         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5835         predicate.
5836         * doc/invoke.texi (mpc-relative-literal-loads): Document.
5837
5838 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
5839
5840         PR middle-end/67401
5841         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5842         sync_compare_and_swap_optab libcall to target_oval.
5843
5844 2015-09-14  Marek Polacek  <polacek@redhat.com>
5845
5846         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5847         value.
5848         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5849
5850 2015-09-11  Mark Wielaard  <mjw@redhat.com>
5851
5852         PR c/28901
5853         * toplev.c (check_global_declaration): Check and use
5854         warn_unused_const_variable.
5855         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5856         (-Wunused-variable): Remove non-constant. For C implies
5857         -Wunused-const-variable.
5858         (-Wunused-const-variable): New.
5859
5860 2015-09-14  Richard Biener  <rguenther@suse.de>
5861
5862         * doc/match-and-simplify.texi: Update for changed syntax
5863         of inner ifs and the new switch expression.
5864
5865 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
5866
5867         * config/i386/haswell.md: New file describing Haswell pipeline.
5868         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5869         haswell-like processors.
5870         (ix86_reassociation_width): Increase reassociation width for 64-bit
5871         Haswell processor family.
5872         * config/i386/i386.md: Introduce haswell cpu and include new md file.
5873
5874 2015-09-14  Richard Biener  <rguenther@suse.de>
5875
5876         * doc/match-and-simplify.texi: Fixup some formatting issues
5877         and document the 's' flag.
5878
5879 2015-09-13  Olivier Hainque  <hainque@adacore.com>
5880             Eric Botcazou  <ebotcazou@adacore.com>
5881
5882         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5883         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
5884         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5885         (TARGET_CPU_gr5): Likewise.
5886         (TARGET_CPU_gr6): Likewise.
5887         (MULTILIB_DEFAULTS): Likewise.
5888         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5889         for mcpu=gr5 and mcpu=gr6.
5890         (MULTILIB_DIRNAMES): Adjust accordingly.
5891
5892 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5893
5894         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5895         (mem_ref_p): Likewise.
5896         (outermost_indep_loop): Adjust.
5897         (mem_ref_in_stmt): Likewise.
5898         (determine_max_movement): Likewise.
5899         (mem_ref_alloc): Likewise.
5900         (record_mem_ref_loc): Likewise.
5901         (set_ref_stored_in_loop): Likewise.
5902         (mark_ref_stored): Likewise.
5903         (gather_mem_refs_stmt): Likewise.
5904         (mem_refs_may_alias_p): Likewise.
5905         (for_all_locs_in_loop): Likewise.
5906         (struct rewrite_mem_ref_loc): Likewise.
5907         (rewrite_mem_refs): Likewise.
5908         (struct first_mem_ref_loc_1): Likewise.
5909         (first_mem_ref_loc): Likewise.
5910         (struct sm_set_flag_if_changed): Likewise.
5911         (execute_sm_if_changed_flag_set): Likewise.
5912         (execute_sm): Likewise.
5913         (hoist_memory_references):
5914         (struct ref_always_accessed): Likewise.
5915         (ref_always_accessed_p): Likewise.
5916         (refs_independent_p): Likewise.
5917         (record_dep_loop): Likewise.
5918         (ref_indep_loop_p_1): Likewise.
5919         (ref_indep_loop_p_2): Likewise.
5920         (ref_indep_loop_p): Likewise.
5921         (can_sm_ref_p): Likewise.
5922         (find_refs_for_sm): Likewise.
5923         (tree_ssa_lim_finalize): Likewise.
5924
5925 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5926
5927         * dwarf2out.c (dw_attr_ref): Remove typedef.
5928         (dw_line_info_ref): Likewise.
5929         (pubname_ref): Likewise.
5930         (dw_ranges_ref): Likewise.
5931         (dw_ranges_by_label_ref): Likewise.
5932         (comdat_type_node_ref): Likewise.
5933         (get_AT): Adjust.
5934         (get_AT_low_pc): Likewise.
5935         (get_AT_hi_pc): Likewise.
5936         (get_AT_string): Likewise.
5937         (get_AT_flag): Likewise.
5938         (get_AT_unsigned): Likewise.
5939         (get_AT_ref): Likewise.
5940         (get_AT_file): Likewise.
5941         (remove_AT): Likewise.
5942         (print_die): Likewise.
5943         (check_die): Likewise.
5944         (die_checksum): Likewise.
5945         (attr_checksum_ordered): Likewise.
5946         (struct checksum_attributes): Likewise.
5947         (collect_checksum_attributes): Likewise.
5948         (die_checksum_ordered): Likewise.
5949         (same_die_p): Likewise.
5950         (is_declaration_die): Likewise.
5951         (clone_die): Likewise.
5952         (clone_as_declaration): Likewise.
5953         (copy_declaration_context): Likewise.
5954         (break_out_comdat_types): Likewise.
5955         (copy_decls_walk): Likewise.
5956         (output_location_lists): Likewise.
5957         (external_ref_hasher::hash): Likewise.
5958         (optimize_external_refs_1): Likewise.
5959         (build_abbrev_table): Likewise.
5960         (size_of_die): Likewise.
5961         (unmark_all_dies): Likewise.
5962         (size_of_pubnames): Likewise.
5963         (output_die_abbrevs): Likewise.
5964         (output_die): Likewise.
5965         (output_pubnames): Likewise.
5966         (add_ranges_num): Likewise.
5967         (add_ranges_by_labels): Likewise.
5968         (add_high_low_attributes): Likewise.
5969         (gen_producer_string): Likewise.
5970         (dwarf2out_set_name): Likewise.
5971         (new_line_info_table): Likewise.
5972         (prune_unused_types_walk_attribs): Likewise.
5973         (prune_unused_types_update_strings): Likewise.
5974         (prune_unused_types): Likewise.
5975         (resolve_addr): Likewise.
5976         (optimize_location_lists_1): Likewise.
5977         (index_location_lists): Likewise.
5978         (dwarf2out_finish): Likewise.
5979
5980 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5981
5982         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5983
5984 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5985
5986         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5987         (dump_asserts_for): Adjust.
5988         (register_new_assert_for): Likewise.
5989         (process_assert_insertions): Likewise.
5990         (insert_range_assertions): Likewise.
5991
5992 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5993
5994         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5995         and remove typedef.
5996         (new_temp_expr_table): Adjust.
5997         (free_temp_expr_table): Likewise.
5998         (version_to_be_replaced_p): Likewise.
5999         (make_dependent_on_partition): Likewise.
6000         (add_to_partition_kill_list): Likewise.
6001         (remove_from_partition_kill_list): Likewise.
6002         (add_dependence): Likewise.
6003         (finished_with_expr): Likewise.
6004         (process_replaceable): Likewise.
6005         (kill_expr): Likewise.
6006         (kill_virtual_exprs): Likewise.
6007         (mark_replaceable): Likewise.
6008         (find_replaceable_in_bb): Likewise.
6009         (find_replaceable_exprs): Likewise.
6010         (debug_ter): Likewise.
6011
6012 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6013
6014         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
6015         (struct btr_user): Rename from btr_user_s.
6016         (struct btr_def): Rename from btr_def_s.
6017         (find_btr_def_group): Adjust.
6018         (add_btr_def): Likewise.
6019         (new_btr_user): Likewise.
6020         (note_other_use_this_block): Likewise.
6021         (compute_defs_uses_and_gen): Likewise.
6022         (link_btr_uses): Likewise.
6023         (build_btr_def_use_webs): Likewise.
6024         (block_at_edge_of_live_range_p): Likewise.
6025         (btr_def_live_range): Likewise.
6026         (combine_btr_defs): Likewise.
6027         (move_btr_def): Likewise.
6028         (migrate_btr_def): Likewise.
6029         (migrate_btr_defs): Likewise.
6030
6031 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6032
6033         * var-tracking.c (shared_hash_def): Rename to shared_hash.
6034         (shared_hash): Remove typedef.
6035         (struct dataflow_set): Adjust.
6036         (shared_hash_unshare): Likewise.
6037         (dataflow_set_merge): Likewise.
6038         (vt_initialize): Likewise.
6039         (vt_finalize): Likewise.
6040
6041 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6042
6043         * var-tracking.c (struct location_chain): Rename from
6044         location_chain_def.
6045         (struct variable_part): Adjust.
6046         (variable_htab_free): Likewise.
6047         (unshare_variable): Likewise.
6048         (get_init_value): Likewise.
6049         (get_addr_from_local_cache): Likewise.
6050         (drop_overlapping_mem_locs): Likewise.
6051         (val_reset): Likewise.
6052         (struct variable_union_info): Likewise.
6053         (variable_union): Likewise.
6054         (find_loc_in_1pdv): Likewise.
6055         (insert_into_intersection): Likewise.
6056         (intersect_loc_chains): Likewise.
6057         (canonicalize_loc_order_check): Likewise.
6058         (canonicalize_values_mark): Likewise.
6059         (canonicalize_values_star): Likewise.
6060         (canonicalize_vars_star): Likewise.
6061         (variable_merge_over_cur): Likewise.
6062         (remove_duplicate_values): Likewise.
6063         (variable_post_merge_new_vals): Likewise.
6064         (variable_post_merge_perm_vals): Likewise.
6065         (find_mem_expr_in_1pdv): Likewise.
6066         (dataflow_set_preserve_mem_locs): Likewise.
6067         (dataflow_set_remove_mem_locs): Likewise.
6068         (variable_part_different_p): Likewise.
6069         (onepart_variable_different_p): Likewise.
6070         (find_src_set_src): Likewise.
6071         (dump_var): Likewise.
6072         (set_slot_part): Likewise.
6073         (clobber_slot_part): Likewise.
6074         (delete_slot_part): Likewise.
6075         (vt_expand_var_loc_chain): Likewise.
6076         (emit_note_insn_var_location): Likewise.
6077         (vt_finalize): Likewise.
6078
6079 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6080
6081         * dse.c (store_info_t): Remove typedef.
6082         (group_info_t): Likewise.
6083         (const_group_info_t): Likewise.
6084         (deferred_change_t): Likewise.
6085         (get_group_info): Adjust.
6086         (free_store_info): Likewise.
6087         (canon_address): Likewise.
6088         (clear_rhs_from_active_local_stores): Likewise.
6089         (record_store): Likewise.
6090         (replace_read): Likewise.
6091         (check_mem_read_rtx): Likewise.
6092         (scan_insn): Likewise.
6093         (remove_useless_values): Likewise.
6094         (dse_step1): Likewise.
6095         (dse_step2_init): Likewise.
6096         (dse_step2_nospill): Likewise.
6097         (scan_stores_nospill): Likewise.
6098         (scan_reads_nospill): Likewise.
6099         (dse_step3_exit_block_scan): Likewise.
6100         (dse_step3): Likewise.
6101         (dse_step5_nospill): Likewise.
6102         (dse_step6): Likewise.
6103
6104 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6105
6106         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6107         (alias_set_entry): Remove typedef.
6108         (alias_set_subset_of): Adjust.
6109         (alias_sets_conflict_p): Likewise.
6110         (init_alias_set_entry): Likewise.
6111         (get_alias_set): Likewise.
6112         (new_alias_set): Likewise.
6113         (record_alias_subset): Likewise.
6114
6115 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
6116
6117         * doc/install.texi (Downloading the source): Mark up
6118         contrib/download_prerequisites properly and drop leading "./".
6119
6120 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6121
6122         * config/arc/arc.h: Remove define of STRUCT_VALUE.
6123         * config/lm32/lm32.h: Likewise.
6124         * config/mep/mep.h: Likewise.
6125         * config/visium/visium.h: Likewise.
6126         * system.h: Poison STRUCT_VALUE macro.
6127
6128 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
6129
6130         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6131         CONSTANT_P operands.
6132
6133 2015-09-11  David S. Miller  <davem@davemloft.net>
6134
6135         * config/sparc/constraints.md: Make "U" constraint a real register
6136         constraint.
6137         * config/sparc/sparc.c (TARGET_LRA_P): Define.
6138         (D_MODES, DF_MODES): Add missing cast.
6139         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6140         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6141         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6142         cost to 8.
6143         * config/sparc/sparc.h (PROMOTE_MODE): Define.
6144         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6145         provide these insn when flag_pic.
6146
6147 2015-09-11  Jeff Law  <law@redhat.com>
6148
6149         PR tree-optimization/47679
6150         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6151         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6152         member with m_.  Update inline member functions as necessary.  Add
6153         toplevel comment.
6154         * tree-ssa-scopedtables.c: Update const_and_copies's member
6155         functions to use m_ prefix to access the stack.
6156
6157 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
6158
6159         * graphite-optimize-isl.c (disable_tiling): Remove.
6160         (get_schedule_for_band): Do not use disable_tiling.
6161         (get_prevector_map): Delete function.
6162         (enable_polly_vector): Remove.
6163         (get_schedule_for_band_list): Remove dead code.
6164
6165 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
6166
6167         * graphite-optimize-isl.c (get_tile_map): Refactor.
6168         (get_schedule_for_band): Same.
6169         (getScheduleForBand): Same.
6170         (get_prevector_map): Same.
6171         (get_schedule_for_band_list): Same.
6172         (get_schedule_map): Same.
6173         (get_single_map): Same.
6174         (apply_schedule_map_to_scop): Same.
6175         (optimize_isl): Same.
6176
6177 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6178
6179         PR target/63304
6180         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6181         (movtf): Delete.
6182         * config/aarch64/iterators.md (GPF_TF_F16): New.
6183         (GPF_F16): Delete.
6184
6185 2015-09-10  Nathan Sidwell  <nathan@acm.org>
6186
6187         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6188         (nvptx_reorg): Adjust comments.
6189
6190 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
6191
6192         PR bootstrap/67363
6193         * configure.ac: Check if setenv and unsetenv are declared.
6194         * configure: Rebuild.
6195         * config.in: Rebuild.
6196         * system.h: Declare setenv and unsetenv if not declared.
6197
6198 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6199
6200         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6201         commentary to simplify permute mask adjustment equation.
6202         (special_handling_values): Add SH_VPERM.
6203         (const_load_sequence_p): New function.
6204         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6205         the mask loaded from the constant pool.
6206         (adjust_vperm): New function.
6207         (handle_special_swappables): Call adjust_vperm.
6208         (dump_swap_insn_table): Handle SH_VPERM.
6209
6210 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
6211
6212         * shrink-wrap.c (requires_stack_frame_p): Remove static.
6213         * shrink-wrap.h (requires_stack_frame_p): Put back.
6214
6215 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
6216
6217         * reload1.c (elimination_costs_in_insn): Locally turn
6218         -Wmaybe-uninitialized into a warning.
6219
6220 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
6221
6222         * shrink-wrap.c (requires_stack_frame_p): Make static.
6223         (prepare_shrink_wrap): Likewise.
6224         (dup_block_and_redirect): Likewise.
6225         * shrink-wrap.h: Remove declarations of those functions.
6226
6227 2015-09-10  Mark Wielaard  <mjw@redhat.com>
6228
6229         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6230
6231 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
6232
6233         PR target/67506
6234         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6235         missing simplify_gen_subreg.
6236
6237 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6238
6239         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6240         the vector element is bigger than 64 bit.
6241
6242 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6243
6244         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6245         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6246
6247 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6248
6249         * config/s390/s390.c: Add V1TImode to constant pool modes.
6250
6251 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6252
6253         PR target/67439
6254         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6255         predicate.  Set predicable_short_it attr to "no".
6256
6257 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
6258
6259         PR rtl-optimization/67421
6260         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6261         left wide shift tranformation.
6262
6263 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
6264
6265         * common/config/arc/arc-common.c: Remove references to A5.
6266         * config/arc/arc-opts.h: Likewise.
6267         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6268         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6269         * config/arc/t-arc-newlib: Likewise.
6270
6271 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
6272
6273         * config/arc/arc.md (length): Fix attribute length for conditional
6274         executed instructions with long immediate.
6275
6276 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6277
6278         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6279         type for second alternative.
6280
6281 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
6282
6283         * doc/invoke.texi (Downloading GCC): Mention
6284         contrib/download_prerequisites script.
6285
6286 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
6287
6288         PR c++/67523
6289         * gimplify.c (gimplify_omp_for): If inner stmt is not found
6290         for combined loop, assert seen_error () and return GS_ERROR.
6291
6292         PR middle-end/67521
6293         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6294         if decl is already in outer->variables.
6295
6296         PR middle-end/67517
6297         * gimplify.c (gimplify_scan_omp_clauses): Instead of
6298         asserting that decl is not specified in octx->variables,
6299         break out of the loop if it is.
6300
6301         PR c++/67514
6302         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6303         iterator is not explicitly determined, but is defined inside
6304         of the combined workshare region, handle it like if it has
6305         DECL_EXPR in OMP_FOR_PRE_BODY.
6306
6307 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6308
6309         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6310         (*cmp<mode>): Add assembler spacing.
6311         (setcc_int<mode>, set_cc_float<mode>): Likewise.
6312         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6313         level.
6314         (write_func_decl_from_insn): Refactor argument loops & comma emission.
6315         (nvptx_expand_call): Likewise.
6316         (nvptx_output_call_insn): Likewise.
6317         (nvptx_reorg_subreg): Add spacing.
6318
6319 2015-09-09  Marek Polacek  <polacek@redhat.com>
6320
6321         PR middle-end/67512
6322         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6323         for comparisons.
6324
6325 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
6326
6327         PR c++/53184
6328         * doc/invoke.texi ([Wsubobject-linkage]): Document.
6329
6330 2015-09-09  Tom de Vries  <tom@codesourcery.com>
6331
6332         * params-list.h: Add missing copyright notice.
6333
6334 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6335
6336         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
6337         sel_truesi, not andsi.
6338
6339 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6340
6341         * config/arm/arm.md (*subsi3_compare0): Rename to...
6342         (subsi3_compare0): ... This.
6343         (modsi3): New define_expand.
6344         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
6345         when operand is power of 2.
6346
6347 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6348
6349         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6350         (*neg<mode>2_compare0): Rename to...
6351         (neg<mode>2_compare0): ... This.
6352         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6353         Move check for speed inside the if-then-elses.  Reflect
6354         CSNEG sequence in MOD by power of 2 case.
6355
6356 2015-09-09  Alan Modra  <amodra@gmail.com>
6357
6358         PR target/67378
6359         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6360         reload replacement for PRE_MODIFY address reg.
6361
6362 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
6363
6364         PR tree-optimization/53852
6365         * config.in: Regenerate.
6366         * configure: Regenerate.
6367         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6368         * graphite-optimize-isl.c (optimize_isl): Stop computation when
6369         PARAM_MAX_ISL_OPERATIONS is reached.
6370         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6371         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6372         result equal to isl_stat_ok as the status now can be isl_error_quota.
6373         (subtract_commutative_associative_deps): Same.
6374         (compute_deps): Same.
6375
6376 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
6377             Sebastian Pop  <s.pop@samsung.com>
6378
6379         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6380         Return the parameter if it was saved in corresponding
6381         parameter_rename_map of the region.
6382         (copy_def): Copy def from sese region to the newly created region.
6383         (copy_internal_parameters): Copy all the internal parameters defined
6384         within a region to the newly created region.
6385         (graphite_regenerate_ast_isl): Copy parameters to the new region before
6386         translating isl to gimple.
6387         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6388         the loop-nest does not have any data-references.
6389         (build_graphite_scops): Create a scop only when there is at least one
6390         loop inside it.
6391         (contains_only_close_phi_nodes): Deleted.
6392         (print_graphite_scop_statistics): Deleted
6393         (print_graphite_statistics): Deleted
6394         (limit_scops): Deleted.
6395         (build_scops): Removed call to limit_scops.
6396         * sese.c (new_sese): Construct.
6397         (free_sese): Destruct.
6398         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6399         added.
6400         (set_rename): Pass sese region so that parameters inside the region can
6401         be added to its parameter_rename_map.
6402         (rename_uses): Pass sese region.
6403         (graphite_copy_stmts_from_block): Do not copy parameters that have been
6404         generated in the header of the scop. For each SSA_NAME in the
6405         parameter_rename_map rename its usage.
6406         (invariant_in_sese_p_rec): Return false if tree t is defined outside
6407         sese region.
6408         (scalar_evolution_in_region): If the tree t is invariant just return t.
6409         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6410         struct sese to keep track of all the parameters which need renaming.
6411         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6412         any data-refs.
6413         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6414
6415 2015-09-08  Tom de Vries  <tom@codesourcery.com>
6416
6417         * Makefile.in (generated_files): Add params.list.
6418         (params.list, s-params.list): Add rule.
6419         * params.h (enum compiler_param): Include params-list.h.  Move define
6420         DEFPARAM, include params.def and undef DEFPARAM ...
6421         * params-list.h: ... here.  New file.
6422
6423 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
6424
6425         * pretty-print.h (printer_fn): Fix typo in comment.
6426
6427 2015-09-07  Jeff Law  <law@redhat.com>
6428
6429         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6430
6431 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6432
6433         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6434         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6435         (arm_neon_fp16_hw): New.
6436
6437 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6438
6439         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6440         UNITS_PER_WORD >= 4.
6441
6442 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6443
6444         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6445         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6446         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6447         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6448         (aarch64_float_extend_lo_v2df): Rename to...
6449         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6450
6451         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6452         (float_extend_lo): Add v4sf.
6453
6454         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6455         * config/aarch64/iterators.md (VQ_HSF): New iterator.
6456         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6457         (Vwide): New mode_attr.
6458
6459 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6460
6461         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6462         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6463         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6464         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6465         V4HF and V8HF variants to iterator.
6466
6467         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6468
6469         * config/aarch64/iterators.md (VDQF_F16): New.
6470         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6471
6472 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6473
6474         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6475         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6476         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6477         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6478         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6479         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6480         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6481         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6482         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6483         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6484         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6485         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6486         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6487         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6488         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6489         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6490         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6491         vld1q_dup_f16): New.
6492
6493 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6494
6495         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6496         Reparameterize to...
6497         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6498         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6499         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6500
6501         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6502         v8hf variant.
6503         (float_truncate_lo_): Use BUILTIN_VDF iterator.
6504
6505         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6506
6507         * config/aarch64/iterators.md (VDF, Vdtype): New.
6508         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6509
6510 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6511
6512         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6513         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6514         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6515         Add __builtin_aarch64_simd_hf.
6516         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6517         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6518         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6519         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6520         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6521         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6522         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6523         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6524         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6525
6526         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6527         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6528         (VDC, Vdbl): Add V4HF.
6529
6530 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6531
6532         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6533         V4HFmode and V8HFmode.
6534         (aarch64_split_simd_move): Add case for V8HFmode.
6535         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6536         (aarch64_simd_builtin_std_type): Handle HFmode.
6537         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6538
6539         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6540         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6541         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6542
6543         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6544         Float16x8_t.
6545
6546         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6547         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6548         New typedefs.
6549         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6550         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6551         vst1q_lane_f16): New.
6552         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6553         (VALLDI_F16, VALL_F16): New.
6554         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6555         Add cases for V4HF and V8HF.
6556         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6557
6558 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6559
6560         * config/arm/arm-builtins.c (VAR11, VAR12): New.
6561         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6562         vld4_dup): Add v4hf variant.
6563         (vget_high, vget_low): Add v8hf variant.
6564         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6565         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6566         v4hf and v8hf variants.
6567
6568         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6569         (VDX): Add V4HF.
6570         (V_DOUBLE): Add case for V4HF.
6571         (VQX): Add V8HF.
6572         (V_HALF): Add case for V8HF.
6573         (VDQX): Add V4HF, V8HF.
6574         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6575         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6576
6577         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6578         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6579         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6580         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6581         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6582         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6583         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6584         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6585         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6586
6587         (neon_vcreate, neon_vreinterpretv8qi<mode>,
6588         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6589         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6590         Change VDX to VD_RE.
6591
6592         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6593         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6594         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6595
6596         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6597         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6598         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6599         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6600         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6601         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6602         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6603         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6604         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6605
6606 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6607
6608         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6609         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6610         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6611         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6612         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6613         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6614         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6615         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6616         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6617         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6618         New.
6619
6620 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6621
6622         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6623
6624         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6625
6626         * config/arm/arm-builtins.c (v8hf_UP): New.
6627         (arm_init_simd_builtin_types): Initialise Float16x8_t.
6628
6629         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6630
6631         * config/arm/arm_neon.h (float16x8_t): New typedef.
6632
6633 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6634
6635         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6636         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6637         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6638         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6639         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6640         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6641         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6642         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6643         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6644         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6645
6646 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
6647
6648         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6649         non-alphanumeric characters in the symbol name.
6650
6651 2015-09-07  Marek Polacek  <polacek@redhat.com>
6652
6653         PR inline-asm/67448
6654         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6655         a memory input.
6656
6657 2015-09-07  Marek Polacek  <polacek@redhat.com>
6658
6659         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6660
6661 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
6662
6663         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6664         not warn.
6665
6666 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
6667
6668         PR middle-end/67452
6669         * tree-ssa-live.c: Include cfgloop.h.
6670         (remove_unused_locals): Clear loop->simduid if simduid is about
6671         to be removed from cfun->local_decls.
6672
6673 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6674
6675         PR target/65210
6676         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6677         attribute as well.
6678
6679 2015-09-04  Tom de Vries  <tom@codesourcery.com>
6680
6681         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6682
6683 2015-09-04  Jeff Law  <law@redhat.com>
6684
6685         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6686         unnecessary constructor.  It's now trivial and implemented inside...
6687         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6688         constructor.  Add comments to various methods.  Remove unused
6689         private fields.
6690         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6691         * tree-vrp.c (identify_jump_threads): Likewise.
6692         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6693         indentation issues.
6694         (thread_across_edge): Similarly.
6695         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6696         arguments in constructor call.
6697
6698 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
6699
6700         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6701         temp path contains a '-'.
6702
6703 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6704             Petr Murzin  <petr.murzin@intel.com>
6705             Kirill Yukhin  <kirill.yukhin@intel.com>
6706
6707         * config/i386/i386-builtin-types.def
6708         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6709         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6710         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6711         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6712         * config/i386/i386.c
6713         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6714         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6715         IX86_BUILTIN_SCATTERALTDIV16SI.
6716         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6717         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6718         __builtin_ia32_scatteraltdiv8si.
6719         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6720         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6721         IX86_BUILTIN_SCATTERALTDIV16SI.
6722         (ix86_vectorize_builtin_scatter): New.
6723         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6724         ix86_vectorize_builtin_scatter.
6725
6726 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6727             Petr Murzin  <petr.murzin@intel.com>
6728             Kirill Yukhin  <kirill.yukhin@intel.com>
6729
6730         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6731         * doc/tm.texi: Regenerate.
6732         * target.def: Add scatter builtin.
6733         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6734         for loads/stores in case of gather/scatter accordingly.
6735         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6736         STMT_VINFO_GATHER_P(S).
6737         (vect_check_gather): Rename to ...
6738         (vect_check_gather_scatter): this.
6739         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6740         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6741         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6742         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6743         variable and new checkings for it accordingly.
6744         * tree-vect-stmts.c
6745         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6746         STMT_VINFO_GATHER_P(S).
6747         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6748         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6749
6750 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6751
6752         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6753         define_insn.
6754         (mulv16qi3): New define_expand.
6755
6756 2015-09-03  Martin Sebor  <msebor@redhat.com>
6757
6758         PR c/66516
6759         * doc/extend.texi (Other Builtins): Document when the address
6760         of a built-in function can be taken.
6761
6762 2015-09-03  Richard Biener  <rguenther@suse.de>
6763
6764         * dwarf2out.c (flush_limbo_die_list): Split out from ...
6765         (dwarf2out_early_finish): ... here.
6766         (dwarf2out_finish): Do not call dwarf2out_early_finish but
6767         flush_limbo_die_list.  Assert we have no deferred asm names.
6768
6769 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6770
6771         * optabs.c (expand_binop): Don't create a broadcast vector with a
6772         source element wider than the inner mode.
6773
6774 2015-09-03  Richard Biener  <rguenther@suse.de>
6775
6776         * varasm.c (output_constant): Use fold_convert instead of
6777         wide_int_to_tree.
6778
6779 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6780
6781         PR tree-optimization/65637
6782         * omp-low.c (expand_omp_for_static_chunk): Handle case that
6783         fin_bb has 2 predecessors.
6784
6785 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6786
6787         PR tree-optimization/65637
6788         * omp-low.c (find_phi_with_arg_on_edge): New function.
6789         (expand_omp_for_static_chunk): Fix inner loop phi.
6790
6791 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6792
6793         PR tree-optimization/65637
6794         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6795         that head is NULL.
6796
6797 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6798
6799         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6800
6801 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6802
6803         * doc/invoke.texi (parloops-chunk-size): Add item.
6804         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6805         * tree-parloops.c: Include params.h.
6806         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6807         param parloops-chunk-size is used.
6808
6809 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6810
6811         PR middle-end/67351
6812         * fold-const.c (fold_binary_loc) : Move
6813         Transform (x >> c) << c into x & (-1<<c) or
6814         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6815         types using simplify and match.
6816         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6817         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6818
6819 2015-09-03  Richard Biener  <rguenther@suse.de>
6820
6821         PR ipa/66705
6822         * tree-ssa-structalias.c (ctor_for_analysis): New function.
6823         (create_variable_info_for_1): Use ctor_for_analysis instead
6824         of get_constructor.
6825         (create_variable_info_for): Likewise.
6826
6827 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
6828
6829         PR ipa/67280
6830         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6831         in new callgraph edge.
6832
6833 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
6834
6835         PR target/59810
6836         PR target/63652
6837         PR target/63653
6838         * config/aarch64/aarch64-simd.md
6839         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6840         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6841         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6842         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6843
6844 2015-09-02  Alan Modra  <amodra@gmail.com>
6845
6846         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6847         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6848         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6849
6850 2015-09-02  Alan Modra  <amodra@gmail.com>
6851
6852         PR target/67417
6853         * config/rs6000/predicates.md (current_file_function_operand): Don't
6854         return true for weak symbols.
6855         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6856
6857 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
6858             Andrew Bennett  <andrew.bennett@imgtec.com>
6859
6860         * config/mips/mips-opts.h (mips_cb_setting): New enum.
6861         * config/mips/mips-protos.h: Add definitions for
6862         mips_output_jump and mips_output_equal_conditional_branch
6863         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6864         JIC instruction.
6865         (mips_emit_compare): Add support for the MIPS R6 conditional
6866         compact branches.
6867         (mips_process_sync_loop): Likewise.
6868         (mips_output_order_conditional_branch): Likewise.
6869         (mips16_build_call_stub): Change MIPS_CALL to
6870         mips_output_jump.
6871         (mips_print_operand_punctuation): Update 's' case to only
6872         apply to micromips r2.
6873         (mips_adjust_insn_length): Add support for forbidden slot
6874         hazards.
6875         (mips_avoid_hazard): Likewise.
6876         (mips_reorg_process_insns): Likewise.
6877         (mips_output_jump): New function.
6878         (mips_output_equal_conditional_branch): Likewise.
6879         (mips_output_conditional_branch): Use jrc/bc if compact
6880         branch support is enabled.  Ensure the forbidden slots
6881         between the two branch instructions is filled with a nop.
6882         (mips_option_override): Add support to process the compact
6883         branch option and set the correct defaults.  Prevent
6884         non-explict relocs being using for MIPS R6.
6885         (mips_trampoline_init): Add compact branch support.
6886         (mips_mult_zero_zero_cost): Allow zero initialisation of
6887         accumulators with TARGET_DSP.
6888         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6889         (TARGET_CB_MAYBE): New define.
6890         (TARGET_CB_ALWAYS): New define.
6891         (ISA_HAS_DELAY_SLOTS): New define.
6892         (ISA_HAS_COMPACT_BRANCHES): New define.
6893         (ISA_HAS_JRC): New define.
6894         (MIPS_BRANCH_C): New define.
6895         (MIPS_CALL): Removed.
6896         (MICROMIPS_J): Removed.
6897         * config/mips/mips.md (compact_form): New attr.
6898         (hazard): Add support for forbidden slots.
6899         (define_delay): Add support for compact branches.
6900         (*branch_order<mode>): Likewise.
6901         (*branch_order<mode>_inverted): Likewise.
6902         (*branch_equality<mode>): Likewise.
6903         (*branch_equality<mode>_inverted): Likewise.
6904         (*jump_absolute): Likewise.
6905         (*jump_pic): Likewise.
6906         (indirect_jump): Use mips_output_jump to produce assembly output.
6907         (tablejump_<mode>"): Likewise.
6908         (*<optab>"): Likewise.
6909         (<optab>_internal): Likewise.
6910         (sibcall_internal): Likewise.
6911         (sibcall_value_internal): Likewise.
6912         (sibcall_value_multiple_internal): Likewise.
6913         (call_internal): Likewise.
6914         (call_split): Likewise.
6915         (call_internal_direct): Likewise.
6916         (call_direct_split): Likewise.
6917         (call_value_internal): Likewise.
6918         (call_value_split): Likewise.
6919         (call_value_internal_direct): Likewise.
6920         (call_value_direct_split): Likewise.
6921         (call_value_multiple_internal): Likewise.
6922         (call_value_multiple_split): Likewise.
6923         (mips_get_fcsr_mips16_<mode>): Likewise.
6924         (mips_set_fcsr_mips16_<mode>): Likewise.
6925         (tls_get_tp_mips16_<mode>): Likewise.
6926         * config/mips/mips.opt: Add -mcompact-branches option.
6927         * config/mips/predicates.md (order_operator): Ensure the
6928         conditional compact branches are only used if the ISA them.
6929         * doc/invoke.texi: Document -mcompact-branches option.
6930
6931 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
6932
6933         PR target/61578
6934         * lra-lives.c (process_bb_lives): Process move pseudos with the
6935         same value for copies and preferences
6936         * lra-constraints.c (match_reload): Create match reload pseudo
6937         with the same value from single dying input pseudo.
6938
6939 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6940
6941         PR target/67405
6942         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6943
6944 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
6945
6946         * trans-mem.c: Add contributed-by.
6947         * trans-mem.h: Same.
6948
6949 2015-09-01  Richard Biener  <rguenther@suse.de>
6950
6951         * expr.c (expand_expr_real_1): For expanding TERed defs
6952         set the current location to that of the def if not UNKNOWN.
6953
6954 2015-09-01  David Sherwood  <david.sherwood@arm.com>
6955
6956         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6957
6958 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6959
6960         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6961         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
6962         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6963         Include rtl-iter.h.
6964         (noce_simple_bbs): New function.
6965         (noce_try_move): Bail if basic blocks are not simple.
6966         (noce_try_store_flag): Likewise.
6967         (noce_try_store_flag_constants): Likewise.
6968         (noce_try_addcc): Likewise.
6969         (noce_try_store_flag_mask): Likewise.
6970         (noce_try_cmove): Likewise.
6971         (noce_try_minmax): Likewise.
6972         (noce_try_abs): Likewise.
6973         (noce_try_sign_mask): Likewise.
6974         (noce_try_bitop): Likewise.
6975         (bbs_ok_for_cmove_arith): New function.
6976         (noce_emit_all_but_last): Likewise.
6977         (noce_emit_insn): Likewise.
6978         (noce_emit_bb): Likewise.
6979         (noce_try_cmove_arith): Handle non-simple basic blocks.
6980         (insn_valid_noce_process_p): New function.
6981         (contains_mem_rtx_p): Likewise.
6982         (bb_valid_for_noce_process_p): Likewise.
6983         (noce_process_if_block): Allow non-simple basic blocks
6984         where appropriate.
6985
6986 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
6987
6988         * tree-ssa-dom.c (record_equivalences_from_phis,
6989         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6990         (lookup_avail_expr): Likewise, and remove comment and unused temp.
6991
6992 2015-09-01  Nick Clifton  <nickc@redhat.com>
6993
6994         * config/msp430/msp430.opt (mcpu): Fix typo.
6995
6996 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6997
6998         * config/aarch64/aarch64.c (aarch64_set_current_function):
6999         Re-layout any vector parameters have non-simd layout.
7000         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
7001         Delete.
7002         (aarch64_simd_expand_args): Delete call to the above.
7003
7004 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
7005
7006         * doc/invoke.texi (asan-stack): Add space before option.
7007
7008 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
7009
7010         * tree.h (zerop): New function.
7011         * tree.c (zerop): Likewise.
7012         (element_precision): Handle expressions.
7013         * match.pd (define_predicates): Add zerop.
7014         (x <= +Inf): Fix comment.
7015         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
7016         * fold-const.c (fold_binary_loc): ... here. Remove.
7017
7018 2015-08-31  Richard Biener  <rguenther@suse.de>
7019
7020         PR middle-end/67381
7021         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
7022
7023 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
7024
7025         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
7026         (CEXPI): New operator list.
7027         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
7028         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
7029         Converted from ...
7030         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
7031
7032 2015-08-31  Tom de Vries  <tom@codesourcery.com>
7033
7034         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
7035         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
7036         parameter.
7037         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
7038         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
7039         (rewrite_into_loop_closed_ssa): ... here.
7040         (replace_uses_in_dominated_bbs): Remove function.
7041         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
7042         rewrite_into_loop_closed_ssa_1.
7043
7044 2015-08-31  Michael Matz  <matz@suse.de>
7045
7046         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
7047         enter entry and exit blocks for reverse post order.
7048
7049 2015-08-31  Richard Biener  <rguenther@suse.de>
7050
7051         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
7052         (lto_location_cache::current_sysp): Likewise.
7053         (output_block::current_sysp): Likewise.
7054         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
7055         (lto_location_cache::apply_location_cache): Properly record
7056         system header locations.
7057         (lto_location_cache::input_location): Input whether a file
7058         is a system header.
7059         * lto-streamer-out.c (lto_output_location): Stream whether a file
7060         is a system header.
7061
7062 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7063
7064         PR bootstrap/67363
7065         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
7066
7067 2015-08-31  Tom de Vries  <tom@codesourcery.com>
7068
7069         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
7070         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
7071         Improve function header comments.
7072
7073 2015-08-30  Michael Collison  <michael.collison@linaro.org>
7074
7075         PR other/67320
7076         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7077         standard names
7078
7079 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7080
7081         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7082         special_handling bitfield.
7083         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7084         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7085         that represents a general xxpermdi.
7086         (insn_is_swappable_p): Add handling for vec_concat of two
7087         doublewords, which maps to a specific xxpermdi.
7088         (adjust_xxpermdi): New function.
7089         (adjust_concat): Likewise.
7090         (handle_special_swappables): Call adjust_xxpermdi and
7091         adjust_concat.
7092         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7093
7094 2015-08-30  Rich Felker <dalias@libc.org>
7095
7096         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7097         case instead of sh[123456ble]-*-*.
7098
7099 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
7100
7101         * ira.c (print_unform_and_important_classes,
7102         print_translated_classes): Remove reg_class_names static array.
7103         (print_unform_and_important_classes): Rename to ...
7104         (print_uniform_and_important_classes): ... this.
7105         (ira_debug_allocno_classes): Update accordingly.
7106
7107 2015-08-29  Tom de Vries  <tom@codesourcery.com>
7108
7109         PR tree-optimization/46193
7110         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7111         clause.
7112
7113 2015-08-28  Jeff Law  <law@redhat.com>
7114
7115         PR lto/66752
7116         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7117         unable to find X NE 0 in the tables, return X as the simplified
7118         condition.
7119         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7120         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
7121         to VISISTED_BBS.
7122         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7123         after removing the control flow statement and unnecessary edges.
7124
7125 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
7126
7127         Revert:
7128         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7129
7130         PR tree-optimization/67283
7131         * tree-sra.c (type_consists_of_records_p): Rename to...
7132         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7133
7134         (completely_scalarize_record): Rename to...
7135         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7136         code to:
7137         (scalarize_elem): New.
7138
7139 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
7140
7141         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7142         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7143         (aarch64_symbol_type): Likewise.
7144         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7145         Likewise.
7146         (aarch64_expand_mov_immediate): Likewise.
7147         (aarch64_print_operand): Likewise.
7148         (aarch64_classify_tls_symbol): Likewise.
7149
7150 2015-08-28  Richard Biener  <rguenther@suse.de>
7151
7152         * cgraphunit.c (symbol_table::compile): Move early debug generation
7153         and finish...
7154         (symbol_table::finalize_compilation_unit): ... back here and
7155         add a !seen_error () guard.
7156
7157 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7158
7159         * toplev.c (process_options): Do not use flag_loop_block,
7160         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
7161         flag_loop_optimize_isl.
7162
7163 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7164
7165         * Makefile.in (OBJS): Remove graphite-blocking.o and
7166         graphite-interchange.o.
7167         * common.opt (floop-strip-mine, floop-interchange, floop-block):
7168         Alias of floop-nest-optimize.
7169         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7170         Document as alias of -floop-nest-optimize.
7171         * graphite-blocking.c: Remove.
7172         * graphite-interchange.c: Remove.
7173         * graphite-optimize-isl.c: Include dumpfile.h.
7174         (getScheduleForBand): Add dump for tiled loops.  Use
7175         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7176         * graphite-poly.c (scop_max_loop_depth): Remove.
7177         (print_scattering_function_1): Remove.
7178         (print_scattering_function): Remove.
7179         (print_scattering_functions): Remove.
7180         (debug_scattering_function): Remove.
7181         (debug_scattering_functions): Remove.
7182         (apply_poly_transforms): Remove use of flag_loop_block,
7183         flag_loop_strip_mine, and flag_loop_interchange.
7184         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7185         PBB_ORIGINAL.
7186         (print_pdr_access_layout): Remove.
7187         (print_pdr): Print ISL representation.
7188         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7189         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7190         (free_scop): Same.
7191         (openscop_print_pbb_domain): Remove.
7192         (print_pbb): Remove call to print_scattering_function.
7193         (openscop_print_scop_context): Remove.
7194         (print_scop_context): Do not print matrices anymore.
7195         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7196         SCOP_TRANSFORMED_SCHEDULE.
7197         (print_isl_set): Add printing of a new line.
7198         (print_isl_map): Same.
7199         (print_isl_aff): Same.
7200         (print_isl_constraint): Same.
7201         (loop_to_lst): Remove.
7202         (scop_to_lst): Remove.
7203         (lst_indent_to): Remove.
7204         (print_lst): Remove.
7205         (debug_lst): Remove.
7206         (dot_lst_1): Remove.
7207         (dot_lst): Remove.
7208         (reverse_loop_at_level): Remove.
7209         (reverse_loop_for_pbbs): Remove.
7210         * graphite-poly.h (pdr_dim_iter_domain): Remove.
7211         (pdr_nb_params): Remove.
7212         (pdr_alias_set_dim): Remove.
7213         (pdr_subscript_dim): Remove.
7214         (pdr_iterator_dim): Remove.
7215         (pdr_parameter_dim): Remove.
7216         (same_pdr_p): Remove.
7217         (struct poly_scattering): Remove.
7218         (struct poly_bb): Remove _original, _transformed, _saved.
7219         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7220         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7221         (PBB_NB_LOCAL_VARIABLES): Remove.
7222         (PBB_NB_SCATTERING_TRANSFORM): Remove.
7223         (schedule_to_scattering): Remove.
7224         (number_of_write_pdrs): Remove.
7225         (pbb_dim_iter_domain): Remove.
7226         (pbb_nb_params): Remove.
7227         (pbb_nb_scattering_orig): Remove.
7228         (pbb_nb_scattering_transform): Remove.
7229         (pbb_nb_dynamic_scattering_transform): Remove.
7230         (pbb_nb_local_vars): Remove.
7231         (pbb_iterator_dim): Remove.
7232         (pbb_parameter_dim): Remove.
7233         (psco_scattering_dim): Remove.
7234         (psct_scattering_dim): Remove.
7235         (psct_local_var_dim): Remove.
7236         (psco_iterator_dim): Remove.
7237         (psct_iterator_dim): Remove.
7238         (psco_parameter_dim): Remove.
7239         (psct_parameter_dim): Remove.
7240         (psct_dynamic_dim): Remove.
7241         (psct_static_dim): Remove.
7242         (psct_add_local_variable): Remove.
7243         (new_lst_loop): Remove.
7244         (new_lst_stmt): Remove.
7245         (free_lst): Remove.
7246         (copy_lst): Remove.
7247         (lst_add_loop_under_loop): Remove.
7248         (lst_depth): Remove.
7249         (lst_dewey_number): Remove.
7250         (lst_dewey_number_at_depth): Remove.
7251         (lst_pred): Remove.
7252         (lst_succ): Remove.
7253         (lst_find_pbb): Remove.
7254         (find_lst_loop): Remove.
7255         (lst_find_first_pbb): Remove.
7256         (lst_empty_p): Remove.
7257         (lst_find_last_pbb): Remove.
7258         (lst_contains_p): Remove.
7259         (lst_contains_pbb): Remove.
7260         (lst_create_nest): Remove.
7261         (lst_remove_from_sequence): Remove.
7262         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7263         (lst_niter_for_loop): Remove.
7264         (pbb_update_scattering): Remove.
7265         (lst_update_scattering_under): Remove.
7266         (lst_update_scattering): Remove.
7267         (lst_insert_in_sequence): Remove.
7268         (lst_replace): Remove.
7269         (lst_substitute_3): Remove.
7270         (lst_distribute_lst): Remove.
7271         (lst_remove_all_before_including_pbb): Remove.
7272         (lst_remove_all_before_excluding_pbb): Remove.
7273         (struct scop): Remove original_schedule, transformed_schedule, and
7274         saved_schedule.
7275         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7276         (SCOP_SAVED_SCHEDULE): Remove.
7277         (poly_scattering_new): Remove.
7278         (poly_scattering_free): Remove.
7279         (poly_scattering_copy): Remove.
7280         (store_scattering_pbb): Remove.
7281         (store_lst_schedule): Remove.
7282         (restore_lst_schedule): Remove.
7283         (store_scattering): Remove.
7284         (restore_scattering_pbb): Remove.
7285         (restore_scattering): Remove.
7286         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7287         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
7288         compute the scattering polyhedron dimension from the dimension of
7289         pbb->domain.
7290         (build_scop_scattering): Update call to
7291         build_pbb_scattering_polyhedrons.
7292         (build_poly_scop): Remove call to scop_to_lst.
7293         * graphite.c (graphite_transform_loops): Add call to print_scop.
7294         (gate_graphite_transforms): Remove use of flag_loop_block,
7295         flag_loop_interchange, and flag_loop_strip_mine.
7296
7297 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7298
7299         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7300         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7301         -floop-nest-optimize.
7302         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7303         (generate_luj_sepclass): Remove.
7304         (generate_luj_options): Remove.
7305         (set_options): Remove opt_luj.
7306         (scop_to_isl_ast): Remove opt_luj.
7307         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7308         flag_loop_unroll_jam.
7309         (getPrevectorMap_full): Remove.
7310         (getScheduleForBandList): Remove map_sepcl.
7311         (getScheduleMap): Same.
7312         (apply_schedule_map_to_scop): Remove sepcl.
7313         (optimize_isl): Same.
7314         * graphite-poly.c (apply_poly_transforms): Remove check for
7315         flag_loop_unroll_jam.
7316         (new_poly_bb): Remove map_sepclass.
7317         * graphite-poly.h (struct poly_bb): Same.
7318         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7319         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7320         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7321         * toplev.c (process_options): Remove flag_loop_unroll_jam.
7322
7323 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
7324
7325         PR target/67317
7326         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
7327         (addqi3_cc): Ditto.
7328         (UNSPEC_ADD_CARRY): Remove.
7329         (addqi3_cconly_overflow): New expander.
7330         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
7331         Adjust for changed add<mode>3_carry.
7332         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
7333         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
7334         (<plusminus_insn><mode>3_carry): Remove expander.
7335         (*<plusminus_insn><mode>3_carry): Split insn pattern to
7336         add<mode>3_carry and sub<mode>3_carry.
7337         (plusminus_carry_mnemonic): Remove code attribute.
7338         (add<mode>3_carry): Canonicalize insn pattern.
7339         (*addsi3_carry_zext): Ditto.
7340         (sub<mode>3_carry): Ditto.
7341         (*subsi3_carry_zext): Ditto.
7342         (adcx<mode>3): Remove insn pattern.
7343         (addcarry<mode>): New insn pattern.
7344         (subborrow<mode>): Ditto.
7345         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
7346         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7347         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7348         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7349         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7350         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7351         Rewrite expander to not clobber carry flag chains.
7352
7353 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
7354
7355         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7356         instead of a rotate.
7357
7358 2015-08-27  Marek Polacek  <polacek@redhat.com>
7359
7360         PR middle-end/67005
7361         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7362         an entry into an irreducible region.
7363
7364 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7365
7366         * configure: Regenerate.
7367
7368 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7369
7370         PR tree-optimization/67283
7371         * tree-sra.c (type_consists_of_records_p): Rename to...
7372         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7373
7374         (completely_scalarize_record): Rename to...
7375         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7376         (scalarize_elem): New.
7377
7378 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7379
7380         * tree-sra.c (completely_scalarize_var): Rename to...
7381         (create_total_scalarization_access): ... Here. Drop call to
7382         completely_scalarize_record.
7383
7384         (analyze_all_variable_accesses): Replace completely_scalarize_var
7385         with create_total_scalarization_access and completely_scalarize_record.
7386
7387 2015-08-27  Alan Modra  <amodra@gmail.com>
7388
7389         PR target/67356
7390         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7391         for operand 1.
7392
7393 2015-08-27  Richard Biener  <rguenther@suse.de>
7394
7395         * passes.c (rest_of_decl_compilation): Guard early_global_decl
7396         call with !seen_error ().
7397         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7398         early debug generation and finish...
7399         (symbol_table::compile): ... here to put it after a !seen_error ()
7400         guard.
7401
7402 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7403
7404         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7405         Solaris 12+.
7406
7407 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7408             Andre Vieira  <andre.simoesdiasvieira@arm.com>
7409
7410         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7411         (*cb<optab><mode>1): Likewise.
7412         (*tb<optab><mode>1): Likewise.
7413         (*cb<optab><mode>1): Likewise.
7414         * config/aarch64/iterators.md (inv_cb): New code attribute.
7415         (inv_tb): Likewise.
7416         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7417         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7418
7419 2015-08-27  Richard Biener  <rguenther@suse.de>
7420
7421         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7422
7423 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7424
7425         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7426         trap to fix ICE.
7427
7428 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7429
7430         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7431         Add declaration.
7432
7433         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7434         comment.
7435         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7436         floating point in VSX registers.
7437         (rs6000_output_move_128bit): Always print out the set insn if we
7438         can't generate an appropriate 128-bit move.
7439         (rs6000_generate_compare): Add support for IEEE 128-bit floating
7440         point in VSX registers comparisons.
7441         (rs6000_expand_float128_convert): Likewise.
7442
7443         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7444         predicate for only GPR hard registers.
7445
7446         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7447         modes to iterators. Add new iterators for moving 128-bit values in
7448         scalar FPR registers and VSX registers.
7449         (FMOVE128): Likewise.
7450         (FMOVE128_FPR): Likewise.
7451         (FMOVE128_GPR): Likewise.
7452         (FMOVE128_VSX): Likewise.
7453         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7454         in VSX registers.
7455         (IFKF): Likewise.
7456         (IBM128): Likewise.
7457         (TFIFKF): Likewise.
7458         (RELOAD): Add IEEE 128-bit floating point modes.
7459         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7460         floating point in VSX registers modes.
7461         (signbit<mode>2, IBM128 iterator): Likewise.
7462         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7463         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7464         (negtf2): Likewise.
7465         (neg<mode>2, TFIFKF iterator): Likewise.
7466         (negtf2_internal): Likewise.
7467         (abstf2): Likewise.
7468         (abs<mode>2, TFIFKF iterator): Likewise.
7469         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7470         VSX insn support for negate, absolute value, and negative absolute
7471         value.
7472         (ieee_128bit_vsx_neg<mode>2): Likewise.
7473         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7474         (ieee_128bit_vsx_abs<mode>2): Likewise.
7475         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7476         (ieee_128bit_vsx_nabs<mode>2): Likewise.
7477         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7478         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7479         floating point in VSX registers.
7480         (unpack<mode>_dm): Likewise.
7481         (unpack<mode>_nodm): Likewise.
7482         (pack<mode>): Likewise.
7483         (unpackv1ti): Likewise.
7484         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7485         (packv1ti): Likewise.
7486         (pack<mode>, FMOVE128_VSX iterator): Likewise.
7487         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7488         registers.
7489         (extenddftf2_internal): Likewise.
7490         (trunctfdf2): Likewise.
7491         (trunctfdf2_internal2): Likewise.
7492         (fix_trunc_helper): Likewise.
7493         (fix_trunctfdi2"): Likewise.
7494         (floatditf2): Likewise.
7495         (floatuns<mode>tf2): Likewise.
7496         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7497         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7498         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7499         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7500         (float<SDI:mode><IFKF:mode>2): Likewise.
7501         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7502
7503 2015-08-26  Renlin Li  <renlin.li@arm.com>
7504
7505         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7506
7507 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7508             Jiong Wang  <jiong.wang@arm.com>
7509
7510         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7511         (tlsie_tiny_<mode>): New define_insn.
7512         (tlsie_tiny_sidi): Likewise.
7513         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7514         SYMBOL_TINY_TLSIE.
7515         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7516         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7517         SYMBOL_TINY_TLSIE.
7518         (aarch64_expand_mov_immediate): Likewise.
7519         (aarch64_print_operand): Likewise.
7520         (arch64_classify_tls_symbol): Likewise.
7521
7522 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7523
7524         * config/arm/arm-arches.def: Replace single value flags with
7525         an initializer built from ARM_FSET_MAKE_CPU1.
7526         * config/arm/arm-cores.def: Likewise.
7527         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7528         derivation from the ARM_CORE macro definition, use the given value
7529         instead.
7530         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7531         ARM_ARCH macro definition, use the given value instead.
7532
7533 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7534
7535         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7536         feature set.
7537         (struct builtin_description): Replace field mask with field
7538         features.
7539         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7540         (IWMMXT2_BUILTIN): Likewise.
7541         (IWMMXT2_BUILTIN2): Likewise.
7542         (FP_BUILTIN): Likewise.
7543         (CRC32_BUILTIN): Likewise.
7544         (CRYPTO_BUILTIN): Likewise.
7545         (iwmmx_mbuiltin): Likewise.
7546         (iwmmx2_mbuiltin): Likewise.
7547         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7548         struct builtin_description.
7549
7550 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7551
7552         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7553         (struct builtin_description): Change type of mask to unsigned
7554         long.
7555         * config/arm/arm-protos.h (insn_flags): Declare as type
7556         arm_feature_set.
7557         (tune_flags): Likewise.
7558         * config/arm/arm.c (feature_count): New.
7559         (insn_flags): Define as type arm_feature_set.
7560         (tune_flags): Likewise.
7561         (struct processors): Define field flags as type arm_feature_set.
7562         (all_cores): Update for change to struct processors.
7563         (all_architectures): Likewise.
7564         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7565         macros.
7566         (arm_option_override_internal): Likewise.
7567         (arm_option_override): Likewise.
7568
7569 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7570             Jiong Wang  <jiong.wang@arm.com>
7571
7572         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7573         tls size for tiny, small, large memory model.
7574         (aarch64_load_symref_appropriately): Support new symbol types.
7575         (aarch64_expand_mov_immediate): Likewise.
7576         (aarch64_print_operand): Likewise.
7577         (aarch64_classify_tls_symbol): Likewise.
7578         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7579         (aarch64_symbol_type): Likewise.
7580         * config/aarch64/aarch64.md (tlsle): Deleted.
7581         (tlsle12_<mode>): New define_insn.
7582         (tlsle24_<mode>): Likewise.
7583         (tlsle32_<mode>): Likewise.
7584         (tlsle48_<mode>): Likewise.
7585         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7586         "aarch64_tlsle32".
7587
7588 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7589
7590         * config/arm/arm-protos.h (FL_NONE): New.
7591         (FL_ANY): New.
7592         (arm_feature_set): New.
7593         (ARM_FSET_MAKE): New.
7594         (ARM_FSET_MAKE_CPU1): New.
7595         (ARM_FSET_MAKE_CPU2): New.
7596         (ARM_FSET_CPU1): New.
7597         (ARM_FSET_CPU2): New.
7598         (ARM_FSET_EMPTY): New.
7599         (ARM_FSET_ANY): New.
7600         (ARM_FSET_HAS_CPU1): New.
7601         (ARM_FSET_HAS_CPU2): New.
7602         (ARM_FSET_HAS_CPU): New.
7603         (ARM_FSET_ADD_CPU1): New.
7604         (ARM_FSET_ADD_CPU2): New.
7605         (ARM_FSET_DEL_CPU1): New.
7606         (ARM_FSET_DEL_CPU2): New.
7607         (ARM_FSET_UNION): New.
7608         (ARM_FSET_INTER): New.
7609         (ARM_FSET_XOR): New.
7610         (ARM_FSET_EXCLUDE): New.
7611         (AFM_FSET_IS_EMPTY): New.
7612         (ARM_FSET_CPU_SUBSET): New.
7613
7614 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7615
7616         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7617         SYMBOL_TLSLE to SYMBOL_TLSLE24.
7618         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7619         Likewise.
7620         (aarch64_expand_mov_immediate): Likewise.
7621         (aarch64_print_operand): Likewise.
7622         (aarch64_classify_symbol): Likewise.
7623
7624 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7625
7626         * config/aarch64/aarch64.opt (mtls-size): New entry.
7627         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7628         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7629         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7630
7631 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7632
7633         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7634         ARM_CORE entry.  Fix some white-space.
7635         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7636         ARM_CORE definition.
7637
7638 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7639
7640         * fold-const.c (fold_binary_loc) : Move Optimize
7641         root(x)*root(y) as root(x*y) to match.pd.
7642         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7643         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7644         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7645         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7646         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7647         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7648         (mult (exps:s @0) (exps:s @1)) : New simplifier.
7649         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7650         (rdiv @0 (exps:s @1)) : New simplifier.
7651
7652 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
7653
7654         * gcc.c (driver::finalize): Only assign to extra_specs if
7655         [EXTRA_SPECS].
7656
7657 2015-08-25  Marek Polacek  <polacek@redhat.com>
7658
7659         PR middle-end/67330
7660         * varasm.c (declare_weak): Return after giving an error.
7661
7662 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
7663
7664         * gcc-main.c (main): Add params to driver ctor.
7665         * gcc.c (class env_manager): New.
7666         (env): New global.
7667         (env_manager::init): New.
7668         (env_manager::get): New.
7669         (env_manager::xput): New.
7670         (env_manager::restore): New.
7671         Poison getenv and putenv.
7672         (DEFAULT_TARGET_SYSTEM_ROOT): New.
7673         (target_system_root): Update initialization to use
7674         DEFAULT_TARGET_SYSTEM_ROOT.
7675         (struct spec_list): Add field "default_ptr".
7676         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7677         (init_spec): Likewise.
7678         (set_spec): Clear field "default_ptr".
7679         (read_specs): Free "spec" and "buffer".
7680         (xputenv): Reimplement in terms of env_manager.
7681         (process_command): Replace ::getenv calls with calls to the
7682         env_manager singleton.
7683         (process_brace_body): Free string in three places.
7684         (driver::driver): New.
7685         (driver::~driver): New.
7686         (used_arg): Convert from a function to...
7687         (class used_arg_t): ...this class, and...
7688         (used_arg): ...this new global instance.
7689         (used_arg_t::finalize): New function.
7690         (getenv_spec_function): Add "const" to local "value".  Replace
7691         ::getenv call with call to the env_manager singleton.
7692         (path_prefix_reset): New function.
7693         (driver::finalize): New function.
7694         * gcc.h (driver::driver): New.
7695         (driver::~driver): New.
7696         (driver::finalize): New.
7697
7698 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7699
7700         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7701         target doesn't have one.
7702
7703 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7704
7705         PR target/67346
7706         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7707
7708 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7709
7710         PR target/67344
7711         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7712         a define_insn, remove second alternative.
7713
7714 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
7715             Joseph Myers  <joseph@codesourcery.com>
7716
7717         * gcc.c (struct switchstr): Expand comment.
7718
7719 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7720
7721         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7722         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7723
7724 2015-08-25  Richard Biener  <rguenther@suse.de>
7725
7726         PR middle-end/67306
7727         * genmatch.c (expr::gen_transform): Verify the result of
7728         builtin_decl_implicit.
7729         (dt_simplify::gen_1): Likewise.
7730
7731 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7732
7733         * config/arm/constraints.md: Also list Cs and US ARM-specific
7734         constraints as used.
7735
7736 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7737
7738         PR target/66609
7739         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7740         UNSPEC_PCREL.
7741         (nonpic_symbol_mentioned_p): Likewise.
7742         (sh_delegitimize_address): Likewise.
7743         (sh_function_ok_for_sibcall): Take into account weak symbols.
7744         (sh_expand_sym_label2reg): New.
7745         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7746         * config/sh/sh.md (UNSPEC_PCREL): New enum.
7747         (call_pcrel): Use sh_expand_sym_label2reg.
7748         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7749         (symPCREL_label2reg) New expand.
7750
7751 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7752
7753         * graphite-poly.c: Change type of region from void* to sese.
7754         * graphite-poly.h (struct scop): Changing the type of scop::region
7755         from void* to sese. Change accessor macro accordingly.
7756         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7757
7758 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7759
7760         * graphite-scop-detection.c (stmt_simple_for_scop_p):
7761         Constrain only on INTEGER_TYPE.
7762
7763 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7764
7765         PR target/67211
7766         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7767         -mefficient-unaligned-vsx on ISA 2.7.
7768
7769         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7770         option to a masked option.
7771
7772         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7773         logic for -mefficient-unaligned-vsx so that it is set via an arch
7774         ISA option, instead of being set if -mtune=power8 is set. Move
7775         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7776         near other default option handling.
7777
7778 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7779
7780         * genflags.c (gen_macro): Delete.
7781         (gen_proto): Don't create GEN.*CALL.* macros.
7782         * gensupport.h (get_file_location): Declare.
7783         * gensupport.c (rtx_locs): New variable.
7784         (read_md_rtx): Record rtx locations.
7785         (get_file_location): New function.
7786         * target-insns.def (call, call_pop, call_value, call_value_pop)
7787         (sibcall, sibcall_value): New patterns.
7788         * gentarget-def.c (parse_argument): New function.
7789         (def_target_insn): Use it.  Handle optional operands.  Raise an
7790         error if an .md pattern has the wrong number of operands for the
7791         pattern name.  Remove the names of unused operands from the prototype.
7792         * builtins.c (expand_builtin_apply): Use targetm functions
7793         instead of HAVE_call_value and GEN_CALL_VALUE.
7794         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
7795         and sibcall_value_pop.
7796         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7797         of GEN_CALL.
7798         * config/alpha/alpha.md (untyped_call): Likewise.
7799         * config/iq2000/iq2000.md (untyped_call): Likewise.
7800         * config/m68k/m68k.md (untyped_call): Likewise.
7801         * config/mips/mips.md (untyped_call): Likewise.
7802         * config/pa/pa.md (untyped_call): Likewise.
7803         * config/rs6000/rs6000.md (untyped_call): Likewise.
7804         * config/sparc/sparc.md (untyped_call): Likewise.
7805         * config/tilegx/tilegx.md (untyped_call): Likewise.
7806         * config/tilepro/tilepro.md (untyped_call): Likewise.
7807         * config/visium/visium.md (untyped_call): Likewise.
7808         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7809         gen_call_value instead of GEN_CALL_VALUE.
7810         * config/arm/arm.md (untyped_call): Likewise.
7811         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7812         GEN_CALL.
7813
7814 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7815
7816         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7817         (have_cbranchcc4): New variable.
7818         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7819         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7820         (if_convert): Initialize have_cbranchcc4.
7821
7822 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7823
7824         * builtins.c (expand_cmpstrn): Rename to...
7825         (expand_cmpstrn_or_cmpmem): ...this.
7826         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7827         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7828         Remove mode argument.
7829         (expand_builtin): Update accordingly.
7830
7831 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7832
7833         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7834         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
7835         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7836         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7837         Add predicates for operands 0 and 3.
7838         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7839         operand.
7840         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7841         immediate_operand to nonmemory_operand.
7842
7843 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7844
7845         * df-scan.c (df_insn_info_init_fields): New function, split out
7846         from...
7847         (df_insn_create_insn_record): ...here.
7848         (df_insn_info_free_fields): New function, split out from...
7849         (df_insn_info_delete): ...here.
7850         (df_insn_rescan): Use the new functions instead of freeing and
7851         reallocating the df_insn_info.
7852
7853 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7854
7855         * doc/install.texi (Binaries): Remove links no longer valid.
7856
7857 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7858
7859         * config/nvptx/mkoffload.c (process): Replace
7860         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7861
7862 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
7863
7864         PR target/67329
7865         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7866
7867 2015-08-24  Renlin Li  <renlin.li@arm.com>
7868
7869         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7870         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7871         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7872         * config/arm/constraints.md ("j"): Add check for high code.
7873
7874 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7875
7876         PR tree-optimization/65468
7877         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7878         chunk_size is one.
7879
7880 2015-08-24  Nathan Sidwell  <nathan@acm.org>
7881
7882         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7883         change to nvptx_type_from_mode call. Use arg_promotion for both
7884         split and non-split args.
7885
7886 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7887
7888         * target-insns.def (movstr): New pattern.
7889         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7890         (expand_movstr): Use targetm rather than HAVE_movstr/
7891         CODE_FOR_movstr.
7892
7893 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7894
7895         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7896         cast syntax.
7897
7898 2015-08-24  Andrew Pinski  <apinski@cavium.com>
7899
7900         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7901         AARCH64_EXTRA_TUNING_OPTION.
7902         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7903         New enum.
7904         (aarch64_extra_tuning_flags): Base the shifted value on the index
7905         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7906         * config/aarch64/aarch64.c: Remove the last argument to
7907         AARCH64_EXTRA_TUNING_OPTION.
7908
7909 2015-08-23  Nathan Sidwell  <nathan@acm.org>
7910
7911         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7912         decls.
7913         (nvptx_declare_function_name): Insert formatting tabs for
7914         consistency.
7915
7916 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7917
7918         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7919         parm_decl, rather than generating a dummy default def in cfun.
7920         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
7921         ssa_name from cfun and child_fn do not share a stmt as def stmt.
7922         (move_stmt_op): Handle PARM_DECl.
7923         (gather_ssa_name_hash_map_from): New function.
7924         (move_sese_region_to_fn): Add default defs for function params, and add
7925         them to vars_map.  Release copied ssa names.
7926         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7927
7928 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7929
7930         * doc/sourcebuild.texi: Rename vect_no_int_max with
7931         vect_no_int_min_max.  Update description.
7932
7933 2015-08-22  Andrew Pinski  <apinski@cavium.com>
7934
7935          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7936         * config/aarch64/aarch64-protos.h
7937         (aarch64_fusion_pairs_index): New enum.
7938         (aarch64_fusion_pairs): Base the shifted value on the index instead
7939         Rewrite AARCH64_FUSE_ALL to be based on the end index.
7940         of the argument to AARCH64_FUSION_PAIR.
7941         * config/aarch64/aarch64.c: Remove the last argument to
7942         AARCH64_FUSION_PAIR.
7943
7944 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
7945
7946         * dominance.c (new_zero_array): Define.
7947         (dom_info): Redefine as class with proper encapsulation.
7948         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7949         Add new members.
7950         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
7951         allocations/deallocations.  Pass function as parameter (instead of
7952         using cfun).
7953         (dom_info::get_idom): Define accessor method.
7954         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7955         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
7956         (calculate_dominance_info): Adjust to use dom_info class.
7957         (verify_dominators): Likewise.
7958
7959 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
7960
7961         * print-rtl.c (print_rtx): Check the correct range for
7962         flag_dump_unnumbered_links to behave as documented.
7963
7964         PR rtl-optimization/67227
7965         PR rtl-optimization/64164
7966         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7967         (nonoverlapping_memrefs_p): Test offsets and sizes when given
7968         identical gimple_reg exprs.
7969
7970 2015-08-21  Nathan Sidwell  <nathan@acm.org>
7971
7972         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7973         expansion.
7974         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7975         crtl->stack_alignment_needed to determine alignment.
7976         (nvptx_get_drap_rtx): New.
7977         (TARGET_GET_DRAP_RTX): Override.
7978         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7979
7980 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7981
7982         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7983
7984 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7985
7986         * configure.ac: Remove uwin* cases.
7987         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7988         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7989         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7990         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7991         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7992         i[34567]86-*-uwin*, powerpc-*-beos*.
7993
7994 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
7995
7996         * gencodes.c (gencodes): Print the comma for the preceding
7997         enum value rather than the current one.  Use aliased enum values
7998         rather than #defines for compiled-out patterns.
7999         (main): Update accordingly.  Replace LAST_INSN_CODE with
8000         NUM_INSN_CODES.
8001         * lra.c (insn_code_data): Update accordingly.
8002         (finish_insn_code_data_once, get_static_insn_data): Likewise.
8003         * recog.h (target_recog): Likewise.
8004         (preprocess_insn_constraints): Change parameter to unsigned int.
8005         * recog.c (preprocess_insn_constraints): Likewise.
8006         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
8007         * tree-vect-stmts.c (vectorizable_operation): Simplify.
8008
8009 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8010
8011         PR rtl-optimization/61657
8012         * loop-iv.c (iv_number_of_iterations): Declare up and down as
8013         unsigned.  Remove superflous uint64_t cast.
8014
8015 2014-08-21  Felix Yang  <felix.yang@huawei.com>
8016             Jiji Jiang  <jiangjiji@huawei.com>
8017
8018         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
8019         argument and get builtin function code directly from CALL.
8020         (gimple_stringop_fixed_value): Modified accordingly.
8021         (gimple_stringops_transform, gimple_stringops_values_to_profile):
8022         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
8023
8024 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8025
8026         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
8027
8028 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8029
8030         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
8031         to match.pd.
8032         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
8033         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
8034         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
8035         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
8036         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
8037         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
8038         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
8039         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
8040         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
8041         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
8042
8043         * match.pd (SIN ) : New Operator.
8044         (TAN) : New Operator.
8045         (mult (SQRT@1 @0) @1) : New simplifier.
8046         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
8047         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8048         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8049         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
8050         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
8051         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
8052         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
8053         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
8054         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
8055         (rdiv @0 (POW:s @1 @2)) : New simplifier.
8056
8057 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
8058
8059         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
8060         loop if EXPR is simplified to const value.
8061
8062 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
8063
8064         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8065         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
8066
8067 2015-08-21  Richard Biener  <rguenther@suse.de>
8068
8069         PR middle-end/67285
8070         * gimple-fold.c (replace_stmt_with_simplification): Assert
8071         seq is empty when replacing a call with itself but different
8072         arguments.
8073         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8074         a call require that it is const.
8075
8076 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8077
8078         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8079         * builtins.c (get_object_alignment_2): Adjust.
8080         * varasm.c (align_variable): Likewise.
8081         (get_variable_align): Likewise.
8082         (build_constant_desc): Likewise.
8083         (force_const_mem): Likewise.
8084         * doc/tm.texi.in: Likewise.
8085         * doc/tm.texi: Regenerate.
8086
8087 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8088
8089         * genconfig.c (main): Always define HAVE_cc0.
8090         * recog.c (rest_of_handle_peephole2): Adjust.
8091
8092 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8093
8094         * reorg.c (relax_delay_slots): Don't use #if to check value of
8095         HAVE_cc0.
8096
8097 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8098
8099         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8100         * targhooks.c (default_have_conditional_execution): Adjust.
8101
8102 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
8103
8104         * rtl.h (rtvec_all_equal_p): Declare.
8105         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8106         * rtl.c (rtvec_all_equal_p): New function.
8107         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8108         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8109         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8110         * config/arm/arm.c (neon_vdup_constant): Likewise.
8111         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8112         * config/tilegx/constraints.md (W, Y): Likewise.
8113         * config/tilepro/constraints.md (W, Y): Likewise.
8114         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8115         (classify_immediate): Use unwrap_const_vec_duplicate.
8116         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8117         (reg_or_v2s8bit_operand): Likewise.
8118         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8119         (reg_or_v4s8bit_operand): Likewise.
8120
8121 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8122
8123         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8124         (vec_shasigma_be): New #define.
8125         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8126         (VPMSUMH): Likewise.
8127         (VPMSUMW): Likewise.
8128         (VPMSUMD): Likewise.
8129         (VPMSUM): New BU_P8V_OVERLOAD_2.
8130         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8131         entries for VEC_MADD and VEC_VPMSUM.
8132
8133 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
8134
8135         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8136         Multiply argument avr_n_flash by 64 to match unit of "KiB".
8137         (avr_pgm_check_var_decl): Same.
8138
8139 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
8140
8141         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8142         initialization of HFmode scalar type (float16_t) to...
8143         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8144         code.
8145
8146         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8147
8148         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8149         having an -mfp16-format.
8150
8151 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
8152
8153         * config/i386/predicates.md (vector_all_ones_operand): Use
8154         CONSTM1_RTX to simplify definition.
8155
8156 2015-08-20  Richard Biener  <rguenther@suse.de>
8157
8158         * toplev.c (compile_file): Remove loop calling late_global_decl
8159         on all symbols.
8160         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8161         on decls we assembled.
8162
8163 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
8164
8165         * common/config/aarch64/aarch64-common.c
8166         (AARCH64_CPU_NAME_LENGTH): Delete.
8167         (aarch64_option_extension): New.
8168         (all_extensions): Likewise.
8169         (processor_name_to_arch): Likewise.
8170         (arch_to_arch_name): Likewise.
8171         (all_cores): New.
8172         (all_architectures): Likewise.
8173         (aarch64_get_extension_string_for_isa_flags): Likewise.
8174         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8175         architecture names.
8176         * config/aarch64/aarch64-protos.h
8177         (aarch64_get_extension_string_for_isa_flags): New.
8178         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8179         (aarch64_option_print): Get the string to print from
8180         aarch64_get_extension_string_for_isa_flags.
8181         (aarch64_declare_function_name): Likewise.
8182         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8183         (MCPU_TO_MARCH_SPEC): This.
8184         (ASM_CPU_SPEC): Use it.
8185         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8186         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8187         (EXTRA_SPEC_FUNCTIONS): Use it.
8188
8189 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
8190
8191         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8192         expansion when !ISA_HAS_LWL_LWR.
8193         (mips_block_move_straight): Update the size of elements copied to
8194         account for alignment when !ISA_HAS_LWL_LWR.
8195         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8196
8197 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8198
8199         * expr.c (expand_expr_real_2): Check gimple statement during
8200         LSHIFT_EXPR expand.
8201
8202 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
8203
8204         * common.opt (fstack-protector): Initialize to -1.
8205         (fstack-protector-all): Likewise.
8206         (fstack-protector-strong): Likewise.
8207         (fstack-protector-explicit): Likewise.
8208         * configure.ac: Add --enable-default-ssp.
8209         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
8210         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8211         -1.
8212         * doc/install.texi: Document --enable-default-ssp.
8213         * config.in: Regenerated.
8214         * configure: Likewise.
8215
8216 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
8217
8218         PR rtl-optimization/64164
8219         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8220         (parm_in_stack_slot_p): ... this.  Disregard mode, what
8221         matters is whether the parm will live in a pseudo or a stack
8222         slot.
8223         (expand_one_ssa_partition): Deal with params without a default
8224         def.  Disregard mode.
8225         * cfgexpand.h: Renamed function declaration.
8226         * tree-ssa-coalesce.c: Adjust.
8227         * function.c (split_complex_args): Allocate stack slot for
8228         unassigned parms before splitting.
8229         (parm_in_unassigned_mem_p): New.  Use it instead of
8230         parm_maybe_byref_p throughout this file.
8231         (assign_parm_setup_block): Use it.  Accept pseudos in the
8232         expand-assigned rtl.
8233         (assign_parm_setup_reg): Drop BLKmode requirement.
8234         (assign_parm_setup_stack): Allocate and fill in the address of
8235         unassigned MEM parms.
8236
8237 2015-08-19  David Sherwood  <david.sherwood@arm.com>
8238
8239         * genmodes.c (emit_mode_unit_size_inline): New function.
8240         (emit_mode_unit_precision_inline): New function.
8241         (emit_insn_modes_h): Emit new #define.  Emit new functions.
8242         (emit_mode_unit_size): New function.
8243         (emit_mode_unit_precision): New function.
8244         (emit_mode_adjustments): Add mode_unit_size adjustments.
8245         (emit_insn_modes_c): Emit new arrays.
8246         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8247         use new inline methods.
8248
8249 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8250
8251         * config/aarch64/aarch64.c (bit_count): Delete prototype
8252         and definition.
8253         (aarch64_print_operand): Use popcount_hwi instead of the above.
8254
8255 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8256
8257         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8258         comment.
8259
8260 2015-08-19  Marek Polacek  <polacek@redhat.com>
8261
8262         PR middle-end/67133
8263         * gimple-ssa-isolate-paths.c
8264         (insert_trap_and_remove_trailing_statements): Rename to ...
8265         (insert_trap): ... this.  Don't remove trailing statements; split
8266         block instead.
8267         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8268
8269 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
8270
8271         PR other/67042
8272         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8273         conditionalize the whole on __GNUC__.  Add fallback code
8274         depending neither on undefined nor implementation-defined behaviour.
8275
8276 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8277
8278         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8279         whitespaces with tab.
8280
8281 2015-08-19  Florian Weimer  <fweimer@redhat.com>
8282
8283         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8284         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8285         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8286         Move Name_Ids instantiation to the Prj.Proc package, to avoid
8287         trampolines.
8288
8289 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8290
8291         * config/arm/arm.c (bounds_check): Use %wd print format
8292         for HOST_WIDE_INT arguments.
8293
8294 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
8295
8296         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8297         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8298         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8299         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8300         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8301         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8302         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8303         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8304         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8305         typedefs.
8306
8307 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
8308
8309         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8310         function.c, graphite-scop-detection.c, haifa-sched.c,
8311         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8312         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8313         varasm.c: Remove typedefs of structs.
8314
8315 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8316
8317         * config/rs6000/altivec.h (vec_adde): New define.
8318         (vec_addec): Likewise.
8319         (vec_double): Likewise.
8320         (vec_bperm): Likewise.
8321         (vec_gb): Likewise.
8322         * config/rs6000/rs6000-builtin.def (ADDE): New
8323         BU_ALTIVEC_OVERLOAD_3.
8324         (ADDEC): Likewise.
8325         (DOUBLE): New BU_VSX_OVERLOAD_1.
8326         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
8327         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
8328         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
8329         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
8330         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
8331         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
8332         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
8333         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
8334         and P8V_BUILTIN_VEC_VBPERMQ.
8335
8336 2015-08-18  Jason Merrill  <jason@redhat.com>
8337
8338         * print-tree.c (print_node): Handle TREE_BINFO.
8339
8340 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8341
8342         PR middle-end/36757
8343         * builtins.c (expand_builtin_signbit): Add asserts to make sure
8344         we can expand BUILT_IN_SIGNBIT inline.
8345         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
8346         * doc/extend.texi: Document the type-generic __builtin_signbit.
8347
8348 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
8349
8350         PR rtl-optimization/67218
8351         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8352         (simplify_unary_operation_1): Use it.
8353
8354 2015-08-18  Marek Polacek  <polacek@redhat.com>
8355
8356         PR middle-end/67222
8357         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8358         if the call isn't valid.
8359         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8360         gimple_call_builtin_p.
8361         (call_may_clobber_ref_p_1): Likewise.
8362         (stmt_kills_ref_p): Likewise.
8363
8364 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
8365
8366         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8367         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8368         (mips_hard_regno_scratch_ok): Likewise.
8369         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8370         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8371
8372 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
8373
8374         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8375         (determine_value_range): Call refine_value_range_using_guard for
8376         each loop initial condition to improve value range.
8377
8378 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
8379
8380         * config/i386/i386.c: Remove include of fibheap.h.
8381
8382 2015-08-17  Richard Biener  <rguenther@suse.de>
8383
8384         PR tree-optimization/67221
8385         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8386         (sccvn_dom_walker::before_dom_children): Mark backedges of
8387         non-executable blocks as not executable.
8388
8389 2015-08-17  David Sherwood  <david.sherwood@arm.com>
8390
8391         * config/arm/arm.c (neon_element_bits): Replace call to
8392         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8393         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8394         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8395         (neon_vdup_lane<mode>): Likewise.
8396         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8397         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8398         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8399         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8400         * config/spu/spu.c (arith_immediate_p): Likewise.
8401         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8402         * expr.c (expand_expr_real_2): Likewise.
8403         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8404         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8405         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8406         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8407         New variable.
8408         * fold-const.c (fold_binary_loc): Replace call to
8409         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8410         GET_MODE_UNIT_PRECISION (m).
8411
8412 2015-08-17  Mike Stump  <mikestump@comcast.net>
8413
8414         * config/arm/arm.c (arm_block_move_unaligned_straight):
8415         Emit normal move instead of unaligned load when source or destination
8416         are appropriately aligned.
8417
8418 2015-08-17  Richard Biener  <rguenther@suse.de>
8419             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8420
8421         PR middle-end/16107
8422         * match.pd (div (coss (op @0) : New simplifier.
8423
8424 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
8425
8426         PR rtl-optimization/64164
8427         PR bootstrap/66978
8428         PR middle-end/66983
8429         PR rtl-optimization/67000
8430         PR middle-end/67034
8431         PR middle-end/67035
8432         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8433         * tree-ssa-copyrename.c: Removed.
8434         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8435         -ftree-coalesce-vars.
8436         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8437         * common.opt (ftree-copyrename): Ignore.
8438         (ftree-coalesce-inlined-vars): Likewise.
8439         * doc/invoke.texi: Remove the ignored options above.
8440         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8441         * tree-ssa-coalesce.h: ... here.
8442         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8443         headers required by it.
8444         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8445         across variables when flag_tree_coalesce_vars.  Check register
8446         use and promoted modes to allow coalescing.  Do not coalesce
8447         maybe-byref parms with SSA_NAMEs of other variables, or
8448         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
8449         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8450         with its member functions to tree-ssa-coalesce.c.
8451         (var_map_base_init): Likewise.  Renamed to
8452         compute_samebase_partition_bases.
8453         (partition_view_normal): Drop want_bases parameter.
8454         (partition_view_bitmap): Likewise.
8455         * tree-ssa-live.h: Adjust declarations.
8456         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8457         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8458         default defs at the entry point.
8459         (dump_part_var_map): New.
8460         (compute_optimized_partition_bases): New, called by...
8461         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8462         of compute_samebase_partition_bases.  Adjust.
8463         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8464         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8465         (ssa_default_def_partition): New.
8466         (get_rtl_for_parm_ssa_default_def): New.
8467         (align_local_variable, add_stack_var): Support anonymous SSA
8468         names.
8469         (defer_stack_allocation): Likewise.  Declare earlier.
8470         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8471         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8472         Do no record deferred-allocation marker in
8473         SA.partition_to_pseudo.
8474         (expand_stack_vars): Adjust check for the marker in it.
8475         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8476         redundant MEM attr setting.
8477         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8478         from...
8479         (expand_one_stack_var): ... this.  New wrapper to check and
8480         skip already expanded SSA partitions.
8481         (record_alignment_for_reg_var): New, factored out of...
8482         (expand_one_var): ... this.
8483         (expand_one_ssa_partition): New.
8484         (adjust_one_expanded_partition_var): New.
8485         (expand_one_register_var): Check and skip already expanded SSA
8486         partitions.
8487         (expand_used_vars): Don't create DECLs for anonymous SSA
8488         names.  Expand all SSA partitions, then adjust all SSA names.
8489         (pass::execute): Replace the loops that set
8490         SA.partition_to_pseudo from partition leaders and cleared
8491         DECL_RTL for multi-location variables, and that which used to
8492         rename vars and set attrs, with one that clears DECL_RTL and
8493         checks that PARMs and RESULTs default_defs match DECL_RTL.
8494         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8495         * emit-rtl.c: Include stor-layout.h.
8496         (set_reg_attrs_for_parm): Handle NULL decl.
8497         (set_reg_attrs_for_decl_rtl): Take mode from expression if
8498         it's not a DECL.
8499         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8500         rather than its possibly-NULL DECL.
8501         * explow.c (promote_ssa_mode): New.
8502         * explow.h (promote_ssa_mode): Declare.
8503         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8504         (read_complex_part): Export.
8505         * expr.h (read_complex_part): Declare.
8506         * cfgexpand.h (parm_maybe_byref_p): Declare.
8507         * function.c: Include cfgexpand.h.
8508         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8509         (use_register_for_parm_decl): Wrapper for the above to
8510         special-case the result_ptr.
8511         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8512         (split_complex_args): Take assign_parm_data_all argument.
8513         Pass it to rtl_for_parm.  Set up rtl and context for split
8514         args.  Reset complex parm before fetching its default decl
8515         rtl.
8516         (assign_parms_unsplit_complex): Use the default-def complex
8517         parm rtl if it matches the components.
8518         (assign_parms_augmented_arg_list): Adjust.
8519         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8520         multiple locations.  Recognize split complex args.
8521         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8522         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8523         (assign_parm_setup_block): Prefer SSA-assigned location, and
8524         fill in its address if the memory location of a maybe-byref
8525         parm was not assigned by cfgexpand.
8526         (assign_parm_setup_reg): Likewise.  Adjust its mode as
8527         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
8528         sure passed_pointer parms don't need conversion.  Copy address
8529         or value as needed.
8530         (assign_parm_setup_stack): Prefer SSA-assigned location.
8531         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8532         rtl before testing for pointer bounds.  Special-case result_ptr.
8533         (expand_function_start): Maybe reset DECL_RTL of result.
8534         Prefer SSA-assigned location for result and static chain.
8535         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
8536         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
8537         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8538         anonymous SSA names.  Use promote_ssa_mode.
8539         (get_temp_reg): Likewise.
8540         (remove_ssa_form): Adjust.
8541         * stor-layout.c (layout_decl): Don't set mem attributes of
8542         non-MEMs.
8543         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8544         and get its reg_usage for reg invalidation.
8545         (compute_bb_dataflow): Pass it insn.
8546         (emit_notes_in_bb): Likewise.
8547
8548 2015-08-14  Marek Polacek  <polacek@redhat.com>
8549
8550         * tree-core.h (tree_base): Fix typo.
8551
8552 2015-08-14  Marek Polacek  <polacek@redhat.com>
8553
8554         PR middle-end/67133
8555         * gimple.c (infer_nonnull_range_by_attribute): Check that the
8556         nonnull argument position is not outside function arguments.
8557
8558 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
8559
8560         PR target/67143
8561         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8562         'lconst_atomic' with 'const_atomic'.
8563         (atomic_fetch_<optab><mode>): Likewise.
8564         (atomic_<optab>_fetch<mode>): Likewise.
8565         * config/aarch64/iterators.md (lconst-atomic): Move below
8566         'const_atomic'.
8567         (const_atomic): New.
8568
8569 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
8570             Bernd Schmidt  <bernds@codesourcery.com>
8571
8572         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8573         debug options.
8574         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8575         (DWARF2_DEBUGGING_INFO): Don't define.
8576         * debug.h (dwarf2_lineno_debug_hooks): Declare.
8577         * toplev.c (process_options): Add a case for it.
8578         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8579         (dwarf2out_init): Skip most initializations if
8580         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8581         case.
8582         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8583         DWARF2_LINENO_DEBUGGING_INFO.
8584         * opts.c (set_debug_level): Likewise.
8585
8586 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
8587
8588         * config/arm/types.md (is_neon_type): Add missing types.
8589
8590 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
8591
8592         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8593         for skylake.
8594         * config/i386/i386.c (PTA_SKYLAKE): New macros.
8595         (processor_alias_table): Add skylake description.
8596         (enum processor_model): Add skylake processor.
8597         (arch_names_table): Add skylake record.
8598         * doc/invoke.texi: Add skylake item.
8599
8600 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
8601
8602         * ira-int.h: Include recog.h.
8603         * ira-build.c: Don't include recog.h.
8604         * ira-color.c: Likewise.
8605         * ira-conflicts.c: Likewise.
8606         * ira-costs.c: Likewise.
8607         * ira-emit.c: Likewise.
8608         * ira-lives.c: Likewise.
8609         * ira.c: Likewise.
8610         * sched-deps.c: Likewise.
8611         * sel-sched.c: Likewise.
8612         * target-globals.c: Likewise.
8613
8614 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8615
8616         PR bootstrap/55035
8617         * reload1.c (elimination_costs_in_insn): Make it obvious to the
8618         compiler that the n_dups and n_operands loop bounds are invariant.
8619
8620 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8621
8622         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8623         expressions in A and B.
8624
8625 2015-08-13  Richard Biener  <rguenther@suse.de>
8626
8627         * tree.c (nonnull_arg_p): Move from ...
8628         * tree-vrp.c (nonnull_arg_p): ... here.
8629         * tree.h (nonnull_arg_p): Declare.
8630         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8631         here, register ptr != 0 for nonnull_arg_p pointer arguments.
8632         Properly initialize static chain and by-reference result pointer.
8633         (run_scc_vn): Adjust.
8634
8635 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8636
8637         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8638         TUNE_I6400.
8639
8640 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8641
8642         * config/aarch64/aarch64-protos.h
8643         (aarch64_gen_atomic_cas): Declare.
8644         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8645         Choose appropriate instruction pattern for the target.
8646         (aarch64_gen_atomic_cas): New.
8647         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8648         (atomic_compare_and_swap<mode>_1): Rename to
8649         aarch64_compare_and_swap<mode>.  Fix some indentation.
8650         (aarch64_compare_and_swap<mode>_lse): New.
8651         (aarch64_atomic_cas<mode>): New.
8652
8653 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8654
8655         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8656         (TARGET_LSE): New.
8657
8658 2015-08-13  Richard Biener  <rguenther@suse.de>
8659
8660         PR tree-optimization/67191
8661         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8662         assert we value-numbered last stmts operand because it can validly
8663         trigger for unreachable code.
8664
8665 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8666
8667         PR rtl-optimization/67103
8668         * ifcvt.c (noce_try_store_flag_constants): Move
8669         x = (-(test != 0) & (b - a)) + a transformation to...
8670         (noce_try_cmove): ... Here.  Try it if normal conditional
8671         move fails.
8672
8673 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8674
8675         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8676         pseudo-processors.
8677         * config/mips/mips.md (processor): Remove w32 and w64.
8678
8679 2015-08-13  Richard Biener  <rguenther@suse.de>
8680
8681         PR tree-optimization/66502
8682         PR tree-optimization/67167
8683         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8684         backedge arguments.
8685         (vn_phi_lookup): Adjust.
8686         (vn_phi_insert): Likewise.
8687         (visit_phi): Prefer to value-number to another PHI node
8688         over value-numbering to a PHI argument.
8689         (init_scc_vn): Mark DFS back edges.
8690
8691 2015-08-13  Richard Biener  <rguenther@suse.de>
8692
8693         * gimple.h (gcall::code_): New constant static member.
8694         (gcond::code_): Likewise.
8695         * gimple.c (gcall::code_): Define.
8696         (gcond::code_): Likewise.
8697         (is_a_helper <const gcond *>): Add.
8698         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8699         and forward to a new gcall overload with less checking and a
8700         cheaper way to access the operand.
8701         (gimple_call_lhs_ptr): Likewise.
8702         (gimple_call_set_lhs): Likewise.
8703         (gimple_call_internal_p): Likewise.
8704         (gimple_call_with_bounds_p): Likewise.
8705         (gimple_call_set_with_bounds): Likewise.
8706         (gimple_call_internal_fn): Likewise.
8707         (gimple_call_set_ctrl_altering): Likewise.
8708         (gimple_call_ctrl_altering_p): Likewise.
8709         (gimple_call_fntype): Likewise.
8710         (gimple_call_fn): Likewise.
8711         (gimple_call_fn_ptr): Likewise.
8712         (gimple_call_set_fndecl): Likewise.
8713         (gimple_call_fndecl): Likewise.
8714         (gimple_call_chain): Likewise.
8715         (gimple_call_num_args): Likewise.
8716         (gimple_call_arg): Likewise.
8717         (gimple_call_arg_ptr): Likewise.
8718         (gimple_call_set_arg): Likewise.
8719         (gimple_call_noreturn_p): Likewise.
8720         (gimple_cond_code): Likewise.
8721         (gimple_cond_lhs): Likewise.
8722         (gimple_cond_rhs): Likewise.
8723         (gimple_has_lhs): Reduce checking.
8724
8725 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8726
8727         PR middle-end/25529
8728         * match.pd (div (mult @0 @1) @1) : New simplifier.
8729
8730 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8731
8732         PR target/67071
8733         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8734         predicate to allow construction of vector constants using the
8735         VSLDOI vector shift instruction.
8736
8737         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8738         declaration.
8739
8740         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8741         the number of bytes to be shifted left and filled in with either
8742         all zero or all one bits.
8743         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8744         methods exist.
8745         (output_vec_const_move): On power8, generate XXLORC to generate
8746         a vector constant with all 1's. Do a split if we need to use a
8747         VSLDOI instruction.
8748
8749         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8750         properly test for the MSB.
8751
8752         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8753         vector constants that can be created with VSLDOI.
8754
8755 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8756
8757         revert:
8758         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8759         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8760         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8761         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8762         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8763         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8764         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8765         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8766         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8767
8768 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
8769
8770         * config/xtensa/constraints.md (define_constraint "Y"): New
8771         constraint.
8772         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8773         * config/xtensa/linux.h (ASM_SPEC): Likewise.
8774         * config/xtensa/predicates.md (move_operand): Match constants
8775         and symbols in the presence of TARGET_AUTO_LITPOOLS.
8776         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8777         immediate references to TLS data.
8778         (xtensa_emit_move_sequence): Don't force constants to memory in
8779         the presence of TARGET_AUTO_LITPOOLS.
8780         (print_operand): Add 'y' format, same as default, but capable of
8781         printing SF mode constants as well.
8782         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8783         (movsf_internal): Add movi pattern that loads literal.
8784         (movsf, movdf): Don't force constants to memory in the presence
8785         of TARGET_AUTO_LITPOOLS.
8786         (movdf_internal): Add 'Y' constraint.
8787         * config/xtensa/xtensa.opt (mauto-litpools): New option.
8788         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8789
8790 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8791
8792         * config/arm/arm-fpus.def: Replace booleans with feature flags.
8793         Update comment.
8794         * config/arm/arm.c (ARM_FPU): Update macro.
8795         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8796         (TARGET_FP16): Likewise.
8797         (TARGET_CRYPTO): Likewise.
8798         (TARGET_NEON): Likewise.
8799         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
8800         field features.
8801
8802 2015-08-12  Tom de Vries  <tom@codesourcery.com>
8803
8804         PR other/67092
8805         PR other/67098
8806         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
8807         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8808         accordingly.  Mention default for --with-stage1-ldflags.
8809
8810 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8811
8812         * config/arm/arm.h (arm_fpu_feature_set): New.
8813         (ARM_FPU_FSET_HAS): New.
8814         (FPU_FL_NONE): New.
8815         (FPU_FL_NEON): New.
8816         (FPU_FL_FP16): New.
8817         (FPU_FL_CRYPTO): New.
8818
8819 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8820
8821         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8822         after -mcmodel=large -fPIC sorry.
8823
8824 2015-08-12  Richard Biener  <rguenther@suse.de>
8825
8826         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8827         comparison operand order and commutative ternary op operand order.
8828         (sccvn_dom_walker::cond_stack): New state to track temporary
8829         expressions.
8830         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8831         no longer valid.
8832         (sccvn_dom_walker::record_cond): Add a single temporary conditional
8833         expression.
8834         (sccvn_dom_walker::record_conds): Add a temporary conditional
8835         expressions and all related expressions also true/false.
8836         (sccvn_dom_walker::before_dom_children): Record temporary
8837         expressions based on the controlling condition of a single
8838         predecessor.  When trying to simplify a conditional statement
8839         lookup expressions we might have inserted earlier.
8840
8841 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
8842
8843         PR target/67127
8844         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8845         to ARM core registers.
8846
8847 2015-08-12  Nathan Sidwell  <nathan@acm.org>
8848
8849         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8850         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8851
8852 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
8853
8854         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8855         line with comments.
8856         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8857
8858 2015-08-12  Richard Biener  <rguenther@suse.de>
8859
8860         * gimple.h (remove_pointer): New trait.
8861         (GIMPLE_CHECK2): New inline template function.
8862         (gassign::code_): New constant static member.
8863         (is_a_helper<const gassign *>): Add.
8864         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8865         and forward to a new gassign overload with less checking and a
8866         cheaper way to access the operand.
8867         (gimple_assign_lhs_ptr): Likewise.
8868         (gimple_assign_set_lhs): Likewise.
8869         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8870         Likewise.
8871         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8872         Likewise.
8873         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8874         Likewise.
8875         (gimple_assign_rhs_code): Likewise.
8876         * gimple.c (gassign::code_): Define.
8877
8878 2015-08-12  Richard Biener  <rguenther@suse.de>
8879
8880         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8881         Eliminate edges marked as not executable by SCCVN.
8882         * tree-ssa-sccvn.c: Include gimple-iterator.h.
8883         (cond_dom_walker): Rename to sccvn_dom_walker.
8884         (sccvn_dom_walker::before_dom_children): Value-number defs
8885         of all stmts.
8886         (run_scc_vn): Remove loop value-numbering all SSA names.
8887         Drop not visited SSA names to varying.
8888
8889 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8890
8891         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8892         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8893         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8894         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8895         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8896         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8897         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8898         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8899         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8900
8901 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
8902
8903         PR target/66954
8904         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8905         to enum feature_priority and feature_list.
8906         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8907         and isa_names_table.
8908
8909 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
8910
8911         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8912         vect_induction_def.
8913
8914 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8915
8916         PR c/66098
8917         PR c/66711
8918         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8919         account when deciding what was the command-line status.
8920
8921 2015-08-11  Nathan Sidwell  <nathan@acm.org>
8922
8923         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8924
8925         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8926         we're not the only contributor to target phi.
8927
8928 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
8929
8930         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8931         FIXED_REG0.
8932
8933 2015-08-11  Tom de Vries  <tom@codesourcery.com>
8934
8935         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8936
8937 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8938
8939         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8940         with CPU_SLM.
8941         * config/i386/i386.md (cpu): Remove knl.
8942
8943 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8944
8945         PR libgomp/65742
8946         PR middle-end/66332
8947         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8948         open-coded sequence.
8949         * omp-low.c (oacc_process_reduction_data): Remove handline of
8950         GOMP_DEVICE_HOST_NONSHM.
8951
8952         * lto-streamer-in.c (lto_input_mode_table): Adjust to
8953         GET_MODE_INNER changes.
8954
8955 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8956             Ilya Verbin  <ilya.verbin@intel.com>
8957
8958         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8959
8960 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8961
8962         * doc/options.texi (EnabledBy): Document that the argument must be
8963         a Common option.
8964         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8965         Not enabled by -Wall.
8966         * optc-gen.awk: Give nicer error messages. Detect if the argument
8967         of EnabledBy is not a Common option.
8968         * common.opt (Wnull-dereference): Not enabled by -Wall.
8969         * opt-functions.awk (lang_enabled_by): Nicer error messages.
8970
8971 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8972
8973         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8974         model == 0x4f as Broadwell.
8975
8976 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8977
8978         PR rtl-optimization/67028
8979         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
8980         Add test to see if a const_int fits in the new mode.
8981
8982 2015-08-07  DJ Delorie  <dj@redhat.com>
8983
8984         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8985
8986 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8987
8988         PR rtl-optimization/67029
8989         * ira-color.c: Include "recog.h" before including "ira-int.h".
8990         * target-globals.c: Likewise.
8991         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8992         adds an alternative_mask argument and use it instead of
8993         preferred_alternatives.
8994         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8995         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8996         * sched-deps.c: Include "ira-int.h" after including "ira.h".
8997         (sched_analyze_insn): Update call to
8998         ira_implicitly_set_insn_hard_regs.
8999         * sel-sched.c: Include "ira-int.h" after including "ira.h".
9000         (implicit_clobber_conflict_p): Update call to
9001         ira_implicitly_set_insn_hard_regs.
9002
9003 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
9004
9005         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
9006
9007 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
9008
9009         PR target/67002
9010         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
9011         currently_expanding_to_rtl is set.
9012
9013 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
9014
9015         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
9016         * configure: Regenerate.
9017
9018 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9019             Jiong Wang  <jiong.wang@arm.com>
9020
9021         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9022         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9023         (REG_CLASS_NAMES): Likewise.
9024         (REG_CLASS_CONTENTS): Likewise.
9025         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9026         (aarch64_register_move_cost): Likewise.
9027         (aarch64_load_symref_appropriately): Invoke the new added pattern if
9028         possible.
9029         * config/aarch64/constraints.md (Uc0): New constraint.
9030
9031 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
9032
9033         * config/aarch64/constraints.md (Usf): Add the test of
9034         aarch64_is_noplt_call_p.
9035
9036 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
9037
9038         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
9039         declaration.
9040         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
9041         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
9042         (call_symbol): Likewise.
9043
9044 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
9045
9046         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
9047         for vectorizing multiplication patterns.
9048         * tree-vectorizer.h: Adjust the number of patterns.
9049
9050 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
9051
9052         * config/i386/sse.md (*vec_concatv2df): Declare added
9053         alternatives as sselog type.
9054
9055 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9056
9057         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
9058         all GPRs.
9059
9060 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9061
9062         * config/s390/s390.c (s390_expand_tbegin): Expand either
9063         tbegin_1_z13 or tbegin_1 depending on VX flag.
9064         * config/s390/s390.md ("tbegin_1_z13"): New expander.
9065
9066 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9067
9068         * config/s390/s390.opt: Clarify description for -mzvector
9069         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
9070         -mzvector.
9071
9072 2015-08-06  Richard Biener  <rguenther@suse.de>
9073
9074         * gimple.h (gimple_call_set_fn): Access op member directly.
9075         (gimple_call_chain_ptr): Likewise.
9076         (gimple_call_set_chain): Likewise.
9077         (gimple_cond_lhs_ptr): Likewise.
9078         (gimple_cond_set_lhs): Likewise.
9079         (gimple_cond_rhs_ptr): Likewise.
9080         (gimple_cond_set_rhs): Likewise.
9081         (gimple_cond_true_label): Likewise.
9082         (gimple_cond_set_true_label): Likewise.
9083         (gimple_cond_set_false_label): Likewise.
9084         (gimple_cond_false_label): Likewise.
9085         (gimple_label_label): Likewise.
9086         (gimple_label_set_label): Likewise.
9087         (gimple_goto_set_dest): Likewise.
9088         (gimple_asm_input_op): Likewise.
9089         (gimple_asm_input_op_ptr): Likewise.
9090         (gimple_asm_set_input_op): Likewise.
9091         (gimple_asm_output_op): Likewise.
9092         (gimple_asm_output_op_ptr): Likewise.
9093         (gimple_asm_set_output_op): Likewise.
9094         (gimple_asm_clobber_op): Likewise.
9095         (gimple_asm_set_clobber_op): Likewise.
9096         (gimple_asm_label_op): Likewise.
9097         (gimple_asm_set_label_op): Likewise.
9098         (gimple_switch_index): Likewise.
9099         (gimple_switch_index_ptr): Likewise.
9100         (gimple_return_retval_ptr): Likewise.
9101         (gimple_return_retval): Likewise.
9102         (gimple_return_set_retval): Likewise.
9103         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
9104         (gimple_switch_label): Likewise.
9105         (gimple_switch_set_label): Likewise.
9106
9107 2015-08-06  Richard Biener  <rguenther@suse.de>
9108
9109         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9110         bool comparison canonicalization and restrict to integers.
9111
9112 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
9113
9114         * coretypes.h (enum symbol_visibility): Relocate here.
9115         * flag-types.h (enum symbol_visibility): Remove.
9116         * tree-core.h (enum symbol_visibility): Remove.
9117
9118 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
9119
9120         PR target/66870
9121         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9122         for no_split_stack function attribute along with
9123         flag_split_stack.
9124         (rs6000_expand_split_stack_prologue): Likewise.
9125
9126 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9127             Jeff Law  <law@redhat.com>
9128
9129         PR c/16351
9130         * doc/invoke.texi (Wnull-dereference): New.
9131         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9132         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9133         Warn for potential NULL dereferences.
9134         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9135         * ubsan.c (instrument_nonnull_arg): Call
9136         infer_nonnull_range_by_attribute.
9137         (instrument_nonnull_return): Likewise.
9138         * common.opt (Wnull-dereference); New.
9139         * gimple.c (infer_nonnull_range): Remove bool arguments.
9140         (infer_nonnull_range_by_dereference): New.
9141         (infer_nonnull_range_by_attribute): New.
9142         * gimple.h: Update declarations.
9143
9144 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9145
9146         * gensupport.c (sequence_num): Replace with...
9147         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9148         ...these new variables.
9149         (init_rtx_reader_args_cb): Update accordingly.
9150         (get_num_code_insns): Likewise.
9151         (read_md_rtx): Rework to use a while loop and get_c_test.
9152         Use the new counters.  Remove redundant DEFINE_SUBST case.
9153         * genoutput.c (gen_split): Delete.
9154         (main): Don't call it.
9155
9156 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9157
9158         * gensupport.h (get_c_test): Declare.
9159         * gensupport.c (get_c_test): New function.
9160         * genconditions.c (main): Use it.
9161         * genrecog.c (validate_pattern): Likewise.
9162         (match_pattern_1): Likewise.  Remove c_test argument.
9163         (match_pattern): Update accordingly and remove c_test argument.
9164         (main): Update accordingly.
9165
9166 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9167
9168         * gensupport.h (get_num_insn_codes): Declare.
9169         * gensupport.c (get_num_insn_codes): New function.
9170         * genattrtab.c (optimize_attrs): Rename max_insn_code to
9171         num_insn_codes.
9172         (main): Likewise.  Use get_num_insn_codes.
9173         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9174
9175 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9176
9177         PR middle-end/66311
9178         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9179         is zero- rather than sign-extended.
9180
9181 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9182
9183         * target-insns.def (can_extend): Delete.
9184
9185 2015-08-05  Richard Biener  <rguenther@suse.de>
9186
9187         PR tree-optimization/67121
9188         * tree-if-conv.c (combine_blocks): Clear range-info produced
9189         by stmts no longer executed conditionally.
9190
9191 2015-08-05  Nick Clifton  <nickc@redhat.com>
9192
9193         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9194         to allow identical far pointers to remain.
9195
9196 2015-08-05  Richard Biener  <rguenther@suse.de>
9197
9198         PR middle-end/67120
9199         * match.pd: Compare address bases with == if they are decls
9200         or SSA names, not operand_equal_p.  Otherwise fail.
9201
9202 2015-08-05  Richard Biener  <rguenther@suse.de>
9203
9204         PR tree-optimization/67055
9205         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9206         NULL gimple_block.
9207
9208         * g++.dg/torture/pr67055.C: New testcase.
9209
9210 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
9211
9212         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9213         noavx512vl.
9214         (define_attr "enabled"): Handle avx521vl and noavx512vl.
9215         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9216         AVX-512 alternative out of SSE.
9217         (define_insn "*vec_concatv2df"): Ditto.
9218
9219 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
9220
9221         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9222         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9223         CODE_FOR_avx_ptestv4di.
9224         * config/i386/sse.md (define_mode_iterator V_AVX): New.
9225         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9226         (define_insn "avx_ptest256"): Merge this ...
9227         (define_insn "sse4_1_ptest"): And this ...
9228         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9229
9230 2015-08-05  Richard Biener  <rguenther@suse.de>
9231
9232         PR tree-optimization/67109
9233         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9234         against too big groups.  Print whether this is a load or store
9235         group.  Rename from ...
9236         (vect_analyze_group_access): ... this which is now a wrapper
9237         dissolving an invalid group.
9238         (vect_analyze_data_ref_accesses): Print whether this is a load
9239         or store group.
9240
9241 2015-08-05  Richard Biener  <rguenther@suse.de>
9242
9243         PR middle-end/67107
9244         * match.pd: Guard const_binop result checking against NULL_TREE
9245         result.
9246
9247 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
9248
9249         * cse.c (cse_insn): Restoring old behaviour for src_eqv
9250          when dest and value in the REG_EQUAL are same and dest
9251          is STRICT_LOW_PART.
9252
9253 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
9254
9255         * config/moxie/moxie.h (PRINT_OPERAND,
9256           PRINT_OPERAND_ADDRESS): Remove macros.
9257         * config/moxie/moxie-protos.h (moxie_print_operand,
9258           moxie_print_operand_address): Remove declaration.
9259         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9260           TARGET_PRINT_OPERAND_ADDRESS): Define.
9261           (moxie_print_operand, moxie_print_operand_address): Make static.
9262
9263 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9264
9265         PR target/66731
9266         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9267         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9268
9269 2015-08-04  Richard Biener  <rguenther@suse.de>
9270
9271         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9272         generated code.
9273         (dt_operand::gen_gimple_expr): Adjust.
9274
9275 2015-08-04  Richard Biener  <rguenther@suse.de>
9276
9277         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9278         bool compares on RHS.
9279         * match.pd: Add X ==/!= !X is false/true pattern.
9280
9281 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
9282
9283         * config/aarch64/aarch64.c: Change inner loop statement cost
9284         to be consistent with other targets.
9285
9286 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
9287
9288         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9289         targets.
9290
9291 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
9292
9293         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9294         (machine_function): Remove pseudos field.
9295
9296 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9297
9298         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9299         Exit early and use target_option_current_node if processing current
9300         pragma.
9301
9302 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9303
9304         * doc/extend.texi (AArch64 Function Attributes): New node.
9305         (AArch64 Pragmas): Likewise.
9306
9307 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9308
9309         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9310         Initialize simd builtins if TARGET_SIMD.
9311         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9312         Make sure that the builtins are initialized only once no matter how
9313         many times the function is called.
9314         (aarch64_init_builtins): Unconditionally initialize crc builtins.
9315         (aarch64_relayout_simd_param): New function.
9316         (aarch64_simd_expand_args): Use above during argument expansion.
9317         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9318         simd builtins if TARGET_SIMD.
9319         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9320         prototype.
9321         (aarch64_relayout_simd_types): Likewise.
9322
9323 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9324
9325         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
9326         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
9327         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
9328         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9329         static keyword.
9330         (aarch64_reset_previous_fndecl): New function.
9331         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
9332         the string.
9333         * config/aarch64/aarch64-c.c: New file.
9334         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
9335         Push and pop options at beginning and end.  Remove ifdef
9336         __ARM_FEATURE_CRC32.
9337         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
9338         Add pragma +nothing+simd and +nothing+crypto where appropriate.
9339         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
9340         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
9341         Define prototype.
9342         (aarch64_register_pragmas): Likewise.
9343         (aarch64_reset_previous_fndecl): Likewise.
9344         (aarch64_process_target_attr): Likewise.
9345         (aarch64_override_options_internal): Likewise.
9346
9347 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9348
9349         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9350         New function.
9351         (aarch64_can_inline_p): Likewise.
9352         (TARGET_CAN_INLINE_P): Define.
9353
9354 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9355
9356         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9357         Remove static.  Handle OPT_mgeneral_regs_only,
9358         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9359         OPT_momit_leaf_frame_pointer.
9360         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9361         (aarch64_attr_opt_type): New enum.
9362         (aarch64_attribute_info): New struct.
9363         (aarch64_handle_attr_arch): New function.
9364         (aarch64_handle_attr_cpu): Likewise.
9365         (aarch64_handle_attr_tune): Likewise.
9366         (aarch64_handle_attr_isa_flags): Likewise.
9367         (aarch64_attributes): New table.
9368         (aarch64_process_one_target_attr): New function.
9369         (num_occurences_in_str): Likewise.
9370         (aarch64_process_target_attr): Likewise.
9371         (aarch64_option_valid_attribute_p): Likewise.
9372         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9373         * config/aarch64/aarch64-protos.h: Include input.h
9374         (aarch64_handle_option): Declare prototype.
9375
9376 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9377
9378         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9379         * config/aarch64/aarch64.c: Include target-globals.h
9380         (aarch64_previous_fndecl): New variable.
9381         (aarch64_set_current_function): New function.
9382         (TARGET_SET_CURRENT_FUNCTION): Define.
9383
9384 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9385
9386         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9387         (explicit_arch): Likewise.
9388         (x_aarch64_isa_flags): Likewise.
9389         (mgeneral-regs-only): Mark as Save.
9390         (mfix-cortex-a53-835769): Likewise.
9391         (mcmodel=): Likewise.
9392         (mstrict-align): Likewise.
9393         (momit-leaf-frame-pointer): Likewise.
9394         (mtls-dialect): Likewise.
9395         (master=): Likewise.
9396         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9397         (aarch64_isa_flags): Remove extern declaration.
9398         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9399         to indicate success or failure.
9400         (aarch64_validate_march): Likewise.
9401         (aarch64_validate_mtune): Likewise.
9402         (aarch64_isa_flags): Delete.
9403         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9404         instead of aarch64_isa_flags.
9405         (aarch64_get_tune_cpu): New function.
9406         (aarch64_get_arch): Likewise.
9407         (aarch64_override_options): Use above and set up explicit_tune_core
9408         and explicit_arch.
9409         (aarch64_print_extension): Move earlier in file.  Add isa_flags
9410         argument and use that instead of the global aarch64_isa_flags.
9411         (aarch64_option_save): New function.
9412         (aarch64_option_restore): Likewise.
9413         (aarch64_option_print): Likewise.
9414         (aarch64_declare_function_name): Likewise.
9415         (aarch64_start_file): Delete.
9416         (TARGET_ASM_FILE_START): Do not define.
9417         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9418         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9419         Declare prototype.
9420
9421 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9422
9423         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9424         flag_omit_leaf_frame_pointer to 2.
9425
9426 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9427
9428         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9429         define to 0 or 1.
9430         (TARGET_FIX_ERR_A53_835769): New macro.
9431         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9432         handling of opts->x_aarch64_fix_a53_err835769.
9433         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9434         than aarch64_fix_a53_err835769.
9435         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9436         * config/aarch64/aarch64-linux.h: Likewise.
9437
9438 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
9439
9440         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9441         ix86_expand_int_movcc as boolean.
9442
9443 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9444
9445         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9446         (aarch64_cpu_string): Likewise.
9447         (aarch64_tune_string): Likewise.
9448         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9449         (aarch64_parse_extension): Return aarch64_parse_opt_result.
9450         Add extra argument to put result into.
9451         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
9452         (aarch64_parse_cpu): Add arguments to put results into. Return
9453         aarch64_parse_opt_result.
9454         (aarch64_parse_tune): Likewise.
9455         (aarch64_override_options_after_change_1): New function.
9456         (aarch64_override_options_internal): New function.
9457         (aarch64_validate_mcpu): Likewise.
9458         (aarch64_validate_march): Likewise.
9459         (aarch64_validate_mtune): Likewise.
9460         (aarch64_override_options): Update to reflect above changes.
9461         Move some logic into aarch64_override_options_internal.
9462         Initialize target_option_default_node and target_option_current_node.
9463         (aarch64_override_options_after_change): Move logic into
9464         aarch64_override_options_after_change_1 and call it with global_options.
9465         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9466         flag values from that.
9467
9468 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9469
9470         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9471         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9472         * config/aarch64/aarch64.c (struct processor): Add arch field.
9473         (all_architectures): Handle above, move above all_cores.
9474         (all_cores): Handle above.
9475         (aarch64_parse_arch): Handle above changes.
9476         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9477         above.  Update comments.
9478         (armv8.1-a): Likewise.
9479         * config/aarch64/aarch64-cores.def: Update according to above.
9480         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9481         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9482         aarch64_arch_driver_info.
9483
9484 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9485
9486         * config/aarch64/aarch64.c (struct processor): Add ident field.
9487         Rename core sched_core.
9488         (all_cores): Handle above changes.
9489         (all_architectures): Likewise.
9490         (aarch64_parse_arch): Likewise.
9491         (aarch64_override_options): Likewise.
9492
9493 2015-08-04  Richard Biener  <rguenther@suse.de>
9494
9495         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9496         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9497         comparisons embedded in [VEC_]COND_EXPRs.
9498
9499 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
9500
9501         * tree-if-conv.c: Fix various typos in comments.
9502         * tree-vect-stmts.c: Likewise.
9503
9504 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9505
9506         PR tree-optimization/67043
9507         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9508         preheader after hoisting invariant in it.
9509         (find_defs): Force recomputation of all luids.
9510
9511 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
9512
9513         * config/rs6000/htm.md (tabort.): Restrict the source operand to
9514         using a base register.
9515
9516 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
9517
9518         * main.c (main): Pass in NULL for toplev's external_timer.
9519         * timevar.c: Include coretypes.h.
9520         (class timer::named_items): New.
9521         (timer::named_items::named_items): New.
9522         (timer::named_items::~named_items): New.
9523         (timer::named_items::push): New.
9524         (timer::named_items::pop): New.
9525         (timer::named_items::print): New.
9526         (timer::timer): Initialize field "m_jit_client_items".
9527         (timer::~timer): New.
9528         (timer::push): Move bulk of implementation to...
9529         (timer::push_internal): ...here.  New function.
9530         (timer::pop): Move bulk of implementation to...
9531         (timer::pop_internal): ...here.  New function.
9532         (timer::push_client_item): New.
9533         (timer::pop_client_item): New.
9534         (timer::print_row): New function, taken from timer::print.
9535         (timer::print): Print "GCC items" header if we also have client
9536         items.  Move row-printing to timer::print_row.  Print any client
9537         items.
9538         (timer::get_topmost_item_name): New method.
9539         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9540         (TV_JIT_CLIENT_CODE): New.
9541         * timevar.h (timer::push_client_item): New declaration.
9542         (timer::pop_client_item): New declaration.
9543         (timer::get_topmost_item_name): New method.
9544         (timer::push_internal): New declaration.
9545         (timer::pop_internal): New declaration.
9546         (timer::print_row): New declaration.
9547         (timer::named_items): New declaration.
9548         (timer::m_jit_client_items): New field.
9549         (timer): Add friend class named_items.
9550         (auto_timevar::auto_timevar): Add timer param.
9551         (auto_timevar::~auto_timevar): Use field "m_timer".
9552         (auto_timevar::m_timer): New field.
9553         * toplev.c (initialize_rtl): Add g_timer as param when
9554         constructing auto_timevar instance.
9555         (toplev::toplev): Add "external_timer" param, and use it to
9556         initialize the "g_timer" global if non-NULL.
9557         (toplev::~toplev): If this created "g_timer", delete it.
9558         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9559         with "external_timer" timer *.
9560
9561 2015-08-03  Alexander Basov <coohpt@gmail.com>
9562
9563         PR middle-end/64744
9564         PR middle-end/48470
9565         PR middle-end/43404
9566         * cfgexpand.c (expand_one_var): Add check if stack is going to
9567         be used in naked function.
9568         * expr.c (expand_expr_addr_expr_1): Remove excess checking
9569         whether expression should not reside in MEM.
9570         * function.c (use_register_for_decl): Do not use registers for
9571         non-register things (volatile, float, BLKMode) in naked functions.
9572
9573 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
9574
9575         PR target/67060
9576         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9577         Adjust splits to match new pattern.
9578
9579 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9580
9581         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9582         (VEC_M): Likewise.
9583         (VEC_N): Likewise.
9584         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9585         point in VSX registers.
9586
9587         * config/rs6000/constraints.md (wb constraint): Document unused
9588         w<x> constraint.
9589         (we constraint): Likewise.
9590         (wo constraint): Likewise.
9591         (wp constraint): New constraint for IEEE 128-bit floating point in
9592         VSX registers.
9593         (wq constraint): Likewise.
9594
9595         * config/rs6000/predicates.md (easy_fp_constant): Add support for
9596         IEEE 128-bit floating point in VSX registers.
9597         (easy_scalar_constant): Likewise.
9598
9599         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9600         constraints (wp, wq) for IEEE 128-bit floating point in VSX
9601         registers.
9602         (rs6000_init_hard_regno_mode_ok): Likewise.
9603
9604         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9605         floating point in VSX registers.
9606         (VSX_L): Likewise.
9607         (VSX_M): Likewise.
9608         (VSX_M2): Likewise.
9609         (VSm): Likewise.
9610         (VSs): Likewise.
9611         (VSr): Likewise.
9612         (VSa): Likewise.
9613         (VSv): Likewise.
9614         (vsx_le_permute_<mode>): Add support to properly swap bytes for
9615         IEEE 128-bit floating point in VSX registers on little endian.
9616         (vsx_le_undo_permute_<mode>): Likewise.
9617         (vsx_le_perm_load_<mode>): Likewise.
9618         (vsx_le_perm_store_<mode>): Likewise.
9619         (splitters for IEEE 128-bit fp moves): Likewise.
9620
9621         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9622         wq constraints.
9623
9624         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9625         floating point in VSX registers.
9626         (VM2): Likewise.
9627
9628         * doc/md.text (Machine Constraints): Document wp and wq
9629         constraints on PowerPC.
9630
9631 2015-08-03  Jeff Law  <law@redhat.com>
9632
9633         PR middle-end/66314
9634         PR gcov-profile/66899
9635         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9636         iterate over the jump threading paths when an element in the
9637         jump threading paths array is eliminated.
9638
9639 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
9640
9641         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9642
9643 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
9644
9645         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9646         is_use_properly_guarded the variable def_preds.  Free its
9647         contents before returning.
9648         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9649         (is_use_properly_guarded): Replace local variable def_preds with
9650         a parameter.  Adjust accordingly.  Only update *def_preds if it's
9651         the empty vector.
9652
9653 2015-08-03  Richard Biener  <rguenther@suse.de>
9654
9655         * genmatch.c (simplify::for_subst_vec): New member.
9656         (binary_ok): New helper for for lowering.
9657         (lower_for): Delay substituting operators into result expressions
9658         if we can merge the results eventually again.
9659         (capture_info::walk_result): Adjust for user_id appearing as
9660         result expression operator.
9661         (expr::gen_transform): Likewise.
9662         (dt_simplify::gen_1): Likewise.
9663         (dt_simplify::gen): Pass not substituted operators to tail
9664         functions or initialize local variable with it.
9665         (decision_tree::gen): Adjust function signature.
9666         * match.pd: Fix tests against global code and add default
9667         cases to switch stmts.
9668
9669 2015-08-03  Richard Biener  <rguenther@suse.de>
9670
9671         * genmatch.c (dt_simplify::gen): Create captures array
9672         with an initializer.
9673
9674 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9675
9676         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9677         the host compiler is affected by placement new aliasing bug.
9678         * configure: Regenerate.
9679         * Makefile.in (ALIASING_FLAGS): New variable.
9680         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9681
9682 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9683
9684         PR target/66731
9685         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9686         (negmulsf3_vfp): Likewise.
9687         (muldf3negdf_vfp): Disable for -frounding-math.
9688         (mulsf3negsf_vfp): Likewise.
9689         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9690         fix MULT cost with -frounding-math.
9691
9692 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9693
9694         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9695         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9696         explicit.  Prefer to add the flag whenever possible.
9697         (noce_process_if_block): Try noce_try_store_flag_constants before
9698         noce_try_cmove.
9699
9700 2015-08-03  Richard Biener  <rguenther@suse.de>
9701
9702         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9703         New hash-map to record equivalent transforms.
9704         (dt_node::analyze): Populate the equivalent transforms hash-map.
9705         (dt_simplify::info): Add reference to hash-map entry.
9706         (dt_simplify::gen): If we have split out a function for the
9707         transform, generate a call to it.
9708         (sinfo_hashmap_traits::hash): New function.
9709         (compare_op): New helper function for ...
9710         (sinfo_hashmap_traits::equal_keys): ... this new function.
9711         (decision_tree::gen): Split out common equivalent transforms
9712         into functions.
9713
9714 2015-08-03  Richard Biener  <rguenther@suse.de>
9715
9716         * gimple-fold.c (fold_gimple_assign): Remove folding of
9717         the comparison in COND_EXPRs.
9718
9719 2015-08-03  Richard Biener  <rguenther@suse.de>
9720
9721         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9722         on the rhs of assignments first simplify the embedded
9723         GENERIC condition.
9724
9725 2015-08-03  Richard Biener  <rguenther@suse.de>
9726
9727         PR tree-optimization/66917
9728         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9729         field.
9730         (DR_VECT_AUX): New macro.
9731         (set_dr_misalignment): Adjust.
9732         (dr_misalignment): Likewise.
9733         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9734         Compute whether the base is at least element aligned.
9735         * tree-vect-stmts.c (ensure_base_align): Adjust.
9736         (vectorizable_store): If the base is not element aligned
9737         preserve alignment of the original access if misalignment is unknown.
9738         (vectorizable_load): Likewise.
9739
9740 2015-08-02  Martin Sebor  <msebor@redhat.com>
9741
9742         * c-family/c.opt (-Wframe-address): New warning option.
9743         * doc/invoke.texi (Wframe-address): Document it.
9744         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9745         Clarify possible effects of calling the functions with non-zero
9746         arguments and mention -Wframe-address.
9747         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9748
9749 2015-08-01  Michael Collison  <michael.collison@linaro.org
9750             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9751
9752         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9753         (*arm_umin_cmp): Likewise.
9754
9755 2015-08-01  Caroline Tice  <cmtice@google.com>
9756
9757         PR 66521
9758         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9759         global variables.
9760         (vtbl_find_mangled_name):  New function.
9761         (vtbl_register_mangled_name):  New function.
9762         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
9763         mangled name in mangled name vectors.
9764         (find_or_create_vtbl_map_node):  Ditto.
9765         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
9766         update recursion_depth on function entry; pass it to every recursive
9767         call; automatically exit if depth > 25 (give up looking at that point).
9768         (verify_bb_vtables):  Initialize recursion_depth and pass it to
9769         var_is_used_for_virtual_call_p.
9770         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9771         global variable decls.
9772         (vtbl_register_mangled_name): New extern function decl.
9773
9774 2015-08-01  Tom de Vries  <tom@codesourcery.com>
9775
9776         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9777         function.
9778         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9779         Declare.
9780         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9781         operation_no_trapping_overflow.  Allow non-overflow operations.
9782         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9783         operations.
9784
9785 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9786
9787         PR target/67049
9788         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9789
9790 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9791
9792         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9793         Enable for TARGET_32BIT.
9794         (*if_move_neg): Likewise.
9795
9796 2015-07-31  Nick Clifton  <nickc@redhat.com>
9797
9798         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9799         Returns true for __model__.
9800         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9801
9802 2015-07-31  Alan Modra  <amodra@gmail.com>
9803
9804         PR target/66870
9805         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9806         (rs6000_emit_prologue): Set it.
9807         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9808
9809 2015-07-31  Richard Biener  <rguenther@suse.de>
9810
9811         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9812         -> X == (C1 ^ C2) which is already implemented in match.pd.
9813         Remove redundant dispatching to fold_relational_const.
9814         Move unordered self and NaN compares ...
9815         * match.pd: ... as patterns here.  Remove some stray captures
9816         and add a comment.
9817
9818 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
9819
9820         * config/i386/i386.c
9821         (bdesc_special_args): Convert mask type from signed to unsigned for
9822         masked builtins.
9823         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9824         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9825         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9826         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9827         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9828         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9829         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9830         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9831         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9832         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9833         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9834         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9835         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9836         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9837         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9838         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9839         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9840         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9841         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9842         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9843         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9844         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9845         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9846         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9847         * config/i386/i386-builtin-types.def
9848         (V16QI_FTYPE_V16SI): Remove.
9849         (V8DF_FTYPE_V8SI): Ditto.
9850         (V8HI_FTYPE_V8DI): Ditto.
9851         (V8SI_FTYPE_V8DI): Ditto.
9852         (V8SF_FTYPE_V8DF): Ditto.
9853         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9854         (V16HI_FTYPE_V16SI): Ditto.
9855         (V16SF_FTYPE_V16HI): Ditto.
9856         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9857         (V16SF_FTYPE_V16SI): Ditto.
9858         (V4DI_FTYPE_V4DI): Ditto.
9859         (V16SI_FTYPE_V16SF): Ditto.
9860         (V16SF_FTYPE_FLOAT): Ditto.
9861         (V8DF_FTYPE_DOUBLE): Ditto.
9862         (V8DI_FTYPE_INT64): Ditto.
9863         (V8DI_FTYPE_V4DI): Ditto.
9864         (V16QI_FTYPE_V8DI): Ditto.
9865         (UINT_FTYPE_V4SF): Ditto.
9866         (UINT64_FTYPE_V4SF): Ditto.
9867         (UINT_FTYPE_V2DF): Ditto.
9868         (UINT64_FTYPE_V2DF): Ditto.
9869         (V16SI_FTYPE_V16SI): Ditto.
9870         (V8DI_FTYPE_V8DI): Ditto.
9871         (V16SI_FTYPE_PV4SI): Ditto.
9872         (V16SF_FTYPE_PV4SF): Ditto.
9873         (V8DI_FTYPE_PV2DI): Ditto.
9874         (V8DF_FTYPE_PV2DF): Ditto.
9875         (V4DI_FTYPE_PV2DI): Ditto.
9876         (V4DF_FTYPE_PV2DF): Ditto.
9877         (V16SI_FTYPE_PV2SI): Ditto.
9878         (V16SF_FTYPE_PV2SF): Ditto.
9879         (V8DI_FTYPE_PV4DI): Ditto.
9880         (V8DF_FTYPE_PV4DF): Ditto.
9881         (V8SF_FTYPE_FLOAT): Ditto.
9882         (V4SF_FTYPE_FLOAT): Ditto.
9883         (V4DF_FTYPE_DOUBLE): Ditto.
9884         (V8SF_FTYPE_PV4SF): Ditto.
9885         (V8SI_FTYPE_PV4SI): Ditto.
9886         (V4SI_FTYPE_PV2SI): Ditto.
9887         (V8SF_FTYPE_PV2SF): Ditto.
9888         (V8SI_FTYPE_PV2SI): Ditto.
9889         (V16SF_FTYPE_PV8SF): Ditto.
9890         (V16SI_FTYPE_PV8SI): Ditto.
9891         (V8DI_FTYPE_V8SF): Ditto.
9892         (V4DI_FTYPE_V4SF): Ditto.
9893         (V2DI_FTYPE_V4SF): Ditto.
9894         (V64QI_FTYPE_QI): Ditto.
9895         (V32HI_FTYPE_HI): Ditto.
9896         (V8UHI_FTYPE_V8UHI): Ditto.
9897         (V16UHI_FTYPE_V16UHI): Ditto.
9898         (V32UHI_FTYPE_V32UHI): Ditto.
9899         (V2UDI_FTYPE_V2UDI): Ditto.
9900         (V4UDI_FTYPE_V4UDI): Ditto.
9901         (V8UDI_FTYPE_V8UDI): Ditto.
9902         (V4USI_FTYPE_V4USI): Ditto.
9903         (V8USI_FTYPE_V8USI): Ditto.
9904         (V16USI_FTYPE_V16USI): Ditto.
9905         (V2DF_FTYPE_V2DF_UINT64): Ditto.
9906         (V2DI_FTYPE_V2DF_V2DF): Ditto.
9907         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9908         (V8DF_FTYPE_V8DF_V8DI): Ditto.
9909         (V4SF_FTYPE_V4SF_UINT64): Ditto.
9910         (V4SI_FTYPE_V4SF_V4SF): Ditto.
9911         (V16SF_FTYPE_V16SF_V16SI): Ditto.
9912         (V64QI_FTYPE_V32HI_V32HI): Ditto.
9913         (V32HI_FTYPE_V16SI_V16SI): Ditto.
9914         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9915         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9916         (V32HI_FTYPE_V64QI_V64QI): Ditto.
9917         (V32HI_FTYPE_V32HI_V32HI): Ditto.
9918         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9919         (V16SI_FTYPE_V16SI_V4SI): Ditto.
9920         (V16SI_FTYPE_V16SI_V16SI): Ditto.
9921         (V16SI_FTYPE_V32HI_V32HI): Ditto.
9922         (V16SI_FTYPE_V16SI_SI): Ditto.
9923         (V8DI_FTYPE_V8DI_V8DI): Ditto.
9924         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9925         (V8DI_FTYPE_V16SI_V16SI): Ditto.
9926         (V8DI_FTYPE_V8DI_V2DI): Ditto.
9927         (QI_FTYPE_QI): Ditto.
9928         (SI_FTYPE_SI): Ditto.
9929         (DI_FTYPE_DI): Ditto.
9930         (QI_FTYPE_QI_QI): Ditto.
9931         (QI_FTYPE_QI_INT): Ditto.
9932         (HI_FTYPE_HI_INT): Ditto.
9933         (SI_FTYPE_SI_INT): Ditto.
9934         (DI_FTYPE_DI_INT): Ditto.
9935         (HI_FTYPE_V16QI_V16QI): Ditto.
9936         (SI_FTYPE_V32QI_V32QI): Ditto.
9937         (DI_FTYPE_V64QI_V64QI): Ditto.
9938         (QI_FTYPE_V8HI_V8HI): Ditto.
9939         (HI_FTYPE_V16HI_V16HI): Ditto.
9940         (SI_FTYPE_V32HI_V32HI): Ditto.
9941         (QI_FTYPE_V4SI_V4SI): Ditto.
9942         (QI_FTYPE_V8SI_V8SI): Ditto.
9943         (QI_FTYPE_V2DI_V2DI): Ditto.
9944         (QI_FTYPE_V4DI_V4DI): Ditto.
9945         (QI_FTYPE_V8DI_V8DI): Ditto.
9946         (HI_FTYPE_V16SI_V16SI): Ditto.
9947         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9948         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9949         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9950         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9951         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9952         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9953         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9954         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9955         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9956         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9957         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9958         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9959         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9960         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9961         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9962         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9963         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9964         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9965         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9966         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9967         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9968         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9969         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9970         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9971         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9972         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9973         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9974         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9975         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9976         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9977         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9978         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9979         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9980         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9981         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9982         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9983         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9984         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9985         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9986         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9987         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9988         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9989         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9990         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9991         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9992         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9993         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9994         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9995         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9996         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9997         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9998         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9999         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
10000         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
10001         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
10002         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
10003         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10004         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10005         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10006         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
10007         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
10008         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10009         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10010         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10011         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
10012         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10013         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10014         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10015         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10016         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10017         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10018         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10019         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10020         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10021         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
10022         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10023         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
10024         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
10025         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
10026         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10027         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10028         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
10029         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
10030         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
10031         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10032         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
10033         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
10034         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10035         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10036         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10037         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
10038         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10039         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
10040         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
10041         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10042         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10043         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10044         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10045         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
10046         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
10047         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
10048         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10049         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10050         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10051         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10052         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
10053         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
10054         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
10055         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
10056         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10057         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10058         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10059         (HI_FTYPE_HI): Ditto.
10060         (HI_FTYPE_V16QI): Ditto.
10061         (SI_FTYPE_V32QI): Ditto.
10062         (DI_FTYPE_V64QI): Ditto.
10063         (QI_FTYPE_V8HI): Ditto.
10064         (HI_FTYPE_V16HI): Ditto.
10065         (SI_FTYPE_V32HI): Ditto.
10066         (QI_FTYPE_V4SI): Ditto.
10067         (QI_FTYPE_V8SI): Ditto.
10068         (HI_FTYPE_V16SI): Ditto.
10069         (QI_FTYPE_V2DI): Ditto.
10070         (QI_FTYPE_V4DI): Ditto.
10071         (QI_FTYPE_V8DI): Ditto.
10072         (V16QI_FTYPE_HI): Ditto.
10073         (V32QI_FTYPE_SI): Ditto.
10074         (V64QI_FTYPE_DI): Ditto.
10075         (V8HI_FTYPE_QI): Ditto.
10076         (V16HI_FTYPE_HI): Ditto.
10077         (V32HI_FTYPE_SI): Ditto.
10078         (V4SI_FTYPE_QI): Ditto.
10079         (V4SI_FTYPE_HI): Ditto.
10080         (V8SI_FTYPE_QI): Ditto.
10081         (V8SI_FTYPE_HI): Ditto.
10082         (V2DI_FTYPE_QI): Ditto.
10083         (V4DI_FTYPE_QI): Ditto.
10084         (HI_FTYPE_HI_HI): Ditto.
10085         (SI_FTYPE_SI_SI): Ditto.
10086         (DI_FTYPE_DI_DI): Ditto.
10087         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10088         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10089         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10090         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10091         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10092         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10093         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10094         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10095         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10096         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10097         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10098         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10099         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10100         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10101         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10102         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10103         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10104         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10105         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10106         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10107         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10108         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10109         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10110         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10111         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10112         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10113         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10114         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10115         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10116         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10117         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10118         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10119         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10120         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10121         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10122         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10123         (V16SI_FTYPE_HI): Ditto.
10124         (V8DI_FTYPE_QI): Ditto.
10125         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10126         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10127         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10128         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10129         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10130         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10131         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10132         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10133         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10134         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10135         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10136         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10137         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10138         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10139         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10140         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10141         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10142         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10143         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10144         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10145         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10146         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10147         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10148         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10149         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10150         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10151         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10152         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10153         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10154         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10155         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10156         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10157         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10158         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10159         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10160         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10161         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10162         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10163         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10164         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10165         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10166         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10167         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10168         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10169         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10170         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10171         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10172         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10173         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10174         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10175         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10176         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10177         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10178         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10179         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10180         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10181         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10182         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10183         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10184         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10185         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10186         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10187         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10188         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10189         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10190         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10191         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10192         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10193         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10194         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10195         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10196         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10197         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10198         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10199         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10200         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10201         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10202         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10203         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10204         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10205         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10206         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10207         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10208         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10209         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10210         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10211         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10212         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10213         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10214         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10215         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10216         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10217         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10218         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10219         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10220         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10221         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10222         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10223         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10224         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10225         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10226         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10227         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10228         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10229         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10230         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10231         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10232         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10233         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10234         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10235         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10236         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10237         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10238         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10239         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10240         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10241         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10242         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10243         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10244         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10245         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10246         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10247         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10248         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10249         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10250         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10251         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10252         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10253         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10254         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10255         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10256         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10257         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10258         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10259         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10260         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10261         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10262         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10263         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10264         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10265         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10266         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10267         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10268         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10269         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10270         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10271         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10272         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10273         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10274         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10275         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10276         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10277         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10278         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10279         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10280         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10281         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10282         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10283         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10284         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10285         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10286         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10287         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10288         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10289         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10290         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10291         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10292         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10293         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10294         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10295         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10296         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10297         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10298         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10299         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10300         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10301         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10302         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10303         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10304         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10305         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10306         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10307         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10308         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10309         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10310         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10311         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10312         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10313         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10314         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10315         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10316         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10317         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10318         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10319         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10320         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10321         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10322         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10323         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10324         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10325         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10326         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10327         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10328         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10329         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10330         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10331         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10332         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10333         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10334         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10335         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10336         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10337         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10338         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
10339         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10340         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10341         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10342         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10343         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10344         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10345         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10346         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10347         (QI_FTYPE_V8DF_INT_QI): Ditto.
10348         (QI_FTYPE_V4DF_INT_QI): Ditto.
10349         (QI_FTYPE_V2DF_INT_QI): Ditto.
10350         (HI_FTYPE_V16SF_INT_HI): Ditto.
10351         (QI_FTYPE_V8SF_INT_QI): Ditto.
10352         (QI_FTYPE_V4SF_INT_QI): Ditto.
10353         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10354
10355 2015-07-31  Richard Biener  <rguenther@suse.de>
10356
10357         * gimple-fold.c (fold_gimple_assign): Remove folding of
10358         GIMPLE_BINARY_RHS.
10359
10360 2015-07-31  Tom de Vries  <tom@codesourcery.com>
10361
10362         PR tree-optimization/66846
10363         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10364         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10365         (expand_omp_target) [ENABLE_CHECKING]: Same.
10366         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10367         cfun if !LOOPS_NEED_FIXUP.
10368         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
10369         that omp_for already has its own loop struct.
10370         * tree-parloops.c (create_phi_for_local_result)
10371         (create_call_for_reduction): Handle simple latch bb.
10372         (create_parallel_loop): Add simple latch bb to preserve
10373         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
10374         (gen_parallel_loop): Remove call to cancel_loop_tree.
10375         (parallelize_loops): Skip loops that are inner loops of parallelized
10376         loops.
10377         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10378         verify_loop_structure.
10379
10380 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10381
10382         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10383         * config/v850/v850.md (RV_REGNUM): New constants.
10384         * config/v850/v850.c (v850_libcall_value): New functions.
10385         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10386         (TARGET_LIBCALL_VALUE): Define.
10387
10388 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10389
10390         * rtl.h (lowpart_subreg): Move in file.
10391         * loop-iv.c (lowpart_subreg): Move to...
10392         * simplify-rtx.c (lowpart_subreg): ...here.
10393           (simplify_binary_operation_1): Use lowpart_subreg instead of
10394           simplify_gen_subreg.
10395         * expr.c (expand_expr_real_2): Ditto.
10396         * emit-rtl.c (gen_lowpart_common): Ditto.
10397         * combine.c (gen_lowpart_for_combine): Ditto.
10398         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10399           expand_debug_source_expr): Ditto.
10400
10401 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
10402
10403         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10404         (expand_builtin_atomic_clear): Remove support for atomic_clear
10405         pattern.
10406
10407 2015-07-30  Richard Biener  <rguenther@suse.de>
10408
10409         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10410         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10411         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
10412         redundant operand canonicalization.
10413
10414 2015-07-30  David Sherwood  <david.sherwood@arm.com>
10415
10416         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10417         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10418         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10419         * config/arm/arm.c (neon_valid_immediate): Likewise.
10420         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10421         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10422         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10423         (expand_vec_perm_vpshufb2_vpermq): Likewise.
10424         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10425         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10426         * config/i386/sse.md
10427         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10428         (*ssse3_palignr<mode>_perm): Likewise.
10429         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10430         * config/spu/spu.c (arith_immediate_p): Likewise.
10431         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10432         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10433
10434 2015-07-30  Richard Biener  <rguenther@suse.de>
10435
10436         * genmatch.c (decision_tree::gen_gimple): Merge with ...
10437         (decision_tree::gen_generic): ... this into ...
10438         (decision_tree::gen): ... this.
10439         (main): Adjust callers.
10440
10441 2015-07-30  Richard Biener  <rguenther@suse.de>
10442
10443         * genmatch.c (verbose): New global.
10444         (warning_at): Add overload with source_location.
10445         (capture_info::capture_info): Add bool whether generating gimple
10446         or generic.  Add gimple member.
10447         (capture_info::cinfo): Add capture member.
10448         (capture_info::walk_match): Record capture.  Warn on
10449         non-captured leafs.
10450         (capture_info::walk_c_expr): Add more fragments captures cannot
10451         escape through.  Warn on escaped captures.
10452         (dt_simplify::gen_1): Warn on operands we force to have no
10453         side-effects.
10454         (main): Initialize verbose.
10455         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10456
10457 2015-07-30  Richard Biener  <rguenther@suse.de>
10458
10459         PR middle-end/67053
10460         * match.pd: Allow both operands to independently have conversion
10461         when simplifying compares of addresses.
10462
10463 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
10464
10465         PR target/66217
10466         PR target/67045
10467         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10468         around those cases that need one.
10469
10470 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
10471
10472         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10473
10474 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10475
10476         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10477         New.  Copied from config/i386/gnu-user.h.
10478         (ASM_COMMENT_START): Likewise.
10479         (DBX_REGISTER_NUMBER): Likewise.
10480
10481 2015-07-29  Richard Biener  <rguenther@suse.de>
10482
10483         * gimple-fold.c (fold_gimple_cond): Remove.
10484         (fold_stmt_1): Do not call it.
10485
10486 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
10487
10488         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10489         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10490
10491         * config/aarch64/aarch64-modes.def: Add HFmode.
10492
10493         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10494         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10495
10496         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10497         aarch64_promoted_type): New.
10498
10499         (aarch64_float_const_representable_p): Disable HFmode.
10500         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10501         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10502         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10503
10504         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10505         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10506
10507         * config/aarch64/iterators.md (GPF_F16): New.
10508
10509 2015-07-29  Richard Biener  <rguenther@suse.de>
10510
10511         * match.pd: Merge address comparison patterns and make them
10512         handle some more cases.
10513
10514 2015-07-29  Richard Biener  <rguenther@suse.de>
10515
10516         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10517         (parser::parse_capture): Add bool argument on whether to reject
10518         unknown captures.
10519         (parser::parse_expr): Adjust.
10520         (parser::parse_op): Likewise.
10521         (parser::parse_pattern): Likewise.
10522
10523 2015-07-29  Richard Biener  <rguenther@suse.de>
10524
10525         * gimple-fold.c (has_use_on_stmt): New function.
10526         (replace_stmt_with_simplification): Use it to allow
10527         abnormals originally referenced in the stmt.
10528         (fold_stmt_1): Canonicalize operand order.
10529
10530 2015-07-28  David Sherwood  <david.sherwood@arm.com>
10531
10532         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10533         GET_MODE_INNER unconditionally.
10534         * config/spu/spu.c (arith_immediate_p): Likewise.
10535         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10536         * expmed.c (synth_mult): Remove check for VOIDmode result from
10537         GET_MODE_INNER.
10538         (expand_mult_const): Likewise.
10539         * fold-const.c (fold_binary_loc): Replace call to element_precision
10540         with call to GET_MODE_PRECISION.
10541         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10542         m->name.
10543         (emit_mode_inner): Likewise.
10544         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10545         result check.
10546         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10547         (GET_MODE_UNIT_PRECISION): Likewise.
10548         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10549         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10550         * stor-layout.c (bitwise_type_for_mode): Update assert.
10551         (element_precision): Remove.
10552
10553 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10554
10555         * target-insns.def (reload_load_address): New targetm instruction
10556         pattern.
10557         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10558
10559 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10560
10561         * target-insns.def (atomic_test_and_set): New targetm instruction
10562         pattern.
10563         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10564         HAVE_*/gen_* interface.
10565
10566 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10567
10568         * target-insns.def (can_extend, ptr_extend): New targetm instruction
10569         patterns.
10570         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10571         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10572         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10573         * rtlanal.c (nonzero_bits1): Likewise.
10574         (num_sign_bit_copies1): Likewise.
10575
10576 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10577
10578         * target-insns.def (eh_return): New targetm instruction pattern.
10579         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10580         interface.
10581         * function.c (thread_prologue_and_epilogue_insns): Remove
10582         preprocessor condition.
10583
10584 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10585
10586         * target-insns.def (indirect_jump): New targetm instruction pattern.
10587         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10588         interface.
10589
10590 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10591
10592         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10593         instead of nonimmediate_operand.  Remove C condiition.
10594
10595 2015-07-28  Richard Biener  <rguenther@suse.de>
10596
10597         * match.pd: Add more simplification of address comparisons.
10598
10599 2015-07-28  Richard Biener  <rguenther@suse.de>
10600
10601         * match.pd: Re-order two cases in comparison with max/min
10602         value simplification to make it apply for bools.
10603
10604 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10605
10606         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10607         Handle simple SIGN_EXTEND or ZERO_EXTEND.
10608         (aarch64_rtx_costs): Properly strip extend or extract before
10609         passing down to rtx costs again.
10610
10611 2015-07-28  Nick Clifton  <nickc@redhat.com>
10612
10613         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10614         Optimizes the case where -mes0 is active and a constant symbolic
10615         address is used.
10616         * config/rl78/rl78-protos.h: Prototype the new function.
10617         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10618
10619 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10620
10621         * tree-parloops.c (reduc_stmt_res): New function.
10622         (initialize_reductions, add_field_for_reduction)
10623         (create_phi_for_local_result, create_loads_for_reductions)
10624         (create_stores_for_reduction, build_new_reduction): Handle case that
10625         reduc_stmt is a phi.
10626         (gather_scalar_reductions): Allow double_reduc reductions.
10627
10628 2015-07-28  Richard Biener  <rguenther@suse.de>
10629
10630         * fold-const.c (fold_comparison): Remove equality folding
10631         of decl addresses ...
10632         * match.pd: ... here and merge with existing pattern.
10633
10634 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10635
10636         PR tree-optimization/66828
10637         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10638         from int64_t to uint64_t.
10639
10640 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10641
10642         * opts-common.c (read_cmdline_option): List DriverOnly enum values
10643         as valid only in the error message of the driver, not in the
10644         messages of the language compilers.
10645
10646 2015-07-27  Tom de Vries  <tom@codesourcery.com>
10647
10648         * tree-parloops.c (gather_scalar_reductions): Simplify function
10649         structure.
10650
10651 2015-07-27  Marek Polacek  <polacek@redhat.com>
10652
10653         * ipa-devirt.c (types_same_for_odr): Fix typo.
10654
10655 2015-07-27  Jason Merrill  <jason@redhat.com>
10656
10657         PR debug/66468
10658         * dwarf2out.c (gen_inlined_subroutine_die): Check
10659         cgraph_function_possibly_inlined_p.
10660
10661 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10662
10663         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10664         Place integer variant first.
10665         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10666
10667 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10668
10669         PR/63870
10670         * config/arm/arm-builtins.c (enum arm_builtins):
10671         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10672         (ARM_BUILTIN_NEON_BASE): Rename macro to....
10673         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10674         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10675         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10676
10677 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10678
10679         PR/63870
10680         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10681         Add qualifier_lane_index.
10682         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10683         (arm_getlane_qualifiers): Use qualifier_lane_index.
10684         (arm_lanemac_qualifiers): Rename to...
10685         (arm_mac_n_qualifiers): ...this.
10686         (LANEMAC_QUALIFIERS): Rename to...
10687         (MAC_N_QUALIFIERS): ...this.
10688         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10689         (arm_setlane_qualifiers): Use qualifier_lane_index.
10690         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10691         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10692         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10693         (arm_expand_neon_builtin): Handle qualifier_lane_index.
10694
10695         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10696         * config/arm/arm.c (bounds_check): Likewise, improve error message.
10697         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10698         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10699         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10700         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10701         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10702         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10703         qualifiers to TERNOP_IMM.
10704         (vdup_lane): Change qualifiers to GETLANE.
10705         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10706         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10707         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10708         vqdmlsl_n): Change qualifiers to MAC_N.
10709
10710         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10711         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10712         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10713         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10714         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10715         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10716         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10717         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10718         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10719         Remove call to neon_lane_bounds.
10720
10721 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10722
10723         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10724         Place integer variant first.
10725
10726 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
10727
10728         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10729         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10730         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10731         for armv6kz targets.
10732         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10733         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10734         (FL_FOR_ARCH6ZK): Remove.
10735         (FL_FOR_ARCH6KZ): New.
10736         (arm_arch6zk): New declaration.
10737         * config/arm/arm-tables.opt: Regenerate.
10738         * config/arm/arm.c (arm_arch6kz): New.
10739         (arm_option_override): Set arm_arch6kz.
10740         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10741         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10742         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10743
10744 2015-07-27  Marek Polacek  <polacek@redhat.com>
10745
10746         PR c++/66555
10747         PR c/54979
10748         * doc/invoke.texi: Document -Wtautological-compare.
10749
10750 2015-07-27  Richard Biener  <rguenther@suse.de>
10751
10752         * genmatch.c (decision_tree::gen_gimple): Split out large
10753         subtrees into separate functions.
10754         (decision_tree::gen_generic): Likewise.
10755
10756 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
10757
10758         * config/alpha/alpha.c: Use SUBREG_P predicate.
10759         * config/alpha/predicates.md: Ditto.
10760
10761 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10762
10763         * config.host (s390*-*-*): Include driver-native.c only when
10764         building with s390* as host *and* target.
10765
10766 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
10767
10768         PR target/66930
10769         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10770         T bit register modified_between_p check.
10771
10772 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10773
10774         * config/i386/i386.c: Use SUBREG_P predicate.
10775         * config/i386/i386.md: Ditto.
10776         * config/i386/sse.md: Ditto.
10777         * config/i386/predicates.md: Ditto.
10778
10779 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10780
10781         PR target/67004
10782         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10783         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10784
10785 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10786
10787         * Makefile.in: Remove use of TREEBROWSER.
10788         * config.in: Regenerated.
10789         * configure: Regenerated.
10790         * configure.ac: Remove definition of TREEBROWSER.
10791         * tree-browser.c: Removed.
10792         * tree-browser.def: Removed.
10793
10794 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10795
10796         * graphite-scop-detection.c: Include gimple-pretty-print.h.
10797         (stmt_simple_for_scop_p): Print when a stmt is not handled in
10798         Graphite.
10799         (scopdet_basic_block_info): Print when a loop or bb cannot be
10800         represented in Graphite.
10801
10802 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10803
10804         PR target/66648
10805         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10806         execution guard when min_size is less than size_needed.
10807
10808 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10809
10810         * doc/install.texi: Document supported versions of ISL.
10811
10812 2015-07-25  Jeff Law  <law@redhat.com>
10813
10814         Revert:
10815         PR lto/66752
10816         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10817         unable to find X NE 0 in the tables, return X as the simplified
10818         condition.
10819         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10820         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10821         to VISISTED_BBS.  */
10822         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10823         after removing the control flow statement and unnecessary edges.
10824
10825 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
10826
10827         Revert:
10828         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10829
10830         PR rtl-optimization/64164
10831         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10832         * tree-ssa-copyrename.c: Removed.
10833         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10834         -ftree-coalesce-vars.
10835         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10836         * common.opt (ftree-copyrename): Ignore.
10837         (ftree-coalesce-inlined-vars): Likewise.
10838         * doc/invoke.texi: Remove the ignored options above.
10839         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10840         * tree-ssa-coalesce.h: ... here.
10841         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10842         headers required by it.
10843         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10844         across variables when flag_tree_coalesce_vars.  Check register
10845         use and promoted modes to allow coalescing.  Moved to
10846         tree-ssa-coalesce.c.
10847         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10848         with its member functions to tree-ssa-coalesce.c.
10849         (var_map_base_init): Likewise.  Renamed to
10850         compute_samebase_partition_bases.
10851         (partition_view_normal): Drop want_bases parameter.
10852         (partition_view_bitmap): Likewise.
10853         * tree-ssa-live.h: Adjust declarations.
10854         * tree-ssa-coalesce.c: Include explow.h.
10855         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10856         default defs at the entry point.
10857         (dump_part_var_map): New.
10858         (compute_optimized_partition_bases): New, called by...
10859         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10860         of compute_samebase_partition_bases.  Adjust.
10861         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10862         * cfgexpand.c (leader_merge): New.
10863         (get_rtl_for_parm_ssa_default_def): New.
10864         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10865         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10866         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10867         redundant MEM attr setting.
10868         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10869         from...
10870         (expand_one_stack_var): ... this.  New wrapper to check and
10871         skip already expanded SSA partitions.
10872         (record_alignment_for_reg_var): New, factored out of...
10873         (expand_one_var): ... this.
10874         (expand_one_ssa_partition): New.
10875         (adjust_one_expanded_partition_var): New.
10876         (expand_one_register_var): Check and skip already expanded SSA
10877         partitions.
10878         (expand_used_vars): Don't create DECLs for anonymous SSA
10879         names.  Expand all SSA partitions, then adjust all SSA names.
10880         (pass::execute): Replace the loops that set
10881         SA.partition_to_pseudo from partition leaders and cleared
10882         DECL_RTL for multi-location variables, and that which used to
10883         rename vars and set attrs, with one that clears DECL_RTL and
10884         checks that PARMs and RESULTs default_defs match DECL_RTL.
10885         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10886         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10887         * explow.c (promote_ssa_mode): New.
10888         * explow.h (promote_ssa_mode): Declare.
10889         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10890         * function.c: Include cfgexpand.h.
10891         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10892         (use_register_for_parm_decl): Wrapper for the above to
10893         special-case the result_ptr.
10894         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10895         (split_complex_args): Take assign_parm_data_all argument.
10896         Pass it to rtl_for_parm.  Set up rtl and context for split
10897         args.
10898         (assign_parms_augmented_arg_list): Adjust.
10899         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10900         multiple locations.  Recognize split complex args.
10901         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10902         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10903         (assign_parm_setup_block): Prefer SSA-assigned location.
10904         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10905         if stack_parm is NULL.
10906         (assign_parm_setup_stack): Prefer SSA-assigned location.
10907         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10908         rtl before testing for pointer bounds.  Special-case result_ptr.
10909         (expand_function_start): Maybe reset DECL_RTL of result.
10910         Prefer SSA-assigned location for result and static chain.
10911         Factor out DECL_RESULT and SET_DECL_RTL.
10912         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10913         anonymous SSA names.  Use promote_ssa_mode.
10914         (get_temp_reg): Likewise.
10915         (remove_ssa_form): Adjust.
10916         * stor-layout.c (layout_decl): Don't set mem attributes of
10917         non-MEMs.
10918         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10919         and get its reg_usage for reg invalidation.
10920         (compute_bb_dataflow): Pass it insn.
10921         (emit_notes_in_bb): Likewise.
10922
10923 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10924
10925         * config/i386/i386.c (ix86_va_start): Remove
10926         unneeded !TARGET_64BIT check.
10927         (ix86_gimplify_va_arg): Ditto.
10928
10929 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10930
10931         * graphite-sese-to-poly.c (build_poly_scop): Always call
10932         rewrite_commutative_reductions_out_of_ssa.
10933
10934 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10935
10936         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10937         flag_associative_math to FLOAT_TYPE_P.  Honour
10938         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10939
10940 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10941
10942         PR c++/64079
10943         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10944         and "%qD" in warning_at instead of "%q+D" in warning.
10945
10946 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10947
10948         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10949         (ix86_function_abi): Cleanup.
10950
10951 2015-07-24  Michael Darling  <darlingm@gmail.com>
10952
10953         PR other/66259
10954         * acinclude.m4: Reflects renaming of configure.in to configure.ac
10955         * configure: Likewise
10956         * configure.ac: Likewise
10957         * doc/install.texi: Likewise
10958         * doc/tm.texi: Likewise
10959         * doc/tm.texi.in: Likewise
10960
10961 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10962
10963         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10964         manually swapping values.
10965         * cse.c (fold_rtx): Likewise.
10966         * lra-eliminations.c (form_sum): Likewise.
10967
10968 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10969
10970         PR target/64003
10971         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10972         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10973         (*jcc_1, *jcc_2, jump, simple_return_internal)
10974         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10975         Set length_nobnd attribute instead of length attribute.
10976         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10977         (length_nobnd): Remove attribute.
10978         (length): Remove length_nobnd processing.
10979
10980 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
10981
10982         * gimplify.c (omp_default_clause): New function.  Reorganize flow
10983         for clarity. Broken out of ...
10984         (omp_notice_variable): ... here.
10985
10986 2015-07-24  Gary Funck  <gary@intrepid.com>
10987
10988         PR middle-end/66984
10989         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10990         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10991
10992 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10993
10994         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10995         exit-first loop transform.
10996
10997 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10998
10999         PR 66714
11000         * tree-cfg.c (struct replace_decls_d): New struct.
11001         (replace_block_vars_by_duplicates_1): New function.
11002         (replace_block_vars_by_duplicates): Use it to replace the decls
11003         in the value exprs by duplicates.
11004
11005 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11006
11007         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
11008         -shared, -symbolic, -rdynamic.
11009
11010 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11011
11012         PR target/65711
11013         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
11014         -dynamic-linker within %{!static %{!shared, and -rdynamic within
11015         %{!static.
11016
11017 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
11018
11019         PR ipa/66566
11020         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
11021         edge summary is available.
11022
11023 2015-07-24  Richard Biener  <rguenther@suse.de>
11024
11025         * genmatch.c (struct dt_node): Add statistic fields.
11026         (dt_node::analyze): New method.
11027         (decision_tree::gen_gimple): Call analyze on the root node
11028         and print statistics to stderr.
11029         (decision_tree::gen_generic): Likewise.
11030
11031 2015-07-24  Richard Biener  <rguenther@suse.de>
11032
11033         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
11034         against the highest or lowest possible integer ...
11035         * match.pd: ... as patterns here.
11036
11037 2015-07-24  Richard Biener  <rguenther@suse.de>
11038
11039         * genmatch.c (struct capture_info): Add same_as field.
11040         (capture_info::capture_info): Initialize same_as.
11041         (capture_info::walk_match): Compute same_as.
11042         (capture_info::walk_result): Compute stuff for the leader.
11043         (capture_info::walk_c_expr): Likewise.
11044         (dt_simplify::gen_1): Only look at leaders when deciding
11045         to force no side-effects or emit side-effects of omitted operands.
11046
11047 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11048
11049         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
11050         reg note to the GPR -> FPR save instructions.
11051
11052 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11053
11054         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
11055         cheaper.
11056         (s390_expand_insv): Don't generate risbg pattern for constant zero
11057         sources.
11058         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
11059         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
11060         splitters.
11061
11062 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11063
11064         * config/s390/s390.c (s390_reorg): Clean up handling of processors
11065         with
11066         -mtune=
11067         (s390_issue_rate): Likewise.
11068         (s390_sched_reorder): Likewise.
11069         (s390_sched_variable_issue): Likewise.
11070         (s390_loop_unroll_adjust): Likewise.
11071         (s390_option_override):  Likewise.
11072
11073 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11074
11075         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11076         processor capabilities with -march=native.
11077         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11078         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
11079         (S390_TARGET_BITS_STRING): Macro to simplify specs.
11080
11081 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11082
11083         * config/s390/s390.c (s390_issue_rate): Handle
11084         PROCESSOR_2094_Z9_EC.
11085         (s390_option_override): Likewise.
11086         (s390_adjust_priority): Likewise.
11087
11088 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11089
11090         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11091         when cross compiling.
11092
11093 2015-07-24  Richard Biener  <rguenther@suse.de>
11094
11095         * fold-const.c (maybe_canonicalize_comparison_1): Move
11096         A code CST canonicalization ...
11097         * match.pd: ... to a pattern here.
11098
11099 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
11100
11101         Revert:
11102         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11103         PR target/63521
11104         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11105         (HONOR_REG_ALLOC_ORDER): Define.
11106
11107 2015-07-24  Richard Biener  <rguenther@suse.de>
11108
11109         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11110         * fold-const.c (fold_comparison): Move parameter does not
11111         alias &local simplification ...
11112         * match.pd: ... as a pattern here.
11113
11114 2015-07-24  Richard Biener  <rguenther@suse.de>
11115
11116         * gimple-fold.c (replace_stmt_with_simplification): Special-case
11117         valueizing call operands.
11118         * gimple-match-head.c (maybe_push_res_to_seq): Take
11119         number of call arguments from ops array.
11120         (do_valueize): New function.
11121         (gimple_simplify): Return true if valueization changed
11122         any operand even if the result didn't simplify further.
11123
11124 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11125
11126         PR middle-end/25530
11127         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11128
11129 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11130
11131         PR middle-end/25529
11132         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11133
11134 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11135
11136         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11137         instruction.
11138
11139 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11140
11141         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11142         clean up.
11143
11144 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
11145
11146         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11147         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
11148         targets here.
11149         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11150         ms_va_list_type_node initialization.
11151
11152 2015-07-23  Jeff Law  <law@redhat.com>
11153
11154         PR lto/66752
11155         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11156         unable to find X NE 0 in the tables, return X as the simplified
11157         condition.
11158         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11159         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
11160         to VISISTED_BBS.  */
11161         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11162         after removing the control flow statement and unnecessary edges.
11163
11164 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11165
11166         * tree-pass.h (get_current_pass_name): Removed.
11167
11168 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
11169
11170         PR rtl-optimization/64164
11171         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11172         * tree-ssa-copyrename.c: Removed.
11173         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11174         -ftree-coalesce-vars.
11175         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11176         * common.opt (ftree-copyrename): Ignore.
11177         (ftree-coalesce-inlined-vars): Likewise.
11178         * doc/invoke.texi: Remove the ignored options above.
11179         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11180         * tree-ssa-coalesce.h: ... here.
11181         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11182         headers required by it.
11183         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11184         across variables when flag_tree_coalesce_vars.  Check register
11185         use and promoted modes to allow coalescing.  Moved to
11186         tree-ssa-coalesce.c.
11187         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11188         with its member functions to tree-ssa-coalesce.c.
11189         (var_map_base_init): Likewise.  Renamed to
11190         compute_samebase_partition_bases.
11191         (partition_view_normal): Drop want_bases parameter.
11192         (partition_view_bitmap): Likewise.
11193         * tree-ssa-live.h: Adjust declarations.
11194         * tree-ssa-coalesce.c: Include explow.h.
11195         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11196         default defs at the entry point.
11197         (dump_part_var_map): New.
11198         (compute_optimized_partition_bases): New, called by...
11199         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11200         of compute_samebase_partition_bases.  Adjust.
11201         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11202         * cfgexpand.c (leader_merge): New.
11203         (get_rtl_for_parm_ssa_default_def): New.
11204         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11205         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11206         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11207         redundant MEM attr setting.
11208         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11209         from...
11210         (expand_one_stack_var): ... this.  New wrapper to check and
11211         skip already expanded SSA partitions.
11212         (record_alignment_for_reg_var): New, factored out of...
11213         (expand_one_var): ... this.
11214         (expand_one_ssa_partition): New.
11215         (adjust_one_expanded_partition_var): New.
11216         (expand_one_register_var): Check and skip already expanded SSA
11217         partitions.
11218         (expand_used_vars): Don't create DECLs for anonymous SSA
11219         names.  Expand all SSA partitions, then adjust all SSA names.
11220         (pass::execute): Replace the loops that set
11221         SA.partition_to_pseudo from partition leaders and cleared
11222         DECL_RTL for multi-location variables, and that which used to
11223         rename vars and set attrs, with one that clears DECL_RTL and
11224         checks that PARMs and RESULTs default_defs match DECL_RTL.
11225         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11226         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11227         * explow.c (promote_ssa_mode): New.
11228         * explow.h (promote_ssa_mode): Declare.
11229         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11230         * function.c: Include cfgexpand.h.
11231         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11232         (use_register_for_parm_decl): Wrapper for the above to
11233         special-case the result_ptr.
11234         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11235         (split_complex_args): Take assign_parm_data_all argument.
11236         Pass it to rtl_for_parm.  Set up rtl and context for split
11237         args.
11238         (assign_parms_augmented_arg_list): Adjust.
11239         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11240         multiple locations.  Recognize split complex args.
11241         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11242         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11243         (assign_parm_setup_block): Prefer SSA-assigned location.
11244         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11245         if stack_parm is NULL.
11246         (assign_parm_setup_stack): Prefer SSA-assigned location.
11247         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11248         rtl before testing for pointer bounds.  Special-case result_ptr.
11249         (expand_function_start): Maybe reset DECL_RTL of result.
11250         Prefer SSA-assigned location for result and static chain.
11251         Factor out DECL_RESULT and SET_DECL_RTL.
11252         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11253         anonymous SSA names.  Use promote_ssa_mode.
11254         (get_temp_reg): Likewise.
11255         (remove_ssa_form): Adjust.
11256         * stor-layout.c (layout_decl): Don't set mem attributes of
11257         non-MEMs.
11258         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11259         and get its reg_usage for reg invalidation.
11260         (compute_bb_dataflow): Pass it insn.
11261         (emit_notes_in_bb): Likewise.
11262
11263 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
11264
11265         PR target/66217
11266         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11267         prototype.
11268         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11269         (rs6000_emit_2insn_and): Handle dot forms.
11270         * config/rs6000/rs6000.md (and<mode>3): Adjust.
11271         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
11272         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11273
11274 2015-07-23  Richard Biener  <rguenther@suse.de>
11275
11276         * generic-match-head.c: Include cgraph.h.
11277         * gimple-match-head.c: Likewise.
11278         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11279         SSA names.
11280         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11281         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
11282         pattern.
11283
11284 2015-07-23  Richard Biener  <rguenther@suse.de>
11285
11286         * gimple-fold.c (fold_gimple_cond): Do not require folding
11287         results to pass valid_gimple_rhs_p.
11288         * tree-cfg.h (fold_cond_expr_cond): Remove.
11289         * tree-cfg.c (fold_cond_expr_cond): Likewise.
11290         (make_edges): Do not call it.
11291         * tree-inline.c (tree_function_versioning): Likewise.
11292
11293 2015-07-23  Tom de Vries  <tom@codesourcery.com>
11294
11295         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11296         vect_force_simple_reduction.
11297         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11298         (vect_is_simple_reduction_1): Add and handle
11299         need_wrapping_integral_overflow parameter.
11300         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11301         need_wrapping_integral_overflow parameter.
11302         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11303         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11304         decl.
11305
11306 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
11307
11308         PR tree-optimization/66926,66951
11309         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11310         INNER_LOOP and fix up condition for renaming virtual operands.
11311
11312 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11313
11314         * combine.c (try_combine): Use std::swap instead of manually
11315         swapping.
11316
11317 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
11318
11319         * config/mips/i6400.md: New file.
11320         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11321         (mips64r6): Likewise.
11322         (i6400): Define.
11323         * config/mips/mips-tables.opt: Regenerate.
11324         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11325         (mips_issue_rate): Add support for i6400.
11326         (mips_multipass_dfa_lookahead): Likewise.
11327         * config/mips/mips.h (TUNE_I6400): Define.
11328         * config/mips/mips.md: Include i6400.md.
11329         (processor): Add i6400.
11330         * doc/invoke.texi (-march=@var{arch}): Add i6400.
11331
11332 2015-07-23  Richard Biener  <rguenther@suse.de>
11333
11334         PR middle-end/66916
11335         * match.pd: Guard widen and sign-change comparison simplification
11336         with single_use.
11337
11338 2015-07-23  Richard Biener  <rguenther@suse.de>
11339
11340         PR tree-optimization/66945
11341         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
11342         ::before_dom_children): Force the propagators idea of
11343         non-executable edges to materialize, not what the folder
11344         chooses.
11345
11346 2015-07-23  Richard Biener  <rguenther@suse.de>
11347
11348         * gimple.h (gimple_cond_make_false): Use 0 != 0.
11349         (gimple_cond_make_true): Use 1 != 0.
11350
11351 2015-07-22  DJ Delorie  <dj@redhat.com>
11352
11353         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11354         slashes.
11355
11356         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11357         (ashrhi3): Likewise.
11358         (lshrhi3): Likewise.
11359         (movhi): Take advantage of zero-extend to load small constants.
11360         (movpsi): Likewise.
11361         (and<mode>3): Likewise.
11362         (zero_extendqihi2): Likewise.
11363         (zero_extendqisi2): New.
11364         * config/msp430/constraints.md (N,O): New.
11365         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11366
11367 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
11368
11369         PR target/66954
11370         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11371         to enum feature_priority and feature_list.
11372         (fold_builtin_cpu): Add F_AES to enum processor_features
11373         and isa_names_table.
11374
11375 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11376
11377         PR driver/66737
11378         * config/i386/linux-common.h (MPX_SPEC): Use linker option
11379         for 64bit target only.
11380
11381 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11382
11383         * config/nvptx/nvptx.c: Expand some comments.
11384
11385 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
11386
11387         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11388         (cortex_a53_advsimd): ...This.
11389
11390 2015-07-22  Richard Biener  <rguenther@suse.de>
11391
11392         * genmatch.c (expr::gen_transform): Clarify error message
11393         and display location.
11394
11395 2015-07-22  Richard Biener  <rguenther@suse.de>
11396
11397         * genmatch.c (struct operand): Add location member.
11398         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11399         constructors.
11400         (struct simplify): Remove match_location and result_location
11401         members.
11402         (elsehwere): Adjust.
11403
11404 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
11405
11406         * config/mips/m5100.md: New file.
11407         * config/mips/mips-cpus.def (m5100, m5101): Define.
11408         * config/mips/mips-tables.opt: Regenerate.
11409         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11410         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11411         -march=m5101 to -mips32r5.
11412         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11413         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11414         !-msoft-float.
11415         * config/mips/mips.md: Include m5100.md.
11416         (processor): Add m5100.
11417         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11418
11419 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
11420
11421         * config/mips/mips-cpus.def (interaptiv): Define.
11422         * config/mips/mips-tables.opt: Regenerate.
11423         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11424         -mips32r2.
11425         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11426         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11427
11428 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11429
11430         PR target/63521
11431         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11432         (HONOR_REG_ALLOC_ORDER): Define.
11433
11434 2015-07-22  Richard Biener  <rguenther@suse.de>
11435
11436         PR tree-optimization/66952
11437         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11438         blocks we end up executing unconditionally reset all SSA
11439         info such as range and alignment.
11440         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11441         * tree-ssanames.c (reset_flow_sensitive_info): New function.
11442
11443 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11444
11445         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11446         typo in attribute.
11447
11448 2015-07-22  Richard Biener  <rguenther@suse.de>
11449
11450         * genmatch.c (parser::parse_result): Properly handle
11451         match with result operands and conditions.
11452
11453 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11454
11455         PR target/63870
11456         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11457         Add qualifier_struct_load_store_lane_index.
11458         (aarch64_types_loadstruct_lane_qualifiers): Use
11459         qualifier_struct_load_store_lane_index for lane index argument for
11460         last argument.
11461         (aarch64_types_storestruct_lane_qualifiers): Ditto.
11462         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11463         (aarch64_simd_expand_args): Add new argument describing mode of
11464         builtin. Check lane bounds for arguments with
11465         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11466         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11467         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11468         (aarch64_simd_expand_builtin): Handle arguments with
11469         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11470         aarch64_simd_expand_args.
11471         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11472         vst[234]_lane with BUILTIN_VALLDIF.
11473         * config/aarch64/aarch64-simd.md:
11474         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11475         endianness reversal on lane index.
11476         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11477         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11478         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11479         (vec_store_lanesci_lane<mode>): Ditto.
11480         (vec_store_lanesxi_lane<mode>): Ditto.
11481         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11482         reversal of lane index.
11483         (aarch64_ld3_lane<mode>): Ditto.
11484         (aarch64_ld4_lane<mode>): Ditto.
11485         (aarch64_st2_lane<mode>): Ditto.
11486         (aarch64_st3_lane<mode>): Ditto.
11487         (aarch64_st4_lane<mode>): Ditto.
11488         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11489         to qmode. Add new mode parameter. Update uses.
11490         (__LD3_LANE_FUNC): Ditto.
11491         (__LD4_LANE_FUNC): Ditto.
11492         (__ST2_LANE_FUNC): Ditto.
11493         (__ST3_LANE_FUNC): Ditto.
11494         (__ST4_LANE_FUNC): Ditto.
11495
11496 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
11497
11498         * doc/invoke.texi (Language Independent Options): Rename node to
11499         Diagnostic Message Formatting Options.
11500
11501 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
11502
11503         PR ipa/66424.
11504         * lra-remat.c (operand_to_remat): Prevent using insns with input
11505         subregs processed separately by IRA.
11506
11507 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
11508
11509         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11510         straight loops.
11511         (single_imm_use): Check for iterator node.
11512         (num_imm_uses): Likewise.
11513         * tree-ssa-operands.c (has_zero_uses_1): Delete.
11514         (single_imm_use_1): Check for iterator node.
11515
11516 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
11517             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11518
11519         * configure.ac: Add check for new options in isl-0.15.
11520         * config.in, configure: Rebuilt.
11521         * graphite-blocking.c: Include <isl/constraint.h>
11522         * graphite-interchange.c,  graphite-poly.c: Likewise.
11523         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11524         * graphite.c: Likewise.
11525         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11526         <isl/union_set.h>.
11527         * graphite-dependences.c: Include <isl/constraint.h>.
11528         (max_number_of_out_dimensions): Returns isl_stat.
11529         (extend_schedule_1): Likewise
11530         (extend_schedule): Corresponding changes.
11531         * graphite-optimize-isl.c: Include <isl/constraint.h> and
11532         <isl/union_set.h>.
11533         (getSingleMap): Change return type of isl_stat.
11534         (optimize_isl): Conditionally use
11535         isl_options_set_schedule_serialize_sccs.
11536         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11537         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11538
11539 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
11540
11541         PR target/66956
11542         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11543         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11544
11545 2015-07-21  Richard Biener  <rguenther@suse.de>
11546
11547         PR tree-optimization/66948
11548         * genmatch.c (capture_info::walk_match): Also recurse to
11549         captures.  Properly compute expr state from captures of
11550         captures.
11551         * match.pd: Add single-use guards to
11552         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11553
11554 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
11555
11556         * config/nvptx/mkoffload.c (process): Add static destructor call.
11557
11558 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11559
11560         PR middle-end/66915
11561         * match.pd (A - B -> A + (-B)): Don't allow folding
11562         when type if a fixed-point type.
11563
11564 2015-07-20  DJ Delorie  <dj@redhat.com>
11565
11566         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11567         (iorqi3_real): Likewise for set1.
11568
11569 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
11570
11571         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11572         for !TARGET_64BIT.
11573
11574 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
11575
11576         * graphite-isl-ast-to-gimple.c:
11577         Refactor so that each function can access 'region'. This will help
11578         maintain a parameter rename_map within a region.
11579
11580 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11581
11582         * config/rs6000/rs6000.md (*lt0_disi): New.
11583
11584 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11585
11586         PR target/66217
11587         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
11588         "available letters" comment.
11589         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11590         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11591         and_2rld_operand):  Delete.
11592         (and_operand): Adjust.
11593         (rotate_mask_operator): New.
11594         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11595         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11596         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11597         extract_ME): Delete.
11598         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11599         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11600         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11601         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11602         rs6000_emit_2insn_and): New.
11603         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11604         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11605         includes_rldic_lshift_p, includes_rldicr_lshift_p,
11606         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11607         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11608         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11609         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11610         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11611         rs6000_emit_2insn_and): New.
11612         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11613         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11614         handling.
11615         <NOT>: Don't fall through to next case.
11616         <AND>: Handle the various rotate-and-mask cases directly.
11617         <IOR>: Always cost as one insn.
11618         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11619         (and<mode>3): Adjust expander for the new patterns.
11620         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11621         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11622         (*and<mode>3_imm_dot_shifted): New.
11623         (*and<mode>3_mask): Delete, rewrite as ...
11624         (and<mode>3_mask): ... New.
11625         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11626         (andsi3_internal0_nomc): Delete.
11627         (*andsi3_internal6): Delete.
11628         (*and<mode>3_2insn): New.
11629         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11630         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11631         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11632         *insvdi_internal3): Delete.
11633         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11634         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11635         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11636         *ior<mode>_mask): New.
11637         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11638         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11639         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11640         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11641         Delete.
11642         (ashr<mode>3): Delete expander.
11643         (*ashr<mode>3): Rename to ...
11644         (ashr<mode>3): ... This.
11645         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11646         (*rotldi3_internal4, *rotldi3_internal5 and split,
11647         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11648         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11649         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11650         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11651         (splitter for loading a mask): Adjust.
11652         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11653
11654 2015-07-20  Marek Polacek  <polacek@redhat.com>
11655
11656         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11657         output_add_clobbers, output_added_clobbers_hard_reg_p,
11658         gen_rtx_scratch): Remove declarations.
11659
11660 2015-07-20  Marek Polacek  <polacek@redhat.com>
11661
11662         PR c++/55095
11663         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11664
11665 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11666
11667         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11668         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11669
11670 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11671
11672         * combine.c (combine_simplify_rtx): Move simplification step
11673         before various transformations/substitutions.
11674
11675 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
11676
11677         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11678         (struct int_traits): Likewise.
11679
11680 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11681
11682         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11683         function to vmsdbgout_function_decl.
11684
11685 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11686
11687         PR target/66922
11688         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11689         from misaligned positions.
11690         (ix86_expand_pinsr): Reject insertions to misaligned positions.
11691
11692 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
11693
11694         PR middle-end/46851
11695         PR middle-end/60340
11696         * Makefile.in: Removed omega.o.
11697         * common.opt: Document flag fcheck-data-deps as deprecated.
11698         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11699         its associated params: omega-max-vars, omega-max-geqs,
11700         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11701         omega-max-keys, omega-eliminate-redundant-constraints.
11702         * doc/loop.texi: Remove all the section on Omega.
11703         * graphite-blocking.c: Include missing params.h: it used to be
11704         included through tree-data-ref.h and omega.h.
11705         * graphite-isl-ast-to-gimple.c: Same.
11706         * graphite-optimize-isl.c: Same.
11707         * graphite-sese-to-poly.c: Same.
11708         * graphite.c: Same.
11709         * omega.c: Remove.
11710         * omega.h: Remove.
11711         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11712         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11713         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11714         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11715         * passes.def: Remove pass_check_data_deps.
11716         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11717         (dump_conflict_function): Same.
11718         (dump_subscript): Same.
11719         (print_direction_vector): Same.
11720         (print_dir_vectors): Same.
11721         (print_lambda_vector): Same.
11722         (print_dist_vectors): Same.
11723         (dump_data_dependence_relation): Same.
11724         (dump_data_dependence_relations): Same.
11725         (dump_dist_dir_vectors): Same.
11726         (dump_ddrs): Same.
11727         (init_omega_eq_with_af): Removed.
11728         (omega_extract_distance_vectors): Removed.
11729         (omega_setup_subscript): Removed.
11730         (init_omega_for_ddr_1): Removed.
11731         (init_omega_for_ddr): Removed.
11732         (ddr_consistent_p): Removed.
11733         (compute_affine_dependence): Do not use omega to check data
11734         dependences.
11735         (compute_data_dependences_for_bb): Removed.
11736         (analyze_all_data_dependences): Removed.
11737         (tree_check_data_deps): Removed.
11738         * tree-data-ref.h: Do not include omega.h.
11739         (compute_data_dependences_for_bb): Removed.
11740         (tree_check_data_deps): Removed.
11741         * tree-ssa-loop.c (pass_check_data_deps): Removed.
11742         (make_pass_check_data_deps): Removed.
11743         * tree-ssa-phiopt.c: Include params.h.
11744         * tree-vect-data-refs.c: Same.
11745         * tree-vect-slp.c: Same.
11746
11747 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11748
11749         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11750         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
11751         (mem->fpreg splitters): Ditto.
11752         (general_operand->nonimmediate_operand splitter): Use explicit modes.
11753         Disable DFmode for TARGET_64BIT.
11754
11755 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11756
11757         PR target/66906
11758         * config/i386/i386.c (ix86_expand_prologue): Replicate static
11759         chain on the stack.
11760
11761 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11762
11763         * config/nvptx/mkoffload.c (process): Constify host data.
11764         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11765         Constify host data.
11766         (generate_host_descr_file): Likewise.
11767
11768 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
11769             Sebastian Pop  <s.pop@samsung.com>
11770
11771         PR middle-end/61929
11772         * graphite-dependences.c (add_pdr_constraints): Renamed
11773         pdr->extent to pdr->subscript_sizes.
11774         * graphite-interchange.c (build_linearized_memory_access): Add
11775         back all gcc_assert's that the "isl_int to isl_val conversion"
11776         patch has removed.  Refactored.
11777         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11778         * graphite-poly.c (new_poly_dr): Same.
11779         (free_poly_dr): Same.
11780         * graphite-poly.h (struct poly_dr): Same.
11781         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11782         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11783         * graphite-scop-detection.h: Fix space.
11784         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11785         back all gcc_assert's removed by a previous patch.
11786         (wrap): Remove the_isl_ctx global variable that the same patch has
11787         added.
11788         (build_loop_iteration_domains): Same.
11789         (add_param_constraints): Same.
11790         (pdr_add_data_dimensions): Same.  Refactored.
11791         (build_poly_dr): Renamed extent to subscript_sizes.
11792
11793 2015-07-17  Marek Polacek  <polacek@redhat.com>
11794
11795         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11796         * match.pd: ... here.
11797
11798 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11799
11800         * config/nvptx/mkoffload.c (process): Constify target data.
11801         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11802         Constify target data.
11803         (generate_target_offloadend_file): Likewise.
11804
11805 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
11806
11807         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11808         to allow renaming of PHI arguments on edges incoming from outer
11809         loop header, add corresponding check before start PHI iterator.
11810         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11811         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11812         with true force_vectorize.  Set-up dominator for outer loop too.
11813         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11814         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11815         was marked with force_vectorize and has restricted cfg.
11816         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11817         inner loop.
11818         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11819         do peeling for outer loops.
11820
11821 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
11822             Matthias Klose  <doko@ubuntu.com>
11823
11824         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11825         build-sysroot, sysroot from the `Miscenalleous configure options' to
11826         the `Directories' section and strip trailing `/' from with_sysroot.
11827         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11828         * configure: Regenerated.
11829
11830 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11831
11832         PR target/66824
11833         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11834         (TARGET_HARD_DF_REGS): Ditto.
11835         (TARGET_HARD_XF_REGS): Ditto.
11836         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11837         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11838         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11839         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11840         (*movsf_internal): Add alternatives 16 and 17. Enable
11841         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11842
11843 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11844
11845         PR rtl-optimization/66891
11846         * calls.c (expand_call): Wrap precompute_register_parameters with
11847         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11848
11849 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11850
11851         * config/nvptx/mkoffload.c (process): Constify mapping variables.
11852         Define target data struct and initialize it.
11853
11854 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
11855
11856         PR rtl-optimization/66626
11857         * ira.h (emit-rtl.h): Include.
11858         (non_spilled_static_chain_regno_p): New.
11859         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11860         unless it is non spilled static chain pseudo.
11861         (assign_hard_rego): Spill memory profitable allocno unless it is
11862         non spilled static chain pseudo.
11863         (allocno_spill_priority_compare): Put non spilled static chain
11864         pseudo at the end of sorted array.
11865         (improve_allocation): Do nothing if we have static chain and
11866         non-local goto.
11867         (allocno__priority_compare_func): Put non spilled static chain
11868         pseudo at the beginning of sorted array.
11869         (move_spill_restore): Ignore non spilled static chain pseudo.
11870         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11871         to non spilled static chain pseudo.
11872         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11873         pseudo at the beginning of sorted array.
11874         (spill_for): Spill non spilled static chain pseudo last.
11875         * lra-constraints.c (lra_constraints): Remove static chain pseudo
11876         check for equivalence.
11877
11878 2015-07-16  Martin Liska  <mliska@suse.cz>
11879
11880         PR ipa/66896.
11881         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11882         dst_ctx if it does not exist.
11883
11884 2015-07-16  Martin Liska  <mliska@suse.cz>
11885
11886         * hash-set.h (remove): New function.
11887         (iterator): New iteration class for hash_set.
11888
11889 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11890
11891         * genattrtab.c (make_canonical): Add a file_location parameter.
11892         Use fatal_at rather than fatal.
11893         (get_attr_value): Likewise.  Update call to make_canonical.
11894         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11895         (make_internal_attr): Update calls accordingly.
11896
11897 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11898
11899         * read-md.h (message_with_line, error_with_line): Delete.
11900         * read-md.c (message_with_line, error_with_line): Delete.
11901         * gensupport.h: Include read-md.h.
11902         (md_rtx_info): New structure.
11903         (read_md_rtx): Use it.  Return a bool success value.
11904         * gensupport.c (read_md_rtx): Likewise.
11905         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11906         (main): Update after interface changes.
11907         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11908         (main): Update after interface changes.
11909         * genattrtab.c (insn_code_number): Delete.
11910         (optimize_attrs): Add a max_insn_code parameter and use it instead
11911         of insn_code_number.
11912         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11913         Use *_at rather than *_with_line functions.
11914         (gen_insn): Likewise.
11915         (gen_delay): Likewise.
11916         (gen_insn_reserv): Likewise.
11917         (gen_bypass): Take an md_rtx_info rather than an rtx.
11918         (main): Update after interface changes.  Use a local max_insn_code
11919         variable instead of insn_code_number.
11920         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11921         an rtx.  Use fatal_at rather than fatal.
11922         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11923         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11924         (gen_absence_set, gen_final_absence_set, gen_automaton)
11925         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11926         (main): Update after interface changes.
11927         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11928         and code number.
11929         (main): Update after interface changes.
11930         * genconditions.c (main): Use new read_md_rtx interface.
11931         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11932         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11933         (main): Update after interface changes.
11934         * genemit.c (insn_code_number, insn_index_number): Delete.
11935         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11936         Use fatal_at rather than fatal.
11937         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
11938         rather than fatal.
11939         (gen_split): Likewise.
11940         (main): Update after interface changes.
11941         * genextract.c (line_no): Delete.
11942         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11943         Update call to walk_rtx.
11944         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
11945         rather than message_with_line.
11946         (walk_rtx): Add an md_rtx_info argument.  Update call to
11947         VEC_safe_set_locstr.
11948         (main): Update after interface changes.
11949         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11950         and lineno.  Use error_at rather than separate message_with_line
11951         calls and have_error assignments.
11952         (main): Update after interface changes.
11953         * genmddump.c (main): Use new read_md_rtx interface.
11954         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11955         (main): Update after interface changes.
11956         * genoutput.c (next_code_number): Delete.
11957         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11958         (gen_peephole, gen_expand, gen_split): Likewise.
11959         (note_constraint): Likewise.  Use *_at rather than *_with_line
11960         functions.
11961         (main): Update after interface changes.
11962         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11963         rtx and lineno.
11964         (main): Update after interface changes.
11965         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11966         than an rtx and lineno.
11967         (process_define_constraint): Likewise.
11968         (process_define_register_constraint): Likewise.
11969         (main): Update after interface changes.
11970         * genrecog.c (next_insn_code, pattern_lineno): Delete.
11971         (validate_pattern): Replace top-level rtx with an md_rtx_info.
11972         Use *_at rather than *_with_line functions.
11973         (match_pattern_2): Likewise.
11974         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11975         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11976         Use *_at rather than *_with_line functions.
11977         * gentarget-def.c (add_insn): New function.
11978         (main): Use it.  Use new read_md_rtx interface.
11979
11980 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11981
11982         * gensupport.h (compute_test_codes): Take a file_location rather
11983         than a line number.
11984         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
11985         rather than *_with_line functions.
11986         (process_define_predicate): Update call to compute_test_codes.
11987         * genpreds.c (validate_exp): Take a file_location rather than a
11988         line number.  Use *_at functions rather than *_with_line functions.
11989         (process_define_predicate): Update call to validate_exp.
11990         (constraint_data): Replace lineno field with a file_location.
11991         (add_constraint): Take a file_location rather than a line number.
11992         Use *_at functions rather than *_with_line functions.  Fix error
11993         message for address constraints.  Update after changes to
11994         validate_exp, constraint_data and compute_test_codes.
11995         (process_define_constraint): Update accordingly.
11996         (process_define_register_constraint): Likewise.
11997
11998 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11999
12000         * genoutput.c (data): Use a file_location to record the source
12001         position.
12002         (nothing): Delete.
12003         (idata, idata_end): Remove initialization.
12004         (constraint_data): Replace lineno with a file_location.
12005         (output_insn_data): Update after changes to data.
12006         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
12007         (scan_operands): Likewise, using *_at rather than *_with_line
12008         functions.
12009         (process_template): Likewise.
12010         (validate_insn_alternatives): Likewise.
12011         (validate_insn_operands): Likewise.
12012         (validate_optab_operands): Likewise.
12013         (init_insn_for_nothing): Initialize idata and idata_end.
12014         (note_constraint): Update after changes to constraint_data,
12015         using at rather than with_line functions.
12016         (mdep_constraint_len): Take a file_location rather than a
12017         line number.  Use at rather than with_line functions.
12018
12019 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12020
12021         * read-md.h (fatal_at): Declare.
12022         * read-md.c (fatal_at): New function.
12023         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
12024         to record the source position.
12025         (check_attr_test): Take a file_location instead of a line number.
12026         Use fatal_at instead of fatal.
12027         (check_attr_value): Update after above changes, using "at"
12028         rather than "with_line" reporting functions.
12029         (convert_set_attr_alternative): Likewise.
12030         (gen_attr): Likewise.
12031         (check_defs): Likewise.  Don't assign to read_md_filename.
12032         (gen_insn): Update initialization after above changes.
12033         (gen_delay): Likewise.
12034         (write_insn_cases): Print the filename for a define_peephole.
12035         (gen_insn_reserv): Take a line number as argument and update
12036         the call to check_attr_test.
12037         (main): Pass a line number to gen_insn_reserv.
12038
12039 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12040
12041         * read-md.h (file_location): New structure.
12042         (directive_handler_t): Take a file_location rather than a line number.
12043         (message_at, error_at): Declare.
12044         (read_skip_construct): Delete.
12045         * read-md.c (message_with_line_1): Replace with...
12046         (message_at_1): ...this new function.
12047         (message_at, error_at): New functions.
12048         (message_with_line, error_with_line): Update to use message_at_1.
12049         (handle_enum): Take a file_location rather than a line number
12050         and use error_at for error reporting.
12051         (handle_include): Likewise.
12052         (read_skip_construct): Likewise.  Make static.
12053         (handle_file): Update after above changes.  Pass a file_location
12054         rather than a line number to handle_directive.
12055         * gensupport.c (queue_elem): Replace separate filename and lineno
12056         with a file_location.
12057         (queue_pattern): Replace filename and lineno arguments with a
12058         file_location.  Update after change to queue_elem.
12059         (process_define_predicate): Replace lineno argument with a
12060         file_location and use error_at for error reporting.  Update
12061         after above changes.
12062         (process_rtx): Likewise.
12063         (subst_pattern_match): Likewise.
12064         (get_alternatives_number): Likewise.
12065         (alter_predicate_for_insn): Likewise.
12066         (rtx_handle_directive): Likewise.
12067         (is_predicable): Update after above changes, using error_at rather
12068         than error_with_line.
12069         (has_subst_attribute): Likewise.
12070         (identify_predicable_attribute): Likewise.
12071         (alter_attrs_for_subst_insn): Likewise.
12072         (process_one_cond_exec): Likewise.
12073         (process_substs_on_one_elem): Likewise.
12074         (process_define_subst): Likewise.
12075         (check_define_attr_duplicates): Likewise.
12076         (read_md_rtx): Update after change to queue_elem.
12077
12078 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12079
12080         * genoutput.c (next_index_number): Delete.
12081         (data): Remove index_number.
12082         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12083         (main): Remove manipulation of next_index_number.
12084
12085 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12086
12087         * genattrtab.c (check_attr_value): Remove handling of null attrs.
12088         (make_canonical): Likewise.
12089
12090 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
12091
12092         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12093         instead of adjust_address_nv.
12094         (restore_stack_nonlocal): Likewise.
12095         (nonlocal_goto): Likewise.
12096
12097 2015-07-16  Tom de Vries  <tom@codesourcery.com>
12098
12099         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12100         not have a corresponding loop header phi.
12101
12102 2015-07-16  Tom de Vries  <tom@codesourcery.com>
12103
12104         * tree-parloops.c (create_loads_for_reductions): Handle case that
12105         reduction is unused.
12106
12107 2015-07-16  Richard Biener  <rguenther@suse.de>
12108
12109         PR tree-optimization/66894
12110         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12111         about deriving NE_EXPR from truncated values.
12112
12113 2015-07-16  Martin Liska  <mliska@suse.cz>
12114
12115         * alloc-pool.h
12116         (object_allocator): Add new class.
12117         (pool_allocator::initialize): Use the underlying class.
12118         (pool_allocator::allocate): Likewise.
12119         (pool_allocator::remove): Likewise.
12120         (operator new): A new generic allocator.
12121         * asan.c (struct asan_mem_ref): Remove unused members.
12122         (asan_mem_ref_new): Replace new operator with
12123         object_allocator::allocate.
12124         (free_mem_ref_resources): Change deallocation.
12125         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12126         with object_allocator.
12127         * config/sh/sh.c (add_constant): Replace new operator with
12128         object_allocator::allocate.
12129         (sh_reorg): Change call to a release method.
12130         * cselib.c (struct elt_list): Remove unused members.
12131         (new_elt_list): Replace new operator with
12132         object_allocator::allocate.
12133         (new_elt_loc_list): Likewise.
12134         (new_cselib_val): Likewise.
12135         (unchain_one_elt_list): Change delete operator with remove method.
12136         (unchain_one_elt_loc_list): Likewise.
12137         (unchain_one_value): Likewise.
12138         (cselib_finish): Release newly added static allocators.
12139         * cselib.h (struct cselib_val): Remove unused members.
12140         (struct elt_loc_list): Likewise.
12141         * df-problems.c (df_chain_alloc): Replace pool_allocator with
12142         object_allocator.
12143         * df-scan.c (struct df_scan_problem_data): Likewise.
12144         (df_scan_alloc): Likewise.
12145         * df.h (struct dataflow): Likewise.
12146         * dse.c (struct read_info_type): Likewise.
12147         (struct insn_info_type): Likewise.
12148         (struct dse_bb_info_type): Likewise.
12149         (struct group_info): Likewise.
12150         (struct deferred_change): Likewise.
12151         (get_group_info): Likewise.
12152         (delete_dead_store_insn): Likewise.
12153         (free_read_records): Likewise.
12154         (replace_read): Likewise.
12155         (check_mem_read_rtx): Likewise.
12156         (scan_insn): Likewise.
12157         (dse_step1): Likewise.
12158         (dse_step7): Likewise.
12159         * et-forest.c (struct et_occ): Remove unused members.
12160         (et_new_occ): Use allocate instead of new operator.
12161         (et_new_tree): Likewise.
12162         (et_free_tree): Call release method explicitly.
12163         (et_free_tree_force): Likewise.
12164         (et_free_pools): Likewise.
12165         (et_split): Use remove instead of delete operator.
12166         * et-forest.h (struct et_node): Remove unused members.
12167         * ipa-cp.c: Change pool_allocator to object_allocator.
12168         * ipa-inline-analysis.c: Likewise.
12169         * ipa-profile.c: Likewise.
12170         * ipa-prop.c: Likewise.
12171         * ipa-prop.h: Likewise.
12172         * ira-build.c (initiate_cost_vectors): Cast return value.
12173         (ira_allocate_cost_vector): Likewise.
12174         * ira-color.c (struct update_cost_record): Remove unused members.
12175         * lra-int.h (struct lra_live_range): Likewise.
12176         (struct lra_copy): Likewise.
12177         (struct lra_insn_reg): Likewise.
12178         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12179         * lra.c (new_insn_reg): Replace new operator with allocate method.
12180         (free_insn_regs): Same for operator delete.
12181         (finish_insn_regs): Release new static allocator.
12182         (finish_insn_recog_data): Likewise.
12183         (lra_free_copies): Replace delete operator with remove method.
12184         (lra_create_copy): Replace operator new with allocate method.
12185         (invalidate_insn_data_regno_info): Same for remove method.
12186         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12187         (free_debug_insn_changes): Replace delete operator with remove method.
12188         (replace_oldest_value_reg): Replace operator new with allocate method.
12189         (pass_cprop_hardreg::execute): Release new static variable.
12190         * sched-deps.c (sched_deps_init): Change pool_allocator to
12191         object_allocator.
12192         * sel-sched-ir.c: Likewise.
12193         * sel-sched-ir.h: Likewise.
12194         * stmt.c (expand_case): Likewise.
12195         (expand_sjlj_dispatch_table): Likewise.
12196         * tree-sra.c (struct access): Remove unused members.
12197         (struct assign_link): Likewise.
12198         (sra_deinitialize): Release newly added static pools.
12199         (create_access_1):Replace operator new with allocate method.
12200         (build_accesses_from_assign): Likewise.
12201         (create_artificial_child_access): Likewise.
12202         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12203         pool_allocator to object_allocator.
12204         * tree-ssa-pre.c: Likewise.
12205         * tree-ssa-reassoc.c: Likewise.
12206         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12207         * tree-ssa-strlen.c: Likewise.
12208         * tree-ssa-structalias.c: Likewise.
12209         * var-tracking.c (onepart_pool_allocate): New function.
12210         (unshare_variable): Use the newly added function.
12211         (variable_merge_over_cur): Likewise.
12212         (variable_from_dropped): Likewise.
12213         (variable_was_changed): Likewise.
12214         (set_slot_part): Likewise.
12215         (emit_notes_for_differences_1): Likewise.
12216         (vt_finalize): Release newly added static pools.
12217
12218 2015-07-16  Martin Jambor  <mjambor@suse.cz>
12219
12220         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
12221         all uses.  Fix two typos in its general comment.
12222         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
12223
12224 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
12225
12226         * config/i386/linux-common.h (LINK_MPX): New.
12227         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12228         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12229         indicating '-z bndplt' support by linker.
12230         * configure: Regenerate.
12231         * config.in: Regenerate.
12232
12233 2015-07-16  Richard Biener  <rguenther@suse.de>
12234
12235         * fold-const.c (fold_widened_comparison): Remove.
12236         (fold_sign_changed_comparison): Likewise.
12237         (fold_comparison): Move widened and sign-changed comparison
12238         simplification ...
12239         * match.pd: ... to patterns here.
12240         * generic-match-head.c: Include target.h.
12241         * gimple-match-head.c: Likewise.
12242
12243 2015-07-16  Richard Biener  <rguenther@suse.de>
12244
12245         * tree-ssa-dom.c (dom_valueize): New function.
12246         (record_temporary_equivalences): Also record equivalences
12247         for dominating stmts that have uses of equivalences we are
12248         about to record.
12249
12250 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
12251
12252         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12253         add_autoinc_candidates.
12254         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12255         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12256         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12257         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12258         Call new function.
12259         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12260         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12261         Remove parameter struct iv*.  Call add_autoinc_candidates here.
12262         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12263         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12264         Call new function.
12265         (find_iv_candidates): Call new functions.
12266
12267 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
12268
12269         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12270         uninitialized-variable warning.
12271
12272 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12273
12274         PR target/65249
12275         * config/sh/sh.md (movdi): Split simple reg move to two movsi
12276         when the destination is R0.
12277
12278 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
12279
12280         PR target/66866
12281         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12282         * config/i386/i386.c (ix86_expand_pextr): New function.
12283         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
12284         for non-lowpart subregs.
12285         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12286         (insv<mode>): Use SWI248 mode iterator.
12287         (insv<mode>_1): Ditto.
12288
12289 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12290             Sebastian Pop  <s.pop@samsung.com>
12291
12292         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12293         iterator to use_stmt.
12294
12295 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12296             Sebastian Pop <s.pop@samsung.com>
12297
12298         * graphite-scop-detection.c (build_scops_1): Discard scops for
12299         which entry==exit.
12300
12301 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12302             Sebastian Pop <s.pop@samsung.com>
12303
12304         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12305         case of a return statement in scop.
12306
12307 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12308             Sebastian Pop <s.pop@samsung.com>
12309
12310         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12311         INTEGER_TYPE parameters.
12312         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12313         VECTOR_CST in scan_tree_for_params.
12314         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12315
12316 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12317
12318         * gimple-pretty-print.h: Don't include pretty-print.h.
12319         * tree-streamer.h: Don't include lto-streamer.h.
12320         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12321         * gimple-streamer-in.c: Remove redundant includes.
12322         * gimple-streamer-out.c: Likewise.
12323         * ipa-devirt.c: Likewise.
12324         * ipa-icf.c: Likewise.
12325         * ipa-inline-analysis.c: Likewise.
12326         * ipa-polymorphic-call.c: Likewise.
12327         * ipa-profile.c: Likewise.
12328         * ipa-prop.c: Likewise.
12329         * ipa-pure-const.c: Likewise.
12330         * lto-cgraph.c: Likewise.
12331         * lto-streamer-in.c: Likewise.
12332         * lto-streamer-out.c: Likewise.
12333         * lto-streamer.c: Likewise.
12334         * tree-streamer-in.c: Likewise.
12335         * tree-streamer-out.c: Likewise.
12336         * tree-streamer.c: Likewise.
12337
12338 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12339
12340         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
12341         include input.h.
12342         * opts.c: Remove multiline #include comment.
12343
12344 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
12345
12346         * config/nvptx/mkoffload.c (process): Add C++ protection to
12347         emitted code.
12348
12349 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12350
12351         PR target/66854
12352         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12353         null before IEEE 128-bit floating point support patch.
12354
12355 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12356
12357         * simplify-rtx.c (simplify_ternary_operation): Add simplification
12358         for (!c) != {0,...,0} ? a : b for vector modes.
12359
12360 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
12361             Martin Jambor  <mjambor@suse.cz>
12362
12363         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12364         struct func_body_info* instead of struct ipa_node_params*, expecting
12365         fbi->info to be filled in.  Replace throughout.  Adjust call to
12366         ipa_load_from_parm_agg.
12367         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12368         instead of struct ipa_node_params*.  Adjust calls to other functions
12369         so that they pass either fbi or fbi->info.
12370         (set_switch_stmt_execution_predicate): Likewise.
12371         (will_be_nonconstant_predicate): Likewise.
12372         (compute_bb_predicates): Likewise.
12373         (estimate_function_body_sizes): Move asserts earlier.  Fill in
12374         struct func_body_info, replace parms_info with fbi.info.  Adjust
12375         calls to functions that now accept struct func_body_info.
12376         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12377         (struct func_body_info): Likewise.
12378         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12379         remove static.  Adjust callers.
12380         (ipa_load_from_parm_agg): Remove.
12381         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12382         (func_body_info): Likewise.
12383         (ipa_load_from_parm_agg): Adjust prototype.
12384
12385 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12386
12387         * gensupport.c (rtx_handle_directive): Adjust.
12388         * read-rtl.c (apply_iterators): Take vector to add rtxs to
12389         instead of expr list rtx.
12390         (add_define_attr_for_define_subst): Likewise.
12391         (add_define_subst_attr): Likewise.
12392         (read_subst_mapping): Likewise.
12393         (read_rtx): Likewise.
12394         * rtl.h (read_rtx): Adjust.
12395
12396 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12397
12398         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12399
12400 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12401
12402         PR target/58066
12403         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12404         (*tls_local_dynamic_base_64_<mode>): Ditto.
12405         (*tls_local_dynamic_base_64_largepic): Ditto.
12406         (tls_global_dynamic_64_<mode>): Update expander pattern.
12407         (tls_local_dynamic_base_64_<mode>): Ditto.
12408
12409 2015-07-15  Richard Biener  <rguenther@suse.de>
12410
12411         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12412         and bool_var == 1 -> bool_var simplifications ...
12413         * match.pd: ... to patterns here.  Factor out negate_expr_p
12414         cases from the A - B -> A + (-B) patterns as negate_expr_p
12415         predicate and add a -(A + B) -> (-B) - A pattern.
12416
12417 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12418
12419         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12420
12421 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
12422             Robert Suchanek  <robert.suchanek@imgtec.com>
12423
12424         * config/mips/mips.c (mips_int_mask): New enum.
12425         (mips_shadow_set): Likewise.
12426         (int_mask): New variable.
12427         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12428         (machine_function): Add int_mask and use_shadow_register_set.
12429         (mips_attribute_table): Add attribute handlers for interrupt and
12430         use_shadow_register_set.
12431         (mips_interrupt_mask): New static function.
12432         (mips_handle_interrupt_attr): Likewise.
12433         (mips_handle_use_shadow_register_set_attr): Likewise.
12434         (mips_use_shadow_register_set): Change return type to enum
12435         mips_shadow_set.  Add argument handling for use_shadow_register_set
12436         attribute.
12437         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12438         compare with mips_shadow_set enum.
12439         (mips_compute_frame_info): Add interrupt mask and
12440         use_shadow_register_set to per-function information structure.
12441         Add a stack slot for EPC unconditionally.
12442         (mips_expand_prologue): Compare use_shadow_register_set value
12443         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
12444         masked interrupt register but in EIC mode use K0 and save Cause in K0.
12445         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
12446         copying the stack pointer from the shadow register set.
12447         * config/mips/mips.h (SR_IM0): New define.
12448         * config/mips/mips.md (mips_rdpgpr): Rename to...
12449         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
12450         * doc/extend.texi (Declaring Attributes of Functions): Document
12451         optional arguments for interrupt and use_shadow_register_set
12452         attributes.
12453
12454 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12455
12456         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12457         interrupt attribute.
12458         (mips_expand_prologue): Disable the floating point unit in an ISR.
12459         * config/mips/mips.h (SR_COP1): New define.
12460
12461 2015-07-15  Richard Biener  <rguenther@suse.de>
12462
12463         * genmatch.c (parser::peek, parser::peek_ident): Add argument
12464         to tell how many tokens to peek ahead (default 1).
12465         (parser::eat_token, parser::eat_ident): Return token consumed.
12466         (parser::parse_result): Parse new switch statement.
12467         * match.pd: Use case statements where appropriate.
12468
12469 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12470
12471         PR rtl-optimization/58066
12472         * calls.c (expand_call): Precompute register parameters before stack
12473         alignment is performed.
12474
12475 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12476
12477         PR rtl-optimization/66838
12478         * postreload.c (reload_cse_move2add): Also process
12479         CALL_INSN_FUNCTION_USAGE when resetting information of
12480         call-clobbered registers.
12481
12482 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12483             Cesar Philippidis  <cesar@codesourcery.com>
12484             Chung-Lin Tang  <cltang@codesourcery.com>
12485
12486         * config/nios2/constraints.md (U, v): New constraints.
12487         * config/nios2/predicates.md (rdprs_dcache_operand): New.
12488         (ldstex_memory_operand): New.
12489         * config/nios2/sync.md: New file.
12490         * config/nios2/nios2.md (unspecv): Add new builtin function
12491         UNSPECV codes.
12492         (rdprs, flushd, flushda, wrpie, eni): New patterns.
12493         (top-level): Include sync.md.
12494         * config/nios2/nios2.c (N2_FTYPES): Add function types for
12495         new builtins.
12496         (N2_BUILTINS): Add arch field setting, add new builtins.
12497         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12498         for arch field.
12499         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12500         Also handle ldex/stex/ldsex/stsex builtins.
12501         (nios2_expand_rdprs_builtin): New function.
12502         (nios2_expand_cache_builtin): New function.
12503         (nios2_expand_wrpie_builtin): New function.
12504         (nios2_expand_eni_builtin): New function.
12505         (nios2_expand_builtin): Add arch field handling and new builtin
12506         cases.
12507         * doc/extend.texi (Altera Nios II Built-in Functions): Document
12508         new builtins.
12509         * doc/md.texi (Machine Constraints): Document U and v constraints.
12510
12511 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12512             Cesar Philippidis  <cesar@codesourcery.com>
12513             Chung-Lin Tang  <cltang@codesourcery.com>
12514
12515         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12516         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12517         callee_save_reg_size and uses_anonymous_args fields.
12518         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12519         (nios2_create_cfa_notes): New function.
12520         (nios2_adjust_stack): New function for adjusting stack.
12521         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12522         Use nios2_adjust_stack.
12523         (nios2_expand_epilogue): Likewise.
12524         (nios2_expand_return): New function.
12525         (nios2_can_use_return_insn): Update for CDX pop.n usage.
12526         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12527         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12528         * config/nios2/nios2.md (return): Use nios2_expand_return.
12529
12530 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12531             Cesar Philippidis  <cesar@codesourcery.com>
12532             Chung-Lin Tang  <cltang@codesourcery.com>
12533
12534         * config/nios2/predicates.md (pop_operation): New.
12535         (ldwm_operation, stwm_operation): New.
12536         (nios2_hard_register_operand): New.
12537         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12538         (ldstwm_operation_p): Declare.
12539         (gen_ldstwm_peep): Declare.
12540         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12541         (base_reg_adjustment_p): New.
12542         (pop_operation_p): New.
12543         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12544         (nios2_ldstwm_regset_p): New.
12545         (ldstwm_operation_p): New.
12546         (gen_ldst): New.
12547         (nios2_ldst_parallel): New.
12548         (struct ldswm_operand): Declare.
12549         (compare_ldstwm_operands): New.
12550         (can_use_cdx_ldstw): New.
12551         (gen_ldstwm_peep): New.
12552         * config/nios2/nios2-ldstwm.sml: New.
12553         * config/nios2/nios2.md: Include ldstwm.md.
12554         * config/nios2/ldstwm.md: Generated.
12555
12556 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12557             Cesar Philippidis  <cesar@codesourcery.com>
12558             Chung-Lin Tang  <cltang@codesourcery.com>
12559
12560         * config/nios2/nios2.h (LABEL_ALIGN): Define.
12561         (REG_ALLOC_ORDER): Define.
12562         (ADJUST_REG_ALLOC_ORDER): Define.
12563         (HONOR_REG_ALLOC_ORDER): Define.
12564         (CDX_REG_P): Define.
12565         (ANDCLEAR_INT): Define.
12566         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12567         (nios2_label_align): Declare.
12568         (nios2_cdx_narrow_form_p): Declare.
12569         (nios2_adjust_reg_alloc_order): Declare.
12570         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12571         operation.
12572         (nios2_large_unspec_reloc_p): New function, split from...
12573         (nios2_legitimate_pic_operand_p): ...here.
12574         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12575         (nios2_print_operand_punct_valid_p): New.
12576         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
12577         (split_mem_address): New.
12578         (split_alu_insn): New.
12579         (cdxreg): New.
12580         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12581         (enum nios2_add_insn_kind): New.
12582         (nios2_add_insn_names, nios2_add_insn_narrow): New.
12583         (nios2_add_insn_classify): New.
12584         (nios2_add_insn_asm): New.
12585         (nios2_cdx_narrow_form_p): New.
12586         (label_align, min_labelno, max_labelno): New.
12587         (nios2_reorg): New.
12588         (nios2_label_align): New.
12589         (nios2_adjust_reg_alloc_order): New.
12590         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12591         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12592         * config/nios2/constraints.md (P): New constraint.
12593         * config/nios2/predicates.md (const_and_operand): New.
12594         (and_operand): New.
12595         (stack_memory_operand): New.
12596         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12597         (length): Update to use nios2_cdx_narrow_form_p().
12598         (type): Add new insn type values.
12599         (control, alu, st, ld, shift): Update insn reservations with
12600         new insn type values.
12601         (*high, *lo_sum): Define new insn patterns for constant generation.
12602         (movqi_internal, movhi_internal, movsi_internal): Reduce
12603         alternatives, update asm template to handle CDX variants, update
12604         type attributes.
12605         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12606         template, update type attributes.
12607         (extendhisi2, extendqi<mode>2): Likewise.
12608         (addsi3): Change to use function for asm string.
12609         (subsi3): Add CDX notation to asm template, update type attributes.
12610         (negsi3, one_cmplsi3): Likewise.
12611         (andsi3): New pattern, specialized from logical patterns.
12612         (<code>si3): Remove and case, combine alternatives, update asm
12613         template.
12614         (<shift_op>si3): Add CDX notation, update type attributes.
12615         (rotrsi3): Update type attribute.
12616         (*merge, extzv, insv): New insn patterns.
12617         (return): Change to define_expand.
12618         (simple_return): Add CDX notation, update type attributes.
12619         (indirect_jump): Add CDX notation.
12620         (jump): Update asm cases, update length attribute expression.
12621         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12622         (nios2_cbranch): Update asm cases and length attribute expression
12623         to handle CDX variants.
12624         (nios2_cmp<code>): Update asm template.
12625         (nop): Add CDX notation, update type attributes.
12626         (trap): Add CDX notation.
12627         (ctrapsi4): Update asm cases and length attribute expression to
12628         handle CDX variant.
12629         * doc/md.texi (Machine Constraints): Document P constraint.
12630
12631 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12632             Cesar Philippidis  <cesar@codesourcery.com>
12633             Chung-Lin Tang  <cltang@codesourcery.com>
12634
12635         * config/nios2/nios2.h (SMALL_INT12): New macro.
12636         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12637         (nios2_valid_addr_expr_p): Use it.
12638         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12639         with implicit "io" instructions on R2.
12640         * config/nios2/constraints.md (w): New constraint.
12641         * config/nios2/predicates.md (ldstio_memory_operand): New.
12642         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12643         operand predicate and constraint.
12644         (ld<bh>io_signed, st<bhw>io>): Likewise.
12645         * doc/md.texi (Machine Constraints): Document w constraint.
12646
12647 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12648             Cesar Philippidis  <cesar@codesourcery.com>
12649             Chung-Lin Tang  <cltang@codesourcery.com>
12650
12651         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12652         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12653         Nios II architecture level.
12654         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12655         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12656         (OPTION_DEFAULT_SPECS): Define.
12657         (ASM_SPEC): Add -march= spec strings.
12658         * config/nios2/nios2.c (nios2_option_override): Check for
12659         conflicts involving new options.
12660         * config.gcc (nios2*-*-*): Support --with-arch=.
12661         * doc/invoke.texi (Option Summary, Nios II Options): Document
12662         -march=, -mbmx, and -mcdx.
12663
12664 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
12665
12666         PR rtl-optimization/66626
12667         * lra-constraints.c (lra_constraints): Prevent equivalence
12668         substitution for static chain pseudo in functions with nonlocal
12669         goto.
12670
12671 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12672
12673         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12674         (nios2_emit_stack_limit_check): Add size parameter.  Handle
12675         -fstack-limit-symbol as well as -fstack-limit-register.
12676         (nios2_expand_prologue): Emit only a single stack limit check,
12677         even if multiple stack adjustments are required.
12678         (nios2_option_override): Diagnose unsupported combination of -fpic
12679         and -stack-limit-symbol.
12680
12681 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12682
12683         * Makefile.in (top_srcdir): New.
12684         * configure.ac: Use AM_ZLIB.
12685         * configure: Regeneated.
12686
12687 2015-07-14  Matthias Klose  <doko@ubuntu.com>
12688
12689         PR target/66840
12690         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12691
12692 2015-07-14  Richard Biener  <rguenther@suse.de>
12693
12694         PR tree-optimization/66863
12695         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12696         what we record for conversion use stmt lhs inequalities.
12697
12698 2015-07-14  Richard Biener  <rguenther@suse.de>
12699
12700         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12701         (decision_tree::gen_gimple): Likewise.
12702
12703 2015-07-14  Tom de Vries  <tom@codesourcery.com>
12704
12705         * gcc.c (greater_than_spec_func): Declare forward.
12706         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12707         -ftree-parallelize-loops={0,1}.
12708         (static_spec_functions): Add greater_than_spec_func function with name
12709         "gt".
12710         (greater_than_spec_func): New function.
12711
12712 2015-07-14  Richard Biener  <rguenther@suse.de>
12713
12714         * tree-ssa-dom.c (record_temporary_equivalences): Merge
12715         wideing type conversion case from record_equivalences_from_incoming_edge
12716         and use record_equality to record equivalences.
12717         (record_equivalences_from_incoming_edge): Call
12718         record_temporary_equivalences.
12719
12720 2015-07-14  Richard Biener  <rguenther@suse.de>
12721
12722         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12723         (struct if_expr): New.
12724         (struct with_expr): Likewise.
12725         (is_a_helper): Add helpers for if_expr and with_expr.
12726         (struct simplify): Add simplify_kind enum and member.  Remove
12727         ifexpr_vec member.
12728         (simplify::simplify): Adjust.
12729         (lower_commutative): Adjust.
12730         (lower_opt_convert): Likewise.
12731         (lower_cond): Likewise.
12732         (replace_id): Handle with_expr and if_expr.
12733         (lower_for): Adjust.
12734         (dt_simplify::gen_1): New recursive worker, split out from ...
12735         (dt_simplify::gen): ... here.  Deal with if and with expansion
12736         recursively.
12737         (capture_info::capture_info): Take context argument
12738         (capture_info::walk_result): Only analyze specific result.
12739         (parser::parse_result): New function.
12740         (parser::parse_simplify): Adjust to parse ifs with then end
12741         else case.
12742         (parser::parse_if): Simplify.
12743         (parser::parse_pattern): Pass down simplify kind.
12744         * match.pd: Convert if structure to new syntax.
12745
12746 2015-07-13  Marek Polacek  <polacek@redhat.com>
12747
12748         * rtl.c (rtx_equal_p_cb): Fix typo.
12749
12750 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
12751
12752         * omega.h: Don't include config.h, don't include params.h again if
12753         omega.h has already been included.
12754         * graphite-poly.h: Include sese.h.
12755         * graphite.c: Don't include sese.h, remove needless includes and
12756         minimize includes outside #ifdef HAVE_isl block.
12757         * graphite-blocking.c: Don't include sese.h, remove needless includes,
12758         and wrap entire file in #ifdef HAVE_isl
12759         * graphite-dependences.c: Likewise.
12760         * graphite-interchange.c: Likewise.
12761         * graphite-isl-ast-to-gimple.c: Likewise.
12762         * graphite-optimize-isl.c: Likewise.
12763         * graphite-poly.c: Likewise.
12764         * graphite-scop-detection.c: Likewise.
12765         * graphite-sese-to-poly.c: Likewise.
12766
12767 2015-07-13  Tom de Vries  <tom@codesourcery.com>
12768
12769         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12770
12771 2015-07-13  Renlin Li  <renlin.li@arm.com>
12772
12773         PR rtl/66556
12774         * simplify-rtx.c (simplify_const_relational_operation): Add
12775         side_effects_p checks.
12776
12777 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
12778
12779         * bitmap.h: Fix double word typos.
12780         * builtins.c: Same.
12781         * calls.c: Same.
12782         * cfgloopmanip.c: Same.
12783         * cgraph.c: Same.
12784         * cgraph.h: Same.
12785         * cgraphclones.c: Same.
12786         * combine.c: Same.
12787         * config/aarch64/aarch64-protos.h: Same.
12788         * config/aarch64/aarch64.c: Same.
12789         * config/aarch64/aarch64.md: Same.
12790         * config/arm/arm.md: Same.
12791         * config/arm/arm1020e.md: Same.
12792         * config/arm/arm1026ejs.md: Same.
12793         * config/arm/arm926ejs.md: Same.
12794         * config/arm/fa526.md: Same.
12795         * config/arm/fa606te.md: Same.
12796         * config/arm/fa626te.md: Same.
12797         * config/arm/fa726te.md: Same.
12798         * config/arm/fmp626.md: Same.
12799         * config/darwin.c: Same.
12800         * config/epiphany/epiphany.c: Same.
12801         * config/frv/frv.c: Same.
12802         * config/ft32/ft32.c: Same.
12803         * config/gnu-user.h: Same.
12804         * config/h8300/constraints.md: Same.
12805         * config/i386/i386.c: Same.
12806         * config/i386/i386.md: Same.
12807         * config/iq2000/iq2000.md: Same.
12808         * config/mips/mips.c: Same.
12809         * config/mmix/mmix.md: Same.
12810         * config/moxie/moxie.c: Same.
12811         * config/nds32/nds32.md: Same.
12812         * config/pa/pa.h: Same.
12813         * config/rs6000/aix.h: Same.
12814         * config/rs6000/rs6000.h: Same.
12815         * config/sh/sh.c: Same.
12816         * config/tilegx/tilegx.md: Same.
12817         * config/tilepro/gen-mul-tables.cc: Same.
12818         * cse.c: Same.
12819         * dbxout.c: Same.
12820         * doc/invoke.texi: Same.
12821         * dse.c: Same.
12822         * dwarf2out.c: Same.
12823         * final.c: Same.
12824         * gcc.c: Same.
12825         * genmatch.c: Same.
12826         * gimplify.c: Same.
12827         * hash-table.h: Same.
12828         * internal-fn.c: Same.
12829         * ipa-cp.c: Same.
12830         * ipa-devirt.c: Same.
12831         * ipa-icf.c: Same.
12832         * ipa-icf.h: Same.
12833         * ipa-profile.c: Same.
12834         * ipa-prop.c: Same.
12835         * ipa-prop.h: Same.
12836         * ira.c: Same.
12837         * omp-low.c: Same.
12838         * reg-stack.c: Same.
12839         * regcprop.c: Same.
12840         * reorg.c: Same.
12841         * rtl.h: Same.
12842         * sbitmap.h: Same.
12843         * tree-eh.c: Same.
12844         * tree-inline.c: Same.
12845         * tree-sra.c: Same.
12846         * tree-ssa-dom.c: Same.
12847         * tree-ssa-loop-ivopts.c: Same.
12848         * tree-ssa-structalias.c: Same.
12849         * tree-ssa-tail-merge.c: Same.
12850         * tree-ssa-ter.c: Same.
12851         * tree-ssa-threadupdate.c: Same.
12852         * tree-ssa-uninit.c: Same.
12853         * tree-ssanames.c: Same.
12854         * tree-vect-loop-manip.c: Same.
12855         * tree-vrp.c: Same.
12856         * tree.c: Same.
12857         * valtrack.c: Same.
12858         * vec.h: Same.
12859
12860 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12861
12862         PR middle-end/66726
12863         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12864         tree_ssa_phiopt_worker): Call it.
12865
12866 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12867
12868         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12869         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12870         REG_EQUAL note.
12871
12872 2015-07-11  Marek Polacek  <polacek@redhat.com>
12873
12874         PR middle-end/66353
12875         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12876         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12877         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12878         rather than bb_has_abnormal_call_pred.
12879         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12880         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12881         rather than bb_has_abnormal_call_pred.
12882
12883 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
12884
12885         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12886         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12887         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12888         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12889         v850_legitimate_address_p): New functions.
12890         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12891
12892 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
12893
12894         PR target/66819
12895         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12896         indirect sibcall with register arguments if register available
12897         for argument passing.
12898         (init_cumulative_args): Set cfun->machine->arg_reg_available
12899         to (cum->nregs > 0) or to true if function has a variable
12900         argument list.
12901         (function_arg_advance_32): Set cfun->machine->arg_reg_available
12902         to false if cum->nregs <= 0.
12903         * config/i386/i386.h (machine_function): Add arg_reg_available.
12904
12905 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12906
12907         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12908         and gen_higpart instead of gen_rtx_SUBREG.
12909         * config/i386/i386.md
12910         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12911         (read-modify peephole2): Use gen_lowpart instead of
12912         gen_rtx_SUBREG for operand 5.
12913
12914 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12915
12916         * config/tilepro/gen-mul-tables.cc (main): Change include list for
12917         generated files.
12918         * config/tilepro/mul-tables.c: Regenerate.
12919         * config/tilegx/mul-tables.c: Regenerate.
12920
12921 2015-07-10  Richard Biener  <rguenther@suse.de>
12922
12923         * fold-const.c (distribute_bit_expr): Remove.
12924         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12925         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12926         to A & (B | C) and simplifying A << C1 << C2 to ...
12927         * match.pd: ... patterns here.
12928
12929 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
12930
12931         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12932         Mark mem as READONLY and NOTRAP for PIC symbol.
12933
12934 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12935
12936         * gimple-predict.h: New file.
12937         (gimple_predict_predictor, gimple_predict_set_predictor,
12938         gimple_predict_outcome, gimple_predict_set_outcome,
12939         gimple_build_predict): Relocate here.
12940         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12941         gimple_predict_outcome, gimple_predict_set_outcome): Move to
12942         gimple-predict.h.
12943         * gimple.c (gimple_build_predict): Move to gimple-predict.h
12944         * basic-block.h: Don't include cfghooks.h.
12945         * backend.h: Don't include predict.h.
12946         * cfghooks.h: Include predict.h.
12947         * gimple-pretty-print.c: Include gimple-predict.h.
12948         * gimplify.c: Likwise.
12949         * predict.c: Adjust includes.
12950         * tree-inline.c: Likewise.
12951         * asan.c: Likewise.
12952         * auto-inc-dec.c: Likewise.
12953         * auto-profile.c: Likewise.
12954         * bb-reorder.c: Likewise.
12955         * builtins.c: Likewise.
12956         * caller-save.c: Likewise.
12957         * calls.c: Likewise.
12958         * cfganal.c: Likewise.
12959         * cfgbuild.c: Likewise.
12960         * cfg.c: Likewise.
12961         * cfgcleanup.c: Likewise.
12962         * cfgexpand.c: Likewise.
12963         * cfghooks.c: Likewise.
12964         * cfgloopanal.c: Likewise.
12965         * cfgloop.c: Likewise.
12966         * cfgloopmanip.c: Likewise.
12967         * cfgrtl.c: Likewise.
12968         * cgraph.c: Likewise.
12969         * cgraphunit.c: Likewise.
12970         * combine.c: Likewise.
12971         * cprop.c: Likewise.
12972         * cse.c: Likewise.
12973         * dce.c: Likewise.
12974         * dojump.c: Likewise.
12975         * dse.c: Likewise.
12976         * except.c: Likewise.
12977         * expmed.c: Likewise.
12978         * expr.c: Likewise.
12979         * final.c: Likewise.
12980         * fold-const.c: Likewise.
12981         * function.c: Likewise.
12982         * fwprop.c: Likewise.
12983         * gcc-plugin.h: Likewise.
12984         * gcse.c: Likewise.
12985         * genattrtab.c: Likewise.
12986         * genemit.c: Likewise.
12987         * gengtype.c: Likewise.
12988         * genopinit.c: Likewise.
12989         * genoutput.c: Likewise.
12990         * genpreds.c: Likewise.
12991         * genrecog.c: Likewise.
12992         * gimple-fold.c: Likewise.
12993         * gimple-iterator.c: Likewise.
12994         * gimple-ssa-isolate-paths.c: Likewise.
12995         * gimple-ssa-strength-reduction.c: Likewise.
12996         * graph.c: Likewise.
12997         * graphite-blocking.c: Likewise.
12998         * graphite.c: Likewise.
12999         * graphite-dependences.c: Likewise.
13000         * graphite-interchange.c: Likewise.
13001         * graphite-isl-ast-to-gimple.c: Likewise.
13002         * graphite-optimize-isl.c: Likewise.
13003         * graphite-poly.c: Likewise.
13004         * graphite-scop-detection.c: Likewise.
13005         * graphite-sese-to-poly.c: Likewise.
13006         * haifa-sched.c: Likewise.
13007         * ifcvt.c: Likewise.
13008         * internal-fn.c: Likewise.
13009         * ipa-cp.c: Likewise.
13010         * ipa-profile.c: Likewise.
13011         * ipa-split.c: Likewise.
13012         * ipa-utils.c: Likewise.
13013         * ira-build.c: Likewise.
13014         * ira-color.c: Likewise.
13015         * ira-conflicts.c: Likewise.
13016         * ira-costs.c: Likewise.
13017         * ira-emit.c: Likewise.
13018         * ira-lives.c: Likewise.
13019         * jump.c: Likewise.
13020         * loop-doloop.c: Likewise.
13021         * loop-init.c: Likewise.
13022         * loop-invariant.c: Likewise.
13023         * loop-unroll.c: Likewise.
13024         * lower-subreg.c: Likewise.
13025         * lra-assigns.c: Likewise.
13026         * lra.c: Likewise.
13027         * lra-coalesce.c: Likewise.
13028         * lra-constraints.c: Likewise.
13029         * lra-lives.c: Likewise.
13030         * lto-cgraph.c: Likewise.
13031         * lto-streamer-in.c: Likewise.
13032         * mode-switching.c: Likewise.
13033         * modulo-sched.c: Likewise.
13034         * omp-low.c: Likewise.
13035         * optabs.c: Likewise.
13036         * passes.c: Likewise.
13037         * postreload.c: Likewise.
13038         * postreload-gcse.c: Likewise.
13039         * profile.c: Likewise.
13040         * recog.c: Likewise.
13041         * regstat.c: Likewise.
13042         * reload1.c: Likewise.
13043         * reorg.c: Likewise.
13044         * rtlanal.c: Likewise.
13045         * sched-ebb.c: Likewise.
13046         * sel-sched-ir.c: Likewise.
13047         * sese.c: Likewise.
13048         * shrink-wrap.c: Likewise.
13049         * simplify-rtx.c: Likewise.
13050         * stmt.c: Likewise.
13051         * store-motion.c: Likewise.
13052         * tracer.c: Likewise.
13053         * trans-mem.c: Likewise.
13054         * tree-call-cdce.c: Likewise.
13055         * tree-cfg.c: Likewise.
13056         * tree-cfgcleanup.c: Likewise.
13057         * tree-chkp.c: Likewise.
13058         * tree-complex.c: Likewise.
13059         * tree-eh.c: Likewise.
13060         * tree-if-conv.c: Likewise.
13061         * tree-loop-distribution.c: Likewise.
13062         * tree-outof-ssa.c: Likewise.
13063         * tree-parloops.c: Likewise.
13064         * tree-predcom.c: Likewise.
13065         * tree-pretty-print.c: Likewise.
13066         * tree-profile.c: Likewise.
13067         * tree-sra.c: Likewise.
13068         * tree-ssa.c: Likewise.
13069         * tree-ssa-coalesce.c: Likewise.
13070         * tree-ssa-dce.c: Likewise.
13071         * tree-ssa-dom.c: Likewise.
13072         * tree-ssa-forwprop.c: Likewise.
13073         * tree-ssa-ifcombine.c: Likewise.
13074         * tree-ssa-loop-ch.c: Likewise.
13075         * tree-ssa-loop-im.c: Likewise.
13076         * tree-ssa-loop-ivcanon.c: Likewise.
13077         * tree-ssa-loop-ivopts.c: Likewise.
13078         * tree-ssa-loop-manip.c: Likewise.
13079         * tree-ssa-loop-prefetch.c: Likewise.
13080         * tree-ssa-loop-unswitch.c: Likewise.
13081         * tree-ssa-math-opts.c: Likewise.
13082         * tree-ssa-phiopt.c: Likewise.
13083         * tree-ssa-pre.c: Likewise.
13084         * tree-ssa-reassoc.c: Likewise.
13085         * tree-ssa-sink.c: Likewise.
13086         * tree-ssa-tail-merge.c: Likewise.
13087         * tree-ssa-threadedge.c: Likewise.
13088         * tree-ssa-threadupdate.c: Likewise.
13089         * tree-switch-conversion.c: Likewise.
13090         * tree-tailcall.c: Likewise.
13091         * tree-vect-data-refs.c: Likewise.
13092         * tree-vect-loop.c: Likewise.
13093         * tree-vect-loop-manip.c: Likewise.
13094         * tree-vectorizer.c: Likewise.
13095         * tree-vrp.c: Likewise.
13096         * ubsan.c: Likewise.
13097         * value-prof.c: Likewise.
13098         * varasm.c: Likewise.
13099         * var-tracking.c: Likewise.
13100         * config/aarch64/aarch64-builtins.c: Likewise.
13101         * config/aarch64/aarch64.c: Likewise.
13102         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13103         * config/alpha/alpha.c: Likewise.
13104         * config/arc/arc.c: Likewise.
13105         * config/arm/arm.c: Likewise.
13106         * config/avr/avr.c: Likewise.
13107         * config/bfin/bfin.c: Likewise.
13108         * config/c6x/c6x.c: Likewise.
13109         * config/cr16/cr16.c: Likewise.
13110         * config/cris/cris.c: Likewise.
13111         * config/darwin.c: Likewise.
13112         * config/darwin-c.c: Likewise.
13113         * config/epiphany/epiphany.c: Likewise.
13114         * config/epiphany/mode-switch-use.c: Likewise.
13115         * config/epiphany/resolve-sw-modes.c: Likewise.
13116         * config/fr30/fr30.c: Likewise.
13117         * config/frv/frv.c: Likewise.
13118         * config/ft32/ft32.c: Likewise.
13119         * config/h8300/h8300.c: Likewise.
13120         * config/i386/i386.c: Likewise.
13121         * config/i386/winnt.c: Likewise.
13122         * config/ia64/ia64.c: Likewise.
13123         * config/iq2000/iq2000.c: Likewise.
13124         * config/lm32/lm32.c: Likewise.
13125         * config/m32c/m32c.c: Likewise.
13126         * config/m32r/m32r.c: Likewise.
13127         * config/m68k/m68k.c: Likewise.
13128         * config/mcore/mcore.c: Likewise.
13129         * config/mep/mep.c: Likewise.
13130         * config/microblaze/microblaze.c: Likewise.
13131         * config/mips/mips.c: Likewise.
13132         * config/mmix/mmix.c: Likewise.
13133         * config/mn10300/mn10300.c: Likewise.
13134         * config/moxie/moxie.c: Likewise.
13135         * config/msp430/msp430.c: Likewise.
13136         * config/nds32/nds32.c: Likewise.
13137         * config/nds32/nds32-cost.c: Likewise.
13138         * config/nds32/nds32-fp-as-gp.c: Likewise.
13139         * config/nds32/nds32-intrinsic.c: Likewise.
13140         * config/nds32/nds32-isr.c: Likewise.
13141         * config/nds32/nds32-md-auxiliary.c: Likewise.
13142         * config/nds32/nds32-memory-manipulation.c: Likewise.
13143         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13144         * config/nds32/nds32-predicates.c: Likewise.
13145         * config/nios2/nios2.c: Likewise.
13146         * config/nvptx/nvptx.c: Likewise.
13147         * config/pa/pa.c: Likewise.
13148         * config/pdp11/pdp11.c: Likewise.
13149         * config/rl78/rl78.c: Likewise.
13150         * config/rs6000/rs6000.c: Likewise.
13151         * config/rx/rx.c: Likewise.
13152         * config/s390/s390.c: Likewise.
13153         * config/sh/sh.c: Likewise.
13154         * config/sh/sh-mem.cc: Likewise.
13155         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13156         * config/sh/sh_treg_combine.cc: Likewise.
13157         * config/sparc/sparc.c: Likewise.
13158         * config/spu/spu.c: Likewise.
13159         * config/stormy16/stormy16.c: Likewise.
13160         * config/tilegx/tilegx.c: Likewise.
13161         * config/tilepro/tilepro.c: Likewise.
13162         * config/v850/v850.c: Likewise.
13163         * config/vax/vax.c: Likewise.
13164         * config/visium/visium.c: Likewise.
13165         * config/xtensa/xtensa.c: Likewise.
13166
13167 2015-07-10  Richard Biener  <rguenther@suse.de>
13168
13169         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13170         (decision_tree::gen_gimple): Likewise.
13171         (decision_tree::gen_generic): Likewise.
13172
13173 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
13174
13175         PR target/66813
13176         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13177         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13178
13179 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
13180
13181         PR middle-end/66820
13182         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13183         or ORT_TASK contexts.
13184         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13185         is non-zero.
13186
13187 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13188
13189         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13190         above function.
13191
13192 2015-07-10  Tom de Vries  <tom@codesourcery.com>
13193
13194         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13195         insert nit + 1 bound.
13196
13197 2015-07-10  Richard Biener  <rguenther@suse.de>
13198
13199         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13200         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13201         (if_convertible_loop_p_1): For this always compute bb predicates.
13202         (if_convertible_loop_p): And free them.
13203
13204 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13205
13206         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13207         in dump message.
13208
13209 2015-07-10  Richard Biener  <rguenther@suse.de>
13210
13211         PR tree-optimization/66823
13212         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13213         inverted predicate.
13214
13215 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
13216
13217         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13218         to handle mips[32|64]r3 and mips[32|64]r5.
13219
13220 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
13221
13222         PR middle-end/66633
13223         * tree-nested.c (get_static_chain): Or in a flag into
13224         info->static_chain_added.
13225         (get_frame_field, get_nonlocal_debug_decl): Likewise.
13226         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13227         2015-07-01 changes.
13228         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13229         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13230         add it to clauses.
13231
13232         PR tree-optimization/66718
13233         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13234         field.
13235         (vect_simd_lane_linear): New function.
13236         (vectorizable_simd_clone_call): Support using linear arguments for
13237         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13238
13239 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13240
13241         PR target/66821
13242         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13243
13244 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13245
13246         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13247         Use machine mode, not enum machine_mode in the prototype.
13248
13249         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13250         classify 128-bit floating point support.
13251         (FLOAT128_IBM_P): Likewise.
13252         (FLOAT128_VECTOR_P): Likewise.
13253         (FLOAT128_2REG_P): Likewise.
13254         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13255         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13256         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13257         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13258
13259         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13260         tests against TFmode/TDmode, since those modes do not use VSX
13261         addresses.
13262         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13263         support.
13264         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13265         tests against TFmode, etc.
13266         (invalid_e500_subreg): Add tests against IFmode/KFmode.
13267         (reg_offset_addressing_ok_p): Likewise.
13268         (rs6000_legitimate_offset_address_p): Likewise.
13269         (rs6000_legitimize_address): Likewise.
13270         (rs6000_legitimize_reload_address): Likewise.
13271         (rs6000_legitimate_address_p): Clean up tests against TFmode and
13272         TDmode to use the new helper macros, which will include IFmode and
13273         KFmode.
13274         (rs6000_emit_move): Likewise.
13275         (rs6000_darwin64_record_arg_recurse): Likewise.
13276         (print_operand): Likewise.
13277         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13278         that uses a single vector register as a vector and not as a
13279         floating point register in terms of the calling sequence.
13280         (rs6000_discover_homogeneous_aggregate): Likewise.
13281         (rs6000_return_in_memory): Likewise.
13282         (init_cumulative_args): Likewise.
13283         (rs6000_function_arg_boundary): Likewise.
13284         (rs6000_function_arg_advance_1): Likewise.
13285         (rs6000_function_arg): Likewise.
13286         (rs6000_pass_by_reference): Likewise.
13287         (rs6000_gimplify_va_arg): Likewise.
13288         (rs6000_secondary_reload_memory): Use machine_mode not enum
13289         machine mode.
13290         (rs6000_split_multireg_move): Use new helper macros.
13291         (spe_func_has_64bit_regs_p): Likewise.
13292         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13293         (output_toc): Use new helper macros.
13294         (rs6000_register_move_cost): Likewise.
13295         (rs6000_function_value): Add IEEE 128-bit floating point calling
13296         sequence support.
13297         (rs6000_libcall_value): Likewise.
13298         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13299         floating point support.
13300         (rs6000_vector_mode_supported_p): Likewise.
13301
13302 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
13303
13304         PR rtl-optimization/66782
13305         * lra-int.h (struct lra_insn_recog_data): Add comment about
13306         clobbered hard regs for arg_hard_regs.
13307         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13308         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13309         Add condition for processing used hard regs.
13310         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13311         Process clobbered hard regs.
13312
13313 2015-07-09  Michael Matz  <matz@suse.de>
13314
13315         * genmatch.c (fprintf_indent): New function.
13316         (operand::gen_transform): Add indent parameter.
13317         (expr::gen_transform, c_expr::gen_transform,
13318         capture::gen_transform): Ditto and use fprintf_indent.
13319         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13320         (dt_operand::gen, dt_operand::gen_predicate,
13321         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13322         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13323         (decision_tree::gen_gimple): Adjust calls and indent generated
13324         code.
13325         (decision_tree::gen_generic): Ditto.
13326         (write_predicate): Ditto.
13327
13328 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13329
13330         PR target/66814
13331         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
13332         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
13333         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
13334         {GENERAL,SSE,MMX}_REG_P where appropriate.
13335
13336 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13337
13338         * lto-streamer.h: Don't include target.h and alloc-pool.h.
13339         * builtins.c: Adjust includes.
13340         * gimple.c: Likewise.
13341         * ipa-icf.c: Likewise.
13342         * lto-opts.c: Likewise.
13343         * ipa-reference.c: Likewise.
13344         * lto-section-out.c: Likewise.
13345         * lto-streamer-in.c: Likewise.
13346         * lto-streamer-out.c: Likewise.
13347         * opts-global.c: Likewise.
13348         * symtab.c: Likewise.
13349         * tree-chkp.c: Likewise.
13350         * tree-ssa-live.c: Likewise.
13351         * tree-streamer-in.c: Likewise.
13352         * tree-streamer-out.c: Likewise.
13353         * config/darwin.c: Likewise.
13354         * config/i386/winnt.c: Likewise.
13355
13356 2015-07-09  Richard Biener  <rguenther@suse.de>
13357
13358         * genmatch.c (struct expr): Add force_single_use flag.
13359         (expr::expr): Add copy constructor.
13360         (capture_info::walk_match): Gather force_single_use captures.
13361         (expr::gen_transform): Use possibly NULLified sequence.
13362         (dt_simplify::gen): Apply single-use restrictions by NULLifying
13363         seq if any constrained expr is not single-use.
13364         (parser::parse_expr): Refactor to allow multiple flags.  Handle
13365         's' flag to force an expression have a single-use if the pattern
13366         simplifies to more than one statement.
13367         * match.pd: Convert most single_use conditionals to :s flags.
13368
13369 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13370
13371         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13372         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13373         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13374
13375 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13376
13377         * flags.h: Don't include flag-types.h or options.h.
13378         * opts-common.c: Adjust includes.
13379         * opts-global.c: Likewise.
13380         * common/config/epiphany/epiphany-common.c: Likewise.
13381
13382 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13383
13384         PR target/66818
13385         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13386         for IA MCU.
13387
13388 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13389
13390         PR target/66817
13391         * config/i386/i386.c (ix86_return_in_memory): Return true
13392         if int_size_in_bytes returns negative for IA MCU.
13393
13394 2015-07-09  Marek Polacek  <polacek@redhat.com>
13395
13396         PR tree-optimization/66718
13397         * Makefile.in (OBJS): Add gimple-laddress.o.
13398         * passes.def: Schedule pass_laddress.
13399         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13400         * tree-pass.h (make_pass_laddress): Declare.
13401         * gimple-laddress.c: New file.
13402
13403 2015-07-09  Richard Biener  <rguenther@suse.de>
13404
13405         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13406
13407 2015-07-09  Richard Biener  <rguenther@suse.de>
13408
13409         PR tree-optimization/66807
13410         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13411
13412 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
13413
13414         * function.c (stack_protect_epilogue): Use if rather than switch for
13415         check targetm.have_stack_protect_test.
13416
13417 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13418
13419         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13420         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13421         * config/arc/arc.h: Likewise.
13422         * config/arm/arm.h: Likewise.
13423         * config/bfin/bfin.h: Likewise.
13424         * config/epiphany/epiphany.h: Likewise.
13425         * config/frv/frv.h: Likewise.
13426         * config/ia64/ia64.h: Likewise.
13427         * config/iq2000/iq2000.h: Likewise.
13428         * config/lm32/lm32.h: Likewise.
13429         * config/m32r/m32r.h: Likewise.
13430         * config/mcore/mcore.h: Likewise.
13431         * config/mep/mep.h: Likewise.
13432         * config/microblaze/microblaze.h: Likewise.
13433         * config/mips/mips.h: Likewise.
13434         * config/mmix/mmix.h: Likewise.
13435         * config/mn10300/mn10300.h: Likewise.
13436         * config/nds32/nds32.h: Likewise.
13437         * config/nios2/nios2.h: Likewise.
13438         * config/pa/pa.h: Likewise.
13439         * config/rl78/rl78.h: Likewise.
13440         * config/sh/sh.h: Likewise.
13441         * config/sparc/sparc.h: Likewise.
13442         * config/stormy16/stormy16.h: Likewise.
13443         * config/tilegx/tilegx.h: Likewise.
13444         * config/tilepro/tilepro.h: Likewise.
13445         * config/v850/v850.h: Likewise.
13446         * config/xtensa/xtensa.h: Likewise.
13447         * doc/tm.texi: Regenerate.
13448         * doc/tm.texi.in: Adjust.
13449         * combine.c (simplify_set): Likewise.
13450         (simplify_comparison): Likewise.
13451         * expr.c (store_constructor): Likewise.
13452         * internal-fn.c (expand_arith_overflow): Likewise.
13453         * reload.c (push_reload): Likewise.
13454         (find_reloads): Likewise.
13455         (find_reloads_subreg_address): Likewise.
13456         * reload1.c (eliminate_regs_1): Likewise.
13457         * rtlanal.c (nonzero_bits1): Likewise.
13458         (num_sign_bit_copies1): Likewise.
13459         * simplify-rtx.c (simplify_truncation): Likewise.
13460
13461 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13462
13463         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13464         of AUTO_INC_DEC with the preprocessor.
13465         * combine.c (combine_instructions): Likewise.
13466         (can_combine_p): Likewise.
13467         (try_combine): Likewise.
13468         * emit-rtl.c (try_split): Likewise.
13469         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13470         * lower-subreg.c (resolve_simple_move): Likewise.
13471         * lra.c (update_inc_notes): Likewise.
13472         * recog.c (asm_operand_ok): Likewise.
13473         (constrain_operands): Likewise.
13474         * regrename.c (scan_rtx_address): Likewise.
13475         * reload.c (update_auto_inc_notes): Likewise.
13476         (reg_inc_found_and_valid_p): Likewise.
13477         * reload1.c (reload): Likewise.
13478         (emit_input_reload_insns): Likewise.
13479         (delete_output_reload): Likewise.
13480         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13481         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13482
13483 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13484
13485         * rtl.h: Always define AUTO_INC_DEC.
13486         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13487         * combine.c (combine_instructions): Likewise.
13488         (can_combine_p): Likewise.
13489         (try_combine): Likewise.
13490         * emit-rtl.c (try_split): Likewise.
13491         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13492         * lower-subreg.c (resolve_simple_move): Likewise.
13493         * lra.c (update_inc_notes): Likewise.
13494         * recog.c (asm_operand_ok): Likewise.
13495         (constrain_operands): Likewise.
13496         * regrename.c (scan_rtx_address): Likewise.
13497         * reload.c (update_auto_inc_notes): Likewise.
13498         (find_equiv_reg): Likewise.
13499         * reload1.c (reload): Likewise.
13500         (reload_as_needed): Likewise.
13501         (choose_reload_regs): Likewise.
13502         (emit_input_reload_insns): Likewise.
13503         (delete_output_reload): Likewise.
13504         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13505         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13506
13507 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13508
13509         * combine.c (can_combine_def_p): Don't check the value of
13510         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13511         (combinable_i3pat): Likewise.
13512         (mark_used_regs_combine): Likewise.
13513         * regrename.c (rename_chains): Likewise.
13514         * reload.c (find_reloads_address): Likewise.
13515         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13516
13517 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13518
13519         * combine.c (update_rsp_from_reg_equal): Don't check if
13520         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13521         (reg_nonzero_bits_for_combine): Likewise.
13522         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13523         1.
13524         * config/frv/frv.h: Likewise.
13525         * config/lm32/lm32.h: Likewise.
13526         * config/mep/mep.h: Likewise.
13527         * config/mips/mips.h: Likewise.
13528         * config/rs6000/rs6000.h: Likewise.
13529         * config/sh/sh.h: Likewise.
13530         * config/tilegx/tilegx.h (enum reg_class): Likewise.
13531         * config/tilepro/tilepro.h: Likewise.
13532         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13533         * doc/tm.texi: Regenerate.
13534         * doc/tm.texi.in: Adjust.
13535         * rtlanal.c (nonzero_bits1): Likewise.
13536
13537 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13538
13539         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13540         with the preprocessor.
13541         (combine_instructions): Likewise.
13542         (try_combine): Likewise.
13543         (subst): Likewise.
13544         (distribute_notes): Likewise.
13545
13546 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13547
13548         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13549         defined.
13550         (simplify_set): Likewise.
13551         * cse.c (cse_insn): Likewise.
13552         * fold-const.c (fold_single_bit_test): Likewise.
13553         (fold_unary_loc): Likewise.
13554         * postreload.c (reload_cse_simplify_set): Likewise.
13555         (reload_cse_simplify_operands): Likewise.
13556
13557 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
13558
13559         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13560         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13561
13562 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13563
13564         PR target/66746
13565         * config/i386/x86intrin.h: Include <adxintrin.h> even if
13566         __iamcu__ is defined.
13567
13568 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13569
13570         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13571
13572 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
13573
13574         PR target/66523
13575         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13576         names from preservation.
13577
13578 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13579
13580         PR target/66806
13581         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13582         change for IAMCU.
13583         (function_arg_advance_32): Don't pass vectors in registers for
13584         IAMCU.
13585         (function_arg_32): Likewise.
13586         (ix86_return_in_memory): Don't return vectors in registers for
13587         IAMCU.
13588
13589 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13590
13591         PR middle-end/66334
13592         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13593         hard regno live at the start of BB with incoming abnormal edges.
13594         * lra-lives.c (process_bb_lives): Ditto.
13595
13596 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
13597
13598         PR libgomp/65099
13599         * config/nvptx/mkoffload.c (main): Create an offload image only in
13600         64-bit configurations.
13601
13602 2015-07-08  Martin Liska  <mliska@suse.cz>
13603
13604         PR bootstrap/66744
13605         * tree-sra.c (create_access_1): Call ctor without brackets.
13606         (create_artificial_child_access): Likewise.
13607
13608 2015-07-08  Richard Biener  <rguenther@suse.de>
13609
13610         PR tree-optimization/66793
13611         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13612         Properly split the block after stmts ending it.
13613
13614 2015-07-08  Richard Biener  <rguenther@suse.de>
13615
13616         PR tree-optimization/66794
13617         * passes.c (execute_function_todo): Assert that post-dominators
13618         are not computed.
13619         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13620         Free post-dominators.
13621
13622 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13623
13624         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13625         with early exit.
13626
13627 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13628
13629         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13630         more than or equal 8 and less than 32 when optimizing for size.
13631
13632 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13633
13634         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13635         COSTS_N_INSNS (1) and increment it appropriately throughout the
13636         function.
13637
13638 2015-07-08  Richard Biener  <rguenther@suse.de>
13639
13640         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13641
13642 2015-07-08  Alan Modra  <amodra@gmail.com>
13643
13644         * target.def (rtx_costs): Remove "code" param, add "mode".
13645         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13646         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
13647         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13648         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
13649         call.  Track mode when given in rtx.
13650         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
13651         (default_address_cost): Pass Pmode to rtx_cost.
13652         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13653         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13654         with NULL set.
13655         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
13656         (notreg_cost): Add mode param.  Use it.
13657         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
13658         mode param and pass to set_src_cost.  Update all calls.
13659         (hash_scan_set): Formatting.
13660         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13661         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13662         * hooks.h: Ditto.
13663         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13664         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13665         emit_store_flag): Update set_src_cost and rtx_cost calls.
13666         * auto-inc-dec.c (attempt_change): Likewise.
13667         * calls.c (precompute_register_parameters): Likewise.
13668         * combine.c (expand_compound_operation, make_extraction,
13669         force_to_mode, distribute_and_simplify_rtx): Likewise.
13670         * dojump.c (prefer_and_bit_test): Likewise.
13671         * dse.c (find_shift_sequence): Likewise.
13672         * expr.c (compress_float_constant): Likewise.
13673         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13674         * ifcvt.c (noce_try_sign_mask): Likewise.
13675         * loop-doloop.c (doloop_optimize): Likewise.
13676         * loop-invariant.c (create_new_invariant): Likewise.
13677         * lower-subreg.c (shift_cost, compute_costs): Likewise.
13678         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13679         lshift_cheap_p): Likewise.
13680         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13681         try_replace_in_use, reload_cse_move2add): Likewise.
13682         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13683         Likewise.
13684         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13685         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13686         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13687         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13688         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13689         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
13690         to rtx_cost calls.
13691         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13692         * config/arc/arc.c (arc_rtx_costs): Likewise.
13693         * config/arm/arm.c (arm_rtx_costs): Likewise.
13694         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13695         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13696         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13697         * config/cris/cris.c (cris_rtx_costs): Likewise.
13698         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13699         * config/frv/frv.c (frv_rtx_costs): Likewise.
13700         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13701         * config/i386/i386.c (ix86_rtx_costs): Likewise.
13702         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13703         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13704         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13705         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13706         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13707         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13708         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13709         * config/mep/mep.c (mep_rtx_cost): Likewise.
13710         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13711         * config/mips/mips.c (mips_rtx_costs): Likewise.
13712         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13713         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13714         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13715         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13716         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13717         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13718         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13719         * config/pa/pa.c (hppa_rtx_costs): Likewise.
13720         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13721         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13722         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13723         * config/s390/s390.c (s390_rtx_costs): Likewise.
13724         * config/sh/sh.c (sh_rtx_costs): Likewise.
13725         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13726         * config/spu/spu.c (spu_rtx_costs): Likewise.
13727         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13728         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13729         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13730         * config/v850/v850.c (v850_rtx_costs): Likewise.
13731         * config/vax/vax.c (vax_rtx_costs): Likewise.
13732         * config/visium/visium.c (visium_rtx_costs): Likewise.
13733         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13734         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13735         "code" param, and pass as outer_code to first rtx_cost call.  Pass
13736         mode to rtx_cost calls.
13737         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13738         calls.
13739         (aarch64_rtx_costs_wrapper): Update.
13740         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13741         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13742         rtx_cost calls.
13743         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13744         and rtx_cost calls.
13745         (avr_operand_rtx_cost): Similarly.
13746         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13747         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13748         * config/mips/mips.c (mips_stack_address_p): Comment typo.
13749         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13750         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13751         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13752         rtx_cost.
13753         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13754         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13755         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13756         * doc/tm.texi: Regenerate.
13757
13758 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
13759
13760         * tree-core.h: Include symtab.h.
13761         * rtl.h: Include hard-reg-set.h but not flags.h.
13762         (HARD_CONST): Remove condition compilation involving HARD_CONST since
13763         hard-reg-set.h is always included.
13764         * regs.h: Don't include hard-reg-set.h or rtl.h.
13765         * cfg.h: Include dominance.h.
13766         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13767         * backend.h: New.  Aggregate commonly used backend header files.
13768         * gimple-ssa.h: Don't include tree-hasher.h.
13769         * ssa.h: New.  Aggregate commonly used SSA header files.
13770         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13771         * sel-sched-ir.h: Flatten includes.
13772         * lra-int.h: Flatten completely.
13773         * sel-sched-dump.h: Flatten includes.
13774         * ira-int.h: Flatten includes.
13775         * gimple-streamer.h: Remove all includes.
13776         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13777         * resource.h: Flatten hard-reg-set.h and df.h.
13778         * sched-int.h: Flatten insn-arrt.h and df.h.
13779         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13780         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13781         * genattrtab.c (write_header): Adjust generated includes.
13782         * genautomata.c (main): Likewise.
13783         * genconditions.c (write-header): Likewise.
13784         * genemit.c (main): Likewise.
13785         * gengtype.c (open_base_files): Likewise.
13786         * genopinit.c (main): Likewise.
13787         * genoutput.c (output_prologue): Likewise.
13788         * genpeep.c (main): Likewise.
13789         * genpreds.c (write_insn_preds_c): Likewise.
13790         * genrecog.c (write_header): Likewise.
13791         * alias.c: Adjust includes.
13792         * asan.c: Likewise.
13793         * attribs.c: Likewise.
13794         * auto-inc-dec.c: Likewise.
13795         * auto-profile.c: Likewise.
13796         * bb-reorder.c: Likewise.
13797         * bt-load.c: Likewise.
13798         * builtins.c: Likewise.
13799         * caller-save.c: Likewise.
13800         * calls.c: Likewise.
13801         * ccmp.c: Likewise.
13802         * cfg.c: Likewise.
13803         * cfganal.c: Likewise.
13804         * cfgbuild.c: Likewise.
13805         * cfgcleanup.c: Likewise.
13806         * cfgexpand.c: Likewise.
13807         * cfghooks.c: Likewise.
13808         * cfgloop.c: Likewise.
13809         * cfgloopanal.c: Likewise.
13810         * cfgloopmanip.c: Likewise.
13811         * cfgrtl.c: Likewise.
13812         * cgraph.c: Likewise.
13813         * cgraphbuild.c: Likewise.
13814         * cgraphclones.c: Likewise.
13815         * cgraphunit.c: Likewise.
13816         * cilk-common.c: Likewise.
13817         * combine-stack-adj.c: Likewise.
13818         * combine.c: Likewise.
13819         * compare-elim.c: Likewise.
13820         * convert.c: Likewise.
13821         * coverage.c: Likewise.
13822         * cppbuiltin.c: Likewise.
13823         * cprop.c: Likewise.
13824         * cse.c: Likewise.
13825         * cselib.c: Likewise.
13826         * data-streamer-in.c: Likewise.
13827         * data-streamer-out.c: Likewise.
13828         * data-streamer.c: Likewise.
13829         * dbxout.c: Likewise.
13830         * dce.c: Likewise.
13831         * ddg.c: Likewise.
13832         * debug.c: Likewise.
13833         * df-core.c: Likewise.
13834         * df-problems.c: Likewise.
13835         * df-scan.c: Likewise.
13836         * dfp.c: Likewise.
13837         * dojump.c: Likewise.
13838         * dominance.c: Likewise.
13839         * domwalk.c: Likewise.
13840         * double-int.c: Likewise.
13841         * dse.c: Likewise.
13842         * dumpfile.c: Likewise.
13843         * dwarf2asm.c: Likewise.
13844         * dwarf2cfi.c: Likewise.
13845         * dwarf2out.c: Likewise.
13846         * emit-rtl.c: Likewise.
13847         * et-forest.c: Likewise.
13848         * except.c: Likewise.
13849         * explow.c: Likewise.
13850         * expmed.c: Likewise.
13851         * expr.c: Likewise.
13852         * final.c: Likewise.
13853         * fixed-value.c: Likewise.
13854         * fold-const.c: Likewise.
13855         * function.c: Likewise.
13856         * fwprop.c: Likewise.
13857         * gcc-plugin.h: Likewise.
13858         * gcse-common.c: Likewise.
13859         * gcse.c: Likewise.
13860         * generic-match-head.c: Likewise.
13861         * ggc-page.c: Likewise.
13862         * gimple-builder.c: Likewise.
13863         * gimple-expr.c: Likewise.
13864         * gimple-fold.c: Likewise.
13865         * gimple-iterator.c: Likewise.
13866         * gimple-low.c: Likewise.
13867         * gimple-match-head.c: Likewise.
13868         * gimple-pretty-print.c: Likewise.
13869         * gimple-ssa-isolate-paths.c: Likewise.
13870         * gimple-ssa-strength-reduction.c: Likewise.
13871         * gimple-streamer-in.c: Likewise.
13872         * gimple-streamer-out.c: Likewise.
13873         * gimple-walk.c: Likewise.
13874         * gimple.c: Likewise.
13875         * gimplify-me.c: Likewise.
13876         * gimplify.c: Likewise.
13877         * godump.c: Likewise.
13878         * graph.c: Likewise.
13879         * graphite-blocking.c: Likewise.
13880         * graphite-dependences.c: Likewise.
13881         * graphite-interchange.c: Likewise.
13882         * graphite-isl-ast-to-gimple.c: Likewise.
13883         * graphite-optimize-isl.c: Likewise.
13884         * graphite-poly.c: Likewise.
13885         * graphite-scop-detection.c: Likewise.
13886         * graphite-sese-to-poly.c: Likewise.
13887         * graphite.c: Likewise.
13888         * haifa-sched.c: Likewise.
13889         * hw-doloop.c: Likewise.
13890         * ifcvt.c: Likewise.
13891         * init-regs.c: Likewise.
13892         * internal-fn.c: Likewise.
13893         * ipa-chkp.c: Likewise.
13894         * ipa-comdats.c: Likewise.
13895         * ipa-cp.c: Likewise.
13896         * ipa-devirt.c: Likewise.
13897         * ipa-icf-gimple.c: Likewise.
13898         * ipa-icf.c: Likewise.
13899         * ipa-inline-analysis.c: Likewise.
13900         * ipa-inline-transform.c: Likewise.
13901         * ipa-inline.c: Likewise.
13902         * ipa-polymorphic-call.c: Likewise.
13903         * ipa-profile.c: Likewise.
13904         * ipa-prop.c: Likewise.
13905         * ipa-pure-const.c: Likewise.
13906         * ipa-ref.c: Likewise.
13907         * ipa-reference.c: Likewise.
13908         * ipa-split.c: Likewise.
13909         * ipa-utils.c: Likewise.
13910         * ipa-visibility.c: Likewise.
13911         * ipa.c: Likewise.
13912         * ira-build.c: Likewise.
13913         * ira-color.c: Likewise.
13914         * ira-conflicts.c: Likewise.
13915         * ira-costs.c: Likewise.
13916         * ira-emit.c: Likewise.
13917         * ira-lives.c: Likewise.
13918         * ira.c: Likewise.
13919         * jump.c: Likewise.
13920         * langhooks.c: Likewise.
13921         * lcm.c: Likewise.
13922         * loop-doloop.c: Likewise.
13923         * loop-init.c: Likewise.
13924         * loop-invariant.c: Likewise.
13925         * loop-iv.c: Likewise.
13926         * loop-unroll.c: Likewise.
13927         * lower-subreg.c: Likewise.
13928         * lra-assigns.c: Likewise.
13929         * lra-coalesce.c: Likewise.
13930         * lra-constraints.c: Likewise.
13931         * lra-eliminations.c: Likewise.
13932         * lra-lives.c: Likewise.
13933         * lra-remat.c: Likewise.
13934         * lra-spills.c: Likewise.
13935         * lra.c: Likewise.
13936         * lto-cgraph.c: Likewise.
13937         * lto-compress.c: Likewise.
13938         * lto-opts.c: Likewise.
13939         * lto-section-in.c: Likewise.
13940         * lto-section-out.c: Likewise.
13941         * lto-streamer-in.c: Likewise.
13942         * lto-streamer-out.c: Likewise.
13943         * lto-streamer.c: Likewise.
13944         * mcf.c: Likewise.
13945         * mode-switching.c: Likewise.
13946         * modulo-sched.c: Likewise.
13947         * omega.c: Likewise.
13948         * omp-low.c: Likewise.
13949         * optabs.c: Likewise.
13950         * opts-global.c: Likewise.
13951         * passes.c: Likewise.
13952         * plugin.c: Likewise.
13953         * postreload-gcse.c: Likewise.
13954         * postreload.c: Likewise.
13955         * predict.c: Likewise.
13956         * print-rtl.c: Likewise.
13957         * print-tree.c: Likewise.
13958         * profile.c: Likewise.
13959         * real.c: Likewise.
13960         * realmpfr.c: Likewise.
13961         * recog.c: Likewise.
13962         * ree.c: Likewise.
13963         * reg-stack.c: Likewise.
13964         * regcprop.c: Likewise.
13965         * reginfo.c: Likewise.
13966         * regrename.c: Likewise.
13967         * regstat.c: Likewise.
13968         * reload.c: Likewise.
13969         * reload1.c: Likewise.
13970         * reorg.c: Likewise.
13971         * resource.c: Likewise.
13972         * rtl-chkp.c: Likewise.
13973         * rtlanal.c: Likewise.
13974         * rtlhooks.c: Likewise.
13975         * sanopt.c: Likewise.
13976         * sched-deps.c: Likewise.
13977         * sched-ebb.c: Likewise.
13978         * sched-rgn.c: Likewise.
13979         * sched-vis.c: Likewise.
13980         * sdbout.c: Likewise.
13981         * sel-sched-dump.c: Likewise.
13982         * sel-sched-ir.c: Likewise.
13983         * sel-sched.c: Likewise.
13984         * sese.c: Likewise.
13985         * shrink-wrap.c: Likewise.
13986         * simplify-rtx.c: Likewise.
13987         * stack-ptr-mod.c: Likewise.
13988         * stmt.c: Likewise.
13989         * stor-layout.c: Likewise.
13990         * store-motion.c: Likewise.
13991         * stringpool.c: Likewise.
13992         * symtab.c: Likewise.
13993         * target-globals.c: Likewise.
13994         * targhooks.c: Likewise.
13995         * toplev.c: Likewise.
13996         * tracer.c: Likewise.
13997         * trans-mem.c: Likewise.
13998         * tree-affine.c: Likewise.
13999         * tree-browser.c: Likewise.
14000         * tree-call-cdce.c: Likewise.
14001         * tree-cfg.c: Likewise.
14002         * tree-cfgcleanup.c: Likewise.
14003         * tree-chkp-opt.c: Likewise.
14004         * tree-chkp.c: Likewise.
14005         * tree-chrec.c: Likewise.
14006         * tree-complex.c: Likewise.
14007         * tree-data-ref.c: Likewise.
14008         * tree-dfa.c: Likewise.
14009         * tree-diagnostic.c: Likewise.
14010         * tree-dump.c: Likewise.
14011         * tree-eh.c: Likewise.
14012         * tree-emutls.c: Likewise.
14013         * tree-if-conv.c: Likewise.
14014         * tree-inline.c: Likewise.
14015         * tree-into-ssa.c: Likewise.
14016         * tree-iterator.c: Likewise.
14017         * tree-loop-distribution.c: Likewise.
14018         * tree-nested.c: Likewise.
14019         * tree-nrv.c: Likewise.
14020         * tree-object-size.c: Likewise.
14021         * tree-outof-ssa.c: Likewise.
14022         * tree-parloops.c: Likewise.
14023         * tree-phinodes.c: Likewise.
14024         * tree-predcom.c: Likewise.
14025         * tree-pretty-print.c: Likewise.
14026         * tree-profile.c: Likewise.
14027         * tree-scalar-evolution.c: Likewise.
14028         * tree-sra.c: Likewise.
14029         * tree-ssa-address.c: Likewise.
14030         * tree-ssa-alias.c: Likewise.
14031         * tree-ssa-ccp.c: Likewise.
14032         * tree-ssa-coalesce.c: Likewise.
14033         * tree-ssa-copy.c: Likewise.
14034         * tree-ssa-copyrename.c: Likewise.
14035         * tree-ssa-dce.c: Likewise.
14036         * tree-ssa-dom.c: Likewise.
14037         * tree-ssa-dse.c: Likewise.
14038         * tree-ssa-forwprop.c: Likewise.
14039         * tree-ssa-ifcombine.c: Likewise.
14040         * tree-ssa-live.c: Likewise.
14041         * tree-ssa-loop-ch.c: Likewise.
14042         * tree-ssa-loop-im.c: Likewise.
14043         * tree-ssa-loop-ivcanon.c: Likewise.
14044         * tree-ssa-loop-ivopts.c: Likewise.
14045         * tree-ssa-loop-manip.c: Likewise.
14046         * tree-ssa-loop-niter.c: Likewise.
14047         * tree-ssa-loop-prefetch.c: Likewise.
14048         * tree-ssa-loop-unswitch.c: Likewise.
14049         * tree-ssa-loop.c: Likewise.
14050         * tree-ssa-math-opts.c: Likewise.
14051         * tree-ssa-operands.c: Likewise.
14052         * tree-ssa-phiopt.c: Likewise.
14053         * tree-ssa-phiprop.c: Likewise.
14054         * tree-ssa-pre.c: Likewise.
14055         * tree-ssa-propagate.c: Likewise.
14056         * tree-ssa-reassoc.c: Likewise.
14057         * tree-ssa-sccvn.c: Likewise.
14058         * tree-ssa-scopedtables.c: Likewise.
14059         * tree-ssa-sink.c: Likewise.
14060         * tree-ssa-strlen.c: Likewise.
14061         * tree-ssa-structalias.c: Likewise.
14062         * tree-ssa-tail-merge.c: Likewise.
14063         * tree-ssa-ter.c: Likewise.
14064         * tree-ssa-threadedge.c: Likewise.
14065         * tree-ssa-threadupdate.c: Likewise.
14066         * tree-ssa-uncprop.c: Likewise.
14067         * tree-ssa-uninit.c: Likewise.
14068         * tree-ssa.c: Likewise.
14069         * tree-ssanames.c: Likewise.
14070         * tree-stdarg.c: Likewise.
14071         * tree-streamer-in.c: Likewise.
14072         * tree-streamer-out.c: Likewise.
14073         * tree-streamer.c: Likewise.
14074         * tree-switch-conversion.c: Likewise.
14075         * tree-tailcall.c: Likewise.
14076         * tree-vect-data-refs.c: Likewise.
14077         * tree-vect-generic.c: Likewise.
14078         * tree-vect-loop-manip.c: Likewise.
14079         * tree-vect-loop.c: Likewise.
14080         * tree-vect-patterns.c: Likewise.
14081         * tree-vect-slp.c: Likewise.
14082         * tree-vect-stmts.c: Likewise.
14083         * tree-vectorizer.c: Likewise.
14084         * tree-vrp.c: Likewise.
14085         * tree.c: Likewise.
14086         * tsan.c: Likewise.
14087         * ubsan.c: Likewise.
14088         * valtrack.c: Likewise.
14089         * value-prof.c: Likewise.
14090         * var-tracking.c: Likewise.
14091         * varasm.c: Likewise.
14092         * varpool.c: Likewise.
14093         * vmsdbgout.c: Likewise.
14094         * vtable-verify.c: Likewise.
14095         * web.c: Likewise.
14096         * wide-int.cc: Likewise.
14097         * xcoffout.c: Likewise.
14098         * config/aarch64/aarch64-builtins.c: Likewise.
14099         * config/aarch64/aarch64.c: Likewise.
14100         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14101         * config/alpha/alpha.c: Likewise.
14102         * config/arc/arc.c: Likewise.
14103         * config/arm/aarch-common.c: Likewise.
14104         * config/arm/arm-builtins.c: Likewise.
14105         * config/arm/arm-c.c: Likewise.
14106         * config/arm/arm.c: Likewise.
14107         * config/avr/avr-c.c: Likewise.
14108         * config/avr/avr-log.c: Likewise.
14109         * config/avr/avr.c: Likewise.
14110         * config/bfin/bfin.c: Likewise.
14111         * config/c6x/c6x.c: Likewise.
14112         * config/cr16/cr16.c: Likewise.
14113         * config/cris/cris.c: Likewise.
14114         * config/darwin-c.c: Likewise.
14115         * config/darwin.c: Likewise.
14116         * config/epiphany/epiphany.c: Likewise.
14117         * config/epiphany/mode-switch-use.c: Likewise.
14118         * config/epiphany/resolve-sw-modes.c: Likewise.
14119         * config/fr30/fr30.c: Likewise.
14120         * config/frv/frv.c: Likewise.
14121         * config/ft32/ft32.c: Likewise.
14122         * config/h8300/h8300.c: Likewise.
14123         * config/i386/i386-c.c: Likewise.
14124         * config/i386/i386.c: Likewise.
14125         * config/i386/msformat-c.c: Likewise.
14126         * config/i386/winnt-cxx.c: Likewise.
14127         * config/i386/winnt-stubs.c: Likewise.
14128         * config/i386/winnt.c: Likewise.
14129         * config/ia64/ia64-c.c: Likewise.
14130         * config/ia64/ia64.c: Likewise.
14131         * config/iq2000/iq2000.c: Likewise.
14132         * config/lm32/lm32.c: Likewise.
14133         * config/m32c/m32c-pragma.c: Likewise.
14134         * config/m32c/m32c.c: Likewise.
14135         * config/m32r/m32r.c: Likewise.
14136         * config/m68k/m68k.c: Likewise.
14137         * config/mcore/mcore.c: Likewise.
14138         * config/mep/mep-pragma.c: Likewise.
14139         * config/mep/mep.c: Likewise.
14140         * config/microblaze/microblaze-c.c: Likewise.
14141         * config/microblaze/microblaze.c: Likewise.
14142         * config/mips/mips.c: Likewise.
14143         * config/mmix/mmix.c: Likewise.
14144         * config/mn10300/mn10300.c: Likewise.
14145         * config/moxie/moxie.c: Likewise.
14146         * config/msp430/msp430-c.c: Likewise.
14147         * config/msp430/msp430.c: Likewise.
14148         * config/nds32/nds32-cost.c: Likewise.
14149         * config/nds32/nds32-fp-as-gp.c: Likewise.
14150         * config/nds32/nds32-intrinsic.c: Likewise.
14151         * config/nds32/nds32-isr.c: Likewise.
14152         * config/nds32/nds32-md-auxiliary.c: Likewise.
14153         * config/nds32/nds32-memory-manipulation.c: Likewise.
14154         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14155         * config/nds32/nds32-predicates.c: Likewise.
14156         * config/nds32/nds32.c: Likewise.
14157         * config/nios2/nios2.c: Likewise.
14158         * config/nvptx/nvptx.c: Likewise.
14159         * config/pa/pa.c: Likewise.
14160         * config/pdp11/pdp11.c: Likewise.
14161         * config/rl78/rl78-c.c: Likewise.
14162         * config/rl78/rl78.c: Likewise.
14163         * config/rs6000/rs6000-c.c: Likewise.
14164         * config/rs6000/rs6000.c: Likewise.
14165         * config/rx/rx.c: Likewise.
14166         * config/s390/s390-c.c: Likewise.
14167         * config/s390/s390.c: Likewise.
14168         * config/sh/sh-c.c: Likewise.
14169         * config/sh/sh-mem.cc: Likewise.
14170         * config/sh/sh.c: Likewise.
14171         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14172         * config/sh/sh_treg_combine.cc: Likewise.
14173         * config/sol2-c.c: Likewise.
14174         * config/sol2-cxx.c: Likewise.
14175         * config/sol2-stubs.c: Likewise.
14176         * config/sol2.c: Likewise.
14177         * config/sparc/sparc-c.c: Likewise.
14178         * config/sparc/sparc.c: Likewise.
14179         * config/spu/spu-c.c: Likewise.
14180         * config/spu/spu.c: Likewise.
14181         * config/stormy16/stormy16.c: Likewise.
14182         * config/tilegx/mul-tables.c: Likewise.
14183         * config/tilegx/tilegx-c.c: Likewise.
14184         * config/tilegx/tilegx.c: Likewise.
14185         * config/tilepro/mul-tables.c: Likewise.
14186         * config/tilepro/tilepro-c.c: Likewise.
14187         * config/tilepro/tilepro.c: Likewise.
14188         * config/v850/v850-c.c: Likewise.
14189         * config/v850/v850.c: Likewise.
14190         * config/vax/vax.c: Likewise.
14191         * config/visium/visium.c: Likewise.
14192         * config/vms/vms-c.c: Likewise.
14193         * config/vms/vms.c: Likewise.
14194         * config/vxworks.c: Likewise.
14195         * config/xtensa/xtensa.c: Likewise.
14196
14197 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
14198
14199         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14200         Remove operand constraints.  Change operand 2 predicate to
14201         nonmemory operand.  Limit const_int values to mode bitsize.  Only
14202         allow const_int values less than 32 when optimizing for size.
14203         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14204         Remove operand constraints.
14205         (*bt<mode>): Use SImode for const_int values less than 32.
14206         (regmode): Remove mode attribute.
14207
14208 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
14209
14210         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14211         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14212           moxie_legitimate_address_p): New functions.
14213           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14214
14215 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14216
14217         PR tree-optimization/66642
14218         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14219         header comment.  Rename split_edge variable to edge_at_split.  Split
14220         exit edge to create new loop exit bb.  Insert loop exit phis in new
14221         loop exit bb.
14222
14223 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14224
14225         * tree-cfg.c (get_virtual_phi): New function.
14226         * tree-cfg.h (get_virtual_phi): Declare.
14227         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14228         (rewrite_virtuals_into_loop_closed_ssa): New function.
14229         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14230         Declare.
14231         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14232         (transform_to_exit_first_loop_alt): Use
14233         rewrite_virtuals_into_loop_closed_ssa.
14234
14235 2015-07-07  Richard Biener  <rguenther@suse.de>
14236
14237         * fold-const.c (fold_binary_loc): Move
14238         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14239         * match.pd: ... here.
14240         Add (X * C1) % C2 -> 0 simplification pattern derived from
14241         extract_muldiv_1.
14242
14243 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
14244
14245         PR target/66780
14246         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14247         change for target/65249.
14248
14249 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
14250
14251         * symtab.c (address_matters_1): Fix typo in comment above.
14252         (can_increase_alignment_p): Likewise.
14253
14254 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14255
14256         * function.c (free_after_compilation): Clear PROP_cfg in
14257         f->curr_properties.
14258
14259 2015-07-07  Richard Biener  <rguenther@suse.de>
14260
14261         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14262         add which use to.
14263         (add_control_edge): Remove excessive vertical space in dumping.
14264         (process_ssa_edge_worklist): Simulate at most one statement and
14265         return whether we did.  Do not simulate PHIs if they are in a
14266         BB not yet simulated.
14267         (ssa_propagate): Adjust to always drain the BB worklist whenever
14268         a BB is available there, likewise the VARYING edges list before
14269         the interesting edge list.
14270
14271 2015-07-07  Christian Bruel  <christian.bruel@st.com>
14272
14273         PR target/52144
14274         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14275
14276 2015-07-07  Richard Biener  <rguenther@suse.de>
14277
14278         PR middle-end/66739
14279         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14280         A - B.
14281
14282 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14283
14284         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
14285         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
14286         Copy operand 0 to a temporary if !ext_register_operand.  Remove
14287         ancient extract_bit_field workaround.
14288         (insv<mode>_1): Rename from mov<mode>_insv_1.
14289         (*insvqi): Rename from *movqi_insv_2.
14290         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14291         for renamed insvsi_1.
14292         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14293
14294 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14295
14296         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
14297         call to nvptx_reorg_subreg.
14298
14299 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
14300
14301         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14302         * graphite-dependencies.c, graphite-interchange.c,
14303         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14304         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14305         Likewise.
14306
14307 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
14308
14309         * match.pd: Remove element_mode inside HONOR_*.
14310         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14311         (~X | X -> -1, ~X ^ X -> -1): Merge.
14312         * tree.c (build_each_one_cst): New function.
14313         * tree.h (build_each_one_cst): Likewise.
14314
14315 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14316
14317         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14318         PROCESSOR_IAMCU.
14319
14320 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
14321
14322         * config.gcc <mips*-*-*>: Add fused-madd.opt.
14323         * config/mips/mips.opt (mfused-madd): Remove.
14324         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14325         * config/mips/mips.h (TARGET_MIPS8000): New.
14326         (ISA_HAS_FP_MADD4_MSUB4): Remove.
14327         (ISA_HAS_FP_MADDF_MSUBF): Remove.
14328         (ISA_HAS_FP_MADD3_MSUB3): Remove.
14329         (ISA_HAS_NMADD4_NMSUB4): Remove.
14330         (ISA_HAS_NMADD3_NMSUB3): Remove.
14331         (ISA_HAS_FUSED_MADD4): New.
14332         (ISA_HAS_UNFUSED_MADD4): New.
14333         (ISA_HAS_FUSED_MADDF): New.
14334         (ISA_HAS_FUSED_MADD3): New.
14335         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
14336         (*fma<mode>4_madd3) New.
14337         (*fma<mode>4_madd4) New.
14338         (*fma<mode>4_maddf) New.
14339         (fms<mode>4) New.
14340         (*fms<mode>4_msub3) New.
14341         (*fms<mode>4_msub4) New.
14342         (fnma<mode>4) New.
14343         (*fnma<mode>4_nmadd3) New.
14344         (*fnma<mode>4_nmadd4) New.
14345         (fnms<mode>4) New.
14346         (*fnms<mode>4_nmsub3) New.
14347         (*fnms<mode>4_nmsub4) New.
14348         (*madd4<mode>) Modify to be unfused only.
14349         (*msub4<mode>) Modify to be unfused only.
14350         (*nmadd4<mode>) Modify to be unfused only.
14351         (*nmsub4<mode>) Modify to be unfused only.
14352         (*madd3<mode>) Remove.
14353         (*msub3<mode>) Remove.
14354         (*nmadd3<mode>) Remove.
14355         (*nmsub3<mode>) Remove.
14356         (*nmadd3<mode>_fastmath) Remove.
14357         (*nmsub3<mode>_fastmath) Remove.
14358         (*nmadd4<mode>_fastmath) Update condition.
14359         (*nmsub4<mode>_fastmath) Update condition.
14360
14361 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14362
14363         PR target/65956
14364         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14365         alignment attribute, exploring one level down for records and arrays.
14366
14367 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14368
14369         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
14370         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
14371         Copy operand 1 to a temporary if !ext_register_operand.  Remove
14372         ancient extract_bit_field workaround.
14373         (*extv<mode>): Rename from *mov<mode>_extv_1.
14374         (*extvqi): Rename from *movqi_extv_1.
14375         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
14376         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
14377         to a temporary if !ext_register_operand.  Remove ancient
14378         extract_bit_field workaround.
14379         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14380         (*extzvqi): Rename from *movqi_extzv_2.
14381         (*testqi_ext_3): Remove modes from const_int_operand predicated
14382         operands.  Add "n" constraint.
14383         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14384         operand.  Add "J" constraint.
14385         (*btsq, *btrq, *btcq peephole2s): Remove mode from
14386         const_0_to_63 predicated operand.
14387         (regmode): New insn attribute.
14388         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
14389         to nonmemory_operand.  Use regmode insn attribute.
14390         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14391         (*jcc_bt<mode>_mask): Remove mode from operand 3.
14392         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14393         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14394         operands.  Use "N" constraint instead of "n".
14395
14396 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14397
14398         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14399
14400 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14401
14402         PR target/66749
14403         * config/i386/i386.c (iamcu_cost): New.
14404         (m_IAMCU): Likewise.
14405         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14406         (processor_target_table): Add an entry for "iamcu".
14407         (processor_alias_table): Likewise.
14408         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14409         (ix86_adjust_cost): Likewise.
14410         (ia32_multipass_dfa_lookahead): Likewise.
14411         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14412         * config/i386/x86-tune.def: Updated for m_IAMCU.
14413
14414 2015-07-06  Richard Biener  <rguenther@suse.de>
14415
14416         PR tree-optimization/66772
14417         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14418         values are available in the PHI node BB when there are
14419         still unexecutable edges.
14420
14421 2015-07-06  Richard Biener  <rguenther@suse.de>
14422
14423         PR tree-optimization/66767
14424         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14425         Make sure to build the alignment test on a SSA name without
14426         final alignment info valid only if the alignment test
14427         evaluates to true.
14428
14429 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14430
14431         PR target/66620
14432         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14433         loop start when inserting LSETUP.
14434
14435 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14436
14437         PR target/53383
14438         * config/i386/i386.c (ix86_option_override_internal): Allow
14439         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14440
14441 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14442
14443         * read-md.c (decimal_string): Rename to ...
14444         (md_decimal_string): ... this.
14445         (handle_enum): Reflect this.
14446
14447 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14448
14449         PR target/66731
14450         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14451
14452 2015-07-06  Richard Biener  <rguenther@suse.de>
14453
14454         PR middle-end/66759
14455         * match.pd: Add missing constraint of y to REAL_CST in
14456         REAL_CST - x CMP y to y - CST CMP x simplification.
14457
14458 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
14459
14460         PR tree-optimization/66757
14461         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14462
14463 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
14464             Sandra Loosemore <sandra@codesourcery.com>
14465
14466         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14467         Delete extern declaration.
14468         (gprel_constant_p): Add extern declaration.
14469         * config/nios2/constraints.md ("S"): Use gprel_constant_p
14470         instead of nios2_symbol_ref_in_small_data_p.
14471         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14472         (nios2_symbol_ref_in_small_data_p): Make static.
14473         (gprel_constant_p): Make non-static.
14474
14475 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14476
14477         * doc/fragments.texi (Target Fragment): Convert debian.org
14478         link to use https.
14479         * doc/install.texi (Configuration): Ditto.
14480
14481 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
14482
14483         PR tree-optimization/66718
14484         * tree-vect-stmts.c (vectorizable_call): Replace uses of
14485         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14486
14487         PR tree-optimization/66718
14488         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14489         vectorizable_load, vectorizable_condition): Move vectype,
14490         nunits, ncopies computation after checking what kind of statement
14491         stmt is.
14492
14493 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14494
14495         * target-insns.def (extv, extzv, insv): New targetm instruction
14496         patterns.
14497         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14498         interface.
14499         * recog.c (simplify_while_replacing): Likewise.
14500
14501 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14502
14503         * target-insns.def (doloop_begin, doloop_end): New targetm
14504         instruction patterns.
14505         * loop-init.c: Include target.h.
14506         (pass_loop2::gate): Use the new targetm patterns instead of
14507         HAVE_*/gen_* interface.
14508         (pass_rtl_doloop::gate): Likewise.
14509         (pass_rtl_doloop::execute): Remove preprocessor condition.
14510         * hw-doloop.c: Build unconditionally.
14511         * loop-doloop.c: Likewise.
14512         (doloop_optimize): Use the new targetm patterns instead of
14513         HAVE_*/gen_* interface.
14514         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14515         * modulo-sched.c (doloop_register_get): Likewise.
14516
14517 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14518
14519         * target-insns.def (clear_cache): New targetm instruction pattern.
14520         * builtins.c (expand_builtin___clear_cache): Use it instead of
14521         HAVE_*/gen_* interface.
14522
14523 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14524
14525         * target-insns.def (allocate_stack, check_stack, probe_stack)
14526         (probe_stack_address, split_stack_prologue, split_stack_space_check):
14527         New targetm instruction patterns.
14528         * explow.c (allocate_dynamic_stack_space): Use them instead of
14529         HAVE_*/gen_* interface.
14530         (emit_stack_probe): Likewise.
14531         (probe_stack_range): Likewise.
14532         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14533
14534 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14535
14536         * target-insns.def (stack_protect_set, stack_protect_test): New
14537         targetm instruction patterns.
14538         * cfgexpand.c (stack_protect_prologue): Use them instead of
14539         HAVE_*/gen_* interface.
14540         * function.c (stack_protect_epilogue): Likewise.
14541
14542 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14543
14544         * expr.h (gen_move_insn_uncast): Delete.
14545         * expr.c (gen_move_insn_uncast): Delete.
14546
14547 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14548
14549         * target-insns.def (restore_stack_block, restore_stack_function)
14550         (restore_stack_nonlocal, save_stack_block, save_stack_function)
14551         (save_stack_nonlocal): New targetm instruction patterns.
14552         * builtins.c (expand_builtin_apply): Use them instead of
14553         HAVE_*/gen_* interface.
14554         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14555
14556 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14557
14558         * target-insns.def (trap): New targetm instruction pattern.
14559         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14560         interface.
14561         * explow.c (allocate_dynamic_stack_space): Likewise.
14562         * ifcvt.c (find_if_header): Likewise.
14563
14564 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14565
14566         * target-insns.def (prefetch): New targetm instruction pattern.
14567         * tree-ssa-loop-prefetch.c: Include targeth.
14568         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14569         of HAVE_*/gen_* interface.
14570         * builtins.c (expand_builtin_prefetch): Likewise.
14571         * toplev.c (process_options): Likewise.
14572
14573 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14574
14575         * target-insns.def (untyped_call, untyped_return): New targetm
14576         instruction patterns.
14577         * builtins.c (expand_builtin_apply): Use them instead of
14578         HAVE_*/gen_* interface.
14579         (result_vector): Define unconditionally.
14580
14581 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14582
14583         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14584         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14585         (nonlocal_goto_receiver): New targetm instruction patterns.
14586         * builtins.c (expand_builtin_setjmp_setup): Use them instead
14587         of HAVE_*/gen_* interface.
14588         (expand_builtin_setjmp_receiver): Likewise.
14589         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14590         * except.c (expand_dw2_landing_pad_for_region): Likewise.
14591
14592 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14593
14594         * target.def: Add code_for_* hooks.
14595         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14596         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14597         * target-insns.def (casesi, tablejump): New targetm instruction
14598         patterns.
14599         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14600         (do_tablejump): Likewise.
14601         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14602         (expand_sjlj_dispatch_table): Likewise.
14603         * targhooks.c (default_case_values_threshold): Likewise.
14604
14605 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
14606
14607         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14608         Use rtx_insn * instead of rtx.
14609         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14610         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14611         (nios2_call_tls_get_addr): Likewise.
14612         (nios2_emit_expensive_div): Likewise.
14613         (nios2_emit_move_sequence): Change return type to bool.
14614         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14615         Change return type to bool.
14616
14617 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14618
14619         PR target/66747
14620         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14621
14622 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
14623
14624         PR target/66114
14625         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14626         of register_operand.  Remove constraint.
14627
14628 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
14629
14630         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14631         the first argument.
14632
14633 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
14634
14635         * attribs.c (decl_attributes): Guard inform with the return value
14636         of the preceding warning.
14637
14638 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14639
14640         * doc/invoke.texi (moverride): Move to correct section.
14641
14642 2015-07-03  Richard Biener  <rguenther@suse.de>
14643
14644         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14645         Copy from tree.c
14646         (dt_operand::gen_gimple_expr): After valueizing operands
14647         re-canonicalize operand order for commutative tree codes.
14648
14649 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
14650
14651         PR target/66746.
14652         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14653         is defined.
14654         (__crc32w): Likewise.
14655         (__crc32d): Likewise.
14656         (__rdpmc): Likewise.
14657         (__rdtscp): Likewise.
14658         (_rdpmc): Likewise.
14659         (_rdtscp): Likewise.
14660         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14661         is defined.
14662
14663 2015-07-03  Richard Biener  <rguenther@suse.de>
14664
14665         * fold-const.c (fold_mathfn_compare): Remove.
14666         (fold_inf_compare): Likewise.
14667         (fold_comparison): Move floating point comparison simplifications...
14668         * match.pd: ... to patterns here.  Introduce simple_comparisons
14669         operator list and use it for patterns formerly in fold_comparison.
14670
14671 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14672
14673         PR tree-optimization/66119
14674         * toplev.c (process_options): Don't set up default values for
14675         the sra_max_scalarization_size_{speed,size} parameters.
14676         * tree-sra (analyze_all_variable_accesses): If no values
14677         have been set for the sra_max_scalarization_size_{speed,size}
14678         parameters, call get_move_ratio to get target defaults.
14679
14680 2015-07-03  Richard Biener  <rguenther@suse.de>
14681
14682         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14683         * match.pd: ... here.
14684
14685 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
14686
14687         PR target/37072
14688         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14689         is not actually the default on FreeBSD.
14690
14691 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14692
14693         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14694         definition.
14695         (CMPGE_8HI): Likewise.
14696         (CMPGE_4SI): Likewise.
14697         (CMPGE_2DI): Likewise.
14698         (CMPGE_U16QI): Likewise.
14699         (CMPGE_U8HI): Likewise.
14700         (CMPGE_U4SI): Likewise.
14701         (CMPGE_U2DI): Likewise.
14702         (CMPLE_16QI): Likewise.
14703         (CMPLE_8HI): Likewise.
14704         (CMPLE_4SI): Likewise.
14705         (CMPLE_2DI): Likewise.
14706         (CMPLE_U16QI): Likewise.
14707         (CMPLE_U8HI): Likewise.
14708         (CMPLE_U4SI): Likewise.
14709         (CMPLE_U2DI): Likewise.
14710         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14711         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14712         ALTIVEC_BUILTIN_VEC_CMPLE.
14713         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14714         floating-point vector modes.
14715         (vector_nlt<mode>): New define_expand.
14716         (vector_nltu<mode>): Likewise.
14717         (vector_ngt<mode>): Likewise.
14718         (vector_ngtu<mode>): Likewise.
14719
14720 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14721
14722         PR rtl-optimization/66706
14723         * combine.c (make_compound_operation): If an AND of SUBREG of
14724         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14725
14726 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
14727
14728         * tree-pass.h (make_pass_ch_vect): New.
14729         * passes.def: Add pass_ch_vect just before pass_if_conversion.
14730
14731         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14732         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14733         make_pass_ch_vect): New.
14734         (pass_ch): Extend ch_base.
14735
14736         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14737         (ch_base::copy_headers): ...here.
14738
14739 2015-07-02  Richard Biener  <rguenther@suse.de>
14740
14741         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14742         * fold-const.c (get_pointer_modulus_and_residue): Remove.
14743         (fold_binary_loc): Implement (T)ptr & CST in terms of
14744         get_pointer_alignment_1.
14745         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14746         Make sure to build the alignment test on a SSA name without
14747         final alignment info valid only after the prologue.
14748
14749 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
14750
14751         * config/cris/cris.md ("epilogue"): Remove condition.
14752         ("prologue"): Ditto.
14753
14754 2015-07-02  Richard Biener  <rguenther@suse.de>
14755
14756         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14757         parameter to record a condition that is false.
14758         (record_conditions): When recording an extra NE_EXPR that is
14759         true also record a EQ_EXPR that is false.
14760
14761 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
14762
14763         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14764         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14765         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
14766         (set_iv, find_interesting_uses_address, add_candidate_1): New
14767         argument to alloc_iv.
14768         (find_interesting_uses_op, find_interesting_uses_cond): Don't
14769         duplicate struct iv.
14770         (free_loop_data): Don't free struct iv explicitly.
14771         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14772
14773 2015-07-01  DJ Delorie  <dj@redhat.com>
14774
14775         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14776         (LIB_SPEC): Add.
14777         (SUPPORTS_DISCRIMINATOR): Define.
14778
14779 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14780
14781         PR bootstrap/66685
14782         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14783         there are no CALLs in the same pattern.
14784
14785 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14786
14787         PR rtl-optimization/61047
14788         * rtlanal.c (get_initial_register_offset): New function.
14789         (rtx_addr_can_trap_p_1): Check offsets of stack references.
14790
14791 2015-07-01  Richard Biener  <rguenther@suse.de>
14792
14793         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14794         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14795         ~X CMP C -> X CMP' ~C to ...
14796         * match.pd: ... patterns here.
14797
14798 2015-07-01  Nick Clifton  <nickc@redhat.com>
14799
14800         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14801         a 16-bit value into a 20-bit memory slot.
14802
14803 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14804
14805         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14806         "aarch64_tiny", "aarch64_small", "aarch64_large",
14807         "aarch64_little_endian", "aarch64_big_endian".
14808
14809 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14810
14811         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14812         Document "aarch64_small_fpic".
14813
14814 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14815
14816         * configure.ac: Add check for aarch64 assembler -fpic relocation
14817         modifier support.
14818         * configure: Regenerate.
14819         * config.in: Regenerate.
14820         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14821         to -fPIC if not support of -fpic relocation modifier in assembler.
14822
14823 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14824
14825         PR bootstrap/66685
14826         * rtl.c (classify_insn): Handle returns in PARALLELs.
14827
14828 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
14829
14830         PR middle-end/66633
14831         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14832         to true if the function is nested and if not optimizing.
14833         (convert_local_omp_clauses): Initialize need_frame to true if the
14834         function contains nested functions and if not optimizing.
14835
14836 2015-07-01  Richard Biener  <rguenther@suse.de>
14837
14838         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14839         (X & Y) ^ Y -> ~X & Y transforms to ...
14840         * match.pd: ... here.
14841
14842 2015-07-01  Richard Biener <rguenther@suse.de>
14843
14844         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14845         of converts to avoid uninteresting noise from the conversion
14846         simplifying patterns.
14847
14848 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
14849
14850         * config/c6x/c6x.c (try_rename_operands): Do not depend on
14851         gcc_assert evaluating its argument for side-effect.
14852
14853 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14854
14855         PR target/64833
14856         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14857         flag_pic is set.
14858
14859 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14860
14861         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14862         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14863         (hash_scc): Add this_ref_p and ref_p parameters and pass them
14864         to the inner DFS walk.
14865
14866 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14867
14868         * target-insns.def (jump): New targetm instruction pattern.
14869         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14870         instead of gen_jump.
14871         (fix_up_crossing_landing_pad): Likewise.
14872         (add_labels_and_missing_jumps): Likewise.
14873         (fix_crossing_conditional_branches): Likewise.
14874         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14875         (force_nonfallthru_and_redirect): Likewise.
14876         * cse.c (cse_insn): Likewise.
14877         * expmed.c (expand_divmod): Likewise.
14878         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14879         * haifa-sched.c (init_before_recovery): Likewise.
14880         (sched_create_recovery_edges): Likewise.
14881         * ifcvt.c (find_cond_trap): Likewise.
14882         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14883         (expand_float, expand_fix): Likewise.
14884         * stmt.c (emit_jump): Likewise.
14885
14886 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14887
14888         * defaults.h (HAVE_load_multiple, gen_load_multiple)
14889         (HAVE_store_multiple, gen_store_multiple): Delete.
14890         * target-insns.def (load_multiple, store_multiple): New targetm
14891         instruction patterns.
14892         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14893         of HAVE_*/gen_* interface.
14894
14895 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14896
14897         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14898         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14899         (gen_mem_signal_fence): Delete.
14900         * target-insns.def (mem_signal_fence, mem_thread_fence)
14901         (memory_barrier): New targetm instruction patterns.
14902         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14903         interface.
14904         (expand_mem_signal_fence): Likewise.
14905
14906 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14907
14908         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14909         * target-insns.def (epilogue, prologue, sibcall_prologue): New
14910         targetm instruction patterns.
14911         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14912         interface.
14913         * calls.c (expand_call): Likewise.
14914         * cfgrtl.c (cfg_layout_finalize): Likewise.
14915         * df-scan.c (df_get_entry_block_def_set): Likewise.
14916         (df_get_exit_block_use_set): Likewise.
14917         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14918         * final.c (final_start_function): Likewise.
14919         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14920         (reposition_prologue_and_epilogue_notes): Likewise.
14921         * reorg.c (find_end_label): Likewise.
14922         * toplev.c (process_options): Likewise.
14923
14924 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
14925
14926         * typed-splay-tree.h: New file.
14927
14928 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
14929
14930         PR debug/66691
14931         * lra-int.h (lra_substitute_pseudo): Add a parameter.
14932         (lra_substitute_pseudo_within_insn): Ditto.
14933         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
14934         of constant.
14935         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
14936         to lra_substitute_pseudo.
14937         * lra-lives.c (process_bb_lives): Add an argument to
14938         lra_substitute_pseudo_within_insn call.
14939         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14940         argument to lra_substitute_pseudo and
14941         lra_substitute_pseudo_within_insn calls.
14942         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14943
14944 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14945
14946         * configure: Regenerated.
14947
14948 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14949
14950         * config.gcc: Support i[34567]86-*-elfiamcu target.
14951         * config/i386/iamcu.h: New.
14952         * config/i386/i386.opt: Add -miamcu.
14953         * doc/invoke.texi: Document -miamcu.
14954         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
14955         off x87/MMX/SSE/AVX codegen for -miamcu.
14956         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14957         __iamcu/__iamcu__ for -miamcu.
14958         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14959         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14960         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14961         * config/i386/i386.c (ix86_option_override_internal): Ignore and
14962         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
14963         MCU by default.  Default long double to 64-bit for Intel MCU.
14964         Turn on -freg-struct-return for Intel MCU.  Issue an error when
14965         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14966         AVX is turned on.
14967         (function_arg_advance_32): Pass value whose size is no larger
14968         than 8 bytes in registers for Intel MCU.
14969         (function_arg_32): Likewise.
14970         (ix86_return_in_memory): Return value whose size is no larger
14971         than 8 bytes in registers for Intel MCU.
14972         (iamcu_alignment): New function.
14973         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14974         true.
14975         (ix86_local_alignment): Don't increase alignment for Intel MCU.
14976         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14977         true.
14978
14979 2015-06-30  Marek Polacek  <polacek@redhat.com>
14980
14981         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
14982         both operands of the resulting expression.
14983
14984         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
14985         the final expression with the operand's type and then convert
14986         it to the type of the expression.
14987
14988 2015-06-30  Richard Biener  <rguenther@suse.de>
14989
14990         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14991         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14992         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14993         * match.pd: ... to patterns here.
14994
14995 2015-06-30  Richard Biener  <rguenther@suse.de>
14996
14997         PR tree-optimization/66704
14998         * tree-vect-data-refs.c (vect_setup_realignment): Use
14999         make_ssa_name for non-SSA name source.
15000
15001 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
15002
15003         PR middle-end/66702
15004         * omp-low.c (simd_clone_adjust): Handle addressable linear
15005         or uniform parameters or non-gimple type uniform parameters.
15006
15007 2015-06-30  Richard Biener  <rguenther@suse.de>
15008
15009         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
15010         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
15011         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
15012         * match.pd: ... here.
15013         Add a few cases of A - B -> A + (-B) when B "easily" negates.
15014         Move (x & y) | x -> x and friends before
15015         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
15016
15017 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
15018
15019         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
15020         -mfix-ut699 is not specified.
15021         (leon3_load): Rename into...
15022         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
15023         is specified.
15024
15025 2015-06-30  Marek Polacek  <polacek@redhat.com>
15026
15027         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
15028         * match.pd: ... here.
15029
15030 2015-06-30  Richard Biener  <rguenther@suse.de>
15031
15032         * target-insns.def (canonicalize_funcptr_for_compare): Add.
15033         * fold-const.c (build_range_check): Replace uses of
15034         HAVE_canonicalize_funcptr_for_compare.
15035         (fold_widened_comparison): Likewise.
15036         (fold_sign_changed_comparison): Likewise.
15037         * dojump.c: Include "target.h".
15038         (do_compare_and_jump): Replace uses of
15039         HAVE_canonicalize_funcptr_for_compare and
15040         gen_canonicalize_funcptr_for_compare.
15041         * expr.c (do_store_flag): Likewise.
15042
15043 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15044
15045         PR tree-optimization/66652
15046         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
15047         max_loop_iterations to determine if nit + 1 overflows.
15048
15049 2015-06-30  Richard Biener  <rguenther@suse.de>
15050
15051         * tree-vrp.c (register_edge_assert_for_2): Also register
15052         asserts for dominating conversion results.
15053
15054 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
15055
15056         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
15057         field in struct iv.
15058
15059 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
15060
15061         PR target/66509
15062         * configure.ac: Fix filds and fildq test for 64-bit.
15063         * configure: Regenerated.
15064
15065 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
15066
15067         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
15068         (nvptx_reorg): Here.  Keep the non-subreg pieces.
15069
15070 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
15071
15072         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15073         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15074
15075 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
15076
15077         * config/i386/i386.md (*jcc_1): Use %! in asm template.
15078         Set attribute "length_nobnd" instead of "length".
15079         (*jcc_2): Ditto.
15080         (jump): Ditto.
15081         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15082
15083 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
15084
15085         * config/nios2/nios2.c (nios2_delegitimize_address): Make
15086         assert less restrictive.
15087
15088 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15089
15090         PR fortran/66605
15091         * cgraphunit.c (cgraph_node::finalize_function): Do not call
15092         do_warn_unused_parameter.
15093         * function.c (do_warn_unused_parameter): Move from here.
15094         * function.h (do_warn_unused_parameter): Do not declare.
15095
15096 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15097
15098         PR target/65697
15099         * gcc.target/arm/armv-sync-comp-swap.c: New.
15100         * gcc.target/arm/armv-sync-op-acquire.c: New.
15101         * gcc.target/arm/armv-sync-op-full.c: New.
15102         * gcc.target/arm/armv-sync-op-release.c: New.
15103
15104 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15105
15106         PR target/65697
15107         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15108         initial acquire barrier with final barrier.
15109
15110 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15111
15112         PR target/65697
15113         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15114         initial acquire barrier with final barrier.
15115
15116 2015-06-29  Richard Henderson  <rth@redhat.com>
15117
15118         * config/i386/constraints.md (Bf): New constraint.
15119         * config/i386/i386-c.c (ix86_target_macros): Define
15120         __GCC_ASM_FLAG_OUTPUTS__.
15121         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15122         as flags outputs.
15123         * doc/extend.texi (FlagOutputOperands): Document them.
15124
15125 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
15126
15127         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15128         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15129         unspec name.
15130         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15131         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15132         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15133         (aarch64_symbol_context): Ditto.
15134         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15135         and use new pattern name.
15136         (aarch64_expand_mov_immediate): Ditto.
15137         (aarch64_print_operand): Ditto.
15138         (aarch64_classify_tls_symbol): Ditto.
15139
15140 2015-06-29  Marek Polacek  <polacek@redhat.com>
15141             Marc Glisse  <marc.glisse@inria.fr>
15142
15143         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15144         * match.pd: ... pattern here.
15145
15146 2015-06-29  Tom de Vries  <tom@codesourcery.com>
15147
15148         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15149         function structure.
15150
15151 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15152
15153         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15154         feature description, split out the native option, add a link to
15155         the feature documentation, rearrange and slightly rewrite text.
15156         (Aarch64 options, -mcpu): Likewise.
15157         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
15158         +rdma implies Adv. SIMD.
15159
15160 2015-06-29  Marek Polacek  <polacek@redhat.com>
15161
15162         PR c/66322
15163         * function.c (stack_protect_epilogue): Remove a cast to int.
15164         * doc/invoke.texi: Update -Wswitch-bool description.
15165
15166 2015-06-29  Richard Biener  <rguenther@suse.de>
15167
15168         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15169         * fold-const.c (fold_binary_loc): Move &A - &B simplification
15170         via ptr_difference_const ...
15171         * match.pd: ... here.
15172         When matching (X ^ Y) == Y also match with swapped operands.
15173
15174 2015-06-29  Richard Biener  <rguenther@suse.de>
15175
15176         * lto-streamer.h (LTO_major_version): Bump to 5.
15177
15178 2015-06-29  Richard Biener  <rguenther@suse.de>
15179
15180         PR tree-optimization/66677
15181         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15182         STMT_VINFO_VEC_STMT clobbering less strict.
15183
15184 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
15185
15186         PR middle-end/64130
15187         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15188         division, compute max and min when value ranges for dividend and
15189         divisor are available.
15190
15191 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
15192             Sandra Loosemore <sandra@codesourcery.com>
15193
15194         * regrename.h (regrename_do_replace): Change to return bool.
15195         * regrename.c (rename_chains): Check return value of
15196         regname_do_replace.
15197         (regrename_do_replace): Re-validate the modified insns and
15198         return bool status.
15199         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15200         Update to match rename_chains changes.
15201         * config/c6x/c6x.c (try_rename_operands): Assert that
15202         regrename_do_replace returns true.
15203
15204 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
15205
15206         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15207         operand 2 here.  Use copy_addr_to_reg to copy non-index
15208         register operand 2 to a temporary.
15209         (<mode>_stx): Ditto for operand 1.
15210         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15211         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15212         (ix86_store_bounds): Ditto.
15213
15214 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
15215
15216         * print-tree.c (print_node) [TREE_VEC]: Print its length.
15217
15218 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
15219
15220         * gimple.c (gimple_call_set_fndecl): Remove.
15221         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15222         build1_loc directly instead of build_fold_addr_expr_loc.
15223
15224 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15225
15226         * hash-map.h (hash_map::traverse): Use the definition of the
15227         Key typedef rather than the typedef itself.
15228
15229 2015-06-26  Martin Jambor  <mjambor@suse.cz>
15230
15231         PR debug/66301
15232         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15233         NULL instead of calling dump_enabled_p.
15234
15235 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15236
15237         * config/aarch64/aarch64.opt: (override): New.
15238         * doc/invoke.texi (override): Document.
15239         * config/aarch64/aarch64.c (aarch64_flag_desc): New
15240         (aarch64_fusible_pairs): Likewise.
15241         (aarch64_tuning_flags): Likewise.
15242         (aarch64_tuning_override_function): Likewise.
15243         (aarch64_tuning_override_functions): Likewise.
15244         (aarch64_parse_one_option_token): Likewise.
15245         (aarch64_parse_boolean_options): Likewise.
15246         (aarch64_parse_fuse_string): Likewise.
15247         (aarch64_parse_tune_string): Likewise.
15248         (aarch64_parse_one_override_token): Likewise.
15249         (aarch64_parse_override_string): Likewise.
15250         (aarch64_override_options): Parse the -override string if it
15251         is present.
15252
15253 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15254
15255         * config/aarch64/aarch64-protos.h (tune_params): Remove
15256         const from members.
15257         (aarch64_tune_params): Remove const, change to no longer be
15258         a pointer.
15259         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15260         change to no longer be a pointer, initialize to generic_tunings.
15261         (aarch64_min_divisions_for_recip_mul): Change dereference of
15262         aarch64_tune_params to member access.
15263         (aarch64_reassociation_width): Likewise.
15264         (aarch64_rtx_mult_cost): Likewise.
15265         (aarch64_address_cost): Likewise.
15266         (aarch64_branch_cost): Likewise.
15267         (aarch64_rtx_costs): Likewise.
15268         (aarch64_register_move_cost): Likewise.
15269         (aarch64_memory_move_cost): Likewise.
15270         (aarch64_sched_issue_rate): Likewise.
15271         (aarch64_builtin_vectorization_cost): Likewise.
15272         (aarch64_override_options): Take a copy of the selected tuning
15273         struct in to aarch64_tune_params, rather than just setting
15274         a pointer, change dereferences of aarch64_tune_params to member
15275         accesses.
15276         (aarch64_override_options_after_change): Change dereferences of
15277         aarch64_tune_params to member access.
15278         (aarch64_macro_fusion_p): Likewise.
15279         (aarch_macro_fusion_pair_p): Likewise.
15280         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15281
15282 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15283
15284         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15285         (aarch64_tune_flags): Likewise.
15286         (AARCH64_TUNE_FMA_STEERING): Likewise.
15287         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15288         to AARCH64_FL_USE_FMA_STEERING_PASS.
15289         (cortex-a57.cortex-a53): Likewise.
15290         (cortex-a72): Use cortexa72_tunings.
15291         (cortex-a72.cortex-a53): Likewise.
15292         (exynos-m1): Likewise.
15293         * config/aarch64/aarch64-protos.h (tune_params): Add
15294         a field: extra_tuning_flags.
15295         * config/aarch64/aarch64-tuning-flags.def: New.
15296         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15297         (aarch64_extra_tuning_flags): Likewise.
15298         (aarch64_tune_params): Declare here.
15299         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15300         (cortexa53_tunings): Likewise.
15301         (cortexa57_tunings): Likewise.
15302         (thunderx_tunings): Likewise.
15303         (xgene1_tunings): Likewise.
15304         (cortexa72_tunings): New.
15305         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15306          (gate): Check against aarch64_tune_params.
15307         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15308         aarch64-protos.h.
15309
15310 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15311
15312         * config/aarch64/aarch64-fusion-pairs.def: New.
15313         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15314         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15315         aarch64_fusion_pairs.
15316         (AARCH64_FUSE_MOV_MOVK): Likewise.
15317         (AARCH64_FUSE_ADRP_ADD): Likewise.
15318         (AARCH64_FUSE_MOVK_MOVK): Likewise.
15319         (AARCH64_FUSE_ADRP_LDR): Likewise.
15320         (AARCH64_FUSE_CMP_BRANCH): Likewise.
15321
15322 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15323
15324         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15325         SYMBOL_SMALL_GOT_28K.
15326         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
15327         relocation modifiers.
15328         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
15329         (ldr_got_small_28k_<mode>): New.
15330         (ldr_got_small_28k_sidi): New.
15331         * config/aarch64/iterators.md (got_modifier): New mode iterator.
15332         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
15333         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15334         SYMBOL_SMALL_GOT_28K.
15335         (aarch64_rtx_costs): Add costs for new instruction sequences.
15336         (initialize_aarch64_code_model): Initialize new model.
15337         (aarch64_classify_symbol): Recognize new model and new symbol classification.
15338         (aarch64_asm_preferred_eh_data_format): Support new model.
15339         (aarch64_load_symref_appropriately): Generate new instruction
15340         sequences for -fpic.
15341         (TARGET_USE_PSEUDO_PIC_REG): New definition.
15342         (aarch64_use_pseudo_pic_reg): New function.
15343
15344 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15345
15346         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15347         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15348         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15349         (aarch64_expand_mov_immediate): Ditto.
15350         (aarch64_print_operand): Ditto.
15351         (aarch64_classify_symbol): Ditto.
15352
15353 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
15354
15355         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15356
15357 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
15358
15359         PR bootstrap/66638
15360         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15361         assertion failed.  Remove assertion itself.
15362
15363 2015-06-26  Richard Biener  <rguenther@suse.de>
15364
15365         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15366         and -A CMP CST -> A CMP -CST which is redundant with a pattern
15367         in match.pd.
15368         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15369         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15370         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15371         * match.pd: ... patterns here.
15372
15373 2015-06-26  Marek Polacek  <polacek@redhat.com>
15374
15375         * match.pd ((x | y) & ~(x & y) -> x ^ y,
15376         (x | y) & (~x ^ y) -> x & y): New patterns.
15377
15378 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15379
15380         * rtl.h (emit): Add an optional boolean parameter to control
15381         whether barriers are emitted.
15382         * emit-rtl.c (emit): Likewise.
15383         * gensupport.c (get_emit_function): Return null rather than "emit".
15384         * genemit.c (gen_emit_seq): Handle the null return value.
15385         Don't emit barriers after the final instruction in the sequence.
15386         * gentarget-def.c (main): Don't emit barriers after the instruction.
15387
15388 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15389
15390         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15391         TARGET_UNIFIED_ASM.
15392
15393 2015-06-26  Richard Biener  <rguenther@suse.de>
15394
15395         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15396
15397 2015-06-26  Richard Biener  <rguenther@suse.de>
15398
15399         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15400         irrespective on whether the inner operation has a single use
15401         of both off are constant.
15402
15403 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
15404             Segher Boessenkool  <segher@kernel.crashing.org>
15405
15406         PR target/66412
15407         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15408         before doing PUT_MODE or PUT_CODE on operands to avoid
15409         in-place RTX modification.
15410
15411 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15412
15413         * gentarget-def.c (def_target_insn): Cast return of strtol to
15414         unsigned int.
15415
15416 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15417
15418         * gimple.h (gimple_call_set_fn): Move inline function.
15419         * gimple.c (gimple_call_set_fn): Relocate here.
15420
15421 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
15422
15423         PR target/65979
15424         PR target/66611
15425         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15426         the replacement insn will work.
15427
15428 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15429
15430         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15431         by default.
15432
15433 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15434
15435         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15436         * cgraph.h: Include ipa-ref.h and plugin-api.h.
15437         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15438         (symtab_node::address_can_be_compared_p): Move function.
15439         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15440         definition here.
15441         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15442         * auto-profile.c: Likewise.
15443         * bb-reorder.c: Likewise.
15444         * builtins.c: Likewise.
15445         * calls.c: Likewise.
15446         * cfgexpand.c: Likewise.
15447         * cgraphbuild.c: Likewise.
15448         * cgraphclones.c: Likewise.
15449         * cgraphunit.c: Likewise.
15450         * combine.c: Likewise.
15451         * coverage.c: Likewise.
15452         * data-streamer-in.c: Likewise.
15453         * data-streamer-out.c: Likewise.
15454         * data-streamer.c: Likewise.
15455         * dbxout.c: Likewise.
15456         * dwarf2out.c: Likewise.
15457         * except.c: Likewise.
15458         * expr.c: Likewise.
15459         * final.c: Likewise.
15460         * fold-const.c: Likewise.
15461         * ggc-page.c: Likewise.
15462         * gimple-fold.c: Likewise.
15463         * gimple-iterator.c: Likewise.
15464         * gimple-pretty-print.c: Likewise.
15465         * gimple-streamer-in.c: Likewise.
15466         * gimple-streamer-out.c: Likewise.
15467         * gimple.c: Likewise.
15468         * gimplify.c: Likewise.
15469         * ipa-chkp.c: Likewise.
15470         * ipa-comdats.c: Likewise.
15471         * ipa-cp.c: Likewise.
15472         * ipa-devirt.c: Likewise.
15473         * ipa-icf-gimple.c: Likewise.
15474         * ipa-icf.c: Likewise.
15475         * ipa-inline-analysis.c: Likewise.
15476         * ipa-inline-transform.c: Likewise.
15477         * ipa-inline.c: Likewise.
15478         * ipa-polymorphic-call.c: Likewise.
15479         * ipa-profile.c: Likewise.
15480         * ipa-prop.c: Likewise.
15481         * ipa-pure-const.c: Likewise.
15482         * ipa-ref.c: Likewise.
15483         * ipa-reference.c: Likewise.
15484         * ipa-split.c: Likewise.
15485         * ipa-utils.c: Likewise.
15486         * ipa-visibility.c: Likewise.
15487         * ipa.c: Likewise.
15488         * langhooks.c: Likewise.
15489         * lto-cgraph.c: Likewise.
15490         * lto-compress.c: Likewise.
15491         * lto-opts.c: Likewise.
15492         * lto-section-in.c: Likewise.
15493         * lto-section-out.c: Likewise.
15494         * lto-streamer-in.c: Likewise.
15495         * lto-streamer-out.c: Likewise.
15496         * lto-streamer.c: Likewise.
15497         * omp-low.c: Likewise.
15498         * opts-global.c: Likewise.
15499         * passes.c: Likewise.
15500         * predict.c: Likewise.
15501         * print-tree.c: Likewise.
15502         * profile.c: Likewise.
15503         * ree.c: Likewise.
15504         * sanopt.c: Likewise.
15505         * stor-layout.c: Likewise.
15506         * symtab.c: Likewise.
15507         * toplev.c: Likewise.
15508         * trans-mem.c: Likewise.
15509         * tree-cfg.c: Likewise.
15510         * tree-chkp.c: Likewise.
15511         * tree-eh.c: Likewise.
15512         * tree-emutls.c: Likewise.
15513         * tree-inline.c: Likewise.
15514         * tree-nested.c: Likewise.
15515         * tree-parloops.c: Likewise.
15516         * tree-pretty-print.c: Likewise.
15517         * tree-profile.c: Likewise.
15518         * tree-sra.c: Likewise.
15519         * tree-ssa-alias.c: Likewise.
15520         * tree-ssa-live.c: Likewise.
15521         * tree-ssa-loop-ivcanon.c: Likewise.
15522         * tree-ssa-loop-ivopts.c: Likewise.
15523         * tree-ssa-pre.c: Likewise.
15524         * tree-ssa-sccvn.c: Likewise.
15525         * tree-ssa-strlen.c: Likewise.
15526         * tree-ssa-structalias.c: Likewise.
15527         * tree-streamer-in.c: Likewise.
15528         * tree-streamer-out.c: Likewise.
15529         * tree-streamer.c: Likewise.
15530         * tree-switch-conversion.c: Likewise.
15531         * tree-tailcall.c: Likewise.
15532         * tree-vect-data-refs.c: Likewise.
15533         * tree-vect-stmts.c: Likewise.
15534         * tree-vectorizer.c: Likewise.
15535         * tree.c: Likewise.
15536         * tsan.c: Likewise.
15537         * ubsan.c: Likewise.
15538         * value-prof.c: Likewise.
15539         * varasm.c: Likewise.
15540         * varpool.c: Likewise.
15541         * config/arm/arm.c: Likewise.
15542         * config/bfin/bfin.c: Likewise.
15543         * config/c6x/c6x.c: Likewise.
15544         * config/cris/cris.c: Likewise.
15545         * config/darwin-c.c: Likewise.
15546         * config/darwin.c: Likewise.
15547         * config/i386/i386.c: Likewise.
15548         * config/i386/winnt.c: Likewise.
15549         * config/microblaze/microblaze.c: Likewise.
15550         * config/mips/mips.c: Likewise.
15551         * config/rs6000/rs6000.c: Likewise.
15552         * config/rx/rx.c: Likewise.
15553         * config/s390/s390.c: Likewise.
15554         * config/tilegx/mul-tables.c: Likewise.
15555
15556 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15557
15558         * config/aarch64/aarch64.c, config/alpha/alpha.c,
15559         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15560         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15561         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15562         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15563         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15564         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15565         config/microblaze/microblaze.c, config/mips/mips.c,
15566         config/mmix/mmix.c, config/mn10300/mn10300.c,
15567         config/moxie/moxie.c, config/msp430/msp430.c,
15568         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15569         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15570         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15571         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15572         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15573         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15574         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15575         target-def.h include.
15576         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
15577
15578 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15579
15580         * Makefile.in (TARGET_DEF): Add target-insns.def.
15581         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15582         (build/gentarget-def.o): New rule.
15583         (genprogrtl): Add target-def.
15584         * target-insns.def, gentarget-def.c: New files.
15585         * target.def: Add targetm.have_* and targetm.gen_* hooks,
15586         based on the contents of target-insns.def.
15587         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15588         (HAVE_return, gen_return): Delete.
15589         * target-def.h: Include insn-target-def.h.
15590         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15591         instead of direct calls.  Rely on them to do the appropriate assertions.
15592         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
15593         (convert_jumps_to_returns): Use targetm interface instead of
15594         direct calls.
15595         (thread_prologue_and_epilogue_insns): Likewise.
15596         * reorg.c (find_end_label, dbr_schedule): Likewise.
15597         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15598         * shrink-wrap.c (convert_to_simple_return): Likewise.
15599         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15600
15601 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15602
15603         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15604         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15605         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15606         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15607         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15608         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15609         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15610         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15611         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15612         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15613         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15614         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15615         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15616         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15617         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15618         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15619         includes to end.
15620
15621 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15622
15623         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15624         (unbounded_int_hashmap_traits::key_type): Likewise.
15625         * hash-map.h (hash_map): Get the key type from the traits.
15626         * hash-traits.h (default_hash_traits): By default, inherit from the
15627         template parameter.
15628         * alias.c (alias_set_traits): Delete.
15629         (alias_set_entry_d::children): Use alias_set_hash as the first
15630         template parameter.
15631         (record_alias_subset): Update accordingly.
15632         * except.c (tree_hash_traits): Delete.
15633         (type_to_runtime_map): Use tree_hash as the first template parameter.
15634         (init_eh): Update accordingly.
15635         * genmatch.c (capture_id_map_hasher): Delete.
15636         (cid_map_t): Use nofree_string_hash as first template parameter.
15637         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15638         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15639         Use symbol_compare_hash as the first template parameter in
15640         subdivide_hash_map.
15641         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15642         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15643         template parameter.
15644         * passes.c (pass_registry_hasher): Delete.
15645         (name_to_pass_map): Use nofree_string_hash as the first template
15646         parameter.
15647         (register_pass_name): Update accordingly.
15648         * sanopt.c (sanopt_tree_map_traits): Delete.
15649         (sanopt_tree_triplet_map_traits): Delete.
15650         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15651         template parameter.
15652         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15653         the first template parameter.
15654         * sese.c (rename_map_hasher): Delete.
15655         (rename_map_type): Use tree_ssa_name_hash as the first template
15656         parameter.
15657         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15658         (function_summary::m_map): Use map_hash as the first template
15659         parameter.
15660         (function_summary::release): Update accordingly.
15661         * tree-if-conv.c (phi_args_hash_traits): Delete.
15662         (predicate_scalar_phi): Use tree_operand_hash as the first template
15663         parameter to phi_arg_map.
15664         * tree-inline.h (dependence_hasher): Delete.
15665         (copy_body_data::dependence_map): Use dependence_hash as the first
15666         template parameter.
15667         * tree-inline.c (remap_dependence_clique): Update accordingly.
15668         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15669         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15670         parameter.
15671         (addr_stridxptr): Update accordingly.
15672         * value-prof.c (profile_id_traits): Delete.
15673         (cgraph_node_map): Use profile_id_hash as the first template
15674         parameter.
15675         (init_node_map): Update accordingly.
15676         * config/alpha/alpha.c (string_traits): Delete.
15677         (machine_function::links): Use nofree_string_hash as the first
15678         template parameter.
15679         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15680         * config/m32c/m32c.c (pragma_traits): Delete.
15681         (pragma_htab): Use nofree_string_hash as the first template parameter.
15682         (m32c_note_pragma_address): Update accordingly.
15683         * config/mep/mep.c (pragma_traits): Delete.
15684         (pragma_htab): Use nofree_string_hash as the first template parameter.
15685         (mep_note_pragma_flag): Update accordingly.
15686         * config/mips/mips.c (mips16_flip_traits): Delete.
15687         (mflip_mips16_htab): Use nofree_string_hash as the first template
15688         parameter.
15689         (mflip_mips16_use_mips16_p): Update accordingly.
15690         (local_alias_traits): Delete.
15691         (mips16_local_aliases): Use nofree_string_hash as the first template
15692         parameter.
15693         (mips16_local_alias): Update accordingly.
15694
15695 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15696
15697         * hash-map-traits.h (default_hashmap_traits): Delete.
15698
15699 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15700
15701         * hash-map-traits.h (unbounded_hashmap_traits): New class.
15702         (unbounded_int_hashmap_traits): Likewise.
15703         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15704
15705 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15706
15707         * ipa-icf.h (symbol_compare_hash): New class.
15708         (symbol_compare_hashmap_traits): Use it.
15709         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15710         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15711         (mem_alloc_description::reverse_mem_map_t): Remove redundant
15712         default_hashmap_traits.
15713         * sanopt.c (sanopt_tree_triplet_hash): New class.
15714         (sanopt_tree_triplet_map_traits): Use it.
15715
15716 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15717
15718         * gengtype-parse.c (require_template_declaration): Allow '+' in
15719         template parameters.  Consolidate cases.
15720         * hash-traits.h (int_hash): New class.
15721         * alias.c (alias_set_hash): New structure.
15722         (alias_set_traits): Use it.
15723         * symbol-summary.h (function_summary::map_hash): New class.
15724         (function_summary::summary_hashmap_traits): Use it.
15725         * tree-inline.h (dependence_hash): New class.
15726         (dependence_hasher): Use it.
15727         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15728         * value-prof.c (profile_id_hash): New class.
15729         (profile_id_traits): Use it.
15730
15731 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15732
15733         * config/mips/mips.c (mips16_flip_traits): Use it.
15734         (local_alias_traits, mips16_local_aliases): Convert from a map of
15735         rtxes to a map of symbol names.
15736         (mips16_local_alias): Update accordingly.
15737
15738 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15739
15740         * hash-traits.h (string_hash, nofree_string_hash): New classes.
15741         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15742         * passes.c (pass_registry_hasher): Likewise.
15743         * config/alpha/alpha.c (string_traits): Likewise.
15744         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15745         * config/m32c/m32c.c (pragma_traits): Likewise.
15746         * config/mep/mep.c (pragma_traits): Likewise.
15747
15748 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15749
15750         * tree-hash-traits.h (tree_hash): New class.
15751         * except.c: Include tree-hash-traits.h.
15752         (tree_hash_traits): Use tree_hash.
15753
15754 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15755
15756         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15757         * sese.c: Include tree-hash-traits.h.
15758         (rename_map_hasher): Use tree_ssa_name_hasher.
15759
15760 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15761
15762         * tree-hash-traits.h (tree_decl_hash): New class.
15763         * tree-ssa-strlen.c: Include tree-hash-traits.h.
15764         (stridxlist_hash_traits): Use tree_decl_hash.
15765
15766 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15767
15768         * tree-hash-traits.h: New file.
15769         (tree_operand_hash): New class.
15770         * sanopt.c: Include tree-hash-traits.h.
15771         (sanopt_tree_map_traits): Use tree_operand_hash.
15772         * tree-if-conv.c: Include tree-hash-traits.h.
15773         (phi_args_hash_traits): Use tree_operand_hash.
15774         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15775         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15776
15777 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15778
15779         * hash-map-traits.h: Include hash-traits.h.
15780         (simple_hashmap_traits): New class.
15781         * mem-stats.h (hash_map): Change the default traits to
15782         simple_hashmap_traits<default_hash_traits<Key> >.
15783
15784 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15785
15786         * hash-table.h: Update comments.
15787
15788 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15789
15790         * hash-traits.h (default_hash_traits): New structure.
15791         * hash-set.h (default_hashset_traits): Delete.
15792         (hash_set): Use default_hash_traits<Key> instead of
15793         default_hashset_traits.  Delete hash_entry type and use Key directly.
15794         * ipa-devirt.c (pair_traits): Delete.
15795         (default_hash_traits <type_pair>): Override.
15796         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15797         (odr_types_equivalent_p, add_type_duplicate): Likewise.
15798
15799 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15800
15801         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15802
15803 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15804
15805         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15806         (has_is_empty, is_empty_helper): Delete.
15807         (has_mark_deleted, mark_deleted_helper): Delete.
15808         (has_mark_empty, mark_empty_helper): Delete.
15809         (hash_table::is_deleted): Call the Descriptor unconditionally.
15810         (hash_table::is_empty): Likewise.
15811         (hash_table::mark_deleted): Likewise.
15812         (hash_table::mark_empty): Likewise.
15813
15814 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15815
15816         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
15817         redundant typedefs and members.
15818         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
15819         redundant typedefs.
15820         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15821         * ipa-devirt.c (odr_name_hasher): Likewise.
15822         (polymorphic_call_target_hasher): Likewise.
15823         * ira-costs.c (cost_classes_hasher): Likewise.
15824         * statistics.c (stats_counter_hasher): Likewise.
15825         * trans-mem.c (log_entry_hasher): Likewise.
15826         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15827         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15828         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15829         * var-tracking.c (variable_hasher): Likewise.
15830         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15831         Remove redundant typedefs and members.
15832
15833 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15834
15835         * hash-traits.h (ggc_cache_hasher): Rename to...
15836         (ggc_cache_remove): ...this and remove typedefs.
15837         (ggc_cache_ptr_hash): New class.
15838         * hash-table.h: Update commentary.
15839         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15840         rather than ggc_cache_hasher.
15841         (const_wide_int_hasher, reg_attr_hasher): Likewise.
15842         (const_double_hasher, const_fixed_hasher): Likewise.
15843         * function.c (insn_cache_hasher): Likewise.
15844         * trans-mem.c (tm_wrapper_hasher): Likewise.
15845         * tree.h (tree_decl_map_cache_hasher): Likewise.
15846         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15847         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15848         * ubsan.c (tree_type_map_cache_hasher): Likewise.
15849         * varasm.c (tm_clone_hasher): Likewise.
15850         * config/i386/i386.c (dllimport_hasher): Likewise.
15851         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15852         (tree_hasher): Likewise.
15853
15854 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15855
15856         * hash-traits.h (ggc_hasher): Rename to...
15857         (ggc_remover): ...this and remove typedefs.
15858         (ggc_cache_hasher): Update accordingly.  Add typedefs.
15859         (ggc_ptr_hash): New class.
15860         * hash-table.h: Update comment.
15861         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15862         ggc_hasher.
15863         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15864         (tree_descriptor_hasher): Likewise.
15865         * cgraph.c (function_version_hasher): Likewise.
15866         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15867         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15868         (dw_loc_list_hasher, addr_hasher): Likewise.
15869         * function.h (used_type_hasher): Likewise.
15870         * function.c (temp_address_hasher): Likewise.
15871         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15872         * libfuncs.h (libfunc_hasher): Likewise.
15873         * lto-streamer.h (decl_state_hasher): Likewise.
15874         * optabs.c (libfunc_decl_hasher): Likewise.
15875         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15876         * varasm.c (section_hasher, object_block_hasher): Likewise.
15877         (const_rtx_desc_hasher): Likewise.
15878         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15879         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15880
15881 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15882
15883         * hash-traits.h (free_ptr_hash): New class.
15884         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15885         rather than typed_free_remove.  Remove redudant typedefs.
15886         (external_ref_hasher): Likewise.
15887         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15888         (ehspec_hasher): Likewise.
15889         * ggc-common.c (saving_hasher): Likewise.
15890         * gimplify.c (gimplify_hasher): Likewise.
15891         * haifa-sched.c (delay_i2_hasher): Likewise.
15892         * loop-invariant.c (invariant_expr_hasher): Likewise.
15893         * loop-iv.c (biv_entry_hasher): Likewise.
15894         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15895         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15896         * tree-cfg.c (locus_discrim_hasher): Likewise.
15897         * tree-eh.c (finally_tree_hasher): Likewise.
15898         * tree-into-ssa.c (var_info_hasher): Likewise.
15899         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15900         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15901         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15902         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15903         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15904         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15905         (shared_bitmap_hasher): Likewise.
15906         * tree-ssa-threadupdate.c (redirection_data): Likewise.
15907         * tree-vectorizer.h (peel_info_hasher): Likewise.
15908         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15909         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15910
15911 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15912
15913         * hash-table.h: Update comments.
15914         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15915         (nofree_ptr_hash): New class.
15916         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15917         than typed_noop_remove.  Remove redudant typedefs.
15918         * attribs.c (attribute_hasher): Likewise.
15919         * cfg.c (bb_copy_hasher): Likewise.
15920         * cselib.c (cselib_hasher): Likewise.
15921         * dse.c (invariant_group_base_hasher): Likewise.
15922         * dwarf2cfi.c (trace_info_hasher): Likewise.
15923         * dwarf2out.c (macinfo_entry_hasher): Likewise.
15924         (comdat_type_hasher, loc_list_hasher): Likewise.
15925         * gcse.c (pre_ldst_expr_hasher): Likewise.
15926         * genmatch.c (id_base): Likewise.
15927         * genrecog.c (test_pattern_hasher): Likewise.
15928         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15929         * haifa-sched.c (delay_i1_hasher): Likewise.
15930         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15931         * ipa-icf.h (congruence_class_group_hash): Likewise.
15932         * ipa-profile.c (histogram_hash): Likewise.
15933         * ira-color.c (allocno_hard_regs_hasher): Likewise.
15934         * lto-streamer.h (string_slot_hasher): Likewise.
15935         * lto-streamer.c (tree_entry_hasher): Likewise.
15936         * plugin.c (event_hasher): Likewise.
15937         * postreload-gcse.c (expr_hasher): Likewise.
15938         * store-motion.c (st_expr_hasher): Likewise.
15939         * tree-sra.c (uid_decl_hasher): Likewise.
15940         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15941         (ssa_name_var_hash): Likewise.
15942         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15943         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15944         * tree-ssa-pre.c (pre_expr_d): Likewise.
15945         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15946         * vtable-verify.h (registration_hasher): Likewise.
15947         * vtable-verify.c (vtbl_map_hasher): Likewise.
15948         * config/arm/arm.c (libcall_hasher): Likewise.
15949         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15950         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15951         * config/sol2.c (comdat_entry_hasher): Likewise.
15952         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15953         (print_fold_checksum, fold_checksum_tree): Likewise.
15954         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15955         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15956         (fold_build_call_array_loc): Likewise.
15957         * tree-ssa-ccp.c (gimple_htab): Likewise.
15958         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15959         rather than pointer_type.
15960
15961 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15962
15963         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15964         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15965
15966 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15967
15968         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15969         (ggc_hasher::ggc_mx): Likewise.
15970         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
15971         that duplicate ggc_hasher ones.
15972
15973 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15974
15975         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15976         (gt_cleare_cache): Check here for deleted and empty entries.
15977         Replace handle_cache_entry with a call to keep_cache_entry.
15978         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15979         (ggc_cache_hasher::keep_cache_entry): New function.
15980         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15981         (tm_wrapper_hasher::keep_cache_entry): New function.
15982         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15983         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15984         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15985         (type_cache_hasher::keep_cache_entry): New function.
15986         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15987         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15988         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15989         (tree_type_map_cache_hasher::keep_cache_entry): New function.
15990         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15991         (tm_clone_hasher::keep_cache_entry): New function.
15992         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15993         (dllimport_hasher::keep_cache_entry): New function.
15994
15995 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15996
15997         * hash-table.h: Include hash-traits.h.
15998         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15999         (ggc_cache_hasher): Move to...
16000         * hash-traits.h: ...this new file.
16001
16002 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
16003
16004         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
16005         struct cl_optimization.
16006         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
16007         * tree.c (make_node_stat): Allocate cl_optimization struct.
16008         (copy_node_stat): Allocate and copy cl_optimization struct.
16009
16010 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
16011
16012         * function.h (struct incoming_args): Move struct.
16013         (pass_by_reference, reference_callee_copied): Remove prototypes.
16014         * emit-rtl.h (struct incoming_args): Relocate struct here.
16015         * calls.h (pass_by_reference, reference_callee_copied): Relocate
16016         prototypes here.
16017         * function.c (pass_by_reference, reference_callee_copied): Move.
16018         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
16019         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
16020         * ipa-chkp.c: Include calls.h.
16021
16022 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
16023
16024         * alias.h (alias_set_type): Move typedef.
16025         * coretypes.h (alias_set_type): Relocate typedef here.
16026         * rtl.h: Don't include alias.h.
16027
16028 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
16029
16030         * cgraph.h (cgraph_rtl_info): Move to rtl.h
16031         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
16032         and instance.
16033         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
16034         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
16035         doesn't exist.
16036         * calls.c: Include hard-reg-set.h before rtl.h.
16037         * ira.c: Likewise.
16038
16039 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16040             Vladimir Makarov  <vmakarov@redhat.com>
16041
16042         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
16043         Add assert.
16044
16045 2015-06-25  Richard Biener  <rguenther@suse.de>
16046
16047         * fold-const.c (fold_binary_loc): Move simplification of
16048         (X <<>> C1) & C2 ...
16049         * match.pd: ... here.
16050
16051 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
16052
16053         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
16054
16055 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
16056
16057         * match.pd: Add patterns for vec_conds between 1 and 0.
16058
16059 2015-06-25  Richard Biener  <rguenther@suse.de>
16060
16061         * tree-vect-stmts.c (vectorizable_conversion): Do not set
16062         STMT_VINFO_VEC_STMT for SLP.
16063         (vectorizable_store): Likewise.
16064         (vectorizable_load): Likewise.
16065         (vect_transform_stmt): Catch SLP vectorization clobbering
16066         STMT_VINFO_VEC_STMT.
16067
16068 2015-06-25  Richard Biener  <rguenther@suse.de>
16069
16070         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
16071         dumping.
16072         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16073         cleanup resulting dead code and parameters.
16074         (vect_transform_slp_perm_load): Adjust.
16075
16076 2015-06-25  Nick Clifton  <nickc@redhat.com>
16077
16078         * config/bfin/bfin.c (bfin_expand_prologue): Set
16079         current_function_static_stack_size if flag_stack_usage_info is set.
16080         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16081         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16082         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16083         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16084
16085 2015-06-25  Tom de Vries  <tom@codesourcery.com>
16086
16087         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16088         comment that the generated IV is unsigned.
16089
16090 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16091
16092         PR target/29693
16093         * config/arm/arm.c (arm_dbx_register_number): Return
16094         DWARF_FRAME_REGISTERS by default.
16095
16096 2015-06-25  Tom de Vries  <tom@codesourcery.com>
16097
16098         * dominance.c (calculate_dominance_info): Fix verify_dominators call
16099         argument.  Call verify_dominator when reusing dominator info.
16100
16101 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16102
16103         PR target/66563
16104         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16105         an additional element of the unspec vector.  Modify indices
16106         of operands.
16107         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16108         * config/sh/sh.c (prepare_move_operands): Pass incremented
16109         const_int to gen_GOTaddr2picreg.
16110         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16111
16112 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16113
16114         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16115         Condition on TARGET_FLOAT.
16116
16117 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16118
16119         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16120         and (no)crypto.
16121
16122 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16123
16124         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16125
16126         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16127         aarch64_err_no_fpadvsimd.
16128
16129         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16130         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16131         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16132         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16133         Turn error into assert, test TARGET_FLOAT.
16134         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16135         TARGET_FLOAT.
16136
16137 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
16138
16139         PR debug/66482
16140         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16141
16142 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
16143
16144         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16145
16146 2015-06-24  Renlin Li <renlin.li@arm.com>
16147
16148         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16149         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16150
16151 2015-06-24  Richard Biener  <rguenther@suse.de>
16152
16153         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16154         (main): Likewise.
16155         (lower_opt_convert): Support lowering of conditional view_convert.
16156         (parser::parse_operation): Likewise.
16157         (parser::parse_for): Likewise.
16158
16159 2015-06-24  Renlin Li  <renlin.li@arm.com>
16160
16161         * varasm.c (emit_local): Use unsigned int for align variable.
16162
16163 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16164
16165         PR target/63408
16166         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16167         for negative numbers.
16168
16169 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16170
16171         PR rtl-optimization/66306
16172         * reload.c (find_reloads): Swap the match_dup info for
16173         commutative operands.
16174
16175 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16176
16177         * config/s390/vx-builtins.md
16178         ("vec_scatter_element<mode>_<non_vec_int>")
16179         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16180         attribute with bhfgq.
16181
16182 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16183
16184         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16185
16186 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16187
16188         * config/s390/s390-builtin-types.def: Add flag to indicate the
16189         options under which the function type is needed.
16190         * config/s390/s390-builtins.def: Add flag to indicate the options
16191         under which the builtin is enabled.
16192         * config/s390/s390-builtins.h: Add flags parameter to macro
16193         definitions.
16194         (bflags_for_builtin): New function.
16195         (flags_for_builtin): Renamed to ...
16196         (opflags_for_builtin): ... this.
16197         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16198         flags_for_builtin to bflags_for_builtin and
16199         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16200         * config/s390/s390.c: Add initialization of bflags_builtin and
16201         opflags_builtin arrays.
16202         Remove code for flags_builtin.
16203         (s390_init_builtins): Only create builtin function types if one of
16204         their flags is active.
16205         Only create builtins if all of their flags are active.
16206         (s390_expand_builtin): Rename flags_for_builtin to
16207         opflags_for_builtin.
16208
16209 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16210
16211         * config/s390/vecintrin.h: Remove internal builtins.
16212
16213 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16214
16215         * config/s390/s390.c (s390_secondary_reload): Fix check for
16216         GENERAL_REGS register class.
16217
16218 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16219
16220         * config/s390/s390.c (s390_support_vector_misalignment): Call
16221         default implementation for !TARGET_VX.
16222
16223 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16224
16225         * config/s390/s390.c (s390_legitimate_constant_p): Add
16226         TARGET_VX check.
16227
16228 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16229
16230         * config/s390/s390.c (s390_vector_abi): New variable definition.
16231         (s390_check_type_for_vector_abi): New function.
16232         (TARGET_ASM_FILE_END): New macro definition.
16233         (s390_asm_file_end): New function.
16234         (s390_function_arg): Call s390_check_type_for_vector_abi.
16235         (s390_gimplify_va_arg): Likewise.
16236         * configure: Regenerate.
16237         * configure.ac: Check for .gnu_attribute Binutils feature.
16238
16239 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
16240
16241         PR target/65803
16242         * config/bfin/bfin.c (hwloop_optimize): Initialize
16243         JUMP_LABEL for newly created jump.
16244
16245 2015-06-23  Tristan Gingold  <gingold@adacore.com>
16246
16247         * collect-utils.c (collect_wait): Unlink the response file here
16248         instead of...
16249         (do_wait): ...here.
16250         (utils_cleanup): ...and here.
16251
16252 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
16253
16254         * df-scan.c: Don't include target-def.h.
16255         * targhooks.c: Likewise.
16256         * config/arm/arm-c.c: Likewise.
16257         * config/i386/i386-c.c: Likewise.
16258         * config/nds32/nds32-cost.c: Likewise.
16259         * config/nds32/nds32-fp-as-gp.c: Likewise.
16260         * config/nds32/nds32-intrinsic.c: Likewise.
16261         * config/nds32/nds32-isr.c: Likewise.
16262         * config/nds32/nds32-md-auxiliary.c: Likewise.
16263         * config/nds32/nds32-memory-manipulation.c: Likewise.
16264         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16265         * config/nds32/nds32-predicates.c: Likewise.
16266
16267 2015-06-23  Richard Biener  <rguenther@suse.de>
16268
16269         PR tree-optimization/66636
16270         * tree-vect-stmts.c (vectorizable_store): Properly compute the
16271         def type for further defs for strided stores.
16272
16273 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
16274
16275         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16276         conditional selects.
16277         (setcc_int<mode>, setcc_float<mode>): Reformat.
16278
16279 2015-06-23  Marek Polacek  <polacek@redhat.com>
16280
16281         * match.pd ((x + y) - (x | y) -> x & y,
16282         (x + y) - (x & y) -> x | y): New patterns.
16283
16284 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
16285
16286         PR 65711
16287         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16288         '-dynamic-linker' within %{!shared: ...}.
16289
16290 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
16291
16292         PR target/66560
16293         * config/i386/predicates.md (addsub_vm_operator): New predicate.
16294         (addsub_vs_operator): Ditto.
16295         (addsub_vs_parallel): Ditto.
16296         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16297         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16298         Put minus RTX before plus and adjust vec_merge selector.
16299         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16300         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16301         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16302         (addsub vec_merge splitters): New combiner splitters.
16303         (addsub vec_select/vec_concat splitters): Ditto.
16304
16305 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
16306
16307         PR tree-optimization/66449
16308         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16309         POINTER_PLUS_EXPR for pointers.
16310
16311 2015-06-23  Alan Modra  <amodra@gmail.com>
16312
16313         * rtlanal.c (commutative_operand_precedence): Correct comments.
16314         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16315         declaration.  Return an int.  Distinguish REG,REG return from
16316         others.
16317         (struct simplify_plus_minus_op_data): Make local to function.
16318         (simplify_plus_minus): Don't set canonicalized if merely sorting
16319         registers.  Avoid packing ops if nothing changes.  White space fixes.
16320
16321 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
16322
16323         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16324         -fdump-ada-spec is passed but not if -fsyntax-only is.
16325
16326 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
16327
16328         PR bootstrap/63740
16329         * lra-lives.c (process_bb_lives): Check insn copying the same
16330         reload pseudo and don't create a copy for it.
16331
16332 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16333
16334         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
16335         for cond_stmt.
16336
16337 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16338
16339         * builtins.def (DEF_GOMP_BUILTIN): Test
16340         'flag_tree_parallelize_loops > 1' instead of
16341         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
16342
16343 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16344
16345         * dominance.c (calculate_dominance_info): Verify dominators if
16346         early-out.
16347
16348 2015-06-22  Marek Polacek  <polacek@redhat.com>
16349
16350         * match.pd ((x ^ y) ^ (x | y) -> x & y,
16351         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16352         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16353         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16354
16355 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
16356
16357         PR target/65871
16358         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16359         cost of embedded comparison.
16360
16361 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16362
16363         PR target/65914
16364         * config/rs6000/predicates.md (altivec_register_operand): Permit
16365         virtual stack registers.
16366         (vsx_register_operand): Likewise.
16367         (vfloat_operand): Likewise.
16368         (vint_operand): Likewise.
16369         (vlogical_operand): Likewise.
16370
16371 2015-06-22  Richard Biener  <rguenther@suse.de>
16372
16373         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16374         and single_scalar_iteration_cost members.
16375         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16376         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16377         (vect_get_single_scalar_iteration_cost): Remove.
16378         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16379         Use LOOP_VINFO_SCALAR_ITERATION_COST.
16380         * tree-vect-loop.c (destroy_loop_vec_info): Free
16381         scalar_cost_vec.
16382         (vect_get_single_scalar_iteration_cost): Compute result into
16383         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16384         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
16385         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16386         (vect_estimate_min_profitable_iters): Use them.
16387
16388 2015-06-22  Christian Bruel  <christian.bruel@st.com>
16389
16390         PR target/52144
16391         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16392         (TARGET_INSERT_ATTRIBUTES): Define.
16393         (thumb_flipper): New var.
16394         * config/arm/arm.opt (-mflip-thumb): New switch.
16395
16396 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16397             Martin Liska  <mliska@suse.cz>
16398
16399         PR ipa/65908
16400         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16401         construction of arg_types.
16402         (sem_function::sem_function): Likewise.
16403         (sem_function::~sem_function): Remove destruction of arg_types.
16404         (sem_function::compatible_parm_types_p): New function.
16405         (sem_function::equals_wpa): Reorg matching of return values
16406         and parameter types.
16407         (sem_function::equals_private): Reorg mathcing of argument types.
16408         (sem_function::parse_tree_args): Remove.
16409         * ipa-icf.h (init_wpa): Do not call it.
16410         (parse_tree_args): Remove.
16411         (compatible_parm_types_p): Declare.
16412         (result_type): Remove.
16413         (arg_types): Remove.
16414
16415 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16416
16417         PR ipa/66351
16418         * ipa-polymorphic-call.c
16419         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16420         initializing alias oracle; fix formating; set base_alias_set if it
16421         is known.
16422
16423 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
16424
16425         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16426         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16427         (find_inc): Likewise.
16428         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16429         swapping.
16430         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16431         * df-scan.c (df_swap_refs): Remove.
16432         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16433         * dominance.c (link_roots): Use std::swap instead of manually swapping.
16434         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16435         * fold-const.c (fold_relational_const): Likewise.
16436         * genattrtab.c (simplify_test_exp): Likewise.
16437         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16438         gimple_simplify): Likewise.
16439         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16440         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16441         * ipa-devirt.c (add_type_duplicate): Likewise.
16442         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16443         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16444         * lra.c (lra_create_copy): Likewise.
16445         * lto-streamer-out.c (DFS::DFS): Likewise.
16446         * modulo-sched.c (get_sched_window): Likewise.
16447         * omega.c (omega_pretty_print_problem): Likewise.
16448         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16449         * reload1.c (reloads_unique_chain_p): Likewise.
16450         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16451         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16452         use std::swap.
16453         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16454         manually swapping.
16455         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16456         predicate_mem_writes): Likewise.
16457         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16458         * tree-predcom.c (combine_chains): Likewise.
16459         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16460         refs_may_alias_p_1): Likewise.
16461         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16462         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16463         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16464         number_of_iterations_cond): Likewise.
16465         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16466         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16467         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16468         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16469         * tree-vrp.c (extract_range_from_binary_expr_1,
16470         extract_range_from_unary_expr_1): Likewise.
16471
16472 2015-06-20  Marek Polacek  <polacek@redhat.com>
16473
16474         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16475
16476 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
16477
16478         PR target/66591
16479         * config/sh/sh.c (prepare_move_operands): Replace subreg
16480         index term with R0 for base and index addressing.
16481
16482 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
16483
16484         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16485         op1 is an fp zero.
16486         (movsf_aarch64): Change condition from register_operand to
16487         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
16488         load1.  Change type for alternative 7 to store1.
16489         (movdf_aarch64): Likewise.
16490
16491 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
16492
16493         * config/vax/vax.md: Adjust sign/zero extend patterns to
16494         handle SUBREGs in operands[1].
16495
16496 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16497
16498         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16499         of manually swapping.
16500         (expand_vec_perm_interleave2): Likewise.
16501
16502 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
16503
16504         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16505         reuse bounds created for abnormal ssa names.
16506
16507 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
16508
16509         * config/nvptx/nvptx.md (allocate_stack): Rename to...
16510         (allocate_stack_<mode>): ... this, and add :P on both
16511         match_operand and unspec.
16512         (allocate_stack): New expander.
16513
16514 2015-06-19  Christian Bruel  <christian.bruel@st.com>
16515
16516         PR target/66541
16517         PR target/52144
16518         * config/arm/arm.c (arm_set_current_function): Handle
16519         explicit default options.
16520
16521 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16522
16523         * config/i386/i386.md (*movsicc_noc_zext): New insn.
16524         (zero-extended cmove with mem peephole2): New pattern.
16525         (cmove with mem peephole2): Merge patterns.
16526
16527 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16528
16529         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16530
16531 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
16532
16533         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16534         * config/mips/mips.md (*madd4<mode>): Ditto.
16535         (*nmadd3<mode>) Ditto.
16536         (*nmadd4<mode>_fastmath): Ditto.
16537         (*nmadd3<mode>_fastmath): Ditto.
16538         (*nmsub4<mode>): Ditto.
16539         (*nmsub3<mode>): Ditto.
16540         (*nmsub4<mode>_fastmath): Ditto.
16541         (*nmsub3<mode>_fastmath): Ditto.
16542
16543 2015-06-18  Michael Matz  <matz@suse.de>
16544
16545         PR middle-end/66253
16546         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16547         grouped strided stores.
16548         (vectorizable_load): Don't use the DR from first_stmt in
16549         the non-SLP grouped strided case.
16550
16551 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16552
16553         PR target/66569
16554         * function.c (assign_bounds): Add arguments assign_regs,
16555         assign_special, assign_bt.
16556         (assign_parms): For vararg functions handle bounds in BT
16557         and special slots after incoming vararg bounds.
16558
16559 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16560
16561         PR middle-end/66568
16562         * cfgexpand.c (expand_return): Handle missing bounds.
16563         (expand_gimple_stmt_1): Likewise.
16564         * tree-chkp.c (chkp_expand_zero_bounds): New.
16565         * tree-chkp.h (chkp_expand_zero_bounds): New.
16566
16567 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16568
16569         PR middle-end/66567
16570         * ipa-chkp.c (chkp_maybe_create_clone): Require
16571         functions to be instrumentable.
16572         * tree-chkp.c (chkp_replace_function_pointer): Use
16573         chkp_instrumentable_p instead of attribute check.
16574
16575 2015-06-18  Richard Biener  <rguenther@suse.de>
16576
16577         PR tree-optimization/66510
16578         * tree-vect-stmts.c (vectorizable_load): Properly compute the
16579         number of vector loads for SLP permuted loads.
16580         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16581         check the stride for loop vectorization.
16582         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16583         vectorization factor.
16584         (vect_analyze_group_access): If the group size is not a power
16585         of two require a epilogue loop.
16586         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16587         compute and optimizing and alias test pruning after final
16588         vectorization factor computation.
16589         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16590         vector alignment.
16591         (vect_transform_slp_perm_load): Properly compute the original
16592         number of vector load stmts.
16593
16594 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16595
16596         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16597         "unlikely character , in @var" warning.
16598
16599 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
16600
16601         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16602         (ix86_function_arg_advance): Ditto.
16603         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
16604
16605 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16606
16607         * function.h (struct rtl_data): Remove struct and accessor macros.
16608         * emit-rtl.h (struct rtl_data): Relocate to here.
16609         * Makefile.in (GTFILES): Add emit-rtl.h.
16610         * df-core.c: Include emit-rtl.h.
16611         * genattrtab.c: Likewise.
16612         * genconditions.c: Likewise.
16613         * genpreds.c: Likewise.
16614         * genrecog.c: Likewise.
16615         * regcprop.c: Likewise.
16616         * resource.c: Likewise.
16617         * sched-rgn.c: Likewise.
16618         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16619         * config/i386/winnt.c: Likewise.
16620
16621 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
16622
16623         PR middle-end/66429
16624         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16625         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
16626         and has_force_vectorize_loops flags from cfun into
16627         child_cfun.
16628         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16629         if simduid is non-NULL.
16630         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16631         * passes.def (pass_simduid_cleanup): Add new pass after loop
16632         passes.
16633         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16634         indirection from htab argument's type.
16635         (shrink_simd_arrays): New function.
16636         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
16637         Don't call adjust_simduid_builtins if there are no loops.
16638         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16639         (pass_simduid_cleanup::execute): New method.
16640         (make_pass_simduid_cleanup): New function.
16641
16642 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
16643
16644         * tree-core.h (tree_target_option): Make opts field a pointer to a
16645         cl_target_option instead of an instance of the struct.
16646         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16647         the structure.
16648         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16649         TARGET_OPTION_NODE.
16650         (copy_node_stat): Allocate and copy struct cl_target_option.
16651
16652 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16653
16654         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16655         Remove conditional exposure of prototypes.
16656         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16657         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
16658         definitions in tree.h with functions.
16659         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16660         anon_aggrname_p.
16661         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16662
16663 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
16664
16665         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16666         (*cmp<mode>_signed): ... this.
16667         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16668         (*cmp<mode>_unsigned): ... this.  Remove %b.
16669
16670 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16671
16672         * coretypes.h: Include input.h and as-a.h.
16673         * rtl.h: Include input.h and as-a.h for generator files.
16674         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16675         * vec.c: Don't include diagnostic-core.h.
16676         * alias.c: Do not include input.h, line-map.h or is-a.h.
16677         * asan.c: Likewise.
16678         * attribs.c: Likewise.
16679         * auto-inc-dec.c: Likewise.
16680         * auto-profile.c: Likewise.
16681         * bb-reorder.c: Likewise.
16682         * bt-load.c: Likewise.
16683         * builtins.c: Likewise.
16684         * caller-save.c: Likewise.
16685         * calls.c: Likewise.
16686         * ccmp.c: Likewise.
16687         * cfg.c: Likewise.
16688         * cfganal.c: Likewise.
16689         * cfgbuild.c: Likewise.
16690         * cfgcleanup.c: Likewise.
16691         * cfgexpand.c: Likewise.
16692         * cfghooks.c: Likewise.
16693         * cfgloop.c: Likewise.
16694         * cfgloop.h: Likewise.
16695         * cfgloopanal.c: Likewise.
16696         * cfgloopmanip.c: Likewise.
16697         * cfgrtl.c: Likewise.
16698         * cgraph.c: Likewise.
16699         * cgraphbuild.c: Likewise.
16700         * cgraphclones.c: Likewise.
16701         * cgraphunit.c: Likewise.
16702         * cilk-common.c: Likewise.
16703         * combine-stack-adj.c: Likewise.
16704         * combine.c: Likewise.
16705         * compare-elim.c: Likewise.
16706         * convert.c: Likewise.
16707         * coverage.c: Likewise.
16708         * cppbuiltin.c: Likewise.
16709         * cprop.c: Likewise.
16710         * cse.c: Likewise.
16711         * cselib.c: Likewise.
16712         * data-streamer-in.c: Likewise.
16713         * data-streamer-out.c: Likewise.
16714         * data-streamer.c: Likewise.
16715         * dbxout.c: Likewise.
16716         * dce.c: Likewise.
16717         * ddg.c: Likewise.
16718         * debug.c: Likewise.
16719         * df-core.c: Likewise.
16720         * df-problems.c: Likewise.
16721         * df-scan.c: Likewise.
16722         * df.h: Likewise.
16723         * dfp.c: Likewise.
16724         * diagnostic-core.h: Likewise.
16725         * diagnostic.c: Likewise.
16726         * dojump.c: Likewise.
16727         * dominance.c: Likewise.
16728         * domwalk.c: Likewise.
16729         * double-int.c: Likewise.
16730         * dse.c: Likewise.
16731         * dumpfile.c: Likewise.
16732         * dumpfile.h: Likewise.
16733         * dwarf2asm.c: Likewise.
16734         * dwarf2cfi.c: Likewise.
16735         * dwarf2out.c: Likewise.
16736         * emit-rtl.c: Likewise.
16737         * et-forest.c: Likewise.
16738         * except.c: Likewise.
16739         * explow.c: Likewise.
16740         * expmed.c: Likewise.
16741         * expr.c: Likewise.
16742         * final.c: Likewise.
16743         * fixed-value.c: Likewise.
16744         * fold-const.c: Likewise.
16745         * function.c: Likewise.
16746         * fwprop.c: Likewise.
16747         * gcc-plugin.h: Likewise.
16748         * gcse.c: Likewise.
16749         * generic-match-head.c: Likewise.
16750         * ggc-page.c: Likewise.
16751         * gimple-builder.c: Likewise.
16752         * gimple-expr.c: Likewise.
16753         * gimple-fold.c: Likewise.
16754         * gimple-iterator.c: Likewise.
16755         * gimple-low.c: Likewise.
16756         * gimple-match-head.c: Likewise.
16757         * gimple-pretty-print.c: Likewise.
16758         * gimple-ssa-isolate-paths.c: Likewise.
16759         * gimple-ssa-strength-reduction.c: Likewise.
16760         * gimple-streamer-in.c: Likewise.
16761         * gimple-streamer-out.c: Likewise.
16762         * gimple-streamer.h: Likewise.
16763         * gimple-walk.c: Likewise.
16764         * gimple.c: Likewise.
16765         * gimplify-me.c: Likewise.
16766         * gimplify.c: Likewise.
16767         * godump.c: Likewise.
16768         * graph.c: Likewise.
16769         * graphite-blocking.c: Likewise.
16770         * graphite-dependences.c: Likewise.
16771         * graphite-interchange.c: Likewise.
16772         * graphite-isl-ast-to-gimple.c: Likewise.
16773         * graphite-optimize-isl.c: Likewise.
16774         * graphite-poly.c: Likewise.
16775         * graphite-scop-detection.c: Likewise.
16776         * graphite-sese-to-poly.c: Likewise.
16777         * graphite.c: Likewise.
16778         * haifa-sched.c: Likewise.
16779         * hw-doloop.c: Likewise.
16780         * ifcvt.c: Likewise.
16781         * init-regs.c: Likewise.
16782         * input.c: Likewise.
16783         * internal-fn.c: Likewise.
16784         * ipa-chkp.c: Likewise.
16785         * ipa-comdats.c: Likewise.
16786         * ipa-cp.c: Likewise.
16787         * ipa-devirt.c: Likewise.
16788         * ipa-icf-gimple.c: Likewise.
16789         * ipa-icf.c: Likewise.
16790         * ipa-inline-analysis.c: Likewise.
16791         * ipa-inline-transform.c: Likewise.
16792         * ipa-inline.c: Likewise.
16793         * ipa-polymorphic-call.c: Likewise.
16794         * ipa-profile.c: Likewise.
16795         * ipa-prop.c: Likewise.
16796         * ipa-pure-const.c: Likewise.
16797         * ipa-ref.c: Likewise.
16798         * ipa-reference.c: Likewise.
16799         * ipa-split.c: Likewise.
16800         * ipa-utils.c: Likewise.
16801         * ipa-visibility.c: Likewise.
16802         * ipa.c: Likewise.
16803         * ira-build.c: Likewise.
16804         * ira-color.c: Likewise.
16805         * ira-conflicts.c: Likewise.
16806         * ira-costs.c: Likewise.
16807         * ira-emit.c: Likewise.
16808         * ira-lives.c: Likewise.
16809         * ira.c: Likewise.
16810         * jump.c: Likewise.
16811         * langhooks.c: Likewise.
16812         * lcm.c: Likewise.
16813         * loop-doloop.c: Likewise.
16814         * loop-init.c: Likewise.
16815         * loop-invariant.c: Likewise.
16816         * loop-iv.c: Likewise.
16817         * loop-unroll.c: Likewise.
16818         * lower-subreg.c: Likewise.
16819         * lra-assigns.c: Likewise.
16820         * lra-coalesce.c: Likewise.
16821         * lra-constraints.c: Likewise.
16822         * lra-eliminations.c: Likewise.
16823         * lra-lives.c: Likewise.
16824         * lra-remat.c: Likewise.
16825         * lra-spills.c: Likewise.
16826         * lra.c: Likewise.
16827         * lto-cgraph.c: Likewise.
16828         * lto-compress.c: Likewise.
16829         * lto-opts.c: Likewise.
16830         * lto-section-in.c: Likewise.
16831         * lto-section-out.c: Likewise.
16832         * lto-streamer-in.c: Likewise.
16833         * lto-streamer-out.c: Likewise.
16834         * lto-streamer.c: Likewise.
16835         * mcf.c: Likewise.
16836         * mode-switching.c: Likewise.
16837         * modulo-sched.c: Likewise.
16838         * omega.c: Likewise.
16839         * omp-low.c: Likewise.
16840         * optabs.c: Likewise.
16841         * opts-global.c: Likewise.
16842         * opts.h: Likewise.
16843         * passes.c: Likewise.
16844         * plugin.c: Likewise.
16845         * postreload-gcse.c: Likewise.
16846         * postreload.c: Likewise.
16847         * predict.c: Likewise.
16848         * pretty-print.h: Likewise.
16849         * print-rtl.c: Likewise.
16850         * print-tree.c: Likewise.
16851         * profile.c: Likewise.
16852         * real.c: Likewise.
16853         * realmpfr.c: Likewise.
16854         * recog.c: Likewise.
16855         * ree.c: Likewise.
16856         * reg-stack.c: Likewise.
16857         * regcprop.c: Likewise.
16858         * reginfo.c: Likewise.
16859         * regrename.c: Likewise.
16860         * regstat.c: Likewise.
16861         * reload.c: Likewise.
16862         * reload1.c: Likewise.
16863         * reorg.c: Likewise.
16864         * resource.c: Likewise.
16865         * rtl-chkp.c: Likewise.
16866         * rtl-error.c: Likewise.
16867         * rtlanal.c: Likewise.
16868         * rtlhooks.c: Likewise.
16869         * sanopt.c: Likewise.
16870         * sched-deps.c: Likewise.
16871         * sched-ebb.c: Likewise.
16872         * sched-rgn.c: Likewise.
16873         * sched-vis.c: Likewise.
16874         * sdbout.c: Likewise.
16875         * sel-sched-dump.c: Likewise.
16876         * sel-sched-ir.c: Likewise.
16877         * sel-sched.c: Likewise.
16878         * sese.c: Likewise.
16879         * shrink-wrap.c: Likewise.
16880         * simplify-rtx.c: Likewise.
16881         * stack-ptr-mod.c: Likewise.
16882         * statistics.c: Likewise.
16883         * stmt.c: Likewise.
16884         * stor-layout.c: Likewise.
16885         * store-motion.c: Likewise.
16886         * streamer-hooks.c: Likewise.
16887         * stringpool.c: Likewise.
16888         * symtab.c: Likewise.
16889         * target-globals.c: Likewise.
16890         * targhooks.c: Likewise.
16891         * toplev.c: Likewise.
16892         * tracer.c: Likewise.
16893         * trans-mem.c: Likewise.
16894         * tree-affine.c: Likewise.
16895         * tree-browser.c: Likewise.
16896         * tree-call-cdce.c: Likewise.
16897         * tree-cfg.c: Likewise.
16898         * tree-cfgcleanup.c: Likewise.
16899         * tree-chkp-opt.c: Likewise.
16900         * tree-chkp.c: Likewise.
16901         * tree-chrec.c: Likewise.
16902         * tree-complex.c: Likewise.
16903         * tree-data-ref.c: Likewise.
16904         * tree-dfa.c: Likewise.
16905         * tree-diagnostic.c: Likewise.
16906         * tree-dump.c: Likewise.
16907         * tree-eh.c: Likewise.
16908         * tree-emutls.c: Likewise.
16909         * tree-if-conv.c: Likewise.
16910         * tree-inline.c: Likewise.
16911         * tree-into-ssa.c: Likewise.
16912         * tree-iterator.c: Likewise.
16913         * tree-loop-distribution.c: Likewise.
16914         * tree-nested.c: Likewise.
16915         * tree-nrv.c: Likewise.
16916         * tree-object-size.c: Likewise.
16917         * tree-outof-ssa.c: Likewise.
16918         * tree-parloops.c: Likewise.
16919         * tree-phinodes.c: Likewise.
16920         * tree-predcom.c: Likewise.
16921         * tree-pretty-print.c: Likewise.
16922         * tree-profile.c: Likewise.
16923         * tree-scalar-evolution.c: Likewise.
16924         * tree-sra.c: Likewise.
16925         * tree-ssa-address.c: Likewise.
16926         * tree-ssa-alias.c: Likewise.
16927         * tree-ssa-ccp.c: Likewise.
16928         * tree-ssa-coalesce.c: Likewise.
16929         * tree-ssa-copy.c: Likewise.
16930         * tree-ssa-copyrename.c: Likewise.
16931         * tree-ssa-dce.c: Likewise.
16932         * tree-ssa-dom.c: Likewise.
16933         * tree-ssa-dse.c: Likewise.
16934         * tree-ssa-forwprop.c: Likewise.
16935         * tree-ssa-ifcombine.c: Likewise.
16936         * tree-ssa-live.c: Likewise.
16937         * tree-ssa-loop-ch.c: Likewise.
16938         * tree-ssa-loop-im.c: Likewise.
16939         * tree-ssa-loop-ivcanon.c: Likewise.
16940         * tree-ssa-loop-ivopts.c: Likewise.
16941         * tree-ssa-loop-manip.c: Likewise.
16942         * tree-ssa-loop-niter.c: Likewise.
16943         * tree-ssa-loop-prefetch.c: Likewise.
16944         * tree-ssa-loop-unswitch.c: Likewise.
16945         * tree-ssa-loop.c: Likewise.
16946         * tree-ssa-math-opts.c: Likewise.
16947         * tree-ssa-operands.c: Likewise.
16948         * tree-ssa-phiopt.c: Likewise.
16949         * tree-ssa-phiprop.c: Likewise.
16950         * tree-ssa-pre.c: Likewise.
16951         * tree-ssa-propagate.c: Likewise.
16952         * tree-ssa-reassoc.c: Likewise.
16953         * tree-ssa-sccvn.c: Likewise.
16954         * tree-ssa-scopedtables.c: Likewise.
16955         * tree-ssa-sink.c: Likewise.
16956         * tree-ssa-strlen.c: Likewise.
16957         * tree-ssa-structalias.c: Likewise.
16958         * tree-ssa-tail-merge.c: Likewise.
16959         * tree-ssa-ter.c: Likewise.
16960         * tree-ssa-threadedge.c: Likewise.
16961         * tree-ssa-threadupdate.c: Likewise.
16962         * tree-ssa-uncprop.c: Likewise.
16963         * tree-ssa-uninit.c: Likewise.
16964         * tree-ssa.c: Likewise.
16965         * tree-ssanames.c: Likewise.
16966         * tree-stdarg.c: Likewise.
16967         * tree-streamer-in.c: Likewise.
16968         * tree-streamer-out.c: Likewise.
16969         * tree-streamer.c: Likewise.
16970         * tree-switch-conversion.c: Likewise.
16971         * tree-tailcall.c: Likewise.
16972         * tree-vect-data-refs.c: Likewise.
16973         * tree-vect-generic.c: Likewise.
16974         * tree-vect-loop-manip.c: Likewise.
16975         * tree-vect-loop.c: Likewise.
16976         * tree-vect-patterns.c: Likewise.
16977         * tree-vect-slp.c: Likewise.
16978         * tree-vect-stmts.c: Likewise.
16979         * tree-vectorizer.c: Likewise.
16980         * tree-vrp.c: Likewise.
16981         * tree.c: Likewise.
16982         * tsan.c: Likewise.
16983         * ubsan.c: Likewise.
16984         * valtrack.c: Likewise.
16985         * value-prof.c: Likewise.
16986         * var-tracking.c: Likewise.
16987         * varasm.c: Likewise.
16988         * varpool.c: Likewise.
16989         * vmsdbgout.c: Likewise.
16990         * vtable-verify.c: Likewise.
16991         * web.c: Likewise.
16992         * wide-int.cc: Likewise.
16993         * xcoffout.c: Likewise.
16994         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16995         * common/common-targhooks.c: Likewise.
16996         * config/aarch64/aarch64-builtins.c: Likewise.
16997         * config/aarch64/aarch64.c: Likewise.
16998         * config/alpha/alpha.c: Likewise.
16999         * config/arc/arc.c: Likewise.
17000         * config/arm/aarch-common.c: Likewise.
17001         * config/arm/arm-builtins.c: Likewise.
17002         * config/arm/arm-c.c: Likewise.
17003         * config/arm/arm.c: Likewise.
17004         * config/avr/avr-c.c: Likewise.
17005         * config/avr/avr-log.c: Likewise.
17006         * config/avr/avr.c: Likewise.
17007         * config/bfin/bfin.c: Likewise.
17008         * config/c6x/c6x.c: Likewise.
17009         * config/cr16/cr16.c: Likewise.
17010         * config/cris/cris.c: Likewise.
17011         * config/darwin-c.c: Likewise.
17012         * config/darwin.c: Likewise.
17013         * config/default-c.c: Likewise.
17014         * config/epiphany/epiphany.c: Likewise.
17015         * config/epiphany/mode-switch-use.c: Likewise.
17016         * config/epiphany/resolve-sw-modes.c: Likewise.
17017         * config/fr30/fr30.c: Likewise.
17018         * config/frv/frv.c: Likewise.
17019         * config/ft32/ft32.c: Likewise.
17020         * config/glibc-c.c: Likewise.
17021         * config/h8300/h8300.c: Likewise.
17022         * config/i386/i386-c.c: Likewise.
17023         * config/i386/i386.c: Likewise.
17024         * config/i386/msformat-c.c: Likewise.
17025         * config/i386/winnt-cxx.c: Likewise.
17026         * config/i386/winnt-stubs.c: Likewise.
17027         * config/i386/winnt.c: Likewise.
17028         * config/ia64/ia64-c.c: Likewise.
17029         * config/ia64/ia64.c: Likewise.
17030         * config/iq2000/iq2000.c: Likewise.
17031         * config/lm32/lm32.c: Likewise.
17032         * config/m32c/m32c-pragma.c: Likewise.
17033         * config/m32c/m32c.c: Likewise.
17034         * config/m32r/m32r.c: Likewise.
17035         * config/m68k/m68k.c: Likewise.
17036         * config/mcore/mcore.c: Likewise.
17037         * config/mep/mep-pragma.c: Likewise.
17038         * config/mep/mep.c: Likewise.
17039         * config/microblaze/microblaze-c.c: Likewise.
17040         * config/microblaze/microblaze.c: Likewise.
17041         * config/mips/mips.c: Likewise.
17042         * config/mmix/mmix.c: Likewise.
17043         * config/mn10300/mn10300.c: Likewise.
17044         * config/moxie/moxie.c: Likewise.
17045         * config/msp430/msp430-c.c: Likewise.
17046         * config/msp430/msp430.c: Likewise.
17047         * config/nds32/nds32-cost.c: Likewise.
17048         * config/nds32/nds32-fp-as-gp.c: Likewise.
17049         * config/nds32/nds32-intrinsic.c: Likewise.
17050         * config/nds32/nds32-isr.c: Likewise.
17051         * config/nds32/nds32-md-auxiliary.c: Likewise.
17052         * config/nds32/nds32-memory-manipulation.c: Likewise.
17053         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17054         * config/nds32/nds32-predicates.c: Likewise.
17055         * config/nds32/nds32.c: Likewise.
17056         * config/nios2/nios2.c: Likewise.
17057         * config/nvptx/nvptx.c: Likewise.
17058         * config/pa/pa.c: Likewise.
17059         * config/pdp11/pdp11.c: Likewise.
17060         * config/rl78/rl78-c.c: Likewise.
17061         * config/rl78/rl78.c: Likewise.
17062         * config/rs6000/rs6000-c.c: Likewise.
17063         * config/rs6000/rs6000.c: Likewise.
17064         * config/rx/rx.c: Likewise.
17065         * config/s390/s390-c.c: Likewise.
17066         * config/s390/s390.c: Likewise.
17067         * config/sh/sh-c.c: Likewise.
17068         * config/sh/sh-mem.cc: Likewise.
17069         * config/sh/sh.c: Likewise.
17070         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17071         * config/sh/sh_treg_combine.cc: Likewise.
17072         * config/sol2-c.c: Likewise.
17073         * config/sol2-cxx.c: Likewise.
17074         * config/sol2-stubs.c: Likewise.
17075         * config/sol2.c: Likewise.
17076         * config/sparc/sparc-c.c: Likewise.
17077         * config/sparc/sparc.c: Likewise.
17078         * config/spu/spu-c.c: Likewise.
17079         * config/spu/spu.c: Likewise.
17080         * config/stormy16/stormy16.c: Likewise.
17081         * config/tilegx/mul-tables.c: Likewise.
17082         * config/tilegx/tilegx-c.c: Likewise.
17083         * config/tilegx/tilegx.c: Likewise.
17084         * config/tilepro/mul-tables.c: Likewise.
17085         * config/tilepro/tilepro-c.c: Likewise.
17086         * config/tilepro/tilepro.c: Likewise.
17087         * config/v850/v850-c.c: Likewise.
17088         * config/v850/v850.c: Likewise.
17089         * config/vax/vax.c: Likewise.
17090         * config/visium/visium.c: Likewise.
17091         * config/vms/vms-c.c: Likewise.
17092         * config/vms/vms.c: Likewise.
17093         * config/vxworks.c: Likewise.
17094         * config/winnt-c.c: Likewise.
17095         * config/xtensa/xtensa.c: Likewise.
17096
17097 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
17098
17099         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17100         function.
17101         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17102
17103 2015-06-17  Richard Biener  <rguenther@suse.de>
17104
17105         PR tree-optimization/66251
17106         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17107         stmts for SLP strided stores.
17108
17109         Revert
17110         2015-05-22  Richard Biener  <rguenther@suse.de>
17111
17112         PR tree-optimization/66251
17113         * tree-vect-stmts.c (vectorizable_conversion): Properly
17114         set STMT_VINFO_VEC_STMT even for the SLP case.
17115
17116         2015-05-26  Michael Matz  <matz@suse.de>
17117
17118         PR middle-end/66251
17119         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17120         STMT_VINFO_VEC_STMT, also with SLP.
17121
17122 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
17123
17124         PR target/56766
17125         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17126         (*avx_addsubv4df3_1s): Ditto.
17127         (*sse3_addsubv2df3_1): Ditto.
17128         (*sse3_addsubv2df3_1s): Ditto.
17129         (*avx_addsubv8sf3_1): Ditto.
17130         (*avx_addsubv8sf3_1s): Ditto.
17131         (*sse3_addsubv4sf3_1): Ditto.
17132         (*sse3_addsubv4sf3_1s): Ditto.
17133
17134 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
17135
17136         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17137         (SYSROOT_SUFFIX_SPEC): Update.
17138         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17139         (STARTFILE_PREFIX_SPEC): Update.
17140         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17141         (MULTILIB_REQUIRED): New.
17142         (MULTILIB_OSDIRNAMES): New.
17143         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17144         (MULTILIB_REQUIRED): New.
17145         (MULTILIB_OSDIRNAMES): New.
17146
17147 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
17148
17149         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17150         * config/aarch64/aarch64-options-extensions.def: Update "fP",
17151         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
17152         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17153         (AARCH64_FL_PAN): New.
17154         (AARCH64_FL_LOR): New.
17155         (AARCH64_FL_RDMA): New.
17156         (AARCH64_FL_FOR_ARCH8_1): New.
17157         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17158         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17159
17160 2015-06-16  Martin Liska  <mliska@suse.cz>
17161
17162         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17163         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17164         guard.
17165
17166 2015-06-16  Richard Biener  <rguenther@suse.de>
17167
17168         * tree-vect-stmts.c (vectorizable_store): Adjust.
17169         (vectorizable_load): Likewise.
17170         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17171         Simplify.
17172         (vect_create_data_ref_ptr): Likewise.
17173         (bump_vector_ptr): Adjust.
17174
17175 2015-06-16  Richard Biener  <rguenther@suse.de>
17176
17177         * tree-vect-stmts.c (vectorizable_load): Properly start loads
17178         with the first element if this is grouped loads.
17179
17180 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
17181
17182         * config/arm/arm-protos.h (struct tune_params): Rename
17183         log_op_non_sc to log_op_non_short_circuit, and rename enum
17184         values to expand SC to SHORT_CIRCUIT.
17185         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17186         to LOG_OP_NON_SHORT_CIRCUIT.
17187         (arm_fastmul_tune):Likewise
17188         (arm_strongarm_tune): Likewise.
17189         (arm_xscale_tune): Likewise.
17190         (arm_9e_tune): Likewise.
17191         (arm_marvell_pj4_tune): Likewise.
17192         (arm_v6t2_tune): Likewise.
17193         (arm_cortex_tune): Likewise.
17194         (arm_cortex_a8_tune): Likewise.
17195         (arm_cortex_a7_tune): Likewise.
17196         (arm_cortex_a15_tune): Likewise.
17197         (arm_cortex_a53_tune): Likewise.
17198         (arm_cortex_a57_tune): Likewise.
17199         (arm_xgene1_tune): Likewise.
17200         (arm_cortex_a5_tune): Likewise.
17201         (arm_cortex_a9_tune): Likewise.
17202         (arm_cortex_a12_tune): Likewise.
17203         (arm_v7m_tune): Likewise.
17204         (arm_cortex_m7_tune): Likewise.
17205         (arm_v6m_tune): Likewise.
17206         (arm_fa726te_tune): Likewise.
17207
17208 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
17209
17210         * altivec.md: Delete UNSPEC_VMLADDUHM.
17211         (mulv4si3_p8): New pattern.
17212         (mulv4si3): Use it for POWER8.
17213         (mulv8hi3): Use vmladduhm with zero addend.
17214         (altivec_vmladduhm): Descriptive RTL.
17215
17216 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
17217
17218         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17219         to use neon_move instead of mov_imm.
17220         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17221         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17222
17223         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17224         aarch64_float_const_zero_rtx_p check before TFmode check.
17225         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17226         an fp zero.
17227         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
17228         code and attributes to match.  Change condition from register_operand
17229         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
17230         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
17231         to store2.
17232
17233 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
17234
17235         PR debug/66535
17236         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17237         there is no parent.
17238
17239 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
17240
17241         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17242         HOST_WIDE_INT parameter.
17243
17244 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
17245
17246         PR ipa/66181
17247         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17248         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17249         TYPE_NO_FORCE_BLK.
17250         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17251
17252 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
17253
17254         * rtl.h (classify_insn): Declare.
17255         * emit-rtl.c (classify_insn): Move to...
17256         * rtl.c: ...here and add generator support.
17257         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17258         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17259         * genemit.c (gen_emit_seq): New function.
17260         (gen_expand, gen_split): Use it.
17261
17262 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
17263
17264         * tree.c (make_vector_stat): Fix comment to state that the
17265         function returns a VECTOR_CST.
17266
17267 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
17268
17269         * gensupport.h (add_implicit_parallel): Declare.
17270         * genrecog.c (add_implicit_parallel): Move to...
17271         * gensupport.c (add_implicit_parallel): ...here.
17272         (process_one_cond_exec): Use it.
17273         * genemit.c (gen_insn): Likewise.
17274
17275 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
17276
17277         PR bootstrap/66448
17278         * passes.c (rest_of_decl_compilation): Do not register globals for
17279         early debug if they are declared in built-ins.
17280
17281 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
17282
17283         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17284
17285 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17286
17287         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17288         manually swapping.
17289         (noce_try_cmove_arith): Likewise.
17290         (noce_get_alt_condition): Likewise.
17291
17292 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17293
17294         * common/config/i386/i386-common.c
17295         (OPTION_MASK_ISA_MWAITX_SET): New.
17296         (ix86_handle_option): Handle mwaitx.
17297         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17298         (x86_64-*-*): Likewise.
17299         * config/i386/mwaitxintrin.h: New header.
17300         * config/i386/cpuid.h (bit_MWAITX):  Define.
17301         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17302         MWAITX support.
17303         * config/i386/i386.opt (mwaitx): New.
17304         * config/i386/i386-builtin-types.def
17305         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17306         * config/i386/i386-c.c: Define __MWAITX__ if needed.
17307         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17308         (PTA_MWAITX): New.
17309         (ix86_option_override_internal): Handle new option.
17310         (processor_alias_table): Added PTA_MWAITX.
17311         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17312         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17313         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17314         IX86_BUILTIN_MONITORX  built-ins.
17315         * config/i386/i386.h (TARGET_MWAITX): New.
17316         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17317         UNSPEC_MONITORX.
17318         (mwaitx):  New pattern.
17319         (monitorx_<mode>): New pattern.
17320         * config/i386/x86intrin.h: Include mwaitxintrin.h.
17321         * doc/extend.texi: Document monitorx and mwaitx builtins.
17322         * doc/invoke.texi: Document -mmwaitx option.
17323
17324 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
17325
17326         * emit-rtl.c (need_atomic_barrier_p): Mask model with
17327         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
17328
17329 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17330
17331         * dbxout.c (xcoff_debug_hooks): Provide a function for
17332         register_main_translation_unit hook.
17333
17334 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17335
17336         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
17337         variants cases from switch.
17338         (rs6000_post_atomic_barrier): Same.
17339         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
17340         (rs6000_expand_atomic_exchange): Same.
17341         (rs6000_expand_atomic_op): Same.
17342         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
17343         SYNC variants cases from switch.
17344         (atomic_load): Same.
17345         (atomic_store): Same.
17346
17347 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
17348
17349         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17350         CONST_INT for goto.
17351
17352 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
17353
17354         PR bootstrap/66448
17355         * dwarf2out.c (check_die): Check for common duplicate attributes.
17356         (add_location_or_const_value_attribute): Do not add duplicate
17357         attributes.
17358         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17359         time around.
17360         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17361         (gen_type_die_with_usage): Call check_die.
17362         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17363
17364 2015-06-11  Jason Merrill  <jason@redhat.com>
17365
17366         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17367         dies.
17368
17369 2015-06-11  Marek Polacek  <polacek@redhat.com>
17370
17371         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17372
17373 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
17374
17375         PR bootstrap/66252
17376         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17377         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17378         (*addx_extend_sp32): Fix pasto.
17379         (*subx_extend): Rename into...
17380         (*subx_extend_sp32): ...this.
17381         (*adddi3_extend_sp32): Add earlyclobber.
17382         (*subdi3_insn_sp32): Likewise.
17383         (*subdi3_extend_sp32): Likewise.
17384         (*and_not_di_sp32): Likewise.
17385         (*or_not_di_sp32): Likewise.
17386         (*xor_not_di_sp32): Likewise.
17387         (*negdi2_sp32): Likewise.
17388         (*one_cmpldi2_sp32): Likewise.
17389
17390 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
17391
17392         * debug.h (struct gcc_debug_hooks): Add a
17393         register_main_translation_unit hook.
17394         * debug.c (do_nothing_debug_hooks): Provide a function for this
17395         new hook.
17396         * dbxout.c (dbx_debug_hooks): Likewise.
17397         * sdbout.c (sdb_debug_hooks): Likewise.
17398         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17399         * dwarf2out.c (main_translation_unit): New global variable.
17400         (dwarf2out_register_main_translation_unit): New function
17401         implementing the new hook.
17402         (dwarf2_debug_hooks): Assign
17403         dwarf2out_register_main_translation_unit to this new hook.
17404         (dwarf2out_init): Associate any main translation unit to
17405         comp_unit_die ().
17406
17407 2015-06-11  Marek Polacek  <polacek@redhat.com>
17408
17409         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17410
17411 2015-06-11  Marek Polacek  <polacek@redhat.com>
17412
17413         * match.pd: Use single_use throughout.
17414
17415 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17416
17417         * config/arm/arm.c (arm_option_params_internal): When optimising
17418         for speed set max_insns_skipped when arm_restrict_it.
17419
17420 2015-06-11  Christian Bruel  <christian.bruel@st.com>
17421
17422         PR target/52144
17423         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17424          macros in ...
17425         (arm_cpu_builtins): New function.
17426         (arm_pragma_target_parse): Call arm_cpu_builtins.
17427         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17428         (arm_register_target_pragmas): Likewise.
17429         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17430          Call arm_register_target_pragmas.
17431         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17432         (arm_pragma_target_parse): Likewise.
17433
17434 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17435
17436         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17437         of the second operand.
17438
17439 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
17440
17441         PR target/66473
17442         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17443         to prepare mask operand for AVX512 modes.
17444
17445 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17446
17447         PR target/66474
17448         * doc/md.texi (Machine Constraints): Document that on the PowerPC
17449         if you use a constraint that targets a VSX register, you must use
17450         %x<n> in the template.
17451
17452 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
17453
17454         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17455         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17456         (define_insn "trap"): New definition.
17457
17458 2015-06-10  Richard Biener  <rguenther@suse.de>
17459
17460         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17461         out from ...
17462         (vect_supported_load_permutation_p): ... here.  Handle
17463         supportable permutations in reductions.
17464         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17465         for vectorizing strided group loads.
17466
17467 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
17468
17469         PR target/66470
17470         * config/i386/i386.c (ix86_split_long_move): For collisions
17471         involving direct tls segment refs, move the UNSPEC_TP possibly
17472         wrapped in ZERO_EXTEND out of the address for lea, to each of
17473         the memory loads.
17474
17475 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17476
17477         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17478         dmb sy. Adjust tabs.
17479
17480 2015-06-10  Tom de Vries  <tom@codesourcery.com>
17481
17482         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17483
17484 2015-06-10  Martin Liska  <mliska@suse.cz>
17485
17486         PR bootstrap/66471
17487         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17488         all enum values in mem_alloc_origin.
17489         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17490         name.
17491         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17492         * bitmap.c (bitmap_register): Likewise.
17493         (dump_bitmap_statistics): Likewise.
17494         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17495         (ggc_record_overhead): Likewise.
17496         * hash-map.h: Likewise.
17497         * hash-set.h: Likewise.
17498         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17499         * hash-table.h: Likewise.
17500         * vec.c (vec_prefix::register_overhead): Likewise.
17501         (vec_prefix::release_overhead): Likewise.
17502         (dump_vec_loc_statistics): Likewise.
17503
17504 2015-06-09  Christian Bruel  <christian.bruel@st.com>
17505
17506         PR target/52144
17507         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17508         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17509         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17510         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17511         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17512         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17513         (arm_valid_target_attribute_p): Likewise.
17514         (arm_set_current_function, arm_can_inline_p): Likewise.
17515         (arm_valid_target_attribute_rec): Likewise.
17516         (arm_previous_fndecl): New variable.
17517         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17518         (TARGET_CAN_INLINE_P): Define.
17519         (arm_asm_trampoline_template): Emit mode.
17520         (arm_file_start): Don't set unified syntax.
17521         (arm_declare_function_name): Set unified syntax and mode.
17522         (arm_option_override): Init target_option_default_node.
17523         and target_option_current_node.
17524         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17525         (*call_symbol): Likewise.
17526         * doc/extend.texi: Document ARM/Thumb target attribute.
17527         * doc/invoke.texi: Likewise.
17528
17529 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17530
17531         Revert:
17532         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17533         PR rtl-optimization/64164
17534         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17535         * tree-ssa-copyrename.c: Removed.
17536         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17537         -ftree-coalesce-vars.
17538         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17539         * common.opt (ftree-copyrename): Ignore.
17540         (ftree-coalesce-inlined-vars): Likewise.
17541         * doc/invoke.texi: Remove the ignored options above.
17542         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17543         * tree-ssa-coalesce.h: ... here.
17544         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17545         headers required by it.
17546         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17547         across variables when flag_tree_coalesce_vars.  Check register
17548         use and promoted modes to allow coalescing.  Moved to
17549         tree-ssa-coalesce.c.
17550         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17551         with its member functions to tree-ssa-coalesce.c.
17552         (var_map_base_init): Likewise.  Renamed to
17553         compute_samebase_partition_bases.
17554         (partition_view_normal): Drop want_bases parameter.
17555         (partition_view_bitmap): Likewise.
17556         * tree-ssa-live.h: Adjust declarations.
17557         * tree-ssa-coalesce.c: Include explow.h.
17558         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17559         default defs at the entry point.
17560         (dump_part_var_map): New.
17561         (compute_optimized_partition_bases): New, called by...
17562         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17563         of compute_samebase_partition_bases.  Adjust.
17564         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17565         * cfgexpand.c (leader_merge): New.
17566         (get_rtl_for_parm_ssa_default_def): New.
17567         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17568         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17569         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17570         redundant MEM attr setting.
17571         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17572         from...
17573         (expand_one_stack_var): ... this.  New wrapper to check and
17574         skip already expanded SSA partitions.
17575         (record_alignment_for_reg_var): New, factored out of...
17576         (expand_one_var): ... this.
17577         (expand_one_ssa_partition): New.
17578         (adjust_one_expanded_partition_var): New.
17579         (expand_one_register_var): Check and skip already expanded SSA
17580         partitions.
17581         (expand_used_vars): Don't create DECLs for anonymous SSA
17582         names.  Expand all SSA partitions, then adjust all SSA names.
17583         (pass::execute): Replace the loops that set
17584         SA.partition_to_pseudo from partition leaders and cleared
17585         DECL_RTL for multi-location variables, and that which used to
17586         rename vars and set attrs, with one that clears DECL_RTL and
17587         checks that PARMs and RESULTs default_defs match DECL_RTL.
17588         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17589         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17590         * explow.c (promote_ssa_mode): New.
17591         * explow.h (promote_ssa_mode): Declare.
17592         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17593         * function.c: Include cfgexpand.h.
17594         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17595         (use_register_for_parm_decl): Wrapper for the above to
17596         special-case the result_ptr.
17597         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17598         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17599         multiple locations.
17600         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17601         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17602         (assign_parm_setup_block): Prefer SSA-assigned location.
17603         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17604         if stack_parm is NULL.
17605         (assign_parm_setup_stack): Prefer SSA-assigned location.
17606         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17607         rtl before testing for pointer bounds.  Special-case result_ptr.
17608         (expand_function_start): Maybe reset DECL_RTL of result.
17609         Prefer SSA-assigned location for result and static chain.
17610         Factor out DECL_RESULT and SET_DECL_RTL.
17611         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17612         anonymous SSA names.  Use promote_ssa_mode.
17613         (get_temp_reg): Likewise.
17614         (remove_ssa_form): Adjust.
17615         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17616         and get its reg_usage for reg invalidation.
17617         (compute_bb_dataflow): Pass it insn.
17618         (emit_notes_in_bb): Likewise.
17619         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17620         fail assert on conversion between unsigned types.
17621
17622 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17623
17624         PR tree-optimization/65460
17625         * omp-low.c (expand_omp_target): Set parallelized_function on
17626         cgraph_node for child_fn.
17627
17628 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17629
17630         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17631         parallelized_function before add_new_function.
17632
17633 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
17634
17635         * gcc-plugin.h: Move decls to plugin.h and include it.
17636         * plugin.h: Relocate decls from gcc-plugin.h
17637         * ggc-page.c: Include required header files.
17638         * passes.c: Likewise.
17639         * cgraphunit.c: Likewise.
17640
17641 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17642
17643         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17644
17645 2015-06-09  Jason Merrill  <jason@redhat.com>
17646
17647         PR bootstrap/66448
17648         * toplev.c (check_global_declaration): Don't warn about a clone.
17649
17650 2015-06-09  Marek Polacek  <polacek@redhat.com>
17651
17652         PR tree-optimization/66299
17653         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17654         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17655         patterns.
17656
17657 2015-06-09  Richard Biener  <rguenther@suse.de>
17658
17659         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17660         (vect_analyze_slp_instance): Instead do not falsely drop
17661         load permutations.
17662
17663 2015-06-09  Richard Biener  <rguenther@suse.de>
17664
17665         PR middle-end/66423
17666         * match.pd: Handle A % (unsigned)(1 << B).
17667
17668 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
17669
17670         * varasm.c (output_object_block_htab): Remove.
17671         (output_object_block_compare): New.
17672         (output_object_blocks): Sort named object_blocks before outputting
17673         them.
17674
17675 2015-06-09  Richard Biener  <rguenther@suse.de>
17676
17677         PR tree-optimization/66419
17678         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17679         consider GROUP_GAP when detecting a perfect subchain.
17680
17681 2015-06-09  Nick Clifton  <nickc@redhat.com>
17682
17683         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17684         place read only data in the .frodata section.
17685
17686 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
17687
17688         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17689         (atomic_store<mode>): Likewise.
17690
17691 2015-06-09  Richard Biener  <rguenther@suse.de>
17692
17693         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17694
17695 2015-06-09  Richard Biener  <rguenther@suse.de>
17696
17697         PR middle-end/66413
17698         * tree-inline.c (insert_init_debug_bind): Unshare value.
17699
17700 2015-06-09  Richard Biener  <rguenther@suse.de>
17701
17702         PR tree-optimization/66396
17703         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17704         Rename virtual operands.
17705
17706 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17707
17708         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17709         always return false.
17710
17711 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17712
17713         PR rtl-optimization/64164
17714         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17715         * tree-ssa-copyrename.c: Removed.
17716         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17717         -ftree-coalesce-vars.
17718         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17719         * common.opt (ftree-copyrename): Ignore.
17720         (ftree-coalesce-inlined-vars): Likewise.
17721         * doc/invoke.texi: Remove the ignored options above.
17722         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17723         * tree-ssa-coalesce.h: ... here.
17724         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17725         headers required by it.
17726         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17727         across variables when flag_tree_coalesce_vars.  Check register
17728         use and promoted modes to allow coalescing.  Moved to
17729         tree-ssa-coalesce.c.
17730         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17731         with its member functions to tree-ssa-coalesce.c.
17732         (var_map_base_init): Likewise.  Renamed to
17733         compute_samebase_partition_bases.
17734         (partition_view_normal): Drop want_bases parameter.
17735         (partition_view_bitmap): Likewise.
17736         * tree-ssa-live.h: Adjust declarations.
17737         * tree-ssa-coalesce.c: Include explow.h.
17738         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17739         default defs at the entry point.
17740         (dump_part_var_map): New.
17741         (compute_optimized_partition_bases): New, called by...
17742         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17743         of compute_samebase_partition_bases.  Adjust.
17744         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17745         * cfgexpand.c (leader_merge): New.
17746         (get_rtl_for_parm_ssa_default_def): New.
17747         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17748         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17749         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17750         redundant MEM attr setting.
17751         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17752         from...
17753         (expand_one_stack_var): ... this.  New wrapper to check and
17754         skip already expanded SSA partitions.
17755         (record_alignment_for_reg_var): New, factored out of...
17756         (expand_one_var): ... this.
17757         (expand_one_ssa_partition): New.
17758         (adjust_one_expanded_partition_var): New.
17759         (expand_one_register_var): Check and skip already expanded SSA
17760         partitions.
17761         (expand_used_vars): Don't create DECLs for anonymous SSA
17762         names.  Expand all SSA partitions, then adjust all SSA names.
17763         (pass::execute): Replace the loops that set
17764         SA.partition_to_pseudo from partition leaders and cleared
17765         DECL_RTL for multi-location variables, and that which used to
17766         rename vars and set attrs, with one that clears DECL_RTL and
17767         checks that PARMs and RESULTs default_defs match DECL_RTL.
17768         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17769         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17770         * explow.c (promote_ssa_mode): New.
17771         * explow.h (promote_ssa_mode): Declare.
17772         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17773         * function.c: Include cfgexpand.h.
17774         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17775         (use_register_for_parm_decl): Wrapper for the above to
17776         special-case the result_ptr.
17777         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17778         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17779         multiple locations.
17780         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17781         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17782         (assign_parm_setup_block): Prefer SSA-assigned location.
17783         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17784         if stack_parm is NULL.
17785         (assign_parm_setup_stack): Prefer SSA-assigned location.
17786         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17787         rtl before testing for pointer bounds.  Special-case result_ptr.
17788         (expand_function_start): Maybe reset DECL_RTL of result.
17789         Prefer SSA-assigned location for result and static chain.
17790         Factor out DECL_RESULT and SET_DECL_RTL.
17791         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17792         anonymous SSA names.  Use promote_ssa_mode.
17793         (get_temp_reg): Likewise.
17794         (remove_ssa_form): Adjust.
17795         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17796         and get its reg_usage for reg invalidation.
17797         (compute_bb_dataflow): Pass it insn.
17798         (emit_notes_in_bb): Likewise.
17799         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17800         fail assert on conversion between unsigned types.
17801
17802 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17803
17804         PR debug/58315
17805         * tree-inline.c (reset_debug_binding): New.
17806         (reset_debug_bindings): Likewise.
17807         (expand_call_inline): Call it.
17808
17809 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17810
17811         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17812         TYPE_STRING_FLAG.
17813
17814 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17815
17816         * lto-streamer-out.c (lto_output_location): Stream
17817         reserved locations correctly.
17818         * lto-streamer-in.c (lto_output_location): Likewise.
17819
17820 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
17821
17822         * coretypes.h: Include hash-table.h and hash-set.h for host files.
17823         * ggc.h: Don't include statistics.h>
17824         * hash-map.h: Remove all includes.
17825         * hash-set.h: Likewise.
17826         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17827         the include list. Remove <new>.
17828         * inchash.h: Remove all includes.
17829         * mem-stats.h: Likewise.
17830         * vec.h: No special processing for generators or ggc.
17831         * alias.c : Adjust include files.
17832         * alloc-pool.c : Likewise.
17833         * alloc-pool.h : Likewise.
17834         * asan.c : Likewise.
17835         * attribs.c : Likewise.
17836         * auto-inc-dec.c : Likewise.
17837         * auto-profile.c : Likewise.
17838         * bb-reorder.c : Likewise.
17839         * bitmap.c : Likewise.
17840         * bitmap.h : Likewise.
17841         * bt-load.c : Likewise.
17842         * builtins.c : Likewise.
17843         * caller-save.c : Likewise.
17844         * calls.c : Likewise.
17845         * ccmp.c : Likewise.
17846         * cfg.c : Likewise.
17847         * cfganal.c : Likewise.
17848         * cfgbuild.c : Likewise.
17849         * cfgcleanup.c : Likewise.
17850         * cfgexpand.c : Likewise.
17851         * cfghooks.c : Likewise.
17852         * cfgloop.c : Likewise.
17853         * cfgloop.h : Likewise.
17854         * cfgloopanal.c : Likewise.
17855         * cfgloopmanip.c : Likewise.
17856         * cfgrtl.c : Likewise.
17857         * cgraph.c : Likewise.
17858         * cgraphbuild.c : Likewise.
17859         * cgraphclones.c : Likewise.
17860         * cgraphunit.c : Likewise.
17861         * cilk-common.c : Likewise.
17862         * combine-stack-adj.c : Likewise.
17863         * combine.c : Likewise.
17864         * compare-elim.c : Likewise.
17865         * context.c : Likewise.
17866         * convert.c : Likewise.
17867         * coverage.c : Likewise.
17868         * cppbuiltin.c : Likewise.
17869         * cprop.c : Likewise.
17870         * cse.c : Likewise.
17871         * cselib.c : Likewise.
17872         * data-streamer-in.c : Likewise.
17873         * data-streamer-out.c : Likewise.
17874         * data-streamer.c : Likewise.
17875         * data-streamer.h : Likewise.
17876         * dbxout.c : Likewise.
17877         * dce.c : Likewise.
17878         * ddg.c : Likewise.
17879         * debug.c : Likewise.
17880         * df-core.c : Likewise.
17881         * df-problems.c : Likewise.
17882         * df-scan.c : Likewise.
17883         * df.h : Likewise.
17884         * dfp.c : Likewise.
17885         * dojump.c : Likewise.
17886         * dominance.c : Likewise.
17887         * domwalk.c : Likewise.
17888         * double-int.c : Likewise.
17889         * dse.c : Likewise.
17890         * dumpfile.c : Likewise.
17891         * dwarf2asm.c : Likewise.
17892         * dwarf2cfi.c : Likewise.
17893         * dwarf2out.c : Likewise.
17894         * emit-rtl.c : Likewise.
17895         * et-forest.c : Likewise.
17896         * except.c : Likewise.
17897         * except.h : Likewise.
17898         * explow.c : Likewise.
17899         * expmed.c : Likewise.
17900         * expr.c : Likewise.
17901         * final.c : Likewise.
17902         * fixed-value.c : Likewise.
17903         * fold-const.c : Likewise.
17904         * function.c : Likewise.
17905         * fwprop.c : Likewise.
17906         * gcc-plugin.h : Likewise.
17907         * gcc.c : Likewise.
17908         * gcse-common.c : Likewise.
17909         * gcse.c : Likewise.
17910         * genattrtab.c : Likewise.
17911         * genautomata.c : Likewise.
17912         * genconditions.c : Likewise.
17913         * genemit.c : Likewise.
17914         * generic-match-head.c : Likewise.
17915         * genextract.c : Likewise.
17916         * gengtype-state.c : Likewise.
17917         * gengtype.c : Likewise.
17918         * genhooks.c : Likewise.
17919         * genmatch.c : Likewise.
17920         * genmodes.c : Likewise.
17921         * genrecog.c : Likewise.
17922         * gensupport.c : Likewise.
17923         * ggc-common.c : Likewise.
17924         * ggc-internal.h : Likewise.
17925         * ggc-none.c : Likewise.
17926         * ggc-page.c : Likewise.
17927         * gimple-builder.c : Likewise.
17928         * gimple-expr.c : Likewise.
17929         * gimple-fold.c : Likewise.
17930         * gimple-iterator.c : Likewise.
17931         * gimple-low.c : Likewise.
17932         * gimple-match-head.c : Likewise.
17933         * gimple-pretty-print.c : Likewise.
17934         * gimple-ssa-isolate-paths.c : Likewise.
17935         * gimple-ssa-strength-reduction.c : Likewise.
17936         * gimple-ssa.h : Likewise.
17937         * gimple-streamer-in.c : Likewise.
17938         * gimple-streamer-out.c : Likewise.
17939         * gimple-streamer.h : Likewise.
17940         * gimple-walk.c : Likewise.
17941         * gimple.c : Likewise.
17942         * gimplify-me.c : Likewise.
17943         * gimplify.c : Likewise.
17944         * godump.c : Likewise.
17945         * graph.c : Likewise.
17946         * graphds.c : Likewise.
17947         * graphite-blocking.c : Likewise.
17948         * graphite-dependences.c : Likewise.
17949         * graphite-interchange.c : Likewise.
17950         * graphite-isl-ast-to-gimple.c : Likewise.
17951         * graphite-optimize-isl.c : Likewise.
17952         * graphite-poly.c : Likewise.
17953         * graphite-scop-detection.c : Likewise.
17954         * graphite-sese-to-poly.c : Likewise.
17955         * graphite.c : Likewise.
17956         * haifa-sched.c : Likewise.
17957         * hard-reg-set.h : Likewise.
17958         * hw-doloop.c : Likewise.
17959         * ifcvt.c : Likewise.
17960         * inchash.c : Likewise.
17961         * incpath.c : Likewise.
17962         * init-regs.c : Likewise.
17963         * input.c : Likewise.
17964         * internal-fn.c : Likewise.
17965         * ipa-chkp.c : Likewise.
17966         * ipa-comdats.c : Likewise.
17967         * ipa-cp.c : Likewise.
17968         * ipa-devirt.c : Likewise.
17969         * ipa-icf-gimple.c : Likewise.
17970         * ipa-icf.c : Likewise.
17971         * ipa-inline-analysis.c : Likewise.
17972         * ipa-inline-transform.c : Likewise.
17973         * ipa-inline.c : Likewise.
17974         * ipa-polymorphic-call.c : Likewise.
17975         * ipa-profile.c : Likewise.
17976         * ipa-prop.c : Likewise.
17977         * ipa-pure-const.c : Likewise.
17978         * ipa-ref.c : Likewise.
17979         * ipa-reference.c : Likewise.
17980         * ipa-split.c : Likewise.
17981         * ipa-utils.c : Likewise.
17982         * ipa-visibility.c : Likewise.
17983         * ipa.c : Likewise.
17984         * ira-build.c : Likewise.
17985         * ira-color.c : Likewise.
17986         * ira-conflicts.c : Likewise.
17987         * ira-costs.c : Likewise.
17988         * ira-emit.c : Likewise.
17989         * ira-lives.c : Likewise.
17990         * ira.c : Likewise.
17991         * jump.c : Likewise.
17992         * langhooks.c : Likewise.
17993         * lcm.c : Likewise.
17994         * libfuncs.h : Likewise.
17995         * lists.c : Likewise.
17996         * loop-doloop.c : Likewise.
17997         * loop-init.c : Likewise.
17998         * loop-invariant.c : Likewise.
17999         * loop-iv.c : Likewise.
18000         * loop-unroll.c : Likewise.
18001         * lower-subreg.c : Likewise.
18002         * lra-assigns.c : Likewise.
18003         * lra-coalesce.c : Likewise.
18004         * lra-constraints.c : Likewise.
18005         * lra-eliminations.c : Likewise.
18006         * lra-lives.c : Likewise.
18007         * lra-remat.c : Likewise.
18008         * lra-spills.c : Likewise.
18009         * lra.c : Likewise.
18010         * lto-cgraph.c : Likewise.
18011         * lto-compress.c : Likewise.
18012         * lto-opts.c : Likewise.
18013         * lto-section-in.c : Likewise.
18014         * lto-section-out.c : Likewise.
18015         * lto-streamer-in.c : Likewise.
18016         * lto-streamer-out.c : Likewise.
18017         * lto-streamer.c : Likewise.
18018         * lto-streamer.h : Likewise.
18019         * mcf.c : Likewise.
18020         * mode-switching.c : Likewise.
18021         * modulo-sched.c : Likewise.
18022         * omega.c : Likewise.
18023         * omp-low.c : Likewise.
18024         * optabs.c : Likewise.
18025         * opts-global.c : Likewise.
18026         * opts.h : Likewise.
18027         * passes.c : Likewise.
18028         * plugin.c : Likewise.
18029         * postreload-gcse.c : Likewise.
18030         * postreload.c : Likewise.
18031         * predict.c : Likewise.
18032         * print-rtl.c : Likewise.
18033         * print-tree.c : Likewise.
18034         * profile.c : Likewise.
18035         * read-md.c : Likewise.
18036         * read-md.h : Likewise.
18037         * read-rtl.c : Likewise.
18038         * real.c : Likewise.
18039         * realmpfr.c : Likewise.
18040         * recog.c : Likewise.
18041         * ree.c : Likewise.
18042         * reg-stack.c : Likewise.
18043         * regcprop.c : Likewise.
18044         * reginfo.c : Likewise.
18045         * regrename.c : Likewise.
18046         * regstat.c : Likewise.
18047         * reload.c : Likewise.
18048         * reload1.c : Likewise.
18049         * reorg.c : Likewise.
18050         * resource.c : Likewise.
18051         * rtl-chkp.c : Likewise.
18052         * rtl.c : Likewise.
18053         * rtl.h : Likewise.
18054         * rtlanal.c : Likewise.
18055         * rtlhash.c : Likewise.
18056         * rtlhash.h : Likewise.
18057         * rtlhooks.c : Likewise.
18058         * sanopt.c : Likewise.
18059         * sched-deps.c : Likewise.
18060         * sched-ebb.c : Likewise.
18061         * sched-rgn.c : Likewise.
18062         * sched-vis.c : Likewise.
18063         * sdbout.c : Likewise.
18064         * sel-sched-dump.c : Likewise.
18065         * sel-sched-ir.c : Likewise.
18066         * sel-sched-ir.h : Likewise.
18067         * sel-sched.c : Likewise.
18068         * sese.c : Likewise.
18069         * shrink-wrap.c : Likewise.
18070         * shrink-wrap.h : Likewise.
18071         * simplify-rtx.c : Likewise.
18072         * stack-ptr-mod.c : Likewise.
18073         * statistics.c : Likewise.
18074         * stmt.c : Likewise.
18075         * stor-layout.c : Likewise.
18076         * store-motion.c : Likewise.
18077         * stringpool.c : Likewise.
18078         * symtab.c : Likewise.
18079         * target-globals.c : Likewise.
18080         * targhooks.c : Likewise.
18081         * tlink.c : Likewise.
18082         * toplev.c : Likewise.
18083         * tracer.c : Likewise.
18084         * trans-mem.c : Likewise.
18085         * tree-affine.c : Likewise.
18086         * tree-affine.h : Likewise.
18087         * tree-browser.c : Likewise.
18088         * tree-call-cdce.c : Likewise.
18089         * tree-cfg.c : Likewise.
18090         * tree-cfgcleanup.c : Likewise.
18091         * tree-chkp-opt.c : Likewise.
18092         * tree-chkp.c : Likewise.
18093         * tree-chrec.c : Likewise.
18094         * tree-complex.c : Likewise.
18095         * tree-data-ref.c : Likewise.
18096         * tree-dfa.c : Likewise.
18097         * tree-diagnostic.c : Likewise.
18098         * tree-dump.c : Likewise.
18099         * tree-eh.c : Likewise.
18100         * tree-eh.h : Likewise.
18101         * tree-emutls.c : Likewise.
18102         * tree-hasher.h : Likewise.
18103         * tree-if-conv.c : Likewise.
18104         * tree-inline.c : Likewise.
18105         * tree-inline.h : Likewise.
18106         * tree-into-ssa.c : Likewise.
18107         * tree-iterator.c : Likewise.
18108         * tree-loop-distribution.c : Likewise.
18109         * tree-nested.c : Likewise.
18110         * tree-nrv.c : Likewise.
18111         * tree-object-size.c : Likewise.
18112         * tree-outof-ssa.c : Likewise.
18113         * tree-parloops.c : Likewise.
18114         * tree-phinodes.c : Likewise.
18115         * tree-predcom.c : Likewise.
18116         * tree-pretty-print.c : Likewise.
18117         * tree-profile.c : Likewise.
18118         * tree-scalar-evolution.c : Likewise.
18119         * tree-sra.c : Likewise.
18120         * tree-ssa-address.c : Likewise.
18121         * tree-ssa-alias.c : Likewise.
18122         * tree-ssa-ccp.c : Likewise.
18123         * tree-ssa-coalesce.c : Likewise.
18124         * tree-ssa-copy.c : Likewise.
18125         * tree-ssa-copyrename.c : Likewise.
18126         * tree-ssa-dce.c : Likewise.
18127         * tree-ssa-dom.c : Likewise.
18128         * tree-ssa-dse.c : Likewise.
18129         * tree-ssa-forwprop.c : Likewise.
18130         * tree-ssa-ifcombine.c : Likewise.
18131         * tree-ssa-live.c : Likewise.
18132         * tree-ssa-loop-ch.c : Likewise.
18133         * tree-ssa-loop-im.c : Likewise.
18134         * tree-ssa-loop-ivcanon.c : Likewise.
18135         * tree-ssa-loop-ivopts.c : Likewise.
18136         * tree-ssa-loop-manip.c : Likewise.
18137         * tree-ssa-loop-niter.c : Likewise.
18138         * tree-ssa-loop-prefetch.c : Likewise.
18139         * tree-ssa-loop-unswitch.c : Likewise.
18140         * tree-ssa-loop.c : Likewise.
18141         * tree-ssa-math-opts.c : Likewise.
18142         * tree-ssa-operands.c : Likewise.
18143         * tree-ssa-phiopt.c : Likewise.
18144         * tree-ssa-phiprop.c : Likewise.
18145         * tree-ssa-pre.c : Likewise.
18146         * tree-ssa-propagate.c : Likewise.
18147         * tree-ssa-reassoc.c : Likewise.
18148         * tree-ssa-sccvn.c : Likewise.
18149         * tree-ssa-scopedtables.c : Likewise.
18150         * tree-ssa-sink.c : Likewise.
18151         * tree-ssa-strlen.c : Likewise.
18152         * tree-ssa-structalias.c : Likewise.
18153         * tree-ssa-tail-merge.c : Likewise.
18154         * tree-ssa-ter.c : Likewise.
18155         * tree-ssa-threadedge.c : Likewise.
18156         * tree-ssa-threadupdate.c : Likewise.
18157         * tree-ssa-uncprop.c : Likewise.
18158         * tree-ssa-uninit.c : Likewise.
18159         * tree-ssa.c : Likewise.
18160         * tree-ssanames.c : Likewise.
18161         * tree-stdarg.c : Likewise.
18162         * tree-streamer-in.c : Likewise.
18163         * tree-streamer-out.c : Likewise.
18164         * tree-streamer.c : Likewise.
18165         * tree-streamer.h : Likewise.
18166         * tree-switch-conversion.c : Likewise.
18167         * tree-tailcall.c : Likewise.
18168         * tree-vect-data-refs.c : Likewise.
18169         * tree-vect-generic.c : Likewise.
18170         * tree-vect-loop-manip.c : Likewise.
18171         * tree-vect-loop.c : Likewise.
18172         * tree-vect-patterns.c : Likewise.
18173         * tree-vect-slp.c : Likewise.
18174         * tree-vect-stmts.c : Likewise.
18175         * tree-vectorizer.c : Likewise.
18176         * tree-vectorizer.h : Likewise.
18177         * tree-vrp.c : Likewise.
18178         * tree.c : Likewise.
18179         * tsan.c : Likewise.
18180         * ubsan.c : Likewise.
18181         * valtrack.c : Likewise.
18182         * valtrack.h : Likewise.
18183         * value-prof.c : Likewise.
18184         * var-tracking.c : Likewise.
18185         * varasm.c : Likewise.
18186         * varpool.c : Likewise.
18187         * vec.c: Likewise.
18188         * vmsdbgout.c : Likewise.
18189         * vtable-verify.c : Likewise.
18190         * vtable-verify.h : Likewise.
18191         * web.c : Likewise.
18192         * wide-int.cc : Likewise.
18193         * xcoffout.c : Likewise.
18194         * config/aarch64/aarch64-builtins.c : Likewise.
18195         * config/aarch64/aarch64.c : Likewise.
18196         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18197         * config/alpha/alpha.c : Likewise.
18198         * config/arc/arc.c : Likewise.
18199         * config/arm/aarch-common.c : Likewise.
18200         * config/arm/arm-builtins.c : Likewise.
18201         * config/arm/arm-c.c : Likewise.
18202         * config/arm/arm.c : Likewise.
18203         * config/avr/avr-c.c : Likewise.
18204         * config/avr/avr-log.c : Likewise.
18205         * config/avr/avr.c : Likewise.
18206         * config/bfin/bfin.c : Likewise.
18207         * config/c6x/c6x.c : Likewise.
18208         * config/cr16/cr16.c : Likewise.
18209         * config/cris/cris.c : Likewise.
18210         * config/darwin-c.c : Likewise.
18211         * config/darwin.c : Likewise.
18212         * config/default-c.c : Likewise.
18213         * config/epiphany/epiphany.c : Likewise.
18214         * config/epiphany/mode-switch-use.c : Likewise.
18215         * config/epiphany/resolve-sw-modes.c : Likewise.
18216         * config/fr30/fr30.c : Likewise.
18217         * config/frv/frv.c : Likewise.
18218         * config/ft32/ft32.c : Likewise.
18219         * config/glibc-c.c : Likewise.
18220         * config/h8300/h8300.c : Likewise.
18221         * config/i386/i386-c.c : Likewise.
18222         * config/i386/i386.c : Likewise.
18223         * config/i386/msformat-c.c : Likewise.
18224         * config/i386/winnt-cxx.c : Likewise.
18225         * config/i386/winnt-stubs.c : Likewise.
18226         * config/i386/winnt.c : Likewise.
18227         * config/ia64/ia64-c.c : Likewise.
18228         * config/ia64/ia64.c : Likewise.
18229         * config/iq2000/iq2000.c : Likewise.
18230         * config/lm32/lm32.c : Likewise.
18231         * config/m32c/m32c-pragma.c : Likewise.
18232         * config/m32c/m32c.c : Likewise.
18233         * config/m32r/m32r.c : Likewise.
18234         * config/m68k/m68k.c : Likewise.
18235         * config/mcore/mcore.c : Likewise.
18236         * config/mep/mep-pragma.c : Likewise.
18237         * config/mep/mep.c : Likewise.
18238         * config/microblaze/microblaze-c.c : Likewise.
18239         * config/microblaze/microblaze.c : Likewise.
18240         * config/mips/mips.c : Likewise.
18241         * config/mmix/mmix.c : Likewise.
18242         * config/mn10300/mn10300.c : Likewise.
18243         * config/moxie/moxie.c : Likewise.
18244         * config/msp430/msp430-c.c : Likewise.
18245         * config/msp430/msp430.c : Likewise.
18246         * config/nds32/nds32-cost.c : Likewise.
18247         * config/nds32/nds32-fp-as-gp.c : Likewise.
18248         * config/nds32/nds32-intrinsic.c : Likewise.
18249         * config/nds32/nds32-isr.c : Likewise.
18250         * config/nds32/nds32-md-auxiliary.c : Likewise.
18251         * config/nds32/nds32-memory-manipulation.c : Likewise.
18252         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18253         * config/nds32/nds32-predicates.c : Likewise.
18254         * config/nds32/nds32.c : Likewise.
18255         * config/nios2/nios2.c : Likewise.
18256         * config/nvptx/nvptx.c : Likewise.
18257         * config/pa/pa.c : Likewise.
18258         * config/pdp11/pdp11.c : Likewise.
18259         * config/rl78/rl78-c.c : Likewise.
18260         * config/rl78/rl78.c : Likewise.
18261         * config/rs6000/rs6000-c.c : Likewise.
18262         * config/rs6000/rs6000.c : Likewise.
18263         * config/rx/rx.c : Likewise.
18264         * config/s390/s390-c.c : Likewise.
18265         * config/s390/s390.c : Likewise.
18266         * config/sh/sh-c.c : Likewise.
18267         * config/sh/sh-mem.cc : Likewise.
18268         * config/sh/sh.c : Likewise.
18269         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18270         * config/sh/sh_treg_combine.cc : Likewise.
18271         * config/sol2-c.c : Likewise.
18272         * config/sol2-cxx.c : Likewise.
18273         * config/sol2-stubs.c : Likewise.
18274         * config/sol2.c : Likewise.
18275         * config/sparc/sparc-c.c : Likewise.
18276         * config/sparc/sparc.c : Likewise.
18277         * config/spu/spu-c.c : Likewise.
18278         * config/spu/spu.c : Likewise.
18279         * config/stormy16/stormy16.c : Likewise.
18280         * config/tilegx/mul-tables.c : Likewise.
18281         * config/tilegx/tilegx-c.c : Likewise.
18282         * config/tilegx/tilegx.c : Likewise.
18283         * config/tilepro/mul-tables.c : Likewise.
18284         * config/tilepro/tilepro-c.c : Likewise.
18285         * config/tilepro/tilepro.c : Likewise.
18286         * config/v850/v850-c.c : Likewise.
18287         * config/v850/v850.c : Likewise.
18288         * config/vax/vax.c : Likewise.
18289         * config/visium/visium.c : Likewise.
18290         * config/vms/vms-c.c : Likewise.
18291         * config/vms/vms.c : Likewise.
18292         * config/vxworks.c : Likewise.
18293         * config/winnt-c.c : Likewise.
18294         * config/xtensa/xtensa.c : Likewise.
18295
18296 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
18297
18298         PR lto/65378
18299         * ipa-utils.h (warn_types_mismatch): Update prototype.
18300         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18301         parameters.
18302         (type_mismatch_p): New function.
18303         (warn_types_mismatch): Reorg to work better on non-C++ types.
18304         (odr_types_equivalent_p): Add loc1/loc2 parameters.
18305         (add_type_duplicate): Update.
18306
18307 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18308
18309         PR rtl-optimization/66444
18310         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18311         call_used_regs.
18312
18313 2015-06-08  Richard Biener  <rguenther@suse.de>
18314
18315         PR tree-optimization/66422
18316         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18317         block after inserted gcc_unreachable.
18318
18319 2015-06-08  Nick Clifton  <nickc@redhat.com>
18320
18321         * config/rx/rx.c (rx_function_value): Do not promote vector types.
18322         (rx_promote_function_mode): Likewise.
18323         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18324
18325 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
18326
18327         * genattrtab.c (insn_alternatives): Change type from int *
18328         to uint64_t *.
18329         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
18330         (get_attr_value): Change type of num_alt to uint64_t.
18331         (compute_alternative_mask): Change return type from
18332         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
18333         (make_alternative_compare, mk_attr_alt): Change argument type
18334         from int to uint64_t.
18335         (simplify_test_exp): Change type of i from int to uint64_t.
18336         Shift ((uint64_t) 1) instead of 1 up.
18337         (main): Adjust oballocvec first argument from int to uint64_t.
18338         Shift ((uint64_t) 1) instead of 1 up.
18339
18340 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
18341
18342         PR other/65366
18343         * gdbhooks.py: Import sys.
18344         (intptr): New function.  Replace int(...) by intptr(...).
18345
18346 2015-06-08  Richard Biener  <rguenther@suse.de>
18347
18348         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18349         adjustment for gaps at the end of a SLP load group properly.
18350         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18351         all permutations we can generate.
18352         (vect_transform_slp_perm_load): Use the correct group-size.
18353
18354 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
18355
18356         * genmatch.c (expr::gen_transform): For conditions, guess the type
18357         from the second operand.
18358
18359 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18360
18361         PR tree-optimization/66442
18362         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18363         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18364         if the loop latch is not a singleton.  Use
18365         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18366
18367 2015-06-08  Marek Polacek  <polacek@redhat.com>
18368
18369         PR sanitizer/66452
18370         * toplev.c (check_global_declaration): Don't warn about artificial
18371         decls.
18372
18373 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18374
18375         PR tree-optimization/66436
18376         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18377         dump file.
18378         * gimplify.c: Add tree-dump.h include.
18379         (gimplify_function_tree): Dump function to gimple dump file.
18380         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18381         dump file.
18382
18383 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18384
18385         PR tree-optimization/66435
18386         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18387         function.
18388
18389 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
18390
18391         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18392         of ptr_type_node to not be ptr_to_node.
18393         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18394         TREE_TYPE of pointers.
18395         * gimple-expr.c (useless_type_conversion): Reorder the check for
18396         function pointers and TYPE_CANONICAL.
18397
18398 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
18399
18400         PR bootstrap/66319
18401         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18402         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18403         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18404         later.
18405         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18406         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18407         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18408         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18409         and non iso if unix2003.
18410
18411 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
18412
18413         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18414
18415 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
18416
18417         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18418         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18419         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18420         except.c, final.c, function.c, gcse-common.c, genemit.c,
18421         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18422         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18423         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18424         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18425         more derived ones.
18426
18427 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
18428
18429         * combine.c (combine_split_insns): Remove cast.
18430         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18431         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18432         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18433         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18434         * genemit.c (gen_split): Change return type of generated functions to
18435         rtx_insn.
18436         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18437         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18438         gen_peephole2_* functions.
18439         (print_subroutine, main): Likewise.
18440         * recog.c (peephole2_optimize): Remove cast.
18441         (peep2_next_insn): Promote return type to rtx_insn.
18442         * recog.h (peep2_next_insn): Fix prototype.
18443         * rtl.h (try_split, split_insns): Likewise.
18444
18445 2015-06-06  DJ Delorie  <dj@redhat.com>
18446
18447         * config/msp430/msp430.c (msp430_asm_integer): Support addition
18448         and subtraction too.
18449
18450 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18451
18452         PR target/66410
18453         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18454         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18455         instead of Snd.  Disparage Sid/z alternative with '^'.
18456
18457 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
18458
18459         * dwarf2out.c: Remove deferred_locations*.
18460         (dwarf2_debug_hooks): Add early_finish hook.
18461         Remove global_decl hook.
18462         Add early_global_decl and late_global_decl hook.
18463         New global early_dwarf.
18464         New structure set_early_dwarf.
18465         (output_die): Indicate whether a DIE was generated early
18466         when generating assembly with -dA.
18467         (struct limbo_die_struct): Document created_for field.
18468         Remove file_table_last_lookup.
18469         (remove_AT): Return TRUE if successful.
18470         (remove_child_TAG): Clear die_parent.
18471         (reparent_child): New function abstracted from...
18472         (splice_child_die): ...here.
18473         (new_die): ICE if a DIE ends up in limbo too late.
18474         (check_die): New.
18475         (defer_location): Remove.
18476         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18477         (fill_variable_array_bounds): New.
18478         (decl_start_label): Call fill_variable_array_bounds.
18479         (gen_formal_parameter_die): Rewrite to reuse previously generated
18480         DIEs.
18481         (gen_subprogram_die): Same.
18482         (gen_variable_die): Same.
18483         (gen_const_die): Same.
18484         (gen_label_die): Same.
18485         (gen_lexical_block_die): Same.
18486         (decl_will_get_specification_p): New.
18487         (local_function_static): New.
18488         (gen_struct_or_union_type_die): Fill in variable-length fields.
18489         (gen_typedef_die): Fill in variable-length typedefs.
18490         (gen_tagged_type_die): Gracefully return on error_mark_node.
18491         Handle re-entrancy.
18492         (gen_type_die_with_usage): Handle variable-length types.
18493         Remove duplicate code for ARRAY_TYPE case.
18494         (process_scope_var): Only process imported modules during early
18495         dwarf.
18496         (dwarf2out_early_global_decl): New.
18497         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18498         (dwarf2out_type_decl): Set early_dwarf while calling
18499         dwarf2out_decl.
18500         (dwarf2out_decl): Verify that we did not recreate a previously
18501         generated DIE.
18502         Do not return on DECL_EXTERNALs in VAR_DECLs.
18503         Abstract some code to local_function_static.
18504         (lookup_filename): Remove use of file_table_last_lookup.
18505         Gracefully exit on missing file_name.
18506         (dwarf2out_finish): Verify limbo list.
18507         Remove deferred_locations_list use.
18508         Move deferred_asm_name and limbo flushing to...
18509         (dwarf2out_early_finish): ...here.  New.
18510         (dwarf2out_c_finalize): Remove set of deferred_location_list,
18511         deferred_asm_name, and file_table_last_lookup.
18512         * cgraph.h (referred_to_p): Add default argument.
18513         * cgraphunit.c (referred_to_p): Add and handle include_self
18514         argument.
18515         (analyze_functions): Add first_time argument.
18516         Call check_global_declaration for all symbols.
18517         Call late_global_decl for nodes for moribund nodes.
18518         (finalize_compilation_unit): Add new argument to
18519         analyze_functions.
18520         Call early_global_decl for functions.
18521         Call early_finish debug hook.
18522         * dbxout.c (dbxout_early_global_decl): New.
18523         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
18524         (dbx_debug_hooks): Add new hooks.
18525         (xcoff_debug_hooks): Same.
18526         * debug.c (do_nothing_debug_hooks): Add early_finish field.
18527         Add early and late debug hooks.
18528         Remove global_decl hook.
18529         * debug.h (struct gcc_debug_hooks): Add early_finish,
18530         early_global_decl, and late_global_decl fields.
18531         Remove global_decl field.
18532         Document gcc_debug_hooks.
18533         * gengtype.c (output_typename): Remove.
18534         * godump.c (go_early_global_decl): New.
18535         (go_late_global_decl): New.
18536         (go_global_decl): Remove.
18537         (dump_go_spec_init): Remove global_decl.  Add
18538         {early,late}_global_decl.
18539         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18540         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18541         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18542         (write_global_declarations): Remove.
18543         (global_decl_processing): New.
18544         * langhooks.h (struct lang_hooks_for_decls): Remove
18545         final_write_globals field.
18546         Add post_compilation_parsing_cleanups field.
18547         * passes.c (rest_of_decl_compilation): Call early_global_decl.
18548         * sdbout.c: Add early and late_global_decl hooks.  Remove
18549         sdbout_global_decl hook.
18550         Add early_finish field for sdb_debug_hooks.
18551         (sdbout_global_decl): Remove.
18552         (sdbout_early_global_decl): New.
18553         (sdbout_late_global_decl): New.
18554         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18555         * toplev.c (check_global_declaration): Rename from
18556         check_global_declaration_1.
18557         Adapt to use symtab infrastructure.
18558         (check_global_declarations): Remove.
18559         (emit_debug_global_declarations): Remove.
18560         (compile_file): Remove call to final_write_globals langhook.
18561         Run the actual compilation process.
18562         Perform any post compilation parser cleanups.
18563         Generate late debug info.
18564         * toplev.h (check_global_declaration): New.
18565         (check_global_declaration_1): Remove.
18566         (check_global_declarations): Remove.
18567         (write_global_declarations): Remove.
18568         (emit_debug_global_declarations): Remove.
18569         (global_decl_processing): New.
18570         * tree-core.h (struct tree_block): Add DIE field.
18571         * tree.h (BLOCK_DIE): New.
18572         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18573         throughout.
18574         (vmsdbgout_early_global_decl): New.
18575         (vmsdbgout_late_global_decl): New.
18576         Add early_finish debug hook field to vmsdbg_debug_hooks.
18577         Remove vmsdbgout_decl to vmsdbgout_function_decl.
18578         Add early and late_global_decl debug hooks.
18579
18580 2015-06-05  Julian Brown  <julian@codesourcery.com>
18581             Sandra Loosemore  <sandra@codesourcery.com>
18582
18583         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18584         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18585         to print-sysroot-suffix.sh script.
18586
18587 2015-06-05  Tom de Vries  <tom@codesourcery.com>
18588
18589         merge from gomp4 branch:
18590         2015-05-28  Tom de Vries  <tom@codesourcery.com>
18591
18592         PR tree-optimization/65443
18593         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18594         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18595         (try_transform_to_exit_first_loop_alt): New function.
18596         (transform_to_exit_first_loop): Use
18597         try_transform_to_exit_first_loop_alt.
18598
18599 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
18600
18601         * builtins.c (expand_builtin_atomic_compare_exchange): Call
18602         emit_cmp_and_jump_insns with the mode of target.
18603
18604 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18605
18606         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18607
18608 2015-06-04  DJ Delorie  <dj@redhat.com>
18609
18610         * config/msp430/msp430.md (movsi_s): New.  Special case for
18611         storing a 20-bit symbol into a 32-bit register.
18612         * config/msp430/msp430.c (msp430_subreg): Add support for it.
18613         * config/msp430/predicates.md (msp430_symbol_operand): New.
18614
18615 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
18616
18617         * c-family/c-common.c (noplt): New attribute.
18618         (handle_noplt_attribute): New handler.
18619         * calls.c (prepare_call_address): Check for noplt
18620         attribute.
18621         * config/i386/i386.c (ix86_expand_call): Check
18622         for noplt attribute.
18623         (ix86_nopic_noplt_attribute_p): New function.
18624         (ix86_output_call_insn): Output indirect call for non-pic
18625         no plt calls.
18626         * doc/extend.texi (noplt): Document new attribute.
18627         * doc/invoke.texi: Document new attribute.
18628
18629 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
18630
18631         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18632         real.h, and fixed-value.h when included in host source files.
18633         * double-int.h: Remove redundant #includes listed above.
18634         * fixed-value.h: Likewise.
18635         * real.h: Likewise.
18636         * wide-int.h: Likewise.
18637         * inchash.h: Likewise.
18638         * rtl.h: Add some include files When included from a generator file.
18639         * target.h: Remove wide-int.h and insn-modes.h from the include list.
18640         * internal-fn.h: Don't include coretypes.h.
18641         * alias.c: Adjust includes for restructured coretypes.h.
18642         * asan.c: Likewise.
18643         * attribs.c: Likewise.
18644         * auto-inc-dec.c: Likewise.
18645         * auto-profile.c: Likewise.
18646         * bb-reorder.c: Likewise.
18647         * bt-load.c: Likewise.
18648         * builtins.c: Likewise.
18649         * caller-save.c: Likewise.
18650         * calls.c: Likewise.
18651         * ccmp.c: Likewise.
18652         * cfg.c: Likewise.
18653         * cfganal.c: Likewise.
18654         * cfgbuild.c: Likewise.
18655         * cfgcleanup.c: Likewise.
18656         * cfgexpand.c: Likewise.
18657         * cfghooks.c: Likewise.
18658         * cfgloop.c: Likewise.
18659         * cfgloop.h: Likewise.
18660         * cfgloopanal.c: Likewise.
18661         * cfgloopmanip.c: Likewise.
18662         * cfgrtl.c: Likewise.
18663         * cgraph.c: Likewise.
18664         * cgraphbuild.c: Likewise.
18665         * cgraphclones.c: Likewise.
18666         * cgraphunit.c: Likewise.
18667         * cilk-common.c: Likewise.
18668         * combine-stack-adj.c: Likewise.
18669         * combine.c: Likewise.
18670         * compare-elim.c: Likewise.
18671         * convert.c: Likewise.
18672         * coverage.c: Likewise.
18673         * cppbuiltin.c: Likewise.
18674         * cprop.c: Likewise.
18675         * cse.c: Likewise.
18676         * cselib.c: Likewise.
18677         * data-streamer-in.c: Likewise.
18678         * data-streamer-out.c: Likewise.
18679         * data-streamer.c: Likewise.
18680         * dbxout.c: Likewise.
18681         * dce.c: Likewise.
18682         * ddg.c: Likewise.
18683         * debug.c: Likewise.
18684         * df-core.c: Likewise.
18685         * df-problems.c: Likewise.
18686         * df-scan.c: Likewise.
18687         * df.h: Likewise.
18688         * dfp.c: Likewise.
18689         * dojump.c: Likewise.
18690         * dominance.c: Likewise.
18691         * domwalk.c: Likewise.
18692         * double-int.c: Likewise.
18693         * dse.c: Likewise.
18694         * dumpfile.c: Likewise.
18695         * dwarf2asm.c: Likewise.
18696         * dwarf2cfi.c: Likewise.
18697         * dwarf2out.c: Likewise.
18698         * dwarf2out.h: Likewise.
18699         * emit-rtl.c: Likewise.
18700         * et-forest.c: Likewise.
18701         * except.c: Likewise.
18702         * explow.c: Likewise.
18703         * expmed.c: Likewise.
18704         * expr.c: Likewise.
18705         * final.c: Likewise.
18706         * fixed-value.c: Likewise.
18707         * fold-const.c: Likewise.
18708         * function.c: Likewise.
18709         * fwprop.c: Likewise.
18710         * gcc-plugin.h: Likewise.
18711         * gcse.c: Likewise.
18712         * generic-match-head.c: Likewise.
18713         * ggc-page.c: Likewise.
18714         * gimple-builder.c: Likewise.
18715         * gimple-expr.c: Likewise.
18716         * gimple-fold.c: Likewise.
18717         * gimple-iterator.c: Likewise.
18718         * gimple-low.c: Likewise.
18719         * gimple-match-head.c: Likewise.
18720         * gimple-pretty-print.c: Likewise.
18721         * gimple-ssa-isolate-paths.c: Likewise.
18722         * gimple-ssa-strength-reduction.c: Likewise.
18723         * gimple-streamer-in.c: Likewise.
18724         * gimple-streamer-out.c: Likewise.
18725         * gimple-streamer.h: Likewise.
18726         * gimple-walk.c: Likewise.
18727         * gimple.c: Likewise.
18728         * gimplify-me.c: Likewise.
18729         * gimplify.c: Likewise.
18730         * godump.c: Likewise.
18731         * graph.c: Likewise.
18732         * graphite-blocking.c: Likewise.
18733         * graphite-dependences.c: Likewise.
18734         * graphite-interchange.c: Likewise.
18735         * graphite-isl-ast-to-gimple.c: Likewise.
18736         * graphite-optimize-isl.c: Likewise.
18737         * graphite-poly.c: Likewise.
18738         * graphite-scop-detection.c: Likewise.
18739         * graphite-sese-to-poly.c: Likewise.
18740         * graphite.c: Likewise.
18741         * haifa-sched.c: Likewise.
18742         * hooks.h: Likewise.
18743         * hw-doloop.c: Likewise.
18744         * ifcvt.c: Likewise.
18745         * incpath.c: Likewise.
18746         * init-regs.c: Likewise.
18747         * internal-fn.c: Likewise.
18748         * ipa-chkp.c: Likewise.
18749         * ipa-comdats.c: Likewise.
18750         * ipa-cp.c: Likewise.
18751         * ipa-devirt.c: Likewise.
18752         * ipa-icf-gimple.c: Likewise.
18753         * ipa-icf.c: Likewise.
18754         * ipa-inline-analysis.c: Likewise.
18755         * ipa-inline-transform.c: Likewise.
18756         * ipa-inline.c: Likewise.
18757         * ipa-polymorphic-call.c: Likewise.
18758         * ipa-profile.c: Likewise.
18759         * ipa-prop.c: Likewise.
18760         * ipa-pure-const.c: Likewise.
18761         * ipa-ref.c: Likewise.
18762         * ipa-reference.c: Likewise.
18763         * ipa-split.c: Likewise.
18764         * ipa-utils.c: Likewise.
18765         * ipa-visibility.c: Likewise.
18766         * ipa.c: Likewise.
18767         * ira-build.c: Likewise.
18768         * ira-color.c: Likewise.
18769         * ira-conflicts.c: Likewise.
18770         * ira-costs.c: Likewise.
18771         * ira-emit.c: Likewise.
18772         * ira-lives.c: Likewise.
18773         * ira.c: Likewise.
18774         * jump.c: Likewise.
18775         * langhooks.c: Likewise.
18776         * lcm.c: Likewise.
18777         * loop-doloop.c: Likewise.
18778         * loop-init.c: Likewise.
18779         * loop-invariant.c: Likewise.
18780         * loop-iv.c: Likewise.
18781         * loop-unroll.c: Likewise.
18782         * lower-subreg.c: Likewise.
18783         * lra-assigns.c: Likewise.
18784         * lra-coalesce.c: Likewise.
18785         * lra-constraints.c: Likewise.
18786         * lra-eliminations.c: Likewise.
18787         * lra-lives.c: Likewise.
18788         * lra-remat.c: Likewise.
18789         * lra-spills.c: Likewise.
18790         * lra.c: Likewise.
18791         * lto-cgraph.c: Likewise.
18792         * lto-compress.c: Likewise.
18793         * lto-opts.c: Likewise.
18794         * lto-section-in.c: Likewise.
18795         * lto-section-out.c: Likewise.
18796         * lto-streamer-in.c: Likewise.
18797         * lto-streamer-out.c: Likewise.
18798         * lto-streamer.c: Likewise.
18799         * mcf.c: Likewise.
18800         * mode-switching.c: Likewise.
18801         * modulo-sched.c: Likewise.
18802         * omega.c: Likewise.
18803         * omp-low.c: Likewise.
18804         * optabs.c: Likewise.
18805         * opts-global.c: Likewise.
18806         * passes.c: Likewise.
18807         * plugin.c: Likewise.
18808         * postreload-gcse.c: Likewise.
18809         * postreload.c: Likewise.
18810         * predict.c: Likewise.
18811         * print-rtl.c: Likewise.
18812         * print-tree.c: Likewise.
18813         * profile.c: Likewise.
18814         * real.c: Likewise.
18815         * realmpfr.c: Likewise.
18816         * realmpfr.h: Likewise.
18817         * recog.c: Likewise.
18818         * ree.c: Likewise.
18819         * reg-stack.c: Likewise.
18820         * regcprop.c: Likewise.
18821         * reginfo.c: Likewise.
18822         * regrename.c: Likewise.
18823         * regs.h: Likewise.
18824         * regstat.c: Likewise.
18825         * reload.c: Likewise.
18826         * reload1.c: Likewise.
18827         * reorg.c: Likewise.
18828         * resource.c: Likewise.
18829         * rtl-chkp.c: Likewise.
18830         * rtlanal.c: Likewise.
18831         * rtlhooks.c: Likewise.
18832         * sanopt.c: Likewise.
18833         * sched-deps.c: Likewise.
18834         * sched-ebb.c: Likewise.
18835         * sched-rgn.c: Likewise.
18836         * sched-vis.c: Likewise.
18837         * sdbout.c: Likewise.
18838         * sel-sched-dump.c: Likewise.
18839         * sel-sched-ir.c: Likewise.
18840         * sel-sched.c: Likewise.
18841         * sese.c: Likewise.
18842         * shrink-wrap.c: Likewise.
18843         * shrink-wrap.h: Likewise.
18844         * simplify-rtx.c: Likewise.
18845         * stack-ptr-mod.c: Likewise.
18846         * statistics.c: Likewise.
18847         * stmt.c: Likewise.
18848         * stor-layout.c: Likewise.
18849         * store-motion.c: Likewise.
18850         * stringpool.c: Likewise.
18851         * symtab.c: Likewise.
18852         * target-globals.c: Likewise.
18853         * targhooks.c: Likewise.
18854         * toplev.c: Likewise.
18855         * tracer.c: Likewise.
18856         * trans-mem.c: Likewise.
18857         * tree-affine.c: Likewise.
18858         * tree-affine.h: Likewise.
18859         * tree-browser.c: Likewise.
18860         * tree-call-cdce.c: Likewise.
18861         * tree-cfg.c: Likewise.
18862         * tree-cfgcleanup.c: Likewise.
18863         * tree-chkp-opt.c: Likewise.
18864         * tree-chkp.c: Likewise.
18865         * tree-chrec.c: Likewise.
18866         * tree-complex.c: Likewise.
18867         * tree-data-ref.c: Likewise.
18868         * tree-dfa.c: Likewise.
18869         * tree-diagnostic.c: Likewise.
18870         * tree-dump.c: Likewise.
18871         * tree-eh.c: Likewise.
18872         * tree-emutls.c: Likewise.
18873         * tree-if-conv.c: Likewise.
18874         * tree-inline.c: Likewise.
18875         * tree-into-ssa.c: Likewise.
18876         * tree-iterator.c: Likewise.
18877         * tree-loop-distribution.c: Likewise.
18878         * tree-nested.c: Likewise.
18879         * tree-nrv.c: Likewise.
18880         * tree-object-size.c: Likewise.
18881         * tree-outof-ssa.c: Likewise.
18882         * tree-parloops.c: Likewise.
18883         * tree-phinodes.c: Likewise.
18884         * tree-predcom.c: Likewise.
18885         * tree-pretty-print.c: Likewise.
18886         * tree-pretty-print.h: Likewise.
18887         * tree-profile.c: Likewise.
18888         * tree-scalar-evolution.c: Likewise.
18889         * tree-sra.c: Likewise.
18890         * tree-ssa-address.c: Likewise.
18891         * tree-ssa-alias.c: Likewise.
18892         * tree-ssa-ccp.c: Likewise.
18893         * tree-ssa-coalesce.c: Likewise.
18894         * tree-ssa-copy.c: Likewise.
18895         * tree-ssa-copyrename.c: Likewise.
18896         * tree-ssa-dce.c: Likewise.
18897         * tree-ssa-dom.c: Likewise.
18898         * tree-ssa-dse.c: Likewise.
18899         * tree-ssa-forwprop.c: Likewise.
18900         * tree-ssa-ifcombine.c: Likewise.
18901         * tree-ssa-live.c: Likewise.
18902         * tree-ssa-loop-ch.c: Likewise.
18903         * tree-ssa-loop-im.c: Likewise.
18904         * tree-ssa-loop-ivcanon.c: Likewise.
18905         * tree-ssa-loop-ivopts.c: Likewise.
18906         * tree-ssa-loop-manip.c: Likewise.
18907         * tree-ssa-loop-niter.c: Likewise.
18908         * tree-ssa-loop-prefetch.c: Likewise.
18909         * tree-ssa-loop-unswitch.c: Likewise.
18910         * tree-ssa-loop.c: Likewise.
18911         * tree-ssa-loop.h: Likewise.
18912         * tree-ssa-math-opts.c: Likewise.
18913         * tree-ssa-operands.c: Likewise.
18914         * tree-ssa-phiopt.c: Likewise.
18915         * tree-ssa-phiprop.c: Likewise.
18916         * tree-ssa-pre.c: Likewise.
18917         * tree-ssa-propagate.c: Likewise.
18918         * tree-ssa-reassoc.c: Likewise.
18919         * tree-ssa-sccvn.c: Likewise.
18920         * tree-ssa-scopedtables.c: Likewise.
18921         * tree-ssa-sink.c: Likewise.
18922         * tree-ssa-strlen.c: Likewise.
18923         * tree-ssa-structalias.c: Likewise.
18924         * tree-ssa-tail-merge.c: Likewise.
18925         * tree-ssa-ter.c: Likewise.
18926         * tree-ssa-threadedge.c: Likewise.
18927         * tree-ssa-threadupdate.c: Likewise.
18928         * tree-ssa-uncprop.c: Likewise.
18929         * tree-ssa-uninit.c: Likewise.
18930         * tree-ssa.c: Likewise.
18931         * tree-ssanames.c: Likewise.
18932         * tree-stdarg.c: Likewise.
18933         * tree-streamer-in.c: Likewise.
18934         * tree-streamer-out.c: Likewise.
18935         * tree-streamer.c: Likewise.
18936         * tree-switch-conversion.c: Likewise.
18937         * tree-tailcall.c: Likewise.
18938         * tree-vect-data-refs.c: Likewise.
18939         * tree-vect-generic.c: Likewise.
18940         * tree-vect-loop-manip.c: Likewise.
18941         * tree-vect-loop.c: Likewise.
18942         * tree-vect-patterns.c: Likewise.
18943         * tree-vect-slp.c: Likewise.
18944         * tree-vect-stmts.c: Likewise.
18945         * tree-vectorizer.c: Likewise.
18946         * tree-vrp.c: Likewise.
18947         * tree.c: Likewise.
18948         * tsan.c: Likewise.
18949         * ubsan.c: Likewise.
18950         * valtrack.c: Likewise.
18951         * value-prof.c: Likewise.
18952         * var-tracking.c: Likewise.
18953         * varasm.c: Likewise.
18954         * varpool.c: Likewise.
18955         * vmsdbgout.c: Likewise.
18956         * vtable-verify.c: Likewise.
18957         * web.c: Likewise.
18958         * wide-int-print.cc: Likewise.
18959         * wide-int-print.h: Likewise.
18960         * wide-int.cc: Likewise.
18961         * xcoffout.c: Likewise.
18962         * config/aarch64/aarch64-builtins.c: Likewise.
18963         * config/aarch64/aarch64.c: Likewise.
18964         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18965         * config/alpha/alpha.c: Likewise.
18966         * config/arc/arc.c: Likewise.
18967         * config/arm/aarch-common.c: Likewise.
18968         * config/arm/arm-builtins.c: Likewise.
18969         * config/arm/arm-c.c: Likewise.
18970         * config/arm/arm.c: Likewise.
18971         * config/avr/avr-c.c: Likewise.
18972         * config/avr/avr-log.c: Likewise.
18973         * config/avr/avr.c: Likewise.
18974         * config/bfin/bfin.c: Likewise.
18975         * config/c6x/c6x.c: Likewise.
18976         * config/cr16/cr16.c: Likewise.
18977         * config/cris/cris.c: Likewise.
18978         * config/darwin-c.c: Likewise.
18979         * config/darwin.c: Likewise.
18980         * config/default-c.c: Likewise.
18981         * config/epiphany/epiphany.c: Likewise.
18982         * config/epiphany/mode-switch-use.c: Likewise.
18983         * config/epiphany/resolve-sw-modes.c: Likewise.
18984         * config/fr30/fr30.c: Likewise.
18985         * config/frv/frv.c: Likewise.
18986         * config/ft32/ft32.c: Likewise.
18987         * config/glibc-c.c: Likewise.
18988         * config/h8300/h8300.c: Likewise.
18989         * config/i386/i386-c.c: Likewise.
18990         * config/i386/i386.c: Likewise.
18991         * config/i386/msformat-c.c: Likewise.
18992         * config/i386/winnt-cxx.c: Likewise.
18993         * config/i386/winnt-stubs.c: Likewise.
18994         * config/i386/winnt.c: Likewise.
18995         * config/ia64/ia64-c.c: Likewise.
18996         * config/ia64/ia64.c: Likewise.
18997         * config/iq2000/iq2000.c: Likewise.
18998         * config/lm32/lm32.c: Likewise.
18999         * config/m32c/m32c-pragma.c: Likewise.
19000         * config/m32c/m32c.c: Likewise.
19001         * config/m32r/m32r.c: Likewise.
19002         * config/m68k/m68k.c: Likewise.
19003         * config/mcore/mcore.c: Likewise.
19004         * config/mep/mep-pragma.c: Likewise.
19005         * config/mep/mep.c: Likewise.
19006         * config/microblaze/microblaze-c.c: Likewise.
19007         * config/microblaze/microblaze.c: Likewise.
19008         * config/mips/mips.c: Likewise.
19009         * config/mmix/mmix.c: Likewise.
19010         * config/mn10300/mn10300.c: Likewise.
19011         * config/moxie/moxie.c: Likewise.
19012         * config/msp430/msp430-c.c: Likewise.
19013         * config/msp430/msp430.c: Likewise.
19014         * config/nds32/nds32-cost.c: Likewise.
19015         * config/nds32/nds32-fp-as-gp.c: Likewise.
19016         * config/nds32/nds32-intrinsic.c: Likewise.
19017         * config/nds32/nds32-isr.c: Likewise.
19018         * config/nds32/nds32-md-auxiliary.c: Likewise.
19019         * config/nds32/nds32-memory-manipulation.c: Likewise.
19020         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19021         * config/nds32/nds32-predicates.c: Likewise.
19022         * config/nds32/nds32.c: Likewise.
19023         * config/nios2/nios2.c: Likewise.
19024         * config/nvptx/nvptx.c: Likewise.
19025         * config/pa/pa.c: Likewise.
19026         * config/pdp11/pdp11.c: Likewise.
19027         * config/rl78/rl78-c.c: Likewise.
19028         * config/rl78/rl78.c: Likewise.
19029         * config/rs6000/rs6000-c.c: Likewise.
19030         * config/rs6000/rs6000.c: Likewise.
19031         * config/rx/rx.c: Likewise.
19032         * config/s390/s390-c.c: Likewise.
19033         * config/s390/s390.c: Likewise.
19034         * config/sh/sh-c.c: Likewise.
19035         * config/sh/sh-mem.cc: Likewise.
19036         * config/sh/sh.c: Likewise.
19037         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19038         * config/sh/sh_treg_combine.cc: Likewise.
19039         * config/sol2-c.c: Likewise.
19040         * config/sol2-cxx.c: Likewise.
19041         * config/sol2-stubs.c: Likewise.
19042         * config/sol2.c: Likewise.
19043         * config/sparc/sparc-c.c: Likewise.
19044         * config/sparc/sparc.c: Likewise.
19045         * config/spu/spu-c.c: Likewise.
19046         * config/spu/spu.c: Likewise.
19047         * config/stormy16/stormy16.c: Likewise.
19048         * config/tilegx/mul-tables.c: Likewise.
19049         * config/tilegx/tilegx-c.c: Likewise.
19050         * config/tilegx/tilegx.c: Likewise.
19051         * config/tilepro/mul-tables.c: Likewise.
19052         * config/tilepro/tilepro-c.c: Likewise.
19053         * config/tilepro/tilepro.c: Likewise.
19054         * config/v850/v850-c.c: Likewise.
19055         * config/v850/v850.c: Likewise.
19056         * config/vax/vax.c: Likewise.
19057         * config/visium/visium.c: Likewise.
19058         * config/vms/vms-c.c: Likewise.
19059         * config/vms/vms.c: Likewise.
19060         * config/vxworks.c: Likewise.
19061         * config/winnt-c.c: Likewise.
19062         * config/xtensa/xtensa.c: Likewise.
19063         * common/config/bfin/bfin-common.c: Likewise.
19064
19065 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
19066
19067         * tree.h (tree_code_for_canonical_type_merging): New function.
19068         * tree.c (gimple_canonical_types_compatible_p): Use
19069         tree_code_for_canonical_type_merging..
19070
19071 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19072
19073         PR c++/66192
19074         PR target/66200
19075         * doc/tm.texi: Regenerate.
19076         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19077         * target.def (TARGET_RELAXED_ORDERING): Likewise.
19078         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19079         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19080         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19081         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19082         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19083         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19084         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19085
19086 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19087
19088         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19089         register fma steering pass.
19090         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19091         AARCH64_TUNE_FMA_STEERING.
19092
19093 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
19094
19095         * tree.c (verify_type_variant): Verify that type and variant is
19096         compatible.
19097         (gimple_canonical_types_compatible_p): Look for main variants.
19098
19099 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19100
19101         * config.gcc (powerpc*-*-*): Add support for a new configure
19102         option --with-advance-toolchain=<xxx> which overrides using the
19103         default header files, libraries and dynamic linker.
19104
19105         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19106         specs to support the configure --with-advance-toolchain=<xxx>
19107         option.
19108         (INCLUDE_EXTRA_SPEC): Likewise.
19109         (LINK_OS_EXTRA_SPEC32): Likewise.
19110         (LINK_OK_EXTRA_SPEC64): Likewise.
19111         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19112         (DYNAMIC_LINKER_PREFIX): Likewise.
19113         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19114         toolchain support.
19115         (GLIBC_DYNAMIC_LINKER32): Likewise.
19116         (GLIBC_DYNAMIC_LINKER64): Likewise.
19117         (LINK_OS_LINUX_SPEC32): Likewise.
19118         (LINK_OS_LINUX_SPEC64): Likewise.
19119
19120         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19121         configuration option.
19122
19123 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
19124
19125         PR target/66275
19126         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19127         to determine current function ABI.
19128         (ix86_function_value_regno_p): Ditto.
19129
19130 2015-06-03  Martin Liska  <mliska@suse.cz>
19131
19132         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19133         * bitmap.h (struct bitmap_usage): Likewise.
19134         * ggc-common.c (struct ggc_usage): Likewise.
19135         * mem-stats.h (struct mem_location): Likewise.
19136         (struct mem_usage): Likewise.
19137         * vec.c (struct vec_usage): Likewise.
19138
19139 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
19140
19141         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19142         -Bsymbolic.
19143
19144 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
19145
19146         * doc/plugins.texi (enum plugin_event): New event.
19147         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19148         and PLUGIN_FINISH_FUNCTION.
19149         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19150         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19151
19152 2015-06-03  Richard Biener  <rguenther@suse.de>
19153
19154         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19155         compute GROUP_GAP for the first element.
19156         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19157         on in-group gaps.
19158
19159 2015-06-03  Nick Clifton  <nickc@redhat.com>
19160
19161         * config/rl78/rl78-real.md: Add peepholes to avoid a register
19162         copy when calling a function.
19163         * config/rl78/rl78.c (need_to_save): Do not push the frame
19164         pointer in an interrupt handler prologue if it is never used.
19165
19166 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19167
19168         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19169
19170 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
19171
19172         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19173         reference when cloning alias node.
19174
19175 2015-06-03  Martin Liska  <mliska@suse.cz>
19176
19177         * alloc-pool.h (struct pool_usage): Correct space padding.
19178         * ggc-page.c (ggc_print_statistics): Align columns in a report.
19179         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19180         * tree.c (dump_tree_statistics): Align columns in a report.
19181
19182 2015-06-03  Martin Liska  <mliska@suse.cz>
19183
19184         * alloc-pool.c (allocate_pool_descriptor): Remove.
19185         (struct pool_output_info): Likewise.
19186         (print_alloc_pool_statistics): Likewise.
19187         (dump_alloc_pool_statistics): Likewise.
19188         * alloc-pool.h (struct pool_usage): New struct.
19189         (pool_allocator::initialize): Change usage of memory statistics
19190         to a new interface.
19191         (pool_allocator::release): Likewise.
19192         (pool_allocator::allocate): Likewise.
19193         (pool_allocator::remove): Likewise.
19194         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19195         for a pool allocator.
19196         * mem-stats.h (struct mem_location): Add new ctor.
19197         (struct mem_usage): Add counter for number of
19198         instances.
19199         (mem_alloc_description::register_descriptor): New overload of
19200         * mem-stats.h (mem_location::to_string): New function.
19201         * bitmap.h (struct bitmap_usage): Use this new function.
19202         * ggc-common.c (struct ggc_usage): Likewise.
19203         the function.
19204
19205 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19206
19207         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19208         of GCC_INSN_FLAGS_H block.
19209
19210 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19211
19212         * explow.c (plus_constant): Update check after force_const_mem call
19213         to see if the value returned is not a NULL_RTX.
19214
19215 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
19216
19217         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19218         remove instumentation thunks calling reachable functions.
19219         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19220         * lto/lto-partition.c (privatize_symbol_name_1): New.
19221         (privatize_symbol_name): Privatize both decl and orig_decl
19222         names for instrumented functions.
19223         * cgraph.c (cgraph_node::verify_node): Add transparent
19224         alias chain check for instrumented node.
19225
19226 2015-06-03  Marek Polacek  <polacek@redhat.com>
19227
19228         PR c/64223
19229         PR c/29358
19230         * tree.c (attribute_value_equal): Handle attribute format.
19231         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19232
19233 2015-06-03  Richard Biener  <rguenther@suse.de>
19234
19235         PR tree-optimization/63916
19236         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19237         Forward-propagate non-invariant addresses by splicing their
19238         reference ops if the result isn't going to be used by PRE.
19239         (vn_reference_lookup_3): Remove pointless assert.
19240
19241 2015-06-03  Richard Biener  <rguenther@suse.de>
19242
19243         PR tree-optimization/66375
19244         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19245         add to the evolution before following SSA edges.
19246
19247 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
19248
19249         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19250         (dump_use, dump_cand, find_induction_variables): Pass new argument
19251         to dump_iv.
19252         (record_use): Preserve the ssa name information in IV.
19253
19254 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19255
19256         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19257         NO_MODE_TEST.
19258         (add_mode_tests): Don't add mode tests if the predicate only
19259         accepts scalar constant integers.  Otherwise, allow the mode
19260         of "op" to be VOIDmode if the predicate does accept such integers.
19261
19262 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
19263
19264         PR target/66258
19265         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19266         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19267         (aarch64_secondary_reload): Likewise
19268         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19269         to !TARGET_FLOAT.
19270         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19271         Likewise.
19272
19273 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
19274             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19275
19276         PR target/65768
19277         * cprop.c (try_replace_reg): Check cost of constants before propagating.
19278
19279 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19280
19281         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19282         provide access to the IBM extended double floating point mode if
19283         long double is IEEE 128-bit floating point.
19284         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19285         point if long double is the IBM extended double type.
19286
19287         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19288         enable adding IEEE 128-bit floating point support.
19289         (-mfloat128-software): Likewise.
19290         (-mfloat128-sw): Likewise.
19291
19292         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19293         128-bit floating point types to occupy any register if
19294         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
19295         -mfloat128-software is enabled.
19296         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19297         support.
19298         (rs6000_option_override_internal): Add -mfloat128-* support.
19299         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19300
19301         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19302         and float128 type nodes.
19303         (ieee128_float_type_node): Likewise.
19304         (ibm128_float_type_node): Likewise.
19305
19306 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19307
19308         PR target/66136
19309         * config/aarch64/geniterators.sh: Rewrite in awk.
19310
19311 2015-06-02  Martin Liska  <mliska@suse.cz>
19312
19313         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19314         values to avoid -Wmaybe-uninitialized errors.
19315
19316 2015-06-02  Richard Biener  <rguenther@suse.de>
19317
19318         PR debug/65549
19319         * dwarf2out.c (lookup_context_die): New function.
19320         (resolve_addr): Avoid forcing a full DIE for the
19321         target of a DW_TAG_GNU_call_site during late compilation.
19322         Instead create a stub DIE without a type if we have a
19323         context DIE present.
19324
19325 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
19326
19327         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
19328
19329 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19330
19331         PR tree-optimization/48052
19332         * cfgloop.h (struct control_iv): New.
19333         (struct loop): New field control_ivs.
19334         * tree-ssa-loop-niter.c : Include "stor-layout.h".
19335         (number_of_iterations_lt): Set no_overflow information.
19336         (number_of_iterations_exit): Init control iv in niter struct.
19337         (record_control_iv): New.
19338         (estimate_numbers_of_iterations_loop): Call record_control_iv.
19339         (loop_exits_before_overflow): New.  Interface factored out of
19340         scev_probably_wraps_p.
19341         (scev_probably_wraps_p): Factor loop niter related code into
19342         loop_exits_before_overflow.
19343         (free_numbers_of_iterations_estimates_loop): Free control ivs.
19344         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
19345
19346 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19347
19348         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19349         the target doesn't belong to the current function.
19350
19351 2015-06-02  Marek Polacek  <polacek@redhat.com>
19352
19353         PR middle-end/66345
19354         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19355         get_maxval_strlen does not produce an INTEGER_CST.
19356
19357 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
19358
19359         * config/arc/constraints.md: Use lower-case names in match_code.
19360         * config/mmix/constraints.md: Likewise.
19361
19362 2015-06-02  Richard Biener  <rguenther@suse.de>
19363
19364         PR tree-optimization/65961
19365         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19366         check and clarify dump message.
19367         (vect_build_slp_tree): If all children are built up from scalars
19368         build up the parent from scalars instead.
19369         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19370
19371 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
19372
19373         PR other/65366
19374         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
19375         instead of print ... .
19376
19377 2015-06-02  Alan Modra  <amodra@gmail.com>
19378
19379         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19380         2014-08-11 change.
19381
19382 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19383
19384         PR tree-optimization/52563
19385         PR tree-optimization/62173
19386         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
19387         (alloc_iv, set_iv): New parameter.
19388         (determine_biv_step): Delete.
19389         (find_bivs): Inline original determine_biv_step.  Pass new
19390         argument to set_iv.
19391         (idx_find_step): Use no_overflow information for conversion.
19392         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19393         resolve_mixers handle folded_casts.
19394         (instantiate_scev_name): Change bool parameter to bool pointer.
19395         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19396         (instantiate_array_ref, instantiate_scev_not): Ditto.
19397         (instantiate_scev_3, instantiate_scev_2): Ditto.
19398         (instantiate_scev_1, instantiate_scev_r): Ditto.
19399         (instantiate_scev_convert, ): Change parameter.  Pass argument
19400         to chrec_convert_aggressive.
19401         (instantiate_scev): Change argument.
19402         (resolve_mixers): New parameter and set it.
19403         (scev_const_prop): New argument.
19404         * tree-scalar-evolution.h (resolve_mixers): New parameter.
19405         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19406         of chrec_conert_1.
19407         (chrec_convert): New parameter.  Move definition below.
19408         (chrec_convert_aggressive): New parameter and set it.  Call
19409         convert_affine_scev.
19410         * tree-chrec.h (chrec_convert): New parameter.
19411         (chrec_convert_aggressive): Ditto.
19412
19413 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19414
19415         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19416         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19417         the LHS of a no-return call if its type has variable size.
19418         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19419         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19420
19421 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
19422
19423         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19424         * config.in: Regenerate.
19425
19426 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19427
19428         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19429         consecutive accesses within outer-loop with force_vectorize
19430         for references with zero step in inner-loop.
19431
19432 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19433
19434         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19435         rather than from gcc/build directory.
19436
19437 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19438
19439         PR target/65697
19440         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19441         for __sync memory models, emit initial loads and final barriers as
19442         appropriate.
19443
19444 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19445
19446         PR target/65697
19447         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19448         (aarch64_split_atomic_op): Check for __sync memory models, emit
19449         appropriate initial loads and final barriers.
19450
19451 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19452
19453         * Makefile.in: Fix gcov dependencies that should
19454         not point to a build folder.
19455
19456 2015-06-01  Richard Biener  <rguenther@suse.de>
19457
19458         Revert
19459         2015-05-29  Richard Biener  <rguenther@suse.de>
19460
19461         PR tree-optimization/66314
19462         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19463         parameter that says which loop the new block belongs to.
19464         (ssa_create_duplicates): Blocks duplicated for the threaded
19465         path belong to the loop of the thread destination.
19466
19467 2015-06-01  Martin Liska  <mliska@suse.cz>
19468
19469         * sched-deps.c: Include pool-alloc.h before
19470         cselib.h header file is included.
19471
19472 2015-06-01  Richard Biener  <rguenther@suse.de>
19473
19474         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19475         functions.
19476
19477 2015-06-01  Martin Liska  <mliska@suse.cz>
19478
19479         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19480         a function local variable.
19481
19482 2015-06-01  Martin Liska  <mliska@suse.cz>
19483
19484         * alloc-pool.c (create_alloc_pool): Remove.
19485         (empty_alloc_pool): Likewise.
19486         (free_alloc_pool): Likewise.
19487         (free_alloc_pool_if_empty): Likewise.
19488         (pool_alloc): Likewise.
19489         (pool_free): Likewise.
19490         * alloc-pool.h: Remove old declarations.
19491
19492 2015-06-01  Martin Liska  <mliska@suse.cz>
19493
19494         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19495         (ira_create_object): Likewise.
19496         (ira_create_allocno): Likewise.
19497         (ira_create_live_range): Likewise.
19498         (copy_live_range): Likewise.
19499         (ira_finish_live_range): Likewise.
19500         (ira_free_allocno_costs): Likewise.
19501         (finish_allocno): Likewise.
19502         (finish_allocnos): Likewise.
19503         (initiate_prefs): Likewise.
19504         (ira_create_pref): Likewise.
19505         (finish_pref): Likewise.
19506         (finish_prefs): Likewise.
19507         (initiate_copies): Likewise.
19508         (ira_create_copy): Likewise.
19509         (finish_copy): Likewise.
19510         (finish_copies): Likewise.
19511         (finish_prefs): Likewise.
19512
19513 2015-06-01  Martin Liska  <mliska@suse.cz>
19514
19515         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19516         (allocate_and_init_ipcp_value): Likewise.
19517         (ipcp_lattice::add_value): Likewise.
19518         (merge_agg_lats_step): Likewise.
19519         (ipcp_driver): Likewise.
19520         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19521         (ipa_free_all_structures_after_iinln): Likewise.
19522         * ipa-prop.h: Likewise.
19523
19524 2015-06-01  Martin Liska  <mliska@suse.cz>
19525
19526         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19527         pool allocator.
19528         (set_hint_predicate): Likewise.
19529         (inline_summary_alloc): Likewise.
19530         (reset_inline_edge_summary): Likewise.
19531         (reset_inline_summary): Likewise.
19532         (set_cond_stmt_execution_predicate): Likewise.
19533         (set_switch_stmt_execution_predicate): Likewise.
19534         (compute_bb_predicates): Likewise.
19535         (estimate_function_body_sizes): Likewise.
19536         (inline_free_summary): Likewise.
19537
19538 2015-06-01  Martin Liska  <mliska@suse.cz>
19539
19540         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19541         (ipa_edge_duplication_hook): Likewise.
19542         (ipa_free_all_structures_after_ipa_cp): Likewise.
19543         (ipa_free_all_structures_after_iinln): Likewise.
19544
19545 2015-06-01  Martin Liska  <mliska@suse.cz>
19546
19547         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19548         (ipa_profile_generate_summary): Likewise.
19549         (ipa_profile_read_summary): Likewise.
19550         (ipa_profile): Likewise.
19551
19552 2015-06-01  Martin Liska  <mliska@suse.cz>
19553
19554         * tree-ssa-structalias.c (new_var_info): Use new type-based
19555         pool allocator.
19556         (new_constraint): Likewise.
19557         (init_alias_vars): Likewise.
19558         (delete_points_to_sets): Likewise.
19559
19560 2015-06-01  Martin Liska  <mliska@suse.cz>
19561
19562         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19563         (free_strinfo): Likewise.
19564         (pass_strlen::execute): Likewise.
19565
19566 2015-06-01  Martin Liska  <mliska@suse.cz>
19567
19568         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19569         pool allocator.
19570         (vn_reference_insert_pieces): Likewise.
19571         (vn_phi_insert): Likewise.
19572         (visit_reference_op_call): Likewise.
19573         (copy_phi): Likewise.
19574         (copy_reference): Likewise.
19575         (process_scc): Likewise.
19576         (allocate_vn_table): Likewise.
19577         (free_vn_table): Likewise.
19578
19579 2015-06-01  Martin Liska  <mliska@suse.cz>
19580
19581         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19582         pool allocator.
19583         (add_repeat_to_ops_vec): Likewise.
19584         (get_ops): Likewise.
19585         (maybe_optimize_range_tests): Likewise.
19586         (init_reassoc): Likewise.
19587         (fini_reassoc): Likewise.
19588
19589 2015-06-01  Martin Liska  <mliska@suse.cz>
19590
19591         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19592         pool allocator.
19593         (bitmap_set_new): Likewise.
19594         (get_or_alloc_expr_for_constant): Likewise.
19595         (get_or_alloc_expr_for): Likewise.
19596         (phi_translate_1): Likewise.
19597         (compute_avail): Likewise.
19598         (init_pre): Likewise.
19599         (fini_pre): Likewise.
19600
19601 2015-06-01  Martin Liska  <mliska@suse.cz>
19602
19603         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19604         (delete_dep_node): Likewise.
19605         (create_deps_list): Likewise.
19606         (free_deps_list): Likewise.
19607         (sched_deps_init): Likewise.
19608         (sched_deps_finish): Likewise.
19609
19610 2015-06-01  Martin Liska  <mliska@suse.cz>
19611
19612         * regcprop.c (free_debug_insn_changes): Use new type-based
19613         pool allocator.
19614         (replace_oldest_value_reg): Likewise.
19615         (pass_cprop_hardreg::execute): Likewise.
19616
19617 2015-06-01  Martin Liska  <mliska@suse.cz>
19618
19619         * ira-build.c (initiate_cost_vectors): Use new type-based
19620         pool allocator.
19621         (ira_allocate_cost_vector): Likewise.
19622         (ira_free_cost_vector): Likewise.
19623         (finish_cost_vectors): Likewise.
19624
19625 2015-06-01  Martin Liska  <mliska@suse.cz>
19626
19627         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19628         pool allocator.
19629         (free_sched_pools): Likewise.
19630         * sel-sched-ir.h (_list_alloc): Likewise.
19631         (_list_remove): Likewise.
19632
19633 2015-06-01  Martin Liska  <mliska@suse.cz>
19634
19635         * stmt.c (add_case_node): Use new type-based pool allocator.
19636         (expand_case): Likewise.
19637         (expand_sjlj_dispatch_table): Likewise.
19638
19639 2015-06-01  Martin Liska  <mliska@suse.cz>
19640
19641         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19642         (free_bb): Likewise.
19643         (pass_cse_reciprocals::execute): Likewise.
19644
19645 2015-06-01  Martin Liska  <mliska@suse.cz>
19646
19647         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19648         (sra_deinitialize) Likewise.
19649         (create_access_1) Likewise.
19650         (build_accesses_from_assign) Likewise.
19651         (create_artificial_child_access) Likewise.
19652
19653 2015-06-01  Martin Liska  <mliska@suse.cz>
19654
19655         * dse.c (get_group_info):Use new type-based pool allocator.
19656         (dse_step0) Likewise.
19657         (free_store_info) Likewise.
19658         (delete_dead_store_insn) Likewise.
19659         (free_read_records) Likewise.
19660         (record_store) Likewise.
19661         (replace_read) Likewise.
19662         (check_mem_read_rtx) Likewise.
19663         (scan_insn) Likewise.
19664         (dse_step1) Likewise.
19665         (dse_step7) Likewise.
19666
19667 2015-06-01  Martin Liska  <mliska@suse.cz>
19668
19669         * df-scan.c (struct df_scan_problem_data):Use new type-based
19670         pool allocator.
19671         (df_scan_free_internal) Likewise.
19672         (df_scan_alloc) Likewise.
19673         (df_grow_reg_info) Likewise.
19674         (df_free_ref) Likewise.
19675         (df_insn_create_insn_record) Likewise.
19676         (df_mw_hardreg_chain_delete) Likewise.
19677         (df_insn_info_delete) Likewise.
19678         (df_free_collection_rec) Likewise.
19679         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19680         (df_sort_and_compress_mws) Likewise.
19681         (df_ref_create_structure) Likewise.
19682         (df_ref_record) Likewise.
19683
19684 2015-06-01  Martin Liska  <mliska@suse.cz>
19685
19686         * df-problems.c (df_chain_create):Use new type-based pool allocator.
19687         (df_chain_unlink_1) Likewise.
19688         (df_chain_unlink) Likewise.
19689         (df_chain_remove_problem) Likewise.
19690         (df_chain_alloc) Likewise.
19691         (df_chain_free) Likewise.
19692         * df.h (struct dataflow) Likewise.
19693
19694 2015-06-01  Martin Liska  <mliska@suse.cz>
19695
19696         * cselib.c (new_elt_list):Use new type-based pool allocator.
19697         (new_elt_loc_list) Likewise.
19698         (unchain_one_elt_list) Likewise.
19699         (unchain_one_elt_loc_list) Likewise.
19700         (unchain_one_value) Likewise.
19701         (new_cselib_val) Likewise.
19702         (cselib_init) Likewise.
19703         (cselib_finish) Likewise.
19704
19705 2015-06-01  Martin Liska  <mliska@suse.cz>
19706
19707         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19708         (sh_reorg) Likewise.
19709
19710 2015-06-01  Martin Liska  <mliska@suse.cz>
19711
19712         * cfg.c (initialize_original_copy_tables):Use new type-based
19713         pool allocator.
19714         (free_original_copy_tables) Likewise.
19715         (copy_original_table_clear) Likewise.
19716         (copy_original_table_set) Likewise.
19717
19718 2015-06-01  Martin Liska  <mliska@suse.cz>
19719
19720         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19721         pool allocator.
19722         (asan_mem_ref_new) Likewise.
19723         (free_mem_ref_resources) Likewise.
19724
19725 2015-06-01  Martin Liska  <mliska@suse.cz>
19726
19727         * var-tracking.c (variable_htab_free):Use new type-based
19728         pool allocator.
19729         (attrs_list_clear) Likewise.
19730         (attrs_list_insert) Likewise.
19731         (attrs_list_copy) Likewise.
19732         (shared_hash_unshare) Likewise.
19733         (shared_hash_destroy) Likewise.
19734         (unshare_variable) Likewise.
19735         (var_reg_delete_and_set) Likewise.
19736         (var_reg_delete) Likewise.
19737         (var_regno_delete) Likewise.
19738         (drop_overlapping_mem_locs) Likewise.
19739         (variable_union) Likewise.
19740         (insert_into_intersection) Likewise.
19741         (canonicalize_values_star) Likewise.
19742         (variable_merge_over_cur) Likewise.
19743         (dataflow_set_merge) Likewise.
19744         (remove_duplicate_values) Likewise.
19745         (variable_post_merge_new_vals) Likewise.
19746         (dataflow_set_preserve_mem_locs) Likewise.
19747         (dataflow_set_remove_mem_locs) Likewise.
19748         (variable_from_dropped) Likewise.
19749         (variable_was_changed) Likewise.
19750         (set_slot_part) Likewise.
19751         (clobber_slot_part) Likewise.
19752         (delete_slot_part) Likewise.
19753         (loc_exp_insert_dep) Likewise.
19754         (notify_dependents_of_changed_value) Likewise.
19755         (emit_notes_for_differences_1) Likewise.
19756         (vt_emit_notes) Likewise.
19757         (vt_initialize) Likewise.
19758         (vt_finalize) Likewise.
19759
19760 2015-06-01  Martin Liska  <mliska@suse.cz>
19761
19762         * ira-color.c (init_update_cost_records):Use new type-based
19763         pool allocator.
19764         (get_update_cost_record) Likewise.
19765         (free_update_cost_record_list) Likewise.
19766         (finish_update_cost_records) Likewise.
19767         (initiate_cost_update) Likewise.
19768
19769 2015-06-01  Martin Liska  <mliska@suse.cz>
19770
19771         * lra.c (init_insn_regs): Use new type-based pool allocator.
19772         (new_insn_reg) Likewise.
19773         (free_insn_reg) Likewise.
19774         (free_insn_regs) Likewise.
19775         (finish_insn_regs) Likewise.
19776         (init_insn_recog_data) Likewise.
19777         (init_reg_info) Likewise.
19778         (finish_reg_info) Likewise.
19779         (lra_free_copies) Likewise.
19780         (lra_create_copy) Likewise.
19781         (invalidate_insn_data_regno_info) Likewise.
19782
19783 2015-06-01  Martin Liska  <mliska@suse.cz>
19784
19785         * lra-lives.c (free_live_range): Use new type-based pool allocator.
19786         (free_live_range_list) Likewise.
19787         (create_live_range) Likewise.
19788         (copy_live_range) Likewise.
19789         (lra_merge_live_ranges) Likewise.
19790         (remove_some_program_points_and_update_live_ranges) Likewise.
19791         (lra_live_ranges_init) Likewise.
19792         (lra_live_ranges_finish) Likewise.
19793
19794 2015-06-01  Martin Liska  <mliska@suse.cz>
19795
19796         * et-forest.c (et_new_occ): Use new type-based pool allocator.
19797         (et_new_tree): Likewise.
19798         (et_free_tree): Likewise.
19799         (et_free_tree_force): Likewise.
19800         (et_free_pools): Likewise.
19801         (et_split): Likewise.
19802
19803 2015-06-01  Martin Liska  <mliska@suse.cz>
19804
19805         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19806         to header file.
19807         * alloc-pool.h (pool_allocator::pool_allocator): New function.
19808         (pool_allocator::release): Likewise.
19809         (inline pool_allocator::release_if_empty): Likewise.
19810         (inline pool_allocator::~pool_allocator): Likewise.
19811         (pool_allocator::allocate): Likewise.
19812         (pool_allocator::remove): Likewise.
19813
19814 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19815
19816         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19817         in comment.
19818
19819 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19820
19821         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19822         to fusible_ops.
19823         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19824         (arm_macro_fusion_p): Likewise.
19825         (arm_macro_fusion_pair_p): Likewise.
19826
19827 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19828
19829         * config/aarch64/aarch64-protos.h (tune_params): Rename
19830         fuseable_ops to fusible_ops.
19831         * config/aarch64/aarch64.c (generic_tunings): Rename
19832         fuseable_ops to fusible_ops.
19833         (cortexa53_tunings): Likewise.
19834         (cortexa57_tunings): Likewise.
19835         (thunderx_tunings): Likewise.
19836         (xgene1_tunings): Likewise.
19837         (aarch64_macro_fusion_p): Likewise.
19838         (aarch64_macro_fusion_pair_p): Likewise.
19839
19840 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19841
19842         * config/s390/driver-native.c: New file.
19843         * config/s390/x-native: New file.
19844         * config.host: Add new files for s390.
19845         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19846         and -march=native
19847         * config.gcc: Likewise.
19848         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19849         * config/s390/s390-opts.h (enum processor_type): Ditto.
19850         * config/s390/s390.c (s390_option_override): Catch unhandled
19851         PROCESSOR_NATIVE
19852
19853 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
19854
19855         PR target/65527
19856         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19857         redirection for instrumented calls.
19858         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19859         (append_compiler_options): Append -fcheck-pointer-bounds.
19860         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19861         (chkp_redirect_edge): New.
19862         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19863         (chkp_redirect_edge): New.
19864
19865 2015-06-01  Richard Biener  <rguenther@suse.de>
19866
19867         PR tree-optimization/66280
19868         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19869         def-use walking.
19870
19871 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19872
19873         * config/aarch64/aarch64.md
19874         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19875         logic_shift_imm.
19876
19877 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19878
19879         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19880         Remove obsolete kludge.
19881
19882 2015-06-01  Richard Biener  <rguenther@suse.de>
19883
19884         * tree-ssa-reassoc.c (get_rank): Simplify.
19885
19886 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
19887
19888         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19889         * configure: Regenerated.
19890
19891 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
19892
19893         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19894         issue (add space between string literal and macro).
19895         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19896
19897 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
19898
19899         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19900         implict or explicit -fPIE or -fpie.
19901
19902 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
19903
19904         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19905
19906 2015-05-28  DJ Delorie  <dj@redhat.com>
19907
19908         * expmed.c (extract_bit_field_1): Avoid clobbering a
19909         yet-to-be-used base/index register.
19910
19911 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
19912
19913         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19914         (alias_stats): Add num_universal.
19915         (alias_set_subset_of): Special case pointers; be ready for NULL
19916         children.
19917         (alias_sets_conflict_p): Special case pointers; be ready for NULL
19918         children.
19919         (init_alias_set_entry): Break out from ...
19920         (record_alias_subset): ... here; propagate new fields;
19921         allocate children only when really needed.
19922         (get_alias_set): Do less generous pointer globbing.
19923         (dump_alias_stats_in_alias_c): Update statistics.
19924
19925 2015-05-30  Alan Modra  <amodra@gmail.com>
19926
19927         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19928         correct block for use of r12.
19929         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19930
19931 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19932
19933         PR target/66215
19934         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19935         with -mhotpatch=.
19936
19937 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
19938
19939         PR tree-optimization/66142
19940         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19941         virtual phis that feed themselves.
19942
19943 2015-05-29  Richard Biener  <rguenther@suse.de>
19944
19945         PR tree-optimization/66314
19946         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19947         parameter that says which loop the new block belongs to.
19948         (ssa_create_duplicates): Blocks duplicated for the threaded
19949         path belong to the loop of the thread destination.
19950
19951 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19952
19953         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19954         to cleanup-saved-temps.
19955         * doc/sourcebuild.texi (Clean up generated test files): Expand
19956         introduction.
19957         (dg-keep-saved-temps): Document new proc.
19958         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19959         cleanup-saved-temps): Remove.
19960
19961 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
19962
19963         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19964         gcc_AC_CHECK_DECLS.
19965         * configure: Regenerate.
19966
19967 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19968
19969         * config/nios2/linux.h (CPP_SPEC): Define.
19970
19971 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19972
19973         * config/microblaze/linux.h (CPP_SPEC): Define.
19974
19975 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19976
19977         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19978         -pthread is specified.
19979
19980 2015-05-28  Richard Biener  <rguenther@suse.de>
19981
19982         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19983         (vect_fixup_scalar_cycles_with_patterns): Likewise.
19984         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19985         after pattern recog.
19986         (vect_create_epilog_for_reduction): Properly handle reductions
19987         with patterns.
19988         (vectorizable_reduction): Likewise.
19989         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19990         reduction chains.
19991         (vect_get_constant_vectors): Create the correct number of
19992         initial values for reductions.
19993         (vect_schedule_slp_instance): Handle reduction chains that are
19994         type changing properly.
19995         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19996
19997 2015-05-28  Richard Biener  <rguenther@suse.de>
19998
19999         PR tree-optimization/66142
20000         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
20001         values better in memcpy destination handling.  Handle non-aliasing
20002         we discover here.
20003
20004 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
20005
20006         PR target/63810
20007         * config/darwin-c.c (version_components): New global enum.
20008         (parse_version, version_as_legacy_macro)
20009         (version_as_modern_macro, macosx_version_as_macro): New functions.
20010         (version_as_macro): Remove.
20011         (darwin_cpp_builtins): Use new function.
20012
20013 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
20014
20015         * builtins.c (expand_builtin_acc_on_device): Mark parameters
20016         with ATTRIBUTE_UNUSED.
20017
20018 2015-05-28  Julian Brown  <julian@codesourcery.com>
20019
20020         PR libgomp/65742
20021
20022         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
20023         sequence for !ACCEL_COMPILER.
20024
20025 2015-05-28  Nick Clifton  <nickc@redhat.com>
20026
20027         * config/rx/rx.c (push_regs): New function.  Extracts code from...
20028         (rx_expand_prologue): ... here.  Use push_regs to push even small
20029         spans of registers.
20030         (pop_regs): New function.
20031         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
20032         registers.
20033
20034 2015-05-28  Richard Biener  <rguenther@suse.de>
20035
20036         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
20037         member.
20038         (SLP_INSTANCE_BODY_COST_VEC): Remove.
20039         (vect_update_slp_costs_according_to_vf): Likewise.
20040         (vect_slp_analyze_operations): Update prototype.
20041         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
20042         vect_update_slp_costs_according_to_vf, adjust.
20043         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
20044         (vect_analyze_slp_cost_1): Likewise.
20045         (vect_analyze_slp_cost): Likewise.  Properly deal with
20046         widening reduction ops.  Commit body costs.
20047         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
20048         cost for loops from here.
20049         (vect_slp_analyze_operations): But do it from here when
20050         the vectorization factor is known and stmts are analyzed.
20051         (vect_bb_vectorization_profitable_p): Simplify.
20052         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
20053         (vect_update_slp_costs_according_to_vf): Remove.
20054
20055 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
20056             H.J. Lu  <hongjiu.lu@intel.com>
20057
20058         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
20059         (BUILD_CFLAGS): Likewise.
20060         (BUILD_CXXFLAGS): Likewise.
20061         (LINKER): Add @NO_PIE_FLAG@.
20062         (BUILD_LDFLAGS): Likewise.
20063         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
20064         --enable-default-pie.
20065         * common.opt (fPIE): Initialize to -1.
20066         (fpie): Likewise.
20067         (no-pie): New option.
20068         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
20069         * configure.ac: Add --enable-default-pie.
20070         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
20071         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
20072         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
20073         * gcc.c (NO_PIE_SPEC): New.
20074         (PIE_SPEC): Likewise.
20075         (NO_FPIE1_SPEC): Likewise.
20076         (FPIE1_SPEC): Likewise.
20077         (NO_FPIE2_SPEC): Likewise.
20078         (FPIE2_SPEC): Likewise.
20079         (NO_FPIE2_SPEC): Likewise.
20080         (FPIE_SPEC): Likewise.
20081         (NO_FPIE_SPEC): Likewise.
20082         (NO_FPIC1_SPEC): Likewise.
20083         (FPIC1_SPEC): Likewise.
20084         (NO_FPIC2_SPEC): Likewise.
20085         (FPIC2_SPEC): Likewise.
20086         (NO_FPIC2_SPEC): Likewise.
20087         (FPIC_SPEC): Likewise.
20088         (NO_FPIC_SPEC): Likewise.
20089         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20090         (FPIE1_OR_FPIC1_SPEC): Likewise.
20091         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20092         (FPIE2_OR_FPIC2_SPEC): Likewise.
20093         (NO_FPIE_AND_FPIC_SPEC): Likewise.
20094         (FPIE_OR_FPIC_SPEC): Likewise.
20095         (LD_PIE_SPEC): Likewise.
20096         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
20097         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20098         * config/darwin.h (PIE_SPEC): Renamed to ...
20099         (DARWIN_PIE_SPEC): This.
20100         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20101         * config/darwin9.h (PIE_SPEC): Renamed to ...
20102         (DARWIN_PIE_SPEC): This.
20103         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20104         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20105         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20106         FPIE2_OR_FPIC2_SPEC.
20107         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20108         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20109         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20110         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20111         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20112         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20113         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20114         * config/m32r/m32r.h (ASM_SPEC): Likewise.
20115         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20116         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20117         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20118         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20119         * config/sparc/linux.h (ASM_SPEC): Likewise.
20120         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20121         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20122         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20123         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20124         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20125         * config/sparc/sparc.h (ASM_SPEC): Likewise.
20126         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20127         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20128         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20129         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20130         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20131         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20132         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20133         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20134         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20135         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20136         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20137         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20138         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20139         * config/vax/linux.h (ASM_SPEC): Likewise.
20140         * doc/install.texi: Document --enable-default-pie.
20141         * doc/invoke.texi: Document -no-pie.
20142         * config.in: Regenerated.
20143         * configure: Likewise.
20144
20145 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20146
20147         PR rtl-optimization/66168
20148         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20149         can_move_invariant_reg.
20150
20151 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
20152
20153         PR target/66148
20154         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20155         REG_EQUAL note when doing insert.
20156
20157         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20158         instead of "%d" for 'o' operand.
20159
20160 2015-05-27  Nathan Sidwell  <nathan@acm.org>
20161
20162         PR c++/66270
20163         * tree.c (build_pointer_type_for_mode): Canonical type does not
20164         inherit can_alias_all.
20165         (build_reference_type_for_mode): Likewise.
20166
20167 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20168
20169         * expr.h (array_at_struct_end_p): Move to...
20170         (array_ref_element_size): Likewise.
20171         (component_ref_field_offset): Likewise.
20172         * tree.h (array_ref_element_size): ...here.
20173         (array_at_struct_end_p): Likewise.
20174         (component_ref_field_offset): Likewise.
20175         * expr.c (array_ref_element_size): Move to...
20176         (array_ref_low_bound): Likewise.
20177         (array_at_struct_end_p): Likewise.
20178         (array_ref_up_bound): Likewise.
20179         (component_ref_field_offset): Likewise.
20180         * tree.c (array_ref_element_size): ...here.
20181         (array_ref_low_bound): Likewise.
20182         (array_ref_up_bound): Likewise.
20183         (array_at_struct_end_p): Likewise.
20184         (component_ref_field_offset): Likewise.
20185
20186 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20187             Szabolcs Nagy  <szabolcs.nagy@arm.com>
20188
20189         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20190
20191 2015-05-27  Jason Merrill  <jason@redhat.com>
20192
20193         PR bootstrap/66304
20194         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20195         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20196         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20197
20198 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
20199
20200         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20201         is true.
20202
20203         * statistics.c (statistics_fini_pass): Print pass name.
20204
20205 2015-05-27  Richard Biener  <rguenther@suse.de>
20206
20207         PR tree-optimization/66272
20208         Revert parts of
20209         2014-08-15  Richard Biener  <rguenther@suse.de>
20210
20211         PR tree-optimization/62031
20212         * tree-data-ref.c (dr_analyze_indices): Do not set
20213         DR_UNCONSTRAINED_BASE.
20214         (dr_may_alias_p): All indirect accesses have to go the
20215         formerly DR_UNCONSTRAINED_BASE path.
20216         * tree-data-ref.h (struct indices): Remove
20217         unconstrained_base member.
20218         (DR_UNCONSTRAINED_BASE): Remove.
20219
20220 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
20221
20222         * dwarf2out.c: Remove block_map.
20223         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20224         (gen_lexical_block_die): Same.
20225         (dwarf2out_function_decl): Remove block_map use.
20226         (dwarf2out_c_finalize): Same.
20227         * tree-core.h (struct tree_block): Add die field.
20228         * tree.h (BLOCK_DIE): New.
20229
20230 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20231
20232         PR target/65358
20233         * expr.c (memory_load_overlap): New function.
20234         (emit_push_insn): When pushing partial args to the stack would
20235         clobber the register part load the overlapping part into a pseudo
20236         and put it into the hard reg after pushing.  Change return type
20237         to bool.  Add bool argument.
20238         * expr.h (emit_push_insn): Change return type to bool.
20239         Add bool argument.
20240         * calls.c (expand_call): Cancel sibcall optimization when encountering
20241         partial argument on targets with ARGS_GROW_DOWNWARD and
20242         !STACK_GROWS_DOWNWARD.
20243         (emit_library_call_value_1): Update callsite of emit_push_insn.
20244         (store_one_arg): Likewise.
20245
20246 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20247
20248         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20249
20250 2015-05-27  Martin Liska  <mliska@suse.cz>
20251
20252         * Makefile.in: Add additional dependencies related to memory report
20253         enhancement.
20254         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20255         * bitmap.c (struct bitmap_descriptor_d): Remove.
20256         (struct loc): Likewise.
20257         (struct bitmap_desc_hasher): Likewise.
20258         (bitmap_desc_hasher::hash): Likewise.
20259         (bitmap_desc_hasher::equal): Likewise.
20260         (get_bitmap_descriptor): Likewise.
20261         (bitmap_register): User new memory descriptor API.
20262         (register_overhead): Likewise.
20263         (bitmap_find_bit): Register nsearches and search_iter statistics.
20264         (struct bitmap_output_info): Remove.
20265         (print_statistics): Likewise.
20266         (dump_bitmap_statistics): Use new memory descriptor.
20267         * bitmap.h (struct bitmap_usage): New class.
20268         * genmatch.c: Extend header file inclusion.
20269         * genpreds.c: Likewise.
20270         * ggc-common.c (struct ggc_usage): New class.
20271         (struct ggc_loc_desc_hasher): Remove.
20272         (ggc_loc_desc_hasher::hash): Likewise.
20273         (ggc_loc_desc_hasher::equal): Likewise.
20274         (struct ggc_ptr_hash_entry): Likewise.
20275         (struct ptr_hash_hasher): Likewise.
20276         (ptr_hash_hasher::hash): Likewise.
20277         (ptr_hash_hasher::equal): Likewise.
20278         (make_loc_descriptor): Likewise.
20279         (ggc_prune_ptr): Likewise.
20280         (dump_ggc_loc_statistics): Use new memory descriptor.
20281         (ggc_record_overhead): Likewise.
20282         (ggc_free_overhead): Likewise.
20283         (final_cmp_statistic): Remove.
20284         (cmp_statistic): Likewise.
20285         (ggc_add_statistics): Liekwise.
20286         (ggc_prune_overhead_list): Likewise.
20287         * hash-map-traits.h: New file.
20288         * hash-map.h (struct default_hashmap_traits): Move the traits to a
20289         separate header file.
20290         * hash-set.h: Pass memory statistics info to ctor.
20291         * hash-table.c (void dump_hash_table_loc_statistics): New function.
20292         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20293         (hash_table::~hash_table): Register memory release operation.
20294         (hash_table::alloc_entries): Handle memory allocation operation.
20295         (hash_table::expand): Likewise.
20296         * inchash.c (iterative_hash_hashval_t): Move implementation to header
20297         file.
20298         (iterative_hash_host_wide_int): Likewise.
20299         * inchash.h (class hash): Likewise.
20300         * mem-stats-traits.h: New file.
20301         * mem-stats.h: New file.
20302         (mem_location): Add new class.
20303         (mem_usage): Likewise.
20304         (mem_alloc_description): Likewise.
20305         * sese.c: Add new header file inclusision.
20306         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20307         and hash_set.
20308         * tree-sra.c: Add new header file inclusision.
20309         * vec.c (struct vec_descriptor): Remove.
20310         (hash_descriptor): Likewise.
20311         (struct vec_usage): Likewise.
20312         (struct ptr_hash_entry): Likewise.
20313         (hash_ptr): Likewise.
20314         (eq_ptr): Likewise.
20315         (vec_prefix::register_overhead): Use new memory descriptor API.
20316         (vec_prefix::release_overhead): Likewise.
20317         (add_statistics): Remove.
20318         (dump_vec_loc_statistics): Use new memory descriptor API.
20319         * vec.h (struct vec_prefix): Likewise.
20320         (va_heap::reserve): Likewise.
20321         (va_heap::release): Likewise.
20322         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20323
20324 2015-05-27  Richard Biener  <rguenther@suse.de>
20325
20326         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
20327         earlier and remove ??? comment.
20328         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
20329         and got called from loop analysis bail out.  Always pass the SLP
20330         node to the vectorizable_* functions.
20331         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
20332         the premature SLP check here.
20333         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
20334         detected SLP stmts.
20335         (vect_detect_hybrid_slp_1): Likewise.
20336
20337 2015-05-26  Jeff Law  <law@redhat.com>
20338
20339         * combine.c (find_split_point): Verify that the shift count is a
20340         constant when choosing (plus (ashift ...)) as a split point.
20341
20342         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
20343         No functional changes.
20344
20345 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
20346
20347         * ipa-polymorphic-call.c
20348         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20349         case when call target is already known.
20350
20351 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
20352
20353         PR target/65979
20354         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20355         take into account the case that operands[1] and operands[2]
20356         are the same register.
20357
20358 2015-05-26  Michael Matz  <matz@suse.de>
20359
20360         PR middle-end/66251
20361
20362         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20363         stores.
20364         (vect_create_vectorized_demotion_stmts): Always set
20365         STMT_VINFO_VEC_STMT, also with SLP.
20366         (vectorizable_store): Handle strided group stores.
20367
20368 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20369
20370         PR target/66049
20371         * config/aarch64/aarch64.md
20372         (*adds_shift_imm_<mode>):  New pattern.
20373         (*subs_shift_imm_<mode>):  Likewise.
20374         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
20375         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20376         (*add_uxt<mode>_shift2): Likewise.
20377         (*add_uxtsi_shift2_uxtw): Likewise.
20378         (*sub_uxt<mode>_shift2): Likewise.
20379         (*sub_uxtsi_shift2_uxtw): Likewise.
20380
20381 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
20382
20383         * config/rs6000/constraints.md (Y, U): Use match_test.
20384
20385 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20386
20387         PR target/52144
20388         * config/arm/arm.c (arm_option_check_internal)
20389         (arm_option_params_internal): Check opts->target_flags to set macros.
20390         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20391         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20392         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20393         (builtin_define): Replaced with def_or_undef_macro.
20394         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20395         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20396         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20397         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20398         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20399         (TARGET_ARM_FEATURE_LDREX_P)
20400         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20401         * config/arm/arm-c.c (def_or_undef_macro): New function.
20402         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20403
20404 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20405
20406         * c-common.h (builtin_define_with_int_value)
20407         (builtin_define_type_sizeof): Declare.
20408         * c-cppbuiltin.c (builtin_define_with_int_value)
20409         (builtin_define_type_sizeof): Externalize.
20410         (builtin_define_std): Cleanup declaration.
20411         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20412         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20413         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20414         (builtin_define, builtin_assert): New macros.
20415
20416 2015-05-26  Richard Biener  <rguenther@suse.de>
20417
20418         PR tree-optimization/66142
20419         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20420         MEM_REFs for the same base address.
20421
20422 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20423
20424         PR ipa/66181
20425         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20426
20427 2015-05-26  Jason Merrill  <jason@redhat.com>
20428
20429         * configure.ac: Set CXXFLAGS for ISL test.
20430         * configure: Regenerate.
20431
20432         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
20433         strstr and basename.
20434         * configure: Regenerate.
20435
20436 2015-05-26  Richard Biener  <rguenther@suse.de>
20437
20438         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20439         X % C -> X & (C - 1) for C being a power-of two to ...
20440         * match.pd: ... patterns.
20441
20442 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
20443
20444         * match.pd (swapped_tcc_comparison): New operator list.
20445         (-A CMP -B): New simplification.
20446         * fold-const.c (fold_comparison): Remove corresponding code.
20447
20448 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20449
20450         * caller-save.c (init_caller_save): Base temporary register numbers
20451         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20452         * cfgloopanal.c (init_set_costs): Likewise.
20453         * dojump.c (prefer_and_bit_test): Likewise.
20454         * expr.c (init_expr_target): Likewise.
20455         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20456         * lower-subreg.c (init_lower_subreg): Likewise.
20457         * postreload.c (reload_cse_regs_1): Likewise.
20458
20459 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20460
20461         * gensupport.h (compute_test_codes): Declare.
20462         * gensupport.c (compute_predicate_codes): Rename to...
20463         (compute_test_codes): ...this.  Generalize error message.
20464         (process_define_predicate): Update accordingly.
20465         * genpreds.c (compute_maybe_allows): Delete.
20466         (add_constraint): Use compute_test_codes to determine whether
20467         something can accept a SUBREG, REG or MEM.
20468
20469 2015-05-26  Torvald Riegel  <triegel@redhat.com>
20470
20471         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20472         'memory model' to align with C++11; fix description of memory orders;
20473         fix a few typos.
20474
20475 2015-05-26  Richard Biener  <rguenther@suse.de>
20476
20477         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20478         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
20479         detect whether we apply SLP.  Remove call to
20480         vect_update_slp_costs_according_to_vf.
20481         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20482         vect_update_slp_costs_according_to_vf from here.  Dispatch
20483         to vect_slp_analyze_operations to analyze SLP stmts.
20484         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20485         unused bb_vec_info parameter, adjust assert.
20486         (vect_slp_analyze_operations): Pass in the slp instance tree
20487         instead of bb_vec_info.
20488         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20489         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20490
20491 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20492
20493         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20494         Q_REGS.  Expand comment.
20495         (REG_CLASS_NAMES): Ditto.
20496         (REG_CLASS_CONTENTS): Ditto.
20497
20498 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
20499
20500         PR target/66274
20501         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20502         when LEGACY_INT_REGNO_P is processed.
20503
20504 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20505
20506         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20507
20508 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20509
20510         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20511         register if not marked dead/unused, before return.
20512
20513 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20514
20515         PR lto/66180
20516         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20517         is set; check for assembler name at LTO time.
20518         (type_in_anonymous_namespace): Remove hacks, check that all
20519         anonymous types are called "<anon>"
20520         (odr_type_p): Simplify; add check for "<anon>"
20521         (odr_subtypes_equivalent): Add odr_type_p check.
20522         * tree.c (need_assembler_name_p): Even anonymous namespace needs
20523         assembler name.
20524
20525 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20526
20527         * ipa-utils.h (method_class_type): Remove.
20528         * cgraphunit.c (walk_polymorphic_call_targets): Use
20529         TYPE_METHOD_BASETYPE.
20530         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20531         on main variants only.
20532         (method_class_type): Remove.
20533         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20534         (build_type_inheritance_graph): Likewise.
20535         * ipa-icf.c (sem_function::equals_wpa): Likewise.
20536         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20537         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20538
20539 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20540
20541         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20542         is_typedef_decl, typedef_variant_p): Constify.
20543         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20544         is_typedef_decl, typedef_variant_p): Constify.
20545
20546 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20547
20548         * defaults.h (gen_tablejump): New function.
20549         (HAVE_tablejump): Add default value.
20550         * expr.c: Adjust.
20551         * stmt.c: Likewise.
20552
20553 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20554
20555         * defaults.h (gen_store_multiple): New function.
20556         (HAVE_store_multiple): Add default value.
20557         * expr.c (move_block_from_reg): Adjust.
20558
20559 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20560
20561         * defaults.h (gen_load_multiple): New function.
20562         (HAVE_load_multiple): Add default value.
20563         * expr.c (move_block_to_reg): Adjust.
20564
20565 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20566
20567         * defaults.h (gen_mem_signal_fence): New function.
20568         (HAVE_mem_signal_fence): Add default value.
20569         * optabs.c: Adjust.
20570
20571 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20572
20573         * defaults.h (gen_memory_barrier): New function.
20574         (HAVE_memory_barrier): Add default value.
20575         * optabs.c: Adjust.
20576
20577 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20578
20579         * defaults.h (gen_mem_thread_fence): New function.
20580         (HAVE_mem_thread_fence): Add default definition.
20581         * optabs.c: Adjust.
20582
20583 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20584
20585         * combine.c (find_split_point): Check the value of HAVE_lo_sum
20586         instead of if it is defined.
20587         (combine_simplify_rtx): Likewise.
20588         * lra-constraints.c (process_address_1): Likewise.
20589         * config/darwin.c: Adjust.
20590         * genconfig.c (main): Always define HAVE_lo_sum.
20591
20592 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20593
20594         * genmatch.c (parser::parse_operation): Reject expanding
20595         operator-list inside 'for'.
20596
20597 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20598
20599         * genmatch.c (parser::parse_for): Reject iterator if used as
20600         operator-list.
20601
20602 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20603
20604         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20605         after end of id-list.
20606
20607 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20608
20609         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20610         we do not try to compute canonical type for type that does not need
20611         alias set.
20612         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20613         FUNCITON_TYPE.
20614         * tree.h (type_with_alias_set_p): New.
20615
20616 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20617
20618         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
20619         function attributes.
20620         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20621
20622 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
20623
20624         * Makefile.in (check_gcc_parallelize): Delete.
20625         (lang_checks_parallelized): Update comment.
20626
20627 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
20628
20629         PR rtl-optimization/66237
20630         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20631         location of an "as_a" cast.
20632
20633 2015-05-22  Jeff Law  <law@redhat.com>
20634
20635         * config/pa/pa.md (non-canonical shift-add insns): Remove.
20636         (peepholes with non-canonical RTL sources): Remove.
20637         (peepholes for indexed stores of FP regs in integer modes): Match and
20638         generate canonical RTL.
20639
20640 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20641
20642         PR tree-optimization/63387
20643         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20644         ((x ord x) & (y ord y) -> (x ord y),
20645         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20646         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20647         vectors like scalars.
20648
20649 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20650
20651         * convert.c (convert_to_integer, convert_to_vector): Include the
20652         types in the error message.
20653
20654 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20655
20656         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20657         simplifications.
20658
20659 2015-05-22  Jeff Law  <law@redhat.com>
20660
20661         * config/pa/pa.md (integer_indexed_store splitters): Use
20662         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
20663         insns -- adjusting the constant 2nd operand accordingly.
20664
20665         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20666         (plus (ashift X log2) Y) if it is a split point.
20667
20668         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20669         out of hppa_legitimize_address to handle both forms of a multiply
20670         by 2, 4 or 8.
20671         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20672         Always generate the ASHIFT variant as the result is not directly
20673         used in a MEM.  Update comments and refactor slightly to improve
20674         readability.
20675
20676 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20677
20678         PR target/65491
20679         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20680         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
20681         (aarch64_composite_type_p): Return false if given type and mode are
20682         for a short vector.
20683
20684 2015-05-22  Richard Biener  <rguenther@suse.de>
20685
20686         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20687         member.
20688         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20689         patterns when determining whether SLP is pure.
20690         (vect_is_slp_reduction): Remove check for pattern stmts.
20691         (vect_is_simple_reduction_1): Remove dead code.
20692         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20693         (vect_get_and_check_slp_defs): Pass in the stmt number.
20694         Allow the first def in a reduction to be not a pattern stmt when
20695         the rest of the stmts def are patterns.
20696         (vect_build_slp_tree_1): Allow tcc_expression codes like
20697         SAD_EXPR and DOT_PROD_EXPR.
20698         (vect_build_slp_tree): Adjust.
20699         (vect_analyze_slp): Refactor and move BB vect error message ...
20700         (vect_slp_analyze_bb_1): ... here.
20701
20702 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
20703
20704         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20705         for CSWTCH temporary.
20706
20707 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20708
20709         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20710         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
20711         unknown unspecs.
20712
20713 2015-05-22  Richard Biener  <rguenther@suse.de>
20714
20715         PR tree-optimization/66251
20716         * tree-vect-stmts.c (vectorizable_conversion): Properly
20717         set STMT_VINFO_VEC_STMT even for the SLP case.
20718
20719 2015-05-22  Marek Polacek  <polacek@redhat.com>
20720
20721         * doc/extend.texi: Use @pxref instead of @xref.
20722
20723 2015-05-22  hiraditya  <hiraditya@msn.com>
20724
20725         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20726         redundant if.
20727
20728 2015-05-22  Richard Biener  <rguenther@suse.de>
20729
20730         PR tree-optimization/65701
20731         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20732         Move peeling cost models into one place.  Peel for alignment
20733         for single loads only if an aligned load is cheaper than
20734         an unaligned load.
20735
20736 2015-05-22  Marek Polacek  <polacek@redhat.com>
20737
20738         PR c/47043
20739         * doc/extend.texi (Enumerator Attributes): New section.
20740         Document syntax of enumerator attributes.
20741
20742 2015-05-22  Richard Biener  <rguenther@suse.de>
20743
20744         * tree-vect-loop.c (get_reduction_op): New function.
20745         (vect_model_reduction_cost): Use it, add reduc_index parameter.
20746         Make ready for BB reductions.
20747         (vect_create_epilog_for_reduction): Use get_reduction_op.
20748         (vectorizable_reduction): Init reduc_index to a valid value.
20749         Adjust vect_model_reduction_cost call.
20750         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20751         operand for reduction defaults.  Add SAD_EXPR support.
20752         Assert we have a neutral op for SLP reductions.
20753         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20754         walking pattern stmt ops only recurse to SSA names.
20755
20756 2015-05-22  Richard Biener  <rguenther@suse.de>
20757
20758         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20759         assert with guard, remove check on detected reduction.
20760         (vect_recog_sad_pattern): Likewise.
20761         (vect_recog_widen_sum_pattern): Likewise.
20762
20763 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20764
20765         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20766         __always_inline__ attribute.
20767         (vaesdq_u8): Likewise.
20768         (vaesmcq_u8): Likewise.
20769         (vaesimcq_u8): Likewise.
20770         (vsha1cq_u32): Likewise.
20771         (vsha1mq_u32): Likewise.
20772         (vsha1pq_u32): Likewise.
20773         (vsha1h_u32): Likewise.
20774         (vsha1su0q_u32): Likewise.
20775         (vsha1su1q_u32): Likewise.
20776         (vsha256hq_u32): Likewise.
20777         (vsha256h2q_u32): Likewise.
20778         (vsha256su0q_u32): Likewise.
20779         (vsha256su1q_u32): Likewise.
20780         (vmull_p64): Likewise.
20781         (vmull_high_p64): Likewise.
20782
20783 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20784
20785         * final.c (final_scan_insn): Don't check HAVE_peephole with the
20786         preprocessor.
20787         * output.h: Likewise.
20788         * genconfig.c (main): Alwways define HAVE_peephole.
20789         * genpeep.c: Don't emit checks of HAVE_peephole.
20790
20791 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20792
20793         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20794         check HAVE_conditional_move with the preprocessor.
20795
20796 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20797
20798         * genconfig.c (main): Always define HAVE_conditional_move.
20799         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20800         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20801         is defined.
20802
20803 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20804
20805         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20806         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20807         and FRAME_POINTER_REGNUM with the preprocessor.
20808
20809 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20810
20811         * defaults.h: Add default for STACK_PUSH_CODE.
20812         * expr.c: Don't redefine STACK_PUSH_CODE.
20813         * recog.c: Likewise.
20814
20815 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20816
20817         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20818         sched-deps.c: Use if instead of preprocessor checks with
20819         STACK_GROWS_DOWNWARD.
20820
20821 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20822
20823         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20824         is defined.
20825         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20826         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20827         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20828         * doc/tm.texi: Regenerate.
20829
20830 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20831
20832         PR target/66232
20833         * config/i386/constraints.md (Bg): New constraint for GOT memory
20834         operand.
20835         * config/i386/i386.md (*call_got_x32): New pattern.
20836         (*call_value_got_x32): Likewise.
20837         * config/i386/predicates.md (GOT_memory_operand): New predicate.
20838
20839 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
20840
20841         PR tree-optimization/66233
20842         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20843         Simplify.
20844
20845 2015-05-21  Jeff Law  <law@redhat.com>
20846
20847         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20848         than MULT for shadd sequences.
20849
20850 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
20851
20852         * alias.c (alias_stats): New static var.
20853         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20854         (dump_alias_stats_in_alias_c): New function.
20855         * alias.h (dump_alias_stats_in_alias_c): Declare.
20856         * tree-ssa-alias.c (dump_alias_stats): Call it.
20857
20858 2015-05-08  Michael Matz  <matz@suse.de>
20859
20860         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20861         to strided_p.
20862         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20863         (STMT_VINFO_STRIDED_P): ... this.
20864         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20865         (vect_verify_datarefs_alignment): Likewise.
20866         (vect_enhance_data_refs_alignment): Likewise.
20867         (vect_analyze_data_ref_access): Likewise.
20868         (vect_analyze_data_refs): Accept strided stores.
20869         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20870         (vect_model_load_cost): Adjust for macro rename.
20871         (vectorizable_mask_load_store): Likewise.
20872         (vectorizable_load): Likewise.
20873         (vectorizable_store): Open code strided stores.
20874
20875 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20876
20877         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20878         Document sqrt_insn.
20879
20880 2015-05-21  Richard Biener  <rguenther@suse.de>
20881
20882         PR c++/66211
20883         * match.pd: Guard pattern optimzing (int)(float)int
20884         conversions to apply only on GIMPLE.
20885
20886 2015-05-21  Jeff Law  <law@redhat.com>
20887
20888         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20889         multiply-accumulate/shift-add insn generation.
20890
20891 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
20892
20893         PR target/54236
20894         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20895         operands[1] are the same.
20896
20897 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
20898
20899         PR middle-end/66221
20900         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20901         build_distinct_type_copy to copy bounds.
20902
20903 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20904
20905         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20906         Change to unsigned int.
20907
20908 2015-05-20  Jeff Law  <law@redhat.com>
20909
20910         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20911         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20912         (pa_shadd_constant_p): Allow constants for shadd insns rather
20913         than valid scaling constants for memory addresses.
20914         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20915         * config/pa/predicates.md (mem_shadd_operand): New predicate.
20916         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20917         (shift-add insns using ASHIFT): New patterns.
20918
20919 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
20920
20921         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20922         feasible.
20923         (fix_up_fall_thru_edges): Likewise.
20924         (fix_crossing_conditional_branches): Likewise. Promote jump targets
20925         from to rtx_insn to rtx_code_label where feasible.
20926         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20927         gen_move_insn (returned type changed to rtx_insn).
20928         * builtins.c (expand_errno_check): Fix arguments of
20929         do_compare_rtx_and_jump (now expects rtx_code_label).
20930         (expand_builtin_acc_on_device): Likewise.
20931         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20932         invert_jump (now exprects rtx_jump_insn).
20933         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20934         (construct_init_block): Use rtx_code_label.
20935         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20936         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20937         calling redirect_jump.
20938         (patch_jump_insn): Likewise.
20939         (redirect_branch_edge): Likewise.
20940         (force_nonfallthru_and_redirect): Likewise.
20941         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20942         when suitable.
20943         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20944         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20945         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20946         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20947         to store the value retured by gen_label_rtx.
20948         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20949         rtx_jump_insn.
20950         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20951         (split_branches): Fix calls of redirect_jump.
20952         * dojump.c (jumpifnot): Promote argument type from rtx to
20953         rtx_code_label.
20954         (jumpifnot_1): Likewise.
20955         (jumpif): Likewise.
20956         (jumpif_1): Likewise.
20957         (do_jump_1): Likewise.
20958         (do_jump): Likewise. Use rtx_code_label when feasible.
20959         (do_jump_by_parts_greater_rtx): Likewise.
20960         (do_jump_by_parts_zero_rtx): Likewise.
20961         (do_jump_by_parts_equality_rtx): Likewise.
20962         (do_compare_rtx_and_jump): Likewise.
20963         * dojump.h: Update function prototypes.
20964         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20965         returns rtx_insn).
20966         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20967         rtx_jump_insn.
20968         (emit_label_before): Likewise.
20969         (emit_jump_insn_after_noloc): Likewise.
20970         (emit_jump_insn_after_setloc): Likewise.
20971         (emit_jump_insn_after): Likewise
20972         (emit_jump_insn_before_setloc): Likewise.
20973         (emit_jump_insn_before): Likewise.
20974         (emit_label_before): Promote return type to rtx_code_label.
20975         (emit_label): Likewise.
20976         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20977         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20978         gen_move_insn.
20979         (emit_stack_restore): Likewise.
20980         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20981         (do_cmp_and_jump): Likewise.
20982         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20983         from rtx to rtx_code_label.
20984         (gen_move_insn_uncast): New function.
20985         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20986         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20987         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20988         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20989         invert_jump_1 and redirect_jump_1.
20990         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20991         do_compare_rtx_and_jump.
20992         (expand_addsub_overflow): Likewise.
20993         (expand_neg_overflow): Likewise.
20994         (expand_mul_overflow): Likewise.
20995         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20996         return value of gen_move_insn.
20997         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20998         * loop-doloop.c (add_test): Use rtx_code_label.
20999         (doloop_modify): Likewise.
21000         (doloop_optimize): Likewise.
21001         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
21002         * lra-constraints.c (emit_spill_move): Remove cast of value returned
21003         by gen_move_insn.
21004         (inherit_reload_reg): Add cast when calling dump_insn_slim.
21005         (split_reg): Likewise.
21006         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
21007         gen_move_insn.
21008         * optabs.c (expand_binop_directly): Remove casts of values returned by
21009         maybe_gen_insn.
21010         (expand_unop_direct): Likewise.
21011         (expand_abs): Likewise.
21012         (maybe_emit_unop_insn): Likewise.
21013         (maybe_gen_insn): Promote return type to rtx_insn.
21014         * optabs.h: Update prototype of maybe_gen_insn.
21015         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
21016         redundant cast.
21017         * recog.c (struct peep2_insn_data): Promote type of insn field to
21018         rtx_insn.
21019         (peep2_reinit_state): Use NULL instead of NULL_RTX.
21020         (peep2_attempt): Remove casts of insn in peep2_insn_data.
21021         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
21022         * recog.h (struct insn_gen_fn): Promote return types of function
21023         pointers and operator ().from rtx to rtx_insn.
21024         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
21025         (fill_eager_delay_slots): Likewise.
21026         (relax_delay_slots): Likewise.
21027         (make_return_insns): Likewise.
21028         (dbr_schedule): Likewise.
21029         (optimize_skips): Likewise.
21030         (reorg_redirect_jump): Likewise.
21031         (fill_slots_from_thread): Likewise.
21032         * reorg.h: Update prototypes.
21033         * resource.c (find_dead_or_set_registers): Use dyn_cast to
21034         rtx_jump_insn instead of check.  Use it's jump_target method.
21035         * rtl.h (rtx_jump_insn::jump_label): Define new method.
21036         (rtx_jump_insn::jump_target): Define new method.
21037         (rtx_jump_insn::set_jump_target): Define new method.
21038         * rtlanal.c (tablejump_p): Promote type of one local variable.
21039         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
21040         (sched_analyze_insn): Likewise.
21041         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
21042         (print_insn): Likewise.
21043         * stmt.c (label_rtx): Promote return type to rtx_insn.
21044         (force_label_rtx): Likewise.
21045         (jump_target_rtx): Define new function.
21046         (expand_label): Use it, get rid of one cast.
21047         (expand_naked_return): Promote rtx to rtx_code_label.
21048         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
21049         (expand_case): Use rtx_code_label instread of rtx where feasible.
21050         (expand_sjlj_dispatch_table): Likewise.
21051         (emit_case_nodes): Likewise.
21052         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
21053         * store-motion.c (insert_store): Make use of new return type of
21054         gen_move_insn and remove a cast.
21055         (replace_store_insn): Likewise.
21056
21057 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
21058
21059         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
21060         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
21061
21062 2015-05-20  Jeff Law  <law@redhat.com>
21063
21064         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
21065         dispose of the jump thread path when the jump threading
21066         opportunity is cancelled.
21067
21068 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21069
21070         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
21071         when printing the caret character.
21072
21073 2015-05-20  Marek Polacek  <polacek@redhat.com>
21074
21075         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21076
21077 2015-05-20  Marek Polacek  <polacek@redhat.com>
21078
21079         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21080         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21081         * gimple-fold.c (canonicalize_bool): Likewise.
21082         (same_bool_result_p): Likewise.
21083         * tree-if-conv.c (parse_predicate): Likewise.
21084
21085 2015-05-20  Marek Polacek  <polacek@redhat.com>
21086
21087         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21088         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21089
21090 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21091
21092         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21093         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21094         values.
21095
21096 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
21097
21098         * config/mips/mips.h (micromips_globals): Declare.
21099
21100 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
21101
21102         * timevar.def (TV_INITIALIZE_RTL): New.
21103         * toplev.c (initialize_rtl): Use an auto_timevar to account this
21104         function's time to TV_INITIALIZE_RTL.
21105
21106 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
21107
21108         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21109         gimple_build_nop calls.
21110         (chkp_find_bounds_for_elem): Likewise.
21111         (chkp_get_zero_bounds): Likewise.
21112         (chkp_get_none_bounds): Likewise.
21113         (chkp_get_bounds_by_definition): Likewise.
21114         (chkp_generate_extern_var_bounds): Likewise.
21115         (chkp_get_bounds_for_decl_addr): Likewise.
21116         (chkp_get_bounds_for_string_cst): Likewise.
21117
21118 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
21119
21120         PR tree-optimization/65447
21121         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21122         (dump_use, dump_uses): Support to dump sub use.
21123         (record_use): New parameters to support sub use.  Remove call to
21124         dump_use.
21125         (record_sub_use, record_group_use): New functions.
21126         (compute_max_addr_offset, split_all_small_groups): New functions.
21127         (group_address_uses, rewrite_use_address): New functions.
21128         (strip_offset): New declaration.
21129         (find_interesting_uses_address): Call record_group_use.
21130         (add_candidate): New assertion.
21131         (infinite_cost_p): Move definition forward.
21132         (add_costs): Check INFTY cost and return immediately.
21133         (get_computation_cost_at): Clear setup cost and dependent bitmap
21134         for sub uses.
21135         (determine_use_iv_cost_address): Compute cost for sub uses.
21136         (rewrite_use_address_1): Rename from old rewrite_use_address.
21137         (free_loop_data): Free sub uses.
21138         (tree_ssa_iv_optimize_loop): Call group_address_uses.
21139
21140 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
21141             Jim Wilson  <jim.wilson@linaro.org>
21142
21143         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21144         new  fields loadv and storev.
21145         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21146         Initialize loadv and storev.
21147         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21148         (cortexa53_extra_costs): Likewise.
21149         (cortexa57_extra_costs): Likewise.
21150         (xgene1_extra_costs): Likewise.
21151         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21152         rtx_costs.
21153
21154 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
21155
21156         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21157          storev.
21158         (cortexa8_extra_costs): Likewise.
21159         (cortexa5_extra_costs): Likewise.
21160         (cortexa7_extra_costs): Likewise.
21161         (cortexa12_extra_costs): Likewise.
21162         (cortexa15_extra_costs): Likewise.
21163         (v7m_extra_costs): Likewise.
21164
21165 2015-05-20  Jeff Law  <law@redhat.com>
21166
21167         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21168         instead of open-coded version.  Also delete the jump thread created
21169         within this function.
21170
21171 2015-05-20  Alan Modra  <amodra@gmail.com>
21172
21173         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21174         stack adjusting insn.  Formatting.
21175         (rs6000_emit_prologue): Track stack adjusting insn, and use of
21176         r12.  If possible, emit first -fsplit-stack arg pointer insn
21177         before stack adjust.  Don't use r12 to save cr if split-stack.
21178
21179 2015-05-20  Alan Modra  <amodra@gmail.com>
21180
21181         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21182         Define.
21183         (rs6000_supports_split_stack): New function.
21184         * gcc/config/rs6000/rs6000.c (machine_function): Add
21185         split_stack_arg_pointer.
21186         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21187         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21188         rather than virtual_incoming_args_rtx.
21189         (rs6000_va_start): Likewise.
21190         (split_stack_arg_pointer_used_p): New function.
21191         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21192         (morestack_ref): New var.
21193         (gen_add3_const, rs6000_expand_split_stack_prologue,
21194         rs6000_internal_arg_pointer, rs6000_live_on_entry,
21195         rs6000_split_stack_space_check): New functions.
21196         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21197         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21198         (UNSPECV_SPLIT_STACK_RETURN): Define.
21199         (split_stack_prologue, load_split_stack_limit,
21200         load_split_stack_limit_di, load_split_stack_limit_si,
21201         split_stack_return, split_stack_space_check): New expands and insns.
21202         * gcc/config/rs6000/rs6000-protos.h
21203         (rs6000_expand_split_stack_prologue): Declare.
21204         (rs6000_split_stack_space_check): Declare.
21205
21206 2015-05-20  Alan Modra  <amodra@gmail.com>
21207
21208         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21209         (direct_return): Test vrsave_size rather than vrsave_mask.
21210         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
21211         (rs6000_emit_epilogue): Likewise.
21212
21213 2015-05-20  Alan Modra  <amodra@gmail.com>
21214
21215         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21216         when not saving registers.
21217         (debug_stack_info): Adjust to omit printing unused offsets,
21218         as before.
21219         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21220         expression.
21221
21222 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21223
21224         PR c++/65835
21225         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21226         value_type to const char *.
21227
21228 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
21229
21230         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21231         to build a biarch toolchain again.
21232
21233 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21234
21235         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21236         or implicit declarations.
21237         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21238         into it.
21239         (get_odr_type): Check type has linkage before adding bases.
21240         (register_odr_type): Check that type has linkage before adding it.
21241         (type_known_to_have_no_deriavations_p): Rename to ..
21242         (type_known_to_have_no_derivations_p): This one.
21243         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21244         (type_known_to_have_no_derivations_p): This one.
21245         * ipa-polymorphic-call.c
21246         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21247         type has linkage.
21248
21249 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21250
21251         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21252         (layout_type): Use RECORD_OR_UNION_TYPE_P.
21253
21254 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21255
21256         * config/s390/s390.c (s390_vector_bool_type_p): New function.
21257         (s390_invalid_binary_op): New function.
21258         (TARGET_INVALID_BINARY_OP): Define macro.
21259
21260 2015-05-19  David Sherwood  <david.sherwood@arm.com>
21261
21262         * loop-invariant.c (create_new_invariant): Don't calculate address cost
21263         if mode is not a scalar integer.
21264         (get_inv_cost): Increase computational cost for unused invariants.
21265
21266 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21267
21268         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
21269         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
21270         * config/s390/s390-builtin-types.def: New file.
21271         * config/s390/s390-builtins.def: New file.
21272         * config/s390/s390-builtins.h: New file.
21273         * config/s390/s390-c.c: New file.
21274         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21275         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21276         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21277         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21278         prototypes.
21279         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21280         Include.
21281         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21282         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21283         variable definitions.
21284         (s390_const_operand_ok): New function.
21285         (s390_expand_builtin): Rewrite.
21286         (s390_init_builtins): New function.
21287         (s390_handle_vectorbool_attribute): New function.
21288         (s390_attribute_table): Add s390_vector_bool attribute.
21289         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21290         (s390_branch_condition_mask): Generate masks for new modes.
21291         (s390_expand_vec_compare_cc): New function.
21292         (s390_mangle_type): Add mangling for vector bool types.
21293         (enum s390_builtin): Remove.
21294         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21295         efpc builtins.
21296         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21297         s390_cpu_cpp_builtins.
21298         (REGISTER_TARGET_PRAGMAS): New macro.
21299         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21300         (insn_cmp mode attribute): Add new CC modes.
21301         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21302         (lcbb): New pattern definition.
21303         * config/s390/s390intrin.h: Include vecintrin.h.
21304         * config/s390/t-s390: New file.
21305         * config/s390/vecintrin.h: New file.
21306         * config/s390/vector.md: Include vx-builtins.md.
21307         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21308         support.
21309
21310 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21311
21312         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21313         CCVFHE.
21314         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21315         (s390_select_ccmode): Likewise.
21316         (s390_canonicalize_comparison): Swap operands if necessary.
21317         (s390_expand_vec_compare_scalar): Expand DFmode compare using
21318         single element vector instructions.
21319         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21320         (s390_branch_condition_mask): Generate CC masks for the new modes.
21321         * config/s390/s390.md (v0, vf, vd): New mode attributes.
21322         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21323         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21324         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21325         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
21326         (*extend<DSF:mode><BFP:mode>2): New insn definition.
21327         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
21328         (extend<DSF:mode><BFP:mode>2): Turn into expander.
21329         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
21330         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
21331         (sqrt<mode>2): Add vector instruction.
21332
21333 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21334
21335         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
21336         constraints.
21337         * config/s390/predicates.md (const0_operand, constm1_operand)
21338         (constable_operand): Accept vector operands.
21339         * config/s390/s390-modes.def: Add supported vector modes.
21340         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
21341         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
21342         (s390_bytemask_vector_p, s390_expand_vec_strlen)
21343         (s390_expand_vec_compare, s390_expand_vcond)
21344         (s390_expand_vec_init): Add prototypes.
21345         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
21346         (s390_vector_mode_supported_p): New function.
21347         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21348         (s390_contiguous_bitmask_vector_p): New function.
21349         (s390_bytemask_vector_p): New function.
21350         (s390_split_ok_p): Vector regs don't work either.
21351         (regclass_map): Add VEC_REGS.
21352         (s390_legitimate_constant_p): Handle vector constants.
21353         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21354         (legitimate_reload_vector_constant_p): New function.
21355         (s390_preferred_reload_class): Handle CONST_VECTOR.
21356         (s390_reload_symref_address):  Likewise.
21357         (s390_secondary_reload): Vector memory instructions only support
21358         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
21359         (s390_emit_ccraw_jump): New function.
21360         (s390_expand_vec_strlen): New function.
21361         (s390_expand_vec_compare): New function.
21362         (s390_expand_vcond): New function.
21363         (s390_expand_vec_init): New function.
21364         (s390_dwarf_frame_reg_mode): New function.
21365         (print_operand): Handle addresses with 'O' and 'R' constraints.
21366         (NR_C_MODES, constant_modes): Add vector modes.
21367         (s390_output_pool_entry): Handle vector constants.
21368         (s390_hard_regno_mode_ok): Handle vector registers.
21369         (s390_class_max_nregs): Likewise.
21370         (s390_cannot_change_mode_class): New function.
21371         (s390_invalid_arg_for_unprototyped_fn): New function.
21372         (s390_function_arg_vector): New function.
21373         (s390_function_arg_float): Remove size variable.
21374         (s390_pass_by_reference): Handle vector arguments.
21375         (s390_function_arg_advance): Likewise.
21376         (s390_function_arg): Likewise.
21377         (s390_return_in_memory): Vector values are returned in a VR if
21378         possible.
21379         (s390_function_and_libcall_value): Handle vector arguments.
21380         (s390_gimplify_va_arg): Likewise.
21381         (s390_call_saved_register_used): Consider the arguments named.
21382         (s390_conditional_register_usage): Disable v16-v31 for non-vec
21383         targets.
21384         (s390_preferred_simd_mode): New function.
21385         (s390_support_vector_misalignment): New function.
21386         (s390_vector_alignment): New function.
21387         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21388         (TARGET_VECTOR_MODE_SUPPORTED_P)
21389         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21390         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21391         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21392         (TARGET_VECTOR_ALIGNMENT): Define target macro.
21393         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21394         (FIRST_PSEUDO_REGISTER): Increase value.
21395         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21396         (VECTOR_REG_P): Define macros.
21397         (FIXED_REGISTERS, CALL_USED_REGISTERS)
21398         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21399         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21400         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21401         Add vector registers.
21402         (CANNOT_CHANGE_MODE_CLASS): Call C function.
21403         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21404         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21405         memory.
21406         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21407         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21408         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21409         (VR*_REGNUM): New constants.
21410         (ALL): New mode iterator.
21411         (INTALL): Remove mode iterator.
21412         Include vector.md.
21413         (movti): Implement TImode moves for VRs.
21414         Disable TImode splitter for VR targets.
21415         Implement splitting TImode GPR<->VR moves.
21416         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21417         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21418         reload<mode>_la_in, reload<mode>_la_out.
21419         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21420         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21421         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21422         (mov<mode> SF SD): Prefer lder, lde for loading.
21423         Add lrl and strl instructions.
21424         Add vector instructions.
21425         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21426         Call s390_expand_vec_strlen on z13.
21427         (*cc_to_int): Change predicate to nonimmediate_operand.
21428         (addti3): Rename to *addti3.  New expander.
21429         (subti3): Rename to *subti3.  New expander.
21430         * config/s390/vector.md: New file.
21431
21432 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21433
21434         * common/config/s390/s390-common.c (processor_flags_table): Add
21435         z13.
21436         * config.gcc: Add z13.
21437         * config/s390/s390-opts.h (enum processor_type): Add
21438         PROCESSOR_2964_Z13.
21439         * config/s390/s390.c (s390_adjust_priority): Check for
21440         PROCESSOR_2964_Z13.
21441         (s390_reorg): Likewise.
21442         (s390_sched_reorder): Likewise.
21443         (s390_sched_variable_issue): Likewise.
21444         (s390_loop_unroll_adjust): Likewise.
21445         (s390_option_override): Likewise. Default to -mvx when available.
21446         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21447         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21448         (TARGET_VX_ABI): Define macros.
21449         macros.
21450         (TARGET_DEFAULT): Add MASK_OPT_VX.
21451         * config/s390/s390.md ("cpu" attribute): Add z13.
21452         ("cpu_facility" attribute): Add vec.
21453         * config/s390/s390.opt (processor_type): Add z13.
21454         (mvx): New options.
21455         * doc/invoke.texi: Add z13 option for -march.
21456
21457 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21458
21459         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21460         mode check to make sure that only scalar integer values are
21461         accepted.
21462
21463 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21464
21465         * tree.c (verify_type_variant): Fix #undef.
21466         (gimple_canonical_types_compatible_p): Move here from lto.c
21467         (verify_type): Verify TYPE_CANONICAL compatibility.
21468         * tree.h (gimple_canonical_types_compatible_p): Declare.
21469
21470 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21471
21472         PR middle-end/66199
21473         * tree.h (OMP_TEAMS_COMBINED): Define.
21474         * gimplify.c (enum gimplify_omp_var_data): Add
21475         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21476         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21477         (omp_notice_variable): Accept both ORT_TEAMS
21478         and ORT_COMBINED_TEAMS.  Don't recurse if
21479         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21480         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21481         GOVD_FIRSTPRIVATE.
21482         (omp_no_lastprivate): New function.
21483         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21484         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21485         notice_outer and set appropriate bits, otherwise make
21486         sure default(none) combined constructs won't complain.
21487         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21488         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21489         omp_no_lastprivate either remove the clause or turn it
21490         into OMP_CLAUSE_PRIVATE.
21491         (gimplify_omp_for): Fix up handling of implicit
21492         lastprivate or linear iterators.
21493         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21494         ORT_COMBINED_TEAMS.
21495         * omp-low.c (lower_omp_for_lastprivate): For combined
21496         for simd use fd.loop.n2 from the for rather than simd.
21497
21498 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21499
21500         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21501         instead of gen_rtx_raw_REG.
21502         (cris_expand_epilogue): Likewise.
21503         * config/microblaze/microblaze.c (microblaze_classify_address):
21504         Likewise.
21505         * config/sparc/sparc.md: Likewise.
21506
21507 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
21508
21509         * config/alpha/alpha.c (alpha_legitimize_reload_address)
21510         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21511         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21512         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21513         Use CASE_CONST_SCALAR_INT.
21514         (print_operand) <case 'M'>: Use mode_width_operand to check the
21515         value of the constant.
21516         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21517         * config/alpha/predicates.md (input_operand): Use general_operand
21518         instead of match_code as operand check.
21519         (symbolic_operand): Use match_code with subexpression digits.
21520         * config/alpha/constraints.md (Q): Ditto.
21521
21522 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21523
21524         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21525
21526 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21527
21528         * config/s390/s390.c (s390_secondary_reload): Fix check for
21529         load/store relative.
21530
21531 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21532
21533         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
21534         alternative_mask to uint64_t.
21535
21536 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21537
21538         PR tree-optimization/66187
21539         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21540         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
21541         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21542
21543 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
21544
21545         * diagnostic.c (diagnostic_report_current_module): Strengthen
21546         local "new_map" from const line_map * to
21547         const line_map_ordinary *.
21548         * genmatch.c (error_cb): Likewise for local "map".
21549         (output_line_directive): Likewise for local "map".
21550         * input.c (expand_location_1): Likewise for local "map".
21551         Pass NULL rather than &map to
21552         linemap_unwind_to_first_non_reserved_loc, since the value is never
21553         read from there, and the value written back not read from here.
21554         (is_location_from_builtin_token): Strengthen local "map" from
21555         const line_map * to const line_map_ordinary *.
21556         (dump_location_info): Strengthen locals "map" from
21557         line_map *, one to const line_map_ordinary *, the other
21558         to const line_map_macro *.
21559         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21560         const line_map * to const line_map_macro *.
21561         (maybe_unwind_expanded_macro_loc): Add a call to
21562         linemap_check_macro when writing to the "map" field of the
21563         loc_map_pair.
21564         Introduce local const line_map_ordinary * "ord_map", using it in
21565         place of "map" in the part of the function where we know we have
21566         an ordinary map.  Strengthen local "m" from const line_map * to
21567         const line_map_ordinary *.
21568
21569 2015-05-19  Nick Clifton  <nickc@redhat.com>
21570
21571         PR target/66156
21572         * config/msp430/msp430.md (zero_extendhisi2): Add support for
21573         separate source and destination registers.
21574
21575 2015-05-19  Richard Biener  <rguenther@suse.de>
21576
21577         PR tree-optimization/66165
21578         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21579         for no load permutation.
21580
21581         PR tree-optimization/66185
21582         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21583         when building the SLP node from scalars.
21584
21585 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21586             Tristan Gingold  <gingold@adacore.com>
21587
21588         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21589         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21590         (expand_stack_restore): Call record_new_stack_level.
21591         (expand_stack_save): Do not call do_pending_stack_adjust.
21592         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21593         * calls.c (expand_call): Call record_new_stack_level for alloca.
21594         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21595         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21596         (update_sjlj_context): New global function.
21597         * except.h (update_sjlj_context): Declare.
21598         * explow.c (record_new_stack_level): New global function.
21599         (allocate_dynamic_stack_space): Call record_new_stack_level.
21600         * explow.h (record_new_stack_level): Declare.
21601         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21602         * cfgrtl.c (duplicate_insn_chain): Likewise.
21603
21604 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21605
21606         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21607         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21608         STACK_GROWS_DOWNWARD as normal if.
21609         (expand_call): Likewise.
21610
21611 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
21612
21613         PR target/54236
21614         * config/sh/sh.md (*round_int_even): New insn_and_split and
21615         accompanying new unnamed split.
21616
21617 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21618
21619         * bitmap.c (bitmap_set_range): Handle count==1 specially.
21620         (bitmap_clear_range): Likewise.
21621         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21622         bitmap_set_range unconditionally.
21623         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21624         * df-scan.c (df_mark_reg): Likewise.
21625         * haifa-sched.c (setup_ref_regs): Likewise.
21626         * sched-rgn.c (update_live_1): Likewise.
21627
21628 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21629
21630         * regs.h (END_HARD_REGNO): Delete.
21631         (END_REGNO): Move to...
21632         * rtl.h: ...here.
21633         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21634         * caller-save.c (mark_set_regs): Likewise.
21635         * combine.c (move_deaths, distribute_notes): Likewise.
21636         * cse.c (invalidate, invalidate_for_call): Likewise.
21637         * df-scan.c (df_ref_record): Likewise.
21638         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21639         (record_last_reg_set_info): Likewise.
21640         * reg-stack.c (convert_regs_exit): Likewise.
21641         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21642         * resource.c (update_live_status): Likewise.
21643         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21644
21645 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21646
21647         * rtl.h (reg_info): Add an nregs field.
21648         (REG_NREGS): Use it.
21649         (SET_REGNO_RAW): Delete.
21650         (set_regno_raw): New function.
21651         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21652         (END_REGNO): Redefine in terms of REG_NREGS.
21653         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21654         SET_REGNO_RAW.
21655         * emit-rtl.c (set_mode_and_regno): Likewise.
21656         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21657         instead of SET_REGNO_RAW.
21658
21659 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21660
21661         * rtl.h (PUT_MODE_RAW): New macro.
21662         (PUT_REG_NOTE_KIND): Use it.
21663         (set_mode_and_regno): Declare.
21664         (gen_raw_REG): Change regno to "unsigned int".
21665         (gen_rtx_REG): Change "unsigned" to "unsigned int".
21666         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21667         use set_mode_and_regno to change the mode of registers.
21668         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21669         * emit-rtl.c (set_mode_and_regno): New function.
21670         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
21671         * caller-save.c (reg_save_code): Use set_mode_and_regno.
21672         * expr.c (init_expr_target): Likewise.
21673         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21674         * postreload.c (reload_cse_simplify_operands): Likewise.
21675
21676 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21677
21678         * caller-save.c (init_caller_save): Use word_mode and
21679         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21680         * expr.c (init_expr_target): Likewise.
21681         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21682         * postreload.c (reload_cse_regs_1): Likewise.
21683
21684 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21685
21686         * rtl.def (REG): Change format to "r".
21687         * rtl.h (rtunion): Remove rt_reg.
21688         (reg_info): New structure.
21689         (rtx_def): Add reg field to main union.
21690         (X0REGATTR): Delete.
21691         (REG_CHECK): New macro.
21692         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21693         * rtl.c (rtx_format): Document "r".
21694         (rtx_code_size): Handle REG specially.
21695         * gengenrtl.c (special_format): Return true for formats
21696         that include 'r'.
21697         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21698         Deal with REG_ATTRS after the field loop.
21699         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21700         * expmed.c (init_expmed): Call gen_raw_REG instead of
21701         gen_rtx_raw_REG.
21702         * expr.c (init_expr_target): Likewise.
21703         * regcprop.c (maybe_mode_change): Likewise.
21704         * varasm.c (make_decl_rtl): Likewise.
21705         * final.c (leaf_renumber_regs_insn): Return early after
21706         handling REGs.
21707         * genemit.c (gen_exp): Handle 'r' fields.
21708         * genpeep.c (match_rtx): Likewise.
21709         * gensupport.c (subst_pattern_match): Likewise.
21710         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21711         (alter_constraints, subst_dup): Likewise.
21712         * read-rtl.c (read_rtx_code): Likewise.
21713         * print-rtl.c (print_rtx): Likewise.
21714         * genrecog.c (find_operand, find_matching_operand): Likewise.
21715         (validate_pattern, match_pattern_2): Likewise.
21716         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21717         (rtx_test::regno_field): New function.
21718         (operator ==, safe_to_hoist_p, transition_parameter_type)
21719         (parameter_type_string, print_parameter_value)
21720         (print_nonbool_test, print_test): Handle new enum values.
21721         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21722         * lra-constraints.c (operands_match_p): Likewise.
21723
21724 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21725
21726         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21727         Change type of new_regno to unsigned int.
21728         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21729         new_regno to unsigned int.
21730         (df_ref_change_reg_with_loc): Remove old_regno parameter.
21731         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
21732         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21733         (SET_REGNO_RAW): Add space after ",".
21734
21735 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21736
21737         * rtl.h (REG_NREGS): New macro
21738         * alias.c (record_set): Use it.
21739         * cfgcleanup.c (mark_effect): Likewise.
21740         * combine.c (likely_spilled_retval_1): Likewise.
21741         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21742         (move_deaths, distribute_notes): Likewise.
21743         * cselib.c (cselib_record_set): Likewise.
21744         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21745         * df-scan.c (df_mark_reg): Likewise.
21746         * dse.c (look_for_hardregs): Likewise.
21747         * dwarf2out.c (reg_loc_descriptor): Likewise.
21748         (multiple_reg_loc_descriptor): Likewise.
21749         * expr.c (write_complex_part, read_complex_part): Likewise.
21750         (emit_move_complex): Likewise.
21751         * haifa-sched.c (setup_ref_regs): Likewise.
21752         * ira-lives.c (mark_hard_reg_live): Likewise.
21753         * lra.c (lra_set_insn_recog_data): Likewise.
21754         * mode-switching.c (create_pre_exit): Likewise.
21755         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21756         (reload_combine_recognize_pattern): Likewise.
21757         (reload_combine_note_use, move2add_record_mode): Likewise.
21758         (reload_cse_move2add): Likewise.
21759         * reg-stack.c (subst_stack_regs_pat): Likewise.
21760         * regcprop.c (kill_value, copy_value): Likewise.
21761         (copyprop_hardreg_forward_1): Likewise.
21762         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21763         (build_def_use): Likewise.
21764         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21765         (deps_analyze_insn): Likewise.
21766         * sched-rgn.c (check_live_1, update_live_1): Likewise.
21767         * sel-sched.c (count_occurrences_equiv): Likewise.
21768         * valtrack.c (dead_debug_insert_temp): Likewise.
21769
21770 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21771
21772         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21773         * dse.c (note_add_store): Likewise.
21774         * ira-lives.c (mark_hard_reg_dead): Likewise.
21775         * loop-invariant.c (mark_reg_store): Likewise.
21776         (mark_reg_death): Likewise.
21777         * postreload.c (reload_combine): Likewise.
21778         (reload_combine_note_store): Likewise.
21779         (reload_combine_note_use): Likewise.
21780         * recog.c (peep2_reg_dead_p): Likewise.
21781
21782 2015-05-19  Alan Modra  <amodra@gmail.com>
21783
21784         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21785         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21786         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21787         unused predicates.
21788         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21789         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
21790         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21791         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21792
21793 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
21794
21795         * config/mips/mips.md (JOIN_MODE): New mode iterator.
21796         (join2_load_Store<JOIN_MODE:mode>): New pattern.
21797         (join2_loadhi): Likewise.
21798         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21799         load-load and store-stores.
21800         * config/mips/mips.opt (mload-store-pairs): New option.
21801         (TARGET_LOAD_STORE_PAIRS): New macro.
21802         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21803         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21804         * config/mips/mips.c (mips_load_store_bonding_p): New function.
21805
21806 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
21807
21808         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21809         explicit swaps.
21810         * dojump.c (do_compare_rtx_and_jump): Likewise.
21811         * expmed.c (emit_store_flag_1): Likewise.
21812         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21813         * final.c (sprint_ul): Use std::reverse for reversing a string.
21814         * fold-const.c (extract_muldiv_1): Use std::swap.
21815         * genmodes.c (emit_mode_int_n): Likewise.
21816         * ifcvt.c (dead_or_predicable): Likewise.
21817         * ira-build.c (ira_merge_live_ranges): Likewise.
21818         (swap_allocno_copy_ends_if_necessary): Likewise.
21819         * ira.c (ira_setup_alts): Likewise.
21820         * loop-iv.c (iv_analyze_expr): Likewise.
21821         (implies_p): Likewise.
21822         (canon_condition): Likewise.
21823         * lra-constraints.c (swap_operands): Likewise.
21824         * lra-lives.c (lra_merge_live_ranges): Likewise.
21825         * omega.c (swap): Remove.
21826         (bswap): Remove.
21827         (omega_unprotect_1): Use std::swap.
21828         (omega_solve_geq): Likewise.
21829         * optabs.c (expand_binop_directly): Likewise.
21830         (expand_binop): Likewise.
21831         (emit_conditional_move): Likewise.
21832         (emit_conditional_add): Likewise.
21833         * postreload.c (reload_cse_simplify_operands): Likewise.
21834         * reg-stack.c (emit_swap_insn): Likewise.
21835         (swap_to_top): Likewise.
21836         (compare_for_stack_reg): Likewise.
21837         (subst_asm_stack_regs): Likewise.
21838         * reload.c (find_reloads): Likewise.
21839         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21840         * sel-sched.c (invoke_reorder_hooks): Likewise.
21841         (create_block_for_bookkeeping): Likewise.
21842         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21843         (lambda_matrix_right_hermite): Use std::swap.
21844         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21845         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21846         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21847         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21848         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21849         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21850         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21851         * tree-vrp.c (compare_ranges): Likewise.
21852         * var-tracking.c (add_with_sets): Likewise.
21853         (vt_find_locations): Likewise.
21854
21855 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
21856
21857         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21858         pie executables.
21859         (FBSD_ENDFILE_SPEC): Likewise.
21860         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21861         config/freebsd-spec.h.
21862         (ENDFILE_SPEC): Likewise.
21863
21864 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
21865             Richard Henderson  <rth@redhat.com>
21866
21867         PR target/57032
21868         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21869         Check for a memory location that is not a reference (using an AND)
21870         to an unaligned location here.
21871         * config/alpha/predicates.md (normal_memory_operand): Remove.
21872
21873 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
21874
21875         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21876         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21877
21878 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21879
21880         * config/mips/mips.c (micromips_globals): New variable.
21881         (mips_set_compression_mode): Save and reinitialize target-dependent
21882         state for microMIPS.
21883
21884 2015-05-18  Martin Liska  <mliska@suse.cz>
21885
21886         * dbgcnt.def: Add new counter.
21887         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21888
21889 2015-05-18  Martin Liska  <mliska@suse.cz>
21890
21891         * dbgcnt.def: Sort counters.
21892         * opts.c (common_handle_option): Do not compile if
21893         -fdbg-cnt-list is enabled.
21894
21895 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21896
21897         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21898         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
21899         address operator to va_list operand.
21900         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21901         unconditionally.
21902         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21903         operand.
21904         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21905         * config/s390/s390.c (s390_gimplify_va_arg): Same.
21906         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21907
21908 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21909
21910         * tree-ssa-tail-merge.c: Fix whitespace.
21911
21912 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
21913
21914         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21915         cortex-a17, and cortex-a17.cortex-a7.
21916
21917 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
21918
21919         PR target/54236
21920         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21921
21922 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
21923
21924         PR target/66174
21925         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21926         QImode inner modes for TARGET_AVX512BW.  Force mask operand
21927         to a register for AVX512F modes.
21928
21929 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21930
21931         * toplev.c (emit_debug_global_declarations): Do not output debug info
21932         when doing slim LTO objects.
21933
21934 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21935
21936         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21937         odr_types_equivalent_p): Declare.
21938         (odr_type_p): Use gcc_checking_assert.
21939         (type_in_anonymous_namespace_p) Declare.
21940         (type_with_linkage_p): Declare.
21941         * common.opt (Wlto-type-mismatch): New warning.
21942         * ipa-devirt.c (compound_type_base): New function.
21943         (odr_or_derived_type_p): New function.
21944         (odr_types_equivalent_p): New function.
21945         (add_type_duplicate): Simplify.
21946         (type_with_linkage_p): Add hack to prevent false positives on C types
21947         (type_in_anonymous_namespace_p): Likewise.
21948         * tree.c (need_assembler_name_p): Use type_with_linkage.
21949         * tree.h (type_in_anonymous_namespace_p): Remove.
21950         * doc/invoke.texi (-Wlto-type-mismatch): Document
21951
21952 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21953
21954         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21955         (verify_type): Verify STRING_FLAG.
21956
21957 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21958
21959         PR fortran/44054
21960         * tree-pretty-print.c (percent_K_format): Replace locus pointer
21961         with accessor function.
21962         * tree-diagnostic.c (diagnostic_report_current_function): Use
21963         diagnostic_location function.
21964         (maybe_unwind_expanded_macro_loc): Likewise.
21965         (virt_loc_aware_diagnostic_finalizer): Likewise.
21966         (default_tree_printer): Replace locus pointer with accessor function.
21967         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21968         (diagnostic_set_info_translated): Initialize second location.
21969         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21970         (diagnostic_show_locus): Handle two locations. Call
21971         diagnostic_print_caret_line.
21972         (diagnostic_print_caret_line): New.
21973         (default_diagnostic_starter): Use diagnostic_location function.
21974         (diagnostic_report_diagnostic): Use diagnostic_location function.
21975         (verbatim): Do not set text.locus.
21976         * diagnostic.h (struct diagnostic_info): Remove location field.
21977         (struct diagnostic_context): Make caret_chars an array of two.
21978         (diagnostic_location): New inline.
21979         (diagnostic_expand_location): Handle two locations.
21980         (diagnostic_same_line): New inline.
21981         (diagnostic_print_caret_line): Declare.
21982         (CARET_LINE_MARGIN): New constant.
21983         * pretty-print.c (pp_printf): Do not set text.locus.
21984         (pp_verbatim): Do not set text.locus.
21985         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21986         (struct text_info): Replace locus pointer with locations
21987         array. Add accessor functions.
21988
21989 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
21990             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21991
21992         PR target/65768
21993         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21994         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21995          large constants in register instead of splitting them.
21996
21997 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
21998
21999         PR target/66140
22000         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
22001         replacements in memory addresses.
22002         (get_unaligned_address): Ditto.
22003
22004 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
22005
22006         * config/ft32/*: New files for FT32 port.
22007         * doc/install.texi: Add FT32 information.
22008         * doc/invoke.texi: Add FT32 information.
22009         * doc/md.texi: Add FT32 information.
22010         * doc/contrib.texi: Self added.
22011
22012 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
22013
22014         PR tree-optimization/64454
22015         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
22016         (-1 - A -> ~A): Remove unnecessary condition.
22017
22018 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
22019
22020         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
22021         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
22022         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
22023
22024 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
22025
22026         * ipa-chkp.h (chkp_wrap_function): New.
22027         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
22028         (chkp_wrap_function_name): New.
22029         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
22030         to get wrapper name.
22031         * lto-cgraph.c: Include ipa-chkp.h.
22032         (input_cgraph_1): Avoid alias chain for wrappers.
22033
22034 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
22035
22036         PR middle-end/66134
22037         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
22038         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
22039
22040 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22041
22042         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
22043         (AARCH64_FL_SLOWMUL): Delete.
22044         (AARCH64_FL_CRC): Redefine to 1<<3.
22045         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
22046
22047 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22048
22049         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
22050         casting.
22051
22052 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
22053
22054         * config/alpha/alpha.md (extendqidi2): Use general_operand
22055         instead of some_operand for operand[1] predicate.
22056         (extendhidi2): Ditto.
22057         (cbranchdi4): Use general_operand instead of some_operand
22058         for operand[1] and operands[2] predicates.
22059         (cstoredi4): Ditto.
22060         * config/alpha/predicates.md (some_operand): Remove unused predicate.
22061         (some_ni_operand): Ditto.
22062
22063 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
22064
22065         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
22066         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
22067         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
22068         low part of the constant using alpha_emit_set_const_1.
22069         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
22070
22071 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
22072
22073         * varasm.c (output_constant_pool_1): Pass down alignment from
22074         constant pool entry's descriptor to output_constant_pool_2.
22075         (output_object_block): Add comment prior to call to
22076         output_constant_pool_1.
22077
22078 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
22079
22080         PR rtl-optimization/65862
22081         * target.def (ira_change_pseudo_allocno_class): New hook.
22082         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22083         value of the hook.
22084         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22085         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22086         hook.
22087         * ira-costs.c (find_costs_and_classes): Call the hook and change
22088         classes when it is necessary.
22089         * doc/tm.texi: Update.
22090
22091 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
22092
22093         * config/i386/i386.md (sibcall_memory): Check that register with
22094         callee address is not also used as one of the arguments, instead
22095         of checking that it is not live after the sibcall.
22096         (sibcall_pop_memory): Ditto.
22097         (sibcall_value_memory): Ditto.
22098         (sibcall_value_pop_memory): Ditto.
22099
22100 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
22101
22102         * generic-match-head.c (types_match): Handle non-types.
22103         * gimple-match-head.c (types_match): Likewise.
22104         * match.pd: Remove unnecessary TREE_TYPE for types_match.
22105
22106 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
22107
22108         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22109         (csneg3<mode>_insn): Enable expansion of pattern.
22110
22111 2015-05-14  Nick Clifton  <nickc@redhat.com>
22112
22113         * config/rl78/rl78.c (rl78_select_section): Select the correct
22114         default section based upon the category of the decl.
22115
22116 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22117
22118         PR rtl-optimization/30967
22119         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22120         destination mode for the cost of scc patterns.
22121
22122 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
22123
22124         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22125         using SWIM248 mode iterator.
22126         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22127         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
22128         for operand[2] constraint.
22129         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22130
22131 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22132
22133         PR middle-end/66133
22134         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22135         make sure it is never noreturn, even when the task body does not
22136         return.
22137         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22138         right before GIMPLE_OMP_RETURN.
22139         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22140         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
22141         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22142
22143 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22144
22145         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22146         * tree-ssa-math-opts.c: Include params.h
22147         (pow_synth_sqrt_info): New struct.
22148         (representable_as_half_series_p): New function.
22149         (get_fn_chain): Likewise.
22150         (print_nested_fn): Likewise.
22151         (dump_fractional_sqrt_sequence): Likewise.
22152         (dump_integer_part): Likewise.
22153         (expand_pow_as_sqrts): Likewise.
22154         (gimple_expand_builtin_pow): Use above to attempt to expand
22155         pow as series of square roots.  Removed now unused variables.
22156
22157 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
22158
22159         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22160         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22161         Remove *p0 and *p1 arguments.  Rewrite function.
22162         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22163         (alpha_split_const_mov): Update calls to alpha_extract_integer and
22164         alpha_emit_set_long_const.
22165         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22166         (alpha_output_mi_thunk_osf): Ditto.
22167         * config/alpha/alpha.md (movti): Do not check operands[1]
22168         for CONST_DOUBLE.
22169
22170 2015-05-13  Richard Biener  <rguenther@suse.de>
22171
22172         PR tree-optimization/66129
22173         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22174         commutative.
22175         (vect_schedule_slp_instance): Fix typo.
22176
22177 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
22178
22179         * common.opt (fdump-internal-locations): New option.
22180         * input.c: Include diagnostic-core.h.
22181         (get_end_location): New function.
22182         (write_digit): New function.
22183         (write_digit_row): New function.
22184         (dump_location_range): New function.
22185         (dump_labelled_location_range): New function.
22186         (dump_location_info): New function.
22187         * input.h (dump_location_info): New prototype.
22188         * toplev.c (compile_file): Handle flag_dump_locations.
22189
22190 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
22191
22192         * gimple-expr.h (is_gimple_constant): Reorder.
22193         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22194
22195 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22196
22197         * combine.c (simplify_set): When generating a CC set, if the
22198         source already is in the correct mode, do not wrap it in a
22199         compare.  Simplify the rest of that code.
22200
22201 2015-05-13  Richard Biener  <rguenther@suse.de>
22202
22203         PR tree-optimization/66123
22204         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22205         a taken edge.
22206
22207 2015-05-13  Richard Biener  <rguenther@suse.de>
22208
22209         PR middle-end/66110
22210         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22211         specially.
22212         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22213
22214 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22215
22216         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22217         * aclocal.m4: Regenerated with automake-1.11.6.
22218
22219 2015-05-13  Tom de Vries  <tom@codesourcery.com>
22220
22221         PR tree-optimization/66010
22222         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22223         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22224         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
22225         and rval based on do_deref.
22226
22227 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22228
22229         PR target/65103
22230         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22231         link time constants into adress expressions and therefore set
22232         their cost to 0.
22233
22234 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22235
22236         PR target/66112
22237         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22238         Use SWI248 iterator instead of SWI.
22239         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
22240         Use eq_attr "alternative" "0" instead of match_test in
22241         length_immediate attribute computation.
22242         (*mulvhi4, *mulvhi4_1): New define_insns.
22243
22244         PR target/66112
22245         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22246         SIGNED to get precision of non-negative value.
22247
22248 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22249
22250         PR target/66048
22251         * function.c (diddle_return_value_1): Process bounds first.
22252         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22253         register.
22254
22255 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22256
22257         PR rtl-optimization/64616
22258         * loop-invariant.c (can_move_invariant_reg): New.
22259         (move_invariant_reg): Call above new function to decide whether
22260         instruction can just be moved, skipping creation of temporary
22261         register.
22262
22263 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22264
22265         PR target/pr66047.c
22266         * i386.c (ix86_function_sseregparm): Only return -1 if local function
22267         with implied regparm is called from -mno-sse function.
22268         (init_cumulative_args): Output error if ix86_function_sseregparm
22269         return -1 and SSE register would be needed.
22270         (function_arg_advance_32): Likewise.
22271         (function_arg_32): Likewise.
22272         * i386.h (ix86_args): Add decl field.
22273
22274 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22275
22276         PR ipa/65873
22277         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22278         inlines across optimization boundary.
22279
22280 2015-05-12  Jason Merrill  <jason@redhat.com>
22281
22282         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22283         string literal and macro name.
22284
22285 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
22286
22287         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22288         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22289         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22290
22291 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22292
22293         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22294         (-Wmisleading-indentation): New option.
22295         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22296
22297 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
22298
22299         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22300         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22301         (alpha_extract_integer): Ditto.
22302         (alpha_legitimate_constant_p): Ditto.
22303         (alpha_split_tmode_pair): Ditto.
22304         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22305         (alpha_expand_mov): Ditto.
22306         (print_operand): Remove handling of 'H' modifier.
22307         <case 'm'>: Remove CONST_DOUBLE handling.
22308         (summarize_insn): Handle CONST_WIDE_INT.
22309         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22310         (anddi3): Ditto.
22311         (movti): Handle CONST_WIDE_INT.
22312         * config/alpha/constraints.md ('H'): Remove constraint definition.
22313         ('G'): Do not match MODE_FLOAT class.
22314         * config/alpha/predicates.md (const0_operand): Also match
22315         const_wide_int.
22316         (non_add_const_operand): Ditto.
22317         (non_zero_const_operand): Ditto.
22318         (some_operand): Ditto.
22319         (input_operand): Ditto.  Handle CONST_WIDE_INT.
22320         (and_operand): Do not match const_double.
22321         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22322
22323 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
22324
22325         PR target/65697
22326         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
22327         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
22328         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
22329         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
22330         is_mm_seq_cst, is_mm_sync): New accessor functions.
22331         * builtins.c (expand_builtin_sync_operation,
22332         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
22333         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
22334         (get_memmodel,  expand_builtin_atomic_compare_exchange,
22335         expand_builtin_atomic_load, expand_builtin_atomic_store,
22336         expand_builtin_atomic_clear): Use new accessor routines.
22337         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
22338         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
22339         (maybe_emit_sync_lock_test_and_set): Use new accessors and
22340         MEMMODEL_SYNC_ACQUIRE.
22341         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
22342         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
22343         expand_atomic_store): Use new accessors.
22344         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
22345         * tsan.c (instrument_builtin_call): Update check for memory model beyond
22346         final enum to use MEMMODEL_LAST.
22347         * c-family/c-common.c: Use new accessor for memmodel_base.
22348         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22349         accessors.
22350         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22351         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22352         mem_thread_fence, *dmb): Likewise.
22353         * config/alpha/alpha.c (alpha_split_compare_and_swap,
22354         alpha_split_compare_and_swap_12): Likewise.
22355         * config/arm/arm.c (arm_expand_compare_and_swap,
22356         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22357         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22358         atomic_loaddi): Likewise.
22359         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22360         Likewise.
22361         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22362         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22363         use new accessors.
22364         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22365         atomic_store<mode>, atomic_compare_and_swap<mode>,
22366         atomic_exchange<mode>): Use new accessors.
22367         * config/mips/mips.c (mips_process_sync_loop): Likewise.
22368         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22369         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22370         rs6000_post_atomic_barrier): Add new cases.
22371         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22372         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22373         (atomic_load<mode>): Add new cases and use new accessors.
22374         (store_quadpti): Add new cases.
22375         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22376         accessors.
22377         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22378         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22379         model, not 8.
22380
22381 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22382
22383         * ipa-devirt.c (type_with_linkage_p): New function.
22384         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22385         type has linkage.
22386         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22387         (can_be_name_hashed_p): Simplify.
22388         (hash_odr_name): Check that type has linkage before checking if it is
22389         anonymous.
22390         (types_same_for_odr): Likewise.
22391         (odr_name_hasher::equal): Likewise.
22392         (odr_subtypes_equivalent_p): Likewise.
22393         (warn_types_mismatch): Likewise.
22394         (get_odr_type): Likewise.
22395         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22396         * ipa-utils.h (odr_type_p): Move offline.
22397         * tree.c (need_assembler_name_p): Fix handling of types
22398         without linkages.
22399         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22400
22401 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22402
22403         * timevar.c (timevar_enable): Delete in favor of...
22404         (g_timer): New global.
22405         (struct timevar_def): Move to timevar.h inside class timer.
22406         (struct timevar_stack_def): Likewise.
22407         (timevars): Delete global in favor of field "m_timevars" within
22408         class timer in timevar.h
22409         (stack): Likewise, in favor of field "m_stack".
22410         (unused_stack_instances): Likewise, in favor of field
22411         "m_unused_stack_instances".
22412         (start_time): Likewise, in favor of field "m_start_time".
22413         (get_time): Eliminate check for timevar_enable.
22414         (timer::timer): New function, built from part of timevar_init.
22415         (timevar_init): Rewrite idempotency test from using
22416         "timevar_enable" bool to using dynamic allocation of "g_timer".
22417         Move rest of implementation into timer's constructor.
22418         (timevar_push_1): Rename to...
22419         (timer::push): ...this, adding "m_" prefixes to variables that
22420         are now fields of timer.
22421         (timevar_pop_1): Likewise, rename to...
22422         (timer::pop): ...this, and add "m_" prefixes.
22423         (timevar_start): Replace test for "timevar_enable" with one for
22424         "g_timer", and move bulk of implementation to...
22425         (timer::start): ...here, adding "m_" prefixes.
22426         (timevar_stop): Likewise, from here...
22427         (timer::stop): ...to here.
22428         (timevar_cond_start): Likewise, from here...
22429         (timer::cond_start): ...to here.
22430         (timevar_cond_stop): Likewise, from here...
22431         (timer::cond_stop): ...to here.
22432         (validate_phases): Rename to...
22433         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
22434         locals "total" and "tv" const.
22435         (timevar_print): Rename to...
22436         (timer::print): ...this, and add "m_" prefixes.  Make locals
22437         "total" and "tv" const.  Eliminate test for timevar_enable.
22438         * timevar.h (timevar_enable): Eliminate.
22439         (g_timer): New declaration.
22440         (timevar_push_1): Eliminate.
22441         (timevar_pop_1): Eliminate.
22442         (timevar_print): Eliminate.
22443         (class timer): New class.
22444         (timevar_push): Rewrite to use g_timer.
22445         (timevar_pop): Likewise.
22446         * toplev.c (toplev::~toplev): Likewise.
22447
22448 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
22449
22450         * arm-protos.h (arm_sched_autopref): Delete.
22451         (tune_params): Re-organize, use enums for flag values.
22452         (FUSE_OPS): New macro.
22453         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22454         (ARM_PREFETCH_BENEFICIAL): Likewise.
22455         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22456         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22457         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22458         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22459         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22460         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
22461         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22462         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22463         format.
22464         (arm_option_override, thumb2_reorg, arm_print_tune_info)
22465         (aarch_macro_fusion_pair_p): Update uses of current_tune.
22466         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22467
22468 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
22469
22470         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22471         "break".
22472
22473 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
22474             Sandra Loosemore <sandra@codesourcery.com>
22475
22476         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22477         value.
22478         (REG_CLASS_NAMES): Add "IJMP_REGS".
22479         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22480         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22481         use new "c" register constraint.
22482         * config/nios2/constraint.md (c): New register constraint
22483         corresponding to IJMP_REGS.
22484
22485 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22486
22487         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22488         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22489         define_splits): Delete, revamp, transmogrify into ...
22490         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22491         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22492         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22493         New.
22494
22495 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22496
22497         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22498         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22499
22500 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22501
22502         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22503         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22504         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22505         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22506         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22507         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22508         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22509         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22510         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22511         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22512         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22513         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22514         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22515         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22516         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22517         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22518         and 30 corresponding splitters): Delete.
22519
22520 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22521
22522         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22523         zero_extract.
22524
22525 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22526
22527         * combine.c (recog_for_combine_1): New function, factored out
22528         from recog_for_combine.
22529         (change_zero_ext): New function.
22530         (recog_for_combine): If recog fails, try again with the pattern
22531         modified by change_zero_ext; if that still fails, restore the
22532         pattern.
22533
22534 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22535
22536         * combine.c (get_undo_marker): New function.
22537         (undo_to_marker): New function, largely factored out from ...
22538         (undo_all): ... this.  Adjust.
22539
22540 2015-05-12  Richard Biener  <rguenther@suse.de>
22541
22542         PR tree-optimization/66101
22543         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22544         fixup if we turn a loop exit edge to a fallthru edge.
22545
22546 2015-05-12  Richard Biener  <rguenther@suse.de>
22547
22548         PR tree-optimization/37021
22549         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22550         (SLP_TREE_TWO_OPERATORS): New define.
22551         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22552         SLP_TREE_TWO_OPERATORS.
22553         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22554         SLP node.
22555         (vect_build_slp_tree): Adjust.
22556         (vect_analyze_slp_cost_1): Likewise.
22557         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22558         emitting two vector stmts and mixing the results.
22559
22560 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22561
22562         * call.c (print_z_candidates): Remove dead code.
22563
22564 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22565
22566         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22567         and zEC12_simple_fp.
22568         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22569         to 1.
22570
22571 2015-05-12  Tom de Vries  <tom@codesourcery.com>
22572
22573         PR tree-optimization/66010
22574         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22575         ifn_va_arg.
22576         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22577         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
22578         va_lists are passed, and remove corresponding handling.
22579         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
22580         do_deref argument to ifn_va_arg.
22581         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22582         ifn_va_arg.
22583
22584 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22585
22586         PR target/65955
22587         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22588         REG before taking its REGNO.
22589
22590 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22591
22592         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22593         rsp->sign_bit_copies and rsp->nonzero_bits into ...
22594         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
22595         present to get more accurate information about the number of sign bit
22596         copies and non zero bits.
22597
22598 2015-05-12  Richard Biener  <rguenther@suse.de>
22599
22600         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22601         do not allow unrolling.
22602
22603 2015-05-11  Richard Henderson  <rth@redhat.com>
22604
22605         * config/i386/i386-modes.def (CCP): New.
22606         * config/i386/i386.c (put_condition_code): Handle it.
22607         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22608
22609 2015-05-11  Richard Henderson  <rth@redhat.com>
22610
22611         * target.def (md_asm_clobbers): Replace with...
22612         (md_asm_adjust): this.
22613         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22614         (TARGET_MD_ASM_ADJUST): New.
22615         * tm.texi: Rebuild.
22616         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22617         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22618         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22619
22620         * cfgexpand.c (check_operand_nalternatives): Accept vector of
22621         constraints instead of lists of outputs and inputs.
22622         (expand_asm_stmt): Save and restore input_location around the
22623         body of the function.  Move asm data into vectors instead of
22624         building tree lists.  Generate cleanup sequences as needed,
22625         rather than waiting til the end.  Use new md_asm_adjust hook.
22626
22627         * config/vxworks.c: Include vec.h before target.h.
22628         * gimple.c: Likewise.
22629         * incpath.c: Likewise.
22630         * mode-switching.c: Likewise.
22631
22632         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22633         (cris_md_asm_adjust): this.
22634         (TARGET_MD_ASM_CLOBBERS): Remove.
22635         (TARGET_MD_ASM_ADJUST): New.
22636         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22637         (ix86_md_asm_adjust): this.
22638         (TARGET_MD_ASM_CLOBBERS): Remove.
22639         (TARGET_MD_ASM_ADJUST): New.
22640         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22641         (mn10300_md_asm_adjust): this.
22642         (TARGET_MD_ASM_CLOBBERS): Remove.
22643         (TARGET_MD_ASM_ADJUST): New.
22644         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22645         (rs6000_md_asm_adjust): this.
22646         (TARGET_MD_ASM_CLOBBERS): Remove.
22647         (TARGET_MD_ASM_ADJUST): New.
22648         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22649         (visium_md_asm_adjust): this.
22650         (TARGET_MD_ASM_CLOBBERS): Remove.
22651         (TARGET_MD_ASM_ADJUST): New.
22652
22653 2015-05-11  Richard Henderson  <rth@redhat.com>
22654
22655         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22656         if noutputs is zero.
22657         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22658
22659         * cfgexpand.c (expand_asm_operands): Merge into...
22660         (expand_asm_stmt): ... here.
22661
22662         * cfgexpand.c (expand_asm_operands): Don't call
22663         resolve_asm_operand_names.
22664         * stmt.c (resolve_asm_operand_names): Clarify block comment.
22665
22666 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
22667
22668         * dwarf2out.c (gen_member_die): Sanity check that we access
22669         TYPE_MAIN_VARIANT for TYPE_METHODS.
22670         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22671         checking TYPE_METHODS.
22672         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22673         if non-null.
22674         (build_distinct_type_copy): Clear TYPE_METHODS.
22675         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22676         (verify_type): Allow TYPE_METHODS to be error_mark_node.
22677         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22678
22679 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22680
22681         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22682         (emit_pattern_before_setloc): Likewise.
22683
22684 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22685
22686         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22687         for define_peephole2s.
22688         (get_peephole2_pattern): New function.
22689         (main): Use it.  Call validate_pattern.
22690
22691 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22692
22693         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22694         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22695         (Last callee saved reg is different for AVR_TINY architecture)
22696
22697 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22698
22699         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22700         when looking for memory references.
22701
22702 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22703
22704         PR target/65753
22705         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22706         via function pointers.
22707
22708 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22709
22710         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22711         indirect call by forcing address into a pseudo with -fno-plt.
22712         * common.opt (flag_plt): New option.
22713         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22714         ([-fno-plt]): Document.
22715
22716 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
22717
22718         PR bootstrap/66105
22719         * config/rs6000/option-defaults.h: Add space between string literal
22720         and macro name.
22721
22722 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22723
22724         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22725         accross ARM targets.
22726
22727 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22728
22729         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22730         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22731
22732 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22733
22734         PR rtl-optimization/66076
22735         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22736         Don't grow the heap array if it is already big enough from a
22737         previous iteration.
22738
22739 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22740
22741         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22742         (is_called_in_ARM_mode): Remove.
22743         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22744         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22745         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22746          arm_declare_function_name.
22747
22748 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22749
22750         * config/arm/arm.c (arm_option_override): Reoganized and split into :
22751         (arm_option_params_internal); New function.
22752         (arm_option_check_internal): New function.
22753         (arm_option_override_internal): New function.
22754         (thumb_code, thumb1_code): Remove.
22755         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22756         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22757         (thumb_code, thumb1_code): Remove.
22758         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22759
22760 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22761
22762         * config/alpha/alpha.c (alpha_emit_set_const_1)
22763         (alpha_emit_set_long_const, alpha_extract_integer)
22764         (alpha_legitimate_constant_p, alpha_split_const_mov)
22765         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22766         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22767         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22768         HOST_WIDE_INT_1U.
22769         * config/alpha/predicates.md (mode_mask_operand): Do not match
22770         const_double RTX.
22771         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22772         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22773         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22774         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22775         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22776
22777 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
22778
22779         PR target/65780
22780         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22781         default_binds_local_p_2.
22782         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22783         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22784
22785 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22786
22787         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22788
22789 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22790
22791         Patch by Richard Biener
22792         * coverage.c (coverage_obj_init): Delay building of type variant
22793         until the type is finished.
22794
22795 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22796
22797         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22798         mismatch between C and C++ type; compoare correctly ARG_TYPES
22799         for non-prototypes and output correctly parameter index for METHOD_TYPE.
22800         (odr_types_equivalent_p): Fix wording of warning about attributes;
22801         it is OK to match prototype and non-prototype.
22802
22803 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22804
22805         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22806         TYPE_ARG_TYPES list.
22807         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22808         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22809
22810 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22811
22812         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22813         * tree.h (is_lang_specific): Constify.
22814
22815 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
22816
22817         PR tree-optimization/64454
22818         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22819         Rewrite.
22820
22821 2015-05-08  Jason Merrill  <jason@redhat.com>
22822
22823         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22824         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22825         config/darwin.h, config/darwin9.h, config/elfos.h,
22826         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22827         config/microblaze/microblaze.h, config/mips/mips.h,
22828         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22829         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22830         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22831         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22832         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22833         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22834         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22835         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22836         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22837         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22838         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22839         between string literal and macro name.
22840
22841 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22842
22843         * jump.c: Change argument types to rtx_insn *.
22844         * rtl.h: Adjust.
22845
22846 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22847
22848         * lra-constraints.c: Change argument type to rtx_insn *.
22849
22850 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22851
22852         * df-problems.c: Change argument type to rtx_insn *.
22853
22854 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22855
22856         * combine.c: Change argument type to rtx_insn *.
22857
22858 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22859
22860         * rtl.h: Adjust.
22861         * rtlanal.c: Change argument type to rtx_insn *.
22862
22863 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22864
22865         * sched-deps.c: Change argument types to rtx_insn *.
22866         * sched-int.h: Adjust.
22867
22868 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22869
22870         * dwarf2cfi.c: Change argument type to rtx_insn *.
22871
22872 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22873
22874         * ira.c (decrease_live_ranges_number): Changetype of local
22875         variable to rtx_insn *.
22876         * recog.c: Change argument types to rtx_insn *.
22877         * recog.h: Adjust.
22878
22879 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22880
22881         * reorg.c: Change argument types to rtx_insn *.
22882
22883 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22884
22885         * ira-color.c: Change argument types to rtx_insn *.
22886         * lra-eliminations.c: Likewise.
22887         * ira.h: Adjust.
22888
22889 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22890
22891         * gcse.c: Change argument types to rtx_insn *.
22892
22893 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22894
22895         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22896
22897 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22898
22899         * emit-rtl.c (emit_debug_insn_before): Change argument type to
22900         rtx_insn *.
22901         * rtl.h: Adjust.
22902
22903 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22904
22905         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22906         * rtl.h: Adjust.
22907
22908 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22909
22910         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22911         * rtl.h: Adjust.
22912
22913 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22914
22915         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22916         * rtl.h: Adjust.
22917
22918 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22919
22920         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22921         * rtl.h: Adjust.
22922
22923 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22924
22925         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22926         to rtx_insn *.
22927         * rtl.h: Adjust.
22928
22929 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22930
22931         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22932         to rtx_insn *.
22933         * rtl.h: Likewise.
22934
22935 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22936
22937         * except.c (can_nonlocal_goto): Change type of argument to
22938         rtx_insn *.
22939         * rtl.h: Adjust.
22940
22941 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22942
22943         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22944         * rtl.h: Adjust.
22945
22946 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22947
22948         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22949         * cfgrtl.c (can_delete_label_p): Adjust.
22950         * rtl.h: likewise.
22951
22952 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22953
22954         * reorg.c (stop_search_p): Change argument to rtx_insn *.
22955
22956 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22957
22958         * except.c (make_reg_eh_region_note): Change argument to
22959         rtx_insn *.
22960         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22961         * except.h: Adjust.
22962
22963 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22964
22965         * mode-switching.c (commit_mode_sets): Change type of local
22966         variable from rtx to rtx_insn *.
22967
22968 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
22969
22970         * doc/install.texi (--enable-languages): Add missing jit and lto info.
22971         Add ^ to grep command.
22972         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22973         arg to last gimple_simplify declaration.  Add missing gimple_build
22974         declaration for built-in function case with four tree args.
22975
22976 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22977             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22978
22979         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22980         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22981         (GNU_USER_DYNAMIC_LINKERN32): Update.
22982
22983 2015-05-08  Richard Biener  <rguenther@suse.de>
22984
22985         PR tree-optimization/66036
22986         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22987         Handle strided group loads.
22988         (vect_verify_datarefs_alignment): Likewise.
22989         (vect_enhance_data_refs_alignment): Likewise.
22990         (vect_analyze_group_access): Likewise.
22991         (vect_analyze_data_ref_access): Likewise.
22992         (vect_analyze_data_ref_accesses): Likewise.
22993         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22994         (vectorizable_load): Likewise.
22995
22996 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
22997
22998         * config/rs6000/rs6000.md: Require operand inequality in one
22999         of the peepholes.
23000
23001 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
23002             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
23003
23004         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
23005         from (set ...).
23006         * config/rx/rx.md (movdi, movdf): Likewise.
23007         Likewise for define_peephole2s.
23008
23009 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
23010
23011         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
23012         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
23013         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
23014         vtst_u64): Rewrite using gcc vector extensions.
23015
23016 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
23017
23018         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
23019         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
23020
23021 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
23022
23023         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
23024
23025 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23026
23027         * config/glibc-stdint.h (OPTION_MUSL): Define.
23028         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
23029         Change the definition based on OPTION_MUSL for 64 bit targets.
23030         * config/linux.h (OPTION_MUSL): Redefine.
23031         * config/alpha/linux.h (OPTION_MUSL): Redefine.
23032         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
23033         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
23034
23035 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
23036             Szabolcs Nagy  <szabolcs.nagy@arm.com>
23037
23038         * config.gcc (LIBC_MUSL): New tm_defines macro.
23039         * config/linux.h (OPTION_MUSL): Define.
23040         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
23041         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
23042         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23043         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23044         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23045         * config/linux.opt (mmusl): New option.
23046         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
23047         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23048         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23049         * configure: Regenerate.
23050
23051 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
23052             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23053
23054         PR target/48904
23055         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
23056         * config/i386/knetbsd-gnu64.h: New file.
23057
23058 2015-05-08  Marek Polacek  <polacek@redhat.com>
23059
23060         PR c/64918
23061         * doc/invoke.texi: Document -Woverride-init-side-effects.
23062
23063 2015-05-07  Marek Polacek  <polacek@redhat.com>
23064
23065         PR c/65179
23066         * doc/invoke.texi: Document -Wshift-negative-value.
23067
23068 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
23069
23070         * gcov-tool.c (do_merge): Refactore to remove int ret.
23071         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23072         !type == FUNC to type != FUNC.
23073         * reload.h (struct target_reload): Changee to type of
23074         x_spill_indirect_levels from bool to unsigned char.
23075
23076 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
23077
23078         * rtl.h (always_void_p): New function.
23079         * gengenrtl.c (always_void_p): Likewise.
23080         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23081         with code foo are always VOIDmode.
23082         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23083         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23084         compare-elim.c, config/aarch64/aarch64.c,
23085         config/aarch64/aarch64.md, config/alpha/alpha.c,
23086         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23087         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23088         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23089         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23090         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23091         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23092         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23093         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23094         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23095         config/ia64/vect.md, config/iq2000/iq2000.c,
23096         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23097         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23098         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23099         config/mep/mep.c, config/microblaze/microblaze.c,
23100         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23101         config/mn10300/mn10300.c, config/msp430/msp430.c,
23102         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23103         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23104         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23105         config/rs6000/altivec.md, config/rs6000/rs6000.c,
23106         config/rs6000/rs6000.md, config/rs6000/vector.md,
23107         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23108         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23109         config/sh/sh.md, config/sh/sh_treg_combine.cc,
23110         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23111         config/spu/spu.md, config/stormy16/stormy16.c,
23112         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23113         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23114         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23115         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23116         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23117         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23118         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23119         var-tracking.c: Update calls accordingly.
23120
23121 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
23122
23123         PR middle-end/192
23124         PR middle-end/54303
23125         * varasm.c (function_mergeable_rodata_prefix): New function.
23126         (mergeable_string_section): Use it.
23127         (mergeable_constant_section): Use it.
23128
23129 2015-05-07  Jeff Law  <law@redhat.com>
23130
23131         PR target/39726
23132         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23133         simplifier to narrow arithmetic.
23134         * generic-match-head.c: (types_match, single_use): New functions.
23135         * gimple-match-head.c: (types_match, single_use): New functions.
23136
23137 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23138
23139         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23140         rtx type.
23141
23142 2015-05-07  Richard Biener  <rguenther@suse.de>
23143
23144         PR tree-optimization/66002
23145         * passes.def: Schedule another pass_merge_phi after ifcombine, right
23146         before phiopt.
23147
23148 2015-05-07  Marek Polacek  <polacek@redhat.com>
23149             Martin Uecker  <uecker@eecs.berkeley.edu>
23150
23151         * doc/invoke.texi: Document -fsanitize=bounds-strict.
23152         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23153         into SANITIZE_NONDEFAULT.
23154         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23155
23156 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
23157
23158         PR target/66015
23159         * config/alpha/alpha.c (alpha_override_options_after_change): New.
23160         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23161         (alpha_override_options): Move align_loops, align_jumps and
23162         align_functions handling into alpha_override_options_after_change.
23163
23164 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
23165             Chris Jones  <chrisj@nvidia.com>
23166             Joshua Conner  <jconner@nvidia.com>
23167
23168         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23169         linking of crtfastmath.o.
23170         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23171
23172 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
23173
23174         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23175         (cstore<mode>4_unsigned_imm): New expander.
23176         (cstore<mode>4): Remove empty constraint strings.  Use the new
23177         expanders.
23178
23179 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
23180
23181         PR target/64208
23182         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23183         alternatives.
23184
23185 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23186
23187         * config/aarch64/geniterators.sh: Use standard BRE in sed.
23188
23189 2015-05-06  Alan Modra  <amodra@gmail.com>
23190
23191         PR target/66033
23192         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23193         (UNSPEC_NOP): Define.
23194         (reload_vsx_from_gpr<mode>): Add missing DONE.
23195         (reload_gpr_from_vsx<mode>): Likewise.
23196         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23197         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23198
23199 2015-05-06  Christian Bruel  <christian.bruel@st.com>
23200
23201         PR target/66015
23202         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23203         align_jumps, align_functions into aarch64_override_options_after_change.
23204
23205 2015-05-06  Richard Biener  <rguenther@suse.de>
23206
23207         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23208         vect_transform_slp_perm_load to check if we support a permutation
23209         for basic-block vectorization.
23210
23211 2015-05-06  Nick Clifton  <nickc@redhat.com>
23212
23213         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23214         used, even if it is not being used as a frame pointer.
23215
23216 2015-05-05  Jason Merrill  <jason@redhat.com>
23217
23218         * dwarf2out.c (gen_member_die): Don't emit anything for an
23219         anonymous class constructor.
23220
23221 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
23222
23223         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23224         that it reflects the block structure.
23225         (afdo_propagate_edge): Likewise.
23226         (afdo_calculate_branch_prob): Likewise.
23227         (afdo_annotate_cfg): Likewise.
23228         * cfgcleanup.c (equal_different_set_p): Likewise.
23229         (try_crossjump_to_edge): Likewise.
23230         * cgraph.c (cgraph_node::verify_node): Likewise.
23231         * cgraphunit.c (expand_all_functions): Likewise.
23232         * config/i386/i386.c (ix86_expand_copysign): Likewise.
23233         (exact_dependency_1): Likewise.
23234         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23235         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23236         * gensupport.c (process_define_subst): Likewise.
23237         * lto-wrapper.c (merge_and_complain): Likewise.
23238         * tree-if-conv.c (if_convertible_bb_p): Likewise.
23239         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23240         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23241         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23242         * tree-vect-loop.c (vectorizable_reduction): Likewise.
23243         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23244         * tree-vect-stmts.c (vectorizable_shift): Likewise.
23245         * tree-vrp.c (vrp_finalize): Likewise.
23246         * tree.c (variably_modified_type_p): Likewise.
23247
23248 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
23249
23250         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23251         on darwin12 and later.
23252         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23253         file to pass -rdynamic on darwin12 and later.
23254         * config/darwin.opt (rdynamic): Add.
23255
23256 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23257
23258         * doc/extend.texi (C Extensions): Update menu for moved Variable
23259         Attributes and Type Attributes sections.
23260
23261 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23262
23263         PR target/65990
23264         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23265         if rep_8byte stringop strategy was specified for 32-bit target.
23266
23267 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
23268
23269         PR target/65915
23270         * config/i386/i386.md (vector convert to float spltiter): Check for
23271         xmm16+, when splitting scalar float conversion.
23272         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23273
23274 2015-05-05  Nick Clifton  <nickc@redhat.com>
23275
23276         * config/msp430/msp430-opts.h (enum msp430_regions): New.
23277         * config/msp430/msp430.c (msp430_override_options): Complain if
23278         -mcode-region or -mdata-region is used on a non MSP430X.
23279         (msp430_section_attr): New function.  Checks lower, upper and
23280         either attributes.
23281         (msp430_attribute_table): Add lower, upper and either.
23282         (gen_prefix): New function.  Generates a prefix for a section
23283         name.
23284         (msp430_select_section): New function - handles the choice of
23285         section for an object.  Takes into account memory region
23286         attributes and options.
23287         (msp430_function_section): Use gen_prefix.
23288         (TARGET_SECTION_TYPE_FLAGS): Define.
23289         (msp430_section_type_flags): New function.
23290         (TARGET_ASM_UNIQUE_SECTION): Define.
23291         (msp430_unique_section): New function.
23292         (msp430_output_aligned_decl_common): New function.
23293         (msp430_do_not_relax_short_jumps): New function.
23294         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23295         Define.
23296         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23297         * config/msp430/msp430-protos.h
23298         (msp430_do_not_relax_short_jumps): New prototype.
23299         (msp430_output_aligned_decl_common): New prototype.
23300         * config/msp430/msp430.md (length): New attribute.
23301         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23302         then use a long code sequence for short jumps.
23303         * config/msp430/msp430.opt (mcode-region): New.
23304         (mdata-region): New.
23305         * doc/invoke.texi: Document new options.
23306         * doc/extend.texi: Document new attributes.
23307
23308 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23309
23310         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23311         (tune_params): Add field branch_costs.
23312         (aarch64_branch_cost): Declare.
23313         * gcc/config/aarch64.c (generic_branch_cost): New.
23314         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23315         (cortexa53_tunings): Likewise.
23316         (cortexa57_tunings): Likewise.
23317         (thunderx_tunings): Likewise.
23318         (xgene1_tunings): Likewise.
23319         (aarch64_branch_cost): Define.
23320         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23321
23322 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23323
23324         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23325         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
23326         * config/i386/i386.md: Ditto.
23327         * config/i386/winnt.c: Ditto.
23328
23329 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23330
23331         * doc/extend.texi (__atomic Builtins): Move implementation details
23332         to the end of the description, rewrite opening paragraphs, state
23333         difference with __sync builtins, state C11/C++11 assumptions,
23334         weaken itemized descriptions, add explanation of memory model
23335         behaviour, expand description of compare-exchange, simplify text.
23336
23337 2015-05-05  Renlin Li  <renlin.li@arm.com>
23338
23339         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
23340
23341 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
23342
23343         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
23344         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23345         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
23346         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23347         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23348         * configure: Regenerate.
23349         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23350         * doc/install.texi (aarch64*-*-*): Document new
23351         --enable-fix-cortex-a53-843419 option.
23352         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23353         and -mno-fix-cortex-a53-843419 options.
23354
23355 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23356
23357         PR target/65871
23358         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23359
23360 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
23361
23362         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23363         fix overactive TYPE_MIN_VALUE check and add FIXME for type
23364         compatibility problems.
23365
23366 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23367
23368         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23369         constraints.
23370         (cbranchsi4_reg): New.
23371         * config/microblaze/microblaze.c
23372         (microblaze_expand_conditional_branch_reg): New.
23373         * config/microblaze/microblaze-protos.h
23374         (microblaze_expand_conditional_branch_reg): New prototype.
23375
23376 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23377
23378         * config/microblaze/microblaze.md (peephole2): New.
23379
23380 2015-05-04  Jeff Law  <law@redhat.com>
23381
23382         Revert:
23383         2015-05-04  Jeff Law  <law@redhat.com>
23384
23385         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23386         simplifier to narrow arithmetic.
23387         * generic-match-head.c: (types_match, single_use): New functions.
23388         * gimple-match-head.c: (types_match, single_use): New functions.
23389
23390 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
23391
23392         PR target/65987
23393         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23394         (split_branches): Likewise.
23395
23396 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
23397
23398         * common.opt (fdelete-null-pointer-checks): Init to -1.
23399         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23400         override flag_delete_null_pointer_checks default.
23401         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23402         behavior re address zero.  Better document target-specific behavior.
23403         (-fisolate-errneous-paths-dereference): Mention relationship to
23404         -fdelete-null-pointer-checks.
23405
23406 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23407
23408         PR tree-optimization/65984
23409         * ubsan.c: Include tree-cfg.h.
23410         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23411         stmt_could_throw_p test, rename can_throw variable to ends_bb.
23412
23413 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23414
23415         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23416         to CONST_DOUBLE_P predicate.
23417         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23418         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23419         allow only operands that satisfy standard_sse_constant_p predicate.
23420         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23421         to CONST_DOUBLE_P predicate.
23422
23423 2015-05-04  Jeff Law  <law@redhat.com>
23424
23425         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23426         simplifier to narrow arithmetic.
23427         * generic-match-head.c: (types_match, single_use): New functions.
23428         * gimple-match-head.c: (types_match, single_use): New functions.
23429
23430 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
23431
23432         * config/arm/arm.c: Restore bootstrap.
23433
23434 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23435
23436         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23437         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23438         as CONST_WIDE_INT, not CONST_DOUBLE.
23439         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23440         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23441         (ix86_find_base_term): Do not check for CONST_DOUBLE.
23442         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23443         (ix86_build_signbit_mask): Rewrite using wide ints.
23444         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23445         (ix86_rtx_costs): Handle CONST_WIDE_INT.
23446         (find_constant): Ditto.
23447         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23448         using gen_int_mode.
23449         * config/i386/predicates.md (x86_64_immediate_operand)
23450         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23451         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23452         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23453         (const0_operand): Also match const_wide_int.
23454         (constm1_operand): Ditto.
23455         (const1_operand): Ditto.
23456
23457 2015-05-04  Richard Biener  <rguenther@suse.de>
23458
23459         PR tree-optimization/65965
23460         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23461         store groups at gaps.
23462
23463 2015-05-04  Richard Biener  <rguenther@suse.de>
23464
23465         PR tree-optimization/65935
23466         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23467         then make sure to apply that swapping to the IL.
23468
23469 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23470
23471         * Makefile.in (PATCHLEVEL_c): New variable.
23472         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23473         expand the same way as if DEVPHASE_c was non-empty.
23474
23475 2015-05-04  Kai Tietz  <ktietz@redhat.com>
23476
23477         PR target/65559
23478         * lto-wrapper.c (run_gcc): Open filename
23479         in binary-mode.
23480
23481 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
23482
23483         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
23484         sections up in file, to immediately after the Function Attributes
23485         section.
23486
23487 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
23488
23489         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23490
23491 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23492
23493         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23494         (insert_partition_copy_on_edge): Adjust.
23495         (insert_rtx_to_part_on_edge): Likewise.
23496         (insert_part_to_rtx_on_edge): Likewise.
23497
23498 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23499
23500         * function.c (set_return_jump_label): Change type of argument to
23501         rtx_insn *.
23502         * function.h (set_return_jump_label): Adjust.
23503
23504 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23505
23506         * reload.h (struct reg_equivs_t): Change type of init to
23507         rtx_insn *.
23508         * ira.c (fix_reg_equiv_init): Adjust.
23509         * reload1.c (eliminate_regs_1): Likewise.
23510         (init_eliminable_invariants): Likewise.
23511
23512 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23513
23514         * cselib.c (fp_setter_insn): Take a rtx_insn *.
23515         * cselib.h (fp_setter_insn): Adjust.
23516
23517 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23518
23519         * recog.c (struct validate_replace_src_data): Change type of
23520         insn field to rtx_insn *.
23521         (validate_replace_src_group): Change type of argument to rtx_insn *.
23522         * recog.h (validate_replace_src_group): Adjust.
23523
23524 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23525
23526         * haifa-sched.c: Change the type of some variables to rtx_insn *.
23527         * sched-deps.c: Likewise.
23528         * sched-int.h: Likewise.
23529         * sched-rgn.c: Likewise.
23530         * sel-sched.c: Likewise.
23531
23532 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23533
23534         to rtx_insn *.
23535         * config/i386/i386.c: Change the type of some arguments to
23536         rtx_insn *.
23537         * config/arm/arm.c: Likewise.
23538
23539 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23540
23541         * lra-constraints.c: Change type of some arguments to rtx_insn *.
23542
23543 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23544
23545         * regcprop.c (kill_autoinc_value): Change type of argument to
23546         rtx_insn *.
23547
23548 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23549
23550         * genrecog.c (print_subroutine): Adjust.
23551         * recog.c (get_bool_attr_mask_uncached): Likewise.
23552         * recog.h (struct recog_data_d): Change the type of insn to
23553         rtx_insn *.
23554
23555 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23556
23557         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23558
23559 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23560
23561         * df-problems.c (df_set_note): Change type of argument to
23562         rtx_insn *.
23563
23564 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23565
23566         * builtins.c (expand_builtin_trap): Change type of local
23567         variable to rtx_insn *.
23568         (add_sched_insns_for_speculation): Likewise.
23569         (ix86_emit_save_regs): Likewise.
23570         (get_scratch_register_on_entry): Likewise.
23571         (ix86_emit_restore_reg_using_pop): Likewise.
23572         (ix86_emit_leave): Likewise.
23573         (ix86_emit_restore_regs_using_mov): Likewise.
23574         (ix86_expand_epilogue): Likewise.
23575         Likewise.
23576         (rl78_alloc_physical_registers_umul): Likewise.
23577         * cselib.c (discard_useless_locs): Likewise.
23578         (cselib_invalidate_regno): Likewise.
23579         (cselib_invalidate_mem): Likewise.
23580         * function.c (expand_function_start): Likewise.
23581         (emit_use_return_register_into_block): Likewise.
23582         * gcse.c: Likewise.
23583         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23584         * ifcvt.c (noce_get_alt_condition): Likewise.
23585         * loop-doloop.c (doloop_condition_get): Likewise.
23586         * lra-constraints.c (inherit_in_ebb): Likewise.
23587         * modulo-sched.c (sms_schedule_by_order): Likewise.
23588         * recog.c (next_insn_tests_no_inequality): Likewise.
23589         * reorg.c (emit_delay_sequence): Likewise.
23590         (update_reg_dead_notes): Likewise.
23591         (fix_reg_dead_note): Likewise.
23592         (fill_slots_from_thread): Likewise.
23593         (delete_computation): Likewise.
23594
23595 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
23596
23597         * doc/extend.texi (Variable Attributes): Add menu and proper
23598         @nodes to subsections.  Move Microsoft Windows attributes to
23599         their own subsection.
23600         (Type Attributes): Reorganize introduction to remove duplicate
23601         list of attributes.  Add menu and proper @nodes to subsections.
23602         Alphabetize the main table of common attributes.
23603
23604 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
23605
23606         * match.pd: New simplification patterns.
23607         (x + (x & 1))  -> ((x + 1) & ~1)
23608         (x & ~(x & y)) -> ((x & ~y))
23609         (x | ~(x | y)) -> ((x | ~y))
23610
23611 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23612
23613         * target.def (attribute_table): Mention that struct attribute_spec
23614         is defined in tree-core.h rather than tree.h
23615         * doc/tm.texi: Regenerate.
23616
23617 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
23618
23619         * genrecog.c (test): Rename to rtx_test.  Update rest of file
23620         accordingly.
23621
23622 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23623
23624         PR translation/65959
23625         * params.h (DEFPARAM): Rename msgid to nocmsgid.
23626
23627 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23628
23629         * gcc/config/aarch64/aarch64-protos.h (tune_params):
23630         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23631         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23632         Return value depending on target.
23633         (generic_tunings): Initialize new target settings.
23634         (cortexa53_tunings): Likewise.
23635         (cortexa57_tunings): Likewise.
23636         (thunderx_tunings): Likewise.
23637         (xgene1_tunings): Likewise.
23638
23639 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23640
23641         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23642         Make Cortex-A53 shift costs more accurate.
23643
23644 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23645
23646         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23647         UNSIGNED_FLOAT.
23648
23649 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23650
23651         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23652         Calculate cost of op0 and op1 in PLUS and MINUS cases.
23653
23654 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23655
23656         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23657         Add cost of op0 in the compare-with-fpzero case.
23658
23659 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
23660
23661         * builtins.c (fold_builtin_1): Remove spurious second
23662         semicolon.
23663         * cgraph.h (symtab_node::get_availability): Likewise.
23664         * opts.c (common_handle_option): Remove spurious second semicolon.
23665         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23666         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23667
23668 2015-04-30  Caroline Tice  <cmtice@google.com>
23669
23670         PR gcov-profile/65929
23671         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23672         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23673         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23674         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23675         * doc/tm.texi: Regenerate.
23676         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
23677         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23678         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
23679         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23680
23681 2015-04-30  Marek Polacek  <polacek@redhat.com>
23682
23683         * varasm.c (handle_cache_entry): Fix logic.
23684
23685 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23686
23687         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23688         (*extrsi5_insn_uxtw_alt): Likewise.
23689         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23690         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23691         operations.
23692
23693 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23694
23695         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23696         fabd in ABS case.
23697
23698 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23699
23700         * config/aarch64/aarch64.md
23701         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23702         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23703         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23704         appropriately.  Handle alternative EON form.
23705
23706 2015-04-30  Renlin Li  <renlin.li@arm.com>
23707
23708         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23709         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23710
23711 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23712
23713         PR ipa/65873
23714         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23715         -fstrict-aliasing boundaries.
23716
23717 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23718
23719         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23720         and [SU]MNEGL patterns.
23721
23722 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23723
23724         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23725         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23726         combined arithmetic-shift ops.  Properly handle all shift and extend
23727         operations that can occur in combination with PLUS/MINUS.
23728         Rename maybe_fma to compound_p.
23729         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23730         arithmetic and shift operations.
23731
23732 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23733
23734         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23735         rather than arith_shift cost when costing ADD/MINUS of an
23736         extended value.
23737
23738 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23739
23740         PR lto/65948
23741         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23742         to itself.
23743
23744 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
23745
23746         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23747         are for the same position.
23748
23749 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
23750
23751         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
23752         vectorize_loops.
23753         (vectorize_loops): Use it.
23754
23755 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23756
23757         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23758         for aggregate types.
23759         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23760         type to be non_ODR.
23761         * tree.c (need_assembler_name_p): Compute mangled name for
23762         non-fundamental types and integer types.
23763
23764 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
23765
23766         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23767         manual swaps.
23768         * expr.c (expand_expr_real_2): Likewise.
23769
23770 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23771
23772         * tree.c (build_common_builtin_nodes): Do not build
23773         __builtin_alloca_with_align as equivalent of library alloca.
23774
23775 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23776
23777         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23778         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23779         bugus variants.
23780         * tree.c: Include print-tree.h and ipa-utils.h
23781         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23782         (free_lang_data_in_cgraph): Call verify_type.
23783         (verify_type_variant): New function.
23784         (verify_type): New function.
23785         * tree.h (verify_type): Declare.
23786
23787 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
23788
23789         * config/mips/mips-cpus.def: (mips4): Change default processor
23790         from PROCESSOR_R8000 to PROCESSOR_R10000.
23791
23792 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23793
23794         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23795         la/jalr instead of jal.
23796
23797 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
23798
23799         PR target/65871
23800         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23801         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23802         (setcc+movzbl peephole2): Check also clobbered reg.
23803         (setcc+andl peephole2): Ditto.
23804
23805 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23806
23807         PR libgomp/65099
23808         * config/nvptx/mkoffload.c (target_ilp32): New variable.
23809         (main): Set it depending on "-foffload-abi=[...]".
23810         (compile_native, main): Use it to pass "-m32" or "-m64" to the
23811         compiler.
23812
23813 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23814
23815         PR target/65770
23816         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23817         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23818         Flip lane index back at assembly time for bigendian.
23819
23820 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23821
23822         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23823         * gimplify.c (gimplify_omp_workshare): Use it.
23824
23825 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23826
23827         * Makefile.in (build/genrecog.o): Depend on inchash.h.
23828         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23829         build/inchash.o
23830         * genrecog.c: Rewrite most of the code except for the third page.
23831
23832 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23833
23834         * inchash.h, inchash.c: Include bconfig.h for build objects.
23835         * Makefile.in (build/inchash.o): New rule.
23836
23837 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
23838
23839         PR target/65924
23840         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23841         number in type attribute expression.
23842
23843 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23844
23845         * loop-iv.c (canon_condition): Generalize to all types of integer
23846         constant.
23847
23848 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
23849
23850         * gimple-walk.c: Prune duplicate or unneeded includes.
23851         (walk_gimple_asm): Only call parse_input_constraint or
23852         parse_output_constraint if their findings are used.
23853         Honour parse_input_constraint and parse_output_constraint
23854         result.
23855
23856 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23857
23858         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23859
23860 2015-04-29  Tom de Vries  <tom@codesourcery.com>
23861
23862         PR tree-optimization/65893
23863         * passes.def (pass_all_optimizations): Move pass_stdarg to after
23864         pass_dce.
23865
23866 2015-04-29  Richard Biener  <rguenther@suse.de>
23867
23868         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23869         compute GROUP_SIZE for basic-block SLP.
23870         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23871         take into account gaps.
23872         (vect_get_mask_element): Properly reject references to previous
23873         vectors.
23874         (vect_transform_slp_perm_load): Likewise.
23875
23876 2015-04-29  Christian Bruel  <christian.bruel@st.com>
23877
23878         PR target/64835
23879         * config/i386/i386.c (ix86_default_align): New function.
23880         (ix86_override_options_after_change): Call ix86_default_align.
23881         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23882         (ix86_override_options_after_change): New function.
23883
23884 2015-04-28  Jeff Law  <law@redhat.com>
23885
23886         * tree-ssa-dom.c (record_equality); Fix comment typos.
23887
23888 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23889
23890         PR tree-optimization/65887
23891         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23892
23893 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
23894
23895         * doc/extend.texi (Declaring Attributes of Functions): Split into
23896         subsections by target.  Alphabetize the table of common attributes.
23897         Rewrite some of the introductory text to reflect the new structure.
23898         Update some cross-references to point to the new subsections.
23899         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
23900         duplicate copies in the discussion of function, label, and type
23901         attributes.
23902
23903 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
23904
23905         PR bootstrap/65910
23906         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23907
23908 2015-04-28  Jason Merrill  <jason@redhat.com>
23909
23910         PR c++/65734
23911         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23912         (finalize_type_size): Respect TYPE_USER_ALIGN.
23913         (layout_type) [ARRAY_TYPE]: Likewise.
23914
23915 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
23916
23917         * config/arm/arm.md (*arm_movt): Fix type attribute.
23918         (*cmpsi_shiftsi): Likewise.
23919         (*cmpsi_shiftsi_swp): Likewise.
23920         (*movsicc_insn): Likewise.
23921         (*cond_move): Likewise.
23922         (*if_plus_move): Likewise.
23923         (*if_move_plus): Likewise.
23924         (*if_arith_move): Likewise.
23925         (*if_move_arith): Likewise.
23926         (*if_shift_move): Likewise.
23927         (*if_move_shift): Likewise.
23928         (*arm_movtas_ze): Likewise.
23929         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23930         redundancy and type attribute.
23931         (*thumb2_movsi_insn): Fix type attribute.
23932         (*thumb2_addsi_short): Likewise.
23933         (thumb2_addsi3_compare0): Likewise.
23934         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23935         attributes accordingly.
23936
23937 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
23938
23939         PR other/65911
23940         * function.c (pad_to_arg_alignment): Add parentheses.
23941
23942 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
23943
23944         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23945         libgcc/config/frv/elf-lib.h.
23946
23947 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23948
23949         * tree-call-cdce.c: Fix example in header comment.
23950
23951 2015-04-28  Richard Biener  <rguenther@suse.de>
23952
23953         PR tree-optimization/62283
23954         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23955         fails fatally and we are vectorizing a basic-block simply
23956         cause the child to be constructed piecewise.
23957         (vect_analyze_slp_cost_1): Adjust.
23958         (vect_detect_hybrid_slp_stmts): Likewise.
23959         (vect_bb_slp_scalar_cost): Likewise.
23960         (vect_get_constant_vectors): For piecewise constructed
23961         constants place them after the last def.
23962         (vect_get_slp_defs): Adjust.
23963         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23964         externals for basic-block vectorization.
23965
23966 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23967
23968         PR target/63503
23969         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23970         aarch64-*-*.
23971         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23972         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23973         (AARCH64_TUNE_FMA_STEERING): Likewise.
23974         * config/aarch64/aarch64-cores.def: Set
23975         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23976         FMUL/FMADD instructions.
23977         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23978         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
23979         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23980         * config/aarch64/cortex-a57-fma-steering.h: New file.
23981         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23982
23983 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
23984
23985         * gensupport.c (std_preds): Add missing codes to address_operand entry.
23986
23987 2015-04-28  Richard Biener  <rguenther@suse.de>
23988
23989         PR tree-optimization/65851
23990         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23991         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
23992         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
23993         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23994         (ccp_visit_phi_node): Adjust.
23995         (evaluate_stmt): For simplifications to SSA names return its
23996         lattice value if that isn't VARYING.  Return immediately when
23997         simplified to a constant.
23998         (visit_assignment): Adjust.
23999         (ccp_visit_stmt): Likewise.
24000
24001 2015-04-28  Tom de Vries  <tom@codesourcery.com>
24002
24003         PR tree-optimization/65818
24004         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
24005         evaluated.
24006
24007 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24008
24009         * calls.c (save_fixed_argument_area): Don't check
24010         ARGS_GROW_DOWNWARD with the preprocessor.
24011         (restore_fixed_argument_area): Likewise.
24012         (mem_overlaps_already_clobbered_arg_p): Likewise.
24013         (check_sibcall_argument_overlap): Likewise.
24014         (expand_call): Likewise.
24015         (emit_library_call_value_1): Likewise.
24016         (store_one_arg): Likewise.
24017         * function.c (assign_parms): Likewise.
24018         (locate_and_pad_parm): Likewise.
24019         (pad_to_arg_alignment): Likewise.
24020         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24021
24022 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24023
24024         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
24025         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
24026         * calls.c (save_fixed_argument_area): Don't chekc if
24027         ARGS_GROW_DOWNWARD is defined.
24028         (restore_fixed_argument_area): Likewise.
24029         (mem_overlaps_already_clobbered_arg_p): Likewise.
24030         (check_sibcall_argument_overlap): Likewise.
24031         (expand_call): Likewise.
24032         (emit_library_call_value_1): Likewise.
24033         (store_one_arg): Likewise.
24034         * function.c (assign_parms): Likewise.
24035         (locate_and_pad_parm): Likewise.
24036         (pad_to_arg_alignment): Likewise.
24037         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24038
24039 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24040
24041         * defaults.h (gen_epilogue): New function.
24042         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
24043         defined.
24044         * cfgrtl.c (cfg_layout_finalize): Likewise.
24045         * df-scan.c: Likewise.
24046         * function.c (thread_prologue_and_epilogue_insns): Likewise.
24047         (reposition_prologue_and_epilogue_notes): Likewise.
24048         * reorg.c (find_end_label): Likewise.
24049         * toplev.c: Likewise.
24050
24051 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24052
24053         * bb-reorder.c (HAVE_return): Don't check if its undefined.
24054         * defaults.h (gen_simple_return): New function.
24055         (gen_simple_return): Likewise.
24056         (HAVE_return): Add default definition to false.
24057         (HAVE_simple_return): Likewise.
24058         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
24059         HAVE_return and HAVE_simple_return are defined.
24060         * function.c (gen_return_pattern): Likewise.
24061         (convert_jumps_to_returns): Likewise.
24062         (thread_prologue_and_epilogue_insns): Likewise.
24063         * reorg.c (find_end_label): Likewise.
24064         (dbr_schedule): Likewise.
24065         * shrink-wrap.c: Likewise.
24066         * shrink-wrap.h: Likewise.
24067
24068 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24069
24070         * defaults.h (EPILOGUE_USES): Add default definition of false.
24071         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24072         * resource.c (init_resource_info): Likewise.
24073
24074 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24075
24076         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24077         to false.
24078         * dwarf2out.c (field_byte_offset): REmove check if
24079         PCC_BITFIELD_TYPE_MATTERS is defined.
24080         * stor-layout.c (layout_decl): Likewise.
24081         (update_alignment_for_field): Likewise.
24082         (place_field): Likewise.
24083
24084 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24085
24086         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24087         true.
24088         * regrename.c (check_new_reg_p): Remove check if
24089         HARD_REGNO_RENAME_OK is defined.
24090         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24091
24092 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24093
24094         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24095         * cse.c (fold_rtx): Likewise.
24096         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24097         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24098         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24099         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24100         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24101         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24102         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24103         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24104         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24105         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24106         * Likewise.
24107         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24108         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24109         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24110         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24111         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24112         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24113         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24114         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24115         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24116         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24117         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24118         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24119         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24120         * doc/tm.texi: Regenerate.
24121         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24122         either true or false.
24123
24124 2015-04-27  Jeff Law  <law@redhat.com>
24125
24126         PR tree-optimization/65217
24127         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24128         of them has a single use, make sure it is the LHS of the implied
24129         copy.
24130
24131 2015-04-28  Alan Modra  <amodra@gmail.com>
24132
24133         PR target/65810
24134         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24135         (offsettable_ok_by_alignment): Use minimum of decl and toc
24136         pointer alignment.  Replace dead code with assertion.
24137         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
24138         case if size exceeds toc pointer alignment.
24139         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24140         (rs6000_emit_move): Likewise.
24141         * configure.ac: Add linker toc pointer alignment check.
24142         * configure: Regenerate.
24143         * config.in: Regenerate.
24144
24145 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
24146
24147         * config.gcc: Add h8300-*-linux.
24148         * config/h8300/linux.h: New.
24149         * config/h8300/t-linux: New.
24150         * config/h8300/h8300.c (h8300_option_override): Normal mode
24151         is not supported for h8300-*-linux.
24152         (h8300_file_start): Target priority change.
24153         (get_shift_alg): Likewise.
24154         (h8300_shift_need_scratch_p): Likewise.
24155         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24156         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24157
24158 2015-04-27  Caroline Tice  <cmtice@google.com>
24159
24160         * final.c (final_scan_insn):  Output cold_function_name as function
24161         type.
24162         * varasm.c (cold_function_name):  Make global.
24163         (assemble_start_function):  Re-set cold_function_name.
24164         (assemble_end_function): Output cold partition size.
24165         * varasm.h (cold_function_name):  Declare global.
24166
24167 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
24168
24169         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24170         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24171         constraint.
24172         (*movxi_internal_avx512f): Ditto.
24173         (define_split): Check for xmm16+, when splitting scalar float_extend.
24174         (*extendsfdf2_mixed): Use "v" constraint.
24175         (define_split): Check for xmm16+, when splitting scalar float_truncate.
24176         (*truncdfsf_fast_sse): Use "v" constraint.
24177         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24178         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24179         (define_peephole2): Check for xmm16+, when converting scalar
24180         float_truncate.
24181         (define_peephole2): Check for xmm16+, when converting scalar
24182         float_extend.
24183         (*fop_<mode>_comm_mixed): Use "v" constraint.
24184         (*fop_<mode>_comm_sse): Ditto.
24185         (*fop_<mode>_1_mixed): Ditto.
24186         (*sqrt<mode>2_sse): Ditto.
24187         (*ieee_s<ieee_maxmin><mode>3): Ditto.
24188
24189 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24190
24191         * combine.c (simplify_if_then_else): Use std::swap instead
24192         of manually swapping.
24193         (known_cond): Likewise.
24194         (simplify_comparison): Likewise.
24195
24196 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
24197
24198         PR target/64579
24199         * config/rs6000/htm.md: Remove all define_expands.
24200         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24201         UNSPECV_HTM_TABORTWCI): Remove.
24202         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24203         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24204         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24205         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24206         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24207         tabortwci_internal): Remove define_insns.
24208         (tabort<wd>c, tabort<wd>ci): New define_insns.
24209         (tabort): Use gpc_reg_operand.
24210         (tcheck): Remove operand.
24211         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24212         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24213         expected value.
24214         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24215         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
24216         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24217         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24218         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24219         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24220         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24221         (tcheck): Remove builtin argument.
24222         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24223         not TARGET_64BIT.
24224         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
24225         tabortdc and tabortdci builtins when not in 64-bit mode.
24226         Modify code to handle the loss of the HTM define_expands.
24227         Emit code to copy the CR register to TARGET.
24228         (htm_init_builtins): Modify code to handle the loss of the HTM
24229         define_expands.
24230         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24231         (RS6000_BTC_64BIT): Likewise.
24232         (RS6000_BTC_CR): New macro.
24233         * doc/extend.texi: Update documentation for htm builtins.
24234
24235 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24236
24237         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24238         of manually swapping.
24239         (simplify_associative_operation): Likewise.
24240         (simplify_binary_operation): Likewise.
24241         (simplify_plus_minus): Likewise.
24242         (simplify_relational_operation): Likewise.
24243         (simplify_ternary_operation): Likewise.
24244
24245 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24246
24247         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24248         (xs_hi_nonmemory_operand): Remove error.
24249         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24250         general_operand rather than xs_hi_general_operand.
24251
24252 2015-04-27  Richard Biener  <rguenther@suse.de>
24253
24254         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24255         (record_equivalences_from_stmt): Valueize rhs.
24256         (record_equality): Canonicalize x and y order via
24257         tree_swap_operands_p.  Do not swap operands for same loop depth.
24258
24259 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
24260
24261         PR target/65296
24262         PR target/65895
24263         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24264         Add hint how to use own spec file.
24265
24266 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
24267
24268         PR tree-optimization/65875
24269         * tree-vrp.c (update_value_range): If in is_new case setting
24270         old_vr to VR_VARYING, also set new_vr to it.  Remove
24271         old_vr->type == VR_VARYING test.
24272         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24273         SSA_PROP_INTERESTING if update_value_range returned true,
24274         but new range is VR_VARYING.
24275
24276 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24277
24278         * combine.c (sign_extend_short_imm): New.
24279         (set_nonzero_bits_and_sign_copies): Use above new function for sign
24280         extension of src short immediate.
24281         (reg_nonzero_bits_for_combine): Likewise for tem.
24282
24283 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24284
24285         * stor-layout.c (self_referential_component_ref_p): New predicate.
24286         (copy_self_referential_tree_r): Use it.
24287         (self_referential_size): Punt for simple operations directly involving
24288         self-referential component references.
24289         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24290
24291 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24292
24293         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24294
24295 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24296
24297         * vec.h (vec): Make splice arguments const.  Update definitions
24298         accordingly.
24299
24300 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
24301
24302         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24303         alternatives.
24304
24305 2015-04-26  Tom de Vries  <tom@codesourcery.com>
24306
24307         PR tree-optimization/65826
24308         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24309
24310 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
24311
24312         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24313         (*madd3<mode>): Ditto.
24314         (*msub4<mode>): Ditto.
24315         (*msub3<mode>): Ditto.
24316         (*nmadd4<mode>): Ditto.
24317         (*nmadd3<mode>): Ditto.
24318         (*nmadd4<mode>_fastmath): Ditto.
24319         (*nmadd3<mode>_fastmath): Ditto.
24320         (*nmsub4<mode>): Ditto.
24321         (*nmsub3<mode>): Ditto.
24322         (*nmsub4<mode>_fastmath): Ditto.
24323         (*nmsub3<mode>_fastmath): Ditto.
24324
24325 2015-04-24  Jason Merrill  <jason@redhat.com>
24326
24327         PR c++/50800
24328         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
24329         down when building TYPE_CANONICAL.
24330         (build_pointer_type_for_mode): Likewise.
24331
24332 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
24333
24334         * genrecog.c (validate_pattern): Check matching constraint refers
24335         to a lower numbered operand.
24336
24337 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24338
24339         PR target/65849
24340         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
24341         save to independent variables use the Save attribute.  This will
24342         allow these options to be modified with the #pragma/attribute
24343         target support.
24344         (-mallow-movmisalign): Likewise.
24345         (-mallow-df-permute): Likewise.
24346         (-msched-groups): Likewise.
24347         (-malways-hint): Likewise.
24348         (-malign-branch-targets): Likewise.
24349         (-mvectorize-builtins): Likewise.
24350         (-msave-toc-indirect): Likewise.
24351
24352         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24353         can be set via the #pragma/attribute target support.
24354         (rs6000_opt_vars): Likewise.
24355         (rs6000_inner_target_options): If VSX was set, also set
24356         -mno-avoid-indexed-addresses.
24357
24358 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24359
24360         * config/arm/iterators.md (shiftable_ops): Rename to...
24361         (SHIFTABLE_OPS): ... This.  Update use in comments.
24362         (ior_xor): Rename to...
24363         (IOR_XOR): ... This.
24364         (vqh_ops): Rename to...
24365         (VQH_OPS): ... This.
24366         (vqhs_ops): Rename to...
24367         (VQHS_OPS): ... This.
24368         (rshifts): Rename to...
24369         (RSHIFTS): ... This.
24370         (returns): Rename to...
24371         (RETURNS): ... This.
24372         * config/arm/arm.md: Update uses of the above.
24373         * config/arm/neon.md: Likewise.
24374
24375 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24376
24377         * config.host (case ${host}): Add aarch64*-*-linux case.
24378         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24379         fields to all the cores.
24380         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24381         Add MCPU_MTUNE_NATIVE_SPECS.
24382         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24383         field to all extensions.
24384         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24385         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24386         Adjust definition of AARCH64_OPT_EXTENSION.
24387         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24388         (MCPU_MTUNE_NATIVE_SPECS): Define.
24389         * config/aarch64/driver-aarch64.c: New file.
24390         * config/aarch64/x-arch64: New file.
24391         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24392         -mtune and -march.
24393
24394 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24395             Wei Mi  <wmi@google.com>
24396
24397         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24398         * config/i386/i386.c (extract_base_offset_in_addr): New function.
24399         (ix86_operands_ok_for_move_multiple): Ditto.
24400         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24401         (movlpd/movhpd to movupd peephole2): Ditto.
24402
24403 2015-04-24  Marek Polacek  <polacek@redhat.com>
24404
24405         PR c/61534
24406         * input.h (from_macro_expansion_at): Define.
24407
24408         PR c/63357
24409         * doc/invoke.texi: Update description of -Wlogical-op.
24410
24411 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24412
24413         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24414         ternary operator in fprintf and harmonize spacing.
24415
24416 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24417
24418         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24419         Mark operand1 commutative.
24420
24421 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24422
24423         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24424         input operands in memory.
24425         (*vec_concatv2si_sse4_1): Ditto.
24426         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24427         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24428         register_operand.
24429         (vec_extract_hi_v32hi): Ditto.
24430         (vec_extract_hi_v64hi): Ditto.
24431         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24432
24433 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24434             Steven Bosscher <steven@gcc.gnu.org>
24435
24436         PR rtl-optimization/34503
24437         * cprop.c (cprop_reg_p): New.
24438         (hash_scan_set): Use above function to check if register can be
24439         propagated.
24440         (find_avail_set): Return up to two sets, one whose source is a
24441         register and one whose source is a constant.  Sets are returned in an
24442         array passed as parameter rather than as a return value.
24443         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
24444         sets returned by find_avail_set, starting with the one whose source is
24445         a constant. Use cprop_reg_p to check if register can be propagated.
24446         (do_local_cprop): Use cprop_reg_p to check if register can be
24447         propagated.
24448         (implicit_set_cond_p): Likewise.
24449
24450 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24451
24452         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24453         (sem_function::equals): IGNORED_NODES parameter is now unused;
24454         update call of equals_private.
24455         (sem_function::equals_private): Do not call equals_wpa; skip
24456         gimple body matching if there is no body.
24457         (sem_function::init): Add logic to hash tthunk info.
24458         (sem_function::parse): Also parse thunks.
24459         * ipa-icf.h (equals_private): Update declaration.
24460
24461 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24462
24463         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24464         asterisk from name so this can be generated directly.
24465         (*altivec_stvx_<mode>_internal): Likewise.
24466         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24467         that this is never called during or after reload/lra.
24468         (rs6000_frame_related): Remove split_reg
24469         argument and logic that references it.
24470         (emit_frame_save): Remove last parameter from call to
24471         rs6000_frame_related.
24472         (rs6000_emit_prologue): Remove last parameter from eight calls to
24473         rs6000_frame_related.  Force generation of stvx instruction for
24474         Altivec register saves.  Remove split_reg handling, which is no
24475         longer needed.
24476         (rs6000_emit_epilogue):  Force generation of lvx instruction for
24477         Altivec register restores.
24478
24479 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24480
24481         * config/rs6000/rs6000.opt (mcrypto): Change option description to
24482         match category changes in ISA 2.07B.
24483
24484 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24485
24486         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24487         iterators.
24488         (cmp_op, cmp_type): New code attributes.
24489         (NEON_VCMP, NEON_VACMP): New int iterators.
24490         (cmp_op_unsp): New int attribute.
24491         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24492         (neon_vceq<mode>): Delete.
24493         (neon_vc<cmp_op><mode>_insn): New pattern.
24494         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24495         (neon_vcgeu<mode>): Delete.
24496         (neon_vcle<mode>): Likewise.
24497         (neon_vclt<mode>: Likewise.
24498         (neon_vcage<mode>): Likewise.
24499         (neon_vcagt<mode>): Likewise.
24500         (neon_vca<cmp_op><mode>): New define_expand.
24501         (neon_vca<cmp_op><mode>_insn): New pattern.
24502         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24503
24504 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24505
24506         * tree.h (attribute_value_equal): Declare.
24507         * tree.c (attribute_value_equal): Export.
24508
24509 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24510
24511         * ipa-icf.c (sem_item::compare_attributes): New function.
24512         (sem_item::compare_referenced_symbol_properties): Compare variable
24513         attributes.
24514         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24515         (sem_function::param_used_p): New function.
24516         (sem_function::equals_wpa): Fix attribute comparsion; match
24517         parameter type codes; do not compare paremter flags when
24518         they are not used; compare edge flags; compare indirect calls.
24519         (sem_item::update_hash_by_addr_refs): Hash reference type.
24520         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24521         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24522         reference use type.
24523         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24524         * ipa-icf.h (compare_attributes, param_used_p): Declare.
24525
24526 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24527
24528         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24529         cleanup.
24530         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24531         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24532         (sem_item::compare_referenced_symbol_properties): New.
24533         (sem_item::hash_referenced_symbol_properties): New.
24534         (sem_item::compare_cgraph_references): Rename to ...
24535         (sem_item::compare_symbol_references): ... this one; use
24536         compare_referenced_symbol_properties.
24537         (sem_function::equals_wpa): Do not compare
24538         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24539         DECL_IS_OPERATOR_NEW; compare pointer sizes.
24540         (sem_item::update_hash_by_addr_refs): Call
24541         hash_referenced_symbol_properties.
24542         (sem_item::update_hash_by_local_refs): Cleanup.
24543         (sem_function::merge): Do not mix up symbol properties.
24544         (sem_variable::equals_wpa): Use compare_symbol_references.
24545         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24546         (sem_item::hash_referenced_symbol_properties): New.
24547         (sem_item::compare_symbol_references): New.
24548         (sem_item::compare_cgraph_references): Remove.
24549
24550 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
24551
24552         PR target/26702
24553         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24554         Emit size of local.
24555
24556 2015-04-23  Nick Clifton  <nickc@redhat.com>
24557
24558         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24559         ATTRIBUTE_UNUSED to x parameter.
24560         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24561
24562 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24563
24564         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24565         TARGET_CRYPTO to TARGET_P8_VECTOR>
24566         (crypto_vpermxor_<mode>): Likewise.
24567         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24568         (BU_CRYPTO_3A): Likewise.
24569         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24570         (BU_CRYPTO_OVERLOAD_3A): New #define.
24571         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24572         (VPMSUMH): Likewise.
24573         (VPMSUMW): Likewise.
24574         (VPMSUMD): Likewise.
24575         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24576         (VPERMXOR_V4SI): Likewise.
24577         (VPERMXOR_V8HI): Likewise.
24578         (VPERMXOR_V16QI): Likewise.
24579         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24580         BU_CRYPTO_OVERLOAD_2A.
24581         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24582         BU_CRYPTO_OVERLOAD_3A.
24583         * config/rs6000/rs6000.opt (mcrypto): Change description of
24584         option.
24585
24586 2015-04-23  Richard Biener  <rguenther@suse.de>
24587
24588         * passes.def: Remove copy propagation passes run directly after CCP.
24589         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24590         SSA names.
24591         (ccp_visit_phi_node): Rework to handle first executable edge
24592         specially.
24593
24594 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
24595
24596         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24597         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24598         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24599         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24600         (thumb_legimitimize_reload_address): Remove.
24601         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24602         Remove.
24603         (thumb_legimitimize_reload_address): Remove.
24604
24605 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24606
24607         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24608
24609 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24610
24611         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24612         MAX_LDM_STM_OPS.
24613         (store_multiple): Likewise.
24614
24615 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24616
24617         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24618         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24619         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24620         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24621         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24622         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24623         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24624         Specify issue_rate value.
24625         (arm_issue_rate): Look up issue rate from tuning structs. Remove
24626         large switch statement.
24627         (arm_marvell_pj4_tune): New struct.
24628         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24629         struct.
24630
24631 2015-04-23  Richard Biener  <rguenther@suse.de>
24632
24633         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24634         (vect_find_last_store_in_slp_instance): Rename to ...
24635         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24636         (vect_analyze_slp_cost_1): Use vector_load for constant defs
24637         and vec_construct for external defs when estimating prologue cost.
24638         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24639         Compute costs here only when vectorizing loops.
24640         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24641         have been determined.
24642         (vect_schedule_slp_instance): Simplify vectorized code placement
24643         and prepare for in-BB external defs.
24644         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24645         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24646         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24647         guard.
24648         (vect_model_load_cost): Likewise.
24649         (vectorizable_store): Instead add it here.
24650         (vectorizable_load): Likewise.
24651         (vect_is_simple_use): Dump def type textually.
24652
24653 2015-04-23  Richard Biener  <rguenther@suse.de>
24654
24655         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24656         * cfgloop.c (verify_loop_structure): Verify the root loop node.
24657         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24658         instead of get_eh_region_from_lp_number.
24659         * loop-init.c (fix_loop_structure): If we removed a loop, reset
24660         the SCEV cache.
24661
24662 2015-04-23  Anton Blanchard  <anton@samba.org>
24663
24664         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24665         need for -mprofile-kernel to save LR to stack.
24666
24667 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24668
24669         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24670         adjustments.
24671         (insn_is_swappable_p): Return 1 for a convert from double to
24672         single precision when all of its uses are splats of BE element
24673         zero.
24674
24675 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24676
24677         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24678
24679 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24680
24681         PR target/65456
24682         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
24683         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24684         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24685         option.
24686         (rs6000_builtin_mask_for_load): Return 0 for targets with
24687         efficient unaligned VSX accesses so that the vectorizer will use
24688         direct unaligned loads.
24689         (rs6000_builtin_support_vector_misalignment): Always return true
24690         for targets with efficient unaligned VSX accesses.
24691         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24692         stores on targets with efficient unaligned VSX accesses is almost
24693         always the same as the cost of an aligned load or store, so model
24694         it that way.
24695         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24696         unaligned vectors if we have efficient unaligned VSX accesses.
24697         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24698         undocumented option.
24699
24700 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24701
24702         Revert:
24703         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24704
24705         * config.gcc (LIBC_MUSL): New tm_defines macro.
24706         * config/linux.h (OPTION_MUSL): Define.
24707         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24708         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24709         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24710
24711         * config/linux.opt (mmusl): New option.
24712         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24713         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24714
24715         * configure: Regenerate.
24716
24717 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24718
24719         * config.gcc (LIBC_MUSL): New tm_defines macro.
24720         * config/linux.h (OPTION_MUSL): Define.
24721         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24722         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24723         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24724
24725         * config/linux.opt (mmusl): New option.
24726         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24727         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24728
24729         * configure: Regenerate.
24730
24731 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
24732
24733         * doc/invoke.texi (-fsanitize-sections): Update description.
24734         * asan.c (set_sanitized_sections): Parse incoming arg.
24735         (section_sanitized_p): Support wildcards.
24736
24737 2015-04-22  Tom de Vries  <tom@codesourcery.com>
24738
24739         PR tree-optimization/65823
24740         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24741         equality between ap_copy and ap.
24742
24743 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24744
24745         PR target/47098
24746         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24747
24748 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24749
24750         PR target/47122
24751         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24752
24753 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24754
24755         PR target/55144
24756         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24757         remove already contained t-files.
24758
24759 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24760
24761         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24762         Remove unneeded forward declarations.
24763         (suitable_for_tail_call_opt_p): Commentary typo fix.
24764
24765 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24766
24767         * varasm.c (emit_bss): Remove redundant guard.
24768
24769 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24770
24771         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24772
24773 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24774
24775         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24776
24777 2015-04-22  Hale Wang  <hale.wang@arm.com>
24778             Terry Guo  <terry.guo@arm.com>
24779
24780         PR rtl-optimization/64818
24781         * combine.c (can_combine_p): Don't combine user-specified
24782         register if it is in an asm input.
24783
24784 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
24785
24786         PR ipa/65076
24787         * passes.def (early_optimizations): Add pass_dse.
24788
24789 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24790
24791         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24792         * reorg.c (redundant_insn): Remove ifdef
24793         INSN_REFERENCES_ARE_DELAYED.
24794         * resource.c (mark_referenced_resources): Likewise.
24795
24796 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24797
24798         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24799         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24800         * resource.c (mark_set_resources): Likewise.
24801
24802 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24803
24804         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24805         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24806         (flow_find_head_matching_sequence): Likewise.
24807         (try_head_merge_bb): Likewise.
24808         * combine.c (can_combine_p): Likewise.
24809         (try_combine): Likewise.
24810         (distribute_notes): Likewise.
24811         * df-problems.c (can_move_insns_across): Likewise.
24812         * final.c (final): Likewise.
24813         * gcse.c (insert_insn_end_basic_block): Likewise.
24814         * ira.c (find_moveable_pseudos): Likewise.
24815         * reorg.c (try_merge_delay_insns): Likewise.
24816         (fill_simple_delay_slots): Likewise.
24817         (fill_slots_from_thread): Likewise.
24818         * sched-deps.c (sched_analyze_2): Likewise.
24819
24820 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24821
24822         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24823         PIC_OFFSET_TABLE_REGNUM.
24824
24825 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24826
24827         * alias.c (init_alias_target): Remove ifdef
24828         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24829         * df-scan.c (df_insn_refs_collect): Likewise.
24830         (df_get_regular_block_artificial_uses): Likewise.
24831         (df_get_eh_block_artificial_uses): Likewise.
24832         (df_get_entry_block_def_set): Likewise.
24833         (df_get_exit_block_use_set): Likewise.
24834         * emit-rtl.c (gen_rtx_REG): Likewise.
24835         * ira.c (ira_setup_eliminable_regset): Likewise.
24836         * reginfo.c (init_reg_sets_1): Likewise.
24837         * regrename.c (rename_chains): Likewise.
24838         * reload1.c (reload): Likewise.
24839         (eliminate_regs_in_insn): Likewise.
24840         * resource.c (mark_referenced_resources): Likewise.
24841         (init_resource_info): Likewise.
24842
24843 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24844
24845         * defaults.h (MASK_RETURN_ADDR): New definition.
24846         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24847         MASK_RETURN_ADDR.
24848
24849 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24850
24851         * defaults.h (RETURN_ADDR_OFFSET): New definition.
24852         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24853         RETURN_ADDR_OFFSET.
24854         (expand_builtin_frob_return_addr): Likewise.
24855
24856 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24857
24858         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24859         (try_redirect_by_replacing_jump): Likewise.
24860         (rtl_tidy_fallthru_edge): Likewise.
24861         * combine.c (insn_a_feeds_b): Likewise.
24862         (find_split_point): Likewise.
24863         (simplify_set): Likewise.
24864         * cprop.c (cprop_jump): Likewise.
24865         * cse.c (cse_extended_basic_block): Likewise.
24866         * df-problems.c (can_move_insns_across): Likewise.
24867         * function.c (emit_use_return_register_into_block): Likewise.
24868         * haifa-sched.c (sched_init): Likewise.
24869         * ira.c (find_moveable_pseudos): Likewise.
24870         * loop-invariant.c (find_invariant_insn): Likewise.
24871         * lra-constraints.c (curr_insn_transform): Likewise.
24872         * postreload.c (reload_combine_recognize_const_pattern):
24873         * Likewise.
24874         * reload.c (find_reloads): Likewise.
24875         * reorg.c (delete_scheduled_jump): Likewise.
24876         (steal_delay_list_from_target): Likewise.
24877         (steal_delay_list_from_fallthrough): Likewise.
24878         (redundant_insn): Likewise.
24879         (fill_simple_delay_slots): Likewise.
24880         (fill_slots_from_thread): Likewise.
24881         (delete_computation): Likewise.
24882         * sched-rgn.c (add_branch_dependences): Likewise.
24883
24884 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24885
24886         * genconfig.c (main): Always define HAVE_cc0.
24887         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24888         HAVE_cc0.
24889         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24890         (flow_find_head_matching_sequence): Likewise.
24891         (try_head_merge_bb): Likewise.
24892         * cfgrtl.c (rtl_merge_blocks): Likewise.
24893         (try_redirect_by_replacing_jump): Likewise.
24894         (rtl_tidy_fallthru_edge): Likewise.
24895         * combine.c (do_SUBST_MODE): Likewise.
24896         (insn_a_feeds_b): Likewise.
24897         (combine_instructions): Likewise.
24898         (can_combine_p): Likewise.
24899         (try_combine): Likewise.
24900         (find_split_point): Likewise.
24901         (subst): Likewise.
24902         (simplify_set): Likewise.
24903         (distribute_notes): Likewise.
24904         * cprop.c (cprop_jump): Likewise.
24905         * cse.c (cse_extended_basic_block): Likewise.
24906         * df-problems.c (can_move_insns_across): Likewise.
24907         * final.c (final): Likewise.
24908         (final_scan_insn): Likewise.
24909         * function.c (emit_use_return_register_into_block): Likewise.
24910         * gcse.c (insert_insn_end_basic_block): Likewise.
24911         * haifa-sched.c (sched_init): Likewise.
24912         * ira.c (find_moveable_pseudos): Likewise.
24913         * loop-invariant.c (find_invariant_insn): Likewise.
24914         * lra-constraints.c (curr_insn_transform): Likewise.
24915         * optabs.c (prepare_cmp_insn): Likewise.
24916         * postreload.c (reload_combine_recognize_const_pattern):
24917         * Likewise.
24918         * reload.c (find_reloads): Likewise.
24919         (find_reloads_address_1): Likewise.
24920         * reorg.c (delete_scheduled_jump): Likewise.
24921         (steal_delay_list_from_target): Likewise.
24922         (steal_delay_list_from_fallthrough): Likewise.
24923         (try_merge_delay_insns): Likewise.
24924         (redundant_insn): Likewise.
24925         (fill_simple_delay_slots): Likewise.
24926         (fill_slots_from_thread): Likewise.
24927         (delete_computation): Likewise.
24928         (relax_delay_slots): Likewise.
24929         * sched-deps.c (sched_analyze_2): Likewise.
24930         * sched-rgn.c (add_branch_dependences): Likewise.
24931
24932 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24933
24934         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24935         that is trivially ded on non cc0 targets.
24936         (simplify_set): Likewise.
24937         (mark_used_regs_combine): Likewise.
24938         * cse.c (new_basic_block): Likewise.
24939         (fold_rtx): Likewise.
24940         (cse_insn): Likewise.
24941         (cse_extended_basic_block): Likewise.
24942         (set_live_p): Likewise.
24943         * rtlanal.c (canonicalize_condition): Likewise.
24944         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24945
24946 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24947
24948         * conditions.h: Define macros even if HAVE_cc0 is undefined.
24949         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24950         * final.c: Likewise.
24951         * jump.c: Likewise.
24952         * recog.c: Likewise.
24953         * recog.h: Declare functions even when HAVE_cc0 is undefined.
24954         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24955
24956 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24957
24958         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24959         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24960         * builtins.c (expand_builtin): Remove check if
24961         EH_RETURN_DATA_REGNO is defined.
24962         * df-scan.c (df_bb_refs_collect): Likewise.
24963         (df_get_exit_block_use_set): Likewise.
24964         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24965         * ira-lives.c (process_bb_node_lives): Likewise.
24966         * lra-lives.c (process_bb_lives): Likewise.
24967
24968 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24969
24970         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24971         FIRST_PSEUDO_REG): New.
24972         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24973         (ARG_POINTER_REGNUM): Define to ARGP_REG.
24974         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24975         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24976         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24977         (FIRST_INT_REG): New.
24978         (LAST_INT_REG): New.
24979         (FIRST_*_REG): Define using *_REG.
24980         (LAST_*_REG): Ditto.
24981         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24982         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24983         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24984
24985 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24986
24987         * expmed.c: (synth_mult): Only assume overlapping
24988         shift with previous steps in alg_sub_t_m2 case.
24989
24990 2015-04-21  Richard Biener  <rguenther@suse.de>
24991
24992         PR tree-optimization/65650
24993         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24994         transitions involving copies.
24995         (set_lattice_value): Adjust for copy lattice state.
24996         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24997         if that doesn't dominate the merge point.
24998         (bit_value_unop): Adjust what we treat as varying mask.
24999         (bit_value_binop): Likewise.
25000         (bit_value_assume_aligned): Likewise.
25001         (evaluate_stmt): When we simplified to a SSA name record a copy
25002         instead of dropping to varying.
25003         (visit_assignment): Simplify.
25004
25005         * gimple-match.h (gimple_simplify): Add another callback.
25006         * gimple-fold.c (fold_stmt_1): Adjust caller.
25007         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
25008         for the 2nd callback.
25009         * gimple-match-head.c (gimple_simplify): Add a callback that is
25010         used to valueize the stmt operands and use it that way.
25011
25012 2015-04-21  Richard Biener  <rguenther@suse.de>
25013
25014         PR tree-optimization/65788
25015         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
25016
25017 2015-04-21  Richard Biener  <rguenther@suse.de>
25018
25019         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
25020         vec_construct cost by vec_stmt_cost.
25021
25022 2015-04-21  Richard Biener  <rguenther@suse.de>
25023
25024         * cfghooks.h (create_basic_block): Replace with two overloads
25025         for RTL and GIMPLE.
25026         (split_block): Likewise.
25027         * cfghooks.c (split_block): Rename to ...
25028         (split_block_1): ... this.
25029         (split_block): Add two type-safe overloads for RTL and GIMPLE.
25030         (split_block_after_labels): Call split_block_1.
25031         (create_basic_block): Rename to ...
25032         (create_basic_block_1): ... this.
25033         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
25034         (create_empty_bb): Call create_basic_block_1.
25035         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
25036         split_block_after_labels.
25037         * omp-low.c (expand_parallel_call): Likewise.
25038         (expand_omp_target): Likewise.
25039         (simd_clone_adjust): Likewise.
25040         * tree-chkp.c (chkp_get_entry_block): Likewise.
25041         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
25042         create_basic_block overload.
25043         (cgraph_node::expand_thunk): Likewise.
25044         * tree-cfg.c (make_blocks): Likewise.
25045         (handle_abnormal_edges): Likewise.
25046         * tree-inline.c (copy_bb): Likewise.
25047
25048 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25049
25050         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
25051         New pattern.
25052         (*xor_one_cmplsidi3_ze): Likewise.
25053
25054 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25055
25056         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
25057         use df_remove_problem rather than manually removing problems, leaving
25058         holes in df->problems_in_order[].
25059
25060 2015-04-21  Tom de Vries  <tom@codesourcery.com>
25061
25062         PR tree-optimization/65802
25063         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
25064
25065 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25066
25067         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
25068         Increase to 128.
25069         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
25070         at '.'.  Assert that there's enough space for everything.
25071
25072 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
25073
25074         PR tree-optimization/64950
25075         Revert:
25076         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
25077
25078         PR target/41089
25079         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25080         as volatile.
25081
25082 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
25083
25084         PR rtl-optimization/64916
25085         * cfgcleanup.c (values_equal_p): New function.
25086         (can_replace_by): Use it.
25087
25088 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
25089
25090         PR c++/65801
25091         * doc/invoke.texi ([-Wnarrowing]): Update.
25092
25093 2015-04-20  Jeff Law  <law@redhat.com>
25094
25095         PR tree-optimization/65658
25096         * tree-ssa-threadupdate.c (redirection_block_p): Remove
25097         redundant test for GIMPLE_ASSIGN in last change.
25098
25099 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
25100
25101         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25102         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25103         (legitimize_tls_address): Ditto.
25104         (ix86_expand_move): Ditto.
25105         (ix86_expand_binary_operator): Remove reload_in_progress checks.
25106         (ix86_expand_unary_operator): Ditto.
25107         * config/i386/predicates.md (index_register_operand): Ditto.
25108
25109 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
25110
25111         * reorg.c (try_merge_delay_insns): Improve correctness checking
25112         for targets with multiple delay slots.
25113
25114 2015-04-20  Jeff Law  <law@redhat.com>
25115
25116         PR tree-optimization/65658
25117         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25118         statements too.
25119
25120 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
25121
25122         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25123         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25124         Delete.
25125
25126 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
25127
25128         PR debug/65807
25129         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25130
25131 2015-04-20  Richard Biener  <rguenther@suse.de>
25132
25133         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25134         * gimple-fold.c (gimple_build_valueize): New function.
25135         (gimple_build): Always use gimple_build_valueize as valueize hook.
25136
25137 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
25138
25139         PR target/64134
25140         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25141         and overwrite variable parts if <= 1/2 the elements are variable.
25142
25143 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
25144
25145         PR rtl-optimization/65805
25146         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25147         Don't use difference of offset and previous offset if
25148         update_sp_offset is non-zero.
25149         (eliminate_regs_in_insn): Ditto.
25150         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25151         lra_eliminate_regs_1 call.
25152         * lra-constraints.c (get_equiv_with_elimination): Ditto.
25153
25154 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
25155
25156         * hash-table.h: Remove version of hash_table that stored value_type *.
25157         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25158         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25159         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25160         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25161         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25162         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25163         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25164         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25165         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25166         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25167         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25168         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25169         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25170         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25171         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25172         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25173
25174 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25175             Jakub Jelinek  <jakub@redhat.com>
25176
25177         PR target/65787
25178         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25179         subsequent SH_NONE operand does not overwrite an existing *special
25180         value.
25181         (adjust_extract): Handle case where a vec_extract operation is
25182         wrapped in a PARALLEL.
25183
25184 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25185
25186         PR target/65780
25187         * config/i386/i386.c (ix86_binds_local_p): Define only if
25188         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25189
25190 2015-04-17  Jeff Law  <law@redhat.com>
25191
25192         PR tree-optimization/47679
25193         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25194         * tree-ssa-scopedtables.c: New file.
25195         * tree-ssa-scopedtables.h: New file.
25196         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25197         (const_and_copies): Change name/type.
25198         (record_const_or_copy): Move into tree-ssa-scopedtables.c
25199         (record_const_or_copy_1): Similarly.
25200         (restore_vars_to_original_value): Similarly.
25201         (pass_dominator::execute): Create and destroy const_and_copies table.
25202         (thread_across_edge): Update passing of const_and_copies.
25203         (record_temporary_equivalence): Use method calls rather than
25204         manipulating const_and_copies directly.
25205         (record_equality, cprop_into_successor_phis): Similarly.
25206         (dom_opt_dom_walker::before_dom_children): Similarly.
25207         (dom_opt_dom_walker::after_dom_children): Similarly.
25208         (eliminate_redundant_computations): Similarly.
25209         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25210         (record_temporary_equivalence): Likewise.
25211         (invalidate_equivalences): Likewise.
25212         (record_temporary_equivalences_from_phis): Update due to type
25213         change of const_and_copies.  Use method calls rather than
25214         manipulating the stack directly.
25215         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25216         (thread_through_normal_block, thread_across_edge): Likewise.
25217         (thread_across_edge): Likewise.
25218         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25219         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
25220         of equiv_stack.
25221         (identify_jump_threads): Update due to type change of equiv_stack.
25222         (finalize_jump_threads): Delete the equiv_stack when complete.
25223
25224 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
25225
25226         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25227         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25228         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25229
25230 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
25231
25232         PR target/65535
25233         * config.gcc: Exit with a comment when we do not have a major version
25234         number for the FreeBSD target.
25235
25236 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25237
25238         PR target/65689
25239         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25240         maybe_allows_mem bitfields.
25241         (maybe_allows_none_start, maybe_allows_none_end,
25242         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25243         maybe_allows_mem_end): New variables.
25244         (compute_maybe_allows): New function.
25245         (add_constraint): Use it to initialize maybe_allows_reg and
25246         maybe_allows_mem fields.
25247         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25248         is_address constraints such that those that allow neither mem nor
25249         reg come first, then those that only allow reg but not mem, then
25250         those that only allow mem but not reg, then the rest.
25251         (write_allows_reg_mem_function): New function.
25252         (write_tm_preds_h): Call it.
25253         * stmt.c (parse_output_constraint, parse_input_constraint): Use
25254         the generated insn_extra_constraint_allows_reg_mem function
25255         instead of always setting *allows_reg = true; *allows_mem = true;
25256         for unknown extra constraints.
25257
25258 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25259
25260         PR target/65780
25261         * output.h (default_binds_local_p_3): New.
25262         * varasm.c (default_binds_local_p_3): Make it public.  Take an
25263         argument to indicate if common symbol may be local.  If common
25264         symbol may be local, treat non-external variable as defined
25265         locally.
25266         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25267         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25268         * config/i386/i386.c (ix86_binds_local_p): New.
25269         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25270         ix86_binds_local_p.
25271
25272 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25273
25274         PR debug/65771
25275         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25276         trying mem_loc_descriptor on XEXP (rtl, 0).
25277
25278 2015-04-17  Martin Liska  <mliska@suse.cz>
25279
25280         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25281         Release symbol_compare_collection.
25282         * ipa-reference.c: Add TODO that a vector should be released.
25283
25284 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25285
25286         PR target/65296
25287         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25288         to new AVR-LibC file layout (bug #44574).
25289         (*avrlibc_devicelib): Same.
25290         * config/avr/avr-mcus.def: Adjust comments.
25291         * config/avr/avr.opt (nodevicelib): Adjust help.
25292
25293 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
25294
25295         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25296
25297 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
25298
25299         PR c++/64527
25300         * gimplify.c (gimplify_init_constructor): Always emit a
25301         side-effecting constructor.
25302
25303 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25304
25305         PR tree-optimization/64950
25306         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25307         in cfun->curr_properties.
25308         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25309         if we generate an IFN_VA_ARG.
25310         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25311         function if PROP_gimple_lva is not set in src function.
25312
25313 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25314             Michael Matz  <matz@suse.de>
25315
25316         PR tree-optimization/64950
25317         * gimple-iterator.c (update_modified_stmts): Remove static.
25318         * gimple-iterator.h (update_modified_stmts): Declare.
25319         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25320         (gimplify_va_arg_internal): New function.
25321         (gimplify_va_arg_expr): Use IFN_VA_ARG.
25322         * gimplify.h (gimplify_va_arg_internal): Declare.
25323         * internal-fn.c (expand_VA_ARG): New unreachable function.
25324         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25325         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
25326         (expand_ifn_va_arg): New function.
25327         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
25328         (pass_stdarg::execute): Call expand_ifn_va_arg.
25329         (pass_data_lower_vaarg): New pass_data.
25330         (pass_lower_vaarg): New gimple_opt_pass.
25331         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
25332         (make_pass_lower_vaarg): New function.
25333         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
25334         properties_required field.
25335         * passes.def (all_passes): Add pass_lower_vaarg.
25336         * tree-pass.h (PROP_gimple_lva): Add define.
25337         (make_pass_lower_vaarg): Declare.
25338
25339 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25340
25341         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
25342         * calls.c (call_expr_flags): Same.
25343
25344 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25345
25346         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25347         (pass_stdarg::execute): ... here.
25348
25349 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25350             Michael Matz  <matz@suse.de>
25351
25352         * tree-cfg.c (make_blocks_1): Factor out of ...
25353         (make_blocks): ... here.
25354         (make_edges_bb): Factor out of ...
25355         (make_edges): ... here.
25356         (gimple_find_sub_bbs): New function.
25357         * tree-cfg.h (gimple_find_sub_bbs): Declare.
25358
25359 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25360
25361         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25362
25363 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
25364
25365         * asan.c (set_sanitized_sections): New function.
25366         (section_sanitized_p): Ditto.
25367         (asan_protect_global): Optionally sanitize user-defined
25368         sections.
25369         * asan.h (set_sanitized_sections): Declare new function.
25370         * common.opt (fsanitize-sections): New option.
25371         * doc/invoke.texi (-fsanitize-sections): Document new option.
25372         * opts-global.c (handle_common_deferred_options): Handle new
25373         option.
25374
25375 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25376
25377         PR debug/65771
25378         * dwarf2out.c (loc_list_from_tree): Return NULL
25379         for DEBUG_EXPR_DECL.
25380
25381 2015-04-17  Christian Bruel  <christian.bruel@st.com>
25382
25383         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25384         same attributes.
25385
25386 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25387
25388         * ira-color.c (setup_left_conflict_sizes_p): Do not process
25389         node itself when computing left conflict subnode size.
25390
25391 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25392
25393         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25394         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25395         *fop_<mode>_1_sse using enabled attribute.  Use
25396         register_mixssei387nonimm_operand operand 1 predicate. Change
25397         alternative 3 constraints from "x" to "v".
25398
25399 2015-04-16  Richard Biener  <rguenther@suse.de>
25400
25401         PR tree-optimization/65774
25402         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25403         bit-value tracking on.
25404
25405 2015-04-16  Richard Biener  <rguenther@suse.de>
25406
25407         PR tree-optimization/64277
25408         * tree-vrp.c (check_array_ref): Fix anti-range handling,
25409         simplify upper bound handling.
25410         (search_for_addr_array): Simplify.
25411         (check_array_bounds): Handle ADDR_EXPRs here.
25412         (check_all_array_refs): Simplify.
25413
25414 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25415
25416         * config/i386/i386.c (print_reg): Rewrite function.
25417
25418 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25419
25420         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25421         Invert the condition.
25422
25423 2015-04-16  Renlin Li  <renlin.li@arm.com>
25424
25425         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25426         simplifications for UNSIGNED_FLOAT.
25427
25428 2015-04-16  Nick Clifton  <nickc@redhat.com>
25429
25430         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25431         MUL_UNINIT.
25432         (enum rl78_cpu_type): New.
25433         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25434         (umulhi3_shift_virt): Remove m constraint from operand 1.
25435         (umulqihi3_virt): Likewise.
25436         * config/rl78/rl78.c (rl78_option_override): Add code to process
25437         -mcpu and -mmul options.
25438         (rl78_alloc_physical_registers): Add code to handle divhi and
25439         divsi valloc attributes.
25440         (set_origin): Likewise.
25441         * config/rl78/rl78.h (RL78_MUL_G14): Define.
25442         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25443         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25444         __RL78_Gxx__.
25445         (ASM_SPEC): Pass -mcpu on to assembler.
25446         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25447         (mulqi3_rl78): Likewise.
25448         (mulhi3_g13): Likewise.
25449         (mulhi3): Generate the G13 or G14 versions of the insn directly.
25450         (mulsi3): Likewise.
25451         (mulhi3_g14): Add clobbers of AX and BC.
25452         (mulsi3_g14): Likewise.
25453         (mulsi3_g13): Likewise.
25454         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25455         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25456         * config/rl78/rl78.opt (mmul): Initialise value to
25457         RL78_MUL_UNINIT.
25458         (mcpu): New option.
25459         (m13, m14, mrl78): New option aliases.
25460         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25461         (MULTILIB_DIRNAMES): Add g13 and g14.
25462         * doc/invoke.texi: Document -mcpu and -mmul options.
25463
25464 2015-04-16  Richard Biener  <rguenther@suse.de>
25465
25466         * tree-ssa-ccp.c (likely_value): See if we have operands that
25467         are marked as never simulate again and return CONSTANT in this
25468         case.
25469         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25470         not have any operands that will be simulated again as
25471         not being simulated again.
25472
25473 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
25474
25475         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25476         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25477         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25478         attribute.
25479         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25480         enabled attribute.
25481         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25482         *float<SWI48:mode><MODEF:mode>2_sse.
25483         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25484         enabled attribute.
25485         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25486         enabled attribute.
25487
25488 2015-04-15  Tom de Vries  <tom@codesourcery.com>
25489
25490         PR other/65487
25491         * function.c (push_dummy_function): New function.
25492         (init_dummy_function_start): Use push_dummy_function.
25493         (pop_dummy_function): New function.  Factored out of ...
25494         (expand_dummy_function_end): ... here.
25495         * function.h (push_dummy_function, pop_dummy_function): Declare.
25496         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25497         pop_dummy_function.
25498         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25499
25500 2015-04-15  Jeff Law  <law@redhat.com>
25501
25502         PR tree-optimization/47679
25503         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25504         need for forward declaration in upcoming changes.
25505         (record_conditions, record_edge_info): Likewise.
25506
25507         PR rtl-optimization/42522
25508         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25509         SIGN_EXTRACT as a whole object rather than simplifying
25510         its operand.
25511
25512 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
25513
25514         PR ipa/65765
25515         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25516         and GIMPLE_PREDICT use break instead of return true. For
25517         GIMPLE_EH_DISPATCH, compare dispatch region.
25518
25519 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
25520
25521         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
25522         details about the implementation.  Make clear preference for
25523         __atomic builtins.  Reduce possibility of future change.
25524
25525 2015-04-15  Nick Clifton  <nickc@redhat.com>
25526
25527         * config/rx/rx.opt (mallow-string-insns): New option.
25528         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25529         builtin if string instructions are denied.
25530         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25531         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25532         appropriate.
25533         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25534         * config/rx/rx.md (movstr): Enable pattern only if string
25535         instructions are allowed.
25536         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25537         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25538         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25539         (MULTILIB_DIRNAMES): Add no-strings.
25540         * doc/invoke.texi: Document -mno-allow-string-insns.
25541
25542 2015-04-15  Alan Modra  <amodra@gmail.com>
25543
25544         PR target/65408
25545         PR target/58744
25546         PR middle-end/36043
25547         * calls.c (load_register_parameters): Don't load past end of
25548         mem unless suitably aligned.
25549
25550 2015-04-15  Nick Clifton  <nickc@redhat.com>
25551
25552         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25553         decrement instruction as being frame related.
25554         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25555         based addresses.
25556         If zero extending a function address enclose the operation in
25557         %code(...).
25558         (rl78_preferred_reload_class): New function.
25559         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25560         * config/rl78/rl78.md: Remove useless constraints in expanders.
25561         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25562         (mulhi3_rl78): Likewise.
25563         (mulhi3_g13): Likewise.
25564         (mulsi3_rl78): Likewise.
25565         (es_addr): Move to before the multiply patterns.
25566
25567 2015-04-15  Alan Modra  <amodra@gmail.com>
25568
25569         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25570         and sequence_stack.  Add seq.
25571         (seq_stack): Delete.
25572         * function.c (prepare_function_start): Don't access x_last_insn.
25573         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25574         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25575         * emit_rtl.c (start_sequence, push_topmost_sequence,
25576         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25577         sequence accessors.
25578         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25579         remove_insn): Likewise.  Simplify.
25580         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25581         and pop_topmost_sequence.
25582         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
25583         debug insns.
25584         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25585
25586 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
25587
25588         PR target/65729
25589         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25590         the assertiion.
25591
25592 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25593
25594         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25595         (LEGACY_INT_REGNO_P): Ditto.
25596         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25597         (ANY_MASK_REG_P): Remove.
25598         (BND_REG_P): Rename from ANY_BND_REG_P.
25599         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25600         legacy integer registers.  Do not handle MMX_REG_P in a special way.
25601         Merge 64byte and 32byte SSE handling.
25602
25603 2015-04-14  Nick Clifton  <nickc@redhat.com>
25604
25605         * expr.c (expand_assignment): Force an address offset computation
25606         into a register before changing its mode.
25607         (expand_expr_real_1): Likewise.
25608
25609 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
25610
25611         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25612         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25613         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25614         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25615         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25616         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25617         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25618         and __aarch64_vget_lane_any.
25619
25620 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
25621
25622         PR rtl-optimization/65761
25623         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25624         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25625
25626 2015-04-14  Richard Biener  <rguenther@suse.de>
25627
25628         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25629         (graphite_can_represent_scev): Use POINTER_TYPE_P.
25630
25631 2015-04-14  Richard Biener  <rguenther@suse.de>
25632
25633         PR tree-optimization/65758
25634         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25635         against -1.
25636         (ccp_lattice_meet): Likewise.
25637         (bit_value_unop): Likewise.
25638         (bit_value_binop): Likewise.
25639         (bit_value_assume_aligned): Likewise.
25640
25641 2015-04-14  Christian Bruel  <christian.bruel@st.com>
25642
25643         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25644         function.
25645
25646 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
25647
25648         PR tree-optimization/63387
25649         * match.pd ((x unord x) | (y unord y) -> (x unord y),
25650         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25651
25652 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25653
25654         * config/i386/predicates.md (any_QIreg_operand): Rename from
25655         q_regs_operand.  Do not process subregs.
25656         (QIreg_operand): Use QI_REGNO_P predicate.
25657         (ext_QIreg_operand): Ditto.
25658         (ext_register_operand): Ditto.
25659         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25660         (AND splitters): Ditto.
25661         (AND with -65536 splitter): Add SWI48 mode for operand 0.
25662         (AND with -256 splitter): Use any_QIreg_operand predicate and
25663         SWI248 mode for operand 0.
25664         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25665         mode for operand 0.
25666         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25667
25668 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
25669
25670         * doc/plugins.texi: Rewrite first introductory paragraph.
25671
25672 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25673
25674         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25675         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25676
25677 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25678
25679         * ipa-profie.c (ipa_profile): Check number of parameters
25680         and possible polymorphic call targets before
25681         devirtualizing.
25682
25683 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
25684
25685         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25686         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25687
25688 2015-04-13  Richard Biener  <rguenther@suse.de>
25689
25690         PR tree-optimization/65204
25691         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25692         takens for bit-CCP.
25693
25694 2015-04-13  Richard Biener  <rguenther@suse.de>
25695
25696         PR target/65660
25697         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25698         and cond_not_taken_branch_cost to 4 and 2.
25699         (bdver2_cost): Likewise.
25700         (bdver3_cost): Likewise.
25701         (bdver4_cost): Likewise.
25702
25703 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25704
25705         * hash-table.h (hash_table constructor): Add mem stats.
25706         (alloc_entries): Likewise.
25707
25708 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25709
25710         * ipa-cp.c (ipcp_driver): Relase prev_edge.
25711         * passes.c (execute_one_pass): Only add transform if pass has one.
25712
25713 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
25714
25715         * config/i386/i386.c (ix86_option_override_internal): Don't set
25716         -fprefetch-loop-arrays if optimizing for size.
25717
25718 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25719             Gerald Pfeifer  <gerald@pfeifer.com>
25720
25721         * doc/contrib.texi (Contributors): Add Martin Jambor and
25722         Michael Matz.
25723
25724 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
25725
25726         * BASE-VER: Set to 6.0.0.
25727
25728         PR tree-optimization/65747
25729         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25730         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25731
25732 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25733
25734         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25735         sentence.  Improve grammar.
25736
25737 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25738
25739         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25740
25741 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25742
25743         PR ipa/65743
25744         * ipa-inline-transform.c (speculation_removed): Remove static var.
25745         (check_speculations): New function.
25746         (clone_inlined_nodes): Do not check spculations.
25747         (inline_call): Call check_speculations.
25748         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25749         consider non-invariants.
25750
25751 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25752             Martin Liska  <mliska@suse.cz>
25753
25754         PR ipa/65722
25755         * ipa-icf.c (sem_item::compare_cgraph_references): function and
25756         variable can not match.
25757         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25758         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25759
25760 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
25761
25762         PR tree-optimization/65735
25763         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25764         Remove visited_phis argument, add visited_bbs, avoid recursing into the
25765         same bb rather than just into the same phi node.
25766         (thread_through_normal_block): Adjust caller.
25767
25768 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25769
25770         * doc/contrib.texi (Contributors): Add Ira Rosen.
25771
25772 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
25773
25774         * gcov.c (find_source): Fix miswording in error message.
25775         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25776         (ix86_expand_sse_comi_round): Fix typo in error message.
25777
25778 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25779
25780         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25781
25782 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
25783
25784         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25785
25786 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25787
25788         PR target/65710
25789         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25790         Print bad_spills_num and insn_pseudos_num.
25791
25792 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25793
25794         PR target/65694
25795         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25796         when creating +1 values for SImode.
25797
25798 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25799
25800         PR target/65729
25801         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25802         assert.
25803
25804 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
25805             Iain Sandoe  <iain@codesourcery.com>
25806
25807         PR target/65351
25808         * configure: Regenerate.
25809
25810 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25811
25812         PR target/65671
25813         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25814
25815 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
25816
25817         * doc/contrib.texi (Contributors): Add John Marino.
25818
25819 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25820
25821         PR tree-optimization/65709
25822         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25823         TREE_TYPE (TREE_TYPE (t)).
25824
25825 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
25826
25827         PR target/65710
25828         * lra-int.h (lra_bad_spill_regno_start): New.
25829         * lra.c (lra_bad_spill_regno_start): New.
25830         (lra): Set up lra_bad_spill_regno_start.  Set up
25831         lra_constraint_new_regno_start unconditionally.
25832         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25833         spill preferences.
25834
25835 2015-04-09  Marek Polacek  <polacek@redhat.com>
25836             Jakub Jelinek  <jakub@redhat.com>
25837
25838         PR middle-end/65554
25839         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25840         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25841         of STRIP_NOPS.
25842
25843 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
25844
25845         PR rtl-optimization/65693
25846         * combine.c (is_parallel_of_n_reg_sets): Move outside of
25847         #ifndef HAVE_cc0.
25848
25849 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
25850
25851         PR target/65296
25852         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25853         device specs file if "device-specs%s" didn't resolve to a path.
25854
25855 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25856
25857         PR target/65676
25858         * config/i386/i386.c (fixup_modeless_constant): New.
25859         (ix86_expand_args_builtin): Fixup modeless constant operand.
25860         (ix86_expand_round_builtin): Ditto.
25861         (ix86_expand_special_args_builtin): Ditto.
25862         (ix86_expand_builtin): Ditto.
25863
25864 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25865
25866         PR target/65693
25867         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25868         any pow2 integer in between 2 and 0x80000000U inclusive.
25869
25870 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
25871
25872         PR rtl-optimization/65693
25873         * combine.c (is_parallel_of_n_reg_sets): Change first argument
25874         from an rtx_insn * to an rtx.
25875         (try_combine): Adjust both callers.  Use it once more.
25876
25877 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25878
25879         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25880         (chkp_make_static_const_bounds): Search existing
25881         symbol by assembler name.  Use make_decl_one_only.
25882         (chkp_get_zero_bounds_var): Remove node search which
25883         is now performed in chkp_make_static_const_bounds.
25884         (chkp_get_none_bounds_var): Likewise.
25885
25886 2015-04-08  Michael Witten  <mfwitten@gmail.com>
25887
25888         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25889         to an example.
25890
25891 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25892
25893         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25894
25895 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25896
25897         * doc/extend.texi (__sync Builtins): Fix grammar.
25898
25899 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25900
25901         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25902
25903 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25904
25905         * varasm.c (emit_local): Move definition of align.
25906
25907 2015-04-08  Julian Brown  <julian@codesourcery.com>
25908
25909         * config/nvptx/mkoffload.c (process): Support variable mapping.
25910
25911 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
25912
25913         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25914         alpha_links **.
25915         (alpha_write_one_linkage): Correct typo.
25916
25917 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25918
25919         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25920
25921 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25922
25923         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25924
25925 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25926
25927         * tree-chkp.h (chkp_insert_retbnd_call): New.
25928         * tree-chkp.c (chkp_insert_retbnd_call): New.
25929         * ipa-split.c (insert_bndret_call_after): Remove.
25930         (split_function): Use chkp_insert_retbnd_call.
25931         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25932         bounds for instrumented functions.
25933
25934 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
25935
25936         PR ipa/65540
25937         * calls.c (initialize_argument_information): When producing tail
25938         call also turn SSA_NAMES passed by references to original PARM_DECLs
25939
25940 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
25941
25942         PR target/65648
25943         * lra-remat.c (do_remat): Process input and non-input insn
25944         registers separately.
25945
25946 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25947
25948         PR debug/65678
25949         * valtrack.c (debug_lowpart_subreg): New function.
25950         (dead_debug_insert_temp): Use it.
25951
25952         PR middle-end/65680
25953         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25954         into signed HOST_WIDE_INT the same as negative bit_offset.
25955
25956 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
25957
25958         * ipa-comdats.c (ipa_comdats): Visit all thunks
25959         to set proper comdat group.
25960
25961 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25962
25963         PR target/65489
25964         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25965         on constants for NEON VSTRUCT modes.
25966
25967 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25968             Iain Sandoe  <iain@codesourcery.com>
25969
25970         PR target/65351
25971         * configure: Regenerate.
25972
25973 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25974
25975         PR target/65614
25976         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25977         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25978         that LFD is used to load double constants instead of LFS.  Add
25979         defaults for all costs structures.  Add comments for missing
25980         initialization fields.
25981         (size32_cost): Likewise.
25982         (size64_cost): Likewise.
25983         (rs64a_cost): Likewise.
25984         (mpccore_cost): Likewise.
25985         (ppc403_cost): Likewise.
25986         (ppc405_cost): Likewise.
25987         (ppc440_cost): Likewise.
25988         (ppc476_cost): Likewise.
25989         (ppc601_cost): Likewise.
25990         (ppc603_cost): Likewise.
25991         (ppc604_cost): Likewise.
25992         (ppc604e_cost): Likewise.
25993         (ppc620_cost): Likewise.
25994         (ppc630_cost): Likewise.
25995         (ppccell_cost): Likewise.
25996         (ppc750_cost): Likewise.
25997         (ppc7450_cost): Likewise.
25998         (ppc8540_cost): Likewise.
25999         (ppce300c2c3_cost): Likewise.
26000         (ppce500mc_cost): Likewise.
26001         (ppce500mc64_cost): Likewise.
26002         (ppce5500_cost): Likewise.
26003         (ppce6500_cost): Likewise.
26004         (titan_cost): Likewise.
26005         (power4_cost): Likewise.
26006         (power6_cost): Likewise.
26007         (power7_cost): Likewise.
26008         (power8_cost): Likewise.
26009         (ppca2_cost): Likewise.
26010         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
26011
26012         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
26013         instead of XXLOR to copy SFmode to clear out dirty bits created
26014         when SFmode denormals are generated.
26015         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
26016         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
26017
26018 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
26019
26020         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
26021         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
26022         * config/aarch64/aarch64-tune.md: Regenerate.
26023
26024 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
26025
26026         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
26027         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
26028         * config/arm/arm-cores.def (exynos-m1): New core.
26029         * config/arm/arm-tune.md: Regenerate.
26030         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
26031         * config/arm/bpabi.h: Likewise.
26032
26033 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
26034
26035         * ipa-cp (set_single_call_flag): Remove too
26036         restrictive assert.
26037
26038 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
26039
26040         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
26041         GOMP_offload_unregister from the destructor.
26042
26043 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
26044
26045         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
26046         flags for instrumentation thunk.
26047         (chkp_produce_thunks): Likewise.
26048
26049 2015-04-05  Martin Liska  <mliska@suse.cz>
26050
26051         PR ipa/65665
26052         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
26053         has computed data structure.
26054         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26055
26056 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
26057
26058         * invoke.texi (inline-unit-growth): Increase growth to 20%
26059         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
26060
26061 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
26062
26063         PR target/65647
26064         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
26065         value checking.
26066         (lra_rematerialization_iter): New.
26067         * lra.c (lra): Initialize lra_rematerialization_iter.
26068         Stop updating lra_constraint_new_regno_start after switching of
26069         inheritance and rematerialization.
26070         * lra-remat.c (lra_rematerialization_iter): New.
26071         (lra_remat): Add printing pass iteration.  Do rematerialization
26072         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26073
26074 2015-04-04  Richard Biener  <rguenther@suse.de>
26075
26076         PR tree-optimization/64909
26077         PR tree-optimization/65660
26078         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26079         to take a cost vector for scalar iteration cost.
26080         (vect_get_single_scalar_iteration_cost): Likewise.
26081         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26082         Compute the scalar iteration cost into a cost vector.
26083         (vect_get_known_peeling_cost): Use the scalar cost vector to
26084         account for the cost of the peeled iterations.
26085         (vect_estimate_min_profitable_iters): Likewise.
26086         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26087         Likewise.
26088
26089 2015-04-04  Alan Modra  <amodra@gmail.com>
26090
26091         PR target/65576
26092         PR target/65240
26093         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26094         0.0 constant unless TARGET_VSX.
26095         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26096         alternative.
26097
26098 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26099
26100         PR ipa/65654
26101         * ipa-inline-transform.c (inline_call): Skip sanity check to work
26102         around the ICE
26103
26104 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26105
26106         PR ipa/65655
26107         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26108         speculative indirect edges to avoid ordering issue.
26109
26110 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26111
26112         PR ipa/65076
26113         * ipa-inline.c (edge_badness): Add combined size to the denominator.
26114
26115 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
26116
26117         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26118         TYPE_ARTIFICIAL on the .omp_data* types.
26119
26120 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26121
26122         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26123         instrumentation thunks.
26124
26125 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26126
26127         * config/i386/i386.c (ix86_expand_call): Avoid nested
26128         PARALLEL in returned call value.
26129
26130 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26131
26132         * lto-cgraph.c (input_cgraph_1): Always link instrumented
26133         assembler name with original one.
26134
26135 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26136
26137         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26138
26139 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26140
26141         Revert parts of r216820.
26142         * config/i386/i386.md (movqi_internal): Correct type calculation
26143         for alternatives 3 and 5.
26144
26145 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
26146
26147         PR preprocessor/61977
26148         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26149         predefine __vector/__bool/__pixel macros nor context sensitive
26150         macros for CLK_ASM.
26151         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26152
26153 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
26154
26155         * config/pa/pa.c (pa_output_move_double): Directly handle register
26156         indexed memory operand.  Simplify handling of scaled register indexed
26157         memory operands.
26158
26159 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26160
26161         PR driver/65444
26162         * config/i386/linux-common.h (MPX_SPEC): New.
26163         (CHKP_SPEC): Add MPX_SPEC.
26164         * doc/invoke.texi (-fcheck-pointer-boudns): Document
26165         possible issues with '-z bndplt' support in linker.
26166
26167 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26168
26169         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26170         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26171         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26172         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26173         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26174
26175 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
26176
26177         * config/i386/sync.md (UNSPEC_MOVA): Remove.
26178         (atomic_load<mode>): Change operand 0 predicate to
26179         nonimmediate_operand and fix up the destination when needed.
26180         Use UNSPEC_LDA.
26181         (atomic_loaddi_fpu): Use UNSPEC_LDA.
26182         (atomic_store<mode>): Change operand 1 predicate to
26183         nonimmendate_operand and move the source to register when needed.
26184         Use UNSPEC_STA.
26185         (atomic_store<mode>_1): Use UNSPEC_STA.
26186         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26187         Fix moves from memory operand.  Use UNSPEC_STA.
26188
26189 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26190
26191         * expmed.c (strict_volatile_bitfield_p): Check that the access will
26192         not cross a MODESIZE boundary.
26193         (store_bit_field, extract_bit_field): Added assertions in the
26194         strict volatile bitfields code path.
26195
26196 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26197
26198         PR target/65624
26199         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26200         Increase args array size by one to avoid buffer overflow.
26201
26202 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
26203
26204         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26205         split_part.
26206         * ipa-inline.c (edge_badness): Add wrapper penalty.
26207         (sum_callers): Move up.
26208         (inline_small_functions): Set single_caller.
26209         * ipa-inline.h (inline_summary): Add single_caller.
26210         * ipa-split.c (split_function): Set split_part.
26211         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26212         * cgraph.h (cgraph_node): Add split_part.
26213
26214 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
26215
26216         PR target/58945
26217         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26218         Do not split operands 0 and operands 2 to halfmode.
26219         (atomic_compare_and_swap<mode>): Update for
26220         atomic_compare_and_swap<dwi>_doubleword changes.
26221
26222 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
26223
26224         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26225         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26226         no caching is done.
26227
26228 2015-03-31  Martin Liska  <mliska@suse.cz>
26229
26230         PR ipa/65557
26231         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26232         has already filled up function summary.
26233         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26234
26235 2015-03-31  Richard Biener  <rguenther@suse.de>
26236
26237         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26238         of types.
26239
26240 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26241
26242         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26243         nested functions.
26244         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26245         (s390_asm_output_function_label): Adapt to new signature of
26246         s390_function_num_hotpatch_hw
26247         Optimise the code generating assembler output.
26248         Add comments to assembler file.
26249
26250 2015-03-31  Richard Biener  <rguenther@suse.de>
26251
26252         PR middle-end/65626
26253         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26254         of the noreturn call so it is last and cleanup_control_flow_bb
26255         can do the CFG part.
26256
26257 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
26258
26259         PR target/65531
26260         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26261         same_comdat_group for external symbols.
26262         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26263         infinite same_comdat_group traversal loop.
26264
26265 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
26266
26267         PR plugins/61176
26268         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26269         automatically to $headers.
26270
26271 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
26272
26273         PR ipa/65610
26274         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26275         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26276         function.
26277         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26278         Use it.
26279         * ipa-prop.c (param_type_may_change_p): Likewise.
26280         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26281         (remove_unused_scope_block_p): Add in_ctor_dtor_block
26282         argument.  Before inlining, preserve
26283         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26284         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
26285         recursive calls.
26286         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26287
26288 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26289
26290         PR ipa/65076
26291         * ipa-inline.c (edge_badness): Base denominator on callee's
26292         grwoth squared.
26293
26294 2015-03-27  Martin Jambor  <mjambor@suse.cz>
26295
26296         PR ipa/65478
26297         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26298         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26299         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26300         node_calling_single_call.
26301         * ipa-cp.c (count_callers): New function.
26302         (set_single_call_flag): Likewise.
26303         (initialize_node_lattices): Count callers and set single_flag_call if
26304         necessary.
26305         (incorporate_penalties): New function.
26306         (good_cloning_opportunity_p): Use it, dump new flags.
26307         (propagate_constants_topo): Set node_within_scc flag if appropriate.
26308         * doc/invoke.texi (ipa-cp-recursion-penalty,
26309         ipa-cp-single-call-pentalty): Document.
26310
26311 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26312
26313         PR ipa/65588
26314         * symtab.c (symtab_node::get_partitioning_class): Register vars
26315         are duplicated.
26316         * varpool.c (symbol_table::output_variables) Do not assemble unefined
26317         decls for non-symbols.
26318
26319 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26320
26321         PR target/65248
26322         * output.h (default_binds_local_p_2): New.
26323         * varasm.c (default_binds_local_p_2): Renamed to ...
26324         (default_binds_local_p_3): This.  Don't return true on protected
26325         data symbol if protected data may be external.
26326         (default_binds_local_p): Use default_binds_local_p_3.
26327         (default_binds_local_p_1): Likewise.
26328         (default_binds_local_p_2): New.
26329         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
26330         default_binds_local_p_2 if TARGET_MACHO is undefined.
26331
26332 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
26333
26334         PR target/65593
26335         * config/i386/i386.c (legitimize_pic_address): If base
26336         is SYMBOL_REF or LABEL_REF using %rip addressing, force
26337         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
26338
26339 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26340
26341         PR target/65531
26342         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
26343         comdat groups.
26344
26345 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26346
26347         PR ipa/65600
26348         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26349         of optimized out indirect call.
26350         (redirect_to_unreachable): Always build symbol table node for
26351         BUILT_IN_UNREACHABLE
26352
26353 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26354
26355         PR target/65407
26356         * ira-costs.c (record_reg_classes): Process all constraint string
26357         containing 0-9.
26358
26359 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
26360
26361         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26362         memory_operand.
26363
26364         PR target/65052
26365         * config/c6x/constraints.md (S3): New constraint.
26366         * config/c6x/c6x.md (real_jump): Use it.
26367
26368 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26369
26370         PR middle-end/65595
26371         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26372         do redirection if the call is not optimized out.
26373
26374 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
26375
26376         PR target/65495
26377         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26378         (fchkp-check-incomplete-type): Add LTO.
26379         (fchkp-zero-input-bounds-for-main): Likewise.
26380         (fchkp-first-field-has-own-bounds): Likewise.
26381         (fchkp-narrow-bounds): Likewise.
26382         (fchkp-narrow-to-innermost-array): Likewise.
26383         (fchkp-use-static-bounds): Likewise.
26384         (fchkp-use-static-const-bounds): Likewise.
26385         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26386
26387 2015-03-27  Marek Polacek  <polacek@redhat.com>
26388
26389         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26390
26391 2015-03-27  Marek Polacek  <polacek@redhat.com>
26392
26393         PR sanitizer/65583
26394         * ubsan.c (ubsan_create_edge): New function.
26395         (instrument_bool_enum_load): Call it.
26396         (instrument_nonnull_arg): Likewise.
26397         (instrument_nonnull_return): Likewise.
26398         (instrument_object_size): Likewise.
26399
26400 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26401
26402         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26403         auto_vec.
26404
26405 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26406
26407         PR lto/65536
26408         * lto-streamer.h (class lto_location_cache): New.
26409         (struct data_in): Add location_cache.
26410         (lto_input_location): Update prototype.
26411         (stream_input_location_now): New.
26412         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26413         pointer to location.
26414         (stream_input_location): Update.
26415         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26416         (warn_odr): Apply location cache before warning.
26417         (lto_input_location): Update prototype.
26418         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26419         Use stream_input_location_now.
26420         * lto-streamer-in.c (lto_location_cache::current_cache): New static
26421         variable.
26422         (lto_location_cache::cmp_loc): New function.
26423         (lto_location_cache::apply_location_cache): New function.
26424         (lto_location_cache::accept_location_cache): New function.
26425         (lto_location_cache::revert_location_cache): New function.
26426         (lto_location_cache::input_location): New function.
26427         (lto_input_location): Do location caching.
26428         (stream_input_location_now): New function.
26429         (input_eh_region, input_struct_function_base): Use
26430         stream_input_location_now.
26431         (lto_data_in_create): use new.
26432         (lto_data_in_delete): Use delete.
26433         * tree-streamer-in.c (unpack_ts_block_value_fields,
26434         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26435         lto_input_ts_exp_tree_pointers): Update for cached location api.
26436
26437 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26438
26439         PR ipa/65076
26440         * passes.def: Add pass_nothrow.
26441         * ipa-pure-const.c: (pass_data_nothrow): New.
26442         (pass_nothrow): New.
26443         (pass_nothrow::execute): New.
26444         (make_pass_nothrow): New.
26445         * tree-pass.h (make_pass_nothrow): Declare.
26446
26447 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26448
26449         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26450         edge to change by speculation resolution or redirection.
26451         (edge_set_predicate): Likewise.
26452         (inline_summary_t::duplicate): Likewise.
26453         (remap_edge_summaries): Likewise.
26454
26455 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26456
26457         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26458         New macros.
26459         (can_inline_edge_p): Relax option matching for always inline functions.
26460
26461 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
26462
26463         PR target/65561
26464         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26465         Check operand 4 and operand 0 for equality.
26466         (avx512f_vextract<shuffletype>32x4_1_maskm):
26467         Check operand 6 and operand 0 for equality.
26468         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26469         for equality.
26470         (vec_extract_hi_<mode>_maskm): Ditto.
26471
26472 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26473
26474         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26475         dead calls back to live.
26476         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26477         cross check to ...
26478         (cgraph_node::verify_node): ... here; verify only callee edges,
26479         not caller.
26480         * cif-code.def (CILK_SPAWN): New code.
26481
26482 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26483
26484         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26485         (edge_set_predicate): Use it to mark unreachable edges.
26486         (inline_summary_t::duplicate): Remove unnecesary code.
26487         (remap_edge_summaries): Likewise.
26488         (dump_inline_summary): Report contains_cilk_spawn.
26489         (compute_inline_parameters): Compute contains_cilk_spawn.
26490         (inline_read_section, inline_write_summary): Stream
26491         contains_cilk_spawn.
26492         * ipa-inline.c (can_inline_edge_p): Do not touch
26493         DECL_STRUCT_FUNCTION that may not be available;
26494         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26495         remove check for callee_fun->can_throw_non_call_exceptions and
26496         replace it by optimization attribute check; check for flag_exceptions.
26497         * ipa-inline-transform.c (inline_call): Maintain
26498         DECL_FUNCTION_PERSONALITY
26499         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26500
26501 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26502
26503         PR tree-optimization/65551
26504         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26505         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26506
26507 2015-03-26  Richard Biener  <rguenther@suse.de>
26508
26509         PR middle-end/65555
26510         * tree-cfg.c (verify_gimple_call): Do not require a call to
26511         have no LHS if it wasn't recognized as control altering yet.
26512
26513 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26514
26515         PR tree-optimization/64715
26516         * passes.def: Add another instance of pass_object_sizes before ccp1.
26517         * tree-object-size.c (pass_object_sizes::execute): In
26518         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26519         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26520         __bos result and the computed constant.  Remove redundant
26521         checks, obsoleted by gimple_call_builtin_p test.
26522
26523         * var-tracking.c (variable_tracking_main_1): Don't track
26524         variables for targetm.no_register_allocation targets.
26525
26526 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
26527
26528         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26529         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26530
26531 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26532
26533         PR target/65569
26534         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26535         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
26536         0.0 is correctly setup.
26537         (extenddftf2_internal): Likewise.
26538
26539 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
26540
26541         PR tree-optimization/65177
26542         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26543         (bb_in_bbs): New.
26544         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
26545         edges not adjacent on the path to the original code.
26546
26547 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
26548
26549         PR bootstrap/65537
26550         * doc/install.texi (Building a native compiler): Document new
26551         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
26552         configuration assumes that the host supports the linker plugin.
26553
26554 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26555
26556         PR target/65508
26557         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26558         chain for generated call.
26559
26560 2015-03-25  Richard Biener  <rguenther@suse.de>
26561
26562         * passes.c (pass_manager::execute_early_local_passes): Guard
26563         execution of pass_chkp_instrumentation_passes with
26564         flag_check_pointer_bounds.
26565         (pass_chkp_instrumentation_passes::gate): Likewise.
26566
26567 2015-03-25  Martin Liska  <mliska@suse.cz>
26568
26569         PR tree-optimization/65538
26570         * symbol-summary.h (function_summary::~function_summary):
26571         Relese memory for allocated summaries.
26572         (function_summary::release): New function.
26573
26574 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
26575
26576         PR lto/65515
26577         * lto-streamer-out.c (DFS::worklist): New struct.
26578         (DFS::worklist_vec): New data member.
26579         (DFS::next_dfs_num): Remove.
26580         (DFS::DFS): Rewritten using worklist instead of recursion,
26581         using most of code from DFS::DFS_write_tree.
26582         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26583         pass it to DFS_write_tree calls.
26584         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26585         quick initial checks push it into worklist_vec and return.
26586
26587 2015-03-25  Richard Biener  <rguenther@suse.de>
26588
26589         PR middle-end/65519
26590         * genmatch.c (expr::gen_transform): Re-write to avoid
26591         using gimple_build.
26592
26593 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26594
26595         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26596
26597 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26598
26599         * config/arm/arm.opt (print_tune_info): New option.
26600         * config/arm/arm.c (arm_print_tune_info): New function.
26601         (arm_file_start): Call arm_print_tune_info.
26602         * config/arm/arm-protos.h (struct tune_params): Add comment.
26603         * doc/invoke.texi (@item -mprint-tune-info): New item.
26604         (-mtune): mention it in ARM Option Summary.
26605
26606 2015-03-25  DJ Delorie  <dj@redhat.com>
26607
26608         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26609         correct clause.
26610
26611 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
26612             Martin Liska  <mliska@suse.cz>
26613
26614         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26615         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26616         (sem_item::add_type): New function.
26617         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26618         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26619         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26620         (sem_function::equals_wpa): Fix typo.
26621         * ipa-icf.h (sem_item::add_type): New function.
26622         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26623         order.
26624
26625 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
26626
26627         PR tree-optimization/65533
26628         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26629         with swapped operands, call vect_free_slp_tree on
26630         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26631         vector.
26632
26633 2015-03-24  Richard Biener  <rguenther@suse.de>
26634
26635         PR middle-end/65517
26636         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26637         for fixup if necessary.
26638
26639 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
26640
26641         * doc/extend.texi (Function Attributes): Add @cindex entries
26642         for all attributes and regularize their format.  Delete text
26643         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
26644         information about "eightbit_data", "tiny_data", and "model"
26645         variable attributes to the Variable Attributes section.  Fix
26646         some obvious typos and copy-editing issues.
26647         (Variable Attributes, Type Attributes): Likewise add/fix
26648         @cindex entries for all attributes.
26649
26650 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26651
26652         PR target/65523
26653         * tree-chkp.c (chkp_build_returned_bound): Ignore
26654         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26655
26656 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
26657
26658         PR target/65505
26659         * config/sh/predicates.md (simple_mem_operand,
26660         displacement_mem_operand): Add test for reg.
26661         (short_displacement_mem_operand): Test for displacement_mem_operand
26662         before invoking sh_disp_addr_displacement.
26663         * config/sh/constraints.md (Sdd, Sra): Simplify.
26664         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26665         Remove redundant displacement_mem_operand tests.
26666
26667 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
26668
26669         PR target/65296
26670         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26671         the same -mmcu=MCU more than once.
26672
26673 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26674
26675         PR bootstrap/65522
26676         * ipa-devirt.c: Remove duplicate demangle.h include.
26677
26678         PR target/65504
26679         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26680         on the pseudo.
26681         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26682         REG_POINTER on *destptr after adjusting it for prologue size.
26683
26684         PR ipa/65521
26685         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26686         ultimate_alias_target ()->order ints instead of
26687         ultimate_alias_target () pointers.
26688
26689 2015-03-23  Richard Biener  <rguenther@suse.de>
26690
26691         PR tree-optimization/65518
26692         * tree-vect-stmts.c (vectorizable_load): Reject single-element
26693         interleaving cases we generate absymal code for.
26694
26695 2015-03-23  Richard Biener  <rguenther@suse.de>
26696
26697         PR tree-optimization/65494
26698         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26699         matches here.
26700         (vect_analyze_slp_instance): But do that here, always and once.
26701
26702 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26703
26704         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26705         adding T or multiplying by T+1 and subracting T.
26706
26707 2015-03-22  Jeff Law  <law@redhat.com>
26708
26709         PR rtl-optimization/64317
26710         * Makefile.in (OBJS): Add gcse-common.c
26711         * gcse.c: Include gcse-common.h
26712         (struct modify_pair_s): Move structure definition to gcse-common.h
26713         (compute_transp): Move function to gcse-common.c.
26714         (canon_list_insert): Similarly.
26715         (record_last_mem_set_info): Break out some code and put it into
26716         gcse-common.c.  Call into the new common code.
26717         (compute_local_properties): Pass additional arguments to compute_transp.
26718         * postreload-gcse.c: Include gcse-common.h and df.h
26719         (modify_mem_list_set, blocks_with_calls): New variables.
26720         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26721         (get_bb_avail_insn): Pass in the expression index too.
26722         (alloc_mem): Allocate memory for the new bitmaps and lists.
26723         (free_mem): Free memory for the new bitmaps and lists.
26724         (insert_expr_in_table): Record a bitmap index for each entry we
26725         add to the table.
26726         (record_last_mem_set_info): Call into common code in gcse-common.c.
26727         (get_bb_avail_insn): If no available insn was found in the requested
26728         BB.  If BB has a single predecessor, see if the expression is
26729         transparent in BB and available in that single predecessor.
26730         (compute_expr_transp): New wrapper for compute_transp.
26731         (eliminate_partially_redundant_load): Pass expression's bitmap_index
26732         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
26733         (gcse_after_reload_main): If there are elements in the hash table,
26734         then compute transparency for all the elements in the hash table.
26735         * gcse-common.h: New file.
26736         * gcse-common.c: New file.
26737
26738 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
26739
26740         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26741         as an adjective.
26742         (System Headers): Likewise.
26743         (Ifdef): Likewise.
26744         (Traditional macros): Likewise.
26745         (Invocation): Likewise.
26746         (Option Index): Likewise.
26747         * doc/cppopts.texi (-M): Likewise.
26748         (-finput-charset): Likewise.
26749         (--help): Likewise.
26750         * doc.invoke.texi (AVR Options): Likewise.
26751         (V850 Options): Likewise.
26752
26753 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
26754
26755         PR ipa/65475
26756         * ipa-devirt.c: Include demangle.h
26757         (odr_type_d): Add field rtti_broken.
26758         (odr_subtypes_equivalent_p): Do not require name to match.
26759         (compare_virtual_tables): Fix typo; if type already has ODR violation,
26760         bypass the tests; be ready for function referneces in vtables that are
26761         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26762         (warn_odr): Give up for nameless types.
26763         (warn_types_mismatch): Report mismatch in mangled names;
26764         report mismatch in anonymous namespaces; look into component types to
26765         give useful error; report when mismatch is dragged in from other ODR
26766         type.
26767         (odr_types_equivalent_p): Match types for being polymorphic; avoid
26768         duplicated diagnostics.
26769         (add_type_duplicate): Reorder checks so more informative ones come
26770         first; fix typo; do not output "the extra base is defined here" when
26771         we did not warn.
26772         (BINFO_N_BASE_BINFOS): Relax sanity check.
26773
26774 2015-03-22  Martin Liska  <mliska@suse.cz>
26775             Jakub Jelinek  <jakub@redhat.com>
26776
26777         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26778         masks that can potentially include a builtin.
26779         (ix86_add_new_builtins): Introduce fast filter for isa values
26780         that cannot trigger builtin inclusion.
26781
26782 2015-03-22  Martin Liska  <mliska@suse.cz>
26783
26784         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26785         (sem_item::update_hash_by_local_refs): Likewise.
26786         (sem_variable::get_hash): Empty line is fixed.
26787         (sem_item_optimizer::execute): Include adding of hash references.
26788         (sem_item_optimizer::update_hash_by_addr_refs): New function.
26789         (sem_item_optimizer::build_hash_based_classes): Use local hash.
26790         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26791         (sem_item::update_hash_by_local_refs): Likewise.
26792
26793 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26794
26795         PR ipa/65502
26796         * ipa-comdats.c (enqueue_references): Walk through thunks.
26797         (ipa_comdats): Likewise.
26798         (set_comdat_group_1): New function.
26799
26800 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26801
26802         PR ipa/65475
26803         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26804         non-polymorphic
26805
26806 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26807             Gerald Pfeifer  <gerald@pfeifer.com>
26808
26809         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26810
26811 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26812             Sandra Loosemore  <sandra@codesourcery.com>
26813
26814         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26815         function parameter declaration.
26816         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26817         Update arguments to nios2_adjust_call_address().
26818         (sibcall_internal): Rename from *sibcall.
26819         (sibcall_value_internal): Rename from *sibcall_value.
26820         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26821         (nios2_large_got_address): Add target temp reg parameter.
26822         (nios2_got_address): Adjust call to nios2_large_got_address, add
26823         force_reg around it.
26824         (nios2_load_pic_address): Add target temp reg parameter, replace call
26825         to nios2_got_address with corresponding code.
26826         (nios2_legitimize_constant_address): Update call to
26827         nios2_load_pic_address.
26828         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26829         to use temp reg for PIC loading purposes.
26830         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26831         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26832         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26833
26834 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26835
26836         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26837         usage of "the @option{...}".
26838         (-Wopenmp-simd): Likewise.
26839         (-fsanitize-recover): Likewise.
26840         (-fsanitize-undefined-trap-on-error): Likewise.
26841         (-flto): Likewise.
26842         (tracer-dynamic-coverage-feedback): Likewise.
26843         (reorder-block-duplicate-feedback): Likewise.
26844         (loop-unroll-jam-size): Likewise.
26845         (-B): Likewise.
26846         (-I-): Likewise.
26847         (-mabs=legacy): Likewise.
26848         (-mupper-regs-df): Likewise.
26849         (-mupper-regs-sf): Likewise.
26850         (-mpointers-to-nested-functions): Likewise.
26851
26852 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26853
26854         * doc/extend.texi (Cilk Plus Builtins): Add markup.
26855
26856 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26857
26858         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26859         additional index entries and cross-references.
26860         (-fchkp-check-incomplete-type): Likewise.
26861         (-fchkp-first-field-has-own-bounds): Likewise.
26862         (-fchkp-narrow-to-innermost-array): Likewise.
26863         (-fchkp-use-fast-string-functions): Likewise.
26864         (-fchkp-use-nochk-string-functions): Likewise.
26865         (-fchkp-use-static-const-bounds): Likewise.
26866         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26867         (-fchkp-instrument-marked-only): Likewise.
26868         (-fchkp-use-wrappers): Likewise.
26869         (-static-libmpx): Likewise.
26870         (-static-libmpxwrappers): Likewise.
26871         * doc/extend.texi (bnd_legacy): Likewise.
26872         (bnd_instrument): Likewise.
26873         (bnd_variable_size): Likewise.
26874         (Pointer Bounds Checker builtins): Likewise.
26875
26876 2015-03-21  Tom de Vries  <tom@codesourcery.com>
26877
26878         PR tree-optimization/65458
26879         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26880         * cgraph.h (cgraph_node): Add parallelized_function field.
26881         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26882         (input_overwrite_node): Read parallelized_function field.
26883         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26884         parallelized_function on cgraph_node for child_fn.
26885         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26886         Remove include of gt-tree-parloops.h.
26887         (parallelized_functions): Remove static variable.
26888         (parallelized_function_p): Rewrite using parallelized_function field of
26889         cgraph_node.
26890         (create_loop_fn): Remove adding to parallelized_functions.
26891         * Makefile.in (GTFILES): Remove tree-parloops.c
26892
26893 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
26894
26895         PR rtl-optimization/64366
26896         * lra.c (lra_update_insn_regno_info): Consider regs in
26897         CALL_INSN_FUNCTION_USAGE memory.
26898
26899 2015-03-20  Richard Biener  <rguenther@suse.de>
26900
26901         PR middle-end/64715
26902         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26903         for type comparison and gcc_checking_assert.
26904         (chrec_fold_plus_poly_poly): Likewise.
26905         (chrec_fold_multiply_poly_poly): Likewise.
26906         (chrec_convert_1): Likewise.
26907         * gimplify.c (gimplify_expr): Remove premature folding of
26908         &X + CST to &MEM[&X, CST].
26909
26910 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26911
26912         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26913         already is final.
26914         (ipa_inline): Recompute inline_failed codes.
26915         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26916         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26917         CIF_FINAL_ERROR.
26918
26919 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
26920
26921         PR rtl-optimization/60851
26922         * recog.c (constrain_operands): Accept a pseudo register before reload
26923         for LRA enabled targets.
26924
26925 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
26926
26927         PR target/65240
26928         * config/rs6000/predicates.md (easy_fp_constant): Remove special
26929         -ffast-math handling that kept non-0 constants live in the RTL
26930         until reload.  Remove logic testing the number of instructions it
26931         took to create a constant in a GPR that was never used, due to a
26932         test for soft-float earlier.
26933         (memory_fp_constant): Delete, no longer used.
26934
26935         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26936         alternatives for loading non-0 constants into GPRs for hard
26937         floating point that is no longer needed due to changes in
26938         easy_fp_constant.  Add support for loading 0.0 into GPRs.
26939         (mov<mode>_hardfloat32): Likewise.
26940         (mov<mode>_hardfloat64): Likewise.
26941         (mov<mode>_64bit_dm): Likewise.
26942         (movtd_64bit_nodm): Likewise.
26943         (pre-reload move FP constant define_split): Delete define_split,
26944         since it is no longer used.
26945         (extenddftf2_internal): Remove GHF constraints that are not valid
26946         for extenddftf2.
26947
26948 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
26949
26950         PR rtl-optimization/63491
26951         * lra-constraints.c (check_and_process_move): Use src instead of
26952         sreg.  Remove some dead code.
26953
26954 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
26955
26956         PR ipa/65380
26957         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26958         (sem_variable::merge): Likewise.
26959
26960 2015-03-19  Martin Liska  <mliska@suse.cz>
26961
26962         PR ipa/65465
26963         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26964         all fields of cgraph_thunk_info.
26965
26966 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
26967
26968         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26969         clone instrumented thunks.
26970
26971 2015-03-19  Richard Biener  <rguenther@suse.de>
26972
26973         Revert
26974         2015-03-10  Richard Biener  <rguenther@suse.de>
26975
26976         PR middle-end/63155
26977         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26978         * tree-ssa-coalesce.c: Include timevar.h.
26979         (attempt_coalesce): Handle graph being NULL.
26980         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26981         Split out abnormal coalescing to ...
26982         (perform_abnormal_coalescing): ... this function.
26983         (coalesce_ssa_name): Perform abnormal coalescing without computing
26984         live/conflict.
26985         (verify_ssa_coalescing_worker): New function.
26986         (verify_ssa_coalescing): Likewise.
26987
26988 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26989             Jakub Jelinek  <jakub@redhat.com>
26990
26991         PR sanitizer/65400
26992         * tsan.c (instrument_gimple): Clear tail call flag on
26993         calls.
26994
26995 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
26996
26997         PR sanitizer/65400
26998         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26999         call in the return bb.
27000         (find_split_points): Add RETURN_BB argument, don't call
27001         find_return_bb.
27002         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
27003         if true append TSAN_FUNC_EXIT internal call after the call to
27004         the split off function.
27005         (execute_split_functions): Call find_return_bb here.
27006         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
27007         Adjust find_split_points and split_function calls.
27008
27009 2015-03-18  DJ Delorie  <dj@redhat.com>
27010
27011         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
27012         (iorqi3_virt): Likewise.
27013
27014 2015-03-18  Tom de Vries  <tom@codesourcery.com>
27015
27016         * tree-parloops.c (parallelize_loops): Make static.
27017         * tree-parloops.h (parallelize_loops): Remove extern declaration.
27018
27019 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
27020
27021         PR middle-end/64491
27022         Revert:
27023         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
27024
27025         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
27026         condition would be removed due to undefined behaviour.
27027
27028 2015-03-18  Martin Liska  <mliska@suse.cz>
27029
27030         PR ipa/65432
27031         * cgraph.c (cgraph_node::get_create): Remove unnecessary
27032         xstrdup_for_dump wrapper.
27033         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
27034         sem_item::name.
27035         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
27036         with xstrdup_for_dump.
27037         (sem_variable::equals): Likewise.
27038         (sem_item_optimizer::read_section): Use symtab_node::name instead of
27039         sem_item::name.
27040         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
27041         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
27042         symtab_node::asm_name with xstrdup_for_dump.
27043         (congruence_class::dump): Use symtab_node::name instead of
27044         sem_item::name.
27045         * ipa-icf.h (symtab_node::name): Remove.
27046         (symtab_node::asm_name): Likewise.
27047
27048 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
27049
27050         PR tree-optimization/65450
27051         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
27052         function.
27053         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
27054         it instead of duplicate_ssa_name_ptr_info.
27055
27056         PR target/65222
27057         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
27058
27059 2015-03-18  Richard Biener  <rguenther@suse.de>
27060
27061         * tree-data-ref.h (struct access_matrix): Remove.
27062         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
27063         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
27064         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
27065         (am_vector_index_for_loop): Likewise.
27066         (struct data_reference): Remove access_matrix member.
27067         (DR_ACCESS_MATRIX): Remove.
27068         (lambda_vector_new): Add comment.
27069         (lambda_matrix_new): Use XOBNEWVEC.
27070
27071 2015-03-18  Richard Biener  <rguenther@suse.de>
27072
27073         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27074         (pass_ch::execute): Cleanup the CFG only if we did sth.
27075         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27076
27077 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27078
27079         * expmed.c (synth_mult): Use std::swap instead of manually
27080         swapping algorithms.
27081
27082 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
27083
27084         PR target/65078
27085         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27086
27087 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
27088
27089         PR target/65296
27090         * config/avr/avr.opt (-nodevicelib): New option.
27091         * doc/invoke.texi (AVR Options): Document it.
27092         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27093         libgcc.a, libc.a, libm.a.
27094         * config/avr/specs.h: Same.
27095         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27096         which don't (directly) depend on the device.  Print more help.
27097         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27098         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27099         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27100         case of an error.
27101         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27102         for specs file name.
27103         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27104         * config/avr/avr-mcus.def: Adjust initializers and comments.
27105
27106 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
27107
27108         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27109         DECL_ONE_ONLY to check if decl is one only.
27110         * ipa-split.c (consider_split): Limit splitt of one only functions.
27111
27112 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
27113
27114         PR tree-optimization/65427
27115         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27116         functions.
27117         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27118
27119 2015-03-16  Marek Polacek  <polacek@redhat.com>
27120
27121         * cgraph.h (add_new_static_var): Remove declaration.
27122         * varpool.c (add_new_static_var): Remove function.
27123
27124 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
27125
27126         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27127         instead of vec<tree> * with vec_alloc and release for args.
27128         Adjust all users.
27129
27130         PR middle-end/65431
27131         * omp-low.c (delete_omp_context): Only splay_tree_delete
27132         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27133         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
27134
27135 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
27136
27137         PR sanitizer/64820
27138         * cfgexpand.c (align_base): New function.
27139         (alloc_stack_frame_space): Call it.
27140         (expand_stack_vars): Align prev_frame to be sure
27141         data->asan_vec elements aligned properly.
27142
27143 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
27144
27145         PR middle-end/65409
27146         * expr.c (store_field): Do not do a direct block copy if the source is
27147         a PARALLEL with BLKmode.
27148
27149 2015-03-16  Tom de Vries  <tom@codesourcery.com>
27150
27151         PR middle-end/65414
27152         Revert:
27153         2015-03-12  Tom de Vries  <tom@codesourcery.com>
27154
27155         PR rtl-optimization/64895
27156         * lra-lives.c (check_pseudos_live_through_calls): Use
27157         actual_call_used_reg_set instead of call_used_reg_set, if available.
27158
27159 2015-03-16  Alan Modra  <amodra@gmail.com>
27160
27161         PR target/63150
27162         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27163         Modify Z->r bswapdi splitter to use dest in place of scratch.
27164         In r->Z and Z->r bswapdi splitter rename word_high, word_low
27165         to word1, word2 and rearrange logic to suit.
27166         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27167         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
27168         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27169         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
27170         early clobber.
27171
27172 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
27173
27174         PR tree-optimization/65369
27175         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27176         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27177         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27178
27179         PR tree-optimization/65418
27180         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27181         are casts in the first PLUS_EXPR operand, ensure tbias and
27182         *totallowp are in the inner type.
27183
27184         PR rtl-optimization/65401
27185         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27186         argument.  If true, adjust_address_nv of x with big-endian
27187         correction for the mode widening to GET_MODE (y).
27188         (make_field_assignment): Don't do MEM mode widening here.
27189         Use MEM_P instead of GET_CODE == MEM.
27190
27191 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
27192
27193         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27194         the external decls.
27195
27196 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27197
27198         PR target/64600
27199         * config/arm/arm.c (arm_gen_constant, AND case): Use
27200         ARM_SIGN_EXTEND when constructing AND mask.
27201
27202 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27203
27204         * graph.c (print_graph_cfg): Make function names visible and append
27205         parenthesis to it.  Also make groups of basic blocks belonging to the
27206         same function visible.
27207
27208 2015-03-12  Richard Biener  <rguenther@suse.de>
27209
27210         PR middle-end/44563
27211         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27212         to avoid quadratic behavior with inline expansion splitting blocks.
27213         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27214         with the successor if the predecessor will be merged with it.
27215         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27216         entry block with its successor.
27217
27218 2015-03-13  Richard Biener  <rguenther@suse.de>
27219
27220         PR middle-end/44563
27221         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27222         (cleanup_tree_cfg_1): Do not call it.
27223         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27224         (fixup_noreturn_call): Mark the stmt as control altering.
27225         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27226         here.
27227         (pass_data_fixup_cfg): Produce a dump file.
27228         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27229         (need_noreturn_fixup): New global.
27230         (pass_dominator::execute): Fixup queued noreturn calls.
27231         (optimize_stmt): Queue calls that became noreturn for fixup.
27232         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27233         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27234         (el_to_fixup): New global.
27235         (eliminate_dom_walker::before_dom_childre): Queue calls that
27236         became noreturn for fixup.
27237         (eliminate): Fixup queued noreturn calls.
27238         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27239         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27240         (substitute_and_fold_dom_walker::before_dom_children): Queue
27241         alls that became noreturn for fixup.
27242         (substitute_and_fold): Fixup queued noreturn calls.
27243
27244 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
27245
27246         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27247         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27248         are building; for methods check ODR type of class they belong to if
27249         they may lead to a polymorphic call.
27250         (sem_function::compare_polymorphic_p): Be bit smarter about testing
27251         when function may lead to a polymorphic call.
27252         (sem_function::compare_type_list): Remove.
27253         (sem_variable::equals): Update use of compatible_types_p.
27254         (sem_variable::parse_tree_refs): Remove.
27255         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27256         cdtor.
27257         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27258         matching here.
27259         (func_checker::compatible_polymorphic_types_p): Break out from ...
27260         (unc_checker::compatible_types_p): ... here.
27261         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27262         Declare.
27263         (unc_checker::compatible_types_p): Update.
27264         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27265         Remove.
27266
27267 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27268
27269         PR rtl-optimization/65235
27270         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27271         When first element of vec_concat is const_int, calculate its size
27272         using second element.
27273
27274 2015-03-12  Richard Biener  <rguenther@suse.de>
27275
27276         PR middle-end/65270
27277         * fold-const.c (operand_equal_p): Fix ordering of resetting
27278         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27279
27280 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27281
27282         * config/s390/s390.c (s390_reorg): Move code to output nops after label
27283         to s390_reorg ().
27284         (s390_asm_output_function_label): Likewise.
27285         * config/s390/s390.c (s390_asm_output_function_label):
27286         Fix function label alignment with -mhtopatch.
27287         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27288         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27289         ("nop_2_byte"): New define_insn.
27290         ("nop_4_byte"): Likewise.
27291         ("nop_6_byte"): Likewise.
27292         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27293         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27294
27295 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27296
27297         PR target/65103
27298         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27299         register.
27300
27301 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27302
27303         PR target/65044
27304         * toplev.c (process_options): Restrict Pointer Bounds Checker
27305         usage with Address Sanitizer.
27306
27307 2015-03-12  Richard Biener  <rguenther@suse.de>
27308
27309         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27310         to split on.
27311         * omp-low.c (expand_omp_taskreg): Split block before removing
27312         the stmt.
27313         (expand_omp_target): Likewise.
27314         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27315         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27316         stmt to split_block.
27317
27318 2015-03-12  Tom de Vries  <tom@codesourcery.com>
27319
27320         PR rtl-optimization/64895
27321         * lra-lives.c (check_pseudos_live_through_calls): Use
27322         actual_call_used_reg_set instead of call_used_reg_set, if available.
27323
27324 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27325
27326         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
27327         (cgraph_node::remove): Likewise.
27328         (cgraph_node::get_untransformed_body): Likewise.
27329         * varpool.c (varpool_node::remove): Likewise.
27330         (varpool_node::get_constructor): Add sanity check.
27331
27332 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
27333
27334         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
27335         old GCC versions.
27336         (-fabi-compat-version): Likewise.
27337         (-ffriend-injection): Likewise.
27338         (-Wdeclaration-after-statement): Likewise.
27339         (-fomit-frame-pointer): Likewise.
27340         (-ftree-coalesce-inlined-vars): Likewise.
27341         (-fvisibility=): Likewise.
27342         * doc/extend.texi (Typeof): Likewise.
27343         (Zero Length): Likewise.
27344         (Escaped Newlines): Likewise.
27345         (Compound Literals): Likewise.
27346         (Function Attributes): Likewise.
27347         (Label Attributes): Likewise.
27348         (Type Attributes): Likewise.
27349         (Function Names): Likewise.
27350         (Other Builtins): Likewise.
27351         (Function Specific Option Pragmas): Likewise.
27352         (C++ Interface): Likewise.
27353
27354 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
27355
27356         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27357
27358 2015-03-11  Marek Polacek  <polacek@redhat.com>
27359
27360         PR tree-optimization/65388
27361         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27362
27363 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27364
27365         PR target/65296
27366         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27367         * configure: Regenerate.
27368         * config.in: Regenerate.
27369         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27370         [-mn-flash]: Document it.
27371         [__AVR_ARCH__]: Document avrtiny.
27372
27373         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27374         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27375         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27376
27377 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27378
27379         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27380
27381 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27382
27383         PR target/65242
27384         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27385         allow reloads of PLUS in floating point/VSX registers.
27386
27387 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
27388
27389         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27390         crypto_sha256_fast.
27391         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27392
27393 2015-03-11  Richard Biener  <rguenther@suse.de>
27394
27395         PR tree-optimization/65310
27396         * tree-sra.c (build_ref_for_offset): Also preserve larger
27397         alignment.
27398
27399 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
27400
27401         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27402
27403 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27404
27405         PR target/65368
27406         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27407         new define_expand.
27408         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27409
27410 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27411
27412         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27413         (sem_function::equals_wpa): ... here.
27414
27415 2015-03-10  Marek Polacek  <polacek@redhat.com>
27416             Jakub Jelinek  <jakub@redhat.com>
27417
27418         PR sanitizer/65367
27419         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27420         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
27421         separately.
27422
27423 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27424
27425         PR target/65286
27426         * config/rs6000/t-linux: For powerpc64* target set
27427         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27428
27429 2015-03-10  Richard Biener  <rguenther@suse.de>
27430
27431         PR middle-end/44563
27432         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27433         for redirect_all_calls.
27434
27435 2015-03-10  Marek Polacek  <polacek@redhat.com>
27436
27437         * gdbinit.in (pcfun): Define and document.
27438
27439 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
27440
27441         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27442         of libgomp-plugin.h.
27443         (find_target_compiler): Support a case when the path to gcc is
27444         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27445         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27446         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27447         libgomp-plugin.h.
27448         (main): Use GCC_INSTALL_NAME as target_driver_name.
27449         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27450         define.
27451         (mkoffload.o): Remove obsolete include path and defines.
27452         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27453
27454 2015-03-10  Richard Biener  <rguenther@suse.de>
27455
27456         PR middle-end/63155
27457         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27458         * tree-ssa-coalesce.c: Include timevar.h.
27459         (attempt_coalesce): Handle graph being NULL.
27460         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27461         Split out abnormal coalescing to ...
27462         (perform_abnormal_coalescing): ... this function.
27463         (coalesce_ssa_name): Perform abnormal coalescing without computing
27464         live/conflict.
27465         (verify_ssa_coalescing_worker): New function.
27466         (verify_ssa_coalescing): Likewise.
27467
27468 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27469
27470         PR target/65296
27471         * config.gcc (extra_options) [avr]: Remove.
27472         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27473         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27474         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27475
27476         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27477         (-mmcu=): Add Var and MissingArgError properties.
27478         (-march=): Remove.
27479         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27480         * config/avr/t-multilib: Regenerate.
27481         * config/avr/specs.h: New file.
27482         * config/avr/driver-avr.c: New file.
27483         * config/avr/genopt.sh: Remove file.
27484         * config/avr/avr-tables.opt: Remove file.
27485         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27486         * config/avr/avr-c.c: Same.
27487         * avr-arch.h: Same.
27488         (avr_current_device): Remove proto.
27489         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27490         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27491         (EXTRA_SPEC_FUNCTIONS): Define.
27492         (avr_devicespecs_file): New specs function proto.
27493         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27494         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27495         (avr_current_device): Remove definition and usage.
27496         (avr_set_core_architecture): New static function.
27497         (avr_option_override): Use it.
27498         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27499         (mcu_name): New static array.
27500         (comparator, avr_archs_str, avr_mcus_str): New static functions.
27501         (avr_inform_devices, avr_inform_core_architectures): New functions.
27502         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27503         (avrlibc.h) [WITH_AVRLIBC]: Include.
27504         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27505         (print_mcu): Rewrite from scratch.
27506         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27507         Forward to avr-specific specs defined in device-specs file.
27508         * config/avr/t-avr (driver-avr.o): New rule.
27509         (avr-devices.o): Depend on avr-arch.h.
27510         (avr-mcus): No more depend on avr-tables.opt.
27511         (avr-tables.opt): Remove rule.
27512         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27513
27514 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27515
27516         * c-family/c.opt (fchkp-use-wrappers): New.
27517         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27518         (chkp_wrap_function): New.
27519         (chkp_build_instrumented_fndecl): Support wrapped
27520         functions.
27521         * doc/invoke.texi (-fcheck-pointer-bounds): New.
27522         (-fchkp-check-incomplete-type): New.
27523         (-fchkp-first-field-has-own-bounds): New.
27524         (-fchkp-narrow-bounds): New.
27525         (-fchkp-narrow-to-innermost-array): New.
27526         (-fchkp-optimize): New.
27527         (-fchkp-use-fast-string-functions): New.
27528         (-fchkp-use-nochk-string-functions): New.
27529         (-fchkp-use-static-bounds): New.
27530         (-fchkp-use-static-const-bounds): New.
27531         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27532         (-fchkp-check-read): New.
27533         (-fchkp-check-write): New.
27534         (-fchkp-store-bounds): New.
27535         (-fchkp-instrument-calls): New.
27536         (-fchkp-instrument-marked-only): New.
27537         (-fchkp-use-wrappers): New.
27538         (-static-libmpx): New.
27539         (-static-libmpxwrappers): New.
27540
27541 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27542
27543         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27544         (CHKP_SPEC): Add wrappers library.
27545         * c-family/c.opt (static-libmpxwrappers): New.
27546
27547 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27548
27549         * config/i386/linux-common.h (LIBMPX_LIBS): New.
27550         (LIBMPX_SPEC): New.
27551         (CHKP_SPEC): New.
27552         * gcc.c (CHKP_SPEC): New.
27553         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27554         * c-family/c.opt (static-libmpx): New.
27555
27556 2015-03-10  Richard Biener  <rguenther@suse.de>
27557
27558         PR middle-end/44563
27559         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27560         for compare_type.
27561         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27562         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27563         (cgraph_add_edge_to_call_site_hash): Likewise.
27564         (cgraph_node::get_edge): Likewise.
27565         (cgraph_edge::set_call_stmt): Likewise.
27566         (cgraph_edge::remove_caller): Likewise.
27567
27568 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
27569
27570         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27571         (callee_saved_gpr_regs_size): ... this.
27572         (callee_saved_regs_first_regno): Rename to ...
27573         (callee_saved_first_gpr_regno): ... this.
27574         (callee_saved_regs_last_regno) Rename to ...
27575         (callee_saved_last_gpr_regno): ... this.
27576         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27577         variables.
27578         (nds32_initial_elimination_offset): Likewise.
27579         (nds32_expand_prologue): Likewise.
27580         (nds32_expand_epilogue): Likewise.
27581         (nds32_expand_prologue_v3push): Likewise.
27582         (nds32_expand_epilogue_v3pop): Likewise.
27583         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27584         Adjust renamed variables.
27585         (nds32_output_stack_pop): Likewise.
27586
27587 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27588
27589         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27590         code in comment.
27591
27592 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27593
27594         PR rtl-optimization/65321
27595         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27596         than shift mode.
27597         * var-tracking.c (use_narrower_mode): Likewise.
27598
27599 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27600
27601         PR tree-optimization/65355
27602         * varasm.c (notice_global_symbol): Do not produce RTL.
27603         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27604         anchor.
27605         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27606         check for section anchors.
27607
27608 2015-03-10  Alan Modra  <amodra@gmail.com>
27609
27610         PR target/65286
27611         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27612         to be single-arch by default.  Set cpu_is_64bit for powerpc64
27613         given --with-cpu=native.
27614         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27615         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27616         and powerpc64le.
27617         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27618         rs6000_isa_flags rather than TARGET_64BIT.
27619
27620 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
27621             Kaz Kojima  <kkojima@gcc.gnu.org>
27622
27623         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27624
27625 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
27626
27627         PR lto/65361
27628         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27629         on a TREE_BINFO, instead use BINFO_TYPE.
27630
27631 2015-03-09  Richard Biener  <rguenther@suse.de>
27632
27633         PR middle-end/65270
27634         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27635         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27636         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
27637         of that.  When comparing dereferences compare alignment.
27638         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27639
27640 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27641
27642         * ipa-inline-analysis.c (check_callers): Check
27643         node->can_remove_if_no_direct_calls_and_refs_p.
27644         (growth_likely_positive): Reorganize to call
27645         can_remove_if_no_direct_calls_p later.
27646         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27647         will_be_removed_from_program_if_no_direct_calls_p): Add
27648         will_inline parameter.
27649         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27650         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27651         Handle inliner case correctly.
27652
27653 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27654
27655         PR tree-optimization/63743
27656         * cfgexpand.c (reorder_operands): Also reorder if only second operand
27657         had its definition forwarded by TER.
27658
27659 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27660
27661         PR lto/65316
27662         * ipa-utils.h (types_odr_comparable): Add strict argument.
27663         * ipa-devirt.c: Fix whitespace;
27664         (odr_hasher): Remove.
27665         (odr_name_hasher, odr_vtable_hasher): New hashers.
27666         (can_be_name_hashed_p): New predicate.
27667         (hash_type_name): remove.
27668         (hash_odr_name): New.
27669         (odr_name_hasher::hash): new.
27670         (can_be_vtable_hashed_p): New.
27671         (hash_odr_vtable): New.
27672         (odr_vtable_hasher::hash): New.
27673         (types_same_for_odr): Add strict parameter.
27674         (types_odr_comparable): Likewise.
27675         (odr_name_hasher::equal): New.
27676         (odr_vtable_hasher::equal): New.
27677         (odr_name_hasher::remove): New.
27678         (odr_hash_type): Change to hash_table<odr_name_hasher>.
27679         (odr_vtable_hash_type): New.
27680         (odr_vtable_hash): New.
27681         (odr_subtypes_equivalent_p): Do strict comparsion.
27682         (add_type_duplicate): Merge type names; cleanup; avoid type
27683         duplicates.
27684         (register_odr_type): Initialize vtable hash.
27685         (build_type_inheritance_graph): Likewise
27686         (get_odr_type): Reorg to use two hashes.
27687         (dump_possible_polymorphic_call_targets): Move sanity check after debug
27688         output.
27689         (ipa_devirt): Dump type_inheritance_graph.
27690         (types_same_for_odr): Add strict mode.
27691
27692 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27693
27694         PR ipa/65334
27695         * cgraph.h (symtab_node): Add definition_alignment,
27696         can_increase_alignment_p and increase_alignment.
27697         * symtab.c (symtab_node::can_increase_alignment_p,
27698         increase_alignment_1, symtab_node::increase_alignment,
27699         symtab_node::definition_alignment): New.
27700         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27701         can_increase_alignment_p.
27702         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27703         * tree-vect-stmts.c (ensure_base_align): Likewise.
27704         * varasm.c (function_section_1): Use definition_alignment.
27705         (assemble_start_function): Likewise.
27706         (emit_local): likewise.
27707         (build_constant_desc): Likewsie.
27708         (output_constant_def_contents): Likewise.
27709         (place_block_symbol): Likewise.
27710         (output_object_block): Likewise.
27711
27712 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27713
27714         PR ipa/65316
27715         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27716         when outputting debug.
27717
27718 2015-03-07  Marek Polacek  <polacek@redhat.com>
27719             Martin Uecker  <uecker@eecs.berkeley.edu>
27720
27721         PR sanitizer/65280
27722         * doc/invoke.texi: Update description of -fsanitize=bounds.
27723
27724 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
27725
27726         * tree-ssa-phiopt.c (neg_replacement): Remove.
27727         (tree_ssa_phiopt_worker): Remove negate optimization.
27728
27729 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27730
27731         PR ipa/65302
27732         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27733
27734 2015-03-06  Richard Biener  <rguenther@suse.de>
27735
27736         PR middle-end/64928
27737         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27738         and liveout_obstack members.
27739         (calculate_live_on_exit): Remove.
27740         (calculate_live_ranges): Change declaration.
27741         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27742         (new_tree_live_info): Adjust.
27743         (calculate_live_ranges): Delete livein when not wanted.
27744         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27745         Deal with partly deleted live info.
27746         (loe_visit_block): Remove temporary bitmap by using
27747         bitmap_ior_and_compl_into.
27748         (live_worklist): Adjust accordingly.
27749         (calculate_live_on_exit): Make static.
27750         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27751         we do not need livein.
27752
27753 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
27754
27755         * real.c (real_from_string): Fix typo in assertion.
27756
27757 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
27758
27759         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27760         the patch.
27761
27762 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27763
27764         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27765
27766 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
27767
27768         PR target/64342
27769         * lra-assigns.c (find_hard_regno_for): Rename to
27770         find_hard_regno_for_1.  Add a new parameter.
27771         (find_hard_regno_for): New function using find_hard_regno_for_1.
27772
27773 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27774
27775         PR rtl-optimization/65067
27776         * expmed.c (store_bit_field, extract_bit_field): Reworked the
27777         strict volatile bitfield handling.
27778
27779 2015-03-05  Martin Liska  <mliska@suse.cz>
27780
27781         PR ipa/65318
27782         * ipa-icf.c (sem_variable::equals): Compare variables types.
27783
27784 2015-03-05  Richard Henderson  <rth@redhat.com>
27785
27786         PR target/65121
27787         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27788         correctly check weak symbol binding.
27789
27790 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
27791
27792         PR middle-end/65315
27793         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27794         needed alignment.
27795
27796 2015-03-05  Martin Liska  <mliska@suse.cz>
27797
27798         * ipa-inline.c (inline_small_functions): Set default value to
27799         prevent warning during bootstrap.
27800         * tree.h: Add pragma guard that ignores false positives during
27801         bootstrap.
27802
27803 2015-03-05  Richard Biener  <rguenther@suse.de>
27804
27805         PR tree-optimization/65310
27806         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27807         Properly preserve alignment of the base of the access.
27808
27809 2015-03-05  Richard Biener  <rguenther@suse.de>
27810
27811         PR ipa/65270
27812         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27813         Compare dependence info.
27814
27815 2015-03-05  Richard Biener  <rguenther@suse.de>
27816
27817         PR middle-end/65233
27818         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27819         tree-into-ssa.h.
27820         (walk_ssa_copies): Revert last chage.  Instead do not walk
27821         SSA names registered for SSA update.
27822
27823 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27824
27825         PR ipa/65270
27826         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27827         vtable references for their containing type.
27828         (sem_function::equals_wpa): Compare TYPE_RESTRICT
27829         and type attributes.
27830
27831 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
27832
27833         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27834         before negating it.
27835         * stor-layout.c (finalize_record_size): Revert latest change.
27836
27837 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
27838
27839         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27840
27841 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27842
27843         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27844         for correct comdat handling.
27845         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27846         Likewise.
27847         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27848         (used_from_object_file_p_worker): Remove.
27849         (cgraph_node::only_called_directly_or_alised): Add
27850         used_from_object_file_p.
27851         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27852         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27853         can_remove_if_no_direct_calls_and_refs_p.
27854
27855 2015-03-04  Nick Clifton  <nickc@redhat.com>
27856
27857         * config/rl78/rl78.h (enum reg_class): Remove real registers from
27858         General register class.
27859         * config/rl78/rl78-real.md: Replace general register constraints
27860         with real+virtual register constraints.
27861
27862 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27863
27864         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27865         from checking for -mhtm option.
27866
27867 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27868
27869         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27870         (struct ipa_sra_check_caller_data): Add has_thunk field.
27871         (ipa_sra_check_caller): Check for thunk.
27872         (ipa_sra_preliminary_function_checks): Give up on function with
27873         thunks.
27874         (ipa_early_sra): Use call_for_symbol_and_aliases.
27875
27876 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
27877
27878         PR target/65249
27879         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27880         called for __stack_chk_guard symbol.
27881
27882 2015-03-03  DJ Delorie  <dj@redhat.com>
27883
27884         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27885         inc/dec.
27886         (*addhi3_real): Likewise.
27887         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27888         pattern to match incrementing memory.
27889         * config/rl78/predicates.md (rl78_1_2_operand): New.
27890         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27891         it's the same and only mem.
27892         (rl78_alloc_physical_registers_op2): If there's effectively only
27893         one MEM, transcode it into HL.
27894         (rl78_far_p): Reject addresses that aren't legitimate.
27895
27896 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27897
27898         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27899         negating it.
27900
27901         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27902
27903 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27904
27905         Implement call0 ABI for xtensa
27906         * config/xtensa/constraints.md ("a" constraint): Include stack
27907         pointer in case of call0 ABI.
27908         ("q" constraint): Make empty in case of call0 ABI.
27909         ("D" constraint): Include stack pointer in case of call0 ABI.
27910         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27911         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27912         prototypes.
27913         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27914         variable.
27915         (xtensa_regno_to_class): Make it a local variable in the
27916         function xtensa_regno_to_class.
27917         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27918         macro, function prototype and implementation.
27919         (reg_nonleaf_alloc_order): Make it a local variable in the
27920         function order_regs_for_local_alloc.
27921         (xtensa_conditional_register_usage): New function.
27922         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27923         (xtensa_valid_move): Allow direct moves to stack pointer
27924         register in call0 ABI.
27925         (xtensa_setup_frame_addresses): Only spill register windows in
27926         windowed ABI.
27927         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27928         call0 ABI respectively.
27929         (xtensa_function_arg_1): Only mark a7 register for copying in
27930         windowed ABI.
27931         (xtensa_call_save_reg): New function.
27932         (compute_frame_size): Add space for callee saved register
27933         storage to the frame size in call0 ABI.
27934         (xtensa_expand_prologue): Generate code to set up stack frame
27935         and save callee-saved registers in call0 ABI.
27936         (xtensa_expand_epilogue): New function.
27937         (xtensa_set_return_address): New function.
27938         (xtensa_return_addr): Calculate return address in call0 ABI.
27939         (xtensa_builtin_saveregs): Only mark a7 register for copying and
27940         emit copying code in windowed ABI.
27941         (order_regs_for_local_alloc): Add preferred register allocation
27942         order for non-leaf function in call0 ABI.
27943         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27944         (xtensa_asm_trampoline_template): Add trampoline generation for
27945         call0 ABI.
27946         (xtensa_trampoline_init): Add trampoline initialization for
27947         call0 ABI.
27948         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27949         functions.
27950         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27951         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27952         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27953         ABI call-used registers.
27954         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27955         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27956         call0 ABI.
27957         (REG_CLASS_CONTENTS): Include all registers into the preferred
27958         reload registers set, adjust the set in the
27959         xtensa_conditional_register_usage.
27960         (xtensa_regno_to_class): Drop variable declaration.
27961         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27962         function.
27963         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27964         respectively.
27965         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27966         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27967         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27968         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27969         location in call0 ABI.
27970         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27971         stack adjustment size when handling exception.
27972         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27973         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27974         definitions.
27975         ("return" pattern): Generate ret.n/ret in call0 ABI.
27976         ("epilogue" pattern): Expand epilogue.
27977         ("nonlocal_goto" pattern): Use default in call0 ABI.
27978         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27979         emit eh_set_a0_* depending on ABI.
27980         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27981         ("eh_set_a0_call0", "blockage"): New patterns.
27982
27983 2015-03-03  Martin Liska  <mliska@suse.cz>
27984
27985         PR ipa/65287
27986         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27987
27988 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27989
27990         PR 65138/target
27991         * config/rs6000/rs6000-tables.opt: Regenerate table.
27992
27993 2015-03-03  Renlin Li  <renlin.li@arm.com>
27994
27995         * doc/md.texi (@item ^): Change ? into ^.
27996
27997 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
27998
27999         * doc/tm.texi: Regenerated.
28000
28001 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
28002
28003         * builtins.c (expand_builtin_return_addr): Add
28004         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
28005         surrounding #ifdef.
28006         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
28007         definition to 1.
28008         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
28009         Likewise.
28010         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
28011         undefined.
28012         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
28013         paragraph.
28014
28015 2015-03-03  Martin Jambor  <mjambor@suse.cz>
28016             Eric Botcazou  <ebotcazou@adacore.com>
28017
28018         * tree-sra.c (ipa_sra_check_caller_data): New type.
28019         (has_caller_p): Removed.
28020         (ipa_sra_check_caller): New function.
28021         (ipa_sra_preliminary_function_checks): Use it.
28022
28023 2015-03-03  Martin Liska  <mliska@suse.cz>
28024
28025         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
28026         instead of if branch.
28027
28028 2015-03-03  Martin Liska  <mliska@suse.cz>
28029
28030         PR ipa/65282
28031         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
28032
28033 2015-03-23  Jeff Law  <law@redhat.com>
28034
28035         PR tree-optimization/65241
28036         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
28037         hash table if INSERT is true.
28038
28039 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
28040
28041         PR target/65296
28042         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
28043
28044 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
28045
28046         PR target/64331
28047         * config/avr/avr.c (context.h, tree-pass.h): Include them.
28048         (avr_pass_data_recompute_notes): New static variable.
28049         (avr_pass_recompute_notes): New class.
28050         (avr_register_passes): New static function.
28051         (avr_option_override): Call it.
28052
28053 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
28054
28055         Fix various problems with specs file generation.
28056
28057         PR target/65296
28058         * config.gcc (extra_gcc_objs) [avr]: Remove.
28059         * config/avr/driver-avr.c: Remove file.
28060         * config/avr/t-avr (driver-avr.o): Remove rule.
28061         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
28062         INCLUDES to build.  Depend on TM_H.
28063         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
28064         build warnings.  Fix non-matching types and non-existing %-codes.
28065         (tm.h): Include.
28066         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
28067         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
28068         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
28069         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
28070         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
28071         (LIBGCC_SPEC): Remove definitions.
28072
28073 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
28074
28075         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28076         to create a register in testing mode.
28077
28078 2015-03-03  Martin Liska  <mliska@suse.cz>
28079             Jan Hubicka  <hubicka@ucw.cz>
28080
28081         PR ipa/65263
28082         * cgraph.c (cgraph_node::has_thunk_p): New function.
28083         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28084         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28085         (sem_function::merge): Assert is changed.
28086
28087 2015-03-03  Martin Liska  <mliska@suse.cz>
28088             Martin Jambor  <mjambor@suse.cz>
28089
28090         PR ipa/65087
28091         * ipa-icf.c (sem_item_optimizer::execute): Change function
28092         return value to boolean.
28093         (sem_item_optimizer::merge_classes): Likewise.
28094         (ipa_icf_driver): Return TODO_remove_functions in case there's
28095         a merge operation processed.
28096         * ipa-icf.h: Change function return value to boolean.
28097
28098 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28099
28100         PR 65138/target
28101         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28102         processor type for 64-bit little endian PowerPC.
28103
28104         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28105         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
28106         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
28107         printing built-in mask so it does not pass NULL pointers.
28108
28109         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28110         -mcpu=powerpc64le.
28111
28112 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
28113
28114         PR target/58158
28115         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28116         !ISA_HAS_FP_CONDMOVE.
28117
28118 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
28119
28120         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28121         reload_completed.
28122
28123 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
28124
28125         * doc/invoke.texi (Options for Code Generation Conventions):
28126         Fix URL of DSO paper.
28127
28128 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28129
28130         PR ipa/65130
28131         * ipa-inline.c (check_callers): Looks for recursion.
28132         (inline_to_all_callers): Give up on uninlinable or recursive edges.
28133         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28134         summary of inline clones.
28135         (do_estimate_growth_1): Fix recursion check.
28136
28137 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28138
28139         PR ipa/64988
28140         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28141         comdat groups.
28142
28143 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28144             Aldy Hernandez  <aldyh@redhat.com>
28145
28146         PR lto/65276
28147         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28148         when checking TYPE_BINFO.
28149
28150 2015-03-02  Richard Biener  <rguenther@suse.de>
28151
28152         PR ipa/65270
28153         * ipa-icf-gimple.c: Include builtins.h.
28154         (func_checker::compare_memory_operand): Compare base alignment.
28155
28156 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28157
28158         PR target/65184
28159         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28160         are never passed by reference.
28161
28162 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28163
28164         PR target/65183
28165         * tree-chkp.c (chkp_check_lower): Don't check against
28166         zero bounds for already instrumented functions.
28167         (chkp_check_upper): Likewise.
28168         (chkp_fini): Clean pass local data to avoid wrong reusage.
28169
28170 2015-02-28  Martin Liska  <mliska@suse.cz>
28171             Jan Hubicka  <hubicka@ucw.cz>
28172
28173         * ipa-icf.c (sem_variable::equals): Improve debug output;
28174         get variable constructor.
28175         (sem_variable::parse): Do not filter out too early; give up on
28176         volatile and register vars.
28177         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28178         variables.
28179         * ipa-icf.h (sem_variable::init): Do not set ctor.
28180         (sem_variable::ctor): Remove.
28181
28182 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
28183
28184         PR middle-end/65233
28185         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28186
28187 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28188
28189         * ipa-icf.c: Include stor-layout.h
28190         (sem_function::compare_cgraph_references): Rename to ...
28191         (sem_item::compare_cgraph_references): ... this one.
28192         (sem_variable::equals_wpa): New function
28193         (sem_variable::equals): Do not check stuff already verified by
28194         equals_wpa.
28195         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28196         * ipa-icf.h (sem_item): Add compare_cgraph_references.
28197         (sem_function): Remove compare_cgraph_references.
28198         (sem_variable): Turns equals_wpa into non-inline.
28199
28200 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28201
28202         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28203         (sem_item::add_expr): New function.
28204         (sem_function::hash_stmt): Handle operands of most statements.
28205         (sem_variable::get_hash): Hash the actual constructor.
28206         * ipa-icf.h (sem_item): Add add_expr.
28207         (sem_function): Update prototype of hash_stmt
28208
28209 2015-02-28  Martin Liska  <mliska@suse.cz>
28210             Jan Hubicka  <hubicka@ucw.cz>
28211
28212         PR ipa/65245
28213         * ipa-icf-gimple.c (func_checker::compare_function_decl):
28214         Remove.
28215         (func_checker::compare_variable_decl): Skip symtab vars.
28216         (func_checker::compare_cst_or_decl): Update.
28217         * ipa-icf.c (sem_function::parse): Do not consider aliases.
28218         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28219         use correct symtab predicates.
28220         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28221         (sem_variable::parse):  Update comment.
28222         (sem_item_optimizer::build_graph): Consider ultimate aliases
28223         for references.
28224
28225 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28226
28227         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28228         of OBJ_TYPE_REF.
28229
28230 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28231
28232         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28233         (sem_variable::merge) Likewise.
28234
28235 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28236
28237         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28238         target; also match flag_ipa_devirt.
28239
28240 2015-03-01  Martin Liska  <mliska@suse.cz>
28241             Jan Hubicka  <hubicka@ucw.cz>
28242
28243         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28244         Validate variable alignment.
28245         * ipa-icf.c (sem_function::equals_private): Be more precise
28246         about non-common function attributes.
28247         (sem_variable::equals): Likewise.
28248
28249 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28250
28251         PR ipa/65237
28252         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28253         across COMDAT group boundary.
28254
28255 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28256
28257         PR ipa/65232
28258         * ipa-icf.c (clear_decl_rtl): New function.
28259         (sem_function::merge): Clear RTL before forming alias.
28260         (sem_variable::merge): Clear RTL before forming alias.
28261
28262 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28263
28264         PR ipa/65236
28265         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28266
28267 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
28268
28269         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28270         to neon_to_gp<q>.
28271
28272 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28273
28274         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28275         a typo in the description.
28276
28277 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28278
28279         PR target/64317
28280         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28281         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28282         * lra-constraints.c: Include "params.h".
28283         (EBB_PROBABILITY_CUTOFF): Use
28284         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28285         (lra_inheritance): Use '<' instead of '<=' for
28286         EBB_PROBABILITY_CUTOFF.
28287         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28288         Document change.
28289
28290 2015-02-27  Martin Liska  <mliska@suse.cz>
28291
28292         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28293         vector length condition.
28294
28295 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
28296
28297         * doc/extend.texi (x86 transactional memory intrinsics):
28298         Reorganize discussion of _xbegin.  Clarify that the return
28299         value is a bit mask.  Expand example and move to end of section.
28300
28301 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28302             Aldy Hernandez  <aldyh@redhat.com>
28303
28304         PR rtl-optimization/65220
28305         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28306
28307 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28308
28309         PR target/65032
28310         * lra-remat.c (update_scratch_ops): New.
28311         (do_remat): Call it.
28312         * lra.c (lra_register_new_scratch_op): New. Take code from ...
28313         (remove_scratches): ... here.
28314         * lra-int.h (lra_register_new_scratch_op): New prototype.
28315
28316 2015-02-27  Marek Polacek  <polacek@redhat.com>
28317
28318         PR c/65040
28319         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28320         -Wformat-signedness anymore.
28321
28322 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28323
28324         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
28325         function.
28326         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
28327
28328 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28329
28330         * config/s390/s390.c (enum s390_builtin):
28331         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
28332         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
28333         (s390_init_builtins): Generate new builtin functions.
28334         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
28335         (s390_sfpc, s390_efpc): New pattern definitions.
28336
28337 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28338
28339         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
28340         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
28341         (s390_builtin_decls): New array.
28342         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
28343         (s390_builtin_decl): New function.
28344         (TARGET_BUILTIN_DECL): Define macro.
28345
28346 2015-02-27  Richard Biener  <rguenther@suse.de>
28347
28348         PR middle-end/63175
28349         * builtins.c (get_object_alignment_2): Make sure to re-apply
28350         the ANDed mask after recursing to its operand gets us a new
28351         misalignment bit position.
28352
28353 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
28354             Martin Liska  <mliska@suse.cz>
28355
28356         PR bootstrap/65150
28357         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28358         Use address_matters_p.
28359         (redirect_all_callers, set_addressable): New functions.
28360         (sem_function::merge): Reorganize and fix merging issues.
28361         (sem_variable::merge): Likewise.
28362         (sem_variable::compare_sections): Remove.
28363         * common.opt (fmerge-all-constants, fmerge-constants): Remove
28364         Optimization flag.
28365         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28366         redirect them.
28367         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28368         decl is used.
28369         (address_matters_1): New function.
28370         (symtab_node::address_matters_p): New function.
28371         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28372         check for merged flag.
28373         * cgraph.h (address_matters_p): Declare.
28374         (symtab_node::address_taken_from_non_vtable_p): Remove.
28375         (symtab_node::address_can_be_compared_p): New method.
28376         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28377         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28378         Remove.
28379         (comdat_can_be_unshared_p_1) Use address_matters_p.
28380         (update_vtable_references): Fix formating.
28381         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28382         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28383         * cgraphclones.c: Preserve merged and icf_merged flags.
28384
28385 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
28386
28387         * doc/extend.texi (Function Attributes): Fix spelling and typos.
28388         (Label Attributes): Likewise.
28389         (Cilk Plus Builtins): Likewise.
28390         (ARC SIMD Built-in Functions): Likewise.
28391         (ARM C Language Extensions (ACLE)): Likewise.
28392         (PowerPC Built-in Functions): Likewise.
28393         (PowerPC Hardware Transactional Memory Built-in Functions):
28394         Likewise.
28395
28396 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28397
28398         PR tree-optimization/65216
28399         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28400         new stmt and new SSA_NAME for lhs whenever the arguments have
28401         changed and weren't just swapped.  Fix comment typo.
28402
28403         PR tree-optimization/65215
28404         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28405         for PDP endian targets.
28406         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28407         Fix up formatting issues.
28408         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
28409         size is smaller than the original, adjust MEM_REF offset by the
28410         difference of sizes.  Use is_gimple_mem_ref_addr instead of
28411         is_gimple_min_invariant test to avoid adding address temporaries.
28412
28413 2015-02-26  Martin Liska  <mliska@suse.cz>
28414             Jan Hubicka  <hubicka@ucw.cz>
28415
28416         PR ipa/64693
28417         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28418         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28419         (sem_item_optimizer::process_cong_reduction): Include division by
28420         sensitive references.
28421         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28422         * ipa-ref.c (ipa_ref::address_matters_p): New function.
28423         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28424
28425 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
28426
28427         PR target/65192
28428         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28429         Remove.
28430         * config/avr/avr.c: Same.
28431         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28432         Refuse any constant address not in 0..0xbf.
28433         * config/avr/avr.md (*mov<mode>, *movsf): Remove
28434         tiny_valid_direct_memory_access_range from insn conditions.
28435         (mov<mode>): Don't special-case expansion of avrtiny addresses.
28436
28437 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
28438
28439         PR target/61142
28440         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28441         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28442         * config/sh/predicates.md (const_logical_operand): New predicate.
28443         * config/sh/sh.md: Add new peephole2 patterns.
28444
28445 2015-02-26  Marek Polacek  <polacek@redhat.com>
28446
28447         PR ipa/65008
28448         * ipa-inline.c (early_inliner): Recompute inline parameters.
28449
28450 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28451
28452         PR target/65171
28453         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28454         instructions with TImode operands are included in the analysis.
28455
28456 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28457
28458         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28459         of an EDGE_FSM_THREAD.
28460
28461 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28462
28463         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28464
28465 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
28466
28467         PR debug/46102
28468         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28469
28470 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28471
28472         PR tree-optimization/65048
28473         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28474         (thread_through_all_blocks): Call valid_jump_thread_path.
28475         Remove invalid FSM jump-thread paths.
28476
28477 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28478
28479         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28480         (ipa_write_optimization_summaries): Likewise.
28481         * tree-streamer.h: Include data-streamer.h.
28482         (streamer_mode_table): Declare extern variable.
28483         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28484         * lto-streamer-out.c (lto_output_init_mode_table,
28485         lto_write_mode_table): New functions.
28486         (produce_asm_for_decls): Call lto_write_mode_table when streaming
28487         offloading LTO.
28488         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28489         (lto_create_simple_input_block): Add mode_table argument to the
28490         lto_input_block constructors.
28491         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28492         Likewise.
28493         * data-streamer-in.c (string_for_index): Likewise.
28494         * ipa-inline-analysis.c (inline_read_section): Likewise.
28495         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28496         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28497         * lto-streamer-in.c (lto_read_body_or_constructor,
28498         lto_input_toplevel_asms): Likewise.
28499         (lto_input_mode_table): New function.
28500         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28501         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28502         Use bp_pack_machine_mode.
28503         * real.h (struct real_format): Add name field.
28504         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28505         (class lto_input_block): Add mode_table member.
28506         (lto_input_block::lto_input_block): Add mode_table_ argument,
28507         initialize mode_table.
28508         (struct lto_file_decl_data): Add mode_table field.
28509         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28510         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28511         unpack_ts_decl_common_value_fields,
28512         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28513         * tree-streamer.c (streamer_mode_table): New variable.
28514         * real.c (ieee_single_format, mips_single_format,
28515         motorola_single_format, spu_single_format, ieee_double_format,
28516         mips_double_format, motorola_double_format,
28517         ieee_extended_motorola_format, ieee_extended_intel_96_format,
28518         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28519         ibm_extended_format, mips_extended_format, ieee_quad_format,
28520         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28521         decimal_single_format, decimal_double_format, decimal_quad_format,
28522         ieee_half_format, arm_half_format, real_internal_format): Add name
28523         field.
28524         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28525
28526 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
28527
28528         PR target/65161
28529         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28530         reordering for selective scheduling.
28531
28532 2015-02-26  Terry Guo  <terry.guo@arm.com>
28533
28534         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28535         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28536         (arm_arch_no_volatile_ce): Declare new global variable.
28537         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28538         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28539         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28540         (TARGET_NO_VOLATILE_CE): New macro.
28541         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28542         volatile memory access in IT block
28543
28544 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28545
28546         PR tree-optimization/61917
28547         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28548         that reduc_def_stmt is null.
28549
28550 2015-02-25  Martin Liska  <mliska@suse.cz>
28551
28552         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28553         hard register variables.
28554
28555 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28556
28557         PR target/64212
28558         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28559         (symtab::noninterposable_alias): Likewise.
28560
28561 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28562
28563         PR target/65167
28564         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28565         bounds registers.
28566         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28567
28568 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
28569
28570         PR target/64997
28571         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28572         as split condition; force split via '#' in output pattern.
28573
28574 2015-02-25  Richard Biener  <rguenther@suse.de>
28575             Kai Tietz  <ktietz@redhat.com>
28576
28577         PR tree-optimization/61917
28578         * tree-vect-loop.c (vectorizable_reduction): Allow
28579         vect_internal_def without reduction to exit graceful.
28580
28581 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28582
28583         PR target/65196
28584         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28585         only with NONDEBUG_INSN_P.
28586
28587 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28588
28589         Use variadic macros with avr-log.c.
28590
28591         * config/avr/avr-protos.h (avr_vdump): New prototype.
28592         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28593         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28594         * config/avr/avr-log.c: Adjust comments.
28595         (avr_vdump): New function.
28596         (avr_vadump): Pass caller as 2nd argument instead of format string.
28597         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28598         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28599
28600 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
28601
28602         PR lto/64374
28603         * target.def (target_option_stream_in): New target hook.
28604         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28605         targetm.target_option.post_stream_in if non-NULL.
28606         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28607         * doc/tm.texi: Updated.
28608         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28609         function.
28610         (TARGET_OPTION_POST_STREAM_IN): Redefine.
28611
28612 2015-02-24  Jeff Law  <law@redhat.com>
28613
28614         PR target/65117
28615         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28616         of operand 0 and operand 2.
28617         (zero_cost_loop_end, loop_end): Similarly.
28618
28619 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
28620
28621         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28622         CXX_MEM_STAT_INFO.
28623
28624 2015-02-24  DJ Delorie  <dj@redhat.com>
28625
28626         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28627         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28628         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28629         instead of hardcoding SImode.
28630
28631 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
28632
28633         * omp-low.c (create_omp_child_function): Tag entrypoint
28634         functions with a special attribute.
28635
28636 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28637
28638         PR target/65058
28639         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28640
28641 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
28642
28643         PR rtl-optimization/65123
28644         * lra-remat.c (operand_to_remat): Check hard regs in insn
28645         definition too.
28646
28647 2015-02-24  Nick Clifton  <nickc@redhat.com>
28648
28649         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28650         to the assembler.
28651
28652 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
28653
28654         PR libgomp/64625
28655         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28656         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28657         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28658         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28659         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28660         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28661         (BUILT_IN_GOACC_PARALLEL): Specify as
28662         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28663         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28664         * builtin-types.def
28665         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28666         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28667         Remove function types.
28668         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28669         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28670         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28671         New function types.
28672
28673 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
28674
28675         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28676
28677 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
28678
28679         PR tree-optimization/65170
28680         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28681         if val[1] < 0, clear also val[2] and return 3.
28682
28683 2015-02-24  Alan Modra  <amodra@gmail.com>
28684
28685         PR target/65172
28686         * config/rs6000/rs6000.c (get_memref_parts): Only return true
28687         when *base is a reg.  Handle nested plus addresses.  Simplify
28688         pre_modify test.
28689
28690 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
28691
28692         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28693         use natural alignment when optimizing for size.
28694
28695 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
28696
28697         PR target/65153
28698         * config/sh/sh.md (movsicc_true+3): Remove peephole.
28699         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28700         * config/sh/sh.c (replace_n_hard_rtx): Remove.
28701
28702 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
28703
28704         PR fortran/63427
28705         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28706         too big for a wide_int.  Implement missing wrapping operation.
28707
28708 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
28709
28710         PR target/65163
28711         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28712         instead of const_int 4294901760.
28713
28714 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
28715
28716         * config/avr/t-avr: Fix typo in comment.
28717
28718 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
28719
28720         * doc/rtl.texi (fma): Clarify documentation.
28721
28722 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
28723
28724         PR debug/58123
28725         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28726         over input_location.
28727
28728 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28729
28730         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28731         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28732         restrict alignments to absolute_biggest_alignment.
28733         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28734         Define.
28735         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28736         * doc/tm.texi: Regenerate.
28737         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28738
28739 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
28740
28741         PR target/64172
28742         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28743
28744 2015-02-20  Richard Biener  <rguenther@suse.de>
28745
28746         PR tree-optimization/65136
28747         * tree-ssa-propagate.c: Include cfgloop.h.
28748         (replace_phi_args_in): Avoid replacing loop latch edge PHI
28749         arguments with constants.
28750
28751 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
28752             Martin Liska  <mliska@suse.cz>
28753
28754         PR target/63892
28755         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28756         don't try to create_thunk if stdarg_p.  If
28757         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28758         redirect_callers if possible.
28759         (sem_item_optimizer::execute): Call unregister_hooks here...
28760         (ipa_icf_driver): ... instead of here.
28761
28762 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28763
28764         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28765         Mark operand 0 as earlyclobber in 2nd alternative.
28766         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28767         Write negated shift amount into QI lowpart operand 0 and use it
28768         in the shift step.
28769         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28770
28771 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28772
28773         * cgraph.h (clone_function_name_1): Declare.
28774         * cgraphclones.c (clone_function_name_1): New function.
28775         (clone_function_name): Use it.
28776         * lto-partition.c: Include "stringpool.h".
28777         (must_not_rename, maybe_rewrite_identifier)
28778         (validize_symbol_for_target): New static functions.
28779         (privatize_symbol_name): Use must_not_rename.
28780         (promote_symbol): Call validize_symbol_for_target.
28781         (lto_promote_cross_file_statics): Likewise.
28782         (lto_promote_statics_nonwpa): Likewise.
28783
28784 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
28785
28786         PR target/64452
28787         * config/avr/avr.md (pushhi_insn): New insn.
28788         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28789
28790 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28791             Jakub Jelinek  <jakub@redhat.com>
28792
28793         * tree-streamer.c (preload_common_nodes): Don't preload
28794         TI_VA_LIST* for offloading.
28795         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28796         in_lto_p.
28797
28798 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
28799
28800         * config/pa/pa.c (pa_emit_move_sequence): Always force
28801         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
28802         note on insn.
28803
28804         * config/pa/pa.c (pa_reloc_rw_mask): New function.
28805         (TARGET_ASM_RELOC_RW_MASK): Define.
28806         (pa_cannot_force_const_mem): Revert previous change.
28807
28808 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
28809             Jan Hubicka  <hubicka@ucw.cz>
28810
28811         PR ipa/65028
28812         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28813         across jump functions.
28814
28815 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
28816
28817         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28818
28819 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
28820
28821         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28822
28823 2015-02-19  Richard Henderson  <rth@redhat.com>
28824
28825         PR middle-end/65074
28826         * varasm.c (default_binds_local_p_2): Don't test node->definition;
28827         test DECL_EXTERNAL independent of symtab_node.
28828
28829 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
28830
28831         PR lto/65012
28832         * varpool.c (varpool_node::get_constructor): Return early
28833         if this->lto_file_data is NULL.
28834
28835 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28836
28837         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28838         (rank_for_schedule_debug): Update.
28839         (ready_sort): Make static.  Move sorting logic to ...
28840         (ready_sort_debug, ready_sort_real): New static functions.
28841         (schedule_block): Sort both debug insns and real insns in preparation
28842         for ready list trimming.  Improve debug output.
28843         * sched-int.h (ready_sort): Remove global declaration.
28844
28845 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
28846
28847         * ipa-icf.c (sem_function::equals_private): Adjust.
28848         (sem_function::bb_dict_test): Take a vec<int> * instead of
28849         auto_vec<int>.
28850         * ipa-icf.h (bb_dict_test): Likewise.
28851
28852 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28853
28854         PR gcov-profile/64634
28855         * tree-eh.c (frob_into_branch_around): Fix up typos
28856         in function comment.
28857         (lower_catch): Put eh_seq resulting from EH lowering of
28858         the cleanup sequence after the cleanup rather than before it.
28859
28860 2015-02-18  Tom de Vries  <tom@codesourcery.com>
28861
28862         * common.opt (fstdarg-opt): New option.
28863         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28864         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28865         (@item -fstdarg-opt): New item.
28866
28867 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28868
28869         PR target/65064
28870         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28871         for common symbols.
28872
28873 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28874
28875         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28876         insn-modes.h.
28877         (ALL_HOST_OBJS): Add mkoffload.o.
28878         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28879
28880 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
28881
28882         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28883         (compare_virtual_tables): Be smarter about skipping typeinfos;
28884         do sane output on virtual table table mismatch.
28885         (warn_odr): Be ready for forward declarations of enums;
28886         output sane info on base mismatch and virtual table mismatch.
28887         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28888         when only one type is polymorphic.
28889         (get_odr_type): Fix hashtable corruption.
28890         (dump_odr_type): Dump mangled names.
28891
28892 2015-02-18  Richard Biener  <rguenther@suse.de>
28893
28894         PR tree-optimization/65063
28895         * tree-predcom.c (determine_unroll_factor): Return 1 if we
28896         have replaced looparound PHIs.
28897
28898 2015-02-18  Martin Liska  <mliska@suse.cz>
28899
28900         * lto-streamer.c (lto_streamer_init): Encapsulate
28901         streamer_check_handled_ts_structures with checking macro.
28902
28903 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28904
28905         PR ipa/65087
28906         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28907         section if !implicit_section.
28908         (cgraph_node::create_version_clone_with_body): Likewise.
28909         * trans-mem.c (ipa_tm_create_version): Likewise.
28910
28911 2015-02-18  Richard Biener  <rguenther@suse.de>
28912
28913         PR tree-optimization/62217
28914         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28915         into BIVs.
28916
28917 2015-02-18  Marek Polacek  <polacek@redhat.com>
28918
28919         PR sanitizer/65081
28920         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28921         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28922         is in range [-16K, -1].  Don't issue run-time error if
28923         (ptr > ptr + offset).
28924
28925 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
28926
28927         * doc/install.texi (nvptx-*-none): New section.
28928         * doc/invoke.texi (Nvidia PTX Options): Likewise.
28929         * config/nvptx/nvptx.opt: Update.
28930
28931         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28932         (access_check): New functions, copied from
28933         config/i386/intelmic-mkoffload.c.
28934         (main): For non-installed testing, look in all COMPILER_PATHs for
28935         GCC_INSTALL_NAME.
28936
28937         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28938
28939 2015-02-18  Andrew Pinski  <apinski@cavium.com>
28940             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28941
28942         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28943         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28944
28945 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28946
28947         * ipa-visibility.c (function_and_variable_visibility): Only
28948         check locality if node is not already local.
28949         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28950         call_for_symbol_and_aliases instead of
28951         call_for_symbol_thunks_and_aliases.
28952         (ipa_inline): Likewise.
28953         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28954         first walk aliases.
28955         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28956         call_for_symbol_and_aliases.
28957         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28958         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28959         (ipa_propagate_frequency): Update.
28960         (ipa_profile): Add opt_for_fn gueards.
28961
28962 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28963
28964         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28965         * doc/invoke.texi (SH options): Document it.
28966         * config/sh/sh.c (sh_insn_length_adjustment): Check
28967         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28968
28969 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28970
28971         * common.opt (fipa-cp-alignment): New.
28972         * ipa-cp.c (ipcp_store_alignment_results): Check
28973         flag_ipa_cp_alignment.
28974         * opts.c (default_options_table): Enable -fipa-cp-alignment for
28975         -O2.
28976         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28977         * doc/invoke.texi: Document -fipa-cp-alignment.
28978
28979 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28980
28981         PR target/64793
28982         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28983         to nil.  Adjust comments.
28984
28985 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28986
28987         * ipa-visibility.c (function_and_variable_visibility): Only
28988         check locality if node is not already local.
28989         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28990         call_for_symbol_and_aliases instead of
28991         call_for_symbol_thunks_and_aliases.
28992         (ipa_inline): Likewise.
28993         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28994         first walk aliases.
28995         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28996         call_for_symbol_and_aliases.
28997         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28998         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28999         (ipa_propagate_frequency): Update.
29000         (ipa_profile): Add opt_for_fn guards.
29001
29002 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
29003
29004         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
29005         skipping of "strange" tokens.
29006
29007 2015-02-17  Jeff Law  <law@redhat.com>
29008
29009         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
29010         obsolete comment.
29011
29012 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
29013
29014         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
29015         as forcing a HARD_DEP between instructions, thereby
29016         disallowing rewriting to break dependencies.
29017
29018 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
29019
29020         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
29021         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
29022         variables in boundary that have no inlitalizer encoded and are
29023         not aliases.
29024         * varasm.c (default_binds_local_p_2): External definitions do not
29025         count as definitions here.
29026
29027 2015-02-16  Jeff Law  <law@redhat.com>
29028
29029         PR tree-optimization/64823
29030         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
29031         statements.
29032         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29033         threading through blocks with PHIs, but no statements.
29034         (thread_through_normal_block): Distinguish between blocks where
29035         we did not process all the statements and blocks with no statements.
29036
29037 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
29038             James Greenhalgh  <james.greenhalgh@arm.com>
29039
29040         PR ipa/64963
29041         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
29042         section if not linkonce.  Fix up formatting.
29043         (cgraph_node::create_version_clone_with_body): Copy section.
29044         * trans-mem.c (ipa_tm_create_version): Likewise.
29045
29046 2015-02-16  Richard Biener  <rguenther@suse.de>
29047
29048         PR tree-optimization/65077
29049         * tree-ssa-structalias.c (get_constraint_for_1): Handle
29050         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
29051         (find_func_aliases): Allow float values to carry pointers again.
29052
29053 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
29054
29055         * doc/install.texi (Specific): Reorder targets list to put
29056         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
29057         from the top menu.
29058
29059 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
29060             David Edelsohn  <dje.gcc@gmail.com>
29061
29062         PR target/65058
29063         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
29064         mapping class to external variable or function reference.
29065         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
29066         mapping class.
29067
29068 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
29069
29070         PR target/53348
29071         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29072         ASM_WEAKEN_DECL if defined.
29073
29074 2015-02-16  Richard Biener  <rguenther@suse.de>
29075
29076         PR lto/65015
29077         * varasm.c (default_file_start): For LTO produced units
29078         emit <artificial> as file directive.
29079
29080 2015-02-16  Richard Biener  <rguenther@suse.de>
29081
29082         PR tree-optimization/63593
29083         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29084         stmts and releasing SSA names until...
29085         (execute_pred_commoning): ... after processing all chains.
29086
29087 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
29088
29089         PR ipa/65059
29090         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29091         external functions.
29092
29093 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
29094
29095         * doc/bugreport.texi: Adjust section titles throughout the file
29096         to use "Title Case".
29097         * doc/extend.texi: Likewise.
29098         * doc/gcov.texi: Likewise.
29099         * doc/implement-c.texi: Likewise.
29100         * doc/implement-cxx.texi: Likewise.
29101         * doc/invoke.texi: Likewise.
29102         * doc/objc.texi: Likewise.
29103         * doc/standards.texi: Likewise.
29104         * doc/trouble.texi: Likewise.
29105
29106 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
29107
29108         * cgraph.h (symtab_node::has_aliases_p): Simplify.
29109         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29110         * tree.c (lookup_binfo_at_offset): Make static.
29111         (get_binfo_at_offset): Do not shadow offset; add explanatory
29112         comment.
29113
29114 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
29115
29116         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29117         for all floading point loads and stores except those using a register
29118         index address.
29119         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29120         to a register.
29121
29122 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
29123
29124         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29125         (do_estimate_growth_1): Record if any uninlinable edge was seen.
29126         (estimate_growth): Handle uninlinable edges correctly.
29127         (check_callers): New.
29128         (growth_likely_positive): Handle aliases correctly.
29129
29130 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
29131
29132         * ipa-chkp.c: Use iterate_direct_aliases.
29133         * symtab.c (resolution_used_from_other_file_p): Move inline.
29134         (symtab_node::create_reference): Fix formating.
29135         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29136         (symtab_node::iterate_reference): Move inline.
29137         (symtab_node::iterate_referring): Move inline.
29138         (symtab_node::iterate_direct_aliases): Move inline.
29139         (symtab_node::used_from_object_file_p_worker): Inline into ...
29140         (symtab_node::used_from_object_file_p): ... this one; move inline.
29141         (symtab_node::call_for_symbol_and_aliases): Move inline;
29142         use iterate_direct_aliases.
29143         (symtab_node::call_for_symbol_and_aliases_1): New method.
29144         (cgraph_node::call_for_symbol_and_aliases): Move inline;
29145         use iterate_direct_aliases.
29146         (cgraph_node::call_for_symbol_and_aliases_1): New method.
29147         (varpool_node::call_for_node_and_aliases): Rename to ...
29148         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29149         use iterate_direct_aliases.
29150         (varpool_node::call_for_symbol_and_aliases_1): New method.
29151         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29152         (ipa_discover_readonly_nonaddressable_var): Update.
29153         * ipa-devirt.c: Fix formating.
29154         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29155         Move inline.
29156         (cgraph_node::call_for_symbol_and_aliases): Move inline.
29157         (cgraph_node::call_for_symbol_and_aliases_1): New function..
29158         * cgraph.h (used_from_object_file_p_worker): Remove.
29159         (resolution_used_from_other_file_p): Move inline.
29160         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29161         (symtab_node::iterate_reference): Move inline.
29162         (symtab_node::iterate_referring): Move inline.
29163         (symtab_node::iterate_direct_aliases): Move inline.
29164         (symtab_node::used_from_object_file_p_worker): Inline into ...
29165         (symtab_node::used_from_object_file_p): Move inline.
29166         * tree-emutls.c (ipa_lower_emutls): Update.
29167         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29168         (varpool_node::call_for_node_and_aliases): Remove.
29169
29170 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
29171
29172         PR tree-optimization/62209
29173         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29174         op == range->exp, insert seq and gimplified code after labels
29175         instead of after the phi.
29176
29177 2015-02-13  Jeff Law  <law@redhat.com>
29178
29179         PR bootstrap/65060
29180         Revert my change for tree-optimization/64823.
29181
29182 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
29183
29184         PR tree-optimization/65053
29185         * tree-ssa-phiopt.c (value_replacement): When moving assign before
29186         cond, either reset VR on lhs or set it to phi result VR.
29187
29188 2015-02-13  Jeff Law  <law@redhat.com>
29189
29190         PR tree-optimization/64823
29191         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29192         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29193         threading through blocks with PHIs, but no statements.
29194         (thread_through_normal_block): Distinguish between blocks where
29195         we did not process all the statements and blocks with no statements.
29196
29197         PR rtl-optimization/47477
29198         * match.pd (convert (plus/minus (convert @0) (convert @1): New
29199         simplifier to narrow arithmetic.
29200
29201 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
29202
29203         PR ipa/65028
29204         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29205         polymorphic call info when type is not known to be preserved.
29206
29207 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
29208
29209         PR ipa/65028
29210         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29211         (inline_call): Use it.
29212
29213 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
29214
29215         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29216         GOMP_DEVICE_NVIDIA_PTX.
29217
29218 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
29219
29220         PR ipa/65034
29221         * stmt.c (emit_case_nodes): Use void_type_node instead of
29222         NULL_TREE as LABEL_DECL type.
29223
29224 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
29225
29226         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29227         constraints.
29228         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29229         symbolic references to data to be forced to constant memory on the
29230         SOM target.
29231
29232 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29233
29234         PR tree-optimization/65002
29235         * tree-cfg.c (pass_data_fixup_cfg): Don't update
29236         SSA on start.
29237         * tree-sra.c (some_callers_have_no_vuse_p): New.
29238         (ipa_early_sra): Reject functions whose callers
29239         assume function is read only.
29240
29241 2015-02-13  Richard Biener  <rguenther@suse.de>
29242
29243         PR lto/65015
29244         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29245         for LTO produced CUs.
29246
29247 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
29248
29249         PR tree-optimization/64705
29250         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29251         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29252         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29253         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29254         expand_simple_operations.
29255
29256 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29257             Richard Henderson  <rth@redhat.com>
29258
29259         PR rtl/32219
29260         * cgraphunit.c (cgraph_node::finalize_function): Set definition
29261         before notice_global_symbol.
29262         (varpool_node::finalize_decl): Likewise.
29263         * varasm.c (default_binds_local_p_2): Rename from
29264         default_binds_local_p_1, add weak_dominate argument.  Use direct
29265         returns instead of assigning to local variable.  Unify varpool and
29266         cgraph paths via symtab_node.  Reject undef weak variables before
29267         testing visibility.  Reorder tests for simplicity.
29268         (default_binds_local_p): Use default_binds_local_p_2.
29269         (default_binds_local_p_1): Likewise.
29270         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29271         via symtab_node.
29272         (default_elf_asm_output_external): Emit visibility when specified.
29273
29274 2015-02-13  Alan Modra  <amodra@gmail.com>
29275
29276         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29277         code setting up r11 for out-of-line fp restore.
29278
29279 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
29280
29281         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29282         (muser-mode): Likewise.
29283
29284 2015-02-13  Alan Modra  <amodra@gmail.com>
29285
29286         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29287         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29288
29289 2015-02-12  David Howells  <dhowells@redhat.com>
29290
29291         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29292         warning.
29293         * tree-ssa-uninit.c (dump_predicates): Likewise.
29294         * opts.c (print_filtered_help): Likewise.
29295
29296 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29297
29298         * dwarf2out.c (output_die): Use "%s", name instead of name to
29299         avoid -Wformat-security warning.
29300
29301         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29302         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29303         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29304         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29305
29306 2015-02-12  Jason Merrill  <jason@redhat.com>
29307
29308         * common.opt (-flifetime-dse): New.
29309
29310 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29311
29312         PR sanitizer/65019
29313         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29314
29315         PR tree-optimization/65014
29316         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29317         use original second operand of arg0 or arg1 instead of
29318         that adjusted by STRIP_NOPS.
29319
29320 2015-02-11  Jeff Law  <law@redhat.com>
29321
29322         PR target/63347
29323         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29324         that needs to be queued, just queue it for a single cycle.
29325
29326 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
29327
29328         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
29329         bodies of thunks; comment on why.
29330         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
29331         symbols are extern.
29332
29333 2015-02-11  Richard Henderson  <rth@redhat.com>
29334
29335         PR sanitize/65000
29336         * tree-eh.c (mark_reachable_handlers): Mark source and destination
29337         regions of __builtin_eh_copy_values.
29338
29339 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29340
29341         PR middle-end/65003
29342         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
29343         ultimate alias is MEM with SYMBOL_REF satisfying
29344         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
29345         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
29346
29347 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
29348
29349         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29350         "diagnostic-core.h".
29351         (main): Initialize progname, and call diagnostic_initialize.
29352
29353         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29354         instead of __OPENMP_TARGET__.
29355
29356         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29357         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29358         hard-coding PTX_ID.
29359
29360 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
29361
29362         * doc/sourcebuild.texi (pie_enabled): Document.
29363
29364 2015-02-11  Martin Liska  <mliska@suse.cz>
29365
29366         PR ipa/64813
29367         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29368         a return value for call to a function that is noreturn.
29369
29370 2015-02-11  Richard Biener  <rguenther@suse.de>
29371
29372         PR lto/65015
29373         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29374         and -fresolution.
29375
29376 2015-02-11  Andrew Pinski  <apinski@cavium.com>
29377
29378         PR target/64893
29379         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29380         Change the first argument type to size_type_node and add another
29381         size_type_node.
29382         (aarch64_simd_expand_builtin): Handle the new argument to
29383         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29384         print an out when the first two arguments are not
29385         nonzero integer constants.
29386         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29387         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29388
29389 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29390
29391         PR target/61925
29392         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29393         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29394         (ix86_set_current_function): Rewritten.
29395         (ix86_add_new_builtins): Temporarily clear current_target_pragma
29396         when creating builtin fndecls.
29397
29398 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29399
29400         PR ipa/65005
29401         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29402         function.
29403         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29404         have no comdat group.
29405         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29406         (lto_output_varpool_node): Always output alias info.
29407         (output_refs): Output refs of boundary aliases, too.
29408         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29409         (output_symtab): Output call eges in thunks in boundary.
29410         (get_alias_symbol): Remove.
29411         (input_node, input_varpool_node): Do not special case weakrefs.
29412         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29413         alias and thunks targets in the boundary; do not take removed symbols
29414         from their comdat groups.
29415         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29416         (cgraph_node::global_info): Remove.
29417         (cgraph_node::rtl_info): Look through aliases and thunks.
29418         * cgrpah.h (global_info): Remove.
29419         (non_local_p): Remove.
29420
29421 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29422             Sandra Loosemore  <sandra@codesourcery.com>
29423
29424         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29425         to inline asm.  List dialects in proper order.
29426
29427 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29428             Sandra Loosemore  <sandra@codesourcery.com>
29429
29430         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29431
29432 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29433
29434         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29435         modified) reference to Solaris.
29436
29437 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
29438
29439         * doc/extend.texi (Extended Asm): Fix typos.
29440
29441 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
29442
29443         PR sanitizer/65004
29444         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29445
29446 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
29447
29448         PR target/64661
29449         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29450         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29451         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29452         * config/sh/constraints.md (Ara, Add): New constraints.
29453         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29454         predicates.
29455         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29456         atomic_mem_operand_0.  Don't use force_reg on the memory address.
29457         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29458         Sra constraint.  Convert to insn_and_split.  Add workaround for
29459         PR 64974.
29460         (atomic_compare_and_swap<mode>_hard): Copy to
29461         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
29462         Use atomic_mem_operand_0 predicate.
29463         (atomic_compare_and_swap<mode>_soft_gusa,
29464         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29465         AraAdd constraints.
29466         (atomic_compare_and_swap<mode>_soft_tcb,
29467         atomic_compare_and_swap<mode>_soft_imask,
29468         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29469         atomic_mem_operand_0 predicate and SraSdd constraints.
29470         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29471         constraint.
29472         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29473         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
29474         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29475         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
29476         force_reg on the memory address.
29477         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29478         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29479         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29480         atomic_mem_operand_1 predicate and Sra constraint.
29481         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29482         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29483         Use atomic_mem_operand_1 predicate.
29484         (atomic_<fetchop_name><mode>_hard): Copy to
29485         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29486         Use atomic_mem_operand_1 predicate.
29487         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29488         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29489         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
29490         insn_and_split.  Use atomic_mem_operand_1 predicate.
29491         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29492         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
29493         Use atomic_mem_operand_1 predicate.
29494         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29495         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29496         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29497         in generated insn with original mem operand before emitting the insn.
29498         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29499         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29500         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29501         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29502         Use atomic_mem_operand_1 predicate and AraAdd constraints.
29503         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29504         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29505         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29506         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29507         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29508         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29509         atomic_not_fetch<mode>_soft_tcb,
29510         atomic_<fetchop_name>_fetch<mode>_soft_imask,
29511         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29512         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29513         Use atomic_mem_operand_1 predicate and SraSdd constraints.
29514
29515 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
29516
29517         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29518         and 3 earlyclobber operands.
29519
29520 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29521
29522         * common.opt (fstack-reuse): Mark as optimization.
29523
29524 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29525
29526         PR ipa/64982
29527         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29528
29529 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
29530
29531         PR tree-optimization/64326
29532         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29533
29534 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
29535
29536         PR gcov-profile/61889
29537         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29538
29539 2015-02-10  Richard Biener  <rguenther@suse.de>
29540
29541         PR tree-optimization/64995
29542         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29543         value we use is final.
29544         (visit_reference_op_store): Always valueize op.
29545         (visit_use): Properly valueize vuses.
29546
29547 2015-02-10  Richard Biener  <rguenther@suse.de>
29548
29549         PR tree-optimization/64909
29550         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29551         pass a scalar-stmt count estimate to the cost model.
29552         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29553
29554 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
29555
29556         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29557         enabled by default together with var-tracking.
29558
29559 2015-02-10  Nick Clifton  <nickc@redhat.com>
29560
29561         * config/rl78/rl78.c: Remove DIV attribute code accidentally
29562         included in previous rl78 commit.
29563
29564 2015-02-10  Richard Biener  <rguenther@suse.de>
29565
29566         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29567         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29568         return the bitpack.
29569
29570 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29571
29572         PR gcov-profile/61889
29573         * config.in: regenerate.
29574         * configure.in: Likewise.
29575         * configure.ac: Check for ftw.h.
29576         * gcov-tool.c: Check for ftw.h before using nftw.
29577
29578 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29579
29580         PR lto/64076
29581         * ipa-visibility.c (update_visibility_by_resolution_info): Only
29582         assert when not in lto mode.
29583
29584 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29585
29586         * ira-color.c (setup_left_conflict_sizes_p): Simplify
29587         initialization/assignment of conflict_size.
29588
29589 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
29590
29591         PR ipa/64978
29592         * ipa-cp.c (gather_caller_stats): Skip thunks.
29593         (propagate_constants_topo): Skip aliases.
29594
29595 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
29596
29597         PR target/64761
29598         * config/sh/sh.c (sh_option_override): Don't change
29599         -freorder-blocks-and-partition to -freorder-blocks even when
29600         unwinding is enabled.
29601         (sh_can_follow_jump): Return false if the followee jump is
29602         a crossing jump when -freorder-blocks-and-partition is specified.
29603         * config/sh/sh.md (*jump_compact_crossing): New insn.
29604
29605 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
29606             Kaz Kojima  <kkojima@gcc.gnu.org>
29607
29608         PR target/64761
29609         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29610         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29611         (sh_can_redirect_branch): Rename to ...
29612         (sh_can_follow_jump): ... this.  Constify argument types.
29613         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29614         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29615         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29616         * doc/tm.texi: Regenerate.
29617
29618 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29619
29620         PR sanitizer/64981
29621         * builtins.c (expand_builtin): Call targetm.expand_builtin
29622         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29623
29624 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29625
29626         PR ipa/61548
29627         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29628
29629 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29630
29631         PR ipa/63566
29632         * ipa-icf.c (set_local): New function.
29633         (sem_function::merge): Use it.
29634
29635 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29636
29637         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29638         (add_type_duplicate): Fix comparison of BINFOs.
29639
29640 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29641
29642         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29643         on getting VOID pointer.
29644
29645 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29646
29647         PR target/64979
29648         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29649         va_list escapes.
29650
29651 2015-02-09  Richard Biener  <rguenther@suse.de>
29652
29653         * genmatch.c (replace_id): Copy expr_type.
29654
29655 2015-02-09  Richard Biener  <rguenther@suse.de>
29656
29657         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29658         (streamer_write_tree_bitfields): Declare.
29659         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29660         properly unpack padding.
29661         (unpack_value_fields): Inline ...
29662         (streamer_read_tree_bitfields): ... here.
29663         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29664         and properly add padding bits.
29665         (streamer_pack_tree_bitfields): Fold into ...
29666         (streamer_write_tree_bitfields): ... this new function,
29667         exposing the bitpack object.
29668         * lto-streamer-out.c (lto_write_tree_1): Call
29669         streamer_write_tree_bitfields.
29670
29671 2015-02-09  Richard Biener  <rguenther@suse.de>
29672
29673         PR tree-optimization/54000
29674         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29675         (struct ivopts_data): Add loop_loc member.
29676         (tree_ssa_iv_optimize_loop): Dump loop location.
29677         (create_new_ivs): Likewise, also dump number of IVs generated.
29678
29679 2015-02-09  Martin Liska  <mliska@suse.cz>
29680
29681         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29682         just if not yet registered.
29683         (ipa_icf_generate_summary): Register callgraph hooks.
29684
29685 2015-02-08  Andrew Pinski  <apinski@cavium.com>
29686
29687         * config/aarch64/aarch64.c (gty_dummy): Delete.
29688
29689 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29690
29691         PR ipa/63566
29692         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29693         (cgraph_node::local_p): Remove thunk related FIXME.
29694
29695 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29696
29697         PR ipa/63566
29698         * i386.c (ix86_function_regparm): Look through aliases to see if callee
29699         is local and optimized.
29700         (ix86_function_sseregparm): Likewise; also use target's SSE math
29701         settings; error out instead of silently generating wrong code
29702         on mismatches.
29703         (init_cumulative_args): Look through aliases.
29704
29705 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29706
29707         PR ipa/63566
29708         * ipa-split.c (execute_split_functions): Split if function has aliases.
29709
29710 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29711
29712         PR ipa/63566
29713         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29714         aliases before trying to expand it.
29715         (cgraph_node::expand_thunk): Fix formating.
29716
29717 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
29718
29719         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29720         (Using Assembly Language with C): Expand introduction.
29721         (Basic Asm): Copy-edit.  Add more information about uses of
29722         basic asm.
29723         (Extended Asm): Copy-edit.  Document new escape syntax and
29724         %l[label] syntax.
29725         (Global Reg Vars): Copy-edit.
29726         (Local Reg Vars): Likewise.
29727
29728 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
29729
29730         PR debug/2714
29731         PR bootstrap/64256
29732         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29733         (DBX_CONTIN_CHAR): Define.
29734
29735 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
29736             Brian Rzycki  <b.rzycki@samsung.com>
29737
29738         PR tree-optimization/64878
29739         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29740         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29741         Stop recursion at loop phi nodes after having visited a loop phi node.
29742
29743 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29744
29745         * toplev.c (process_options): Change flag_ipa_ra before creating
29746         optimization_{default,current}_node.
29747
29748         PR ipa/64896
29749         * cgraphunit.c (cgraph_node::expand_thunk): If
29750         restype is not is_gimple_reg_type nor the thunk_fndecl
29751         returns aggregate_value_p, set restmp to a temporary variable
29752         instead of resdecl.
29753
29754 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
29755
29756         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29757
29758 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29759
29760         PR target/64205
29761         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29762         add a general secondary reload handler for SDmode, unless we have
29763         both read/write support for SDmode.
29764
29765 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29766
29767         PR middle-end/64937
29768         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29769         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29770         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29771         1 before, push it to abstract_vec.
29772         (dwarf2out_abstract_function): Adjust caller.  Don't call
29773         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29774         DECL_ABSTRACT_P flags for all abstract_vec elts.
29775
29776 2015-02-06  Renlin Li  <renlin.li@arm.com>
29777
29778         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29779         complex gimple.
29780         * tree-ssa.c (execute_update_addresses_taken): Likewise.
29781
29782 2015-02-06  Jeff Law  <law@redhat.com>
29783
29784         PR target/64889
29785         * config/h8300/h8300.c (push): New argument "in_prologue".
29786         Pass "in_prologue" along to "F".
29787         (h8300_push_pop): Corresponding changes.
29788         (h8300_expand_prologue): Likewise.
29789         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
29790
29791 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29792
29793         PR rtl-optimization/64957
29794         PR debug/64817
29795         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29796         IOR rather than for AND.
29797
29798 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
29799
29800         PR target/62631
29801         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29802         of shift-add and (add + shift) operations.  Rename local variable.
29803
29804 2015-02-05  Jeff Law  <law@redhat.com>
29805
29806         PR target/17306
29807         * config/h8300/constraints.md (U): Correctly dectect
29808         "eightbit_data" memory addresses.
29809         * config/h8300/h8300.c (eightbit_constant_address_p): Also
29810         handle (const (plus (symbol_ref (x)))) where x is declared
29811         as an 8-bit data memory address.
29812         * config/h8300/h8300.md (call, call_value): Correctly detect
29813         "funcvec" functions.
29814
29815         PR target/43264
29816         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29817         24 to 28 bits for the H8/300.
29818
29819 2015-02-06  Alan Modra  <amodra@gmail.com>
29820
29821         PR target/64876
29822         * config/rs6000/rs6000.c (chain_already_loaded): New function.
29823         (rs6000_call_aix): Use it.
29824
29825 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
29826
29827         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29828         check.
29829
29830 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
29831
29832         * config/h8300/constraints.md ("U" constraint): Use strict
29833         variant of REG_OK_FOR_BASE_P after reload has started.
29834
29835 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
29836
29837         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29838         define to zero if !TARGET_NEON.
29839         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29840
29841 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29842             Trevor Saunders  <tsaunders@mozilla.com>
29843
29844         PR ipa/61548
29845         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29846
29847 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29848
29849         PR ipa/61548
29850         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29851         when removing varpool nodes.
29852
29853 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29854
29855         PR ipa/61548
29856         * varpool.c (varpool_node::remove): Fix order of variables.
29857
29858 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29859
29860         PR ipa/64686
29861         * ipa-inline.c (inline_small_functions): Fix ordering issue between
29862         speculation resolution and key updates.
29863
29864 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29865
29866         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29867         about not letting any speculative edges unupdated.
29868
29869 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29870
29871         PR gcov/64123
29872         * gcov-io.c (gcov_var): Export.
29873
29874 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29875
29876         PR middle-end/64922
29877         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29878         edges that become speculative.
29879
29880 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29881
29882         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29883         or DW_LANG_Fortran08.
29884         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29885         DW_LANG_Fortran08.
29886         (gen_compile_unit_die): Handle "GNU Fortran2003" and
29887         "GNU Fortran2008" language strings.
29888         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29889         * langhooks.h (lang_GNU_Fortran): New prototype.
29890         * langhooks.c (lang_GNU_Fortran): New function.
29891         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29892         lang_GNU_Fortran.
29893
29894 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29895
29896         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29897         (RTX_OK_FOR_OLO10_P): Likewise.
29898
29899 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29900
29901         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29902
29903 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29904
29905         PR middle-end/64922
29906         * gimple.c: Include gimple-ssa.h.
29907         (maybe_remove_unused_call_args): New function.
29908         * gimple.h (maybe_remove_unused_call_args): Declare.
29909         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29910         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29911         * gimple-fold.c (gimple_fold_call): Likewise.
29912
29913 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29914
29915         PR rtl-optimization/64905
29916         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29917         pointer alignment if it isn't needed.
29918
29919 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29920
29921         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29922         cortex-a72.cortex-a53.
29923         * config/aarch64/aarch64-tune.md: Regenerate.
29924         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29925
29926 2015-02-04  Nick Clifton  <nickc@redhat.com>
29927
29928         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29929         inside a MEM.
29930
29931 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29932
29933         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29934         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29935         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29936         of DEF_BUILTIN.
29937         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29938         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29939         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29940         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29941         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29942         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29943         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29944         * tree-core.h (enum built_in_function): In between
29945         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29946         for builtins that use DEF_BUILTIN_CHKP macro.
29947
29948 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
29949
29950         PR debug/64817
29951         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29952         operands for tcc_comparison exprs.  Fix typos.
29953
29954         PR debug/64817
29955         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29956         of two XORs that have an intervening AND or IOR.
29957
29958         PR debug/64817
29959         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29960         simplification of XOR of AND to not allocate new rtx before
29961         committing to a simplification.
29962
29963 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29964
29965         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29966         manual swaps in all peepholes.
29967
29968 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29969
29970         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29971         of manual swapping implementation.
29972         (aarch64_expand_vec_perm_const_1): Likewise.
29973
29974 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
29975
29976         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29977         (generic_addrcost_table): Remove NAMED_PARAM.
29978         (cortexa57_addrcost_table): Likewise.
29979         (xgene1_addrcost_table): Likewise.
29980         (generic_regmove_table): Likewise.
29981         (cortexa53_regmove_table): Likewise.
29982         (xgene1_regmove_table): Likewise.
29983         (generic_vector_table): Likewise.
29984         (cortexa57_vector_table): Likewise.
29985         (xgene1_vector_table): Likewise.
29986         (generic_tunings): Likewise.
29987         (cortexa53_tunings): Likewise.
29988         (cortexa57_tunings): Likewise.
29989         (xgene1_tunings): Likewise.
29990
29991 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29992
29993         * config/arm/arm-cores.def: Add cortex-a72 and
29994         cortex-a72.cortex-a53.
29995         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29996         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29997         * config/arm/arm-tune.md: Regenerate.
29998         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29999         "cortex-a72.cortex-a53".
30000         * doc/invoke.texi (ARM Options/-mtune): Likewise.
30001
30002 2015-02-04  Nick Clifton  <nickc@redhat.com>
30003
30004         PR target/64408
30005         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
30006         of accepted codes.
30007         (nonimmediate_di_operand): Likewise.
30008
30009         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
30010         prefixes of known F5 using MSP430 MCUs.
30011
30012 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30013
30014         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
30015         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
30016         instead of __builtin_sqrt.
30017
30018 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
30019
30020         * varasm.c (do_assemble_alias): Follow transparent alias
30021         chain for target.
30022         (default_assemble_visibility): Follow transparent alias
30023         chain for decl name.
30024
30025 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30026
30027         PR middle-end/62103
30028         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
30029         to compute size of referenced value in the constant case.
30030
30031 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
30032
30033         PR rtl-optimization/64756
30034         * cse.c (invalidate_dest): New function.
30035         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
30036         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
30037         invalidate and do not record it.
30038
30039 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
30040
30041         PR target/64660
30042         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
30043         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
30044         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
30045         atomic_nand<mode>_soft_tcb): New insns.
30046         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
30047         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
30048         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
30049         Split into atomic_not_fetchsi_hard if operands[0] is unused.
30050         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
30051         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30052         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
30053         atomic_not<mode>_hard if operands[0] is unused.
30054         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
30055         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
30056         if operands[0] is unused.
30057         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
30058         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
30059         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
30060         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30061         unused.
30062         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
30063         into atomic_not<mode>_soft_tcb if operands[0] is unused.
30064         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
30065         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
30066         if operands[0] is unused.
30067         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
30068         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
30069         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
30070         atomic_nand_fetchsi_hard if operands[0] is unused.
30071         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
30072         atomic_nand<mode>_hard if operands[0] is unused.
30073         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
30074         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30075         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
30076         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30077         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
30078         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30079         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30080         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30081         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
30082         atomic_not<mode>_hard if operands[0] is unused.
30083         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30084         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30085         unused.
30086         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
30087         into atomic_not<mode>_soft_tcb if operands[0] is unused.
30088         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
30089         atomic_nand<mode>_hard if operands[0] is unused.
30090         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
30091         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30092
30093 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
30094
30095         PR jit/64810
30096         * Makefile.in (GCC_OBJS): Add gcc-main.o.
30097         * gcc-main.c: New file, containing "main" taken from gcc.c.
30098         * gcc.c (do_self_spec): Free decoded_options.
30099         (class driver): Move declaration to gcc.h.
30100         (main): Move declaration and implementation to new file
30101         gcc-main.c.
30102         (driver_get_configure_time_options): New function.
30103         * gcc.h (class driver): Move this declaration here, from
30104         gcc.c.
30105         (driver_get_configure_time_options): New declaration.
30106
30107 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
30108
30109         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30110         cross-module inlining.
30111         * cgraph.h (cgraph_node): Add flag merged.
30112         * ipa-icf.c (sem_function::merge): Maintain it.
30113
30114 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
30115
30116         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30117         instead of OBJECT_P.
30118
30119 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
30120
30121         PR target/62631
30122         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30123         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30124         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30125         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30126
30127 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
30128
30129         PR other/63504
30130         * combine.c (reg_n_sets_max): New variable.
30131         (can_change_dest_mode, reg_nonzero_bits_for_combine,
30132         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30133         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30134         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30135         (rest_of_handle_combine): Initialize reg_n_sets_max.
30136
30137 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
30138
30139         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30140         if some always_inline was inlined, apply changes before inlining
30141         heuristically.
30142
30143 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
30144
30145         PR jit/64810
30146         * config/arm/arm.c (arm_option_override): Set
30147         arm_selected_arch/cpu/tune to NULL on entry.
30148
30149 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
30150             Andrew Pinski  <pinskia@gcc.gnu.org>
30151             Jakub Jelinek  <jakub@gcc.gnu.org>
30152
30153         PR target/64231
30154         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30155         integer typing for small model. Use IN_RANGE.
30156
30157 2015-02-02  Richard Biener  <rguenther@suse.de>
30158
30159         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30160         * tree-vrp.c (vrp_valueize_1): Likewise.
30161
30162 2015-02-02  Alan Modra  <amodra@gmail.com>
30163
30164         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30165         than mem for toc_restore.
30166         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30167         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30168         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30169
30170 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
30171
30172         PR target/64047
30173         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30174         explicit default options.
30175
30176 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
30177
30178         PR ipa/64872
30179         * ipa-utils.c (ipa_merge_profiles): Add release argument.
30180         * ipa-icf.c (sem_function::merge): Do not release body when merging.
30181         * ipa-utils.h (ipa_merge_profiles): Update prototype.
30182
30183 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
30184
30185         PR debug/64817
30186         * cfgexpand.c (deep_ter_debug_map): New variable.
30187         (avoid_deep_ter_for_debug): New function.
30188         (expand_debug_expr): If TERed SSA_NAME is in
30189         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30190         instead of trying to expand SSA_NAME's def stmt.
30191         (expand_debug_locations): When expanding debug bind
30192         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30193         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30194         value.
30195         (pass_expand::execute): Call avoid_deep_ter_for_debug on
30196         all debug bind stmts.  Delete deep_ter_debug_map after
30197         expand_debug_location if non-NULL and clear it.
30198
30199 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
30200
30201         PR target/64851
30202         * config/sh/sync.md (atomic_fetch_notsi_hard,
30203         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30204         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30205         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30206         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30207         atomic_not_fetch<mode>_soft_imask): New insns.
30208
30209 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30210
30211         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30212         (rank_for_schedule_debug): Split from ...
30213         (rank_for_schedule): ... this.
30214         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30215         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30216
30217 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30218
30219         * doc/md.texi (Machine Constraints): Alphabetize table by target.
30220         * doc/extend.texi (x86 Variable Attributes): Move section to
30221         correct alphabetization after renaming.
30222         (x86 Type Attributes): Likewise.
30223         (Target Builtins): Re-alphabetize menu.
30224         (x86 Built-in Functions): Move section to correct alphabetization
30225         after renaming.
30226         (x86 transactional memory intrinsics): Likewise.
30227         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30228         and x86 Windows Options in table and menu.
30229         (x86 Options): Move section to correct alphabetization after
30230         renaming.
30231         (x86 Windows Options): Likewise.
30232
30233 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30234
30235         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30236         preferred names of the architecture and its 32- and 64-bit
30237         variants.
30238         * doc/invoke.texi: Likewise.
30239         * doc/md.texi: Likewise.
30240
30241 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30242
30243         PR target/64882
30244         * config/i386/predicates.md (address_no_seg_operand): Reject
30245         non-CONST_INT_P operands in invalid mode.
30246
30247 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30248
30249         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30250         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
30251         * config/i386/predicates.md (address_no_seg_operand): Call
30252         address_operand with VOIDmode.
30253         (vsib_address_operand): Ditto.
30254         (address_mpx_no_base_operand): Ditto.
30255         (address_mpx_no_index_operand): Ditto.
30256
30257 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30258
30259         PR target/64688
30260         * lra-constraints.c (original_subreg_reg_mode): New.
30261         (simplify_operand_subreg): Try to simplify subreg of const.  Use
30262         original_subreg_reg_mode for it.
30263         (swap_operands): Update original_subreg_reg_mode.
30264         (curr_insn_transform): Set up original_subreg_reg_mode.
30265
30266 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30267
30268         PR target/64617
30269         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30270         function.
30271         (process_alt_operands): Use it.
30272         (curr_insn_transform): Check the optional reload pseudo class is
30273         ok for the mode.
30274
30275 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
30276
30277         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30278         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30279         prototype.
30280         * toplev.h (init_asm_output): Update comment on use of
30281         UNKNOWN_LOCATION with fatal_error.
30282         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30283         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30284         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30285         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30286         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30287         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30288         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30289         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30290         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30291         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30292         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30293         fatal_error changed to pass input_location as first argument.
30294
30295 2015-01-30  Martin Liska  <mliska@suse.cz>
30296
30297         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30298         in #pragma GCC diagnostic guards.
30299
30300 2015-01-30  Richard Biener  <rguenther@suse.de>
30301
30302         PR tree-optimization/64829
30303         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30304         not add a widening conversion pattern but hand off extra
30305         widenings to callers.
30306         (vect_recog_widen_mult_pattern): Handle extra widening produced
30307         by vect_handle_widen_op_by_const.
30308         (vect_recog_widen_shift_pattern): Likewise.
30309         (vect_pattern_recog_1): Remove excess vertical space in dumping.
30310         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30311         (vect_init_vector_1): Likewise.
30312         (vect_get_vec_def_for_operand): Likewise.
30313         (vect_finish_stmt_generation): Likewise.
30314         (vectorizable_load): Likewise.
30315         (vect_analyze_stmt): Likewise.
30316         (vect_is_simple_use): Likewise.
30317
30318 2015-01-29  Jeff Law  <law@redhat.com>
30319
30320         * combine.c (try_combine): Fix typo in comment.
30321
30322 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
30323
30324         PR target/64580
30325         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
30326         (rs6000_stack_info): Add assert.
30327         (rs6000_output_savres_externs): New function, split off from...
30328         (rs6000_output_function_prologue): ... here.  Do not call it for
30329         thunks.
30330
30331 2015-01-29  Jeff Law  <law@redhat.com>
30332
30333         PR target/15184
30334         * combine.c (try_combine): If I0 is a memory load and I3 a store
30335         to a related address, increase the "goodness" of doing a 4-insn
30336         combination with I0-I3.
30337         (make_field_assignment): Handle SUBREGs in the ior+and case.
30338
30339 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
30340
30341         PR tree-optimization/64746
30342         * tree-if-conv.c (mask_exists): New function.
30343         (predicate_mem_writes): Save created mask with given size for further
30344         use.
30345         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
30346         (ifcvt_repair_bool_pattern): Collect all statements that are root
30347         of bool pattern and use iterative algorithm to remove multiple uses
30348         of predicates, display number of required iterations.
30349
30350 2015-01-29  Richard Biener  <rguenther@suse.de>
30351
30352         PR tree-optimization/64853
30353         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30354         stmt will get simulated again.
30355         * tree-ssa-ccp.c (valueize_op_1): Likewise.
30356
30357 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30358
30359         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30360         return_in_pc.  Remove redundant assignments.
30361         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30362         (arm_expand_epilogue): Don't compare boolean with true in if condition.
30363
30364 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
30365
30366         * config/i386/i386.c (ix86_mode_after): Make static.
30367
30368 2015-01-29  Richard Biener  <rguenther@suse.de>
30369
30370         PR tree-optimization/64844
30371         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30372         dump cost model analysis.
30373         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30374         Do not register adjusted load/store costs here.
30375
30376 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30377             Uros Bizjak  <ubizjak@gmail.com>
30378
30379         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30380         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30381         using x86_use_pseudo_pic_reg.
30382         * config/i386/i386.c (ix86_conditional_register_usage): Remove
30383         support for fixed PIC register.
30384         (ix86_use_pseudo_pic_reg): Not static any more.
30385
30386 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30387
30388         PR middle-end/64805
30389         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30390         to avoid error in cgraph node verification.
30391
30392 2015-01-29  Marek Polacek  <polacek@redhat.com>
30393
30394         * doc/standards.texi: Reflect that the default for C is gnu11.
30395
30396 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
30397
30398         PR target/64761
30399         * reorg.c (switch_text_sections_between_p): New function.
30400         (relax_delay_slots): Call it when testing if the jump insn
30401         is removable.  Use targetm.can_follow_jump when testing if
30402         the conditional branch can follow an unconditional jump.
30403
30404 2015-01-27  Caroline Tice  <cmtice@google.com>
30405
30406         Committing VTV Cywin/Ming patch for Patrick Wollgast
30407         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30408         if -fvtable-verify=preinit/std is used.
30409         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30410         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30411         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30412         if -fvtable-verify=preinit/std is used.
30413         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30414         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30415         if -fvtable-verify=preinit/std is used.
30416         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30417         * config/i386/mingw32.h (LIB_SPEC): Likewise.
30418         * varasm.c (assemble_variable): Add code to properly set the comdat
30419         section and name for the .vtable_map_vars section in case the
30420         target is PE or COFF.
30421
30422 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30423
30424         PR ipa/64801
30425         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30426         make sane BB profile.
30427         (cgraph_node::expand_thunk): Make sane BB profile.
30428         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30429         * cgraph.h (init_lowered_empty_function): Update prototype.
30430         * config/i386/i386.c (make_resolver_func): Update call.
30431         * predict.c (gate): Disable branch prediction pass if
30432         profile is already there.
30433
30434 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30435
30436         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30437         * opth-gen.awk: Likewise.
30438         * common.opt: Mark flag_fp_contract_mode as Optimization.
30439
30440 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30441
30442         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30443         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30444
30445 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
30446
30447         PR target/64659
30448         * config/sh/predicates.md (atomic_arith_operand,
30449         atomic_logical_operand): Remove.
30450         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30451         (atomic_arith_operand_0): New predicate.
30452         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30453         Use atomic_arith_operand_0 for input values.
30454         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30455         atomic_compare_and_swap<mode>_soft_gusa,
30456         atomic_compare_and_swap<mode>_soft_tcb,
30457         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30458         arith_reg_operand instead of register_operand.
30459         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
30460         atomic_arith_operand_0 for newval input.
30461         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30462         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30463         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30464         arith_reg_operand instead of register_operand.
30465         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30466         fetchop_predicate_1, fetchop_constraint_1_llcs,
30467         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30468         fetchop_constraint_1_imask): New code iterator attributes.
30469         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30470         register_operand.  Use fetchop_predicate_1.
30471         (atomic_fetch_<fetchop_name>si_hard,
30472         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30473         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30474         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30475         and arith_reg_operand instead of register_operand.  Use
30476         fetchop_predicate_1, fetchop_constraint_1_gusa.
30477         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30478         and arith_reg_operand instead of register_operand.  Use
30479         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
30480         to allow R0 usage.
30481         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30482         and arith_reg_operand instead of register_operand.  Use
30483         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
30484         to allow R0 usage.
30485         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30486         register_operand.  Use atomic_logical_operand_1.
30487         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30488         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30489         arith_reg_operand instead of register_operand.
30490         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30491         Use arith_reg_dest and arith_reg_operand instead of register_operand.
30492         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
30493         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30494         register_operand.  Use fetchop_predicate_1.
30495         (atomic_<fetchop_name>_fetchsi_hard,
30496         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30497         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30498         fetchop_constraint_1_llcs.
30499         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30500         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30501         fetchop_constraint_1_gusa.
30502         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30503         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30504         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
30505         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30506         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30507         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
30508         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30509         register_operand.  Use atomic_logical_operand_1.
30510         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30511         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30512         arith_reg_operand instead of register_operand.
30513         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30514         arith_reg_operand instead of register_operand.  Use logical_operand
30515         and K08.  Adjust asm sequence to allow R0 usage.
30516         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30517         arith_reg_operand instead of register_operand.  Use logical_operand
30518         and K08.
30519
30520 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30521
30522         PR other/63504
30523         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30524         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30525         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30526         only get_full_len HOST_WIDE_INTs from get_val () array rather than
30527         all bits in *val_wide.
30528
30529 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
30530
30531         * varpool.c (tls_model_names): Fix names.
30532         (varpool_node::dump): Dump tls- prefix for tls models.
30533
30534 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
30535             Bernd Schmidt  <bernds@codesourcery.com>
30536             Nathan Sidwell  <nathan@codesourcery.com>
30537
30538         * config/nvptx/mkoffload.c: New file.
30539         * config/nvptx/t-nvptx: Add build rules for it.
30540         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30541         (extra_programs): Add mkoffload.
30542         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30543         function.
30544         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30545
30546 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
30547
30548         PR middle-end/64809
30549         * cfgexpand.c (reorder_operands): Skip debug gimples.
30550
30551 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
30552
30553         PR tree-optimization/64277
30554         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30555         range info when possible to refine estimation.
30556
30557 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30558
30559         PR tree-optimization/64718
30560         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30561         be a 16bit unsigned integer when n->range is 16.
30562         (bswap_replace): Convert src to that type if necessary for all bswap
30563         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
30564         set in pass_optimize_bswap::execute ().
30565
30566 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
30567
30568         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30569         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30570         integer and floating point variants.
30571         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30572
30573 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
30574
30575         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30576         for all vector modes.
30577
30578 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30579
30580         PR bootstrap/64612
30581         * doc/sourcebuild.texi (comdat_group): Document.
30582
30583 2015-01-28  Terry Guo  <terry.guo@arm.com>
30584
30585         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30586
30587 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
30588
30589         * toplev.c (print_version): Add param "show_global_state", and
30590         only print GGC and plugin information if it is true.
30591         (init_asm_output): Pass in "true" for the new param when calling
30592         print_version.
30593         (process_options): Likewise.
30594         (toplev::main): Likewise.
30595         * toplev.h (print_version): Add new param to decl.
30596
30597 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30598
30599         PR ipa/60871
30600         PR ipa/64139
30601         * tree.c (lookup_binfo_at_offset): New function.
30602         (get_binfo_at_offset): Use it.
30603
30604 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30605
30606         PR ipa/64282
30607         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30608         on vtable being vtable.
30609
30610 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30611
30612         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30613         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30614         -mhotpatch= option.
30615         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30616         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
30617         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30618         Renamed.
30619         (s390_hotpatch_trampoline_halfwords_max): Renamed.
30620         (s390_hotpatch_hw_max): New name.
30621         (s390_hotpatch_trampoline_halfwords): Renamed.
30622         (s390_hotpatch_hw_before_label): New name.
30623         (get_hotpatch_attribute): Removed.
30624         (s390_hotpatch_hw_after_label): New name.
30625         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30626         attribute.
30627         (s390_attribute_table): Ditto.
30628         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30629         (s390_function_num_hotpatch_hw): New name.
30630         Remove special handling of inline functions and hotpatching.
30631         Return number of nops before and after the function label.
30632         (s390_can_inline_p): Removed.
30633         (s390_asm_output_function_label): Emit a configurable number of nops
30634         after the function label.
30635         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30636         (TARGET_CAN_INLINE_P) Removed.
30637         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30638
30639 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30640             Jiong Wang  <jiong.wang@arm.com>
30641
30642         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30643         of scratch reg.
30644         (cb<optab><mode>1): Likewise.
30645         * config/aarch64/iterators.md (bcond): New define_code_attr.
30646
30647 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30648
30649         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30650         memory accesses.
30651
30652 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30653
30654         * config/s390/s390.c (s390_register_move_cost): Increase costs for
30655         FPR->GPR moves.
30656
30657 2015-01-27  Richard Biener  <rguenther@suse.de>
30658
30659         * tree-vrp.c (update_value_range): Intersect the range with
30660         old recorded SSA name range information.
30661
30662 2015-01-27  Nick Clifton  <nickc@redhat.com>
30663
30664         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30665         BC, DE and HL registers directly, not via AX.
30666         When decrementing the stack pointer by a large amount, transfer SP
30667         into AX and perform the subtraction there.
30668         (rl78_expand_epilogue): Perform the inverse of the above
30669         enhancements.
30670
30671 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30672
30673         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30674
30675 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30676             Yury Gribov  <y.gribov@samsung.com>
30677
30678         PR ubsan/64741
30679         * ubsan.c (ubsan_source_location): Refactor code.
30680         (ubsan_type_descriptor): Update type size. Refactor code.
30681
30682 2015-01-27  Richard Biener  <rguenther@suse.de>
30683
30684         PR tree-optimization/56273
30685         PR tree-optimization/59124
30686         PR tree-optimization/64277
30687         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30688         from the first VRP pass.
30689
30690 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30691
30692         PR ipa/64776
30693         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30694         handle the first argument in the same loop as all the other arguments.
30695
30696         PR rtl-optimization/61058
30697         * jump.c (cleanup_barriers): Update basic block boundaries
30698         if BLOCK_FOR_INSN is non-NULL on PREV.
30699
30700 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30701
30702         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30703         bounds narrowing, already instrumented calls and calls to
30704         not instrumentable functions.
30705
30706 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30707
30708         PR tree-optimization/64807
30709         * wide-int.cc (wi::divmod_internal): Clear
30710         b_dividend[dividend_blocks_needed].
30711
30712 2015-01-26  DJ Delorie  <dj@redhat.com>
30713
30714         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30715         volatile memory references.
30716
30717 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
30718
30719         PR target/49263
30720         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30721         remove_insn.
30722         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30723         shifts if it already fits into K08.
30724
30725 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30726
30727         PR ipa/64730
30728         * ipa-inline.c (inline_small_functions): Print "unknown" even
30729         if edge->call_stmt is non-NULL, but has builtins or unknown
30730         location.
30731
30732         PR middle-end/64421
30733         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30734         with asterisk, skip the first character.
30735
30736 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30737
30738         PR target/64806
30739         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30740         order change.
30741
30742 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
30743
30744         PR target/64795
30745         * config/i386/i386.md (*movdi_internal): Also check operand 0
30746         to determine TYPE_LEA operand.
30747         (*movsi_internal): Ditto.
30748
30749 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30750
30751         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30752         OPTION_MASK_QUAD_MEMORY_ATOMIC.
30753
30754 2015-01-26  Renlin Li  <renlin.li@arm.com>
30755
30756         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30757         the comment.
30758         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30759         for higher part.
30760
30761 2015-01-26  Richard Biener  <rguenther@suse.de>
30762
30763         PR middle-end/64764
30764         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30765         combining two BIT_AND_EXPR predicates.
30766
30767 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30768
30769         PR bootstrap/64754
30770         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30771
30772 2015-01-26  Terry Guo  <terry.guo@arm.com>
30773
30774         * config/arm/arm.c (arm_file_start): Update the assignment of
30775         Tag_ABI_HardFP_use.
30776
30777 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
30778
30779         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30780         pipeline model.
30781         config/arm/arm.md: Include the new Cortex-A57 model.
30782         (generic_sched): Don't use generic_sched when tuning for
30783         Cortex-A57.
30784
30785 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
30786             Uros Bizjak  <ubizjak@gmail.com>
30787
30788         * config/i386/i386.c (get_builtin_code_for_version): Add
30789         support for BMI and BMI2 multiversion functions.
30790
30791 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30792
30793         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30794         (extract_bit_field): Likewise.
30795         (extract_low_bits): Likewise.
30796         (expand_mult): Likewise.
30797         (expand_mult_highpart_adjust): Likewise.
30798
30799 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30800
30801         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30802         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30803         * config/i386/i386.c (processor_model): Add
30804         M_INTEL_COREI7_BROADWELL.
30805         (arch_names_table): Add "broadwell".
30806
30807 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
30808
30809         PR target/49263
30810         PR target/53987
30811         PR target/64345
30812         PR target/59533
30813         PR target/52933
30814         PR target/54236
30815         PR target/51244
30816         * config/sh/sh-protos.h
30817         (sh_extending_set_of_reg::can_use_as_unextended_reg,
30818         sh_extending_set_of_reg::use_as_unextended_reg,
30819         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30820         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30821         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30822         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30823         (sh_treg_insns): New class.
30824         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30825         (scope_counter): New class.
30826         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30827         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30828         sh_extending_set_of_reg::can_use_as_unextended_reg,
30829         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30830         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30831         sh_split_treg_set_expr): New functions.
30832         (addsubcosts): Handle treg_set_expr.
30833         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30834         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30835         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30836         (sh_insn_operands_modified_between_p): Make non-static.
30837         * config/sh/predicates.md (zero_extend_movu_operand): Allow
30838         simple_mem_operand in addition to displacement_mem_operand.
30839         (zero_extend_operand): Don't allow zero_extend_movu_operand.
30840         (treg_set_expr, treg_set_expr_not_const01,
30841         arith_reg_or_treg_set_expr): New predicates.
30842         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30843         arith_or_int_operand instead of logical_operand.  Convert to
30844         insn_and_split.  Try to optimize constant operand in splitter.
30845         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
30846         (*tstqi_t_zero): Delete.
30847         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30848         (tstsi_t_and_not): Delete.
30849         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30850         Convert to insn_and_split.
30851         (unnamed split, tstsi_t_zero_extract_xor,
30852         tstsi_t_zero_extract_subreg_xor_little,
30853         tstsi_t_zero_extract_subreg_xor_big): Delete.
30854         (*tstsi_t_shift_mask): New insn_and_split.
30855         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30856         to recombine with surrounding insns when splitting.
30857         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30858         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30859         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30860         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30861         (*cbranch_div0s: Delete.
30862         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30863         Try to recombine with surrounding insns when splitting.  Add operand
30864         order variants.
30865         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30866         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30867         *addc_r_r_msb, *addc_2r_msb): Delete.
30868         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
30869         order variant.
30870         (*addc_negreg_t): New insn_and_split.
30871         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30872         Try to recombine with surrounding insns when splitting.
30873         Add operand order variants.
30874         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30875         insn_and_split patterns.
30876         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
30877         surrounding insns when splitting.
30878         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30879         (*rotcl): Likewise.  Add zero_extract variant.
30880         (*ashrsi2_31): New insn_and_split.
30881         (*negc): Convert to insn_and_split.  Use treg_set_expr.
30882         (*zero_extend<mode>si2_disp_mem): Update comment.
30883         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30884         condition.
30885         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
30886         with surrounding insns when splitting.
30887         (any_treg_expr_to_reg): New insn_and_split.
30888         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30889         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30890         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30891         *zero_extract_2): New single bit zero extract patterns.
30892         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30893         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30894         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30895         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30896         set destination.
30897         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30898         register_operand for set source.
30899
30900 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
30901
30902         * i386.opt (prefetch_sse): New targetsave.
30903         * i386.c (ix86_function_specific_save): Save prefetch_sse.
30904         (ix86_function_specific_restore): Restore prefetch_sse and initialize
30905         ix86_cost/ix86_tune_cost.
30906
30907 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30908
30909         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30910         Support the JIT by using 0 as the language type.
30911
30912 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
30913
30914         PR target/64317
30915         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
30916         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30917         (mark_regno_live, process_bb_lives): Pass new parameter value to
30918         make_hard_regno_born.
30919
30920 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30921
30922         PR rtl-optimization/63637
30923         PR rtl-optimization/60663
30924         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30925         if elt->cost is MAX_COST for ASM_OPERANDS.
30926         (find_sets_in_insn): Fix up comment typo.
30927         (cse_insn): Don't set src_volatile for all non-volatile
30928         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30929         or with "memory" clobber.  Set elt->cost to MAX_COST
30930         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
30931         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30932
30933 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30934
30935         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30936         alternative 1.
30937
30938 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30939
30940         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30941         libgcc/config/i386/elf-lib.h.
30942
30943 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30944
30945         PR driver/64737
30946         * gcc.c (print_configuration): Don't print a blank line at the end
30947         here...
30948         (run_attempt): ... but here unstead.
30949
30950         PR middle-end/64734
30951         * omp-low.c (scan_sharing_clauses): Don't ignore
30952         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30953         on target data/update constructs.
30954
30955 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30956
30957         PR target/50928
30958         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30959         (DEBUG_RELOAD): Removed define.
30960         (m32c_limit_reload_class): Enable traces with if DEBUG0.
30961         (m32c_function_arg): Added a type cast.
30962         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30963         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30964         * config/m32c/bitops.md (andqi3_16): Likewise.
30965         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30966         (push_a01_l): Likewise.
30967
30968 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30969
30970         PR jit/64721
30971         * main.c (main): Construct toplev instances with init_signals=true.
30972         * toplev.c (general_init): Add param "init_signals", and use it to
30973         conditionalize the calls to signal and host_hooks.extra_signals.
30974         (toplev::toplev): Add param "init_signals".
30975         (toplev::main): When invoking general_init, pass m_init_signals
30976         to control whether signal-handlers are installed.
30977         * toplev.h (toplev::toplev): Add param "init_signals".
30978         (toplev::m_init_signals): New field.
30979
30980 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30981
30982         PR jit/64722
30983         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30984         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30985         latter may be affected by the former (e.g. on i686).
30986
30987 2015-01-23  Martin Liska  <mliska@suse.cz>
30988
30989         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30990         false positive during profiledbootstrap.
30991
30992 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30993
30994         PR libgomp/64672
30995         * lto-opts.c (lto_write_options): Output non-explicit conservative
30996         -fno-openacc.
30997         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30998         (append_compiler_options): Pass -fopenacc through.
30999
31000 2015-01-23  Tom de Vries  <tom@codesourcery.com>
31001
31002         PR libgomp/64707
31003         * lto-opts.c (lto_write_options): Output non-explicit conservative
31004         -fno-openmp.
31005         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
31006         (append_compiler_options): Pass -fopenmp through.
31007
31008 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
31009
31010         PR debug/64511
31011         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
31012         GTY markup.
31013
31014         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
31015         * diagnostic.def (DK_ICE_NOBT): New kind.
31016         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
31017         like DK_ICE, but never print backtrace.
31018         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
31019         (internal_error_no_backtrace): New function.
31020         * gcc.c (execute): Use internal_error_no_backtrace instead of
31021         internal_error.
31022
31023 2015-01-22  Jeff Law  <law@redhat.com>
31024
31025         PR target/52076
31026         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
31027         improve code density for small immediate to memory case.
31028         (insv): Better handle bitfield assignments when the field is
31029         being set to all ones.
31030         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
31031         operand predicate.
31032
31033 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31034             Jakub Jelinek  <jakub@redhat.com>
31035
31036         PR middle-end/64729
31037         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
31038         for !TARGET_LIBC_PROVIDES_SSP version and
31039         -fstack-protector-{all,strong,explicit} otherwise.
31040         * config/freebsd.h (LINK_SSP_SPEC): Handle
31041         -fstack-protector-{strong,explicit}.
31042
31043 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
31044             H.J. Lu  <hongjiu.lu@intel.com>
31045
31046         PR ipa/64694
31047         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
31048         heap.
31049
31050 2015-01-22  Wei Mi  <wmi@google.com>
31051
31052         PR rtl-optimization/64557
31053         * dse.c (record_store): Call get_addr for mem_addr.
31054         (check_mem_read_rtx): Likewise.
31055
31056 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
31057
31058         * fold-const.c (const_binop): Add early return for non-tcc_binary.
31059
31060 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
31061
31062         * toplev.c (init_local_tick): Process the failure when read
31063         fails for random_seed.
31064
31065         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
31066         'pretty_name' to avoid memory overflow.
31067
31068 2015-01-22  Richard Biener  <rguenther@suse.de>
31069
31070         PR middle-end/64728
31071         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31072         abnormal coalescing on undefined SSA names.
31073
31074 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
31075
31076         PR target/64688
31077         PR target/64477
31078         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31079         for alternative 3.
31080         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31081
31082 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
31083
31084         PR middle-end/63325
31085         * fold-const.c (fold_checksum_tree): Don't include value of
31086         expr->decl_with_vis.symtab_node in the checksum.
31087
31088 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31089
31090         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31091
31092 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31093
31094         PR driver/64690
31095         * gcc.c (insert_comments): New function.
31096         (try_generate_repro): Call it.
31097         (append_text): Removed.
31098
31099 2015-01-22  Richard Biener  <rguenther@suse.de>
31100
31101         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31102         with IL incompatible options.  Properly honor user optimize
31103         attributes.
31104
31105 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
31106
31107         PR rtl-optimization/64682
31108         * combine.c (distribute_notes): When moving a death note for
31109         a register that is set in the new I2, make sure to put it
31110         before that new I2.
31111
31112 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
31113
31114         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31115         not TARGET_DEFAULT.
31116
31117 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
31118
31119         PR debug/64511
31120         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31121         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31122         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31123
31124         PR sanitizer/64706
31125         * doc/invoke.texi (-fsanitize=vptr): Document.
31126
31127         PR rtl-optimization/62078
31128         * dse.c: Include cfgcleanup.h.
31129         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31130         anything call purge_all_dead_edges and cleanup_cfg at the end
31131         of the pass.
31132
31133 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
31134
31135         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31136         edges.
31137
31138 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31139
31140         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31141         decl attribute.
31142
31143 2015-01-21  David Sherwood  <david.sherwood@arm.com>
31144             Tejas Belagod <Tejas.Belagod@arm.com>
31145
31146         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31147         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31148         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31149         Removed.
31150
31151 2015-01-21  David Sherwood  <david.sherwood@arm.com>
31152             Tejas Belagod <Tejas.Belagod@arm.com>
31153
31154         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31155         (aarch64_reverse_mask): New decls.
31156         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31157         (insn_count): New mode_attr.
31158         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31159         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31160         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31161         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31162         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31163         (aarch64_simd_st4): New patterns.
31164         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31165         (aarch64_reverse_mask): New functions.
31166
31167 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
31168
31169         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31170         Declare.
31171         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31172         addressing modes for BE.
31173         (aarch64_print_operand): Add 'R' specifier.
31174         (aarch64_simd_disambiguate_copy): Delete.
31175         (aarch64_simd_emit_reg_reg_move): New function.
31176         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31177         in define_splits for structural moves.
31178         (mov<mode>): Use less restrictive predicates.
31179         (*aarch64_mov<mode>): Simplify and only allow for LE.
31180         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31181
31182 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
31183
31184         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31185
31186 2015-01-21  Richard Henderson  <rth@redhat.com>
31187
31188         PR target/64669
31189         * ccmp.c (used_in_cond_stmt_p): Remove.
31190         (expand_ccmp_expr): Don't use it.
31191
31192 2015-01-21  Nick Clifton  <nickc@redhat.com>
31193
31194         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31195         PARALLELs.
31196
31197 2015-01-21  Richard Biener  <rguenther@suse.de>
31198
31199         PR middle-end/64313
31200         * tree-core.h (builtin_info, builtin_info_type): Turn from
31201         an object with two arrays into an array of an object with
31202         decl and two flags, implicit_p and declared_p.
31203         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31204         set_builtin_decl, set_builtin_decl_implicit_p,
31205         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31206         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31207         * builtins.c (builtin_info): Adjust.
31208         * gimplify.c (gimplify_addr_expr): References to builtins
31209         that have been declared by the user makes them eligible for
31210         use by the compiler.  Call set_builtin_decl_implicit_p on them.
31211
31212 2015-01-20  Jeff Law  <law@redhat.com>
31213
31214         PR target/59946
31215         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31216         allow pc-relative addresses in operand predicates or constraints.
31217
31218 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
31219
31220         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31221         neon on aarch32 processors for stringops.
31222
31223 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31224
31225         PR ipa/63576
31226         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31227
31228 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31229
31230         PR lto/45375
31231         * ipa-inline.c: Include lto-streamer.h
31232         (report_inline_failed_reason): Output source file differences and
31233         flags on optimization/target node mismatch.
31234         (can_inline_edge_p): Consider caller to be the outer inline function;
31235         be less restrictive about matching opimize and optimize_size attributes.
31236         (inline_account_function_p): Break out from ...
31237         (inline_small_functions): ... here.
31238         * ipa-inline-transform.c (clone_inlined_nodes): Use
31239         inline_account_function_p.
31240         (inline_call): Use optimize attribution; use inline_account_function_p.
31241         (inline_transform): Use opt_for_fn.
31242         * ipa-inline.h (inline_account_function_p): Declare.
31243
31244 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
31245
31246         PR debug/64663
31247         * dwarf2out.c (decl_piece_node): Don't put bitsize into
31248         mode if bitsize <= 0.
31249         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31250         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31251         sizes and positions.
31252
31253 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
31254
31255         * config/nios2/nios2.c (nios2_asm_file_end): Implement
31256         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31257         needed.
31258         (TARGET_ASM_FILE_END): Define.
31259
31260 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31261
31262         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31263         (struct tune_params): Use the enum.
31264         * arm.c (arm_*_tune): Update.
31265         (arm_option_override): Update.
31266
31267 2015-01-20  Richard Biener  <rguenther@suse.de>
31268
31269         PR ipa/64684
31270         * ipa-reference.c (add_static_var): Inline ...
31271         (analyze_function): ... here after splitting out from ...
31272         (is_proper_for_analysis): ... this.
31273
31274 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
31275
31276         PR target/64149
31277         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31278         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31279         replace the conditional with it's true branch.
31280         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31281         (arm_lra_p): Remove.
31282
31283 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
31284
31285         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31286
31287 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31288
31289         * config/tilegx/mul-tables.c: Move symtab.h include after
31290         coretypes.h include.
31291         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31292         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31293         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31294         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31295         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31296
31297 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
31298
31299         PR bootstrap/64676
31300         Revert:
31301         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31302
31303         PR rtl-optimization/64081
31304         * loop-iv.c (def_pred_latch_p): New function.
31305         (latch_dominating_def): Allow specific cases with non-single
31306         definitions.
31307         (iv_get_reaching_def): Likewise.
31308         (check_complex_exit_p): New function.
31309         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31310         with exits not executing on any iteration.
31311
31312 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31313
31314         PR lto/45375
31315         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31316         to set branch cost.
31317
31318 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31319
31320         PR lto/45375
31321         * i386.c (gate): Check flag_expensive_optimizations and
31322         optimize_size.
31323         (ix86_option_override_internal): Drop optimize_size condition
31324         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31325         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
31326         MASK_PREFER_AVX128.
31327         (ix86_avx256_split_vector_move_misalign,
31328         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
31329         * sse.md (all uses of TARGET_PREFER_AVX128): Add
31330         optimize_insn_for_speed_p check.
31331
31332 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
31333
31334         * config/mips/mips.h (FP_ASM_SPEC): New define.
31335         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
31336         instead.
31337
31338 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
31339
31340         PR target/53988
31341         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31342         nullptr for insn when reaching the first insn.
31343         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
31344         (sh_insn_operands_modified_between_p): Add nullptr check.
31345         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
31346         sign extending mem load if the insn contains any UNSPEC or
31347         UNSPEC_VOLATILE.
31348
31349 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31350
31351         * params.def (inline-unit-growth): Drop to 15%.
31352         * invoke.texi (inline-unit-growth): Document change.
31353
31354 2015-01-19  Martin Liska  <mliska@suse.cz>
31355
31356         PR ipa/64668
31357         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31358         function for second argument of OBJ_TYPE_REF.
31359
31360 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31361
31362         PR ipa/64218
31363         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31364         whether function is an alias.
31365
31366 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31367
31368         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31369         cases.
31370
31371 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
31372
31373         PR rtl-optimization/64671
31374         * lra-remat.c (operand_to_remat): Don't consider jump and call
31375         insns.
31376
31377 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
31378
31379         PR target/59828
31380         * config/rs6000/default64.h: Include rs6000-cpus.def.
31381         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31382         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31383         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31384         and POWER8.
31385         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31386         POWER8.
31387         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31388         pseudo-op to specify assembler dialect.
31389
31390 2015-01-19  Martin Liska  <mliska@suse.cz>
31391
31392         PR ipa/64664
31393         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31394         Handle safe potentially removed nodes during filtering.
31395
31396 2015-01-19  Martin Liska  <mliska@suse.cz>
31397
31398         * doc/extend.texi (no_icf): Add new attribute description.
31399         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31400         where the pass attempts to merge a function with no_icf attribute.
31401
31402 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31403
31404         PR target/64532
31405         * doc/md.texi (ARM Options): Document register constraints.
31406
31407 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
31408             Andrew Pinski  <apinski@cavium.com>
31409
31410         PR target/64304
31411         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31412         (ashl<mode>3): Don't expand if operands[2] is not constant.
31413
31414 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31415
31416         PR target/64448
31417         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31418         Match xor-and-xor RTL pattern.
31419
31420 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31421
31422         PR rtl-optimization/64081
31423         * loop-iv.c (def_pred_latch_p): New function.
31424         (latch_dominating_def): Allow specific cases with non-single
31425         definitions.
31426         (iv_get_reaching_def): Likewise.
31427         (check_complex_exit_p): New function.
31428         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31429         with exits not executing on any iteration.
31430
31431 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
31432
31433         * common.opt (fgraphite): Fix a typo.
31434
31435 2015-01-19  Felix Yang  <felix.yang@huawei.com>
31436
31437         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31438         pattern.
31439         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31440         uminp, smax_nanp, smin_nanp): New builtins.
31441         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31442         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31443         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31444         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31445         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31446         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31447         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31448         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31449         vpminnms_f32): Rewrite using builtin functions.
31450
31451 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
31452
31453         PR libgomp/64625
31454         * omp-low.c (offload_symbol_decl): Remove variable.
31455         (get_offload_symbol_decl): Remove function.
31456         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31457         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31458         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31459         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31460         BUILT_IN_GOACC_UPDATE don't pass it at all.
31461
31462 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31463
31464         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31465         callers.
31466
31467 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31468
31469         * ipa-chkp.c (chkp_produce_thunks): Add early param
31470         to split thunks production into two passes.  Keep
31471         'always_inline' function bodies after the first pass.
31472         (pass_data_ipa_chkp_early_produce_thunks): New.
31473         (pass_ipa_chkp_early_produce_thunks): New.
31474         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31475         chkp_produce_thunks signature.
31476         (make_pass_ipa_chkp_early_produce_thunks): New.
31477         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31478         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31479         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31480
31481 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31482
31483         * cgraph.c (cgraph_node::dump): Dump profile flags.
31484
31485 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
31486
31487         PR target/64652
31488         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31489         reg appear first in the parallel.
31490
31491 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31492
31493         * ipa-reference.c (set_reference_optimization_summary,
31494         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31495         disabled.
31496         (ignore_module_statics): New static var.
31497         (propagate_bits): If ipa-reference is disabled, do not look into local
31498         properties.
31499         (analyze_function): Disable analysis when ipa_reference is disabled.
31500         (generate_summary): Do not dump when reference is disabled;
31501         collect vars accessed from functions with ipa-reference disabled.
31502         (get_read_write_all_from_node): When ipa-reference is disabled, use the
31503         node flags.
31504         (gate): Enable for LTO.
31505         (ignore_edge_p): New function.
31506         (propagate): Skip functions w/o ipa-reference analysis.
31507         * optc-save-gen.awk: Handle optimize_debug correctly.
31508         * opth-gen.awk: Likewise.
31509         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31510         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31511         fira-share-save-slots, fira-share-spill-slots,
31512         fmodulo-sched-allow-regmoves, fpartial-inlining,
31513         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31514         ftracer, ftree-parallelize-loops, fassociative-math,
31515         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31516         Optimization
31517         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31518         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31519         Optimization.
31520         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31521         Fix for IPA.
31522
31523 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31524
31525         PR ipa/64378
31526         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31527         flag correctly.
31528         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31529
31530 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
31531
31532         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31533         Remove duplicate option listings.
31534
31535 2015-01-18  Felix Yang  <felix.yang@huawei.com>
31536
31537         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31538         (autofdo_source_profile::get_callsite_total_count,
31539         function_instance::get_function_instance_by_decl,
31540         string_table::get_index, string_table::get_index_by_decl,
31541         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31542         Fix comment typos. Reformatting and minor code rearrangement.
31543
31544 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31545
31546         * config/rs6000/rs6000.md (probe_stack): Delete.
31547         (probe_stack_address): New.
31548
31549 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31550
31551         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31552         to test for 32-bit ABIs, not !TARGET_POWERPC64.
31553
31554 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31555
31556         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31557         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
31558         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
31559         snafu.
31560         (rs6000_libcall_value): Use the new function.
31561
31562 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
31563
31564         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31565
31566 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
31567
31568         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31569         implement a more precise life analysis for it during backward scan.
31570
31571 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
31572
31573         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31574
31575 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
31576
31577         PR rtl-optimization/52773
31578         * calls.c (emit_library_call_value): When pushing arguments use
31579         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31580         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
31581         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31582
31583 2015-01-17  Jeff Law  <law@redhat.com>
31584
31585         PR rtl-optimization/32790
31586         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31587         not ZERO_EXTEND in SET_DESTs.
31588
31589 2015-01-17  Alan Modra  <amodra@gmail.com>
31590
31591         * cprop.c (do_local_cprop): Revert last change.
31592
31593 2015-01-16  DJ Delorie  <dj@redhat.com>
31594             Nick Clifton  <nickc@redhat.com>
31595
31596         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31597         (addhi3_real): Likewise.  Fix [HL+0] syntax.
31598         (subqi3_real): Likewise.
31599         (subhi3_real): Likewise.
31600         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
31601         (cbranchhi4_real): Likewise.
31602         (cbranchhi4_real_inverted): Likewise.
31603         (cbranchsi4_real_lt): Likewise.
31604         (cbranchsi4_real_ge): Likewise.
31605         (cbranchsi4_real_ge): Likewise.
31606         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31607         (sub<mode>3_virt): Likewise.
31608         (cbranchqi4_virt): Likewise.
31609         (cbranchhi4_virt): Likewise.
31610         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31611         always use '[reg+imm]' even when imm is zero.
31612         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31613         (rl78_general_operand): New.
31614         (rl78_nonimmediate_operand): New.
31615         (rl78_nonfar_operand): Use them.
31616         (rl78_nonfar_nonimm_operand): Likewise.
31617         (rl78_stack_based_mem): Fix.
31618         * config/rl78/constraints.md (Ibqi): New.
31619         (IBqi): New.
31620         (Wsa): New.
31621         (Wsf): New.
31622         (Cs1): Fix.
31623         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31624         (iorqi3): Likewise.
31625         (xorqi3): Likewise.
31626         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31627
31628         * config/rl78/constrains (Qs8): New constraint.
31629         * config/rl78/rl78.c (rl78_flags_already_set): New function.
31630         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31631         * config/rl78/rl78-real.md (update_Z): New attribute.
31632         Update patterns to set it.
31633         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31634         shorter compare and branch sequence can be used.
31635         (cbranchhi4_real): Likewise.
31636         (cbranchhi4_real_inverted): Likewise.
31637
31638         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31639         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31640         address space.
31641         * config/rl78/rl78.c (rl78_get_name_encoding): New.
31642         (rl78_option_override): Allow -mes0 only if C.
31643         (characterize_address): Support subregs of symbol_refs.
31644         (rl78_addr_space_address_mode): Move.  Add __near.
31645         (rl78_far_p): Likewise.
31646         (rl78_addr_space_pointer_mode): Likewise.
31647         (rl78_as_legitimate_address): Likewise.
31648         (rl78_addr_space_subset_p): Likewise.
31649         (rl78_addr_space_convert): Likewise.
31650         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31651         symbols with -mes0.
31652         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
31653         addressing.
31654         (rl78_alloc_physical_registers_op1): Change logic to prefer
31655         symbol[BC] addressing.
31656         (frodata_section): New.
31657         (rl78_asm_init_sections): Initialize it.
31658         (rl78_select_section): Put __far readonly symbols in .frodata.
31659         (rl78_make_type_far): New.
31660         (rl78_insert_attributes): Force all readonly symbols to be
31661         __far when -mes0.
31662         (rl78_asm_out_integer): New.
31663         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31664         * config/rl78/rl78.opt (-mes0): New.
31665
31666         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31667         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31668         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31669         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31670         (rl78_saddr_p): New.
31671         (rl78_output_aligned_common): New.
31672         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31673         (rl78_handle_saddr_attribute): New.
31674         (rl78_handle_naked_attribute): New.
31675         (rl78_attribute_table): Add saddr.
31676         (rl78_print_operand_1): Don't print '!' on saddr operands.
31677         (rl78_print_operand_1): Strip encodings.
31678         (rl78_sfr_p): New.
31679         (rl78_strip_name_encoding): New.
31680         (rl78_attrlist_to_encoding): New.
31681         (rl78_encode_section_info): New.
31682         (rl78_asm_init_sections): New.
31683         (rl78_select_section): New.
31684         (rl78_output_labelref): New.
31685         (rl78_output_aligned_common): New.
31686         (rl78_asm_out_integer): New.
31687         (rl78_asm_ctor_dtor): New.
31688         (rl78_asm_constructor): New.
31689         (rl78_asm_destructor): New.
31690
31691         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31692         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31693         (transcode_memory_rtx): Update.
31694         (rl78_expand_epilogue): Use A_REG instead of 0.
31695
31696 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31697
31698         * config/arm/arm-protos.h (struct tune_params): New field
31699         sched_autopref_queue_depth.
31700         * config/arm/arm.c (sched-int.h): Include header.
31701         (arm_first_cycle_multipass_dfa_lookahead_guard,)
31702         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31703         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31704         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31705         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31706         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31707         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31708         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31709         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
31710         * config/arm/t-arm (arm.o): Update.
31711         * haifa-sched.c (update_insn_after_change): Update.
31712         (rank_for_schedule): Use auto-prefetcher model, if requested.
31713         (autopref_multipass_init): New static function.
31714         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31715         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31716         variable for debug dumps.
31717         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31718         (autopref_multipass_dfa_lookahead_guard): New global function that
31719         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31720         (init_h_i_d): Update.
31721         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31722         * sched-int.h (enum autopref_multipass_data_status): New const enum.
31723         (autopref_multipass_data_): Structure for auto-prefetcher data.
31724         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31725         (struct _haifa_insn_data:autopref_multipass_data): New field.
31726         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31727         (autopref_multipass_dfa_lookahead_guard): Declare.
31728
31729 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31730
31731         * rtlanal.c (get_base_term): Handle SCRATCH.
31732
31733 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31734
31735         * config/aarch64/aarch64.c
31736         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31737         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31738         * config/arm/arm.c
31739         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31740         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31741
31742 2015-01-17  Alan Modra  <amodra@gmail.com>
31743
31744         * cprop.c (do_local_cprop): Disallow replacement of fixed
31745         hard registers.
31746
31747 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31748
31749         PR target/62066
31750         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31751         early return 0.
31752
31753 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31754
31755         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31756         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31757
31758 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31759
31760         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31761         * config/arm/thumb1.md: ... Here.
31762
31763 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31764
31765         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31766         TImode for TARGET_32BIT.
31767
31768 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31769
31770         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31771         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31772         as ...
31773         (rs6000_abi_word_mode): New function.
31774
31775 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31776
31777         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31778         instead of UNITS_PER_WORD to describe the size of stack slots.
31779
31780 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31781
31782         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31783         as rs6000_promote_function_mode.  Move comment to there.
31784         (rs6000_promote_function_mode): New function.
31785
31786 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31787
31788         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31789         -mpowerpc64 is active.
31790
31791 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31792
31793         PR middle-end/64353
31794         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31795         virtuals on start.
31796
31797 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31798
31799         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31800         introduced in revision 219724.
31801
31802 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31803             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31804
31805         PR target/64263
31806         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31807         destination is not a GP reg.
31808         (*movdi_aarch64): Likewise.
31809
31810 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
31811
31812         PR target/64623
31813         * config/rs6000/default64.h: Revert ISA change.
31814
31815 2015-01-16  Richard Biener  <rguenther@suse.de>
31816
31817         PR middle-end/64614
31818         * tree-ssa-uninit.c: Include tree-cfg.h.
31819         (MAX_SWITCH_CASES): New define.
31820         (convert_control_dep_chain_into_preds): Handle switch statements.
31821         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31822         (normalize_one_pred_1): Do not split bit-manipulations.
31823         Record (x & CST).
31824
31825 2015-01-16  Richard Biener  <rguenther@suse.de>
31826
31827         PR tree-optimization/64568
31828         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31829         complex load rewriting for TARGET_MEM_REFs.
31830
31831 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
31832
31833         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31834
31835 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
31836
31837         PR target/64149
31838         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31839         variable.
31840         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31841         (aarch64_lra_p): Remove.
31842
31843 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31844
31845         PR target/64363
31846         * ipa-chkp.h (chkp_instrumentable_p): New.
31847         * ipa-chkp.c: Include tree-inline.h.
31848         (chkp_instrumentable_p): New.
31849         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31850         Fix processing of not instrumentable functions.
31851         (chkp_versioning): Use chkp_instrumentable_p. Warn about
31852         not instrumentable functions.
31853         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31854         chkp_instrumentable_p.
31855         * tree-inline.h (copy_forbidden): New.
31856         * tree-inline.c (copy_forbidden): Not static anymore.
31857
31858 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31859
31860         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31861         ptr1, ptr2 unused.
31862
31863 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31864
31865         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31866         type OP_OUT to OP_INOUT.
31867
31868 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31869
31870         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31871         (high x) y) to y if x and y have the same base.
31872
31873 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31874
31875         * config/arm/cortex-a57.md: New.
31876         * config/aarch64/aarch64.md: Include it.
31877         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31878         * config/aarch64/aarch64-tune.md: Regenerate.
31879
31880 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31881
31882         PR target/64015
31883         * ccmp.c (expand_ccmp_next): New function.
31884         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31885         and compare insn sequence.
31886         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31887         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31888         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31889         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31890         (*ccmp_ior): Changed to ccmp_ior<mode>.
31891         (cmp<mode>): New pattern.
31892         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31893         parameters.
31894         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31895
31896 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
31897
31898         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31899         _mm256_bsrli_epi128): New.
31900         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31901
31902 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31903
31904         * expmed.c (store_bit_field_using_insv): Improve warning message.
31905         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31906
31907 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31908
31909         PR rtl-optimization/64011
31910         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31911         there is partial overflow.
31912
31913 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31914
31915         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31916         prototype.
31917         (nds32_expand_epilogue_v3pop): Likewise.
31918         * config/nds32/nds32.md (sibcall): Define this for sibling call
31919         optimization.
31920         (sibcall_register): Likewise.
31921         (sibcall_immediate): Likewise.
31922         (sibcall_value): Likewise.
31923         (sibcall_value_register): Likewise.
31924         (sibcall_value_immediate): Likewise.
31925         (sibcall_epilogue): Likewise.
31926         (epilogue): Pass false to indicate this is not a sibcall epilogue.
31927         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31928         (nds32_expand_epilogue_v3pop): Likewise.
31929
31930 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31931
31932         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31933         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31934         (return_internal): New.
31935         (return): Define this named pattern.
31936         (simple_return): Define this named pattern.
31937         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31938         pattern instead of unspec_volatile_func_return.
31939         (nds32_expand_epilogue_v3pop): Likewise.
31940         (nds32_can_use_return_insn): New function.
31941
31942 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31943
31944         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31945         * config/nds32/nds32.md (pop25return): New.
31946         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31947         pop25return pattern.
31948
31949 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31950
31951         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31952         -mforbid-fp-as-gp, and -mex9 options.
31953
31954 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31955
31956         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31957         remove -mgp-direct option.
31958
31959 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31960
31961         * doc/invoke.texi (--param early-inlining-insns): Update default value.
31962         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31963
31964 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31965
31966         * ipa-inline.c (inline_small_functions): Work around hints
31967         cache issue.
31968
31969 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
31970
31971         PR target/59710
31972         * doc/invoke.texi (Option Summary): Document new Nios II
31973         -mgpopt= syntax.
31974         (Nios II Options): Likewise.
31975         * config/nios2/nios2.opt: Add -mgpopt= option support.
31976         Modify existing -mgpopt and -mno-gpopt options to be aliases.
31977         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31978         * config/nios2/nios2.c (nios2_option_override): Adjust
31979         -mgpopt defaulting.
31980         (nios2_in_small_data_p): Return true for explicit small data
31981         sections even with -G0.
31982         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31983         option choices.
31984
31985 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31986
31987         PR ipa/64612
31988         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31989         of comdat locals.
31990         (inline_call): Fix removal of aliases.
31991
31992 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
31993
31994         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31995         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31996         * opts.c (common_handle_option): Add -fsanitize=vptr.
31997         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31998         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31999         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
32000         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
32001         (ubsan_expand_vptr_ifn): New prototype.
32002         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
32003         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
32004         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
32005         expand_LOOP_VECTORIZED): Make argument nameless, remove
32006         ATTRIBUTE_UNUSED.
32007         (expand_UBSAN_VPTR): New function.
32008         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
32009         in fn spec.
32010         (UBSAN_VPTR): New internal function.
32011         * sanopt.c (tree_map_traits): Renamed to ...
32012         (sanopt_tree_map_traits): ... this.
32013         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
32014         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
32015         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
32016         (maybe_optimize_ubsan_vptr_ifn): New function.
32017         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
32018         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
32019         -fsanitize=vptr.
32020         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
32021         internal calls like pure functions for aliasing, even when they
32022         have other side-effects that prevent making them ECF_PURE.
32023         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
32024         (ubsan_expand_vptr_ifn): New function.
32025
32026 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
32027
32028         PR rtl-optimization/64110
32029         * stmt.c (parse_output_constraint): Process '^' and '$'.
32030         (parse_input_constraint): Ditto.
32031         * lra-constraints.c (process_alt_operands): Process the new
32032         constraints.
32033         * ira-costs.c (record_reg_classes): Process the new constraint
32034         '^'.
32035         * genoutput.c (indep_constraints): Add '^' and '$'.
32036         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
32037         * doc/md.texi: Add description of the new constraints.
32038
32039 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
32040             Bernd Schmidt  <bernds@codesourcery.com>
32041             Cesar Philippidis  <cesar@codesourcery.com>
32042             James Norris  <jnorris@codesourcery.com>
32043             Tom de Vries  <tom@codesourcery.com>
32044             Ilmir Usmanov  <i.usmanov@samsung.com>
32045             Dmitry Bocharnikov  <dmitry.b@samsung.com>
32046             Evgeny Gavrin  <e.gavrin@samsung.com>
32047             Jakub Jelinek  <jakub@redhat.com>
32048
32049         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
32050         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32051         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32052         New function types.
32053         * builtins.c: Include "gomp-constants.h".
32054         (expand_builtin_acc_on_device): New function.
32055         (expand_builtin, is_inexpensive_builtin): Handle
32056         BUILT_IN_ACC_ON_DEVICE.
32057         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
32058         New macros.
32059         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
32060         flag_openmp.
32061         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
32062         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
32063         i386/intelmic-offload.h.
32064         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
32065         to libgomp and its dependencies.
32066         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
32067         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
32068         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
32069         * config/ia64/hpux.h (LIB_SPEC): Likewise.
32070         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32071         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32072         * doc/generic.texi: Update for OpenACC changes.
32073         * doc/gimple.texi: Likewise.
32074         * doc/invoke.texi: Likewise.
32075         * doc/sourcebuild.texi: Likewise.
32076         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32077         GF_OMP_FOR_KIND_OACC_LOOP.
32078         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32079         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32080         GF_OMP_TARGET_KIND_OACC_UPDATE,
32081         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32082         Dump more data.
32083         * gimple.c: Update comments for OpenACC changes.
32084         * gimple.def: Likewise.
32085         * gimple.h: Likewise.
32086         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32087         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32088         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32089         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32090         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32091         appropriate place.
32092         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32093         * gimplify.c: Include "gomp-constants.h".
32094         Update comments for OpenACC changes.
32095         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32096         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32097         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32098         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32099         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32100         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32101         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32102         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32103         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32104         OMP_CLAUSE_SEQ.
32105         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32106         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
32107         OMP_CLAUSE_SET_MAP_KIND.
32108         (gimplify_oacc_cache): New function.
32109         (gimplify_omp_for): Handle OACC_LOOP.
32110         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32111         OACC_DATA.
32112         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32113         OACC_EXIT_DATA, OACC_UPDATE.
32114         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32115         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32116         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32117         (gimplify_body): Consider flag_openacc next to flag_openmp.
32118         * lto-streamer-out.c: Include "gomp-constants.h".
32119         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32120         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32121         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32122         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32123         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32124         (BUILT_IN_ACC_ON_DEVICE): New builtins.
32125         * omp-low.c: Include "gomp-constants.h".
32126         Update comments for OpenACC changes.
32127         (struct omp_context): Add reduction_map, gwv_below, gwv_this
32128         members.
32129         (extract_omp_for_data, use_pointer_for_field, install_var_field)
32130         (new_omp_context, delete_omp_context, scan_sharing_clauses)
32131         (create_omp_child_function, scan_omp_for, scan_omp_target)
32132         (check_omp_nesting_restrictions, lower_reduction_clauses)
32133         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32134         Update for OpenACC changes.
32135         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32136         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32137         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32138         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32139         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32140         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
32141         OMP_CLAUSE_MAP_*.
32142         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32143         Handle GF_OMP_FOR_KIND_OACC_LOOP.
32144         (expand_omp_target, lower_omp_target): Handle
32145         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32146         GF_OMP_TARGET_KIND_OACC_UPDATE,
32147         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32148         GF_OMP_TARGET_KIND_OACC_DATA.
32149         (pass_expand_omp::execute, execute_lower_omp)
32150         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32151         flag_openmp.
32152         (offload_symbol_decl): New variable.
32153         (oacc_get_reduction_array_id, oacc_max_threads)
32154         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32155         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32156         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32157         (oacc_gimple_assign, oacc_initialize_reduction_data)
32158         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32159         functions.
32160         (is_targetreg_ctx): Remove function.
32161         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32162         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32163         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32164         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32165         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32166         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32167         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32168         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32169         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32170         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32171         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32172         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32173         * tree-core.h: Update comments for OpenACC changes.
32174         (enum omp_clause_map_kind): Remove.
32175         (struct tree_omp_clause): Change type of map_kind member from enum
32176         omp_clause_map_kind to unsigned char.
32177         * tree-inline.c: Update comments for OpenACC changes.
32178         * tree-nested.c: Likewise.  Include "gomp-constants.h".
32179         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32180         (convert_tramp_reference_stmt, convert_gimple_call): Update for
32181         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
32182         OMP_CLAUSE_SET_MAP_KIND.
32183         * tree-pretty-print.c: Include "gomp-constants.h".
32184         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32185         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32186         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32187         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32188         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32189         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
32190         instead of OMP_CLAUSE_MAP_*.
32191         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32192         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32193         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32194         * tree-streamer-in.c: Include "gomp-constants.h".
32195         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32196         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
32197         * tree-streamer-out.c: Include "gomp-constants.h".
32198         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32199         OMP_CLAUSE_MAP_*.
32200         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32201         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32202         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32203         * tree.c (omp_clause_num_ops): Update accordingly.
32204         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32205         Likewise.
32206         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32207         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32208         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32209         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32210         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32211         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32212         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32213         (OMP_CLAUSE_SET_MAP_KIND): New macro.
32214         * varpool.c (varpool_node::get_create): Consider flag_openacc next
32215         to flag_openmp.
32216         * config/i386/intelmic-offload.h: New file.
32217         * config/nvptx/offload.h: Likewise.
32218
32219 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32220
32221         * explow.h: Remove duplicate contents.
32222         * dojump.h: Likewise.
32223
32224 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
32225
32226         * arm.c (arm_xgene_tune): Add default initializer for instruction
32227         fusion.
32228
32229 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
32230
32231         PR ipa/64068
32232         PR ipa/64559
32233         * ipa.c (symbol_table::remove_unreachable_nodes):
32234         Do not put abstract origins into boundary.
32235
32236 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
32237
32238         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32239         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32240
32241 2015-01-15  Steve Ellcey  <sellcey@mips.com>
32242
32243         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32244         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32245         builtins.def, and chkp-builtins.def.
32246
32247 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
32248
32249         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32250         ISA 2.7 (POWER8).
32251
32252 2015-01-15  Richard Biener  <rguenther@suse.de>
32253
32254         PR tree-optimization/61743
32255         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32256         information on PHIs for some simple cases.
32257
32258 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32259
32260         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32261         Include xgene1.md.
32262         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32263         * config/arm/arm-cores.def (xgene1): New entry.
32264         * config/arm/arm-tables.opt: Regenerate.
32265         * config/arm/arm-tune.md: Regenerate.
32266         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32267
32268 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32269
32270         * tree-if-conv.c: Include hash-map.h.
32271         (aggressive_if_conv): New variable.
32272         (fold_build_cond_expr): Add simplification of non-zero condition.
32273         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32274         destination block is not always executed.
32275         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32276         than two predecessors if AGGRESSIVE_IF_CONV is true.
32277         (if_convertible_stmt_p): Fix commentary.
32278         (all_preds_critical_p): New function.
32279         (has_pred_critical_p): New function.
32280         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32281         BB can have more than two predecessors and all incoming edges can be
32282         critical.
32283         (predicate_bbs): Skip predication for loop exit block, use build2_loc
32284         to compute predicate for true edge.
32285         (find_phi_replacement_condition): Delete this function.
32286         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32287         Allow interchange PHI arguments if EXTENDED is false.
32288         Change check that block containing reduction statement candidate
32289         is predecessor of phi-block since phi may have more than two arguments.
32290         (phi_args_hash_traits): New helper structure.
32291         (struct phi_args_hash_traits): New type.
32292         (phi_args_hash_traits::hash): New function.
32293         (phi_args_hash_traits::equal_keys): New function.
32294         (gen_phi_arg_condition): New function.
32295         (predicate_scalar_phi): Add handling of phi nodes with more than two
32296         arguments, delete COND and TRUE_BB arguments, insert body of
32297         find_phi_replacement_condition to predicate ordinary phi nodes.
32298         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32299         delete call of find_phi_replacement_condition and invoke
32300         predicate_scalar_phi with two arguments.
32301         (insert_gimplified_predicates): Add assert that non-predicated block
32302         don't have statements to insert.
32303         (ifcvt_split_critical_edges): New function.
32304         (ifcvt_split_def_stmt): Likewise.
32305         (ifcvt_walk_pattern_tree): Likewise.
32306         (stmt_is_root_of_bool_pattern): Likewise.
32307         (ifcvt_repair_bool_pattern): Likewise.
32308         (ifcvt_local_dce): Likewise.
32309         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32310         is copy of inner or outer loop force_vectorize field, invoke
32311         ifcvt_split_critical_edges, ifcvt_local_dce and
32312         ifcvt_repair_bool_pattern for aggressive if-conversion.
32313
32314 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
32315
32316         * config/aarch64/aarch64.md: Include xgene1.md.
32317         * config/aarch64/xgene1.md: New file.
32318
32319 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32320
32321         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32322         xgene1 (APM XGene-1) core definition.
32323         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32324         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32325         * doc/invoke.texi: Document -mcpu=xgene1.
32326
32327 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32328
32329         * dojump.h: New header file.
32330         * explow.h: Likewise.
32331         * expr.h: Remove includes.
32332         Move expmed.c prototypes to expmed.h.
32333         Move dojump.c prototypes to dojump.h.
32334         Move alias.c prototypes to alias.h.
32335         Move explow.c prototypes to explow.h.
32336         Move calls.c prototypes to calls.h.
32337         Move emit-rtl.c prototypes to emit-rtl.h.
32338         Move varasm.c prototypes to varasm.h.
32339         Move stmt.c prototypes to stmt.h.
32340         (saved_pending_stack_adjust): Move to dojump.h.
32341         (adjust_address): Move to explow.h.
32342         (adjust_address_nv): Move to emit-rtl.h.
32343         (adjust_bitfield_address): Likewise.
32344         (adjust_bitfield_address_size): Likewise.
32345         (adjust_bitfield_address_nv): Likewise.
32346         (adjust_automodify_address_nv): Likewise.
32347         * explow.c (expr_size): Move to expr.c.
32348         (int_expr_size): Likewise.
32349         (tree_expr_size): Likewise.
32350         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32351         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32352         * genemit.c (main): Generate includes statistics.h, real.h,
32353         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32354         stmt.h.
32355         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32356         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32357         explow.h, emit-rtl.h, stmt.h.
32358         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32359         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32360         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32361         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32362         emit-rtl.h, varasm.h, stmt.h.
32363         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32364         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32365         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32366         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32367         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32368         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32369         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32370         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32371         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32372         tm.h tree.h varasm.h vec.h wide-int.h.
32373         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32374         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32375         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32376         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32377         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32378         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32379         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32380         * loop-iv.c: Likewise.
32381         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32382         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32383         statistics.h stmt.h tree.h varasm.h wide-int.h.
32384         * lra-constraints.c: Likewise.
32385         * lra-eliminations.c: Likewise.
32386         * lra-lives.c: Likewise.
32387         * lra-remat.c: Likewise.
32388         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32389         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32390         statistics.h stmt.h tree.h varasm.h wide-int.h.
32391         * hw-doloop.c: Likewise.
32392         * ira-color.c: Likewise.
32393         * ira-emit.c: Likewise.
32394         * loop-doloop.c: Likewise.
32395         * loop-invariant.c: Likewise.
32396         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32397         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32398         statistics.h stmt.h tree.h varasm.h wide-int.h.
32399         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32400         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32401         statistics.h stmt.h tree.h varasm.h wide-int.h.
32402         * combine-stack-adj.c: Likewise.
32403         * cse.c: Likewise.
32404         * ddg.c: Likewise.
32405         * ifcvt.c: Likewise.
32406         * ira-costs.c: Likewise.
32407         * jump.c: Likewise.
32408         * lra-coalesce.c: Likewise.
32409         * lra-spills.c: Likewise.
32410         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32411         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32412         stmt.h varasm.h wide-int.h.
32413         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32414         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32415         varasm.h.
32416         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32417         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32418         statistics.h stmt.h varasm.h wide-int.h.
32419         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32420         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32421         varasm.h wide-int.h.
32422         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32423         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32424         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32425         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32426         statistics.h stmt.h.
32427         * config/tilepro/tilepro.c: Likewise.
32428         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32429         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32430         * config/pdp11/pdp11.c: Likewise.
32431         * config/xtensa/xtensa.c: Likewise.
32432         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32433         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32434         varasm.h.
32435         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32436         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32437         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32438         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32439         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32440         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32441         * rtl-chkp.c: Likewise.
32442         * tree-chkp-opt.c: Likewise.
32443         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32444         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32445         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32446         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32447         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32448         statistics.h stmt.h.
32449         * tree-vect-data-refs.c: Likewise.
32450         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32451         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32452         rtl.h statistics.h stmt.h varasm.h.
32453         * internal-fn.c: Likewise.
32454         * ipa-icf-gimple.c: Likewise.
32455         * lto-section-out.c: Likewise.
32456         * tree-data-ref.c: Likewise.
32457         * tree-nested.c: Likewise.
32458         * tree-outof-ssa.c: Likewise.
32459         * tree-predcom.c: Likewise.
32460         * tree-pretty-print.c: Likewise.
32461         * tree-scalar-evolution.c: Likewise.
32462         * tree-ssa-strlen.c: Likewise.
32463         * tree-vect-loop.c: Likewise.
32464         * tree-vect-patterns.c: Likewise.
32465         * tree-vect-slp.c: Likewise.
32466         * tree-vect-stmts.c: Likewise.
32467         * tsan.c: Likewise.
32468         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32469         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32470         stmt.h.
32471         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32472         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32473         statistics.h stmt.h varasm.h.
32474         * loop-unroll.c: Likewise.
32475         * ubsan.c: Likewise.
32476         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32477         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32478         stmt.h varasm.h.
32479         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32480         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32481         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32482         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32483         statistics.h stmt.h.
32484         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32485         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32486         statistics.h stmt.h varasm.h.
32487         * gimple-match-head.c: Likewise.
32488         * lto-cgraph.c: Likewise.
32489         * lto-section-in.c: Likewise.
32490         * lto-streamer-in.c: Likewise.
32491         * lto-streamer-out.c: Likewise.
32492         * tree-affine.c: Likewise.
32493         * tree-cfg.c: Likewise.
32494         * tree-cfgcleanup.c: Likewise.
32495         * tree-if-conv.c: Likewise.
32496         * tree-into-ssa.c: Likewise.
32497         * tree-ssa-alias.c: Likewise.
32498         * tree-ssa-copyrename.c: Likewise.
32499         * tree-ssa-dse.c: Likewise.
32500         * tree-ssa-forwprop.c: Likewise.
32501         * tree-ssa-live.c: Likewise.
32502         * tree-ssa-math-opts.c: Likewise.
32503         * tree-ssa-pre.c: Likewise.
32504         * tree-ssa-sccvn.c: Likewise.
32505         * tree-tailcall.c: Likewise.
32506         * tree-vect-generic.c: Likewise.
32507         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32508         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32509         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32510         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32511         * varasm.c: Likewise.
32512         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32513         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32514         varasm.h.
32515         * init-regs.c: Likewise.
32516         * ira.c: Likewise.
32517         * omp-low.c: Likewise.
32518         * stack-ptr-mod.c: Likewise.
32519         * tree-ssa-reassoc.c: Likewise.
32520         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32521         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32522         varasm.h.
32523         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32524         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32525         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32526         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32527         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32528         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32529         * tree-ssa-phiopt.c: Likewise.
32530         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32531         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32532         * config/fr30/fr30.c: Likewise.
32533         * config/frv/frv.c: Likewise.
32534         * expr.c: Likewise.
32535         * final.c: Likewise.
32536         * optabs.c: Likewise.
32537         * passes.c: Likewise.
32538         * simplify-rtx.c: Likewise.
32539         * stmt.c: Likewise.
32540         * toplev.c: Likewise.
32541         * var-tracking.c: Likewise.
32542         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32543         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32544         * lower-subreg.c: Likewise.
32545         * postreload-gcse.c: Likewise.
32546         * ree.c: Likewise.
32547         * reginfo.c: Likewise.
32548         * store-motion.c: Likewise.
32549         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32550         fixed-value.h hashtab.h real.h stmt.h varasm.h.
32551         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32552         fixed-value.h hashtab.h statistics.h stmt.h.
32553         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32554         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32555         * except.c: Likewise.
32556         * explow.c: Likewise.
32557         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32558         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32559         varasm.h.
32560         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32561         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32562         * tree-ssa-structalias.c: Likewise.
32563         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32564         fixed-value.h insn-config.h real.h statistics.h.
32565         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32566         fixed-value.h insn-config.h real.h statistics.h stmt.h.
32567         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32568         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32569         * cfgbuild.c: Likewise.
32570         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32571         fixed-value.h real.h rtl.h statistics.h stmt.h.
32572         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32573         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32574         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32575         fixed-value.h real.h statistics.h stmt.h.
32576         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32577         fixed-value.h real.h statistics.h stmt.h varasm.h.
32578         * cprop.c: Likewise.
32579         * modulo-sched.c: Likewise.
32580         * postreload.c: Likewise.
32581         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32582         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32583         statistics.h stmt.h varasm.h.
32584         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32585         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32586         rtl.h statistics.h stmt.h varasm.h.
32587         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32588         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32589         varasm.h.
32590         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32591         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32592         varasm.h.
32593         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32594         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32595         varasm.h.
32596         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32597         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32598         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32599         function.h real.h statistics.h stmt.h varasm.h.
32600         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32601         insn-config.h real.h statistics.h stmt.h.
32602         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32603         statistics.h stmt.h.
32604         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32605         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32606         statistics.h stmt.h varasm.h.
32607         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32608         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32609         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32610         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32611         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32612         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32613         statistics.h stmt.h varasm.h.
32614         * ipa-polymorphic-call.c: Likewise.
32615         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32616         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32617         statistics.h stmt.h.
32618         * config/c6x/c6x.c: Likewise.
32619         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32620         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32621         statistics.h stmt.h varasm.h.
32622         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32623         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32624         stmt.h varasm.h.
32625         * ipa-split.c: Likewise.
32626         * tree-eh.c: Likewise.
32627         * tree-ssa-dce.c: Likewise.
32628         * tree-ssa-loop-niter.c: Likewise.
32629         * tree-vrp.c: Likewise.
32630         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32631         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32632         stmt.h.
32633         * config/nds32/nds32-fp-as-gp.c: Likewise.
32634         * config/nds32/nds32-intrinsic.c: Likewise.
32635         * config/nds32/nds32-isr.c: Likewise.
32636         * config/nds32/nds32-md-auxiliary.c: Likewise.
32637         * config/nds32/nds32-memory-manipulation.c: Likewise.
32638         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32639         * config/nds32/nds32-predicates.c: Likewise.
32640         * config/nds32/nds32.c: Likewise.
32641         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32642         fixed-value.h hashtab.h real.h statistics.h.
32643         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32644         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32645         * config/arm/arm.c: Likewise.
32646         * config/avr/avr.c: Likewise.
32647         * config/bfin/bfin.c: Likewise.
32648         * config/h8300/h8300.c: Likewise.
32649         * config/i386/i386.c: Likewise.
32650         * config/ia64/ia64.c: Likewise.
32651         * config/iq2000/iq2000.c: Likewise.
32652         * config/m32c/m32c.c: Likewise.
32653         * config/m32r/m32r.c: Likewise.
32654         * config/m68k/m68k.c: Likewise.
32655         * config/mcore/mcore.c: Likewise.
32656         * config/mep/mep.c: Likewise.
32657         * config/mips/mips.c: Likewise.
32658         * config/mn10300/mn10300.c: Likewise.
32659         * config/moxie/moxie.c: Likewise.
32660         * config/pa/pa.c: Likewise.
32661         * config/rl78/rl78.c: Likewise.
32662         * config/rx/rx.c: Likewise.
32663         * config/s390/s390.c: Likewise.
32664         * config/sh/sh.c: Likewise.
32665         * config/sparc/sparc.c: Likewise.
32666         * config/spu/spu.c: Likewise.
32667         * config/stormy16/stormy16.c: Likewise.
32668         * config/v850/v850.c: Likewise.
32669         * config/vax/vax.c: Likewise.
32670         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32671         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32672         * config/msp430/msp430.c: Likewise.
32673         * predict.c: Likewise.
32674         * value-prof.c: Likewise.
32675         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32676         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32677         * config/microblaze/microblaze.c: Likewise.
32678         * config/nios2/nios2.c: Likewise.
32679         * config/rs6000/rs6000.c: Likewise.
32680         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32681         insn-config.h real.h rtl.h statistics.h stmt.h.
32682         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32683         insn-config.h real.h statistics.h stmt.h.
32684         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32685         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32686         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32687         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32688         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32689         fixed-value.h real.h statistics.h stmt.h.
32690         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32691         fixed-value.h statistics.h stmt.h.
32692         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32693         stmt.h.
32694
32695 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
32696
32697         * gengtype.c (create_user_defined_type): Workaround
32698         -Wmaybe-uninitialized false positives.
32699         * cse.c (fold_rtx): Likewise.
32700         * loop-invariant.c (gain_for_invariant): Likewise.
32701
32702 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
32703
32704         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32705         set the memory attributes in all cases but clear MEM_EXPR if need be.
32706
32707 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32708
32709         PR tree-optimization/64434
32710         * cfgexpand.c (reorder_operands): New function.
32711         (expand_gimple_basic_block): Insert call of reorder_operands if
32712         optimized is true.
32713
32714 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
32715
32716         * config/mips/micromips.md (*swp): Remove explicit parallel.
32717         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32718         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32719         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32720         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32721         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32722         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32723         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32724         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32725         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32726         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32727         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32728         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32729         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32730         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32731         (mips_wrdsp): Likewise.
32732         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32733         parallel.
32734         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32735         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32736         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32737         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32738         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32739         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32740         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32741         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32742         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32743
32744 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32745
32746         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32747         (mips_print_operand): Support 'y' to print exact log2 in decimal
32748         of a const_int.
32749         * config/mips/mips.h (ISA_HAS_LSA): New define.
32750         (ISA_HAS_DLSA): Likewise.
32751         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32752         * config/mips/predicates.md (const_immlsa_operand): New predicate.
32753
32754 2015-01-15  Martin Liska  <mliska@suse.cz>
32755
32756         PR target/64377
32757         * optc-save-gen.awk: Add support for array types.
32758
32759 2015-01-15  Richard Biener  <rguenther@suse.de>
32760
32761         PR middle-end/64365
32762         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32763         for MEM_REF access functions with the same base can never partially
32764         overlap.
32765
32766 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
32767
32768         * common.opt: New option -fstack-protector-explicit.
32769         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32770         (stack_protect_decl_phase): Handle stack_protect attribute for
32771         explicit stack protection requests.
32772         (expand_used_vars): Similarly.
32773         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32774         * doc/extend.texi: Add documentation for "stack_protect" attribute.
32775         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32776
32777 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
32778
32779         PR target/53988
32780         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32781         reg-reg copies.
32782         (sh_extending_set_of_reg): New struct.
32783         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32784         sh_remove_reg_dead_or_unused_notes): New Declarations.
32785         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32786         sh_find_extending_set_of_reg, sh_split_tst_subregs,
32787         sh_extending_set_of_reg::use_as_extended_reg): New functions.
32788         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32789         convert to insn_and_split and use new function sh_split_tst_subregs.
32790
32791 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
32792
32793         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32794         option.
32795         (Optimization Options): Move -fuse-ld documentation to...
32796         (Link Options): ...here.
32797
32798 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32799
32800         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32801         offsets.
32802         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32803         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32804         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32805         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32806         instead of ZR for the memory operand of LL/SC.
32807         (compare_and_swap_12, sync_add<mode>): Likewise.
32808         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32809         (sync_new_<optab>_12, sync_nand_12): Likewise.
32810         (sync_old_nand_12, sync_new_nand_12): Likewise.
32811         (sync_sub<mode>, sync_old_add<mode>): Likewise.
32812         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32813         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32814         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32815         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32816         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32817         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32818         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32819         * doc/md.texi (ZC): Update description.
32820
32821 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32822
32823         * builtins.c (expand_builtin_atomic_exchange): Remove error when
32824         memory model is CONSUME.
32825         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32826         expand_builtin_atomic_store): Change invalid memory model errors to
32827         warnings.
32828         (expand_builtin_atomic_clear): Change invalid model errors to warnings
32829         and issue warning for CONSUME.
32830
32831 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
32832
32833         * lto-cgraph: Update function comments for
32834         lto_symtab_encoder_encode_*.
32835
32836 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32837
32838         * Makefile.in (site.exp): Do not set ENABLE_LTO.
32839
32840 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32841
32842         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32843         * lto-cgraph.c (select_what_to_stream): Remove argument, use
32844         lto_stream_offload_p instead.
32845         * lto-streamer.h (select_what_to_stream): Remove argument.
32846         * passes.c (ipa_write_summaries): Likewise.
32847         * tree-pass.h (ipa_write_summaries): Likewise.
32848
32849 2015-01-14  Richard Biener  <rguenther@suse.de>
32850
32851         PR tree-optimization/59354
32852         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32853         groups larger than the slp group size as having gaps.
32854
32855 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32856
32857         PR middle-end/59448
32858         * builtins.c (get_memmodel): Promote consume to acquire always.
32859
32860 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32861
32862         PR target/64386
32863         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32864         V32HImode.
32865
32866 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32867
32868         PR target/64393
32869         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32870         Enable AVX512BW.
32871         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32872         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32873         AVX512VBMI, as it implies AVX512BW.
32874
32875 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32876
32877         PR target/64387
32878         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32879         (vec_unpacks_hi_v16sf): Ditto.
32880
32881 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32882
32883         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32884         is not available.
32885
32886 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32887
32888         * doc/invoke.texi (mapcs): Mention deprecation.
32889         (mapcs-frame): Likewise.
32890
32891 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32892
32893         PR target/64453
32894         * config/arm/arm.c (callee_saved_reg_p): Define.
32895         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32896         register is callee saved instead of !call_used_regs[reg].
32897         (thumb1_compute_save_reg_mask): Likewise.
32898
32899 2015-01-14  Hale Wang  <hale.wang@arm.com>
32900
32901         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32902         Cortex-M7.
32903
32904 2015-01-14  Richard Biener  <rguenther@suse.de>
32905
32906         PR lto/64415
32907         * tree-inline.c (insert_debug_decl_map): Check destination
32908         function MAY_HAVE_DEBUG_STMTS.
32909         (insert_init_debug_bind): Likewise.
32910         (insert_init_stmt): Remove redundant check.
32911         (remap_gimple_stmt): Drop debug stmts if the destination
32912         function has var-tracking assignments disabled.
32913
32914 2015-01-14  Martin Liska  <mliska@suse.cz>
32915
32916         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32917         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32918
32919 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32920
32921         PR target/64460
32922         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32923         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32924
32925 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32926
32927         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32928         level from an ARCH; do not inject the default.
32929         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32930         MIPS_ISA_LEVEL_SPEC.
32931         (MIPS_ISA_NAN2008_SPEC): Update comment.
32932         (BASE_DRIVER_SELF_SPECS): Likewise.
32933         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32934         MIPS_DEFAULT_ISA_LEVEL_SPEC.
32935         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32936         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32937         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32938
32939 2015-01-14  Richard Biener  <rguenther@suse.de>
32940
32941         PR tree-optimization/64493
32942         PR tree-optimization/64495
32943         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32944         assign the proper vectorized PHI to the inner loop exit PHIs.
32945
32946 2015-01-14  Joey Ye  <joey.ye@arm.com>
32947
32948         * config/arm/arm.c (arm_compute_save_reg_mask):
32949         Do not save lr in case of tail call.
32950         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32951
32952 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
32953
32954         * tree-vrp.c (check_array_ref): Emit more warnings
32955         for warn_array_bounds >= 2.
32956         * common.opt: New option -Warray-bounds=.
32957         * doc/invoke.texi: Document -Warray-bounds=.
32958
32959 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32960
32961         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32962         (mforbid-fp-as-gp): Remove.
32963         (mex9): Remove.
32964         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32965         (nds32_symbol_load_store_p): Remove.
32966         (nds32_fp_as_gp_check_available): Clean up implementation.
32967         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32968         cases.
32969         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32970         fp-as-gp and ex9 cases.
32971
32972 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32973
32974         * tree-profile.c (init_ic_make_global_vars): Drop workaround
32975         for bintuils bug 14342.
32976         (init_ic_make_global_vars): Likewise.
32977         (gimple_init_edge_profiler): Likewise.
32978         (gimple_gen_ic_func_profiler): Likewise.
32979
32980 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32981
32982         * ipa-inline.c (inline_small_functions): Swap the operands in
32983         enum.
32984
32985 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32986
32987         PR ipa/64481
32988         * ipa-inline-analysis.c (node_growth_cache): Remove.
32989         (initialize_growth_caches): Do not initialize it.
32990         (free_growth_caches): Do not free it.
32991         (do_estimate_growth): Rename to ...
32992         (estimate_growth): ... this one; drop growth cache code.
32993         (growth_likely_positive): Always go the heuristics way.
32994         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32995         (reset_edge_caches): Do not reset node growth.
32996         (heap_edge_removal_hook): Do not maintain cache.
32997         (inline_small_functions): Likewise; strenghten sanity check.
32998         (ipa_inline): Do not maintain caches.
32999         * ipa-inline.h (node_growth_cache): Remove.
33000         (do_estimate_growth): Remove to ...
33001         (estimate_growth): this one; remove inline version.
33002         (reset_node_growth_cache): Remove.
33003
33004 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
33005
33006         PR ipa/64565
33007         * ipa-inline.c (inline_small_functions): Update callee keys after
33008         resolving speculation
33009         (inline_small_functions): Always check monotonicity of the queue.
33010
33011 2015-01-13  Marek Polacek  <polacek@redhat.com>
33012
33013         PR middle-end/64391
33014         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
33015
33016 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
33017
33018         PR rtl-optimization/64286
33019         * ree.c (combine_reaching_defs): Move part of comment earlier,
33020         remove !SCALAR_INT_MODE_P check.
33021         (add_removable_extension): Don't add vector mode
33022         extensions if all uses of the source register aren't the same
33023         vector extensions.
33024
33025 2015-01-13  Renlin Li  <renlin.li@arm.com>
33026
33027         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
33028         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
33029
33030 2015-01-13  Martin Liska  <mliska@suse.cz>
33031
33032         * ipa-icf.c (sem_function::equals_private): Call new functions
33033         cl_target_option_print_diff and cl_optimization_print_diff.
33034         * optc-save-gen.awk (cl_target_option_print_diff): New function.
33035         (cl_optimization_print_diff): Likewise.
33036         * opth-gen.awk: Likewise.
33037
33038 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
33039
33040         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
33041         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
33042         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
33043         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
33044         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
33045         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
33046
33047 2015-01-13  Andrew Pinski  <apinski@cavium.com>
33048
33049         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
33050         instead of src mode.
33051
33052 2015-01-13  Richard Biener  <rguenther@suse.de>
33053
33054         PR lto/64373
33055         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
33056         DECL_CONTEXT.
33057
33058 2015-01-13  Andrew Pinski  <apinski@cavium.com>
33059
33060         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
33061         volatile mems.
33062         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
33063
33064 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
33065
33066         PR middle-end/63974
33067         * cfgexpand.c (expand_computed_goto): Don't call
33068         convert_memory_address here.
33069
33070 2015-01-13  Richard Biener  <rguenther@suse.de>
33071
33072         PR tree-optimization/64406
33073         * tree-loop-distibution.c (pass_loop_distribution::execute):
33074         Reset the SCEV hashtable if we distributed anything.
33075
33076 2015-01-13  Richard Biener  <rguenther@suse.de>
33077
33078         PR tree-optimization/64404
33079         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33080         SLP types for CSEd loads.
33081
33082 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33083
33084         PR tree-optimization/64436
33085         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33086         merge of two symbolic numbers for a bitwise OR to ...
33087         (perform_symbolic_merge): This. Also fix computation of the range and
33088         end of the symbolic number corresponding to the result of a bitwise OR.
33089
33090 2015-01-13  Richard Biener  <rguenther@suse.de>
33091
33092         PR tree-optimization/64568
33093         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33094         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33095
33096 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33097
33098         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33099         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33100
33101 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33102
33103         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33104         target-specific symbol_ref flag.
33105         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33106         resides in rodata section.
33107         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33108         (nds32_encode_section_info): New function.
33109
33110 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33111
33112         * config/nds32/nds32.md (call): Use pseudo instruction bal which
33113         clobbers TA_REGNUM if large code model is specified.
33114         (call_register): Likewise.
33115         (call_immediate): Likewise.
33116         (call_value): Likewise.
33117         (call_value_register): Likewise.
33118         (call_value_immediate): Likewise.
33119
33120 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33121
33122         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33123         (TARGET_CMODEL_MEDIUM): New macro.
33124         (TARGET_CMODEL_LARGE): New macro.
33125         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33126         code model setting in assembly code.
33127
33128 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33129
33130         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33131         Remove MASK_GP_DIRECT flag.
33132         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33133         one of the multilib default options.
33134         * config/nds32/nds32.opt (mgp-direct): Remove.
33135         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33136         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
33137
33138 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33139
33140         * config/nds32/nds32.opt (mcmodel): Add new option.
33141         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33142         to describe code model.
33143
33144 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
33145
33146         PR target/64479
33147         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33148
33149 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
33150
33151         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33152         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33153         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33154         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33155         __builtin_sh_set_fpscr.
33156
33157 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33158
33159         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33160         after a funtion name just to indicate it is a function.
33161         ([-fsanitize-undefined-trap-on-error]): Likewise.
33162         ([-fdbg-cnt=]): Likewise.
33163         ([-mmemcpy]): Likewise.
33164         ([-mflush-func]): Likewise.
33165         ([-msynci]): Likewise.
33166
33167 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33168
33169         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33170         example.
33171
33172 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
33173
33174         PR tree-optimization/64563
33175         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33176         instead of != VR_VARYING.
33177
33178         PR target/64513
33179         * config/i386/i386.c (ix86_expand_prologue): Add
33180         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33181
33182         PR tree-optimization/64454
33183         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33184         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33185         for signed or [0, op1 - 1] for unsigned modulo.
33186         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33187         even if op1 does not satisfy integer_pow2p.
33188
33189         PR other/64370
33190         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33191
33192 2015-01-12  Jeff Law  <law@redhat.com>
33193
33194         PR target/64461
33195         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33196         (trunchiqi2, truncsihi2): Similarly.
33197
33198         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33199         rather than calling F.
33200
33201 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33202
33203         * tsan.c (instrument_expr): Use force_gimple_operand.
33204         Use may_be_nonaddressable_p instead of is_gimple_addressable.
33205
33206 2015-01-12  Richard Biener  <rguenther@suse.de>
33207
33208         PR tree-optimization/64530
33209         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33210         back dr1.
33211
33212 2015-01-12  Richard Biener  <rguenther@suse.de>
33213
33214         PR middle-end/64357
33215         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33216         latches properly.
33217
33218 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33219
33220         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33221         Cortex-A17 tuning parameters.
33222         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33223
33224 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33225
33226         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33227         * config/arm/arm.c (arm_macro_fusion_p): New function.
33228         (arm_macro_fusion_pair_p): Likewise.
33229         (TARGET_SCHED_MACRO_FUSION_P): Define.
33230         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33231         (ARM_FUSE_NOTHING): Likewise.
33232         (ARM_FUSE_MOVW_MOVT): Likewise.
33233         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33234         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33235         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33236         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33237         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33238         arm_cortex_a5_tune): Specify fuseable_ops value.
33239
33240 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
33241
33242         PR bootstrap/64561
33243         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33244         test for PIE with copy reloc.
33245         * configure: Regenerated.
33246
33247 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33248
33249         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33250         in gen_rtx_REG.
33251         (arm_tls_descseq_addr): Likewise.
33252         (arm_gen_movmemqi): Likewise.
33253         (arm_expand_epilogue_apcs_frame): Likewise.
33254         (arm_expand_epilogue): Likewise.
33255         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
33256         in gen_rtx_REG.
33257
33258 2015-01-12  Martin Liska  <mliska@suse.cz>
33259
33260         PR ipa/64550
33261         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33262         volatility for correct operands.
33263
33264 2015-01-12  Martin Liska  <mliska@suse.cz>
33265
33266         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33267         indication that a function is not leaf.
33268         (sem_function::compare_polymorphic_p): Likewise.
33269
33270 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33271
33272         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33273         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33274         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33275         fold-const.h, tree-check.h.
33276
33277 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33278
33279         PR ipa/63967
33280         PR ipa/64425
33281         * ipa-inline.c (compute_uninlined_call_time,
33282         compute_inlined_call_time): Use counts for extra precision when
33283         needed possible.
33284         (big_speedup_p): Fix formating.
33285         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33286         (relative_time_benefit): Remove.
33287         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33288         merge guessed and read profile paths.
33289         (inline_small_functions): Count only !optimize_size functions into
33290         initial size; be more lax about sanity check when profile is used;
33291         be sure to update inlined function profile when profile is read.
33292
33293 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33294
33295         PR ipa/63470
33296         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33297         cost when edge becomes direct.
33298         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33299         is resolved or when introducing new speculation.
33300
33301 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
33302
33303         PR ipa/64551
33304         PR ipa/64552
33305         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33306         '||' to fix typo issue.
33307
33308         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33309         accept and return NULL.
33310
33311 2015-01-12  Martin Liska  <mliska@suse.cz>
33312
33313         * cgraph.c (cgraph_edge::remove_callee): Move function to header
33314         file for being inlined.
33315         (cgraph_set_edge_callee): Delete.
33316         (cgraph_edge::redirect_callee): Move function to header file
33317         for being inlined.
33318         (cgraph_edge::make_direct): Use new function.
33319         (cgraph_edge::dump_edge_flags): New function created from
33320         static dump_edge_flags function.
33321         (cgraph_node::dump): Use new function.
33322         (cgraph_edge::verify_count_and_frequency): New function created
33323         from verify_edge_count_and_frequency.
33324         (cgraph_edge::verify_corresponds_to_fndecl): New function created
33325         from verify_edge_corresponds_to_fndecl.
33326         (verify_edge_corresponds_to_fndecl): Delete.
33327         (cgraph_node::verify_node): Use new function.
33328         * cgraph.h (cgraph_edge::set_callee): New function.
33329         (cgraph_edge::dump_edge_flags): Likewise.
33330         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
33331
33332 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
33333
33334         * ipa-utils.c (estimate_function_body_sizes): Do not
33335         free node params when called late with early=true.
33336
33337 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
33338
33339         * doc/md.texi (Instruction Patterns): Rewrite text for
33340         clarity.
33341         (Example): Likewise.
33342
33343 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
33344
33345         * doc/invoke.texi (Option Summary): Break long lines.
33346         [(-fdiagnostics-color)]: Put long literal in @smallexample
33347         instead of inline.
33348         [(-fsanitize-recover)]: Likewise.
33349         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33350         [(-ffast-math)]: Likewise.
33351         [(--param max-inline-insns-recursive)]: Likewise.
33352         [(--param max-inline-recursive-depth)]: Likewise.
33353         [(-mno-text-section-literals)]: Likewise.
33354
33355 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
33356
33357         * doc/install.texi: Update for libgomp being renamed from "GNU
33358         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33359         Runtime Library".
33360         * doc/sourcebuild.texi: Likewise.
33361
33362 2015-01-10  Anthony Green  <green@moxielogic.com>
33363
33364         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33365         mul.x availability for moxiebox configuration.
33366
33367 2015-01-09  Anthony Green  <green@moxielogic.com>
33368
33369         * config/moxie/moxie.md: Tabify assembly output.
33370
33371 2015-01-09  Anthony Green  <green@moxielogic.com>
33372
33373         * config/moxie/moxie.md (CC_REG): Correct register definition.
33374
33375 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
33376
33377         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33378         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
33379         of log files.
33380
33381 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33382
33383         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33384
33385 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
33386             Jakub Jelinek  <jakub@redhat.com>
33387
33388         PR middle-end/64412
33389         * lto-streamer.h (lto_stream_offload_p): New declaration.
33390         * lto-streamer.c (lto_stream_offload_p): New variable.
33391         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33392         at the same time as section_name_prefix.
33393         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33394         if lto_stream_offload_p.
33395         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33396         stream TREE_TARGET_OPTION if lto_stream_offload_p.
33397         (write_ts_function_decl_tree_pointers): Don't
33398         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33399         * tree-streamer-in.c (unpack_value_fields): Don't stream
33400         TREE_TARGET_OPTION in if ACCEL_COMPILER.
33401         (lto_input_ts_function_decl_tree_pointers): Don't stream
33402         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33403         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33404         instead of section_name_prefix string comparisons.
33405
33406 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
33407
33408         PR rtl-optimization/64536
33409         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33410         tablejumps.
33411
33412 2015-01-09  Michael Collison  <michael.collison@linaro.org>
33413
33414         PR tree-optimization/64322
33415         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33416         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33417
33418 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33419
33420         PR rtl-optimization/64539
33421         * regcprop.c (kill_clobbered_values): Factor out of ...
33422         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
33423         instead of note_stores with kill_clobbered_value.
33424
33425 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33426
33427          * ginclude/unwind-arm-common.h: Revert previous commit.
33428
33429 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33430
33431         * config.gcc (arm*-*-freebsd*): New configuration.
33432         * config/arm/freebsd.h: New file.
33433         * config.host: Add extra components for arm*-*-freebsd*.
33434         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33435         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33436
33437 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33438
33439         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33440         for -mcpu=e6500.
33441         * config/rs6000/t-rtems: Add e6500 multilibs.
33442
33443 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33444
33445         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33446         MPC8540.
33447
33448 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33449
33450         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33451         MULTILIB_EXCEPTIONS.
33452
33453 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33454
33455         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33456         MULTILIB_EXCEPTIONS.
33457
33458 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33459
33460         * config/arm/t-rtems-eabi: Rename to...
33461         * config/arm/t-rtems: ...this.
33462         * config/arm/rtems-eabi.h: Rename to...
33463         * config/arm/rtems.h: ...this.
33464         * config.gcc (arm*-*-rtems*): Reflect changes above.
33465
33466 2015-01-09  Richard Biener  <rguenther@suse.de>
33467
33468         PR tree-optimization/64410
33469         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33470         on the LHS.
33471         (execute_update_addresses_taken): Deal with that.
33472         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33473         loads/stores for complex variables.
33474
33475 2015-01-09  Martin Liska  <mliska@suse.cz>
33476
33477         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33478         name comparison.
33479         (func_checker::compare_memory_operand): New function.
33480         (func_checker::compare_operand): Split case to newly
33481         added functions.
33482         (func_checker::compare_cst_or_decl): New function.
33483         (func_checker::compare_gimple_call): Identify
33484         memory operands.
33485         (func_checker::compare_gimple_assign): Likewise.
33486         * ipa-icf-gimple.h: New function.
33487
33488 2015-01-09  Martin Liska  <mliska@suse.cz>
33489
33490         PR ipa/64503
33491         * sreal.c (sreal::dump): Change unsigned format to signed for
33492         m_exp value.
33493         (sreal::to_double): Replace exp2 with scalbln.
33494
33495 2015-01-09  Martin Liska  <mliska@suse.cz>
33496
33497         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33498         * ipa-icf.c (sem_function::equals_private): Add support for target and
33499         (sem_item_optimizer::merge_classes): Remove redundant function
33500         optimization flags comparison.
33501         * tree.h (target_opts_for_fn): New function.
33502
33503 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33504
33505         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33506
33507 2015-01-09  Kito Cheng  <kito@0xlab.org>
33508
33509         PR rtl-optimization/64348
33510         * lra-constraints.c (split_reg): Fix caller-save store/restore
33511         instruction generation.
33512
33513 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
33514
33515         PR gcov-profile/61790
33516         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33517         long long.  Fallback to int64_t if host doesn't have long long and
33518         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
33519
33520 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33521
33522         PR tree-optimization/63989
33523         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33524         from 1000 to 10000.
33525         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33526         (get_stridx): If we don't have a record for certain SSA_NAME,
33527         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33528         constant offset, call get_stridx_plus_constant.
33529         (get_stridx_plus_constant): New function.
33530         (zero_length_string): Don't use get_stridx here.
33531
33532         PR target/55023
33533         PR middle-end/64388
33534         * dse.c (struct insn_info): Mention frame_read set also
33535         before reload for tail calls on some targets.
33536         (scan_insn): Revert 2014-12-22 change.  Set frame_read
33537         also before reload for tail calls if
33538         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
33539         instead of add_non_frame_wild_read for non-const/memset
33540         tail calls after reload.
33541
33542 2015-01-08  Jason Merrill  <jason@redhat.com>
33543
33544         * ubsan.c (do_ubsan_in_current_function): New.
33545         (pass_ubsan::gate): Use it.
33546         * ubsan.h: Declare it.
33547         * convert.c (convert_to_integer): Use it.
33548
33549 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33550
33551         PR target/64338
33552         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33553         compare_code when it is unconditionally overwritten afterwards.
33554         Use ix86_reverse_condition instead of reverse_condition.  Don't
33555         change code if *reverse_condition* returned UNKNOWN and don't
33556         swap ct/cf and negate diff in that case.
33557
33558 2015-01-08  Mike Stump  <mikestump@comcast.net>
33559
33560         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33561         (pass_tsan_O0::gate): Likewise.
33562         * extend.texi (Function Attributes): Add no_sanitize_thread
33563         documentation.
33564
33565 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
33566
33567         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33568         for registering builtins.
33569         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33570         add -fopenmp to the argv_obstack used when invoking
33571         compile_for_target.
33572
33573         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33574         add "-m32" or "-m64" to argv_obstack.
33575         (generate_host_descr_file): Likewise, when invoking host_compiler.
33576         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33577         ld.
33578
33579 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33580
33581         * config/sh/sh-mem.cc: Use constant as second operand when emitting
33582         tstsi_t insns.
33583
33584 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33585
33586         PR target/55212
33587         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33588         constant load if constant operand fits into I08.
33589
33590 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33591
33592         PR sanitizer/64336
33593         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33594         and TREE_THIS_VOLATILE for MEM_REFs.
33595         (build5_stat): Fix up initialization of TREE_READONLY and
33596         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33597
33598 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
33599
33600         PR target/64533
33601         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33602         of r for the second alternative of the destination operand.
33603
33604 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
33605
33606         PR target/36557
33607         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33608
33609 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33610
33611         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33612         keywords.
33613         ([-fivar-visibility], [-fvisibility]): Likewise.
33614
33615 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33616
33617         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33618         the file where @code, @command, etc is more appropriate.
33619
33620 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
33621
33622         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33623         of -mrecip= documentation.
33624
33625 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33626
33627         PR target/64505
33628         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33629         correct reload handler if -m32 -mpowerpc64 is used.
33630
33631 2015-01-06  Tom de Vries  <tom@codesourcery.com>
33632
33633         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33634
33635 2015-01-08  Christian Bruel  <christian.bruel@st.com>
33636
33637         PR target/64507
33638         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33639
33640 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33641
33642         PR tree-optimization/63259
33643         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33644         if optab exists for 16bit byteswap.
33645
33646 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
33647
33648         * opts.c (common_handle_option): Add support for
33649         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33650         * doc/invoke.texi: Document -fno-sanitize=all,
33651         -f{,no-}sanitize-recover=all.  Document that
33652         -fsanitize=float-cast-overflow is not enabled
33653         by -fsanitize=undefined.  Fix up documentation
33654         of -f{,no-}sanitize-recover.
33655
33656 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33657
33658         * config.gcc: Add Visium support.
33659         * configure.ac: Likewise.
33660         * configure: Regenerate.
33661         * doc/extend.texi (interrupt attribute): Add Visium.
33662         * doc/invoke.texi: Document Visium options.
33663         * doc/install.texi: Document Visium target.
33664         * doc/md.texi: Document Visium constraints.
33665         * common/config/visium: New directory.
33666         * config/visium: Likewise.
33667
33668 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33669
33670         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33671         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33672
33673 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33674
33675         * combine.c (combine_validate_cost): Do not count the cost of a
33676         split I2 twice.  Do not display it twice in the dump, either.
33677
33678 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33679
33680         Revert parts of r219199.
33681         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33682         <inttypes.h>.
33683         ([-Wtraditional]): Restore markup on <limits.h>.
33684
33685 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
33686
33687         PR c++/31397
33688         * doc/invoke.texi: Document -Wsuggest-override.
33689
33690 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
33691
33692         PR rtl-optimization/64287
33693         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33694         (process_options): Disable flag_ipa_ra if profiling.
33695
33696 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
33697
33698         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33699
33700 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
33701
33702         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33703         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33704         put under #if TARGET_LOOPS guard.
33705
33706 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
33707
33708         * config/i386/i386.c (output_387_binary_op): Use std::swap.
33709
33710 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
33711
33712         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33713         * rtl.h (refers_to_regno_p): Add overload.
33714         * cse.c: Use it.
33715         * bt-load.c: Likewise.
33716         * combine.c: Likewise.
33717         * df-scan.c: Likewise.
33718         * sched-deps.c: Likewise.
33719         * config/s390/s390.c: Likewise.
33720         * config/m32r/m32r.c: Likewise.
33721         * config/rs6000/spe.md: Likewise.
33722         * config/rs6000/rs6000.c: Likewise.
33723         * config/pa/pa.c: Likewise.
33724         * config/stormy16/stormy16.c: Likewise.
33725         * config/cris/cris.c: Likewise.
33726         * config/arc/arc.md: Likewise.
33727         * config/arc/arc.c: Likewise.
33728         * config/sh/sh.md: Likewise.
33729         * config/sh/sh.c: Likewise.
33730         * config/frv/frv.c: Likewise.
33731
33732 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33733
33734         PR sanitizer/64265
33735         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33736         call as cleanup of the whole body.
33737         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33738         * tsan.c (replace_func_exit): New function.
33739         (instrument_func_exit): Moved earlier.
33740         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33741         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33742         been found.
33743         (tsan_pass): Don't call instrument_func_exit.
33744         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33745         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33746         inlining.
33747
33748         PR sanitizer/64344
33749         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33750         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33751         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
33752         if the result is integer_zerop, return NULL_TREE.
33753         * convert.c (convert_to_integer): Pass expr as ARG.
33754
33755         PR tree-optimization/64465
33756         * tree-inline.c (redirect_all_calls): During inlining
33757         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33758         changed the stmt to a non-throwing call.
33759
33760 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33761
33762         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33763         etc markup throughout the file.
33764
33765 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33766
33767         Enable experimental TSAN support for Ada.
33768         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33769
33770 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33771
33772         PR tree-optimization/64494
33773         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33774         clear SSA_NAME_ANTI_RANGE_P flag.
33775
33776 2015-01-05  Marek Polacek  <polacek@redhat.com>
33777
33778         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33779
33780 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33781
33782         Update copyright years.
33783
33784         * gcc.c (process_command): Update copyright notice dates.
33785         * gcov-dump.c: Ditto.
33786         * gcov.c: Ditto.
33787         * doc/cpp.texi: Bump @copying's copyright year.
33788         * doc/cppinternals.texi: Ditto.
33789         * doc/gcc.texi: Ditto.
33790         * doc/gccint.texi: Ditto.
33791         * doc/gcov.texi: Ditto.
33792         * doc/install.texi: Ditto.
33793         * doc/invoke.texi: Ditto.
33794
33795         * auto-profile.c, auto-profile.h: Fix up Copyright line.
33796
33797 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
33798
33799         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33800         verb tense, etc.
33801         ([-fvtable-verify], [-fvtv-debug]): Likewise.
33802         ([-Wabi]): Likewise.
33803         ([-fmessage-length]): Likewise.
33804         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33805         ([-Wno-discarded-qualifiers]): Likewise.
33806         ([-Wnodiscarded-array-qualifiers]): Likewise.
33807         ([-Wno-virtual-move-assign]): Likewise.
33808         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33809         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33810         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33811         ([-fsanitize-undefined-trap-on-error]): Likewise.
33812         ([-floop-interchange]): Likewise.
33813         ([-ftree-coalesce-inlined-vars]): Likewise.
33814         ([-fvect-cost-model]): Likewise.
33815         ([-flto]): Likewise.
33816         ([--param]): Likewise.
33817         (Spec Files): Likewise.
33818         ([-mstrict-align]): Likewise.
33819         ([-mfix-cortex-a53-835769]): Likewise.
33820         ([-march], [-mtune]): Likewise.
33821         ([-mpic-register]): Likewise.
33822         ([-munaligned-access]): Likewise.
33823         ([-msp8]): Likewise.
33824         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33825         (AVR Built-in Macros): Likewise.
33826         ([-mpreferred-stack-boundary]): Likewise.
33827         ([-mtune-crtl]): Likewise.
33828         ([-mashf]): Likewise.
33829         ([-mmcu=]): Likewise.
33830         ([-minrt]): Likewise.
33831         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33832         ([-mupper-regs]): Likewise.
33833         ([-matomic-model]): Likewise.
33834         ([-mdiv]): Likewise.
33835         ([-mzdcbranch]): Likewise.
33836         ([-mdisable-callt]): Likewise.
33837         ([-msoft-float]): Likewise.
33838         ([-m8byte-align]): Likewise.
33839         ([-fstack-reuse]): Likewise.
33840
33841 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33842
33843         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33844         Fix markup, light copy-editing.
33845         ([-fauto-profile]): Rewrite to fix formatting and content
33846         problems.
33847
33848 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33849
33850         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33851         Copy-edit description.
33852         ([-fisolate-erroneous-paths-attribute]): Likewise.
33853         * common.opt (fisolate-erroneous-paths-dereference):
33854         Copy-edit description.
33855         (fisolate-erroneous-paths-attribute): Likewise.
33856
33857 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33858
33859         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33860         tidy grammar.
33861
33862 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33863
33864         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33865         ([-fvtv-debug]): Likewise.
33866         ([-Wc++-compat]): Likewise.
33867         ([-Wc++11-compat]): Likewise.
33868         ([-Wc++14-compat]): Likewise.
33869         ([-Wno-sized-deallocation]): Likewise.
33870         ([-femit-class-debug-always]): Likewise.
33871         ([-femit-struct-debug-detailed]): Likewise.
33872         ([-fno-keep-inline-dllexport]): Likewise.
33873         ([-fira-algorithm]): Likewise.
33874         ([-fira-region]): Likewise.
33875         ([-flra-remat]): Likewise.
33876         ([-fipa-ra]): Likewise.
33877         ([-fhoist-adjacent-loads]): Likewise.
33878         ([-fisolate-erroneous-paths-dereference]): Likewise.
33879         ([-fisolate-erroneous-paths-attribute]): Likewise.
33880         ([-ftree-switch-conversion]): Likewise.
33881         ([-ftree-tail-merge]): Likewise.
33882         ([-ftree-loop-if-convert]): Likewise.
33883         ([-ftree-loop-if-convert-stores]): Likewise.
33884         ([-ftree-loop-distribution]): Likewise.
33885         ([-ftree-loop-distribute-patterns]): Likewise.
33886         ([-flto-compression-level]): Likewise.
33887         ([-flto-report]): Likewise.
33888         ([-flto-report-wpa]): Likewise.
33889         ([-fuse-linker-plugin]): Likewise.
33890         ([-mfix-cortex-a53-835769]): Likewise.
33891         ([-mno-fix-cortex-a53-835769]): Likewise.
33892         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33893         explicit listing; add a note to the discussion indicating they
33894         exist.  Reorder table to group similar options.  Add missing
33895         @opindex entries.  Add @need commands throughout the table to
33896         allow it to be split across multiple pages.
33897         ([-m8bit-idiv]): Fix @opindex.
33898         ([-mavx256-split-unaligned-load]): Likewise.
33899         ([-mavx256-split-unaligned-store]): Likewise.
33900         ([-mstack-protector-guard]): Likewise.
33901         ([-mcpu=]): Likewise.
33902         ([-mcpu]): Likewise.
33903         ([-mpointer-size=]): Likewise.
33904
33905 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
33906
33907         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33908         instead of `m' constraint.  Likewise for unnamed movb comparison
33909         patterns using reg_before_reload_operand predicate.
33910         * config/pa/predicates.md (reg_before_reload_operand): Tighten
33911         predicate to reject register index and LO_SUM DLT memory forms
33912         after reload.
33913
33914 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33915
33916         * doc/invoke.texi (Option Summary): Fix spelling of
33917         -fdevirtualize-at-ltrans.
33918         ([-fdevirtualize]): Fix markup.
33919         ([-fdevirtualize-speculatively]): Fix typo.
33920         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
33921         implementor-speaky.
33922         * common.opt (fdevirtualize-at-ltrans): Likewise.
33923         * ipa-devirt.c: Fix typos in comments throughout the file.
33924         (ipa_devirt): Fix typos in format strings for dump output.
33925
33926 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33927
33928         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33929         discussion of defaults, light copy-editing.
33930
33931 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33932
33933         * tsan.c (instrument_expr): corrected previous checkin.
33934
33935 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33936
33937         Instrument bit field and unaligned accesses for TSAN.
33938         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33939         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33940         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33941         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33942         unaligned memory regions.
33943
33944 2015-01-01  Anthony Green  <green@moxielogic.com>
33945
33946         * config/moxie/predicates.md (moxie_general_movsrc_operand):
33947         Restrict move source register offsets to 16 bits.
33948 \f
33949 Copyright (C) 2015 Free Software Foundation, Inc.
33950
33951 Copying and distribution of this file, with or without modification,
33952 are permitted in any medium without royalty provided the copyright
33953 notice and this notice are preserved.