[optabs.c] Fix PR 67989: Handle const0_rtx target in expand_atomic_compare_and_swap
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2
3         PR middle-end/67989
4         * optabs.c (expand_atomic_compare_and_swap): Handle case when
5         ptarget_oval or ptarget_bool are const0_rtx.
6
7 2015-10-26  Christian Bruel  <christian.bruel@st.com>
8
9         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
10         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
11         * cp/method.c (implicitly_declare_fn): Likewise.
12         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
13         * java/class.c (add_method_1): Likewise.
14
15 2015-10-26  Richard Biener  <rguenther@suse.de>
16
17         * alloc-pool.h (base_pool_allocator): Use placement new.
18         (base_pool_allocator::remove): Likewise.  Compute size outside of
19         flag_checking.
20
21 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
22
23         * builtins.c (do_real_to_int_conversion): New function.
24         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
25         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
26         arguments here.
27         * match.pd: Add rules previously handled by fold_fixed_mathfn
28         and fold_builtin_int_roundingfn.
29
30 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
31
32         * match.pd: Use macros to define built-in operator lists.
33
34 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
35             Richard Biener  <rguenther@suse.de>
36
37         * genmatch.c (dt_simplify::gen): Skip captures that are
38         part of the result.
39         (parser::parse_expr): Allow captures in results too.
40         * builtins.c (fold_builtin_cexp): Delete.
41         (fold_builtin_1): Handle constant cexp arguments here.
42         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
43
44 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
45
46         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
47         conditional compilation.
48         (base_pool_allocator::remove): Use flag_checking.
49
50 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
51
52         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
53
54         PR middle-end/68079
55         * dojump.c (do_compare_and_jump): Canonicalize both function and
56         method types.
57
58 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
59
60         PR target/68084
61         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
62         for =@ccae.
63
64 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
65
66         PR ipa/pr67600
67         * ipa-polymorphic-call.c
68         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
69         instance offset with offset of outer type.
70
71 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
72
73         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
74
75 2015-10-23  Caroline Tice  <cmtice@google.com>
76
77         (from Richard Biener
78         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
79         call to iterative_hash_host_wide_int.
80
81 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
82
83         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
84         Define as yes.
85
86 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
87
88         * tree-vect-generic.c (expand_vector_operations_1): Check
89         optab exists before use it.
90
91 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
92
93         * tree-vect-generic.c (expand_vector_condition): Avoid
94         uninitialized variable warning.
95
96 2015-10-23  Jeff Law  <law@redhat.com>
97
98         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
99         here.  Instead...
100         (execute_todo): Call it here.
101         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
102         statistics
103         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
104
105 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
106             Szabolcs Nagy  <szabolcs.nagy@arm.com>
107
108         * config.gcc (enable_secureplt): Add *-linux*-musl*.
109
110 2015-10-23  Jeff Law  <law@redhat.com>
111
112         PR tree-optimization/67830
113         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
114         Explicitly verify the mask has no bits outside the type of
115         the innermost operands.
116
117 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
118             Szabolcs Nagy  <szabolcs.nagy@arm.com>
119
120         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
121         (MUSL_DYNAMIC_LINKER64): Define.
122         (GNU_USER_DYNAMIC_LINKER32): Update.
123         (GNU_USER_DYNAMIC_LINKER64): Update.
124         (CHOOSE_DYNAMIC_LINKER): Update.
125
126         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
127         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
128         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
129         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
130         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
131         (CHOOSE_DYNAMIC_LINKER): Update.
132         (INCLUDE_DEFAULTS): Redefine.
133
134         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
135
136 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
137
138         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
139         comparing addresses.
140
141 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
142
143         * fold-const.c (operand_equal_p): Handle matching of vector
144         constructors.
145
146 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
147
148         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
149
150 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
151             Andrew Pinski  <apinski@cavium.com>
152
153         PR rtl-optimization/67736
154         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
155         of gen_lowpart.
156
157 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
158
159         PR middle-end/68066
160         * tree.c (build_truth_vector_type): Support BLK mode
161         returned for boolean vector.
162
163 2015-10-23  Alan Hayward <alan.hayward@arm.com>
164
165         PR tree-optimization/65947
166         * tree-vect-loop.c
167         (vect_is_simple_reduction_1): Find condition reductions.
168         (vect_model_reduction_cost): Add condition reduction costs.
169         (get_initial_def_for_reduction): Add condition reduction initial var.
170         (vect_create_epilog_for_reduction): Add condition reduction epilog.
171         (vectorizable_reduction): Condition reduction support.
172         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
173         * doc/sourcebuild.texi (Vector-specific attributes): Document
174         vect_max_reduc
175
176 2015-10-23  Richard Biener  <rguenther@suse.de>
177
178         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
179         and builtins.def.
180
181 2015-10-23  Richard Biener  <rguenther@suse.de>
182             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
183
184         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
185         into (A ^ B) - B to match.pd
186         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
187
188         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
189         New simplifier.
190         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
191         New simplifier.
192         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
193         New simplifier.
194         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
195         New simplifier.
196         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
197         INTEGER_CST@1)): New simplifier.
198
199 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
200
201         * builtins.c (integer_valued_real_p): Move to fold-const.c.
202         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
203         (fold_builtin_ceil, fold_builtin_round): Delete.
204         (fold_builtin_1): Handle constant trunc, floor, ceil and round
205         arguments here.
206         * convert.c (convert_to_real): Remove narrowing of rounding
207         functions.
208         * fold-const.h (integer_valued_real_unary_p)
209         (integer_valued_real_binary_p, integer_valued_real_call_p)
210         (integer_valued_real_single_p, integer_valued_real_p): Declare.
211         * fold-const.c (tree_single_nonnegative_warnv_p): Move
212         name_registered_for_update_p check to SSA_NAME case statement.
213         Don't call tree_simple_nonnegative_warnv_p for SSA names.
214         (integer_valued_real_unary_p, integer_valued_real_binary_p)
215         (integer_valued_real_call_p, integer_valued_real_single_p)
216         (integer_valued_real_invalid_p): New functions.
217         (integer_valued_real_p): Move from fold-const.c and rework
218         to call the functions above.  Handle SSA names.
219         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
220         * gimple-fold.c (gimple_assign_integer_valued_real_p)
221         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
222         (gimple_stmt_integer_valued_real_p): New functions.
223         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
224         Fold f(x)->x for the same f if x is known to be integer-valued.
225         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
226         the result.  Canonicalize floor(x) as trunc(x) if x is
227         nonnegative.
228
229 2015-10-23  Tom de Vries  <tom@codesourcery.com>
230
231         * tree-ssa-structalias.c (intra_create_variable_infos): Use
232         make_constraint_from.
233
234 2015-10-23  Tom de Vries  <tom@codesourcery.com>
235
236         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
237         setting of is_full_var in case of a single field.
238
239 2015-10-22  Martin Sebor  <msebor@redhat.com>
240
241         PR driver/68043
242         * config/i386/i386.opt: Add missing periods to the ends of sentences.
243         * config/msp430/msp430.opt: Same.
244
245 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
246
247         * doc/extend.exp (Global Register Variables): Rewrite.
248
249 2015-10-22  Jeff Law  <law@redhat.com>
250
251         * genattrtab.c (main): If we do not have any annul-true or annul-false
252         slots, then write out a dummy eligible_for_annul_true or
253         eligible_for_annul_false as needed.
254
255 2015-10-22  Nick Clifton  <nickc@redhat.com>
256
257         * config/msp430/msp430.opt: Add -msilicon-errata and
258         -msilicon-errata-warn.
259         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
260         assembler.
261         * doc/invoke.texi: Document new options.
262
263 2015-10-22  Richard Biener  <rguenther@suse.de>
264
265         PR tree-optimization/58497
266         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
267         (expand_vector_operations_1): Use it.  Lower operations on
268         all uniform vectors to scalar operations if the HW supports it.
269
270 2015-10-22  Richard Biener  <rguenther@suse.de>
271
272         PR tree-optimization/19049
273         PR tree-optimization/65962
274         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
275         to strided accesses if single-element interleaving doesn't work.
276
277 2015-10-22  Richard Biener  <rguenther@suse.de>
278
279         PR middle-end/68046
280         PR middle-end/61893
281         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
282         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
283         (expand_unop): Likewise.
284
285 2015-10-22  Richard Biener  <rguenther@suse.de>
286
287         * fold-const.c (fold_addr_of_array_ref_difference): Properly
288         convert operands before folding a MINUS_EXPR.
289         (fold_binary_loc): Move simplification of MINUS_EXPR on
290         converted POINTER_PLUS_EXPRs ...
291         * match.pd: ... here.
292
293 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
294
295         * builtins.c (fold_builtin_tan): Delete.
296         (fold_builtin_1): Handle constant tan arguments here.
297         * match.pd: Simplify (tan (atan x)) to x.
298
299 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
300
301         * builtins.c (fold_builtin_cproj): Delete.
302         (fold_builtin_1): Handle constant arguments here.
303         (build_complex_cproj): Move and rename to...
304         * tree.c: (build_complex_inf): ...this.
305         * tree.h (build_complex_inf): Declare.
306         * match.pd: Fold cproj(x)->x if x has no infinity.
307         Use build_complex_inf for existing cproj rules.
308
309 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
310
311         PR target/68015
312         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
313         already have a comparison result.
314
315 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
316
317         PR target/63304
318         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
319         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
320         (aarch64_classify_address): Likewise.
321         (aarch64_secondary_reload): Likewise.
322         (aarch64_override_options_after_change_1): Adjust.
323         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
324         Use aarch64_nopcrelative_literal_loads.
325         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
326         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
327         Declare.
328
329 2015-10-21  Martin Sebor  <msebor@redhat.com>
330
331         PR driver/68043
332         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
333         (print_filtered_help): Reference aliased option's name and encourage
334         readers to use it in preference to the alias if the former is not
335         documented.  Mention when using an option is diagnosed.
336         * gcc.c (display_help): End each sentence with a period.
337
338         * common.opt: End each sentence that describes an option with
339         a period.
340         * config/aarch64/aarch64.opt: Same.
341         * config/alpha/alpha.opt: Same.
342         * config/arc/arc.opt: Same.
343         * config/arm/arm.opt: Same.
344         * config/avr/avr.opt: Same.
345         * config/bfin/bfin.opt: Same.
346         * config/c6x/c6x.opt: Same.
347         * config/cr16/cr16.opt: Same.
348         * config/cris/cris.opt: Same.
349         * config/cris/linux.opt: Same.
350         * config/darwin.opt: Same.
351         * config/epiphany/epiphany.opt: Same.
352         * config/fr30/fr30.opt: Same.
353         * config/frv/frv.opt: Same.
354         * config/ft32/ft32.opt: Same.
355         * config/g.opt: Same.
356         * config/h8300/h8300.opt: Same.
357         * config/i386/cygming.opt: Same.
358         * config/i386/djgpp.opt: Same.
359         * config/i386/i386.opt: Same.
360         * config/i386/interix.opt: Same.
361         * config/i386/mingw-w64.opt: Same.
362         * config/i386/mingw.opt: Same.
363         * config/ia64/ia64.opt: Same.
364         * config/ia64/ilp32.opt: Same.
365         * config/iq2000/iq2000.opt: Same.
366         * config/linux.opt: Same.
367         * config/lm32/lm32.opt: Same.
368         * config/lynx.opt: Same.
369         * config/m32c/m32c.opt: Same.
370         * config/m32r/m32r.opt: Same.
371         * config/m68k/ieee.opt: Same.
372         * config/m68k/m68k.opt: Same.
373         * config/mcore/mcore.opt: Same.
374         * config/mep/mep.opt: Same.
375         * config/microblaze/microblaze.opt: Same.
376         * config/mips/mips.opt: Same.
377         * config/mmix/mmix.opt: Same.
378         * config/mn10300/mn10300.opt: Same.
379         * config/moxie/moxie.opt: Same.
380         * config/msp430/msp430.opt: Same.
381         * config/nios2/elf.opt: Same.
382         * config/nios2/nios2.opt: Same.
383         * config/nvptx/nvptx.opt: Same.
384         * config/pa/pa-hpux.opt: Same.
385         * config/pa/pa-hpux1010.opt: Same.
386         * config/pa/pa-hpux1111.opt: Same.
387         * config/pa/pa-hpux1131.opt: Same.
388         * config/pa/pa.opt: Same.
389         * config/pa/pa64-hpux.opt: Same.
390         * config/pdp11/pdp11.opt: Same.
391         * config/rl78/rl78.opt: Same.
392         * config/rs6000/476.opt: Same.
393         * config/rs6000/aix64.opt: Same.
394         * config/rs6000/darwin.opt: Same.
395         * config/rs6000/linux64.opt: Same.
396         * config/rs6000/rs6000.opt: Same.
397         * config/rs6000/sysv4.opt: Same.
398         * config/s390/s390.opt: Same.
399         * config/s390/tpf.opt: Same.
400         * config/sh/sh.opt: Same.
401         * config/sol2.opt: Same.
402         * config/sparc/long-double-switch.opt: Same.
403         * config/sparc/sparc.opt: Same.
404         * config/spu/spu.opt: Same.
405         * config/stormy16/stormy16.opt: Same.
406         * config/tilegx/tilegx.opt: Same.
407         * config/tilepro/tilepro.opt: Same.
408         * config/v850/v850.opt: Same.
409         * config/vax/vax.opt: Same.
410         * config/visium/visium.opt: Same.
411         * config/vms/vms.opt: Same.
412         * config/vxworks.opt: Same.
413         * config/xtensa/xtensa.opt: Same.
414
415 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
416             Sebastian Pop  <s.pop@samsung.com>
417
418         * graphite-scop-detection.c (parameter_index_in_region): Update call to
419         invariant_in_sese_p_rec.
420         * graphite-sese-to-poly.c (extract_affine): Same.
421         * sese.c (invariant_in_sese_p_rec): Pass in an extra
422         parameter has_vdefs.
423         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
424         variable depends on virtual definitions in the current region.
425         * sese.h (invariant_in_sese_p_rec): Update declaration.
426
427 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
428             Sebastian Pop  <s.pop@samsung.com>
429
430         * graphite-scop-detection.c (build_scops): Do not handle scops
431         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
432         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
433
434 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
435
436         * config.in: Regenerate.
437         * configure: Regenerate.
438         * configure.ac (CHECKING_P): Define.
439         * system.h: Use CHECKING_P.
440
441 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
442
443         PR ipa/67056
444         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
445         is negative we don't know the type.
446         (check_stmt_for_type_change): Skip constructors of non-polymorphic
447         types as those won't help devirutalization.
448
449 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
450
451         * fold-const.c (operand_equal_p): Add code matching empty constructors.
452
453 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
454
455         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
456         comments.
457         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
458         Add comments on sign of the result.
459         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
460         Recurse on operand #1 instead of operand #0.
461         <CEIL_MOD_EXPR>: Do not recurse.
462         <ROUND_MOD_EXPR>: Likewise.
463
464 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
465
466         * cfgrtl.c (pass_free_cfg::execute): Adjust.
467         * final.c (dbr_sequence_length): Always define.
468         (shorten_branches): Adjust.
469         * genattr-common.c (main): Always define DELAY_SLOTS.
470         * genattr.c (main): Unconditionally declare functions and define
471         macros related to delay slots.
472         * genattrtab.c (write_eligible_delay): Adjust.
473         (main): Always write out delay slot functions.
474         * opts.c (default_options_table): Adjust.
475         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
476         (redirect_with_delay_list_safe_p): Likewise.
477         (fill_simple_delay_slots): Likewise.
478         (fill_slots_from_thread): Likewise.
479         (make_return_insns): Likewise.
480         (dbr_schedule): Likewise.
481         (rest_of_handle_delay_slots): Likewise.
482         (pass_delay_slots::gate): Likewise.
483         * toplev.c (process_options): Likewise.
484
485 2015-10-21  Richard Henderson  <rth@redhat.com>
486
487         * targhooks.c (default_addr_space_pointer_mode): Remove check
488         for generic address space.
489         (default_addr_space_address_mode): Likewise.
490         (default_addr_space_valid_pointer_mode): Likewise.
491         (default_addr_space_legitimate_address_p): Likewise.
492         (default_addr_space_legitimize_address): Likewise.
493         * target.def (addr_space.pointer_mode): Update documentation
494         of default behavior.
495         (addr_space.address_mode): Likewise.
496         * tm.texi: Update.
497
498         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
499         address spaces.
500
501 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
502
503         * builtins.c (fold_builtin_cabs): Delete.
504         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
505         * match.pd: Add rules previously handled by fold_builtin_cabs.
506
507 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
508
509         * fold-const.h (fold_strip_sign_ops): Delete.
510         * fold-const.c (fold_strip_sign_ops): Likewise.
511         (fold_unary_loc, fold_binary_loc): Remove calls to it.
512         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
513         (fold_builtin_ccos): Delete.
514         (fold_builtin_pow): Don't call fold_strip_sign_ops.
515         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
516         Remove fndecl argument.
517         (fold_builtin_1): Update calls accordingly.  Handle constant
518         cos, cosh, ccos and ccosh here.
519
520 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
521
522         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
523         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
524         * common.opt (fssa-backprop): New option.
525         * fold-const.h (negate_mathfn_p): Declare.
526         * fold-const.c (negate_mathfn_p): Make public.
527         * timevar.def (TV_TREE_BACKPROP): New.
528         * tree-pass.h (make_pass_backprop): Declare.
529         * passes.def (pass_backprop): Add.
530         * gimple-ssa-backprop.c: New file.
531
532 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
533             Sebastian Pop  <s.pop@samsung.com>
534
535         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
536         Do not call create_empty_if_region_on_edge when cond_expr is true.
537         (translate_isl_ast_node_for): Check whether a guard has been generated.
538
539 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
540
541         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
542         (operator=): Removed.
543         (dr_info): Make alias_set number the last argument with default
544         value of invalid_alias_set.
545         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
546         of dr_info.
547         (rewrite_reductions_out_of_ssa): Iterate only through the
548         basic blocks which are inside region.
549         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
550         * sese.h (struct sese_l): Removed assignment operator.
551         (split_region_for_bb): Removed dead code.
552
553 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
554
555         * graphite-poly.h (struct dr_info): Removed conversion constructor.
556         (struct scop): Renamed scop::region to scop::scop_info
557         (scop_set_region): Same.
558         (SCOP_REGION): Removed
559         (SCOP_CONTEXT): Removed.
560         (POLY_SCOP_P): Removed.
561         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
562         Rename scop->region to scop->scop_info.
563         (add_parameters_to_ivs_params): Same.
564         (graphite_regenerate_ast_isl): Same.
565         * graphite-poly.c (new_scop): Same.
566         (free_scop): Same.
567         (print_scop_params): Same.
568         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
569         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
570         (dot_all_scops_1): Rename scop->region to scop->scop_info.
571         (scop_detection::nb_pbbs_in_loops): Same.
572         (find_scop_parameters): Same.
573         (try_generate_gimple_bb): Same.
574         (gather_bbs::before_dom_children): Same.
575         (gather_bbs::after_dom_children): Same.
576         (build_scops): Same.
577         * graphite-sese-to-poly.c (build_scop_scattering): Same.
578         (extract_affine_chrec): Same.
579         (extract_affine): Same.
580         (set_scop_parameter_dim): Same.
581         (build_loop_iteration_domains): Same.
582         (create_pw_aff_from_tree): Same.
583         (add_param_constraints): Same.
584         (build_scop_iteration_domain): Same.
585         (build_scop_drs): Same.
586         (analyze_drs_in_stmts): Same.
587         (insert_out_of_ssa_copy_on_edge): Same.
588         (rewrite_close_phi_out_of_ssa):Same.
589         (rewrite_reductions_out_of_ssa):Same.
590         (handle_scalar_deps_crossing_scop_limits):Same.
591         (rewrite_cross_bb_scalar_deps):Same.
592         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
593         (build_poly_scop):Same.
594         (build_alias_set): Use pointer to dr_info.
595         * graphite.c (print_graphite_scop_statistics):
596         (graphite_transform_loops):
597         * sese.h (struct sese_l): Remove conversion constructor.
598
599 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
600
601         PR middle-end/67966
602         * tree.c (verify_type): Verify that TYPE_MODE match
603         between TYPE_CANONICAL and type.
604         * expr.c (store_expr_with_bounds): Revert my previous change.
605         * expmed.c (store_bit_field_1): Revert prevoius change.
606         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
607         to match for all types.
608
609 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
610
611         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
612         nesting.
613
614 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
615
616         * doc/tm.texi: Regenerated.
617         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
618         * stor-layout.c (layout_type): Use mode to get vector mask size.
619         * target.def (get_mask_mode): New.
620         * targhooks.c (default_get_mask_mode): New.
621         * targhooks.h (default_get_mask_mode): New.
622         * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
623         for boolean vector.
624         * tree.c (MAX_BOOL_CACHED_PREC): New.
625         (nonstandard_boolean_type_cache): New.
626         (build_nonstandard_boolean_type): New.
627         (make_vector_type): Vector mask has no canonical type.
628         (build_truth_vector_type): New.
629         (build_same_sized_truth_vector_type): New.
630         (truth_type_for): Support vector masks.
631         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
632         (build_truth_vector_type): New.
633         (build_same_sized_truth_vector_type): New.
634         (build_nonstandard_boolean_type): New.
635         * tree-cfg.c (verify_gimple_comparison) Require boolean
636         vector type for vector comparison.
637         (verify_gimple_assign_ternary): Likewise.
638         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
639         condition operand.
640         * tree-vect-stmts.c (vectorizable_condition): Use boolean
641         vector type for vector comparison.
642         * tree-vect-generic.c (elem_op_func): Add new operand to hold
643         vector type.
644         (do_unop): Adjust to modified function type.
645         (do_binop): Likewise.
646         (do_plus_minus): Likewise.
647         (do_negate); Likewise.
648         (expand_vector_piecewise): Likewise.
649         (do_cond): Likewise.
650         (do_compare): Use comparison instead of condition.
651         (expand_vector_divmod): Use boolean vector type for comparison.
652         (expand_vector_operations_1): Skip scalar mask operations.
653
654 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
655
656         * omp-low.c (simd_clone_create): Set in_other_partition
657         for created clones.
658
659 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
660
661         * doc/extend.exp (Local Register Variables): Rewrite.
662
663 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
664
665         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
666         and x*x in cases where the operands are sign ops.  Extend these
667         rules to handle copysign as a sign op (including for cos, cosh
668         and pow, which already treated negate and abs as sign ops).
669
670 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
671
672         PR target/68018
673         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
674         for 64-bit MS_ABI targets also when default incoming stack boundary
675         is overriden.
676
677 2015-10-21  Richard Biener  <rguenther@suse.de>
678
679         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
680         cond stmts, enhanced and split out from ...
681         (vn_phi_eq): ... here.
682
683 2015-10-21  Richard Biener  <rguenther@suse.de>
684
685         PR middle-end/68031
686         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
687         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
688         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
689         make sure they are not registered for update.
690
691 2015-10-21  Richard Biener  <rguenther@suse.de>
692
693         PR tree-optimization/68026
694         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
695         unsigned VARYING values.
696
697 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
698
699         * asan.c (asan_emit_stack_protection): Don't pass local stack to
700         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
701         NULL and use local stack than.
702         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
703         in addition to __asan_init.
704         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
705         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
706         * asan.h (asan_intercepted_p): Handle new string builtins.
707         * ubsan.c (ubsan_use_new_style_p): New function.
708         (ubsan_instrument_float_cast): If location is unknown, assign
709         input_location to loc. Propagate loc to ubsan_create_data if
710         ubsan_use_new_style_p returned true.
711
712 2015-10-21  Jeff Law  <law@redhat.com>
713
714         * Makefile.in (OBJS): Remove sched-vis.c
715         * sched-vis.c: Removed.  Code moved into...
716         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
717         * rtl.h: Remove prototypes for functions now living in print-rtl.c
718         * print-rtl.h Add prototypes for new functions in print-rtl.c.
719         * auto-inc-dec.c: Include print-rtl.h
720         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
721         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
722
723         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
724         ATTRIBUTE_UNUSED.
725
726 2015-10-21  Richard Biener  <rguenther@suse.de>
727             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
728
729         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
730         to match.pd.
731         Move (a * (1 << b)) is (a << b) to match.pd.
732         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
733         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
734         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
735
736         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
737         New simplifier.
738         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
739         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
740         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
741         : New simplifier.
742         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
743         New simplifier.
744         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
745
746 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
747             Szabolcs Nagy  <szabolcs.nagy@arm.com>
748             Alan Modra  <amodra@gmail.com>
749
750         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
751         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
752         (LINK_SPEC): Add %(link_secure_plt).
753         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
754         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
755
756 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
757             Szabolcs Nagy  <szabolcs.nagy@arm.com>
758
759         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
760         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
761
762 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
763
764         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
765         New function.
766         (fusion_load_store): Use it.
767         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
768         ldp and stp in VD modes.
769         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
770         (store_pair<mode>, VD): Likewise.
771
772 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
773
774         PR rtl-optimization/67609
775         * lra-splill.c (lra_final_code_change): Don't remove all
776         sub-registers.
777
778 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
779
780         * simplify-rtx.c (simplify_binary_operation): If either operand was
781         a constant pool reference use them if all other simplifications failed.
782
783 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
784
785         * config/aarch64/aarch64.md
786         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
787         * config/aarch64/aarch64-simd.md
788         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
789         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
790         (aarch64_fpconst_pow_of_2): New function.
791         (aarch64_vec_fpconst_pow_of_2): Likewise.
792         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
793         prototype.
794         (aarch64_vec_fpconst_pow_of_2): Likewise.
795         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
796         (aarch64_fp_vec_pow2): Likewise.
797
798 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
799
800         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
801         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
802         * config/alpha/alpha.c (alpha_function_arg_advance): Update
803         ALPHA_ARG_SIZE usage.
804         (alpha_arg_partial_bytes): Ditto.
805
806 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
807
808         PR target/66810
809         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
810         error_mark_node decls.
811
812 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
813
814         PR target/67963
815         PR target/67985
816         * common/config/i386/i386-common.c (ix86_handle_option): Remove
817         OPT_miamcu handling.
818         * config/i386/i386.c (PTA_NO_80387): New macro.
819         (processor_alias_table): Add PTA_NO_80387 to lakemont.
820         (ix86_option_override_internal): Update MASK_80387 from
821         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
822         SSE math only if 80387 is supported.  Don't change
823         MASK_FLOAT_RETURNS.
824         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
825         80387 is supported.
826         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
827         if TARGET_80387 is true and TARGET_IAMCU is false.
828         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
829         is true and TARGET_IAMCU_P is false.
830
831 2015-10-20  Richard Biener  <rguenther@suse.de>
832
833         PR tree-optimization/68017
834         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
835
836 2015-10-20  Martin Liska  <mliska@suse.cz>
837
838         * cgraphclones.c (cgraph_node::create_virtual_clone):
839         Verify cgraph_node.local.versionable instead of calling
840         tree_versionable_function_p.
841         * ipa-cp.c (determine_versionability): Save the information
842         to ipa_node_params summary.
843         (ipcp_versionable_function_p): Use it.
844         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
845         (ipcp_generate_summary): Do not compute cgraph_node
846         versionability.
847         * ipa-inline-analysis.c (inline_generate_summary): Compute
848         versionability for all cgraph nodes.
849         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
850         ipa_node_params::versionability.
851         * ipa-prop.h (struct ipa_node_params): Declare it.
852
853 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
854
855         PR other/67868
856         * varasm.c (assemble_variable): Move special vtv handling to..
857         (handle_vtv_comdat_sections): .. here. New function.
858         (output_object_block): Handle vtv sections.
859
860 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
861
862         PR target/66912
863         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
864
865 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
866
867         * doc/extend.texi: Update documentation WRT inline functions.
868
869 2015-10-20  Alan Modra  <amodra@gmail.com>
870
871         PR go/66870
872         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
873         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
874         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
875
876 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
877
878         PR rtl-optimization/66790
879         * df.h (DF_MIR): New macro.
880         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
881         (DF_MIR_INFO_BB): New macro.
882         (DF_MIR_IN, DF_MIR_OUT): New macros.
883         (struct df_mir_bb_info): New.
884         (df_mir): New macro.
885         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
886         declarations.
887         (df_mir_get_bb_info): New.
888         * df-problems.c (struct df_mir_problem_data): New.
889         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
890         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
891         df_mir_confluence_0, df_mir_confluence_n,
892         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
893         df_mir_bottom_dump, df_mir_verify_solution_start,
894         df_mir_verify_solution_end): New.
895         (problem_MIR): New.
896         (df_mir_add_problem, df_mir_simulate_one_insn): New.
897         * timevar.def (TV_DF_MIR): New.
898         * ree.c: Include bitmap.h
899         (add_removable_extension): Add an INIT_REGS parameter.  Use it
900         to skip zero-extensions that may get an uninitialized register.
901         (find_removable_extensions): Compute must-initialized registers
902         using the MIR dataflow problem. Update the call to
903         add_removable_extension.
904         (find_and_remove_re): Call df_mir_add_problem.
905
906 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
907
908         * common/config/mn10300/mn10300-common.c
909         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
910         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
911
912 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
913
914         * doc/extend.texi (Explicit Register Variables): Simplify and
915         avoid unnecessary and confusion abbreviations.  Update cross
916         references.
917         doc/implement-c.tex: Update cross reference.
918
919 2015-10-19  Jeff Law  <law@redhat.com>
920
921         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
922         that create irreducible loops unless the path elimiantes a multiway
923         branch.
924
925 2015-10-19  Richard Biener  <rguenther@suse.de>
926
927         PR tree-optimization/67975
928         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
929         * tree-cfg.c (extract_true_false_controlled_edges): Split out
930         core worker from ...
931         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
932         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
933         instead of block number for PHIs with two or one args.
934         (vn_phi_eq): Compare edge predicates of PHIs that are in different
935         blocks.
936
937 2015-10-19  Richard Biener  <rguenther@suse.de>
938
939         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
940         (gimple_stmt_nonnegative_warnv_p): Use it.
941         * match.pd (CPROJ): New operator list.
942         (cproj (complex ...)): Move simplifications from ...
943         * builtins.c (fold_builtin_cproj): ... here.
944
945 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
946
947         * config/i386/i386.c (ix86_expand_vector_move): Use
948         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
949         alignment.
950
951 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
952
953         * doc/invoke.texi: Replace @optindex with @opindex.
954
955 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
956
957         PR target/67995
958         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
959         arch= is set,  clear all bits in x_ix86_isa_flags, except for
960         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
961
962 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
963
964         PR middle-end/68002
965         * common.opt (fkeep-static-functions): New option.
966         * doc/invoke.texi: Document it.
967         * cgraphunit.c (cgraph_node::finalize_function): Use it.
968
969 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
970
971         * sched-int.h (struct autopref_multipass_data_): Remove offset
972         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
973         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
974         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
975         (autopref_rank_data): New function.
976         (autopref_rank_for_schedule): Use it.
977         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
978
979 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
980
981         PR other/65800
982         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
983
984 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
985
986         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
987         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
988         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
989         (STANDARD_STARTFILE_PREFIX_1): New.
990         (STANDARD_STARTFILE_PREFIX_2): New.
991
992 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
993
994         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
995         (darwin_driver_init): Note a version-min when provided on the c/l.
996         * config/darwin.h (%darwin_minversion): Remove.
997         * config/i386/darwin.h: Likewise.
998         * config/rs6000/darwin.h: Likewise.
999         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1000         rather than an arbitrary constant.
1001
1002 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1003
1004         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1005         PPC, detect conflicts between -arch and multilib settings.  Detect
1006         and warn about conflicts between multiple -arch definitions.
1007
1008 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1009
1010         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1011
1012 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1013
1014         * lra-constraints.c (add_next_usage_insn): Change argument type
1015         from rtx to rtx_insn *.
1016
1017 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
1018
1019         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1020         for Lakemont.
1021
1022 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
1023
1024         * config/tilepro/gen-mul-tables.cc: Adjust include files.
1025         * config/tilegx/mul-tables.c: Regenerate.
1026         * config/tilepro/mul-tables.c: Regenerate.
1027
1028         * config/tilegx/tilegx-c.c: Adjust include files.
1029         * config/tilegx/tilegx.c: Likewise.
1030         * config/tilepro/tilepro-c.c: Likewise.
1031         * config/tilepro/tilepro.c: Likewise.
1032         * config/aarch64/aarch64-builtins.c: Likewise.
1033         * config/aarch64/aarch64.c: Likewise.
1034         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1035         * config/alpha/alpha.c: Likewise.
1036         * config/arc/arc.c: Likewise.
1037         * config/arm/aarch-common.c: Likewise.
1038         * config/arm/arm-builtins.c: Likewise.
1039         * config/arm/arm-c.c: Likewise.
1040         * config/arm/arm.c: Likewise.
1041         * config/avr/avr-c.c: Likewise.
1042         * config/avr/avr-devices.c: Likewise.
1043         * config/avr/avr-log.c: Likewise.
1044         * config/avr/avr.c: Likewise.
1045         * config/bfin/bfin.c: Likewise.
1046         * config/c6x/c6x.c: Likewise.
1047         * config/cr16/cr16.c: Likewise.
1048         * config/cris/cris.c: Likewise.
1049         * config/darwin-c.c: Likewise.
1050         * config/darwin-driver.c: Likewise.
1051         * config/darwin.c: Likewise.
1052         * config/default-c.c: Likewise.
1053         * config/epiphany/epiphany.c: Likewise.
1054         * config/epiphany/mode-switch-use.c: Likewise.
1055         * config/epiphany/resolve-sw-modes.c: Likewise.
1056         * config/fr30/fr30.c: Likewise.
1057         * config/frv/frv.c: Likewise.
1058         * config/ft32/ft32.c: Likewise.
1059         * config/glibc-c.c: Likewise.
1060         * config/h8300/h8300.c: Likewise.
1061         * config/i386/host-cygwin.c: Likewise.
1062         * config/i386/host-mingw32.c: Likewise.
1063         * config/i386/i386-c.c: Likewise.
1064         * config/i386/i386.c: Likewise.
1065         * config/i386/msformat-c.c: Likewise.
1066         * config/i386/winnt-cxx.c: Likewise.
1067         * config/i386/winnt-stubs.c: Likewise.
1068         * config/i386/winnt.c: Likewise.
1069         * config/ia64/ia64-c.c: Likewise.
1070         * config/ia64/ia64.c: Likewise.
1071         * config/iq2000/iq2000.c: Likewise.
1072         * config/lm32/lm32.c: Likewise.
1073         * config/m32c/m32c-pragma.c: Likewise.
1074         * config/m32c/m32c.c: Likewise.
1075         * config/m32r/m32r.c: Likewise.
1076         * config/mcore/mcore.c: Likewise.
1077         * config/mep/mep-pragma.c: Likewise.
1078         * config/mep/mep.c: Likewise.
1079         * config/microblaze/microblaze-c.c: Likewise.
1080         * config/microblaze/microblaze.c: Likewise.
1081         * config/mips/mips-tables.opt
1082         * config/mips/mips.c: Likewise.
1083         * config/mmix/mmix.c: Likewise.
1084         * config/mn10300/mn10300.c: Likewise.
1085         * config/moxie/moxie.c: Likewise.
1086         * config/msp430/msp430-c.c: Likewise.
1087         * config/msp430/msp430.c: Likewise.
1088         * config/nds32/nds32-cost.c: Likewise.
1089         * config/nds32/nds32-fp-as-gp.c: Likewise.
1090         * config/nds32/nds32-intrinsic.c: Likewise.
1091         * config/nds32/nds32-isr.c: Likewise.
1092         * config/nds32/nds32-md-auxiliary.c: Likewise.
1093         * config/nds32/nds32-memory-manipulation.c: Likewise.
1094         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1095         * config/nds32/nds32-predicates.c: Likewise.
1096         * config/nds32/nds32.c: Likewise.
1097         * config/nios2/nios2.c: Likewise.
1098         * config/nvptx/mkoffload.c: Likewise.
1099         * config/nvptx/nvptx.c: Likewise.
1100         * config/pa/pa.c: Likewise.
1101         * config/pdp11/pdp11.c: Likewise.
1102         * config/rl78/rl78-c.c: Likewise.
1103         * config/rl78/rl78.c: Likewise.
1104         * config/rs6000/host-darwin.c: Likewise.
1105         * config/rs6000/rs6000-c.c: Likewise.
1106         * config/rs6000/rs6000-linux.c: Likewise.
1107         * config/rs6000/rs6000.c: Likewise.
1108         * config/rx/rx.c: Likewise.
1109         * config/s390/s390-c.c: Likewise.
1110         * config/s390/s390.c: Likewise.
1111         * config/sh/sh-c.c: Likewise.
1112         * config/sh/sh-mem.cc: Likewise.
1113         * config/sh/sh.c: Likewise.
1114         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1115         * config/sh/sh_treg_combine.cc: Likewise.
1116         * config/sol2-c.c: Likewise.
1117         * config/sol2-cxx.c: Likewise.
1118         * config/sol2-stubs.c: Likewise.
1119         * config/sol2.c: Likewise.
1120         * config/sparc/sparc-c.c: Likewise.
1121         * config/sparc/sparc.c: Likewise.
1122         * config/spu/spu-c.c: Likewise.
1123         * config/spu/spu.c: Likewise.
1124         * config/stormy16/stormy16.c: Likewise.
1125         * config/v850/v850-c.c: Likewise.
1126         * config/v850/v850.c: Likewise.
1127         * config/vax/vax.c: Likewise.
1128         * config/visium/visium.c: Likewise.
1129         * config/vms/vms-c.c: Likewise.
1130         * config/vms/vms.c: Likewise.
1131         * config/vxworks.c: Likewise.
1132         * config/winnt-c.c: Likewise.
1133         * config/xtensa/xtensa.c: Likewise.
1134
1135 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1136
1137         PR target/67745
1138         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1139         (FUNCTION_BOUNDARY_P): New macro:
1140         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1141         New hook.
1142         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1143         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1144         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1145         * gcc/function.c (allocate_struct_function): Call
1146         relayout_function hook.
1147         * gcc/passes.c (rest_of_decl_compilation): Likewise.
1148
1149 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1150
1151         PR target/67745
1152         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1153         * config/arm/arm.c (arm_option_override_internal): Call
1154         arm_override_options_after_change_1.
1155         (arm_override_options_after_change): New function.
1156         (arm_override_options_after_change_1): Likewise.
1157         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1158
1159 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1160
1161         Revert:
1162         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1163         empty constructors.
1164
1165 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1166
1167         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1168         argument is an ADDR_EXPR.
1169
1170 2015-10-16  Richard Biener  <rguenther@suse.de>
1171
1172         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1173         and get rid of force_gimple_operand_gsi.
1174         (gimple_fold_builtin_memory_chk): Likewise.
1175         (gimple_fold_builtin_stxcpy_chk): Likewise.
1176         (rewrite_to_defined_overflow): Likewise.
1177         (gimple_convert_to_ptrofftype): New function.
1178         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1179
1180 2015-10-16  Richard Biener  <rguenther@suse.de>
1181
1182         * tree-nested.h (build_addr): Adjust prototype.
1183         * tree-nested.c (build_addr): Remove context argument and use
1184         mark_addressable.
1185         (get_static_chain): Adjust calls to build_addr.
1186         (convert_nl_goto_reference): Likewise.
1187         (convert_tramp_reference_op): Likewise.
1188         (finalize_nesting_tree_1): Likewise.
1189         * value-prof.c (gimple_ic): Likewise.
1190         * gimple-low.c (lower_builtin_setjmp): Likewise.
1191         * tree-parloops.c (take_address_of): Likewise.
1192         (create_call_for_reduction_1): Likewise.
1193         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1194         (gimple_gen_ic_func_profiler): Likewise.
1195
1196 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1197
1198         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1199         empty constructors.
1200
1201 2015-10-16  Michael Collison  <michael.collison@linaro.org>
1202             Andrew Pinski <andrew.pinski@caviumnetworks.com>
1203
1204         * match.pd ((x < y) && (x < z) -> x < min (y,z),
1205         (x > y) and (x > z) -> x > max (y,z))
1206
1207 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
1208             Szabolcs Nagy  <szabolcs.nagy@arm.com>
1209
1210         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1211         (DYNAMIC_LINKER): Renamed to ...
1212         (GLIBC_DYNAMIC_LINKER): This.
1213         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1214
1215 2015-10-15  Marek Polacek  <polacek@redhat.com>
1216
1217         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1218         gimple_call_builtin instead of is_gimple_call.
1219
1220 2015-10-15  Richard Biener  <rguenther@suse.de>
1221
1222         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1223
1224 2015-10-15  Richard Biener  <rguenther@suse.de>
1225
1226         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1227         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1228         * tree-vect-loop.c (get_initial_def_for_induction): Drop
1229         use of force_gimple_operand in favor of gimple_build.
1230         Use vect_get_new_ssa_name.
1231         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1232         (vectorizable_mask_load_store): Likewise.
1233         (vectorizable_call): Likewise.
1234         (vectorizable_store): Likewise.
1235         (vectorizable_load): Likewise.
1236         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
1237
1238 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
1239
1240         PR tree-optimization/67945
1241         * tree-pass.h (PROP_gimple_opt_math): New property flag.
1242         * generic-match-head.c (canonicalize_math_p): New function.
1243         * gimple-match-head.c: Include tree-pass.h.
1244         (canonicalize_math_p): New function.
1245         * match.pd: Group math built-in rules into simplifications
1246         and canonicalizations.  Guard the latter with canonicalize_math_p.
1247         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
1248         PROP_gimple_opt_math property.
1249
1250 2015-10-15  Marek Polacek  <polacek@redhat.com>
1251
1252         PR tree-optimization/67953
1253         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
1254
1255 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
1256
1257         * config.gcc: Recognize "." in architecture base name for AArch64.
1258
1259 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1260
1261         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1262         ROUND_UP macro.
1263         * config/mips/mips.c (mips_setup_incoming_varargs): Use
1264         ROUND_DOWN to calculate off.
1265         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1266         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1267         rounded_size.
1268
1269 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1270
1271         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1272
1273 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
1274             Torvald Riegel  <triegel@redhat.com>
1275
1276         PR target/67281
1277         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1278         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1279         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1280         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1281         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
1282         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1283         trechkpt, treclaim, tsr, ttest): New define_expands.
1284         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1285         __TM_FENCE__ for htm.
1286         * doc/extend.texi: Update documentation for htm builtins.
1287
1288 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1289
1290         PR target/67967
1291         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1292         REG_CFA_EXPRESSION to aligned SSE stores.
1293
1294 2015-10-14  Jeff Law  <law@redhat.com>
1295
1296         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1297         num_threaded_edges for successful FSM threads too.
1298
1299 2015-10-14  Richard Biener  <rguenther@suse.de>
1300
1301         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1302         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
1303         (vect_get_vec_def_for_operand): Remove unused parameter.
1304         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1305         (vect_create_epilog_for_reduction): Likewise.
1306         (vectorizable_reduction): Likewise.
1307         (vectorizable_live_operation): Likewise.
1308         * tree-vect-patterns.c (type_conversion_p): Likewise.
1309         (vect_recog_vector_vector_shift_pattern): Likewise.
1310         (check_bool_pattern): Likewise.
1311         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1312         (vect_analyze_slp_cost_1): Likewise.
1313         * tree-vect-stmts.c (process_use): Likewise.
1314         (vect_get_vec_def_for_operand): Do not handle reductions.
1315         (vect_get_vec_defs): Adjust.
1316         (vectorizable_mask_load_store): Likewise.
1317         (vectorizable_call): Likewise.
1318         (vectorizable_simd_clone_call): Likewise.
1319         (vect_get_loop_based_defs): Likewise.
1320         (vectorizable_conversion): Likewise.
1321         (vectorizable_assignment): Likewise.
1322         (vectorizable_shift): Likewise.
1323         (vectorizable_operation): Likewise.
1324         (vectorizable_store): Likewise.
1325         (vectorizable_load): Likewise.
1326         (vect_is_simple_cond): Likewise.
1327         (vectorizable_condition): Likewise.
1328         (vect_is_simple_use): Remove unused parameters.
1329         (vect_is_simple_use_1): Adjust and rename.
1330
1331 2015-10-14  Richard Biener  <rguenther@suse.de>
1332
1333         PR tree-optimization/67915
1334         * match.pd: Handle comparisons of addresses of STRING_CSTs.
1335         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1336         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1337         stmt folding in favor of GIMPLE one.
1338
1339 2015-10-14  Marek Polacek  <polacek@redhat.com>
1340
1341         PR tree-optimization/67815
1342         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1343         (reassociate_bb): Call it.
1344
1345 2015-10-14  Richard Biener  <rguenther@suse.de>
1346
1347         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1348         Reset info at start.
1349         (vect_analyze_group_access_1): Add debug print.
1350         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1351         (vect_compute_single_scalar_iteration_cost): ... to this.
1352         (vect_analyze_loop_2): Adjust.
1353         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1354         * tree-vectorizer.h: ... here.
1355         (add_stmt_info_to_vec): Remove.
1356         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1357
1358 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1359
1360         * targhooks.c (default_target_option_pragma_parse): Do not warn if
1361         called on behalf of "#pragma GCC pop_options".
1362
1363 2015-10-14  Tom de Vries  <tom@codesourcery.com>
1364
1365         * cfganal.c (verify_no_unreachable_blocks): New function.
1366         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1367         verify_no_unreachable_blocks.
1368         cfganal.h (verify_no_unreachable_blocks): Declare.
1369
1370 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
1371
1372         * common.opt: Add flag_checking.
1373         * system.h (CHECKING_P): Define.
1374
1375 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
1376             Aldy Hernandez  <aldyh@redhat.com>
1377             Ilya Verbin  <ilya.verbin@intel.com>
1378
1379         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1380         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1381         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1382         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1383         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1384         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1385         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1386         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1387         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1388         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1389         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1390         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1391         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1392         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1393         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1394         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1395         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1396         (struct cgraph_simd_clone_arg): Adjust comment.
1397         * coretypes.h (struct gomp_ordered): New forward decl.
1398         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1399         set critical clauses to it.
1400         (gimple_build_omp_ordered): Return gomp_ordered * instead of
1401         gimple *.  Add CLAUSES argument, set ordered clauses to it.
1402         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1403         GIMPLE_OMP_ORDERED.
1404         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1405         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1406         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
1407         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1408         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
1409         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1410         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
1411         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1412         renumber
1413         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1414         (gomp_critical): Add clauses field.
1415         (gomp_ordered): New struct.
1416         (is_a_helper <gomp_ordered *>::test): New inline.
1417         (gimple_build_omp_critical): Add CLAUSES argument.
1418         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
1419         instead of gimple *.
1420         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1421         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1422         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1423         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1424         inline functions.
1425         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1426         (dump_gimple_omp_target): Handle enter data and exit data.
1427         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1428         (dump_gimple_omp_critical): Print clauses.
1429         (dump_gimple_omp_ordered): New function.
1430         (dump_gimple_omp_task): Handle taskloop.
1431         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1432         GIMPLE_OMP_ORDERED.
1433         * gimple-walk.c (walk_gimple_op): Walk clauses on
1434         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1435         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1436         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1437         (struct gimplify_omp_ctx): Add loop_iter_var,
1438         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1439         and target_firstprivatize_array_bases fields.
1440         (delete_omp_context): Release loop_iter_var.
1441         (gimplify_bind_expr): Handle ORT_NONE.
1442         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1443         ORT_COMBINED_TARGET.
1444         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1445         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1446         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
1447         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
1448         ctx->target_map_scalars_firstprivate.
1449         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
1450         data sharing clauses.  For data sharing clause with VLA decl
1451         on omp target/target data don't add firstprivate for the pointer.
1452         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1453         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1454         the addition of ORT_COMBINED_TARGET.
1455         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
1456         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
1457         pointers as zero length array sections and
1458         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1459         data sharing.
1460         (omp_check_private): Handle omp_member_access_dummy_var vars.
1461         (find_decl_expr): New function.
1462         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
1463         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1464         Handle OMP_CLAUSE_GANG separately.  Handle
1465         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1466         clauses.  Diagnose linear clause on combined
1467         distribute {, parallel for} simd construct, unless it is the loop
1468         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1469         Handle map clauses with COMPONENT_REF.  Initialize
1470         ctx->target_map_scalars_firstprivate,
1471         ctx->target_firstprivatize_array_bases and
1472         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
1473         linear clause even to target region if combined.  Remove
1474         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1475         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
1476         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1477         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
1478         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1479         For linear clause on worksharing loop combined with parallel add
1480         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
1481         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
1482         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
1483         taskloop if needed.
1484         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1485         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1486         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1487         GOMP_MAP_POINTER.
1488         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
1489         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1490         in target body.  Handle removal of struct mapping if struct is not
1491         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
1492         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
1493         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
1494         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1495         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1496         clause appear together.  Handle
1497         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
1498         clause if it has map-type-modifier always.  Handle
1499         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1500         clauses.
1501         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1502         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1503         callers.
1504         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
1505         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
1506         iterators in doacross loops.
1507         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1508         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
1509         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
1510         for the addition of ORT_COMBINED_TARGET.
1511         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1512         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
1513         and OMP_TARGET_EXIT_DATA.
1514         (gimplify_omp_ordered): New function.
1515         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1516         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
1517         Gimplify clauses on OMP_CRITICAL.
1518         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1519         expand_GOMP_SIMD_ORDERED_END): New functions.
1520         * internal-fn.def (GOMP_SIMD_ORDERED_START,
1521         GOMP_SIMD_ORDERED_END): New internal functions.
1522         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1523         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1524         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1525         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1526         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1527         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1528         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1529         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1530         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1531         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1532         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1533         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1534         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1535         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1536         adjust type.
1537         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1538         GOMP_target_data_41, adjust type.
1539         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1540         GOMP_target_update_41, adjust type.
1541         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1542         field.
1543         (struct omp_for_data): Add ordered and simd_schedule fields.
1544         (omp_member_access_dummy_var, unshare_and_remap_1,
1545         unshare_and_remap, is_taskloop_ctx): New functions.
1546         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1547         (extract_omp_for_data): Handle taskloops and doacross loops
1548         and simd schedule modifier.
1549         (omp_adjust_chunk_size): New function.
1550         (get_ws_args_for): Use it.
1551         (lookup_sfield): Change first argument to splay_tree_key,
1552         add overload with first argument tree.
1553         (maybe_lookup_field): Likewise.
1554         (use_pointer_for_field): Handle omp_member_access_dummy_var.
1555         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1556         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1557         (build_outer_var_ref): Add LASTPRIVATE argument, handle
1558         taskloops and omp_member_access_dummy_var vars.
1559         (build_sender_ref): Change first argument to splay_tree_key,
1560         add overload with first argument tree.
1561         (install_var_field): For mask & 8 use &DECL_UID as key instead
1562         of the tree itself.
1563         (fixup_child_record_type): Const qualify *.omp_data_i.
1564         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1565         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1566         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1567         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1568         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1569         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1570         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1571         kinds.
1572         (add_taskreg_looptemp_clauses): New function.
1573         (scan_omp_parallel): Use it.
1574         (scan_omp_task): Likewise.
1575         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1576         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1577         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1578         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
1579         sandwiched taskloop constructs.  Type check
1580         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
1581         region.  Diagnose depend(source) or depend(sink:...) on
1582         target constructs or task/taskloop.
1583         (handle_simd_reference): Use get_name.
1584         (lower_rec_input_clauses): Likewise.  Ignore all
1585         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1586         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
1587         before passing it to omp_clause_{default,copy}_ctor.  Handle
1588         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
1589         lastprivate_firstprivate flag for linear that needs copyin and
1590         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1591         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1592         on taskloop lookup decl in outer context.  Pass true to
1593         build_outer_var_ref lastprivate argument.  Handle
1594         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1595         outside of outer taskloop for.
1596         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1597         OMP_CLAUSE_DECL.
1598         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1599         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
1600         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
1601         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
1602         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1603         abstract origin.  Handle omp_member_access_dummy_var vars.
1604         (expand_parallel_call): Use expand_omp_build_assign.
1605         (expand_task_call): Handle taskloop construct expansion.  Add
1606         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
1607         integers.  Add priority argument to GOMP_task* calls.  Or in
1608         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1609         GOMP_task call.
1610         (expand_omp_build_assign): Add prototype.  Add AFTER
1611         argument, if true emit statements after *GSI_P and continue linking.
1612         (expand_omp_taskreg): Adjust expand_task_call caller.
1613         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1614         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1615         zero_iter2_bb and first_zero_iter2 arguments, handle computation
1616         of counts even for ordered loops.
1617         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1618         (expand_omp_ordered_source, expand_omp_ordered_sink,
1619         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1620         functions.
1621         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
1622         clauses on worksharing loop.  Handle DOACROSS loop expansion.
1623         (expand_omp_for_static_nochunk): Handle linear clauses on
1624         worksharing loop.  Adjust expand_omp_for_init_counts
1625         callers.
1626         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
1627         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
1628         expand_omp_for_init_counts callers.
1629         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1630         functions.
1631         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1632         Handle doacross loops.
1633         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1634         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
1635         GOMP_target_{41,update_41,enter_exit_data} libcalls.
1636         (expand_omp): Don't expand ordered depend constructs here, record
1637         ord_stmt instead for later expand_omp_for_generic.
1638         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1639         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1640         clause as stand-alone directive.
1641         (lower_omp_ordered_clauses): New function.
1642         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1643         don't lower anything.
1644         (lower_omp_for_lastprivate): Use last _looptemp_ clause
1645         on taskloop for comparison.
1646         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
1647         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1648         expansion for linear adjustments.
1649         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1650         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1651         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
1652         to tree * pointing to the stmt's clauses.
1653         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1654         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1655         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1656         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1657         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1658         clauses.  Always use short kind and 8-bit align shift.
1659         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1660         (struct lower_omp_regimplify_operands_data): New type.
1661         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1662         New functions.
1663         (lower_omp_1): Use lower_omp_regimplify_operands instead of
1664         gimple_regimplify_operands.
1665         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1666         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1667         clause as stand-alone directive.
1668         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1669         (simd_clone_mangle): Mangle the various linear kinds
1670         per the new ABI.
1671         (simd_clone_adjust_argument_types): Handle
1672         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1673         (simd_clone_init_simd_arrays): Don't do anything for uval.
1674         (simd_clone_adjust): Handle
1675         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1676         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1677         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1678         * omp-low.h (omp_member_access_dummy_var): New prototype.
1679         * passes.def (pass_simduid_cleanup): Schedule another copy of the
1680         pass after all optimizations.
1681         * tree.c (omp_clause_code_name): Add entries for
1682         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1683         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1684         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
1685         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1686         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1687         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
1688         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1689         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1690         clauses.
1691         * tree-core.h (enum omp_clause_linear_kind): New.
1692         (struct tree_omp_clause): Change type of map_kind
1693         from unsigned char to unsigned int.  Add subcode.if_modifier
1694         and subcode.linear_kind fields.
1695         (enum omp_clause_code): Add
1696         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1697         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1698         (OMP_CLAUSE_REDUCTION): Document
1699         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1700         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1701         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1702         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
1703         operand.
1704         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
1705         operand.
1706         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1707         codes.
1708         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1709         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1710         char.
1711         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1712         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1713         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1714         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1715         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1716         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1717         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1718         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1719         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1720         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1721         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1722         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1723         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1724         * tree-inline.c (remap_gimple_stmt): Handle clauses on
1725         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
1726         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1727         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1728         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1729         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1730         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1731         (convert_local_omp_clauses): Likewise.
1732         * tree-pretty-print.c (dump_omp_clause): Handle
1733         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1734         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1735         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1736         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1737         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
1738         GOMP_MAP_FORCE_DEALLOC.  Handle
1739         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1740         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1741         and clauses on OMP_ORDERED and OMP_CRITICAL.
1742         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1743         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1744         (vectorize_loops): Adjust comments.
1745         (pass_simduid_cleanup::execute): Likewise.
1746         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1747         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1748         * wide-int.h (wi::gcd): New.
1749
1750 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1751
1752         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1753         (ix86_function_arg_advance): Ditto.
1754         (ix86_function_arg): Ditto.
1755         (ix86_gimplify_va_arg): Ditto.
1756         (ix86_class_max_nregs): Ditto.
1757         (inline_memory_move_cost): Ditto.
1758         (ix86_set_reg_reg_cost): Ditto.
1759         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1760
1761 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
1762
1763         PR middle-end/67912
1764         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1765
1766 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1767
1768         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1769         ROUND_UP macro and UNITS_PER_WORD * 2.
1770         * config/sparc/sparc.c (sparc_compute_frame_size):
1771         Use ROUND_UP and ROUND_DOWN macros where applicable.
1772         (function_arg_record_value, function_arg_record_value_1)
1773         (function_arg_record_value_1): Ditto.
1774         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1775         alignment to double-word.
1776         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1777         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1778         rounded_size.
1779
1780 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1781
1782         * gcc/rtl.h (print_insn): Fix prototype.
1783
1784 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1785
1786         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1787         -1.  Add assert that returned entry matches phi argument.
1788         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1789         free_stmt_vec_info_vec ...
1790         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
1791         with -1.
1792
1793 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1794
1795         PR tree-optimization/67909, 67947
1796         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1797         really skip the inner loop.
1798
1799 2015-10-13  Jeff Law  <law@redhat.com>
1800
1801         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1802         Allow single block jump threading paths.
1803
1804 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1805
1806         PR tree-optimization/67476
1807         * doc/invoke.texi (@item parloops-schedule): New item.
1808         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1809         * tree-parloops.c: Include params-enum.h.
1810         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1811
1812 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1813
1814         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1815         * params-enum.h: New file.
1816         * opts.c (handle_param): Handle case that param arg is a string.
1817         * params-list.h: Handle DEFPARAMENUM5 in params.def.
1818         * params.c (find_param): New function, factored out of ...
1819         (set_param_value): ... here.
1820         (param_string_value_p): New function.
1821         * params.h (struct param_info): Add value_names field.
1822         (find_param, param_string_value_p): Declare.
1823
1824 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1825
1826         PR tree-optimization/67476
1827         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1828
1829 2015-10-13  Richard Biener  <rguenther@suse.de>
1830
1831         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1832         the data dependence vector.
1833         (vect_peeling_hash_insert): Get the peeling hash table as argument.
1834         (vect_peeling_hash_get_lowest_cost): Likewise.
1835         (vect_enhance_data_refs_alignment): Adjust.
1836         (struct _vect_peel_info, struct _vect_peel_extended_info,
1837         struct peel_info_hasher): Move from ...
1838         * tree-vectorizer.h: ... here.
1839         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1840         (LOOP_VINFO_PEELING_HTAB): Likewise.
1841         (struct _loop_vec_info): Remove min_profitable_iters and
1842         peeling_htab members.
1843         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1844         here.
1845         (destroy_loop_vec_info): Adjust.
1846         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1847         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1848         to estimate alias versioning cost.
1849         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1850
1851 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
1852
1853         * real.h (real_isinteger): Declare.
1854         * real.c (real_isinteger): New function.
1855         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1856         if y is an even integer.
1857
1858 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1859
1860         revert:
1861         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1862         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1863         counts when these are more informative.
1864
1865 2015-10-12  Jeff Law  <law@redhat.com>
1866
1867         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1868         (fsm_find_control_stmt_paths): Change name of first argument to
1869         more accurately relfect what it really is.  Handle simplification
1870         of GIMPLE_COND after finding a thread path for NAME.
1871         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1872         nontrivial conditions to be handled by FSM threader.
1873         (thread_through_normal_block): Extract the name to looup via
1874         FSM threader from COND_EXPR.
1875
1876         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1877         restriction that traced SSA_NAME is a user variable.
1878
1879 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1880
1881         PR tree-optimization/67476
1882         * omp-low.c (expand_omp_for_generic): Add missing phis.
1883
1884 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1885
1886         PR tree-optimization/67476
1887         * omp-low.c (expand_omp_for_generic): Handle simple latch.
1888
1889 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
1890
1891         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1892         tables: add tbl3 and tbx4.
1893         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1894         (aarch64_tbx4v8qi): New.
1895         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1896         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1897         Rewrite using builtin functions.
1898         * config/aarch64/iterators.md (UNSPEC_TBX): New.
1899
1900 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1901
1902         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1903         ROUND_UP macro.
1904         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1905         Use ROUND_UP and ROUND_DOWN macros where applicable.
1906         (rs6000_darwin64_record_arg_flush): Ditto.
1907         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1908         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1909         rounded_size.
1910
1911 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1912
1913         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1914         (AARCH64_ROUND_DOWN): Ditto.
1915         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1916
1917 2015-10-12  Richard Biener  <rguenther@suse.de>
1918
1919         PR ipa/67783
1920         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1921         code that analyzes IVs on each stmt but in a cheaper way avoiding
1922         quadratic behavior.
1923
1924 2015-10-12  Nick Clifton  <nickc@redhat.com>
1925
1926         * config/msp430/msp430.c (msp430_mcu_names): Rename to
1927         msp430_mcu_data, add fields for ISA and hardware multiply
1928         support.  Import latest data from the devices.csv file.
1929         (msp430_override_option): Use the data from the new array.
1930         (msp430_use_f5_series_hwmult): Likewise.
1931         (use_32bit_hwmult): Likewise.
1932         (msp430_no_hwmult): Likewise.
1933         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
1934         MCU names.
1935         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
1936         not recognised then no hardware multiply support is assumed and
1937         that only the MSP430 ISA is allowed.
1938
1939 2015-10-12  Richard Biener  <rguenther@suse.de>
1940
1941         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
1942         related code ...
1943         (vect_analyze_loop_2): ... here.
1944
1945 2015-10-11  Jason Merrill  <jason@redhat.com>
1946
1947         PR c++/67557
1948         * expr.c (store_field): Call store_constructor directly when
1949         storing a CONSTRUCTOR into a target smaller than its type.
1950         Guard against unsafe bitwise copy.
1951
1952 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1953
1954         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1955         counts when these are more informative.
1956
1957 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1958
1959         * tree-profile.c (tree_profiling): Do not clear
1960         pure/const when not instrumenting.
1961         (pass tree_profile): Add dump of symtab.
1962
1963 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1964
1965         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
1966         addresses.
1967         (fold_addr_of_array_ref_difference): Likewise.
1968
1969 2015-10-11  Jeff Law  <law@redhat.com>
1970
1971         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
1972         tree-ssa-threadbackward.c.
1973         (fsm_find_control_statement_thread_paths): Likewise.
1974         (thread_through_normal_block): Break out FSM bits and move them
1975         into a new function in tree-ssa-threadbackward.c.  Call new function
1976         instead.
1977         Minimize header file usage.
1978         * tree-ssa-threadbackward.h: New file.
1979         * tree-ssa-threadbackward.c: Likewise.
1980         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
1981
1982 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
1983
1984         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
1985
1986 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
1987
1988         PR rtl-optimization/67864
1989         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
1990         fallthrough edges for conditional jumps.  Don't sort candidate
1991         edges if not optimizing for speed.
1992
1993 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1994
1995         * defaults.h (REVERSE_CONDITION): New default definition.
1996         * jump.c (reversed_comparison_code_parts): Adjust.
1997
1998 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1999
2000         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2001         check HARD_FRAME_POINTER_IS_ARG_POINTER.
2002
2003 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2004
2005         * defaults.h (FRAME_ADDR_RTX): New default definition.
2006         * builtins.c (expand_builtin_return_addr): Adjust.
2007
2008 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2009
2010         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2011         * builtins.c (expand_builtin_return_addr): Adjust.
2012
2013 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2014
2015         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2016         * builtins.c (expand_builtin_return_addr): Adjust.
2017         * doc/tm.texi: Likewise.
2018         * doc/tm.texi.in: Likewise.
2019         * except.c (expand_builtin_unwind_init): Likewise.
2020
2021 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2022
2023         * builtins.c (expand_builtin_return_addr): Adjust.
2024         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2025
2026 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
2027
2028         * tree.c (type_with_interoperable_signedness): New.
2029         (gimple_canonical_types_compatible_p): Use it.
2030         * tree.h (type_with_interoperable_signedness): Declare
2031
2032 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
2033
2034         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2035         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2036         when OEP_ADDRESS_OF is se.
2037
2038 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
2039             Sebastian Pop  <s.pop@samsung.com>
2040
2041         * graphite-dependences.c (scop_get_dependences): Add dump of the
2042         data dependence graph.
2043         * graphite-poly.c (print_isl_union_map): New.
2044         (debug_isl_union_map): New.
2045         * graphite-poly.h (print_isl_union_map): Declare.
2046         (debug_isl_union_map): Declare.
2047
2048 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
2049             Sebastian Pop  <s.pop@samsung.com>
2050
2051         * graphite-poly.c (print_iteration_domain): Remove verbosity.
2052         Remove OpenScop formatting.
2053         (print_iteration_domains): Same.
2054         (debug_iteration_domain): Same.
2055         (debug_iteration_domains): Same.
2056         (print_pdr): Same.
2057         (debug_pdr): Same.
2058         (dump_gbb_cases): Same.
2059         (dump_gbb_conditions): Same.
2060         (print_pdrs): Same.
2061         (debug_pdrs): Same.
2062         (print_pbb_body): Same.
2063         (print_pbb): Same.
2064         (print_scop_params): Same.
2065         (print_scop_context): Same.
2066         (print_scop): Same.
2067         (debug_pbb_domain): Same.
2068         (debug_pbb): Same.
2069         (debug_scop_context): Same.
2070         (debug_scop): Same.
2071         (debug_scop_params): Same.
2072         * graphite-poly.h: Same.
2073         * graphite.c (graphite_transform_loops): Same.
2074
2075 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2076
2077         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2078         call that isn't needed.
2079
2080 2015-10-09  Jeff Law  <law@redhat.com>
2081
2082         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2083         rather than moving each name to the freelist individually.
2084
2085 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
2086
2087         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2088         * frame-header-opt.c: New file.
2089         * config/mips/mips-proto.h (mips_register_frame_header_opt):
2090         Add prototype.
2091         * config/mips/mips.c (mips_compute_frame_info): Check
2092         optimize_call_stack flag.
2093         (mips_option_override): Register new frame_header_opt pass.
2094         (mips_frame_info, mips_int_mask, mips_shadow_set,
2095         machine_function): Move these types to...
2096         * config/mips/mips.h: here.
2097         (machine_function): Add does_not_use_frame_header and
2098         optimize_call_stack fields.
2099         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2100         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2101         Document new flags.
2102         * config/mips/mips.opt (mframe-header-opt): Add new option.
2103
2104 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
2105
2106         * config/i386/i386.c
2107         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2108         ROUND_DOWN where applicable.
2109
2110 2015-10-09  Jeff Law  <law@redhat.com>
2111
2112         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2113         correct statement.
2114
2115 2015-10-09  Renlin Li  <renlin.li@arm.com>
2116
2117         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2118         operands[0] and operands[2].
2119         (neon_vtrn<mode>_insn): Likewise.
2120         (neon_vzip<mode>_insn): Likewise.
2121
2122 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2123
2124         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2125         ((X & C2) << C1): Expand to...
2126         (X {&,^,|} C2 << C1): ...This.
2127         ((X & C2) >> C1): Expand to...
2128         (X {&,^,|} C2 >> C1): ...This.
2129
2130 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
2131
2132         PR target/67895
2133         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2134         Adjust embedded rounding/SAE specifier position.
2135         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2136         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2137         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2138         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2139         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2140         Likewise.
2141         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2142
2143 2015-10-09  Martin Jambor  <mjambor@suse.cz>
2144
2145         tree-optimization/67794
2146         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2147         between types of state,ents but accept original definitions as a
2148         parameter.
2149         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2150         iterate over definitions.
2151
2152 2015-10-09  James Norris  <jnorris@codesourcery.com>
2153
2154         * config/rs6000/rs6000.c (rs6000_offload_options): New.
2155         (TARGET_OFFLOAD_OPTIONS): New.
2156
2157 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
2158
2159         PR middle-end/67891
2160         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2161
2162         PR middle-end/67766
2163         * function.c (expand_function_end): Move return value
2164         promotion past the handling of PARALLELs and CONCATs.
2165
2166         PR rtl-optimization/67828
2167         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2168         (tree_may_unswitch_on): Don't unswitch on expressions
2169         involving undefined values.
2170
2171 2015-10-09  Richard Biener  <rguenther@suse.de>
2172
2173         * genmatch.c (print_operand): Fix formatting.
2174         (dt_node::append_simplify): Warn for multiple simplifiers
2175         that match the same pattern.
2176         * match.pd (log (exp @0)): Remove duplicates.
2177
2178 2015-10-09  Richard Biener  <rguenth@suse.de>
2179
2180         PR target/67366
2181         * gimple-fold.c (optabs-query.h): Include
2182         (gimple_fold_builtin_memory_op): Allow unaligned stores
2183         when movmisalign_optabs are available.
2184
2185 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2186
2187         PR target/67366
2188         * config/arm/arm.md (movmisalign<mode>): New.
2189         * config/arm/iterators.md (HSI): New.
2190
2191 2015-10-09  Richard Biener  <rguenther@suse.de>
2192
2193         PR tree-optimization/67891
2194         * gimple-match.h (gimple_simplified_result_is_gimple_val):
2195         New helper.
2196         (gimple_resimplify1): Declare.
2197         (gimple_resimplify2): Likewise.
2198         (gimple_resimplify3): Likewise.
2199         * gimple-match-head.c (gimple_resimplify1): Export.
2200         (gimple_resimplify2): Likewise.
2201         (gimple_resimplify3): Likewise.
2202         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2203         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2204         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2205         to avoid creating stmts without VN info.
2206
2207 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
2208
2209         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2210         of availability.
2211
2212 2015-10-08  Jeff Law  <law@redhat.com>
2213
2214         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2215         and release_ssa_name in two places.
2216         (gimple_stringop_fixed_value): Similarly.
2217
2218         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2219         release_defs.
2220
2221         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2222         unlink_stmt_vdef and release_ssa_name_fn.
2223
2224         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2225         release_defs.
2226
2227 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
2228
2229         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2230         SSE register save area to 16 bytes only if the incoming stack
2231         boundary is no less than 16 bytes.
2232
2233 2015-10-08  Jeff Law  <law@redhat.com>
2234
2235         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2236         release_ssa_name.  Fix typo in comment.
2237
2238 2015-10-08  Nathan Sidwell  <nathan@acm.org>
2239
2240         * config/nvptx/nvptx.h (struct machine_function): Add comment.
2241         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
2242         may return pointer as well as in memory.
2243         (nvptx_output_return): Likewise.
2244
2245 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2246
2247         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
2248         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
2249         * match.pd: Add rules previously handled by fold_builtin_sqrt
2250         and fold_builtin_cbrt.
2251
2252 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2253
2254         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
2255         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
2256         * fold-const.h (tree_unary_nonnegative_warnv_p)
2257         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2258         (tree_expr_nonnegative_warnv_p): Add depth parameters.
2259         * fold-const.c: Include gimple-fold.h and params.h.
2260         (tree_ssa_name_nonnegative_warnv_p): New function.
2261         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2262         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2263         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2264         Add a depth parameter and increment it for recursive calls to
2265         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
2266         to handle SSA names.
2267         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2268         (gimple_stmt_nonnegative_warnv_p): Declare.
2269         * tree-vrp.c (remove_range_assertions): Remove assert that condition
2270         cannot be proven false.
2271         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2272         (gimple_stmt_nonnegative_warnv_p): Move to...
2273         * gimple-fold.c: ...here.  Add depth parameters and pass them
2274         down to the tree routines.  Accept statements that aren't
2275         assignments or calls but just return false for them.
2276         (gimple_val_nonnegative_real_p): Delete.
2277         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2278         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2279         Check HONOR_NANs first.
2280
2281 2015-10-08  Martin Jambor  <mjambor@suse.cz>
2282
2283         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
2284         unnecessary MIN.
2285
2286 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2287
2288         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2289         in the tail of outer-loop.
2290
2291 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
2292
2293         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2294         return UI_NONE.
2295
2296 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2297
2298         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2299         "cfghooks.h", add prototypes for introduced new functions.
2300         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2301         checks on ability of loop unswitching to tree_unswitch_single_loop;
2302         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2303         on innermost loop check.
2304         (tree_unswitch_single_loop): Add all required checks on ability of
2305         loop unswitching under zero recursive level guard.
2306         (tree_unswitch_outer_loop): New function.
2307         (find_loop_guard): Likewise.
2308         (empty_bb_without_guard_p): Likewise.
2309         (used_outside_loop_p): Likewise.
2310         (get_vop_from_header): Likewise.
2311         (hoist_guard): Likewise.
2312         (check_exit_phi): Likewise.
2313
2314 2015-10-08  Marek Polacek  <polacek@redhat.com>
2315
2316         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2317         ops element.
2318
2319 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2320
2321         PR c/65345
2322         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2323         create_tmp_var_raw instead of create_tmp_var.
2324
2325 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
2326
2327         * expr.c (store_expr_with_bounds): Handle aggregate moves from
2328         BLKmode.
2329         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2330         to define gimple type system; compare aggregates only by size.
2331
2332 2015-10-07  Jeff Law  <law@redhat.com>
2333
2334         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2335         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2336         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
2337         unnecessarily.
2338
2339 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2340             Sebastian Pop  <s.pop@samsung.com>
2341
2342         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2343         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2344         (generate_isl_schedule): Same.
2345         * graphite-optimize-isl.c (scop_get_domains): Same.
2346         (apply_schedule_map_to_scop): Same.
2347         * graphite-poly.c (print_iteration_domains): Same.
2348         (remove_gbbs_in_scop): Same.
2349         (new_scop): Same.
2350         (free_scop): Same.
2351         (print_scop): Same.
2352         * graphite-poly.h (struct scop): Rename bbs to pbbs.
2353         (SCOP_BBS): Remove.
2354         * graphite-scop-detection.c (compare_bb_depths): Remove.
2355         (graphite_sort_dominated_info): Remove.
2356         (try_generate_gimple_bb): Move out of scop_detection.
2357         (all_non_dominated_preds_marked_p): Remove.
2358         (build_scop_bbs_1): Remove.
2359         (build_scop_bbs): Remove.
2360         (nb_pbbs_in_loops): Do not use SCOP_BBS.
2361         (find_scop_parameters): Same.
2362         (sese_dom_walker): Rename gather_bbs.
2363         (before_dom_children): Call try_generate_gimple_bb and collect gbb
2364         and pbb.
2365         (build_scops): Call gather_bbs.
2366         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2367         (add_conditions_to_constraints): Same.
2368         (build_scop_iteration_domain): Same.
2369         (build_scop_drs): Same.
2370         (new_pbb_from_pbb): Same.
2371         * sese.c (new_sese_info): Create bbs.
2372         * sese.h (struct sese_info_t): Add bbs.
2373
2374 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
2375
2376         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2377         encoding in 64-bit mode.
2378
2379 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
2380
2381         PR target/66697
2382         * config/i386/i386.c (ix86_option_override_internal): Always use
2383         8-byte minimum stack boundary in 64-bit mode.
2384         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2385         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2386         Add a REG_CFA_EXPRESSION note if needed.
2387         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2388         (ix86_handle_force_align_arg_pointer_attribute): New.
2389         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2390         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2391         with ix86_handle_force_align_arg_pointer_attribute.
2392         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2393
2394 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2395             Sebastian Pop  <s.pop@samsung.com>
2396
2397         * graphite-scop-detection.c (parameter_index_in_region): Remove
2398         use of SESE_ADD_PARAMS.
2399         (find_scop_parameters): Same.
2400         * sese.c (new_sese_info): Same.
2401         * sese.h (struct sese_info_t): Remove add_params.
2402         (SESE_ADD_PARAMS): Remove.
2403
2404 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2405             Sebastian Pop  <s.pop@samsung.com>
2406
2407         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2408         an sese_info_p.
2409         (copy_def): Same.
2410         (copy_internal_parameters): Same.
2411         (translate_isl_ast_to_gimple): Use an sese_l.
2412         (build_iv_mapping): Same.
2413         * graphite-poly.c (new_sese): Rename new_sese_info.
2414         (free_sese): Rename free_sese_info.
2415         * graphite-poly.h (struct scop): Use an sese_info_p.
2416         (scop_set_region): Same.
2417         * graphite-scop-detection.c (struct sese_l): Moved...
2418         (get_entry_bb): Moved...
2419         (get_exit_bb): Moved...
2420         (parameter_index_in_region_1): Use an sese_info_p.
2421         (parameter_index_in_region): Same.
2422         (scan_tree_for_params): Same.
2423         (find_params_in_bb): Same.
2424         (sese_dom_walker): Use an sese_l.
2425         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2426         (reduction_phi_p): Same.
2427         (parameter_index_in_region_1): Use an sese_info_p.
2428         (propagate_expr_outside_region): Use an sese_l.
2429         * graphite.c: Replace uses of SCOP_REGION.
2430         * sese.c (sese_record_loop): Use an sese_info_p.
2431         (build_sese_loop_nests): Same.
2432         (sese_build_liveouts_use): Same.
2433         (sese_build_liveouts_bb): Same.
2434         (sese_build_liveouts_bb): Same.
2435         (sese_bad_liveouts_use): Same.
2436         (sese_reset_debug_liveouts_bb): Same.
2437         (sese_build_liveouts): Same.
2438         (new_sese): Renamed new_sese_info.
2439         (free_sese): Renamed free_sese_info.
2440         (set_rename): Use an sese_info_p.
2441         (graphite_copy_stmts_from_block): Same.
2442         (copy_bb_and_scalar_dependences): Same.
2443         (outermost_loop_in_sese_1): Use an sese_l.
2444         (outermost_loop_in_sese): Same.
2445         (if_region_set_false_region): Use an sese_info_p.
2446         (move_sese_in_condition): Same.
2447         (scalar_evolution_in_region): Use an sese_l.
2448         * sese.h (struct sese_l): ... here.
2449         (SESE_ENTRY): Remove.
2450         (SESE_ENTRY_BB): Remove.
2451         (SESE_EXIT): Remove.
2452         (SESE_EXIT_BB): Remove.
2453         (sese_contains_loop): Use an sese_info_p.
2454         (sese_nb_params): Same.
2455         (bb_in_sese_p): Use an sese_l.
2456         (stmt_in_sese_p): Same.
2457         (defined_in_sese_p): Same.
2458         (loop_in_sese_p): Same.
2459         (sese_loop_depth): Same.
2460         (struct ifsese_s): Use an sese_info_p.
2461         (gbb_loop_at_index): Use an sese_l.
2462         (nb_common_loops): Same.
2463         (scev_analyzable_p): Same.
2464
2465 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2466
2467         * config/i386/i386.c (ix86_conditional_register_usage): Use
2468         CALL_USED_REGISTERS_MASK.
2469         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2470
2471 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2472
2473         PR bootstrap/67385
2474         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2475         * configure: Regenerated.
2476
2477 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2478
2479         PR target/67850
2480         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2481         (ix86_set_current_function): This.
2482         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2483
2484 2015-10-07  Richard Biener  <rguenther@suse.de>
2485
2486         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2487         (vinfo_for_stmt): Adjust.
2488         (set_vinfo_for_stmt): Likewise.
2489         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2490         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2491         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2492         of inner loop.
2493         (vect_analyze_loop_1): Remove.
2494         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2495         inner loop when vectorizing an outer loop by splitting out from ...
2496         (vect_analyze_loop_form): ... here.
2497
2498 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2499
2500         PR c/65345
2501         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2502         Use create_tmp_var_raw instead of create_tmp_var.
2503
2504 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
2505
2506         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2507         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2508         * real.c (CACHED_FRACTION): New helper macro.
2509         (dconst_third_ptr): Use it.
2510         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2511         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2512         dconst_sixth.
2513         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2514
2515 2015-10-06  Jeff Law  <law@redhat.com>
2516
2517         PR tree-optimization/67816
2518         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2519         from remove_jump_threads_starting_at.  Accept an edge rather than
2520         a basic block.
2521         * tree-ssa-threadupdate.c (removed_edges): New hash table.
2522         (remove_jump_threads_including): Note edges that get removed from
2523         the CFG for later pruning of jump threading paths including them.
2524         (thread_through_all_blocks): Remove paths which include edges that
2525         have been removed.
2526         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2527         on each outgoing edges when optimizing away a control statement.
2528
2529 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2530
2531         * reorg.c (emit_delay_sequence): Store list of delay slot insns
2532         in a vector instead of rtx_insn_list.
2533         (add_to_delay_list): Likewise.
2534         (delete_from_delay_slot): Likewise.
2535         (optimize_skip): Likewise.
2536         (redirect_with_delay_list_safe_p): Likewise.
2537         (check_annul_list_true_false): Likewise.
2538         (steal_delay_list_from_target): Likewise.
2539         (steal_delay_list_from_fallthrough): Likewise.
2540         (redundant_insn): Likewise.
2541         (fill_simple_delay_slots): Likewise.
2542         (fill_slots_from_thread): Likewise.
2543         (fill_eager_delay_slots): Likewise.
2544         (relax_delay_slots): Likewise.
2545
2546 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
2547
2548         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2549         For -mgpopt=local, also exclude unintialized common symbols.
2550         * doc/invoke.texi (Nios II Options): Document the change.
2551
2552 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2553
2554         * config/aarch64/iterators.md (vwcore): Add missing cases for
2555          V4HF/V8HF modes.
2556
2557 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2558             Sebastian Pop  <s.pop@samsung.com>
2559
2560         * graphite-poly.c (new_scop): Initialize drs.
2561         * graphite-poly.h (struct dr_info): New.
2562         (struct scop): Add drs.
2563         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2564         (pdr_add_memory_accesses): Same.
2565         (build_poly_dr): Same.
2566         (build_alias_set): Same.
2567         (build_scop_drs): Same.
2568         (build_pbb_drs): Remove.
2569         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2570         * tree-data-ref.h (data_reference): Remove alias_set.
2571
2572 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2573             Sebastian Pop  <s.pop@samsung.com>
2574
2575         * graphite-poly.c (free_data_refs_aux): Remove.
2576         (free_gimple_poly_bb): Do not call free_data_refs_aux.
2577         * graphite-poly.h (struct base_alias_pair): Remove.
2578         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2579         base_alias_pair and dr->aux.
2580         (build_alias_set): Same.
2581         * tree-data-ref.c (create_data_ref): Initialize alias_set.
2582         * tree-data-ref.h (data_reference): Add alias_set.
2583
2584 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2585             Sebastian Pop  <s.pop@samsung.com>
2586
2587         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2588         Do not set PDR_BASE_OBJECT_SET.
2589         * graphite-poly.h (poly_dr): Same.
2590         (PDR_BASE_OBJECT_SET): Remove.
2591         (new_poly_dr): Update decl.
2592         * graphite-sese-to-poly.c (build_poly_dr): Update call to
2593         new_poly_dr.
2594         (write_alias_graph_to_ascii_dimacs): Remove.
2595         (write_alias_graph_to_ascii_dot): Remove.
2596         (write_alias_graph_to_ascii_ecc): Remove.
2597         (dr_same_base_object_p): Remove.
2598         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
2599         code.
2600         (build_base_obj_set_for_drs): Remove.
2601         (dump_alias_graphs): Remove.
2602         (build_scop_drs): Remove dead code.
2603
2604 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2605             Peter Bergner  <bergner@vnet.ibm.com>
2606
2607         PR target/67808
2608         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2609         allow registers, but provide insns for the combiner to create for
2610         loads from memory. Separate VSX code from non-VSX code. For
2611         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2612         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2613         so that registers come before memory operations. Drop support from
2614         converting DFmode to TFmode, if the DFmode value is in a GPR
2615         register.
2616         (extenddftf2_fprs): Likewise.
2617         (extenddftf2_internal): Likewise.
2618         (extenddftf2_vsx): Likewise.
2619         (extendsftf2): In the expander, only allow registers, but provide
2620         insns for the combiner to create for stores and loads.
2621
2622 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2623
2624         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2625         from the decl parameter.
2626
2627 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
2628
2629         PR 67861
2630         * gimple-fold.c (gimple_fold_builtin): Add break after
2631         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2632
2633 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2634
2635         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2636         to scop->isl_context.
2637
2638 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2639
2640         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2641         (output_probe_stack_range): Rotate the loop and simplify.
2642         (thumb1_expand_prologue): Tweak sorry message.
2643         * config/arm/arm.md (probe_stack): Use bare string.
2644
2645 2015-10-06  Nick Clifton  <nickc@redhat.com>
2646
2647         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2648
2649 2015-10-06  Nick Clifton  <nickc@redhat.com>
2650
2651         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2652         (ATTR_PERSIST): New constant.
2653         (msp430_data_attr): New function - verifies an attribute that only
2654         applies to variables.
2655         (msp430_attributes): Add noinit and persistent attributes.
2656         (noinit_section): New variable.
2657         (presis_section): New variable.
2658         (TARGET_ASM_INIT_SECTIONS): Define.
2659         (msp430_init_sections): New function - initialises the noinit and
2660         persist section variables.
2661         (msp430_select_section): Add support for noinit and persist
2662         attributes.
2663         (msp430_section_type_flags): Likewise.
2664         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
2665         and persistent attributes.
2666
2667 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2668             Sebastian Pop  <s.pop@samsung.com>
2669
2670         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2671         (no_violations): Remove.
2672         (subtract_commutative_associative_deps): Remove.
2673         (compute_deps): Do not call subtract_commutative_associative_deps.
2674         (transform_is_safe): Remove.
2675         (graphite_legal_transform): Remove.
2676         * graphite-poly.h (graphite_legal_transform): Remove.
2677
2678 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
2679
2680         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2681         which are in this region are passed so gcc_assert and remove redundant
2682         computation.
2683         * sese.c (sese_build_liveouts): Pass only those bbs which are not
2684         in region.
2685         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2686         gcc_assert on that and remove unnecessary computation.
2687         (sese_build_liveouts_use): Same.
2688
2689 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2690
2691         * graphite-dependences.c (scop_get_reads): Renamed scop->context
2692         to scop->param_context.
2693         (scop_get_must_writes): Same.
2694         (scop_get_may_writes): Same.
2695         (scop_get_original_schedule): Same.
2696         (scop_get_transformed_schedule): Same.
2697         (subtract_commutative_associative_deps): Same.
2698         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2699         (generate_isl_context): Same.
2700         (generate_isl_schedule): Same.
2701         (scop_to_isl_ast): Same.
2702         (graphite_regenerate_ast_isl): Same.
2703         * graphite-optimize-isl.c (scop_get_domains): Same.
2704         (optimize_isl): Renamed scop->context to scop->param_context.
2705         * graphite-poly.c (new_poly_bb): Change the type of argument to
2706         gimple_poly_bb_p.
2707         (new_scop): Renamed scop->context to scop->param_context.
2708         (free_scop): Same.
2709         (print_scop_context): Same.
2710         * graphite-poly.h (new_poly_dr): Change the type of argument from
2711         void* to data_reference_p.
2712         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2713         (new_poly_bb): Change the type of argument from void* to
2714         gimple_poly_bb_p.
2715         (pbb_set_black_box): Same.
2716         (struct scop): Rename context to param_context, ctx to isl_context.
2717         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2718         Move declarations closer to assignment.
2719         (find_params_in_bb): Same.
2720         (find_scop_parameters): Same.
2721         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2722         Global to be used for statement IDs.
2723         (isl_id_for_pbb): Use ssa_name_version_typesize.
2724         (simple_copy_phi_p): Move declarations closer to assignment.
2725         (build_pbb_scattering_polyhedrons): Same.
2726         (build_scop_scattering): Same.
2727         (isl_id_for_ssa_name): Same.
2728         (extract_affine_name): Same.
2729         (extract_affine_int): Same.
2730         (extract_affine): Same.
2731         (set_scop_parameter_dim): Use renamed member.
2732         (build_loop_iteration_domains): Same.
2733         (add_param_constraints): Same.
2734         (build_scop_iteration_domain): Same.
2735         (pdr_add_data_dimensions): Same.
2736         (build_poly_dr): Same.
2737         (build_scop_drs): Move declarations closer to assignment.
2738         (analyze_drs_in_stmts): Same.
2739         (insert_out_of_ssa_copy): Same.
2740         (insert_out_of_ssa_copy_on_edge): Same.
2741         (propagate_expr_outside_region): Same.
2742         (rewrite_phi_out_of_ssa): Same.
2743         (rewrite_degenerate_phi): Same.
2744         (rewrite_reductions_out_of_ssa): Same.
2745         (rewrite_cross_bb_scalar_dependence): Same.
2746         (handle_scalar_deps_crossing_scop_limits): Same.
2747         (rewrite_cross_bb_scalar_deps): Same.
2748         * graphite.c (graphite_transform_loops): Use renamed member.
2749
2750 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
2751
2752         PR c/65345
2753         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2754         create_tmp_var_raw instead of create_tmp_var.
2755
2756 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2757
2758         PR c/65345
2759         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2760         Use create_tmp_var_raw instead of create_tmp_var.
2761
2762 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
2763
2764         PR target/67849
2765         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2766         split for upper-bank registers when target does not support
2767         AVX512VL.
2768         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2769         split when target does not support AVX512VL.
2770
2771 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
2772
2773         PR c/65345
2774         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2775         Adjust to use create_tmp_var_raw instead of create_tmp_var.
2776
2777 2015-10-06  Nick Clifton  <nickc@redhat.com>
2778
2779         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2780         multiplication.
2781
2782 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2783
2784         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2785         (case ${target}): Add znver1.
2786         * config/i386/cpuid.h(bit_CLZERO):  Define.
2787         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2788         -march=native recognize znver1 processors.
2789         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2790         znver1, clzero def_and_undef.
2791         * config/i386/i386.c (struct processor_costs znver1_cost): New.
2792         (m_znver1): New definition.
2793         (m_AMD_MULTIPLE): Includes m_znver1.
2794         (processor_target_table): Add znver1 entry.
2795         (ix86_target_string) : Add clzero entry.
2796         (static const char *const cpu_names): Add znver1 entry.
2797         (ix86_option_override_internal): Add znver1 instruction sets.
2798         (PTA_CLZERO) :  New definition.
2799         (ix86_option_override_internal): Handle new clzerooption.
2800         (ix86_issue_rate): Add znver1.
2801         (ix86_adjust_cost): Add znver1.
2802         (ia32_multipass_dfa_lookahead): Add znver1.
2803         (has_dispatch): Add znver1.
2804         * config/i386/i386.h (TARGET_znver1): New definition.
2805         (TARGET_CLZERO): Define.
2806         (TARGET_CLZERO_P): Define.
2807         (struct ix86_size_cost): Add TARGET_ZNVER1.
2808         (enum processor_type): Add PROCESSOR_znver1.
2809         * config/i386/i386.md (define_attr "cpu"): Add znver1.
2810         (set_attr znver1_decode): New definitions for znver1.
2811         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2812         (mclzero): New.
2813         * config/i386/mmx.md (set_attr znver1_decode): New definitions
2814         for znver1.
2815         * config/i386/sse.md (set_attr znver1_decode): Likewise.
2816         * config/i386/x86-tune.def:  Add znver1 tunings.
2817         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2818         * gcc/doc/invoke.texi: Add details about znver1
2819
2820 2015-10-06  Richard Biener  <rguenther@suse.de>
2821
2822         PR tree-optimization/67859
2823         * tree-ssa-pre.c (create_expression_by_pieces): Properly
2824         discard not inserted stmts.
2825
2826 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
2827
2828         * doc/extend.texi (Template Instantiation): Reorder options and
2829         de-emphasize -frepo.
2830         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2831         example instead of -frepo.
2832
2833 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2834
2835         PR c/65345
2836         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2837         use create_tmp_var_raw rather than create_tmp_var.
2838
2839 2015-10-06  Richard Biener  <rguenther@suse.de>
2840
2841         * tree-vectorizer.h (vec_info): New base class for...
2842         (_loop_vec_info): ... this and ...
2843         (_bb_vec_info): ... this.
2844         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2845         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2846         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2847         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2848         vect_destroy_datarefs): Adjust interface to take a vec_info *
2849         rather than both a loop_vec_info and a bb_vec_info argument.
2850         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2851         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2852         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2853         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2854         accordingly.
2855         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2856         (destroy_loop_vec_info, vect_analyze_loop_2,
2857         vect_is_simple_reduction_1, get_initial_def_for_induction,
2858         vect_create_epilog_for_reduction, vectorizable_reduction,
2859         vectorizable_live_operation, vect_transform_loop): Adjust.
2860         * tree-vect-patterns.c (type_conversion_p,
2861         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2862         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2863         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2864         check_bool_pattern, vect_recog_bool_pattern,
2865         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2866         * tree-vect-slp.c (vect_get_and_check_slp_defs,
2867         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2868         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2869         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2870         (new_bb_vec_info): Initialize base classs.
2871         * tree-vect-stmts.c (record_stmt_cost, process_use,
2872         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2873         vectorizable_mask_load_store, vectorizable_call,
2874         vectorizable_simd_clone_call, vectorizable_conversion,
2875         vectorizable_assignment, vectorizable_shift,
2876         vectorizable_operation, vectorizable_store,
2877         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2878         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2879         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2880
2881 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2882
2883         PR c/65345
2884         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2885         create_tmp_var_raw rather than create_tmp_var.
2886
2887 2015-10-05  Marek Polacek  <polacek@redhat.com>
2888
2889         * tree-ssa-loop-im.c
2890         (move_computations_dom_walker::before_dom_children): Don't set
2891         SSA_NAME_ANTI_RANGE_P.
2892         * tree-ssa-phiopt.c (value_replacement): Likewise.
2893
2894 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2895             Sebastian Pop  <s.pop@samsung.com>
2896
2897         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2898
2899 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2900             Sebastian Pop  <s.pop@samsung.com>
2901
2902         * graphite-poly.c (new_gimple_poly_bb): ... here.
2903         (free_data_refs_aux): ... here.
2904         (free_gimple_poly_bb): ... here.
2905         (remove_gbbs_in_scop): ... here.
2906         (new_scop): Call new_sese.
2907         (free_scop): Call remove_gbbs_in_scop and free_sese.
2908         * graphite-poly.h (base_alias_pair): ... here.
2909         (new_gimple_poly_bb): Declare.
2910         (free_gimple_poly_bb): Declare.
2911         * graphite-scop-detection.c (parameter_index_in_region_1):
2912         (parameter_index_in_region): ... here.
2913         (scan_tree_for_params): ... here.
2914         (find_params_in_bb): ... here.
2915         (find_scop_parameters): ... here.
2916         (build_scops): Call find_scop_parameters.
2917         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2918         (free_scops): Move...
2919         (single_pred_cond_non_loop_exit): Move...
2920         (sese_dom_walker::before_dom_children): Move...
2921         (sese_dom_walker::after_dom_children): Move...
2922         (build_poly_scop): Move...
2923         * graphite-sese-to-poly.h (base_alias_pair): Move...
2924         * graphite.c (free_scops): ... here.
2925
2926 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2927             Sebastian Pop  <s.pop@samsung.com>
2928
2929         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2930         (trivially_empty_bb_p): Move...
2931         (same_close_phi_node): Move...
2932         (new_gimple_poly_bb): Move...
2933         (compare_bb_depths): Move...
2934         (graphite_sort_dominated_info): Move...
2935         (remove_duplicate_close_phi): Move...
2936         (make_close_phi_nodes_unique): Move...
2937         (canonicalize_loop_closed_ssa): Move...
2938         (canonicalize_loop_closed_ssa_form): Move...
2939         (loop_ivs_can_be_represented): Move...
2940         (single_pred_cond_non_loop_exit): Move...
2941         (graphite_can_represent_init): Move...
2942         (graphite_can_represent_scev): Move...
2943         (stmt_has_simple_data_refs_p): Move...
2944         (stmt_has_side_effects):  Move...
2945         (graphite_can_represent_stmt): Move...
2946         (scop_detection): ... here.
2947         (sese_dom_walker): ... and here.
2948         (build_scops): Call all moved functions.
2949         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
2950         (all_non_dominated_preds_marked_p): Move...
2951         (build_scop_bbs_1): Move...
2952         (build_scop_bbs): Move...
2953         (set_scop_parameter_dim): Move...
2954         (nb_pbbs_in_loops): Move...
2955         (build_poly_scop): Do not call all the moved functions.
2956
2957 2015-10-05  Martin Jambor  <mjambor@suse.cz>
2958             Jan Hubicka  <hubicka@ucw.cz>
2959
2960         * ipa-cp.c (ipcp_alignment_lattice): New type.
2961         (ipcp_param_lattices): Use the above to represent alignment.
2962         (ipcp_alignment_lattice::print): New function.
2963         (print_all_lattices): Use it to print alignment information.
2964         (ipcp_alignment_lattice::top_p): New function.
2965         (ipcp_alignment_lattice::bottom_p): Likewise.
2966         (ipcp_alignment_lattice::set_to_bottom): Likewise.
2967         (ipcp_alignment_lattice::meet_with_1): Likewise.
2968         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
2969         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
2970         (initialize_node_lattices): Likewise.
2971         (propagate_alignment_accross_jump_function): Work with the new class
2972         for alignment lattices.
2973         (propagate_constants_accross_call): Pass only the alignment lattice to
2974         propagate_alignment_accross_jump_function.
2975         (ipcp_store_alignment_results): Work with the new class for alignment
2976         lattices.
2977
2978 2015-10-05  Marek Polacek  <polacek@redhat.com>
2979
2980         PR tree-optimization/67821
2981         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2982
2983 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
2984
2985         PR other/65021
2986         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
2987         function to...
2988         (mkoffload_cleanup): ... this.  Adjust all users.
2989         (maybe_unlink): Look at save_temps and verbose flags instead of
2990         debug flag.
2991         (main): Parse "-save-temps" flag.
2992         (generate_target_descr_file, generate_target_offloadend_file)
2993         (generate_host_descr_file, prepare_target_image): Pass it on.
2994         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
2995         (mkoffload_cleanup): New function.
2996         (maybe_unlink): Look at save_temps and verbose flags instead of
2997         debug flag.
2998         (main): Instead of calling utils_cleanup, register atexit handler
2999         for mkoffload_cleanup.
3000         (main): Parse "-save-temps" flag.
3001         (compile_native, main): Pass it on.
3002         * lto-wrapper.c (compile_offload_image): Likewise.
3003
3004 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3005
3006         * gimple.h (gimple_op_ptr): Require a non const gimple *.
3007         (gimple_assign_lhs_ptr): Likewise.
3008         (gimple_assign_rhs1_ptr): Likewise.
3009         (gimple_assign_rhs2_ptr): Likewise.
3010         (gimple_assign_rhs3_ptr): Likewise.
3011         (gimple_call_lhs_ptr): Likewise.
3012         (gimple_call_fn_ptr): Likewise.
3013         (gimple_call_chain_ptr): Likewise.
3014                 (gimple_call_arg_ptr): Likewise.
3015                 (gimple_cond_lhs_ptr): Likewise.
3016         (gimple_cond_rhs_ptr): Likewise.
3017         (gimple_switch_index_ptr): Likewise.
3018         (gimple_return_retval_ptr): Likewise.
3019
3020 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3021
3022         * gimple.h (gimple_asm_input_op_ptr): Remove.
3023         (gimple_asm_output_op_ptr): Likewise.
3024
3025 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3026
3027         * gimple.h (gimple_location_ptr): Remove.
3028         * tree-vrp.c (check_all_array_refs): Adjust.
3029
3030 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3031
3032         * tree-ssa-operands.c (build_uses): store tree * instead of
3033         tree.
3034         (finalize_ssa_uses): Adjust.
3035         (append_use): Likewise.
3036         (verify_ssa_operands): Likewise.
3037
3038 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3039
3040         * real.h (build_real_truncate): Declare.
3041         * tree.c (build_real_truncate): New function.
3042         (strip_float_extensions): Use it.
3043         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3044         (fold_builtin_hypot, fold_builtin_pow): Likewise.
3045         * match.pd: Likewise.
3046
3047 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3048            Jiong Wang  <jiong.wang@arm.com>
3049
3050         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3051
3052 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3053
3054         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3055         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3056         (aarch64_print_operand, aarch64_float_const_representable_p)
3057         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3058         instead of REAL_VALUE_FROM_CONST_DOUBLE.
3059         * config/arc/arc.c (arc_print_operand): Likewise.
3060         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3061         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3062         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3063         Likewise.
3064         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3065         (consttable_16): Likewise.
3066         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3067         * config/avr/avr.c (avr_print_operand): Likewise.
3068         * config/bfin/bfin.md: Likewise (in a define_split).
3069         * config/c6x/c6x.md: Likewise (in a define_split).
3070         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3071         (cr16_print_operand): Likewise.
3072         * config/cris/cris.c (cris_print_operand): Likewise.
3073         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3074         * config/fr30/fr30.c (fr30_print_operand): Likewise.
3075         (fr30_const_double_is_zero): Likewise.
3076         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3077         * config/frv/frv.md: Likewise (in a define_split).
3078         * config/frv/predicates.md (int_2word_operand): Likewise.
3079         * config/h8300/h8300.c (h8300_print_operand): Likewise.
3080         * config/i386/i386.c (standard_80387_constant_p): Likewise.
3081         (ix86_print_operand, ix86_split_to_parts): Likewise.
3082         * config/i386/i386.md: Likewise (in a define_split).
3083         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3084         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3085         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3086         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3087         (print_operand): Likewise.
3088         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3089         * config/mep/mep.md: Likewise (in define_split).
3090         * config/microblaze/microblaze.c (microblaze_const_double_ok)
3091         (print_operand): Likewise.
3092         * config/mips/mips.md (consttable_float): Likewise.
3093         * config/mmix/mmix.c (mmix_intval): Likewise.
3094         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3095         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3096         * config/pa/pa.c (pa_singlemove_string): Likewise.
3097         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3098         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3099         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3100         (output_toc): Likewise.
3101         * config/rs6000/rs6000.md: Likewise (in define_splits).
3102         * config/rx/rx.c (rx_print_operand): Likewise.
3103         * config/s390/s390.c (s390_output_pool_entry): Likewise.
3104         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3105         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3106         (and also in define_splits).
3107         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3108         (fp_high_losum_p): Likewise.
3109         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3110         (*movsf_high): Likewise.
3111         * config/spu/spu.c (const_double_to_hwint): Likewise.
3112         * config/v850/v850.c (const_double_split): Likewise.
3113         * config/vax/vax.c (vax_float_literal): Likewise.
3114         * config/visium/visium.c (visium_expand_copysign): Likewise.
3115         * config/visium/visium.md: Likewise (in define_split).
3116         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3117         * config/xtensa/xtensa.c (print_operand): Likewise.
3118         (xtensa_output_literal): Likewise.
3119         * cprop.c (implicit_set_cond_p): Likewise.
3120         * dwarf2out.c (insert_float): Likewise.
3121         * expmed.c (expand_mult, make_tree): Likewise.
3122         * expr.c (compress_float_constant): Likewise.
3123         * rtlanal.c (split_double): Likewise.
3124         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3125         (simplify_const_unary_operation, simplify_binary_operation_1)
3126         (simplify_const_binary_operation): Likewise.
3127         (simplify_const_relational_operation): Likewise.
3128         * varasm.c (output_constant_pool_2): Likewise.
3129
3130 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3131
3132         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3133         instead of CONST_DOUBLE_FROM_REAL_VALUE.
3134         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3135         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3136         instead of CONST_DOUBLE_FROM_REAL_VALUE.
3137         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3138         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3139         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3140         (ix86_emit_swsqrtsf): Likewise.
3141         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3142         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3143         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3144         * config/pa/pa.c (pa_expand_builtin): Likewise.
3145         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3146         (rs6000_scale_v2df): Likewise.
3147         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3148         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3149         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3150         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3151         (vec_ctul): Likewise.
3152         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3153         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3154         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3155         * cse.c (fold_rtx): Likewise.
3156         * emit-rtl.c (immed_double_const): Likewise (in comments).
3157         (init_emit_once): Likewise.
3158         * expr.c (compress_float_constant, expand_expr_real_1)
3159         (const_vector_from_tree): Likewise.
3160         * optabs.c (expand_float, expand_fix): Likewise.
3161         * reg-stack.c (reg_to_stack): Likewise.
3162         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3163         (simplify_const_unary_operation, simplify_binary_operation_1)
3164         (simplify_const_binary_operation, simplify_relational_operation)
3165         (simplify_immed_subreg): Likewise.
3166
3167 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3168
3169         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3170         * doc/tm.texi: Regenerate.
3171         * real.h (REAL_ARITHMETIC): Delete.
3172         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3173         (ix86_expand_round_sse4): Use real_arithmetic instead of
3174         REAL_ARITHMETIC.
3175         * config/i386/sse.md (round<mode>2): Likewise.
3176         * rtl.h (rtx_to_tree_code): Likewise (in comment).
3177         * explow.c (rtx_to_tree_code): Likewise (in comment).
3178         * match.pd: Likewise.
3179         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3180         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3181         (expand_pow_as_sqrts): Likewise.
3182         * tree-pretty-print.c (dump_generic_node): Remove code that
3183         was conditional on REAL_ARITHMETIC being undefined.
3184
3185 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3186
3187         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3188         * doc/tm.texi: Regenerate.
3189         * real.h (real_less): Declare.
3190         (REAL_VALUES_LESS): Delete.
3191         * real.c (real_less): New function.
3192         (real_compare): Use it.
3193         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3194         of REAL_VALUES_LESS.
3195         * config/microblaze/microblaze.c (microblaze_const_double_ok):
3196         Likewise.
3197         * fold-const.c (fold_convert_const_int_from_real): Likewise.
3198         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3199         (simplify_const_relational_operation): Likewise.
3200         * tree-call-cdce.c (check_pow): Likewise.
3201         (gen_conditions_for_pow_cst_base): Likewise.
3202
3203 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3204
3205         * real.h (REAL_VALUES_IDENTICAL): Delete.
3206         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3207         instead of REAL_VALUES_IDENTICAL.
3208         * fold-const.c (operand_equal_p): Likewise.
3209         * ipa-icf.c (sem_variable::equals): Likewise.
3210         * tree-complex.c (some_nonzerop): Likewise.
3211         (expand_complex_multiplication): Likewise.
3212         * tree.c (simple_cst_equal): Likewise.
3213         * varasm.c (compare_constant): Likewise.
3214
3215 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3216
3217         * real.h (real_equal): Declare.
3218         (REAL_VALUES_EQUAL): Delete.
3219         * real.c (real_equal): New function.
3220         (real_compare): Use it.
3221         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3222         * doc/tm.texi: Regenerate.
3223         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3224         real_equal instead of REAL_VALUES_EQUAL.
3225         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3226         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3227         (fp_const_from_val): Likewise.
3228         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3229         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3230         (floating_exact_log2): Likewise.
3231         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3232         * config/vax/vax.c (vax_float_literal): Likewise.
3233         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3234         * cprop.c (implicit_set_cond_p): Likewise.
3235         * expmed.c (expand_mult): Likewise.
3236         * fold-const.c (const_binop): Likewise.
3237         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3238         (simplify_const_binary_operation): Likewise.
3239         (simplify_const_relational_operation): Likewise.
3240         * tree-call-cdce.c (check_pow): Likewise.
3241         (gen_conditions_for_pow_cst_base): Likewise.
3242         * tree-inline.c (estimate_num_insns): Likewise.
3243         * tree-ssa-dom.c (record_equality): Likewise.
3244         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3245         (gimple_expand_builtin_pow): Likewise.
3246         (pass_optimize_widening_mul::execute): Likewise.
3247         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3248         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3249         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
3250
3251 2015-10-05  Richard Biener  <rguenther@suse.de>
3252
3253         PR ipa/67783
3254         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
3255         consider loop header PHI defs as IVs.
3256
3257 2015-10-05  Richard Biener  <rguenther@suse.de>
3258
3259         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3260         call handling ...
3261         (create_expression_by_pieces): ... here and build GIMPLE
3262         calls directly.  Use gimple_build API and avoid force_gimple_operand.
3263         (insert_into_preds_of_block): Simplify.
3264         (do_regular_insertion): Add comment.
3265
3266 2015-10-04  Jason Merrill  <jason@redhat.com>
3267
3268         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3269
3270 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
3271
3272         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3273         check for general register.
3274         (ix86_emit_save_regs): Ditto.
3275         (ix86_emit_save_regs_using_mov): Ditto.
3276         (ix86_emit_restore_regs_using_pop): Ditto.
3277         (ix86_emit_restore_regs_using_mov): Ditto.
3278
3279 2015-10-03  Marek Polacek  <polacek@redhat.com>
3280
3281         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3282         (insn-dfatab.o): Likewise.
3283
3284 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
3285
3286         * config.gcc (xtensa*-*-uclinux*): New configuration.
3287         * config/xtensa/uclinux.h: New file.
3288         * config/xtensa/uclinux.opt: New file.
3289
3290 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
3291
3292         * doc/cpp.texi (Standard Predefined Macros): Document value of
3293         __cplusplus for C++14.
3294
3295 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
3296
3297         * gcc.c (process_command): Use spec_machine rather than
3298         spec_host_machine to build tooldir_prefix2.
3299
3300 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3301             Bernd Schmidt  <bernds@codesourcery.com>
3302
3303         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3304         (Token, Stmt): Remove structs.
3305         (decls, vars, fns): Remove variables.
3306         (alloc_comment, append_stmt, is_keyword): Remove macros.
3307         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3308         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3309         (parse_init, parse_file): Remove functions.
3310         (read_file): Accept a pointer to a length and store into it.
3311         (process): Don't try to parse the input file, just write it out as
3312         a string, but looking for maps.  Also write out the length.
3313         (main): Don't use "-S" to compile PTX code.
3314
3315 2015-10-02  Jeff Law  <law@redhat.com>
3316
3317         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3318         fixups.
3319
3320 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3321
3322         PR target/67822
3323         * config/nvptx/mkoffload.c (main): Scan the argument vector for
3324         -fopenmp, and skip generating an offloading image if specified.
3325
3326 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
3327
3328         * system.h (ROUND_UP): New macro definition.
3329         (ROUND_DOWN): Ditto.
3330         * ggc-page.c (ROUND_UP): Remove local macro definition.
3331         (PAGE_ALIGN): Implement using ROUND_UP macro.
3332
3333         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3334         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3335         to align values.
3336         (ix86_compute_frame_layout): Ditto.
3337         (ix86_expand_prologue): Ditto.
3338         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3339         to round down values.
3340         (expand_set_or_movmem_via_rep): Ditto.
3341
3342 2015-10-02  Marek Polacek  <polacek@redhat.com>
3343
3344         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3345
3346 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
3347
3348         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3349         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3350         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3351         (free_gimple_bb): Renamed free_gimple_poly_bb.
3352         (try_generate_gimple_bb): Hoist loop invariant code.
3353         (analyze_drs_in_stmts): Same.
3354         (build_scop_drs): Call renamed functions.
3355         (new_pbb_from_pbb): Same.
3356         (scop_ivs_can_be_represented): Delete as functionality now moved to
3357         graphite-scop-detection.c
3358         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3359
3360 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
3361
3362         * graphite-scop-detection.c (stmt_has_side_effects): New function
3363           outlined from stmt_simple_for_scop_p.
3364         (graphite_can_represent_stmt): Same.
3365         (stmt_simple_for_scop_p): Moved code out of this function for better
3366         readability.
3367
3368 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3369
3370         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3371         F_AVX512IFMA.
3372         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3373
3374 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3375
3376         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3377
3378 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
3379
3380         PR rtl-optimization/67756
3381         * lra-constraints.c (match_reload): Add a new parameter.  Use it
3382         for creating a pseudo with the same value.
3383         (curr_insn_transform): Pass a new argument to match_reload.
3384
3385 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3386
3387         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3388         (expand_vec_perm_even_odd_1): Handle V64QImode.
3389         (ix86_expand_vec_perm_const_1): Try expansion with
3390         expand_vec_perm_even_odd_trunc as well.
3391         * config/i386/sse.md (VI124_AVX512F): Rename to ...
3392         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3393         to V54QI.
3394         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3395         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3396         to V32HI and V16SI.
3397         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3398         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3399         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3400         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3401         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3402         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3403
3404 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3405
3406         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3407         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3408
3409 2015-10-02  Jason Merrill  <jason@redhat.com>
3410
3411         PR c/59218
3412         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3413         (diagnose_tm_1_op): Also diagnose volatile accesses in
3414         transaction_safe function.
3415
3416 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
3417
3418         * system.h (malloc.h): Don't include obsolete header.
3419
3420 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3421
3422         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3423         (TLS_SECTION_ASM_FLAG): Delete.
3424
3425 2015-10-02  Marek Polacek  <polacek@redhat.com>
3426
3427         PR c/64249
3428         * doc/invoke.texi: Document -Wduplicated-cond.
3429         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3430         (insn-dfatab.o): Likewise.
3431         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3432         warning.
3433
3434 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
3435
3436         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3437         sequences.
3438
3439 2015-10-02  Renlin Li  <renlin.li@arm.com>
3440
3441         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3442
3443 2015-10-02  Renlin Li  <renlin.li@arm.com>
3444
3445         PR target/66776
3446         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3447
3448 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3449
3450         PR rtl-optimization/67786
3451         PR rtl-optimization/67787
3452         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3453         it modifies a reg used in the condition calculation.
3454
3455 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
3456
3457         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3458         alternatives for reads from memory and moves from general-purpose
3459         registers.
3460         (*aarch64_combinez_be<mode>): Likewise.
3461
3462 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
3463
3464         PR target/51726
3465         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3466         selectany within this function without need to keep attribute.
3467         (i386_pe_encode_section_info): Remove selectany-code.
3468
3469 2015-10-02  Richard Biener  <rguenther@suse.de>
3470
3471         * tree-ssa-sccvn.c (has_VN_INFO): New function.
3472         (free_scc_vn): Use it.
3473         (visit_use): Remove dead code and refactor to use gassign
3474         and use less indentation.
3475
3476 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3477
3478         PR target/67788
3479         PR target/67789
3480         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3481         (rs6000_cannot_copy_insn_p): New function.
3482         * config/rs6000/rs6000.md (cannot_copy): New attribute.
3483         (load_toc_v4_PIC_1_normal): Set cannot_copy.
3484         (load_toc_v4_PIC_1_476): Ditto.
3485
3486 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3487
3488         * graphite-scop-detection.c (struct sese_l): New conversion constructor
3489         so that this type can be pushed into a vec.
3490         (class scop_builder): use sese_l to collect scops.
3491         (get_scops): New getter function.
3492         (remove_intersecting_scops): Use sese_l instead of scops_p.
3493         (intersects): Same.
3494         (add_scop): Same.
3495         (subsumes): Same.
3496         (remove_subscops): Same.
3497         (build_scops): Add scops to vec<scops_p> once all the scops have been
3498         detected.
3499
3500 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3501
3502         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3503         Renamed type from gimple_bb_p to gimple_poly_bb_p.
3504         (translate_isl_ast_node_user): Same.
3505         * graphite-poly.c (new_poly_bb): Same.
3506         * graphite-poly.h (gbb_from_bb): Same.
3507         * sese.h: Same.
3508         * graphite-sese-to-poly.c (new_gimple_bb):
3509         gimple_bb_p -> gimple_poly_bb_p
3510         (build_scop_scattering): Same.
3511         (find_params_in_bb): Same.
3512         (add_conditions_to_domain): Same.
3513         (sese_dom_walker::before_dom_children): Same.
3514         (analyze_drs_in_stmts): Same.
3515         (new_pbb_from_pbb): Same.
3516         (free_data_refs_aux): New pointer to type base_alias_pair.
3517         * graphite-sese-to-poly.h: Same.
3518         * sese.c (if_region_set_false_region): Fixed Indentation.
3519         (move_sese_in_condition): Same.
3520
3521 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3522             Aditya Kumar  <aditya.k7@samsung.com>
3523
3524         PR tree-optimization/66980
3525         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3526         when data reference analysis has failed.
3527
3528 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3529             Aditya Kumar  <aditya.k7@samsung.com>
3530
3531         PR tree-optimization/67754
3532         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3533         scev analysis on the same loop nest as analyze_drs_in_stmts.
3534         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3535         renamed...
3536         (try_generate_gimple_bb): Call outermost_loop_in_sese.
3537         (analyze_drs_in_stmts): Same.
3538         * sese.c (outermost_loop_in_sese): ...here.
3539
3540 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3541             Aditya Kumar  <aditya.k7@samsung.com>
3542
3543         PR tree-optimization/67754
3544         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3545         recursion on the inner loops.
3546
3547 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3548
3549         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3550         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3551         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3552         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3553         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3554
3555 2015-10-01  Marek Polacek  <polacek@redhat.com>
3556
3557         PR c/65345
3558         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3559         create_tmp_var_raw rather than create_tmp_var.
3560
3561 2015-10-01  Marek Polacek  <polacek@redhat.com>
3562
3563         PR tree-optimization/67769
3564         * tree-ssa-phiopt.c (conditional_replacement): Call
3565         reset_flow_sensitive_info_in_bb.
3566         (minmax_replacement): Likewise.
3567         (abs_replacement): Likewise.
3568
3569 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3570
3571         * builtins.c: Don't include gomp-constants.h.
3572         (fold_builtin_1): Don't fold acc_on_device here.
3573         * gimple-fold.c: Include gomp-constants.h.
3574         (gimple_fold_builtin_acc_on_device): New.
3575         (gimple_fold_builtin): Call it.
3576
3577 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3578
3579         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3580         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3581
3582 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
3583
3584         * config/arm/aarch-common-protos.h
3585         (aarch_accumulator_forwarding): New.
3586         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3587         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3588         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3589         * config/arm/cortex-a53.md: Rewrite.
3590
3591 2015-10-01  Richard Biener  <rguenther@suse.de>
3592
3593         * gimple-match.h (mprts_hook): Declare.
3594         * gimple-match.head.c (mprts_hook): Define.
3595         (maybe_push_res_to_seq): Use new hook.
3596         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3597         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3598         (vn_ssa_aux::has_constants): Remove.
3599         * tree-ssa-sccvn.c: Include gimple-match.h.
3600         (VN_INFO_GET): Assert we don't re-use SSA names.
3601         (vn_get_expr_for): Remove.
3602         (expr_has_constants): Likewise.
3603         (stmt_has_constants): Likewise.
3604         (simplify_binary_expression): Likewise.
3605         (simplify_unary_expression): Likewise.
3606         (vn_lookup_simplify_result): New hook.
3607         (visit_copy): Adjust.
3608         (visit_reference_op_call): Likewise.
3609         (visit_phi): Likewise.
3610         (visit_use): Likewise.
3611         (process_scc): Likewise.
3612         (init_scc_vn): Likewise.
3613         (visit_reference_op_load): Likewise.  Use match-and-simplify and
3614         a gimple seq for inserted expressions.
3615         (try_to_simplify): Remove GENERIC stmt combining code.
3616         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3617         * tree-ssa-pre.c (eliminate_insert): Adjust.
3618         (eliminate_dom_walker::before_dom_children): Likewise.
3619
3620 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3621
3622         * doc/invoke.texi (Optimization Options): Add
3623         -freorder-blocks-algorithm=.
3624         (Optimize Options) <-O>: Add -freorder-blocks.
3625         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
3626         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3627         <-freorder-blocks>: Also enabled at levels -O and -Os.
3628         <-freorder-blocks-algorithm=>: Document new option.
3629
3630 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3631
3632         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3633         with flag_reorder_blocks_algorithm.
3634         * common.opt (freorder-blocks-algorithm=): New flag.
3635         (reorder_blocks_algorithm): New enum.
3636         * flag-types.h (reorder_blocks_algorithm): New enum.
3637         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3638         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3639
3640 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3641
3642         * bb-reorder.c: Add intro comment.
3643         (reorder_basic_blocks_software_trace_cache): Print a header to
3644         the dump file.
3645         (edge_order): New function.
3646         (reorder_basic_blocks_simple): New function.
3647         (reorder_basic_blocks): Choose between the STC and the simple
3648         algorithms (always choose the former).
3649
3650 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3651
3652         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3653         function, factored out from ...
3654         (reorder_basic_blocks): ... here.
3655
3656 2015-10-01  Tom de Vries  <tom@codesourcery.com>
3657
3658         * tree-cfg.c (dump_function_to_file): Dump function attributes using
3659         __attribute__(()) string.  Move dumping of function attributes to before
3660         function name.
3661
3662 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
3663
3664         PR target/66870
3665         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3666         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3667         based on gold linker version.
3668         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3669         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3670         * configure, config.in: Regenerate.
3671
3672 2015-10-01  Alan Modra  <amodra@gmail.com>
3673
3674         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3675         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3676         (rs6000_output_mi_thunk): Likewise.
3677
3678 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3679
3680         * config/nvptx/mkoffload.c (process): Change offload data format.
3681
3682 2015-09-30  Jeff Law  <law@redhat.com>
3683
3684         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3685         with constant conditions.
3686         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3687         (remove_ctrl_stmt_and_useless_edges): No longer static.
3688         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3689         (remove_ctrl_stmt_and_useless_edges): Likewise.
3690
3691 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3692             Cesar Philippidis  <cesar@codesourcery.com>
3693
3694         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3695         (TARGET_GOACC_VALIDATE_DIMS): Override.
3696         * target.def (TARGET_GOACC): New target hook prefix.
3697         (validate_dims): New hook.
3698         * targhooks.h (default_goacc_validate_dims): New.
3699         * omp-low.c (oacc_validate_dims): New.
3700         (execute_oacc_device_lower): New.
3701         (default_goacc_validate_dims): New.
3702         (pass_data_oacc_device_lower): New.
3703         (pass_oacc_device_lower): New pass.
3704         (make_pass_oacc_device_lower): New.
3705         * tree-pass.h (make_pass_oacc_device_lower): Declare.
3706         * passes.def (pass_oacc_device_lower): Add it.
3707         * doc/tm.texi: Rebuilt.
3708         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3709         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3710
3711 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3712
3713         PR rtl-optimization/67037
3714         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3715
3716 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
3717
3718         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3719         * passes.c: Include tree-ssanames.h.
3720         (execute_function_todo): Flush the pending free SSA_NAMEs after
3721         eliminating unreachable basic blocks.
3722         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3723         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3724         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3725         (flush_ssanames_freelist): New function.
3726         (release_ssaname_fn): Put released names on the queue.
3727         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3728         * tree-ssanames.h (flush_ssanames_freelist): Declare.
3729
3730 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3731
3732         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3733         (generate_target_descr_file, generate_target_offloadend_file)
3734         (generate_host_descr_file, prepare_target_image): Pass it on.
3735         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3736         (compile_native, main): Pass it on.
3737         * lto-wrapper.c (compile_offload_image): Likewise.
3738
3739 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3740             Ilya Verbin  <ilya.verbin@intel.com>
3741             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3742
3743         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3744         (prepare_target_image, main): Refactor argv building to use
3745         obstacks.
3746
3747 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3748
3749         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3750         * config/spu/spu.c (spu_expand_atomic_op): New function.
3751         * config/spu/spu.md (AINT): New mode iterator.
3752         (ATOMIC): New code iterator.
3753         (atomic_name, atomic_pred): New code predicates.
3754         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3755         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3756         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3757         "atomic_<atomic_name>_fetch<mode>"): Likewise.
3758
3759 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
3760
3761         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3762         debug insns.
3763         (scalar_chain::convert_reg): Likewise.
3764
3765 2015-09-30  Richard Biener  <rguenther@suse.de>
3766
3767         * builtins.c: Add comment that no new simplifications should
3768         be added here.
3769
3770 2015-09-30  Marek Polacek  <polacek@redhat.com>
3771
3772         PR tree-optimization/67690
3773         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3774         reset_flow_sensitive_info_in_bb.
3775         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3776         * tree-ssanames.c: Include "gimple-iterator.h".
3777         (reset_flow_sensitive_info_in_bb): New function.
3778         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3779
3780 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3781
3782         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3783         variable, replacing it with...
3784         (offload_abi): ... this new variable.  Adjust all users.
3785         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3786
3787 2015-09-30  Matthias Klose  <doko@ubuntu.com>
3788
3789         * configure.ac: Remove extraneous ;;.
3790         * configure: Regenerate.
3791
3792 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
3793
3794         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3795         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3796         predicate, disallow register for operand 2.
3797
3798 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
3799
3800         * graphite-dependences.c (scop_get_dependences): Moved in down
3801         in order to be visible to its caller.
3802         * graphite-poly.h: Removed compute_deps, and extend_schedule.
3803
3804 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3805             Aditya Kumar  <aditya.k7@samsung.com>
3806
3807         PR tree-optimization/67754
3808         * graphite-optimize-isl.c (optimize_isl): Call
3809         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3810
3811 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
3812
3813         * builtins.c (expand_builtin_acc_on_device): Delete.
3814         (expand_builtin): Don't call it.
3815         (fold_builtin_1): Fold acc_on_device.
3816
3817 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3818
3819         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3820         (ix86_nsaved_sseregs): Likewise.
3821
3822 2015-09-29  Jeff Law  <law@redhat.com>
3823
3824         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3825         computation of unused value.
3826
3827         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3828         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3829         inline macro expansion.
3830
3831         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3832
3833         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3834         (gen_shl_sext): Likewise.
3835         * config/sh/sh.md (divsi3): Likewise.
3836         (imm->ext_dest_operand splitter): Likewise.
3837
3838 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3839             Aditya Kumar  <aditya.k7@samsung.com>
3840
3841         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3842         (nb_data_writes_in_bb): Remove.
3843         (split_pbb): Remove.
3844         (split_reduction_stmt): Remove.
3845         (is_reduction_operation_p): Remove.
3846         (phi_contains_arg): Remove.
3847         (follow_ssa_with_commutative_ops): Remove.
3848         (detect_commutative_reduction_arg): Remove.
3849         (detect_commutative_reduction_assign): Remove.
3850         (follow_inital_value_to_phi): Remove.
3851         (edge_initial_value_for_loop_phi): Remove.
3852         (initial_value_for_loop_phi): Remove.
3853         (used_outside_reduction): Remove.
3854         (detect_commutative_reduction): Remove.
3855         (translate_scalar_reduction_to_array_for_stmt): Remove.
3856         (remove_phi): Remove.
3857         (dr_indices_valid_in_loop): Remove.
3858         (close_phi_written_to_memory): Remove.
3859         (translate_scalar_reduction_to_array): Remove.
3860         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3861         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3862         (rewrite_commutative_reductions_out_of_ssa): Remove.
3863         (build_poly_scop): Remove call to
3864         rewrite_commutative_reductions_out_of_ssa.
3865
3866 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
3867
3868         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3869         Add new insn types for vector load and store pairs.
3870         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3871         types "neon_ldp{,_q}".
3872         * config/arm/cortex-a57.md (neon_load_c): Add insn types
3873         "neon_ldp{,_q}".
3874         (neon_store_complex): Add insn types "neon_stp{,_q}".
3875         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3876         "neon_{ldp,stp}_q".
3877
3878 2015-09-29  Jeff Law  <law@redhat.com>
3879
3880         * config/rx/constraints.md (Int08): Fix undefined left shift
3881         behaviour.
3882         (Sint08, Sint16, Sint24): Likewise.
3883         * config/rx/rx.c (rx_get_stack_layout): Likewise.
3884
3885         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3886         behaviour.
3887
3888         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3889         left shift behaviour.
3890         * config/msp430/constraints.md ('L' constraint): Similarly.
3891         ('Ys' constraint): Similarly.
3892
3893 2015-09-29  Richard Biener  <rguenther@suse.de>
3894
3895         PR tree-optimization/67170
3896         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3897         the translate function pointer parameter to get the
3898         bool whether to disambiguate only by reference.
3899         (walk_non_aliased_vuses): Likewise.
3900         * tree-ssa-alias.c (maybe_skip_until): Adjust.
3901         (get_continuation_for_phi_1): Likewise.
3902         (get_continuation_for_phi): Likewise.
3903         (walk_non_aliased_vuses): Likewise.
3904         * tree-ssa-sccvn.c (const_parms): New bitmap.
3905         (vn_reference_lookup_3): Adjust for interface change.
3906         Disambiguate parameters pointing to readonly memory.
3907         (free_scc_vn): Free const_parms.
3908         (run_scc_vn): Initialize const_parms from a fn spec attribute.
3909
3910 2015-09-29  Richard Biener  <rguenther@suse.de>
3911
3912         PR tree-optimization/67741
3913         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3914         builtin calls with correct signature.
3915
3916 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
3917
3918         PR target/65105
3919         * config/i386/i386.c: Include dbgcnt.h.
3920         (has_non_address_hard_reg): New.
3921         (convertible_comparison_p): New.
3922         (scalar_to_vector_candidate_p): New.
3923         (remove_non_convertible_regs): New.
3924         (scalar_chain): New.
3925         (scalar_chain::scalar_chain): New.
3926         (scalar_chain::~scalar_chain): New.
3927         (scalar_chain::add_to_queue): New.
3928         (scalar_chain::mark_dual_mode_def): New.
3929         (scalar_chain::analyze_register_chain): New.
3930         (scalar_chain::add_insn): New.
3931         (scalar_chain::build): New.
3932         (scalar_chain::compute_convert_gain): New.
3933         (scalar_chain::replace_with_subreg): New.
3934         (scalar_chain::replace_with_subreg_in_insn): New.
3935         (scalar_chain::emit_conversion_insns): New.
3936         (scalar_chain::make_vector_copies): New.
3937         (scalar_chain::convert_reg): New.
3938         (scalar_chain::convert_op): New.
3939         (scalar_chain::convert_insn): New.
3940         (scalar_chain::convert): New.
3941         (convert_scalars_to_vector): New.
3942         (pass_data_stv): New.
3943         (pass_stv): New.
3944         (make_pass_stv): New.
3945         (ix86_option_override): Created and register stv pass.
3946         (flag_opts): Add -mstv.
3947         (ix86_option_override_internal): Likewise.
3948         * config/i386/i386.md (SWIM1248x): New.
3949         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
3950         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
3951         (*anddi3_doubleword): New.
3952         (*zext<mode>_doubleword): New.
3953         (*zextsi_doubleword): New.
3954         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
3955         (*<code>di3_doubleword): New.
3956         * config/i386/i386.opt (mstv): New.
3957         * dbgcnt.def (stv_conversion): New.
3958
3959 2015-09-29  Tom de Vries  <tom@codesourcery.com>
3960
3961         * tree-cfg.c (dump_function_to_file): Dump function attributes.
3962
3963 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3964
3965         PR target/67716
3966         * config/sh/sh.c (sh_override_options_after_change): New.
3967         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3968         (sh_option_override): Move align_loops, align_jumps and
3969         align_functions handling into sh_override_options_after_change.
3970
3971 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
3972
3973         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
3974         (nvptx_record_offload_symbol): Record function execution geometry.
3975         * config/nvptx/mkoffload.c (process): Include launch geometry in
3976         function data.
3977         * omp-low.c (oacc_launch_pack): New.
3978         (replace_oacc_fn_attrib): New.
3979         (set_oacc_fn_attrib): New.
3980         (get_oacc_fn_attrib): New.
3981         (expand_omp_target): Create keyed varargs for GOACC_parallel call
3982         generation.
3983         * omp-low.h (get_oacc_fn_attrib): Declare.
3984         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
3985         (DEF_FUNCTION_TYPE_VAR_11): Delete.
3986         * tree.h (OMP_CLAUSE_EXPR): New.
3987         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
3988
3989 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3990             Sebastian Pop  <s.pop@samsung.com>
3991
3992         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
3993
3994 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3995             Sebastian Pop  <s.pop@samsung.com>
3996
3997         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
3998         * graphite-scop-detection.c (struct sese_l): New type.
3999         (get_entry_bb): API for getting entry bb of SESE.
4000         (get_exit_bb): API for getting exit bb of SESE.
4001         (class debug_printer): New type.  Simple printer in debug mode.
4002         (trivially_empty_bb_p): New.  Return true when BB is empty or
4003         contains only debug instructions.
4004         (graphite_can_represent_expr): Call scalar_evoution_in_region
4005         instead of analyze_scalar_evolution.  Pass in scop instead of only
4006         the scop entry.
4007         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4008         scop entry.
4009         (stmt_simple_for_scop_p): Same.
4010         (harmful_stmt_in_bb): Same.
4011         (graphite_can_represent_loop): Deleted.
4012         (struct scopdet_info): Deleted.
4013         (scopdet_basic_block_info): Deleted.
4014         (build_scops_1): Deleted.
4015         (bb_in_sd_region): Deleted.
4016         (find_single_entry_edge): Deleted.
4017         (find_single_exit_edge): Deleted.
4018         (create_single_entry_edge): Deleted.
4019         (sd_region_without_exit): Deleted.
4020         (create_single_exit_edge): Deleted.
4021         (unmark_exit_edges): Deleted.
4022         (mark_exit_edges): Deleted.
4023         (create_sese_edges): Deleted.
4024         (build_graphite_scops): Deleted.
4025         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4026         (build_scops): Use the new scop_builder to build scops.
4027         (dot_all_scops_1): Use the new pretty printer.  Print loop father
4028         as well.
4029         (loop_body_is_valid_scop): New.  Return true if loop body is a
4030         valid scop.
4031         (class scop_builder): New.  Builds SCoPs for polyhedral
4032         optimizations.
4033         (scop_builder): New constructor.
4034         (static sese_l invalid_sese): sese_l with invalid edges.
4035         (get_sese): Get an sese (from a loop) if possible, invalid_sese
4036         otherwise.
4037         (get_nearest_dom_with_single_entry): Get nearest dominator of a
4038         basic_block with single entry.  Return NULL if we get to the
4039         beginning of a function.
4040         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4041         a basic_block with single exit.  Return NULL if we get to the
4042         beginning of a function.
4043         (print_sese): Pretty-print SESE.
4044         (merge_sese): Merge two SESEs if possible and return the new SESE.
4045         (build_scop_depth): Start building the SCoP within a loop nest.
4046         (build_scop_breadth): Start building the SCoP at a single loop
4047         depth.  Merge adjacent SESEs if valid.
4048         (can_represent_loop_1): Returns true if Graphite can represent
4049         loop inside SCoP.  Helper for can_represent_loop.
4050         (can_represent_loop): Returns true if Graphite can represent LOOP
4051         and all its nested loops in SCoP.
4052         (loop_is_valid_scop): Returns true if LOOP and all its nests
4053         constitute a valid SCoP.
4054         (region_has_one_loop): Returns true of a region has only one loop.
4055         (add_scop): Add SCoP to the list of valid scops.  Removes an
4056         already existing scop if it intersects with or subsumed by this one.
4057         (harmful_stmt_in_region): Returns true if SCoP has any statment
4058         which cannot be represented by Graphite.
4059         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4060         (remove_subscops): Remove any SCoP from the list of already found
4061         SCoPs, if subsumed by S1.
4062         (intersects): Return true if region bounded by SCoPs S1 and S2
4063         intersect.
4064         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4065         * graphite.c (print_graphite_scop_statistics):
4066         (print_graphite_statistics): Print SCoP info while debugging.
4067         (graphite_initialize): Early exit in case number of loops in a
4068         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4069         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4070         (graphite_finalize):
4071         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4072         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4073         (recompute_all_dominators): Recalculate POST_DOMINATORS.
4074         * tree-cfg.c (print_loops): Print the function name while printing
4075         loops.
4076
4077 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4078             Sebastian Pop  <s.pop@samsung.com>
4079
4080         PR tree-optimization/67700
4081         * graphite-sese-to-poly.c (parameter_index_in_region): Call
4082         invariant_in_sese_p_rec.
4083         (extract_affine): Same.
4084         (rewrite_cross_bb_scalar_deps): Call update_ssa.
4085         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
4086         * sese.h (invariant_in_sese_p_rec): Declare.
4087
4088 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
4089
4090         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4091
4092 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
4093
4094         Revert:
4095         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4096                     Jiong Wang  <jiong.wang@arm.com>
4097
4098         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4099         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4100         (REG_CLASS_NAMES): Likewise.
4101         (REG_CLASS_CONTENTS): Likewise.
4102         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4103         (aarch64_register_move_cost): Likewise.
4104         (aarch64_load_symref_appropriately): Invoke the new added pattern if
4105         possible.
4106         * config/aarch64/constraints.md (Uc0): New constraint.
4107
4108 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
4109
4110         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4111
4112 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
4113
4114         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4115         SECTION_EXCLUDE in XO mapping class.
4116
4117 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
4118
4119         PR target/54236
4120         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4121         and handle ne and eq codes.
4122         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4123         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
4124         CONST_INT_P.  Use reverse_condition.
4125         (sh_split_treg_set_expr): Likewise.
4126
4127 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
4128
4129         * config/arm/types.md (type): Add rotate_imm.
4130         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4131         ROR immediate case.
4132         (*rorsi3_insn_uxtw): Likewise.
4133         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4134         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4135         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4136
4137 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4138
4139         PR rtl-optimization/67481
4140         * ifcvt.c (contains_ccmode_rtx_p): New function.
4141         (insn_valid_noce_process_p): Use it.
4142
4143 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4144
4145         PR rtl-optimization/67456
4146         PR rtl-optimization/67464
4147         PR rtl-optimization/67465
4148         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4149         move in the mode of x.  Handle combination of complex and simple
4150         block pairs as well as the case when one is empty.
4151
4152 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4153
4154         * doc/gimple.texi: Update references to gimple_statement_base.
4155         * gdbhooks.py: Likewise.
4156         * gimple.h: Likewise.
4157
4158 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4159
4160         * config/sparc/driver-sparc.c: map LEON to leon3
4161
4162 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4163
4164         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4165           and make it inverse to change default
4166         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4167           supervisor mode
4168         * doc/invoke.texi: Document change of default
4169
4170 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4171
4172         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4173         true on %f0 for a target without FPU.
4174         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4175         without FPU.
4176         (untyped_return): Do not load %f0 for a target without FPU.
4177
4178 2015-09-28  Andrew Pinski  <apinski@cavium.com>
4179
4180         * config/aarch64/aarch64.md (prefetch):
4181         Change the predicate of operand 0 to register_operand.
4182
4183 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
4184
4185         * config/i386/predicates.md (register_sse4nonimm_operand): New
4186         predicate.
4187         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4188         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4189         Use register_sse4nonimm_operand as operand 0 predicate.
4190         (*vec_extractv8hi_sse2): Remove insn pattern.
4191         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4192         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4193
4194 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
4195             Kaz Kojima  <kkojima@gcc.gnu.org>
4196
4197         PR target/67391
4198         * config/sh/sh-protos.h (sh_lra_p): Declare.
4199         * config/sh/sh.c (sh_lra_p): Make non-static.
4200         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4201         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
4202         Expand into addsi3_scr if operands[2] if needed.
4203         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
4204         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
4205         (addsi3_scr, *addsi3): New insn_and_split patterns.
4206
4207 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
4208
4209         PR rtl-optimization/64164
4210         PR tree-optimization/67312
4211         PR middle-end/67340
4212         PR middle-end/67490
4213         PR bootstrap/67597
4214         * cfgexpand.c (parm_in_stack_slot_p): Remove.
4215         (ssa_default_def_partition): Remove.
4216         (get_rtl_for_parm_ssa_default_def): Remove.
4217         (set_rtl): Check that RTL assignments match expectations.
4218         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
4219         default def location for params and results.  Record SSA names
4220         or types in REG and MEM attrs, respectively.
4221         (set_parm_rtl): New.
4222         (expand_one_ssa_partition): Drop logic that assigned MEMs with
4223         unassigned addresses.
4224         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4225         deferred stack alloc vars.
4226         (expand_used_vars): Skip partitions holding parm default defs.
4227         Move adjust_one_expanded_partition_var loop...
4228         (pass_expand::execute): ... here.  Drop redundant assert.
4229         Adjust comments before the final loop over all ssa names.
4230         Require assigned rtl of parms and results to match exactly.
4231         Reset its attributes to match them, not any other variables in
4232         the same partition.
4233         (expand_debug_expr): Use entry value for PARM's default defs
4234         only iff they have zero nondebug uses.
4235         * cfgexpand.h (parm_in_stack_slot_p): Remove.
4236         (get_rtl_for_parm_ssa_default_def): Remove.
4237         (set_parm_rtl): Declare.
4238         * doc/invoke.texi: Improve wording.
4239         * explow.c (promote_decl_mode): Fix promote_function_mode for
4240         result decls not by reference.
4241         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
4242         bypass TYPE_MODE to get the actual vector mode.
4243         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
4244         2015-08-19's changes as follows.  Drop include of
4245         basic-block.h and df.h.
4246         (rtl_for_parm): Remove.
4247         (maybe_reset_rtl_for_parm): Remove.
4248         (parm_in_unassigned_mem_p): Remove.
4249         (use_register_for_decl): Add logic for RESULT_DECLs matching
4250         assign_parms' behavior.
4251         (split_complex_args): Revert.
4252         (assign_parms_augmented_arg_list): Revert.  Add comment
4253         referencing the logic above.
4254         (assign_parm_adjust_stack_rtl): Revert.
4255         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
4256         of SET_DECL_RTL.  Set up a REG if the parm demands so.
4257         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
4258         calls into a single set_parm_rtl.  Set up a temporary RTL
4259         temporarily for expand_assignment.
4260         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
4261         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
4262         (assign_bounds): Revert.
4263         (assign_parms): Revert.  Use set_parm_rtl.
4264         (allocate_struct_function): Relayout result and parms of
4265         non-abstruct functions.
4266         (expand_function_start): Revert.  Use set_parm_rtl.  If the
4267         result is not a hard reg, create a pseudo from the promoted
4268         mode of the default def.  Promote static chain mode.
4269         * tree-outof-ssa.c (remove_ssa_form): Drop unused
4270         partition_has_default_def.  Set up
4271         partitions_for_parm_default_defs.
4272         (finish_out_of_ssa): Remove partition_has_default_def.
4273         Release partitions_for_parm_default_defs.
4274         * tree-outof-ssa.h (struct ssaexpand): Remove
4275         partition_has_default_def.  Add
4276         partitions_for_parm_default_defs.
4277         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4278         stor-layout.h.
4279         (build_ssa_conflict_graph): Fix conflict-detection of default
4280         defs of even unused default defs of params and results.
4281         (for_all_parms): New.
4282         (create_default_def): New.
4283         (register_default_def): New.
4284         (coalesce_with_default): New.
4285         (create_outofssa_var_map): Create default defs for all parms
4286         and results, and register their partitions.  Add GIMPLE_RETURN
4287         operands as coalesce candidates with results.  Add default
4288         defs of each parm or result as coalesce candidates with its
4289         other defs.  Mark each result def, and each default def of
4290         parms, as used_in_copy.
4291         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
4292         with the ssa names, even anonymous ones.  Drop
4293         parm_in_stack_slot_p calls.  Require same signedness and
4294         alignment.
4295         (coalesce_ssa_name): Add coalesce candidates for all defs of
4296         each parm and result, even unused ones.
4297         (parm_default_def_partition_arg): New type.
4298         (set_parm_default_def_partition): New.
4299         (get_parm_default_def_partitions): New.
4300         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4301         * tree-ssa-live.c (partition_view_init): Regard unused defs of
4302         parms and results as used.
4303         (verify_live_on_entry): Don't error out just because they're
4304         not live.
4305
4306 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
4307
4308         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4309         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4310         (output_fde): Don't output length for debug_frame on AIX.
4311         (output_call_frame_info): Don't output length for debug_frame on AIX.
4312         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4313         HAVE_XCOFF_DWARF_EXTRAS.
4314         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4315         HAVE_XCOFF_DWARF_EXTRAS.
4316         (output_compilation_unit_header): Don't output length on AIX.
4317         (output_pubnames): Don't output length on AIX.
4318         (output_aranges): Delete argument. Compute length locally. Don't
4319         output length on AIX.
4320         (output_line_info): Don't output length on AIX.
4321         (dwarf2out_finish): Don't compute aranges_length.
4322         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4323         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4324         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4325         symbol decoration for AIX.
4326         (rs6000_xcoff_debug_unwind_info): New.
4327         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4328         for SECTION_DEBUG.
4329         (rs6000_xcoff_declare_function_name): Emit different
4330         .function pseudo-op when DWARF2_DEBUG. Don't call
4331         xcoffout_declare_function for DWARF2_DEBUG.
4332         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4333         Redefine.
4334         * config/rs6000/aix71.h: New.
4335         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4336         locations support.
4337         * configure: Regenerate.
4338         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4339         DWARF support.
4340
4341 2015-09-26  Jeff Law  <law@redhat.com>
4342
4343         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4344         behaviour.
4345         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4346         behaviour.
4347
4348         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4349         behaviour
4350
4351         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4352         undefined behaviour.
4353
4354         * config/cris/cris.md (asrandb): Fix left shift undefined
4355         behaviour.
4356         (asrandw): Likewise.
4357
4358 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4359
4360         PR target/61578
4361         * lra-constarints.c (match_reload): Check presence of the input pseudo
4362         in the output operand.
4363
4364 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4365
4366         * doc/invoke.texi (-fsanitize): Minor wording tweak.
4367
4368 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4369
4370         * doc/invoke.texi (-fsanitize): Update URLs.
4371
4372 2015-09-25  Teresa Johnson  <tejohnson@google.com>
4373
4374         * opts.c (finish_options): Unset -freorder-blocks-and-partition
4375         if not using profile.
4376
4377 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4378
4379         PR pretty-print/67567
4380         * pretty-print.c (pp_string): Add gcc_checking_assert.
4381         * pretty-print.h (output_buffer_append_r): Likewise.
4382
4383 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4384
4385         PR target/67675
4386         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4387         addr2 individually.  Don't emit logical or insn if one is known to
4388         be aligned approriately.
4389         (sh_expand_cmpnstr): Likewise.
4390
4391 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
4392
4393         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4394         __builtin_aarch64_fp[sc]r arguments into a register.
4395
4396 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4397
4398         * config.gcc (x86_archs): Replace lakemount with lakemont.
4399         (with_cpu): Likewise.
4400         (with_arch): Likewise.
4401         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4402         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
4403         __tune_lakemount__ with __tune_lakemont__.
4404         * config/i386/i386.c (lakemount_cost): Renamed to ...
4405         (lakemont_cost): This.
4406         (m_LAKEMOUNT): Renamed to ...
4407         (m_LAKEMONT): This.
4408         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4409         (processor_target_table): Replace "lakemount" with "lakemont".
4410         (processor_alias_table): Likewise.
4411         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4412         PROCESSOR_LAKEMONT.
4413         (ix86_adjust_cost): Likewise.
4414         (ia32_multipass_dfa_lookahead): Likewise.
4415         * config/i386/i386.h (processor_type): Likewise.
4416         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4417         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
4418         Lakemount with Lakemont.
4419
4420 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
4421
4422         * config.gcc (x86_archs): Replace iamcu with lakemount.
4423         (with_cpu): Likewise.
4424         (with_arch): Likewise.
4425         * doc/invoke.texi: Likewise.
4426         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4427         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
4428         __tune_iamcu__ with __tune_lakemount__.
4429         * config/i386/i386.c (iamcu_cost): Renamed to ...
4430         (lakemount_cost): This.
4431         (m_IAMCU): Renamed to ...
4432         (m_LAKEMOUNT): This.
4433         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4434         (processor_target_table): Replace "iamcu" with "lakemount".
4435         (processor_alias_table): Likewise.
4436         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4437         PROCESSOR_LAKEMOUNT.
4438         (ix86_adjust_cost): Likewise.
4439         (ia32_multipass_dfa_lookahead): Likewise.
4440         * config/i386/i386.h (processor_type): Likewise.
4441         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4442
4443 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
4444
4445         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4446         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4447         Declare.
4448         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4449         (pa_expand_compare_and_swap_loop): New.
4450         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4451         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4452         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4453         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4454         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4455         Revise.
4456
4457 2015-09-24  Michael Collison  <michael.collison@linaro.org>
4458
4459         PR other/57195
4460         * read-md.c (read_name): Allow mode iterators inside angle
4461         brackets in rtl expressions.
4462
4463 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
4464
4465         PR target/61578
4466         * ira-color.c (update_allocno_cost): Add parameter.
4467         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
4468         parameter.
4469
4470 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4471
4472         PR driver/67640
4473         * opts-common.c (prune_options): Discard all -fdiagnostics-color
4474         but the last one, which is moved to the front to be processed
4475         first.
4476         * opts.c (enable_warning_as_error): Reject options that do not
4477         control warnings.
4478
4479 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4480
4481         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4482
4483 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4484
4485         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4486         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4487         (aarch64_cannot_force_const_mem): Likewise.
4488         (aarch64_classify_address): Likewise.
4489         (aarch64_classify_symbolic_expression): Likewise.
4490         (aarch64_print_operand): Likewise.
4491         (aarch64_classify_symbol): Likewise.
4492         (aarch64_mov_operand_p): Likewise.
4493         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4494         (aarch64_mov_operand): Likewise.
4495
4496 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
4497
4498         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4499         for info->spe_gp_size.
4500
4501 2015-09-24  Richard Biener  <rguenther@suse.de>
4502
4503         PR lto/67699
4504         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4505         abstract origins.
4506
4507 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
4508
4509         * tree-object-size.c (plus_stmt_object_size)
4510         (cond_expr_object_size): Change the formal parameters from gimple
4511         to gimple *.
4512         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4513         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4514         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4515
4516 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4517
4518         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4519         Check for ld -type pie on Solaris 11.x and 12.
4520         * configure: Regenerate.
4521         * config.in: Regenerate.
4522
4523         * gcc.c (LD_PIE_SPEC): Allow redefinition.
4524
4525         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4526         (STARTFILE_SPEC): Use it.
4527         (ENDFILE_CRTEND_SPEC): Define.
4528         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4529         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4530         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4531         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4532         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4533         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4534         (ENDFILE_ARCH_SPEC): Define.
4535         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4536
4537 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4538
4539         * configure.ac (gcc_cv_solaris_crts): New test.
4540         * configure. Regenerate.
4541         * config.in: Regenerate.
4542         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4543         HAVE_SOLARIS_CRTS variant.
4544
4545 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4546
4547         * tree-inline.h (count_insns_seq): Delete prototype.
4548         (estimate_num_insns_seq): Define prototype.
4549         * tree-inline.c (count_insns_seq): Delete.
4550         (estimate_num_insns_seq): Remove static qualifier.
4551         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4552         with estimate_num_insns_seq.
4553
4554 2015-09-24  Richard Biener  <rguenther@suse.de>
4555
4556         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4557         members.
4558         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4559         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
4560         offset.
4561         (ao_ref_init_from_vn_reference): Record clique and base in the
4562         built base.
4563         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4564
4565 2015-09-24  Richard Biener  <rguenther@suse.de>
4566
4567         PR tree-optimization/48885
4568         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4569         as not including any restrict tags from other pointers.
4570
4571 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4572
4573         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4574         character when appending to offload_targets.
4575
4576         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4577         offload targets by commas, not colons.
4578         * config.in: Regenerate.
4579         * configure: Likewise.
4580         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4581         instead of setting up the default offload targets here...
4582         (process_command): ..., do it here.
4583         libgomp/
4584         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4585         targets are separated by commas.
4586         * config.h.in: Regenerate.
4587
4588 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4589             Nathan Sidwell  <nathan@codesourcery.com>
4590
4591         * omp-low.h (omp_reduction_init_op): Declare.
4592         * omp-low.c (omp_reduction_init_op): New, broken out of ...
4593         (omp_reduction_init): ... here.  Call it.
4594         * tree-parloops.c (initialize_reductions): Use
4595         omp_reduction_init_op.
4596
4597 2015-09-23   Richard Biener  <rguenther@suse.de>
4598
4599         PR middle-end/67662
4600         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4601         undefined overflow unless they will cancel out.
4602
4603 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4604
4605         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4606         insn emit.
4607
4608 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4609
4610         PR c/49655
4611         * opts.h (write_langs): Declare.
4612         * opts-global.c (write_langs): Make it extern.
4613
4614 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
4615
4616         PR target/67391
4617         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4618         overlapping regs when matching the pattern.
4619
4620 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
4621
4622         * config/aarch64/aarch64-simd.md
4623         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4624         (aarch64_float_truncate_hi_v4sf_le): New.
4625         (aarch64_float_truncate_hi_v4sf_be): Likewise.
4626
4627 2015-09-23  Richard Biener  <rguenther@suse.de>
4628
4629         * tree-ssa-structalias.c (intra_create_variable_infos): Build
4630         representatives for all restrict qualified pointer destinations.
4631
4632 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4633
4634         * config/i386/i386.md (define_code_attr mshift): New.
4635         (define_mode_iterator SWI1248_AVX512BW): Rename ...
4636         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4637         only.
4638         (define_insn "*k<logic><mode>"): Use new iterator name.
4639         (define_insn "*<mshift><mode>3"): New.
4640
4641 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
4642
4643         PR middle-end/67649
4644         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4645         mark the block as accessible.
4646
4647 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
4648
4649         * function.c (thread_prologue_and_epilogue_insns): Delete
4650         orig_entry_edge argument to try_shrink_wrapping.
4651         * shrink-wrap.c (can_get_prologue): New function.
4652         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4653         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
4654         can_get_prologue where needed.  Remove code that finds a single
4655         edge for the prologue.  Remove code that tests if any reg clobbered
4656         by the prologue is live on the prologue edge.  Remove code that finds
4657         the new prologue edge after duplicating blocks.  Make a new prologue
4658         block and edge.
4659         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4660
4661 2015-09-22  Jeff Law  <law@redhat.com>
4662
4663         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4664         behavior.
4665
4666 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4667
4668         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
4669         -Wtemplates, -Wnamespaces): Document.
4670
4671 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4672
4673         PR tree-optimization/67671
4674         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4675         pointer references as restrict.
4676
4677 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
4678
4679         * config/nios2/nios2.c (nios2_legitimize_address): When handling
4680         'reg + reloc' cases, allow first operand to be non-REG, and use
4681         force_reg() to enforce address pattern.
4682
4683 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
4684
4685         PR target/67480
4686         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4687         (define_mode_iterator VI12_AVX_AVX512F): New.
4688         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4689         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4690         (define_insn "*<code><mode>3"): ... Into new pattern using
4691         VI12_AVX_AVX512F iterators without masking.
4692
4693 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4694
4695         * config.gcc: Support "skylake-avx512".
4696         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4697         PROCESSOR_SKYLAKE_AVX512.
4698         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4699         (processor_target_table): Add "skylake-avx512".
4700         (PTA_SKYLAKE_AVX512): Define.
4701         (ix86_option_override_internal): Add "skylake_avx512".
4702         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4703         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4704         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4705         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4706         * doc/invoke.texi (skylake-avx512): New.
4707
4708 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4709
4710         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4711         operand in pattern.
4712         (define_insn "kunpcksi"): Ditto.
4713         (define_insn "kunpckdi"): Ditto.
4714
4715 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4716
4717         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4718         iterator instead of fixed modes.
4719
4720 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4721
4722         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4723         Adjust declaration.
4724         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4725         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
4726         out_result.  Update to support update-fetch operations.
4727         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4728         Adjust for change to aarch64_gen_atomic_ldop.
4729         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4730         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4731         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4732         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4733         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4734
4735 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4736
4737         * config/aarch64/aarch64-protos.h
4738         (aarch64_atomic_ldop_supported_p): Declare.
4739         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4740         (enum aarch64_atomic_load_op_code): New.
4741         (aarch64_emit_atomic_load_op): New.
4742         (aarch64_gen_atomic_ldop): Update to support load-operate
4743         patterns.
4744         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4745         to an expander.
4746         (aarch64_atomic_<atomic_optab><mode>): New.
4747         (aarch64_atomic_<atomic_optab><mode>_lse): New.
4748         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4749         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4750         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4751
4752 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4753
4754         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4755         (UNSPECV_ATOMIC_LDOP_OR): New.
4756         (UNSPECV_ATOMIC_LDOP_BIC): New.
4757         (UNSPECV_ATOMIC_LDOP_XOR): New.
4758         (UNSPECV_ATOMIC_LDOP_PLUS): New.
4759         (ATOMIC_LDOP): New.
4760         (atomic_ldop): New.
4761         (aarch64_atomic_load<atomic_ldop><mode>): New.
4762
4763 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4764
4765         * config/aarch64/aarch64.md
4766         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4767         pattern.
4768
4769 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4770
4771         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4772         Declare.
4773         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4774         (aarch64_gen_atomic_ldop): New.
4775         (aarch64_split_atomic_op): Fix whitespace and add a comment.
4776         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4777         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4778         (atomic_exchange<mode>): Replace with an expander.
4779         (aarch64_atomic_exchange<mode>): New.
4780         (aarch64_atomic_exchange<mode>_lse): New.
4781         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4782         (aarch64_atomic_swp<mode>): New.
4783
4784 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4785
4786         * tree-inline.c (expand_call_inline): Use inform for extra note.
4787         Do not give a note with UNKNOWN_LOCATION.
4788         Replace input_location with gimple_location (stmt).
4789         Use true/false instead of TRUE/FALSE.
4790
4791 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4792
4793         PR tree-optimization/67666
4794         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4795         with single field non-conservative.
4796
4797 2015-09-21  David S. Miller  <davem@davemloft.net>
4798
4799         PR/67622
4800         Revert:
4801         2015-09-11  David S. Miller  <davem@davemloft.net>
4802
4803         * config/sparc/constraints.md: Make "U" constraint a real register
4804         constraint.
4805         * config/sparc/sparc.c (TARGET_LRA_P): Define.
4806         (D_MODES, DF_MODES): Add missing cast.
4807         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4808         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4809         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4810         cost to 8.
4811         * config/sparc/sparc.h (PROMOTE_MODE): Define.
4812         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4813         provide these insn when flag_pic.
4814
4815         2015-09-17  David S. Miller  <davem@davemloft.net>
4816
4817         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4818         Declare.
4819         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4820         function.
4821         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4822         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4823         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4824         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4825         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4826         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4827         provide when flag_pic.
4828
4829 2015-09-21  Jeff Law  <law@redhat.com>
4830
4831         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4832         behavior.
4833
4834 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4835
4836         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4837
4838 2015-09-21  Richard Biener  <rguenther@suse.de>
4839
4840         * passes.c (rest_of_decl_compilation): Do not call
4841         dwarf2out_early_global_decl for aliases.
4842
4843 2015-09-21  Richard Biener  <rguenther@suse.de>
4844
4845         PR debug/67664
4846         * dwarf2out.c (add_location_or_const_value_attribute): Remove
4847         attribute parameter.  Early exit if either DW_AT_const_value
4848         or DW_AT_location are present already.
4849         (gen_variable_die): Adjust caller.
4850         (dwarf2out_late_global_decl): Likewise.
4851
4852 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4853
4854         PR target/67657
4855         * config/sh/sh.c (sh_remove_overlapping_post_inc,
4856         sh_peephole_emit_move_insn): Add new functions.
4857         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4858         sh_peephole_emit_move_insn): Declere them.
4859         * config/sh/sh.md: Use them in various peephole2 patterns.
4860
4861 2015-09-21  Richard Biener  <rguenther@suse.de>
4862
4863         PR middle-end/67651
4864         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4865         address with -fno-delete-null-pointer-checks.
4866
4867 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
4868
4869         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4870         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4871         (reduc_uplus_v16qi): Remove.
4872
4873         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4874         (reduc_<VEC_reduc_name>_v2df): Remove.
4875         (reduc_<VEC_reduc_name>_v4sf): Remove.
4876         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4877
4878         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4879         gen_ function by removing * prefix.
4880         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4881
4882 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4883
4884         PR middle-end/60832
4885         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4886         Print i_bound without converting it to a tree.
4887
4888 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
4889
4890         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4891         operands[4] operands[5] swap with std::swap, removed tmp variable.
4892         (arm_evpc_neon_vzip): Replaced in0/in1 and
4893         out0/out1 swaps with std::swap, removed x variable.
4894         (arm_evpc_neon_vtrn): Replaced in0/int1 and
4895         out0/out1 swaos with std::swap, removed x variable.
4896         (arm_expand_vec_perm_const_1): Replaced
4897         d->op0/d->op1 swap with std::swap, removed x variable.
4898         (arm_evpc_neon_vuzp): Replaced in0/in1 and
4899         out0/out1 swaps with std::swap, removed x variable.
4900
4901 2015-09-21  Jonathan Yong  <10walls@gmail.com>
4902
4903         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4904         sysroot/usr/lib/32api for additional win32 libraries,
4905         fixes failing Cygwin bootstrapping.
4906
4907 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4908
4909         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4910
4911 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4912
4913         PR target/67126
4914         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4915         (*mov_t_msb_neg): Rewrite negc pattern.
4916
4917 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4918
4919         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4920         immediate generation code.
4921
4922 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4923
4924         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4925         redundant immediate generation code.
4926
4927 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4928
4929         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4930         (AARCH64_NUM_BITMASKS): Remove.
4931         (aarch64_bitmasks_cmp): Remove.
4932         (aarch64_build_bitmask_table): Remove.
4933
4934 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4935
4936         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
4937         slow immediate matching loops with a faster algorithm.
4938
4939 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4940
4941         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
4942         faster algorithm.
4943
4944 2015-09-20  Jeff Law  <law@redhat.com>
4945
4946         PR tree-optimization/47679
4947         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
4948         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
4949         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
4950         (thread_through_normal_block): Use record_temporary_equivalences.
4951
4952 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
4953
4954         * coretypes.h (gimple): Change typedef to be a forward declaration.
4955         * gimple.h (gimple_statement_base): rename to gimple.
4956         * (all functions and types using gimple): Adjust.
4957         * *.[ch]: Likewise.
4958
4959 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
4960             David Edelsohn  <dje.gcc@gmail.com>
4961
4962         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
4963         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4964         (EH_FRAME_THROUGH_COLLECT2): Define.
4965         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4966         (ASM_OUTPUT_DWARF_PCREL): Define.
4967         (ASM_OUTPUT_DWARF_DATAREL): Define.
4968
4969 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
4970
4971         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
4972         of TARGET_ELF32.
4973
4974 2015-09-18  Jeff Law  <law@redhat.com>
4975
4976         PR tree-optimization/47679
4977         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
4978         it here ...
4979         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
4980         object.  Update constructor.
4981         (pass_dominator::execute):  Corresponding chagnes to declaration
4982         and initialization of avail_exprs_stack.  Update constructor call
4983         for dom_opt_dom_walker object.
4984         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
4985         it down to children as needed.
4986         (record_equivalences_from_incoming_edge): Likewise.
4987         (eliminate_redundant_computations): Likewise.
4988         (record_equivalences_from_stmt): Likewise.
4989         (simplify_stmt_for_jump_threading): Likewise.
4990         (record_temporary_equivalences): Likewise.
4991         (optimize_stmt): Likewise.
4992         (dom_opt_dom_walker::thread_across_edge): Update access to
4993         avail_exprs_stack object and pass it to children as needed.
4994         (dom_opt_dom_walker::before_dom_children): Similarly.
4995         (dom_opt_dom_walker::after_dom_children): Similarly.
4996         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
4997         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
4998         Add avail_expr_stack argument.  Pass it to children as needed.
4999         (dummy_simplify): Likewise.
5000         (simplify_control_stmt_condition): Likewise.
5001         (thread_around_empty_blocks): Likewise.
5002         (thread_through_normal_block): Likewise.
5003         (thread_across_edge): Likewise.
5004         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5005         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5006
5007         PR tree-optimization/47679
5008         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
5009         it here ...
5010         (dom_opt_dom_walker): New private member holding the const_and_copies
5011         object.  Update constructor.
5012         (pass_dominator::execute): Corresponding changes to declaration
5013         and initialization of const_and_copies.  Update constructor call
5014         for the dom_opt_dom_walker object.
5015         (record_temporary_equivalences): Accept const_and_copies argument
5016         pass it down to children as needed.
5017         (record_equality): Likewise.
5018         (record_equivalences_from_incoming_edge): Likewise.
5019         (cprop_into_successor_phis, optimize_stmt): Likewise.
5020         (eliminate_redundant_computations): Likewise.
5021         (dom_opt_dom_walker::thread_across_edge): Update access to
5022         const_and_copies object and pass it to children as needed.
5023         (dom_opt_dom_walker::before_dom_children): Similarly.
5024         (dom_opt_dom_walker::after_dom_children): Similarly.
5025
5026         PR tree-optimization/47679
5027         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
5028         it into the avail_exprs_stack class.
5029         (pass_dominator::execute): Corresponding changes to declaration
5030         and initialization of avail_exprs.  Pass avail_exprs to
5031         dump_dominator_optimization_stats.
5032         (record_cond): Extract avail_exprs from avail_exprs_stack.
5033         (lookup_avail_expr): Similarly.
5034         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
5035         position in file.
5036         (dump_dominator_optimization_stats): Make static and prototype.
5037         Add argument for the hash table to dump.
5038         (debug_dominator_optimization_stats): Remove.
5039         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5040         prototype.
5041         (debug_dominator_optimization_stats): Similarly.
5042         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5043         "void" in prototype for pop_to_marker method.  Add accessor method
5044         for the underlying avail_exprs table.
5045
5046         * tree-ssa-threadedge.c: Remove trailing whitespace.
5047
5048 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
5049
5050         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5051         unsigned.
5052         (pa_ldil_cint_p): Likewise.
5053         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5054         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5055         Update callers.
5056         * config/pa/pa.md: Likewise.
5057
5058 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
5059
5060         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5061         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5062         (diagnostic_show_locus): Likewise.
5063         (diagnostic_print_caret_line): Likewise.
5064         * diagnostic-show-locus.c: New file.
5065
5066 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
5067
5068         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5069         "back" parameter. Declare label in #if block.
5070
5071 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
5072
5073         PR middle-end/67619
5074         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5075         the address to a register.
5076
5077 2015-09-18  Jeff Law  <law@redhat.com>
5078
5079         PR tree-optimization/47679
5080         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5081         * tree-ssa-dom.c: Remove unnecessary header includes.
5082         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5083         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5084         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5085         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5086         (pass_phi_only_cprop::execute): Likewise.
5087         (make_pass_phi_only_cprop): Likewise.
5088         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
5089         uses of file scoped statics by passing the required objects
5090         as parameters wherever needed.
5091
5092 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
5093             David Edelsohn  <dje.gcc@gmail.com>
5094
5095         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5096         EH_FRAME_THROUGH_COLLECT2.
5097         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5098         DW_EH_PE_datarel.
5099         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5100         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
5101         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5102         * except.c (switch_to_exception_section): Use a read-only section
5103         even if EH_FRAME_SECTION_NAME is undefined.
5104         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5105         * collect2.c (write_c_file_stat): Provide dbase on AIX.
5106         (scan_prog_file): Don't export __dso_handle nor
5107         __gcc_unwind_dbase.
5108         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5109         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5110         (ASM_OUTPUT_DWARF_PCREL): Define.
5111         (ASM_OUTPUT_DWARF_DATAREL): Define.
5112         (EH_FRAME_THROUGH_COLLECT2): Define.
5113         (EH_FRAME_IN_DATA_SECTION): Delete.
5114         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5115         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5116         Declare.
5117         (rs6000_asm_output_dwarf_datarel): Declare.
5118         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5119         (rs6000_aix_asm_output_dwarf_datarel): New.
5120         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5121         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5122         (EH_FRAME_THROUGH_COLLECT2): Define.
5123         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5124         (EH_FRAME_THROUGH_COLLECT2): Define.
5125         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5126         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5127         (EH_FRAME_THROUGH_COLLECT2): New.
5128         (ASM_OUTPUT_DWARF_DATAREL): New.
5129         * doc/tm.texi: Regenerate.
5130
5131 2015-09-18  Richard Biener  <rguenther@suse.de>
5132
5133         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5134         we're in early phase.
5135         (schedule_generic_params_dies_gen): Likewise.
5136         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5137         work as possible, retaining unhandled cases.
5138         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5139         clear out generic_type_instances at the end.
5140         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5141         (dwarf2out_early_finish): ... here.  Do most of
5142         gen_remaining_tmpl_value_param_die_attribute here.
5143
5144 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
5145
5146         PR tree-optimization/67283
5147         * tree-sra.c (type_consists_of_records_p): Rename to...
5148         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5149         (completely_scalarize_record): Rename to...
5150         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5151         (scalarize_elem): New.
5152         (analyze_all_variable_accesses): Follow renamings.
5153
5154 2015-09-18  Richard Biener  <rguenther@suse.de>
5155
5156         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5157         in early-dwarf.
5158
5159 2015-09-18  Richard Biener  <rguenther@suse.de>
5160
5161         PR tree-optimization/66142
5162         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5163         treat MEM[&x] and x the same.
5164         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5165         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5166         when we simplified sth.
5167         (vn_reference_maybe_forwprop_address): Likewise.
5168         (valueize_refs_1): When we simplified through
5169         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5170         set valueized_anything to true.
5171         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5172         one ref kills the other instead of just a offset-based test.
5173         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5174         for the operand_equal_p test to compare bases and also compare
5175         sizes.
5176
5177 2015-09-17  Christian Bruel  <christian.bruel@st.com>
5178
5179         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5180
5181 2015-09-17  Richard Henderson  <rth@redhat.com>
5182
5183         PR libstdc++/65913
5184         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5185         pointers that encode the alignment of the object.
5186
5187 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5188
5189         PR rtl-optimization/66790
5190         * df-problems.c (LIVE): Amend documentation.
5191
5192 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
5193
5194         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5195         and optabs-tree.o.
5196         (GTFILES): Replace optabs.c with optabs-libfunc.c.
5197         * genopinit.c (main): Add an include guard to insn-opinit.h.
5198         Protect the rtx_code parts with NUM_RTX_CODE.
5199         * optabs.h: Split parts out to...
5200         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5201         * optabs.c: Split parts out to...
5202         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5203         * cilk-common.c: Include optabs-query.h rather than optabs.h.
5204         * fold-const.c: Likewise.
5205         * target-globals.c: Likewise.
5206         * tree-if-conv.c: Likewise.
5207         * tree-ssa-forwprop.c: Likewise.
5208         * tree-ssa-loop-prefetch.c: Likewise.
5209         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5210         Remove unncessary include files.
5211         * tree-ssa-phiopt.c: Likewise.
5212         * tree-ssa-reassoc.c: Likewise.
5213         * tree-switch-conversion.c: Likewise.
5214         * tree-vect-data-refs.c: Likewise.
5215         * tree-vect-generic.c: Likewise.
5216         * tree-vect-loop.c: Likewise.
5217         * tree-vect-patterns.c: Likewise.
5218         * tree-vect-slp.c: Likewise.
5219         * tree-vect-stmts.c: Likewise.
5220         * tree-vrp.c: Likewise.
5221         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5222         rather than optabs.h.
5223         * expr.c: Include optabs-tree.h.
5224         * function.c: Likewise.
5225
5226 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5227
5228         PR middle-end/65958
5229         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5230         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5231         * config/arm/arm.c: Include common/common-target.h.
5232         (use_return_insn): Return 0 if the static chain register was saved
5233         above a non-APCS frame.
5234         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5235         (struct scratch_reg): New.
5236         (get_scratch_register_on_entry): New function.
5237         (release_scratch_register_on_entry): Likewise.
5238         (arm_emit_probe_stack_range): Likewise.
5239         (output_probe_stack_range): Likewise.
5240         (arm_expand_prologue): Factor out code dealing with the IP register
5241         for nested function and adjust it for stack checking.
5242         Invoke arm_emit_probe_stack_range if static builtin stack checking
5243         is enabled.
5244         (thumb1_expand_prologue): Sorry out if static builtin stack checking
5245         is enabled.
5246         (arm_expand_epilogue): Add the saved static chain register, if any, to
5247         the amount of pre-pushed registers to pop.
5248         (arm_frame_pointer_required): Return true if static stack checking is
5249         enabled and we want to catch the exception with the EABI unwinder.
5250         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
5251         (UNSPEC_PROBE_STACK_RANGE): Likewise.
5252         * config/arm/arm.md (probe_stack): New insn.
5253         (probe_stack_range): Likewise.
5254
5255 2015-09-17  Richard Biener  <rguenther@suse.de>
5256
5257         * genmatch.c (parser::parse_expr): Improve error message
5258         for mis-placed flags.
5259
5260 2015-09-17  Richard Biener  <rguenther@suse.de>
5261
5262         * passes.c (rest_of_decl_compilation): Always call early_global_decl
5263         debug hook when we created a varpool node.
5264         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5265         dwarf2out_early_global_decl, when not just add location or
5266         value attributes to existing DIEs.
5267
5268 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
5269
5270         * config/aarch64/aarch64.md (copysigndf3): New.
5271         (copysignsf3): Likewise.
5272
5273 2015-09-17  David S. Miller  <davem@davemloft.net>
5274
5275         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5276         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5277         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5278         (HARD_REGNO_CALLER_SAVE_MODE): Define.
5279         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5280         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5281         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5282         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5283         provide when flag_pic.
5284
5285 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5286
5287         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5288         object_allocator change.
5289
5290 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5291
5292         PR tree-optimization/66388
5293         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5294         (dump_iv): Dump no_overflow information.
5295         (alloc_iv): Initialize new field for struct iv.
5296         (mark_bivs): Count number of no_overflow bivs.
5297         (find_deriving_biv_for_expr, record_biv_for_address_use): New
5298         functions.
5299         (idx_find_step): Call new functions above.
5300         (add_candidate_1, add_candidate): New paramter.
5301         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5302         (get_computation_aff): Simplify convertion of cand for BIV.
5303         (get_computation_cost_at): Step cand's base if necessary.
5304
5305 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5306
5307         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5308         parameter.
5309         (tree_simplify_using_condition): Ditto.
5310         (simplify_using_initial_conditions): Ditto.
5311         (loop_exits_before_overflow): Pass new argument to function
5312         simplify_using_initial_conditions.  Remove case for type conversions
5313         simplification.
5314         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5315         parameter.
5316         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5317         in iv base using loop initial conditions.
5318
5319 2015-09-16  Jeff Law  <law@redhat.com>
5320
5321         PR tree-optimization/47679
5322         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5323         (free_all_edge_infos): Use it.
5324         (allocate_edge_info): Free preexisting edge info data.
5325         (pass_dominator::execute): Set up initial edge info structures.
5326         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5327         thread_across_edge.
5328         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5329         If non-null, then push/pop markers appropriately.
5330         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5331         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5332         thread-across_edge.
5333
5334 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
5335
5336         * config/ft32/ft32.c: Fix the memory address space predicate.
5337
5338 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5339
5340         PR target/67573
5341         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5342         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5343
5344 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5345
5346         * toplev.h (check_global_declaration): Remove declaration.
5347         * toplev.c (check_global_declaration): Move to ...
5348         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5349         (analyze_functions): Update call.
5350
5351 2015-09-16  David S. Miller  <davem@davemloft.net>
5352
5353         * lra-constraints.c (simplify_operand_subreg): Do not assume that
5354         lowpart of a SUBREG has offset zero.
5355
5356 2015-09-16  Jeff Law  <law@redhat.com>
5357
5358         PR tree-optimization/47679
5359         * tree-ssa-dom.c (enum expr_kind): Moved from here to
5360         tree-ssa-scopedtables.h.
5361         (struct hashable_expr, class expr_hash_elt): Likewise.
5362         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5363         Move associated methods into tree-ssa-scopedtables.c.
5364         (avail_expr_hash, initialize_expr_from_cond): Similarly.
5365         (hashable_expr_equal_p, add_expr_commutative): Likewise.
5366         (add_hashable_expr): Likewise.
5367         (record_cond): Delete element directly.
5368         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5369         private copy ctor and assignment operator methods.
5370         (expr_elt_hasher): Inline trivial methods.
5371         (initialize_expr_from_cond): Prototype.
5372         * tree-ssa-scopedtables.c: Add necessary includes, functions and
5373         methods that were previously in tree-ssa-dom.c.  Improve various
5374         comments.
5375
5376 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
5377
5378         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5379
5380 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
5381
5382         PR bootstrap/67587
5383         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5384         fixup_partitions.
5385
5386 2015-09-16  Richard Biener  <rguenther@suse.de>
5387
5388         PR middle-end/67253
5389         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5390         location of possibly shared trees.
5391
5392 2015-09-16  Richard Biener  <rguenther@suse.de>
5393
5394         PR middle-end/67271
5395         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5396
5397 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
5398
5399         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5400         offset and size computations instead of HOST_WIDE_INT.
5401
5402 2015-09-16  Richard Biener  <rguenther@suse.de>
5403
5404         PR middle-end/67442
5405         * fold-const.c (extract_muldiv_1): Properly extend multiplication
5406         result before builting a tree via wide_int_to_tree.
5407
5408 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
5409
5410         * Makefile.in: Add memory-block.cc
5411         (pool_allocator::initialize): Use fixed block size.
5412         (pool_allocator::release): Use memory_block_pool.
5413         (pool_allocator::allocate): Likewise.
5414         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5415         object pools.
5416         * cfg.c (initialize_original_copy_tables): Likewise.
5417         * cselib.c (elt_list_pool, elt_loc_list_pool,
5418         cselib_val_pool): Likewise.
5419         * df-problems.c (df_chain_alloc): Likewise.
5420         * df-scan.c (df_scan_alloc): Likewise.
5421         * dse.c (cse_store_info_pool, rtx_store_info_pool,
5422         read_info_type_pool, insn_info_type_pool, bb_info_pool,
5423         group_info_pool, deferred_change_pool): Likewise.
5424         * et-forest.c (et_nodes, et_occurrences): Likewise.
5425         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5426         ipcp_agg_lattice_pool): Likewise.
5427         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5428         * ipa-profile.c (histogram_pool): Likewise.
5429         * ipa-prop.c (ipa_refdesc_pool): Likewise.
5430         * ira-build.c (live_range_pool, allocno_pool, object_pool,
5431         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5432         * ira-color.c (update_cost_record_pool): Likewise.
5433         * lra-lives.c (lra_live_range_pool): Likewise.
5434         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5435         * memory-block.cc: New file.
5436         * memory-block.h: New file.
5437         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5438         * sched-deps.c (sched_deps_init): Likewise.
5439         * sel-sched-ir.c (sched_lists_pool): Likewise.
5440         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5441         * tree-sra.c (access_pool): Likewise.
5442         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5443         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5444         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5445         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5446         * tree-ssa-strlen.c (strinfo_pool): Likewise.
5447         * tree-ssa-structalias.c (variable_info_pool): Likewise.
5448         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5449         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5450
5451 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5452
5453         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5454         definition.
5455         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5456         call0 ABI.
5457
5458 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5459
5460         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5461         to pass TLS call argument, according to current ABI.
5462         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5463         callx0 for TLS call, according to current ABI.
5464
5465 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5466
5467         * tree-eh.c (lower_try_finally_dup_block): Clear location information
5468         on stack restore statements.
5469         (decide_copy_try_finally): Do not consider a stack restore statement as
5470         coming from sources.
5471
5472 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
5473
5474         * config/alpha/alpha.c (alpha_expand_block_clear): Use
5475         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5476
5477 2015-09-15  Jeff Law  <law@redhat.com>
5478
5479         PR tree-optimization/47679
5480         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5481         methods and private members.
5482         (avail_exprs_stack): Similarly.  Change type of global
5483         from a pair of expr_hash_elt_t to the new class.
5484         (expr_elt_hasher::hash): Corresponding changes.
5485         (expr_elt_hasher::equal): Similarly.
5486         (avail_expr_hash): Similarly.
5487         (pass_dominator::execute): Similarly.
5488         (dom_opt_dom_walker::thread_across_edge): Similarly.
5489         (record_cond): Similarly.
5490         (dom_opt_dom_walker::before_dom_children): Similarly.
5491         (dom_opt_dom_walker::after_dom_children): Similarly.
5492         (lookup_avail_expr): Likewise.
5493         (initialize_hash_element): Now a expr_hash_elt constructor.
5494         (initialize_hash_element_from_expr): Similarly.
5495         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5496         (free_expr_hash_elt): Call dtor for the element.
5497         (remove_local_expressions_from_table): Now the "pop_to_marker"
5498         method in the available_exprs_stack class.
5499         (avail_expr_stack::record_expr): Method factored out.
5500         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5501         Fix formatting.
5502         (hashable_expr_equal_p): Fix formatting.
5503
5504 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
5505
5506         * input.h (location_get_source_line): Drop "expanded_location"
5507         param in favor of a file and line number.
5508         * input.c (location_get_source_line): Likewise.
5509         (dump_location_info): Update for change in signature of
5510         location_get_source_line.
5511         * diagnostic.c (diagnostic_print_caret_line): Likewise.
5512
5513 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5514
5515         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5516         Bump to 4KB for SJLJ exceptions.
5517         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
5518         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5519         * doc/tm.texi: Regenerate.
5520
5521 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5522
5523         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5524         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
5525         Update prototype.
5526
5527 2015-09-15  Richard Biener  <rguenther@suse.de>
5528
5529         PR tree-optimization/67470
5530         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5531         structure for PHI hoisting by inserting a forwarder block
5532         if appropriate.
5533
5534 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5535
5536         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5537         (arm_option_print): New function.
5538
5539 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5540
5541         PR target/52144
5542         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5543         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5544         Remove flags parameter.
5545         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5546         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5547         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5548         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5549         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5550         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5551         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5552         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5553
5554 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5555
5556         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5557
5558         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5559         AARCH64_VALID_SIMD_DREG_MODE.
5560
5561 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5562
5563         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5564         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5565         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5566         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5567         aarch64_ld4_lane<mode>): Combine together, making...
5568         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5569         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5570         aarch64_st4_lane<mode>): Combine together, making...
5571         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5572         * config/aarch64/iterators.md (nregs): Add comment.
5573
5574 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5575
5576         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5577         Change operand mode from <V_TWO_ELEM> to BLK.
5578         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5579         (aarch64_vec_store_lanesoi_lane<mode): Likewise
5580         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5581         (aarch64_ld2_lane<mode>): Likewise.
5582         (aarch64_st2_lane<VQ:mode>): Likewise.
5583         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5584
5585 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5586
5587         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5588         Change operand mode from <V_FOUR_ELEM> to BLK.
5589         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5590         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5591         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5592         (aarch64_ld4_lane<mode>): Likewise.
5593         (aarch64_st4_lane<mode>): Likewise.
5594         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5595
5596 2015-09-15  Richard Biener  <rguenther@suse.de>
5597
5598         PR middle-end/67563
5599         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5600         transfer EH info from old to new stmt.
5601         (replace_call_with_value): Likewise.
5602         (replace_call_with_call_and_fold): Likewise.
5603         (gimple_fold_builtin_memory_op): Likewise.
5604         (gimple_fold_builtin_memset): Likewise.
5605         (gimple_fold_builtin_stpcpy): Likewise.
5606         (gimple_fold_call): Likewise.
5607
5608 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5609
5610         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5611         comment.
5612         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5613         (aarch64_simd_intEI_type_node): Likewise.
5614         (aarch64_simd_builtin_std_type): Remove EImode case.
5615         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5616         * config/aarch64/aarch64-modes.def: Remove EImode.
5617
5618 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5619
5620         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5621         Change operand mode from <V_THREE_ELEM> to BLK.
5622         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5623         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5624         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5625         (aarch64_ld3_lane<mode>): Likewise.
5626         (aarch64_st3_lane<mode>): Likewise.
5627         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5628
5629 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5630
5631         * config/aarch64/aarch64-simd.md
5632         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5633         Change all TImode operands to BLKmode.
5634         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5635         Change all EImode operands to BLKmode.
5636         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5637         Change all OImode operands to BLKmode.
5638
5639         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5640         and call set_mem_size.
5641         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5642
5643         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5644
5645 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5646
5647         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5648         to...
5649         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5650
5651         (vec_store_lanesci_lane<mode>): Rename to...
5652         (aarch64_vec_store_lanesci_lane<mode>): ...this.
5653
5654         (vec_store_lanesxi_lane<mode>): Rename to...
5655         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5656
5657         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5658         aarch64_st4_lane<mode>): Follow renaming.
5659
5660 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5661
5662         * config/s390/s390.c (s390_const_operand_ok): Add missing
5663         brackets.
5664
5665 2015-09-15  Richard Biener  <rguenther@suse.de>
5666
5667         PR lto/67568
5668         * lto-streamer.h (lto_location_cache::current_sysp): Properly
5669         initialize.
5670         * lto-streamer-out.c (clear_line_info): Likewise.
5671
5672 2015-09-15  Richard Biener  <rguenther@suse.de>
5673
5674         * doc/match-and-simplify.texi: Fix wording.
5675
5676 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
5677
5678         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5679         unnecessary type conversion in op1.
5680
5681 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5682
5683         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5684         (dup_block_and_redirect): Delete function.
5685         (can_dup_for_shrink_wrapping): New function.
5686         (fix_fake_fallthrough_edge): New function.
5687         (try_shrink_wrapping): Rewrite function.
5688         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5689
5690 2015-09-14  Rich Felker  <dalias@libc.org>
5691
5692         * configure.ac: Change target pattern for sh TLS support
5693         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5694         * configure: Regenerate.
5695
5696 2015-09-14  Jeff Law  <law@redhat.com>
5697
5698         PR tree-optimization/47679
5699         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5700         type rather than void *.
5701
5702 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5703
5704         PR fortran/67460
5705         * diagnostic.c (diagnostic_initialize): Do not set
5706         some_warnings_are_errors.
5707         (diagnostic_finish): Use DK_WERROR count instead.
5708         (diagnostic_report_diagnostic): Do not set
5709         some_warnings_are_errors.
5710         * diagnostic.h (struct diagnostic_context): Remove
5711         some_warnings_are_errors.
5712
5713 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
5714
5715         * config/sparc/predicates.md (const_all_ones_operand): Use
5716         CONSTM1_RTX to simplify definition.
5717
5718 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
5719
5720         PR target/67061
5721         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5722         Handle call insns.
5723
5724 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
5725
5726         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5727         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5728         OPT_fshow_column to handled saved option cases.
5729         (append_compiler_options): Do not skip the above added options.
5730
5731 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5732
5733         PR target/63304
5734         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5735         nopcrelative_literal_loads.
5736         (aarch64_classify_address): Likewise.
5737         (aarch64_constant_pool_reload_icode): Define.
5738         (aarch64_secondary_reload): Handle secondary reloads for
5739         literal pools.
5740         (aarch64_override_options): Handle nopcrelative_literal_loads.
5741         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5742         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5743         Define.
5744         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5745         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5746         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5747         predicate.
5748         * doc/invoke.texi (mpc-relative-literal-loads): Document.
5749
5750 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
5751
5752         PR middle-end/67401
5753         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5754         sync_compare_and_swap_optab libcall to target_oval.
5755
5756 2015-09-14  Marek Polacek  <polacek@redhat.com>
5757
5758         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5759         value.
5760         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5761
5762 2015-09-11  Mark Wielaard  <mjw@redhat.com>
5763
5764         PR c/28901
5765         * toplev.c (check_global_declaration): Check and use
5766         warn_unused_const_variable.
5767         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5768         (-Wunused-variable): Remove non-constant. For C implies
5769         -Wunused-const-variable.
5770         (-Wunused-const-variable): New.
5771
5772 2015-09-14  Richard Biener  <rguenther@suse.de>
5773
5774         * doc/match-and-simplify.texi: Update for changed syntax
5775         of inner ifs and the new switch expression.
5776
5777 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
5778
5779         * config/i386/haswell.md: New file describing Haswell pipeline.
5780         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5781         haswell-like processors.
5782         (ix86_reassociation_width): Increase reassociation width for 64-bit
5783         Haswell processor family.
5784         * config/i386/i386.md: Introduce haswell cpu and include new md file.
5785
5786 2015-09-14  Richard Biener  <rguenther@suse.de>
5787
5788         * doc/match-and-simplify.texi: Fixup some formatting issues
5789         and document the 's' flag.
5790
5791 2015-09-13  Olivier Hainque  <hainque@adacore.com>
5792             Eric Botcazou  <ebotcazou@adacore.com>
5793
5794         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5795         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
5796         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5797         (TARGET_CPU_gr5): Likewise.
5798         (TARGET_CPU_gr6): Likewise.
5799         (MULTILIB_DEFAULTS): Likewise.
5800         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5801         for mcpu=gr5 and mcpu=gr6.
5802         (MULTILIB_DIRNAMES): Adjust accordingly.
5803
5804 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5805
5806         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5807         (mem_ref_p): Likewise.
5808         (outermost_indep_loop): Adjust.
5809         (mem_ref_in_stmt): Likewise.
5810         (determine_max_movement): Likewise.
5811         (mem_ref_alloc): Likewise.
5812         (record_mem_ref_loc): Likewise.
5813         (set_ref_stored_in_loop): Likewise.
5814         (mark_ref_stored): Likewise.
5815         (gather_mem_refs_stmt): Likewise.
5816         (mem_refs_may_alias_p): Likewise.
5817         (for_all_locs_in_loop): Likewise.
5818         (struct rewrite_mem_ref_loc): Likewise.
5819         (rewrite_mem_refs): Likewise.
5820         (struct first_mem_ref_loc_1): Likewise.
5821         (first_mem_ref_loc): Likewise.
5822         (struct sm_set_flag_if_changed): Likewise.
5823         (execute_sm_if_changed_flag_set): Likewise.
5824         (execute_sm): Likewise.
5825         (hoist_memory_references):
5826         (struct ref_always_accessed): Likewise.
5827         (ref_always_accessed_p): Likewise.
5828         (refs_independent_p): Likewise.
5829         (record_dep_loop): Likewise.
5830         (ref_indep_loop_p_1): Likewise.
5831         (ref_indep_loop_p_2): Likewise.
5832         (ref_indep_loop_p): Likewise.
5833         (can_sm_ref_p): Likewise.
5834         (find_refs_for_sm): Likewise.
5835         (tree_ssa_lim_finalize): Likewise.
5836
5837 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5838
5839         * dwarf2out.c (dw_attr_ref): Remove typedef.
5840         (dw_line_info_ref): Likewise.
5841         (pubname_ref): Likewise.
5842         (dw_ranges_ref): Likewise.
5843         (dw_ranges_by_label_ref): Likewise.
5844         (comdat_type_node_ref): Likewise.
5845         (get_AT): Adjust.
5846         (get_AT_low_pc): Likewise.
5847         (get_AT_hi_pc): Likewise.
5848         (get_AT_string): Likewise.
5849         (get_AT_flag): Likewise.
5850         (get_AT_unsigned): Likewise.
5851         (get_AT_ref): Likewise.
5852         (get_AT_file): Likewise.
5853         (remove_AT): Likewise.
5854         (print_die): Likewise.
5855         (check_die): Likewise.
5856         (die_checksum): Likewise.
5857         (attr_checksum_ordered): Likewise.
5858         (struct checksum_attributes): Likewise.
5859         (collect_checksum_attributes): Likewise.
5860         (die_checksum_ordered): Likewise.
5861         (same_die_p): Likewise.
5862         (is_declaration_die): Likewise.
5863         (clone_die): Likewise.
5864         (clone_as_declaration): Likewise.
5865         (copy_declaration_context): Likewise.
5866         (break_out_comdat_types): Likewise.
5867         (copy_decls_walk): Likewise.
5868         (output_location_lists): Likewise.
5869         (external_ref_hasher::hash): Likewise.
5870         (optimize_external_refs_1): Likewise.
5871         (build_abbrev_table): Likewise.
5872         (size_of_die): Likewise.
5873         (unmark_all_dies): Likewise.
5874         (size_of_pubnames): Likewise.
5875         (output_die_abbrevs): Likewise.
5876         (output_die): Likewise.
5877         (output_pubnames): Likewise.
5878         (add_ranges_num): Likewise.
5879         (add_ranges_by_labels): Likewise.
5880         (add_high_low_attributes): Likewise.
5881         (gen_producer_string): Likewise.
5882         (dwarf2out_set_name): Likewise.
5883         (new_line_info_table): Likewise.
5884         (prune_unused_types_walk_attribs): Likewise.
5885         (prune_unused_types_update_strings): Likewise.
5886         (prune_unused_types): Likewise.
5887         (resolve_addr): Likewise.
5888         (optimize_location_lists_1): Likewise.
5889         (index_location_lists): Likewise.
5890         (dwarf2out_finish): Likewise.
5891
5892 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5893
5894         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5895
5896 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5897
5898         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5899         (dump_asserts_for): Adjust.
5900         (register_new_assert_for): Likewise.
5901         (process_assert_insertions): Likewise.
5902         (insert_range_assertions): Likewise.
5903
5904 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5905
5906         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5907         and remove typedef.
5908         (new_temp_expr_table): Adjust.
5909         (free_temp_expr_table): Likewise.
5910         (version_to_be_replaced_p): Likewise.
5911         (make_dependent_on_partition): Likewise.
5912         (add_to_partition_kill_list): Likewise.
5913         (remove_from_partition_kill_list): Likewise.
5914         (add_dependence): Likewise.
5915         (finished_with_expr): Likewise.
5916         (process_replaceable): Likewise.
5917         (kill_expr): Likewise.
5918         (kill_virtual_exprs): Likewise.
5919         (mark_replaceable): Likewise.
5920         (find_replaceable_in_bb): Likewise.
5921         (find_replaceable_exprs): Likewise.
5922         (debug_ter): Likewise.
5923
5924 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5925
5926         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5927         (struct btr_user): Rename from btr_user_s.
5928         (struct btr_def): Rename from btr_def_s.
5929         (find_btr_def_group): Adjust.
5930         (add_btr_def): Likewise.
5931         (new_btr_user): Likewise.
5932         (note_other_use_this_block): Likewise.
5933         (compute_defs_uses_and_gen): Likewise.
5934         (link_btr_uses): Likewise.
5935         (build_btr_def_use_webs): Likewise.
5936         (block_at_edge_of_live_range_p): Likewise.
5937         (btr_def_live_range): Likewise.
5938         (combine_btr_defs): Likewise.
5939         (move_btr_def): Likewise.
5940         (migrate_btr_def): Likewise.
5941         (migrate_btr_defs): Likewise.
5942
5943 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5944
5945         * var-tracking.c (shared_hash_def): Rename to shared_hash.
5946         (shared_hash): Remove typedef.
5947         (struct dataflow_set): Adjust.
5948         (shared_hash_unshare): Likewise.
5949         (dataflow_set_merge): Likewise.
5950         (vt_initialize): Likewise.
5951         (vt_finalize): Likewise.
5952
5953 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5954
5955         * var-tracking.c (struct location_chain): Rename from
5956         location_chain_def.
5957         (struct variable_part): Adjust.
5958         (variable_htab_free): Likewise.
5959         (unshare_variable): Likewise.
5960         (get_init_value): Likewise.
5961         (get_addr_from_local_cache): Likewise.
5962         (drop_overlapping_mem_locs): Likewise.
5963         (val_reset): Likewise.
5964         (struct variable_union_info): Likewise.
5965         (variable_union): Likewise.
5966         (find_loc_in_1pdv): Likewise.
5967         (insert_into_intersection): Likewise.
5968         (intersect_loc_chains): Likewise.
5969         (canonicalize_loc_order_check): Likewise.
5970         (canonicalize_values_mark): Likewise.
5971         (canonicalize_values_star): Likewise.
5972         (canonicalize_vars_star): Likewise.
5973         (variable_merge_over_cur): Likewise.
5974         (remove_duplicate_values): Likewise.
5975         (variable_post_merge_new_vals): Likewise.
5976         (variable_post_merge_perm_vals): Likewise.
5977         (find_mem_expr_in_1pdv): Likewise.
5978         (dataflow_set_preserve_mem_locs): Likewise.
5979         (dataflow_set_remove_mem_locs): Likewise.
5980         (variable_part_different_p): Likewise.
5981         (onepart_variable_different_p): Likewise.
5982         (find_src_set_src): Likewise.
5983         (dump_var): Likewise.
5984         (set_slot_part): Likewise.
5985         (clobber_slot_part): Likewise.
5986         (delete_slot_part): Likewise.
5987         (vt_expand_var_loc_chain): Likewise.
5988         (emit_note_insn_var_location): Likewise.
5989         (vt_finalize): Likewise.
5990
5991 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5992
5993         * dse.c (store_info_t): Remove typedef.
5994         (group_info_t): Likewise.
5995         (const_group_info_t): Likewise.
5996         (deferred_change_t): Likewise.
5997         (get_group_info): Adjust.
5998         (free_store_info): Likewise.
5999         (canon_address): Likewise.
6000         (clear_rhs_from_active_local_stores): Likewise.
6001         (record_store): Likewise.
6002         (replace_read): Likewise.
6003         (check_mem_read_rtx): Likewise.
6004         (scan_insn): Likewise.
6005         (remove_useless_values): Likewise.
6006         (dse_step1): Likewise.
6007         (dse_step2_init): Likewise.
6008         (dse_step2_nospill): Likewise.
6009         (scan_stores_nospill): Likewise.
6010         (scan_reads_nospill): Likewise.
6011         (dse_step3_exit_block_scan): Likewise.
6012         (dse_step3): Likewise.
6013         (dse_step5_nospill): Likewise.
6014         (dse_step6): Likewise.
6015
6016 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6017
6018         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6019         (alias_set_entry): Remove typedef.
6020         (alias_set_subset_of): Adjust.
6021         (alias_sets_conflict_p): Likewise.
6022         (init_alias_set_entry): Likewise.
6023         (get_alias_set): Likewise.
6024         (new_alias_set): Likewise.
6025         (record_alias_subset): Likewise.
6026
6027 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
6028
6029         * doc/install.texi (Downloading the source): Mark up
6030         contrib/download_prerequisites properly and drop leading "./".
6031
6032 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6033
6034         * config/arc/arc.h: Remove define of STRUCT_VALUE.
6035         * config/lm32/lm32.h: Likewise.
6036         * config/mep/mep.h: Likewise.
6037         * config/visium/visium.h: Likewise.
6038         * system.h: Poison STRUCT_VALUE macro.
6039
6040 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
6041
6042         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6043         CONSTANT_P operands.
6044
6045 2015-09-11  David S. Miller  <davem@davemloft.net>
6046
6047         * config/sparc/constraints.md: Make "U" constraint a real register
6048         constraint.
6049         * config/sparc/sparc.c (TARGET_LRA_P): Define.
6050         (D_MODES, DF_MODES): Add missing cast.
6051         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6052         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6053         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6054         cost to 8.
6055         * config/sparc/sparc.h (PROMOTE_MODE): Define.
6056         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6057         provide these insn when flag_pic.
6058
6059 2015-09-11  Jeff Law  <law@redhat.com>
6060
6061         PR tree-optimization/47679
6062         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6063         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6064         member with m_.  Update inline member functions as necessary.  Add
6065         toplevel comment.
6066         * tree-ssa-scopedtables.c: Update const_and_copies's member
6067         functions to use m_ prefix to access the stack.
6068
6069 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
6070
6071         * graphite-optimize-isl.c (disable_tiling): Remove.
6072         (get_schedule_for_band): Do not use disable_tiling.
6073         (get_prevector_map): Delete function.
6074         (enable_polly_vector): Remove.
6075         (get_schedule_for_band_list): Remove dead code.
6076
6077 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
6078
6079         * graphite-optimize-isl.c (get_tile_map): Refactor.
6080         (get_schedule_for_band): Same.
6081         (getScheduleForBand): Same.
6082         (get_prevector_map): Same.
6083         (get_schedule_for_band_list): Same.
6084         (get_schedule_map): Same.
6085         (get_single_map): Same.
6086         (apply_schedule_map_to_scop): Same.
6087         (optimize_isl): Same.
6088
6089 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6090
6091         PR target/63304
6092         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6093         (movtf): Delete.
6094         * config/aarch64/iterators.md (GPF_TF_F16): New.
6095         (GPF_F16): Delete.
6096
6097 2015-09-10  Nathan Sidwell  <nathan@acm.org>
6098
6099         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6100         (nvptx_reorg): Adjust comments.
6101
6102 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
6103
6104         PR bootstrap/67363
6105         * configure.ac: Check if setenv and unsetenv are declared.
6106         * configure: Rebuild.
6107         * config.in: Rebuild.
6108         * system.h: Declare setenv and unsetenv if not declared.
6109
6110 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6111
6112         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6113         commentary to simplify permute mask adjustment equation.
6114         (special_handling_values): Add SH_VPERM.
6115         (const_load_sequence_p): New function.
6116         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6117         the mask loaded from the constant pool.
6118         (adjust_vperm): New function.
6119         (handle_special_swappables): Call adjust_vperm.
6120         (dump_swap_insn_table): Handle SH_VPERM.
6121
6122 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
6123
6124         * shrink-wrap.c (requires_stack_frame_p): Remove static.
6125         * shrink-wrap.h (requires_stack_frame_p): Put back.
6126
6127 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
6128
6129         * reload1.c (elimination_costs_in_insn): Locally turn
6130         -Wmaybe-uninitialized into a warning.
6131
6132 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
6133
6134         * shrink-wrap.c (requires_stack_frame_p): Make static.
6135         (prepare_shrink_wrap): Likewise.
6136         (dup_block_and_redirect): Likewise.
6137         * shrink-wrap.h: Remove declarations of those functions.
6138
6139 2015-09-10  Mark Wielaard  <mjw@redhat.com>
6140
6141         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6142
6143 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
6144
6145         PR target/67506
6146         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6147         missing simplify_gen_subreg.
6148
6149 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6150
6151         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6152         the vector element is bigger than 64 bit.
6153
6154 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6155
6156         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6157         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6158
6159 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6160
6161         * config/s390/s390.c: Add V1TImode to constant pool modes.
6162
6163 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6164
6165         PR target/67439
6166         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6167         predicate.  Set predicable_short_it attr to "no".
6168
6169 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
6170
6171         PR rtl-optimization/67421
6172         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6173         left wide shift tranformation.
6174
6175 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
6176
6177         * common/config/arc/arc-common.c: Remove references to A5.
6178         * config/arc/arc-opts.h: Likewise.
6179         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6180         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6181         * config/arc/t-arc-newlib: Likewise.
6182
6183 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
6184
6185         * config/arc/arc.md (length): Fix attribute length for conditional
6186         executed instructions with long immediate.
6187
6188 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6189
6190         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6191         type for second alternative.
6192
6193 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
6194
6195         * doc/invoke.texi (Downloading GCC): Mention
6196         contrib/download_prerequisites script.
6197
6198 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
6199
6200         PR c++/67523
6201         * gimplify.c (gimplify_omp_for): If inner stmt is not found
6202         for combined loop, assert seen_error () and return GS_ERROR.
6203
6204         PR middle-end/67521
6205         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6206         if decl is already in outer->variables.
6207
6208         PR middle-end/67517
6209         * gimplify.c (gimplify_scan_omp_clauses): Instead of
6210         asserting that decl is not specified in octx->variables,
6211         break out of the loop if it is.
6212
6213         PR c++/67514
6214         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6215         iterator is not explicitly determined, but is defined inside
6216         of the combined workshare region, handle it like if it has
6217         DECL_EXPR in OMP_FOR_PRE_BODY.
6218
6219 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6220
6221         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6222         (*cmp<mode>): Add assembler spacing.
6223         (setcc_int<mode>, set_cc_float<mode>): Likewise.
6224         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6225         level.
6226         (write_func_decl_from_insn): Refactor argument loops & comma emission.
6227         (nvptx_expand_call): Likewise.
6228         (nvptx_output_call_insn): Likewise.
6229         (nvptx_reorg_subreg): Add spacing.
6230
6231 2015-09-09  Marek Polacek  <polacek@redhat.com>
6232
6233         PR middle-end/67512
6234         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6235         for comparisons.
6236
6237 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
6238
6239         PR c++/53184
6240         * doc/invoke.texi ([Wsubobject-linkage]): Document.
6241
6242 2015-09-09  Tom de Vries  <tom@codesourcery.com>
6243
6244         * params-list.h: Add missing copyright notice.
6245
6246 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6247
6248         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
6249         sel_truesi, not andsi.
6250
6251 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6252
6253         * config/arm/arm.md (*subsi3_compare0): Rename to...
6254         (subsi3_compare0): ... This.
6255         (modsi3): New define_expand.
6256         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
6257         when operand is power of 2.
6258
6259 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6260
6261         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6262         (*neg<mode>2_compare0): Rename to...
6263         (neg<mode>2_compare0): ... This.
6264         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6265         Move check for speed inside the if-then-elses.  Reflect
6266         CSNEG sequence in MOD by power of 2 case.
6267
6268 2015-09-09  Alan Modra  <amodra@gmail.com>
6269
6270         PR target/67378
6271         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6272         reload replacement for PRE_MODIFY address reg.
6273
6274 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
6275
6276         PR tree-optimization/53852
6277         * config.in: Regenerate.
6278         * configure: Regenerate.
6279         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6280         * graphite-optimize-isl.c (optimize_isl): Stop computation when
6281         PARAM_MAX_ISL_OPERATIONS is reached.
6282         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6283         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6284         result equal to isl_stat_ok as the status now can be isl_error_quota.
6285         (subtract_commutative_associative_deps): Same.
6286         (compute_deps): Same.
6287
6288 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
6289             Sebastian Pop  <s.pop@samsung.com>
6290
6291         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6292         Return the parameter if it was saved in corresponding
6293         parameter_rename_map of the region.
6294         (copy_def): Copy def from sese region to the newly created region.
6295         (copy_internal_parameters): Copy all the internal parameters defined
6296         within a region to the newly created region.
6297         (graphite_regenerate_ast_isl): Copy parameters to the new region before
6298         translating isl to gimple.
6299         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6300         the loop-nest does not have any data-references.
6301         (build_graphite_scops): Create a scop only when there is at least one
6302         loop inside it.
6303         (contains_only_close_phi_nodes): Deleted.
6304         (print_graphite_scop_statistics): Deleted
6305         (print_graphite_statistics): Deleted
6306         (limit_scops): Deleted.
6307         (build_scops): Removed call to limit_scops.
6308         * sese.c (new_sese): Construct.
6309         (free_sese): Destruct.
6310         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6311         added.
6312         (set_rename): Pass sese region so that parameters inside the region can
6313         be added to its parameter_rename_map.
6314         (rename_uses): Pass sese region.
6315         (graphite_copy_stmts_from_block): Do not copy parameters that have been
6316         generated in the header of the scop. For each SSA_NAME in the
6317         parameter_rename_map rename its usage.
6318         (invariant_in_sese_p_rec): Return false if tree t is defined outside
6319         sese region.
6320         (scalar_evolution_in_region): If the tree t is invariant just return t.
6321         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6322         struct sese to keep track of all the parameters which need renaming.
6323         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6324         any data-refs.
6325         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6326
6327 2015-09-08  Tom de Vries  <tom@codesourcery.com>
6328
6329         * Makefile.in (generated_files): Add params.list.
6330         (params.list, s-params.list): Add rule.
6331         * params.h (enum compiler_param): Include params-list.h.  Move define
6332         DEFPARAM, include params.def and undef DEFPARAM ...
6333         * params-list.h: ... here.  New file.
6334
6335 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
6336
6337         * pretty-print.h (printer_fn): Fix typo in comment.
6338
6339 2015-09-07  Jeff Law  <law@redhat.com>
6340
6341         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6342
6343 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6344
6345         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6346         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6347         (arm_neon_fp16_hw): New.
6348
6349 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6350
6351         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6352         UNITS_PER_WORD >= 4.
6353
6354 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6355
6356         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6357         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6358         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6359         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6360         (aarch64_float_extend_lo_v2df): Rename to...
6361         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6362
6363         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6364         (float_extend_lo): Add v4sf.
6365
6366         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6367         * config/aarch64/iterators.md (VQ_HSF): New iterator.
6368         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6369         (Vwide): New mode_attr.
6370
6371 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6372
6373         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6374         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6375         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6376         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6377         V4HF and V8HF variants to iterator.
6378
6379         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6380
6381         * config/aarch64/iterators.md (VDQF_F16): New.
6382         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6383
6384 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6385
6386         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6387         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6388         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6389         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6390         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6391         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6392         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6393         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6394         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6395         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6396         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6397         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6398         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6399         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6400         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6401         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6402         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6403         vld1q_dup_f16): New.
6404
6405 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6406
6407         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6408         Reparameterize to...
6409         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6410         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6411         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6412
6413         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6414         v8hf variant.
6415         (float_truncate_lo_): Use BUILTIN_VDF iterator.
6416
6417         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6418
6419         * config/aarch64/iterators.md (VDF, Vdtype): New.
6420         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6421
6422 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6423
6424         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6425         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6426         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6427         Add __builtin_aarch64_simd_hf.
6428         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6429         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6430         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6431         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6432         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6433         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6434         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6435         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6436         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6437
6438         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6439         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6440         (VDC, Vdbl): Add V4HF.
6441
6442 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6443
6444         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6445         V4HFmode and V8HFmode.
6446         (aarch64_split_simd_move): Add case for V8HFmode.
6447         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6448         (aarch64_simd_builtin_std_type): Handle HFmode.
6449         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6450
6451         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6452         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6453         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6454
6455         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6456         Float16x8_t.
6457
6458         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6459         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6460         New typedefs.
6461         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6462         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6463         vst1q_lane_f16): New.
6464         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6465         (VALLDI_F16, VALL_F16): New.
6466         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6467         Add cases for V4HF and V8HF.
6468         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6469
6470 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6471
6472         * config/arm/arm-builtins.c (VAR11, VAR12): New.
6473         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6474         vld4_dup): Add v4hf variant.
6475         (vget_high, vget_low): Add v8hf variant.
6476         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6477         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6478         v4hf and v8hf variants.
6479
6480         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6481         (VDX): Add V4HF.
6482         (V_DOUBLE): Add case for V4HF.
6483         (VQX): Add V8HF.
6484         (V_HALF): Add case for V8HF.
6485         (VDQX): Add V4HF, V8HF.
6486         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6487         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6488
6489         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6490         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6491         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6492         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6493         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6494         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6495         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6496         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6497         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6498
6499         (neon_vcreate, neon_vreinterpretv8qi<mode>,
6500         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6501         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6502         Change VDX to VD_RE.
6503
6504         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6505         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6506         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6507
6508         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6509         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6510         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6511         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6512         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6513         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6514         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6515         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6516         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6517
6518 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6519
6520         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6521         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6522         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6523         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6524         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6525         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6526         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6527         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6528         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6529         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6530         New.
6531
6532 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6533
6534         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6535
6536         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6537
6538         * config/arm/arm-builtins.c (v8hf_UP): New.
6539         (arm_init_simd_builtin_types): Initialise Float16x8_t.
6540
6541         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6542
6543         * config/arm/arm_neon.h (float16x8_t): New typedef.
6544
6545 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6546
6547         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6548         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6549         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6550         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6551         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6552         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6553         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6554         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6555         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6556         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6557
6558 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
6559
6560         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6561         non-alphanumeric characters in the symbol name.
6562
6563 2015-09-07  Marek Polacek  <polacek@redhat.com>
6564
6565         PR inline-asm/67448
6566         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6567         a memory input.
6568
6569 2015-09-07  Marek Polacek  <polacek@redhat.com>
6570
6571         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6572
6573 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
6574
6575         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6576         not warn.
6577
6578 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
6579
6580         PR middle-end/67452
6581         * tree-ssa-live.c: Include cfgloop.h.
6582         (remove_unused_locals): Clear loop->simduid if simduid is about
6583         to be removed from cfun->local_decls.
6584
6585 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6586
6587         PR target/65210
6588         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6589         attribute as well.
6590
6591 2015-09-04  Tom de Vries  <tom@codesourcery.com>
6592
6593         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6594
6595 2015-09-04  Jeff Law  <law@redhat.com>
6596
6597         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6598         unnecessary constructor.  It's now trivial and implemented inside...
6599         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6600         constructor.  Add comments to various methods.  Remove unused
6601         private fields.
6602         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6603         * tree-vrp.c (identify_jump_threads): Likewise.
6604         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6605         indentation issues.
6606         (thread_across_edge): Similarly.
6607         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6608         arguments in constructor call.
6609
6610 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
6611
6612         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6613         temp path contains a '-'.
6614
6615 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6616             Petr Murzin  <petr.murzin@intel.com>
6617             Kirill Yukhin  <kirill.yukhin@intel.com>
6618
6619         * config/i386/i386-builtin-types.def
6620         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6621         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6622         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6623         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6624         * config/i386/i386.c
6625         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6626         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6627         IX86_BUILTIN_SCATTERALTDIV16SI.
6628         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6629         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6630         __builtin_ia32_scatteraltdiv8si.
6631         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6632         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6633         IX86_BUILTIN_SCATTERALTDIV16SI.
6634         (ix86_vectorize_builtin_scatter): New.
6635         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6636         ix86_vectorize_builtin_scatter.
6637
6638 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6639             Petr Murzin  <petr.murzin@intel.com>
6640             Kirill Yukhin  <kirill.yukhin@intel.com>
6641
6642         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6643         * doc/tm.texi: Regenerate.
6644         * target.def: Add scatter builtin.
6645         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6646         for loads/stores in case of gather/scatter accordingly.
6647         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6648         STMT_VINFO_GATHER_P(S).
6649         (vect_check_gather): Rename to ...
6650         (vect_check_gather_scatter): this.
6651         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6652         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6653         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6654         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6655         variable and new checkings for it accordingly.
6656         * tree-vect-stmts.c
6657         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6658         STMT_VINFO_GATHER_P(S).
6659         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6660         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6661
6662 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6663
6664         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6665         define_insn.
6666         (mulv16qi3): New define_expand.
6667
6668 2015-09-03  Martin Sebor  <msebor@redhat.com>
6669
6670         PR c/66516
6671         * doc/extend.texi (Other Builtins): Document when the address
6672         of a built-in function can be taken.
6673
6674 2015-09-03  Richard Biener  <rguenther@suse.de>
6675
6676         * dwarf2out.c (flush_limbo_die_list): Split out from ...
6677         (dwarf2out_early_finish): ... here.
6678         (dwarf2out_finish): Do not call dwarf2out_early_finish but
6679         flush_limbo_die_list.  Assert we have no deferred asm names.
6680
6681 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6682
6683         * optabs.c (expand_binop): Don't create a broadcast vector with a
6684         source element wider than the inner mode.
6685
6686 2015-09-03  Richard Biener  <rguenther@suse.de>
6687
6688         * varasm.c (output_constant): Use fold_convert instead of
6689         wide_int_to_tree.
6690
6691 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6692
6693         PR tree-optimization/65637
6694         * omp-low.c (expand_omp_for_static_chunk): Handle case that
6695         fin_bb has 2 predecessors.
6696
6697 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6698
6699         PR tree-optimization/65637
6700         * omp-low.c (find_phi_with_arg_on_edge): New function.
6701         (expand_omp_for_static_chunk): Fix inner loop phi.
6702
6703 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6704
6705         PR tree-optimization/65637
6706         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6707         that head is NULL.
6708
6709 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6710
6711         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6712
6713 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6714
6715         * doc/invoke.texi (parloops-chunk-size): Add item.
6716         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6717         * tree-parloops.c: Include params.h.
6718         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6719         param parloops-chunk-size is used.
6720
6721 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6722
6723         PR middle-end/67351
6724         * fold-const.c (fold_binary_loc) : Move
6725         Transform (x >> c) << c into x & (-1<<c) or
6726         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6727         types using simplify and match.
6728         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6729         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6730
6731 2015-09-03  Richard Biener  <rguenther@suse.de>
6732
6733         PR ipa/66705
6734         * tree-ssa-structalias.c (ctor_for_analysis): New function.
6735         (create_variable_info_for_1): Use ctor_for_analysis instead
6736         of get_constructor.
6737         (create_variable_info_for): Likewise.
6738
6739 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
6740
6741         PR ipa/67280
6742         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6743         in new callgraph edge.
6744
6745 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
6746
6747         PR target/59810
6748         PR target/63652
6749         PR target/63653
6750         * config/aarch64/aarch64-simd.md
6751         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6752         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6753         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6754         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6755
6756 2015-09-02  Alan Modra  <amodra@gmail.com>
6757
6758         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6759         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6760         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6761
6762 2015-09-02  Alan Modra  <amodra@gmail.com>
6763
6764         PR target/67417
6765         * config/rs6000/predicates.md (current_file_function_operand): Don't
6766         return true for weak symbols.
6767         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6768
6769 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
6770             Andrew Bennett  <andrew.bennett@imgtec.com>
6771
6772         * config/mips/mips-opts.h (mips_cb_setting): New enum.
6773         * config/mips/mips-protos.h: Add definitions for
6774         mips_output_jump and mips_output_equal_conditional_branch
6775         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6776         JIC instruction.
6777         (mips_emit_compare): Add support for the MIPS R6 conditional
6778         compact branches.
6779         (mips_process_sync_loop): Likewise.
6780         (mips_output_order_conditional_branch): Likewise.
6781         (mips16_build_call_stub): Change MIPS_CALL to
6782         mips_output_jump.
6783         (mips_print_operand_punctuation): Update 's' case to only
6784         apply to micromips r2.
6785         (mips_adjust_insn_length): Add support for forbidden slot
6786         hazards.
6787         (mips_avoid_hazard): Likewise.
6788         (mips_reorg_process_insns): Likewise.
6789         (mips_output_jump): New function.
6790         (mips_output_equal_conditional_branch): Likewise.
6791         (mips_output_conditional_branch): Use jrc/bc if compact
6792         branch support is enabled.  Ensure the forbidden slots
6793         between the two branch instructions is filled with a nop.
6794         (mips_option_override): Add support to process the compact
6795         branch option and set the correct defaults.  Prevent
6796         non-explict relocs being using for MIPS R6.
6797         (mips_trampoline_init): Add compact branch support.
6798         (mips_mult_zero_zero_cost): Allow zero initialisation of
6799         accumulators with TARGET_DSP.
6800         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6801         (TARGET_CB_MAYBE): New define.
6802         (TARGET_CB_ALWAYS): New define.
6803         (ISA_HAS_DELAY_SLOTS): New define.
6804         (ISA_HAS_COMPACT_BRANCHES): New define.
6805         (ISA_HAS_JRC): New define.
6806         (MIPS_BRANCH_C): New define.
6807         (MIPS_CALL): Removed.
6808         (MICROMIPS_J): Removed.
6809         * config/mips/mips.md (compact_form): New attr.
6810         (hazard): Add support for forbidden slots.
6811         (define_delay): Add support for compact branches.
6812         (*branch_order<mode>): Likewise.
6813         (*branch_order<mode>_inverted): Likewise.
6814         (*branch_equality<mode>): Likewise.
6815         (*branch_equality<mode>_inverted): Likewise.
6816         (*jump_absolute): Likewise.
6817         (*jump_pic): Likewise.
6818         (indirect_jump): Use mips_output_jump to produce assembly output.
6819         (tablejump_<mode>"): Likewise.
6820         (*<optab>"): Likewise.
6821         (<optab>_internal): Likewise.
6822         (sibcall_internal): Likewise.
6823         (sibcall_value_internal): Likewise.
6824         (sibcall_value_multiple_internal): Likewise.
6825         (call_internal): Likewise.
6826         (call_split): Likewise.
6827         (call_internal_direct): Likewise.
6828         (call_direct_split): Likewise.
6829         (call_value_internal): Likewise.
6830         (call_value_split): Likewise.
6831         (call_value_internal_direct): Likewise.
6832         (call_value_direct_split): Likewise.
6833         (call_value_multiple_internal): Likewise.
6834         (call_value_multiple_split): Likewise.
6835         (mips_get_fcsr_mips16_<mode>): Likewise.
6836         (mips_set_fcsr_mips16_<mode>): Likewise.
6837         (tls_get_tp_mips16_<mode>): Likewise.
6838         * config/mips/mips.opt: Add -mcompact-branches option.
6839         * config/mips/predicates.md (order_operator): Ensure the
6840         conditional compact branches are only used if the ISA them.
6841         * doc/invoke.texi: Document -mcompact-branches option.
6842
6843 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
6844
6845         PR target/61578
6846         * lra-lives.c (process_bb_lives): Process move pseudos with the
6847         same value for copies and preferences
6848         * lra-constraints.c (match_reload): Create match reload pseudo
6849         with the same value from single dying input pseudo.
6850
6851 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6852
6853         PR target/67405
6854         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6855
6856 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
6857
6858         * trans-mem.c: Add contributed-by.
6859         * trans-mem.h: Same.
6860
6861 2015-09-01  Richard Biener  <rguenther@suse.de>
6862
6863         * expr.c (expand_expr_real_1): For expanding TERed defs
6864         set the current location to that of the def if not UNKNOWN.
6865
6866 2015-09-01  David Sherwood  <david.sherwood@arm.com>
6867
6868         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6869
6870 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6871
6872         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6873         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
6874         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6875         Include rtl-iter.h.
6876         (noce_simple_bbs): New function.
6877         (noce_try_move): Bail if basic blocks are not simple.
6878         (noce_try_store_flag): Likewise.
6879         (noce_try_store_flag_constants): Likewise.
6880         (noce_try_addcc): Likewise.
6881         (noce_try_store_flag_mask): Likewise.
6882         (noce_try_cmove): Likewise.
6883         (noce_try_minmax): Likewise.
6884         (noce_try_abs): Likewise.
6885         (noce_try_sign_mask): Likewise.
6886         (noce_try_bitop): Likewise.
6887         (bbs_ok_for_cmove_arith): New function.
6888         (noce_emit_all_but_last): Likewise.
6889         (noce_emit_insn): Likewise.
6890         (noce_emit_bb): Likewise.
6891         (noce_try_cmove_arith): Handle non-simple basic blocks.
6892         (insn_valid_noce_process_p): New function.
6893         (contains_mem_rtx_p): Likewise.
6894         (bb_valid_for_noce_process_p): Likewise.
6895         (noce_process_if_block): Allow non-simple basic blocks
6896         where appropriate.
6897
6898 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
6899
6900         * tree-ssa-dom.c (record_equivalences_from_phis,
6901         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6902         (lookup_avail_expr): Likewise, and remove comment and unused temp.
6903
6904 2015-09-01  Nick Clifton  <nickc@redhat.com>
6905
6906         * config/msp430/msp430.opt (mcpu): Fix typo.
6907
6908 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6909
6910         * config/aarch64/aarch64.c (aarch64_set_current_function):
6911         Re-layout any vector parameters have non-simd layout.
6912         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6913         Delete.
6914         (aarch64_simd_expand_args): Delete call to the above.
6915
6916 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
6917
6918         * doc/invoke.texi (asan-stack): Add space before option.
6919
6920 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6921
6922         * tree.h (zerop): New function.
6923         * tree.c (zerop): Likewise.
6924         (element_precision): Handle expressions.
6925         * match.pd (define_predicates): Add zerop.
6926         (x <= +Inf): Fix comment.
6927         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6928         * fold-const.c (fold_binary_loc): ... here. Remove.
6929
6930 2015-08-31  Richard Biener  <rguenther@suse.de>
6931
6932         PR middle-end/67381
6933         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
6934
6935 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6936
6937         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
6938         (CEXPI): New operator list.
6939         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
6940         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
6941         Converted from ...
6942         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
6943
6944 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6945
6946         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
6947         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
6948         parameter.
6949         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
6950         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
6951         (rewrite_into_loop_closed_ssa): ... here.
6952         (replace_uses_in_dominated_bbs): Remove function.
6953         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
6954         rewrite_into_loop_closed_ssa_1.
6955
6956 2015-08-31  Michael Matz  <matz@suse.de>
6957
6958         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
6959         enter entry and exit blocks for reverse post order.
6960
6961 2015-08-31  Richard Biener  <rguenther@suse.de>
6962
6963         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
6964         (lto_location_cache::current_sysp): Likewise.
6965         (output_block::current_sysp): Likewise.
6966         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
6967         (lto_location_cache::apply_location_cache): Properly record
6968         system header locations.
6969         (lto_location_cache::input_location): Input whether a file
6970         is a system header.
6971         * lto-streamer-out.c (lto_output_location): Stream whether a file
6972         is a system header.
6973
6974 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6975
6976         PR bootstrap/67363
6977         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
6978
6979 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6980
6981         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
6982         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
6983         Improve function header comments.
6984
6985 2015-08-30  Michael Collison  <michael.collison@linaro.org>
6986
6987         PR other/67320
6988         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
6989         standard names
6990
6991 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6992
6993         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
6994         special_handling bitfield.
6995         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
6996         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
6997         that represents a general xxpermdi.
6998         (insn_is_swappable_p): Add handling for vec_concat of two
6999         doublewords, which maps to a specific xxpermdi.
7000         (adjust_xxpermdi): New function.
7001         (adjust_concat): Likewise.
7002         (handle_special_swappables): Call adjust_xxpermdi and
7003         adjust_concat.
7004         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7005
7006 2015-08-30  Rich Felker <dalias@libc.org>
7007
7008         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7009         case instead of sh[123456ble]-*-*.
7010
7011 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
7012
7013         * ira.c (print_unform_and_important_classes,
7014         print_translated_classes): Remove reg_class_names static array.
7015         (print_unform_and_important_classes): Rename to ...
7016         (print_uniform_and_important_classes): ... this.
7017         (ira_debug_allocno_classes): Update accordingly.
7018
7019 2015-08-29  Tom de Vries  <tom@codesourcery.com>
7020
7021         PR tree-optimization/46193
7022         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7023         clause.
7024
7025 2015-08-28  Jeff Law  <law@redhat.com>
7026
7027         PR lto/66752
7028         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7029         unable to find X NE 0 in the tables, return X as the simplified
7030         condition.
7031         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7032         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
7033         to VISISTED_BBS.
7034         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7035         after removing the control flow statement and unnecessary edges.
7036
7037 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
7038
7039         Revert:
7040         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7041
7042         PR tree-optimization/67283
7043         * tree-sra.c (type_consists_of_records_p): Rename to...
7044         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7045
7046         (completely_scalarize_record): Rename to...
7047         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7048         code to:
7049         (scalarize_elem): New.
7050
7051 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
7052
7053         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7054         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7055         (aarch64_symbol_type): Likewise.
7056         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7057         Likewise.
7058         (aarch64_expand_mov_immediate): Likewise.
7059         (aarch64_print_operand): Likewise.
7060         (aarch64_classify_tls_symbol): Likewise.
7061
7062 2015-08-28  Richard Biener  <rguenther@suse.de>
7063
7064         * cgraphunit.c (symbol_table::compile): Move early debug generation
7065         and finish...
7066         (symbol_table::finalize_compilation_unit): ... back here and
7067         add a !seen_error () guard.
7068
7069 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7070
7071         * toplev.c (process_options): Do not use flag_loop_block,
7072         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
7073         flag_loop_optimize_isl.
7074
7075 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7076
7077         * Makefile.in (OBJS): Remove graphite-blocking.o and
7078         graphite-interchange.o.
7079         * common.opt (floop-strip-mine, floop-interchange, floop-block):
7080         Alias of floop-nest-optimize.
7081         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7082         Document as alias of -floop-nest-optimize.
7083         * graphite-blocking.c: Remove.
7084         * graphite-interchange.c: Remove.
7085         * graphite-optimize-isl.c: Include dumpfile.h.
7086         (getScheduleForBand): Add dump for tiled loops.  Use
7087         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7088         * graphite-poly.c (scop_max_loop_depth): Remove.
7089         (print_scattering_function_1): Remove.
7090         (print_scattering_function): Remove.
7091         (print_scattering_functions): Remove.
7092         (debug_scattering_function): Remove.
7093         (debug_scattering_functions): Remove.
7094         (apply_poly_transforms): Remove use of flag_loop_block,
7095         flag_loop_strip_mine, and flag_loop_interchange.
7096         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7097         PBB_ORIGINAL.
7098         (print_pdr_access_layout): Remove.
7099         (print_pdr): Print ISL representation.
7100         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7101         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7102         (free_scop): Same.
7103         (openscop_print_pbb_domain): Remove.
7104         (print_pbb): Remove call to print_scattering_function.
7105         (openscop_print_scop_context): Remove.
7106         (print_scop_context): Do not print matrices anymore.
7107         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7108         SCOP_TRANSFORMED_SCHEDULE.
7109         (print_isl_set): Add printing of a new line.
7110         (print_isl_map): Same.
7111         (print_isl_aff): Same.
7112         (print_isl_constraint): Same.
7113         (loop_to_lst): Remove.
7114         (scop_to_lst): Remove.
7115         (lst_indent_to): Remove.
7116         (print_lst): Remove.
7117         (debug_lst): Remove.
7118         (dot_lst_1): Remove.
7119         (dot_lst): Remove.
7120         (reverse_loop_at_level): Remove.
7121         (reverse_loop_for_pbbs): Remove.
7122         * graphite-poly.h (pdr_dim_iter_domain): Remove.
7123         (pdr_nb_params): Remove.
7124         (pdr_alias_set_dim): Remove.
7125         (pdr_subscript_dim): Remove.
7126         (pdr_iterator_dim): Remove.
7127         (pdr_parameter_dim): Remove.
7128         (same_pdr_p): Remove.
7129         (struct poly_scattering): Remove.
7130         (struct poly_bb): Remove _original, _transformed, _saved.
7131         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7132         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7133         (PBB_NB_LOCAL_VARIABLES): Remove.
7134         (PBB_NB_SCATTERING_TRANSFORM): Remove.
7135         (schedule_to_scattering): Remove.
7136         (number_of_write_pdrs): Remove.
7137         (pbb_dim_iter_domain): Remove.
7138         (pbb_nb_params): Remove.
7139         (pbb_nb_scattering_orig): Remove.
7140         (pbb_nb_scattering_transform): Remove.
7141         (pbb_nb_dynamic_scattering_transform): Remove.
7142         (pbb_nb_local_vars): Remove.
7143         (pbb_iterator_dim): Remove.
7144         (pbb_parameter_dim): Remove.
7145         (psco_scattering_dim): Remove.
7146         (psct_scattering_dim): Remove.
7147         (psct_local_var_dim): Remove.
7148         (psco_iterator_dim): Remove.
7149         (psct_iterator_dim): Remove.
7150         (psco_parameter_dim): Remove.
7151         (psct_parameter_dim): Remove.
7152         (psct_dynamic_dim): Remove.
7153         (psct_static_dim): Remove.
7154         (psct_add_local_variable): Remove.
7155         (new_lst_loop): Remove.
7156         (new_lst_stmt): Remove.
7157         (free_lst): Remove.
7158         (copy_lst): Remove.
7159         (lst_add_loop_under_loop): Remove.
7160         (lst_depth): Remove.
7161         (lst_dewey_number): Remove.
7162         (lst_dewey_number_at_depth): Remove.
7163         (lst_pred): Remove.
7164         (lst_succ): Remove.
7165         (lst_find_pbb): Remove.
7166         (find_lst_loop): Remove.
7167         (lst_find_first_pbb): Remove.
7168         (lst_empty_p): Remove.
7169         (lst_find_last_pbb): Remove.
7170         (lst_contains_p): Remove.
7171         (lst_contains_pbb): Remove.
7172         (lst_create_nest): Remove.
7173         (lst_remove_from_sequence): Remove.
7174         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7175         (lst_niter_for_loop): Remove.
7176         (pbb_update_scattering): Remove.
7177         (lst_update_scattering_under): Remove.
7178         (lst_update_scattering): Remove.
7179         (lst_insert_in_sequence): Remove.
7180         (lst_replace): Remove.
7181         (lst_substitute_3): Remove.
7182         (lst_distribute_lst): Remove.
7183         (lst_remove_all_before_including_pbb): Remove.
7184         (lst_remove_all_before_excluding_pbb): Remove.
7185         (struct scop): Remove original_schedule, transformed_schedule, and
7186         saved_schedule.
7187         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7188         (SCOP_SAVED_SCHEDULE): Remove.
7189         (poly_scattering_new): Remove.
7190         (poly_scattering_free): Remove.
7191         (poly_scattering_copy): Remove.
7192         (store_scattering_pbb): Remove.
7193         (store_lst_schedule): Remove.
7194         (restore_lst_schedule): Remove.
7195         (store_scattering): Remove.
7196         (restore_scattering_pbb): Remove.
7197         (restore_scattering): Remove.
7198         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7199         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
7200         compute the scattering polyhedron dimension from the dimension of
7201         pbb->domain.
7202         (build_scop_scattering): Update call to
7203         build_pbb_scattering_polyhedrons.
7204         (build_poly_scop): Remove call to scop_to_lst.
7205         * graphite.c (graphite_transform_loops): Add call to print_scop.
7206         (gate_graphite_transforms): Remove use of flag_loop_block,
7207         flag_loop_interchange, and flag_loop_strip_mine.
7208
7209 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7210
7211         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7212         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7213         -floop-nest-optimize.
7214         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7215         (generate_luj_sepclass): Remove.
7216         (generate_luj_options): Remove.
7217         (set_options): Remove opt_luj.
7218         (scop_to_isl_ast): Remove opt_luj.
7219         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7220         flag_loop_unroll_jam.
7221         (getPrevectorMap_full): Remove.
7222         (getScheduleForBandList): Remove map_sepcl.
7223         (getScheduleMap): Same.
7224         (apply_schedule_map_to_scop): Remove sepcl.
7225         (optimize_isl): Same.
7226         * graphite-poly.c (apply_poly_transforms): Remove check for
7227         flag_loop_unroll_jam.
7228         (new_poly_bb): Remove map_sepclass.
7229         * graphite-poly.h (struct poly_bb): Same.
7230         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7231         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7232         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7233         * toplev.c (process_options): Remove flag_loop_unroll_jam.
7234
7235 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
7236
7237         PR target/67317
7238         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
7239         (addqi3_cc): Ditto.
7240         (UNSPEC_ADD_CARRY): Remove.
7241         (addqi3_cconly_overflow): New expander.
7242         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
7243         Adjust for changed add<mode>3_carry.
7244         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
7245         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
7246         (<plusminus_insn><mode>3_carry): Remove expander.
7247         (*<plusminus_insn><mode>3_carry): Split insn pattern to
7248         add<mode>3_carry and sub<mode>3_carry.
7249         (plusminus_carry_mnemonic): Remove code attribute.
7250         (add<mode>3_carry): Canonicalize insn pattern.
7251         (*addsi3_carry_zext): Ditto.
7252         (sub<mode>3_carry): Ditto.
7253         (*subsi3_carry_zext): Ditto.
7254         (adcx<mode>3): Remove insn pattern.
7255         (addcarry<mode>): New insn pattern.
7256         (subborrow<mode>): Ditto.
7257         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
7258         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7259         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7260         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7261         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7262         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7263         Rewrite expander to not clobber carry flag chains.
7264
7265 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
7266
7267         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7268         instead of a rotate.
7269
7270 2015-08-27  Marek Polacek  <polacek@redhat.com>
7271
7272         PR middle-end/67005
7273         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7274         an entry into an irreducible region.
7275
7276 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7277
7278         * configure: Regenerate.
7279
7280 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7281
7282         PR tree-optimization/67283
7283         * tree-sra.c (type_consists_of_records_p): Rename to...
7284         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7285
7286         (completely_scalarize_record): Rename to...
7287         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7288         (scalarize_elem): New.
7289
7290 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7291
7292         * tree-sra.c (completely_scalarize_var): Rename to...
7293         (create_total_scalarization_access): ... Here. Drop call to
7294         completely_scalarize_record.
7295
7296         (analyze_all_variable_accesses): Replace completely_scalarize_var
7297         with create_total_scalarization_access and completely_scalarize_record.
7298
7299 2015-08-27  Alan Modra  <amodra@gmail.com>
7300
7301         PR target/67356
7302         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7303         for operand 1.
7304
7305 2015-08-27  Richard Biener  <rguenther@suse.de>
7306
7307         * passes.c (rest_of_decl_compilation): Guard early_global_decl
7308         call with !seen_error ().
7309         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7310         early debug generation and finish...
7311         (symbol_table::compile): ... here to put it after a !seen_error ()
7312         guard.
7313
7314 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7315
7316         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7317         Solaris 12+.
7318
7319 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7320             Andre Vieira  <andre.simoesdiasvieira@arm.com>
7321
7322         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7323         (*cb<optab><mode>1): Likewise.
7324         (*tb<optab><mode>1): Likewise.
7325         (*cb<optab><mode>1): Likewise.
7326         * config/aarch64/iterators.md (inv_cb): New code attribute.
7327         (inv_tb): Likewise.
7328         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7329         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7330
7331 2015-08-27  Richard Biener  <rguenther@suse.de>
7332
7333         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7334
7335 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7336
7337         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7338         trap to fix ICE.
7339
7340 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7341
7342         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7343         Add declaration.
7344
7345         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7346         comment.
7347         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7348         floating point in VSX registers.
7349         (rs6000_output_move_128bit): Always print out the set insn if we
7350         can't generate an appropriate 128-bit move.
7351         (rs6000_generate_compare): Add support for IEEE 128-bit floating
7352         point in VSX registers comparisons.
7353         (rs6000_expand_float128_convert): Likewise.
7354
7355         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7356         predicate for only GPR hard registers.
7357
7358         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7359         modes to iterators. Add new iterators for moving 128-bit values in
7360         scalar FPR registers and VSX registers.
7361         (FMOVE128): Likewise.
7362         (FMOVE128_FPR): Likewise.
7363         (FMOVE128_GPR): Likewise.
7364         (FMOVE128_VSX): Likewise.
7365         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7366         in VSX registers.
7367         (IFKF): Likewise.
7368         (IBM128): Likewise.
7369         (TFIFKF): Likewise.
7370         (RELOAD): Add IEEE 128-bit floating point modes.
7371         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7372         floating point in VSX registers modes.
7373         (signbit<mode>2, IBM128 iterator): Likewise.
7374         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7375         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7376         (negtf2): Likewise.
7377         (neg<mode>2, TFIFKF iterator): Likewise.
7378         (negtf2_internal): Likewise.
7379         (abstf2): Likewise.
7380         (abs<mode>2, TFIFKF iterator): Likewise.
7381         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7382         VSX insn support for negate, absolute value, and negative absolute
7383         value.
7384         (ieee_128bit_vsx_neg<mode>2): Likewise.
7385         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7386         (ieee_128bit_vsx_abs<mode>2): Likewise.
7387         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7388         (ieee_128bit_vsx_nabs<mode>2): Likewise.
7389         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7390         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7391         floating point in VSX registers.
7392         (unpack<mode>_dm): Likewise.
7393         (unpack<mode>_nodm): Likewise.
7394         (pack<mode>): Likewise.
7395         (unpackv1ti): Likewise.
7396         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7397         (packv1ti): Likewise.
7398         (pack<mode>, FMOVE128_VSX iterator): Likewise.
7399         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7400         registers.
7401         (extenddftf2_internal): Likewise.
7402         (trunctfdf2): Likewise.
7403         (trunctfdf2_internal2): Likewise.
7404         (fix_trunc_helper): Likewise.
7405         (fix_trunctfdi2"): Likewise.
7406         (floatditf2): Likewise.
7407         (floatuns<mode>tf2): Likewise.
7408         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7409         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7410         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7411         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7412         (float<SDI:mode><IFKF:mode>2): Likewise.
7413         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7414
7415 2015-08-26  Renlin Li  <renlin.li@arm.com>
7416
7417         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7418
7419 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7420             Jiong Wang  <jiong.wang@arm.com>
7421
7422         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7423         (tlsie_tiny_<mode>): New define_insn.
7424         (tlsie_tiny_sidi): Likewise.
7425         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7426         SYMBOL_TINY_TLSIE.
7427         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7428         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7429         SYMBOL_TINY_TLSIE.
7430         (aarch64_expand_mov_immediate): Likewise.
7431         (aarch64_print_operand): Likewise.
7432         (arch64_classify_tls_symbol): Likewise.
7433
7434 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7435
7436         * config/arm/arm-arches.def: Replace single value flags with
7437         an initializer built from ARM_FSET_MAKE_CPU1.
7438         * config/arm/arm-cores.def: Likewise.
7439         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7440         derivation from the ARM_CORE macro definition, use the given value
7441         instead.
7442         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7443         ARM_ARCH macro definition, use the given value instead.
7444
7445 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7446
7447         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7448         feature set.
7449         (struct builtin_description): Replace field mask with field
7450         features.
7451         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7452         (IWMMXT2_BUILTIN): Likewise.
7453         (IWMMXT2_BUILTIN2): Likewise.
7454         (FP_BUILTIN): Likewise.
7455         (CRC32_BUILTIN): Likewise.
7456         (CRYPTO_BUILTIN): Likewise.
7457         (iwmmx_mbuiltin): Likewise.
7458         (iwmmx2_mbuiltin): Likewise.
7459         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7460         struct builtin_description.
7461
7462 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7463
7464         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7465         (struct builtin_description): Change type of mask to unsigned
7466         long.
7467         * config/arm/arm-protos.h (insn_flags): Declare as type
7468         arm_feature_set.
7469         (tune_flags): Likewise.
7470         * config/arm/arm.c (feature_count): New.
7471         (insn_flags): Define as type arm_feature_set.
7472         (tune_flags): Likewise.
7473         (struct processors): Define field flags as type arm_feature_set.
7474         (all_cores): Update for change to struct processors.
7475         (all_architectures): Likewise.
7476         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7477         macros.
7478         (arm_option_override_internal): Likewise.
7479         (arm_option_override): Likewise.
7480
7481 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7482             Jiong Wang  <jiong.wang@arm.com>
7483
7484         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7485         tls size for tiny, small, large memory model.
7486         (aarch64_load_symref_appropriately): Support new symbol types.
7487         (aarch64_expand_mov_immediate): Likewise.
7488         (aarch64_print_operand): Likewise.
7489         (aarch64_classify_tls_symbol): Likewise.
7490         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7491         (aarch64_symbol_type): Likewise.
7492         * config/aarch64/aarch64.md (tlsle): Deleted.
7493         (tlsle12_<mode>): New define_insn.
7494         (tlsle24_<mode>): Likewise.
7495         (tlsle32_<mode>): Likewise.
7496         (tlsle48_<mode>): Likewise.
7497         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7498         "aarch64_tlsle32".
7499
7500 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7501
7502         * config/arm/arm-protos.h (FL_NONE): New.
7503         (FL_ANY): New.
7504         (arm_feature_set): New.
7505         (ARM_FSET_MAKE): New.
7506         (ARM_FSET_MAKE_CPU1): New.
7507         (ARM_FSET_MAKE_CPU2): New.
7508         (ARM_FSET_CPU1): New.
7509         (ARM_FSET_CPU2): New.
7510         (ARM_FSET_EMPTY): New.
7511         (ARM_FSET_ANY): New.
7512         (ARM_FSET_HAS_CPU1): New.
7513         (ARM_FSET_HAS_CPU2): New.
7514         (ARM_FSET_HAS_CPU): New.
7515         (ARM_FSET_ADD_CPU1): New.
7516         (ARM_FSET_ADD_CPU2): New.
7517         (ARM_FSET_DEL_CPU1): New.
7518         (ARM_FSET_DEL_CPU2): New.
7519         (ARM_FSET_UNION): New.
7520         (ARM_FSET_INTER): New.
7521         (ARM_FSET_XOR): New.
7522         (ARM_FSET_EXCLUDE): New.
7523         (AFM_FSET_IS_EMPTY): New.
7524         (ARM_FSET_CPU_SUBSET): New.
7525
7526 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7527
7528         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7529         SYMBOL_TLSLE to SYMBOL_TLSLE24.
7530         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7531         Likewise.
7532         (aarch64_expand_mov_immediate): Likewise.
7533         (aarch64_print_operand): Likewise.
7534         (aarch64_classify_symbol): Likewise.
7535
7536 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7537
7538         * config/aarch64/aarch64.opt (mtls-size): New entry.
7539         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7540         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7541         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7542
7543 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7544
7545         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7546         ARM_CORE entry.  Fix some white-space.
7547         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7548         ARM_CORE definition.
7549
7550 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7551
7552         * fold-const.c (fold_binary_loc) : Move Optimize
7553         root(x)*root(y) as root(x*y) to match.pd.
7554         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7555         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7556         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7557         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7558         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7559         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7560         (mult (exps:s @0) (exps:s @1)) : New simplifier.
7561         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7562         (rdiv @0 (exps:s @1)) : New simplifier.
7563
7564 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
7565
7566         * gcc.c (driver::finalize): Only assign to extra_specs if
7567         [EXTRA_SPECS].
7568
7569 2015-08-25  Marek Polacek  <polacek@redhat.com>
7570
7571         PR middle-end/67330
7572         * varasm.c (declare_weak): Return after giving an error.
7573
7574 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
7575
7576         * gcc-main.c (main): Add params to driver ctor.
7577         * gcc.c (class env_manager): New.
7578         (env): New global.
7579         (env_manager::init): New.
7580         (env_manager::get): New.
7581         (env_manager::xput): New.
7582         (env_manager::restore): New.
7583         Poison getenv and putenv.
7584         (DEFAULT_TARGET_SYSTEM_ROOT): New.
7585         (target_system_root): Update initialization to use
7586         DEFAULT_TARGET_SYSTEM_ROOT.
7587         (struct spec_list): Add field "default_ptr".
7588         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7589         (init_spec): Likewise.
7590         (set_spec): Clear field "default_ptr".
7591         (read_specs): Free "spec" and "buffer".
7592         (xputenv): Reimplement in terms of env_manager.
7593         (process_command): Replace ::getenv calls with calls to the
7594         env_manager singleton.
7595         (process_brace_body): Free string in three places.
7596         (driver::driver): New.
7597         (driver::~driver): New.
7598         (used_arg): Convert from a function to...
7599         (class used_arg_t): ...this class, and...
7600         (used_arg): ...this new global instance.
7601         (used_arg_t::finalize): New function.
7602         (getenv_spec_function): Add "const" to local "value".  Replace
7603         ::getenv call with call to the env_manager singleton.
7604         (path_prefix_reset): New function.
7605         (driver::finalize): New function.
7606         * gcc.h (driver::driver): New.
7607         (driver::~driver): New.
7608         (driver::finalize): New.
7609
7610 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7611
7612         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7613         target doesn't have one.
7614
7615 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7616
7617         PR target/67346
7618         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7619
7620 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7621
7622         PR target/67344
7623         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7624         a define_insn, remove second alternative.
7625
7626 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
7627             Joseph Myers  <joseph@codesourcery.com>
7628
7629         * gcc.c (struct switchstr): Expand comment.
7630
7631 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7632
7633         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7634         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7635
7636 2015-08-25  Richard Biener  <rguenther@suse.de>
7637
7638         PR middle-end/67306
7639         * genmatch.c (expr::gen_transform): Verify the result of
7640         builtin_decl_implicit.
7641         (dt_simplify::gen_1): Likewise.
7642
7643 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7644
7645         * config/arm/constraints.md: Also list Cs and US ARM-specific
7646         constraints as used.
7647
7648 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7649
7650         PR target/66609
7651         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7652         UNSPEC_PCREL.
7653         (nonpic_symbol_mentioned_p): Likewise.
7654         (sh_delegitimize_address): Likewise.
7655         (sh_function_ok_for_sibcall): Take into account weak symbols.
7656         (sh_expand_sym_label2reg): New.
7657         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7658         * config/sh/sh.md (UNSPEC_PCREL): New enum.
7659         (call_pcrel): Use sh_expand_sym_label2reg.
7660         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7661         (symPCREL_label2reg) New expand.
7662
7663 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7664
7665         * graphite-poly.c: Change type of region from void* to sese.
7666         * graphite-poly.h (struct scop): Changing the type of scop::region
7667         from void* to sese. Change accessor macro accordingly.
7668         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7669
7670 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7671
7672         * graphite-scop-detection.c (stmt_simple_for_scop_p):
7673         Constrain only on INTEGER_TYPE.
7674
7675 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7676
7677         PR target/67211
7678         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7679         -mefficient-unaligned-vsx on ISA 2.7.
7680
7681         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7682         option to a masked option.
7683
7684         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7685         logic for -mefficient-unaligned-vsx so that it is set via an arch
7686         ISA option, instead of being set if -mtune=power8 is set. Move
7687         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7688         near other default option handling.
7689
7690 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7691
7692         * genflags.c (gen_macro): Delete.
7693         (gen_proto): Don't create GEN.*CALL.* macros.
7694         * gensupport.h (get_file_location): Declare.
7695         * gensupport.c (rtx_locs): New variable.
7696         (read_md_rtx): Record rtx locations.
7697         (get_file_location): New function.
7698         * target-insns.def (call, call_pop, call_value, call_value_pop)
7699         (sibcall, sibcall_value): New patterns.
7700         * gentarget-def.c (parse_argument): New function.
7701         (def_target_insn): Use it.  Handle optional operands.  Raise an
7702         error if an .md pattern has the wrong number of operands for the
7703         pattern name.  Remove the names of unused operands from the prototype.
7704         * builtins.c (expand_builtin_apply): Use targetm functions
7705         instead of HAVE_call_value and GEN_CALL_VALUE.
7706         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
7707         and sibcall_value_pop.
7708         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7709         of GEN_CALL.
7710         * config/alpha/alpha.md (untyped_call): Likewise.
7711         * config/iq2000/iq2000.md (untyped_call): Likewise.
7712         * config/m68k/m68k.md (untyped_call): Likewise.
7713         * config/mips/mips.md (untyped_call): Likewise.
7714         * config/pa/pa.md (untyped_call): Likewise.
7715         * config/rs6000/rs6000.md (untyped_call): Likewise.
7716         * config/sparc/sparc.md (untyped_call): Likewise.
7717         * config/tilegx/tilegx.md (untyped_call): Likewise.
7718         * config/tilepro/tilepro.md (untyped_call): Likewise.
7719         * config/visium/visium.md (untyped_call): Likewise.
7720         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7721         gen_call_value instead of GEN_CALL_VALUE.
7722         * config/arm/arm.md (untyped_call): Likewise.
7723         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7724         GEN_CALL.
7725
7726 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7727
7728         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7729         (have_cbranchcc4): New variable.
7730         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7731         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7732         (if_convert): Initialize have_cbranchcc4.
7733
7734 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7735
7736         * builtins.c (expand_cmpstrn): Rename to...
7737         (expand_cmpstrn_or_cmpmem): ...this.
7738         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7739         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7740         Remove mode argument.
7741         (expand_builtin): Update accordingly.
7742
7743 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7744
7745         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7746         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
7747         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7748         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7749         Add predicates for operands 0 and 3.
7750         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7751         operand.
7752         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7753         immediate_operand to nonmemory_operand.
7754
7755 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7756
7757         * df-scan.c (df_insn_info_init_fields): New function, split out
7758         from...
7759         (df_insn_create_insn_record): ...here.
7760         (df_insn_info_free_fields): New function, split out from...
7761         (df_insn_info_delete): ...here.
7762         (df_insn_rescan): Use the new functions instead of freeing and
7763         reallocating the df_insn_info.
7764
7765 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7766
7767         * doc/install.texi (Binaries): Remove links no longer valid.
7768
7769 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7770
7771         * config/nvptx/mkoffload.c (process): Replace
7772         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7773
7774 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
7775
7776         PR target/67329
7777         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7778
7779 2015-08-24  Renlin Li  <renlin.li@arm.com>
7780
7781         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7782         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7783         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7784         * config/arm/constraints.md ("j"): Add check for high code.
7785
7786 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7787
7788         PR tree-optimization/65468
7789         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7790         chunk_size is one.
7791
7792 2015-08-24  Nathan Sidwell  <nathan@acm.org>
7793
7794         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7795         change to nvptx_type_from_mode call. Use arg_promotion for both
7796         split and non-split args.
7797
7798 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7799
7800         * target-insns.def (movstr): New pattern.
7801         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7802         (expand_movstr): Use targetm rather than HAVE_movstr/
7803         CODE_FOR_movstr.
7804
7805 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7806
7807         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7808         cast syntax.
7809
7810 2015-08-24  Andrew Pinski  <apinski@cavium.com>
7811
7812         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7813         AARCH64_EXTRA_TUNING_OPTION.
7814         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7815         New enum.
7816         (aarch64_extra_tuning_flags): Base the shifted value on the index
7817         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7818         * config/aarch64/aarch64.c: Remove the last argument to
7819         AARCH64_EXTRA_TUNING_OPTION.
7820
7821 2015-08-23  Nathan Sidwell  <nathan@acm.org>
7822
7823         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7824         decls.
7825         (nvptx_declare_function_name): Insert formatting tabs for
7826         consistency.
7827
7828 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7829
7830         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7831         parm_decl, rather than generating a dummy default def in cfun.
7832         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
7833         ssa_name from cfun and child_fn do not share a stmt as def stmt.
7834         (move_stmt_op): Handle PARM_DECl.
7835         (gather_ssa_name_hash_map_from): New function.
7836         (move_sese_region_to_fn): Add default defs for function params, and add
7837         them to vars_map.  Release copied ssa names.
7838         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7839
7840 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7841
7842         * doc/sourcebuild.texi: Rename vect_no_int_max with
7843         vect_no_int_min_max.  Update description.
7844
7845 2015-08-22  Andrew Pinski  <apinski@cavium.com>
7846
7847          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7848         * config/aarch64/aarch64-protos.h
7849         (aarch64_fusion_pairs_index): New enum.
7850         (aarch64_fusion_pairs): Base the shifted value on the index instead
7851         Rewrite AARCH64_FUSE_ALL to be based on the end index.
7852         of the argument to AARCH64_FUSION_PAIR.
7853         * config/aarch64/aarch64.c: Remove the last argument to
7854         AARCH64_FUSION_PAIR.
7855
7856 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
7857
7858         * dominance.c (new_zero_array): Define.
7859         (dom_info): Redefine as class with proper encapsulation.
7860         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7861         Add new members.
7862         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
7863         allocations/deallocations.  Pass function as parameter (instead of
7864         using cfun).
7865         (dom_info::get_idom): Define accessor method.
7866         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7867         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
7868         (calculate_dominance_info): Adjust to use dom_info class.
7869         (verify_dominators): Likewise.
7870
7871 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
7872
7873         * print-rtl.c (print_rtx): Check the correct range for
7874         flag_dump_unnumbered_links to behave as documented.
7875
7876         PR rtl-optimization/67227
7877         PR rtl-optimization/64164
7878         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7879         (nonoverlapping_memrefs_p): Test offsets and sizes when given
7880         identical gimple_reg exprs.
7881
7882 2015-08-21  Nathan Sidwell  <nathan@acm.org>
7883
7884         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7885         expansion.
7886         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7887         crtl->stack_alignment_needed to determine alignment.
7888         (nvptx_get_drap_rtx): New.
7889         (TARGET_GET_DRAP_RTX): Override.
7890         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7891
7892 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7893
7894         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7895
7896 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7897
7898         * configure.ac: Remove uwin* cases.
7899         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7900         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7901         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7902         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7903         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7904         i[34567]86-*-uwin*, powerpc-*-beos*.
7905
7906 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
7907
7908         * gencodes.c (gencodes): Print the comma for the preceding
7909         enum value rather than the current one.  Use aliased enum values
7910         rather than #defines for compiled-out patterns.
7911         (main): Update accordingly.  Replace LAST_INSN_CODE with
7912         NUM_INSN_CODES.
7913         * lra.c (insn_code_data): Update accordingly.
7914         (finish_insn_code_data_once, get_static_insn_data): Likewise.
7915         * recog.h (target_recog): Likewise.
7916         (preprocess_insn_constraints): Change parameter to unsigned int.
7917         * recog.c (preprocess_insn_constraints): Likewise.
7918         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7919         * tree-vect-stmts.c (vectorizable_operation): Simplify.
7920
7921 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7922
7923         PR rtl-optimization/61657
7924         * loop-iv.c (iv_number_of_iterations): Declare up and down as
7925         unsigned.  Remove superflous uint64_t cast.
7926
7927 2014-08-21  Felix Yang  <felix.yang@huawei.com>
7928             Jiji Jiang  <jiangjiji@huawei.com>
7929
7930         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7931         argument and get builtin function code directly from CALL.
7932         (gimple_stringop_fixed_value): Modified accordingly.
7933         (gimple_stringops_transform, gimple_stringops_values_to_profile):
7934         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
7935
7936 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7937
7938         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
7939
7940 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7941
7942         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
7943         to match.pd.
7944         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
7945         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
7946         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
7947         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
7948         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
7949         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
7950         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
7951         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
7952         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
7953         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
7954
7955         * match.pd (SIN ) : New Operator.
7956         (TAN) : New Operator.
7957         (mult (SQRT@1 @0) @1) : New simplifier.
7958         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
7959         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7960         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7961         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
7962         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
7963         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
7964         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
7965         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
7966         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
7967         (rdiv @0 (POW:s @1 @2)) : New simplifier.
7968
7969 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
7970
7971         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
7972         loop if EXPR is simplified to const value.
7973
7974 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
7975
7976         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7977         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
7978
7979 2015-08-21  Richard Biener  <rguenther@suse.de>
7980
7981         PR middle-end/67285
7982         * gimple-fold.c (replace_stmt_with_simplification): Assert
7983         seq is empty when replacing a call with itself but different
7984         arguments.
7985         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
7986         a call require that it is const.
7987
7988 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7989
7990         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
7991         * builtins.c (get_object_alignment_2): Adjust.
7992         * varasm.c (align_variable): Likewise.
7993         (get_variable_align): Likewise.
7994         (build_constant_desc): Likewise.
7995         (force_const_mem): Likewise.
7996         * doc/tm.texi.in: Likewise.
7997         * doc/tm.texi: Regenerate.
7998
7999 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8000
8001         * genconfig.c (main): Always define HAVE_cc0.
8002         * recog.c (rest_of_handle_peephole2): Adjust.
8003
8004 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8005
8006         * reorg.c (relax_delay_slots): Don't use #if to check value of
8007         HAVE_cc0.
8008
8009 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8010
8011         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8012         * targhooks.c (default_have_conditional_execution): Adjust.
8013
8014 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
8015
8016         * rtl.h (rtvec_all_equal_p): Declare.
8017         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8018         * rtl.c (rtvec_all_equal_p): New function.
8019         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8020         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8021         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8022         * config/arm/arm.c (neon_vdup_constant): Likewise.
8023         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8024         * config/tilegx/constraints.md (W, Y): Likewise.
8025         * config/tilepro/constraints.md (W, Y): Likewise.
8026         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8027         (classify_immediate): Use unwrap_const_vec_duplicate.
8028         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8029         (reg_or_v2s8bit_operand): Likewise.
8030         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8031         (reg_or_v4s8bit_operand): Likewise.
8032
8033 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8034
8035         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8036         (vec_shasigma_be): New #define.
8037         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8038         (VPMSUMH): Likewise.
8039         (VPMSUMW): Likewise.
8040         (VPMSUMD): Likewise.
8041         (VPMSUM): New BU_P8V_OVERLOAD_2.
8042         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8043         entries for VEC_MADD and VEC_VPMSUM.
8044
8045 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
8046
8047         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8048         Multiply argument avr_n_flash by 64 to match unit of "KiB".
8049         (avr_pgm_check_var_decl): Same.
8050
8051 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
8052
8053         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8054         initialization of HFmode scalar type (float16_t) to...
8055         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8056         code.
8057
8058         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8059
8060         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8061         having an -mfp16-format.
8062
8063 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
8064
8065         * config/i386/predicates.md (vector_all_ones_operand): Use
8066         CONSTM1_RTX to simplify definition.
8067
8068 2015-08-20  Richard Biener  <rguenther@suse.de>
8069
8070         * toplev.c (compile_file): Remove loop calling late_global_decl
8071         on all symbols.
8072         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8073         on decls we assembled.
8074
8075 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
8076
8077         * common/config/aarch64/aarch64-common.c
8078         (AARCH64_CPU_NAME_LENGTH): Delete.
8079         (aarch64_option_extension): New.
8080         (all_extensions): Likewise.
8081         (processor_name_to_arch): Likewise.
8082         (arch_to_arch_name): Likewise.
8083         (all_cores): New.
8084         (all_architectures): Likewise.
8085         (aarch64_get_extension_string_for_isa_flags): Likewise.
8086         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8087         architecture names.
8088         * config/aarch64/aarch64-protos.h
8089         (aarch64_get_extension_string_for_isa_flags): New.
8090         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8091         (aarch64_option_print): Get the string to print from
8092         aarch64_get_extension_string_for_isa_flags.
8093         (aarch64_declare_function_name): Likewise.
8094         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8095         (MCPU_TO_MARCH_SPEC): This.
8096         (ASM_CPU_SPEC): Use it.
8097         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8098         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8099         (EXTRA_SPEC_FUNCTIONS): Use it.
8100
8101 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
8102
8103         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8104         expansion when !ISA_HAS_LWL_LWR.
8105         (mips_block_move_straight): Update the size of elements copied to
8106         account for alignment when !ISA_HAS_LWL_LWR.
8107         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8108
8109 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8110
8111         * expr.c (expand_expr_real_2): Check gimple statement during
8112         LSHIFT_EXPR expand.
8113
8114 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
8115
8116         * common.opt (fstack-protector): Initialize to -1.
8117         (fstack-protector-all): Likewise.
8118         (fstack-protector-strong): Likewise.
8119         (fstack-protector-explicit): Likewise.
8120         * configure.ac: Add --enable-default-ssp.
8121         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
8122         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8123         -1.
8124         * doc/install.texi: Document --enable-default-ssp.
8125         * config.in: Regenerated.
8126         * configure: Likewise.
8127
8128 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
8129
8130         PR rtl-optimization/64164
8131         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8132         (parm_in_stack_slot_p): ... this.  Disregard mode, what
8133         matters is whether the parm will live in a pseudo or a stack
8134         slot.
8135         (expand_one_ssa_partition): Deal with params without a default
8136         def.  Disregard mode.
8137         * cfgexpand.h: Renamed function declaration.
8138         * tree-ssa-coalesce.c: Adjust.
8139         * function.c (split_complex_args): Allocate stack slot for
8140         unassigned parms before splitting.
8141         (parm_in_unassigned_mem_p): New.  Use it instead of
8142         parm_maybe_byref_p throughout this file.
8143         (assign_parm_setup_block): Use it.  Accept pseudos in the
8144         expand-assigned rtl.
8145         (assign_parm_setup_reg): Drop BLKmode requirement.
8146         (assign_parm_setup_stack): Allocate and fill in the address of
8147         unassigned MEM parms.
8148
8149 2015-08-19  David Sherwood  <david.sherwood@arm.com>
8150
8151         * genmodes.c (emit_mode_unit_size_inline): New function.
8152         (emit_mode_unit_precision_inline): New function.
8153         (emit_insn_modes_h): Emit new #define.  Emit new functions.
8154         (emit_mode_unit_size): New function.
8155         (emit_mode_unit_precision): New function.
8156         (emit_mode_adjustments): Add mode_unit_size adjustments.
8157         (emit_insn_modes_c): Emit new arrays.
8158         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8159         use new inline methods.
8160
8161 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8162
8163         * config/aarch64/aarch64.c (bit_count): Delete prototype
8164         and definition.
8165         (aarch64_print_operand): Use popcount_hwi instead of the above.
8166
8167 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8168
8169         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8170         comment.
8171
8172 2015-08-19  Marek Polacek  <polacek@redhat.com>
8173
8174         PR middle-end/67133
8175         * gimple-ssa-isolate-paths.c
8176         (insert_trap_and_remove_trailing_statements): Rename to ...
8177         (insert_trap): ... this.  Don't remove trailing statements; split
8178         block instead.
8179         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8180
8181 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
8182
8183         PR other/67042
8184         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8185         conditionalize the whole on __GNUC__.  Add fallback code
8186         depending neither on undefined nor implementation-defined behaviour.
8187
8188 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8189
8190         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8191         whitespaces with tab.
8192
8193 2015-08-19  Florian Weimer  <fweimer@redhat.com>
8194
8195         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8196         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8197         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8198         Move Name_Ids instantiation to the Prj.Proc package, to avoid
8199         trampolines.
8200
8201 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8202
8203         * config/arm/arm.c (bounds_check): Use %wd print format
8204         for HOST_WIDE_INT arguments.
8205
8206 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
8207
8208         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8209         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8210         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8211         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8212         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8213         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8214         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8215         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8216         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8217         typedefs.
8218
8219 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
8220
8221         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8222         function.c, graphite-scop-detection.c, haifa-sched.c,
8223         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8224         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8225         varasm.c: Remove typedefs of structs.
8226
8227 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8228
8229         * config/rs6000/altivec.h (vec_adde): New define.
8230         (vec_addec): Likewise.
8231         (vec_double): Likewise.
8232         (vec_bperm): Likewise.
8233         (vec_gb): Likewise.
8234         * config/rs6000/rs6000-builtin.def (ADDE): New
8235         BU_ALTIVEC_OVERLOAD_3.
8236         (ADDEC): Likewise.
8237         (DOUBLE): New BU_VSX_OVERLOAD_1.
8238         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
8239         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
8240         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
8241         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
8242         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
8243         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
8244         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
8245         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
8246         and P8V_BUILTIN_VEC_VBPERMQ.
8247
8248 2015-08-18  Jason Merrill  <jason@redhat.com>
8249
8250         * print-tree.c (print_node): Handle TREE_BINFO.
8251
8252 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8253
8254         PR middle-end/36757
8255         * builtins.c (expand_builtin_signbit): Add asserts to make sure
8256         we can expand BUILT_IN_SIGNBIT inline.
8257         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
8258         * doc/extend.texi: Document the type-generic __builtin_signbit.
8259
8260 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
8261
8262         PR rtl-optimization/67218
8263         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8264         (simplify_unary_operation_1): Use it.
8265
8266 2015-08-18  Marek Polacek  <polacek@redhat.com>
8267
8268         PR middle-end/67222
8269         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8270         if the call isn't valid.
8271         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8272         gimple_call_builtin_p.
8273         (call_may_clobber_ref_p_1): Likewise.
8274         (stmt_kills_ref_p): Likewise.
8275
8276 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
8277
8278         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8279         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8280         (mips_hard_regno_scratch_ok): Likewise.
8281         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8282         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8283
8284 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
8285
8286         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8287         (determine_value_range): Call refine_value_range_using_guard for
8288         each loop initial condition to improve value range.
8289
8290 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
8291
8292         * config/i386/i386.c: Remove include of fibheap.h.
8293
8294 2015-08-17  Richard Biener  <rguenther@suse.de>
8295
8296         PR tree-optimization/67221
8297         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8298         (sccvn_dom_walker::before_dom_children): Mark backedges of
8299         non-executable blocks as not executable.
8300
8301 2015-08-17  David Sherwood  <david.sherwood@arm.com>
8302
8303         * config/arm/arm.c (neon_element_bits): Replace call to
8304         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8305         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8306         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8307         (neon_vdup_lane<mode>): Likewise.
8308         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8309         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8310         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8311         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8312         * config/spu/spu.c (arith_immediate_p): Likewise.
8313         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8314         * expr.c (expand_expr_real_2): Likewise.
8315         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8316         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8317         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8318         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8319         New variable.
8320         * fold-const.c (fold_binary_loc): Replace call to
8321         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8322         GET_MODE_UNIT_PRECISION (m).
8323
8324 2015-08-17  Mike Stump  <mikestump@comcast.net>
8325
8326         * config/arm/arm.c (arm_block_move_unaligned_straight):
8327         Emit normal move instead of unaligned load when source or destination
8328         are appropriately aligned.
8329
8330 2015-08-17  Richard Biener  <rguenther@suse.de>
8331             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8332
8333         PR middle-end/16107
8334         * match.pd (div (coss (op @0) : New simplifier.
8335
8336 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
8337
8338         PR rtl-optimization/64164
8339         PR bootstrap/66978
8340         PR middle-end/66983
8341         PR rtl-optimization/67000
8342         PR middle-end/67034
8343         PR middle-end/67035
8344         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8345         * tree-ssa-copyrename.c: Removed.
8346         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8347         -ftree-coalesce-vars.
8348         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8349         * common.opt (ftree-copyrename): Ignore.
8350         (ftree-coalesce-inlined-vars): Likewise.
8351         * doc/invoke.texi: Remove the ignored options above.
8352         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8353         * tree-ssa-coalesce.h: ... here.
8354         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8355         headers required by it.
8356         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8357         across variables when flag_tree_coalesce_vars.  Check register
8358         use and promoted modes to allow coalescing.  Do not coalesce
8359         maybe-byref parms with SSA_NAMEs of other variables, or
8360         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
8361         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8362         with its member functions to tree-ssa-coalesce.c.
8363         (var_map_base_init): Likewise.  Renamed to
8364         compute_samebase_partition_bases.
8365         (partition_view_normal): Drop want_bases parameter.
8366         (partition_view_bitmap): Likewise.
8367         * tree-ssa-live.h: Adjust declarations.
8368         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8369         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8370         default defs at the entry point.
8371         (dump_part_var_map): New.
8372         (compute_optimized_partition_bases): New, called by...
8373         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8374         of compute_samebase_partition_bases.  Adjust.
8375         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8376         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8377         (ssa_default_def_partition): New.
8378         (get_rtl_for_parm_ssa_default_def): New.
8379         (align_local_variable, add_stack_var): Support anonymous SSA
8380         names.
8381         (defer_stack_allocation): Likewise.  Declare earlier.
8382         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8383         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8384         Do no record deferred-allocation marker in
8385         SA.partition_to_pseudo.
8386         (expand_stack_vars): Adjust check for the marker in it.
8387         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8388         redundant MEM attr setting.
8389         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8390         from...
8391         (expand_one_stack_var): ... this.  New wrapper to check and
8392         skip already expanded SSA partitions.
8393         (record_alignment_for_reg_var): New, factored out of...
8394         (expand_one_var): ... this.
8395         (expand_one_ssa_partition): New.
8396         (adjust_one_expanded_partition_var): New.
8397         (expand_one_register_var): Check and skip already expanded SSA
8398         partitions.
8399         (expand_used_vars): Don't create DECLs for anonymous SSA
8400         names.  Expand all SSA partitions, then adjust all SSA names.
8401         (pass::execute): Replace the loops that set
8402         SA.partition_to_pseudo from partition leaders and cleared
8403         DECL_RTL for multi-location variables, and that which used to
8404         rename vars and set attrs, with one that clears DECL_RTL and
8405         checks that PARMs and RESULTs default_defs match DECL_RTL.
8406         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8407         * emit-rtl.c: Include stor-layout.h.
8408         (set_reg_attrs_for_parm): Handle NULL decl.
8409         (set_reg_attrs_for_decl_rtl): Take mode from expression if
8410         it's not a DECL.
8411         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8412         rather than its possibly-NULL DECL.
8413         * explow.c (promote_ssa_mode): New.
8414         * explow.h (promote_ssa_mode): Declare.
8415         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8416         (read_complex_part): Export.
8417         * expr.h (read_complex_part): Declare.
8418         * cfgexpand.h (parm_maybe_byref_p): Declare.
8419         * function.c: Include cfgexpand.h.
8420         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8421         (use_register_for_parm_decl): Wrapper for the above to
8422         special-case the result_ptr.
8423         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8424         (split_complex_args): Take assign_parm_data_all argument.
8425         Pass it to rtl_for_parm.  Set up rtl and context for split
8426         args.  Reset complex parm before fetching its default decl
8427         rtl.
8428         (assign_parms_unsplit_complex): Use the default-def complex
8429         parm rtl if it matches the components.
8430         (assign_parms_augmented_arg_list): Adjust.
8431         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8432         multiple locations.  Recognize split complex args.
8433         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8434         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8435         (assign_parm_setup_block): Prefer SSA-assigned location, and
8436         fill in its address if the memory location of a maybe-byref
8437         parm was not assigned by cfgexpand.
8438         (assign_parm_setup_reg): Likewise.  Adjust its mode as
8439         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
8440         sure passed_pointer parms don't need conversion.  Copy address
8441         or value as needed.
8442         (assign_parm_setup_stack): Prefer SSA-assigned location.
8443         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8444         rtl before testing for pointer bounds.  Special-case result_ptr.
8445         (expand_function_start): Maybe reset DECL_RTL of result.
8446         Prefer SSA-assigned location for result and static chain.
8447         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
8448         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
8449         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8450         anonymous SSA names.  Use promote_ssa_mode.
8451         (get_temp_reg): Likewise.
8452         (remove_ssa_form): Adjust.
8453         * stor-layout.c (layout_decl): Don't set mem attributes of
8454         non-MEMs.
8455         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8456         and get its reg_usage for reg invalidation.
8457         (compute_bb_dataflow): Pass it insn.
8458         (emit_notes_in_bb): Likewise.
8459
8460 2015-08-14  Marek Polacek  <polacek@redhat.com>
8461
8462         * tree-core.h (tree_base): Fix typo.
8463
8464 2015-08-14  Marek Polacek  <polacek@redhat.com>
8465
8466         PR middle-end/67133
8467         * gimple.c (infer_nonnull_range_by_attribute): Check that the
8468         nonnull argument position is not outside function arguments.
8469
8470 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
8471
8472         PR target/67143
8473         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8474         'lconst_atomic' with 'const_atomic'.
8475         (atomic_fetch_<optab><mode>): Likewise.
8476         (atomic_<optab>_fetch<mode>): Likewise.
8477         * config/aarch64/iterators.md (lconst-atomic): Move below
8478         'const_atomic'.
8479         (const_atomic): New.
8480
8481 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
8482             Bernd Schmidt  <bernds@codesourcery.com>
8483
8484         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8485         debug options.
8486         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8487         (DWARF2_DEBUGGING_INFO): Don't define.
8488         * debug.h (dwarf2_lineno_debug_hooks): Declare.
8489         * toplev.c (process_options): Add a case for it.
8490         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8491         (dwarf2out_init): Skip most initializations if
8492         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8493         case.
8494         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8495         DWARF2_LINENO_DEBUGGING_INFO.
8496         * opts.c (set_debug_level): Likewise.
8497
8498 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
8499
8500         * config/arm/types.md (is_neon_type): Add missing types.
8501
8502 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
8503
8504         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8505         for skylake.
8506         * config/i386/i386.c (PTA_SKYLAKE): New macros.
8507         (processor_alias_table): Add skylake description.
8508         (enum processor_model): Add skylake processor.
8509         (arch_names_table): Add skylake record.
8510         * doc/invoke.texi: Add skylake item.
8511
8512 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
8513
8514         * ira-int.h: Include recog.h.
8515         * ira-build.c: Don't include recog.h.
8516         * ira-color.c: Likewise.
8517         * ira-conflicts.c: Likewise.
8518         * ira-costs.c: Likewise.
8519         * ira-emit.c: Likewise.
8520         * ira-lives.c: Likewise.
8521         * ira.c: Likewise.
8522         * sched-deps.c: Likewise.
8523         * sel-sched.c: Likewise.
8524         * target-globals.c: Likewise.
8525
8526 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8527
8528         PR bootstrap/55035
8529         * reload1.c (elimination_costs_in_insn): Make it obvious to the
8530         compiler that the n_dups and n_operands loop bounds are invariant.
8531
8532 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8533
8534         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8535         expressions in A and B.
8536
8537 2015-08-13  Richard Biener  <rguenther@suse.de>
8538
8539         * tree.c (nonnull_arg_p): Move from ...
8540         * tree-vrp.c (nonnull_arg_p): ... here.
8541         * tree.h (nonnull_arg_p): Declare.
8542         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8543         here, register ptr != 0 for nonnull_arg_p pointer arguments.
8544         Properly initialize static chain and by-reference result pointer.
8545         (run_scc_vn): Adjust.
8546
8547 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8548
8549         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8550         TUNE_I6400.
8551
8552 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8553
8554         * config/aarch64/aarch64-protos.h
8555         (aarch64_gen_atomic_cas): Declare.
8556         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8557         Choose appropriate instruction pattern for the target.
8558         (aarch64_gen_atomic_cas): New.
8559         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8560         (atomic_compare_and_swap<mode>_1): Rename to
8561         aarch64_compare_and_swap<mode>.  Fix some indentation.
8562         (aarch64_compare_and_swap<mode>_lse): New.
8563         (aarch64_atomic_cas<mode>): New.
8564
8565 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8566
8567         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8568         (TARGET_LSE): New.
8569
8570 2015-08-13  Richard Biener  <rguenther@suse.de>
8571
8572         PR tree-optimization/67191
8573         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8574         assert we value-numbered last stmts operand because it can validly
8575         trigger for unreachable code.
8576
8577 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8578
8579         PR rtl-optimization/67103
8580         * ifcvt.c (noce_try_store_flag_constants): Move
8581         x = (-(test != 0) & (b - a)) + a transformation to...
8582         (noce_try_cmove): ... Here.  Try it if normal conditional
8583         move fails.
8584
8585 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8586
8587         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8588         pseudo-processors.
8589         * config/mips/mips.md (processor): Remove w32 and w64.
8590
8591 2015-08-13  Richard Biener  <rguenther@suse.de>
8592
8593         PR tree-optimization/66502
8594         PR tree-optimization/67167
8595         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8596         backedge arguments.
8597         (vn_phi_lookup): Adjust.
8598         (vn_phi_insert): Likewise.
8599         (visit_phi): Prefer to value-number to another PHI node
8600         over value-numbering to a PHI argument.
8601         (init_scc_vn): Mark DFS back edges.
8602
8603 2015-08-13  Richard Biener  <rguenther@suse.de>
8604
8605         * gimple.h (gcall::code_): New constant static member.
8606         (gcond::code_): Likewise.
8607         * gimple.c (gcall::code_): Define.
8608         (gcond::code_): Likewise.
8609         (is_a_helper <const gcond *>): Add.
8610         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8611         and forward to a new gcall overload with less checking and a
8612         cheaper way to access the operand.
8613         (gimple_call_lhs_ptr): Likewise.
8614         (gimple_call_set_lhs): Likewise.
8615         (gimple_call_internal_p): Likewise.
8616         (gimple_call_with_bounds_p): Likewise.
8617         (gimple_call_set_with_bounds): Likewise.
8618         (gimple_call_internal_fn): Likewise.
8619         (gimple_call_set_ctrl_altering): Likewise.
8620         (gimple_call_ctrl_altering_p): Likewise.
8621         (gimple_call_fntype): Likewise.
8622         (gimple_call_fn): Likewise.
8623         (gimple_call_fn_ptr): Likewise.
8624         (gimple_call_set_fndecl): Likewise.
8625         (gimple_call_fndecl): Likewise.
8626         (gimple_call_chain): Likewise.
8627         (gimple_call_num_args): Likewise.
8628         (gimple_call_arg): Likewise.
8629         (gimple_call_arg_ptr): Likewise.
8630         (gimple_call_set_arg): Likewise.
8631         (gimple_call_noreturn_p): Likewise.
8632         (gimple_cond_code): Likewise.
8633         (gimple_cond_lhs): Likewise.
8634         (gimple_cond_rhs): Likewise.
8635         (gimple_has_lhs): Reduce checking.
8636
8637 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8638
8639         PR middle-end/25529
8640         * match.pd (div (mult @0 @1) @1) : New simplifier.
8641
8642 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8643
8644         PR target/67071
8645         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8646         predicate to allow construction of vector constants using the
8647         VSLDOI vector shift instruction.
8648
8649         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8650         declaration.
8651
8652         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8653         the number of bytes to be shifted left and filled in with either
8654         all zero or all one bits.
8655         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8656         methods exist.
8657         (output_vec_const_move): On power8, generate XXLORC to generate
8658         a vector constant with all 1's. Do a split if we need to use a
8659         VSLDOI instruction.
8660
8661         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8662         properly test for the MSB.
8663
8664         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8665         vector constants that can be created with VSLDOI.
8666
8667 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8668
8669         revert:
8670         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8671         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8672         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8673         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8674         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8675         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8676         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8677         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8678         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8679
8680 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
8681
8682         * config/xtensa/constraints.md (define_constraint "Y"): New
8683         constraint.
8684         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8685         * config/xtensa/linux.h (ASM_SPEC): Likewise.
8686         * config/xtensa/predicates.md (move_operand): Match constants
8687         and symbols in the presence of TARGET_AUTO_LITPOOLS.
8688         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8689         immediate references to TLS data.
8690         (xtensa_emit_move_sequence): Don't force constants to memory in
8691         the presence of TARGET_AUTO_LITPOOLS.
8692         (print_operand): Add 'y' format, same as default, but capable of
8693         printing SF mode constants as well.
8694         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8695         (movsf_internal): Add movi pattern that loads literal.
8696         (movsf, movdf): Don't force constants to memory in the presence
8697         of TARGET_AUTO_LITPOOLS.
8698         (movdf_internal): Add 'Y' constraint.
8699         * config/xtensa/xtensa.opt (mauto-litpools): New option.
8700         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8701
8702 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8703
8704         * config/arm/arm-fpus.def: Replace booleans with feature flags.
8705         Update comment.
8706         * config/arm/arm.c (ARM_FPU): Update macro.
8707         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8708         (TARGET_FP16): Likewise.
8709         (TARGET_CRYPTO): Likewise.
8710         (TARGET_NEON): Likewise.
8711         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
8712         field features.
8713
8714 2015-08-12  Tom de Vries  <tom@codesourcery.com>
8715
8716         PR other/67092
8717         PR other/67098
8718         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
8719         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8720         accordingly.  Mention default for --with-stage1-ldflags.
8721
8722 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8723
8724         * config/arm/arm.h (arm_fpu_feature_set): New.
8725         (ARM_FPU_FSET_HAS): New.
8726         (FPU_FL_NONE): New.
8727         (FPU_FL_NEON): New.
8728         (FPU_FL_FP16): New.
8729         (FPU_FL_CRYPTO): New.
8730
8731 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8732
8733         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8734         after -mcmodel=large -fPIC sorry.
8735
8736 2015-08-12  Richard Biener  <rguenther@suse.de>
8737
8738         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8739         comparison operand order and commutative ternary op operand order.
8740         (sccvn_dom_walker::cond_stack): New state to track temporary
8741         expressions.
8742         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8743         no longer valid.
8744         (sccvn_dom_walker::record_cond): Add a single temporary conditional
8745         expression.
8746         (sccvn_dom_walker::record_conds): Add a temporary conditional
8747         expressions and all related expressions also true/false.
8748         (sccvn_dom_walker::before_dom_children): Record temporary
8749         expressions based on the controlling condition of a single
8750         predecessor.  When trying to simplify a conditional statement
8751         lookup expressions we might have inserted earlier.
8752
8753 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
8754
8755         PR target/67127
8756         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8757         to ARM core registers.
8758
8759 2015-08-12  Nathan Sidwell  <nathan@acm.org>
8760
8761         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8762         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8763
8764 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
8765
8766         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8767         line with comments.
8768         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8769
8770 2015-08-12  Richard Biener  <rguenther@suse.de>
8771
8772         * gimple.h (remove_pointer): New trait.
8773         (GIMPLE_CHECK2): New inline template function.
8774         (gassign::code_): New constant static member.
8775         (is_a_helper<const gassign *>): Add.
8776         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8777         and forward to a new gassign overload with less checking and a
8778         cheaper way to access the operand.
8779         (gimple_assign_lhs_ptr): Likewise.
8780         (gimple_assign_set_lhs): Likewise.
8781         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8782         Likewise.
8783         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8784         Likewise.
8785         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8786         Likewise.
8787         (gimple_assign_rhs_code): Likewise.
8788         * gimple.c (gassign::code_): Define.
8789
8790 2015-08-12  Richard Biener  <rguenther@suse.de>
8791
8792         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8793         Eliminate edges marked as not executable by SCCVN.
8794         * tree-ssa-sccvn.c: Include gimple-iterator.h.
8795         (cond_dom_walker): Rename to sccvn_dom_walker.
8796         (sccvn_dom_walker::before_dom_children): Value-number defs
8797         of all stmts.
8798         (run_scc_vn): Remove loop value-numbering all SSA names.
8799         Drop not visited SSA names to varying.
8800
8801 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8802
8803         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8804         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8805         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8806         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8807         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8808         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8809         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8810         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8811         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8812
8813 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
8814
8815         PR target/66954
8816         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8817         to enum feature_priority and feature_list.
8818         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8819         and isa_names_table.
8820
8821 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
8822
8823         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8824         vect_induction_def.
8825
8826 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8827
8828         PR c/66098
8829         PR c/66711
8830         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8831         account when deciding what was the command-line status.
8832
8833 2015-08-11  Nathan Sidwell  <nathan@acm.org>
8834
8835         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8836
8837         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8838         we're not the only contributor to target phi.
8839
8840 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
8841
8842         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8843         FIXED_REG0.
8844
8845 2015-08-11  Tom de Vries  <tom@codesourcery.com>
8846
8847         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8848
8849 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8850
8851         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8852         with CPU_SLM.
8853         * config/i386/i386.md (cpu): Remove knl.
8854
8855 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8856
8857         PR libgomp/65742
8858         PR middle-end/66332
8859         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8860         open-coded sequence.
8861         * omp-low.c (oacc_process_reduction_data): Remove handline of
8862         GOMP_DEVICE_HOST_NONSHM.
8863
8864         * lto-streamer-in.c (lto_input_mode_table): Adjust to
8865         GET_MODE_INNER changes.
8866
8867 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8868             Ilya Verbin  <ilya.verbin@intel.com>
8869
8870         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8871
8872 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8873
8874         * doc/options.texi (EnabledBy): Document that the argument must be
8875         a Common option.
8876         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8877         Not enabled by -Wall.
8878         * optc-gen.awk: Give nicer error messages. Detect if the argument
8879         of EnabledBy is not a Common option.
8880         * common.opt (Wnull-dereference): Not enabled by -Wall.
8881         * opt-functions.awk (lang_enabled_by): Nicer error messages.
8882
8883 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8884
8885         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8886         model == 0x4f as Broadwell.
8887
8888 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8889
8890         PR rtl-optimization/67028
8891         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
8892         Add test to see if a const_int fits in the new mode.
8893
8894 2015-08-07  DJ Delorie  <dj@redhat.com>
8895
8896         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8897
8898 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8899
8900         PR rtl-optimization/67029
8901         * ira-color.c: Include "recog.h" before including "ira-int.h".
8902         * target-globals.c: Likewise.
8903         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8904         adds an alternative_mask argument and use it instead of
8905         preferred_alternatives.
8906         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8907         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8908         * sched-deps.c: Include "ira-int.h" after including "ira.h".
8909         (sched_analyze_insn): Update call to
8910         ira_implicitly_set_insn_hard_regs.
8911         * sel-sched.c: Include "ira-int.h" after including "ira.h".
8912         (implicit_clobber_conflict_p): Update call to
8913         ira_implicitly_set_insn_hard_regs.
8914
8915 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8916
8917         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8918
8919 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
8920
8921         PR target/67002
8922         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8923         currently_expanding_to_rtl is set.
8924
8925 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
8926
8927         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8928         * configure: Regenerate.
8929
8930 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8931             Jiong Wang  <jiong.wang@arm.com>
8932
8933         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8934         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8935         (REG_CLASS_NAMES): Likewise.
8936         (REG_CLASS_CONTENTS): Likewise.
8937         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8938         (aarch64_register_move_cost): Likewise.
8939         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8940         possible.
8941         * config/aarch64/constraints.md (Uc0): New constraint.
8942
8943 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8944
8945         * config/aarch64/constraints.md (Usf): Add the test of
8946         aarch64_is_noplt_call_p.
8947
8948 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8949
8950         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
8951         declaration.
8952         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
8953         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
8954         (call_symbol): Likewise.
8955
8956 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8957
8958         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
8959         for vectorizing multiplication patterns.
8960         * tree-vectorizer.h: Adjust the number of patterns.
8961
8962 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8963
8964         * config/i386/sse.md (*vec_concatv2df): Declare added
8965         alternatives as sselog type.
8966
8967 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8968
8969         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
8970         all GPRs.
8971
8972 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8973
8974         * config/s390/s390.c (s390_expand_tbegin): Expand either
8975         tbegin_1_z13 or tbegin_1 depending on VX flag.
8976         * config/s390/s390.md ("tbegin_1_z13"): New expander.
8977
8978 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8979
8980         * config/s390/s390.opt: Clarify description for -mzvector
8981         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
8982         -mzvector.
8983
8984 2015-08-06  Richard Biener  <rguenther@suse.de>
8985
8986         * gimple.h (gimple_call_set_fn): Access op member directly.
8987         (gimple_call_chain_ptr): Likewise.
8988         (gimple_call_set_chain): Likewise.
8989         (gimple_cond_lhs_ptr): Likewise.
8990         (gimple_cond_set_lhs): Likewise.
8991         (gimple_cond_rhs_ptr): Likewise.
8992         (gimple_cond_set_rhs): Likewise.
8993         (gimple_cond_true_label): Likewise.
8994         (gimple_cond_set_true_label): Likewise.
8995         (gimple_cond_set_false_label): Likewise.
8996         (gimple_cond_false_label): Likewise.
8997         (gimple_label_label): Likewise.
8998         (gimple_label_set_label): Likewise.
8999         (gimple_goto_set_dest): Likewise.
9000         (gimple_asm_input_op): Likewise.
9001         (gimple_asm_input_op_ptr): Likewise.
9002         (gimple_asm_set_input_op): Likewise.
9003         (gimple_asm_output_op): Likewise.
9004         (gimple_asm_output_op_ptr): Likewise.
9005         (gimple_asm_set_output_op): Likewise.
9006         (gimple_asm_clobber_op): Likewise.
9007         (gimple_asm_set_clobber_op): Likewise.
9008         (gimple_asm_label_op): Likewise.
9009         (gimple_asm_set_label_op): Likewise.
9010         (gimple_switch_index): Likewise.
9011         (gimple_switch_index_ptr): Likewise.
9012         (gimple_return_retval_ptr): Likewise.
9013         (gimple_return_retval): Likewise.
9014         (gimple_return_set_retval): Likewise.
9015         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
9016         (gimple_switch_label): Likewise.
9017         (gimple_switch_set_label): Likewise.
9018
9019 2015-08-06  Richard Biener  <rguenther@suse.de>
9020
9021         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9022         bool comparison canonicalization and restrict to integers.
9023
9024 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
9025
9026         * coretypes.h (enum symbol_visibility): Relocate here.
9027         * flag-types.h (enum symbol_visibility): Remove.
9028         * tree-core.h (enum symbol_visibility): Remove.
9029
9030 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
9031
9032         PR target/66870
9033         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9034         for no_split_stack function attribute along with
9035         flag_split_stack.
9036         (rs6000_expand_split_stack_prologue): Likewise.
9037
9038 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9039             Jeff Law  <law@redhat.com>
9040
9041         PR c/16351
9042         * doc/invoke.texi (Wnull-dereference): New.
9043         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9044         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9045         Warn for potential NULL dereferences.
9046         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9047         * ubsan.c (instrument_nonnull_arg): Call
9048         infer_nonnull_range_by_attribute.
9049         (instrument_nonnull_return): Likewise.
9050         * common.opt (Wnull-dereference); New.
9051         * gimple.c (infer_nonnull_range): Remove bool arguments.
9052         (infer_nonnull_range_by_dereference): New.
9053         (infer_nonnull_range_by_attribute): New.
9054         * gimple.h: Update declarations.
9055
9056 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9057
9058         * gensupport.c (sequence_num): Replace with...
9059         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9060         ...these new variables.
9061         (init_rtx_reader_args_cb): Update accordingly.
9062         (get_num_code_insns): Likewise.
9063         (read_md_rtx): Rework to use a while loop and get_c_test.
9064         Use the new counters.  Remove redundant DEFINE_SUBST case.
9065         * genoutput.c (gen_split): Delete.
9066         (main): Don't call it.
9067
9068 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9069
9070         * gensupport.h (get_c_test): Declare.
9071         * gensupport.c (get_c_test): New function.
9072         * genconditions.c (main): Use it.
9073         * genrecog.c (validate_pattern): Likewise.
9074         (match_pattern_1): Likewise.  Remove c_test argument.
9075         (match_pattern): Update accordingly and remove c_test argument.
9076         (main): Update accordingly.
9077
9078 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9079
9080         * gensupport.h (get_num_insn_codes): Declare.
9081         * gensupport.c (get_num_insn_codes): New function.
9082         * genattrtab.c (optimize_attrs): Rename max_insn_code to
9083         num_insn_codes.
9084         (main): Likewise.  Use get_num_insn_codes.
9085         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9086
9087 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9088
9089         PR middle-end/66311
9090         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9091         is zero- rather than sign-extended.
9092
9093 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9094
9095         * target-insns.def (can_extend): Delete.
9096
9097 2015-08-05  Richard Biener  <rguenther@suse.de>
9098
9099         PR tree-optimization/67121
9100         * tree-if-conv.c (combine_blocks): Clear range-info produced
9101         by stmts no longer executed conditionally.
9102
9103 2015-08-05  Nick Clifton  <nickc@redhat.com>
9104
9105         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9106         to allow identical far pointers to remain.
9107
9108 2015-08-05  Richard Biener  <rguenther@suse.de>
9109
9110         PR middle-end/67120
9111         * match.pd: Compare address bases with == if they are decls
9112         or SSA names, not operand_equal_p.  Otherwise fail.
9113
9114 2015-08-05  Richard Biener  <rguenther@suse.de>
9115
9116         PR tree-optimization/67055
9117         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9118         NULL gimple_block.
9119
9120         * g++.dg/torture/pr67055.C: New testcase.
9121
9122 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
9123
9124         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9125         noavx512vl.
9126         (define_attr "enabled"): Handle avx521vl and noavx512vl.
9127         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9128         AVX-512 alternative out of SSE.
9129         (define_insn "*vec_concatv2df"): Ditto.
9130
9131 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
9132
9133         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9134         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9135         CODE_FOR_avx_ptestv4di.
9136         * config/i386/sse.md (define_mode_iterator V_AVX): New.
9137         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9138         (define_insn "avx_ptest256"): Merge this ...
9139         (define_insn "sse4_1_ptest"): And this ...
9140         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9141
9142 2015-08-05  Richard Biener  <rguenther@suse.de>
9143
9144         PR tree-optimization/67109
9145         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9146         against too big groups.  Print whether this is a load or store
9147         group.  Rename from ...
9148         (vect_analyze_group_access): ... this which is now a wrapper
9149         dissolving an invalid group.
9150         (vect_analyze_data_ref_accesses): Print whether this is a load
9151         or store group.
9152
9153 2015-08-05  Richard Biener  <rguenther@suse.de>
9154
9155         PR middle-end/67107
9156         * match.pd: Guard const_binop result checking against NULL_TREE
9157         result.
9158
9159 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
9160
9161         * cse.c (cse_insn): Restoring old behaviour for src_eqv
9162          when dest and value in the REG_EQUAL are same and dest
9163          is STRICT_LOW_PART.
9164
9165 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
9166
9167         * config/moxie/moxie.h (PRINT_OPERAND,
9168           PRINT_OPERAND_ADDRESS): Remove macros.
9169         * config/moxie/moxie-protos.h (moxie_print_operand,
9170           moxie_print_operand_address): Remove declaration.
9171         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9172           TARGET_PRINT_OPERAND_ADDRESS): Define.
9173           (moxie_print_operand, moxie_print_operand_address): Make static.
9174
9175 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9176
9177         PR target/66731
9178         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9179         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9180
9181 2015-08-04  Richard Biener  <rguenther@suse.de>
9182
9183         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9184         generated code.
9185         (dt_operand::gen_gimple_expr): Adjust.
9186
9187 2015-08-04  Richard Biener  <rguenther@suse.de>
9188
9189         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9190         bool compares on RHS.
9191         * match.pd: Add X ==/!= !X is false/true pattern.
9192
9193 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
9194
9195         * config/aarch64/aarch64.c: Change inner loop statement cost
9196         to be consistent with other targets.
9197
9198 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
9199
9200         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9201         targets.
9202
9203 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
9204
9205         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9206         (machine_function): Remove pseudos field.
9207
9208 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9209
9210         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9211         Exit early and use target_option_current_node if processing current
9212         pragma.
9213
9214 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9215
9216         * doc/extend.texi (AArch64 Function Attributes): New node.
9217         (AArch64 Pragmas): Likewise.
9218
9219 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9220
9221         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9222         Initialize simd builtins if TARGET_SIMD.
9223         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9224         Make sure that the builtins are initialized only once no matter how
9225         many times the function is called.
9226         (aarch64_init_builtins): Unconditionally initialize crc builtins.
9227         (aarch64_relayout_simd_param): New function.
9228         (aarch64_simd_expand_args): Use above during argument expansion.
9229         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9230         simd builtins if TARGET_SIMD.
9231         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9232         prototype.
9233         (aarch64_relayout_simd_types): Likewise.
9234
9235 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9236
9237         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
9238         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
9239         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
9240         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9241         static keyword.
9242         (aarch64_reset_previous_fndecl): New function.
9243         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
9244         the string.
9245         * config/aarch64/aarch64-c.c: New file.
9246         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
9247         Push and pop options at beginning and end.  Remove ifdef
9248         __ARM_FEATURE_CRC32.
9249         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
9250         Add pragma +nothing+simd and +nothing+crypto where appropriate.
9251         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
9252         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
9253         Define prototype.
9254         (aarch64_register_pragmas): Likewise.
9255         (aarch64_reset_previous_fndecl): Likewise.
9256         (aarch64_process_target_attr): Likewise.
9257         (aarch64_override_options_internal): Likewise.
9258
9259 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9260
9261         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9262         New function.
9263         (aarch64_can_inline_p): Likewise.
9264         (TARGET_CAN_INLINE_P): Define.
9265
9266 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9267
9268         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9269         Remove static.  Handle OPT_mgeneral_regs_only,
9270         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9271         OPT_momit_leaf_frame_pointer.
9272         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9273         (aarch64_attr_opt_type): New enum.
9274         (aarch64_attribute_info): New struct.
9275         (aarch64_handle_attr_arch): New function.
9276         (aarch64_handle_attr_cpu): Likewise.
9277         (aarch64_handle_attr_tune): Likewise.
9278         (aarch64_handle_attr_isa_flags): Likewise.
9279         (aarch64_attributes): New table.
9280         (aarch64_process_one_target_attr): New function.
9281         (num_occurences_in_str): Likewise.
9282         (aarch64_process_target_attr): Likewise.
9283         (aarch64_option_valid_attribute_p): Likewise.
9284         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9285         * config/aarch64/aarch64-protos.h: Include input.h
9286         (aarch64_handle_option): Declare prototype.
9287
9288 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9289
9290         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9291         * config/aarch64/aarch64.c: Include target-globals.h
9292         (aarch64_previous_fndecl): New variable.
9293         (aarch64_set_current_function): New function.
9294         (TARGET_SET_CURRENT_FUNCTION): Define.
9295
9296 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9297
9298         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9299         (explicit_arch): Likewise.
9300         (x_aarch64_isa_flags): Likewise.
9301         (mgeneral-regs-only): Mark as Save.
9302         (mfix-cortex-a53-835769): Likewise.
9303         (mcmodel=): Likewise.
9304         (mstrict-align): Likewise.
9305         (momit-leaf-frame-pointer): Likewise.
9306         (mtls-dialect): Likewise.
9307         (master=): Likewise.
9308         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9309         (aarch64_isa_flags): Remove extern declaration.
9310         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9311         to indicate success or failure.
9312         (aarch64_validate_march): Likewise.
9313         (aarch64_validate_mtune): Likewise.
9314         (aarch64_isa_flags): Delete.
9315         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9316         instead of aarch64_isa_flags.
9317         (aarch64_get_tune_cpu): New function.
9318         (aarch64_get_arch): Likewise.
9319         (aarch64_override_options): Use above and set up explicit_tune_core
9320         and explicit_arch.
9321         (aarch64_print_extension): Move earlier in file.  Add isa_flags
9322         argument and use that instead of the global aarch64_isa_flags.
9323         (aarch64_option_save): New function.
9324         (aarch64_option_restore): Likewise.
9325         (aarch64_option_print): Likewise.
9326         (aarch64_declare_function_name): Likewise.
9327         (aarch64_start_file): Delete.
9328         (TARGET_ASM_FILE_START): Do not define.
9329         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9330         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9331         Declare prototype.
9332
9333 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9334
9335         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9336         flag_omit_leaf_frame_pointer to 2.
9337
9338 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9339
9340         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9341         define to 0 or 1.
9342         (TARGET_FIX_ERR_A53_835769): New macro.
9343         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9344         handling of opts->x_aarch64_fix_a53_err835769.
9345         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9346         than aarch64_fix_a53_err835769.
9347         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9348         * config/aarch64/aarch64-linux.h: Likewise.
9349
9350 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
9351
9352         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9353         ix86_expand_int_movcc as boolean.
9354
9355 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9356
9357         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9358         (aarch64_cpu_string): Likewise.
9359         (aarch64_tune_string): Likewise.
9360         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9361         (aarch64_parse_extension): Return aarch64_parse_opt_result.
9362         Add extra argument to put result into.
9363         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
9364         (aarch64_parse_cpu): Add arguments to put results into. Return
9365         aarch64_parse_opt_result.
9366         (aarch64_parse_tune): Likewise.
9367         (aarch64_override_options_after_change_1): New function.
9368         (aarch64_override_options_internal): New function.
9369         (aarch64_validate_mcpu): Likewise.
9370         (aarch64_validate_march): Likewise.
9371         (aarch64_validate_mtune): Likewise.
9372         (aarch64_override_options): Update to reflect above changes.
9373         Move some logic into aarch64_override_options_internal.
9374         Initialize target_option_default_node and target_option_current_node.
9375         (aarch64_override_options_after_change): Move logic into
9376         aarch64_override_options_after_change_1 and call it with global_options.
9377         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9378         flag values from that.
9379
9380 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9381
9382         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9383         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9384         * config/aarch64/aarch64.c (struct processor): Add arch field.
9385         (all_architectures): Handle above, move above all_cores.
9386         (all_cores): Handle above.
9387         (aarch64_parse_arch): Handle above changes.
9388         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9389         above.  Update comments.
9390         (armv8.1-a): Likewise.
9391         * config/aarch64/aarch64-cores.def: Update according to above.
9392         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9393         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9394         aarch64_arch_driver_info.
9395
9396 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9397
9398         * config/aarch64/aarch64.c (struct processor): Add ident field.
9399         Rename core sched_core.
9400         (all_cores): Handle above changes.
9401         (all_architectures): Likewise.
9402         (aarch64_parse_arch): Likewise.
9403         (aarch64_override_options): Likewise.
9404
9405 2015-08-04  Richard Biener  <rguenther@suse.de>
9406
9407         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9408         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9409         comparisons embedded in [VEC_]COND_EXPRs.
9410
9411 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
9412
9413         * tree-if-conv.c: Fix various typos in comments.
9414         * tree-vect-stmts.c: Likewise.
9415
9416 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9417
9418         PR tree-optimization/67043
9419         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9420         preheader after hoisting invariant in it.
9421         (find_defs): Force recomputation of all luids.
9422
9423 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
9424
9425         * config/rs6000/htm.md (tabort.): Restrict the source operand to
9426         using a base register.
9427
9428 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
9429
9430         * main.c (main): Pass in NULL for toplev's external_timer.
9431         * timevar.c: Include coretypes.h.
9432         (class timer::named_items): New.
9433         (timer::named_items::named_items): New.
9434         (timer::named_items::~named_items): New.
9435         (timer::named_items::push): New.
9436         (timer::named_items::pop): New.
9437         (timer::named_items::print): New.
9438         (timer::timer): Initialize field "m_jit_client_items".
9439         (timer::~timer): New.
9440         (timer::push): Move bulk of implementation to...
9441         (timer::push_internal): ...here.  New function.
9442         (timer::pop): Move bulk of implementation to...
9443         (timer::pop_internal): ...here.  New function.
9444         (timer::push_client_item): New.
9445         (timer::pop_client_item): New.
9446         (timer::print_row): New function, taken from timer::print.
9447         (timer::print): Print "GCC items" header if we also have client
9448         items.  Move row-printing to timer::print_row.  Print any client
9449         items.
9450         (timer::get_topmost_item_name): New method.
9451         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9452         (TV_JIT_CLIENT_CODE): New.
9453         * timevar.h (timer::push_client_item): New declaration.
9454         (timer::pop_client_item): New declaration.
9455         (timer::get_topmost_item_name): New method.
9456         (timer::push_internal): New declaration.
9457         (timer::pop_internal): New declaration.
9458         (timer::print_row): New declaration.
9459         (timer::named_items): New declaration.
9460         (timer::m_jit_client_items): New field.
9461         (timer): Add friend class named_items.
9462         (auto_timevar::auto_timevar): Add timer param.
9463         (auto_timevar::~auto_timevar): Use field "m_timer".
9464         (auto_timevar::m_timer): New field.
9465         * toplev.c (initialize_rtl): Add g_timer as param when
9466         constructing auto_timevar instance.
9467         (toplev::toplev): Add "external_timer" param, and use it to
9468         initialize the "g_timer" global if non-NULL.
9469         (toplev::~toplev): If this created "g_timer", delete it.
9470         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9471         with "external_timer" timer *.
9472
9473 2015-08-03  Alexander Basov <coohpt@gmail.com>
9474
9475         PR middle-end/64744
9476         PR middle-end/48470
9477         PR middle-end/43404
9478         * cfgexpand.c (expand_one_var): Add check if stack is going to
9479         be used in naked function.
9480         * expr.c (expand_expr_addr_expr_1): Remove excess checking
9481         whether expression should not reside in MEM.
9482         * function.c (use_register_for_decl): Do not use registers for
9483         non-register things (volatile, float, BLKMode) in naked functions.
9484
9485 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
9486
9487         PR target/67060
9488         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9489         Adjust splits to match new pattern.
9490
9491 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9492
9493         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9494         (VEC_M): Likewise.
9495         (VEC_N): Likewise.
9496         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9497         point in VSX registers.
9498
9499         * config/rs6000/constraints.md (wb constraint): Document unused
9500         w<x> constraint.
9501         (we constraint): Likewise.
9502         (wo constraint): Likewise.
9503         (wp constraint): New constraint for IEEE 128-bit floating point in
9504         VSX registers.
9505         (wq constraint): Likewise.
9506
9507         * config/rs6000/predicates.md (easy_fp_constant): Add support for
9508         IEEE 128-bit floating point in VSX registers.
9509         (easy_scalar_constant): Likewise.
9510
9511         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9512         constraints (wp, wq) for IEEE 128-bit floating point in VSX
9513         registers.
9514         (rs6000_init_hard_regno_mode_ok): Likewise.
9515
9516         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9517         floating point in VSX registers.
9518         (VSX_L): Likewise.
9519         (VSX_M): Likewise.
9520         (VSX_M2): Likewise.
9521         (VSm): Likewise.
9522         (VSs): Likewise.
9523         (VSr): Likewise.
9524         (VSa): Likewise.
9525         (VSv): Likewise.
9526         (vsx_le_permute_<mode>): Add support to properly swap bytes for
9527         IEEE 128-bit floating point in VSX registers on little endian.
9528         (vsx_le_undo_permute_<mode>): Likewise.
9529         (vsx_le_perm_load_<mode>): Likewise.
9530         (vsx_le_perm_store_<mode>): Likewise.
9531         (splitters for IEEE 128-bit fp moves): Likewise.
9532
9533         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9534         wq constraints.
9535
9536         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9537         floating point in VSX registers.
9538         (VM2): Likewise.
9539
9540         * doc/md.text (Machine Constraints): Document wp and wq
9541         constraints on PowerPC.
9542
9543 2015-08-03  Jeff Law  <law@redhat.com>
9544
9545         PR middle-end/66314
9546         PR gcov-profile/66899
9547         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9548         iterate over the jump threading paths when an element in the
9549         jump threading paths array is eliminated.
9550
9551 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
9552
9553         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9554
9555 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
9556
9557         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9558         is_use_properly_guarded the variable def_preds.  Free its
9559         contents before returning.
9560         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9561         (is_use_properly_guarded): Replace local variable def_preds with
9562         a parameter.  Adjust accordingly.  Only update *def_preds if it's
9563         the empty vector.
9564
9565 2015-08-03  Richard Biener  <rguenther@suse.de>
9566
9567         * genmatch.c (simplify::for_subst_vec): New member.
9568         (binary_ok): New helper for for lowering.
9569         (lower_for): Delay substituting operators into result expressions
9570         if we can merge the results eventually again.
9571         (capture_info::walk_result): Adjust for user_id appearing as
9572         result expression operator.
9573         (expr::gen_transform): Likewise.
9574         (dt_simplify::gen_1): Likewise.
9575         (dt_simplify::gen): Pass not substituted operators to tail
9576         functions or initialize local variable with it.
9577         (decision_tree::gen): Adjust function signature.
9578         * match.pd: Fix tests against global code and add default
9579         cases to switch stmts.
9580
9581 2015-08-03  Richard Biener  <rguenther@suse.de>
9582
9583         * genmatch.c (dt_simplify::gen): Create captures array
9584         with an initializer.
9585
9586 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9587
9588         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9589         the host compiler is affected by placement new aliasing bug.
9590         * configure: Regenerate.
9591         * Makefile.in (ALIASING_FLAGS): New variable.
9592         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9593
9594 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9595
9596         PR target/66731
9597         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9598         (negmulsf3_vfp): Likewise.
9599         (muldf3negdf_vfp): Disable for -frounding-math.
9600         (mulsf3negsf_vfp): Likewise.
9601         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9602         fix MULT cost with -frounding-math.
9603
9604 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9605
9606         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9607         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9608         explicit.  Prefer to add the flag whenever possible.
9609         (noce_process_if_block): Try noce_try_store_flag_constants before
9610         noce_try_cmove.
9611
9612 2015-08-03  Richard Biener  <rguenther@suse.de>
9613
9614         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9615         New hash-map to record equivalent transforms.
9616         (dt_node::analyze): Populate the equivalent transforms hash-map.
9617         (dt_simplify::info): Add reference to hash-map entry.
9618         (dt_simplify::gen): If we have split out a function for the
9619         transform, generate a call to it.
9620         (sinfo_hashmap_traits::hash): New function.
9621         (compare_op): New helper function for ...
9622         (sinfo_hashmap_traits::equal_keys): ... this new function.
9623         (decision_tree::gen): Split out common equivalent transforms
9624         into functions.
9625
9626 2015-08-03  Richard Biener  <rguenther@suse.de>
9627
9628         * gimple-fold.c (fold_gimple_assign): Remove folding of
9629         the comparison in COND_EXPRs.
9630
9631 2015-08-03  Richard Biener  <rguenther@suse.de>
9632
9633         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9634         on the rhs of assignments first simplify the embedded
9635         GENERIC condition.
9636
9637 2015-08-03  Richard Biener  <rguenther@suse.de>
9638
9639         PR tree-optimization/66917
9640         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9641         field.
9642         (DR_VECT_AUX): New macro.
9643         (set_dr_misalignment): Adjust.
9644         (dr_misalignment): Likewise.
9645         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9646         Compute whether the base is at least element aligned.
9647         * tree-vect-stmts.c (ensure_base_align): Adjust.
9648         (vectorizable_store): If the base is not element aligned
9649         preserve alignment of the original access if misalignment is unknown.
9650         (vectorizable_load): Likewise.
9651
9652 2015-08-02  Martin Sebor  <msebor@redhat.com>
9653
9654         * c-family/c.opt (-Wframe-address): New warning option.
9655         * doc/invoke.texi (Wframe-address): Document it.
9656         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9657         Clarify possible effects of calling the functions with non-zero
9658         arguments and mention -Wframe-address.
9659         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9660
9661 2015-08-01  Michael Collison  <michael.collison@linaro.org
9662             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9663
9664         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9665         (*arm_umin_cmp): Likewise.
9666
9667 2015-08-01  Caroline Tice  <cmtice@google.com>
9668
9669         PR 66521
9670         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9671         global variables.
9672         (vtbl_find_mangled_name):  New function.
9673         (vtbl_register_mangled_name):  New function.
9674         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
9675         mangled name in mangled name vectors.
9676         (find_or_create_vtbl_map_node):  Ditto.
9677         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
9678         update recursion_depth on function entry; pass it to every recursive
9679         call; automatically exit if depth > 25 (give up looking at that point).
9680         (verify_bb_vtables):  Initialize recursion_depth and pass it to
9681         var_is_used_for_virtual_call_p.
9682         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9683         global variable decls.
9684         (vtbl_register_mangled_name): New extern function decl.
9685
9686 2015-08-01  Tom de Vries  <tom@codesourcery.com>
9687
9688         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9689         function.
9690         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9691         Declare.
9692         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9693         operation_no_trapping_overflow.  Allow non-overflow operations.
9694         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9695         operations.
9696
9697 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9698
9699         PR target/67049
9700         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9701
9702 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9703
9704         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9705         Enable for TARGET_32BIT.
9706         (*if_move_neg): Likewise.
9707
9708 2015-07-31  Nick Clifton  <nickc@redhat.com>
9709
9710         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9711         Returns true for __model__.
9712         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9713
9714 2015-07-31  Alan Modra  <amodra@gmail.com>
9715
9716         PR target/66870
9717         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9718         (rs6000_emit_prologue): Set it.
9719         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9720
9721 2015-07-31  Richard Biener  <rguenther@suse.de>
9722
9723         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9724         -> X == (C1 ^ C2) which is already implemented in match.pd.
9725         Remove redundant dispatching to fold_relational_const.
9726         Move unordered self and NaN compares ...
9727         * match.pd: ... as patterns here.  Remove some stray captures
9728         and add a comment.
9729
9730 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
9731
9732         * config/i386/i386.c
9733         (bdesc_special_args): Convert mask type from signed to unsigned for
9734         masked builtins.
9735         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9736         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9737         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9738         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9739         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9740         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9741         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9742         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9743         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9744         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9745         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9746         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9747         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9748         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9749         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9750         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9751         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9752         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9753         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9754         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9755         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9756         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9757         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9758         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9759         * config/i386/i386-builtin-types.def
9760         (V16QI_FTYPE_V16SI): Remove.
9761         (V8DF_FTYPE_V8SI): Ditto.
9762         (V8HI_FTYPE_V8DI): Ditto.
9763         (V8SI_FTYPE_V8DI): Ditto.
9764         (V8SF_FTYPE_V8DF): Ditto.
9765         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9766         (V16HI_FTYPE_V16SI): Ditto.
9767         (V16SF_FTYPE_V16HI): Ditto.
9768         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9769         (V16SF_FTYPE_V16SI): Ditto.
9770         (V4DI_FTYPE_V4DI): Ditto.
9771         (V16SI_FTYPE_V16SF): Ditto.
9772         (V16SF_FTYPE_FLOAT): Ditto.
9773         (V8DF_FTYPE_DOUBLE): Ditto.
9774         (V8DI_FTYPE_INT64): Ditto.
9775         (V8DI_FTYPE_V4DI): Ditto.
9776         (V16QI_FTYPE_V8DI): Ditto.
9777         (UINT_FTYPE_V4SF): Ditto.
9778         (UINT64_FTYPE_V4SF): Ditto.
9779         (UINT_FTYPE_V2DF): Ditto.
9780         (UINT64_FTYPE_V2DF): Ditto.
9781         (V16SI_FTYPE_V16SI): Ditto.
9782         (V8DI_FTYPE_V8DI): Ditto.
9783         (V16SI_FTYPE_PV4SI): Ditto.
9784         (V16SF_FTYPE_PV4SF): Ditto.
9785         (V8DI_FTYPE_PV2DI): Ditto.
9786         (V8DF_FTYPE_PV2DF): Ditto.
9787         (V4DI_FTYPE_PV2DI): Ditto.
9788         (V4DF_FTYPE_PV2DF): Ditto.
9789         (V16SI_FTYPE_PV2SI): Ditto.
9790         (V16SF_FTYPE_PV2SF): Ditto.
9791         (V8DI_FTYPE_PV4DI): Ditto.
9792         (V8DF_FTYPE_PV4DF): Ditto.
9793         (V8SF_FTYPE_FLOAT): Ditto.
9794         (V4SF_FTYPE_FLOAT): Ditto.
9795         (V4DF_FTYPE_DOUBLE): Ditto.
9796         (V8SF_FTYPE_PV4SF): Ditto.
9797         (V8SI_FTYPE_PV4SI): Ditto.
9798         (V4SI_FTYPE_PV2SI): Ditto.
9799         (V8SF_FTYPE_PV2SF): Ditto.
9800         (V8SI_FTYPE_PV2SI): Ditto.
9801         (V16SF_FTYPE_PV8SF): Ditto.
9802         (V16SI_FTYPE_PV8SI): Ditto.
9803         (V8DI_FTYPE_V8SF): Ditto.
9804         (V4DI_FTYPE_V4SF): Ditto.
9805         (V2DI_FTYPE_V4SF): Ditto.
9806         (V64QI_FTYPE_QI): Ditto.
9807         (V32HI_FTYPE_HI): Ditto.
9808         (V8UHI_FTYPE_V8UHI): Ditto.
9809         (V16UHI_FTYPE_V16UHI): Ditto.
9810         (V32UHI_FTYPE_V32UHI): Ditto.
9811         (V2UDI_FTYPE_V2UDI): Ditto.
9812         (V4UDI_FTYPE_V4UDI): Ditto.
9813         (V8UDI_FTYPE_V8UDI): Ditto.
9814         (V4USI_FTYPE_V4USI): Ditto.
9815         (V8USI_FTYPE_V8USI): Ditto.
9816         (V16USI_FTYPE_V16USI): Ditto.
9817         (V2DF_FTYPE_V2DF_UINT64): Ditto.
9818         (V2DI_FTYPE_V2DF_V2DF): Ditto.
9819         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9820         (V8DF_FTYPE_V8DF_V8DI): Ditto.
9821         (V4SF_FTYPE_V4SF_UINT64): Ditto.
9822         (V4SI_FTYPE_V4SF_V4SF): Ditto.
9823         (V16SF_FTYPE_V16SF_V16SI): Ditto.
9824         (V64QI_FTYPE_V32HI_V32HI): Ditto.
9825         (V32HI_FTYPE_V16SI_V16SI): Ditto.
9826         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9827         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9828         (V32HI_FTYPE_V64QI_V64QI): Ditto.
9829         (V32HI_FTYPE_V32HI_V32HI): Ditto.
9830         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9831         (V16SI_FTYPE_V16SI_V4SI): Ditto.
9832         (V16SI_FTYPE_V16SI_V16SI): Ditto.
9833         (V16SI_FTYPE_V32HI_V32HI): Ditto.
9834         (V16SI_FTYPE_V16SI_SI): Ditto.
9835         (V8DI_FTYPE_V8DI_V8DI): Ditto.
9836         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9837         (V8DI_FTYPE_V16SI_V16SI): Ditto.
9838         (V8DI_FTYPE_V8DI_V2DI): Ditto.
9839         (QI_FTYPE_QI): Ditto.
9840         (SI_FTYPE_SI): Ditto.
9841         (DI_FTYPE_DI): Ditto.
9842         (QI_FTYPE_QI_QI): Ditto.
9843         (QI_FTYPE_QI_INT): Ditto.
9844         (HI_FTYPE_HI_INT): Ditto.
9845         (SI_FTYPE_SI_INT): Ditto.
9846         (DI_FTYPE_DI_INT): Ditto.
9847         (HI_FTYPE_V16QI_V16QI): Ditto.
9848         (SI_FTYPE_V32QI_V32QI): Ditto.
9849         (DI_FTYPE_V64QI_V64QI): Ditto.
9850         (QI_FTYPE_V8HI_V8HI): Ditto.
9851         (HI_FTYPE_V16HI_V16HI): Ditto.
9852         (SI_FTYPE_V32HI_V32HI): Ditto.
9853         (QI_FTYPE_V4SI_V4SI): Ditto.
9854         (QI_FTYPE_V8SI_V8SI): Ditto.
9855         (QI_FTYPE_V2DI_V2DI): Ditto.
9856         (QI_FTYPE_V4DI_V4DI): Ditto.
9857         (QI_FTYPE_V8DI_V8DI): Ditto.
9858         (HI_FTYPE_V16SI_V16SI): Ditto.
9859         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9860         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9861         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9862         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9863         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9864         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9865         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9866         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9867         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9868         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9869         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9870         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9871         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9872         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9873         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9874         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9875         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9876         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9877         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9878         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9879         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9880         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9881         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9882         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9883         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9884         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9885         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9886         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9887         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9888         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9889         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9890         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9891         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9892         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9893         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9894         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9895         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9896         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9897         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9898         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9899         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9900         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9901         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9902         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9903         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9904         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9905         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9906         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9907         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9908         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9909         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9910         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9911         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9912         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9913         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9914         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9915         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9916         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9917         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9918         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9919         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9920         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9921         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9922         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9923         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9924         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9925         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9926         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9927         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9928         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9929         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9930         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9931         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9932         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9933         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9934         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9935         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
9936         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
9937         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
9938         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9939         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9940         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
9941         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
9942         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
9943         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9944         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
9945         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
9946         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9947         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9948         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9949         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
9950         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9951         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
9952         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
9953         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9954         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9955         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9956         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9957         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
9958         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
9959         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
9960         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9961         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9962         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9963         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9964         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
9965         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
9966         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
9967         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
9968         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9969         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9970         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9971         (HI_FTYPE_HI): Ditto.
9972         (HI_FTYPE_V16QI): Ditto.
9973         (SI_FTYPE_V32QI): Ditto.
9974         (DI_FTYPE_V64QI): Ditto.
9975         (QI_FTYPE_V8HI): Ditto.
9976         (HI_FTYPE_V16HI): Ditto.
9977         (SI_FTYPE_V32HI): Ditto.
9978         (QI_FTYPE_V4SI): Ditto.
9979         (QI_FTYPE_V8SI): Ditto.
9980         (HI_FTYPE_V16SI): Ditto.
9981         (QI_FTYPE_V2DI): Ditto.
9982         (QI_FTYPE_V4DI): Ditto.
9983         (QI_FTYPE_V8DI): Ditto.
9984         (V16QI_FTYPE_HI): Ditto.
9985         (V32QI_FTYPE_SI): Ditto.
9986         (V64QI_FTYPE_DI): Ditto.
9987         (V8HI_FTYPE_QI): Ditto.
9988         (V16HI_FTYPE_HI): Ditto.
9989         (V32HI_FTYPE_SI): Ditto.
9990         (V4SI_FTYPE_QI): Ditto.
9991         (V4SI_FTYPE_HI): Ditto.
9992         (V8SI_FTYPE_QI): Ditto.
9993         (V8SI_FTYPE_HI): Ditto.
9994         (V2DI_FTYPE_QI): Ditto.
9995         (V4DI_FTYPE_QI): Ditto.
9996         (HI_FTYPE_HI_HI): Ditto.
9997         (SI_FTYPE_SI_SI): Ditto.
9998         (DI_FTYPE_DI_DI): Ditto.
9999         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10000         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10001         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10002         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10003         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10004         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10005         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10006         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10007         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10008         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10009         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10010         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10011         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10012         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10013         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10014         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10015         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10016         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10017         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10018         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10019         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10020         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10021         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10022         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10023         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10024         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10025         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10026         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10027         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10028         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10029         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10030         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10031         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10032         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10033         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10034         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10035         (V16SI_FTYPE_HI): Ditto.
10036         (V8DI_FTYPE_QI): Ditto.
10037         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10038         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10039         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10040         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10041         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10042         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10043         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10044         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10045         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10046         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10047         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10048         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10049         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10050         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10051         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10052         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10053         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10054         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10055         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10056         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10057         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10058         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10059         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10060         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10061         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10062         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10063         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10064         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10065         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10066         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10067         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10068         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10069         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10070         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10071         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10072         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10073         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10074         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10075         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10076         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10077         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10078         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10079         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10080         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10081         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10082         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10083         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10084         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10085         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10086         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10087         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10088         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10089         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10090         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10091         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10092         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10093         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10094         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10095         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10096         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10097         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10098         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10099         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10100         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10101         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10102         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10103         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10104         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10105         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10106         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10107         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10108         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10109         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10110         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10111         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10112         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10113         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10114         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10115         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10116         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10117         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10118         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10119         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10120         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10121         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10122         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10123         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10124         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10125         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10126         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10127         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10128         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10129         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10130         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10131         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10132         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10133         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10134         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10135         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10136         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10137         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10138         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10139         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10140         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10141         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10142         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10143         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10144         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10145         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10146         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10147         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10148         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10149         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10150         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10151         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10152         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10153         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10154         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10155         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10156         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10157         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10158         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10159         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10160         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10161         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10162         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10163         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10164         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10165         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10166         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10167         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10168         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10169         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10170         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10171         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10172         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10173         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10174         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10175         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10176         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10177         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10178         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10179         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10180         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10181         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10182         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10183         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10184         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10185         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10186         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10187         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10188         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10189         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10190         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10191         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10192         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10193         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10194         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10195         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10196         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10197         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10198         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10199         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10200         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10201         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10202         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10203         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10204         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10205         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10206         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10207         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10208         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10209         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10210         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10211         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10212         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10213         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10214         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10215         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10216         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10217         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10218         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10219         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10220         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10221         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10222         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10223         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10224         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10225         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10226         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10227         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10228         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10229         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10230         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10231         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10232         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10233         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10234         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10235         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10236         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10237         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10238         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10239         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10240         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10241         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10242         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10243         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10244         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10245         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10246         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10247         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10248         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10249         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10250         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
10251         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10252         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10253         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10254         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10255         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10256         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10257         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10258         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10259         (QI_FTYPE_V8DF_INT_QI): Ditto.
10260         (QI_FTYPE_V4DF_INT_QI): Ditto.
10261         (QI_FTYPE_V2DF_INT_QI): Ditto.
10262         (HI_FTYPE_V16SF_INT_HI): Ditto.
10263         (QI_FTYPE_V8SF_INT_QI): Ditto.
10264         (QI_FTYPE_V4SF_INT_QI): Ditto.
10265         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10266
10267 2015-07-31  Richard Biener  <rguenther@suse.de>
10268
10269         * gimple-fold.c (fold_gimple_assign): Remove folding of
10270         GIMPLE_BINARY_RHS.
10271
10272 2015-07-31  Tom de Vries  <tom@codesourcery.com>
10273
10274         PR tree-optimization/66846
10275         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10276         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10277         (expand_omp_target) [ENABLE_CHECKING]: Same.
10278         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10279         cfun if !LOOPS_NEED_FIXUP.
10280         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
10281         that omp_for already has its own loop struct.
10282         * tree-parloops.c (create_phi_for_local_result)
10283         (create_call_for_reduction): Handle simple latch bb.
10284         (create_parallel_loop): Add simple latch bb to preserve
10285         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
10286         (gen_parallel_loop): Remove call to cancel_loop_tree.
10287         (parallelize_loops): Skip loops that are inner loops of parallelized
10288         loops.
10289         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10290         verify_loop_structure.
10291
10292 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10293
10294         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10295         * config/v850/v850.md (RV_REGNUM): New constants.
10296         * config/v850/v850.c (v850_libcall_value): New functions.
10297         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10298         (TARGET_LIBCALL_VALUE): Define.
10299
10300 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10301
10302         * rtl.h (lowpart_subreg): Move in file.
10303         * loop-iv.c (lowpart_subreg): Move to...
10304         * simplify-rtx.c (lowpart_subreg): ...here.
10305           (simplify_binary_operation_1): Use lowpart_subreg instead of
10306           simplify_gen_subreg.
10307         * expr.c (expand_expr_real_2): Ditto.
10308         * emit-rtl.c (gen_lowpart_common): Ditto.
10309         * combine.c (gen_lowpart_for_combine): Ditto.
10310         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10311           expand_debug_source_expr): Ditto.
10312
10313 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
10314
10315         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10316         (expand_builtin_atomic_clear): Remove support for atomic_clear
10317         pattern.
10318
10319 2015-07-30  Richard Biener  <rguenther@suse.de>
10320
10321         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10322         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10323         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
10324         redundant operand canonicalization.
10325
10326 2015-07-30  David Sherwood  <david.sherwood@arm.com>
10327
10328         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10329         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10330         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10331         * config/arm/arm.c (neon_valid_immediate): Likewise.
10332         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10333         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10334         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10335         (expand_vec_perm_vpshufb2_vpermq): Likewise.
10336         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10337         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10338         * config/i386/sse.md
10339         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10340         (*ssse3_palignr<mode>_perm): Likewise.
10341         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10342         * config/spu/spu.c (arith_immediate_p): Likewise.
10343         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10344         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10345
10346 2015-07-30  Richard Biener  <rguenther@suse.de>
10347
10348         * genmatch.c (decision_tree::gen_gimple): Merge with ...
10349         (decision_tree::gen_generic): ... this into ...
10350         (decision_tree::gen): ... this.
10351         (main): Adjust callers.
10352
10353 2015-07-30  Richard Biener  <rguenther@suse.de>
10354
10355         * genmatch.c (verbose): New global.
10356         (warning_at): Add overload with source_location.
10357         (capture_info::capture_info): Add bool whether generating gimple
10358         or generic.  Add gimple member.
10359         (capture_info::cinfo): Add capture member.
10360         (capture_info::walk_match): Record capture.  Warn on
10361         non-captured leafs.
10362         (capture_info::walk_c_expr): Add more fragments captures cannot
10363         escape through.  Warn on escaped captures.
10364         (dt_simplify::gen_1): Warn on operands we force to have no
10365         side-effects.
10366         (main): Initialize verbose.
10367         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10368
10369 2015-07-30  Richard Biener  <rguenther@suse.de>
10370
10371         PR middle-end/67053
10372         * match.pd: Allow both operands to independently have conversion
10373         when simplifying compares of addresses.
10374
10375 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
10376
10377         PR target/66217
10378         PR target/67045
10379         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10380         around those cases that need one.
10381
10382 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
10383
10384         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10385
10386 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10387
10388         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10389         New.  Copied from config/i386/gnu-user.h.
10390         (ASM_COMMENT_START): Likewise.
10391         (DBX_REGISTER_NUMBER): Likewise.
10392
10393 2015-07-29  Richard Biener  <rguenther@suse.de>
10394
10395         * gimple-fold.c (fold_gimple_cond): Remove.
10396         (fold_stmt_1): Do not call it.
10397
10398 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
10399
10400         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10401         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10402
10403         * config/aarch64/aarch64-modes.def: Add HFmode.
10404
10405         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10406         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10407
10408         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10409         aarch64_promoted_type): New.
10410
10411         (aarch64_float_const_representable_p): Disable HFmode.
10412         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10413         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10414         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10415
10416         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10417         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10418
10419         * config/aarch64/iterators.md (GPF_F16): New.
10420
10421 2015-07-29  Richard Biener  <rguenther@suse.de>
10422
10423         * match.pd: Merge address comparison patterns and make them
10424         handle some more cases.
10425
10426 2015-07-29  Richard Biener  <rguenther@suse.de>
10427
10428         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10429         (parser::parse_capture): Add bool argument on whether to reject
10430         unknown captures.
10431         (parser::parse_expr): Adjust.
10432         (parser::parse_op): Likewise.
10433         (parser::parse_pattern): Likewise.
10434
10435 2015-07-29  Richard Biener  <rguenther@suse.de>
10436
10437         * gimple-fold.c (has_use_on_stmt): New function.
10438         (replace_stmt_with_simplification): Use it to allow
10439         abnormals originally referenced in the stmt.
10440         (fold_stmt_1): Canonicalize operand order.
10441
10442 2015-07-28  David Sherwood  <david.sherwood@arm.com>
10443
10444         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10445         GET_MODE_INNER unconditionally.
10446         * config/spu/spu.c (arith_immediate_p): Likewise.
10447         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10448         * expmed.c (synth_mult): Remove check for VOIDmode result from
10449         GET_MODE_INNER.
10450         (expand_mult_const): Likewise.
10451         * fold-const.c (fold_binary_loc): Replace call to element_precision
10452         with call to GET_MODE_PRECISION.
10453         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10454         m->name.
10455         (emit_mode_inner): Likewise.
10456         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10457         result check.
10458         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10459         (GET_MODE_UNIT_PRECISION): Likewise.
10460         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10461         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10462         * stor-layout.c (bitwise_type_for_mode): Update assert.
10463         (element_precision): Remove.
10464
10465 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10466
10467         * target-insns.def (reload_load_address): New targetm instruction
10468         pattern.
10469         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10470
10471 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10472
10473         * target-insns.def (atomic_test_and_set): New targetm instruction
10474         pattern.
10475         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10476         HAVE_*/gen_* interface.
10477
10478 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10479
10480         * target-insns.def (can_extend, ptr_extend): New targetm instruction
10481         patterns.
10482         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10483         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10484         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10485         * rtlanal.c (nonzero_bits1): Likewise.
10486         (num_sign_bit_copies1): Likewise.
10487
10488 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10489
10490         * target-insns.def (eh_return): New targetm instruction pattern.
10491         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10492         interface.
10493         * function.c (thread_prologue_and_epilogue_insns): Remove
10494         preprocessor condition.
10495
10496 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10497
10498         * target-insns.def (indirect_jump): New targetm instruction pattern.
10499         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10500         interface.
10501
10502 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10503
10504         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10505         instead of nonimmediate_operand.  Remove C condiition.
10506
10507 2015-07-28  Richard Biener  <rguenther@suse.de>
10508
10509         * match.pd: Add more simplification of address comparisons.
10510
10511 2015-07-28  Richard Biener  <rguenther@suse.de>
10512
10513         * match.pd: Re-order two cases in comparison with max/min
10514         value simplification to make it apply for bools.
10515
10516 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10517
10518         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10519         Handle simple SIGN_EXTEND or ZERO_EXTEND.
10520         (aarch64_rtx_costs): Properly strip extend or extract before
10521         passing down to rtx costs again.
10522
10523 2015-07-28  Nick Clifton  <nickc@redhat.com>
10524
10525         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10526         Optimizes the case where -mes0 is active and a constant symbolic
10527         address is used.
10528         * config/rl78/rl78-protos.h: Prototype the new function.
10529         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10530
10531 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10532
10533         * tree-parloops.c (reduc_stmt_res): New function.
10534         (initialize_reductions, add_field_for_reduction)
10535         (create_phi_for_local_result, create_loads_for_reductions)
10536         (create_stores_for_reduction, build_new_reduction): Handle case that
10537         reduc_stmt is a phi.
10538         (gather_scalar_reductions): Allow double_reduc reductions.
10539
10540 2015-07-28  Richard Biener  <rguenther@suse.de>
10541
10542         * fold-const.c (fold_comparison): Remove equality folding
10543         of decl addresses ...
10544         * match.pd: ... here and merge with existing pattern.
10545
10546 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10547
10548         PR tree-optimization/66828
10549         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10550         from int64_t to uint64_t.
10551
10552 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10553
10554         * opts-common.c (read_cmdline_option): List DriverOnly enum values
10555         as valid only in the error message of the driver, not in the
10556         messages of the language compilers.
10557
10558 2015-07-27  Tom de Vries  <tom@codesourcery.com>
10559
10560         * tree-parloops.c (gather_scalar_reductions): Simplify function
10561         structure.
10562
10563 2015-07-27  Marek Polacek  <polacek@redhat.com>
10564
10565         * ipa-devirt.c (types_same_for_odr): Fix typo.
10566
10567 2015-07-27  Jason Merrill  <jason@redhat.com>
10568
10569         PR debug/66468
10570         * dwarf2out.c (gen_inlined_subroutine_die): Check
10571         cgraph_function_possibly_inlined_p.
10572
10573 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10574
10575         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10576         Place integer variant first.
10577         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10578
10579 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10580
10581         PR/63870
10582         * config/arm/arm-builtins.c (enum arm_builtins):
10583         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10584         (ARM_BUILTIN_NEON_BASE): Rename macro to....
10585         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10586         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10587         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10588
10589 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10590
10591         PR/63870
10592         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10593         Add qualifier_lane_index.
10594         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10595         (arm_getlane_qualifiers): Use qualifier_lane_index.
10596         (arm_lanemac_qualifiers): Rename to...
10597         (arm_mac_n_qualifiers): ...this.
10598         (LANEMAC_QUALIFIERS): Rename to...
10599         (MAC_N_QUALIFIERS): ...this.
10600         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10601         (arm_setlane_qualifiers): Use qualifier_lane_index.
10602         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10603         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10604         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10605         (arm_expand_neon_builtin): Handle qualifier_lane_index.
10606
10607         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10608         * config/arm/arm.c (bounds_check): Likewise, improve error message.
10609         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10610         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10611         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10612         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10613         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10614         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10615         qualifiers to TERNOP_IMM.
10616         (vdup_lane): Change qualifiers to GETLANE.
10617         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10618         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10619         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10620         vqdmlsl_n): Change qualifiers to MAC_N.
10621
10622         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10623         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10624         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10625         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10626         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10627         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10628         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10629         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10630         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10631         Remove call to neon_lane_bounds.
10632
10633 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10634
10635         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10636         Place integer variant first.
10637
10638 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
10639
10640         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10641         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10642         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10643         for armv6kz targets.
10644         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10645         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10646         (FL_FOR_ARCH6ZK): Remove.
10647         (FL_FOR_ARCH6KZ): New.
10648         (arm_arch6zk): New declaration.
10649         * config/arm/arm-tables.opt: Regenerate.
10650         * config/arm/arm.c (arm_arch6kz): New.
10651         (arm_option_override): Set arm_arch6kz.
10652         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10653         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10654         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10655
10656 2015-07-27  Marek Polacek  <polacek@redhat.com>
10657
10658         PR c++/66555
10659         PR c/54979
10660         * doc/invoke.texi: Document -Wtautological-compare.
10661
10662 2015-07-27  Richard Biener  <rguenther@suse.de>
10663
10664         * genmatch.c (decision_tree::gen_gimple): Split out large
10665         subtrees into separate functions.
10666         (decision_tree::gen_generic): Likewise.
10667
10668 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
10669
10670         * config/alpha/alpha.c: Use SUBREG_P predicate.
10671         * config/alpha/predicates.md: Ditto.
10672
10673 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10674
10675         * config.host (s390*-*-*): Include driver-native.c only when
10676         building with s390* as host *and* target.
10677
10678 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
10679
10680         PR target/66930
10681         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10682         T bit register modified_between_p check.
10683
10684 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10685
10686         * config/i386/i386.c: Use SUBREG_P predicate.
10687         * config/i386/i386.md: Ditto.
10688         * config/i386/sse.md: Ditto.
10689         * config/i386/predicates.md: Ditto.
10690
10691 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10692
10693         PR target/67004
10694         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10695         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10696
10697 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10698
10699         * Makefile.in: Remove use of TREEBROWSER.
10700         * config.in: Regenerated.
10701         * configure: Regenerated.
10702         * configure.ac: Remove definition of TREEBROWSER.
10703         * tree-browser.c: Removed.
10704         * tree-browser.def: Removed.
10705
10706 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10707
10708         * graphite-scop-detection.c: Include gimple-pretty-print.h.
10709         (stmt_simple_for_scop_p): Print when a stmt is not handled in
10710         Graphite.
10711         (scopdet_basic_block_info): Print when a loop or bb cannot be
10712         represented in Graphite.
10713
10714 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10715
10716         PR target/66648
10717         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10718         execution guard when min_size is less than size_needed.
10719
10720 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10721
10722         * doc/install.texi: Document supported versions of ISL.
10723
10724 2015-07-25  Jeff Law  <law@redhat.com>
10725
10726         Revert:
10727         PR lto/66752
10728         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10729         unable to find X NE 0 in the tables, return X as the simplified
10730         condition.
10731         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10732         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10733         to VISISTED_BBS.  */
10734         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10735         after removing the control flow statement and unnecessary edges.
10736
10737 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
10738
10739         Revert:
10740         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10741
10742         PR rtl-optimization/64164
10743         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10744         * tree-ssa-copyrename.c: Removed.
10745         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10746         -ftree-coalesce-vars.
10747         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10748         * common.opt (ftree-copyrename): Ignore.
10749         (ftree-coalesce-inlined-vars): Likewise.
10750         * doc/invoke.texi: Remove the ignored options above.
10751         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10752         * tree-ssa-coalesce.h: ... here.
10753         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10754         headers required by it.
10755         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10756         across variables when flag_tree_coalesce_vars.  Check register
10757         use and promoted modes to allow coalescing.  Moved to
10758         tree-ssa-coalesce.c.
10759         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10760         with its member functions to tree-ssa-coalesce.c.
10761         (var_map_base_init): Likewise.  Renamed to
10762         compute_samebase_partition_bases.
10763         (partition_view_normal): Drop want_bases parameter.
10764         (partition_view_bitmap): Likewise.
10765         * tree-ssa-live.h: Adjust declarations.
10766         * tree-ssa-coalesce.c: Include explow.h.
10767         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10768         default defs at the entry point.
10769         (dump_part_var_map): New.
10770         (compute_optimized_partition_bases): New, called by...
10771         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10772         of compute_samebase_partition_bases.  Adjust.
10773         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10774         * cfgexpand.c (leader_merge): New.
10775         (get_rtl_for_parm_ssa_default_def): New.
10776         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10777         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10778         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10779         redundant MEM attr setting.
10780         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10781         from...
10782         (expand_one_stack_var): ... this.  New wrapper to check and
10783         skip already expanded SSA partitions.
10784         (record_alignment_for_reg_var): New, factored out of...
10785         (expand_one_var): ... this.
10786         (expand_one_ssa_partition): New.
10787         (adjust_one_expanded_partition_var): New.
10788         (expand_one_register_var): Check and skip already expanded SSA
10789         partitions.
10790         (expand_used_vars): Don't create DECLs for anonymous SSA
10791         names.  Expand all SSA partitions, then adjust all SSA names.
10792         (pass::execute): Replace the loops that set
10793         SA.partition_to_pseudo from partition leaders and cleared
10794         DECL_RTL for multi-location variables, and that which used to
10795         rename vars and set attrs, with one that clears DECL_RTL and
10796         checks that PARMs and RESULTs default_defs match DECL_RTL.
10797         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10798         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10799         * explow.c (promote_ssa_mode): New.
10800         * explow.h (promote_ssa_mode): Declare.
10801         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10802         * function.c: Include cfgexpand.h.
10803         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10804         (use_register_for_parm_decl): Wrapper for the above to
10805         special-case the result_ptr.
10806         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10807         (split_complex_args): Take assign_parm_data_all argument.
10808         Pass it to rtl_for_parm.  Set up rtl and context for split
10809         args.
10810         (assign_parms_augmented_arg_list): Adjust.
10811         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10812         multiple locations.  Recognize split complex args.
10813         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10814         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10815         (assign_parm_setup_block): Prefer SSA-assigned location.
10816         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10817         if stack_parm is NULL.
10818         (assign_parm_setup_stack): Prefer SSA-assigned location.
10819         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10820         rtl before testing for pointer bounds.  Special-case result_ptr.
10821         (expand_function_start): Maybe reset DECL_RTL of result.
10822         Prefer SSA-assigned location for result and static chain.
10823         Factor out DECL_RESULT and SET_DECL_RTL.
10824         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10825         anonymous SSA names.  Use promote_ssa_mode.
10826         (get_temp_reg): Likewise.
10827         (remove_ssa_form): Adjust.
10828         * stor-layout.c (layout_decl): Don't set mem attributes of
10829         non-MEMs.
10830         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10831         and get its reg_usage for reg invalidation.
10832         (compute_bb_dataflow): Pass it insn.
10833         (emit_notes_in_bb): Likewise.
10834
10835 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10836
10837         * config/i386/i386.c (ix86_va_start): Remove
10838         unneeded !TARGET_64BIT check.
10839         (ix86_gimplify_va_arg): Ditto.
10840
10841 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10842
10843         * graphite-sese-to-poly.c (build_poly_scop): Always call
10844         rewrite_commutative_reductions_out_of_ssa.
10845
10846 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10847
10848         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10849         flag_associative_math to FLOAT_TYPE_P.  Honour
10850         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10851
10852 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10853
10854         PR c++/64079
10855         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10856         and "%qD" in warning_at instead of "%q+D" in warning.
10857
10858 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10859
10860         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10861         (ix86_function_abi): Cleanup.
10862
10863 2015-07-24  Michael Darling  <darlingm@gmail.com>
10864
10865         PR other/66259
10866         * acinclude.m4: Reflects renaming of configure.in to configure.ac
10867         * configure: Likewise
10868         * configure.ac: Likewise
10869         * doc/install.texi: Likewise
10870         * doc/tm.texi: Likewise
10871         * doc/tm.texi.in: Likewise
10872
10873 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10874
10875         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10876         manually swapping values.
10877         * cse.c (fold_rtx): Likewise.
10878         * lra-eliminations.c (form_sum): Likewise.
10879
10880 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10881
10882         PR target/64003
10883         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10884         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10885         (*jcc_1, *jcc_2, jump, simple_return_internal)
10886         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10887         Set length_nobnd attribute instead of length attribute.
10888         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10889         (length_nobnd): Remove attribute.
10890         (length): Remove length_nobnd processing.
10891
10892 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
10893
10894         * gimplify.c (omp_default_clause): New function.  Reorganize flow
10895         for clarity. Broken out of ...
10896         (omp_notice_variable): ... here.
10897
10898 2015-07-24  Gary Funck  <gary@intrepid.com>
10899
10900         PR middle-end/66984
10901         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10902         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10903
10904 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10905
10906         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10907         exit-first loop transform.
10908
10909 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10910
10911         PR 66714
10912         * tree-cfg.c (struct replace_decls_d): New struct.
10913         (replace_block_vars_by_duplicates_1): New function.
10914         (replace_block_vars_by_duplicates): Use it to replace the decls
10915         in the value exprs by duplicates.
10916
10917 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10918
10919         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10920         -shared, -symbolic, -rdynamic.
10921
10922 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10923
10924         PR target/65711
10925         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10926         -dynamic-linker within %{!static %{!shared, and -rdynamic within
10927         %{!static.
10928
10929 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
10930
10931         PR ipa/66566
10932         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10933         edge summary is available.
10934
10935 2015-07-24  Richard Biener  <rguenther@suse.de>
10936
10937         * genmatch.c (struct dt_node): Add statistic fields.
10938         (dt_node::analyze): New method.
10939         (decision_tree::gen_gimple): Call analyze on the root node
10940         and print statistics to stderr.
10941         (decision_tree::gen_generic): Likewise.
10942
10943 2015-07-24  Richard Biener  <rguenther@suse.de>
10944
10945         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
10946         against the highest or lowest possible integer ...
10947         * match.pd: ... as patterns here.
10948
10949 2015-07-24  Richard Biener  <rguenther@suse.de>
10950
10951         * genmatch.c (struct capture_info): Add same_as field.
10952         (capture_info::capture_info): Initialize same_as.
10953         (capture_info::walk_match): Compute same_as.
10954         (capture_info::walk_result): Compute stuff for the leader.
10955         (capture_info::walk_c_expr): Likewise.
10956         (dt_simplify::gen_1): Only look at leaders when deciding
10957         to force no side-effects or emit side-effects of omitted operands.
10958
10959 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10960
10961         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
10962         reg note to the GPR -> FPR save instructions.
10963
10964 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10965
10966         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
10967         cheaper.
10968         (s390_expand_insv): Don't generate risbg pattern for constant zero
10969         sources.
10970         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
10971         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
10972         splitters.
10973
10974 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10975
10976         * config/s390/s390.c (s390_reorg): Clean up handling of processors
10977         with
10978         -mtune=
10979         (s390_issue_rate): Likewise.
10980         (s390_sched_reorder): Likewise.
10981         (s390_sched_variable_issue): Likewise.
10982         (s390_loop_unroll_adjust): Likewise.
10983         (s390_option_override):  Likewise.
10984
10985 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10986
10987         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
10988         processor capabilities with -march=native.
10989         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
10990         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
10991         (S390_TARGET_BITS_STRING): Macro to simplify specs.
10992
10993 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10994
10995         * config/s390/s390.c (s390_issue_rate): Handle
10996         PROCESSOR_2094_Z9_EC.
10997         (s390_option_override): Likewise.
10998         (s390_adjust_priority): Likewise.
10999
11000 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11001
11002         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11003         when cross compiling.
11004
11005 2015-07-24  Richard Biener  <rguenther@suse.de>
11006
11007         * fold-const.c (maybe_canonicalize_comparison_1): Move
11008         A code CST canonicalization ...
11009         * match.pd: ... to a pattern here.
11010
11011 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
11012
11013         Revert:
11014         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11015         PR target/63521
11016         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11017         (HONOR_REG_ALLOC_ORDER): Define.
11018
11019 2015-07-24  Richard Biener  <rguenther@suse.de>
11020
11021         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11022         * fold-const.c (fold_comparison): Move parameter does not
11023         alias &local simplification ...
11024         * match.pd: ... as a pattern here.
11025
11026 2015-07-24  Richard Biener  <rguenther@suse.de>
11027
11028         * gimple-fold.c (replace_stmt_with_simplification): Special-case
11029         valueizing call operands.
11030         * gimple-match-head.c (maybe_push_res_to_seq): Take
11031         number of call arguments from ops array.
11032         (do_valueize): New function.
11033         (gimple_simplify): Return true if valueization changed
11034         any operand even if the result didn't simplify further.
11035
11036 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11037
11038         PR middle-end/25530
11039         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11040
11041 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11042
11043         PR middle-end/25529
11044         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11045
11046 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11047
11048         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11049         instruction.
11050
11051 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11052
11053         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11054         clean up.
11055
11056 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
11057
11058         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11059         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
11060         targets here.
11061         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11062         ms_va_list_type_node initialization.
11063
11064 2015-07-23  Jeff Law  <law@redhat.com>
11065
11066         PR lto/66752
11067         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11068         unable to find X NE 0 in the tables, return X as the simplified
11069         condition.
11070         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11071         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
11072         to VISISTED_BBS.  */
11073         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11074         after removing the control flow statement and unnecessary edges.
11075
11076 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11077
11078         * tree-pass.h (get_current_pass_name): Removed.
11079
11080 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
11081
11082         PR rtl-optimization/64164
11083         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11084         * tree-ssa-copyrename.c: Removed.
11085         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11086         -ftree-coalesce-vars.
11087         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11088         * common.opt (ftree-copyrename): Ignore.
11089         (ftree-coalesce-inlined-vars): Likewise.
11090         * doc/invoke.texi: Remove the ignored options above.
11091         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11092         * tree-ssa-coalesce.h: ... here.
11093         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11094         headers required by it.
11095         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11096         across variables when flag_tree_coalesce_vars.  Check register
11097         use and promoted modes to allow coalescing.  Moved to
11098         tree-ssa-coalesce.c.
11099         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11100         with its member functions to tree-ssa-coalesce.c.
11101         (var_map_base_init): Likewise.  Renamed to
11102         compute_samebase_partition_bases.
11103         (partition_view_normal): Drop want_bases parameter.
11104         (partition_view_bitmap): Likewise.
11105         * tree-ssa-live.h: Adjust declarations.
11106         * tree-ssa-coalesce.c: Include explow.h.
11107         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11108         default defs at the entry point.
11109         (dump_part_var_map): New.
11110         (compute_optimized_partition_bases): New, called by...
11111         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11112         of compute_samebase_partition_bases.  Adjust.
11113         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11114         * cfgexpand.c (leader_merge): New.
11115         (get_rtl_for_parm_ssa_default_def): New.
11116         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11117         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11118         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11119         redundant MEM attr setting.
11120         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11121         from...
11122         (expand_one_stack_var): ... this.  New wrapper to check and
11123         skip already expanded SSA partitions.
11124         (record_alignment_for_reg_var): New, factored out of...
11125         (expand_one_var): ... this.
11126         (expand_one_ssa_partition): New.
11127         (adjust_one_expanded_partition_var): New.
11128         (expand_one_register_var): Check and skip already expanded SSA
11129         partitions.
11130         (expand_used_vars): Don't create DECLs for anonymous SSA
11131         names.  Expand all SSA partitions, then adjust all SSA names.
11132         (pass::execute): Replace the loops that set
11133         SA.partition_to_pseudo from partition leaders and cleared
11134         DECL_RTL for multi-location variables, and that which used to
11135         rename vars and set attrs, with one that clears DECL_RTL and
11136         checks that PARMs and RESULTs default_defs match DECL_RTL.
11137         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11138         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11139         * explow.c (promote_ssa_mode): New.
11140         * explow.h (promote_ssa_mode): Declare.
11141         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11142         * function.c: Include cfgexpand.h.
11143         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11144         (use_register_for_parm_decl): Wrapper for the above to
11145         special-case the result_ptr.
11146         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11147         (split_complex_args): Take assign_parm_data_all argument.
11148         Pass it to rtl_for_parm.  Set up rtl and context for split
11149         args.
11150         (assign_parms_augmented_arg_list): Adjust.
11151         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11152         multiple locations.  Recognize split complex args.
11153         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11154         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11155         (assign_parm_setup_block): Prefer SSA-assigned location.
11156         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11157         if stack_parm is NULL.
11158         (assign_parm_setup_stack): Prefer SSA-assigned location.
11159         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11160         rtl before testing for pointer bounds.  Special-case result_ptr.
11161         (expand_function_start): Maybe reset DECL_RTL of result.
11162         Prefer SSA-assigned location for result and static chain.
11163         Factor out DECL_RESULT and SET_DECL_RTL.
11164         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11165         anonymous SSA names.  Use promote_ssa_mode.
11166         (get_temp_reg): Likewise.
11167         (remove_ssa_form): Adjust.
11168         * stor-layout.c (layout_decl): Don't set mem attributes of
11169         non-MEMs.
11170         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11171         and get its reg_usage for reg invalidation.
11172         (compute_bb_dataflow): Pass it insn.
11173         (emit_notes_in_bb): Likewise.
11174
11175 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
11176
11177         PR target/66217
11178         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11179         prototype.
11180         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11181         (rs6000_emit_2insn_and): Handle dot forms.
11182         * config/rs6000/rs6000.md (and<mode>3): Adjust.
11183         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
11184         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11185
11186 2015-07-23  Richard Biener  <rguenther@suse.de>
11187
11188         * generic-match-head.c: Include cgraph.h.
11189         * gimple-match-head.c: Likewise.
11190         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11191         SSA names.
11192         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11193         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
11194         pattern.
11195
11196 2015-07-23  Richard Biener  <rguenther@suse.de>
11197
11198         * gimple-fold.c (fold_gimple_cond): Do not require folding
11199         results to pass valid_gimple_rhs_p.
11200         * tree-cfg.h (fold_cond_expr_cond): Remove.
11201         * tree-cfg.c (fold_cond_expr_cond): Likewise.
11202         (make_edges): Do not call it.
11203         * tree-inline.c (tree_function_versioning): Likewise.
11204
11205 2015-07-23  Tom de Vries  <tom@codesourcery.com>
11206
11207         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11208         vect_force_simple_reduction.
11209         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11210         (vect_is_simple_reduction_1): Add and handle
11211         need_wrapping_integral_overflow parameter.
11212         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11213         need_wrapping_integral_overflow parameter.
11214         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11215         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11216         decl.
11217
11218 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
11219
11220         PR tree-optimization/66926,66951
11221         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11222         INNER_LOOP and fix up condition for renaming virtual operands.
11223
11224 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11225
11226         * combine.c (try_combine): Use std::swap instead of manually
11227         swapping.
11228
11229 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
11230
11231         * config/mips/i6400.md: New file.
11232         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11233         (mips64r6): Likewise.
11234         (i6400): Define.
11235         * config/mips/mips-tables.opt: Regenerate.
11236         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11237         (mips_issue_rate): Add support for i6400.
11238         (mips_multipass_dfa_lookahead): Likewise.
11239         * config/mips/mips.h (TUNE_I6400): Define.
11240         * config/mips/mips.md: Include i6400.md.
11241         (processor): Add i6400.
11242         * doc/invoke.texi (-march=@var{arch}): Add i6400.
11243
11244 2015-07-23  Richard Biener  <rguenther@suse.de>
11245
11246         PR middle-end/66916
11247         * match.pd: Guard widen and sign-change comparison simplification
11248         with single_use.
11249
11250 2015-07-23  Richard Biener  <rguenther@suse.de>
11251
11252         PR tree-optimization/66945
11253         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
11254         ::before_dom_children): Force the propagators idea of
11255         non-executable edges to materialize, not what the folder
11256         chooses.
11257
11258 2015-07-23  Richard Biener  <rguenther@suse.de>
11259
11260         * gimple.h (gimple_cond_make_false): Use 0 != 0.
11261         (gimple_cond_make_true): Use 1 != 0.
11262
11263 2015-07-22  DJ Delorie  <dj@redhat.com>
11264
11265         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11266         slashes.
11267
11268         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11269         (ashrhi3): Likewise.
11270         (lshrhi3): Likewise.
11271         (movhi): Take advantage of zero-extend to load small constants.
11272         (movpsi): Likewise.
11273         (and<mode>3): Likewise.
11274         (zero_extendqihi2): Likewise.
11275         (zero_extendqisi2): New.
11276         * config/msp430/constraints.md (N,O): New.
11277         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11278
11279 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
11280
11281         PR target/66954
11282         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11283         to enum feature_priority and feature_list.
11284         (fold_builtin_cpu): Add F_AES to enum processor_features
11285         and isa_names_table.
11286
11287 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11288
11289         PR driver/66737
11290         * config/i386/linux-common.h (MPX_SPEC): Use linker option
11291         for 64bit target only.
11292
11293 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11294
11295         * config/nvptx/nvptx.c: Expand some comments.
11296
11297 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
11298
11299         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11300         (cortex_a53_advsimd): ...This.
11301
11302 2015-07-22  Richard Biener  <rguenther@suse.de>
11303
11304         * genmatch.c (expr::gen_transform): Clarify error message
11305         and display location.
11306
11307 2015-07-22  Richard Biener  <rguenther@suse.de>
11308
11309         * genmatch.c (struct operand): Add location member.
11310         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11311         constructors.
11312         (struct simplify): Remove match_location and result_location
11313         members.
11314         (elsehwere): Adjust.
11315
11316 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
11317
11318         * config/mips/m5100.md: New file.
11319         * config/mips/mips-cpus.def (m5100, m5101): Define.
11320         * config/mips/mips-tables.opt: Regenerate.
11321         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11322         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11323         -march=m5101 to -mips32r5.
11324         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11325         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11326         !-msoft-float.
11327         * config/mips/mips.md: Include m5100.md.
11328         (processor): Add m5100.
11329         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11330
11331 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
11332
11333         * config/mips/mips-cpus.def (interaptiv): Define.
11334         * config/mips/mips-tables.opt: Regenerate.
11335         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11336         -mips32r2.
11337         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11338         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11339
11340 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11341
11342         PR target/63521
11343         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11344         (HONOR_REG_ALLOC_ORDER): Define.
11345
11346 2015-07-22  Richard Biener  <rguenther@suse.de>
11347
11348         PR tree-optimization/66952
11349         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11350         blocks we end up executing unconditionally reset all SSA
11351         info such as range and alignment.
11352         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11353         * tree-ssanames.c (reset_flow_sensitive_info): New function.
11354
11355 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11356
11357         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11358         typo in attribute.
11359
11360 2015-07-22  Richard Biener  <rguenther@suse.de>
11361
11362         * genmatch.c (parser::parse_result): Properly handle
11363         match with result operands and conditions.
11364
11365 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11366
11367         PR target/63870
11368         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11369         Add qualifier_struct_load_store_lane_index.
11370         (aarch64_types_loadstruct_lane_qualifiers): Use
11371         qualifier_struct_load_store_lane_index for lane index argument for
11372         last argument.
11373         (aarch64_types_storestruct_lane_qualifiers): Ditto.
11374         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11375         (aarch64_simd_expand_args): Add new argument describing mode of
11376         builtin. Check lane bounds for arguments with
11377         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11378         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11379         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11380         (aarch64_simd_expand_builtin): Handle arguments with
11381         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11382         aarch64_simd_expand_args.
11383         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11384         vst[234]_lane with BUILTIN_VALLDIF.
11385         * config/aarch64/aarch64-simd.md:
11386         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11387         endianness reversal on lane index.
11388         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11389         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11390         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11391         (vec_store_lanesci_lane<mode>): Ditto.
11392         (vec_store_lanesxi_lane<mode>): Ditto.
11393         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11394         reversal of lane index.
11395         (aarch64_ld3_lane<mode>): Ditto.
11396         (aarch64_ld4_lane<mode>): Ditto.
11397         (aarch64_st2_lane<mode>): Ditto.
11398         (aarch64_st3_lane<mode>): Ditto.
11399         (aarch64_st4_lane<mode>): Ditto.
11400         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11401         to qmode. Add new mode parameter. Update uses.
11402         (__LD3_LANE_FUNC): Ditto.
11403         (__LD4_LANE_FUNC): Ditto.
11404         (__ST2_LANE_FUNC): Ditto.
11405         (__ST3_LANE_FUNC): Ditto.
11406         (__ST4_LANE_FUNC): Ditto.
11407
11408 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
11409
11410         * doc/invoke.texi (Language Independent Options): Rename node to
11411         Diagnostic Message Formatting Options.
11412
11413 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
11414
11415         PR ipa/66424.
11416         * lra-remat.c (operand_to_remat): Prevent using insns with input
11417         subregs processed separately by IRA.
11418
11419 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
11420
11421         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11422         straight loops.
11423         (single_imm_use): Check for iterator node.
11424         (num_imm_uses): Likewise.
11425         * tree-ssa-operands.c (has_zero_uses_1): Delete.
11426         (single_imm_use_1): Check for iterator node.
11427
11428 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
11429             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11430
11431         * configure.ac: Add check for new options in isl-0.15.
11432         * config.in, configure: Rebuilt.
11433         * graphite-blocking.c: Include <isl/constraint.h>
11434         * graphite-interchange.c,  graphite-poly.c: Likewise.
11435         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11436         * graphite.c: Likewise.
11437         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11438         <isl/union_set.h>.
11439         * graphite-dependences.c: Include <isl/constraint.h>.
11440         (max_number_of_out_dimensions): Returns isl_stat.
11441         (extend_schedule_1): Likewise
11442         (extend_schedule): Corresponding changes.
11443         * graphite-optimize-isl.c: Include <isl/constraint.h> and
11444         <isl/union_set.h>.
11445         (getSingleMap): Change return type of isl_stat.
11446         (optimize_isl): Conditionally use
11447         isl_options_set_schedule_serialize_sccs.
11448         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11449         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11450
11451 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
11452
11453         PR target/66956
11454         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11455         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11456
11457 2015-07-21  Richard Biener  <rguenther@suse.de>
11458
11459         PR tree-optimization/66948
11460         * genmatch.c (capture_info::walk_match): Also recurse to
11461         captures.  Properly compute expr state from captures of
11462         captures.
11463         * match.pd: Add single-use guards to
11464         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11465
11466 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
11467
11468         * config/nvptx/mkoffload.c (process): Add static destructor call.
11469
11470 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11471
11472         PR middle-end/66915
11473         * match.pd (A - B -> A + (-B)): Don't allow folding
11474         when type if a fixed-point type.
11475
11476 2015-07-20  DJ Delorie  <dj@redhat.com>
11477
11478         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11479         (iorqi3_real): Likewise for set1.
11480
11481 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
11482
11483         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11484         for !TARGET_64BIT.
11485
11486 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
11487
11488         * graphite-isl-ast-to-gimple.c:
11489         Refactor so that each function can access 'region'. This will help
11490         maintain a parameter rename_map within a region.
11491
11492 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11493
11494         * config/rs6000/rs6000.md (*lt0_disi): New.
11495
11496 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11497
11498         PR target/66217
11499         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
11500         "available letters" comment.
11501         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11502         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11503         and_2rld_operand):  Delete.
11504         (and_operand): Adjust.
11505         (rotate_mask_operator): New.
11506         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11507         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11508         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11509         extract_ME): Delete.
11510         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11511         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11512         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11513         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11514         rs6000_emit_2insn_and): New.
11515         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11516         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11517         includes_rldic_lshift_p, includes_rldicr_lshift_p,
11518         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11519         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11520         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11521         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11522         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11523         rs6000_emit_2insn_and): New.
11524         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11525         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11526         handling.
11527         <NOT>: Don't fall through to next case.
11528         <AND>: Handle the various rotate-and-mask cases directly.
11529         <IOR>: Always cost as one insn.
11530         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11531         (and<mode>3): Adjust expander for the new patterns.
11532         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11533         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11534         (*and<mode>3_imm_dot_shifted): New.
11535         (*and<mode>3_mask): Delete, rewrite as ...
11536         (and<mode>3_mask): ... New.
11537         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11538         (andsi3_internal0_nomc): Delete.
11539         (*andsi3_internal6): Delete.
11540         (*and<mode>3_2insn): New.
11541         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11542         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11543         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11544         *insvdi_internal3): Delete.
11545         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11546         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11547         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11548         *ior<mode>_mask): New.
11549         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11550         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11551         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11552         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11553         Delete.
11554         (ashr<mode>3): Delete expander.
11555         (*ashr<mode>3): Rename to ...
11556         (ashr<mode>3): ... This.
11557         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11558         (*rotldi3_internal4, *rotldi3_internal5 and split,
11559         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11560         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11561         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11562         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11563         (splitter for loading a mask): Adjust.
11564         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11565
11566 2015-07-20  Marek Polacek  <polacek@redhat.com>
11567
11568         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11569         output_add_clobbers, output_added_clobbers_hard_reg_p,
11570         gen_rtx_scratch): Remove declarations.
11571
11572 2015-07-20  Marek Polacek  <polacek@redhat.com>
11573
11574         PR c++/55095
11575         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11576
11577 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11578
11579         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11580         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11581
11582 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11583
11584         * combine.c (combine_simplify_rtx): Move simplification step
11585         before various transformations/substitutions.
11586
11587 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
11588
11589         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11590         (struct int_traits): Likewise.
11591
11592 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11593
11594         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11595         function to vmsdbgout_function_decl.
11596
11597 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11598
11599         PR target/66922
11600         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11601         from misaligned positions.
11602         (ix86_expand_pinsr): Reject insertions to misaligned positions.
11603
11604 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
11605
11606         PR middle-end/46851
11607         PR middle-end/60340
11608         * Makefile.in: Removed omega.o.
11609         * common.opt: Document flag fcheck-data-deps as deprecated.
11610         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11611         its associated params: omega-max-vars, omega-max-geqs,
11612         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11613         omega-max-keys, omega-eliminate-redundant-constraints.
11614         * doc/loop.texi: Remove all the section on Omega.
11615         * graphite-blocking.c: Include missing params.h: it used to be
11616         included through tree-data-ref.h and omega.h.
11617         * graphite-isl-ast-to-gimple.c: Same.
11618         * graphite-optimize-isl.c: Same.
11619         * graphite-sese-to-poly.c: Same.
11620         * graphite.c: Same.
11621         * omega.c: Remove.
11622         * omega.h: Remove.
11623         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11624         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11625         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11626         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11627         * passes.def: Remove pass_check_data_deps.
11628         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11629         (dump_conflict_function): Same.
11630         (dump_subscript): Same.
11631         (print_direction_vector): Same.
11632         (print_dir_vectors): Same.
11633         (print_lambda_vector): Same.
11634         (print_dist_vectors): Same.
11635         (dump_data_dependence_relation): Same.
11636         (dump_data_dependence_relations): Same.
11637         (dump_dist_dir_vectors): Same.
11638         (dump_ddrs): Same.
11639         (init_omega_eq_with_af): Removed.
11640         (omega_extract_distance_vectors): Removed.
11641         (omega_setup_subscript): Removed.
11642         (init_omega_for_ddr_1): Removed.
11643         (init_omega_for_ddr): Removed.
11644         (ddr_consistent_p): Removed.
11645         (compute_affine_dependence): Do not use omega to check data
11646         dependences.
11647         (compute_data_dependences_for_bb): Removed.
11648         (analyze_all_data_dependences): Removed.
11649         (tree_check_data_deps): Removed.
11650         * tree-data-ref.h: Do not include omega.h.
11651         (compute_data_dependences_for_bb): Removed.
11652         (tree_check_data_deps): Removed.
11653         * tree-ssa-loop.c (pass_check_data_deps): Removed.
11654         (make_pass_check_data_deps): Removed.
11655         * tree-ssa-phiopt.c: Include params.h.
11656         * tree-vect-data-refs.c: Same.
11657         * tree-vect-slp.c: Same.
11658
11659 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11660
11661         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11662         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
11663         (mem->fpreg splitters): Ditto.
11664         (general_operand->nonimmediate_operand splitter): Use explicit modes.
11665         Disable DFmode for TARGET_64BIT.
11666
11667 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11668
11669         PR target/66906
11670         * config/i386/i386.c (ix86_expand_prologue): Replicate static
11671         chain on the stack.
11672
11673 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11674
11675         * config/nvptx/mkoffload.c (process): Constify host data.
11676         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11677         Constify host data.
11678         (generate_host_descr_file): Likewise.
11679
11680 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
11681             Sebastian Pop  <s.pop@samsung.com>
11682
11683         PR middle-end/61929
11684         * graphite-dependences.c (add_pdr_constraints): Renamed
11685         pdr->extent to pdr->subscript_sizes.
11686         * graphite-interchange.c (build_linearized_memory_access): Add
11687         back all gcc_assert's that the "isl_int to isl_val conversion"
11688         patch has removed.  Refactored.
11689         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11690         * graphite-poly.c (new_poly_dr): Same.
11691         (free_poly_dr): Same.
11692         * graphite-poly.h (struct poly_dr): Same.
11693         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11694         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11695         * graphite-scop-detection.h: Fix space.
11696         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11697         back all gcc_assert's removed by a previous patch.
11698         (wrap): Remove the_isl_ctx global variable that the same patch has
11699         added.
11700         (build_loop_iteration_domains): Same.
11701         (add_param_constraints): Same.
11702         (pdr_add_data_dimensions): Same.  Refactored.
11703         (build_poly_dr): Renamed extent to subscript_sizes.
11704
11705 2015-07-17  Marek Polacek  <polacek@redhat.com>
11706
11707         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11708         * match.pd: ... here.
11709
11710 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11711
11712         * config/nvptx/mkoffload.c (process): Constify target data.
11713         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11714         Constify target data.
11715         (generate_target_offloadend_file): Likewise.
11716
11717 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
11718
11719         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11720         to allow renaming of PHI arguments on edges incoming from outer
11721         loop header, add corresponding check before start PHI iterator.
11722         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11723         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11724         with true force_vectorize.  Set-up dominator for outer loop too.
11725         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11726         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11727         was marked with force_vectorize and has restricted cfg.
11728         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11729         inner loop.
11730         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11731         do peeling for outer loops.
11732
11733 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
11734             Matthias Klose  <doko@ubuntu.com>
11735
11736         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11737         build-sysroot, sysroot from the `Miscenalleous configure options' to
11738         the `Directories' section and strip trailing `/' from with_sysroot.
11739         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11740         * configure: Regenerated.
11741
11742 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11743
11744         PR target/66824
11745         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11746         (TARGET_HARD_DF_REGS): Ditto.
11747         (TARGET_HARD_XF_REGS): Ditto.
11748         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11749         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11750         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11751         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11752         (*movsf_internal): Add alternatives 16 and 17. Enable
11753         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11754
11755 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11756
11757         PR rtl-optimization/66891
11758         * calls.c (expand_call): Wrap precompute_register_parameters with
11759         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11760
11761 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11762
11763         * config/nvptx/mkoffload.c (process): Constify mapping variables.
11764         Define target data struct and initialize it.
11765
11766 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
11767
11768         PR rtl-optimization/66626
11769         * ira.h (emit-rtl.h): Include.
11770         (non_spilled_static_chain_regno_p): New.
11771         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11772         unless it is non spilled static chain pseudo.
11773         (assign_hard_rego): Spill memory profitable allocno unless it is
11774         non spilled static chain pseudo.
11775         (allocno_spill_priority_compare): Put non spilled static chain
11776         pseudo at the end of sorted array.
11777         (improve_allocation): Do nothing if we have static chain and
11778         non-local goto.
11779         (allocno__priority_compare_func): Put non spilled static chain
11780         pseudo at the beginning of sorted array.
11781         (move_spill_restore): Ignore non spilled static chain pseudo.
11782         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11783         to non spilled static chain pseudo.
11784         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11785         pseudo at the beginning of sorted array.
11786         (spill_for): Spill non spilled static chain pseudo last.
11787         * lra-constraints.c (lra_constraints): Remove static chain pseudo
11788         check for equivalence.
11789
11790 2015-07-16  Martin Liska  <mliska@suse.cz>
11791
11792         PR ipa/66896.
11793         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11794         dst_ctx if it does not exist.
11795
11796 2015-07-16  Martin Liska  <mliska@suse.cz>
11797
11798         * hash-set.h (remove): New function.
11799         (iterator): New iteration class for hash_set.
11800
11801 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11802
11803         * genattrtab.c (make_canonical): Add a file_location parameter.
11804         Use fatal_at rather than fatal.
11805         (get_attr_value): Likewise.  Update call to make_canonical.
11806         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11807         (make_internal_attr): Update calls accordingly.
11808
11809 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11810
11811         * read-md.h (message_with_line, error_with_line): Delete.
11812         * read-md.c (message_with_line, error_with_line): Delete.
11813         * gensupport.h: Include read-md.h.
11814         (md_rtx_info): New structure.
11815         (read_md_rtx): Use it.  Return a bool success value.
11816         * gensupport.c (read_md_rtx): Likewise.
11817         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11818         (main): Update after interface changes.
11819         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11820         (main): Update after interface changes.
11821         * genattrtab.c (insn_code_number): Delete.
11822         (optimize_attrs): Add a max_insn_code parameter and use it instead
11823         of insn_code_number.
11824         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11825         Use *_at rather than *_with_line functions.
11826         (gen_insn): Likewise.
11827         (gen_delay): Likewise.
11828         (gen_insn_reserv): Likewise.
11829         (gen_bypass): Take an md_rtx_info rather than an rtx.
11830         (main): Update after interface changes.  Use a local max_insn_code
11831         variable instead of insn_code_number.
11832         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11833         an rtx.  Use fatal_at rather than fatal.
11834         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11835         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11836         (gen_absence_set, gen_final_absence_set, gen_automaton)
11837         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11838         (main): Update after interface changes.
11839         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11840         and code number.
11841         (main): Update after interface changes.
11842         * genconditions.c (main): Use new read_md_rtx interface.
11843         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11844         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11845         (main): Update after interface changes.
11846         * genemit.c (insn_code_number, insn_index_number): Delete.
11847         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11848         Use fatal_at rather than fatal.
11849         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
11850         rather than fatal.
11851         (gen_split): Likewise.
11852         (main): Update after interface changes.
11853         * genextract.c (line_no): Delete.
11854         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11855         Update call to walk_rtx.
11856         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
11857         rather than message_with_line.
11858         (walk_rtx): Add an md_rtx_info argument.  Update call to
11859         VEC_safe_set_locstr.
11860         (main): Update after interface changes.
11861         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11862         and lineno.  Use error_at rather than separate message_with_line
11863         calls and have_error assignments.
11864         (main): Update after interface changes.
11865         * genmddump.c (main): Use new read_md_rtx interface.
11866         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11867         (main): Update after interface changes.
11868         * genoutput.c (next_code_number): Delete.
11869         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11870         (gen_peephole, gen_expand, gen_split): Likewise.
11871         (note_constraint): Likewise.  Use *_at rather than *_with_line
11872         functions.
11873         (main): Update after interface changes.
11874         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11875         rtx and lineno.
11876         (main): Update after interface changes.
11877         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11878         than an rtx and lineno.
11879         (process_define_constraint): Likewise.
11880         (process_define_register_constraint): Likewise.
11881         (main): Update after interface changes.
11882         * genrecog.c (next_insn_code, pattern_lineno): Delete.
11883         (validate_pattern): Replace top-level rtx with an md_rtx_info.
11884         Use *_at rather than *_with_line functions.
11885         (match_pattern_2): Likewise.
11886         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11887         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11888         Use *_at rather than *_with_line functions.
11889         * gentarget-def.c (add_insn): New function.
11890         (main): Use it.  Use new read_md_rtx interface.
11891
11892 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11893
11894         * gensupport.h (compute_test_codes): Take a file_location rather
11895         than a line number.
11896         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
11897         rather than *_with_line functions.
11898         (process_define_predicate): Update call to compute_test_codes.
11899         * genpreds.c (validate_exp): Take a file_location rather than a
11900         line number.  Use *_at functions rather than *_with_line functions.
11901         (process_define_predicate): Update call to validate_exp.
11902         (constraint_data): Replace lineno field with a file_location.
11903         (add_constraint): Take a file_location rather than a line number.
11904         Use *_at functions rather than *_with_line functions.  Fix error
11905         message for address constraints.  Update after changes to
11906         validate_exp, constraint_data and compute_test_codes.
11907         (process_define_constraint): Update accordingly.
11908         (process_define_register_constraint): Likewise.
11909
11910 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11911
11912         * genoutput.c (data): Use a file_location to record the source
11913         position.
11914         (nothing): Delete.
11915         (idata, idata_end): Remove initialization.
11916         (constraint_data): Replace lineno with a file_location.
11917         (output_insn_data): Update after changes to data.
11918         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11919         (scan_operands): Likewise, using *_at rather than *_with_line
11920         functions.
11921         (process_template): Likewise.
11922         (validate_insn_alternatives): Likewise.
11923         (validate_insn_operands): Likewise.
11924         (validate_optab_operands): Likewise.
11925         (init_insn_for_nothing): Initialize idata and idata_end.
11926         (note_constraint): Update after changes to constraint_data,
11927         using at rather than with_line functions.
11928         (mdep_constraint_len): Take a file_location rather than a
11929         line number.  Use at rather than with_line functions.
11930
11931 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11932
11933         * read-md.h (fatal_at): Declare.
11934         * read-md.c (fatal_at): New function.
11935         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
11936         to record the source position.
11937         (check_attr_test): Take a file_location instead of a line number.
11938         Use fatal_at instead of fatal.
11939         (check_attr_value): Update after above changes, using "at"
11940         rather than "with_line" reporting functions.
11941         (convert_set_attr_alternative): Likewise.
11942         (gen_attr): Likewise.
11943         (check_defs): Likewise.  Don't assign to read_md_filename.
11944         (gen_insn): Update initialization after above changes.
11945         (gen_delay): Likewise.
11946         (write_insn_cases): Print the filename for a define_peephole.
11947         (gen_insn_reserv): Take a line number as argument and update
11948         the call to check_attr_test.
11949         (main): Pass a line number to gen_insn_reserv.
11950
11951 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11952
11953         * read-md.h (file_location): New structure.
11954         (directive_handler_t): Take a file_location rather than a line number.
11955         (message_at, error_at): Declare.
11956         (read_skip_construct): Delete.
11957         * read-md.c (message_with_line_1): Replace with...
11958         (message_at_1): ...this new function.
11959         (message_at, error_at): New functions.
11960         (message_with_line, error_with_line): Update to use message_at_1.
11961         (handle_enum): Take a file_location rather than a line number
11962         and use error_at for error reporting.
11963         (handle_include): Likewise.
11964         (read_skip_construct): Likewise.  Make static.
11965         (handle_file): Update after above changes.  Pass a file_location
11966         rather than a line number to handle_directive.
11967         * gensupport.c (queue_elem): Replace separate filename and lineno
11968         with a file_location.
11969         (queue_pattern): Replace filename and lineno arguments with a
11970         file_location.  Update after change to queue_elem.
11971         (process_define_predicate): Replace lineno argument with a
11972         file_location and use error_at for error reporting.  Update
11973         after above changes.
11974         (process_rtx): Likewise.
11975         (subst_pattern_match): Likewise.
11976         (get_alternatives_number): Likewise.
11977         (alter_predicate_for_insn): Likewise.
11978         (rtx_handle_directive): Likewise.
11979         (is_predicable): Update after above changes, using error_at rather
11980         than error_with_line.
11981         (has_subst_attribute): Likewise.
11982         (identify_predicable_attribute): Likewise.
11983         (alter_attrs_for_subst_insn): Likewise.
11984         (process_one_cond_exec): Likewise.
11985         (process_substs_on_one_elem): Likewise.
11986         (process_define_subst): Likewise.
11987         (check_define_attr_duplicates): Likewise.
11988         (read_md_rtx): Update after change to queue_elem.
11989
11990 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11991
11992         * genoutput.c (next_index_number): Delete.
11993         (data): Remove index_number.
11994         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
11995         (main): Remove manipulation of next_index_number.
11996
11997 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11998
11999         * genattrtab.c (check_attr_value): Remove handling of null attrs.
12000         (make_canonical): Likewise.
12001
12002 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
12003
12004         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12005         instead of adjust_address_nv.
12006         (restore_stack_nonlocal): Likewise.
12007         (nonlocal_goto): Likewise.
12008
12009 2015-07-16  Tom de Vries  <tom@codesourcery.com>
12010
12011         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12012         not have a corresponding loop header phi.
12013
12014 2015-07-16  Tom de Vries  <tom@codesourcery.com>
12015
12016         * tree-parloops.c (create_loads_for_reductions): Handle case that
12017         reduction is unused.
12018
12019 2015-07-16  Richard Biener  <rguenther@suse.de>
12020
12021         PR tree-optimization/66894
12022         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12023         about deriving NE_EXPR from truncated values.
12024
12025 2015-07-16  Martin Liska  <mliska@suse.cz>
12026
12027         * alloc-pool.h
12028         (object_allocator): Add new class.
12029         (pool_allocator::initialize): Use the underlying class.
12030         (pool_allocator::allocate): Likewise.
12031         (pool_allocator::remove): Likewise.
12032         (operator new): A new generic allocator.
12033         * asan.c (struct asan_mem_ref): Remove unused members.
12034         (asan_mem_ref_new): Replace new operator with
12035         object_allocator::allocate.
12036         (free_mem_ref_resources): Change deallocation.
12037         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12038         with object_allocator.
12039         * config/sh/sh.c (add_constant): Replace new operator with
12040         object_allocator::allocate.
12041         (sh_reorg): Change call to a release method.
12042         * cselib.c (struct elt_list): Remove unused members.
12043         (new_elt_list): Replace new operator with
12044         object_allocator::allocate.
12045         (new_elt_loc_list): Likewise.
12046         (new_cselib_val): Likewise.
12047         (unchain_one_elt_list): Change delete operator with remove method.
12048         (unchain_one_elt_loc_list): Likewise.
12049         (unchain_one_value): Likewise.
12050         (cselib_finish): Release newly added static allocators.
12051         * cselib.h (struct cselib_val): Remove unused members.
12052         (struct elt_loc_list): Likewise.
12053         * df-problems.c (df_chain_alloc): Replace pool_allocator with
12054         object_allocator.
12055         * df-scan.c (struct df_scan_problem_data): Likewise.
12056         (df_scan_alloc): Likewise.
12057         * df.h (struct dataflow): Likewise.
12058         * dse.c (struct read_info_type): Likewise.
12059         (struct insn_info_type): Likewise.
12060         (struct dse_bb_info_type): Likewise.
12061         (struct group_info): Likewise.
12062         (struct deferred_change): Likewise.
12063         (get_group_info): Likewise.
12064         (delete_dead_store_insn): Likewise.
12065         (free_read_records): Likewise.
12066         (replace_read): Likewise.
12067         (check_mem_read_rtx): Likewise.
12068         (scan_insn): Likewise.
12069         (dse_step1): Likewise.
12070         (dse_step7): Likewise.
12071         * et-forest.c (struct et_occ): Remove unused members.
12072         (et_new_occ): Use allocate instead of new operator.
12073         (et_new_tree): Likewise.
12074         (et_free_tree): Call release method explicitly.
12075         (et_free_tree_force): Likewise.
12076         (et_free_pools): Likewise.
12077         (et_split): Use remove instead of delete operator.
12078         * et-forest.h (struct et_node): Remove unused members.
12079         * ipa-cp.c: Change pool_allocator to object_allocator.
12080         * ipa-inline-analysis.c: Likewise.
12081         * ipa-profile.c: Likewise.
12082         * ipa-prop.c: Likewise.
12083         * ipa-prop.h: Likewise.
12084         * ira-build.c (initiate_cost_vectors): Cast return value.
12085         (ira_allocate_cost_vector): Likewise.
12086         * ira-color.c (struct update_cost_record): Remove unused members.
12087         * lra-int.h (struct lra_live_range): Likewise.
12088         (struct lra_copy): Likewise.
12089         (struct lra_insn_reg): Likewise.
12090         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12091         * lra.c (new_insn_reg): Replace new operator with allocate method.
12092         (free_insn_regs): Same for operator delete.
12093         (finish_insn_regs): Release new static allocator.
12094         (finish_insn_recog_data): Likewise.
12095         (lra_free_copies): Replace delete operator with remove method.
12096         (lra_create_copy): Replace operator new with allocate method.
12097         (invalidate_insn_data_regno_info): Same for remove method.
12098         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12099         (free_debug_insn_changes): Replace delete operator with remove method.
12100         (replace_oldest_value_reg): Replace operator new with allocate method.
12101         (pass_cprop_hardreg::execute): Release new static variable.
12102         * sched-deps.c (sched_deps_init): Change pool_allocator to
12103         object_allocator.
12104         * sel-sched-ir.c: Likewise.
12105         * sel-sched-ir.h: Likewise.
12106         * stmt.c (expand_case): Likewise.
12107         (expand_sjlj_dispatch_table): Likewise.
12108         * tree-sra.c (struct access): Remove unused members.
12109         (struct assign_link): Likewise.
12110         (sra_deinitialize): Release newly added static pools.
12111         (create_access_1):Replace operator new with allocate method.
12112         (build_accesses_from_assign): Likewise.
12113         (create_artificial_child_access): Likewise.
12114         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12115         pool_allocator to object_allocator.
12116         * tree-ssa-pre.c: Likewise.
12117         * tree-ssa-reassoc.c: Likewise.
12118         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12119         * tree-ssa-strlen.c: Likewise.
12120         * tree-ssa-structalias.c: Likewise.
12121         * var-tracking.c (onepart_pool_allocate): New function.
12122         (unshare_variable): Use the newly added function.
12123         (variable_merge_over_cur): Likewise.
12124         (variable_from_dropped): Likewise.
12125         (variable_was_changed): Likewise.
12126         (set_slot_part): Likewise.
12127         (emit_notes_for_differences_1): Likewise.
12128         (vt_finalize): Release newly added static pools.
12129
12130 2015-07-16  Martin Jambor  <mjambor@suse.cz>
12131
12132         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
12133         all uses.  Fix two typos in its general comment.
12134         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
12135
12136 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
12137
12138         * config/i386/linux-common.h (LINK_MPX): New.
12139         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12140         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12141         indicating '-z bndplt' support by linker.
12142         * configure: Regenerate.
12143         * config.in: Regenerate.
12144
12145 2015-07-16  Richard Biener  <rguenther@suse.de>
12146
12147         * fold-const.c (fold_widened_comparison): Remove.
12148         (fold_sign_changed_comparison): Likewise.
12149         (fold_comparison): Move widened and sign-changed comparison
12150         simplification ...
12151         * match.pd: ... to patterns here.
12152         * generic-match-head.c: Include target.h.
12153         * gimple-match-head.c: Likewise.
12154
12155 2015-07-16  Richard Biener  <rguenther@suse.de>
12156
12157         * tree-ssa-dom.c (dom_valueize): New function.
12158         (record_temporary_equivalences): Also record equivalences
12159         for dominating stmts that have uses of equivalences we are
12160         about to record.
12161
12162 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
12163
12164         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12165         add_autoinc_candidates.
12166         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12167         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12168         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12169         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12170         Call new function.
12171         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12172         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12173         Remove parameter struct iv*.  Call add_autoinc_candidates here.
12174         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12175         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12176         Call new function.
12177         (find_iv_candidates): Call new functions.
12178
12179 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
12180
12181         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12182         uninitialized-variable warning.
12183
12184 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12185
12186         PR target/65249
12187         * config/sh/sh.md (movdi): Split simple reg move to two movsi
12188         when the destination is R0.
12189
12190 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
12191
12192         PR target/66866
12193         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12194         * config/i386/i386.c (ix86_expand_pextr): New function.
12195         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
12196         for non-lowpart subregs.
12197         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12198         (insv<mode>): Use SWI248 mode iterator.
12199         (insv<mode>_1): Ditto.
12200
12201 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12202             Sebastian Pop  <s.pop@samsung.com>
12203
12204         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12205         iterator to use_stmt.
12206
12207 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12208             Sebastian Pop <s.pop@samsung.com>
12209
12210         * graphite-scop-detection.c (build_scops_1): Discard scops for
12211         which entry==exit.
12212
12213 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12214             Sebastian Pop <s.pop@samsung.com>
12215
12216         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12217         case of a return statement in scop.
12218
12219 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12220             Sebastian Pop <s.pop@samsung.com>
12221
12222         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12223         INTEGER_TYPE parameters.
12224         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12225         VECTOR_CST in scan_tree_for_params.
12226         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12227
12228 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12229
12230         * gimple-pretty-print.h: Don't include pretty-print.h.
12231         * tree-streamer.h: Don't include lto-streamer.h.
12232         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12233         * gimple-streamer-in.c: Remove redundant includes.
12234         * gimple-streamer-out.c: Likewise.
12235         * ipa-devirt.c: Likewise.
12236         * ipa-icf.c: Likewise.
12237         * ipa-inline-analysis.c: Likewise.
12238         * ipa-polymorphic-call.c: Likewise.
12239         * ipa-profile.c: Likewise.
12240         * ipa-prop.c: Likewise.
12241         * ipa-pure-const.c: Likewise.
12242         * lto-cgraph.c: Likewise.
12243         * lto-streamer-in.c: Likewise.
12244         * lto-streamer-out.c: Likewise.
12245         * lto-streamer.c: Likewise.
12246         * tree-streamer-in.c: Likewise.
12247         * tree-streamer-out.c: Likewise.
12248         * tree-streamer.c: Likewise.
12249
12250 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12251
12252         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
12253         include input.h.
12254         * opts.c: Remove multiline #include comment.
12255
12256 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
12257
12258         * config/nvptx/mkoffload.c (process): Add C++ protection to
12259         emitted code.
12260
12261 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12262
12263         PR target/66854
12264         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12265         null before IEEE 128-bit floating point support patch.
12266
12267 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12268
12269         * simplify-rtx.c (simplify_ternary_operation): Add simplification
12270         for (!c) != {0,...,0} ? a : b for vector modes.
12271
12272 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
12273             Martin Jambor  <mjambor@suse.cz>
12274
12275         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12276         struct func_body_info* instead of struct ipa_node_params*, expecting
12277         fbi->info to be filled in.  Replace throughout.  Adjust call to
12278         ipa_load_from_parm_agg.
12279         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12280         instead of struct ipa_node_params*.  Adjust calls to other functions
12281         so that they pass either fbi or fbi->info.
12282         (set_switch_stmt_execution_predicate): Likewise.
12283         (will_be_nonconstant_predicate): Likewise.
12284         (compute_bb_predicates): Likewise.
12285         (estimate_function_body_sizes): Move asserts earlier.  Fill in
12286         struct func_body_info, replace parms_info with fbi.info.  Adjust
12287         calls to functions that now accept struct func_body_info.
12288         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12289         (struct func_body_info): Likewise.
12290         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12291         remove static.  Adjust callers.
12292         (ipa_load_from_parm_agg): Remove.
12293         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12294         (func_body_info): Likewise.
12295         (ipa_load_from_parm_agg): Adjust prototype.
12296
12297 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12298
12299         * gensupport.c (rtx_handle_directive): Adjust.
12300         * read-rtl.c (apply_iterators): Take vector to add rtxs to
12301         instead of expr list rtx.
12302         (add_define_attr_for_define_subst): Likewise.
12303         (add_define_subst_attr): Likewise.
12304         (read_subst_mapping): Likewise.
12305         (read_rtx): Likewise.
12306         * rtl.h (read_rtx): Adjust.
12307
12308 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12309
12310         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12311
12312 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12313
12314         PR target/58066
12315         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12316         (*tls_local_dynamic_base_64_<mode>): Ditto.
12317         (*tls_local_dynamic_base_64_largepic): Ditto.
12318         (tls_global_dynamic_64_<mode>): Update expander pattern.
12319         (tls_local_dynamic_base_64_<mode>): Ditto.
12320
12321 2015-07-15  Richard Biener  <rguenther@suse.de>
12322
12323         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12324         and bool_var == 1 -> bool_var simplifications ...
12325         * match.pd: ... to patterns here.  Factor out negate_expr_p
12326         cases from the A - B -> A + (-B) patterns as negate_expr_p
12327         predicate and add a -(A + B) -> (-B) - A pattern.
12328
12329 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12330
12331         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12332
12333 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
12334             Robert Suchanek  <robert.suchanek@imgtec.com>
12335
12336         * config/mips/mips.c (mips_int_mask): New enum.
12337         (mips_shadow_set): Likewise.
12338         (int_mask): New variable.
12339         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12340         (machine_function): Add int_mask and use_shadow_register_set.
12341         (mips_attribute_table): Add attribute handlers for interrupt and
12342         use_shadow_register_set.
12343         (mips_interrupt_mask): New static function.
12344         (mips_handle_interrupt_attr): Likewise.
12345         (mips_handle_use_shadow_register_set_attr): Likewise.
12346         (mips_use_shadow_register_set): Change return type to enum
12347         mips_shadow_set.  Add argument handling for use_shadow_register_set
12348         attribute.
12349         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12350         compare with mips_shadow_set enum.
12351         (mips_compute_frame_info): Add interrupt mask and
12352         use_shadow_register_set to per-function information structure.
12353         Add a stack slot for EPC unconditionally.
12354         (mips_expand_prologue): Compare use_shadow_register_set value
12355         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
12356         masked interrupt register but in EIC mode use K0 and save Cause in K0.
12357         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
12358         copying the stack pointer from the shadow register set.
12359         * config/mips/mips.h (SR_IM0): New define.
12360         * config/mips/mips.md (mips_rdpgpr): Rename to...
12361         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
12362         * doc/extend.texi (Declaring Attributes of Functions): Document
12363         optional arguments for interrupt and use_shadow_register_set
12364         attributes.
12365
12366 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12367
12368         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12369         interrupt attribute.
12370         (mips_expand_prologue): Disable the floating point unit in an ISR.
12371         * config/mips/mips.h (SR_COP1): New define.
12372
12373 2015-07-15  Richard Biener  <rguenther@suse.de>
12374
12375         * genmatch.c (parser::peek, parser::peek_ident): Add argument
12376         to tell how many tokens to peek ahead (default 1).
12377         (parser::eat_token, parser::eat_ident): Return token consumed.
12378         (parser::parse_result): Parse new switch statement.
12379         * match.pd: Use case statements where appropriate.
12380
12381 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12382
12383         PR rtl-optimization/58066
12384         * calls.c (expand_call): Precompute register parameters before stack
12385         alignment is performed.
12386
12387 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12388
12389         PR rtl-optimization/66838
12390         * postreload.c (reload_cse_move2add): Also process
12391         CALL_INSN_FUNCTION_USAGE when resetting information of
12392         call-clobbered registers.
12393
12394 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12395             Cesar Philippidis  <cesar@codesourcery.com>
12396             Chung-Lin Tang  <cltang@codesourcery.com>
12397
12398         * config/nios2/constraints.md (U, v): New constraints.
12399         * config/nios2/predicates.md (rdprs_dcache_operand): New.
12400         (ldstex_memory_operand): New.
12401         * config/nios2/sync.md: New file.
12402         * config/nios2/nios2.md (unspecv): Add new builtin function
12403         UNSPECV codes.
12404         (rdprs, flushd, flushda, wrpie, eni): New patterns.
12405         (top-level): Include sync.md.
12406         * config/nios2/nios2.c (N2_FTYPES): Add function types for
12407         new builtins.
12408         (N2_BUILTINS): Add arch field setting, add new builtins.
12409         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12410         for arch field.
12411         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12412         Also handle ldex/stex/ldsex/stsex builtins.
12413         (nios2_expand_rdprs_builtin): New function.
12414         (nios2_expand_cache_builtin): New function.
12415         (nios2_expand_wrpie_builtin): New function.
12416         (nios2_expand_eni_builtin): New function.
12417         (nios2_expand_builtin): Add arch field handling and new builtin
12418         cases.
12419         * doc/extend.texi (Altera Nios II Built-in Functions): Document
12420         new builtins.
12421         * doc/md.texi (Machine Constraints): Document U and v constraints.
12422
12423 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12424             Cesar Philippidis  <cesar@codesourcery.com>
12425             Chung-Lin Tang  <cltang@codesourcery.com>
12426
12427         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12428         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12429         callee_save_reg_size and uses_anonymous_args fields.
12430         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12431         (nios2_create_cfa_notes): New function.
12432         (nios2_adjust_stack): New function for adjusting stack.
12433         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12434         Use nios2_adjust_stack.
12435         (nios2_expand_epilogue): Likewise.
12436         (nios2_expand_return): New function.
12437         (nios2_can_use_return_insn): Update for CDX pop.n usage.
12438         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12439         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12440         * config/nios2/nios2.md (return): Use nios2_expand_return.
12441
12442 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12443             Cesar Philippidis  <cesar@codesourcery.com>
12444             Chung-Lin Tang  <cltang@codesourcery.com>
12445
12446         * config/nios2/predicates.md (pop_operation): New.
12447         (ldwm_operation, stwm_operation): New.
12448         (nios2_hard_register_operand): New.
12449         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12450         (ldstwm_operation_p): Declare.
12451         (gen_ldstwm_peep): Declare.
12452         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12453         (base_reg_adjustment_p): New.
12454         (pop_operation_p): New.
12455         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12456         (nios2_ldstwm_regset_p): New.
12457         (ldstwm_operation_p): New.
12458         (gen_ldst): New.
12459         (nios2_ldst_parallel): New.
12460         (struct ldswm_operand): Declare.
12461         (compare_ldstwm_operands): New.
12462         (can_use_cdx_ldstw): New.
12463         (gen_ldstwm_peep): New.
12464         * config/nios2/nios2-ldstwm.sml: New.
12465         * config/nios2/nios2.md: Include ldstwm.md.
12466         * config/nios2/ldstwm.md: Generated.
12467
12468 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12469             Cesar Philippidis  <cesar@codesourcery.com>
12470             Chung-Lin Tang  <cltang@codesourcery.com>
12471
12472         * config/nios2/nios2.h (LABEL_ALIGN): Define.
12473         (REG_ALLOC_ORDER): Define.
12474         (ADJUST_REG_ALLOC_ORDER): Define.
12475         (HONOR_REG_ALLOC_ORDER): Define.
12476         (CDX_REG_P): Define.
12477         (ANDCLEAR_INT): Define.
12478         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12479         (nios2_label_align): Declare.
12480         (nios2_cdx_narrow_form_p): Declare.
12481         (nios2_adjust_reg_alloc_order): Declare.
12482         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12483         operation.
12484         (nios2_large_unspec_reloc_p): New function, split from...
12485         (nios2_legitimate_pic_operand_p): ...here.
12486         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12487         (nios2_print_operand_punct_valid_p): New.
12488         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
12489         (split_mem_address): New.
12490         (split_alu_insn): New.
12491         (cdxreg): New.
12492         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12493         (enum nios2_add_insn_kind): New.
12494         (nios2_add_insn_names, nios2_add_insn_narrow): New.
12495         (nios2_add_insn_classify): New.
12496         (nios2_add_insn_asm): New.
12497         (nios2_cdx_narrow_form_p): New.
12498         (label_align, min_labelno, max_labelno): New.
12499         (nios2_reorg): New.
12500         (nios2_label_align): New.
12501         (nios2_adjust_reg_alloc_order): New.
12502         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12503         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12504         * config/nios2/constraints.md (P): New constraint.
12505         * config/nios2/predicates.md (const_and_operand): New.
12506         (and_operand): New.
12507         (stack_memory_operand): New.
12508         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12509         (length): Update to use nios2_cdx_narrow_form_p().
12510         (type): Add new insn type values.
12511         (control, alu, st, ld, shift): Update insn reservations with
12512         new insn type values.
12513         (*high, *lo_sum): Define new insn patterns for constant generation.
12514         (movqi_internal, movhi_internal, movsi_internal): Reduce
12515         alternatives, update asm template to handle CDX variants, update
12516         type attributes.
12517         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12518         template, update type attributes.
12519         (extendhisi2, extendqi<mode>2): Likewise.
12520         (addsi3): Change to use function for asm string.
12521         (subsi3): Add CDX notation to asm template, update type attributes.
12522         (negsi3, one_cmplsi3): Likewise.
12523         (andsi3): New pattern, specialized from logical patterns.
12524         (<code>si3): Remove and case, combine alternatives, update asm
12525         template.
12526         (<shift_op>si3): Add CDX notation, update type attributes.
12527         (rotrsi3): Update type attribute.
12528         (*merge, extzv, insv): New insn patterns.
12529         (return): Change to define_expand.
12530         (simple_return): Add CDX notation, update type attributes.
12531         (indirect_jump): Add CDX notation.
12532         (jump): Update asm cases, update length attribute expression.
12533         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12534         (nios2_cbranch): Update asm cases and length attribute expression
12535         to handle CDX variants.
12536         (nios2_cmp<code>): Update asm template.
12537         (nop): Add CDX notation, update type attributes.
12538         (trap): Add CDX notation.
12539         (ctrapsi4): Update asm cases and length attribute expression to
12540         handle CDX variant.
12541         * doc/md.texi (Machine Constraints): Document P constraint.
12542
12543 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12544             Cesar Philippidis  <cesar@codesourcery.com>
12545             Chung-Lin Tang  <cltang@codesourcery.com>
12546
12547         * config/nios2/nios2.h (SMALL_INT12): New macro.
12548         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12549         (nios2_valid_addr_expr_p): Use it.
12550         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12551         with implicit "io" instructions on R2.
12552         * config/nios2/constraints.md (w): New constraint.
12553         * config/nios2/predicates.md (ldstio_memory_operand): New.
12554         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12555         operand predicate and constraint.
12556         (ld<bh>io_signed, st<bhw>io>): Likewise.
12557         * doc/md.texi (Machine Constraints): Document w constraint.
12558
12559 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12560             Cesar Philippidis  <cesar@codesourcery.com>
12561             Chung-Lin Tang  <cltang@codesourcery.com>
12562
12563         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12564         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12565         Nios II architecture level.
12566         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12567         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12568         (OPTION_DEFAULT_SPECS): Define.
12569         (ASM_SPEC): Add -march= spec strings.
12570         * config/nios2/nios2.c (nios2_option_override): Check for
12571         conflicts involving new options.
12572         * config.gcc (nios2*-*-*): Support --with-arch=.
12573         * doc/invoke.texi (Option Summary, Nios II Options): Document
12574         -march=, -mbmx, and -mcdx.
12575
12576 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
12577
12578         PR rtl-optimization/66626
12579         * lra-constraints.c (lra_constraints): Prevent equivalence
12580         substitution for static chain pseudo in functions with nonlocal
12581         goto.
12582
12583 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12584
12585         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12586         (nios2_emit_stack_limit_check): Add size parameter.  Handle
12587         -fstack-limit-symbol as well as -fstack-limit-register.
12588         (nios2_expand_prologue): Emit only a single stack limit check,
12589         even if multiple stack adjustments are required.
12590         (nios2_option_override): Diagnose unsupported combination of -fpic
12591         and -stack-limit-symbol.
12592
12593 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12594
12595         * Makefile.in (top_srcdir): New.
12596         * configure.ac: Use AM_ZLIB.
12597         * configure: Regeneated.
12598
12599 2015-07-14  Matthias Klose  <doko@ubuntu.com>
12600
12601         PR target/66840
12602         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12603
12604 2015-07-14  Richard Biener  <rguenther@suse.de>
12605
12606         PR tree-optimization/66863
12607         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12608         what we record for conversion use stmt lhs inequalities.
12609
12610 2015-07-14  Richard Biener  <rguenther@suse.de>
12611
12612         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12613         (decision_tree::gen_gimple): Likewise.
12614
12615 2015-07-14  Tom de Vries  <tom@codesourcery.com>
12616
12617         * gcc.c (greater_than_spec_func): Declare forward.
12618         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12619         -ftree-parallelize-loops={0,1}.
12620         (static_spec_functions): Add greater_than_spec_func function with name
12621         "gt".
12622         (greater_than_spec_func): New function.
12623
12624 2015-07-14  Richard Biener  <rguenther@suse.de>
12625
12626         * tree-ssa-dom.c (record_temporary_equivalences): Merge
12627         wideing type conversion case from record_equivalences_from_incoming_edge
12628         and use record_equality to record equivalences.
12629         (record_equivalences_from_incoming_edge): Call
12630         record_temporary_equivalences.
12631
12632 2015-07-14  Richard Biener  <rguenther@suse.de>
12633
12634         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12635         (struct if_expr): New.
12636         (struct with_expr): Likewise.
12637         (is_a_helper): Add helpers for if_expr and with_expr.
12638         (struct simplify): Add simplify_kind enum and member.  Remove
12639         ifexpr_vec member.
12640         (simplify::simplify): Adjust.
12641         (lower_commutative): Adjust.
12642         (lower_opt_convert): Likewise.
12643         (lower_cond): Likewise.
12644         (replace_id): Handle with_expr and if_expr.
12645         (lower_for): Adjust.
12646         (dt_simplify::gen_1): New recursive worker, split out from ...
12647         (dt_simplify::gen): ... here.  Deal with if and with expansion
12648         recursively.
12649         (capture_info::capture_info): Take context argument
12650         (capture_info::walk_result): Only analyze specific result.
12651         (parser::parse_result): New function.
12652         (parser::parse_simplify): Adjust to parse ifs with then end
12653         else case.
12654         (parser::parse_if): Simplify.
12655         (parser::parse_pattern): Pass down simplify kind.
12656         * match.pd: Convert if structure to new syntax.
12657
12658 2015-07-13  Marek Polacek  <polacek@redhat.com>
12659
12660         * rtl.c (rtx_equal_p_cb): Fix typo.
12661
12662 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
12663
12664         * omega.h: Don't include config.h, don't include params.h again if
12665         omega.h has already been included.
12666         * graphite-poly.h: Include sese.h.
12667         * graphite.c: Don't include sese.h, remove needless includes and
12668         minimize includes outside #ifdef HAVE_isl block.
12669         * graphite-blocking.c: Don't include sese.h, remove needless includes,
12670         and wrap entire file in #ifdef HAVE_isl
12671         * graphite-dependences.c: Likewise.
12672         * graphite-interchange.c: Likewise.
12673         * graphite-isl-ast-to-gimple.c: Likewise.
12674         * graphite-optimize-isl.c: Likewise.
12675         * graphite-poly.c: Likewise.
12676         * graphite-scop-detection.c: Likewise.
12677         * graphite-sese-to-poly.c: Likewise.
12678
12679 2015-07-13  Tom de Vries  <tom@codesourcery.com>
12680
12681         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12682
12683 2015-07-13  Renlin Li  <renlin.li@arm.com>
12684
12685         PR rtl/66556
12686         * simplify-rtx.c (simplify_const_relational_operation): Add
12687         side_effects_p checks.
12688
12689 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
12690
12691         * bitmap.h: Fix double word typos.
12692         * builtins.c: Same.
12693         * calls.c: Same.
12694         * cfgloopmanip.c: Same.
12695         * cgraph.c: Same.
12696         * cgraph.h: Same.
12697         * cgraphclones.c: Same.
12698         * combine.c: Same.
12699         * config/aarch64/aarch64-protos.h: Same.
12700         * config/aarch64/aarch64.c: Same.
12701         * config/aarch64/aarch64.md: Same.
12702         * config/arm/arm.md: Same.
12703         * config/arm/arm1020e.md: Same.
12704         * config/arm/arm1026ejs.md: Same.
12705         * config/arm/arm926ejs.md: Same.
12706         * config/arm/fa526.md: Same.
12707         * config/arm/fa606te.md: Same.
12708         * config/arm/fa626te.md: Same.
12709         * config/arm/fa726te.md: Same.
12710         * config/arm/fmp626.md: Same.
12711         * config/darwin.c: Same.
12712         * config/epiphany/epiphany.c: Same.
12713         * config/frv/frv.c: Same.
12714         * config/ft32/ft32.c: Same.
12715         * config/gnu-user.h: Same.
12716         * config/h8300/constraints.md: Same.
12717         * config/i386/i386.c: Same.
12718         * config/i386/i386.md: Same.
12719         * config/iq2000/iq2000.md: Same.
12720         * config/mips/mips.c: Same.
12721         * config/mmix/mmix.md: Same.
12722         * config/moxie/moxie.c: Same.
12723         * config/nds32/nds32.md: Same.
12724         * config/pa/pa.h: Same.
12725         * config/rs6000/aix.h: Same.
12726         * config/rs6000/rs6000.h: Same.
12727         * config/sh/sh.c: Same.
12728         * config/tilegx/tilegx.md: Same.
12729         * config/tilepro/gen-mul-tables.cc: Same.
12730         * cse.c: Same.
12731         * dbxout.c: Same.
12732         * doc/invoke.texi: Same.
12733         * dse.c: Same.
12734         * dwarf2out.c: Same.
12735         * final.c: Same.
12736         * gcc.c: Same.
12737         * genmatch.c: Same.
12738         * gimplify.c: Same.
12739         * hash-table.h: Same.
12740         * internal-fn.c: Same.
12741         * ipa-cp.c: Same.
12742         * ipa-devirt.c: Same.
12743         * ipa-icf.c: Same.
12744         * ipa-icf.h: Same.
12745         * ipa-profile.c: Same.
12746         * ipa-prop.c: Same.
12747         * ipa-prop.h: Same.
12748         * ira.c: Same.
12749         * omp-low.c: Same.
12750         * reg-stack.c: Same.
12751         * regcprop.c: Same.
12752         * reorg.c: Same.
12753         * rtl.h: Same.
12754         * sbitmap.h: Same.
12755         * tree-eh.c: Same.
12756         * tree-inline.c: Same.
12757         * tree-sra.c: Same.
12758         * tree-ssa-dom.c: Same.
12759         * tree-ssa-loop-ivopts.c: Same.
12760         * tree-ssa-structalias.c: Same.
12761         * tree-ssa-tail-merge.c: Same.
12762         * tree-ssa-ter.c: Same.
12763         * tree-ssa-threadupdate.c: Same.
12764         * tree-ssa-uninit.c: Same.
12765         * tree-ssanames.c: Same.
12766         * tree-vect-loop-manip.c: Same.
12767         * tree-vrp.c: Same.
12768         * tree.c: Same.
12769         * valtrack.c: Same.
12770         * vec.h: Same.
12771
12772 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12773
12774         PR middle-end/66726
12775         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12776         tree_ssa_phiopt_worker): Call it.
12777
12778 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12779
12780         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12781         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12782         REG_EQUAL note.
12783
12784 2015-07-11  Marek Polacek  <polacek@redhat.com>
12785
12786         PR middle-end/66353
12787         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12788         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12789         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12790         rather than bb_has_abnormal_call_pred.
12791         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12792         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12793         rather than bb_has_abnormal_call_pred.
12794
12795 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
12796
12797         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12798         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12799         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12800         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12801         v850_legitimate_address_p): New functions.
12802         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12803
12804 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
12805
12806         PR target/66819
12807         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12808         indirect sibcall with register arguments if register available
12809         for argument passing.
12810         (init_cumulative_args): Set cfun->machine->arg_reg_available
12811         to (cum->nregs > 0) or to true if function has a variable
12812         argument list.
12813         (function_arg_advance_32): Set cfun->machine->arg_reg_available
12814         to false if cum->nregs <= 0.
12815         * config/i386/i386.h (machine_function): Add arg_reg_available.
12816
12817 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12818
12819         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12820         and gen_higpart instead of gen_rtx_SUBREG.
12821         * config/i386/i386.md
12822         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12823         (read-modify peephole2): Use gen_lowpart instead of
12824         gen_rtx_SUBREG for operand 5.
12825
12826 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12827
12828         * config/tilepro/gen-mul-tables.cc (main): Change include list for
12829         generated files.
12830         * config/tilepro/mul-tables.c: Regenerate.
12831         * config/tilegx/mul-tables.c: Regenerate.
12832
12833 2015-07-10  Richard Biener  <rguenther@suse.de>
12834
12835         * fold-const.c (distribute_bit_expr): Remove.
12836         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12837         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12838         to A & (B | C) and simplifying A << C1 << C2 to ...
12839         * match.pd: ... patterns here.
12840
12841 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
12842
12843         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12844         Mark mem as READONLY and NOTRAP for PIC symbol.
12845
12846 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12847
12848         * gimple-predict.h: New file.
12849         (gimple_predict_predictor, gimple_predict_set_predictor,
12850         gimple_predict_outcome, gimple_predict_set_outcome,
12851         gimple_build_predict): Relocate here.
12852         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12853         gimple_predict_outcome, gimple_predict_set_outcome): Move to
12854         gimple-predict.h.
12855         * gimple.c (gimple_build_predict): Move to gimple-predict.h
12856         * basic-block.h: Don't include cfghooks.h.
12857         * backend.h: Don't include predict.h.
12858         * cfghooks.h: Include predict.h.
12859         * gimple-pretty-print.c: Include gimple-predict.h.
12860         * gimplify.c: Likwise.
12861         * predict.c: Adjust includes.
12862         * tree-inline.c: Likewise.
12863         * asan.c: Likewise.
12864         * auto-inc-dec.c: Likewise.
12865         * auto-profile.c: Likewise.
12866         * bb-reorder.c: Likewise.
12867         * builtins.c: Likewise.
12868         * caller-save.c: Likewise.
12869         * calls.c: Likewise.
12870         * cfganal.c: Likewise.
12871         * cfgbuild.c: Likewise.
12872         * cfg.c: Likewise.
12873         * cfgcleanup.c: Likewise.
12874         * cfgexpand.c: Likewise.
12875         * cfghooks.c: Likewise.
12876         * cfgloopanal.c: Likewise.
12877         * cfgloop.c: Likewise.
12878         * cfgloopmanip.c: Likewise.
12879         * cfgrtl.c: Likewise.
12880         * cgraph.c: Likewise.
12881         * cgraphunit.c: Likewise.
12882         * combine.c: Likewise.
12883         * cprop.c: Likewise.
12884         * cse.c: Likewise.
12885         * dce.c: Likewise.
12886         * dojump.c: Likewise.
12887         * dse.c: Likewise.
12888         * except.c: Likewise.
12889         * expmed.c: Likewise.
12890         * expr.c: Likewise.
12891         * final.c: Likewise.
12892         * fold-const.c: Likewise.
12893         * function.c: Likewise.
12894         * fwprop.c: Likewise.
12895         * gcc-plugin.h: Likewise.
12896         * gcse.c: Likewise.
12897         * genattrtab.c: Likewise.
12898         * genemit.c: Likewise.
12899         * gengtype.c: Likewise.
12900         * genopinit.c: Likewise.
12901         * genoutput.c: Likewise.
12902         * genpreds.c: Likewise.
12903         * genrecog.c: Likewise.
12904         * gimple-fold.c: Likewise.
12905         * gimple-iterator.c: Likewise.
12906         * gimple-ssa-isolate-paths.c: Likewise.
12907         * gimple-ssa-strength-reduction.c: Likewise.
12908         * graph.c: Likewise.
12909         * graphite-blocking.c: Likewise.
12910         * graphite.c: Likewise.
12911         * graphite-dependences.c: Likewise.
12912         * graphite-interchange.c: Likewise.
12913         * graphite-isl-ast-to-gimple.c: Likewise.
12914         * graphite-optimize-isl.c: Likewise.
12915         * graphite-poly.c: Likewise.
12916         * graphite-scop-detection.c: Likewise.
12917         * graphite-sese-to-poly.c: Likewise.
12918         * haifa-sched.c: Likewise.
12919         * ifcvt.c: Likewise.
12920         * internal-fn.c: Likewise.
12921         * ipa-cp.c: Likewise.
12922         * ipa-profile.c: Likewise.
12923         * ipa-split.c: Likewise.
12924         * ipa-utils.c: Likewise.
12925         * ira-build.c: Likewise.
12926         * ira-color.c: Likewise.
12927         * ira-conflicts.c: Likewise.
12928         * ira-costs.c: Likewise.
12929         * ira-emit.c: Likewise.
12930         * ira-lives.c: Likewise.
12931         * jump.c: Likewise.
12932         * loop-doloop.c: Likewise.
12933         * loop-init.c: Likewise.
12934         * loop-invariant.c: Likewise.
12935         * loop-unroll.c: Likewise.
12936         * lower-subreg.c: Likewise.
12937         * lra-assigns.c: Likewise.
12938         * lra.c: Likewise.
12939         * lra-coalesce.c: Likewise.
12940         * lra-constraints.c: Likewise.
12941         * lra-lives.c: Likewise.
12942         * lto-cgraph.c: Likewise.
12943         * lto-streamer-in.c: Likewise.
12944         * mode-switching.c: Likewise.
12945         * modulo-sched.c: Likewise.
12946         * omp-low.c: Likewise.
12947         * optabs.c: Likewise.
12948         * passes.c: Likewise.
12949         * postreload.c: Likewise.
12950         * postreload-gcse.c: Likewise.
12951         * profile.c: Likewise.
12952         * recog.c: Likewise.
12953         * regstat.c: Likewise.
12954         * reload1.c: Likewise.
12955         * reorg.c: Likewise.
12956         * rtlanal.c: Likewise.
12957         * sched-ebb.c: Likewise.
12958         * sel-sched-ir.c: Likewise.
12959         * sese.c: Likewise.
12960         * shrink-wrap.c: Likewise.
12961         * simplify-rtx.c: Likewise.
12962         * stmt.c: Likewise.
12963         * store-motion.c: Likewise.
12964         * tracer.c: Likewise.
12965         * trans-mem.c: Likewise.
12966         * tree-call-cdce.c: Likewise.
12967         * tree-cfg.c: Likewise.
12968         * tree-cfgcleanup.c: Likewise.
12969         * tree-chkp.c: Likewise.
12970         * tree-complex.c: Likewise.
12971         * tree-eh.c: Likewise.
12972         * tree-if-conv.c: Likewise.
12973         * tree-loop-distribution.c: Likewise.
12974         * tree-outof-ssa.c: Likewise.
12975         * tree-parloops.c: Likewise.
12976         * tree-predcom.c: Likewise.
12977         * tree-pretty-print.c: Likewise.
12978         * tree-profile.c: Likewise.
12979         * tree-sra.c: Likewise.
12980         * tree-ssa.c: Likewise.
12981         * tree-ssa-coalesce.c: Likewise.
12982         * tree-ssa-dce.c: Likewise.
12983         * tree-ssa-dom.c: Likewise.
12984         * tree-ssa-forwprop.c: Likewise.
12985         * tree-ssa-ifcombine.c: Likewise.
12986         * tree-ssa-loop-ch.c: Likewise.
12987         * tree-ssa-loop-im.c: Likewise.
12988         * tree-ssa-loop-ivcanon.c: Likewise.
12989         * tree-ssa-loop-ivopts.c: Likewise.
12990         * tree-ssa-loop-manip.c: Likewise.
12991         * tree-ssa-loop-prefetch.c: Likewise.
12992         * tree-ssa-loop-unswitch.c: Likewise.
12993         * tree-ssa-math-opts.c: Likewise.
12994         * tree-ssa-phiopt.c: Likewise.
12995         * tree-ssa-pre.c: Likewise.
12996         * tree-ssa-reassoc.c: Likewise.
12997         * tree-ssa-sink.c: Likewise.
12998         * tree-ssa-tail-merge.c: Likewise.
12999         * tree-ssa-threadedge.c: Likewise.
13000         * tree-ssa-threadupdate.c: Likewise.
13001         * tree-switch-conversion.c: Likewise.
13002         * tree-tailcall.c: Likewise.
13003         * tree-vect-data-refs.c: Likewise.
13004         * tree-vect-loop.c: Likewise.
13005         * tree-vect-loop-manip.c: Likewise.
13006         * tree-vectorizer.c: Likewise.
13007         * tree-vrp.c: Likewise.
13008         * ubsan.c: Likewise.
13009         * value-prof.c: Likewise.
13010         * varasm.c: Likewise.
13011         * var-tracking.c: Likewise.
13012         * config/aarch64/aarch64-builtins.c: Likewise.
13013         * config/aarch64/aarch64.c: Likewise.
13014         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13015         * config/alpha/alpha.c: Likewise.
13016         * config/arc/arc.c: Likewise.
13017         * config/arm/arm.c: Likewise.
13018         * config/avr/avr.c: Likewise.
13019         * config/bfin/bfin.c: Likewise.
13020         * config/c6x/c6x.c: Likewise.
13021         * config/cr16/cr16.c: Likewise.
13022         * config/cris/cris.c: Likewise.
13023         * config/darwin.c: Likewise.
13024         * config/darwin-c.c: Likewise.
13025         * config/epiphany/epiphany.c: Likewise.
13026         * config/epiphany/mode-switch-use.c: Likewise.
13027         * config/epiphany/resolve-sw-modes.c: Likewise.
13028         * config/fr30/fr30.c: Likewise.
13029         * config/frv/frv.c: Likewise.
13030         * config/ft32/ft32.c: Likewise.
13031         * config/h8300/h8300.c: Likewise.
13032         * config/i386/i386.c: Likewise.
13033         * config/i386/winnt.c: Likewise.
13034         * config/ia64/ia64.c: Likewise.
13035         * config/iq2000/iq2000.c: Likewise.
13036         * config/lm32/lm32.c: Likewise.
13037         * config/m32c/m32c.c: Likewise.
13038         * config/m32r/m32r.c: Likewise.
13039         * config/m68k/m68k.c: Likewise.
13040         * config/mcore/mcore.c: Likewise.
13041         * config/mep/mep.c: Likewise.
13042         * config/microblaze/microblaze.c: Likewise.
13043         * config/mips/mips.c: Likewise.
13044         * config/mmix/mmix.c: Likewise.
13045         * config/mn10300/mn10300.c: Likewise.
13046         * config/moxie/moxie.c: Likewise.
13047         * config/msp430/msp430.c: Likewise.
13048         * config/nds32/nds32.c: Likewise.
13049         * config/nds32/nds32-cost.c: Likewise.
13050         * config/nds32/nds32-fp-as-gp.c: Likewise.
13051         * config/nds32/nds32-intrinsic.c: Likewise.
13052         * config/nds32/nds32-isr.c: Likewise.
13053         * config/nds32/nds32-md-auxiliary.c: Likewise.
13054         * config/nds32/nds32-memory-manipulation.c: Likewise.
13055         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13056         * config/nds32/nds32-predicates.c: Likewise.
13057         * config/nios2/nios2.c: Likewise.
13058         * config/nvptx/nvptx.c: Likewise.
13059         * config/pa/pa.c: Likewise.
13060         * config/pdp11/pdp11.c: Likewise.
13061         * config/rl78/rl78.c: Likewise.
13062         * config/rs6000/rs6000.c: Likewise.
13063         * config/rx/rx.c: Likewise.
13064         * config/s390/s390.c: Likewise.
13065         * config/sh/sh.c: Likewise.
13066         * config/sh/sh-mem.cc: Likewise.
13067         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13068         * config/sh/sh_treg_combine.cc: Likewise.
13069         * config/sparc/sparc.c: Likewise.
13070         * config/spu/spu.c: Likewise.
13071         * config/stormy16/stormy16.c: Likewise.
13072         * config/tilegx/tilegx.c: Likewise.
13073         * config/tilepro/tilepro.c: Likewise.
13074         * config/v850/v850.c: Likewise.
13075         * config/vax/vax.c: Likewise.
13076         * config/visium/visium.c: Likewise.
13077         * config/xtensa/xtensa.c: Likewise.
13078
13079 2015-07-10  Richard Biener  <rguenther@suse.de>
13080
13081         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13082         (decision_tree::gen_gimple): Likewise.
13083         (decision_tree::gen_generic): Likewise.
13084
13085 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
13086
13087         PR target/66813
13088         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13089         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13090
13091 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
13092
13093         PR middle-end/66820
13094         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13095         or ORT_TASK contexts.
13096         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13097         is non-zero.
13098
13099 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13100
13101         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13102         above function.
13103
13104 2015-07-10  Tom de Vries  <tom@codesourcery.com>
13105
13106         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13107         insert nit + 1 bound.
13108
13109 2015-07-10  Richard Biener  <rguenther@suse.de>
13110
13111         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13112         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13113         (if_convertible_loop_p_1): For this always compute bb predicates.
13114         (if_convertible_loop_p): And free them.
13115
13116 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13117
13118         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13119         in dump message.
13120
13121 2015-07-10  Richard Biener  <rguenther@suse.de>
13122
13123         PR tree-optimization/66823
13124         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13125         inverted predicate.
13126
13127 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
13128
13129         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13130         to handle mips[32|64]r3 and mips[32|64]r5.
13131
13132 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
13133
13134         PR middle-end/66633
13135         * tree-nested.c (get_static_chain): Or in a flag into
13136         info->static_chain_added.
13137         (get_frame_field, get_nonlocal_debug_decl): Likewise.
13138         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13139         2015-07-01 changes.
13140         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13141         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13142         add it to clauses.
13143
13144         PR tree-optimization/66718
13145         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13146         field.
13147         (vect_simd_lane_linear): New function.
13148         (vectorizable_simd_clone_call): Support using linear arguments for
13149         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13150
13151 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13152
13153         PR target/66821
13154         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13155
13156 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13157
13158         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13159         Use machine mode, not enum machine_mode in the prototype.
13160
13161         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13162         classify 128-bit floating point support.
13163         (FLOAT128_IBM_P): Likewise.
13164         (FLOAT128_VECTOR_P): Likewise.
13165         (FLOAT128_2REG_P): Likewise.
13166         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13167         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13168         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13169         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13170
13171         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13172         tests against TFmode/TDmode, since those modes do not use VSX
13173         addresses.
13174         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13175         support.
13176         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13177         tests against TFmode, etc.
13178         (invalid_e500_subreg): Add tests against IFmode/KFmode.
13179         (reg_offset_addressing_ok_p): Likewise.
13180         (rs6000_legitimate_offset_address_p): Likewise.
13181         (rs6000_legitimize_address): Likewise.
13182         (rs6000_legitimize_reload_address): Likewise.
13183         (rs6000_legitimate_address_p): Clean up tests against TFmode and
13184         TDmode to use the new helper macros, which will include IFmode and
13185         KFmode.
13186         (rs6000_emit_move): Likewise.
13187         (rs6000_darwin64_record_arg_recurse): Likewise.
13188         (print_operand): Likewise.
13189         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13190         that uses a single vector register as a vector and not as a
13191         floating point register in terms of the calling sequence.
13192         (rs6000_discover_homogeneous_aggregate): Likewise.
13193         (rs6000_return_in_memory): Likewise.
13194         (init_cumulative_args): Likewise.
13195         (rs6000_function_arg_boundary): Likewise.
13196         (rs6000_function_arg_advance_1): Likewise.
13197         (rs6000_function_arg): Likewise.
13198         (rs6000_pass_by_reference): Likewise.
13199         (rs6000_gimplify_va_arg): Likewise.
13200         (rs6000_secondary_reload_memory): Use machine_mode not enum
13201         machine mode.
13202         (rs6000_split_multireg_move): Use new helper macros.
13203         (spe_func_has_64bit_regs_p): Likewise.
13204         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13205         (output_toc): Use new helper macros.
13206         (rs6000_register_move_cost): Likewise.
13207         (rs6000_function_value): Add IEEE 128-bit floating point calling
13208         sequence support.
13209         (rs6000_libcall_value): Likewise.
13210         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13211         floating point support.
13212         (rs6000_vector_mode_supported_p): Likewise.
13213
13214 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
13215
13216         PR rtl-optimization/66782
13217         * lra-int.h (struct lra_insn_recog_data): Add comment about
13218         clobbered hard regs for arg_hard_regs.
13219         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13220         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13221         Add condition for processing used hard regs.
13222         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13223         Process clobbered hard regs.
13224
13225 2015-07-09  Michael Matz  <matz@suse.de>
13226
13227         * genmatch.c (fprintf_indent): New function.
13228         (operand::gen_transform): Add indent parameter.
13229         (expr::gen_transform, c_expr::gen_transform,
13230         capture::gen_transform): Ditto and use fprintf_indent.
13231         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13232         (dt_operand::gen, dt_operand::gen_predicate,
13233         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13234         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13235         (decision_tree::gen_gimple): Adjust calls and indent generated
13236         code.
13237         (decision_tree::gen_generic): Ditto.
13238         (write_predicate): Ditto.
13239
13240 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13241
13242         PR target/66814
13243         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
13244         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
13245         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
13246         {GENERAL,SSE,MMX}_REG_P where appropriate.
13247
13248 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13249
13250         * lto-streamer.h: Don't include target.h and alloc-pool.h.
13251         * builtins.c: Adjust includes.
13252         * gimple.c: Likewise.
13253         * ipa-icf.c: Likewise.
13254         * lto-opts.c: Likewise.
13255         * ipa-reference.c: Likewise.
13256         * lto-section-out.c: Likewise.
13257         * lto-streamer-in.c: Likewise.
13258         * lto-streamer-out.c: Likewise.
13259         * opts-global.c: Likewise.
13260         * symtab.c: Likewise.
13261         * tree-chkp.c: Likewise.
13262         * tree-ssa-live.c: Likewise.
13263         * tree-streamer-in.c: Likewise.
13264         * tree-streamer-out.c: Likewise.
13265         * config/darwin.c: Likewise.
13266         * config/i386/winnt.c: Likewise.
13267
13268 2015-07-09  Richard Biener  <rguenther@suse.de>
13269
13270         * genmatch.c (struct expr): Add force_single_use flag.
13271         (expr::expr): Add copy constructor.
13272         (capture_info::walk_match): Gather force_single_use captures.
13273         (expr::gen_transform): Use possibly NULLified sequence.
13274         (dt_simplify::gen): Apply single-use restrictions by NULLifying
13275         seq if any constrained expr is not single-use.
13276         (parser::parse_expr): Refactor to allow multiple flags.  Handle
13277         's' flag to force an expression have a single-use if the pattern
13278         simplifies to more than one statement.
13279         * match.pd: Convert most single_use conditionals to :s flags.
13280
13281 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13282
13283         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13284         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13285         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13286
13287 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13288
13289         * flags.h: Don't include flag-types.h or options.h.
13290         * opts-common.c: Adjust includes.
13291         * opts-global.c: Likewise.
13292         * common/config/epiphany/epiphany-common.c: Likewise.
13293
13294 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13295
13296         PR target/66818
13297         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13298         for IA MCU.
13299
13300 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13301
13302         PR target/66817
13303         * config/i386/i386.c (ix86_return_in_memory): Return true
13304         if int_size_in_bytes returns negative for IA MCU.
13305
13306 2015-07-09  Marek Polacek  <polacek@redhat.com>
13307
13308         PR tree-optimization/66718
13309         * Makefile.in (OBJS): Add gimple-laddress.o.
13310         * passes.def: Schedule pass_laddress.
13311         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13312         * tree-pass.h (make_pass_laddress): Declare.
13313         * gimple-laddress.c: New file.
13314
13315 2015-07-09  Richard Biener  <rguenther@suse.de>
13316
13317         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13318
13319 2015-07-09  Richard Biener  <rguenther@suse.de>
13320
13321         PR tree-optimization/66807
13322         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13323
13324 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
13325
13326         * function.c (stack_protect_epilogue): Use if rather than switch for
13327         check targetm.have_stack_protect_test.
13328
13329 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13330
13331         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13332         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13333         * config/arc/arc.h: Likewise.
13334         * config/arm/arm.h: Likewise.
13335         * config/bfin/bfin.h: Likewise.
13336         * config/epiphany/epiphany.h: Likewise.
13337         * config/frv/frv.h: Likewise.
13338         * config/ia64/ia64.h: Likewise.
13339         * config/iq2000/iq2000.h: Likewise.
13340         * config/lm32/lm32.h: Likewise.
13341         * config/m32r/m32r.h: Likewise.
13342         * config/mcore/mcore.h: Likewise.
13343         * config/mep/mep.h: Likewise.
13344         * config/microblaze/microblaze.h: Likewise.
13345         * config/mips/mips.h: Likewise.
13346         * config/mmix/mmix.h: Likewise.
13347         * config/mn10300/mn10300.h: Likewise.
13348         * config/nds32/nds32.h: Likewise.
13349         * config/nios2/nios2.h: Likewise.
13350         * config/pa/pa.h: Likewise.
13351         * config/rl78/rl78.h: Likewise.
13352         * config/sh/sh.h: Likewise.
13353         * config/sparc/sparc.h: Likewise.
13354         * config/stormy16/stormy16.h: Likewise.
13355         * config/tilegx/tilegx.h: Likewise.
13356         * config/tilepro/tilepro.h: Likewise.
13357         * config/v850/v850.h: Likewise.
13358         * config/xtensa/xtensa.h: Likewise.
13359         * doc/tm.texi: Regenerate.
13360         * doc/tm.texi.in: Adjust.
13361         * combine.c (simplify_set): Likewise.
13362         (simplify_comparison): Likewise.
13363         * expr.c (store_constructor): Likewise.
13364         * internal-fn.c (expand_arith_overflow): Likewise.
13365         * reload.c (push_reload): Likewise.
13366         (find_reloads): Likewise.
13367         (find_reloads_subreg_address): Likewise.
13368         * reload1.c (eliminate_regs_1): Likewise.
13369         * rtlanal.c (nonzero_bits1): Likewise.
13370         (num_sign_bit_copies1): Likewise.
13371         * simplify-rtx.c (simplify_truncation): Likewise.
13372
13373 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13374
13375         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13376         of AUTO_INC_DEC with the preprocessor.
13377         * combine.c (combine_instructions): Likewise.
13378         (can_combine_p): Likewise.
13379         (try_combine): Likewise.
13380         * emit-rtl.c (try_split): Likewise.
13381         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13382         * lower-subreg.c (resolve_simple_move): Likewise.
13383         * lra.c (update_inc_notes): Likewise.
13384         * recog.c (asm_operand_ok): Likewise.
13385         (constrain_operands): Likewise.
13386         * regrename.c (scan_rtx_address): Likewise.
13387         * reload.c (update_auto_inc_notes): Likewise.
13388         (reg_inc_found_and_valid_p): Likewise.
13389         * reload1.c (reload): Likewise.
13390         (emit_input_reload_insns): Likewise.
13391         (delete_output_reload): Likewise.
13392         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13393         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13394
13395 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13396
13397         * rtl.h: Always define AUTO_INC_DEC.
13398         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13399         * combine.c (combine_instructions): Likewise.
13400         (can_combine_p): Likewise.
13401         (try_combine): Likewise.
13402         * emit-rtl.c (try_split): Likewise.
13403         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13404         * lower-subreg.c (resolve_simple_move): Likewise.
13405         * lra.c (update_inc_notes): Likewise.
13406         * recog.c (asm_operand_ok): Likewise.
13407         (constrain_operands): Likewise.
13408         * regrename.c (scan_rtx_address): Likewise.
13409         * reload.c (update_auto_inc_notes): Likewise.
13410         (find_equiv_reg): Likewise.
13411         * reload1.c (reload): Likewise.
13412         (reload_as_needed): Likewise.
13413         (choose_reload_regs): Likewise.
13414         (emit_input_reload_insns): Likewise.
13415         (delete_output_reload): Likewise.
13416         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13417         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13418
13419 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13420
13421         * combine.c (can_combine_def_p): Don't check the value of
13422         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13423         (combinable_i3pat): Likewise.
13424         (mark_used_regs_combine): Likewise.
13425         * regrename.c (rename_chains): Likewise.
13426         * reload.c (find_reloads_address): Likewise.
13427         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13428
13429 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13430
13431         * combine.c (update_rsp_from_reg_equal): Don't check if
13432         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13433         (reg_nonzero_bits_for_combine): Likewise.
13434         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13435         1.
13436         * config/frv/frv.h: Likewise.
13437         * config/lm32/lm32.h: Likewise.
13438         * config/mep/mep.h: Likewise.
13439         * config/mips/mips.h: Likewise.
13440         * config/rs6000/rs6000.h: Likewise.
13441         * config/sh/sh.h: Likewise.
13442         * config/tilegx/tilegx.h (enum reg_class): Likewise.
13443         * config/tilepro/tilepro.h: Likewise.
13444         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13445         * doc/tm.texi: Regenerate.
13446         * doc/tm.texi.in: Adjust.
13447         * rtlanal.c (nonzero_bits1): Likewise.
13448
13449 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13450
13451         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13452         with the preprocessor.
13453         (combine_instructions): Likewise.
13454         (try_combine): Likewise.
13455         (subst): Likewise.
13456         (distribute_notes): Likewise.
13457
13458 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13459
13460         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13461         defined.
13462         (simplify_set): Likewise.
13463         * cse.c (cse_insn): Likewise.
13464         * fold-const.c (fold_single_bit_test): Likewise.
13465         (fold_unary_loc): Likewise.
13466         * postreload.c (reload_cse_simplify_set): Likewise.
13467         (reload_cse_simplify_operands): Likewise.
13468
13469 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
13470
13471         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13472         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13473
13474 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13475
13476         PR target/66746
13477         * config/i386/x86intrin.h: Include <adxintrin.h> even if
13478         __iamcu__ is defined.
13479
13480 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13481
13482         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13483
13484 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
13485
13486         PR target/66523
13487         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13488         names from preservation.
13489
13490 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13491
13492         PR target/66806
13493         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13494         change for IAMCU.
13495         (function_arg_advance_32): Don't pass vectors in registers for
13496         IAMCU.
13497         (function_arg_32): Likewise.
13498         (ix86_return_in_memory): Don't return vectors in registers for
13499         IAMCU.
13500
13501 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13502
13503         PR middle-end/66334
13504         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13505         hard regno live at the start of BB with incoming abnormal edges.
13506         * lra-lives.c (process_bb_lives): Ditto.
13507
13508 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
13509
13510         PR libgomp/65099
13511         * config/nvptx/mkoffload.c (main): Create an offload image only in
13512         64-bit configurations.
13513
13514 2015-07-08  Martin Liska  <mliska@suse.cz>
13515
13516         PR bootstrap/66744
13517         * tree-sra.c (create_access_1): Call ctor without brackets.
13518         (create_artificial_child_access): Likewise.
13519
13520 2015-07-08  Richard Biener  <rguenther@suse.de>
13521
13522         PR tree-optimization/66793
13523         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13524         Properly split the block after stmts ending it.
13525
13526 2015-07-08  Richard Biener  <rguenther@suse.de>
13527
13528         PR tree-optimization/66794
13529         * passes.c (execute_function_todo): Assert that post-dominators
13530         are not computed.
13531         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13532         Free post-dominators.
13533
13534 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13535
13536         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13537         with early exit.
13538
13539 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13540
13541         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13542         more than or equal 8 and less than 32 when optimizing for size.
13543
13544 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13545
13546         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13547         COSTS_N_INSNS (1) and increment it appropriately throughout the
13548         function.
13549
13550 2015-07-08  Richard Biener  <rguenther@suse.de>
13551
13552         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13553
13554 2015-07-08  Alan Modra  <amodra@gmail.com>
13555
13556         * target.def (rtx_costs): Remove "code" param, add "mode".
13557         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13558         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
13559         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13560         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
13561         call.  Track mode when given in rtx.
13562         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
13563         (default_address_cost): Pass Pmode to rtx_cost.
13564         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13565         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13566         with NULL set.
13567         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
13568         (notreg_cost): Add mode param.  Use it.
13569         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
13570         mode param and pass to set_src_cost.  Update all calls.
13571         (hash_scan_set): Formatting.
13572         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13573         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13574         * hooks.h: Ditto.
13575         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13576         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13577         emit_store_flag): Update set_src_cost and rtx_cost calls.
13578         * auto-inc-dec.c (attempt_change): Likewise.
13579         * calls.c (precompute_register_parameters): Likewise.
13580         * combine.c (expand_compound_operation, make_extraction,
13581         force_to_mode, distribute_and_simplify_rtx): Likewise.
13582         * dojump.c (prefer_and_bit_test): Likewise.
13583         * dse.c (find_shift_sequence): Likewise.
13584         * expr.c (compress_float_constant): Likewise.
13585         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13586         * ifcvt.c (noce_try_sign_mask): Likewise.
13587         * loop-doloop.c (doloop_optimize): Likewise.
13588         * loop-invariant.c (create_new_invariant): Likewise.
13589         * lower-subreg.c (shift_cost, compute_costs): Likewise.
13590         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13591         lshift_cheap_p): Likewise.
13592         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13593         try_replace_in_use, reload_cse_move2add): Likewise.
13594         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13595         Likewise.
13596         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13597         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13598         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13599         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13600         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13601         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
13602         to rtx_cost calls.
13603         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13604         * config/arc/arc.c (arc_rtx_costs): Likewise.
13605         * config/arm/arm.c (arm_rtx_costs): Likewise.
13606         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13607         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13608         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13609         * config/cris/cris.c (cris_rtx_costs): Likewise.
13610         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13611         * config/frv/frv.c (frv_rtx_costs): Likewise.
13612         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13613         * config/i386/i386.c (ix86_rtx_costs): Likewise.
13614         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13615         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13616         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13617         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13618         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13619         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13620         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13621         * config/mep/mep.c (mep_rtx_cost): Likewise.
13622         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13623         * config/mips/mips.c (mips_rtx_costs): Likewise.
13624         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13625         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13626         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13627         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13628         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13629         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13630         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13631         * config/pa/pa.c (hppa_rtx_costs): Likewise.
13632         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13633         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13634         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13635         * config/s390/s390.c (s390_rtx_costs): Likewise.
13636         * config/sh/sh.c (sh_rtx_costs): Likewise.
13637         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13638         * config/spu/spu.c (spu_rtx_costs): Likewise.
13639         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13640         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13641         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13642         * config/v850/v850.c (v850_rtx_costs): Likewise.
13643         * config/vax/vax.c (vax_rtx_costs): Likewise.
13644         * config/visium/visium.c (visium_rtx_costs): Likewise.
13645         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13646         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13647         "code" param, and pass as outer_code to first rtx_cost call.  Pass
13648         mode to rtx_cost calls.
13649         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13650         calls.
13651         (aarch64_rtx_costs_wrapper): Update.
13652         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13653         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13654         rtx_cost calls.
13655         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13656         and rtx_cost calls.
13657         (avr_operand_rtx_cost): Similarly.
13658         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13659         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13660         * config/mips/mips.c (mips_stack_address_p): Comment typo.
13661         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13662         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13663         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13664         rtx_cost.
13665         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13666         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13667         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13668         * doc/tm.texi: Regenerate.
13669
13670 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
13671
13672         * tree-core.h: Include symtab.h.
13673         * rtl.h: Include hard-reg-set.h but not flags.h.
13674         (HARD_CONST): Remove condition compilation involving HARD_CONST since
13675         hard-reg-set.h is always included.
13676         * regs.h: Don't include hard-reg-set.h or rtl.h.
13677         * cfg.h: Include dominance.h.
13678         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13679         * backend.h: New.  Aggregate commonly used backend header files.
13680         * gimple-ssa.h: Don't include tree-hasher.h.
13681         * ssa.h: New.  Aggregate commonly used SSA header files.
13682         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13683         * sel-sched-ir.h: Flatten includes.
13684         * lra-int.h: Flatten completely.
13685         * sel-sched-dump.h: Flatten includes.
13686         * ira-int.h: Flatten includes.
13687         * gimple-streamer.h: Remove all includes.
13688         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13689         * resource.h: Flatten hard-reg-set.h and df.h.
13690         * sched-int.h: Flatten insn-arrt.h and df.h.
13691         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13692         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13693         * genattrtab.c (write_header): Adjust generated includes.
13694         * genautomata.c (main): Likewise.
13695         * genconditions.c (write-header): Likewise.
13696         * genemit.c (main): Likewise.
13697         * gengtype.c (open_base_files): Likewise.
13698         * genopinit.c (main): Likewise.
13699         * genoutput.c (output_prologue): Likewise.
13700         * genpeep.c (main): Likewise.
13701         * genpreds.c (write_insn_preds_c): Likewise.
13702         * genrecog.c (write_header): Likewise.
13703         * alias.c: Adjust includes.
13704         * asan.c: Likewise.
13705         * attribs.c: Likewise.
13706         * auto-inc-dec.c: Likewise.
13707         * auto-profile.c: Likewise.
13708         * bb-reorder.c: Likewise.
13709         * bt-load.c: Likewise.
13710         * builtins.c: Likewise.
13711         * caller-save.c: Likewise.
13712         * calls.c: Likewise.
13713         * ccmp.c: Likewise.
13714         * cfg.c: Likewise.
13715         * cfganal.c: Likewise.
13716         * cfgbuild.c: Likewise.
13717         * cfgcleanup.c: Likewise.
13718         * cfgexpand.c: Likewise.
13719         * cfghooks.c: Likewise.
13720         * cfgloop.c: Likewise.
13721         * cfgloopanal.c: Likewise.
13722         * cfgloopmanip.c: Likewise.
13723         * cfgrtl.c: Likewise.
13724         * cgraph.c: Likewise.
13725         * cgraphbuild.c: Likewise.
13726         * cgraphclones.c: Likewise.
13727         * cgraphunit.c: Likewise.
13728         * cilk-common.c: Likewise.
13729         * combine-stack-adj.c: Likewise.
13730         * combine.c: Likewise.
13731         * compare-elim.c: Likewise.
13732         * convert.c: Likewise.
13733         * coverage.c: Likewise.
13734         * cppbuiltin.c: Likewise.
13735         * cprop.c: Likewise.
13736         * cse.c: Likewise.
13737         * cselib.c: Likewise.
13738         * data-streamer-in.c: Likewise.
13739         * data-streamer-out.c: Likewise.
13740         * data-streamer.c: Likewise.
13741         * dbxout.c: Likewise.
13742         * dce.c: Likewise.
13743         * ddg.c: Likewise.
13744         * debug.c: Likewise.
13745         * df-core.c: Likewise.
13746         * df-problems.c: Likewise.
13747         * df-scan.c: Likewise.
13748         * dfp.c: Likewise.
13749         * dojump.c: Likewise.
13750         * dominance.c: Likewise.
13751         * domwalk.c: Likewise.
13752         * double-int.c: Likewise.
13753         * dse.c: Likewise.
13754         * dumpfile.c: Likewise.
13755         * dwarf2asm.c: Likewise.
13756         * dwarf2cfi.c: Likewise.
13757         * dwarf2out.c: Likewise.
13758         * emit-rtl.c: Likewise.
13759         * et-forest.c: Likewise.
13760         * except.c: Likewise.
13761         * explow.c: Likewise.
13762         * expmed.c: Likewise.
13763         * expr.c: Likewise.
13764         * final.c: Likewise.
13765         * fixed-value.c: Likewise.
13766         * fold-const.c: Likewise.
13767         * function.c: Likewise.
13768         * fwprop.c: Likewise.
13769         * gcc-plugin.h: Likewise.
13770         * gcse-common.c: Likewise.
13771         * gcse.c: Likewise.
13772         * generic-match-head.c: Likewise.
13773         * ggc-page.c: Likewise.
13774         * gimple-builder.c: Likewise.
13775         * gimple-expr.c: Likewise.
13776         * gimple-fold.c: Likewise.
13777         * gimple-iterator.c: Likewise.
13778         * gimple-low.c: Likewise.
13779         * gimple-match-head.c: Likewise.
13780         * gimple-pretty-print.c: Likewise.
13781         * gimple-ssa-isolate-paths.c: Likewise.
13782         * gimple-ssa-strength-reduction.c: Likewise.
13783         * gimple-streamer-in.c: Likewise.
13784         * gimple-streamer-out.c: Likewise.
13785         * gimple-walk.c: Likewise.
13786         * gimple.c: Likewise.
13787         * gimplify-me.c: Likewise.
13788         * gimplify.c: Likewise.
13789         * godump.c: Likewise.
13790         * graph.c: Likewise.
13791         * graphite-blocking.c: Likewise.
13792         * graphite-dependences.c: Likewise.
13793         * graphite-interchange.c: Likewise.
13794         * graphite-isl-ast-to-gimple.c: Likewise.
13795         * graphite-optimize-isl.c: Likewise.
13796         * graphite-poly.c: Likewise.
13797         * graphite-scop-detection.c: Likewise.
13798         * graphite-sese-to-poly.c: Likewise.
13799         * graphite.c: Likewise.
13800         * haifa-sched.c: Likewise.
13801         * hw-doloop.c: Likewise.
13802         * ifcvt.c: Likewise.
13803         * init-regs.c: Likewise.
13804         * internal-fn.c: Likewise.
13805         * ipa-chkp.c: Likewise.
13806         * ipa-comdats.c: Likewise.
13807         * ipa-cp.c: Likewise.
13808         * ipa-devirt.c: Likewise.
13809         * ipa-icf-gimple.c: Likewise.
13810         * ipa-icf.c: Likewise.
13811         * ipa-inline-analysis.c: Likewise.
13812         * ipa-inline-transform.c: Likewise.
13813         * ipa-inline.c: Likewise.
13814         * ipa-polymorphic-call.c: Likewise.
13815         * ipa-profile.c: Likewise.
13816         * ipa-prop.c: Likewise.
13817         * ipa-pure-const.c: Likewise.
13818         * ipa-ref.c: Likewise.
13819         * ipa-reference.c: Likewise.
13820         * ipa-split.c: Likewise.
13821         * ipa-utils.c: Likewise.
13822         * ipa-visibility.c: Likewise.
13823         * ipa.c: Likewise.
13824         * ira-build.c: Likewise.
13825         * ira-color.c: Likewise.
13826         * ira-conflicts.c: Likewise.
13827         * ira-costs.c: Likewise.
13828         * ira-emit.c: Likewise.
13829         * ira-lives.c: Likewise.
13830         * ira.c: Likewise.
13831         * jump.c: Likewise.
13832         * langhooks.c: Likewise.
13833         * lcm.c: Likewise.
13834         * loop-doloop.c: Likewise.
13835         * loop-init.c: Likewise.
13836         * loop-invariant.c: Likewise.
13837         * loop-iv.c: Likewise.
13838         * loop-unroll.c: Likewise.
13839         * lower-subreg.c: Likewise.
13840         * lra-assigns.c: Likewise.
13841         * lra-coalesce.c: Likewise.
13842         * lra-constraints.c: Likewise.
13843         * lra-eliminations.c: Likewise.
13844         * lra-lives.c: Likewise.
13845         * lra-remat.c: Likewise.
13846         * lra-spills.c: Likewise.
13847         * lra.c: Likewise.
13848         * lto-cgraph.c: Likewise.
13849         * lto-compress.c: Likewise.
13850         * lto-opts.c: Likewise.
13851         * lto-section-in.c: Likewise.
13852         * lto-section-out.c: Likewise.
13853         * lto-streamer-in.c: Likewise.
13854         * lto-streamer-out.c: Likewise.
13855         * lto-streamer.c: Likewise.
13856         * mcf.c: Likewise.
13857         * mode-switching.c: Likewise.
13858         * modulo-sched.c: Likewise.
13859         * omega.c: Likewise.
13860         * omp-low.c: Likewise.
13861         * optabs.c: Likewise.
13862         * opts-global.c: Likewise.
13863         * passes.c: Likewise.
13864         * plugin.c: Likewise.
13865         * postreload-gcse.c: Likewise.
13866         * postreload.c: Likewise.
13867         * predict.c: Likewise.
13868         * print-rtl.c: Likewise.
13869         * print-tree.c: Likewise.
13870         * profile.c: Likewise.
13871         * real.c: Likewise.
13872         * realmpfr.c: Likewise.
13873         * recog.c: Likewise.
13874         * ree.c: Likewise.
13875         * reg-stack.c: Likewise.
13876         * regcprop.c: Likewise.
13877         * reginfo.c: Likewise.
13878         * regrename.c: Likewise.
13879         * regstat.c: Likewise.
13880         * reload.c: Likewise.
13881         * reload1.c: Likewise.
13882         * reorg.c: Likewise.
13883         * resource.c: Likewise.
13884         * rtl-chkp.c: Likewise.
13885         * rtlanal.c: Likewise.
13886         * rtlhooks.c: Likewise.
13887         * sanopt.c: Likewise.
13888         * sched-deps.c: Likewise.
13889         * sched-ebb.c: Likewise.
13890         * sched-rgn.c: Likewise.
13891         * sched-vis.c: Likewise.
13892         * sdbout.c: Likewise.
13893         * sel-sched-dump.c: Likewise.
13894         * sel-sched-ir.c: Likewise.
13895         * sel-sched.c: Likewise.
13896         * sese.c: Likewise.
13897         * shrink-wrap.c: Likewise.
13898         * simplify-rtx.c: Likewise.
13899         * stack-ptr-mod.c: Likewise.
13900         * stmt.c: Likewise.
13901         * stor-layout.c: Likewise.
13902         * store-motion.c: Likewise.
13903         * stringpool.c: Likewise.
13904         * symtab.c: Likewise.
13905         * target-globals.c: Likewise.
13906         * targhooks.c: Likewise.
13907         * toplev.c: Likewise.
13908         * tracer.c: Likewise.
13909         * trans-mem.c: Likewise.
13910         * tree-affine.c: Likewise.
13911         * tree-browser.c: Likewise.
13912         * tree-call-cdce.c: Likewise.
13913         * tree-cfg.c: Likewise.
13914         * tree-cfgcleanup.c: Likewise.
13915         * tree-chkp-opt.c: Likewise.
13916         * tree-chkp.c: Likewise.
13917         * tree-chrec.c: Likewise.
13918         * tree-complex.c: Likewise.
13919         * tree-data-ref.c: Likewise.
13920         * tree-dfa.c: Likewise.
13921         * tree-diagnostic.c: Likewise.
13922         * tree-dump.c: Likewise.
13923         * tree-eh.c: Likewise.
13924         * tree-emutls.c: Likewise.
13925         * tree-if-conv.c: Likewise.
13926         * tree-inline.c: Likewise.
13927         * tree-into-ssa.c: Likewise.
13928         * tree-iterator.c: Likewise.
13929         * tree-loop-distribution.c: Likewise.
13930         * tree-nested.c: Likewise.
13931         * tree-nrv.c: Likewise.
13932         * tree-object-size.c: Likewise.
13933         * tree-outof-ssa.c: Likewise.
13934         * tree-parloops.c: Likewise.
13935         * tree-phinodes.c: Likewise.
13936         * tree-predcom.c: Likewise.
13937         * tree-pretty-print.c: Likewise.
13938         * tree-profile.c: Likewise.
13939         * tree-scalar-evolution.c: Likewise.
13940         * tree-sra.c: Likewise.
13941         * tree-ssa-address.c: Likewise.
13942         * tree-ssa-alias.c: Likewise.
13943         * tree-ssa-ccp.c: Likewise.
13944         * tree-ssa-coalesce.c: Likewise.
13945         * tree-ssa-copy.c: Likewise.
13946         * tree-ssa-copyrename.c: Likewise.
13947         * tree-ssa-dce.c: Likewise.
13948         * tree-ssa-dom.c: Likewise.
13949         * tree-ssa-dse.c: Likewise.
13950         * tree-ssa-forwprop.c: Likewise.
13951         * tree-ssa-ifcombine.c: Likewise.
13952         * tree-ssa-live.c: Likewise.
13953         * tree-ssa-loop-ch.c: Likewise.
13954         * tree-ssa-loop-im.c: Likewise.
13955         * tree-ssa-loop-ivcanon.c: Likewise.
13956         * tree-ssa-loop-ivopts.c: Likewise.
13957         * tree-ssa-loop-manip.c: Likewise.
13958         * tree-ssa-loop-niter.c: Likewise.
13959         * tree-ssa-loop-prefetch.c: Likewise.
13960         * tree-ssa-loop-unswitch.c: Likewise.
13961         * tree-ssa-loop.c: Likewise.
13962         * tree-ssa-math-opts.c: Likewise.
13963         * tree-ssa-operands.c: Likewise.
13964         * tree-ssa-phiopt.c: Likewise.
13965         * tree-ssa-phiprop.c: Likewise.
13966         * tree-ssa-pre.c: Likewise.
13967         * tree-ssa-propagate.c: Likewise.
13968         * tree-ssa-reassoc.c: Likewise.
13969         * tree-ssa-sccvn.c: Likewise.
13970         * tree-ssa-scopedtables.c: Likewise.
13971         * tree-ssa-sink.c: Likewise.
13972         * tree-ssa-strlen.c: Likewise.
13973         * tree-ssa-structalias.c: Likewise.
13974         * tree-ssa-tail-merge.c: Likewise.
13975         * tree-ssa-ter.c: Likewise.
13976         * tree-ssa-threadedge.c: Likewise.
13977         * tree-ssa-threadupdate.c: Likewise.
13978         * tree-ssa-uncprop.c: Likewise.
13979         * tree-ssa-uninit.c: Likewise.
13980         * tree-ssa.c: Likewise.
13981         * tree-ssanames.c: Likewise.
13982         * tree-stdarg.c: Likewise.
13983         * tree-streamer-in.c: Likewise.
13984         * tree-streamer-out.c: Likewise.
13985         * tree-streamer.c: Likewise.
13986         * tree-switch-conversion.c: Likewise.
13987         * tree-tailcall.c: Likewise.
13988         * tree-vect-data-refs.c: Likewise.
13989         * tree-vect-generic.c: Likewise.
13990         * tree-vect-loop-manip.c: Likewise.
13991         * tree-vect-loop.c: Likewise.
13992         * tree-vect-patterns.c: Likewise.
13993         * tree-vect-slp.c: Likewise.
13994         * tree-vect-stmts.c: Likewise.
13995         * tree-vectorizer.c: Likewise.
13996         * tree-vrp.c: Likewise.
13997         * tree.c: Likewise.
13998         * tsan.c: Likewise.
13999         * ubsan.c: Likewise.
14000         * valtrack.c: Likewise.
14001         * value-prof.c: Likewise.
14002         * var-tracking.c: Likewise.
14003         * varasm.c: Likewise.
14004         * varpool.c: Likewise.
14005         * vmsdbgout.c: Likewise.
14006         * vtable-verify.c: Likewise.
14007         * web.c: Likewise.
14008         * wide-int.cc: Likewise.
14009         * xcoffout.c: Likewise.
14010         * config/aarch64/aarch64-builtins.c: Likewise.
14011         * config/aarch64/aarch64.c: Likewise.
14012         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14013         * config/alpha/alpha.c: Likewise.
14014         * config/arc/arc.c: Likewise.
14015         * config/arm/aarch-common.c: Likewise.
14016         * config/arm/arm-builtins.c: Likewise.
14017         * config/arm/arm-c.c: Likewise.
14018         * config/arm/arm.c: Likewise.
14019         * config/avr/avr-c.c: Likewise.
14020         * config/avr/avr-log.c: Likewise.
14021         * config/avr/avr.c: Likewise.
14022         * config/bfin/bfin.c: Likewise.
14023         * config/c6x/c6x.c: Likewise.
14024         * config/cr16/cr16.c: Likewise.
14025         * config/cris/cris.c: Likewise.
14026         * config/darwin-c.c: Likewise.
14027         * config/darwin.c: Likewise.
14028         * config/epiphany/epiphany.c: Likewise.
14029         * config/epiphany/mode-switch-use.c: Likewise.
14030         * config/epiphany/resolve-sw-modes.c: Likewise.
14031         * config/fr30/fr30.c: Likewise.
14032         * config/frv/frv.c: Likewise.
14033         * config/ft32/ft32.c: Likewise.
14034         * config/h8300/h8300.c: Likewise.
14035         * config/i386/i386-c.c: Likewise.
14036         * config/i386/i386.c: Likewise.
14037         * config/i386/msformat-c.c: Likewise.
14038         * config/i386/winnt-cxx.c: Likewise.
14039         * config/i386/winnt-stubs.c: Likewise.
14040         * config/i386/winnt.c: Likewise.
14041         * config/ia64/ia64-c.c: Likewise.
14042         * config/ia64/ia64.c: Likewise.
14043         * config/iq2000/iq2000.c: Likewise.
14044         * config/lm32/lm32.c: Likewise.
14045         * config/m32c/m32c-pragma.c: Likewise.
14046         * config/m32c/m32c.c: Likewise.
14047         * config/m32r/m32r.c: Likewise.
14048         * config/m68k/m68k.c: Likewise.
14049         * config/mcore/mcore.c: Likewise.
14050         * config/mep/mep-pragma.c: Likewise.
14051         * config/mep/mep.c: Likewise.
14052         * config/microblaze/microblaze-c.c: Likewise.
14053         * config/microblaze/microblaze.c: Likewise.
14054         * config/mips/mips.c: Likewise.
14055         * config/mmix/mmix.c: Likewise.
14056         * config/mn10300/mn10300.c: Likewise.
14057         * config/moxie/moxie.c: Likewise.
14058         * config/msp430/msp430-c.c: Likewise.
14059         * config/msp430/msp430.c: Likewise.
14060         * config/nds32/nds32-cost.c: Likewise.
14061         * config/nds32/nds32-fp-as-gp.c: Likewise.
14062         * config/nds32/nds32-intrinsic.c: Likewise.
14063         * config/nds32/nds32-isr.c: Likewise.
14064         * config/nds32/nds32-md-auxiliary.c: Likewise.
14065         * config/nds32/nds32-memory-manipulation.c: Likewise.
14066         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14067         * config/nds32/nds32-predicates.c: Likewise.
14068         * config/nds32/nds32.c: Likewise.
14069         * config/nios2/nios2.c: Likewise.
14070         * config/nvptx/nvptx.c: Likewise.
14071         * config/pa/pa.c: Likewise.
14072         * config/pdp11/pdp11.c: Likewise.
14073         * config/rl78/rl78-c.c: Likewise.
14074         * config/rl78/rl78.c: Likewise.
14075         * config/rs6000/rs6000-c.c: Likewise.
14076         * config/rs6000/rs6000.c: Likewise.
14077         * config/rx/rx.c: Likewise.
14078         * config/s390/s390-c.c: Likewise.
14079         * config/s390/s390.c: Likewise.
14080         * config/sh/sh-c.c: Likewise.
14081         * config/sh/sh-mem.cc: Likewise.
14082         * config/sh/sh.c: Likewise.
14083         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14084         * config/sh/sh_treg_combine.cc: Likewise.
14085         * config/sol2-c.c: Likewise.
14086         * config/sol2-cxx.c: Likewise.
14087         * config/sol2-stubs.c: Likewise.
14088         * config/sol2.c: Likewise.
14089         * config/sparc/sparc-c.c: Likewise.
14090         * config/sparc/sparc.c: Likewise.
14091         * config/spu/spu-c.c: Likewise.
14092         * config/spu/spu.c: Likewise.
14093         * config/stormy16/stormy16.c: Likewise.
14094         * config/tilegx/mul-tables.c: Likewise.
14095         * config/tilegx/tilegx-c.c: Likewise.
14096         * config/tilegx/tilegx.c: Likewise.
14097         * config/tilepro/mul-tables.c: Likewise.
14098         * config/tilepro/tilepro-c.c: Likewise.
14099         * config/tilepro/tilepro.c: Likewise.
14100         * config/v850/v850-c.c: Likewise.
14101         * config/v850/v850.c: Likewise.
14102         * config/vax/vax.c: Likewise.
14103         * config/visium/visium.c: Likewise.
14104         * config/vms/vms-c.c: Likewise.
14105         * config/vms/vms.c: Likewise.
14106         * config/vxworks.c: Likewise.
14107         * config/xtensa/xtensa.c: Likewise.
14108
14109 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
14110
14111         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14112         Remove operand constraints.  Change operand 2 predicate to
14113         nonmemory operand.  Limit const_int values to mode bitsize.  Only
14114         allow const_int values less than 32 when optimizing for size.
14115         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14116         Remove operand constraints.
14117         (*bt<mode>): Use SImode for const_int values less than 32.
14118         (regmode): Remove mode attribute.
14119
14120 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
14121
14122         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14123         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14124           moxie_legitimate_address_p): New functions.
14125           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14126
14127 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14128
14129         PR tree-optimization/66642
14130         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14131         header comment.  Rename split_edge variable to edge_at_split.  Split
14132         exit edge to create new loop exit bb.  Insert loop exit phis in new
14133         loop exit bb.
14134
14135 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14136
14137         * tree-cfg.c (get_virtual_phi): New function.
14138         * tree-cfg.h (get_virtual_phi): Declare.
14139         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14140         (rewrite_virtuals_into_loop_closed_ssa): New function.
14141         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14142         Declare.
14143         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14144         (transform_to_exit_first_loop_alt): Use
14145         rewrite_virtuals_into_loop_closed_ssa.
14146
14147 2015-07-07  Richard Biener  <rguenther@suse.de>
14148
14149         * fold-const.c (fold_binary_loc): Move
14150         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14151         * match.pd: ... here.
14152         Add (X * C1) % C2 -> 0 simplification pattern derived from
14153         extract_muldiv_1.
14154
14155 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
14156
14157         PR target/66780
14158         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14159         change for target/65249.
14160
14161 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
14162
14163         * symtab.c (address_matters_1): Fix typo in comment above.
14164         (can_increase_alignment_p): Likewise.
14165
14166 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14167
14168         * function.c (free_after_compilation): Clear PROP_cfg in
14169         f->curr_properties.
14170
14171 2015-07-07  Richard Biener  <rguenther@suse.de>
14172
14173         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14174         add which use to.
14175         (add_control_edge): Remove excessive vertical space in dumping.
14176         (process_ssa_edge_worklist): Simulate at most one statement and
14177         return whether we did.  Do not simulate PHIs if they are in a
14178         BB not yet simulated.
14179         (ssa_propagate): Adjust to always drain the BB worklist whenever
14180         a BB is available there, likewise the VARYING edges list before
14181         the interesting edge list.
14182
14183 2015-07-07  Christian Bruel  <christian.bruel@st.com>
14184
14185         PR target/52144
14186         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14187
14188 2015-07-07  Richard Biener  <rguenther@suse.de>
14189
14190         PR middle-end/66739
14191         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14192         A - B.
14193
14194 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14195
14196         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
14197         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
14198         Copy operand 0 to a temporary if !ext_register_operand.  Remove
14199         ancient extract_bit_field workaround.
14200         (insv<mode>_1): Rename from mov<mode>_insv_1.
14201         (*insvqi): Rename from *movqi_insv_2.
14202         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14203         for renamed insvsi_1.
14204         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14205
14206 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14207
14208         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
14209         call to nvptx_reorg_subreg.
14210
14211 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
14212
14213         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14214         * graphite-dependencies.c, graphite-interchange.c,
14215         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14216         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14217         Likewise.
14218
14219 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
14220
14221         * match.pd: Remove element_mode inside HONOR_*.
14222         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14223         (~X | X -> -1, ~X ^ X -> -1): Merge.
14224         * tree.c (build_each_one_cst): New function.
14225         * tree.h (build_each_one_cst): Likewise.
14226
14227 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14228
14229         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14230         PROCESSOR_IAMCU.
14231
14232 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
14233
14234         * config.gcc <mips*-*-*>: Add fused-madd.opt.
14235         * config/mips/mips.opt (mfused-madd): Remove.
14236         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14237         * config/mips/mips.h (TARGET_MIPS8000): New.
14238         (ISA_HAS_FP_MADD4_MSUB4): Remove.
14239         (ISA_HAS_FP_MADDF_MSUBF): Remove.
14240         (ISA_HAS_FP_MADD3_MSUB3): Remove.
14241         (ISA_HAS_NMADD4_NMSUB4): Remove.
14242         (ISA_HAS_NMADD3_NMSUB3): Remove.
14243         (ISA_HAS_FUSED_MADD4): New.
14244         (ISA_HAS_UNFUSED_MADD4): New.
14245         (ISA_HAS_FUSED_MADDF): New.
14246         (ISA_HAS_FUSED_MADD3): New.
14247         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
14248         (*fma<mode>4_madd3) New.
14249         (*fma<mode>4_madd4) New.
14250         (*fma<mode>4_maddf) New.
14251         (fms<mode>4) New.
14252         (*fms<mode>4_msub3) New.
14253         (*fms<mode>4_msub4) New.
14254         (fnma<mode>4) New.
14255         (*fnma<mode>4_nmadd3) New.
14256         (*fnma<mode>4_nmadd4) New.
14257         (fnms<mode>4) New.
14258         (*fnms<mode>4_nmsub3) New.
14259         (*fnms<mode>4_nmsub4) New.
14260         (*madd4<mode>) Modify to be unfused only.
14261         (*msub4<mode>) Modify to be unfused only.
14262         (*nmadd4<mode>) Modify to be unfused only.
14263         (*nmsub4<mode>) Modify to be unfused only.
14264         (*madd3<mode>) Remove.
14265         (*msub3<mode>) Remove.
14266         (*nmadd3<mode>) Remove.
14267         (*nmsub3<mode>) Remove.
14268         (*nmadd3<mode>_fastmath) Remove.
14269         (*nmsub3<mode>_fastmath) Remove.
14270         (*nmadd4<mode>_fastmath) Update condition.
14271         (*nmsub4<mode>_fastmath) Update condition.
14272
14273 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14274
14275         PR target/65956
14276         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14277         alignment attribute, exploring one level down for records and arrays.
14278
14279 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14280
14281         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
14282         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
14283         Copy operand 1 to a temporary if !ext_register_operand.  Remove
14284         ancient extract_bit_field workaround.
14285         (*extv<mode>): Rename from *mov<mode>_extv_1.
14286         (*extvqi): Rename from *movqi_extv_1.
14287         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
14288         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
14289         to a temporary if !ext_register_operand.  Remove ancient
14290         extract_bit_field workaround.
14291         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14292         (*extzvqi): Rename from *movqi_extzv_2.
14293         (*testqi_ext_3): Remove modes from const_int_operand predicated
14294         operands.  Add "n" constraint.
14295         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14296         operand.  Add "J" constraint.
14297         (*btsq, *btrq, *btcq peephole2s): Remove mode from
14298         const_0_to_63 predicated operand.
14299         (regmode): New insn attribute.
14300         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
14301         to nonmemory_operand.  Use regmode insn attribute.
14302         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14303         (*jcc_bt<mode>_mask): Remove mode from operand 3.
14304         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14305         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14306         operands.  Use "N" constraint instead of "n".
14307
14308 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14309
14310         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14311
14312 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14313
14314         PR target/66749
14315         * config/i386/i386.c (iamcu_cost): New.
14316         (m_IAMCU): Likewise.
14317         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14318         (processor_target_table): Add an entry for "iamcu".
14319         (processor_alias_table): Likewise.
14320         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14321         (ix86_adjust_cost): Likewise.
14322         (ia32_multipass_dfa_lookahead): Likewise.
14323         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14324         * config/i386/x86-tune.def: Updated for m_IAMCU.
14325
14326 2015-07-06  Richard Biener  <rguenther@suse.de>
14327
14328         PR tree-optimization/66772
14329         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14330         values are available in the PHI node BB when there are
14331         still unexecutable edges.
14332
14333 2015-07-06  Richard Biener  <rguenther@suse.de>
14334
14335         PR tree-optimization/66767
14336         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14337         Make sure to build the alignment test on a SSA name without
14338         final alignment info valid only if the alignment test
14339         evaluates to true.
14340
14341 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14342
14343         PR target/66620
14344         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14345         loop start when inserting LSETUP.
14346
14347 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14348
14349         PR target/53383
14350         * config/i386/i386.c (ix86_option_override_internal): Allow
14351         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14352
14353 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14354
14355         * read-md.c (decimal_string): Rename to ...
14356         (md_decimal_string): ... this.
14357         (handle_enum): Reflect this.
14358
14359 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14360
14361         PR target/66731
14362         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14363
14364 2015-07-06  Richard Biener  <rguenther@suse.de>
14365
14366         PR middle-end/66759
14367         * match.pd: Add missing constraint of y to REAL_CST in
14368         REAL_CST - x CMP y to y - CST CMP x simplification.
14369
14370 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
14371
14372         PR tree-optimization/66757
14373         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14374
14375 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
14376             Sandra Loosemore <sandra@codesourcery.com>
14377
14378         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14379         Delete extern declaration.
14380         (gprel_constant_p): Add extern declaration.
14381         * config/nios2/constraints.md ("S"): Use gprel_constant_p
14382         instead of nios2_symbol_ref_in_small_data_p.
14383         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14384         (nios2_symbol_ref_in_small_data_p): Make static.
14385         (gprel_constant_p): Make non-static.
14386
14387 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14388
14389         * doc/fragments.texi (Target Fragment): Convert debian.org
14390         link to use https.
14391         * doc/install.texi (Configuration): Ditto.
14392
14393 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
14394
14395         PR tree-optimization/66718
14396         * tree-vect-stmts.c (vectorizable_call): Replace uses of
14397         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14398
14399         PR tree-optimization/66718
14400         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14401         vectorizable_load, vectorizable_condition): Move vectype,
14402         nunits, ncopies computation after checking what kind of statement
14403         stmt is.
14404
14405 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14406
14407         * target-insns.def (extv, extzv, insv): New targetm instruction
14408         patterns.
14409         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14410         interface.
14411         * recog.c (simplify_while_replacing): Likewise.
14412
14413 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14414
14415         * target-insns.def (doloop_begin, doloop_end): New targetm
14416         instruction patterns.
14417         * loop-init.c: Include target.h.
14418         (pass_loop2::gate): Use the new targetm patterns instead of
14419         HAVE_*/gen_* interface.
14420         (pass_rtl_doloop::gate): Likewise.
14421         (pass_rtl_doloop::execute): Remove preprocessor condition.
14422         * hw-doloop.c: Build unconditionally.
14423         * loop-doloop.c: Likewise.
14424         (doloop_optimize): Use the new targetm patterns instead of
14425         HAVE_*/gen_* interface.
14426         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14427         * modulo-sched.c (doloop_register_get): Likewise.
14428
14429 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14430
14431         * target-insns.def (clear_cache): New targetm instruction pattern.
14432         * builtins.c (expand_builtin___clear_cache): Use it instead of
14433         HAVE_*/gen_* interface.
14434
14435 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14436
14437         * target-insns.def (allocate_stack, check_stack, probe_stack)
14438         (probe_stack_address, split_stack_prologue, split_stack_space_check):
14439         New targetm instruction patterns.
14440         * explow.c (allocate_dynamic_stack_space): Use them instead of
14441         HAVE_*/gen_* interface.
14442         (emit_stack_probe): Likewise.
14443         (probe_stack_range): Likewise.
14444         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14445
14446 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14447
14448         * target-insns.def (stack_protect_set, stack_protect_test): New
14449         targetm instruction patterns.
14450         * cfgexpand.c (stack_protect_prologue): Use them instead of
14451         HAVE_*/gen_* interface.
14452         * function.c (stack_protect_epilogue): Likewise.
14453
14454 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14455
14456         * expr.h (gen_move_insn_uncast): Delete.
14457         * expr.c (gen_move_insn_uncast): Delete.
14458
14459 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14460
14461         * target-insns.def (restore_stack_block, restore_stack_function)
14462         (restore_stack_nonlocal, save_stack_block, save_stack_function)
14463         (save_stack_nonlocal): New targetm instruction patterns.
14464         * builtins.c (expand_builtin_apply): Use them instead of
14465         HAVE_*/gen_* interface.
14466         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14467
14468 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14469
14470         * target-insns.def (trap): New targetm instruction pattern.
14471         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14472         interface.
14473         * explow.c (allocate_dynamic_stack_space): Likewise.
14474         * ifcvt.c (find_if_header): Likewise.
14475
14476 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14477
14478         * target-insns.def (prefetch): New targetm instruction pattern.
14479         * tree-ssa-loop-prefetch.c: Include targeth.
14480         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14481         of HAVE_*/gen_* interface.
14482         * builtins.c (expand_builtin_prefetch): Likewise.
14483         * toplev.c (process_options): Likewise.
14484
14485 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14486
14487         * target-insns.def (untyped_call, untyped_return): New targetm
14488         instruction patterns.
14489         * builtins.c (expand_builtin_apply): Use them instead of
14490         HAVE_*/gen_* interface.
14491         (result_vector): Define unconditionally.
14492
14493 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14494
14495         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14496         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14497         (nonlocal_goto_receiver): New targetm instruction patterns.
14498         * builtins.c (expand_builtin_setjmp_setup): Use them instead
14499         of HAVE_*/gen_* interface.
14500         (expand_builtin_setjmp_receiver): Likewise.
14501         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14502         * except.c (expand_dw2_landing_pad_for_region): Likewise.
14503
14504 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14505
14506         * target.def: Add code_for_* hooks.
14507         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14508         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14509         * target-insns.def (casesi, tablejump): New targetm instruction
14510         patterns.
14511         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14512         (do_tablejump): Likewise.
14513         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14514         (expand_sjlj_dispatch_table): Likewise.
14515         * targhooks.c (default_case_values_threshold): Likewise.
14516
14517 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
14518
14519         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14520         Use rtx_insn * instead of rtx.
14521         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14522         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14523         (nios2_call_tls_get_addr): Likewise.
14524         (nios2_emit_expensive_div): Likewise.
14525         (nios2_emit_move_sequence): Change return type to bool.
14526         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14527         Change return type to bool.
14528
14529 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14530
14531         PR target/66747
14532         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14533
14534 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
14535
14536         PR target/66114
14537         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14538         of register_operand.  Remove constraint.
14539
14540 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
14541
14542         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14543         the first argument.
14544
14545 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
14546
14547         * attribs.c (decl_attributes): Guard inform with the return value
14548         of the preceding warning.
14549
14550 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14551
14552         * doc/invoke.texi (moverride): Move to correct section.
14553
14554 2015-07-03  Richard Biener  <rguenther@suse.de>
14555
14556         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14557         Copy from tree.c
14558         (dt_operand::gen_gimple_expr): After valueizing operands
14559         re-canonicalize operand order for commutative tree codes.
14560
14561 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
14562
14563         PR target/66746.
14564         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14565         is defined.
14566         (__crc32w): Likewise.
14567         (__crc32d): Likewise.
14568         (__rdpmc): Likewise.
14569         (__rdtscp): Likewise.
14570         (_rdpmc): Likewise.
14571         (_rdtscp): Likewise.
14572         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14573         is defined.
14574
14575 2015-07-03  Richard Biener  <rguenther@suse.de>
14576
14577         * fold-const.c (fold_mathfn_compare): Remove.
14578         (fold_inf_compare): Likewise.
14579         (fold_comparison): Move floating point comparison simplifications...
14580         * match.pd: ... to patterns here.  Introduce simple_comparisons
14581         operator list and use it for patterns formerly in fold_comparison.
14582
14583 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14584
14585         PR tree-optimization/66119
14586         * toplev.c (process_options): Don't set up default values for
14587         the sra_max_scalarization_size_{speed,size} parameters.
14588         * tree-sra (analyze_all_variable_accesses): If no values
14589         have been set for the sra_max_scalarization_size_{speed,size}
14590         parameters, call get_move_ratio to get target defaults.
14591
14592 2015-07-03  Richard Biener  <rguenther@suse.de>
14593
14594         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14595         * match.pd: ... here.
14596
14597 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
14598
14599         PR target/37072
14600         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14601         is not actually the default on FreeBSD.
14602
14603 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14604
14605         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14606         definition.
14607         (CMPGE_8HI): Likewise.
14608         (CMPGE_4SI): Likewise.
14609         (CMPGE_2DI): Likewise.
14610         (CMPGE_U16QI): Likewise.
14611         (CMPGE_U8HI): Likewise.
14612         (CMPGE_U4SI): Likewise.
14613         (CMPGE_U2DI): Likewise.
14614         (CMPLE_16QI): Likewise.
14615         (CMPLE_8HI): Likewise.
14616         (CMPLE_4SI): Likewise.
14617         (CMPLE_2DI): Likewise.
14618         (CMPLE_U16QI): Likewise.
14619         (CMPLE_U8HI): Likewise.
14620         (CMPLE_U4SI): Likewise.
14621         (CMPLE_U2DI): Likewise.
14622         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14623         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14624         ALTIVEC_BUILTIN_VEC_CMPLE.
14625         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14626         floating-point vector modes.
14627         (vector_nlt<mode>): New define_expand.
14628         (vector_nltu<mode>): Likewise.
14629         (vector_ngt<mode>): Likewise.
14630         (vector_ngtu<mode>): Likewise.
14631
14632 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14633
14634         PR rtl-optimization/66706
14635         * combine.c (make_compound_operation): If an AND of SUBREG of
14636         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14637
14638 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
14639
14640         * tree-pass.h (make_pass_ch_vect): New.
14641         * passes.def: Add pass_ch_vect just before pass_if_conversion.
14642
14643         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14644         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14645         make_pass_ch_vect): New.
14646         (pass_ch): Extend ch_base.
14647
14648         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14649         (ch_base::copy_headers): ...here.
14650
14651 2015-07-02  Richard Biener  <rguenther@suse.de>
14652
14653         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14654         * fold-const.c (get_pointer_modulus_and_residue): Remove.
14655         (fold_binary_loc): Implement (T)ptr & CST in terms of
14656         get_pointer_alignment_1.
14657         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14658         Make sure to build the alignment test on a SSA name without
14659         final alignment info valid only after the prologue.
14660
14661 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
14662
14663         * config/cris/cris.md ("epilogue"): Remove condition.
14664         ("prologue"): Ditto.
14665
14666 2015-07-02  Richard Biener  <rguenther@suse.de>
14667
14668         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14669         parameter to record a condition that is false.
14670         (record_conditions): When recording an extra NE_EXPR that is
14671         true also record a EQ_EXPR that is false.
14672
14673 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
14674
14675         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14676         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14677         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
14678         (set_iv, find_interesting_uses_address, add_candidate_1): New
14679         argument to alloc_iv.
14680         (find_interesting_uses_op, find_interesting_uses_cond): Don't
14681         duplicate struct iv.
14682         (free_loop_data): Don't free struct iv explicitly.
14683         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14684
14685 2015-07-01  DJ Delorie  <dj@redhat.com>
14686
14687         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14688         (LIB_SPEC): Add.
14689         (SUPPORTS_DISCRIMINATOR): Define.
14690
14691 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14692
14693         PR bootstrap/66685
14694         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14695         there are no CALLs in the same pattern.
14696
14697 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14698
14699         PR rtl-optimization/61047
14700         * rtlanal.c (get_initial_register_offset): New function.
14701         (rtx_addr_can_trap_p_1): Check offsets of stack references.
14702
14703 2015-07-01  Richard Biener  <rguenther@suse.de>
14704
14705         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14706         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14707         ~X CMP C -> X CMP' ~C to ...
14708         * match.pd: ... patterns here.
14709
14710 2015-07-01  Nick Clifton  <nickc@redhat.com>
14711
14712         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14713         a 16-bit value into a 20-bit memory slot.
14714
14715 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14716
14717         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14718         "aarch64_tiny", "aarch64_small", "aarch64_large",
14719         "aarch64_little_endian", "aarch64_big_endian".
14720
14721 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14722
14723         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14724         Document "aarch64_small_fpic".
14725
14726 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14727
14728         * configure.ac: Add check for aarch64 assembler -fpic relocation
14729         modifier support.
14730         * configure: Regenerate.
14731         * config.in: Regenerate.
14732         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14733         to -fPIC if not support of -fpic relocation modifier in assembler.
14734
14735 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14736
14737         PR bootstrap/66685
14738         * rtl.c (classify_insn): Handle returns in PARALLELs.
14739
14740 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
14741
14742         PR middle-end/66633
14743         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14744         to true if the function is nested and if not optimizing.
14745         (convert_local_omp_clauses): Initialize need_frame to true if the
14746         function contains nested functions and if not optimizing.
14747
14748 2015-07-01  Richard Biener  <rguenther@suse.de>
14749
14750         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14751         (X & Y) ^ Y -> ~X & Y transforms to ...
14752         * match.pd: ... here.
14753
14754 2015-07-01  Richard Biener <rguenther@suse.de>
14755
14756         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14757         of converts to avoid uninteresting noise from the conversion
14758         simplifying patterns.
14759
14760 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
14761
14762         * config/c6x/c6x.c (try_rename_operands): Do not depend on
14763         gcc_assert evaluating its argument for side-effect.
14764
14765 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14766
14767         PR target/64833
14768         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14769         flag_pic is set.
14770
14771 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14772
14773         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14774         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14775         (hash_scc): Add this_ref_p and ref_p parameters and pass them
14776         to the inner DFS walk.
14777
14778 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14779
14780         * target-insns.def (jump): New targetm instruction pattern.
14781         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14782         instead of gen_jump.
14783         (fix_up_crossing_landing_pad): Likewise.
14784         (add_labels_and_missing_jumps): Likewise.
14785         (fix_crossing_conditional_branches): Likewise.
14786         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14787         (force_nonfallthru_and_redirect): Likewise.
14788         * cse.c (cse_insn): Likewise.
14789         * expmed.c (expand_divmod): Likewise.
14790         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14791         * haifa-sched.c (init_before_recovery): Likewise.
14792         (sched_create_recovery_edges): Likewise.
14793         * ifcvt.c (find_cond_trap): Likewise.
14794         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14795         (expand_float, expand_fix): Likewise.
14796         * stmt.c (emit_jump): Likewise.
14797
14798 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14799
14800         * defaults.h (HAVE_load_multiple, gen_load_multiple)
14801         (HAVE_store_multiple, gen_store_multiple): Delete.
14802         * target-insns.def (load_multiple, store_multiple): New targetm
14803         instruction patterns.
14804         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14805         of HAVE_*/gen_* interface.
14806
14807 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14808
14809         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14810         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14811         (gen_mem_signal_fence): Delete.
14812         * target-insns.def (mem_signal_fence, mem_thread_fence)
14813         (memory_barrier): New targetm instruction patterns.
14814         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14815         interface.
14816         (expand_mem_signal_fence): Likewise.
14817
14818 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14819
14820         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14821         * target-insns.def (epilogue, prologue, sibcall_prologue): New
14822         targetm instruction patterns.
14823         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14824         interface.
14825         * calls.c (expand_call): Likewise.
14826         * cfgrtl.c (cfg_layout_finalize): Likewise.
14827         * df-scan.c (df_get_entry_block_def_set): Likewise.
14828         (df_get_exit_block_use_set): Likewise.
14829         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14830         * final.c (final_start_function): Likewise.
14831         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14832         (reposition_prologue_and_epilogue_notes): Likewise.
14833         * reorg.c (find_end_label): Likewise.
14834         * toplev.c (process_options): Likewise.
14835
14836 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
14837
14838         * typed-splay-tree.h: New file.
14839
14840 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
14841
14842         PR debug/66691
14843         * lra-int.h (lra_substitute_pseudo): Add a parameter.
14844         (lra_substitute_pseudo_within_insn): Ditto.
14845         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
14846         of constant.
14847         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
14848         to lra_substitute_pseudo.
14849         * lra-lives.c (process_bb_lives): Add an argument to
14850         lra_substitute_pseudo_within_insn call.
14851         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14852         argument to lra_substitute_pseudo and
14853         lra_substitute_pseudo_within_insn calls.
14854         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14855
14856 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14857
14858         * configure: Regenerated.
14859
14860 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14861
14862         * config.gcc: Support i[34567]86-*-elfiamcu target.
14863         * config/i386/iamcu.h: New.
14864         * config/i386/i386.opt: Add -miamcu.
14865         * doc/invoke.texi: Document -miamcu.
14866         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
14867         off x87/MMX/SSE/AVX codegen for -miamcu.
14868         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14869         __iamcu/__iamcu__ for -miamcu.
14870         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14871         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14872         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14873         * config/i386/i386.c (ix86_option_override_internal): Ignore and
14874         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
14875         MCU by default.  Default long double to 64-bit for Intel MCU.
14876         Turn on -freg-struct-return for Intel MCU.  Issue an error when
14877         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14878         AVX is turned on.
14879         (function_arg_advance_32): Pass value whose size is no larger
14880         than 8 bytes in registers for Intel MCU.
14881         (function_arg_32): Likewise.
14882         (ix86_return_in_memory): Return value whose size is no larger
14883         than 8 bytes in registers for Intel MCU.
14884         (iamcu_alignment): New function.
14885         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14886         true.
14887         (ix86_local_alignment): Don't increase alignment for Intel MCU.
14888         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14889         true.
14890
14891 2015-06-30  Marek Polacek  <polacek@redhat.com>
14892
14893         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
14894         both operands of the resulting expression.
14895
14896         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
14897         the final expression with the operand's type and then convert
14898         it to the type of the expression.
14899
14900 2015-06-30  Richard Biener  <rguenther@suse.de>
14901
14902         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14903         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14904         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14905         * match.pd: ... to patterns here.
14906
14907 2015-06-30  Richard Biener  <rguenther@suse.de>
14908
14909         PR tree-optimization/66704
14910         * tree-vect-data-refs.c (vect_setup_realignment): Use
14911         make_ssa_name for non-SSA name source.
14912
14913 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14914
14915         PR middle-end/66702
14916         * omp-low.c (simd_clone_adjust): Handle addressable linear
14917         or uniform parameters or non-gimple type uniform parameters.
14918
14919 2015-06-30  Richard Biener  <rguenther@suse.de>
14920
14921         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14922         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14923         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14924         * match.pd: ... here.
14925         Add a few cases of A - B -> A + (-B) when B "easily" negates.
14926         Move (x & y) | x -> x and friends before
14927         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14928
14929 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14930
14931         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14932         -mfix-ut699 is not specified.
14933         (leon3_load): Rename into...
14934         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
14935         is specified.
14936
14937 2015-06-30  Marek Polacek  <polacek@redhat.com>
14938
14939         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
14940         * match.pd: ... here.
14941
14942 2015-06-30  Richard Biener  <rguenther@suse.de>
14943
14944         * target-insns.def (canonicalize_funcptr_for_compare): Add.
14945         * fold-const.c (build_range_check): Replace uses of
14946         HAVE_canonicalize_funcptr_for_compare.
14947         (fold_widened_comparison): Likewise.
14948         (fold_sign_changed_comparison): Likewise.
14949         * dojump.c: Include "target.h".
14950         (do_compare_and_jump): Replace uses of
14951         HAVE_canonicalize_funcptr_for_compare and
14952         gen_canonicalize_funcptr_for_compare.
14953         * expr.c (do_store_flag): Likewise.
14954
14955 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14956
14957         PR tree-optimization/66652
14958         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
14959         max_loop_iterations to determine if nit + 1 overflows.
14960
14961 2015-06-30  Richard Biener  <rguenther@suse.de>
14962
14963         * tree-vrp.c (register_edge_assert_for_2): Also register
14964         asserts for dominating conversion results.
14965
14966 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
14967
14968         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
14969         field in struct iv.
14970
14971 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
14972
14973         PR target/66509
14974         * configure.ac: Fix filds and fildq test for 64-bit.
14975         * configure: Regenerated.
14976
14977 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
14978
14979         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
14980         (nvptx_reorg): Here.  Keep the non-subreg pieces.
14981
14982 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
14983
14984         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
14985         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14986
14987 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
14988
14989         * config/i386/i386.md (*jcc_1): Use %! in asm template.
14990         Set attribute "length_nobnd" instead of "length".
14991         (*jcc_2): Ditto.
14992         (jump): Ditto.
14993         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
14994
14995 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
14996
14997         * config/nios2/nios2.c (nios2_delegitimize_address): Make
14998         assert less restrictive.
14999
15000 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15001
15002         PR fortran/66605
15003         * cgraphunit.c (cgraph_node::finalize_function): Do not call
15004         do_warn_unused_parameter.
15005         * function.c (do_warn_unused_parameter): Move from here.
15006         * function.h (do_warn_unused_parameter): Do not declare.
15007
15008 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15009
15010         PR target/65697
15011         * gcc.target/arm/armv-sync-comp-swap.c: New.
15012         * gcc.target/arm/armv-sync-op-acquire.c: New.
15013         * gcc.target/arm/armv-sync-op-full.c: New.
15014         * gcc.target/arm/armv-sync-op-release.c: New.
15015
15016 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15017
15018         PR target/65697
15019         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15020         initial acquire barrier with final barrier.
15021
15022 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15023
15024         PR target/65697
15025         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15026         initial acquire barrier with final barrier.
15027
15028 2015-06-29  Richard Henderson  <rth@redhat.com>
15029
15030         * config/i386/constraints.md (Bf): New constraint.
15031         * config/i386/i386-c.c (ix86_target_macros): Define
15032         __GCC_ASM_FLAG_OUTPUTS__.
15033         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15034         as flags outputs.
15035         * doc/extend.texi (FlagOutputOperands): Document them.
15036
15037 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
15038
15039         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15040         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15041         unspec name.
15042         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15043         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15044         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15045         (aarch64_symbol_context): Ditto.
15046         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15047         and use new pattern name.
15048         (aarch64_expand_mov_immediate): Ditto.
15049         (aarch64_print_operand): Ditto.
15050         (aarch64_classify_tls_symbol): Ditto.
15051
15052 2015-06-29  Marek Polacek  <polacek@redhat.com>
15053             Marc Glisse  <marc.glisse@inria.fr>
15054
15055         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15056         * match.pd: ... pattern here.
15057
15058 2015-06-29  Tom de Vries  <tom@codesourcery.com>
15059
15060         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15061         function structure.
15062
15063 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15064
15065         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15066         feature description, split out the native option, add a link to
15067         the feature documentation, rearrange and slightly rewrite text.
15068         (Aarch64 options, -mcpu): Likewise.
15069         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
15070         +rdma implies Adv. SIMD.
15071
15072 2015-06-29  Marek Polacek  <polacek@redhat.com>
15073
15074         PR c/66322
15075         * function.c (stack_protect_epilogue): Remove a cast to int.
15076         * doc/invoke.texi: Update -Wswitch-bool description.
15077
15078 2015-06-29  Richard Biener  <rguenther@suse.de>
15079
15080         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15081         * fold-const.c (fold_binary_loc): Move &A - &B simplification
15082         via ptr_difference_const ...
15083         * match.pd: ... here.
15084         When matching (X ^ Y) == Y also match with swapped operands.
15085
15086 2015-06-29  Richard Biener  <rguenther@suse.de>
15087
15088         * lto-streamer.h (LTO_major_version): Bump to 5.
15089
15090 2015-06-29  Richard Biener  <rguenther@suse.de>
15091
15092         PR tree-optimization/66677
15093         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15094         STMT_VINFO_VEC_STMT clobbering less strict.
15095
15096 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
15097
15098         PR middle-end/64130
15099         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15100         division, compute max and min when value ranges for dividend and
15101         divisor are available.
15102
15103 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
15104             Sandra Loosemore <sandra@codesourcery.com>
15105
15106         * regrename.h (regrename_do_replace): Change to return bool.
15107         * regrename.c (rename_chains): Check return value of
15108         regname_do_replace.
15109         (regrename_do_replace): Re-validate the modified insns and
15110         return bool status.
15111         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15112         Update to match rename_chains changes.
15113         * config/c6x/c6x.c (try_rename_operands): Assert that
15114         regrename_do_replace returns true.
15115
15116 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
15117
15118         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15119         operand 2 here.  Use copy_addr_to_reg to copy non-index
15120         register operand 2 to a temporary.
15121         (<mode>_stx): Ditto for operand 1.
15122         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15123         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15124         (ix86_store_bounds): Ditto.
15125
15126 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
15127
15128         * print-tree.c (print_node) [TREE_VEC]: Print its length.
15129
15130 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
15131
15132         * gimple.c (gimple_call_set_fndecl): Remove.
15133         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15134         build1_loc directly instead of build_fold_addr_expr_loc.
15135
15136 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15137
15138         * hash-map.h (hash_map::traverse): Use the definition of the
15139         Key typedef rather than the typedef itself.
15140
15141 2015-06-26  Martin Jambor  <mjambor@suse.cz>
15142
15143         PR debug/66301
15144         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15145         NULL instead of calling dump_enabled_p.
15146
15147 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15148
15149         * config/aarch64/aarch64.opt: (override): New.
15150         * doc/invoke.texi (override): Document.
15151         * config/aarch64/aarch64.c (aarch64_flag_desc): New
15152         (aarch64_fusible_pairs): Likewise.
15153         (aarch64_tuning_flags): Likewise.
15154         (aarch64_tuning_override_function): Likewise.
15155         (aarch64_tuning_override_functions): Likewise.
15156         (aarch64_parse_one_option_token): Likewise.
15157         (aarch64_parse_boolean_options): Likewise.
15158         (aarch64_parse_fuse_string): Likewise.
15159         (aarch64_parse_tune_string): Likewise.
15160         (aarch64_parse_one_override_token): Likewise.
15161         (aarch64_parse_override_string): Likewise.
15162         (aarch64_override_options): Parse the -override string if it
15163         is present.
15164
15165 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15166
15167         * config/aarch64/aarch64-protos.h (tune_params): Remove
15168         const from members.
15169         (aarch64_tune_params): Remove const, change to no longer be
15170         a pointer.
15171         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15172         change to no longer be a pointer, initialize to generic_tunings.
15173         (aarch64_min_divisions_for_recip_mul): Change dereference of
15174         aarch64_tune_params to member access.
15175         (aarch64_reassociation_width): Likewise.
15176         (aarch64_rtx_mult_cost): Likewise.
15177         (aarch64_address_cost): Likewise.
15178         (aarch64_branch_cost): Likewise.
15179         (aarch64_rtx_costs): Likewise.
15180         (aarch64_register_move_cost): Likewise.
15181         (aarch64_memory_move_cost): Likewise.
15182         (aarch64_sched_issue_rate): Likewise.
15183         (aarch64_builtin_vectorization_cost): Likewise.
15184         (aarch64_override_options): Take a copy of the selected tuning
15185         struct in to aarch64_tune_params, rather than just setting
15186         a pointer, change dereferences of aarch64_tune_params to member
15187         accesses.
15188         (aarch64_override_options_after_change): Change dereferences of
15189         aarch64_tune_params to member access.
15190         (aarch64_macro_fusion_p): Likewise.
15191         (aarch_macro_fusion_pair_p): Likewise.
15192         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15193
15194 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15195
15196         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15197         (aarch64_tune_flags): Likewise.
15198         (AARCH64_TUNE_FMA_STEERING): Likewise.
15199         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15200         to AARCH64_FL_USE_FMA_STEERING_PASS.
15201         (cortex-a57.cortex-a53): Likewise.
15202         (cortex-a72): Use cortexa72_tunings.
15203         (cortex-a72.cortex-a53): Likewise.
15204         (exynos-m1): Likewise.
15205         * config/aarch64/aarch64-protos.h (tune_params): Add
15206         a field: extra_tuning_flags.
15207         * config/aarch64/aarch64-tuning-flags.def: New.
15208         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15209         (aarch64_extra_tuning_flags): Likewise.
15210         (aarch64_tune_params): Declare here.
15211         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15212         (cortexa53_tunings): Likewise.
15213         (cortexa57_tunings): Likewise.
15214         (thunderx_tunings): Likewise.
15215         (xgene1_tunings): Likewise.
15216         (cortexa72_tunings): New.
15217         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15218          (gate): Check against aarch64_tune_params.
15219         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15220         aarch64-protos.h.
15221
15222 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15223
15224         * config/aarch64/aarch64-fusion-pairs.def: New.
15225         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15226         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15227         aarch64_fusion_pairs.
15228         (AARCH64_FUSE_MOV_MOVK): Likewise.
15229         (AARCH64_FUSE_ADRP_ADD): Likewise.
15230         (AARCH64_FUSE_MOVK_MOVK): Likewise.
15231         (AARCH64_FUSE_ADRP_LDR): Likewise.
15232         (AARCH64_FUSE_CMP_BRANCH): Likewise.
15233
15234 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15235
15236         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15237         SYMBOL_SMALL_GOT_28K.
15238         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
15239         relocation modifiers.
15240         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
15241         (ldr_got_small_28k_<mode>): New.
15242         (ldr_got_small_28k_sidi): New.
15243         * config/aarch64/iterators.md (got_modifier): New mode iterator.
15244         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
15245         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15246         SYMBOL_SMALL_GOT_28K.
15247         (aarch64_rtx_costs): Add costs for new instruction sequences.
15248         (initialize_aarch64_code_model): Initialize new model.
15249         (aarch64_classify_symbol): Recognize new model and new symbol classification.
15250         (aarch64_asm_preferred_eh_data_format): Support new model.
15251         (aarch64_load_symref_appropriately): Generate new instruction
15252         sequences for -fpic.
15253         (TARGET_USE_PSEUDO_PIC_REG): New definition.
15254         (aarch64_use_pseudo_pic_reg): New function.
15255
15256 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15257
15258         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15259         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15260         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15261         (aarch64_expand_mov_immediate): Ditto.
15262         (aarch64_print_operand): Ditto.
15263         (aarch64_classify_symbol): Ditto.
15264
15265 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
15266
15267         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15268
15269 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
15270
15271         PR bootstrap/66638
15272         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15273         assertion failed.  Remove assertion itself.
15274
15275 2015-06-26  Richard Biener  <rguenther@suse.de>
15276
15277         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15278         and -A CMP CST -> A CMP -CST which is redundant with a pattern
15279         in match.pd.
15280         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15281         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15282         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15283         * match.pd: ... patterns here.
15284
15285 2015-06-26  Marek Polacek  <polacek@redhat.com>
15286
15287         * match.pd ((x | y) & ~(x & y) -> x ^ y,
15288         (x | y) & (~x ^ y) -> x & y): New patterns.
15289
15290 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15291
15292         * rtl.h (emit): Add an optional boolean parameter to control
15293         whether barriers are emitted.
15294         * emit-rtl.c (emit): Likewise.
15295         * gensupport.c (get_emit_function): Return null rather than "emit".
15296         * genemit.c (gen_emit_seq): Handle the null return value.
15297         Don't emit barriers after the final instruction in the sequence.
15298         * gentarget-def.c (main): Don't emit barriers after the instruction.
15299
15300 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15301
15302         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15303         TARGET_UNIFIED_ASM.
15304
15305 2015-06-26  Richard Biener  <rguenther@suse.de>
15306
15307         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15308
15309 2015-06-26  Richard Biener  <rguenther@suse.de>
15310
15311         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15312         irrespective on whether the inner operation has a single use
15313         of both off are constant.
15314
15315 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
15316             Segher Boessenkool  <segher@kernel.crashing.org>
15317
15318         PR target/66412
15319         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15320         before doing PUT_MODE or PUT_CODE on operands to avoid
15321         in-place RTX modification.
15322
15323 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15324
15325         * gentarget-def.c (def_target_insn): Cast return of strtol to
15326         unsigned int.
15327
15328 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15329
15330         * gimple.h (gimple_call_set_fn): Move inline function.
15331         * gimple.c (gimple_call_set_fn): Relocate here.
15332
15333 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
15334
15335         PR target/65979
15336         PR target/66611
15337         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15338         the replacement insn will work.
15339
15340 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15341
15342         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15343         by default.
15344
15345 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15346
15347         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15348         * cgraph.h: Include ipa-ref.h and plugin-api.h.
15349         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15350         (symtab_node::address_can_be_compared_p): Move function.
15351         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15352         definition here.
15353         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15354         * auto-profile.c: Likewise.
15355         * bb-reorder.c: Likewise.
15356         * builtins.c: Likewise.
15357         * calls.c: Likewise.
15358         * cfgexpand.c: Likewise.
15359         * cgraphbuild.c: Likewise.
15360         * cgraphclones.c: Likewise.
15361         * cgraphunit.c: Likewise.
15362         * combine.c: Likewise.
15363         * coverage.c: Likewise.
15364         * data-streamer-in.c: Likewise.
15365         * data-streamer-out.c: Likewise.
15366         * data-streamer.c: Likewise.
15367         * dbxout.c: Likewise.
15368         * dwarf2out.c: Likewise.
15369         * except.c: Likewise.
15370         * expr.c: Likewise.
15371         * final.c: Likewise.
15372         * fold-const.c: Likewise.
15373         * ggc-page.c: Likewise.
15374         * gimple-fold.c: Likewise.
15375         * gimple-iterator.c: Likewise.
15376         * gimple-pretty-print.c: Likewise.
15377         * gimple-streamer-in.c: Likewise.
15378         * gimple-streamer-out.c: Likewise.
15379         * gimple.c: Likewise.
15380         * gimplify.c: Likewise.
15381         * ipa-chkp.c: Likewise.
15382         * ipa-comdats.c: Likewise.
15383         * ipa-cp.c: Likewise.
15384         * ipa-devirt.c: Likewise.
15385         * ipa-icf-gimple.c: Likewise.
15386         * ipa-icf.c: Likewise.
15387         * ipa-inline-analysis.c: Likewise.
15388         * ipa-inline-transform.c: Likewise.
15389         * ipa-inline.c: Likewise.
15390         * ipa-polymorphic-call.c: Likewise.
15391         * ipa-profile.c: Likewise.
15392         * ipa-prop.c: Likewise.
15393         * ipa-pure-const.c: Likewise.
15394         * ipa-ref.c: Likewise.
15395         * ipa-reference.c: Likewise.
15396         * ipa-split.c: Likewise.
15397         * ipa-utils.c: Likewise.
15398         * ipa-visibility.c: Likewise.
15399         * ipa.c: Likewise.
15400         * langhooks.c: Likewise.
15401         * lto-cgraph.c: Likewise.
15402         * lto-compress.c: Likewise.
15403         * lto-opts.c: Likewise.
15404         * lto-section-in.c: Likewise.
15405         * lto-section-out.c: Likewise.
15406         * lto-streamer-in.c: Likewise.
15407         * lto-streamer-out.c: Likewise.
15408         * lto-streamer.c: Likewise.
15409         * omp-low.c: Likewise.
15410         * opts-global.c: Likewise.
15411         * passes.c: Likewise.
15412         * predict.c: Likewise.
15413         * print-tree.c: Likewise.
15414         * profile.c: Likewise.
15415         * ree.c: Likewise.
15416         * sanopt.c: Likewise.
15417         * stor-layout.c: Likewise.
15418         * symtab.c: Likewise.
15419         * toplev.c: Likewise.
15420         * trans-mem.c: Likewise.
15421         * tree-cfg.c: Likewise.
15422         * tree-chkp.c: Likewise.
15423         * tree-eh.c: Likewise.
15424         * tree-emutls.c: Likewise.
15425         * tree-inline.c: Likewise.
15426         * tree-nested.c: Likewise.
15427         * tree-parloops.c: Likewise.
15428         * tree-pretty-print.c: Likewise.
15429         * tree-profile.c: Likewise.
15430         * tree-sra.c: Likewise.
15431         * tree-ssa-alias.c: Likewise.
15432         * tree-ssa-live.c: Likewise.
15433         * tree-ssa-loop-ivcanon.c: Likewise.
15434         * tree-ssa-loop-ivopts.c: Likewise.
15435         * tree-ssa-pre.c: Likewise.
15436         * tree-ssa-sccvn.c: Likewise.
15437         * tree-ssa-strlen.c: Likewise.
15438         * tree-ssa-structalias.c: Likewise.
15439         * tree-streamer-in.c: Likewise.
15440         * tree-streamer-out.c: Likewise.
15441         * tree-streamer.c: Likewise.
15442         * tree-switch-conversion.c: Likewise.
15443         * tree-tailcall.c: Likewise.
15444         * tree-vect-data-refs.c: Likewise.
15445         * tree-vect-stmts.c: Likewise.
15446         * tree-vectorizer.c: Likewise.
15447         * tree.c: Likewise.
15448         * tsan.c: Likewise.
15449         * ubsan.c: Likewise.
15450         * value-prof.c: Likewise.
15451         * varasm.c: Likewise.
15452         * varpool.c: Likewise.
15453         * config/arm/arm.c: Likewise.
15454         * config/bfin/bfin.c: Likewise.
15455         * config/c6x/c6x.c: Likewise.
15456         * config/cris/cris.c: Likewise.
15457         * config/darwin-c.c: Likewise.
15458         * config/darwin.c: Likewise.
15459         * config/i386/i386.c: Likewise.
15460         * config/i386/winnt.c: Likewise.
15461         * config/microblaze/microblaze.c: Likewise.
15462         * config/mips/mips.c: Likewise.
15463         * config/rs6000/rs6000.c: Likewise.
15464         * config/rx/rx.c: Likewise.
15465         * config/s390/s390.c: Likewise.
15466         * config/tilegx/mul-tables.c: Likewise.
15467
15468 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15469
15470         * config/aarch64/aarch64.c, config/alpha/alpha.c,
15471         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15472         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15473         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15474         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15475         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15476         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15477         config/microblaze/microblaze.c, config/mips/mips.c,
15478         config/mmix/mmix.c, config/mn10300/mn10300.c,
15479         config/moxie/moxie.c, config/msp430/msp430.c,
15480         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15481         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15482         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15483         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15484         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15485         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15486         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15487         target-def.h include.
15488         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
15489
15490 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15491
15492         * Makefile.in (TARGET_DEF): Add target-insns.def.
15493         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15494         (build/gentarget-def.o): New rule.
15495         (genprogrtl): Add target-def.
15496         * target-insns.def, gentarget-def.c: New files.
15497         * target.def: Add targetm.have_* and targetm.gen_* hooks,
15498         based on the contents of target-insns.def.
15499         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15500         (HAVE_return, gen_return): Delete.
15501         * target-def.h: Include insn-target-def.h.
15502         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15503         instead of direct calls.  Rely on them to do the appropriate assertions.
15504         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
15505         (convert_jumps_to_returns): Use targetm interface instead of
15506         direct calls.
15507         (thread_prologue_and_epilogue_insns): Likewise.
15508         * reorg.c (find_end_label, dbr_schedule): Likewise.
15509         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15510         * shrink-wrap.c (convert_to_simple_return): Likewise.
15511         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15512
15513 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15514
15515         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15516         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15517         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15518         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15519         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15520         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15521         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15522         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15523         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15524         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15525         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15526         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15527         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15528         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15529         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15530         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15531         includes to end.
15532
15533 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15534
15535         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15536         (unbounded_int_hashmap_traits::key_type): Likewise.
15537         * hash-map.h (hash_map): Get the key type from the traits.
15538         * hash-traits.h (default_hash_traits): By default, inherit from the
15539         template parameter.
15540         * alias.c (alias_set_traits): Delete.
15541         (alias_set_entry_d::children): Use alias_set_hash as the first
15542         template parameter.
15543         (record_alias_subset): Update accordingly.
15544         * except.c (tree_hash_traits): Delete.
15545         (type_to_runtime_map): Use tree_hash as the first template parameter.
15546         (init_eh): Update accordingly.
15547         * genmatch.c (capture_id_map_hasher): Delete.
15548         (cid_map_t): Use nofree_string_hash as first template parameter.
15549         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15550         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15551         Use symbol_compare_hash as the first template parameter in
15552         subdivide_hash_map.
15553         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15554         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15555         template parameter.
15556         * passes.c (pass_registry_hasher): Delete.
15557         (name_to_pass_map): Use nofree_string_hash as the first template
15558         parameter.
15559         (register_pass_name): Update accordingly.
15560         * sanopt.c (sanopt_tree_map_traits): Delete.
15561         (sanopt_tree_triplet_map_traits): Delete.
15562         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15563         template parameter.
15564         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15565         the first template parameter.
15566         * sese.c (rename_map_hasher): Delete.
15567         (rename_map_type): Use tree_ssa_name_hash as the first template
15568         parameter.
15569         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15570         (function_summary::m_map): Use map_hash as the first template
15571         parameter.
15572         (function_summary::release): Update accordingly.
15573         * tree-if-conv.c (phi_args_hash_traits): Delete.
15574         (predicate_scalar_phi): Use tree_operand_hash as the first template
15575         parameter to phi_arg_map.
15576         * tree-inline.h (dependence_hasher): Delete.
15577         (copy_body_data::dependence_map): Use dependence_hash as the first
15578         template parameter.
15579         * tree-inline.c (remap_dependence_clique): Update accordingly.
15580         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15581         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15582         parameter.
15583         (addr_stridxptr): Update accordingly.
15584         * value-prof.c (profile_id_traits): Delete.
15585         (cgraph_node_map): Use profile_id_hash as the first template
15586         parameter.
15587         (init_node_map): Update accordingly.
15588         * config/alpha/alpha.c (string_traits): Delete.
15589         (machine_function::links): Use nofree_string_hash as the first
15590         template parameter.
15591         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15592         * config/m32c/m32c.c (pragma_traits): Delete.
15593         (pragma_htab): Use nofree_string_hash as the first template parameter.
15594         (m32c_note_pragma_address): Update accordingly.
15595         * config/mep/mep.c (pragma_traits): Delete.
15596         (pragma_htab): Use nofree_string_hash as the first template parameter.
15597         (mep_note_pragma_flag): Update accordingly.
15598         * config/mips/mips.c (mips16_flip_traits): Delete.
15599         (mflip_mips16_htab): Use nofree_string_hash as the first template
15600         parameter.
15601         (mflip_mips16_use_mips16_p): Update accordingly.
15602         (local_alias_traits): Delete.
15603         (mips16_local_aliases): Use nofree_string_hash as the first template
15604         parameter.
15605         (mips16_local_alias): Update accordingly.
15606
15607 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15608
15609         * hash-map-traits.h (default_hashmap_traits): Delete.
15610
15611 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15612
15613         * hash-map-traits.h (unbounded_hashmap_traits): New class.
15614         (unbounded_int_hashmap_traits): Likewise.
15615         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15616
15617 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15618
15619         * ipa-icf.h (symbol_compare_hash): New class.
15620         (symbol_compare_hashmap_traits): Use it.
15621         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15622         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15623         (mem_alloc_description::reverse_mem_map_t): Remove redundant
15624         default_hashmap_traits.
15625         * sanopt.c (sanopt_tree_triplet_hash): New class.
15626         (sanopt_tree_triplet_map_traits): Use it.
15627
15628 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15629
15630         * gengtype-parse.c (require_template_declaration): Allow '+' in
15631         template parameters.  Consolidate cases.
15632         * hash-traits.h (int_hash): New class.
15633         * alias.c (alias_set_hash): New structure.
15634         (alias_set_traits): Use it.
15635         * symbol-summary.h (function_summary::map_hash): New class.
15636         (function_summary::summary_hashmap_traits): Use it.
15637         * tree-inline.h (dependence_hash): New class.
15638         (dependence_hasher): Use it.
15639         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15640         * value-prof.c (profile_id_hash): New class.
15641         (profile_id_traits): Use it.
15642
15643 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15644
15645         * config/mips/mips.c (mips16_flip_traits): Use it.
15646         (local_alias_traits, mips16_local_aliases): Convert from a map of
15647         rtxes to a map of symbol names.
15648         (mips16_local_alias): Update accordingly.
15649
15650 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15651
15652         * hash-traits.h (string_hash, nofree_string_hash): New classes.
15653         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15654         * passes.c (pass_registry_hasher): Likewise.
15655         * config/alpha/alpha.c (string_traits): Likewise.
15656         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15657         * config/m32c/m32c.c (pragma_traits): Likewise.
15658         * config/mep/mep.c (pragma_traits): Likewise.
15659
15660 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15661
15662         * tree-hash-traits.h (tree_hash): New class.
15663         * except.c: Include tree-hash-traits.h.
15664         (tree_hash_traits): Use tree_hash.
15665
15666 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15667
15668         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15669         * sese.c: Include tree-hash-traits.h.
15670         (rename_map_hasher): Use tree_ssa_name_hasher.
15671
15672 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15673
15674         * tree-hash-traits.h (tree_decl_hash): New class.
15675         * tree-ssa-strlen.c: Include tree-hash-traits.h.
15676         (stridxlist_hash_traits): Use tree_decl_hash.
15677
15678 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15679
15680         * tree-hash-traits.h: New file.
15681         (tree_operand_hash): New class.
15682         * sanopt.c: Include tree-hash-traits.h.
15683         (sanopt_tree_map_traits): Use tree_operand_hash.
15684         * tree-if-conv.c: Include tree-hash-traits.h.
15685         (phi_args_hash_traits): Use tree_operand_hash.
15686         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15687         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15688
15689 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15690
15691         * hash-map-traits.h: Include hash-traits.h.
15692         (simple_hashmap_traits): New class.
15693         * mem-stats.h (hash_map): Change the default traits to
15694         simple_hashmap_traits<default_hash_traits<Key> >.
15695
15696 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15697
15698         * hash-table.h: Update comments.
15699
15700 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15701
15702         * hash-traits.h (default_hash_traits): New structure.
15703         * hash-set.h (default_hashset_traits): Delete.
15704         (hash_set): Use default_hash_traits<Key> instead of
15705         default_hashset_traits.  Delete hash_entry type and use Key directly.
15706         * ipa-devirt.c (pair_traits): Delete.
15707         (default_hash_traits <type_pair>): Override.
15708         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15709         (odr_types_equivalent_p, add_type_duplicate): Likewise.
15710
15711 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15712
15713         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15714
15715 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15716
15717         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15718         (has_is_empty, is_empty_helper): Delete.
15719         (has_mark_deleted, mark_deleted_helper): Delete.
15720         (has_mark_empty, mark_empty_helper): Delete.
15721         (hash_table::is_deleted): Call the Descriptor unconditionally.
15722         (hash_table::is_empty): Likewise.
15723         (hash_table::mark_deleted): Likewise.
15724         (hash_table::mark_empty): Likewise.
15725
15726 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15727
15728         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
15729         redundant typedefs and members.
15730         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
15731         redundant typedefs.
15732         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15733         * ipa-devirt.c (odr_name_hasher): Likewise.
15734         (polymorphic_call_target_hasher): Likewise.
15735         * ira-costs.c (cost_classes_hasher): Likewise.
15736         * statistics.c (stats_counter_hasher): Likewise.
15737         * trans-mem.c (log_entry_hasher): Likewise.
15738         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15739         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15740         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15741         * var-tracking.c (variable_hasher): Likewise.
15742         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15743         Remove redundant typedefs and members.
15744
15745 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15746
15747         * hash-traits.h (ggc_cache_hasher): Rename to...
15748         (ggc_cache_remove): ...this and remove typedefs.
15749         (ggc_cache_ptr_hash): New class.
15750         * hash-table.h: Update commentary.
15751         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15752         rather than ggc_cache_hasher.
15753         (const_wide_int_hasher, reg_attr_hasher): Likewise.
15754         (const_double_hasher, const_fixed_hasher): Likewise.
15755         * function.c (insn_cache_hasher): Likewise.
15756         * trans-mem.c (tm_wrapper_hasher): Likewise.
15757         * tree.h (tree_decl_map_cache_hasher): Likewise.
15758         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15759         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15760         * ubsan.c (tree_type_map_cache_hasher): Likewise.
15761         * varasm.c (tm_clone_hasher): Likewise.
15762         * config/i386/i386.c (dllimport_hasher): Likewise.
15763         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15764         (tree_hasher): Likewise.
15765
15766 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15767
15768         * hash-traits.h (ggc_hasher): Rename to...
15769         (ggc_remover): ...this and remove typedefs.
15770         (ggc_cache_hasher): Update accordingly.  Add typedefs.
15771         (ggc_ptr_hash): New class.
15772         * hash-table.h: Update comment.
15773         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15774         ggc_hasher.
15775         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15776         (tree_descriptor_hasher): Likewise.
15777         * cgraph.c (function_version_hasher): Likewise.
15778         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15779         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15780         (dw_loc_list_hasher, addr_hasher): Likewise.
15781         * function.h (used_type_hasher): Likewise.
15782         * function.c (temp_address_hasher): Likewise.
15783         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15784         * libfuncs.h (libfunc_hasher): Likewise.
15785         * lto-streamer.h (decl_state_hasher): Likewise.
15786         * optabs.c (libfunc_decl_hasher): Likewise.
15787         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15788         * varasm.c (section_hasher, object_block_hasher): Likewise.
15789         (const_rtx_desc_hasher): Likewise.
15790         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15791         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15792
15793 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15794
15795         * hash-traits.h (free_ptr_hash): New class.
15796         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15797         rather than typed_free_remove.  Remove redudant typedefs.
15798         (external_ref_hasher): Likewise.
15799         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15800         (ehspec_hasher): Likewise.
15801         * ggc-common.c (saving_hasher): Likewise.
15802         * gimplify.c (gimplify_hasher): Likewise.
15803         * haifa-sched.c (delay_i2_hasher): Likewise.
15804         * loop-invariant.c (invariant_expr_hasher): Likewise.
15805         * loop-iv.c (biv_entry_hasher): Likewise.
15806         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15807         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15808         * tree-cfg.c (locus_discrim_hasher): Likewise.
15809         * tree-eh.c (finally_tree_hasher): Likewise.
15810         * tree-into-ssa.c (var_info_hasher): Likewise.
15811         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15812         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15813         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15814         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15815         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15816         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15817         (shared_bitmap_hasher): Likewise.
15818         * tree-ssa-threadupdate.c (redirection_data): Likewise.
15819         * tree-vectorizer.h (peel_info_hasher): Likewise.
15820         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15821         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15822
15823 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15824
15825         * hash-table.h: Update comments.
15826         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15827         (nofree_ptr_hash): New class.
15828         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15829         than typed_noop_remove.  Remove redudant typedefs.
15830         * attribs.c (attribute_hasher): Likewise.
15831         * cfg.c (bb_copy_hasher): Likewise.
15832         * cselib.c (cselib_hasher): Likewise.
15833         * dse.c (invariant_group_base_hasher): Likewise.
15834         * dwarf2cfi.c (trace_info_hasher): Likewise.
15835         * dwarf2out.c (macinfo_entry_hasher): Likewise.
15836         (comdat_type_hasher, loc_list_hasher): Likewise.
15837         * gcse.c (pre_ldst_expr_hasher): Likewise.
15838         * genmatch.c (id_base): Likewise.
15839         * genrecog.c (test_pattern_hasher): Likewise.
15840         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15841         * haifa-sched.c (delay_i1_hasher): Likewise.
15842         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15843         * ipa-icf.h (congruence_class_group_hash): Likewise.
15844         * ipa-profile.c (histogram_hash): Likewise.
15845         * ira-color.c (allocno_hard_regs_hasher): Likewise.
15846         * lto-streamer.h (string_slot_hasher): Likewise.
15847         * lto-streamer.c (tree_entry_hasher): Likewise.
15848         * plugin.c (event_hasher): Likewise.
15849         * postreload-gcse.c (expr_hasher): Likewise.
15850         * store-motion.c (st_expr_hasher): Likewise.
15851         * tree-sra.c (uid_decl_hasher): Likewise.
15852         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15853         (ssa_name_var_hash): Likewise.
15854         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15855         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15856         * tree-ssa-pre.c (pre_expr_d): Likewise.
15857         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15858         * vtable-verify.h (registration_hasher): Likewise.
15859         * vtable-verify.c (vtbl_map_hasher): Likewise.
15860         * config/arm/arm.c (libcall_hasher): Likewise.
15861         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15862         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15863         * config/sol2.c (comdat_entry_hasher): Likewise.
15864         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15865         (print_fold_checksum, fold_checksum_tree): Likewise.
15866         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15867         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15868         (fold_build_call_array_loc): Likewise.
15869         * tree-ssa-ccp.c (gimple_htab): Likewise.
15870         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15871         rather than pointer_type.
15872
15873 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15874
15875         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15876         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15877
15878 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15879
15880         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15881         (ggc_hasher::ggc_mx): Likewise.
15882         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
15883         that duplicate ggc_hasher ones.
15884
15885 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15886
15887         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15888         (gt_cleare_cache): Check here for deleted and empty entries.
15889         Replace handle_cache_entry with a call to keep_cache_entry.
15890         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15891         (ggc_cache_hasher::keep_cache_entry): New function.
15892         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15893         (tm_wrapper_hasher::keep_cache_entry): New function.
15894         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15895         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15896         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15897         (type_cache_hasher::keep_cache_entry): New function.
15898         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15899         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15900         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15901         (tree_type_map_cache_hasher::keep_cache_entry): New function.
15902         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15903         (tm_clone_hasher::keep_cache_entry): New function.
15904         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15905         (dllimport_hasher::keep_cache_entry): New function.
15906
15907 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15908
15909         * hash-table.h: Include hash-traits.h.
15910         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15911         (ggc_cache_hasher): Move to...
15912         * hash-traits.h: ...this new file.
15913
15914 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15915
15916         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15917         struct cl_optimization.
15918         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15919         * tree.c (make_node_stat): Allocate cl_optimization struct.
15920         (copy_node_stat): Allocate and copy cl_optimization struct.
15921
15922 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15923
15924         * function.h (struct incoming_args): Move struct.
15925         (pass_by_reference, reference_callee_copied): Remove prototypes.
15926         * emit-rtl.h (struct incoming_args): Relocate struct here.
15927         * calls.h (pass_by_reference, reference_callee_copied): Relocate
15928         prototypes here.
15929         * function.c (pass_by_reference, reference_callee_copied): Move.
15930         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15931         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15932         * ipa-chkp.c: Include calls.h.
15933
15934 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
15935
15936         * alias.h (alias_set_type): Move typedef.
15937         * coretypes.h (alias_set_type): Relocate typedef here.
15938         * rtl.h: Don't include alias.h.
15939
15940 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15941
15942         * cgraph.h (cgraph_rtl_info): Move to rtl.h
15943         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
15944         and instance.
15945         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
15946         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
15947         doesn't exist.
15948         * calls.c: Include hard-reg-set.h before rtl.h.
15949         * ira.c: Likewise.
15950
15951 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
15952             Vladimir Makarov  <vmakarov@redhat.com>
15953
15954         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
15955         Add assert.
15956
15957 2015-06-25  Richard Biener  <rguenther@suse.de>
15958
15959         * fold-const.c (fold_binary_loc): Move simplification of
15960         (X <<>> C1) & C2 ...
15961         * match.pd: ... here.
15962
15963 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
15964
15965         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
15966
15967 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15968
15969         * match.pd: Add patterns for vec_conds between 1 and 0.
15970
15971 2015-06-25  Richard Biener  <rguenther@suse.de>
15972
15973         * tree-vect-stmts.c (vectorizable_conversion): Do not set
15974         STMT_VINFO_VEC_STMT for SLP.
15975         (vectorizable_store): Likewise.
15976         (vectorizable_load): Likewise.
15977         (vect_transform_stmt): Catch SLP vectorization clobbering
15978         STMT_VINFO_VEC_STMT.
15979
15980 2015-06-25  Richard Biener  <rguenther@suse.de>
15981
15982         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
15983         dumping.
15984         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
15985         cleanup resulting dead code and parameters.
15986         (vect_transform_slp_perm_load): Adjust.
15987
15988 2015-06-25  Nick Clifton  <nickc@redhat.com>
15989
15990         * config/bfin/bfin.c (bfin_expand_prologue): Set
15991         current_function_static_stack_size if flag_stack_usage_info is set.
15992         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
15993         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
15994         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15995         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
15996
15997 2015-06-25  Tom de Vries  <tom@codesourcery.com>
15998
15999         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16000         comment that the generated IV is unsigned.
16001
16002 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16003
16004         PR target/29693
16005         * config/arm/arm.c (arm_dbx_register_number): Return
16006         DWARF_FRAME_REGISTERS by default.
16007
16008 2015-06-25  Tom de Vries  <tom@codesourcery.com>
16009
16010         * dominance.c (calculate_dominance_info): Fix verify_dominators call
16011         argument.  Call verify_dominator when reusing dominator info.
16012
16013 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16014
16015         PR target/66563
16016         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16017         an additional element of the unspec vector.  Modify indices
16018         of operands.
16019         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16020         * config/sh/sh.c (prepare_move_operands): Pass incremented
16021         const_int to gen_GOTaddr2picreg.
16022         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16023
16024 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16025
16026         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16027         Condition on TARGET_FLOAT.
16028
16029 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16030
16031         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16032         and (no)crypto.
16033
16034 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16035
16036         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16037
16038         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16039         aarch64_err_no_fpadvsimd.
16040
16041         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16042         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16043         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16044         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16045         Turn error into assert, test TARGET_FLOAT.
16046         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16047         TARGET_FLOAT.
16048
16049 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
16050
16051         PR debug/66482
16052         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16053
16054 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
16055
16056         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16057
16058 2015-06-24  Renlin Li <renlin.li@arm.com>
16059
16060         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16061         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16062
16063 2015-06-24  Richard Biener  <rguenther@suse.de>
16064
16065         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16066         (main): Likewise.
16067         (lower_opt_convert): Support lowering of conditional view_convert.
16068         (parser::parse_operation): Likewise.
16069         (parser::parse_for): Likewise.
16070
16071 2015-06-24  Renlin Li  <renlin.li@arm.com>
16072
16073         * varasm.c (emit_local): Use unsigned int for align variable.
16074
16075 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16076
16077         PR target/63408
16078         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16079         for negative numbers.
16080
16081 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16082
16083         PR rtl-optimization/66306
16084         * reload.c (find_reloads): Swap the match_dup info for
16085         commutative operands.
16086
16087 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16088
16089         * config/s390/vx-builtins.md
16090         ("vec_scatter_element<mode>_<non_vec_int>")
16091         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16092         attribute with bhfgq.
16093
16094 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16095
16096         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16097
16098 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16099
16100         * config/s390/s390-builtin-types.def: Add flag to indicate the
16101         options under which the function type is needed.
16102         * config/s390/s390-builtins.def: Add flag to indicate the options
16103         under which the builtin is enabled.
16104         * config/s390/s390-builtins.h: Add flags parameter to macro
16105         definitions.
16106         (bflags_for_builtin): New function.
16107         (flags_for_builtin): Renamed to ...
16108         (opflags_for_builtin): ... this.
16109         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16110         flags_for_builtin to bflags_for_builtin and
16111         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16112         * config/s390/s390.c: Add initialization of bflags_builtin and
16113         opflags_builtin arrays.
16114         Remove code for flags_builtin.
16115         (s390_init_builtins): Only create builtin function types if one of
16116         their flags is active.
16117         Only create builtins if all of their flags are active.
16118         (s390_expand_builtin): Rename flags_for_builtin to
16119         opflags_for_builtin.
16120
16121 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16122
16123         * config/s390/vecintrin.h: Remove internal builtins.
16124
16125 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16126
16127         * config/s390/s390.c (s390_secondary_reload): Fix check for
16128         GENERAL_REGS register class.
16129
16130 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16131
16132         * config/s390/s390.c (s390_support_vector_misalignment): Call
16133         default implementation for !TARGET_VX.
16134
16135 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16136
16137         * config/s390/s390.c (s390_legitimate_constant_p): Add
16138         TARGET_VX check.
16139
16140 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16141
16142         * config/s390/s390.c (s390_vector_abi): New variable definition.
16143         (s390_check_type_for_vector_abi): New function.
16144         (TARGET_ASM_FILE_END): New macro definition.
16145         (s390_asm_file_end): New function.
16146         (s390_function_arg): Call s390_check_type_for_vector_abi.
16147         (s390_gimplify_va_arg): Likewise.
16148         * configure: Regenerate.
16149         * configure.ac: Check for .gnu_attribute Binutils feature.
16150
16151 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
16152
16153         PR target/65803
16154         * config/bfin/bfin.c (hwloop_optimize): Initialize
16155         JUMP_LABEL for newly created jump.
16156
16157 2015-06-23  Tristan Gingold  <gingold@adacore.com>
16158
16159         * collect-utils.c (collect_wait): Unlink the response file here
16160         instead of...
16161         (do_wait): ...here.
16162         (utils_cleanup): ...and here.
16163
16164 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
16165
16166         * df-scan.c: Don't include target-def.h.
16167         * targhooks.c: Likewise.
16168         * config/arm/arm-c.c: Likewise.
16169         * config/i386/i386-c.c: Likewise.
16170         * config/nds32/nds32-cost.c: Likewise.
16171         * config/nds32/nds32-fp-as-gp.c: Likewise.
16172         * config/nds32/nds32-intrinsic.c: Likewise.
16173         * config/nds32/nds32-isr.c: Likewise.
16174         * config/nds32/nds32-md-auxiliary.c: Likewise.
16175         * config/nds32/nds32-memory-manipulation.c: Likewise.
16176         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16177         * config/nds32/nds32-predicates.c: Likewise.
16178
16179 2015-06-23  Richard Biener  <rguenther@suse.de>
16180
16181         PR tree-optimization/66636
16182         * tree-vect-stmts.c (vectorizable_store): Properly compute the
16183         def type for further defs for strided stores.
16184
16185 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
16186
16187         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16188         conditional selects.
16189         (setcc_int<mode>, setcc_float<mode>): Reformat.
16190
16191 2015-06-23  Marek Polacek  <polacek@redhat.com>
16192
16193         * match.pd ((x + y) - (x | y) -> x & y,
16194         (x + y) - (x & y) -> x | y): New patterns.
16195
16196 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
16197
16198         PR 65711
16199         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16200         '-dynamic-linker' within %{!shared: ...}.
16201
16202 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
16203
16204         PR target/66560
16205         * config/i386/predicates.md (addsub_vm_operator): New predicate.
16206         (addsub_vs_operator): Ditto.
16207         (addsub_vs_parallel): Ditto.
16208         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16209         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16210         Put minus RTX before plus and adjust vec_merge selector.
16211         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16212         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16213         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16214         (addsub vec_merge splitters): New combiner splitters.
16215         (addsub vec_select/vec_concat splitters): Ditto.
16216
16217 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
16218
16219         PR tree-optimization/66449
16220         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16221         POINTER_PLUS_EXPR for pointers.
16222
16223 2015-06-23  Alan Modra  <amodra@gmail.com>
16224
16225         * rtlanal.c (commutative_operand_precedence): Correct comments.
16226         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16227         declaration.  Return an int.  Distinguish REG,REG return from
16228         others.
16229         (struct simplify_plus_minus_op_data): Make local to function.
16230         (simplify_plus_minus): Don't set canonicalized if merely sorting
16231         registers.  Avoid packing ops if nothing changes.  White space fixes.
16232
16233 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
16234
16235         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16236         -fdump-ada-spec is passed but not if -fsyntax-only is.
16237
16238 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
16239
16240         PR bootstrap/63740
16241         * lra-lives.c (process_bb_lives): Check insn copying the same
16242         reload pseudo and don't create a copy for it.
16243
16244 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16245
16246         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
16247         for cond_stmt.
16248
16249 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16250
16251         * builtins.def (DEF_GOMP_BUILTIN): Test
16252         'flag_tree_parallelize_loops > 1' instead of
16253         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
16254
16255 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16256
16257         * dominance.c (calculate_dominance_info): Verify dominators if
16258         early-out.
16259
16260 2015-06-22  Marek Polacek  <polacek@redhat.com>
16261
16262         * match.pd ((x ^ y) ^ (x | y) -> x & y,
16263         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16264         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16265         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16266
16267 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
16268
16269         PR target/65871
16270         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16271         cost of embedded comparison.
16272
16273 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16274
16275         PR target/65914
16276         * config/rs6000/predicates.md (altivec_register_operand): Permit
16277         virtual stack registers.
16278         (vsx_register_operand): Likewise.
16279         (vfloat_operand): Likewise.
16280         (vint_operand): Likewise.
16281         (vlogical_operand): Likewise.
16282
16283 2015-06-22  Richard Biener  <rguenther@suse.de>
16284
16285         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16286         and single_scalar_iteration_cost members.
16287         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16288         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16289         (vect_get_single_scalar_iteration_cost): Remove.
16290         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16291         Use LOOP_VINFO_SCALAR_ITERATION_COST.
16292         * tree-vect-loop.c (destroy_loop_vec_info): Free
16293         scalar_cost_vec.
16294         (vect_get_single_scalar_iteration_cost): Compute result into
16295         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16296         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
16297         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16298         (vect_estimate_min_profitable_iters): Use them.
16299
16300 2015-06-22  Christian Bruel  <christian.bruel@st.com>
16301
16302         PR target/52144
16303         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16304         (TARGET_INSERT_ATTRIBUTES): Define.
16305         (thumb_flipper): New var.
16306         * config/arm/arm.opt (-mflip-thumb): New switch.
16307
16308 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16309             Martin Liska  <mliska@suse.cz>
16310
16311         PR ipa/65908
16312         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16313         construction of arg_types.
16314         (sem_function::sem_function): Likewise.
16315         (sem_function::~sem_function): Remove destruction of arg_types.
16316         (sem_function::compatible_parm_types_p): New function.
16317         (sem_function::equals_wpa): Reorg matching of return values
16318         and parameter types.
16319         (sem_function::equals_private): Reorg mathcing of argument types.
16320         (sem_function::parse_tree_args): Remove.
16321         * ipa-icf.h (init_wpa): Do not call it.
16322         (parse_tree_args): Remove.
16323         (compatible_parm_types_p): Declare.
16324         (result_type): Remove.
16325         (arg_types): Remove.
16326
16327 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16328
16329         PR ipa/66351
16330         * ipa-polymorphic-call.c
16331         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16332         initializing alias oracle; fix formating; set base_alias_set if it
16333         is known.
16334
16335 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
16336
16337         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16338         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16339         (find_inc): Likewise.
16340         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16341         swapping.
16342         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16343         * df-scan.c (df_swap_refs): Remove.
16344         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16345         * dominance.c (link_roots): Use std::swap instead of manually swapping.
16346         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16347         * fold-const.c (fold_relational_const): Likewise.
16348         * genattrtab.c (simplify_test_exp): Likewise.
16349         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16350         gimple_simplify): Likewise.
16351         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16352         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16353         * ipa-devirt.c (add_type_duplicate): Likewise.
16354         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16355         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16356         * lra.c (lra_create_copy): Likewise.
16357         * lto-streamer-out.c (DFS::DFS): Likewise.
16358         * modulo-sched.c (get_sched_window): Likewise.
16359         * omega.c (omega_pretty_print_problem): Likewise.
16360         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16361         * reload1.c (reloads_unique_chain_p): Likewise.
16362         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16363         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16364         use std::swap.
16365         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16366         manually swapping.
16367         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16368         predicate_mem_writes): Likewise.
16369         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16370         * tree-predcom.c (combine_chains): Likewise.
16371         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16372         refs_may_alias_p_1): Likewise.
16373         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16374         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16375         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16376         number_of_iterations_cond): Likewise.
16377         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16378         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16379         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16380         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16381         * tree-vrp.c (extract_range_from_binary_expr_1,
16382         extract_range_from_unary_expr_1): Likewise.
16383
16384 2015-06-20  Marek Polacek  <polacek@redhat.com>
16385
16386         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16387
16388 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
16389
16390         PR target/66591
16391         * config/sh/sh.c (prepare_move_operands): Replace subreg
16392         index term with R0 for base and index addressing.
16393
16394 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
16395
16396         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16397         op1 is an fp zero.
16398         (movsf_aarch64): Change condition from register_operand to
16399         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
16400         load1.  Change type for alternative 7 to store1.
16401         (movdf_aarch64): Likewise.
16402
16403 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
16404
16405         * config/vax/vax.md: Adjust sign/zero extend patterns to
16406         handle SUBREGs in operands[1].
16407
16408 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16409
16410         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16411         of manually swapping.
16412         (expand_vec_perm_interleave2): Likewise.
16413
16414 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
16415
16416         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16417         reuse bounds created for abnormal ssa names.
16418
16419 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
16420
16421         * config/nvptx/nvptx.md (allocate_stack): Rename to...
16422         (allocate_stack_<mode>): ... this, and add :P on both
16423         match_operand and unspec.
16424         (allocate_stack): New expander.
16425
16426 2015-06-19  Christian Bruel  <christian.bruel@st.com>
16427
16428         PR target/66541
16429         PR target/52144
16430         * config/arm/arm.c (arm_set_current_function): Handle
16431         explicit default options.
16432
16433 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16434
16435         * config/i386/i386.md (*movsicc_noc_zext): New insn.
16436         (zero-extended cmove with mem peephole2): New pattern.
16437         (cmove with mem peephole2): Merge patterns.
16438
16439 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16440
16441         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16442
16443 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
16444
16445         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16446         * config/mips/mips.md (*madd4<mode>): Ditto.
16447         (*nmadd3<mode>) Ditto.
16448         (*nmadd4<mode>_fastmath): Ditto.
16449         (*nmadd3<mode>_fastmath): Ditto.
16450         (*nmsub4<mode>): Ditto.
16451         (*nmsub3<mode>): Ditto.
16452         (*nmsub4<mode>_fastmath): Ditto.
16453         (*nmsub3<mode>_fastmath): Ditto.
16454
16455 2015-06-18  Michael Matz  <matz@suse.de>
16456
16457         PR middle-end/66253
16458         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16459         grouped strided stores.
16460         (vectorizable_load): Don't use the DR from first_stmt in
16461         the non-SLP grouped strided case.
16462
16463 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16464
16465         PR target/66569
16466         * function.c (assign_bounds): Add arguments assign_regs,
16467         assign_special, assign_bt.
16468         (assign_parms): For vararg functions handle bounds in BT
16469         and special slots after incoming vararg bounds.
16470
16471 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16472
16473         PR middle-end/66568
16474         * cfgexpand.c (expand_return): Handle missing bounds.
16475         (expand_gimple_stmt_1): Likewise.
16476         * tree-chkp.c (chkp_expand_zero_bounds): New.
16477         * tree-chkp.h (chkp_expand_zero_bounds): New.
16478
16479 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16480
16481         PR middle-end/66567
16482         * ipa-chkp.c (chkp_maybe_create_clone): Require
16483         functions to be instrumentable.
16484         * tree-chkp.c (chkp_replace_function_pointer): Use
16485         chkp_instrumentable_p instead of attribute check.
16486
16487 2015-06-18  Richard Biener  <rguenther@suse.de>
16488
16489         PR tree-optimization/66510
16490         * tree-vect-stmts.c (vectorizable_load): Properly compute the
16491         number of vector loads for SLP permuted loads.
16492         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16493         check the stride for loop vectorization.
16494         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16495         vectorization factor.
16496         (vect_analyze_group_access): If the group size is not a power
16497         of two require a epilogue loop.
16498         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16499         compute and optimizing and alias test pruning after final
16500         vectorization factor computation.
16501         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16502         vector alignment.
16503         (vect_transform_slp_perm_load): Properly compute the original
16504         number of vector load stmts.
16505
16506 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16507
16508         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16509         "unlikely character , in @var" warning.
16510
16511 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
16512
16513         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16514         (ix86_function_arg_advance): Ditto.
16515         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
16516
16517 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16518
16519         * function.h (struct rtl_data): Remove struct and accessor macros.
16520         * emit-rtl.h (struct rtl_data): Relocate to here.
16521         * Makefile.in (GTFILES): Add emit-rtl.h.
16522         * df-core.c: Include emit-rtl.h.
16523         * genattrtab.c: Likewise.
16524         * genconditions.c: Likewise.
16525         * genpreds.c: Likewise.
16526         * genrecog.c: Likewise.
16527         * regcprop.c: Likewise.
16528         * resource.c: Likewise.
16529         * sched-rgn.c: Likewise.
16530         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16531         * config/i386/winnt.c: Likewise.
16532
16533 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
16534
16535         PR middle-end/66429
16536         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16537         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
16538         and has_force_vectorize_loops flags from cfun into
16539         child_cfun.
16540         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16541         if simduid is non-NULL.
16542         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16543         * passes.def (pass_simduid_cleanup): Add new pass after loop
16544         passes.
16545         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16546         indirection from htab argument's type.
16547         (shrink_simd_arrays): New function.
16548         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
16549         Don't call adjust_simduid_builtins if there are no loops.
16550         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16551         (pass_simduid_cleanup::execute): New method.
16552         (make_pass_simduid_cleanup): New function.
16553
16554 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
16555
16556         * tree-core.h (tree_target_option): Make opts field a pointer to a
16557         cl_target_option instead of an instance of the struct.
16558         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16559         the structure.
16560         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16561         TARGET_OPTION_NODE.
16562         (copy_node_stat): Allocate and copy struct cl_target_option.
16563
16564 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16565
16566         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16567         Remove conditional exposure of prototypes.
16568         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16569         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
16570         definitions in tree.h with functions.
16571         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16572         anon_aggrname_p.
16573         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16574
16575 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
16576
16577         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16578         (*cmp<mode>_signed): ... this.
16579         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16580         (*cmp<mode>_unsigned): ... this.  Remove %b.
16581
16582 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16583
16584         * coretypes.h: Include input.h and as-a.h.
16585         * rtl.h: Include input.h and as-a.h for generator files.
16586         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16587         * vec.c: Don't include diagnostic-core.h.
16588         * alias.c: Do not include input.h, line-map.h or is-a.h.
16589         * asan.c: Likewise.
16590         * attribs.c: Likewise.
16591         * auto-inc-dec.c: Likewise.
16592         * auto-profile.c: Likewise.
16593         * bb-reorder.c: Likewise.
16594         * bt-load.c: Likewise.
16595         * builtins.c: Likewise.
16596         * caller-save.c: Likewise.
16597         * calls.c: Likewise.
16598         * ccmp.c: Likewise.
16599         * cfg.c: Likewise.
16600         * cfganal.c: Likewise.
16601         * cfgbuild.c: Likewise.
16602         * cfgcleanup.c: Likewise.
16603         * cfgexpand.c: Likewise.
16604         * cfghooks.c: Likewise.
16605         * cfgloop.c: Likewise.
16606         * cfgloop.h: Likewise.
16607         * cfgloopanal.c: Likewise.
16608         * cfgloopmanip.c: Likewise.
16609         * cfgrtl.c: Likewise.
16610         * cgraph.c: Likewise.
16611         * cgraphbuild.c: Likewise.
16612         * cgraphclones.c: Likewise.
16613         * cgraphunit.c: Likewise.
16614         * cilk-common.c: Likewise.
16615         * combine-stack-adj.c: Likewise.
16616         * combine.c: Likewise.
16617         * compare-elim.c: Likewise.
16618         * convert.c: Likewise.
16619         * coverage.c: Likewise.
16620         * cppbuiltin.c: Likewise.
16621         * cprop.c: Likewise.
16622         * cse.c: Likewise.
16623         * cselib.c: Likewise.
16624         * data-streamer-in.c: Likewise.
16625         * data-streamer-out.c: Likewise.
16626         * data-streamer.c: Likewise.
16627         * dbxout.c: Likewise.
16628         * dce.c: Likewise.
16629         * ddg.c: Likewise.
16630         * debug.c: Likewise.
16631         * df-core.c: Likewise.
16632         * df-problems.c: Likewise.
16633         * df-scan.c: Likewise.
16634         * df.h: Likewise.
16635         * dfp.c: Likewise.
16636         * diagnostic-core.h: Likewise.
16637         * diagnostic.c: Likewise.
16638         * dojump.c: Likewise.
16639         * dominance.c: Likewise.
16640         * domwalk.c: Likewise.
16641         * double-int.c: Likewise.
16642         * dse.c: Likewise.
16643         * dumpfile.c: Likewise.
16644         * dumpfile.h: Likewise.
16645         * dwarf2asm.c: Likewise.
16646         * dwarf2cfi.c: Likewise.
16647         * dwarf2out.c: Likewise.
16648         * emit-rtl.c: Likewise.
16649         * et-forest.c: Likewise.
16650         * except.c: Likewise.
16651         * explow.c: Likewise.
16652         * expmed.c: Likewise.
16653         * expr.c: Likewise.
16654         * final.c: Likewise.
16655         * fixed-value.c: Likewise.
16656         * fold-const.c: Likewise.
16657         * function.c: Likewise.
16658         * fwprop.c: Likewise.
16659         * gcc-plugin.h: Likewise.
16660         * gcse.c: Likewise.
16661         * generic-match-head.c: Likewise.
16662         * ggc-page.c: Likewise.
16663         * gimple-builder.c: Likewise.
16664         * gimple-expr.c: Likewise.
16665         * gimple-fold.c: Likewise.
16666         * gimple-iterator.c: Likewise.
16667         * gimple-low.c: Likewise.
16668         * gimple-match-head.c: Likewise.
16669         * gimple-pretty-print.c: Likewise.
16670         * gimple-ssa-isolate-paths.c: Likewise.
16671         * gimple-ssa-strength-reduction.c: Likewise.
16672         * gimple-streamer-in.c: Likewise.
16673         * gimple-streamer-out.c: Likewise.
16674         * gimple-streamer.h: Likewise.
16675         * gimple-walk.c: Likewise.
16676         * gimple.c: Likewise.
16677         * gimplify-me.c: Likewise.
16678         * gimplify.c: Likewise.
16679         * godump.c: Likewise.
16680         * graph.c: Likewise.
16681         * graphite-blocking.c: Likewise.
16682         * graphite-dependences.c: Likewise.
16683         * graphite-interchange.c: Likewise.
16684         * graphite-isl-ast-to-gimple.c: Likewise.
16685         * graphite-optimize-isl.c: Likewise.
16686         * graphite-poly.c: Likewise.
16687         * graphite-scop-detection.c: Likewise.
16688         * graphite-sese-to-poly.c: Likewise.
16689         * graphite.c: Likewise.
16690         * haifa-sched.c: Likewise.
16691         * hw-doloop.c: Likewise.
16692         * ifcvt.c: Likewise.
16693         * init-regs.c: Likewise.
16694         * input.c: Likewise.
16695         * internal-fn.c: Likewise.
16696         * ipa-chkp.c: Likewise.
16697         * ipa-comdats.c: Likewise.
16698         * ipa-cp.c: Likewise.
16699         * ipa-devirt.c: Likewise.
16700         * ipa-icf-gimple.c: Likewise.
16701         * ipa-icf.c: Likewise.
16702         * ipa-inline-analysis.c: Likewise.
16703         * ipa-inline-transform.c: Likewise.
16704         * ipa-inline.c: Likewise.
16705         * ipa-polymorphic-call.c: Likewise.
16706         * ipa-profile.c: Likewise.
16707         * ipa-prop.c: Likewise.
16708         * ipa-pure-const.c: Likewise.
16709         * ipa-ref.c: Likewise.
16710         * ipa-reference.c: Likewise.
16711         * ipa-split.c: Likewise.
16712         * ipa-utils.c: Likewise.
16713         * ipa-visibility.c: Likewise.
16714         * ipa.c: Likewise.
16715         * ira-build.c: Likewise.
16716         * ira-color.c: Likewise.
16717         * ira-conflicts.c: Likewise.
16718         * ira-costs.c: Likewise.
16719         * ira-emit.c: Likewise.
16720         * ira-lives.c: Likewise.
16721         * ira.c: Likewise.
16722         * jump.c: Likewise.
16723         * langhooks.c: Likewise.
16724         * lcm.c: Likewise.
16725         * loop-doloop.c: Likewise.
16726         * loop-init.c: Likewise.
16727         * loop-invariant.c: Likewise.
16728         * loop-iv.c: Likewise.
16729         * loop-unroll.c: Likewise.
16730         * lower-subreg.c: Likewise.
16731         * lra-assigns.c: Likewise.
16732         * lra-coalesce.c: Likewise.
16733         * lra-constraints.c: Likewise.
16734         * lra-eliminations.c: Likewise.
16735         * lra-lives.c: Likewise.
16736         * lra-remat.c: Likewise.
16737         * lra-spills.c: Likewise.
16738         * lra.c: Likewise.
16739         * lto-cgraph.c: Likewise.
16740         * lto-compress.c: Likewise.
16741         * lto-opts.c: Likewise.
16742         * lto-section-in.c: Likewise.
16743         * lto-section-out.c: Likewise.
16744         * lto-streamer-in.c: Likewise.
16745         * lto-streamer-out.c: Likewise.
16746         * lto-streamer.c: Likewise.
16747         * mcf.c: Likewise.
16748         * mode-switching.c: Likewise.
16749         * modulo-sched.c: Likewise.
16750         * omega.c: Likewise.
16751         * omp-low.c: Likewise.
16752         * optabs.c: Likewise.
16753         * opts-global.c: Likewise.
16754         * opts.h: Likewise.
16755         * passes.c: Likewise.
16756         * plugin.c: Likewise.
16757         * postreload-gcse.c: Likewise.
16758         * postreload.c: Likewise.
16759         * predict.c: Likewise.
16760         * pretty-print.h: Likewise.
16761         * print-rtl.c: Likewise.
16762         * print-tree.c: Likewise.
16763         * profile.c: Likewise.
16764         * real.c: Likewise.
16765         * realmpfr.c: Likewise.
16766         * recog.c: Likewise.
16767         * ree.c: Likewise.
16768         * reg-stack.c: Likewise.
16769         * regcprop.c: Likewise.
16770         * reginfo.c: Likewise.
16771         * regrename.c: Likewise.
16772         * regstat.c: Likewise.
16773         * reload.c: Likewise.
16774         * reload1.c: Likewise.
16775         * reorg.c: Likewise.
16776         * resource.c: Likewise.
16777         * rtl-chkp.c: Likewise.
16778         * rtl-error.c: Likewise.
16779         * rtlanal.c: Likewise.
16780         * rtlhooks.c: Likewise.
16781         * sanopt.c: Likewise.
16782         * sched-deps.c: Likewise.
16783         * sched-ebb.c: Likewise.
16784         * sched-rgn.c: Likewise.
16785         * sched-vis.c: Likewise.
16786         * sdbout.c: Likewise.
16787         * sel-sched-dump.c: Likewise.
16788         * sel-sched-ir.c: Likewise.
16789         * sel-sched.c: Likewise.
16790         * sese.c: Likewise.
16791         * shrink-wrap.c: Likewise.
16792         * simplify-rtx.c: Likewise.
16793         * stack-ptr-mod.c: Likewise.
16794         * statistics.c: Likewise.
16795         * stmt.c: Likewise.
16796         * stor-layout.c: Likewise.
16797         * store-motion.c: Likewise.
16798         * streamer-hooks.c: Likewise.
16799         * stringpool.c: Likewise.
16800         * symtab.c: Likewise.
16801         * target-globals.c: Likewise.
16802         * targhooks.c: Likewise.
16803         * toplev.c: Likewise.
16804         * tracer.c: Likewise.
16805         * trans-mem.c: Likewise.
16806         * tree-affine.c: Likewise.
16807         * tree-browser.c: Likewise.
16808         * tree-call-cdce.c: Likewise.
16809         * tree-cfg.c: Likewise.
16810         * tree-cfgcleanup.c: Likewise.
16811         * tree-chkp-opt.c: Likewise.
16812         * tree-chkp.c: Likewise.
16813         * tree-chrec.c: Likewise.
16814         * tree-complex.c: Likewise.
16815         * tree-data-ref.c: Likewise.
16816         * tree-dfa.c: Likewise.
16817         * tree-diagnostic.c: Likewise.
16818         * tree-dump.c: Likewise.
16819         * tree-eh.c: Likewise.
16820         * tree-emutls.c: Likewise.
16821         * tree-if-conv.c: Likewise.
16822         * tree-inline.c: Likewise.
16823         * tree-into-ssa.c: Likewise.
16824         * tree-iterator.c: Likewise.
16825         * tree-loop-distribution.c: Likewise.
16826         * tree-nested.c: Likewise.
16827         * tree-nrv.c: Likewise.
16828         * tree-object-size.c: Likewise.
16829         * tree-outof-ssa.c: Likewise.
16830         * tree-parloops.c: Likewise.
16831         * tree-phinodes.c: Likewise.
16832         * tree-predcom.c: Likewise.
16833         * tree-pretty-print.c: Likewise.
16834         * tree-profile.c: Likewise.
16835         * tree-scalar-evolution.c: Likewise.
16836         * tree-sra.c: Likewise.
16837         * tree-ssa-address.c: Likewise.
16838         * tree-ssa-alias.c: Likewise.
16839         * tree-ssa-ccp.c: Likewise.
16840         * tree-ssa-coalesce.c: Likewise.
16841         * tree-ssa-copy.c: Likewise.
16842         * tree-ssa-copyrename.c: Likewise.
16843         * tree-ssa-dce.c: Likewise.
16844         * tree-ssa-dom.c: Likewise.
16845         * tree-ssa-dse.c: Likewise.
16846         * tree-ssa-forwprop.c: Likewise.
16847         * tree-ssa-ifcombine.c: Likewise.
16848         * tree-ssa-live.c: Likewise.
16849         * tree-ssa-loop-ch.c: Likewise.
16850         * tree-ssa-loop-im.c: Likewise.
16851         * tree-ssa-loop-ivcanon.c: Likewise.
16852         * tree-ssa-loop-ivopts.c: Likewise.
16853         * tree-ssa-loop-manip.c: Likewise.
16854         * tree-ssa-loop-niter.c: Likewise.
16855         * tree-ssa-loop-prefetch.c: Likewise.
16856         * tree-ssa-loop-unswitch.c: Likewise.
16857         * tree-ssa-loop.c: Likewise.
16858         * tree-ssa-math-opts.c: Likewise.
16859         * tree-ssa-operands.c: Likewise.
16860         * tree-ssa-phiopt.c: Likewise.
16861         * tree-ssa-phiprop.c: Likewise.
16862         * tree-ssa-pre.c: Likewise.
16863         * tree-ssa-propagate.c: Likewise.
16864         * tree-ssa-reassoc.c: Likewise.
16865         * tree-ssa-sccvn.c: Likewise.
16866         * tree-ssa-scopedtables.c: Likewise.
16867         * tree-ssa-sink.c: Likewise.
16868         * tree-ssa-strlen.c: Likewise.
16869         * tree-ssa-structalias.c: Likewise.
16870         * tree-ssa-tail-merge.c: Likewise.
16871         * tree-ssa-ter.c: Likewise.
16872         * tree-ssa-threadedge.c: Likewise.
16873         * tree-ssa-threadupdate.c: Likewise.
16874         * tree-ssa-uncprop.c: Likewise.
16875         * tree-ssa-uninit.c: Likewise.
16876         * tree-ssa.c: Likewise.
16877         * tree-ssanames.c: Likewise.
16878         * tree-stdarg.c: Likewise.
16879         * tree-streamer-in.c: Likewise.
16880         * tree-streamer-out.c: Likewise.
16881         * tree-streamer.c: Likewise.
16882         * tree-switch-conversion.c: Likewise.
16883         * tree-tailcall.c: Likewise.
16884         * tree-vect-data-refs.c: Likewise.
16885         * tree-vect-generic.c: Likewise.
16886         * tree-vect-loop-manip.c: Likewise.
16887         * tree-vect-loop.c: Likewise.
16888         * tree-vect-patterns.c: Likewise.
16889         * tree-vect-slp.c: Likewise.
16890         * tree-vect-stmts.c: Likewise.
16891         * tree-vectorizer.c: Likewise.
16892         * tree-vrp.c: Likewise.
16893         * tree.c: Likewise.
16894         * tsan.c: Likewise.
16895         * ubsan.c: Likewise.
16896         * valtrack.c: Likewise.
16897         * value-prof.c: Likewise.
16898         * var-tracking.c: Likewise.
16899         * varasm.c: Likewise.
16900         * varpool.c: Likewise.
16901         * vmsdbgout.c: Likewise.
16902         * vtable-verify.c: Likewise.
16903         * web.c: Likewise.
16904         * wide-int.cc: Likewise.
16905         * xcoffout.c: Likewise.
16906         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16907         * common/common-targhooks.c: Likewise.
16908         * config/aarch64/aarch64-builtins.c: Likewise.
16909         * config/aarch64/aarch64.c: Likewise.
16910         * config/alpha/alpha.c: Likewise.
16911         * config/arc/arc.c: Likewise.
16912         * config/arm/aarch-common.c: Likewise.
16913         * config/arm/arm-builtins.c: Likewise.
16914         * config/arm/arm-c.c: Likewise.
16915         * config/arm/arm.c: Likewise.
16916         * config/avr/avr-c.c: Likewise.
16917         * config/avr/avr-log.c: Likewise.
16918         * config/avr/avr.c: Likewise.
16919         * config/bfin/bfin.c: Likewise.
16920         * config/c6x/c6x.c: Likewise.
16921         * config/cr16/cr16.c: Likewise.
16922         * config/cris/cris.c: Likewise.
16923         * config/darwin-c.c: Likewise.
16924         * config/darwin.c: Likewise.
16925         * config/default-c.c: Likewise.
16926         * config/epiphany/epiphany.c: Likewise.
16927         * config/epiphany/mode-switch-use.c: Likewise.
16928         * config/epiphany/resolve-sw-modes.c: Likewise.
16929         * config/fr30/fr30.c: Likewise.
16930         * config/frv/frv.c: Likewise.
16931         * config/ft32/ft32.c: Likewise.
16932         * config/glibc-c.c: Likewise.
16933         * config/h8300/h8300.c: Likewise.
16934         * config/i386/i386-c.c: Likewise.
16935         * config/i386/i386.c: Likewise.
16936         * config/i386/msformat-c.c: Likewise.
16937         * config/i386/winnt-cxx.c: Likewise.
16938         * config/i386/winnt-stubs.c: Likewise.
16939         * config/i386/winnt.c: Likewise.
16940         * config/ia64/ia64-c.c: Likewise.
16941         * config/ia64/ia64.c: Likewise.
16942         * config/iq2000/iq2000.c: Likewise.
16943         * config/lm32/lm32.c: Likewise.
16944         * config/m32c/m32c-pragma.c: Likewise.
16945         * config/m32c/m32c.c: Likewise.
16946         * config/m32r/m32r.c: Likewise.
16947         * config/m68k/m68k.c: Likewise.
16948         * config/mcore/mcore.c: Likewise.
16949         * config/mep/mep-pragma.c: Likewise.
16950         * config/mep/mep.c: Likewise.
16951         * config/microblaze/microblaze-c.c: Likewise.
16952         * config/microblaze/microblaze.c: Likewise.
16953         * config/mips/mips.c: Likewise.
16954         * config/mmix/mmix.c: Likewise.
16955         * config/mn10300/mn10300.c: Likewise.
16956         * config/moxie/moxie.c: Likewise.
16957         * config/msp430/msp430-c.c: Likewise.
16958         * config/msp430/msp430.c: Likewise.
16959         * config/nds32/nds32-cost.c: Likewise.
16960         * config/nds32/nds32-fp-as-gp.c: Likewise.
16961         * config/nds32/nds32-intrinsic.c: Likewise.
16962         * config/nds32/nds32-isr.c: Likewise.
16963         * config/nds32/nds32-md-auxiliary.c: Likewise.
16964         * config/nds32/nds32-memory-manipulation.c: Likewise.
16965         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16966         * config/nds32/nds32-predicates.c: Likewise.
16967         * config/nds32/nds32.c: Likewise.
16968         * config/nios2/nios2.c: Likewise.
16969         * config/nvptx/nvptx.c: Likewise.
16970         * config/pa/pa.c: Likewise.
16971         * config/pdp11/pdp11.c: Likewise.
16972         * config/rl78/rl78-c.c: Likewise.
16973         * config/rl78/rl78.c: Likewise.
16974         * config/rs6000/rs6000-c.c: Likewise.
16975         * config/rs6000/rs6000.c: Likewise.
16976         * config/rx/rx.c: Likewise.
16977         * config/s390/s390-c.c: Likewise.
16978         * config/s390/s390.c: Likewise.
16979         * config/sh/sh-c.c: Likewise.
16980         * config/sh/sh-mem.cc: Likewise.
16981         * config/sh/sh.c: Likewise.
16982         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16983         * config/sh/sh_treg_combine.cc: Likewise.
16984         * config/sol2-c.c: Likewise.
16985         * config/sol2-cxx.c: Likewise.
16986         * config/sol2-stubs.c: Likewise.
16987         * config/sol2.c: Likewise.
16988         * config/sparc/sparc-c.c: Likewise.
16989         * config/sparc/sparc.c: Likewise.
16990         * config/spu/spu-c.c: Likewise.
16991         * config/spu/spu.c: Likewise.
16992         * config/stormy16/stormy16.c: Likewise.
16993         * config/tilegx/mul-tables.c: Likewise.
16994         * config/tilegx/tilegx-c.c: Likewise.
16995         * config/tilegx/tilegx.c: Likewise.
16996         * config/tilepro/mul-tables.c: Likewise.
16997         * config/tilepro/tilepro-c.c: Likewise.
16998         * config/tilepro/tilepro.c: Likewise.
16999         * config/v850/v850-c.c: Likewise.
17000         * config/v850/v850.c: Likewise.
17001         * config/vax/vax.c: Likewise.
17002         * config/visium/visium.c: Likewise.
17003         * config/vms/vms-c.c: Likewise.
17004         * config/vms/vms.c: Likewise.
17005         * config/vxworks.c: Likewise.
17006         * config/winnt-c.c: Likewise.
17007         * config/xtensa/xtensa.c: Likewise.
17008
17009 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
17010
17011         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17012         function.
17013         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17014
17015 2015-06-17  Richard Biener  <rguenther@suse.de>
17016
17017         PR tree-optimization/66251
17018         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17019         stmts for SLP strided stores.
17020
17021         Revert
17022         2015-05-22  Richard Biener  <rguenther@suse.de>
17023
17024         PR tree-optimization/66251
17025         * tree-vect-stmts.c (vectorizable_conversion): Properly
17026         set STMT_VINFO_VEC_STMT even for the SLP case.
17027
17028         2015-05-26  Michael Matz  <matz@suse.de>
17029
17030         PR middle-end/66251
17031         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17032         STMT_VINFO_VEC_STMT, also with SLP.
17033
17034 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
17035
17036         PR target/56766
17037         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17038         (*avx_addsubv4df3_1s): Ditto.
17039         (*sse3_addsubv2df3_1): Ditto.
17040         (*sse3_addsubv2df3_1s): Ditto.
17041         (*avx_addsubv8sf3_1): Ditto.
17042         (*avx_addsubv8sf3_1s): Ditto.
17043         (*sse3_addsubv4sf3_1): Ditto.
17044         (*sse3_addsubv4sf3_1s): Ditto.
17045
17046 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
17047
17048         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17049         (SYSROOT_SUFFIX_SPEC): Update.
17050         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17051         (STARTFILE_PREFIX_SPEC): Update.
17052         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17053         (MULTILIB_REQUIRED): New.
17054         (MULTILIB_OSDIRNAMES): New.
17055         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17056         (MULTILIB_REQUIRED): New.
17057         (MULTILIB_OSDIRNAMES): New.
17058
17059 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
17060
17061         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17062         * config/aarch64/aarch64-options-extensions.def: Update "fP",
17063         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
17064         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17065         (AARCH64_FL_PAN): New.
17066         (AARCH64_FL_LOR): New.
17067         (AARCH64_FL_RDMA): New.
17068         (AARCH64_FL_FOR_ARCH8_1): New.
17069         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17070         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17071
17072 2015-06-16  Martin Liska  <mliska@suse.cz>
17073
17074         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17075         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17076         guard.
17077
17078 2015-06-16  Richard Biener  <rguenther@suse.de>
17079
17080         * tree-vect-stmts.c (vectorizable_store): Adjust.
17081         (vectorizable_load): Likewise.
17082         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17083         Simplify.
17084         (vect_create_data_ref_ptr): Likewise.
17085         (bump_vector_ptr): Adjust.
17086
17087 2015-06-16  Richard Biener  <rguenther@suse.de>
17088
17089         * tree-vect-stmts.c (vectorizable_load): Properly start loads
17090         with the first element if this is grouped loads.
17091
17092 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
17093
17094         * config/arm/arm-protos.h (struct tune_params): Rename
17095         log_op_non_sc to log_op_non_short_circuit, and rename enum
17096         values to expand SC to SHORT_CIRCUIT.
17097         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17098         to LOG_OP_NON_SHORT_CIRCUIT.
17099         (arm_fastmul_tune):Likewise
17100         (arm_strongarm_tune): Likewise.
17101         (arm_xscale_tune): Likewise.
17102         (arm_9e_tune): Likewise.
17103         (arm_marvell_pj4_tune): Likewise.
17104         (arm_v6t2_tune): Likewise.
17105         (arm_cortex_tune): Likewise.
17106         (arm_cortex_a8_tune): Likewise.
17107         (arm_cortex_a7_tune): Likewise.
17108         (arm_cortex_a15_tune): Likewise.
17109         (arm_cortex_a53_tune): Likewise.
17110         (arm_cortex_a57_tune): Likewise.
17111         (arm_xgene1_tune): Likewise.
17112         (arm_cortex_a5_tune): Likewise.
17113         (arm_cortex_a9_tune): Likewise.
17114         (arm_cortex_a12_tune): Likewise.
17115         (arm_v7m_tune): Likewise.
17116         (arm_cortex_m7_tune): Likewise.
17117         (arm_v6m_tune): Likewise.
17118         (arm_fa726te_tune): Likewise.
17119
17120 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
17121
17122         * altivec.md: Delete UNSPEC_VMLADDUHM.
17123         (mulv4si3_p8): New pattern.
17124         (mulv4si3): Use it for POWER8.
17125         (mulv8hi3): Use vmladduhm with zero addend.
17126         (altivec_vmladduhm): Descriptive RTL.
17127
17128 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
17129
17130         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17131         to use neon_move instead of mov_imm.
17132         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17133         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17134
17135         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17136         aarch64_float_const_zero_rtx_p check before TFmode check.
17137         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17138         an fp zero.
17139         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
17140         code and attributes to match.  Change condition from register_operand
17141         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
17142         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
17143         to store2.
17144
17145 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
17146
17147         PR debug/66535
17148         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17149         there is no parent.
17150
17151 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
17152
17153         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17154         HOST_WIDE_INT parameter.
17155
17156 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
17157
17158         PR ipa/66181
17159         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17160         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17161         TYPE_NO_FORCE_BLK.
17162         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17163
17164 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
17165
17166         * rtl.h (classify_insn): Declare.
17167         * emit-rtl.c (classify_insn): Move to...
17168         * rtl.c: ...here and add generator support.
17169         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17170         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17171         * genemit.c (gen_emit_seq): New function.
17172         (gen_expand, gen_split): Use it.
17173
17174 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
17175
17176         * tree.c (make_vector_stat): Fix comment to state that the
17177         function returns a VECTOR_CST.
17178
17179 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
17180
17181         * gensupport.h (add_implicit_parallel): Declare.
17182         * genrecog.c (add_implicit_parallel): Move to...
17183         * gensupport.c (add_implicit_parallel): ...here.
17184         (process_one_cond_exec): Use it.
17185         * genemit.c (gen_insn): Likewise.
17186
17187 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
17188
17189         PR bootstrap/66448
17190         * passes.c (rest_of_decl_compilation): Do not register globals for
17191         early debug if they are declared in built-ins.
17192
17193 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
17194
17195         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17196
17197 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17198
17199         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17200         manually swapping.
17201         (noce_try_cmove_arith): Likewise.
17202         (noce_get_alt_condition): Likewise.
17203
17204 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17205
17206         * common/config/i386/i386-common.c
17207         (OPTION_MASK_ISA_MWAITX_SET): New.
17208         (ix86_handle_option): Handle mwaitx.
17209         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17210         (x86_64-*-*): Likewise.
17211         * config/i386/mwaitxintrin.h: New header.
17212         * config/i386/cpuid.h (bit_MWAITX):  Define.
17213         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17214         MWAITX support.
17215         * config/i386/i386.opt (mwaitx): New.
17216         * config/i386/i386-builtin-types.def
17217         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17218         * config/i386/i386-c.c: Define __MWAITX__ if needed.
17219         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17220         (PTA_MWAITX): New.
17221         (ix86_option_override_internal): Handle new option.
17222         (processor_alias_table): Added PTA_MWAITX.
17223         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17224         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17225         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17226         IX86_BUILTIN_MONITORX  built-ins.
17227         * config/i386/i386.h (TARGET_MWAITX): New.
17228         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17229         UNSPEC_MONITORX.
17230         (mwaitx):  New pattern.
17231         (monitorx_<mode>): New pattern.
17232         * config/i386/x86intrin.h: Include mwaitxintrin.h.
17233         * doc/extend.texi: Document monitorx and mwaitx builtins.
17234         * doc/invoke.texi: Document -mmwaitx option.
17235
17236 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
17237
17238         * emit-rtl.c (need_atomic_barrier_p): Mask model with
17239         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
17240
17241 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17242
17243         * dbxout.c (xcoff_debug_hooks): Provide a function for
17244         register_main_translation_unit hook.
17245
17246 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17247
17248         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
17249         variants cases from switch.
17250         (rs6000_post_atomic_barrier): Same.
17251         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
17252         (rs6000_expand_atomic_exchange): Same.
17253         (rs6000_expand_atomic_op): Same.
17254         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
17255         SYNC variants cases from switch.
17256         (atomic_load): Same.
17257         (atomic_store): Same.
17258
17259 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
17260
17261         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17262         CONST_INT for goto.
17263
17264 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
17265
17266         PR bootstrap/66448
17267         * dwarf2out.c (check_die): Check for common duplicate attributes.
17268         (add_location_or_const_value_attribute): Do not add duplicate
17269         attributes.
17270         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17271         time around.
17272         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17273         (gen_type_die_with_usage): Call check_die.
17274         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17275
17276 2015-06-11  Jason Merrill  <jason@redhat.com>
17277
17278         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17279         dies.
17280
17281 2015-06-11  Marek Polacek  <polacek@redhat.com>
17282
17283         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17284
17285 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
17286
17287         PR bootstrap/66252
17288         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17289         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17290         (*addx_extend_sp32): Fix pasto.
17291         (*subx_extend): Rename into...
17292         (*subx_extend_sp32): ...this.
17293         (*adddi3_extend_sp32): Add earlyclobber.
17294         (*subdi3_insn_sp32): Likewise.
17295         (*subdi3_extend_sp32): Likewise.
17296         (*and_not_di_sp32): Likewise.
17297         (*or_not_di_sp32): Likewise.
17298         (*xor_not_di_sp32): Likewise.
17299         (*negdi2_sp32): Likewise.
17300         (*one_cmpldi2_sp32): Likewise.
17301
17302 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
17303
17304         * debug.h (struct gcc_debug_hooks): Add a
17305         register_main_translation_unit hook.
17306         * debug.c (do_nothing_debug_hooks): Provide a function for this
17307         new hook.
17308         * dbxout.c (dbx_debug_hooks): Likewise.
17309         * sdbout.c (sdb_debug_hooks): Likewise.
17310         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17311         * dwarf2out.c (main_translation_unit): New global variable.
17312         (dwarf2out_register_main_translation_unit): New function
17313         implementing the new hook.
17314         (dwarf2_debug_hooks): Assign
17315         dwarf2out_register_main_translation_unit to this new hook.
17316         (dwarf2out_init): Associate any main translation unit to
17317         comp_unit_die ().
17318
17319 2015-06-11  Marek Polacek  <polacek@redhat.com>
17320
17321         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17322
17323 2015-06-11  Marek Polacek  <polacek@redhat.com>
17324
17325         * match.pd: Use single_use throughout.
17326
17327 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17328
17329         * config/arm/arm.c (arm_option_params_internal): When optimising
17330         for speed set max_insns_skipped when arm_restrict_it.
17331
17332 2015-06-11  Christian Bruel  <christian.bruel@st.com>
17333
17334         PR target/52144
17335         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17336          macros in ...
17337         (arm_cpu_builtins): New function.
17338         (arm_pragma_target_parse): Call arm_cpu_builtins.
17339         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17340         (arm_register_target_pragmas): Likewise.
17341         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17342          Call arm_register_target_pragmas.
17343         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17344         (arm_pragma_target_parse): Likewise.
17345
17346 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17347
17348         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17349         of the second operand.
17350
17351 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
17352
17353         PR target/66473
17354         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17355         to prepare mask operand for AVX512 modes.
17356
17357 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17358
17359         PR target/66474
17360         * doc/md.texi (Machine Constraints): Document that on the PowerPC
17361         if you use a constraint that targets a VSX register, you must use
17362         %x<n> in the template.
17363
17364 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
17365
17366         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17367         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17368         (define_insn "trap"): New definition.
17369
17370 2015-06-10  Richard Biener  <rguenther@suse.de>
17371
17372         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17373         out from ...
17374         (vect_supported_load_permutation_p): ... here.  Handle
17375         supportable permutations in reductions.
17376         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17377         for vectorizing strided group loads.
17378
17379 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
17380
17381         PR target/66470
17382         * config/i386/i386.c (ix86_split_long_move): For collisions
17383         involving direct tls segment refs, move the UNSPEC_TP possibly
17384         wrapped in ZERO_EXTEND out of the address for lea, to each of
17385         the memory loads.
17386
17387 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17388
17389         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17390         dmb sy. Adjust tabs.
17391
17392 2015-06-10  Tom de Vries  <tom@codesourcery.com>
17393
17394         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17395
17396 2015-06-10  Martin Liska  <mliska@suse.cz>
17397
17398         PR bootstrap/66471
17399         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17400         all enum values in mem_alloc_origin.
17401         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17402         name.
17403         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17404         * bitmap.c (bitmap_register): Likewise.
17405         (dump_bitmap_statistics): Likewise.
17406         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17407         (ggc_record_overhead): Likewise.
17408         * hash-map.h: Likewise.
17409         * hash-set.h: Likewise.
17410         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17411         * hash-table.h: Likewise.
17412         * vec.c (vec_prefix::register_overhead): Likewise.
17413         (vec_prefix::release_overhead): Likewise.
17414         (dump_vec_loc_statistics): Likewise.
17415
17416 2015-06-09  Christian Bruel  <christian.bruel@st.com>
17417
17418         PR target/52144
17419         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17420         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17421         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17422         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17423         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17424         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17425         (arm_valid_target_attribute_p): Likewise.
17426         (arm_set_current_function, arm_can_inline_p): Likewise.
17427         (arm_valid_target_attribute_rec): Likewise.
17428         (arm_previous_fndecl): New variable.
17429         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17430         (TARGET_CAN_INLINE_P): Define.
17431         (arm_asm_trampoline_template): Emit mode.
17432         (arm_file_start): Don't set unified syntax.
17433         (arm_declare_function_name): Set unified syntax and mode.
17434         (arm_option_override): Init target_option_default_node.
17435         and target_option_current_node.
17436         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17437         (*call_symbol): Likewise.
17438         * doc/extend.texi: Document ARM/Thumb target attribute.
17439         * doc/invoke.texi: Likewise.
17440
17441 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17442
17443         Revert:
17444         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17445         PR rtl-optimization/64164
17446         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17447         * tree-ssa-copyrename.c: Removed.
17448         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17449         -ftree-coalesce-vars.
17450         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17451         * common.opt (ftree-copyrename): Ignore.
17452         (ftree-coalesce-inlined-vars): Likewise.
17453         * doc/invoke.texi: Remove the ignored options above.
17454         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17455         * tree-ssa-coalesce.h: ... here.
17456         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17457         headers required by it.
17458         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17459         across variables when flag_tree_coalesce_vars.  Check register
17460         use and promoted modes to allow coalescing.  Moved to
17461         tree-ssa-coalesce.c.
17462         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17463         with its member functions to tree-ssa-coalesce.c.
17464         (var_map_base_init): Likewise.  Renamed to
17465         compute_samebase_partition_bases.
17466         (partition_view_normal): Drop want_bases parameter.
17467         (partition_view_bitmap): Likewise.
17468         * tree-ssa-live.h: Adjust declarations.
17469         * tree-ssa-coalesce.c: Include explow.h.
17470         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17471         default defs at the entry point.
17472         (dump_part_var_map): New.
17473         (compute_optimized_partition_bases): New, called by...
17474         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17475         of compute_samebase_partition_bases.  Adjust.
17476         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17477         * cfgexpand.c (leader_merge): New.
17478         (get_rtl_for_parm_ssa_default_def): New.
17479         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17480         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17481         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17482         redundant MEM attr setting.
17483         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17484         from...
17485         (expand_one_stack_var): ... this.  New wrapper to check and
17486         skip already expanded SSA partitions.
17487         (record_alignment_for_reg_var): New, factored out of...
17488         (expand_one_var): ... this.
17489         (expand_one_ssa_partition): New.
17490         (adjust_one_expanded_partition_var): New.
17491         (expand_one_register_var): Check and skip already expanded SSA
17492         partitions.
17493         (expand_used_vars): Don't create DECLs for anonymous SSA
17494         names.  Expand all SSA partitions, then adjust all SSA names.
17495         (pass::execute): Replace the loops that set
17496         SA.partition_to_pseudo from partition leaders and cleared
17497         DECL_RTL for multi-location variables, and that which used to
17498         rename vars and set attrs, with one that clears DECL_RTL and
17499         checks that PARMs and RESULTs default_defs match DECL_RTL.
17500         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17501         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17502         * explow.c (promote_ssa_mode): New.
17503         * explow.h (promote_ssa_mode): Declare.
17504         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17505         * function.c: Include cfgexpand.h.
17506         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17507         (use_register_for_parm_decl): Wrapper for the above to
17508         special-case the result_ptr.
17509         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17510         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17511         multiple locations.
17512         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17513         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17514         (assign_parm_setup_block): Prefer SSA-assigned location.
17515         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17516         if stack_parm is NULL.
17517         (assign_parm_setup_stack): Prefer SSA-assigned location.
17518         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17519         rtl before testing for pointer bounds.  Special-case result_ptr.
17520         (expand_function_start): Maybe reset DECL_RTL of result.
17521         Prefer SSA-assigned location for result and static chain.
17522         Factor out DECL_RESULT and SET_DECL_RTL.
17523         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17524         anonymous SSA names.  Use promote_ssa_mode.
17525         (get_temp_reg): Likewise.
17526         (remove_ssa_form): Adjust.
17527         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17528         and get its reg_usage for reg invalidation.
17529         (compute_bb_dataflow): Pass it insn.
17530         (emit_notes_in_bb): Likewise.
17531         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17532         fail assert on conversion between unsigned types.
17533
17534 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17535
17536         PR tree-optimization/65460
17537         * omp-low.c (expand_omp_target): Set parallelized_function on
17538         cgraph_node for child_fn.
17539
17540 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17541
17542         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17543         parallelized_function before add_new_function.
17544
17545 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
17546
17547         * gcc-plugin.h: Move decls to plugin.h and include it.
17548         * plugin.h: Relocate decls from gcc-plugin.h
17549         * ggc-page.c: Include required header files.
17550         * passes.c: Likewise.
17551         * cgraphunit.c: Likewise.
17552
17553 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17554
17555         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17556
17557 2015-06-09  Jason Merrill  <jason@redhat.com>
17558
17559         PR bootstrap/66448
17560         * toplev.c (check_global_declaration): Don't warn about a clone.
17561
17562 2015-06-09  Marek Polacek  <polacek@redhat.com>
17563
17564         PR tree-optimization/66299
17565         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17566         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17567         patterns.
17568
17569 2015-06-09  Richard Biener  <rguenther@suse.de>
17570
17571         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17572         (vect_analyze_slp_instance): Instead do not falsely drop
17573         load permutations.
17574
17575 2015-06-09  Richard Biener  <rguenther@suse.de>
17576
17577         PR middle-end/66423
17578         * match.pd: Handle A % (unsigned)(1 << B).
17579
17580 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
17581
17582         * varasm.c (output_object_block_htab): Remove.
17583         (output_object_block_compare): New.
17584         (output_object_blocks): Sort named object_blocks before outputting
17585         them.
17586
17587 2015-06-09  Richard Biener  <rguenther@suse.de>
17588
17589         PR tree-optimization/66419
17590         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17591         consider GROUP_GAP when detecting a perfect subchain.
17592
17593 2015-06-09  Nick Clifton  <nickc@redhat.com>
17594
17595         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17596         place read only data in the .frodata section.
17597
17598 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
17599
17600         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17601         (atomic_store<mode>): Likewise.
17602
17603 2015-06-09  Richard Biener  <rguenther@suse.de>
17604
17605         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17606
17607 2015-06-09  Richard Biener  <rguenther@suse.de>
17608
17609         PR middle-end/66413
17610         * tree-inline.c (insert_init_debug_bind): Unshare value.
17611
17612 2015-06-09  Richard Biener  <rguenther@suse.de>
17613
17614         PR tree-optimization/66396
17615         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17616         Rename virtual operands.
17617
17618 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17619
17620         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17621         always return false.
17622
17623 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17624
17625         PR rtl-optimization/64164
17626         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17627         * tree-ssa-copyrename.c: Removed.
17628         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17629         -ftree-coalesce-vars.
17630         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17631         * common.opt (ftree-copyrename): Ignore.
17632         (ftree-coalesce-inlined-vars): Likewise.
17633         * doc/invoke.texi: Remove the ignored options above.
17634         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17635         * tree-ssa-coalesce.h: ... here.
17636         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17637         headers required by it.
17638         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17639         across variables when flag_tree_coalesce_vars.  Check register
17640         use and promoted modes to allow coalescing.  Moved to
17641         tree-ssa-coalesce.c.
17642         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17643         with its member functions to tree-ssa-coalesce.c.
17644         (var_map_base_init): Likewise.  Renamed to
17645         compute_samebase_partition_bases.
17646         (partition_view_normal): Drop want_bases parameter.
17647         (partition_view_bitmap): Likewise.
17648         * tree-ssa-live.h: Adjust declarations.
17649         * tree-ssa-coalesce.c: Include explow.h.
17650         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17651         default defs at the entry point.
17652         (dump_part_var_map): New.
17653         (compute_optimized_partition_bases): New, called by...
17654         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17655         of compute_samebase_partition_bases.  Adjust.
17656         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17657         * cfgexpand.c (leader_merge): New.
17658         (get_rtl_for_parm_ssa_default_def): New.
17659         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17660         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17661         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17662         redundant MEM attr setting.
17663         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17664         from...
17665         (expand_one_stack_var): ... this.  New wrapper to check and
17666         skip already expanded SSA partitions.
17667         (record_alignment_for_reg_var): New, factored out of...
17668         (expand_one_var): ... this.
17669         (expand_one_ssa_partition): New.
17670         (adjust_one_expanded_partition_var): New.
17671         (expand_one_register_var): Check and skip already expanded SSA
17672         partitions.
17673         (expand_used_vars): Don't create DECLs for anonymous SSA
17674         names.  Expand all SSA partitions, then adjust all SSA names.
17675         (pass::execute): Replace the loops that set
17676         SA.partition_to_pseudo from partition leaders and cleared
17677         DECL_RTL for multi-location variables, and that which used to
17678         rename vars and set attrs, with one that clears DECL_RTL and
17679         checks that PARMs and RESULTs default_defs match DECL_RTL.
17680         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17681         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17682         * explow.c (promote_ssa_mode): New.
17683         * explow.h (promote_ssa_mode): Declare.
17684         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17685         * function.c: Include cfgexpand.h.
17686         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17687         (use_register_for_parm_decl): Wrapper for the above to
17688         special-case the result_ptr.
17689         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17690         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17691         multiple locations.
17692         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17693         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17694         (assign_parm_setup_block): Prefer SSA-assigned location.
17695         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17696         if stack_parm is NULL.
17697         (assign_parm_setup_stack): Prefer SSA-assigned location.
17698         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17699         rtl before testing for pointer bounds.  Special-case result_ptr.
17700         (expand_function_start): Maybe reset DECL_RTL of result.
17701         Prefer SSA-assigned location for result and static chain.
17702         Factor out DECL_RESULT and SET_DECL_RTL.
17703         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17704         anonymous SSA names.  Use promote_ssa_mode.
17705         (get_temp_reg): Likewise.
17706         (remove_ssa_form): Adjust.
17707         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17708         and get its reg_usage for reg invalidation.
17709         (compute_bb_dataflow): Pass it insn.
17710         (emit_notes_in_bb): Likewise.
17711         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17712         fail assert on conversion between unsigned types.
17713
17714 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17715
17716         PR debug/58315
17717         * tree-inline.c (reset_debug_binding): New.
17718         (reset_debug_bindings): Likewise.
17719         (expand_call_inline): Call it.
17720
17721 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17722
17723         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17724         TYPE_STRING_FLAG.
17725
17726 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17727
17728         * lto-streamer-out.c (lto_output_location): Stream
17729         reserved locations correctly.
17730         * lto-streamer-in.c (lto_output_location): Likewise.
17731
17732 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
17733
17734         * coretypes.h: Include hash-table.h and hash-set.h for host files.
17735         * ggc.h: Don't include statistics.h>
17736         * hash-map.h: Remove all includes.
17737         * hash-set.h: Likewise.
17738         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17739         the include list. Remove <new>.
17740         * inchash.h: Remove all includes.
17741         * mem-stats.h: Likewise.
17742         * vec.h: No special processing for generators or ggc.
17743         * alias.c : Adjust include files.
17744         * alloc-pool.c : Likewise.
17745         * alloc-pool.h : Likewise.
17746         * asan.c : Likewise.
17747         * attribs.c : Likewise.
17748         * auto-inc-dec.c : Likewise.
17749         * auto-profile.c : Likewise.
17750         * bb-reorder.c : Likewise.
17751         * bitmap.c : Likewise.
17752         * bitmap.h : Likewise.
17753         * bt-load.c : Likewise.
17754         * builtins.c : Likewise.
17755         * caller-save.c : Likewise.
17756         * calls.c : Likewise.
17757         * ccmp.c : Likewise.
17758         * cfg.c : Likewise.
17759         * cfganal.c : Likewise.
17760         * cfgbuild.c : Likewise.
17761         * cfgcleanup.c : Likewise.
17762         * cfgexpand.c : Likewise.
17763         * cfghooks.c : Likewise.
17764         * cfgloop.c : Likewise.
17765         * cfgloop.h : Likewise.
17766         * cfgloopanal.c : Likewise.
17767         * cfgloopmanip.c : Likewise.
17768         * cfgrtl.c : Likewise.
17769         * cgraph.c : Likewise.
17770         * cgraphbuild.c : Likewise.
17771         * cgraphclones.c : Likewise.
17772         * cgraphunit.c : Likewise.
17773         * cilk-common.c : Likewise.
17774         * combine-stack-adj.c : Likewise.
17775         * combine.c : Likewise.
17776         * compare-elim.c : Likewise.
17777         * context.c : Likewise.
17778         * convert.c : Likewise.
17779         * coverage.c : Likewise.
17780         * cppbuiltin.c : Likewise.
17781         * cprop.c : Likewise.
17782         * cse.c : Likewise.
17783         * cselib.c : Likewise.
17784         * data-streamer-in.c : Likewise.
17785         * data-streamer-out.c : Likewise.
17786         * data-streamer.c : Likewise.
17787         * data-streamer.h : Likewise.
17788         * dbxout.c : Likewise.
17789         * dce.c : Likewise.
17790         * ddg.c : Likewise.
17791         * debug.c : Likewise.
17792         * df-core.c : Likewise.
17793         * df-problems.c : Likewise.
17794         * df-scan.c : Likewise.
17795         * df.h : Likewise.
17796         * dfp.c : Likewise.
17797         * dojump.c : Likewise.
17798         * dominance.c : Likewise.
17799         * domwalk.c : Likewise.
17800         * double-int.c : Likewise.
17801         * dse.c : Likewise.
17802         * dumpfile.c : Likewise.
17803         * dwarf2asm.c : Likewise.
17804         * dwarf2cfi.c : Likewise.
17805         * dwarf2out.c : Likewise.
17806         * emit-rtl.c : Likewise.
17807         * et-forest.c : Likewise.
17808         * except.c : Likewise.
17809         * except.h : Likewise.
17810         * explow.c : Likewise.
17811         * expmed.c : Likewise.
17812         * expr.c : Likewise.
17813         * final.c : Likewise.
17814         * fixed-value.c : Likewise.
17815         * fold-const.c : Likewise.
17816         * function.c : Likewise.
17817         * fwprop.c : Likewise.
17818         * gcc-plugin.h : Likewise.
17819         * gcc.c : Likewise.
17820         * gcse-common.c : Likewise.
17821         * gcse.c : Likewise.
17822         * genattrtab.c : Likewise.
17823         * genautomata.c : Likewise.
17824         * genconditions.c : Likewise.
17825         * genemit.c : Likewise.
17826         * generic-match-head.c : Likewise.
17827         * genextract.c : Likewise.
17828         * gengtype-state.c : Likewise.
17829         * gengtype.c : Likewise.
17830         * genhooks.c : Likewise.
17831         * genmatch.c : Likewise.
17832         * genmodes.c : Likewise.
17833         * genrecog.c : Likewise.
17834         * gensupport.c : Likewise.
17835         * ggc-common.c : Likewise.
17836         * ggc-internal.h : Likewise.
17837         * ggc-none.c : Likewise.
17838         * ggc-page.c : Likewise.
17839         * gimple-builder.c : Likewise.
17840         * gimple-expr.c : Likewise.
17841         * gimple-fold.c : Likewise.
17842         * gimple-iterator.c : Likewise.
17843         * gimple-low.c : Likewise.
17844         * gimple-match-head.c : Likewise.
17845         * gimple-pretty-print.c : Likewise.
17846         * gimple-ssa-isolate-paths.c : Likewise.
17847         * gimple-ssa-strength-reduction.c : Likewise.
17848         * gimple-ssa.h : Likewise.
17849         * gimple-streamer-in.c : Likewise.
17850         * gimple-streamer-out.c : Likewise.
17851         * gimple-streamer.h : Likewise.
17852         * gimple-walk.c : Likewise.
17853         * gimple.c : Likewise.
17854         * gimplify-me.c : Likewise.
17855         * gimplify.c : Likewise.
17856         * godump.c : Likewise.
17857         * graph.c : Likewise.
17858         * graphds.c : Likewise.
17859         * graphite-blocking.c : Likewise.
17860         * graphite-dependences.c : Likewise.
17861         * graphite-interchange.c : Likewise.
17862         * graphite-isl-ast-to-gimple.c : Likewise.
17863         * graphite-optimize-isl.c : Likewise.
17864         * graphite-poly.c : Likewise.
17865         * graphite-scop-detection.c : Likewise.
17866         * graphite-sese-to-poly.c : Likewise.
17867         * graphite.c : Likewise.
17868         * haifa-sched.c : Likewise.
17869         * hard-reg-set.h : Likewise.
17870         * hw-doloop.c : Likewise.
17871         * ifcvt.c : Likewise.
17872         * inchash.c : Likewise.
17873         * incpath.c : Likewise.
17874         * init-regs.c : Likewise.
17875         * input.c : Likewise.
17876         * internal-fn.c : Likewise.
17877         * ipa-chkp.c : Likewise.
17878         * ipa-comdats.c : Likewise.
17879         * ipa-cp.c : Likewise.
17880         * ipa-devirt.c : Likewise.
17881         * ipa-icf-gimple.c : Likewise.
17882         * ipa-icf.c : Likewise.
17883         * ipa-inline-analysis.c : Likewise.
17884         * ipa-inline-transform.c : Likewise.
17885         * ipa-inline.c : Likewise.
17886         * ipa-polymorphic-call.c : Likewise.
17887         * ipa-profile.c : Likewise.
17888         * ipa-prop.c : Likewise.
17889         * ipa-pure-const.c : Likewise.
17890         * ipa-ref.c : Likewise.
17891         * ipa-reference.c : Likewise.
17892         * ipa-split.c : Likewise.
17893         * ipa-utils.c : Likewise.
17894         * ipa-visibility.c : Likewise.
17895         * ipa.c : Likewise.
17896         * ira-build.c : Likewise.
17897         * ira-color.c : Likewise.
17898         * ira-conflicts.c : Likewise.
17899         * ira-costs.c : Likewise.
17900         * ira-emit.c : Likewise.
17901         * ira-lives.c : Likewise.
17902         * ira.c : Likewise.
17903         * jump.c : Likewise.
17904         * langhooks.c : Likewise.
17905         * lcm.c : Likewise.
17906         * libfuncs.h : Likewise.
17907         * lists.c : Likewise.
17908         * loop-doloop.c : Likewise.
17909         * loop-init.c : Likewise.
17910         * loop-invariant.c : Likewise.
17911         * loop-iv.c : Likewise.
17912         * loop-unroll.c : Likewise.
17913         * lower-subreg.c : Likewise.
17914         * lra-assigns.c : Likewise.
17915         * lra-coalesce.c : Likewise.
17916         * lra-constraints.c : Likewise.
17917         * lra-eliminations.c : Likewise.
17918         * lra-lives.c : Likewise.
17919         * lra-remat.c : Likewise.
17920         * lra-spills.c : Likewise.
17921         * lra.c : Likewise.
17922         * lto-cgraph.c : Likewise.
17923         * lto-compress.c : Likewise.
17924         * lto-opts.c : Likewise.
17925         * lto-section-in.c : Likewise.
17926         * lto-section-out.c : Likewise.
17927         * lto-streamer-in.c : Likewise.
17928         * lto-streamer-out.c : Likewise.
17929         * lto-streamer.c : Likewise.
17930         * lto-streamer.h : Likewise.
17931         * mcf.c : Likewise.
17932         * mode-switching.c : Likewise.
17933         * modulo-sched.c : Likewise.
17934         * omega.c : Likewise.
17935         * omp-low.c : Likewise.
17936         * optabs.c : Likewise.
17937         * opts-global.c : Likewise.
17938         * opts.h : Likewise.
17939         * passes.c : Likewise.
17940         * plugin.c : Likewise.
17941         * postreload-gcse.c : Likewise.
17942         * postreload.c : Likewise.
17943         * predict.c : Likewise.
17944         * print-rtl.c : Likewise.
17945         * print-tree.c : Likewise.
17946         * profile.c : Likewise.
17947         * read-md.c : Likewise.
17948         * read-md.h : Likewise.
17949         * read-rtl.c : Likewise.
17950         * real.c : Likewise.
17951         * realmpfr.c : Likewise.
17952         * recog.c : Likewise.
17953         * ree.c : Likewise.
17954         * reg-stack.c : Likewise.
17955         * regcprop.c : Likewise.
17956         * reginfo.c : Likewise.
17957         * regrename.c : Likewise.
17958         * regstat.c : Likewise.
17959         * reload.c : Likewise.
17960         * reload1.c : Likewise.
17961         * reorg.c : Likewise.
17962         * resource.c : Likewise.
17963         * rtl-chkp.c : Likewise.
17964         * rtl.c : Likewise.
17965         * rtl.h : Likewise.
17966         * rtlanal.c : Likewise.
17967         * rtlhash.c : Likewise.
17968         * rtlhash.h : Likewise.
17969         * rtlhooks.c : Likewise.
17970         * sanopt.c : Likewise.
17971         * sched-deps.c : Likewise.
17972         * sched-ebb.c : Likewise.
17973         * sched-rgn.c : Likewise.
17974         * sched-vis.c : Likewise.
17975         * sdbout.c : Likewise.
17976         * sel-sched-dump.c : Likewise.
17977         * sel-sched-ir.c : Likewise.
17978         * sel-sched-ir.h : Likewise.
17979         * sel-sched.c : Likewise.
17980         * sese.c : Likewise.
17981         * shrink-wrap.c : Likewise.
17982         * shrink-wrap.h : Likewise.
17983         * simplify-rtx.c : Likewise.
17984         * stack-ptr-mod.c : Likewise.
17985         * statistics.c : Likewise.
17986         * stmt.c : Likewise.
17987         * stor-layout.c : Likewise.
17988         * store-motion.c : Likewise.
17989         * stringpool.c : Likewise.
17990         * symtab.c : Likewise.
17991         * target-globals.c : Likewise.
17992         * targhooks.c : Likewise.
17993         * tlink.c : Likewise.
17994         * toplev.c : Likewise.
17995         * tracer.c : Likewise.
17996         * trans-mem.c : Likewise.
17997         * tree-affine.c : Likewise.
17998         * tree-affine.h : Likewise.
17999         * tree-browser.c : Likewise.
18000         * tree-call-cdce.c : Likewise.
18001         * tree-cfg.c : Likewise.
18002         * tree-cfgcleanup.c : Likewise.
18003         * tree-chkp-opt.c : Likewise.
18004         * tree-chkp.c : Likewise.
18005         * tree-chrec.c : Likewise.
18006         * tree-complex.c : Likewise.
18007         * tree-data-ref.c : Likewise.
18008         * tree-dfa.c : Likewise.
18009         * tree-diagnostic.c : Likewise.
18010         * tree-dump.c : Likewise.
18011         * tree-eh.c : Likewise.
18012         * tree-eh.h : Likewise.
18013         * tree-emutls.c : Likewise.
18014         * tree-hasher.h : Likewise.
18015         * tree-if-conv.c : Likewise.
18016         * tree-inline.c : Likewise.
18017         * tree-inline.h : Likewise.
18018         * tree-into-ssa.c : Likewise.
18019         * tree-iterator.c : Likewise.
18020         * tree-loop-distribution.c : Likewise.
18021         * tree-nested.c : Likewise.
18022         * tree-nrv.c : Likewise.
18023         * tree-object-size.c : Likewise.
18024         * tree-outof-ssa.c : Likewise.
18025         * tree-parloops.c : Likewise.
18026         * tree-phinodes.c : Likewise.
18027         * tree-predcom.c : Likewise.
18028         * tree-pretty-print.c : Likewise.
18029         * tree-profile.c : Likewise.
18030         * tree-scalar-evolution.c : Likewise.
18031         * tree-sra.c : Likewise.
18032         * tree-ssa-address.c : Likewise.
18033         * tree-ssa-alias.c : Likewise.
18034         * tree-ssa-ccp.c : Likewise.
18035         * tree-ssa-coalesce.c : Likewise.
18036         * tree-ssa-copy.c : Likewise.
18037         * tree-ssa-copyrename.c : Likewise.
18038         * tree-ssa-dce.c : Likewise.
18039         * tree-ssa-dom.c : Likewise.
18040         * tree-ssa-dse.c : Likewise.
18041         * tree-ssa-forwprop.c : Likewise.
18042         * tree-ssa-ifcombine.c : Likewise.
18043         * tree-ssa-live.c : Likewise.
18044         * tree-ssa-loop-ch.c : Likewise.
18045         * tree-ssa-loop-im.c : Likewise.
18046         * tree-ssa-loop-ivcanon.c : Likewise.
18047         * tree-ssa-loop-ivopts.c : Likewise.
18048         * tree-ssa-loop-manip.c : Likewise.
18049         * tree-ssa-loop-niter.c : Likewise.
18050         * tree-ssa-loop-prefetch.c : Likewise.
18051         * tree-ssa-loop-unswitch.c : Likewise.
18052         * tree-ssa-loop.c : Likewise.
18053         * tree-ssa-math-opts.c : Likewise.
18054         * tree-ssa-operands.c : Likewise.
18055         * tree-ssa-phiopt.c : Likewise.
18056         * tree-ssa-phiprop.c : Likewise.
18057         * tree-ssa-pre.c : Likewise.
18058         * tree-ssa-propagate.c : Likewise.
18059         * tree-ssa-reassoc.c : Likewise.
18060         * tree-ssa-sccvn.c : Likewise.
18061         * tree-ssa-scopedtables.c : Likewise.
18062         * tree-ssa-sink.c : Likewise.
18063         * tree-ssa-strlen.c : Likewise.
18064         * tree-ssa-structalias.c : Likewise.
18065         * tree-ssa-tail-merge.c : Likewise.
18066         * tree-ssa-ter.c : Likewise.
18067         * tree-ssa-threadedge.c : Likewise.
18068         * tree-ssa-threadupdate.c : Likewise.
18069         * tree-ssa-uncprop.c : Likewise.
18070         * tree-ssa-uninit.c : Likewise.
18071         * tree-ssa.c : Likewise.
18072         * tree-ssanames.c : Likewise.
18073         * tree-stdarg.c : Likewise.
18074         * tree-streamer-in.c : Likewise.
18075         * tree-streamer-out.c : Likewise.
18076         * tree-streamer.c : Likewise.
18077         * tree-streamer.h : Likewise.
18078         * tree-switch-conversion.c : Likewise.
18079         * tree-tailcall.c : Likewise.
18080         * tree-vect-data-refs.c : Likewise.
18081         * tree-vect-generic.c : Likewise.
18082         * tree-vect-loop-manip.c : Likewise.
18083         * tree-vect-loop.c : Likewise.
18084         * tree-vect-patterns.c : Likewise.
18085         * tree-vect-slp.c : Likewise.
18086         * tree-vect-stmts.c : Likewise.
18087         * tree-vectorizer.c : Likewise.
18088         * tree-vectorizer.h : Likewise.
18089         * tree-vrp.c : Likewise.
18090         * tree.c : Likewise.
18091         * tsan.c : Likewise.
18092         * ubsan.c : Likewise.
18093         * valtrack.c : Likewise.
18094         * valtrack.h : Likewise.
18095         * value-prof.c : Likewise.
18096         * var-tracking.c : Likewise.
18097         * varasm.c : Likewise.
18098         * varpool.c : Likewise.
18099         * vec.c: Likewise.
18100         * vmsdbgout.c : Likewise.
18101         * vtable-verify.c : Likewise.
18102         * vtable-verify.h : Likewise.
18103         * web.c : Likewise.
18104         * wide-int.cc : Likewise.
18105         * xcoffout.c : Likewise.
18106         * config/aarch64/aarch64-builtins.c : Likewise.
18107         * config/aarch64/aarch64.c : Likewise.
18108         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18109         * config/alpha/alpha.c : Likewise.
18110         * config/arc/arc.c : Likewise.
18111         * config/arm/aarch-common.c : Likewise.
18112         * config/arm/arm-builtins.c : Likewise.
18113         * config/arm/arm-c.c : Likewise.
18114         * config/arm/arm.c : Likewise.
18115         * config/avr/avr-c.c : Likewise.
18116         * config/avr/avr-log.c : Likewise.
18117         * config/avr/avr.c : Likewise.
18118         * config/bfin/bfin.c : Likewise.
18119         * config/c6x/c6x.c : Likewise.
18120         * config/cr16/cr16.c : Likewise.
18121         * config/cris/cris.c : Likewise.
18122         * config/darwin-c.c : Likewise.
18123         * config/darwin.c : Likewise.
18124         * config/default-c.c : Likewise.
18125         * config/epiphany/epiphany.c : Likewise.
18126         * config/epiphany/mode-switch-use.c : Likewise.
18127         * config/epiphany/resolve-sw-modes.c : Likewise.
18128         * config/fr30/fr30.c : Likewise.
18129         * config/frv/frv.c : Likewise.
18130         * config/ft32/ft32.c : Likewise.
18131         * config/glibc-c.c : Likewise.
18132         * config/h8300/h8300.c : Likewise.
18133         * config/i386/i386-c.c : Likewise.
18134         * config/i386/i386.c : Likewise.
18135         * config/i386/msformat-c.c : Likewise.
18136         * config/i386/winnt-cxx.c : Likewise.
18137         * config/i386/winnt-stubs.c : Likewise.
18138         * config/i386/winnt.c : Likewise.
18139         * config/ia64/ia64-c.c : Likewise.
18140         * config/ia64/ia64.c : Likewise.
18141         * config/iq2000/iq2000.c : Likewise.
18142         * config/lm32/lm32.c : Likewise.
18143         * config/m32c/m32c-pragma.c : Likewise.
18144         * config/m32c/m32c.c : Likewise.
18145         * config/m32r/m32r.c : Likewise.
18146         * config/m68k/m68k.c : Likewise.
18147         * config/mcore/mcore.c : Likewise.
18148         * config/mep/mep-pragma.c : Likewise.
18149         * config/mep/mep.c : Likewise.
18150         * config/microblaze/microblaze-c.c : Likewise.
18151         * config/microblaze/microblaze.c : Likewise.
18152         * config/mips/mips.c : Likewise.
18153         * config/mmix/mmix.c : Likewise.
18154         * config/mn10300/mn10300.c : Likewise.
18155         * config/moxie/moxie.c : Likewise.
18156         * config/msp430/msp430-c.c : Likewise.
18157         * config/msp430/msp430.c : Likewise.
18158         * config/nds32/nds32-cost.c : Likewise.
18159         * config/nds32/nds32-fp-as-gp.c : Likewise.
18160         * config/nds32/nds32-intrinsic.c : Likewise.
18161         * config/nds32/nds32-isr.c : Likewise.
18162         * config/nds32/nds32-md-auxiliary.c : Likewise.
18163         * config/nds32/nds32-memory-manipulation.c : Likewise.
18164         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18165         * config/nds32/nds32-predicates.c : Likewise.
18166         * config/nds32/nds32.c : Likewise.
18167         * config/nios2/nios2.c : Likewise.
18168         * config/nvptx/nvptx.c : Likewise.
18169         * config/pa/pa.c : Likewise.
18170         * config/pdp11/pdp11.c : Likewise.
18171         * config/rl78/rl78-c.c : Likewise.
18172         * config/rl78/rl78.c : Likewise.
18173         * config/rs6000/rs6000-c.c : Likewise.
18174         * config/rs6000/rs6000.c : Likewise.
18175         * config/rx/rx.c : Likewise.
18176         * config/s390/s390-c.c : Likewise.
18177         * config/s390/s390.c : Likewise.
18178         * config/sh/sh-c.c : Likewise.
18179         * config/sh/sh-mem.cc : Likewise.
18180         * config/sh/sh.c : Likewise.
18181         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18182         * config/sh/sh_treg_combine.cc : Likewise.
18183         * config/sol2-c.c : Likewise.
18184         * config/sol2-cxx.c : Likewise.
18185         * config/sol2-stubs.c : Likewise.
18186         * config/sol2.c : Likewise.
18187         * config/sparc/sparc-c.c : Likewise.
18188         * config/sparc/sparc.c : Likewise.
18189         * config/spu/spu-c.c : Likewise.
18190         * config/spu/spu.c : Likewise.
18191         * config/stormy16/stormy16.c : Likewise.
18192         * config/tilegx/mul-tables.c : Likewise.
18193         * config/tilegx/tilegx-c.c : Likewise.
18194         * config/tilegx/tilegx.c : Likewise.
18195         * config/tilepro/mul-tables.c : Likewise.
18196         * config/tilepro/tilepro-c.c : Likewise.
18197         * config/tilepro/tilepro.c : Likewise.
18198         * config/v850/v850-c.c : Likewise.
18199         * config/v850/v850.c : Likewise.
18200         * config/vax/vax.c : Likewise.
18201         * config/visium/visium.c : Likewise.
18202         * config/vms/vms-c.c : Likewise.
18203         * config/vms/vms.c : Likewise.
18204         * config/vxworks.c : Likewise.
18205         * config/winnt-c.c : Likewise.
18206         * config/xtensa/xtensa.c : Likewise.
18207
18208 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
18209
18210         PR lto/65378
18211         * ipa-utils.h (warn_types_mismatch): Update prototype.
18212         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18213         parameters.
18214         (type_mismatch_p): New function.
18215         (warn_types_mismatch): Reorg to work better on non-C++ types.
18216         (odr_types_equivalent_p): Add loc1/loc2 parameters.
18217         (add_type_duplicate): Update.
18218
18219 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18220
18221         PR rtl-optimization/66444
18222         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18223         call_used_regs.
18224
18225 2015-06-08  Richard Biener  <rguenther@suse.de>
18226
18227         PR tree-optimization/66422
18228         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18229         block after inserted gcc_unreachable.
18230
18231 2015-06-08  Nick Clifton  <nickc@redhat.com>
18232
18233         * config/rx/rx.c (rx_function_value): Do not promote vector types.
18234         (rx_promote_function_mode): Likewise.
18235         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18236
18237 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
18238
18239         * genattrtab.c (insn_alternatives): Change type from int *
18240         to uint64_t *.
18241         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
18242         (get_attr_value): Change type of num_alt to uint64_t.
18243         (compute_alternative_mask): Change return type from
18244         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
18245         (make_alternative_compare, mk_attr_alt): Change argument type
18246         from int to uint64_t.
18247         (simplify_test_exp): Change type of i from int to uint64_t.
18248         Shift ((uint64_t) 1) instead of 1 up.
18249         (main): Adjust oballocvec first argument from int to uint64_t.
18250         Shift ((uint64_t) 1) instead of 1 up.
18251
18252 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
18253
18254         PR other/65366
18255         * gdbhooks.py: Import sys.
18256         (intptr): New function.  Replace int(...) by intptr(...).
18257
18258 2015-06-08  Richard Biener  <rguenther@suse.de>
18259
18260         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18261         adjustment for gaps at the end of a SLP load group properly.
18262         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18263         all permutations we can generate.
18264         (vect_transform_slp_perm_load): Use the correct group-size.
18265
18266 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
18267
18268         * genmatch.c (expr::gen_transform): For conditions, guess the type
18269         from the second operand.
18270
18271 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18272
18273         PR tree-optimization/66442
18274         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18275         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18276         if the loop latch is not a singleton.  Use
18277         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18278
18279 2015-06-08  Marek Polacek  <polacek@redhat.com>
18280
18281         PR sanitizer/66452
18282         * toplev.c (check_global_declaration): Don't warn about artificial
18283         decls.
18284
18285 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18286
18287         PR tree-optimization/66436
18288         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18289         dump file.
18290         * gimplify.c: Add tree-dump.h include.
18291         (gimplify_function_tree): Dump function to gimple dump file.
18292         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18293         dump file.
18294
18295 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18296
18297         PR tree-optimization/66435
18298         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18299         function.
18300
18301 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
18302
18303         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18304         of ptr_type_node to not be ptr_to_node.
18305         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18306         TREE_TYPE of pointers.
18307         * gimple-expr.c (useless_type_conversion): Reorder the check for
18308         function pointers and TYPE_CANONICAL.
18309
18310 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
18311
18312         PR bootstrap/66319
18313         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18314         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18315         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18316         later.
18317         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18318         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18319         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18320         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18321         and non iso if unix2003.
18322
18323 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
18324
18325         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18326
18327 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
18328
18329         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18330         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18331         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18332         except.c, final.c, function.c, gcse-common.c, genemit.c,
18333         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18334         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18335         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18336         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18337         more derived ones.
18338
18339 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
18340
18341         * combine.c (combine_split_insns): Remove cast.
18342         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18343         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18344         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18345         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18346         * genemit.c (gen_split): Change return type of generated functions to
18347         rtx_insn.
18348         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18349         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18350         gen_peephole2_* functions.
18351         (print_subroutine, main): Likewise.
18352         * recog.c (peephole2_optimize): Remove cast.
18353         (peep2_next_insn): Promote return type to rtx_insn.
18354         * recog.h (peep2_next_insn): Fix prototype.
18355         * rtl.h (try_split, split_insns): Likewise.
18356
18357 2015-06-06  DJ Delorie  <dj@redhat.com>
18358
18359         * config/msp430/msp430.c (msp430_asm_integer): Support addition
18360         and subtraction too.
18361
18362 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18363
18364         PR target/66410
18365         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18366         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18367         instead of Snd.  Disparage Sid/z alternative with '^'.
18368
18369 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
18370
18371         * dwarf2out.c: Remove deferred_locations*.
18372         (dwarf2_debug_hooks): Add early_finish hook.
18373         Remove global_decl hook.
18374         Add early_global_decl and late_global_decl hook.
18375         New global early_dwarf.
18376         New structure set_early_dwarf.
18377         (output_die): Indicate whether a DIE was generated early
18378         when generating assembly with -dA.
18379         (struct limbo_die_struct): Document created_for field.
18380         Remove file_table_last_lookup.
18381         (remove_AT): Return TRUE if successful.
18382         (remove_child_TAG): Clear die_parent.
18383         (reparent_child): New function abstracted from...
18384         (splice_child_die): ...here.
18385         (new_die): ICE if a DIE ends up in limbo too late.
18386         (check_die): New.
18387         (defer_location): Remove.
18388         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18389         (fill_variable_array_bounds): New.
18390         (decl_start_label): Call fill_variable_array_bounds.
18391         (gen_formal_parameter_die): Rewrite to reuse previously generated
18392         DIEs.
18393         (gen_subprogram_die): Same.
18394         (gen_variable_die): Same.
18395         (gen_const_die): Same.
18396         (gen_label_die): Same.
18397         (gen_lexical_block_die): Same.
18398         (decl_will_get_specification_p): New.
18399         (local_function_static): New.
18400         (gen_struct_or_union_type_die): Fill in variable-length fields.
18401         (gen_typedef_die): Fill in variable-length typedefs.
18402         (gen_tagged_type_die): Gracefully return on error_mark_node.
18403         Handle re-entrancy.
18404         (gen_type_die_with_usage): Handle variable-length types.
18405         Remove duplicate code for ARRAY_TYPE case.
18406         (process_scope_var): Only process imported modules during early
18407         dwarf.
18408         (dwarf2out_early_global_decl): New.
18409         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18410         (dwarf2out_type_decl): Set early_dwarf while calling
18411         dwarf2out_decl.
18412         (dwarf2out_decl): Verify that we did not recreate a previously
18413         generated DIE.
18414         Do not return on DECL_EXTERNALs in VAR_DECLs.
18415         Abstract some code to local_function_static.
18416         (lookup_filename): Remove use of file_table_last_lookup.
18417         Gracefully exit on missing file_name.
18418         (dwarf2out_finish): Verify limbo list.
18419         Remove deferred_locations_list use.
18420         Move deferred_asm_name and limbo flushing to...
18421         (dwarf2out_early_finish): ...here.  New.
18422         (dwarf2out_c_finalize): Remove set of deferred_location_list,
18423         deferred_asm_name, and file_table_last_lookup.
18424         * cgraph.h (referred_to_p): Add default argument.
18425         * cgraphunit.c (referred_to_p): Add and handle include_self
18426         argument.
18427         (analyze_functions): Add first_time argument.
18428         Call check_global_declaration for all symbols.
18429         Call late_global_decl for nodes for moribund nodes.
18430         (finalize_compilation_unit): Add new argument to
18431         analyze_functions.
18432         Call early_global_decl for functions.
18433         Call early_finish debug hook.
18434         * dbxout.c (dbxout_early_global_decl): New.
18435         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
18436         (dbx_debug_hooks): Add new hooks.
18437         (xcoff_debug_hooks): Same.
18438         * debug.c (do_nothing_debug_hooks): Add early_finish field.
18439         Add early and late debug hooks.
18440         Remove global_decl hook.
18441         * debug.h (struct gcc_debug_hooks): Add early_finish,
18442         early_global_decl, and late_global_decl fields.
18443         Remove global_decl field.
18444         Document gcc_debug_hooks.
18445         * gengtype.c (output_typename): Remove.
18446         * godump.c (go_early_global_decl): New.
18447         (go_late_global_decl): New.
18448         (go_global_decl): Remove.
18449         (dump_go_spec_init): Remove global_decl.  Add
18450         {early,late}_global_decl.
18451         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18452         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18453         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18454         (write_global_declarations): Remove.
18455         (global_decl_processing): New.
18456         * langhooks.h (struct lang_hooks_for_decls): Remove
18457         final_write_globals field.
18458         Add post_compilation_parsing_cleanups field.
18459         * passes.c (rest_of_decl_compilation): Call early_global_decl.
18460         * sdbout.c: Add early and late_global_decl hooks.  Remove
18461         sdbout_global_decl hook.
18462         Add early_finish field for sdb_debug_hooks.
18463         (sdbout_global_decl): Remove.
18464         (sdbout_early_global_decl): New.
18465         (sdbout_late_global_decl): New.
18466         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18467         * toplev.c (check_global_declaration): Rename from
18468         check_global_declaration_1.
18469         Adapt to use symtab infrastructure.
18470         (check_global_declarations): Remove.
18471         (emit_debug_global_declarations): Remove.
18472         (compile_file): Remove call to final_write_globals langhook.
18473         Run the actual compilation process.
18474         Perform any post compilation parser cleanups.
18475         Generate late debug info.
18476         * toplev.h (check_global_declaration): New.
18477         (check_global_declaration_1): Remove.
18478         (check_global_declarations): Remove.
18479         (write_global_declarations): Remove.
18480         (emit_debug_global_declarations): Remove.
18481         (global_decl_processing): New.
18482         * tree-core.h (struct tree_block): Add DIE field.
18483         * tree.h (BLOCK_DIE): New.
18484         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18485         throughout.
18486         (vmsdbgout_early_global_decl): New.
18487         (vmsdbgout_late_global_decl): New.
18488         Add early_finish debug hook field to vmsdbg_debug_hooks.
18489         Remove vmsdbgout_decl to vmsdbgout_function_decl.
18490         Add early and late_global_decl debug hooks.
18491
18492 2015-06-05  Julian Brown  <julian@codesourcery.com>
18493             Sandra Loosemore  <sandra@codesourcery.com>
18494
18495         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18496         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18497         to print-sysroot-suffix.sh script.
18498
18499 2015-06-05  Tom de Vries  <tom@codesourcery.com>
18500
18501         merge from gomp4 branch:
18502         2015-05-28  Tom de Vries  <tom@codesourcery.com>
18503
18504         PR tree-optimization/65443
18505         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18506         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18507         (try_transform_to_exit_first_loop_alt): New function.
18508         (transform_to_exit_first_loop): Use
18509         try_transform_to_exit_first_loop_alt.
18510
18511 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
18512
18513         * builtins.c (expand_builtin_atomic_compare_exchange): Call
18514         emit_cmp_and_jump_insns with the mode of target.
18515
18516 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18517
18518         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18519
18520 2015-06-04  DJ Delorie  <dj@redhat.com>
18521
18522         * config/msp430/msp430.md (movsi_s): New.  Special case for
18523         storing a 20-bit symbol into a 32-bit register.
18524         * config/msp430/msp430.c (msp430_subreg): Add support for it.
18525         * config/msp430/predicates.md (msp430_symbol_operand): New.
18526
18527 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
18528
18529         * c-family/c-common.c (noplt): New attribute.
18530         (handle_noplt_attribute): New handler.
18531         * calls.c (prepare_call_address): Check for noplt
18532         attribute.
18533         * config/i386/i386.c (ix86_expand_call): Check
18534         for noplt attribute.
18535         (ix86_nopic_noplt_attribute_p): New function.
18536         (ix86_output_call_insn): Output indirect call for non-pic
18537         no plt calls.
18538         * doc/extend.texi (noplt): Document new attribute.
18539         * doc/invoke.texi: Document new attribute.
18540
18541 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
18542
18543         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18544         real.h, and fixed-value.h when included in host source files.
18545         * double-int.h: Remove redundant #includes listed above.
18546         * fixed-value.h: Likewise.
18547         * real.h: Likewise.
18548         * wide-int.h: Likewise.
18549         * inchash.h: Likewise.
18550         * rtl.h: Add some include files When included from a generator file.
18551         * target.h: Remove wide-int.h and insn-modes.h from the include list.
18552         * internal-fn.h: Don't include coretypes.h.
18553         * alias.c: Adjust includes for restructured coretypes.h.
18554         * asan.c: Likewise.
18555         * attribs.c: Likewise.
18556         * auto-inc-dec.c: Likewise.
18557         * auto-profile.c: Likewise.
18558         * bb-reorder.c: Likewise.
18559         * bt-load.c: Likewise.
18560         * builtins.c: Likewise.
18561         * caller-save.c: Likewise.
18562         * calls.c: Likewise.
18563         * ccmp.c: Likewise.
18564         * cfg.c: Likewise.
18565         * cfganal.c: Likewise.
18566         * cfgbuild.c: Likewise.
18567         * cfgcleanup.c: Likewise.
18568         * cfgexpand.c: Likewise.
18569         * cfghooks.c: Likewise.
18570         * cfgloop.c: Likewise.
18571         * cfgloop.h: Likewise.
18572         * cfgloopanal.c: Likewise.
18573         * cfgloopmanip.c: Likewise.
18574         * cfgrtl.c: Likewise.
18575         * cgraph.c: Likewise.
18576         * cgraphbuild.c: Likewise.
18577         * cgraphclones.c: Likewise.
18578         * cgraphunit.c: Likewise.
18579         * cilk-common.c: Likewise.
18580         * combine-stack-adj.c: Likewise.
18581         * combine.c: Likewise.
18582         * compare-elim.c: Likewise.
18583         * convert.c: Likewise.
18584         * coverage.c: Likewise.
18585         * cppbuiltin.c: Likewise.
18586         * cprop.c: Likewise.
18587         * cse.c: Likewise.
18588         * cselib.c: Likewise.
18589         * data-streamer-in.c: Likewise.
18590         * data-streamer-out.c: Likewise.
18591         * data-streamer.c: Likewise.
18592         * dbxout.c: Likewise.
18593         * dce.c: Likewise.
18594         * ddg.c: Likewise.
18595         * debug.c: Likewise.
18596         * df-core.c: Likewise.
18597         * df-problems.c: Likewise.
18598         * df-scan.c: Likewise.
18599         * df.h: Likewise.
18600         * dfp.c: Likewise.
18601         * dojump.c: Likewise.
18602         * dominance.c: Likewise.
18603         * domwalk.c: Likewise.
18604         * double-int.c: Likewise.
18605         * dse.c: Likewise.
18606         * dumpfile.c: Likewise.
18607         * dwarf2asm.c: Likewise.
18608         * dwarf2cfi.c: Likewise.
18609         * dwarf2out.c: Likewise.
18610         * dwarf2out.h: Likewise.
18611         * emit-rtl.c: Likewise.
18612         * et-forest.c: Likewise.
18613         * except.c: Likewise.
18614         * explow.c: Likewise.
18615         * expmed.c: Likewise.
18616         * expr.c: Likewise.
18617         * final.c: Likewise.
18618         * fixed-value.c: Likewise.
18619         * fold-const.c: Likewise.
18620         * function.c: Likewise.
18621         * fwprop.c: Likewise.
18622         * gcc-plugin.h: Likewise.
18623         * gcse.c: Likewise.
18624         * generic-match-head.c: Likewise.
18625         * ggc-page.c: Likewise.
18626         * gimple-builder.c: Likewise.
18627         * gimple-expr.c: Likewise.
18628         * gimple-fold.c: Likewise.
18629         * gimple-iterator.c: Likewise.
18630         * gimple-low.c: Likewise.
18631         * gimple-match-head.c: Likewise.
18632         * gimple-pretty-print.c: Likewise.
18633         * gimple-ssa-isolate-paths.c: Likewise.
18634         * gimple-ssa-strength-reduction.c: Likewise.
18635         * gimple-streamer-in.c: Likewise.
18636         * gimple-streamer-out.c: Likewise.
18637         * gimple-streamer.h: Likewise.
18638         * gimple-walk.c: Likewise.
18639         * gimple.c: Likewise.
18640         * gimplify-me.c: Likewise.
18641         * gimplify.c: Likewise.
18642         * godump.c: Likewise.
18643         * graph.c: Likewise.
18644         * graphite-blocking.c: Likewise.
18645         * graphite-dependences.c: Likewise.
18646         * graphite-interchange.c: Likewise.
18647         * graphite-isl-ast-to-gimple.c: Likewise.
18648         * graphite-optimize-isl.c: Likewise.
18649         * graphite-poly.c: Likewise.
18650         * graphite-scop-detection.c: Likewise.
18651         * graphite-sese-to-poly.c: Likewise.
18652         * graphite.c: Likewise.
18653         * haifa-sched.c: Likewise.
18654         * hooks.h: Likewise.
18655         * hw-doloop.c: Likewise.
18656         * ifcvt.c: Likewise.
18657         * incpath.c: Likewise.
18658         * init-regs.c: Likewise.
18659         * internal-fn.c: Likewise.
18660         * ipa-chkp.c: Likewise.
18661         * ipa-comdats.c: Likewise.
18662         * ipa-cp.c: Likewise.
18663         * ipa-devirt.c: Likewise.
18664         * ipa-icf-gimple.c: Likewise.
18665         * ipa-icf.c: Likewise.
18666         * ipa-inline-analysis.c: Likewise.
18667         * ipa-inline-transform.c: Likewise.
18668         * ipa-inline.c: Likewise.
18669         * ipa-polymorphic-call.c: Likewise.
18670         * ipa-profile.c: Likewise.
18671         * ipa-prop.c: Likewise.
18672         * ipa-pure-const.c: Likewise.
18673         * ipa-ref.c: Likewise.
18674         * ipa-reference.c: Likewise.
18675         * ipa-split.c: Likewise.
18676         * ipa-utils.c: Likewise.
18677         * ipa-visibility.c: Likewise.
18678         * ipa.c: Likewise.
18679         * ira-build.c: Likewise.
18680         * ira-color.c: Likewise.
18681         * ira-conflicts.c: Likewise.
18682         * ira-costs.c: Likewise.
18683         * ira-emit.c: Likewise.
18684         * ira-lives.c: Likewise.
18685         * ira.c: Likewise.
18686         * jump.c: Likewise.
18687         * langhooks.c: Likewise.
18688         * lcm.c: Likewise.
18689         * loop-doloop.c: Likewise.
18690         * loop-init.c: Likewise.
18691         * loop-invariant.c: Likewise.
18692         * loop-iv.c: Likewise.
18693         * loop-unroll.c: Likewise.
18694         * lower-subreg.c: Likewise.
18695         * lra-assigns.c: Likewise.
18696         * lra-coalesce.c: Likewise.
18697         * lra-constraints.c: Likewise.
18698         * lra-eliminations.c: Likewise.
18699         * lra-lives.c: Likewise.
18700         * lra-remat.c: Likewise.
18701         * lra-spills.c: Likewise.
18702         * lra.c: Likewise.
18703         * lto-cgraph.c: Likewise.
18704         * lto-compress.c: Likewise.
18705         * lto-opts.c: Likewise.
18706         * lto-section-in.c: Likewise.
18707         * lto-section-out.c: Likewise.
18708         * lto-streamer-in.c: Likewise.
18709         * lto-streamer-out.c: Likewise.
18710         * lto-streamer.c: Likewise.
18711         * mcf.c: Likewise.
18712         * mode-switching.c: Likewise.
18713         * modulo-sched.c: Likewise.
18714         * omega.c: Likewise.
18715         * omp-low.c: Likewise.
18716         * optabs.c: Likewise.
18717         * opts-global.c: Likewise.
18718         * passes.c: Likewise.
18719         * plugin.c: Likewise.
18720         * postreload-gcse.c: Likewise.
18721         * postreload.c: Likewise.
18722         * predict.c: Likewise.
18723         * print-rtl.c: Likewise.
18724         * print-tree.c: Likewise.
18725         * profile.c: Likewise.
18726         * real.c: Likewise.
18727         * realmpfr.c: Likewise.
18728         * realmpfr.h: Likewise.
18729         * recog.c: Likewise.
18730         * ree.c: Likewise.
18731         * reg-stack.c: Likewise.
18732         * regcprop.c: Likewise.
18733         * reginfo.c: Likewise.
18734         * regrename.c: Likewise.
18735         * regs.h: Likewise.
18736         * regstat.c: Likewise.
18737         * reload.c: Likewise.
18738         * reload1.c: Likewise.
18739         * reorg.c: Likewise.
18740         * resource.c: Likewise.
18741         * rtl-chkp.c: Likewise.
18742         * rtlanal.c: Likewise.
18743         * rtlhooks.c: Likewise.
18744         * sanopt.c: Likewise.
18745         * sched-deps.c: Likewise.
18746         * sched-ebb.c: Likewise.
18747         * sched-rgn.c: Likewise.
18748         * sched-vis.c: Likewise.
18749         * sdbout.c: Likewise.
18750         * sel-sched-dump.c: Likewise.
18751         * sel-sched-ir.c: Likewise.
18752         * sel-sched.c: Likewise.
18753         * sese.c: Likewise.
18754         * shrink-wrap.c: Likewise.
18755         * shrink-wrap.h: Likewise.
18756         * simplify-rtx.c: Likewise.
18757         * stack-ptr-mod.c: Likewise.
18758         * statistics.c: Likewise.
18759         * stmt.c: Likewise.
18760         * stor-layout.c: Likewise.
18761         * store-motion.c: Likewise.
18762         * stringpool.c: Likewise.
18763         * symtab.c: Likewise.
18764         * target-globals.c: Likewise.
18765         * targhooks.c: Likewise.
18766         * toplev.c: Likewise.
18767         * tracer.c: Likewise.
18768         * trans-mem.c: Likewise.
18769         * tree-affine.c: Likewise.
18770         * tree-affine.h: Likewise.
18771         * tree-browser.c: Likewise.
18772         * tree-call-cdce.c: Likewise.
18773         * tree-cfg.c: Likewise.
18774         * tree-cfgcleanup.c: Likewise.
18775         * tree-chkp-opt.c: Likewise.
18776         * tree-chkp.c: Likewise.
18777         * tree-chrec.c: Likewise.
18778         * tree-complex.c: Likewise.
18779         * tree-data-ref.c: Likewise.
18780         * tree-dfa.c: Likewise.
18781         * tree-diagnostic.c: Likewise.
18782         * tree-dump.c: Likewise.
18783         * tree-eh.c: Likewise.
18784         * tree-emutls.c: Likewise.
18785         * tree-if-conv.c: Likewise.
18786         * tree-inline.c: Likewise.
18787         * tree-into-ssa.c: Likewise.
18788         * tree-iterator.c: Likewise.
18789         * tree-loop-distribution.c: Likewise.
18790         * tree-nested.c: Likewise.
18791         * tree-nrv.c: Likewise.
18792         * tree-object-size.c: Likewise.
18793         * tree-outof-ssa.c: Likewise.
18794         * tree-parloops.c: Likewise.
18795         * tree-phinodes.c: Likewise.
18796         * tree-predcom.c: Likewise.
18797         * tree-pretty-print.c: Likewise.
18798         * tree-pretty-print.h: Likewise.
18799         * tree-profile.c: Likewise.
18800         * tree-scalar-evolution.c: Likewise.
18801         * tree-sra.c: Likewise.
18802         * tree-ssa-address.c: Likewise.
18803         * tree-ssa-alias.c: Likewise.
18804         * tree-ssa-ccp.c: Likewise.
18805         * tree-ssa-coalesce.c: Likewise.
18806         * tree-ssa-copy.c: Likewise.
18807         * tree-ssa-copyrename.c: Likewise.
18808         * tree-ssa-dce.c: Likewise.
18809         * tree-ssa-dom.c: Likewise.
18810         * tree-ssa-dse.c: Likewise.
18811         * tree-ssa-forwprop.c: Likewise.
18812         * tree-ssa-ifcombine.c: Likewise.
18813         * tree-ssa-live.c: Likewise.
18814         * tree-ssa-loop-ch.c: Likewise.
18815         * tree-ssa-loop-im.c: Likewise.
18816         * tree-ssa-loop-ivcanon.c: Likewise.
18817         * tree-ssa-loop-ivopts.c: Likewise.
18818         * tree-ssa-loop-manip.c: Likewise.
18819         * tree-ssa-loop-niter.c: Likewise.
18820         * tree-ssa-loop-prefetch.c: Likewise.
18821         * tree-ssa-loop-unswitch.c: Likewise.
18822         * tree-ssa-loop.c: Likewise.
18823         * tree-ssa-loop.h: Likewise.
18824         * tree-ssa-math-opts.c: Likewise.
18825         * tree-ssa-operands.c: Likewise.
18826         * tree-ssa-phiopt.c: Likewise.
18827         * tree-ssa-phiprop.c: Likewise.
18828         * tree-ssa-pre.c: Likewise.
18829         * tree-ssa-propagate.c: Likewise.
18830         * tree-ssa-reassoc.c: Likewise.
18831         * tree-ssa-sccvn.c: Likewise.
18832         * tree-ssa-scopedtables.c: Likewise.
18833         * tree-ssa-sink.c: Likewise.
18834         * tree-ssa-strlen.c: Likewise.
18835         * tree-ssa-structalias.c: Likewise.
18836         * tree-ssa-tail-merge.c: Likewise.
18837         * tree-ssa-ter.c: Likewise.
18838         * tree-ssa-threadedge.c: Likewise.
18839         * tree-ssa-threadupdate.c: Likewise.
18840         * tree-ssa-uncprop.c: Likewise.
18841         * tree-ssa-uninit.c: Likewise.
18842         * tree-ssa.c: Likewise.
18843         * tree-ssanames.c: Likewise.
18844         * tree-stdarg.c: Likewise.
18845         * tree-streamer-in.c: Likewise.
18846         * tree-streamer-out.c: Likewise.
18847         * tree-streamer.c: Likewise.
18848         * tree-switch-conversion.c: Likewise.
18849         * tree-tailcall.c: Likewise.
18850         * tree-vect-data-refs.c: Likewise.
18851         * tree-vect-generic.c: Likewise.
18852         * tree-vect-loop-manip.c: Likewise.
18853         * tree-vect-loop.c: Likewise.
18854         * tree-vect-patterns.c: Likewise.
18855         * tree-vect-slp.c: Likewise.
18856         * tree-vect-stmts.c: Likewise.
18857         * tree-vectorizer.c: Likewise.
18858         * tree-vrp.c: Likewise.
18859         * tree.c: Likewise.
18860         * tsan.c: Likewise.
18861         * ubsan.c: Likewise.
18862         * valtrack.c: Likewise.
18863         * value-prof.c: Likewise.
18864         * var-tracking.c: Likewise.
18865         * varasm.c: Likewise.
18866         * varpool.c: Likewise.
18867         * vmsdbgout.c: Likewise.
18868         * vtable-verify.c: Likewise.
18869         * web.c: Likewise.
18870         * wide-int-print.cc: Likewise.
18871         * wide-int-print.h: Likewise.
18872         * wide-int.cc: Likewise.
18873         * xcoffout.c: Likewise.
18874         * config/aarch64/aarch64-builtins.c: Likewise.
18875         * config/aarch64/aarch64.c: Likewise.
18876         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18877         * config/alpha/alpha.c: Likewise.
18878         * config/arc/arc.c: Likewise.
18879         * config/arm/aarch-common.c: Likewise.
18880         * config/arm/arm-builtins.c: Likewise.
18881         * config/arm/arm-c.c: Likewise.
18882         * config/arm/arm.c: Likewise.
18883         * config/avr/avr-c.c: Likewise.
18884         * config/avr/avr-log.c: Likewise.
18885         * config/avr/avr.c: Likewise.
18886         * config/bfin/bfin.c: Likewise.
18887         * config/c6x/c6x.c: Likewise.
18888         * config/cr16/cr16.c: Likewise.
18889         * config/cris/cris.c: Likewise.
18890         * config/darwin-c.c: Likewise.
18891         * config/darwin.c: Likewise.
18892         * config/default-c.c: Likewise.
18893         * config/epiphany/epiphany.c: Likewise.
18894         * config/epiphany/mode-switch-use.c: Likewise.
18895         * config/epiphany/resolve-sw-modes.c: Likewise.
18896         * config/fr30/fr30.c: Likewise.
18897         * config/frv/frv.c: Likewise.
18898         * config/ft32/ft32.c: Likewise.
18899         * config/glibc-c.c: Likewise.
18900         * config/h8300/h8300.c: Likewise.
18901         * config/i386/i386-c.c: Likewise.
18902         * config/i386/i386.c: Likewise.
18903         * config/i386/msformat-c.c: Likewise.
18904         * config/i386/winnt-cxx.c: Likewise.
18905         * config/i386/winnt-stubs.c: Likewise.
18906         * config/i386/winnt.c: Likewise.
18907         * config/ia64/ia64-c.c: Likewise.
18908         * config/ia64/ia64.c: Likewise.
18909         * config/iq2000/iq2000.c: Likewise.
18910         * config/lm32/lm32.c: Likewise.
18911         * config/m32c/m32c-pragma.c: Likewise.
18912         * config/m32c/m32c.c: Likewise.
18913         * config/m32r/m32r.c: Likewise.
18914         * config/m68k/m68k.c: Likewise.
18915         * config/mcore/mcore.c: Likewise.
18916         * config/mep/mep-pragma.c: Likewise.
18917         * config/mep/mep.c: Likewise.
18918         * config/microblaze/microblaze-c.c: Likewise.
18919         * config/microblaze/microblaze.c: Likewise.
18920         * config/mips/mips.c: Likewise.
18921         * config/mmix/mmix.c: Likewise.
18922         * config/mn10300/mn10300.c: Likewise.
18923         * config/moxie/moxie.c: Likewise.
18924         * config/msp430/msp430-c.c: Likewise.
18925         * config/msp430/msp430.c: Likewise.
18926         * config/nds32/nds32-cost.c: Likewise.
18927         * config/nds32/nds32-fp-as-gp.c: Likewise.
18928         * config/nds32/nds32-intrinsic.c: Likewise.
18929         * config/nds32/nds32-isr.c: Likewise.
18930         * config/nds32/nds32-md-auxiliary.c: Likewise.
18931         * config/nds32/nds32-memory-manipulation.c: Likewise.
18932         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18933         * config/nds32/nds32-predicates.c: Likewise.
18934         * config/nds32/nds32.c: Likewise.
18935         * config/nios2/nios2.c: Likewise.
18936         * config/nvptx/nvptx.c: Likewise.
18937         * config/pa/pa.c: Likewise.
18938         * config/pdp11/pdp11.c: Likewise.
18939         * config/rl78/rl78-c.c: Likewise.
18940         * config/rl78/rl78.c: Likewise.
18941         * config/rs6000/rs6000-c.c: Likewise.
18942         * config/rs6000/rs6000.c: Likewise.
18943         * config/rx/rx.c: Likewise.
18944         * config/s390/s390-c.c: Likewise.
18945         * config/s390/s390.c: Likewise.
18946         * config/sh/sh-c.c: Likewise.
18947         * config/sh/sh-mem.cc: Likewise.
18948         * config/sh/sh.c: Likewise.
18949         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18950         * config/sh/sh_treg_combine.cc: Likewise.
18951         * config/sol2-c.c: Likewise.
18952         * config/sol2-cxx.c: Likewise.
18953         * config/sol2-stubs.c: Likewise.
18954         * config/sol2.c: Likewise.
18955         * config/sparc/sparc-c.c: Likewise.
18956         * config/sparc/sparc.c: Likewise.
18957         * config/spu/spu-c.c: Likewise.
18958         * config/spu/spu.c: Likewise.
18959         * config/stormy16/stormy16.c: Likewise.
18960         * config/tilegx/mul-tables.c: Likewise.
18961         * config/tilegx/tilegx-c.c: Likewise.
18962         * config/tilegx/tilegx.c: Likewise.
18963         * config/tilepro/mul-tables.c: Likewise.
18964         * config/tilepro/tilepro-c.c: Likewise.
18965         * config/tilepro/tilepro.c: Likewise.
18966         * config/v850/v850-c.c: Likewise.
18967         * config/v850/v850.c: Likewise.
18968         * config/vax/vax.c: Likewise.
18969         * config/visium/visium.c: Likewise.
18970         * config/vms/vms-c.c: Likewise.
18971         * config/vms/vms.c: Likewise.
18972         * config/vxworks.c: Likewise.
18973         * config/winnt-c.c: Likewise.
18974         * config/xtensa/xtensa.c: Likewise.
18975         * common/config/bfin/bfin-common.c: Likewise.
18976
18977 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
18978
18979         * tree.h (tree_code_for_canonical_type_merging): New function.
18980         * tree.c (gimple_canonical_types_compatible_p): Use
18981         tree_code_for_canonical_type_merging..
18982
18983 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18984
18985         PR c++/66192
18986         PR target/66200
18987         * doc/tm.texi: Regenerate.
18988         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
18989         * target.def (TARGET_RELAXED_ORDERING): Likewise.
18990         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
18991         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
18992         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
18993         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
18994         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
18995         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
18996         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
18997
18998 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18999
19000         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19001         register fma steering pass.
19002         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19003         AARCH64_TUNE_FMA_STEERING.
19004
19005 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
19006
19007         * tree.c (verify_type_variant): Verify that type and variant is
19008         compatible.
19009         (gimple_canonical_types_compatible_p): Look for main variants.
19010
19011 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19012
19013         * config.gcc (powerpc*-*-*): Add support for a new configure
19014         option --with-advance-toolchain=<xxx> which overrides using the
19015         default header files, libraries and dynamic linker.
19016
19017         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19018         specs to support the configure --with-advance-toolchain=<xxx>
19019         option.
19020         (INCLUDE_EXTRA_SPEC): Likewise.
19021         (LINK_OS_EXTRA_SPEC32): Likewise.
19022         (LINK_OK_EXTRA_SPEC64): Likewise.
19023         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19024         (DYNAMIC_LINKER_PREFIX): Likewise.
19025         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19026         toolchain support.
19027         (GLIBC_DYNAMIC_LINKER32): Likewise.
19028         (GLIBC_DYNAMIC_LINKER64): Likewise.
19029         (LINK_OS_LINUX_SPEC32): Likewise.
19030         (LINK_OS_LINUX_SPEC64): Likewise.
19031
19032         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19033         configuration option.
19034
19035 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
19036
19037         PR target/66275
19038         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19039         to determine current function ABI.
19040         (ix86_function_value_regno_p): Ditto.
19041
19042 2015-06-03  Martin Liska  <mliska@suse.cz>
19043
19044         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19045         * bitmap.h (struct bitmap_usage): Likewise.
19046         * ggc-common.c (struct ggc_usage): Likewise.
19047         * mem-stats.h (struct mem_location): Likewise.
19048         (struct mem_usage): Likewise.
19049         * vec.c (struct vec_usage): Likewise.
19050
19051 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
19052
19053         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19054         -Bsymbolic.
19055
19056 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
19057
19058         * doc/plugins.texi (enum plugin_event): New event.
19059         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19060         and PLUGIN_FINISH_FUNCTION.
19061         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19062         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19063
19064 2015-06-03  Richard Biener  <rguenther@suse.de>
19065
19066         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19067         compute GROUP_GAP for the first element.
19068         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19069         on in-group gaps.
19070
19071 2015-06-03  Nick Clifton  <nickc@redhat.com>
19072
19073         * config/rl78/rl78-real.md: Add peepholes to avoid a register
19074         copy when calling a function.
19075         * config/rl78/rl78.c (need_to_save): Do not push the frame
19076         pointer in an interrupt handler prologue if it is never used.
19077
19078 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19079
19080         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19081
19082 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
19083
19084         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19085         reference when cloning alias node.
19086
19087 2015-06-03  Martin Liska  <mliska@suse.cz>
19088
19089         * alloc-pool.h (struct pool_usage): Correct space padding.
19090         * ggc-page.c (ggc_print_statistics): Align columns in a report.
19091         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19092         * tree.c (dump_tree_statistics): Align columns in a report.
19093
19094 2015-06-03  Martin Liska  <mliska@suse.cz>
19095
19096         * alloc-pool.c (allocate_pool_descriptor): Remove.
19097         (struct pool_output_info): Likewise.
19098         (print_alloc_pool_statistics): Likewise.
19099         (dump_alloc_pool_statistics): Likewise.
19100         * alloc-pool.h (struct pool_usage): New struct.
19101         (pool_allocator::initialize): Change usage of memory statistics
19102         to a new interface.
19103         (pool_allocator::release): Likewise.
19104         (pool_allocator::allocate): Likewise.
19105         (pool_allocator::remove): Likewise.
19106         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19107         for a pool allocator.
19108         * mem-stats.h (struct mem_location): Add new ctor.
19109         (struct mem_usage): Add counter for number of
19110         instances.
19111         (mem_alloc_description::register_descriptor): New overload of
19112         * mem-stats.h (mem_location::to_string): New function.
19113         * bitmap.h (struct bitmap_usage): Use this new function.
19114         * ggc-common.c (struct ggc_usage): Likewise.
19115         the function.
19116
19117 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19118
19119         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19120         of GCC_INSN_FLAGS_H block.
19121
19122 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19123
19124         * explow.c (plus_constant): Update check after force_const_mem call
19125         to see if the value returned is not a NULL_RTX.
19126
19127 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
19128
19129         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19130         remove instumentation thunks calling reachable functions.
19131         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19132         * lto/lto-partition.c (privatize_symbol_name_1): New.
19133         (privatize_symbol_name): Privatize both decl and orig_decl
19134         names for instrumented functions.
19135         * cgraph.c (cgraph_node::verify_node): Add transparent
19136         alias chain check for instrumented node.
19137
19138 2015-06-03  Marek Polacek  <polacek@redhat.com>
19139
19140         PR c/64223
19141         PR c/29358
19142         * tree.c (attribute_value_equal): Handle attribute format.
19143         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19144
19145 2015-06-03  Richard Biener  <rguenther@suse.de>
19146
19147         PR tree-optimization/63916
19148         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19149         Forward-propagate non-invariant addresses by splicing their
19150         reference ops if the result isn't going to be used by PRE.
19151         (vn_reference_lookup_3): Remove pointless assert.
19152
19153 2015-06-03  Richard Biener  <rguenther@suse.de>
19154
19155         PR tree-optimization/66375
19156         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19157         add to the evolution before following SSA edges.
19158
19159 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
19160
19161         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19162         (dump_use, dump_cand, find_induction_variables): Pass new argument
19163         to dump_iv.
19164         (record_use): Preserve the ssa name information in IV.
19165
19166 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19167
19168         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19169         NO_MODE_TEST.
19170         (add_mode_tests): Don't add mode tests if the predicate only
19171         accepts scalar constant integers.  Otherwise, allow the mode
19172         of "op" to be VOIDmode if the predicate does accept such integers.
19173
19174 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
19175
19176         PR target/66258
19177         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19178         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19179         (aarch64_secondary_reload): Likewise
19180         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19181         to !TARGET_FLOAT.
19182         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19183         Likewise.
19184
19185 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
19186             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19187
19188         PR target/65768
19189         * cprop.c (try_replace_reg): Check cost of constants before propagating.
19190
19191 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19192
19193         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19194         provide access to the IBM extended double floating point mode if
19195         long double is IEEE 128-bit floating point.
19196         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19197         point if long double is the IBM extended double type.
19198
19199         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19200         enable adding IEEE 128-bit floating point support.
19201         (-mfloat128-software): Likewise.
19202         (-mfloat128-sw): Likewise.
19203
19204         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19205         128-bit floating point types to occupy any register if
19206         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
19207         -mfloat128-software is enabled.
19208         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19209         support.
19210         (rs6000_option_override_internal): Add -mfloat128-* support.
19211         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19212
19213         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19214         and float128 type nodes.
19215         (ieee128_float_type_node): Likewise.
19216         (ibm128_float_type_node): Likewise.
19217
19218 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19219
19220         PR target/66136
19221         * config/aarch64/geniterators.sh: Rewrite in awk.
19222
19223 2015-06-02  Martin Liska  <mliska@suse.cz>
19224
19225         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19226         values to avoid -Wmaybe-uninitialized errors.
19227
19228 2015-06-02  Richard Biener  <rguenther@suse.de>
19229
19230         PR debug/65549
19231         * dwarf2out.c (lookup_context_die): New function.
19232         (resolve_addr): Avoid forcing a full DIE for the
19233         target of a DW_TAG_GNU_call_site during late compilation.
19234         Instead create a stub DIE without a type if we have a
19235         context DIE present.
19236
19237 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
19238
19239         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
19240
19241 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19242
19243         PR tree-optimization/48052
19244         * cfgloop.h (struct control_iv): New.
19245         (struct loop): New field control_ivs.
19246         * tree-ssa-loop-niter.c : Include "stor-layout.h".
19247         (number_of_iterations_lt): Set no_overflow information.
19248         (number_of_iterations_exit): Init control iv in niter struct.
19249         (record_control_iv): New.
19250         (estimate_numbers_of_iterations_loop): Call record_control_iv.
19251         (loop_exits_before_overflow): New.  Interface factored out of
19252         scev_probably_wraps_p.
19253         (scev_probably_wraps_p): Factor loop niter related code into
19254         loop_exits_before_overflow.
19255         (free_numbers_of_iterations_estimates_loop): Free control ivs.
19256         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
19257
19258 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19259
19260         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19261         the target doesn't belong to the current function.
19262
19263 2015-06-02  Marek Polacek  <polacek@redhat.com>
19264
19265         PR middle-end/66345
19266         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19267         get_maxval_strlen does not produce an INTEGER_CST.
19268
19269 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
19270
19271         * config/arc/constraints.md: Use lower-case names in match_code.
19272         * config/mmix/constraints.md: Likewise.
19273
19274 2015-06-02  Richard Biener  <rguenther@suse.de>
19275
19276         PR tree-optimization/65961
19277         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19278         check and clarify dump message.
19279         (vect_build_slp_tree): If all children are built up from scalars
19280         build up the parent from scalars instead.
19281         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19282
19283 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
19284
19285         PR other/65366
19286         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
19287         instead of print ... .
19288
19289 2015-06-02  Alan Modra  <amodra@gmail.com>
19290
19291         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19292         2014-08-11 change.
19293
19294 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19295
19296         PR tree-optimization/52563
19297         PR tree-optimization/62173
19298         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
19299         (alloc_iv, set_iv): New parameter.
19300         (determine_biv_step): Delete.
19301         (find_bivs): Inline original determine_biv_step.  Pass new
19302         argument to set_iv.
19303         (idx_find_step): Use no_overflow information for conversion.
19304         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19305         resolve_mixers handle folded_casts.
19306         (instantiate_scev_name): Change bool parameter to bool pointer.
19307         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19308         (instantiate_array_ref, instantiate_scev_not): Ditto.
19309         (instantiate_scev_3, instantiate_scev_2): Ditto.
19310         (instantiate_scev_1, instantiate_scev_r): Ditto.
19311         (instantiate_scev_convert, ): Change parameter.  Pass argument
19312         to chrec_convert_aggressive.
19313         (instantiate_scev): Change argument.
19314         (resolve_mixers): New parameter and set it.
19315         (scev_const_prop): New argument.
19316         * tree-scalar-evolution.h (resolve_mixers): New parameter.
19317         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19318         of chrec_conert_1.
19319         (chrec_convert): New parameter.  Move definition below.
19320         (chrec_convert_aggressive): New parameter and set it.  Call
19321         convert_affine_scev.
19322         * tree-chrec.h (chrec_convert): New parameter.
19323         (chrec_convert_aggressive): Ditto.
19324
19325 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19326
19327         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19328         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19329         the LHS of a no-return call if its type has variable size.
19330         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19331         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19332
19333 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
19334
19335         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19336         * config.in: Regenerate.
19337
19338 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19339
19340         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19341         consecutive accesses within outer-loop with force_vectorize
19342         for references with zero step in inner-loop.
19343
19344 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19345
19346         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19347         rather than from gcc/build directory.
19348
19349 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19350
19351         PR target/65697
19352         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19353         for __sync memory models, emit initial loads and final barriers as
19354         appropriate.
19355
19356 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19357
19358         PR target/65697
19359         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19360         (aarch64_split_atomic_op): Check for __sync memory models, emit
19361         appropriate initial loads and final barriers.
19362
19363 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19364
19365         * Makefile.in: Fix gcov dependencies that should
19366         not point to a build folder.
19367
19368 2015-06-01  Richard Biener  <rguenther@suse.de>
19369
19370         Revert
19371         2015-05-29  Richard Biener  <rguenther@suse.de>
19372
19373         PR tree-optimization/66314
19374         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19375         parameter that says which loop the new block belongs to.
19376         (ssa_create_duplicates): Blocks duplicated for the threaded
19377         path belong to the loop of the thread destination.
19378
19379 2015-06-01  Martin Liska  <mliska@suse.cz>
19380
19381         * sched-deps.c: Include pool-alloc.h before
19382         cselib.h header file is included.
19383
19384 2015-06-01  Richard Biener  <rguenther@suse.de>
19385
19386         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19387         functions.
19388
19389 2015-06-01  Martin Liska  <mliska@suse.cz>
19390
19391         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19392         a function local variable.
19393
19394 2015-06-01  Martin Liska  <mliska@suse.cz>
19395
19396         * alloc-pool.c (create_alloc_pool): Remove.
19397         (empty_alloc_pool): Likewise.
19398         (free_alloc_pool): Likewise.
19399         (free_alloc_pool_if_empty): Likewise.
19400         (pool_alloc): Likewise.
19401         (pool_free): Likewise.
19402         * alloc-pool.h: Remove old declarations.
19403
19404 2015-06-01  Martin Liska  <mliska@suse.cz>
19405
19406         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19407         (ira_create_object): Likewise.
19408         (ira_create_allocno): Likewise.
19409         (ira_create_live_range): Likewise.
19410         (copy_live_range): Likewise.
19411         (ira_finish_live_range): Likewise.
19412         (ira_free_allocno_costs): Likewise.
19413         (finish_allocno): Likewise.
19414         (finish_allocnos): Likewise.
19415         (initiate_prefs): Likewise.
19416         (ira_create_pref): Likewise.
19417         (finish_pref): Likewise.
19418         (finish_prefs): Likewise.
19419         (initiate_copies): Likewise.
19420         (ira_create_copy): Likewise.
19421         (finish_copy): Likewise.
19422         (finish_copies): Likewise.
19423         (finish_prefs): Likewise.
19424
19425 2015-06-01  Martin Liska  <mliska@suse.cz>
19426
19427         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19428         (allocate_and_init_ipcp_value): Likewise.
19429         (ipcp_lattice::add_value): Likewise.
19430         (merge_agg_lats_step): Likewise.
19431         (ipcp_driver): Likewise.
19432         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19433         (ipa_free_all_structures_after_iinln): Likewise.
19434         * ipa-prop.h: Likewise.
19435
19436 2015-06-01  Martin Liska  <mliska@suse.cz>
19437
19438         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19439         pool allocator.
19440         (set_hint_predicate): Likewise.
19441         (inline_summary_alloc): Likewise.
19442         (reset_inline_edge_summary): Likewise.
19443         (reset_inline_summary): Likewise.
19444         (set_cond_stmt_execution_predicate): Likewise.
19445         (set_switch_stmt_execution_predicate): Likewise.
19446         (compute_bb_predicates): Likewise.
19447         (estimate_function_body_sizes): Likewise.
19448         (inline_free_summary): Likewise.
19449
19450 2015-06-01  Martin Liska  <mliska@suse.cz>
19451
19452         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19453         (ipa_edge_duplication_hook): Likewise.
19454         (ipa_free_all_structures_after_ipa_cp): Likewise.
19455         (ipa_free_all_structures_after_iinln): Likewise.
19456
19457 2015-06-01  Martin Liska  <mliska@suse.cz>
19458
19459         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19460         (ipa_profile_generate_summary): Likewise.
19461         (ipa_profile_read_summary): Likewise.
19462         (ipa_profile): Likewise.
19463
19464 2015-06-01  Martin Liska  <mliska@suse.cz>
19465
19466         * tree-ssa-structalias.c (new_var_info): Use new type-based
19467         pool allocator.
19468         (new_constraint): Likewise.
19469         (init_alias_vars): Likewise.
19470         (delete_points_to_sets): Likewise.
19471
19472 2015-06-01  Martin Liska  <mliska@suse.cz>
19473
19474         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19475         (free_strinfo): Likewise.
19476         (pass_strlen::execute): Likewise.
19477
19478 2015-06-01  Martin Liska  <mliska@suse.cz>
19479
19480         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19481         pool allocator.
19482         (vn_reference_insert_pieces): Likewise.
19483         (vn_phi_insert): Likewise.
19484         (visit_reference_op_call): Likewise.
19485         (copy_phi): Likewise.
19486         (copy_reference): Likewise.
19487         (process_scc): Likewise.
19488         (allocate_vn_table): Likewise.
19489         (free_vn_table): Likewise.
19490
19491 2015-06-01  Martin Liska  <mliska@suse.cz>
19492
19493         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19494         pool allocator.
19495         (add_repeat_to_ops_vec): Likewise.
19496         (get_ops): Likewise.
19497         (maybe_optimize_range_tests): Likewise.
19498         (init_reassoc): Likewise.
19499         (fini_reassoc): Likewise.
19500
19501 2015-06-01  Martin Liska  <mliska@suse.cz>
19502
19503         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19504         pool allocator.
19505         (bitmap_set_new): Likewise.
19506         (get_or_alloc_expr_for_constant): Likewise.
19507         (get_or_alloc_expr_for): Likewise.
19508         (phi_translate_1): Likewise.
19509         (compute_avail): Likewise.
19510         (init_pre): Likewise.
19511         (fini_pre): Likewise.
19512
19513 2015-06-01  Martin Liska  <mliska@suse.cz>
19514
19515         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19516         (delete_dep_node): Likewise.
19517         (create_deps_list): Likewise.
19518         (free_deps_list): Likewise.
19519         (sched_deps_init): Likewise.
19520         (sched_deps_finish): Likewise.
19521
19522 2015-06-01  Martin Liska  <mliska@suse.cz>
19523
19524         * regcprop.c (free_debug_insn_changes): Use new type-based
19525         pool allocator.
19526         (replace_oldest_value_reg): Likewise.
19527         (pass_cprop_hardreg::execute): Likewise.
19528
19529 2015-06-01  Martin Liska  <mliska@suse.cz>
19530
19531         * ira-build.c (initiate_cost_vectors): Use new type-based
19532         pool allocator.
19533         (ira_allocate_cost_vector): Likewise.
19534         (ira_free_cost_vector): Likewise.
19535         (finish_cost_vectors): Likewise.
19536
19537 2015-06-01  Martin Liska  <mliska@suse.cz>
19538
19539         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19540         pool allocator.
19541         (free_sched_pools): Likewise.
19542         * sel-sched-ir.h (_list_alloc): Likewise.
19543         (_list_remove): Likewise.
19544
19545 2015-06-01  Martin Liska  <mliska@suse.cz>
19546
19547         * stmt.c (add_case_node): Use new type-based pool allocator.
19548         (expand_case): Likewise.
19549         (expand_sjlj_dispatch_table): Likewise.
19550
19551 2015-06-01  Martin Liska  <mliska@suse.cz>
19552
19553         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19554         (free_bb): Likewise.
19555         (pass_cse_reciprocals::execute): Likewise.
19556
19557 2015-06-01  Martin Liska  <mliska@suse.cz>
19558
19559         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19560         (sra_deinitialize) Likewise.
19561         (create_access_1) Likewise.
19562         (build_accesses_from_assign) Likewise.
19563         (create_artificial_child_access) Likewise.
19564
19565 2015-06-01  Martin Liska  <mliska@suse.cz>
19566
19567         * dse.c (get_group_info):Use new type-based pool allocator.
19568         (dse_step0) Likewise.
19569         (free_store_info) Likewise.
19570         (delete_dead_store_insn) Likewise.
19571         (free_read_records) Likewise.
19572         (record_store) Likewise.
19573         (replace_read) Likewise.
19574         (check_mem_read_rtx) Likewise.
19575         (scan_insn) Likewise.
19576         (dse_step1) Likewise.
19577         (dse_step7) Likewise.
19578
19579 2015-06-01  Martin Liska  <mliska@suse.cz>
19580
19581         * df-scan.c (struct df_scan_problem_data):Use new type-based
19582         pool allocator.
19583         (df_scan_free_internal) Likewise.
19584         (df_scan_alloc) Likewise.
19585         (df_grow_reg_info) Likewise.
19586         (df_free_ref) Likewise.
19587         (df_insn_create_insn_record) Likewise.
19588         (df_mw_hardreg_chain_delete) Likewise.
19589         (df_insn_info_delete) Likewise.
19590         (df_free_collection_rec) Likewise.
19591         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19592         (df_sort_and_compress_mws) Likewise.
19593         (df_ref_create_structure) Likewise.
19594         (df_ref_record) Likewise.
19595
19596 2015-06-01  Martin Liska  <mliska@suse.cz>
19597
19598         * df-problems.c (df_chain_create):Use new type-based pool allocator.
19599         (df_chain_unlink_1) Likewise.
19600         (df_chain_unlink) Likewise.
19601         (df_chain_remove_problem) Likewise.
19602         (df_chain_alloc) Likewise.
19603         (df_chain_free) Likewise.
19604         * df.h (struct dataflow) Likewise.
19605
19606 2015-06-01  Martin Liska  <mliska@suse.cz>
19607
19608         * cselib.c (new_elt_list):Use new type-based pool allocator.
19609         (new_elt_loc_list) Likewise.
19610         (unchain_one_elt_list) Likewise.
19611         (unchain_one_elt_loc_list) Likewise.
19612         (unchain_one_value) Likewise.
19613         (new_cselib_val) Likewise.
19614         (cselib_init) Likewise.
19615         (cselib_finish) Likewise.
19616
19617 2015-06-01  Martin Liska  <mliska@suse.cz>
19618
19619         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19620         (sh_reorg) Likewise.
19621
19622 2015-06-01  Martin Liska  <mliska@suse.cz>
19623
19624         * cfg.c (initialize_original_copy_tables):Use new type-based
19625         pool allocator.
19626         (free_original_copy_tables) Likewise.
19627         (copy_original_table_clear) Likewise.
19628         (copy_original_table_set) Likewise.
19629
19630 2015-06-01  Martin Liska  <mliska@suse.cz>
19631
19632         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19633         pool allocator.
19634         (asan_mem_ref_new) Likewise.
19635         (free_mem_ref_resources) Likewise.
19636
19637 2015-06-01  Martin Liska  <mliska@suse.cz>
19638
19639         * var-tracking.c (variable_htab_free):Use new type-based
19640         pool allocator.
19641         (attrs_list_clear) Likewise.
19642         (attrs_list_insert) Likewise.
19643         (attrs_list_copy) Likewise.
19644         (shared_hash_unshare) Likewise.
19645         (shared_hash_destroy) Likewise.
19646         (unshare_variable) Likewise.
19647         (var_reg_delete_and_set) Likewise.
19648         (var_reg_delete) Likewise.
19649         (var_regno_delete) Likewise.
19650         (drop_overlapping_mem_locs) Likewise.
19651         (variable_union) Likewise.
19652         (insert_into_intersection) Likewise.
19653         (canonicalize_values_star) Likewise.
19654         (variable_merge_over_cur) Likewise.
19655         (dataflow_set_merge) Likewise.
19656         (remove_duplicate_values) Likewise.
19657         (variable_post_merge_new_vals) Likewise.
19658         (dataflow_set_preserve_mem_locs) Likewise.
19659         (dataflow_set_remove_mem_locs) Likewise.
19660         (variable_from_dropped) Likewise.
19661         (variable_was_changed) Likewise.
19662         (set_slot_part) Likewise.
19663         (clobber_slot_part) Likewise.
19664         (delete_slot_part) Likewise.
19665         (loc_exp_insert_dep) Likewise.
19666         (notify_dependents_of_changed_value) Likewise.
19667         (emit_notes_for_differences_1) Likewise.
19668         (vt_emit_notes) Likewise.
19669         (vt_initialize) Likewise.
19670         (vt_finalize) Likewise.
19671
19672 2015-06-01  Martin Liska  <mliska@suse.cz>
19673
19674         * ira-color.c (init_update_cost_records):Use new type-based
19675         pool allocator.
19676         (get_update_cost_record) Likewise.
19677         (free_update_cost_record_list) Likewise.
19678         (finish_update_cost_records) Likewise.
19679         (initiate_cost_update) Likewise.
19680
19681 2015-06-01  Martin Liska  <mliska@suse.cz>
19682
19683         * lra.c (init_insn_regs): Use new type-based pool allocator.
19684         (new_insn_reg) Likewise.
19685         (free_insn_reg) Likewise.
19686         (free_insn_regs) Likewise.
19687         (finish_insn_regs) Likewise.
19688         (init_insn_recog_data) Likewise.
19689         (init_reg_info) Likewise.
19690         (finish_reg_info) Likewise.
19691         (lra_free_copies) Likewise.
19692         (lra_create_copy) Likewise.
19693         (invalidate_insn_data_regno_info) Likewise.
19694
19695 2015-06-01  Martin Liska  <mliska@suse.cz>
19696
19697         * lra-lives.c (free_live_range): Use new type-based pool allocator.
19698         (free_live_range_list) Likewise.
19699         (create_live_range) Likewise.
19700         (copy_live_range) Likewise.
19701         (lra_merge_live_ranges) Likewise.
19702         (remove_some_program_points_and_update_live_ranges) Likewise.
19703         (lra_live_ranges_init) Likewise.
19704         (lra_live_ranges_finish) Likewise.
19705
19706 2015-06-01  Martin Liska  <mliska@suse.cz>
19707
19708         * et-forest.c (et_new_occ): Use new type-based pool allocator.
19709         (et_new_tree): Likewise.
19710         (et_free_tree): Likewise.
19711         (et_free_tree_force): Likewise.
19712         (et_free_pools): Likewise.
19713         (et_split): Likewise.
19714
19715 2015-06-01  Martin Liska  <mliska@suse.cz>
19716
19717         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19718         to header file.
19719         * alloc-pool.h (pool_allocator::pool_allocator): New function.
19720         (pool_allocator::release): Likewise.
19721         (inline pool_allocator::release_if_empty): Likewise.
19722         (inline pool_allocator::~pool_allocator): Likewise.
19723         (pool_allocator::allocate): Likewise.
19724         (pool_allocator::remove): Likewise.
19725
19726 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19727
19728         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19729         in comment.
19730
19731 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19732
19733         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19734         to fusible_ops.
19735         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19736         (arm_macro_fusion_p): Likewise.
19737         (arm_macro_fusion_pair_p): Likewise.
19738
19739 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19740
19741         * config/aarch64/aarch64-protos.h (tune_params): Rename
19742         fuseable_ops to fusible_ops.
19743         * config/aarch64/aarch64.c (generic_tunings): Rename
19744         fuseable_ops to fusible_ops.
19745         (cortexa53_tunings): Likewise.
19746         (cortexa57_tunings): Likewise.
19747         (thunderx_tunings): Likewise.
19748         (xgene1_tunings): Likewise.
19749         (aarch64_macro_fusion_p): Likewise.
19750         (aarch64_macro_fusion_pair_p): Likewise.
19751
19752 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19753
19754         * config/s390/driver-native.c: New file.
19755         * config/s390/x-native: New file.
19756         * config.host: Add new files for s390.
19757         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19758         and -march=native
19759         * config.gcc: Likewise.
19760         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19761         * config/s390/s390-opts.h (enum processor_type): Ditto.
19762         * config/s390/s390.c (s390_option_override): Catch unhandled
19763         PROCESSOR_NATIVE
19764
19765 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
19766
19767         PR target/65527
19768         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19769         redirection for instrumented calls.
19770         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19771         (append_compiler_options): Append -fcheck-pointer-bounds.
19772         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19773         (chkp_redirect_edge): New.
19774         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19775         (chkp_redirect_edge): New.
19776
19777 2015-06-01  Richard Biener  <rguenther@suse.de>
19778
19779         PR tree-optimization/66280
19780         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19781         def-use walking.
19782
19783 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19784
19785         * config/aarch64/aarch64.md
19786         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19787         logic_shift_imm.
19788
19789 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19790
19791         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19792         Remove obsolete kludge.
19793
19794 2015-06-01  Richard Biener  <rguenther@suse.de>
19795
19796         * tree-ssa-reassoc.c (get_rank): Simplify.
19797
19798 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
19799
19800         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19801         * configure: Regenerated.
19802
19803 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
19804
19805         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19806         issue (add space between string literal and macro).
19807         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19808
19809 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
19810
19811         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19812         implict or explicit -fPIE or -fpie.
19813
19814 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
19815
19816         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19817
19818 2015-05-28  DJ Delorie  <dj@redhat.com>
19819
19820         * expmed.c (extract_bit_field_1): Avoid clobbering a
19821         yet-to-be-used base/index register.
19822
19823 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
19824
19825         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19826         (alias_stats): Add num_universal.
19827         (alias_set_subset_of): Special case pointers; be ready for NULL
19828         children.
19829         (alias_sets_conflict_p): Special case pointers; be ready for NULL
19830         children.
19831         (init_alias_set_entry): Break out from ...
19832         (record_alias_subset): ... here; propagate new fields;
19833         allocate children only when really needed.
19834         (get_alias_set): Do less generous pointer globbing.
19835         (dump_alias_stats_in_alias_c): Update statistics.
19836
19837 2015-05-30  Alan Modra  <amodra@gmail.com>
19838
19839         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19840         correct block for use of r12.
19841         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19842
19843 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19844
19845         PR target/66215
19846         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19847         with -mhotpatch=.
19848
19849 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
19850
19851         PR tree-optimization/66142
19852         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19853         virtual phis that feed themselves.
19854
19855 2015-05-29  Richard Biener  <rguenther@suse.de>
19856
19857         PR tree-optimization/66314
19858         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19859         parameter that says which loop the new block belongs to.
19860         (ssa_create_duplicates): Blocks duplicated for the threaded
19861         path belong to the loop of the thread destination.
19862
19863 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19864
19865         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19866         to cleanup-saved-temps.
19867         * doc/sourcebuild.texi (Clean up generated test files): Expand
19868         introduction.
19869         (dg-keep-saved-temps): Document new proc.
19870         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19871         cleanup-saved-temps): Remove.
19872
19873 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
19874
19875         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19876         gcc_AC_CHECK_DECLS.
19877         * configure: Regenerate.
19878
19879 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19880
19881         * config/nios2/linux.h (CPP_SPEC): Define.
19882
19883 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19884
19885         * config/microblaze/linux.h (CPP_SPEC): Define.
19886
19887 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19888
19889         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19890         -pthread is specified.
19891
19892 2015-05-28  Richard Biener  <rguenther@suse.de>
19893
19894         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19895         (vect_fixup_scalar_cycles_with_patterns): Likewise.
19896         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19897         after pattern recog.
19898         (vect_create_epilog_for_reduction): Properly handle reductions
19899         with patterns.
19900         (vectorizable_reduction): Likewise.
19901         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19902         reduction chains.
19903         (vect_get_constant_vectors): Create the correct number of
19904         initial values for reductions.
19905         (vect_schedule_slp_instance): Handle reduction chains that are
19906         type changing properly.
19907         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19908
19909 2015-05-28  Richard Biener  <rguenther@suse.de>
19910
19911         PR tree-optimization/66142
19912         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19913         values better in memcpy destination handling.  Handle non-aliasing
19914         we discover here.
19915
19916 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
19917
19918         PR target/63810
19919         * config/darwin-c.c (version_components): New global enum.
19920         (parse_version, version_as_legacy_macro)
19921         (version_as_modern_macro, macosx_version_as_macro): New functions.
19922         (version_as_macro): Remove.
19923         (darwin_cpp_builtins): Use new function.
19924
19925 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
19926
19927         * builtins.c (expand_builtin_acc_on_device): Mark parameters
19928         with ATTRIBUTE_UNUSED.
19929
19930 2015-05-28  Julian Brown  <julian@codesourcery.com>
19931
19932         PR libgomp/65742
19933
19934         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
19935         sequence for !ACCEL_COMPILER.
19936
19937 2015-05-28  Nick Clifton  <nickc@redhat.com>
19938
19939         * config/rx/rx.c (push_regs): New function.  Extracts code from...
19940         (rx_expand_prologue): ... here.  Use push_regs to push even small
19941         spans of registers.
19942         (pop_regs): New function.
19943         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
19944         registers.
19945
19946 2015-05-28  Richard Biener  <rguenther@suse.de>
19947
19948         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
19949         member.
19950         (SLP_INSTANCE_BODY_COST_VEC): Remove.
19951         (vect_update_slp_costs_according_to_vf): Likewise.
19952         (vect_slp_analyze_operations): Update prototype.
19953         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
19954         vect_update_slp_costs_according_to_vf, adjust.
19955         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
19956         (vect_analyze_slp_cost_1): Likewise.
19957         (vect_analyze_slp_cost): Likewise.  Properly deal with
19958         widening reduction ops.  Commit body costs.
19959         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
19960         cost for loops from here.
19961         (vect_slp_analyze_operations): But do it from here when
19962         the vectorization factor is known and stmts are analyzed.
19963         (vect_bb_vectorization_profitable_p): Simplify.
19964         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
19965         (vect_update_slp_costs_according_to_vf): Remove.
19966
19967 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
19968             H.J. Lu  <hongjiu.lu@intel.com>
19969
19970         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
19971         (BUILD_CFLAGS): Likewise.
19972         (BUILD_CXXFLAGS): Likewise.
19973         (LINKER): Add @NO_PIE_FLAG@.
19974         (BUILD_LDFLAGS): Likewise.
19975         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
19976         --enable-default-pie.
19977         * common.opt (fPIE): Initialize to -1.
19978         (fpie): Likewise.
19979         (no-pie): New option.
19980         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
19981         * configure.ac: Add --enable-default-pie.
19982         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
19983         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
19984         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
19985         * gcc.c (NO_PIE_SPEC): New.
19986         (PIE_SPEC): Likewise.
19987         (NO_FPIE1_SPEC): Likewise.
19988         (FPIE1_SPEC): Likewise.
19989         (NO_FPIE2_SPEC): Likewise.
19990         (FPIE2_SPEC): Likewise.
19991         (NO_FPIE2_SPEC): Likewise.
19992         (FPIE_SPEC): Likewise.
19993         (NO_FPIE_SPEC): Likewise.
19994         (NO_FPIC1_SPEC): Likewise.
19995         (FPIC1_SPEC): Likewise.
19996         (NO_FPIC2_SPEC): Likewise.
19997         (FPIC2_SPEC): Likewise.
19998         (NO_FPIC2_SPEC): Likewise.
19999         (FPIC_SPEC): Likewise.
20000         (NO_FPIC_SPEC): Likewise.
20001         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20002         (FPIE1_OR_FPIC1_SPEC): Likewise.
20003         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20004         (FPIE2_OR_FPIC2_SPEC): Likewise.
20005         (NO_FPIE_AND_FPIC_SPEC): Likewise.
20006         (FPIE_OR_FPIC_SPEC): Likewise.
20007         (LD_PIE_SPEC): Likewise.
20008         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
20009         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20010         * config/darwin.h (PIE_SPEC): Renamed to ...
20011         (DARWIN_PIE_SPEC): This.
20012         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20013         * config/darwin9.h (PIE_SPEC): Renamed to ...
20014         (DARWIN_PIE_SPEC): This.
20015         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20016         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20017         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20018         FPIE2_OR_FPIC2_SPEC.
20019         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20020         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20021         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20022         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20023         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20024         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20025         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20026         * config/m32r/m32r.h (ASM_SPEC): Likewise.
20027         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20028         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20029         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20030         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20031         * config/sparc/linux.h (ASM_SPEC): Likewise.
20032         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20033         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20034         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20035         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20036         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20037         * config/sparc/sparc.h (ASM_SPEC): Likewise.
20038         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20039         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20040         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20041         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20042         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20043         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20044         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20045         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20046         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20047         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20048         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20049         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20050         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20051         * config/vax/linux.h (ASM_SPEC): Likewise.
20052         * doc/install.texi: Document --enable-default-pie.
20053         * doc/invoke.texi: Document -no-pie.
20054         * config.in: Regenerated.
20055         * configure: Likewise.
20056
20057 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20058
20059         PR rtl-optimization/66168
20060         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20061         can_move_invariant_reg.
20062
20063 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
20064
20065         PR target/66148
20066         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20067         REG_EQUAL note when doing insert.
20068
20069         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20070         instead of "%d" for 'o' operand.
20071
20072 2015-05-27  Nathan Sidwell  <nathan@acm.org>
20073
20074         PR c++/66270
20075         * tree.c (build_pointer_type_for_mode): Canonical type does not
20076         inherit can_alias_all.
20077         (build_reference_type_for_mode): Likewise.
20078
20079 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20080
20081         * expr.h (array_at_struct_end_p): Move to...
20082         (array_ref_element_size): Likewise.
20083         (component_ref_field_offset): Likewise.
20084         * tree.h (array_ref_element_size): ...here.
20085         (array_at_struct_end_p): Likewise.
20086         (component_ref_field_offset): Likewise.
20087         * expr.c (array_ref_element_size): Move to...
20088         (array_ref_low_bound): Likewise.
20089         (array_at_struct_end_p): Likewise.
20090         (array_ref_up_bound): Likewise.
20091         (component_ref_field_offset): Likewise.
20092         * tree.c (array_ref_element_size): ...here.
20093         (array_ref_low_bound): Likewise.
20094         (array_ref_up_bound): Likewise.
20095         (array_at_struct_end_p): Likewise.
20096         (component_ref_field_offset): Likewise.
20097
20098 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20099             Szabolcs Nagy  <szabolcs.nagy@arm.com>
20100
20101         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20102
20103 2015-05-27  Jason Merrill  <jason@redhat.com>
20104
20105         PR bootstrap/66304
20106         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20107         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20108         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20109
20110 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
20111
20112         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20113         is true.
20114
20115         * statistics.c (statistics_fini_pass): Print pass name.
20116
20117 2015-05-27  Richard Biener  <rguenther@suse.de>
20118
20119         PR tree-optimization/66272
20120         Revert parts of
20121         2014-08-15  Richard Biener  <rguenther@suse.de>
20122
20123         PR tree-optimization/62031
20124         * tree-data-ref.c (dr_analyze_indices): Do not set
20125         DR_UNCONSTRAINED_BASE.
20126         (dr_may_alias_p): All indirect accesses have to go the
20127         formerly DR_UNCONSTRAINED_BASE path.
20128         * tree-data-ref.h (struct indices): Remove
20129         unconstrained_base member.
20130         (DR_UNCONSTRAINED_BASE): Remove.
20131
20132 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
20133
20134         * dwarf2out.c: Remove block_map.
20135         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20136         (gen_lexical_block_die): Same.
20137         (dwarf2out_function_decl): Remove block_map use.
20138         (dwarf2out_c_finalize): Same.
20139         * tree-core.h (struct tree_block): Add die field.
20140         * tree.h (BLOCK_DIE): New.
20141
20142 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20143
20144         PR target/65358
20145         * expr.c (memory_load_overlap): New function.
20146         (emit_push_insn): When pushing partial args to the stack would
20147         clobber the register part load the overlapping part into a pseudo
20148         and put it into the hard reg after pushing.  Change return type
20149         to bool.  Add bool argument.
20150         * expr.h (emit_push_insn): Change return type to bool.
20151         Add bool argument.
20152         * calls.c (expand_call): Cancel sibcall optimization when encountering
20153         partial argument on targets with ARGS_GROW_DOWNWARD and
20154         !STACK_GROWS_DOWNWARD.
20155         (emit_library_call_value_1): Update callsite of emit_push_insn.
20156         (store_one_arg): Likewise.
20157
20158 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20159
20160         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20161
20162 2015-05-27  Martin Liska  <mliska@suse.cz>
20163
20164         * Makefile.in: Add additional dependencies related to memory report
20165         enhancement.
20166         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20167         * bitmap.c (struct bitmap_descriptor_d): Remove.
20168         (struct loc): Likewise.
20169         (struct bitmap_desc_hasher): Likewise.
20170         (bitmap_desc_hasher::hash): Likewise.
20171         (bitmap_desc_hasher::equal): Likewise.
20172         (get_bitmap_descriptor): Likewise.
20173         (bitmap_register): User new memory descriptor API.
20174         (register_overhead): Likewise.
20175         (bitmap_find_bit): Register nsearches and search_iter statistics.
20176         (struct bitmap_output_info): Remove.
20177         (print_statistics): Likewise.
20178         (dump_bitmap_statistics): Use new memory descriptor.
20179         * bitmap.h (struct bitmap_usage): New class.
20180         * genmatch.c: Extend header file inclusion.
20181         * genpreds.c: Likewise.
20182         * ggc-common.c (struct ggc_usage): New class.
20183         (struct ggc_loc_desc_hasher): Remove.
20184         (ggc_loc_desc_hasher::hash): Likewise.
20185         (ggc_loc_desc_hasher::equal): Likewise.
20186         (struct ggc_ptr_hash_entry): Likewise.
20187         (struct ptr_hash_hasher): Likewise.
20188         (ptr_hash_hasher::hash): Likewise.
20189         (ptr_hash_hasher::equal): Likewise.
20190         (make_loc_descriptor): Likewise.
20191         (ggc_prune_ptr): Likewise.
20192         (dump_ggc_loc_statistics): Use new memory descriptor.
20193         (ggc_record_overhead): Likewise.
20194         (ggc_free_overhead): Likewise.
20195         (final_cmp_statistic): Remove.
20196         (cmp_statistic): Likewise.
20197         (ggc_add_statistics): Liekwise.
20198         (ggc_prune_overhead_list): Likewise.
20199         * hash-map-traits.h: New file.
20200         * hash-map.h (struct default_hashmap_traits): Move the traits to a
20201         separate header file.
20202         * hash-set.h: Pass memory statistics info to ctor.
20203         * hash-table.c (void dump_hash_table_loc_statistics): New function.
20204         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20205         (hash_table::~hash_table): Register memory release operation.
20206         (hash_table::alloc_entries): Handle memory allocation operation.
20207         (hash_table::expand): Likewise.
20208         * inchash.c (iterative_hash_hashval_t): Move implementation to header
20209         file.
20210         (iterative_hash_host_wide_int): Likewise.
20211         * inchash.h (class hash): Likewise.
20212         * mem-stats-traits.h: New file.
20213         * mem-stats.h: New file.
20214         (mem_location): Add new class.
20215         (mem_usage): Likewise.
20216         (mem_alloc_description): Likewise.
20217         * sese.c: Add new header file inclusision.
20218         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20219         and hash_set.
20220         * tree-sra.c: Add new header file inclusision.
20221         * vec.c (struct vec_descriptor): Remove.
20222         (hash_descriptor): Likewise.
20223         (struct vec_usage): Likewise.
20224         (struct ptr_hash_entry): Likewise.
20225         (hash_ptr): Likewise.
20226         (eq_ptr): Likewise.
20227         (vec_prefix::register_overhead): Use new memory descriptor API.
20228         (vec_prefix::release_overhead): Likewise.
20229         (add_statistics): Remove.
20230         (dump_vec_loc_statistics): Use new memory descriptor API.
20231         * vec.h (struct vec_prefix): Likewise.
20232         (va_heap::reserve): Likewise.
20233         (va_heap::release): Likewise.
20234         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20235
20236 2015-05-27  Richard Biener  <rguenther@suse.de>
20237
20238         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
20239         earlier and remove ??? comment.
20240         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
20241         and got called from loop analysis bail out.  Always pass the SLP
20242         node to the vectorizable_* functions.
20243         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
20244         the premature SLP check here.
20245         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
20246         detected SLP stmts.
20247         (vect_detect_hybrid_slp_1): Likewise.
20248
20249 2015-05-26  Jeff Law  <law@redhat.com>
20250
20251         * combine.c (find_split_point): Verify that the shift count is a
20252         constant when choosing (plus (ashift ...)) as a split point.
20253
20254         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
20255         No functional changes.
20256
20257 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
20258
20259         * ipa-polymorphic-call.c
20260         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20261         case when call target is already known.
20262
20263 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
20264
20265         PR target/65979
20266         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20267         take into account the case that operands[1] and operands[2]
20268         are the same register.
20269
20270 2015-05-26  Michael Matz  <matz@suse.de>
20271
20272         PR middle-end/66251
20273
20274         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20275         stores.
20276         (vect_create_vectorized_demotion_stmts): Always set
20277         STMT_VINFO_VEC_STMT, also with SLP.
20278         (vectorizable_store): Handle strided group stores.
20279
20280 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20281
20282         PR target/66049
20283         * config/aarch64/aarch64.md
20284         (*adds_shift_imm_<mode>):  New pattern.
20285         (*subs_shift_imm_<mode>):  Likewise.
20286         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
20287         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20288         (*add_uxt<mode>_shift2): Likewise.
20289         (*add_uxtsi_shift2_uxtw): Likewise.
20290         (*sub_uxt<mode>_shift2): Likewise.
20291         (*sub_uxtsi_shift2_uxtw): Likewise.
20292
20293 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
20294
20295         * config/rs6000/constraints.md (Y, U): Use match_test.
20296
20297 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20298
20299         PR target/52144
20300         * config/arm/arm.c (arm_option_check_internal)
20301         (arm_option_params_internal): Check opts->target_flags to set macros.
20302         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20303         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20304         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20305         (builtin_define): Replaced with def_or_undef_macro.
20306         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20307         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20308         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20309         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20310         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20311         (TARGET_ARM_FEATURE_LDREX_P)
20312         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20313         * config/arm/arm-c.c (def_or_undef_macro): New function.
20314         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20315
20316 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20317
20318         * c-common.h (builtin_define_with_int_value)
20319         (builtin_define_type_sizeof): Declare.
20320         * c-cppbuiltin.c (builtin_define_with_int_value)
20321         (builtin_define_type_sizeof): Externalize.
20322         (builtin_define_std): Cleanup declaration.
20323         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20324         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20325         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20326         (builtin_define, builtin_assert): New macros.
20327
20328 2015-05-26  Richard Biener  <rguenther@suse.de>
20329
20330         PR tree-optimization/66142
20331         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20332         MEM_REFs for the same base address.
20333
20334 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20335
20336         PR ipa/66181
20337         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20338
20339 2015-05-26  Jason Merrill  <jason@redhat.com>
20340
20341         * configure.ac: Set CXXFLAGS for ISL test.
20342         * configure: Regenerate.
20343
20344         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
20345         strstr and basename.
20346         * configure: Regenerate.
20347
20348 2015-05-26  Richard Biener  <rguenther@suse.de>
20349
20350         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20351         X % C -> X & (C - 1) for C being a power-of two to ...
20352         * match.pd: ... patterns.
20353
20354 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
20355
20356         * match.pd (swapped_tcc_comparison): New operator list.
20357         (-A CMP -B): New simplification.
20358         * fold-const.c (fold_comparison): Remove corresponding code.
20359
20360 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20361
20362         * caller-save.c (init_caller_save): Base temporary register numbers
20363         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20364         * cfgloopanal.c (init_set_costs): Likewise.
20365         * dojump.c (prefer_and_bit_test): Likewise.
20366         * expr.c (init_expr_target): Likewise.
20367         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20368         * lower-subreg.c (init_lower_subreg): Likewise.
20369         * postreload.c (reload_cse_regs_1): Likewise.
20370
20371 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20372
20373         * gensupport.h (compute_test_codes): Declare.
20374         * gensupport.c (compute_predicate_codes): Rename to...
20375         (compute_test_codes): ...this.  Generalize error message.
20376         (process_define_predicate): Update accordingly.
20377         * genpreds.c (compute_maybe_allows): Delete.
20378         (add_constraint): Use compute_test_codes to determine whether
20379         something can accept a SUBREG, REG or MEM.
20380
20381 2015-05-26  Torvald Riegel  <triegel@redhat.com>
20382
20383         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20384         'memory model' to align with C++11; fix description of memory orders;
20385         fix a few typos.
20386
20387 2015-05-26  Richard Biener  <rguenther@suse.de>
20388
20389         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20390         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
20391         detect whether we apply SLP.  Remove call to
20392         vect_update_slp_costs_according_to_vf.
20393         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20394         vect_update_slp_costs_according_to_vf from here.  Dispatch
20395         to vect_slp_analyze_operations to analyze SLP stmts.
20396         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20397         unused bb_vec_info parameter, adjust assert.
20398         (vect_slp_analyze_operations): Pass in the slp instance tree
20399         instead of bb_vec_info.
20400         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20401         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20402
20403 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20404
20405         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20406         Q_REGS.  Expand comment.
20407         (REG_CLASS_NAMES): Ditto.
20408         (REG_CLASS_CONTENTS): Ditto.
20409
20410 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
20411
20412         PR target/66274
20413         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20414         when LEGACY_INT_REGNO_P is processed.
20415
20416 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20417
20418         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20419
20420 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20421
20422         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20423         register if not marked dead/unused, before return.
20424
20425 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20426
20427         PR lto/66180
20428         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20429         is set; check for assembler name at LTO time.
20430         (type_in_anonymous_namespace): Remove hacks, check that all
20431         anonymous types are called "<anon>"
20432         (odr_type_p): Simplify; add check for "<anon>"
20433         (odr_subtypes_equivalent): Add odr_type_p check.
20434         * tree.c (need_assembler_name_p): Even anonymous namespace needs
20435         assembler name.
20436
20437 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20438
20439         * ipa-utils.h (method_class_type): Remove.
20440         * cgraphunit.c (walk_polymorphic_call_targets): Use
20441         TYPE_METHOD_BASETYPE.
20442         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20443         on main variants only.
20444         (method_class_type): Remove.
20445         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20446         (build_type_inheritance_graph): Likewise.
20447         * ipa-icf.c (sem_function::equals_wpa): Likewise.
20448         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20449         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20450
20451 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20452
20453         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20454         is_typedef_decl, typedef_variant_p): Constify.
20455         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20456         is_typedef_decl, typedef_variant_p): Constify.
20457
20458 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20459
20460         * defaults.h (gen_tablejump): New function.
20461         (HAVE_tablejump): Add default value.
20462         * expr.c: Adjust.
20463         * stmt.c: Likewise.
20464
20465 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20466
20467         * defaults.h (gen_store_multiple): New function.
20468         (HAVE_store_multiple): Add default value.
20469         * expr.c (move_block_from_reg): Adjust.
20470
20471 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20472
20473         * defaults.h (gen_load_multiple): New function.
20474         (HAVE_load_multiple): Add default value.
20475         * expr.c (move_block_to_reg): Adjust.
20476
20477 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20478
20479         * defaults.h (gen_mem_signal_fence): New function.
20480         (HAVE_mem_signal_fence): Add default value.
20481         * optabs.c: Adjust.
20482
20483 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20484
20485         * defaults.h (gen_memory_barrier): New function.
20486         (HAVE_memory_barrier): Add default value.
20487         * optabs.c: Adjust.
20488
20489 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20490
20491         * defaults.h (gen_mem_thread_fence): New function.
20492         (HAVE_mem_thread_fence): Add default definition.
20493         * optabs.c: Adjust.
20494
20495 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20496
20497         * combine.c (find_split_point): Check the value of HAVE_lo_sum
20498         instead of if it is defined.
20499         (combine_simplify_rtx): Likewise.
20500         * lra-constraints.c (process_address_1): Likewise.
20501         * config/darwin.c: Adjust.
20502         * genconfig.c (main): Always define HAVE_lo_sum.
20503
20504 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20505
20506         * genmatch.c (parser::parse_operation): Reject expanding
20507         operator-list inside 'for'.
20508
20509 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20510
20511         * genmatch.c (parser::parse_for): Reject iterator if used as
20512         operator-list.
20513
20514 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20515
20516         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20517         after end of id-list.
20518
20519 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20520
20521         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20522         we do not try to compute canonical type for type that does not need
20523         alias set.
20524         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20525         FUNCITON_TYPE.
20526         * tree.h (type_with_alias_set_p): New.
20527
20528 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20529
20530         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
20531         function attributes.
20532         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20533
20534 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
20535
20536         * Makefile.in (check_gcc_parallelize): Delete.
20537         (lang_checks_parallelized): Update comment.
20538
20539 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
20540
20541         PR rtl-optimization/66237
20542         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20543         location of an "as_a" cast.
20544
20545 2015-05-22  Jeff Law  <law@redhat.com>
20546
20547         * config/pa/pa.md (non-canonical shift-add insns): Remove.
20548         (peepholes with non-canonical RTL sources): Remove.
20549         (peepholes for indexed stores of FP regs in integer modes): Match and
20550         generate canonical RTL.
20551
20552 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20553
20554         PR tree-optimization/63387
20555         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20556         ((x ord x) & (y ord y) -> (x ord y),
20557         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20558         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20559         vectors like scalars.
20560
20561 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20562
20563         * convert.c (convert_to_integer, convert_to_vector): Include the
20564         types in the error message.
20565
20566 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20567
20568         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20569         simplifications.
20570
20571 2015-05-22  Jeff Law  <law@redhat.com>
20572
20573         * config/pa/pa.md (integer_indexed_store splitters): Use
20574         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
20575         insns -- adjusting the constant 2nd operand accordingly.
20576
20577         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20578         (plus (ashift X log2) Y) if it is a split point.
20579
20580         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20581         out of hppa_legitimize_address to handle both forms of a multiply
20582         by 2, 4 or 8.
20583         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20584         Always generate the ASHIFT variant as the result is not directly
20585         used in a MEM.  Update comments and refactor slightly to improve
20586         readability.
20587
20588 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20589
20590         PR target/65491
20591         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20592         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
20593         (aarch64_composite_type_p): Return false if given type and mode are
20594         for a short vector.
20595
20596 2015-05-22  Richard Biener  <rguenther@suse.de>
20597
20598         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20599         member.
20600         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20601         patterns when determining whether SLP is pure.
20602         (vect_is_slp_reduction): Remove check for pattern stmts.
20603         (vect_is_simple_reduction_1): Remove dead code.
20604         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20605         (vect_get_and_check_slp_defs): Pass in the stmt number.
20606         Allow the first def in a reduction to be not a pattern stmt when
20607         the rest of the stmts def are patterns.
20608         (vect_build_slp_tree_1): Allow tcc_expression codes like
20609         SAD_EXPR and DOT_PROD_EXPR.
20610         (vect_build_slp_tree): Adjust.
20611         (vect_analyze_slp): Refactor and move BB vect error message ...
20612         (vect_slp_analyze_bb_1): ... here.
20613
20614 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
20615
20616         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20617         for CSWTCH temporary.
20618
20619 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20620
20621         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20622         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
20623         unknown unspecs.
20624
20625 2015-05-22  Richard Biener  <rguenther@suse.de>
20626
20627         PR tree-optimization/66251
20628         * tree-vect-stmts.c (vectorizable_conversion): Properly
20629         set STMT_VINFO_VEC_STMT even for the SLP case.
20630
20631 2015-05-22  Marek Polacek  <polacek@redhat.com>
20632
20633         * doc/extend.texi: Use @pxref instead of @xref.
20634
20635 2015-05-22  hiraditya  <hiraditya@msn.com>
20636
20637         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20638         redundant if.
20639
20640 2015-05-22  Richard Biener  <rguenther@suse.de>
20641
20642         PR tree-optimization/65701
20643         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20644         Move peeling cost models into one place.  Peel for alignment
20645         for single loads only if an aligned load is cheaper than
20646         an unaligned load.
20647
20648 2015-05-22  Marek Polacek  <polacek@redhat.com>
20649
20650         PR c/47043
20651         * doc/extend.texi (Enumerator Attributes): New section.
20652         Document syntax of enumerator attributes.
20653
20654 2015-05-22  Richard Biener  <rguenther@suse.de>
20655
20656         * tree-vect-loop.c (get_reduction_op): New function.
20657         (vect_model_reduction_cost): Use it, add reduc_index parameter.
20658         Make ready for BB reductions.
20659         (vect_create_epilog_for_reduction): Use get_reduction_op.
20660         (vectorizable_reduction): Init reduc_index to a valid value.
20661         Adjust vect_model_reduction_cost call.
20662         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20663         operand for reduction defaults.  Add SAD_EXPR support.
20664         Assert we have a neutral op for SLP reductions.
20665         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20666         walking pattern stmt ops only recurse to SSA names.
20667
20668 2015-05-22  Richard Biener  <rguenther@suse.de>
20669
20670         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20671         assert with guard, remove check on detected reduction.
20672         (vect_recog_sad_pattern): Likewise.
20673         (vect_recog_widen_sum_pattern): Likewise.
20674
20675 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20676
20677         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20678         __always_inline__ attribute.
20679         (vaesdq_u8): Likewise.
20680         (vaesmcq_u8): Likewise.
20681         (vaesimcq_u8): Likewise.
20682         (vsha1cq_u32): Likewise.
20683         (vsha1mq_u32): Likewise.
20684         (vsha1pq_u32): Likewise.
20685         (vsha1h_u32): Likewise.
20686         (vsha1su0q_u32): Likewise.
20687         (vsha1su1q_u32): Likewise.
20688         (vsha256hq_u32): Likewise.
20689         (vsha256h2q_u32): Likewise.
20690         (vsha256su0q_u32): Likewise.
20691         (vsha256su1q_u32): Likewise.
20692         (vmull_p64): Likewise.
20693         (vmull_high_p64): Likewise.
20694
20695 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20696
20697         * final.c (final_scan_insn): Don't check HAVE_peephole with the
20698         preprocessor.
20699         * output.h: Likewise.
20700         * genconfig.c (main): Alwways define HAVE_peephole.
20701         * genpeep.c: Don't emit checks of HAVE_peephole.
20702
20703 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20704
20705         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20706         check HAVE_conditional_move with the preprocessor.
20707
20708 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20709
20710         * genconfig.c (main): Always define HAVE_conditional_move.
20711         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20712         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20713         is defined.
20714
20715 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20716
20717         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20718         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20719         and FRAME_POINTER_REGNUM with the preprocessor.
20720
20721 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20722
20723         * defaults.h: Add default for STACK_PUSH_CODE.
20724         * expr.c: Don't redefine STACK_PUSH_CODE.
20725         * recog.c: Likewise.
20726
20727 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20728
20729         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20730         sched-deps.c: Use if instead of preprocessor checks with
20731         STACK_GROWS_DOWNWARD.
20732
20733 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20734
20735         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20736         is defined.
20737         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20738         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20739         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20740         * doc/tm.texi: Regenerate.
20741
20742 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20743
20744         PR target/66232
20745         * config/i386/constraints.md (Bg): New constraint for GOT memory
20746         operand.
20747         * config/i386/i386.md (*call_got_x32): New pattern.
20748         (*call_value_got_x32): Likewise.
20749         * config/i386/predicates.md (GOT_memory_operand): New predicate.
20750
20751 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
20752
20753         PR tree-optimization/66233
20754         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20755         Simplify.
20756
20757 2015-05-21  Jeff Law  <law@redhat.com>
20758
20759         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20760         than MULT for shadd sequences.
20761
20762 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
20763
20764         * alias.c (alias_stats): New static var.
20765         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20766         (dump_alias_stats_in_alias_c): New function.
20767         * alias.h (dump_alias_stats_in_alias_c): Declare.
20768         * tree-ssa-alias.c (dump_alias_stats): Call it.
20769
20770 2015-05-08  Michael Matz  <matz@suse.de>
20771
20772         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20773         to strided_p.
20774         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20775         (STMT_VINFO_STRIDED_P): ... this.
20776         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20777         (vect_verify_datarefs_alignment): Likewise.
20778         (vect_enhance_data_refs_alignment): Likewise.
20779         (vect_analyze_data_ref_access): Likewise.
20780         (vect_analyze_data_refs): Accept strided stores.
20781         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20782         (vect_model_load_cost): Adjust for macro rename.
20783         (vectorizable_mask_load_store): Likewise.
20784         (vectorizable_load): Likewise.
20785         (vectorizable_store): Open code strided stores.
20786
20787 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20788
20789         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20790         Document sqrt_insn.
20791
20792 2015-05-21  Richard Biener  <rguenther@suse.de>
20793
20794         PR c++/66211
20795         * match.pd: Guard pattern optimzing (int)(float)int
20796         conversions to apply only on GIMPLE.
20797
20798 2015-05-21  Jeff Law  <law@redhat.com>
20799
20800         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20801         multiply-accumulate/shift-add insn generation.
20802
20803 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
20804
20805         PR target/54236
20806         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20807         operands[1] are the same.
20808
20809 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
20810
20811         PR middle-end/66221
20812         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20813         build_distinct_type_copy to copy bounds.
20814
20815 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20816
20817         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20818         Change to unsigned int.
20819
20820 2015-05-20  Jeff Law  <law@redhat.com>
20821
20822         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20823         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20824         (pa_shadd_constant_p): Allow constants for shadd insns rather
20825         than valid scaling constants for memory addresses.
20826         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20827         * config/pa/predicates.md (mem_shadd_operand): New predicate.
20828         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20829         (shift-add insns using ASHIFT): New patterns.
20830
20831 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
20832
20833         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20834         feasible.
20835         (fix_up_fall_thru_edges): Likewise.
20836         (fix_crossing_conditional_branches): Likewise. Promote jump targets
20837         from to rtx_insn to rtx_code_label where feasible.
20838         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20839         gen_move_insn (returned type changed to rtx_insn).
20840         * builtins.c (expand_errno_check): Fix arguments of
20841         do_compare_rtx_and_jump (now expects rtx_code_label).
20842         (expand_builtin_acc_on_device): Likewise.
20843         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20844         invert_jump (now exprects rtx_jump_insn).
20845         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20846         (construct_init_block): Use rtx_code_label.
20847         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20848         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20849         calling redirect_jump.
20850         (patch_jump_insn): Likewise.
20851         (redirect_branch_edge): Likewise.
20852         (force_nonfallthru_and_redirect): Likewise.
20853         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20854         when suitable.
20855         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20856         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20857         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20858         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20859         to store the value retured by gen_label_rtx.
20860         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20861         rtx_jump_insn.
20862         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20863         (split_branches): Fix calls of redirect_jump.
20864         * dojump.c (jumpifnot): Promote argument type from rtx to
20865         rtx_code_label.
20866         (jumpifnot_1): Likewise.
20867         (jumpif): Likewise.
20868         (jumpif_1): Likewise.
20869         (do_jump_1): Likewise.
20870         (do_jump): Likewise. Use rtx_code_label when feasible.
20871         (do_jump_by_parts_greater_rtx): Likewise.
20872         (do_jump_by_parts_zero_rtx): Likewise.
20873         (do_jump_by_parts_equality_rtx): Likewise.
20874         (do_compare_rtx_and_jump): Likewise.
20875         * dojump.h: Update function prototypes.
20876         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20877         returns rtx_insn).
20878         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20879         rtx_jump_insn.
20880         (emit_label_before): Likewise.
20881         (emit_jump_insn_after_noloc): Likewise.
20882         (emit_jump_insn_after_setloc): Likewise.
20883         (emit_jump_insn_after): Likewise
20884         (emit_jump_insn_before_setloc): Likewise.
20885         (emit_jump_insn_before): Likewise.
20886         (emit_label_before): Promote return type to rtx_code_label.
20887         (emit_label): Likewise.
20888         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20889         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20890         gen_move_insn.
20891         (emit_stack_restore): Likewise.
20892         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20893         (do_cmp_and_jump): Likewise.
20894         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20895         from rtx to rtx_code_label.
20896         (gen_move_insn_uncast): New function.
20897         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20898         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20899         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20900         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20901         invert_jump_1 and redirect_jump_1.
20902         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20903         do_compare_rtx_and_jump.
20904         (expand_addsub_overflow): Likewise.
20905         (expand_neg_overflow): Likewise.
20906         (expand_mul_overflow): Likewise.
20907         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20908         return value of gen_move_insn.
20909         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20910         * loop-doloop.c (add_test): Use rtx_code_label.
20911         (doloop_modify): Likewise.
20912         (doloop_optimize): Likewise.
20913         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20914         * lra-constraints.c (emit_spill_move): Remove cast of value returned
20915         by gen_move_insn.
20916         (inherit_reload_reg): Add cast when calling dump_insn_slim.
20917         (split_reg): Likewise.
20918         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20919         gen_move_insn.
20920         * optabs.c (expand_binop_directly): Remove casts of values returned by
20921         maybe_gen_insn.
20922         (expand_unop_direct): Likewise.
20923         (expand_abs): Likewise.
20924         (maybe_emit_unop_insn): Likewise.
20925         (maybe_gen_insn): Promote return type to rtx_insn.
20926         * optabs.h: Update prototype of maybe_gen_insn.
20927         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20928         redundant cast.
20929         * recog.c (struct peep2_insn_data): Promote type of insn field to
20930         rtx_insn.
20931         (peep2_reinit_state): Use NULL instead of NULL_RTX.
20932         (peep2_attempt): Remove casts of insn in peep2_insn_data.
20933         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20934         * recog.h (struct insn_gen_fn): Promote return types of function
20935         pointers and operator ().from rtx to rtx_insn.
20936         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
20937         (fill_eager_delay_slots): Likewise.
20938         (relax_delay_slots): Likewise.
20939         (make_return_insns): Likewise.
20940         (dbr_schedule): Likewise.
20941         (optimize_skips): Likewise.
20942         (reorg_redirect_jump): Likewise.
20943         (fill_slots_from_thread): Likewise.
20944         * reorg.h: Update prototypes.
20945         * resource.c (find_dead_or_set_registers): Use dyn_cast to
20946         rtx_jump_insn instead of check.  Use it's jump_target method.
20947         * rtl.h (rtx_jump_insn::jump_label): Define new method.
20948         (rtx_jump_insn::jump_target): Define new method.
20949         (rtx_jump_insn::set_jump_target): Define new method.
20950         * rtlanal.c (tablejump_p): Promote type of one local variable.
20951         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
20952         (sched_analyze_insn): Likewise.
20953         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
20954         (print_insn): Likewise.
20955         * stmt.c (label_rtx): Promote return type to rtx_insn.
20956         (force_label_rtx): Likewise.
20957         (jump_target_rtx): Define new function.
20958         (expand_label): Use it, get rid of one cast.
20959         (expand_naked_return): Promote rtx to rtx_code_label.
20960         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
20961         (expand_case): Use rtx_code_label instread of rtx where feasible.
20962         (expand_sjlj_dispatch_table): Likewise.
20963         (emit_case_nodes): Likewise.
20964         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
20965         * store-motion.c (insert_store): Make use of new return type of
20966         gen_move_insn and remove a cast.
20967         (replace_store_insn): Likewise.
20968
20969 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
20970
20971         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
20972         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
20973
20974 2015-05-20  Jeff Law  <law@redhat.com>
20975
20976         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
20977         dispose of the jump thread path when the jump threading
20978         opportunity is cancelled.
20979
20980 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20981
20982         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
20983         when printing the caret character.
20984
20985 2015-05-20  Marek Polacek  <polacek@redhat.com>
20986
20987         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
20988
20989 2015-05-20  Marek Polacek  <polacek@redhat.com>
20990
20991         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
20992         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
20993         * gimple-fold.c (canonicalize_bool): Likewise.
20994         (same_bool_result_p): Likewise.
20995         * tree-if-conv.c (parse_predicate): Likewise.
20996
20997 2015-05-20  Marek Polacek  <polacek@redhat.com>
20998
20999         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21000         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21001
21002 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21003
21004         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21005         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21006         values.
21007
21008 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
21009
21010         * config/mips/mips.h (micromips_globals): Declare.
21011
21012 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
21013
21014         * timevar.def (TV_INITIALIZE_RTL): New.
21015         * toplev.c (initialize_rtl): Use an auto_timevar to account this
21016         function's time to TV_INITIALIZE_RTL.
21017
21018 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
21019
21020         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21021         gimple_build_nop calls.
21022         (chkp_find_bounds_for_elem): Likewise.
21023         (chkp_get_zero_bounds): Likewise.
21024         (chkp_get_none_bounds): Likewise.
21025         (chkp_get_bounds_by_definition): Likewise.
21026         (chkp_generate_extern_var_bounds): Likewise.
21027         (chkp_get_bounds_for_decl_addr): Likewise.
21028         (chkp_get_bounds_for_string_cst): Likewise.
21029
21030 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
21031
21032         PR tree-optimization/65447
21033         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21034         (dump_use, dump_uses): Support to dump sub use.
21035         (record_use): New parameters to support sub use.  Remove call to
21036         dump_use.
21037         (record_sub_use, record_group_use): New functions.
21038         (compute_max_addr_offset, split_all_small_groups): New functions.
21039         (group_address_uses, rewrite_use_address): New functions.
21040         (strip_offset): New declaration.
21041         (find_interesting_uses_address): Call record_group_use.
21042         (add_candidate): New assertion.
21043         (infinite_cost_p): Move definition forward.
21044         (add_costs): Check INFTY cost and return immediately.
21045         (get_computation_cost_at): Clear setup cost and dependent bitmap
21046         for sub uses.
21047         (determine_use_iv_cost_address): Compute cost for sub uses.
21048         (rewrite_use_address_1): Rename from old rewrite_use_address.
21049         (free_loop_data): Free sub uses.
21050         (tree_ssa_iv_optimize_loop): Call group_address_uses.
21051
21052 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
21053             Jim Wilson  <jim.wilson@linaro.org>
21054
21055         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21056         new  fields loadv and storev.
21057         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21058         Initialize loadv and storev.
21059         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21060         (cortexa53_extra_costs): Likewise.
21061         (cortexa57_extra_costs): Likewise.
21062         (xgene1_extra_costs): Likewise.
21063         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21064         rtx_costs.
21065
21066 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
21067
21068         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21069          storev.
21070         (cortexa8_extra_costs): Likewise.
21071         (cortexa5_extra_costs): Likewise.
21072         (cortexa7_extra_costs): Likewise.
21073         (cortexa12_extra_costs): Likewise.
21074         (cortexa15_extra_costs): Likewise.
21075         (v7m_extra_costs): Likewise.
21076
21077 2015-05-20  Jeff Law  <law@redhat.com>
21078
21079         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21080         instead of open-coded version.  Also delete the jump thread created
21081         within this function.
21082
21083 2015-05-20  Alan Modra  <amodra@gmail.com>
21084
21085         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21086         stack adjusting insn.  Formatting.
21087         (rs6000_emit_prologue): Track stack adjusting insn, and use of
21088         r12.  If possible, emit first -fsplit-stack arg pointer insn
21089         before stack adjust.  Don't use r12 to save cr if split-stack.
21090
21091 2015-05-20  Alan Modra  <amodra@gmail.com>
21092
21093         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21094         Define.
21095         (rs6000_supports_split_stack): New function.
21096         * gcc/config/rs6000/rs6000.c (machine_function): Add
21097         split_stack_arg_pointer.
21098         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21099         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21100         rather than virtual_incoming_args_rtx.
21101         (rs6000_va_start): Likewise.
21102         (split_stack_arg_pointer_used_p): New function.
21103         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21104         (morestack_ref): New var.
21105         (gen_add3_const, rs6000_expand_split_stack_prologue,
21106         rs6000_internal_arg_pointer, rs6000_live_on_entry,
21107         rs6000_split_stack_space_check): New functions.
21108         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21109         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21110         (UNSPECV_SPLIT_STACK_RETURN): Define.
21111         (split_stack_prologue, load_split_stack_limit,
21112         load_split_stack_limit_di, load_split_stack_limit_si,
21113         split_stack_return, split_stack_space_check): New expands and insns.
21114         * gcc/config/rs6000/rs6000-protos.h
21115         (rs6000_expand_split_stack_prologue): Declare.
21116         (rs6000_split_stack_space_check): Declare.
21117
21118 2015-05-20  Alan Modra  <amodra@gmail.com>
21119
21120         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21121         (direct_return): Test vrsave_size rather than vrsave_mask.
21122         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
21123         (rs6000_emit_epilogue): Likewise.
21124
21125 2015-05-20  Alan Modra  <amodra@gmail.com>
21126
21127         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21128         when not saving registers.
21129         (debug_stack_info): Adjust to omit printing unused offsets,
21130         as before.
21131         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21132         expression.
21133
21134 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21135
21136         PR c++/65835
21137         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21138         value_type to const char *.
21139
21140 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
21141
21142         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21143         to build a biarch toolchain again.
21144
21145 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21146
21147         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21148         or implicit declarations.
21149         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21150         into it.
21151         (get_odr_type): Check type has linkage before adding bases.
21152         (register_odr_type): Check that type has linkage before adding it.
21153         (type_known_to_have_no_deriavations_p): Rename to ..
21154         (type_known_to_have_no_derivations_p): This one.
21155         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21156         (type_known_to_have_no_derivations_p): This one.
21157         * ipa-polymorphic-call.c
21158         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21159         type has linkage.
21160
21161 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21162
21163         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21164         (layout_type): Use RECORD_OR_UNION_TYPE_P.
21165
21166 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21167
21168         * config/s390/s390.c (s390_vector_bool_type_p): New function.
21169         (s390_invalid_binary_op): New function.
21170         (TARGET_INVALID_BINARY_OP): Define macro.
21171
21172 2015-05-19  David Sherwood  <david.sherwood@arm.com>
21173
21174         * loop-invariant.c (create_new_invariant): Don't calculate address cost
21175         if mode is not a scalar integer.
21176         (get_inv_cost): Increase computational cost for unused invariants.
21177
21178 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21179
21180         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
21181         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
21182         * config/s390/s390-builtin-types.def: New file.
21183         * config/s390/s390-builtins.def: New file.
21184         * config/s390/s390-builtins.h: New file.
21185         * config/s390/s390-c.c: New file.
21186         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21187         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21188         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21189         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21190         prototypes.
21191         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21192         Include.
21193         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21194         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21195         variable definitions.
21196         (s390_const_operand_ok): New function.
21197         (s390_expand_builtin): Rewrite.
21198         (s390_init_builtins): New function.
21199         (s390_handle_vectorbool_attribute): New function.
21200         (s390_attribute_table): Add s390_vector_bool attribute.
21201         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21202         (s390_branch_condition_mask): Generate masks for new modes.
21203         (s390_expand_vec_compare_cc): New function.
21204         (s390_mangle_type): Add mangling for vector bool types.
21205         (enum s390_builtin): Remove.
21206         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21207         efpc builtins.
21208         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21209         s390_cpu_cpp_builtins.
21210         (REGISTER_TARGET_PRAGMAS): New macro.
21211         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21212         (insn_cmp mode attribute): Add new CC modes.
21213         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21214         (lcbb): New pattern definition.
21215         * config/s390/s390intrin.h: Include vecintrin.h.
21216         * config/s390/t-s390: New file.
21217         * config/s390/vecintrin.h: New file.
21218         * config/s390/vector.md: Include vx-builtins.md.
21219         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21220         support.
21221
21222 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21223
21224         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21225         CCVFHE.
21226         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21227         (s390_select_ccmode): Likewise.
21228         (s390_canonicalize_comparison): Swap operands if necessary.
21229         (s390_expand_vec_compare_scalar): Expand DFmode compare using
21230         single element vector instructions.
21231         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21232         (s390_branch_condition_mask): Generate CC masks for the new modes.
21233         * config/s390/s390.md (v0, vf, vd): New mode attributes.
21234         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21235         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21236         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21237         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
21238         (*extend<DSF:mode><BFP:mode>2): New insn definition.
21239         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
21240         (extend<DSF:mode><BFP:mode>2): Turn into expander.
21241         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
21242         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
21243         (sqrt<mode>2): Add vector instruction.
21244
21245 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21246
21247         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
21248         constraints.
21249         * config/s390/predicates.md (const0_operand, constm1_operand)
21250         (constable_operand): Accept vector operands.
21251         * config/s390/s390-modes.def: Add supported vector modes.
21252         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
21253         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
21254         (s390_bytemask_vector_p, s390_expand_vec_strlen)
21255         (s390_expand_vec_compare, s390_expand_vcond)
21256         (s390_expand_vec_init): Add prototypes.
21257         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
21258         (s390_vector_mode_supported_p): New function.
21259         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21260         (s390_contiguous_bitmask_vector_p): New function.
21261         (s390_bytemask_vector_p): New function.
21262         (s390_split_ok_p): Vector regs don't work either.
21263         (regclass_map): Add VEC_REGS.
21264         (s390_legitimate_constant_p): Handle vector constants.
21265         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21266         (legitimate_reload_vector_constant_p): New function.
21267         (s390_preferred_reload_class): Handle CONST_VECTOR.
21268         (s390_reload_symref_address):  Likewise.
21269         (s390_secondary_reload): Vector memory instructions only support
21270         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
21271         (s390_emit_ccraw_jump): New function.
21272         (s390_expand_vec_strlen): New function.
21273         (s390_expand_vec_compare): New function.
21274         (s390_expand_vcond): New function.
21275         (s390_expand_vec_init): New function.
21276         (s390_dwarf_frame_reg_mode): New function.
21277         (print_operand): Handle addresses with 'O' and 'R' constraints.
21278         (NR_C_MODES, constant_modes): Add vector modes.
21279         (s390_output_pool_entry): Handle vector constants.
21280         (s390_hard_regno_mode_ok): Handle vector registers.
21281         (s390_class_max_nregs): Likewise.
21282         (s390_cannot_change_mode_class): New function.
21283         (s390_invalid_arg_for_unprototyped_fn): New function.
21284         (s390_function_arg_vector): New function.
21285         (s390_function_arg_float): Remove size variable.
21286         (s390_pass_by_reference): Handle vector arguments.
21287         (s390_function_arg_advance): Likewise.
21288         (s390_function_arg): Likewise.
21289         (s390_return_in_memory): Vector values are returned in a VR if
21290         possible.
21291         (s390_function_and_libcall_value): Handle vector arguments.
21292         (s390_gimplify_va_arg): Likewise.
21293         (s390_call_saved_register_used): Consider the arguments named.
21294         (s390_conditional_register_usage): Disable v16-v31 for non-vec
21295         targets.
21296         (s390_preferred_simd_mode): New function.
21297         (s390_support_vector_misalignment): New function.
21298         (s390_vector_alignment): New function.
21299         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21300         (TARGET_VECTOR_MODE_SUPPORTED_P)
21301         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21302         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21303         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21304         (TARGET_VECTOR_ALIGNMENT): Define target macro.
21305         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21306         (FIRST_PSEUDO_REGISTER): Increase value.
21307         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21308         (VECTOR_REG_P): Define macros.
21309         (FIXED_REGISTERS, CALL_USED_REGISTERS)
21310         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21311         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21312         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21313         Add vector registers.
21314         (CANNOT_CHANGE_MODE_CLASS): Call C function.
21315         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21316         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21317         memory.
21318         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21319         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21320         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21321         (VR*_REGNUM): New constants.
21322         (ALL): New mode iterator.
21323         (INTALL): Remove mode iterator.
21324         Include vector.md.
21325         (movti): Implement TImode moves for VRs.
21326         Disable TImode splitter for VR targets.
21327         Implement splitting TImode GPR<->VR moves.
21328         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21329         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21330         reload<mode>_la_in, reload<mode>_la_out.
21331         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21332         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21333         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21334         (mov<mode> SF SD): Prefer lder, lde for loading.
21335         Add lrl and strl instructions.
21336         Add vector instructions.
21337         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21338         Call s390_expand_vec_strlen on z13.
21339         (*cc_to_int): Change predicate to nonimmediate_operand.
21340         (addti3): Rename to *addti3.  New expander.
21341         (subti3): Rename to *subti3.  New expander.
21342         * config/s390/vector.md: New file.
21343
21344 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21345
21346         * common/config/s390/s390-common.c (processor_flags_table): Add
21347         z13.
21348         * config.gcc: Add z13.
21349         * config/s390/s390-opts.h (enum processor_type): Add
21350         PROCESSOR_2964_Z13.
21351         * config/s390/s390.c (s390_adjust_priority): Check for
21352         PROCESSOR_2964_Z13.
21353         (s390_reorg): Likewise.
21354         (s390_sched_reorder): Likewise.
21355         (s390_sched_variable_issue): Likewise.
21356         (s390_loop_unroll_adjust): Likewise.
21357         (s390_option_override): Likewise. Default to -mvx when available.
21358         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21359         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21360         (TARGET_VX_ABI): Define macros.
21361         macros.
21362         (TARGET_DEFAULT): Add MASK_OPT_VX.
21363         * config/s390/s390.md ("cpu" attribute): Add z13.
21364         ("cpu_facility" attribute): Add vec.
21365         * config/s390/s390.opt (processor_type): Add z13.
21366         (mvx): New options.
21367         * doc/invoke.texi: Add z13 option for -march.
21368
21369 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21370
21371         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21372         mode check to make sure that only scalar integer values are
21373         accepted.
21374
21375 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21376
21377         * tree.c (verify_type_variant): Fix #undef.
21378         (gimple_canonical_types_compatible_p): Move here from lto.c
21379         (verify_type): Verify TYPE_CANONICAL compatibility.
21380         * tree.h (gimple_canonical_types_compatible_p): Declare.
21381
21382 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21383
21384         PR middle-end/66199
21385         * tree.h (OMP_TEAMS_COMBINED): Define.
21386         * gimplify.c (enum gimplify_omp_var_data): Add
21387         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21388         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21389         (omp_notice_variable): Accept both ORT_TEAMS
21390         and ORT_COMBINED_TEAMS.  Don't recurse if
21391         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21392         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21393         GOVD_FIRSTPRIVATE.
21394         (omp_no_lastprivate): New function.
21395         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21396         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21397         notice_outer and set appropriate bits, otherwise make
21398         sure default(none) combined constructs won't complain.
21399         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21400         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21401         omp_no_lastprivate either remove the clause or turn it
21402         into OMP_CLAUSE_PRIVATE.
21403         (gimplify_omp_for): Fix up handling of implicit
21404         lastprivate or linear iterators.
21405         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21406         ORT_COMBINED_TEAMS.
21407         * omp-low.c (lower_omp_for_lastprivate): For combined
21408         for simd use fd.loop.n2 from the for rather than simd.
21409
21410 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21411
21412         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21413         instead of gen_rtx_raw_REG.
21414         (cris_expand_epilogue): Likewise.
21415         * config/microblaze/microblaze.c (microblaze_classify_address):
21416         Likewise.
21417         * config/sparc/sparc.md: Likewise.
21418
21419 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
21420
21421         * config/alpha/alpha.c (alpha_legitimize_reload_address)
21422         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21423         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21424         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21425         Use CASE_CONST_SCALAR_INT.
21426         (print_operand) <case 'M'>: Use mode_width_operand to check the
21427         value of the constant.
21428         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21429         * config/alpha/predicates.md (input_operand): Use general_operand
21430         instead of match_code as operand check.
21431         (symbolic_operand): Use match_code with subexpression digits.
21432         * config/alpha/constraints.md (Q): Ditto.
21433
21434 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21435
21436         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21437
21438 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21439
21440         * config/s390/s390.c (s390_secondary_reload): Fix check for
21441         load/store relative.
21442
21443 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21444
21445         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
21446         alternative_mask to uint64_t.
21447
21448 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21449
21450         PR tree-optimization/66187
21451         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21452         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
21453         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21454
21455 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
21456
21457         * diagnostic.c (diagnostic_report_current_module): Strengthen
21458         local "new_map" from const line_map * to
21459         const line_map_ordinary *.
21460         * genmatch.c (error_cb): Likewise for local "map".
21461         (output_line_directive): Likewise for local "map".
21462         * input.c (expand_location_1): Likewise for local "map".
21463         Pass NULL rather than &map to
21464         linemap_unwind_to_first_non_reserved_loc, since the value is never
21465         read from there, and the value written back not read from here.
21466         (is_location_from_builtin_token): Strengthen local "map" from
21467         const line_map * to const line_map_ordinary *.
21468         (dump_location_info): Strengthen locals "map" from
21469         line_map *, one to const line_map_ordinary *, the other
21470         to const line_map_macro *.
21471         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21472         const line_map * to const line_map_macro *.
21473         (maybe_unwind_expanded_macro_loc): Add a call to
21474         linemap_check_macro when writing to the "map" field of the
21475         loc_map_pair.
21476         Introduce local const line_map_ordinary * "ord_map", using it in
21477         place of "map" in the part of the function where we know we have
21478         an ordinary map.  Strengthen local "m" from const line_map * to
21479         const line_map_ordinary *.
21480
21481 2015-05-19  Nick Clifton  <nickc@redhat.com>
21482
21483         PR target/66156
21484         * config/msp430/msp430.md (zero_extendhisi2): Add support for
21485         separate source and destination registers.
21486
21487 2015-05-19  Richard Biener  <rguenther@suse.de>
21488
21489         PR tree-optimization/66165
21490         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21491         for no load permutation.
21492
21493         PR tree-optimization/66185
21494         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21495         when building the SLP node from scalars.
21496
21497 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21498             Tristan Gingold  <gingold@adacore.com>
21499
21500         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21501         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21502         (expand_stack_restore): Call record_new_stack_level.
21503         (expand_stack_save): Do not call do_pending_stack_adjust.
21504         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21505         * calls.c (expand_call): Call record_new_stack_level for alloca.
21506         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21507         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21508         (update_sjlj_context): New global function.
21509         * except.h (update_sjlj_context): Declare.
21510         * explow.c (record_new_stack_level): New global function.
21511         (allocate_dynamic_stack_space): Call record_new_stack_level.
21512         * explow.h (record_new_stack_level): Declare.
21513         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21514         * cfgrtl.c (duplicate_insn_chain): Likewise.
21515
21516 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21517
21518         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21519         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21520         STACK_GROWS_DOWNWARD as normal if.
21521         (expand_call): Likewise.
21522
21523 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
21524
21525         PR target/54236
21526         * config/sh/sh.md (*round_int_even): New insn_and_split and
21527         accompanying new unnamed split.
21528
21529 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21530
21531         * bitmap.c (bitmap_set_range): Handle count==1 specially.
21532         (bitmap_clear_range): Likewise.
21533         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21534         bitmap_set_range unconditionally.
21535         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21536         * df-scan.c (df_mark_reg): Likewise.
21537         * haifa-sched.c (setup_ref_regs): Likewise.
21538         * sched-rgn.c (update_live_1): Likewise.
21539
21540 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21541
21542         * regs.h (END_HARD_REGNO): Delete.
21543         (END_REGNO): Move to...
21544         * rtl.h: ...here.
21545         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21546         * caller-save.c (mark_set_regs): Likewise.
21547         * combine.c (move_deaths, distribute_notes): Likewise.
21548         * cse.c (invalidate, invalidate_for_call): Likewise.
21549         * df-scan.c (df_ref_record): Likewise.
21550         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21551         (record_last_reg_set_info): Likewise.
21552         * reg-stack.c (convert_regs_exit): Likewise.
21553         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21554         * resource.c (update_live_status): Likewise.
21555         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21556
21557 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21558
21559         * rtl.h (reg_info): Add an nregs field.
21560         (REG_NREGS): Use it.
21561         (SET_REGNO_RAW): Delete.
21562         (set_regno_raw): New function.
21563         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21564         (END_REGNO): Redefine in terms of REG_NREGS.
21565         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21566         SET_REGNO_RAW.
21567         * emit-rtl.c (set_mode_and_regno): Likewise.
21568         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21569         instead of SET_REGNO_RAW.
21570
21571 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21572
21573         * rtl.h (PUT_MODE_RAW): New macro.
21574         (PUT_REG_NOTE_KIND): Use it.
21575         (set_mode_and_regno): Declare.
21576         (gen_raw_REG): Change regno to "unsigned int".
21577         (gen_rtx_REG): Change "unsigned" to "unsigned int".
21578         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21579         use set_mode_and_regno to change the mode of registers.
21580         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21581         * emit-rtl.c (set_mode_and_regno): New function.
21582         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
21583         * caller-save.c (reg_save_code): Use set_mode_and_regno.
21584         * expr.c (init_expr_target): Likewise.
21585         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21586         * postreload.c (reload_cse_simplify_operands): Likewise.
21587
21588 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21589
21590         * caller-save.c (init_caller_save): Use word_mode and
21591         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21592         * expr.c (init_expr_target): Likewise.
21593         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21594         * postreload.c (reload_cse_regs_1): Likewise.
21595
21596 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21597
21598         * rtl.def (REG): Change format to "r".
21599         * rtl.h (rtunion): Remove rt_reg.
21600         (reg_info): New structure.
21601         (rtx_def): Add reg field to main union.
21602         (X0REGATTR): Delete.
21603         (REG_CHECK): New macro.
21604         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21605         * rtl.c (rtx_format): Document "r".
21606         (rtx_code_size): Handle REG specially.
21607         * gengenrtl.c (special_format): Return true for formats
21608         that include 'r'.
21609         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21610         Deal with REG_ATTRS after the field loop.
21611         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21612         * expmed.c (init_expmed): Call gen_raw_REG instead of
21613         gen_rtx_raw_REG.
21614         * expr.c (init_expr_target): Likewise.
21615         * regcprop.c (maybe_mode_change): Likewise.
21616         * varasm.c (make_decl_rtl): Likewise.
21617         * final.c (leaf_renumber_regs_insn): Return early after
21618         handling REGs.
21619         * genemit.c (gen_exp): Handle 'r' fields.
21620         * genpeep.c (match_rtx): Likewise.
21621         * gensupport.c (subst_pattern_match): Likewise.
21622         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21623         (alter_constraints, subst_dup): Likewise.
21624         * read-rtl.c (read_rtx_code): Likewise.
21625         * print-rtl.c (print_rtx): Likewise.
21626         * genrecog.c (find_operand, find_matching_operand): Likewise.
21627         (validate_pattern, match_pattern_2): Likewise.
21628         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21629         (rtx_test::regno_field): New function.
21630         (operator ==, safe_to_hoist_p, transition_parameter_type)
21631         (parameter_type_string, print_parameter_value)
21632         (print_nonbool_test, print_test): Handle new enum values.
21633         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21634         * lra-constraints.c (operands_match_p): Likewise.
21635
21636 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21637
21638         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21639         Change type of new_regno to unsigned int.
21640         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21641         new_regno to unsigned int.
21642         (df_ref_change_reg_with_loc): Remove old_regno parameter.
21643         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
21644         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21645         (SET_REGNO_RAW): Add space after ",".
21646
21647 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21648
21649         * rtl.h (REG_NREGS): New macro
21650         * alias.c (record_set): Use it.
21651         * cfgcleanup.c (mark_effect): Likewise.
21652         * combine.c (likely_spilled_retval_1): Likewise.
21653         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21654         (move_deaths, distribute_notes): Likewise.
21655         * cselib.c (cselib_record_set): Likewise.
21656         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21657         * df-scan.c (df_mark_reg): Likewise.
21658         * dse.c (look_for_hardregs): Likewise.
21659         * dwarf2out.c (reg_loc_descriptor): Likewise.
21660         (multiple_reg_loc_descriptor): Likewise.
21661         * expr.c (write_complex_part, read_complex_part): Likewise.
21662         (emit_move_complex): Likewise.
21663         * haifa-sched.c (setup_ref_regs): Likewise.
21664         * ira-lives.c (mark_hard_reg_live): Likewise.
21665         * lra.c (lra_set_insn_recog_data): Likewise.
21666         * mode-switching.c (create_pre_exit): Likewise.
21667         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21668         (reload_combine_recognize_pattern): Likewise.
21669         (reload_combine_note_use, move2add_record_mode): Likewise.
21670         (reload_cse_move2add): Likewise.
21671         * reg-stack.c (subst_stack_regs_pat): Likewise.
21672         * regcprop.c (kill_value, copy_value): Likewise.
21673         (copyprop_hardreg_forward_1): Likewise.
21674         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21675         (build_def_use): Likewise.
21676         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21677         (deps_analyze_insn): Likewise.
21678         * sched-rgn.c (check_live_1, update_live_1): Likewise.
21679         * sel-sched.c (count_occurrences_equiv): Likewise.
21680         * valtrack.c (dead_debug_insert_temp): Likewise.
21681
21682 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21683
21684         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21685         * dse.c (note_add_store): Likewise.
21686         * ira-lives.c (mark_hard_reg_dead): Likewise.
21687         * loop-invariant.c (mark_reg_store): Likewise.
21688         (mark_reg_death): Likewise.
21689         * postreload.c (reload_combine): Likewise.
21690         (reload_combine_note_store): Likewise.
21691         (reload_combine_note_use): Likewise.
21692         * recog.c (peep2_reg_dead_p): Likewise.
21693
21694 2015-05-19  Alan Modra  <amodra@gmail.com>
21695
21696         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21697         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21698         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21699         unused predicates.
21700         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21701         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
21702         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21703         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21704
21705 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
21706
21707         * config/mips/mips.md (JOIN_MODE): New mode iterator.
21708         (join2_load_Store<JOIN_MODE:mode>): New pattern.
21709         (join2_loadhi): Likewise.
21710         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21711         load-load and store-stores.
21712         * config/mips/mips.opt (mload-store-pairs): New option.
21713         (TARGET_LOAD_STORE_PAIRS): New macro.
21714         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21715         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21716         * config/mips/mips.c (mips_load_store_bonding_p): New function.
21717
21718 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
21719
21720         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21721         explicit swaps.
21722         * dojump.c (do_compare_rtx_and_jump): Likewise.
21723         * expmed.c (emit_store_flag_1): Likewise.
21724         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21725         * final.c (sprint_ul): Use std::reverse for reversing a string.
21726         * fold-const.c (extract_muldiv_1): Use std::swap.
21727         * genmodes.c (emit_mode_int_n): Likewise.
21728         * ifcvt.c (dead_or_predicable): Likewise.
21729         * ira-build.c (ira_merge_live_ranges): Likewise.
21730         (swap_allocno_copy_ends_if_necessary): Likewise.
21731         * ira.c (ira_setup_alts): Likewise.
21732         * loop-iv.c (iv_analyze_expr): Likewise.
21733         (implies_p): Likewise.
21734         (canon_condition): Likewise.
21735         * lra-constraints.c (swap_operands): Likewise.
21736         * lra-lives.c (lra_merge_live_ranges): Likewise.
21737         * omega.c (swap): Remove.
21738         (bswap): Remove.
21739         (omega_unprotect_1): Use std::swap.
21740         (omega_solve_geq): Likewise.
21741         * optabs.c (expand_binop_directly): Likewise.
21742         (expand_binop): Likewise.
21743         (emit_conditional_move): Likewise.
21744         (emit_conditional_add): Likewise.
21745         * postreload.c (reload_cse_simplify_operands): Likewise.
21746         * reg-stack.c (emit_swap_insn): Likewise.
21747         (swap_to_top): Likewise.
21748         (compare_for_stack_reg): Likewise.
21749         (subst_asm_stack_regs): Likewise.
21750         * reload.c (find_reloads): Likewise.
21751         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21752         * sel-sched.c (invoke_reorder_hooks): Likewise.
21753         (create_block_for_bookkeeping): Likewise.
21754         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21755         (lambda_matrix_right_hermite): Use std::swap.
21756         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21757         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21758         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21759         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21760         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21761         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21762         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21763         * tree-vrp.c (compare_ranges): Likewise.
21764         * var-tracking.c (add_with_sets): Likewise.
21765         (vt_find_locations): Likewise.
21766
21767 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
21768
21769         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21770         pie executables.
21771         (FBSD_ENDFILE_SPEC): Likewise.
21772         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21773         config/freebsd-spec.h.
21774         (ENDFILE_SPEC): Likewise.
21775
21776 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
21777             Richard Henderson  <rth@redhat.com>
21778
21779         PR target/57032
21780         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21781         Check for a memory location that is not a reference (using an AND)
21782         to an unaligned location here.
21783         * config/alpha/predicates.md (normal_memory_operand): Remove.
21784
21785 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
21786
21787         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21788         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21789
21790 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21791
21792         * config/mips/mips.c (micromips_globals): New variable.
21793         (mips_set_compression_mode): Save and reinitialize target-dependent
21794         state for microMIPS.
21795
21796 2015-05-18  Martin Liska  <mliska@suse.cz>
21797
21798         * dbgcnt.def: Add new counter.
21799         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21800
21801 2015-05-18  Martin Liska  <mliska@suse.cz>
21802
21803         * dbgcnt.def: Sort counters.
21804         * opts.c (common_handle_option): Do not compile if
21805         -fdbg-cnt-list is enabled.
21806
21807 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21808
21809         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21810         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
21811         address operator to va_list operand.
21812         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21813         unconditionally.
21814         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21815         operand.
21816         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21817         * config/s390/s390.c (s390_gimplify_va_arg): Same.
21818         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21819
21820 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21821
21822         * tree-ssa-tail-merge.c: Fix whitespace.
21823
21824 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
21825
21826         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21827         cortex-a17, and cortex-a17.cortex-a7.
21828
21829 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
21830
21831         PR target/54236
21832         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21833
21834 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
21835
21836         PR target/66174
21837         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21838         QImode inner modes for TARGET_AVX512BW.  Force mask operand
21839         to a register for AVX512F modes.
21840
21841 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21842
21843         * toplev.c (emit_debug_global_declarations): Do not output debug info
21844         when doing slim LTO objects.
21845
21846 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21847
21848         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21849         odr_types_equivalent_p): Declare.
21850         (odr_type_p): Use gcc_checking_assert.
21851         (type_in_anonymous_namespace_p) Declare.
21852         (type_with_linkage_p): Declare.
21853         * common.opt (Wlto-type-mismatch): New warning.
21854         * ipa-devirt.c (compound_type_base): New function.
21855         (odr_or_derived_type_p): New function.
21856         (odr_types_equivalent_p): New function.
21857         (add_type_duplicate): Simplify.
21858         (type_with_linkage_p): Add hack to prevent false positives on C types
21859         (type_in_anonymous_namespace_p): Likewise.
21860         * tree.c (need_assembler_name_p): Use type_with_linkage.
21861         * tree.h (type_in_anonymous_namespace_p): Remove.
21862         * doc/invoke.texi (-Wlto-type-mismatch): Document
21863
21864 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21865
21866         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21867         (verify_type): Verify STRING_FLAG.
21868
21869 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21870
21871         PR fortran/44054
21872         * tree-pretty-print.c (percent_K_format): Replace locus pointer
21873         with accessor function.
21874         * tree-diagnostic.c (diagnostic_report_current_function): Use
21875         diagnostic_location function.
21876         (maybe_unwind_expanded_macro_loc): Likewise.
21877         (virt_loc_aware_diagnostic_finalizer): Likewise.
21878         (default_tree_printer): Replace locus pointer with accessor function.
21879         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21880         (diagnostic_set_info_translated): Initialize second location.
21881         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21882         (diagnostic_show_locus): Handle two locations. Call
21883         diagnostic_print_caret_line.
21884         (diagnostic_print_caret_line): New.
21885         (default_diagnostic_starter): Use diagnostic_location function.
21886         (diagnostic_report_diagnostic): Use diagnostic_location function.
21887         (verbatim): Do not set text.locus.
21888         * diagnostic.h (struct diagnostic_info): Remove location field.
21889         (struct diagnostic_context): Make caret_chars an array of two.
21890         (diagnostic_location): New inline.
21891         (diagnostic_expand_location): Handle two locations.
21892         (diagnostic_same_line): New inline.
21893         (diagnostic_print_caret_line): Declare.
21894         (CARET_LINE_MARGIN): New constant.
21895         * pretty-print.c (pp_printf): Do not set text.locus.
21896         (pp_verbatim): Do not set text.locus.
21897         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21898         (struct text_info): Replace locus pointer with locations
21899         array. Add accessor functions.
21900
21901 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
21902             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21903
21904         PR target/65768
21905         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21906         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21907          large constants in register instead of splitting them.
21908
21909 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
21910
21911         PR target/66140
21912         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21913         replacements in memory addresses.
21914         (get_unaligned_address): Ditto.
21915
21916 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
21917
21918         * config/ft32/*: New files for FT32 port.
21919         * doc/install.texi: Add FT32 information.
21920         * doc/invoke.texi: Add FT32 information.
21921         * doc/md.texi: Add FT32 information.
21922         * doc/contrib.texi: Self added.
21923
21924 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
21925
21926         PR tree-optimization/64454
21927         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21928         (-1 - A -> ~A): Remove unnecessary condition.
21929
21930 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
21931
21932         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21933         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21934         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
21935
21936 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
21937
21938         * ipa-chkp.h (chkp_wrap_function): New.
21939         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
21940         (chkp_wrap_function_name): New.
21941         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
21942         to get wrapper name.
21943         * lto-cgraph.c: Include ipa-chkp.h.
21944         (input_cgraph_1): Avoid alias chain for wrappers.
21945
21946 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
21947
21948         PR middle-end/66134
21949         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
21950         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
21951
21952 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21953
21954         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
21955         (AARCH64_FL_SLOWMUL): Delete.
21956         (AARCH64_FL_CRC): Redefine to 1<<3.
21957         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
21958
21959 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21960
21961         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
21962         casting.
21963
21964 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21965
21966         * config/alpha/alpha.md (extendqidi2): Use general_operand
21967         instead of some_operand for operand[1] predicate.
21968         (extendhidi2): Ditto.
21969         (cbranchdi4): Use general_operand instead of some_operand
21970         for operand[1] and operands[2] predicates.
21971         (cstoredi4): Ditto.
21972         * config/alpha/predicates.md (some_operand): Remove unused predicate.
21973         (some_ni_operand): Ditto.
21974
21975 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21976
21977         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
21978         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
21979         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
21980         low part of the constant using alpha_emit_set_const_1.
21981         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
21982
21983 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
21984
21985         * varasm.c (output_constant_pool_1): Pass down alignment from
21986         constant pool entry's descriptor to output_constant_pool_2.
21987         (output_object_block): Add comment prior to call to
21988         output_constant_pool_1.
21989
21990 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
21991
21992         PR rtl-optimization/65862
21993         * target.def (ira_change_pseudo_allocno_class): New hook.
21994         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
21995         value of the hook.
21996         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
21997         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
21998         hook.
21999         * ira-costs.c (find_costs_and_classes): Call the hook and change
22000         classes when it is necessary.
22001         * doc/tm.texi: Update.
22002
22003 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
22004
22005         * config/i386/i386.md (sibcall_memory): Check that register with
22006         callee address is not also used as one of the arguments, instead
22007         of checking that it is not live after the sibcall.
22008         (sibcall_pop_memory): Ditto.
22009         (sibcall_value_memory): Ditto.
22010         (sibcall_value_pop_memory): Ditto.
22011
22012 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
22013
22014         * generic-match-head.c (types_match): Handle non-types.
22015         * gimple-match-head.c (types_match): Likewise.
22016         * match.pd: Remove unnecessary TREE_TYPE for types_match.
22017
22018 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
22019
22020         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22021         (csneg3<mode>_insn): Enable expansion of pattern.
22022
22023 2015-05-14  Nick Clifton  <nickc@redhat.com>
22024
22025         * config/rl78/rl78.c (rl78_select_section): Select the correct
22026         default section based upon the category of the decl.
22027
22028 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22029
22030         PR rtl-optimization/30967
22031         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22032         destination mode for the cost of scc patterns.
22033
22034 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
22035
22036         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22037         using SWIM248 mode iterator.
22038         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22039         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
22040         for operand[2] constraint.
22041         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22042
22043 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22044
22045         PR middle-end/66133
22046         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22047         make sure it is never noreturn, even when the task body does not
22048         return.
22049         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22050         right before GIMPLE_OMP_RETURN.
22051         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22052         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
22053         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22054
22055 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22056
22057         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22058         * tree-ssa-math-opts.c: Include params.h
22059         (pow_synth_sqrt_info): New struct.
22060         (representable_as_half_series_p): New function.
22061         (get_fn_chain): Likewise.
22062         (print_nested_fn): Likewise.
22063         (dump_fractional_sqrt_sequence): Likewise.
22064         (dump_integer_part): Likewise.
22065         (expand_pow_as_sqrts): Likewise.
22066         (gimple_expand_builtin_pow): Use above to attempt to expand
22067         pow as series of square roots.  Removed now unused variables.
22068
22069 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
22070
22071         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22072         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22073         Remove *p0 and *p1 arguments.  Rewrite function.
22074         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22075         (alpha_split_const_mov): Update calls to alpha_extract_integer and
22076         alpha_emit_set_long_const.
22077         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22078         (alpha_output_mi_thunk_osf): Ditto.
22079         * config/alpha/alpha.md (movti): Do not check operands[1]
22080         for CONST_DOUBLE.
22081
22082 2015-05-13  Richard Biener  <rguenther@suse.de>
22083
22084         PR tree-optimization/66129
22085         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22086         commutative.
22087         (vect_schedule_slp_instance): Fix typo.
22088
22089 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
22090
22091         * common.opt (fdump-internal-locations): New option.
22092         * input.c: Include diagnostic-core.h.
22093         (get_end_location): New function.
22094         (write_digit): New function.
22095         (write_digit_row): New function.
22096         (dump_location_range): New function.
22097         (dump_labelled_location_range): New function.
22098         (dump_location_info): New function.
22099         * input.h (dump_location_info): New prototype.
22100         * toplev.c (compile_file): Handle flag_dump_locations.
22101
22102 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
22103
22104         * gimple-expr.h (is_gimple_constant): Reorder.
22105         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22106
22107 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22108
22109         * combine.c (simplify_set): When generating a CC set, if the
22110         source already is in the correct mode, do not wrap it in a
22111         compare.  Simplify the rest of that code.
22112
22113 2015-05-13  Richard Biener  <rguenther@suse.de>
22114
22115         PR tree-optimization/66123
22116         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22117         a taken edge.
22118
22119 2015-05-13  Richard Biener  <rguenther@suse.de>
22120
22121         PR middle-end/66110
22122         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22123         specially.
22124         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22125
22126 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22127
22128         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22129         * aclocal.m4: Regenerated with automake-1.11.6.
22130
22131 2015-05-13  Tom de Vries  <tom@codesourcery.com>
22132
22133         PR tree-optimization/66010
22134         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22135         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22136         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
22137         and rval based on do_deref.
22138
22139 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22140
22141         PR target/65103
22142         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22143         link time constants into adress expressions and therefore set
22144         their cost to 0.
22145
22146 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22147
22148         PR target/66112
22149         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22150         Use SWI248 iterator instead of SWI.
22151         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
22152         Use eq_attr "alternative" "0" instead of match_test in
22153         length_immediate attribute computation.
22154         (*mulvhi4, *mulvhi4_1): New define_insns.
22155
22156         PR target/66112
22157         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22158         SIGNED to get precision of non-negative value.
22159
22160 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22161
22162         PR target/66048
22163         * function.c (diddle_return_value_1): Process bounds first.
22164         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22165         register.
22166
22167 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22168
22169         PR rtl-optimization/64616
22170         * loop-invariant.c (can_move_invariant_reg): New.
22171         (move_invariant_reg): Call above new function to decide whether
22172         instruction can just be moved, skipping creation of temporary
22173         register.
22174
22175 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22176
22177         PR target/pr66047.c
22178         * i386.c (ix86_function_sseregparm): Only return -1 if local function
22179         with implied regparm is called from -mno-sse function.
22180         (init_cumulative_args): Output error if ix86_function_sseregparm
22181         return -1 and SSE register would be needed.
22182         (function_arg_advance_32): Likewise.
22183         (function_arg_32): Likewise.
22184         * i386.h (ix86_args): Add decl field.
22185
22186 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22187
22188         PR ipa/65873
22189         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22190         inlines across optimization boundary.
22191
22192 2015-05-12  Jason Merrill  <jason@redhat.com>
22193
22194         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22195         string literal and macro name.
22196
22197 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
22198
22199         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22200         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22201         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22202
22203 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22204
22205         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22206         (-Wmisleading-indentation): New option.
22207         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22208
22209 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
22210
22211         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22212         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22213         (alpha_extract_integer): Ditto.
22214         (alpha_legitimate_constant_p): Ditto.
22215         (alpha_split_tmode_pair): Ditto.
22216         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22217         (alpha_expand_mov): Ditto.
22218         (print_operand): Remove handling of 'H' modifier.
22219         <case 'm'>: Remove CONST_DOUBLE handling.
22220         (summarize_insn): Handle CONST_WIDE_INT.
22221         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22222         (anddi3): Ditto.
22223         (movti): Handle CONST_WIDE_INT.
22224         * config/alpha/constraints.md ('H'): Remove constraint definition.
22225         ('G'): Do not match MODE_FLOAT class.
22226         * config/alpha/predicates.md (const0_operand): Also match
22227         const_wide_int.
22228         (non_add_const_operand): Ditto.
22229         (non_zero_const_operand): Ditto.
22230         (some_operand): Ditto.
22231         (input_operand): Ditto.  Handle CONST_WIDE_INT.
22232         (and_operand): Do not match const_double.
22233         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22234
22235 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
22236
22237         PR target/65697
22238         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
22239         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
22240         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
22241         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
22242         is_mm_seq_cst, is_mm_sync): New accessor functions.
22243         * builtins.c (expand_builtin_sync_operation,
22244         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
22245         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
22246         (get_memmodel,  expand_builtin_atomic_compare_exchange,
22247         expand_builtin_atomic_load, expand_builtin_atomic_store,
22248         expand_builtin_atomic_clear): Use new accessor routines.
22249         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
22250         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
22251         (maybe_emit_sync_lock_test_and_set): Use new accessors and
22252         MEMMODEL_SYNC_ACQUIRE.
22253         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
22254         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
22255         expand_atomic_store): Use new accessors.
22256         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
22257         * tsan.c (instrument_builtin_call): Update check for memory model beyond
22258         final enum to use MEMMODEL_LAST.
22259         * c-family/c-common.c: Use new accessor for memmodel_base.
22260         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22261         accessors.
22262         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22263         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22264         mem_thread_fence, *dmb): Likewise.
22265         * config/alpha/alpha.c (alpha_split_compare_and_swap,
22266         alpha_split_compare_and_swap_12): Likewise.
22267         * config/arm/arm.c (arm_expand_compare_and_swap,
22268         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22269         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22270         atomic_loaddi): Likewise.
22271         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22272         Likewise.
22273         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22274         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22275         use new accessors.
22276         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22277         atomic_store<mode>, atomic_compare_and_swap<mode>,
22278         atomic_exchange<mode>): Use new accessors.
22279         * config/mips/mips.c (mips_process_sync_loop): Likewise.
22280         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22281         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22282         rs6000_post_atomic_barrier): Add new cases.
22283         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22284         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22285         (atomic_load<mode>): Add new cases and use new accessors.
22286         (store_quadpti): Add new cases.
22287         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22288         accessors.
22289         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22290         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22291         model, not 8.
22292
22293 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22294
22295         * ipa-devirt.c (type_with_linkage_p): New function.
22296         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22297         type has linkage.
22298         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22299         (can_be_name_hashed_p): Simplify.
22300         (hash_odr_name): Check that type has linkage before checking if it is
22301         anonymous.
22302         (types_same_for_odr): Likewise.
22303         (odr_name_hasher::equal): Likewise.
22304         (odr_subtypes_equivalent_p): Likewise.
22305         (warn_types_mismatch): Likewise.
22306         (get_odr_type): Likewise.
22307         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22308         * ipa-utils.h (odr_type_p): Move offline.
22309         * tree.c (need_assembler_name_p): Fix handling of types
22310         without linkages.
22311         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22312
22313 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22314
22315         * timevar.c (timevar_enable): Delete in favor of...
22316         (g_timer): New global.
22317         (struct timevar_def): Move to timevar.h inside class timer.
22318         (struct timevar_stack_def): Likewise.
22319         (timevars): Delete global in favor of field "m_timevars" within
22320         class timer in timevar.h
22321         (stack): Likewise, in favor of field "m_stack".
22322         (unused_stack_instances): Likewise, in favor of field
22323         "m_unused_stack_instances".
22324         (start_time): Likewise, in favor of field "m_start_time".
22325         (get_time): Eliminate check for timevar_enable.
22326         (timer::timer): New function, built from part of timevar_init.
22327         (timevar_init): Rewrite idempotency test from using
22328         "timevar_enable" bool to using dynamic allocation of "g_timer".
22329         Move rest of implementation into timer's constructor.
22330         (timevar_push_1): Rename to...
22331         (timer::push): ...this, adding "m_" prefixes to variables that
22332         are now fields of timer.
22333         (timevar_pop_1): Likewise, rename to...
22334         (timer::pop): ...this, and add "m_" prefixes.
22335         (timevar_start): Replace test for "timevar_enable" with one for
22336         "g_timer", and move bulk of implementation to...
22337         (timer::start): ...here, adding "m_" prefixes.
22338         (timevar_stop): Likewise, from here...
22339         (timer::stop): ...to here.
22340         (timevar_cond_start): Likewise, from here...
22341         (timer::cond_start): ...to here.
22342         (timevar_cond_stop): Likewise, from here...
22343         (timer::cond_stop): ...to here.
22344         (validate_phases): Rename to...
22345         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
22346         locals "total" and "tv" const.
22347         (timevar_print): Rename to...
22348         (timer::print): ...this, and add "m_" prefixes.  Make locals
22349         "total" and "tv" const.  Eliminate test for timevar_enable.
22350         * timevar.h (timevar_enable): Eliminate.
22351         (g_timer): New declaration.
22352         (timevar_push_1): Eliminate.
22353         (timevar_pop_1): Eliminate.
22354         (timevar_print): Eliminate.
22355         (class timer): New class.
22356         (timevar_push): Rewrite to use g_timer.
22357         (timevar_pop): Likewise.
22358         * toplev.c (toplev::~toplev): Likewise.
22359
22360 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
22361
22362         * arm-protos.h (arm_sched_autopref): Delete.
22363         (tune_params): Re-organize, use enums for flag values.
22364         (FUSE_OPS): New macro.
22365         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22366         (ARM_PREFETCH_BENEFICIAL): Likewise.
22367         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22368         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22369         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22370         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22371         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22372         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
22373         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22374         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22375         format.
22376         (arm_option_override, thumb2_reorg, arm_print_tune_info)
22377         (aarch_macro_fusion_pair_p): Update uses of current_tune.
22378         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22379
22380 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
22381
22382         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22383         "break".
22384
22385 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
22386             Sandra Loosemore <sandra@codesourcery.com>
22387
22388         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22389         value.
22390         (REG_CLASS_NAMES): Add "IJMP_REGS".
22391         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22392         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22393         use new "c" register constraint.
22394         * config/nios2/constraint.md (c): New register constraint
22395         corresponding to IJMP_REGS.
22396
22397 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22398
22399         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22400         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22401         define_splits): Delete, revamp, transmogrify into ...
22402         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22403         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22404         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22405         New.
22406
22407 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22408
22409         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22410         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22411
22412 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22413
22414         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22415         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22416         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22417         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22418         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22419         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22420         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22421         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22422         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22423         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22424         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22425         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22426         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22427         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22428         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22429         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22430         and 30 corresponding splitters): Delete.
22431
22432 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22433
22434         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22435         zero_extract.
22436
22437 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22438
22439         * combine.c (recog_for_combine_1): New function, factored out
22440         from recog_for_combine.
22441         (change_zero_ext): New function.
22442         (recog_for_combine): If recog fails, try again with the pattern
22443         modified by change_zero_ext; if that still fails, restore the
22444         pattern.
22445
22446 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22447
22448         * combine.c (get_undo_marker): New function.
22449         (undo_to_marker): New function, largely factored out from ...
22450         (undo_all): ... this.  Adjust.
22451
22452 2015-05-12  Richard Biener  <rguenther@suse.de>
22453
22454         PR tree-optimization/66101
22455         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22456         fixup if we turn a loop exit edge to a fallthru edge.
22457
22458 2015-05-12  Richard Biener  <rguenther@suse.de>
22459
22460         PR tree-optimization/37021
22461         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22462         (SLP_TREE_TWO_OPERATORS): New define.
22463         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22464         SLP_TREE_TWO_OPERATORS.
22465         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22466         SLP node.
22467         (vect_build_slp_tree): Adjust.
22468         (vect_analyze_slp_cost_1): Likewise.
22469         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22470         emitting two vector stmts and mixing the results.
22471
22472 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22473
22474         * call.c (print_z_candidates): Remove dead code.
22475
22476 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22477
22478         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22479         and zEC12_simple_fp.
22480         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22481         to 1.
22482
22483 2015-05-12  Tom de Vries  <tom@codesourcery.com>
22484
22485         PR tree-optimization/66010
22486         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22487         ifn_va_arg.
22488         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22489         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
22490         va_lists are passed, and remove corresponding handling.
22491         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
22492         do_deref argument to ifn_va_arg.
22493         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22494         ifn_va_arg.
22495
22496 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22497
22498         PR target/65955
22499         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22500         REG before taking its REGNO.
22501
22502 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22503
22504         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22505         rsp->sign_bit_copies and rsp->nonzero_bits into ...
22506         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
22507         present to get more accurate information about the number of sign bit
22508         copies and non zero bits.
22509
22510 2015-05-12  Richard Biener  <rguenther@suse.de>
22511
22512         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22513         do not allow unrolling.
22514
22515 2015-05-11  Richard Henderson  <rth@redhat.com>
22516
22517         * config/i386/i386-modes.def (CCP): New.
22518         * config/i386/i386.c (put_condition_code): Handle it.
22519         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22520
22521 2015-05-11  Richard Henderson  <rth@redhat.com>
22522
22523         * target.def (md_asm_clobbers): Replace with...
22524         (md_asm_adjust): this.
22525         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22526         (TARGET_MD_ASM_ADJUST): New.
22527         * tm.texi: Rebuild.
22528         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22529         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22530         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22531
22532         * cfgexpand.c (check_operand_nalternatives): Accept vector of
22533         constraints instead of lists of outputs and inputs.
22534         (expand_asm_stmt): Save and restore input_location around the
22535         body of the function.  Move asm data into vectors instead of
22536         building tree lists.  Generate cleanup sequences as needed,
22537         rather than waiting til the end.  Use new md_asm_adjust hook.
22538
22539         * config/vxworks.c: Include vec.h before target.h.
22540         * gimple.c: Likewise.
22541         * incpath.c: Likewise.
22542         * mode-switching.c: Likewise.
22543
22544         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22545         (cris_md_asm_adjust): this.
22546         (TARGET_MD_ASM_CLOBBERS): Remove.
22547         (TARGET_MD_ASM_ADJUST): New.
22548         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22549         (ix86_md_asm_adjust): this.
22550         (TARGET_MD_ASM_CLOBBERS): Remove.
22551         (TARGET_MD_ASM_ADJUST): New.
22552         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22553         (mn10300_md_asm_adjust): this.
22554         (TARGET_MD_ASM_CLOBBERS): Remove.
22555         (TARGET_MD_ASM_ADJUST): New.
22556         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22557         (rs6000_md_asm_adjust): this.
22558         (TARGET_MD_ASM_CLOBBERS): Remove.
22559         (TARGET_MD_ASM_ADJUST): New.
22560         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22561         (visium_md_asm_adjust): this.
22562         (TARGET_MD_ASM_CLOBBERS): Remove.
22563         (TARGET_MD_ASM_ADJUST): New.
22564
22565 2015-05-11  Richard Henderson  <rth@redhat.com>
22566
22567         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22568         if noutputs is zero.
22569         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22570
22571         * cfgexpand.c (expand_asm_operands): Merge into...
22572         (expand_asm_stmt): ... here.
22573
22574         * cfgexpand.c (expand_asm_operands): Don't call
22575         resolve_asm_operand_names.
22576         * stmt.c (resolve_asm_operand_names): Clarify block comment.
22577
22578 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
22579
22580         * dwarf2out.c (gen_member_die): Sanity check that we access
22581         TYPE_MAIN_VARIANT for TYPE_METHODS.
22582         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22583         checking TYPE_METHODS.
22584         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22585         if non-null.
22586         (build_distinct_type_copy): Clear TYPE_METHODS.
22587         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22588         (verify_type): Allow TYPE_METHODS to be error_mark_node.
22589         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22590
22591 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22592
22593         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22594         (emit_pattern_before_setloc): Likewise.
22595
22596 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22597
22598         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22599         for define_peephole2s.
22600         (get_peephole2_pattern): New function.
22601         (main): Use it.  Call validate_pattern.
22602
22603 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22604
22605         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22606         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22607         (Last callee saved reg is different for AVR_TINY architecture)
22608
22609 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22610
22611         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22612         when looking for memory references.
22613
22614 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22615
22616         PR target/65753
22617         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22618         via function pointers.
22619
22620 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22621
22622         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22623         indirect call by forcing address into a pseudo with -fno-plt.
22624         * common.opt (flag_plt): New option.
22625         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22626         ([-fno-plt]): Document.
22627
22628 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
22629
22630         PR bootstrap/66105
22631         * config/rs6000/option-defaults.h: Add space between string literal
22632         and macro name.
22633
22634 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22635
22636         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22637         accross ARM targets.
22638
22639 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22640
22641         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22642         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22643
22644 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22645
22646         PR rtl-optimization/66076
22647         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22648         Don't grow the heap array if it is already big enough from a
22649         previous iteration.
22650
22651 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22652
22653         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22654         (is_called_in_ARM_mode): Remove.
22655         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22656         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22657         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22658          arm_declare_function_name.
22659
22660 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22661
22662         * config/arm/arm.c (arm_option_override): Reoganized and split into :
22663         (arm_option_params_internal); New function.
22664         (arm_option_check_internal): New function.
22665         (arm_option_override_internal): New function.
22666         (thumb_code, thumb1_code): Remove.
22667         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22668         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22669         (thumb_code, thumb1_code): Remove.
22670         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22671
22672 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22673
22674         * config/alpha/alpha.c (alpha_emit_set_const_1)
22675         (alpha_emit_set_long_const, alpha_extract_integer)
22676         (alpha_legitimate_constant_p, alpha_split_const_mov)
22677         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22678         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22679         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22680         HOST_WIDE_INT_1U.
22681         * config/alpha/predicates.md (mode_mask_operand): Do not match
22682         const_double RTX.
22683         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22684         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22685         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22686         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22687         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22688
22689 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
22690
22691         PR target/65780
22692         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22693         default_binds_local_p_2.
22694         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22695         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22696
22697 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22698
22699         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22700
22701 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22702
22703         Patch by Richard Biener
22704         * coverage.c (coverage_obj_init): Delay building of type variant
22705         until the type is finished.
22706
22707 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22708
22709         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22710         mismatch between C and C++ type; compoare correctly ARG_TYPES
22711         for non-prototypes and output correctly parameter index for METHOD_TYPE.
22712         (odr_types_equivalent_p): Fix wording of warning about attributes;
22713         it is OK to match prototype and non-prototype.
22714
22715 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22716
22717         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22718         TYPE_ARG_TYPES list.
22719         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22720         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22721
22722 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22723
22724         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22725         * tree.h (is_lang_specific): Constify.
22726
22727 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
22728
22729         PR tree-optimization/64454
22730         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22731         Rewrite.
22732
22733 2015-05-08  Jason Merrill  <jason@redhat.com>
22734
22735         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22736         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22737         config/darwin.h, config/darwin9.h, config/elfos.h,
22738         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22739         config/microblaze/microblaze.h, config/mips/mips.h,
22740         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22741         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22742         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22743         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22744         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22745         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22746         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22747         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22748         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22749         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22750         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22751         between string literal and macro name.
22752
22753 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22754
22755         * jump.c: Change argument types to rtx_insn *.
22756         * rtl.h: Adjust.
22757
22758 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22759
22760         * lra-constraints.c: Change argument type to rtx_insn *.
22761
22762 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22763
22764         * df-problems.c: Change argument type to rtx_insn *.
22765
22766 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22767
22768         * combine.c: Change argument type to rtx_insn *.
22769
22770 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22771
22772         * rtl.h: Adjust.
22773         * rtlanal.c: Change argument type to rtx_insn *.
22774
22775 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22776
22777         * sched-deps.c: Change argument types to rtx_insn *.
22778         * sched-int.h: Adjust.
22779
22780 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22781
22782         * dwarf2cfi.c: Change argument type to rtx_insn *.
22783
22784 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22785
22786         * ira.c (decrease_live_ranges_number): Changetype of local
22787         variable to rtx_insn *.
22788         * recog.c: Change argument types to rtx_insn *.
22789         * recog.h: Adjust.
22790
22791 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22792
22793         * reorg.c: Change argument types to rtx_insn *.
22794
22795 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22796
22797         * ira-color.c: Change argument types to rtx_insn *.
22798         * lra-eliminations.c: Likewise.
22799         * ira.h: Adjust.
22800
22801 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22802
22803         * gcse.c: Change argument types to rtx_insn *.
22804
22805 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22806
22807         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22808
22809 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22810
22811         * emit-rtl.c (emit_debug_insn_before): Change argument type to
22812         rtx_insn *.
22813         * rtl.h: Adjust.
22814
22815 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22816
22817         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22818         * rtl.h: Adjust.
22819
22820 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22821
22822         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22823         * rtl.h: Adjust.
22824
22825 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22826
22827         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22828         * rtl.h: Adjust.
22829
22830 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22831
22832         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22833         * rtl.h: Adjust.
22834
22835 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22836
22837         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22838         to rtx_insn *.
22839         * rtl.h: Adjust.
22840
22841 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22842
22843         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22844         to rtx_insn *.
22845         * rtl.h: Likewise.
22846
22847 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22848
22849         * except.c (can_nonlocal_goto): Change type of argument to
22850         rtx_insn *.
22851         * rtl.h: Adjust.
22852
22853 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22854
22855         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22856         * rtl.h: Adjust.
22857
22858 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22859
22860         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22861         * cfgrtl.c (can_delete_label_p): Adjust.
22862         * rtl.h: likewise.
22863
22864 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22865
22866         * reorg.c (stop_search_p): Change argument to rtx_insn *.
22867
22868 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22869
22870         * except.c (make_reg_eh_region_note): Change argument to
22871         rtx_insn *.
22872         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22873         * except.h: Adjust.
22874
22875 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22876
22877         * mode-switching.c (commit_mode_sets): Change type of local
22878         variable from rtx to rtx_insn *.
22879
22880 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
22881
22882         * doc/install.texi (--enable-languages): Add missing jit and lto info.
22883         Add ^ to grep command.
22884         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22885         arg to last gimple_simplify declaration.  Add missing gimple_build
22886         declaration for built-in function case with four tree args.
22887
22888 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22889             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22890
22891         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22892         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22893         (GNU_USER_DYNAMIC_LINKERN32): Update.
22894
22895 2015-05-08  Richard Biener  <rguenther@suse.de>
22896
22897         PR tree-optimization/66036
22898         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22899         Handle strided group loads.
22900         (vect_verify_datarefs_alignment): Likewise.
22901         (vect_enhance_data_refs_alignment): Likewise.
22902         (vect_analyze_group_access): Likewise.
22903         (vect_analyze_data_ref_access): Likewise.
22904         (vect_analyze_data_ref_accesses): Likewise.
22905         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22906         (vectorizable_load): Likewise.
22907
22908 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
22909
22910         * config/rs6000/rs6000.md: Require operand inequality in one
22911         of the peepholes.
22912
22913 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
22914             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22915
22916         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22917         from (set ...).
22918         * config/rx/rx.md (movdi, movdf): Likewise.
22919         Likewise for define_peephole2s.
22920
22921 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22922
22923         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22924         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22925         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22926         vtst_u64): Rewrite using gcc vector extensions.
22927
22928 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22929
22930         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22931         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22932
22933 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22934
22935         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
22936
22937 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22938
22939         * config/glibc-stdint.h (OPTION_MUSL): Define.
22940         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
22941         Change the definition based on OPTION_MUSL for 64 bit targets.
22942         * config/linux.h (OPTION_MUSL): Redefine.
22943         * config/alpha/linux.h (OPTION_MUSL): Redefine.
22944         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
22945         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
22946
22947 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22948             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22949
22950         * config.gcc (LIBC_MUSL): New tm_defines macro.
22951         * config/linux.h (OPTION_MUSL): Define.
22952         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
22953         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
22954         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22955         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22956         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22957         * config/linux.opt (mmusl): New option.
22958         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
22959         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22960         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22961         * configure: Regenerate.
22962
22963 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
22964             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22965
22966         PR target/48904
22967         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
22968         * config/i386/knetbsd-gnu64.h: New file.
22969
22970 2015-05-08  Marek Polacek  <polacek@redhat.com>
22971
22972         PR c/64918
22973         * doc/invoke.texi: Document -Woverride-init-side-effects.
22974
22975 2015-05-07  Marek Polacek  <polacek@redhat.com>
22976
22977         PR c/65179
22978         * doc/invoke.texi: Document -Wshift-negative-value.
22979
22980 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
22981
22982         * gcov-tool.c (do_merge): Refactore to remove int ret.
22983         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
22984         !type == FUNC to type != FUNC.
22985         * reload.h (struct target_reload): Changee to type of
22986         x_spill_indirect_levels from bool to unsigned char.
22987
22988 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
22989
22990         * rtl.h (always_void_p): New function.
22991         * gengenrtl.c (always_void_p): Likewise.
22992         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
22993         with code foo are always VOIDmode.
22994         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
22995         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
22996         compare-elim.c, config/aarch64/aarch64.c,
22997         config/aarch64/aarch64.md, config/alpha/alpha.c,
22998         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
22999         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23000         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23001         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23002         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23003         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23004         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23005         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23006         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23007         config/ia64/vect.md, config/iq2000/iq2000.c,
23008         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23009         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23010         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23011         config/mep/mep.c, config/microblaze/microblaze.c,
23012         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23013         config/mn10300/mn10300.c, config/msp430/msp430.c,
23014         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23015         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23016         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23017         config/rs6000/altivec.md, config/rs6000/rs6000.c,
23018         config/rs6000/rs6000.md, config/rs6000/vector.md,
23019         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23020         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23021         config/sh/sh.md, config/sh/sh_treg_combine.cc,
23022         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23023         config/spu/spu.md, config/stormy16/stormy16.c,
23024         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23025         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23026         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23027         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23028         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23029         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23030         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23031         var-tracking.c: Update calls accordingly.
23032
23033 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
23034
23035         PR middle-end/192
23036         PR middle-end/54303
23037         * varasm.c (function_mergeable_rodata_prefix): New function.
23038         (mergeable_string_section): Use it.
23039         (mergeable_constant_section): Use it.
23040
23041 2015-05-07  Jeff Law  <law@redhat.com>
23042
23043         PR target/39726
23044         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23045         simplifier to narrow arithmetic.
23046         * generic-match-head.c: (types_match, single_use): New functions.
23047         * gimple-match-head.c: (types_match, single_use): New functions.
23048
23049 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23050
23051         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23052         rtx type.
23053
23054 2015-05-07  Richard Biener  <rguenther@suse.de>
23055
23056         PR tree-optimization/66002
23057         * passes.def: Schedule another pass_merge_phi after ifcombine, right
23058         before phiopt.
23059
23060 2015-05-07  Marek Polacek  <polacek@redhat.com>
23061             Martin Uecker  <uecker@eecs.berkeley.edu>
23062
23063         * doc/invoke.texi: Document -fsanitize=bounds-strict.
23064         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23065         into SANITIZE_NONDEFAULT.
23066         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23067
23068 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
23069
23070         PR target/66015
23071         * config/alpha/alpha.c (alpha_override_options_after_change): New.
23072         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23073         (alpha_override_options): Move align_loops, align_jumps and
23074         align_functions handling into alpha_override_options_after_change.
23075
23076 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
23077             Chris Jones  <chrisj@nvidia.com>
23078             Joshua Conner  <jconner@nvidia.com>
23079
23080         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23081         linking of crtfastmath.o.
23082         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23083
23084 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
23085
23086         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23087         (cstore<mode>4_unsigned_imm): New expander.
23088         (cstore<mode>4): Remove empty constraint strings.  Use the new
23089         expanders.
23090
23091 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
23092
23093         PR target/64208
23094         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23095         alternatives.
23096
23097 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23098
23099         * config/aarch64/geniterators.sh: Use standard BRE in sed.
23100
23101 2015-05-06  Alan Modra  <amodra@gmail.com>
23102
23103         PR target/66033
23104         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23105         (UNSPEC_NOP): Define.
23106         (reload_vsx_from_gpr<mode>): Add missing DONE.
23107         (reload_gpr_from_vsx<mode>): Likewise.
23108         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23109         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23110
23111 2015-05-06  Christian Bruel  <christian.bruel@st.com>
23112
23113         PR target/66015
23114         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23115         align_jumps, align_functions into aarch64_override_options_after_change.
23116
23117 2015-05-06  Richard Biener  <rguenther@suse.de>
23118
23119         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23120         vect_transform_slp_perm_load to check if we support a permutation
23121         for basic-block vectorization.
23122
23123 2015-05-06  Nick Clifton  <nickc@redhat.com>
23124
23125         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23126         used, even if it is not being used as a frame pointer.
23127
23128 2015-05-05  Jason Merrill  <jason@redhat.com>
23129
23130         * dwarf2out.c (gen_member_die): Don't emit anything for an
23131         anonymous class constructor.
23132
23133 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
23134
23135         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23136         that it reflects the block structure.
23137         (afdo_propagate_edge): Likewise.
23138         (afdo_calculate_branch_prob): Likewise.
23139         (afdo_annotate_cfg): Likewise.
23140         * cfgcleanup.c (equal_different_set_p): Likewise.
23141         (try_crossjump_to_edge): Likewise.
23142         * cgraph.c (cgraph_node::verify_node): Likewise.
23143         * cgraphunit.c (expand_all_functions): Likewise.
23144         * config/i386/i386.c (ix86_expand_copysign): Likewise.
23145         (exact_dependency_1): Likewise.
23146         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23147         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23148         * gensupport.c (process_define_subst): Likewise.
23149         * lto-wrapper.c (merge_and_complain): Likewise.
23150         * tree-if-conv.c (if_convertible_bb_p): Likewise.
23151         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23152         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23153         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23154         * tree-vect-loop.c (vectorizable_reduction): Likewise.
23155         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23156         * tree-vect-stmts.c (vectorizable_shift): Likewise.
23157         * tree-vrp.c (vrp_finalize): Likewise.
23158         * tree.c (variably_modified_type_p): Likewise.
23159
23160 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
23161
23162         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23163         on darwin12 and later.
23164         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23165         file to pass -rdynamic on darwin12 and later.
23166         * config/darwin.opt (rdynamic): Add.
23167
23168 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23169
23170         * doc/extend.texi (C Extensions): Update menu for moved Variable
23171         Attributes and Type Attributes sections.
23172
23173 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23174
23175         PR target/65990
23176         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23177         if rep_8byte stringop strategy was specified for 32-bit target.
23178
23179 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
23180
23181         PR target/65915
23182         * config/i386/i386.md (vector convert to float spltiter): Check for
23183         xmm16+, when splitting scalar float conversion.
23184         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23185
23186 2015-05-05  Nick Clifton  <nickc@redhat.com>
23187
23188         * config/msp430/msp430-opts.h (enum msp430_regions): New.
23189         * config/msp430/msp430.c (msp430_override_options): Complain if
23190         -mcode-region or -mdata-region is used on a non MSP430X.
23191         (msp430_section_attr): New function.  Checks lower, upper and
23192         either attributes.
23193         (msp430_attribute_table): Add lower, upper and either.
23194         (gen_prefix): New function.  Generates a prefix for a section
23195         name.
23196         (msp430_select_section): New function - handles the choice of
23197         section for an object.  Takes into account memory region
23198         attributes and options.
23199         (msp430_function_section): Use gen_prefix.
23200         (TARGET_SECTION_TYPE_FLAGS): Define.
23201         (msp430_section_type_flags): New function.
23202         (TARGET_ASM_UNIQUE_SECTION): Define.
23203         (msp430_unique_section): New function.
23204         (msp430_output_aligned_decl_common): New function.
23205         (msp430_do_not_relax_short_jumps): New function.
23206         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23207         Define.
23208         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23209         * config/msp430/msp430-protos.h
23210         (msp430_do_not_relax_short_jumps): New prototype.
23211         (msp430_output_aligned_decl_common): New prototype.
23212         * config/msp430/msp430.md (length): New attribute.
23213         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23214         then use a long code sequence for short jumps.
23215         * config/msp430/msp430.opt (mcode-region): New.
23216         (mdata-region): New.
23217         * doc/invoke.texi: Document new options.
23218         * doc/extend.texi: Document new attributes.
23219
23220 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23221
23222         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23223         (tune_params): Add field branch_costs.
23224         (aarch64_branch_cost): Declare.
23225         * gcc/config/aarch64.c (generic_branch_cost): New.
23226         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23227         (cortexa53_tunings): Likewise.
23228         (cortexa57_tunings): Likewise.
23229         (thunderx_tunings): Likewise.
23230         (xgene1_tunings): Likewise.
23231         (aarch64_branch_cost): Define.
23232         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23233
23234 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23235
23236         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23237         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
23238         * config/i386/i386.md: Ditto.
23239         * config/i386/winnt.c: Ditto.
23240
23241 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23242
23243         * doc/extend.texi (__atomic Builtins): Move implementation details
23244         to the end of the description, rewrite opening paragraphs, state
23245         difference with __sync builtins, state C11/C++11 assumptions,
23246         weaken itemized descriptions, add explanation of memory model
23247         behaviour, expand description of compare-exchange, simplify text.
23248
23249 2015-05-05  Renlin Li  <renlin.li@arm.com>
23250
23251         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
23252
23253 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
23254
23255         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
23256         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23257         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
23258         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23259         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23260         * configure: Regenerate.
23261         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23262         * doc/install.texi (aarch64*-*-*): Document new
23263         --enable-fix-cortex-a53-843419 option.
23264         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23265         and -mno-fix-cortex-a53-843419 options.
23266
23267 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23268
23269         PR target/65871
23270         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23271
23272 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
23273
23274         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23275         fix overactive TYPE_MIN_VALUE check and add FIXME for type
23276         compatibility problems.
23277
23278 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23279
23280         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23281         constraints.
23282         (cbranchsi4_reg): New.
23283         * config/microblaze/microblaze.c
23284         (microblaze_expand_conditional_branch_reg): New.
23285         * config/microblaze/microblaze-protos.h
23286         (microblaze_expand_conditional_branch_reg): New prototype.
23287
23288 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23289
23290         * config/microblaze/microblaze.md (peephole2): New.
23291
23292 2015-05-04  Jeff Law  <law@redhat.com>
23293
23294         Revert:
23295         2015-05-04  Jeff Law  <law@redhat.com>
23296
23297         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23298         simplifier to narrow arithmetic.
23299         * generic-match-head.c: (types_match, single_use): New functions.
23300         * gimple-match-head.c: (types_match, single_use): New functions.
23301
23302 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
23303
23304         PR target/65987
23305         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23306         (split_branches): Likewise.
23307
23308 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
23309
23310         * common.opt (fdelete-null-pointer-checks): Init to -1.
23311         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23312         override flag_delete_null_pointer_checks default.
23313         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23314         behavior re address zero.  Better document target-specific behavior.
23315         (-fisolate-errneous-paths-dereference): Mention relationship to
23316         -fdelete-null-pointer-checks.
23317
23318 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23319
23320         PR tree-optimization/65984
23321         * ubsan.c: Include tree-cfg.h.
23322         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23323         stmt_could_throw_p test, rename can_throw variable to ends_bb.
23324
23325 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23326
23327         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23328         to CONST_DOUBLE_P predicate.
23329         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23330         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23331         allow only operands that satisfy standard_sse_constant_p predicate.
23332         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23333         to CONST_DOUBLE_P predicate.
23334
23335 2015-05-04  Jeff Law  <law@redhat.com>
23336
23337         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23338         simplifier to narrow arithmetic.
23339         * generic-match-head.c: (types_match, single_use): New functions.
23340         * gimple-match-head.c: (types_match, single_use): New functions.
23341
23342 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
23343
23344         * config/arm/arm.c: Restore bootstrap.
23345
23346 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23347
23348         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23349         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23350         as CONST_WIDE_INT, not CONST_DOUBLE.
23351         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23352         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23353         (ix86_find_base_term): Do not check for CONST_DOUBLE.
23354         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23355         (ix86_build_signbit_mask): Rewrite using wide ints.
23356         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23357         (ix86_rtx_costs): Handle CONST_WIDE_INT.
23358         (find_constant): Ditto.
23359         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23360         using gen_int_mode.
23361         * config/i386/predicates.md (x86_64_immediate_operand)
23362         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23363         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23364         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23365         (const0_operand): Also match const_wide_int.
23366         (constm1_operand): Ditto.
23367         (const1_operand): Ditto.
23368
23369 2015-05-04  Richard Biener  <rguenther@suse.de>
23370
23371         PR tree-optimization/65965
23372         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23373         store groups at gaps.
23374
23375 2015-05-04  Richard Biener  <rguenther@suse.de>
23376
23377         PR tree-optimization/65935
23378         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23379         then make sure to apply that swapping to the IL.
23380
23381 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23382
23383         * Makefile.in (PATCHLEVEL_c): New variable.
23384         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23385         expand the same way as if DEVPHASE_c was non-empty.
23386
23387 2015-05-04  Kai Tietz  <ktietz@redhat.com>
23388
23389         PR target/65559
23390         * lto-wrapper.c (run_gcc): Open filename
23391         in binary-mode.
23392
23393 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
23394
23395         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
23396         sections up in file, to immediately after the Function Attributes
23397         section.
23398
23399 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
23400
23401         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23402
23403 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23404
23405         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23406         (insert_partition_copy_on_edge): Adjust.
23407         (insert_rtx_to_part_on_edge): Likewise.
23408         (insert_part_to_rtx_on_edge): Likewise.
23409
23410 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23411
23412         * function.c (set_return_jump_label): Change type of argument to
23413         rtx_insn *.
23414         * function.h (set_return_jump_label): Adjust.
23415
23416 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23417
23418         * reload.h (struct reg_equivs_t): Change type of init to
23419         rtx_insn *.
23420         * ira.c (fix_reg_equiv_init): Adjust.
23421         * reload1.c (eliminate_regs_1): Likewise.
23422         (init_eliminable_invariants): Likewise.
23423
23424 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23425
23426         * cselib.c (fp_setter_insn): Take a rtx_insn *.
23427         * cselib.h (fp_setter_insn): Adjust.
23428
23429 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23430
23431         * recog.c (struct validate_replace_src_data): Change type of
23432         insn field to rtx_insn *.
23433         (validate_replace_src_group): Change type of argument to rtx_insn *.
23434         * recog.h (validate_replace_src_group): Adjust.
23435
23436 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23437
23438         * haifa-sched.c: Change the type of some variables to rtx_insn *.
23439         * sched-deps.c: Likewise.
23440         * sched-int.h: Likewise.
23441         * sched-rgn.c: Likewise.
23442         * sel-sched.c: Likewise.
23443
23444 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23445
23446         to rtx_insn *.
23447         * config/i386/i386.c: Change the type of some arguments to
23448         rtx_insn *.
23449         * config/arm/arm.c: Likewise.
23450
23451 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23452
23453         * lra-constraints.c: Change type of some arguments to rtx_insn *.
23454
23455 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23456
23457         * regcprop.c (kill_autoinc_value): Change type of argument to
23458         rtx_insn *.
23459
23460 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23461
23462         * genrecog.c (print_subroutine): Adjust.
23463         * recog.c (get_bool_attr_mask_uncached): Likewise.
23464         * recog.h (struct recog_data_d): Change the type of insn to
23465         rtx_insn *.
23466
23467 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23468
23469         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23470
23471 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23472
23473         * df-problems.c (df_set_note): Change type of argument to
23474         rtx_insn *.
23475
23476 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23477
23478         * builtins.c (expand_builtin_trap): Change type of local
23479         variable to rtx_insn *.
23480         (add_sched_insns_for_speculation): Likewise.
23481         (ix86_emit_save_regs): Likewise.
23482         (get_scratch_register_on_entry): Likewise.
23483         (ix86_emit_restore_reg_using_pop): Likewise.
23484         (ix86_emit_leave): Likewise.
23485         (ix86_emit_restore_regs_using_mov): Likewise.
23486         (ix86_expand_epilogue): Likewise.
23487         Likewise.
23488         (rl78_alloc_physical_registers_umul): Likewise.
23489         * cselib.c (discard_useless_locs): Likewise.
23490         (cselib_invalidate_regno): Likewise.
23491         (cselib_invalidate_mem): Likewise.
23492         * function.c (expand_function_start): Likewise.
23493         (emit_use_return_register_into_block): Likewise.
23494         * gcse.c: Likewise.
23495         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23496         * ifcvt.c (noce_get_alt_condition): Likewise.
23497         * loop-doloop.c (doloop_condition_get): Likewise.
23498         * lra-constraints.c (inherit_in_ebb): Likewise.
23499         * modulo-sched.c (sms_schedule_by_order): Likewise.
23500         * recog.c (next_insn_tests_no_inequality): Likewise.
23501         * reorg.c (emit_delay_sequence): Likewise.
23502         (update_reg_dead_notes): Likewise.
23503         (fix_reg_dead_note): Likewise.
23504         (fill_slots_from_thread): Likewise.
23505         (delete_computation): Likewise.
23506
23507 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
23508
23509         * doc/extend.texi (Variable Attributes): Add menu and proper
23510         @nodes to subsections.  Move Microsoft Windows attributes to
23511         their own subsection.
23512         (Type Attributes): Reorganize introduction to remove duplicate
23513         list of attributes.  Add menu and proper @nodes to subsections.
23514         Alphabetize the main table of common attributes.
23515
23516 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
23517
23518         * match.pd: New simplification patterns.
23519         (x + (x & 1))  -> ((x + 1) & ~1)
23520         (x & ~(x & y)) -> ((x & ~y))
23521         (x | ~(x | y)) -> ((x | ~y))
23522
23523 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23524
23525         * target.def (attribute_table): Mention that struct attribute_spec
23526         is defined in tree-core.h rather than tree.h
23527         * doc/tm.texi: Regenerate.
23528
23529 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
23530
23531         * genrecog.c (test): Rename to rtx_test.  Update rest of file
23532         accordingly.
23533
23534 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23535
23536         PR translation/65959
23537         * params.h (DEFPARAM): Rename msgid to nocmsgid.
23538
23539 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23540
23541         * gcc/config/aarch64/aarch64-protos.h (tune_params):
23542         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23543         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23544         Return value depending on target.
23545         (generic_tunings): Initialize new target settings.
23546         (cortexa53_tunings): Likewise.
23547         (cortexa57_tunings): Likewise.
23548         (thunderx_tunings): Likewise.
23549         (xgene1_tunings): Likewise.
23550
23551 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23552
23553         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23554         Make Cortex-A53 shift costs more accurate.
23555
23556 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23557
23558         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23559         UNSIGNED_FLOAT.
23560
23561 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23562
23563         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23564         Calculate cost of op0 and op1 in PLUS and MINUS cases.
23565
23566 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23567
23568         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23569         Add cost of op0 in the compare-with-fpzero case.
23570
23571 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
23572
23573         * builtins.c (fold_builtin_1): Remove spurious second
23574         semicolon.
23575         * cgraph.h (symtab_node::get_availability): Likewise.
23576         * opts.c (common_handle_option): Remove spurious second semicolon.
23577         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23578         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23579
23580 2015-04-30  Caroline Tice  <cmtice@google.com>
23581
23582         PR gcov-profile/65929
23583         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23584         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23585         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23586         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23587         * doc/tm.texi: Regenerate.
23588         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
23589         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23590         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
23591         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23592
23593 2015-04-30  Marek Polacek  <polacek@redhat.com>
23594
23595         * varasm.c (handle_cache_entry): Fix logic.
23596
23597 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23598
23599         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23600         (*extrsi5_insn_uxtw_alt): Likewise.
23601         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23602         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23603         operations.
23604
23605 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23606
23607         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23608         fabd in ABS case.
23609
23610 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23611
23612         * config/aarch64/aarch64.md
23613         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23614         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23615         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23616         appropriately.  Handle alternative EON form.
23617
23618 2015-04-30  Renlin Li  <renlin.li@arm.com>
23619
23620         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23621         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23622
23623 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23624
23625         PR ipa/65873
23626         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23627         -fstrict-aliasing boundaries.
23628
23629 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23630
23631         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23632         and [SU]MNEGL patterns.
23633
23634 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23635
23636         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23637         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23638         combined arithmetic-shift ops.  Properly handle all shift and extend
23639         operations that can occur in combination with PLUS/MINUS.
23640         Rename maybe_fma to compound_p.
23641         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23642         arithmetic and shift operations.
23643
23644 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23645
23646         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23647         rather than arith_shift cost when costing ADD/MINUS of an
23648         extended value.
23649
23650 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23651
23652         PR lto/65948
23653         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23654         to itself.
23655
23656 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
23657
23658         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23659         are for the same position.
23660
23661 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
23662
23663         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
23664         vectorize_loops.
23665         (vectorize_loops): Use it.
23666
23667 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23668
23669         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23670         for aggregate types.
23671         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23672         type to be non_ODR.
23673         * tree.c (need_assembler_name_p): Compute mangled name for
23674         non-fundamental types and integer types.
23675
23676 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
23677
23678         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23679         manual swaps.
23680         * expr.c (expand_expr_real_2): Likewise.
23681
23682 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23683
23684         * tree.c (build_common_builtin_nodes): Do not build
23685         __builtin_alloca_with_align as equivalent of library alloca.
23686
23687 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23688
23689         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23690         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23691         bugus variants.
23692         * tree.c: Include print-tree.h and ipa-utils.h
23693         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23694         (free_lang_data_in_cgraph): Call verify_type.
23695         (verify_type_variant): New function.
23696         (verify_type): New function.
23697         * tree.h (verify_type): Declare.
23698
23699 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
23700
23701         * config/mips/mips-cpus.def: (mips4): Change default processor
23702         from PROCESSOR_R8000 to PROCESSOR_R10000.
23703
23704 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23705
23706         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23707         la/jalr instead of jal.
23708
23709 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
23710
23711         PR target/65871
23712         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23713         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23714         (setcc+movzbl peephole2): Check also clobbered reg.
23715         (setcc+andl peephole2): Ditto.
23716
23717 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23718
23719         PR libgomp/65099
23720         * config/nvptx/mkoffload.c (target_ilp32): New variable.
23721         (main): Set it depending on "-foffload-abi=[...]".
23722         (compile_native, main): Use it to pass "-m32" or "-m64" to the
23723         compiler.
23724
23725 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23726
23727         PR target/65770
23728         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23729         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23730         Flip lane index back at assembly time for bigendian.
23731
23732 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23733
23734         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23735         * gimplify.c (gimplify_omp_workshare): Use it.
23736
23737 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23738
23739         * Makefile.in (build/genrecog.o): Depend on inchash.h.
23740         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23741         build/inchash.o
23742         * genrecog.c: Rewrite most of the code except for the third page.
23743
23744 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23745
23746         * inchash.h, inchash.c: Include bconfig.h for build objects.
23747         * Makefile.in (build/inchash.o): New rule.
23748
23749 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
23750
23751         PR target/65924
23752         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23753         number in type attribute expression.
23754
23755 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23756
23757         * loop-iv.c (canon_condition): Generalize to all types of integer
23758         constant.
23759
23760 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
23761
23762         * gimple-walk.c: Prune duplicate or unneeded includes.
23763         (walk_gimple_asm): Only call parse_input_constraint or
23764         parse_output_constraint if their findings are used.
23765         Honour parse_input_constraint and parse_output_constraint
23766         result.
23767
23768 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23769
23770         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23771
23772 2015-04-29  Tom de Vries  <tom@codesourcery.com>
23773
23774         PR tree-optimization/65893
23775         * passes.def (pass_all_optimizations): Move pass_stdarg to after
23776         pass_dce.
23777
23778 2015-04-29  Richard Biener  <rguenther@suse.de>
23779
23780         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23781         compute GROUP_SIZE for basic-block SLP.
23782         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23783         take into account gaps.
23784         (vect_get_mask_element): Properly reject references to previous
23785         vectors.
23786         (vect_transform_slp_perm_load): Likewise.
23787
23788 2015-04-29  Christian Bruel  <christian.bruel@st.com>
23789
23790         PR target/64835
23791         * config/i386/i386.c (ix86_default_align): New function.
23792         (ix86_override_options_after_change): Call ix86_default_align.
23793         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23794         (ix86_override_options_after_change): New function.
23795
23796 2015-04-28  Jeff Law  <law@redhat.com>
23797
23798         * tree-ssa-dom.c (record_equality); Fix comment typos.
23799
23800 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23801
23802         PR tree-optimization/65887
23803         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23804
23805 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
23806
23807         * doc/extend.texi (Declaring Attributes of Functions): Split into
23808         subsections by target.  Alphabetize the table of common attributes.
23809         Rewrite some of the introductory text to reflect the new structure.
23810         Update some cross-references to point to the new subsections.
23811         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
23812         duplicate copies in the discussion of function, label, and type
23813         attributes.
23814
23815 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
23816
23817         PR bootstrap/65910
23818         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23819
23820 2015-04-28  Jason Merrill  <jason@redhat.com>
23821
23822         PR c++/65734
23823         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23824         (finalize_type_size): Respect TYPE_USER_ALIGN.
23825         (layout_type) [ARRAY_TYPE]: Likewise.
23826
23827 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
23828
23829         * config/arm/arm.md (*arm_movt): Fix type attribute.
23830         (*cmpsi_shiftsi): Likewise.
23831         (*cmpsi_shiftsi_swp): Likewise.
23832         (*movsicc_insn): Likewise.
23833         (*cond_move): Likewise.
23834         (*if_plus_move): Likewise.
23835         (*if_move_plus): Likewise.
23836         (*if_arith_move): Likewise.
23837         (*if_move_arith): Likewise.
23838         (*if_shift_move): Likewise.
23839         (*if_move_shift): Likewise.
23840         (*arm_movtas_ze): Likewise.
23841         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23842         redundancy and type attribute.
23843         (*thumb2_movsi_insn): Fix type attribute.
23844         (*thumb2_addsi_short): Likewise.
23845         (thumb2_addsi3_compare0): Likewise.
23846         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23847         attributes accordingly.
23848
23849 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
23850
23851         PR other/65911
23852         * function.c (pad_to_arg_alignment): Add parentheses.
23853
23854 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
23855
23856         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23857         libgcc/config/frv/elf-lib.h.
23858
23859 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23860
23861         * tree-call-cdce.c: Fix example in header comment.
23862
23863 2015-04-28  Richard Biener  <rguenther@suse.de>
23864
23865         PR tree-optimization/62283
23866         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23867         fails fatally and we are vectorizing a basic-block simply
23868         cause the child to be constructed piecewise.
23869         (vect_analyze_slp_cost_1): Adjust.
23870         (vect_detect_hybrid_slp_stmts): Likewise.
23871         (vect_bb_slp_scalar_cost): Likewise.
23872         (vect_get_constant_vectors): For piecewise constructed
23873         constants place them after the last def.
23874         (vect_get_slp_defs): Adjust.
23875         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23876         externals for basic-block vectorization.
23877
23878 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23879
23880         PR target/63503
23881         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23882         aarch64-*-*.
23883         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23884         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23885         (AARCH64_TUNE_FMA_STEERING): Likewise.
23886         * config/aarch64/aarch64-cores.def: Set
23887         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23888         FMUL/FMADD instructions.
23889         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23890         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
23891         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23892         * config/aarch64/cortex-a57-fma-steering.h: New file.
23893         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23894
23895 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
23896
23897         * gensupport.c (std_preds): Add missing codes to address_operand entry.
23898
23899 2015-04-28  Richard Biener  <rguenther@suse.de>
23900
23901         PR tree-optimization/65851
23902         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23903         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
23904         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
23905         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23906         (ccp_visit_phi_node): Adjust.
23907         (evaluate_stmt): For simplifications to SSA names return its
23908         lattice value if that isn't VARYING.  Return immediately when
23909         simplified to a constant.
23910         (visit_assignment): Adjust.
23911         (ccp_visit_stmt): Likewise.
23912
23913 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23914
23915         PR tree-optimization/65818
23916         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23917         evaluated.
23918
23919 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23920
23921         * calls.c (save_fixed_argument_area): Don't check
23922         ARGS_GROW_DOWNWARD with the preprocessor.
23923         (restore_fixed_argument_area): Likewise.
23924         (mem_overlaps_already_clobbered_arg_p): Likewise.
23925         (check_sibcall_argument_overlap): Likewise.
23926         (expand_call): Likewise.
23927         (emit_library_call_value_1): Likewise.
23928         (store_one_arg): Likewise.
23929         * function.c (assign_parms): Likewise.
23930         (locate_and_pad_parm): Likewise.
23931         (pad_to_arg_alignment): Likewise.
23932         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23933
23934 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23935
23936         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
23937         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
23938         * calls.c (save_fixed_argument_area): Don't chekc if
23939         ARGS_GROW_DOWNWARD is defined.
23940         (restore_fixed_argument_area): Likewise.
23941         (mem_overlaps_already_clobbered_arg_p): Likewise.
23942         (check_sibcall_argument_overlap): Likewise.
23943         (expand_call): Likewise.
23944         (emit_library_call_value_1): Likewise.
23945         (store_one_arg): Likewise.
23946         * function.c (assign_parms): Likewise.
23947         (locate_and_pad_parm): Likewise.
23948         (pad_to_arg_alignment): Likewise.
23949         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23950
23951 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23952
23953         * defaults.h (gen_epilogue): New function.
23954         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
23955         defined.
23956         * cfgrtl.c (cfg_layout_finalize): Likewise.
23957         * df-scan.c: Likewise.
23958         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23959         (reposition_prologue_and_epilogue_notes): Likewise.
23960         * reorg.c (find_end_label): Likewise.
23961         * toplev.c: Likewise.
23962
23963 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23964
23965         * bb-reorder.c (HAVE_return): Don't check if its undefined.
23966         * defaults.h (gen_simple_return): New function.
23967         (gen_simple_return): Likewise.
23968         (HAVE_return): Add default definition to false.
23969         (HAVE_simple_return): Likewise.
23970         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
23971         HAVE_return and HAVE_simple_return are defined.
23972         * function.c (gen_return_pattern): Likewise.
23973         (convert_jumps_to_returns): Likewise.
23974         (thread_prologue_and_epilogue_insns): Likewise.
23975         * reorg.c (find_end_label): Likewise.
23976         (dbr_schedule): Likewise.
23977         * shrink-wrap.c: Likewise.
23978         * shrink-wrap.h: Likewise.
23979
23980 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23981
23982         * defaults.h (EPILOGUE_USES): Add default definition of false.
23983         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
23984         * resource.c (init_resource_info): Likewise.
23985
23986 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23987
23988         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
23989         to false.
23990         * dwarf2out.c (field_byte_offset): REmove check if
23991         PCC_BITFIELD_TYPE_MATTERS is defined.
23992         * stor-layout.c (layout_decl): Likewise.
23993         (update_alignment_for_field): Likewise.
23994         (place_field): Likewise.
23995
23996 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23997
23998         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
23999         true.
24000         * regrename.c (check_new_reg_p): Remove check if
24001         HARD_REGNO_RENAME_OK is defined.
24002         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24003
24004 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24005
24006         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24007         * cse.c (fold_rtx): Likewise.
24008         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24009         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24010         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24011         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24012         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24013         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24014         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24015         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24016         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24017         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24018         * Likewise.
24019         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24020         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24021         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24022         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24023         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24024         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24025         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24026         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24027         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24028         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24029         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24030         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24031         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24032         * doc/tm.texi: Regenerate.
24033         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24034         either true or false.
24035
24036 2015-04-27  Jeff Law  <law@redhat.com>
24037
24038         PR tree-optimization/65217
24039         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24040         of them has a single use, make sure it is the LHS of the implied
24041         copy.
24042
24043 2015-04-28  Alan Modra  <amodra@gmail.com>
24044
24045         PR target/65810
24046         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24047         (offsettable_ok_by_alignment): Use minimum of decl and toc
24048         pointer alignment.  Replace dead code with assertion.
24049         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
24050         case if size exceeds toc pointer alignment.
24051         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24052         (rs6000_emit_move): Likewise.
24053         * configure.ac: Add linker toc pointer alignment check.
24054         * configure: Regenerate.
24055         * config.in: Regenerate.
24056
24057 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
24058
24059         * config.gcc: Add h8300-*-linux.
24060         * config/h8300/linux.h: New.
24061         * config/h8300/t-linux: New.
24062         * config/h8300/h8300.c (h8300_option_override): Normal mode
24063         is not supported for h8300-*-linux.
24064         (h8300_file_start): Target priority change.
24065         (get_shift_alg): Likewise.
24066         (h8300_shift_need_scratch_p): Likewise.
24067         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24068         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24069
24070 2015-04-27  Caroline Tice  <cmtice@google.com>
24071
24072         * final.c (final_scan_insn):  Output cold_function_name as function
24073         type.
24074         * varasm.c (cold_function_name):  Make global.
24075         (assemble_start_function):  Re-set cold_function_name.
24076         (assemble_end_function): Output cold partition size.
24077         * varasm.h (cold_function_name):  Declare global.
24078
24079 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
24080
24081         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24082         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24083         constraint.
24084         (*movxi_internal_avx512f): Ditto.
24085         (define_split): Check for xmm16+, when splitting scalar float_extend.
24086         (*extendsfdf2_mixed): Use "v" constraint.
24087         (define_split): Check for xmm16+, when splitting scalar float_truncate.
24088         (*truncdfsf_fast_sse): Use "v" constraint.
24089         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24090         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24091         (define_peephole2): Check for xmm16+, when converting scalar
24092         float_truncate.
24093         (define_peephole2): Check for xmm16+, when converting scalar
24094         float_extend.
24095         (*fop_<mode>_comm_mixed): Use "v" constraint.
24096         (*fop_<mode>_comm_sse): Ditto.
24097         (*fop_<mode>_1_mixed): Ditto.
24098         (*sqrt<mode>2_sse): Ditto.
24099         (*ieee_s<ieee_maxmin><mode>3): Ditto.
24100
24101 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24102
24103         * combine.c (simplify_if_then_else): Use std::swap instead
24104         of manually swapping.
24105         (known_cond): Likewise.
24106         (simplify_comparison): Likewise.
24107
24108 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
24109
24110         PR target/64579
24111         * config/rs6000/htm.md: Remove all define_expands.
24112         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24113         UNSPECV_HTM_TABORTWCI): Remove.
24114         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24115         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24116         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24117         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24118         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24119         tabortwci_internal): Remove define_insns.
24120         (tabort<wd>c, tabort<wd>ci): New define_insns.
24121         (tabort): Use gpc_reg_operand.
24122         (tcheck): Remove operand.
24123         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24124         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24125         expected value.
24126         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24127         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
24128         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24129         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24130         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24131         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24132         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24133         (tcheck): Remove builtin argument.
24134         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24135         not TARGET_64BIT.
24136         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
24137         tabortdc and tabortdci builtins when not in 64-bit mode.
24138         Modify code to handle the loss of the HTM define_expands.
24139         Emit code to copy the CR register to TARGET.
24140         (htm_init_builtins): Modify code to handle the loss of the HTM
24141         define_expands.
24142         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24143         (RS6000_BTC_64BIT): Likewise.
24144         (RS6000_BTC_CR): New macro.
24145         * doc/extend.texi: Update documentation for htm builtins.
24146
24147 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24148
24149         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24150         of manually swapping.
24151         (simplify_associative_operation): Likewise.
24152         (simplify_binary_operation): Likewise.
24153         (simplify_plus_minus): Likewise.
24154         (simplify_relational_operation): Likewise.
24155         (simplify_ternary_operation): Likewise.
24156
24157 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24158
24159         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24160         (xs_hi_nonmemory_operand): Remove error.
24161         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24162         general_operand rather than xs_hi_general_operand.
24163
24164 2015-04-27  Richard Biener  <rguenther@suse.de>
24165
24166         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24167         (record_equivalences_from_stmt): Valueize rhs.
24168         (record_equality): Canonicalize x and y order via
24169         tree_swap_operands_p.  Do not swap operands for same loop depth.
24170
24171 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
24172
24173         PR target/65296
24174         PR target/65895
24175         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24176         Add hint how to use own spec file.
24177
24178 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
24179
24180         PR tree-optimization/65875
24181         * tree-vrp.c (update_value_range): If in is_new case setting
24182         old_vr to VR_VARYING, also set new_vr to it.  Remove
24183         old_vr->type == VR_VARYING test.
24184         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24185         SSA_PROP_INTERESTING if update_value_range returned true,
24186         but new range is VR_VARYING.
24187
24188 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24189
24190         * combine.c (sign_extend_short_imm): New.
24191         (set_nonzero_bits_and_sign_copies): Use above new function for sign
24192         extension of src short immediate.
24193         (reg_nonzero_bits_for_combine): Likewise for tem.
24194
24195 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24196
24197         * stor-layout.c (self_referential_component_ref_p): New predicate.
24198         (copy_self_referential_tree_r): Use it.
24199         (self_referential_size): Punt for simple operations directly involving
24200         self-referential component references.
24201         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24202
24203 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24204
24205         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24206
24207 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24208
24209         * vec.h (vec): Make splice arguments const.  Update definitions
24210         accordingly.
24211
24212 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
24213
24214         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24215         alternatives.
24216
24217 2015-04-26  Tom de Vries  <tom@codesourcery.com>
24218
24219         PR tree-optimization/65826
24220         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24221
24222 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
24223
24224         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24225         (*madd3<mode>): Ditto.
24226         (*msub4<mode>): Ditto.
24227         (*msub3<mode>): Ditto.
24228         (*nmadd4<mode>): Ditto.
24229         (*nmadd3<mode>): Ditto.
24230         (*nmadd4<mode>_fastmath): Ditto.
24231         (*nmadd3<mode>_fastmath): Ditto.
24232         (*nmsub4<mode>): Ditto.
24233         (*nmsub3<mode>): Ditto.
24234         (*nmsub4<mode>_fastmath): Ditto.
24235         (*nmsub3<mode>_fastmath): Ditto.
24236
24237 2015-04-24  Jason Merrill  <jason@redhat.com>
24238
24239         PR c++/50800
24240         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
24241         down when building TYPE_CANONICAL.
24242         (build_pointer_type_for_mode): Likewise.
24243
24244 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
24245
24246         * genrecog.c (validate_pattern): Check matching constraint refers
24247         to a lower numbered operand.
24248
24249 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24250
24251         PR target/65849
24252         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
24253         save to independent variables use the Save attribute.  This will
24254         allow these options to be modified with the #pragma/attribute
24255         target support.
24256         (-mallow-movmisalign): Likewise.
24257         (-mallow-df-permute): Likewise.
24258         (-msched-groups): Likewise.
24259         (-malways-hint): Likewise.
24260         (-malign-branch-targets): Likewise.
24261         (-mvectorize-builtins): Likewise.
24262         (-msave-toc-indirect): Likewise.
24263
24264         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24265         can be set via the #pragma/attribute target support.
24266         (rs6000_opt_vars): Likewise.
24267         (rs6000_inner_target_options): If VSX was set, also set
24268         -mno-avoid-indexed-addresses.
24269
24270 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24271
24272         * config/arm/iterators.md (shiftable_ops): Rename to...
24273         (SHIFTABLE_OPS): ... This.  Update use in comments.
24274         (ior_xor): Rename to...
24275         (IOR_XOR): ... This.
24276         (vqh_ops): Rename to...
24277         (VQH_OPS): ... This.
24278         (vqhs_ops): Rename to...
24279         (VQHS_OPS): ... This.
24280         (rshifts): Rename to...
24281         (RSHIFTS): ... This.
24282         (returns): Rename to...
24283         (RETURNS): ... This.
24284         * config/arm/arm.md: Update uses of the above.
24285         * config/arm/neon.md: Likewise.
24286
24287 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24288
24289         * config.host (case ${host}): Add aarch64*-*-linux case.
24290         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24291         fields to all the cores.
24292         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24293         Add MCPU_MTUNE_NATIVE_SPECS.
24294         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24295         field to all extensions.
24296         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24297         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24298         Adjust definition of AARCH64_OPT_EXTENSION.
24299         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24300         (MCPU_MTUNE_NATIVE_SPECS): Define.
24301         * config/aarch64/driver-aarch64.c: New file.
24302         * config/aarch64/x-arch64: New file.
24303         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24304         -mtune and -march.
24305
24306 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24307             Wei Mi  <wmi@google.com>
24308
24309         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24310         * config/i386/i386.c (extract_base_offset_in_addr): New function.
24311         (ix86_operands_ok_for_move_multiple): Ditto.
24312         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24313         (movlpd/movhpd to movupd peephole2): Ditto.
24314
24315 2015-04-24  Marek Polacek  <polacek@redhat.com>
24316
24317         PR c/61534
24318         * input.h (from_macro_expansion_at): Define.
24319
24320         PR c/63357
24321         * doc/invoke.texi: Update description of -Wlogical-op.
24322
24323 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24324
24325         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24326         ternary operator in fprintf and harmonize spacing.
24327
24328 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24329
24330         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24331         Mark operand1 commutative.
24332
24333 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24334
24335         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24336         input operands in memory.
24337         (*vec_concatv2si_sse4_1): Ditto.
24338         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24339         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24340         register_operand.
24341         (vec_extract_hi_v32hi): Ditto.
24342         (vec_extract_hi_v64hi): Ditto.
24343         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24344
24345 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24346             Steven Bosscher <steven@gcc.gnu.org>
24347
24348         PR rtl-optimization/34503
24349         * cprop.c (cprop_reg_p): New.
24350         (hash_scan_set): Use above function to check if register can be
24351         propagated.
24352         (find_avail_set): Return up to two sets, one whose source is a
24353         register and one whose source is a constant.  Sets are returned in an
24354         array passed as parameter rather than as a return value.
24355         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
24356         sets returned by find_avail_set, starting with the one whose source is
24357         a constant. Use cprop_reg_p to check if register can be propagated.
24358         (do_local_cprop): Use cprop_reg_p to check if register can be
24359         propagated.
24360         (implicit_set_cond_p): Likewise.
24361
24362 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24363
24364         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24365         (sem_function::equals): IGNORED_NODES parameter is now unused;
24366         update call of equals_private.
24367         (sem_function::equals_private): Do not call equals_wpa; skip
24368         gimple body matching if there is no body.
24369         (sem_function::init): Add logic to hash tthunk info.
24370         (sem_function::parse): Also parse thunks.
24371         * ipa-icf.h (equals_private): Update declaration.
24372
24373 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24374
24375         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24376         asterisk from name so this can be generated directly.
24377         (*altivec_stvx_<mode>_internal): Likewise.
24378         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24379         that this is never called during or after reload/lra.
24380         (rs6000_frame_related): Remove split_reg
24381         argument and logic that references it.
24382         (emit_frame_save): Remove last parameter from call to
24383         rs6000_frame_related.
24384         (rs6000_emit_prologue): Remove last parameter from eight calls to
24385         rs6000_frame_related.  Force generation of stvx instruction for
24386         Altivec register saves.  Remove split_reg handling, which is no
24387         longer needed.
24388         (rs6000_emit_epilogue):  Force generation of lvx instruction for
24389         Altivec register restores.
24390
24391 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24392
24393         * config/rs6000/rs6000.opt (mcrypto): Change option description to
24394         match category changes in ISA 2.07B.
24395
24396 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24397
24398         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24399         iterators.
24400         (cmp_op, cmp_type): New code attributes.
24401         (NEON_VCMP, NEON_VACMP): New int iterators.
24402         (cmp_op_unsp): New int attribute.
24403         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24404         (neon_vceq<mode>): Delete.
24405         (neon_vc<cmp_op><mode>_insn): New pattern.
24406         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24407         (neon_vcgeu<mode>): Delete.
24408         (neon_vcle<mode>): Likewise.
24409         (neon_vclt<mode>: Likewise.
24410         (neon_vcage<mode>): Likewise.
24411         (neon_vcagt<mode>): Likewise.
24412         (neon_vca<cmp_op><mode>): New define_expand.
24413         (neon_vca<cmp_op><mode>_insn): New pattern.
24414         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24415
24416 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24417
24418         * tree.h (attribute_value_equal): Declare.
24419         * tree.c (attribute_value_equal): Export.
24420
24421 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24422
24423         * ipa-icf.c (sem_item::compare_attributes): New function.
24424         (sem_item::compare_referenced_symbol_properties): Compare variable
24425         attributes.
24426         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24427         (sem_function::param_used_p): New function.
24428         (sem_function::equals_wpa): Fix attribute comparsion; match
24429         parameter type codes; do not compare paremter flags when
24430         they are not used; compare edge flags; compare indirect calls.
24431         (sem_item::update_hash_by_addr_refs): Hash reference type.
24432         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24433         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24434         reference use type.
24435         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24436         * ipa-icf.h (compare_attributes, param_used_p): Declare.
24437
24438 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24439
24440         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24441         cleanup.
24442         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24443         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24444         (sem_item::compare_referenced_symbol_properties): New.
24445         (sem_item::hash_referenced_symbol_properties): New.
24446         (sem_item::compare_cgraph_references): Rename to ...
24447         (sem_item::compare_symbol_references): ... this one; use
24448         compare_referenced_symbol_properties.
24449         (sem_function::equals_wpa): Do not compare
24450         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24451         DECL_IS_OPERATOR_NEW; compare pointer sizes.
24452         (sem_item::update_hash_by_addr_refs): Call
24453         hash_referenced_symbol_properties.
24454         (sem_item::update_hash_by_local_refs): Cleanup.
24455         (sem_function::merge): Do not mix up symbol properties.
24456         (sem_variable::equals_wpa): Use compare_symbol_references.
24457         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24458         (sem_item::hash_referenced_symbol_properties): New.
24459         (sem_item::compare_symbol_references): New.
24460         (sem_item::compare_cgraph_references): Remove.
24461
24462 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
24463
24464         PR target/26702
24465         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24466         Emit size of local.
24467
24468 2015-04-23  Nick Clifton  <nickc@redhat.com>
24469
24470         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24471         ATTRIBUTE_UNUSED to x parameter.
24472         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24473
24474 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24475
24476         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24477         TARGET_CRYPTO to TARGET_P8_VECTOR>
24478         (crypto_vpermxor_<mode>): Likewise.
24479         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24480         (BU_CRYPTO_3A): Likewise.
24481         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24482         (BU_CRYPTO_OVERLOAD_3A): New #define.
24483         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24484         (VPMSUMH): Likewise.
24485         (VPMSUMW): Likewise.
24486         (VPMSUMD): Likewise.
24487         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24488         (VPERMXOR_V4SI): Likewise.
24489         (VPERMXOR_V8HI): Likewise.
24490         (VPERMXOR_V16QI): Likewise.
24491         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24492         BU_CRYPTO_OVERLOAD_2A.
24493         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24494         BU_CRYPTO_OVERLOAD_3A.
24495         * config/rs6000/rs6000.opt (mcrypto): Change description of
24496         option.
24497
24498 2015-04-23  Richard Biener  <rguenther@suse.de>
24499
24500         * passes.def: Remove copy propagation passes run directly after CCP.
24501         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24502         SSA names.
24503         (ccp_visit_phi_node): Rework to handle first executable edge
24504         specially.
24505
24506 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
24507
24508         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24509         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24510         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24511         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24512         (thumb_legimitimize_reload_address): Remove.
24513         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24514         Remove.
24515         (thumb_legimitimize_reload_address): Remove.
24516
24517 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24518
24519         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24520
24521 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24522
24523         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24524         MAX_LDM_STM_OPS.
24525         (store_multiple): Likewise.
24526
24527 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24528
24529         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24530         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24531         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24532         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24533         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24534         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24535         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24536         Specify issue_rate value.
24537         (arm_issue_rate): Look up issue rate from tuning structs. Remove
24538         large switch statement.
24539         (arm_marvell_pj4_tune): New struct.
24540         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24541         struct.
24542
24543 2015-04-23  Richard Biener  <rguenther@suse.de>
24544
24545         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24546         (vect_find_last_store_in_slp_instance): Rename to ...
24547         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24548         (vect_analyze_slp_cost_1): Use vector_load for constant defs
24549         and vec_construct for external defs when estimating prologue cost.
24550         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24551         Compute costs here only when vectorizing loops.
24552         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24553         have been determined.
24554         (vect_schedule_slp_instance): Simplify vectorized code placement
24555         and prepare for in-BB external defs.
24556         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24557         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24558         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24559         guard.
24560         (vect_model_load_cost): Likewise.
24561         (vectorizable_store): Instead add it here.
24562         (vectorizable_load): Likewise.
24563         (vect_is_simple_use): Dump def type textually.
24564
24565 2015-04-23  Richard Biener  <rguenther@suse.de>
24566
24567         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24568         * cfgloop.c (verify_loop_structure): Verify the root loop node.
24569         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24570         instead of get_eh_region_from_lp_number.
24571         * loop-init.c (fix_loop_structure): If we removed a loop, reset
24572         the SCEV cache.
24573
24574 2015-04-23  Anton Blanchard  <anton@samba.org>
24575
24576         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24577         need for -mprofile-kernel to save LR to stack.
24578
24579 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24580
24581         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24582         adjustments.
24583         (insn_is_swappable_p): Return 1 for a convert from double to
24584         single precision when all of its uses are splats of BE element
24585         zero.
24586
24587 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24588
24589         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24590
24591 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24592
24593         PR target/65456
24594         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
24595         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24596         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24597         option.
24598         (rs6000_builtin_mask_for_load): Return 0 for targets with
24599         efficient unaligned VSX accesses so that the vectorizer will use
24600         direct unaligned loads.
24601         (rs6000_builtin_support_vector_misalignment): Always return true
24602         for targets with efficient unaligned VSX accesses.
24603         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24604         stores on targets with efficient unaligned VSX accesses is almost
24605         always the same as the cost of an aligned load or store, so model
24606         it that way.
24607         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24608         unaligned vectors if we have efficient unaligned VSX accesses.
24609         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24610         undocumented option.
24611
24612 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24613
24614         Revert:
24615         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24616
24617         * config.gcc (LIBC_MUSL): New tm_defines macro.
24618         * config/linux.h (OPTION_MUSL): Define.
24619         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24620         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24621         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24622
24623         * config/linux.opt (mmusl): New option.
24624         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24625         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24626
24627         * configure: Regenerate.
24628
24629 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24630
24631         * config.gcc (LIBC_MUSL): New tm_defines macro.
24632         * config/linux.h (OPTION_MUSL): Define.
24633         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24634         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24635         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24636
24637         * config/linux.opt (mmusl): New option.
24638         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24639         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24640
24641         * configure: Regenerate.
24642
24643 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
24644
24645         * doc/invoke.texi (-fsanitize-sections): Update description.
24646         * asan.c (set_sanitized_sections): Parse incoming arg.
24647         (section_sanitized_p): Support wildcards.
24648
24649 2015-04-22  Tom de Vries  <tom@codesourcery.com>
24650
24651         PR tree-optimization/65823
24652         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24653         equality between ap_copy and ap.
24654
24655 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24656
24657         PR target/47098
24658         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24659
24660 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24661
24662         PR target/47122
24663         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24664
24665 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24666
24667         PR target/55144
24668         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24669         remove already contained t-files.
24670
24671 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24672
24673         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24674         Remove unneeded forward declarations.
24675         (suitable_for_tail_call_opt_p): Commentary typo fix.
24676
24677 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24678
24679         * varasm.c (emit_bss): Remove redundant guard.
24680
24681 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24682
24683         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24684
24685 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24686
24687         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24688
24689 2015-04-22  Hale Wang  <hale.wang@arm.com>
24690             Terry Guo  <terry.guo@arm.com>
24691
24692         PR rtl-optimization/64818
24693         * combine.c (can_combine_p): Don't combine user-specified
24694         register if it is in an asm input.
24695
24696 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
24697
24698         PR ipa/65076
24699         * passes.def (early_optimizations): Add pass_dse.
24700
24701 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24702
24703         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24704         * reorg.c (redundant_insn): Remove ifdef
24705         INSN_REFERENCES_ARE_DELAYED.
24706         * resource.c (mark_referenced_resources): Likewise.
24707
24708 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24709
24710         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24711         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24712         * resource.c (mark_set_resources): Likewise.
24713
24714 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24715
24716         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24717         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24718         (flow_find_head_matching_sequence): Likewise.
24719         (try_head_merge_bb): Likewise.
24720         * combine.c (can_combine_p): Likewise.
24721         (try_combine): Likewise.
24722         (distribute_notes): Likewise.
24723         * df-problems.c (can_move_insns_across): Likewise.
24724         * final.c (final): Likewise.
24725         * gcse.c (insert_insn_end_basic_block): Likewise.
24726         * ira.c (find_moveable_pseudos): Likewise.
24727         * reorg.c (try_merge_delay_insns): Likewise.
24728         (fill_simple_delay_slots): Likewise.
24729         (fill_slots_from_thread): Likewise.
24730         * sched-deps.c (sched_analyze_2): Likewise.
24731
24732 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24733
24734         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24735         PIC_OFFSET_TABLE_REGNUM.
24736
24737 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24738
24739         * alias.c (init_alias_target): Remove ifdef
24740         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24741         * df-scan.c (df_insn_refs_collect): Likewise.
24742         (df_get_regular_block_artificial_uses): Likewise.
24743         (df_get_eh_block_artificial_uses): Likewise.
24744         (df_get_entry_block_def_set): Likewise.
24745         (df_get_exit_block_use_set): Likewise.
24746         * emit-rtl.c (gen_rtx_REG): Likewise.
24747         * ira.c (ira_setup_eliminable_regset): Likewise.
24748         * reginfo.c (init_reg_sets_1): Likewise.
24749         * regrename.c (rename_chains): Likewise.
24750         * reload1.c (reload): Likewise.
24751         (eliminate_regs_in_insn): Likewise.
24752         * resource.c (mark_referenced_resources): Likewise.
24753         (init_resource_info): Likewise.
24754
24755 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24756
24757         * defaults.h (MASK_RETURN_ADDR): New definition.
24758         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24759         MASK_RETURN_ADDR.
24760
24761 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24762
24763         * defaults.h (RETURN_ADDR_OFFSET): New definition.
24764         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24765         RETURN_ADDR_OFFSET.
24766         (expand_builtin_frob_return_addr): Likewise.
24767
24768 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24769
24770         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24771         (try_redirect_by_replacing_jump): Likewise.
24772         (rtl_tidy_fallthru_edge): Likewise.
24773         * combine.c (insn_a_feeds_b): Likewise.
24774         (find_split_point): Likewise.
24775         (simplify_set): Likewise.
24776         * cprop.c (cprop_jump): Likewise.
24777         * cse.c (cse_extended_basic_block): Likewise.
24778         * df-problems.c (can_move_insns_across): Likewise.
24779         * function.c (emit_use_return_register_into_block): Likewise.
24780         * haifa-sched.c (sched_init): Likewise.
24781         * ira.c (find_moveable_pseudos): Likewise.
24782         * loop-invariant.c (find_invariant_insn): Likewise.
24783         * lra-constraints.c (curr_insn_transform): Likewise.
24784         * postreload.c (reload_combine_recognize_const_pattern):
24785         * Likewise.
24786         * reload.c (find_reloads): Likewise.
24787         * reorg.c (delete_scheduled_jump): Likewise.
24788         (steal_delay_list_from_target): Likewise.
24789         (steal_delay_list_from_fallthrough): Likewise.
24790         (redundant_insn): Likewise.
24791         (fill_simple_delay_slots): Likewise.
24792         (fill_slots_from_thread): Likewise.
24793         (delete_computation): Likewise.
24794         * sched-rgn.c (add_branch_dependences): Likewise.
24795
24796 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24797
24798         * genconfig.c (main): Always define HAVE_cc0.
24799         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24800         HAVE_cc0.
24801         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24802         (flow_find_head_matching_sequence): Likewise.
24803         (try_head_merge_bb): Likewise.
24804         * cfgrtl.c (rtl_merge_blocks): Likewise.
24805         (try_redirect_by_replacing_jump): Likewise.
24806         (rtl_tidy_fallthru_edge): Likewise.
24807         * combine.c (do_SUBST_MODE): Likewise.
24808         (insn_a_feeds_b): Likewise.
24809         (combine_instructions): Likewise.
24810         (can_combine_p): Likewise.
24811         (try_combine): Likewise.
24812         (find_split_point): Likewise.
24813         (subst): Likewise.
24814         (simplify_set): Likewise.
24815         (distribute_notes): Likewise.
24816         * cprop.c (cprop_jump): Likewise.
24817         * cse.c (cse_extended_basic_block): Likewise.
24818         * df-problems.c (can_move_insns_across): Likewise.
24819         * final.c (final): Likewise.
24820         (final_scan_insn): Likewise.
24821         * function.c (emit_use_return_register_into_block): Likewise.
24822         * gcse.c (insert_insn_end_basic_block): Likewise.
24823         * haifa-sched.c (sched_init): Likewise.
24824         * ira.c (find_moveable_pseudos): Likewise.
24825         * loop-invariant.c (find_invariant_insn): Likewise.
24826         * lra-constraints.c (curr_insn_transform): Likewise.
24827         * optabs.c (prepare_cmp_insn): Likewise.
24828         * postreload.c (reload_combine_recognize_const_pattern):
24829         * Likewise.
24830         * reload.c (find_reloads): Likewise.
24831         (find_reloads_address_1): Likewise.
24832         * reorg.c (delete_scheduled_jump): Likewise.
24833         (steal_delay_list_from_target): Likewise.
24834         (steal_delay_list_from_fallthrough): Likewise.
24835         (try_merge_delay_insns): Likewise.
24836         (redundant_insn): Likewise.
24837         (fill_simple_delay_slots): Likewise.
24838         (fill_slots_from_thread): Likewise.
24839         (delete_computation): Likewise.
24840         (relax_delay_slots): Likewise.
24841         * sched-deps.c (sched_analyze_2): Likewise.
24842         * sched-rgn.c (add_branch_dependences): Likewise.
24843
24844 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24845
24846         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24847         that is trivially ded on non cc0 targets.
24848         (simplify_set): Likewise.
24849         (mark_used_regs_combine): Likewise.
24850         * cse.c (new_basic_block): Likewise.
24851         (fold_rtx): Likewise.
24852         (cse_insn): Likewise.
24853         (cse_extended_basic_block): Likewise.
24854         (set_live_p): Likewise.
24855         * rtlanal.c (canonicalize_condition): Likewise.
24856         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24857
24858 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24859
24860         * conditions.h: Define macros even if HAVE_cc0 is undefined.
24861         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24862         * final.c: Likewise.
24863         * jump.c: Likewise.
24864         * recog.c: Likewise.
24865         * recog.h: Declare functions even when HAVE_cc0 is undefined.
24866         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24867
24868 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24869
24870         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24871         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24872         * builtins.c (expand_builtin): Remove check if
24873         EH_RETURN_DATA_REGNO is defined.
24874         * df-scan.c (df_bb_refs_collect): Likewise.
24875         (df_get_exit_block_use_set): Likewise.
24876         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24877         * ira-lives.c (process_bb_node_lives): Likewise.
24878         * lra-lives.c (process_bb_lives): Likewise.
24879
24880 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24881
24882         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24883         FIRST_PSEUDO_REG): New.
24884         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24885         (ARG_POINTER_REGNUM): Define to ARGP_REG.
24886         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24887         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24888         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24889         (FIRST_INT_REG): New.
24890         (LAST_INT_REG): New.
24891         (FIRST_*_REG): Define using *_REG.
24892         (LAST_*_REG): Ditto.
24893         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24894         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24895         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24896
24897 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24898
24899         * expmed.c: (synth_mult): Only assume overlapping
24900         shift with previous steps in alg_sub_t_m2 case.
24901
24902 2015-04-21  Richard Biener  <rguenther@suse.de>
24903
24904         PR tree-optimization/65650
24905         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24906         transitions involving copies.
24907         (set_lattice_value): Adjust for copy lattice state.
24908         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24909         if that doesn't dominate the merge point.
24910         (bit_value_unop): Adjust what we treat as varying mask.
24911         (bit_value_binop): Likewise.
24912         (bit_value_assume_aligned): Likewise.
24913         (evaluate_stmt): When we simplified to a SSA name record a copy
24914         instead of dropping to varying.
24915         (visit_assignment): Simplify.
24916
24917         * gimple-match.h (gimple_simplify): Add another callback.
24918         * gimple-fold.c (fold_stmt_1): Adjust caller.
24919         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24920         for the 2nd callback.
24921         * gimple-match-head.c (gimple_simplify): Add a callback that is
24922         used to valueize the stmt operands and use it that way.
24923
24924 2015-04-21  Richard Biener  <rguenther@suse.de>
24925
24926         PR tree-optimization/65788
24927         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24928
24929 2015-04-21  Richard Biener  <rguenther@suse.de>
24930
24931         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24932         vec_construct cost by vec_stmt_cost.
24933
24934 2015-04-21  Richard Biener  <rguenther@suse.de>
24935
24936         * cfghooks.h (create_basic_block): Replace with two overloads
24937         for RTL and GIMPLE.
24938         (split_block): Likewise.
24939         * cfghooks.c (split_block): Rename to ...
24940         (split_block_1): ... this.
24941         (split_block): Add two type-safe overloads for RTL and GIMPLE.
24942         (split_block_after_labels): Call split_block_1.
24943         (create_basic_block): Rename to ...
24944         (create_basic_block_1): ... this.
24945         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
24946         (create_empty_bb): Call create_basic_block_1.
24947         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
24948         split_block_after_labels.
24949         * omp-low.c (expand_parallel_call): Likewise.
24950         (expand_omp_target): Likewise.
24951         (simd_clone_adjust): Likewise.
24952         * tree-chkp.c (chkp_get_entry_block): Likewise.
24953         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
24954         create_basic_block overload.
24955         (cgraph_node::expand_thunk): Likewise.
24956         * tree-cfg.c (make_blocks): Likewise.
24957         (handle_abnormal_edges): Likewise.
24958         * tree-inline.c (copy_bb): Likewise.
24959
24960 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24961
24962         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
24963         New pattern.
24964         (*xor_one_cmplsidi3_ze): Likewise.
24965
24966 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24967
24968         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
24969         use df_remove_problem rather than manually removing problems, leaving
24970         holes in df->problems_in_order[].
24971
24972 2015-04-21  Tom de Vries  <tom@codesourcery.com>
24973
24974         PR tree-optimization/65802
24975         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
24976
24977 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24978
24979         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
24980         Increase to 128.
24981         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
24982         at '.'.  Assert that there's enough space for everything.
24983
24984 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24985
24986         PR tree-optimization/64950
24987         Revert:
24988         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
24989
24990         PR target/41089
24991         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
24992         as volatile.
24993
24994 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
24995
24996         PR rtl-optimization/64916
24997         * cfgcleanup.c (values_equal_p): New function.
24998         (can_replace_by): Use it.
24999
25000 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
25001
25002         PR c++/65801
25003         * doc/invoke.texi ([-Wnarrowing]): Update.
25004
25005 2015-04-20  Jeff Law  <law@redhat.com>
25006
25007         PR tree-optimization/65658
25008         * tree-ssa-threadupdate.c (redirection_block_p): Remove
25009         redundant test for GIMPLE_ASSIGN in last change.
25010
25011 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
25012
25013         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25014         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25015         (legitimize_tls_address): Ditto.
25016         (ix86_expand_move): Ditto.
25017         (ix86_expand_binary_operator): Remove reload_in_progress checks.
25018         (ix86_expand_unary_operator): Ditto.
25019         * config/i386/predicates.md (index_register_operand): Ditto.
25020
25021 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
25022
25023         * reorg.c (try_merge_delay_insns): Improve correctness checking
25024         for targets with multiple delay slots.
25025
25026 2015-04-20  Jeff Law  <law@redhat.com>
25027
25028         PR tree-optimization/65658
25029         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25030         statements too.
25031
25032 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
25033
25034         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25035         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25036         Delete.
25037
25038 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
25039
25040         PR debug/65807
25041         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25042
25043 2015-04-20  Richard Biener  <rguenther@suse.de>
25044
25045         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25046         * gimple-fold.c (gimple_build_valueize): New function.
25047         (gimple_build): Always use gimple_build_valueize as valueize hook.
25048
25049 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
25050
25051         PR target/64134
25052         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25053         and overwrite variable parts if <= 1/2 the elements are variable.
25054
25055 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
25056
25057         PR rtl-optimization/65805
25058         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25059         Don't use difference of offset and previous offset if
25060         update_sp_offset is non-zero.
25061         (eliminate_regs_in_insn): Ditto.
25062         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25063         lra_eliminate_regs_1 call.
25064         * lra-constraints.c (get_equiv_with_elimination): Ditto.
25065
25066 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
25067
25068         * hash-table.h: Remove version of hash_table that stored value_type *.
25069         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25070         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25071         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25072         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25073         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25074         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25075         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25076         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25077         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25078         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25079         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25080         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25081         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25082         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25083         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25084         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25085
25086 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25087             Jakub Jelinek  <jakub@redhat.com>
25088
25089         PR target/65787
25090         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25091         subsequent SH_NONE operand does not overwrite an existing *special
25092         value.
25093         (adjust_extract): Handle case where a vec_extract operation is
25094         wrapped in a PARALLEL.
25095
25096 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25097
25098         PR target/65780
25099         * config/i386/i386.c (ix86_binds_local_p): Define only if
25100         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25101
25102 2015-04-17  Jeff Law  <law@redhat.com>
25103
25104         PR tree-optimization/47679
25105         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25106         * tree-ssa-scopedtables.c: New file.
25107         * tree-ssa-scopedtables.h: New file.
25108         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25109         (const_and_copies): Change name/type.
25110         (record_const_or_copy): Move into tree-ssa-scopedtables.c
25111         (record_const_or_copy_1): Similarly.
25112         (restore_vars_to_original_value): Similarly.
25113         (pass_dominator::execute): Create and destroy const_and_copies table.
25114         (thread_across_edge): Update passing of const_and_copies.
25115         (record_temporary_equivalence): Use method calls rather than
25116         manipulating const_and_copies directly.
25117         (record_equality, cprop_into_successor_phis): Similarly.
25118         (dom_opt_dom_walker::before_dom_children): Similarly.
25119         (dom_opt_dom_walker::after_dom_children): Similarly.
25120         (eliminate_redundant_computations): Similarly.
25121         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25122         (record_temporary_equivalence): Likewise.
25123         (invalidate_equivalences): Likewise.
25124         (record_temporary_equivalences_from_phis): Update due to type
25125         change of const_and_copies.  Use method calls rather than
25126         manipulating the stack directly.
25127         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25128         (thread_through_normal_block, thread_across_edge): Likewise.
25129         (thread_across_edge): Likewise.
25130         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25131         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
25132         of equiv_stack.
25133         (identify_jump_threads): Update due to type change of equiv_stack.
25134         (finalize_jump_threads): Delete the equiv_stack when complete.
25135
25136 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
25137
25138         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25139         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25140         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25141
25142 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
25143
25144         PR target/65535
25145         * config.gcc: Exit with a comment when we do not have a major version
25146         number for the FreeBSD target.
25147
25148 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25149
25150         PR target/65689
25151         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25152         maybe_allows_mem bitfields.
25153         (maybe_allows_none_start, maybe_allows_none_end,
25154         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25155         maybe_allows_mem_end): New variables.
25156         (compute_maybe_allows): New function.
25157         (add_constraint): Use it to initialize maybe_allows_reg and
25158         maybe_allows_mem fields.
25159         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25160         is_address constraints such that those that allow neither mem nor
25161         reg come first, then those that only allow reg but not mem, then
25162         those that only allow mem but not reg, then the rest.
25163         (write_allows_reg_mem_function): New function.
25164         (write_tm_preds_h): Call it.
25165         * stmt.c (parse_output_constraint, parse_input_constraint): Use
25166         the generated insn_extra_constraint_allows_reg_mem function
25167         instead of always setting *allows_reg = true; *allows_mem = true;
25168         for unknown extra constraints.
25169
25170 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25171
25172         PR target/65780
25173         * output.h (default_binds_local_p_3): New.
25174         * varasm.c (default_binds_local_p_3): Make it public.  Take an
25175         argument to indicate if common symbol may be local.  If common
25176         symbol may be local, treat non-external variable as defined
25177         locally.
25178         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25179         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25180         * config/i386/i386.c (ix86_binds_local_p): New.
25181         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25182         ix86_binds_local_p.
25183
25184 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25185
25186         PR debug/65771
25187         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25188         trying mem_loc_descriptor on XEXP (rtl, 0).
25189
25190 2015-04-17  Martin Liska  <mliska@suse.cz>
25191
25192         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25193         Release symbol_compare_collection.
25194         * ipa-reference.c: Add TODO that a vector should be released.
25195
25196 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25197
25198         PR target/65296
25199         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25200         to new AVR-LibC file layout (bug #44574).
25201         (*avrlibc_devicelib): Same.
25202         * config/avr/avr-mcus.def: Adjust comments.
25203         * config/avr/avr.opt (nodevicelib): Adjust help.
25204
25205 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
25206
25207         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25208
25209 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
25210
25211         PR c++/64527
25212         * gimplify.c (gimplify_init_constructor): Always emit a
25213         side-effecting constructor.
25214
25215 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25216
25217         PR tree-optimization/64950
25218         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25219         in cfun->curr_properties.
25220         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25221         if we generate an IFN_VA_ARG.
25222         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25223         function if PROP_gimple_lva is not set in src function.
25224
25225 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25226             Michael Matz  <matz@suse.de>
25227
25228         PR tree-optimization/64950
25229         * gimple-iterator.c (update_modified_stmts): Remove static.
25230         * gimple-iterator.h (update_modified_stmts): Declare.
25231         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25232         (gimplify_va_arg_internal): New function.
25233         (gimplify_va_arg_expr): Use IFN_VA_ARG.
25234         * gimplify.h (gimplify_va_arg_internal): Declare.
25235         * internal-fn.c (expand_VA_ARG): New unreachable function.
25236         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25237         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
25238         (expand_ifn_va_arg): New function.
25239         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
25240         (pass_stdarg::execute): Call expand_ifn_va_arg.
25241         (pass_data_lower_vaarg): New pass_data.
25242         (pass_lower_vaarg): New gimple_opt_pass.
25243         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
25244         (make_pass_lower_vaarg): New function.
25245         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
25246         properties_required field.
25247         * passes.def (all_passes): Add pass_lower_vaarg.
25248         * tree-pass.h (PROP_gimple_lva): Add define.
25249         (make_pass_lower_vaarg): Declare.
25250
25251 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25252
25253         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
25254         * calls.c (call_expr_flags): Same.
25255
25256 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25257
25258         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25259         (pass_stdarg::execute): ... here.
25260
25261 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25262             Michael Matz  <matz@suse.de>
25263
25264         * tree-cfg.c (make_blocks_1): Factor out of ...
25265         (make_blocks): ... here.
25266         (make_edges_bb): Factor out of ...
25267         (make_edges): ... here.
25268         (gimple_find_sub_bbs): New function.
25269         * tree-cfg.h (gimple_find_sub_bbs): Declare.
25270
25271 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25272
25273         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25274
25275 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
25276
25277         * asan.c (set_sanitized_sections): New function.
25278         (section_sanitized_p): Ditto.
25279         (asan_protect_global): Optionally sanitize user-defined
25280         sections.
25281         * asan.h (set_sanitized_sections): Declare new function.
25282         * common.opt (fsanitize-sections): New option.
25283         * doc/invoke.texi (-fsanitize-sections): Document new option.
25284         * opts-global.c (handle_common_deferred_options): Handle new
25285         option.
25286
25287 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25288
25289         PR debug/65771
25290         * dwarf2out.c (loc_list_from_tree): Return NULL
25291         for DEBUG_EXPR_DECL.
25292
25293 2015-04-17  Christian Bruel  <christian.bruel@st.com>
25294
25295         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25296         same attributes.
25297
25298 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25299
25300         * ira-color.c (setup_left_conflict_sizes_p): Do not process
25301         node itself when computing left conflict subnode size.
25302
25303 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25304
25305         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25306         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25307         *fop_<mode>_1_sse using enabled attribute.  Use
25308         register_mixssei387nonimm_operand operand 1 predicate. Change
25309         alternative 3 constraints from "x" to "v".
25310
25311 2015-04-16  Richard Biener  <rguenther@suse.de>
25312
25313         PR tree-optimization/65774
25314         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25315         bit-value tracking on.
25316
25317 2015-04-16  Richard Biener  <rguenther@suse.de>
25318
25319         PR tree-optimization/64277
25320         * tree-vrp.c (check_array_ref): Fix anti-range handling,
25321         simplify upper bound handling.
25322         (search_for_addr_array): Simplify.
25323         (check_array_bounds): Handle ADDR_EXPRs here.
25324         (check_all_array_refs): Simplify.
25325
25326 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25327
25328         * config/i386/i386.c (print_reg): Rewrite function.
25329
25330 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25331
25332         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25333         Invert the condition.
25334
25335 2015-04-16  Renlin Li  <renlin.li@arm.com>
25336
25337         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25338         simplifications for UNSIGNED_FLOAT.
25339
25340 2015-04-16  Nick Clifton  <nickc@redhat.com>
25341
25342         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25343         MUL_UNINIT.
25344         (enum rl78_cpu_type): New.
25345         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25346         (umulhi3_shift_virt): Remove m constraint from operand 1.
25347         (umulqihi3_virt): Likewise.
25348         * config/rl78/rl78.c (rl78_option_override): Add code to process
25349         -mcpu and -mmul options.
25350         (rl78_alloc_physical_registers): Add code to handle divhi and
25351         divsi valloc attributes.
25352         (set_origin): Likewise.
25353         * config/rl78/rl78.h (RL78_MUL_G14): Define.
25354         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25355         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25356         __RL78_Gxx__.
25357         (ASM_SPEC): Pass -mcpu on to assembler.
25358         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25359         (mulqi3_rl78): Likewise.
25360         (mulhi3_g13): Likewise.
25361         (mulhi3): Generate the G13 or G14 versions of the insn directly.
25362         (mulsi3): Likewise.
25363         (mulhi3_g14): Add clobbers of AX and BC.
25364         (mulsi3_g14): Likewise.
25365         (mulsi3_g13): Likewise.
25366         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25367         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25368         * config/rl78/rl78.opt (mmul): Initialise value to
25369         RL78_MUL_UNINIT.
25370         (mcpu): New option.
25371         (m13, m14, mrl78): New option aliases.
25372         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25373         (MULTILIB_DIRNAMES): Add g13 and g14.
25374         * doc/invoke.texi: Document -mcpu and -mmul options.
25375
25376 2015-04-16  Richard Biener  <rguenther@suse.de>
25377
25378         * tree-ssa-ccp.c (likely_value): See if we have operands that
25379         are marked as never simulate again and return CONSTANT in this
25380         case.
25381         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25382         not have any operands that will be simulated again as
25383         not being simulated again.
25384
25385 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
25386
25387         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25388         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25389         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25390         attribute.
25391         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25392         enabled attribute.
25393         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25394         *float<SWI48:mode><MODEF:mode>2_sse.
25395         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25396         enabled attribute.
25397         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25398         enabled attribute.
25399
25400 2015-04-15  Tom de Vries  <tom@codesourcery.com>
25401
25402         PR other/65487
25403         * function.c (push_dummy_function): New function.
25404         (init_dummy_function_start): Use push_dummy_function.
25405         (pop_dummy_function): New function.  Factored out of ...
25406         (expand_dummy_function_end): ... here.
25407         * function.h (push_dummy_function, pop_dummy_function): Declare.
25408         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25409         pop_dummy_function.
25410         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25411
25412 2015-04-15  Jeff Law  <law@redhat.com>
25413
25414         PR tree-optimization/47679
25415         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25416         need for forward declaration in upcoming changes.
25417         (record_conditions, record_edge_info): Likewise.
25418
25419         PR rtl-optimization/42522
25420         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25421         SIGN_EXTRACT as a whole object rather than simplifying
25422         its operand.
25423
25424 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
25425
25426         PR ipa/65765
25427         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25428         and GIMPLE_PREDICT use break instead of return true. For
25429         GIMPLE_EH_DISPATCH, compare dispatch region.
25430
25431 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
25432
25433         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
25434         details about the implementation.  Make clear preference for
25435         __atomic builtins.  Reduce possibility of future change.
25436
25437 2015-04-15  Nick Clifton  <nickc@redhat.com>
25438
25439         * config/rx/rx.opt (mallow-string-insns): New option.
25440         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25441         builtin if string instructions are denied.
25442         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25443         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25444         appropriate.
25445         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25446         * config/rx/rx.md (movstr): Enable pattern only if string
25447         instructions are allowed.
25448         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25449         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25450         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25451         (MULTILIB_DIRNAMES): Add no-strings.
25452         * doc/invoke.texi: Document -mno-allow-string-insns.
25453
25454 2015-04-15  Alan Modra  <amodra@gmail.com>
25455
25456         PR target/65408
25457         PR target/58744
25458         PR middle-end/36043
25459         * calls.c (load_register_parameters): Don't load past end of
25460         mem unless suitably aligned.
25461
25462 2015-04-15  Nick Clifton  <nickc@redhat.com>
25463
25464         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25465         decrement instruction as being frame related.
25466         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25467         based addresses.
25468         If zero extending a function address enclose the operation in
25469         %code(...).
25470         (rl78_preferred_reload_class): New function.
25471         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25472         * config/rl78/rl78.md: Remove useless constraints in expanders.
25473         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25474         (mulhi3_rl78): Likewise.
25475         (mulhi3_g13): Likewise.
25476         (mulsi3_rl78): Likewise.
25477         (es_addr): Move to before the multiply patterns.
25478
25479 2015-04-15  Alan Modra  <amodra@gmail.com>
25480
25481         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25482         and sequence_stack.  Add seq.
25483         (seq_stack): Delete.
25484         * function.c (prepare_function_start): Don't access x_last_insn.
25485         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25486         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25487         * emit_rtl.c (start_sequence, push_topmost_sequence,
25488         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25489         sequence accessors.
25490         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25491         remove_insn): Likewise.  Simplify.
25492         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25493         and pop_topmost_sequence.
25494         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
25495         debug insns.
25496         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25497
25498 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
25499
25500         PR target/65729
25501         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25502         the assertiion.
25503
25504 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25505
25506         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25507         (LEGACY_INT_REGNO_P): Ditto.
25508         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25509         (ANY_MASK_REG_P): Remove.
25510         (BND_REG_P): Rename from ANY_BND_REG_P.
25511         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25512         legacy integer registers.  Do not handle MMX_REG_P in a special way.
25513         Merge 64byte and 32byte SSE handling.
25514
25515 2015-04-14  Nick Clifton  <nickc@redhat.com>
25516
25517         * expr.c (expand_assignment): Force an address offset computation
25518         into a register before changing its mode.
25519         (expand_expr_real_1): Likewise.
25520
25521 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
25522
25523         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25524         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25525         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25526         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25527         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25528         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25529         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25530         and __aarch64_vget_lane_any.
25531
25532 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
25533
25534         PR rtl-optimization/65761
25535         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25536         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25537
25538 2015-04-14  Richard Biener  <rguenther@suse.de>
25539
25540         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25541         (graphite_can_represent_scev): Use POINTER_TYPE_P.
25542
25543 2015-04-14  Richard Biener  <rguenther@suse.de>
25544
25545         PR tree-optimization/65758
25546         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25547         against -1.
25548         (ccp_lattice_meet): Likewise.
25549         (bit_value_unop): Likewise.
25550         (bit_value_binop): Likewise.
25551         (bit_value_assume_aligned): Likewise.
25552
25553 2015-04-14  Christian Bruel  <christian.bruel@st.com>
25554
25555         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25556         function.
25557
25558 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
25559
25560         PR tree-optimization/63387
25561         * match.pd ((x unord x) | (y unord y) -> (x unord y),
25562         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25563
25564 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25565
25566         * config/i386/predicates.md (any_QIreg_operand): Rename from
25567         q_regs_operand.  Do not process subregs.
25568         (QIreg_operand): Use QI_REGNO_P predicate.
25569         (ext_QIreg_operand): Ditto.
25570         (ext_register_operand): Ditto.
25571         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25572         (AND splitters): Ditto.
25573         (AND with -65536 splitter): Add SWI48 mode for operand 0.
25574         (AND with -256 splitter): Use any_QIreg_operand predicate and
25575         SWI248 mode for operand 0.
25576         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25577         mode for operand 0.
25578         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25579
25580 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
25581
25582         * doc/plugins.texi: Rewrite first introductory paragraph.
25583
25584 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25585
25586         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25587         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25588
25589 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25590
25591         * ipa-profie.c (ipa_profile): Check number of parameters
25592         and possible polymorphic call targets before
25593         devirtualizing.
25594
25595 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
25596
25597         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25598         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25599
25600 2015-04-13  Richard Biener  <rguenther@suse.de>
25601
25602         PR tree-optimization/65204
25603         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25604         takens for bit-CCP.
25605
25606 2015-04-13  Richard Biener  <rguenther@suse.de>
25607
25608         PR target/65660
25609         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25610         and cond_not_taken_branch_cost to 4 and 2.
25611         (bdver2_cost): Likewise.
25612         (bdver3_cost): Likewise.
25613         (bdver4_cost): Likewise.
25614
25615 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25616
25617         * hash-table.h (hash_table constructor): Add mem stats.
25618         (alloc_entries): Likewise.
25619
25620 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25621
25622         * ipa-cp.c (ipcp_driver): Relase prev_edge.
25623         * passes.c (execute_one_pass): Only add transform if pass has one.
25624
25625 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
25626
25627         * config/i386/i386.c (ix86_option_override_internal): Don't set
25628         -fprefetch-loop-arrays if optimizing for size.
25629
25630 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25631             Gerald Pfeifer  <gerald@pfeifer.com>
25632
25633         * doc/contrib.texi (Contributors): Add Martin Jambor and
25634         Michael Matz.
25635
25636 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
25637
25638         * BASE-VER: Set to 6.0.0.
25639
25640         PR tree-optimization/65747
25641         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25642         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25643
25644 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25645
25646         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25647         sentence.  Improve grammar.
25648
25649 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25650
25651         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25652
25653 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25654
25655         PR ipa/65743
25656         * ipa-inline-transform.c (speculation_removed): Remove static var.
25657         (check_speculations): New function.
25658         (clone_inlined_nodes): Do not check spculations.
25659         (inline_call): Call check_speculations.
25660         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25661         consider non-invariants.
25662
25663 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25664             Martin Liska  <mliska@suse.cz>
25665
25666         PR ipa/65722
25667         * ipa-icf.c (sem_item::compare_cgraph_references): function and
25668         variable can not match.
25669         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25670         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25671
25672 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
25673
25674         PR tree-optimization/65735
25675         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25676         Remove visited_phis argument, add visited_bbs, avoid recursing into the
25677         same bb rather than just into the same phi node.
25678         (thread_through_normal_block): Adjust caller.
25679
25680 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25681
25682         * doc/contrib.texi (Contributors): Add Ira Rosen.
25683
25684 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
25685
25686         * gcov.c (find_source): Fix miswording in error message.
25687         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25688         (ix86_expand_sse_comi_round): Fix typo in error message.
25689
25690 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25691
25692         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25693
25694 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
25695
25696         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25697
25698 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25699
25700         PR target/65710
25701         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25702         Print bad_spills_num and insn_pseudos_num.
25703
25704 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25705
25706         PR target/65694
25707         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25708         when creating +1 values for SImode.
25709
25710 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25711
25712         PR target/65729
25713         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25714         assert.
25715
25716 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
25717             Iain Sandoe  <iain@codesourcery.com>
25718
25719         PR target/65351
25720         * configure: Regenerate.
25721
25722 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25723
25724         PR target/65671
25725         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25726
25727 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
25728
25729         * doc/contrib.texi (Contributors): Add John Marino.
25730
25731 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25732
25733         PR tree-optimization/65709
25734         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25735         TREE_TYPE (TREE_TYPE (t)).
25736
25737 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
25738
25739         PR target/65710
25740         * lra-int.h (lra_bad_spill_regno_start): New.
25741         * lra.c (lra_bad_spill_regno_start): New.
25742         (lra): Set up lra_bad_spill_regno_start.  Set up
25743         lra_constraint_new_regno_start unconditionally.
25744         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25745         spill preferences.
25746
25747 2015-04-09  Marek Polacek  <polacek@redhat.com>
25748             Jakub Jelinek  <jakub@redhat.com>
25749
25750         PR middle-end/65554
25751         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25752         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25753         of STRIP_NOPS.
25754
25755 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
25756
25757         PR rtl-optimization/65693
25758         * combine.c (is_parallel_of_n_reg_sets): Move outside of
25759         #ifndef HAVE_cc0.
25760
25761 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
25762
25763         PR target/65296
25764         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25765         device specs file if "device-specs%s" didn't resolve to a path.
25766
25767 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25768
25769         PR target/65676
25770         * config/i386/i386.c (fixup_modeless_constant): New.
25771         (ix86_expand_args_builtin): Fixup modeless constant operand.
25772         (ix86_expand_round_builtin): Ditto.
25773         (ix86_expand_special_args_builtin): Ditto.
25774         (ix86_expand_builtin): Ditto.
25775
25776 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25777
25778         PR target/65693
25779         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25780         any pow2 integer in between 2 and 0x80000000U inclusive.
25781
25782 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
25783
25784         PR rtl-optimization/65693
25785         * combine.c (is_parallel_of_n_reg_sets): Change first argument
25786         from an rtx_insn * to an rtx.
25787         (try_combine): Adjust both callers.  Use it once more.
25788
25789 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25790
25791         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25792         (chkp_make_static_const_bounds): Search existing
25793         symbol by assembler name.  Use make_decl_one_only.
25794         (chkp_get_zero_bounds_var): Remove node search which
25795         is now performed in chkp_make_static_const_bounds.
25796         (chkp_get_none_bounds_var): Likewise.
25797
25798 2015-04-08  Michael Witten  <mfwitten@gmail.com>
25799
25800         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25801         to an example.
25802
25803 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25804
25805         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25806
25807 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25808
25809         * doc/extend.texi (__sync Builtins): Fix grammar.
25810
25811 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25812
25813         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25814
25815 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25816
25817         * varasm.c (emit_local): Move definition of align.
25818
25819 2015-04-08  Julian Brown  <julian@codesourcery.com>
25820
25821         * config/nvptx/mkoffload.c (process): Support variable mapping.
25822
25823 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
25824
25825         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25826         alpha_links **.
25827         (alpha_write_one_linkage): Correct typo.
25828
25829 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25830
25831         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25832
25833 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25834
25835         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25836
25837 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25838
25839         * tree-chkp.h (chkp_insert_retbnd_call): New.
25840         * tree-chkp.c (chkp_insert_retbnd_call): New.
25841         * ipa-split.c (insert_bndret_call_after): Remove.
25842         (split_function): Use chkp_insert_retbnd_call.
25843         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25844         bounds for instrumented functions.
25845
25846 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
25847
25848         PR ipa/65540
25849         * calls.c (initialize_argument_information): When producing tail
25850         call also turn SSA_NAMES passed by references to original PARM_DECLs
25851
25852 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
25853
25854         PR target/65648
25855         * lra-remat.c (do_remat): Process input and non-input insn
25856         registers separately.
25857
25858 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25859
25860         PR debug/65678
25861         * valtrack.c (debug_lowpart_subreg): New function.
25862         (dead_debug_insert_temp): Use it.
25863
25864         PR middle-end/65680
25865         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25866         into signed HOST_WIDE_INT the same as negative bit_offset.
25867
25868 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
25869
25870         * ipa-comdats.c (ipa_comdats): Visit all thunks
25871         to set proper comdat group.
25872
25873 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25874
25875         PR target/65489
25876         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25877         on constants for NEON VSTRUCT modes.
25878
25879 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25880             Iain Sandoe  <iain@codesourcery.com>
25881
25882         PR target/65351
25883         * configure: Regenerate.
25884
25885 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25886
25887         PR target/65614
25888         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25889         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25890         that LFD is used to load double constants instead of LFS.  Add
25891         defaults for all costs structures.  Add comments for missing
25892         initialization fields.
25893         (size32_cost): Likewise.
25894         (size64_cost): Likewise.
25895         (rs64a_cost): Likewise.
25896         (mpccore_cost): Likewise.
25897         (ppc403_cost): Likewise.
25898         (ppc405_cost): Likewise.
25899         (ppc440_cost): Likewise.
25900         (ppc476_cost): Likewise.
25901         (ppc601_cost): Likewise.
25902         (ppc603_cost): Likewise.
25903         (ppc604_cost): Likewise.
25904         (ppc604e_cost): Likewise.
25905         (ppc620_cost): Likewise.
25906         (ppc630_cost): Likewise.
25907         (ppccell_cost): Likewise.
25908         (ppc750_cost): Likewise.
25909         (ppc7450_cost): Likewise.
25910         (ppc8540_cost): Likewise.
25911         (ppce300c2c3_cost): Likewise.
25912         (ppce500mc_cost): Likewise.
25913         (ppce500mc64_cost): Likewise.
25914         (ppce5500_cost): Likewise.
25915         (ppce6500_cost): Likewise.
25916         (titan_cost): Likewise.
25917         (power4_cost): Likewise.
25918         (power6_cost): Likewise.
25919         (power7_cost): Likewise.
25920         (power8_cost): Likewise.
25921         (ppca2_cost): Likewise.
25922         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25923
25924         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25925         instead of XXLOR to copy SFmode to clear out dirty bits created
25926         when SFmode denormals are generated.
25927         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25928         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25929
25930 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25931
25932         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25933         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25934         * config/aarch64/aarch64-tune.md: Regenerate.
25935
25936 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25937
25938         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
25939         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
25940         * config/arm/arm-cores.def (exynos-m1): New core.
25941         * config/arm/arm-tune.md: Regenerate.
25942         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
25943         * config/arm/bpabi.h: Likewise.
25944
25945 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25946
25947         * ipa-cp (set_single_call_flag): Remove too
25948         restrictive assert.
25949
25950 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
25951
25952         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
25953         GOMP_offload_unregister from the destructor.
25954
25955 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25956
25957         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
25958         flags for instrumentation thunk.
25959         (chkp_produce_thunks): Likewise.
25960
25961 2015-04-05  Martin Liska  <mliska@suse.cz>
25962
25963         PR ipa/65665
25964         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
25965         has computed data structure.
25966         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25967
25968 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
25969
25970         * invoke.texi (inline-unit-growth): Increase growth to 20%
25971         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
25972
25973 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
25974
25975         PR target/65647
25976         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
25977         value checking.
25978         (lra_rematerialization_iter): New.
25979         * lra.c (lra): Initialize lra_rematerialization_iter.
25980         Stop updating lra_constraint_new_regno_start after switching of
25981         inheritance and rematerialization.
25982         * lra-remat.c (lra_rematerialization_iter): New.
25983         (lra_remat): Add printing pass iteration.  Do rematerialization
25984         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
25985
25986 2015-04-04  Richard Biener  <rguenther@suse.de>
25987
25988         PR tree-optimization/64909
25989         PR tree-optimization/65660
25990         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
25991         to take a cost vector for scalar iteration cost.
25992         (vect_get_single_scalar_iteration_cost): Likewise.
25993         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
25994         Compute the scalar iteration cost into a cost vector.
25995         (vect_get_known_peeling_cost): Use the scalar cost vector to
25996         account for the cost of the peeled iterations.
25997         (vect_estimate_min_profitable_iters): Likewise.
25998         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25999         Likewise.
26000
26001 2015-04-04  Alan Modra  <amodra@gmail.com>
26002
26003         PR target/65576
26004         PR target/65240
26005         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26006         0.0 constant unless TARGET_VSX.
26007         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26008         alternative.
26009
26010 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26011
26012         PR ipa/65654
26013         * ipa-inline-transform.c (inline_call): Skip sanity check to work
26014         around the ICE
26015
26016 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26017
26018         PR ipa/65655
26019         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26020         speculative indirect edges to avoid ordering issue.
26021
26022 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26023
26024         PR ipa/65076
26025         * ipa-inline.c (edge_badness): Add combined size to the denominator.
26026
26027 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
26028
26029         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26030         TYPE_ARTIFICIAL on the .omp_data* types.
26031
26032 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26033
26034         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26035         instrumentation thunks.
26036
26037 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26038
26039         * config/i386/i386.c (ix86_expand_call): Avoid nested
26040         PARALLEL in returned call value.
26041
26042 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26043
26044         * lto-cgraph.c (input_cgraph_1): Always link instrumented
26045         assembler name with original one.
26046
26047 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26048
26049         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26050
26051 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26052
26053         Revert parts of r216820.
26054         * config/i386/i386.md (movqi_internal): Correct type calculation
26055         for alternatives 3 and 5.
26056
26057 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
26058
26059         PR preprocessor/61977
26060         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26061         predefine __vector/__bool/__pixel macros nor context sensitive
26062         macros for CLK_ASM.
26063         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26064
26065 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
26066
26067         * config/pa/pa.c (pa_output_move_double): Directly handle register
26068         indexed memory operand.  Simplify handling of scaled register indexed
26069         memory operands.
26070
26071 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26072
26073         PR driver/65444
26074         * config/i386/linux-common.h (MPX_SPEC): New.
26075         (CHKP_SPEC): Add MPX_SPEC.
26076         * doc/invoke.texi (-fcheck-pointer-boudns): Document
26077         possible issues with '-z bndplt' support in linker.
26078
26079 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26080
26081         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26082         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26083         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26084         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26085         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26086
26087 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
26088
26089         * config/i386/sync.md (UNSPEC_MOVA): Remove.
26090         (atomic_load<mode>): Change operand 0 predicate to
26091         nonimmediate_operand and fix up the destination when needed.
26092         Use UNSPEC_LDA.
26093         (atomic_loaddi_fpu): Use UNSPEC_LDA.
26094         (atomic_store<mode>): Change operand 1 predicate to
26095         nonimmendate_operand and move the source to register when needed.
26096         Use UNSPEC_STA.
26097         (atomic_store<mode>_1): Use UNSPEC_STA.
26098         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26099         Fix moves from memory operand.  Use UNSPEC_STA.
26100
26101 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26102
26103         * expmed.c (strict_volatile_bitfield_p): Check that the access will
26104         not cross a MODESIZE boundary.
26105         (store_bit_field, extract_bit_field): Added assertions in the
26106         strict volatile bitfields code path.
26107
26108 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26109
26110         PR target/65624
26111         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26112         Increase args array size by one to avoid buffer overflow.
26113
26114 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
26115
26116         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26117         split_part.
26118         * ipa-inline.c (edge_badness): Add wrapper penalty.
26119         (sum_callers): Move up.
26120         (inline_small_functions): Set single_caller.
26121         * ipa-inline.h (inline_summary): Add single_caller.
26122         * ipa-split.c (split_function): Set split_part.
26123         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26124         * cgraph.h (cgraph_node): Add split_part.
26125
26126 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
26127
26128         PR target/58945
26129         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26130         Do not split operands 0 and operands 2 to halfmode.
26131         (atomic_compare_and_swap<mode>): Update for
26132         atomic_compare_and_swap<dwi>_doubleword changes.
26133
26134 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
26135
26136         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26137         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26138         no caching is done.
26139
26140 2015-03-31  Martin Liska  <mliska@suse.cz>
26141
26142         PR ipa/65557
26143         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26144         has already filled up function summary.
26145         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26146
26147 2015-03-31  Richard Biener  <rguenther@suse.de>
26148
26149         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26150         of types.
26151
26152 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26153
26154         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26155         nested functions.
26156         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26157         (s390_asm_output_function_label): Adapt to new signature of
26158         s390_function_num_hotpatch_hw
26159         Optimise the code generating assembler output.
26160         Add comments to assembler file.
26161
26162 2015-03-31  Richard Biener  <rguenther@suse.de>
26163
26164         PR middle-end/65626
26165         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26166         of the noreturn call so it is last and cleanup_control_flow_bb
26167         can do the CFG part.
26168
26169 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
26170
26171         PR target/65531
26172         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26173         same_comdat_group for external symbols.
26174         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26175         infinite same_comdat_group traversal loop.
26176
26177 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
26178
26179         PR plugins/61176
26180         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26181         automatically to $headers.
26182
26183 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
26184
26185         PR ipa/65610
26186         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26187         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26188         function.
26189         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26190         Use it.
26191         * ipa-prop.c (param_type_may_change_p): Likewise.
26192         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26193         (remove_unused_scope_block_p): Add in_ctor_dtor_block
26194         argument.  Before inlining, preserve
26195         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26196         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
26197         recursive calls.
26198         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26199
26200 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26201
26202         PR ipa/65076
26203         * ipa-inline.c (edge_badness): Base denominator on callee's
26204         grwoth squared.
26205
26206 2015-03-27  Martin Jambor  <mjambor@suse.cz>
26207
26208         PR ipa/65478
26209         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26210         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26211         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26212         node_calling_single_call.
26213         * ipa-cp.c (count_callers): New function.
26214         (set_single_call_flag): Likewise.
26215         (initialize_node_lattices): Count callers and set single_flag_call if
26216         necessary.
26217         (incorporate_penalties): New function.
26218         (good_cloning_opportunity_p): Use it, dump new flags.
26219         (propagate_constants_topo): Set node_within_scc flag if appropriate.
26220         * doc/invoke.texi (ipa-cp-recursion-penalty,
26221         ipa-cp-single-call-pentalty): Document.
26222
26223 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26224
26225         PR ipa/65588
26226         * symtab.c (symtab_node::get_partitioning_class): Register vars
26227         are duplicated.
26228         * varpool.c (symbol_table::output_variables) Do not assemble unefined
26229         decls for non-symbols.
26230
26231 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26232
26233         PR target/65248
26234         * output.h (default_binds_local_p_2): New.
26235         * varasm.c (default_binds_local_p_2): Renamed to ...
26236         (default_binds_local_p_3): This.  Don't return true on protected
26237         data symbol if protected data may be external.
26238         (default_binds_local_p): Use default_binds_local_p_3.
26239         (default_binds_local_p_1): Likewise.
26240         (default_binds_local_p_2): New.
26241         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
26242         default_binds_local_p_2 if TARGET_MACHO is undefined.
26243
26244 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
26245
26246         PR target/65593
26247         * config/i386/i386.c (legitimize_pic_address): If base
26248         is SYMBOL_REF or LABEL_REF using %rip addressing, force
26249         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
26250
26251 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26252
26253         PR target/65531
26254         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
26255         comdat groups.
26256
26257 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26258
26259         PR ipa/65600
26260         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26261         of optimized out indirect call.
26262         (redirect_to_unreachable): Always build symbol table node for
26263         BUILT_IN_UNREACHABLE
26264
26265 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26266
26267         PR target/65407
26268         * ira-costs.c (record_reg_classes): Process all constraint string
26269         containing 0-9.
26270
26271 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
26272
26273         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26274         memory_operand.
26275
26276         PR target/65052
26277         * config/c6x/constraints.md (S3): New constraint.
26278         * config/c6x/c6x.md (real_jump): Use it.
26279
26280 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26281
26282         PR middle-end/65595
26283         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26284         do redirection if the call is not optimized out.
26285
26286 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
26287
26288         PR target/65495
26289         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26290         (fchkp-check-incomplete-type): Add LTO.
26291         (fchkp-zero-input-bounds-for-main): Likewise.
26292         (fchkp-first-field-has-own-bounds): Likewise.
26293         (fchkp-narrow-bounds): Likewise.
26294         (fchkp-narrow-to-innermost-array): Likewise.
26295         (fchkp-use-static-bounds): Likewise.
26296         (fchkp-use-static-const-bounds): Likewise.
26297         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26298
26299 2015-03-27  Marek Polacek  <polacek@redhat.com>
26300
26301         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26302
26303 2015-03-27  Marek Polacek  <polacek@redhat.com>
26304
26305         PR sanitizer/65583
26306         * ubsan.c (ubsan_create_edge): New function.
26307         (instrument_bool_enum_load): Call it.
26308         (instrument_nonnull_arg): Likewise.
26309         (instrument_nonnull_return): Likewise.
26310         (instrument_object_size): Likewise.
26311
26312 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26313
26314         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26315         auto_vec.
26316
26317 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26318
26319         PR lto/65536
26320         * lto-streamer.h (class lto_location_cache): New.
26321         (struct data_in): Add location_cache.
26322         (lto_input_location): Update prototype.
26323         (stream_input_location_now): New.
26324         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26325         pointer to location.
26326         (stream_input_location): Update.
26327         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26328         (warn_odr): Apply location cache before warning.
26329         (lto_input_location): Update prototype.
26330         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26331         Use stream_input_location_now.
26332         * lto-streamer-in.c (lto_location_cache::current_cache): New static
26333         variable.
26334         (lto_location_cache::cmp_loc): New function.
26335         (lto_location_cache::apply_location_cache): New function.
26336         (lto_location_cache::accept_location_cache): New function.
26337         (lto_location_cache::revert_location_cache): New function.
26338         (lto_location_cache::input_location): New function.
26339         (lto_input_location): Do location caching.
26340         (stream_input_location_now): New function.
26341         (input_eh_region, input_struct_function_base): Use
26342         stream_input_location_now.
26343         (lto_data_in_create): use new.
26344         (lto_data_in_delete): Use delete.
26345         * tree-streamer-in.c (unpack_ts_block_value_fields,
26346         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26347         lto_input_ts_exp_tree_pointers): Update for cached location api.
26348
26349 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26350
26351         PR ipa/65076
26352         * passes.def: Add pass_nothrow.
26353         * ipa-pure-const.c: (pass_data_nothrow): New.
26354         (pass_nothrow): New.
26355         (pass_nothrow::execute): New.
26356         (make_pass_nothrow): New.
26357         * tree-pass.h (make_pass_nothrow): Declare.
26358
26359 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26360
26361         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26362         edge to change by speculation resolution or redirection.
26363         (edge_set_predicate): Likewise.
26364         (inline_summary_t::duplicate): Likewise.
26365         (remap_edge_summaries): Likewise.
26366
26367 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26368
26369         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26370         New macros.
26371         (can_inline_edge_p): Relax option matching for always inline functions.
26372
26373 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
26374
26375         PR target/65561
26376         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26377         Check operand 4 and operand 0 for equality.
26378         (avx512f_vextract<shuffletype>32x4_1_maskm):
26379         Check operand 6 and operand 0 for equality.
26380         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26381         for equality.
26382         (vec_extract_hi_<mode>_maskm): Ditto.
26383
26384 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26385
26386         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26387         dead calls back to live.
26388         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26389         cross check to ...
26390         (cgraph_node::verify_node): ... here; verify only callee edges,
26391         not caller.
26392         * cif-code.def (CILK_SPAWN): New code.
26393
26394 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26395
26396         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26397         (edge_set_predicate): Use it to mark unreachable edges.
26398         (inline_summary_t::duplicate): Remove unnecesary code.
26399         (remap_edge_summaries): Likewise.
26400         (dump_inline_summary): Report contains_cilk_spawn.
26401         (compute_inline_parameters): Compute contains_cilk_spawn.
26402         (inline_read_section, inline_write_summary): Stream
26403         contains_cilk_spawn.
26404         * ipa-inline.c (can_inline_edge_p): Do not touch
26405         DECL_STRUCT_FUNCTION that may not be available;
26406         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26407         remove check for callee_fun->can_throw_non_call_exceptions and
26408         replace it by optimization attribute check; check for flag_exceptions.
26409         * ipa-inline-transform.c (inline_call): Maintain
26410         DECL_FUNCTION_PERSONALITY
26411         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26412
26413 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26414
26415         PR tree-optimization/65551
26416         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26417         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26418
26419 2015-03-26  Richard Biener  <rguenther@suse.de>
26420
26421         PR middle-end/65555
26422         * tree-cfg.c (verify_gimple_call): Do not require a call to
26423         have no LHS if it wasn't recognized as control altering yet.
26424
26425 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26426
26427         PR tree-optimization/64715
26428         * passes.def: Add another instance of pass_object_sizes before ccp1.
26429         * tree-object-size.c (pass_object_sizes::execute): In
26430         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26431         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26432         __bos result and the computed constant.  Remove redundant
26433         checks, obsoleted by gimple_call_builtin_p test.
26434
26435         * var-tracking.c (variable_tracking_main_1): Don't track
26436         variables for targetm.no_register_allocation targets.
26437
26438 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
26439
26440         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26441         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26442
26443 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26444
26445         PR target/65569
26446         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26447         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
26448         0.0 is correctly setup.
26449         (extenddftf2_internal): Likewise.
26450
26451 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
26452
26453         PR tree-optimization/65177
26454         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26455         (bb_in_bbs): New.
26456         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
26457         edges not adjacent on the path to the original code.
26458
26459 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
26460
26461         PR bootstrap/65537
26462         * doc/install.texi (Building a native compiler): Document new
26463         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
26464         configuration assumes that the host supports the linker plugin.
26465
26466 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26467
26468         PR target/65508
26469         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26470         chain for generated call.
26471
26472 2015-03-25  Richard Biener  <rguenther@suse.de>
26473
26474         * passes.c (pass_manager::execute_early_local_passes): Guard
26475         execution of pass_chkp_instrumentation_passes with
26476         flag_check_pointer_bounds.
26477         (pass_chkp_instrumentation_passes::gate): Likewise.
26478
26479 2015-03-25  Martin Liska  <mliska@suse.cz>
26480
26481         PR tree-optimization/65538
26482         * symbol-summary.h (function_summary::~function_summary):
26483         Relese memory for allocated summaries.
26484         (function_summary::release): New function.
26485
26486 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
26487
26488         PR lto/65515
26489         * lto-streamer-out.c (DFS::worklist): New struct.
26490         (DFS::worklist_vec): New data member.
26491         (DFS::next_dfs_num): Remove.
26492         (DFS::DFS): Rewritten using worklist instead of recursion,
26493         using most of code from DFS::DFS_write_tree.
26494         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26495         pass it to DFS_write_tree calls.
26496         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26497         quick initial checks push it into worklist_vec and return.
26498
26499 2015-03-25  Richard Biener  <rguenther@suse.de>
26500
26501         PR middle-end/65519
26502         * genmatch.c (expr::gen_transform): Re-write to avoid
26503         using gimple_build.
26504
26505 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26506
26507         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26508
26509 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26510
26511         * config/arm/arm.opt (print_tune_info): New option.
26512         * config/arm/arm.c (arm_print_tune_info): New function.
26513         (arm_file_start): Call arm_print_tune_info.
26514         * config/arm/arm-protos.h (struct tune_params): Add comment.
26515         * doc/invoke.texi (@item -mprint-tune-info): New item.
26516         (-mtune): mention it in ARM Option Summary.
26517
26518 2015-03-25  DJ Delorie  <dj@redhat.com>
26519
26520         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26521         correct clause.
26522
26523 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
26524             Martin Liska  <mliska@suse.cz>
26525
26526         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26527         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26528         (sem_item::add_type): New function.
26529         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26530         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26531         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26532         (sem_function::equals_wpa): Fix typo.
26533         * ipa-icf.h (sem_item::add_type): New function.
26534         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26535         order.
26536
26537 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
26538
26539         PR tree-optimization/65533
26540         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26541         with swapped operands, call vect_free_slp_tree on
26542         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26543         vector.
26544
26545 2015-03-24  Richard Biener  <rguenther@suse.de>
26546
26547         PR middle-end/65517
26548         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26549         for fixup if necessary.
26550
26551 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
26552
26553         * doc/extend.texi (Function Attributes): Add @cindex entries
26554         for all attributes and regularize their format.  Delete text
26555         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
26556         information about "eightbit_data", "tiny_data", and "model"
26557         variable attributes to the Variable Attributes section.  Fix
26558         some obvious typos and copy-editing issues.
26559         (Variable Attributes, Type Attributes): Likewise add/fix
26560         @cindex entries for all attributes.
26561
26562 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26563
26564         PR target/65523
26565         * tree-chkp.c (chkp_build_returned_bound): Ignore
26566         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26567
26568 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
26569
26570         PR target/65505
26571         * config/sh/predicates.md (simple_mem_operand,
26572         displacement_mem_operand): Add test for reg.
26573         (short_displacement_mem_operand): Test for displacement_mem_operand
26574         before invoking sh_disp_addr_displacement.
26575         * config/sh/constraints.md (Sdd, Sra): Simplify.
26576         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26577         Remove redundant displacement_mem_operand tests.
26578
26579 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
26580
26581         PR target/65296
26582         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26583         the same -mmcu=MCU more than once.
26584
26585 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26586
26587         PR bootstrap/65522
26588         * ipa-devirt.c: Remove duplicate demangle.h include.
26589
26590         PR target/65504
26591         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26592         on the pseudo.
26593         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26594         REG_POINTER on *destptr after adjusting it for prologue size.
26595
26596         PR ipa/65521
26597         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26598         ultimate_alias_target ()->order ints instead of
26599         ultimate_alias_target () pointers.
26600
26601 2015-03-23  Richard Biener  <rguenther@suse.de>
26602
26603         PR tree-optimization/65518
26604         * tree-vect-stmts.c (vectorizable_load): Reject single-element
26605         interleaving cases we generate absymal code for.
26606
26607 2015-03-23  Richard Biener  <rguenther@suse.de>
26608
26609         PR tree-optimization/65494
26610         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26611         matches here.
26612         (vect_analyze_slp_instance): But do that here, always and once.
26613
26614 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26615
26616         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26617         adding T or multiplying by T+1 and subracting T.
26618
26619 2015-03-22  Jeff Law  <law@redhat.com>
26620
26621         PR rtl-optimization/64317
26622         * Makefile.in (OBJS): Add gcse-common.c
26623         * gcse.c: Include gcse-common.h
26624         (struct modify_pair_s): Move structure definition to gcse-common.h
26625         (compute_transp): Move function to gcse-common.c.
26626         (canon_list_insert): Similarly.
26627         (record_last_mem_set_info): Break out some code and put it into
26628         gcse-common.c.  Call into the new common code.
26629         (compute_local_properties): Pass additional arguments to compute_transp.
26630         * postreload-gcse.c: Include gcse-common.h and df.h
26631         (modify_mem_list_set, blocks_with_calls): New variables.
26632         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26633         (get_bb_avail_insn): Pass in the expression index too.
26634         (alloc_mem): Allocate memory for the new bitmaps and lists.
26635         (free_mem): Free memory for the new bitmaps and lists.
26636         (insert_expr_in_table): Record a bitmap index for each entry we
26637         add to the table.
26638         (record_last_mem_set_info): Call into common code in gcse-common.c.
26639         (get_bb_avail_insn): If no available insn was found in the requested
26640         BB.  If BB has a single predecessor, see if the expression is
26641         transparent in BB and available in that single predecessor.
26642         (compute_expr_transp): New wrapper for compute_transp.
26643         (eliminate_partially_redundant_load): Pass expression's bitmap_index
26644         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
26645         (gcse_after_reload_main): If there are elements in the hash table,
26646         then compute transparency for all the elements in the hash table.
26647         * gcse-common.h: New file.
26648         * gcse-common.c: New file.
26649
26650 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
26651
26652         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26653         as an adjective.
26654         (System Headers): Likewise.
26655         (Ifdef): Likewise.
26656         (Traditional macros): Likewise.
26657         (Invocation): Likewise.
26658         (Option Index): Likewise.
26659         * doc/cppopts.texi (-M): Likewise.
26660         (-finput-charset): Likewise.
26661         (--help): Likewise.
26662         * doc.invoke.texi (AVR Options): Likewise.
26663         (V850 Options): Likewise.
26664
26665 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
26666
26667         PR ipa/65475
26668         * ipa-devirt.c: Include demangle.h
26669         (odr_type_d): Add field rtti_broken.
26670         (odr_subtypes_equivalent_p): Do not require name to match.
26671         (compare_virtual_tables): Fix typo; if type already has ODR violation,
26672         bypass the tests; be ready for function referneces in vtables that are
26673         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26674         (warn_odr): Give up for nameless types.
26675         (warn_types_mismatch): Report mismatch in mangled names;
26676         report mismatch in anonymous namespaces; look into component types to
26677         give useful error; report when mismatch is dragged in from other ODR
26678         type.
26679         (odr_types_equivalent_p): Match types for being polymorphic; avoid
26680         duplicated diagnostics.
26681         (add_type_duplicate): Reorder checks so more informative ones come
26682         first; fix typo; do not output "the extra base is defined here" when
26683         we did not warn.
26684         (BINFO_N_BASE_BINFOS): Relax sanity check.
26685
26686 2015-03-22  Martin Liska  <mliska@suse.cz>
26687             Jakub Jelinek  <jakub@redhat.com>
26688
26689         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26690         masks that can potentially include a builtin.
26691         (ix86_add_new_builtins): Introduce fast filter for isa values
26692         that cannot trigger builtin inclusion.
26693
26694 2015-03-22  Martin Liska  <mliska@suse.cz>
26695
26696         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26697         (sem_item::update_hash_by_local_refs): Likewise.
26698         (sem_variable::get_hash): Empty line is fixed.
26699         (sem_item_optimizer::execute): Include adding of hash references.
26700         (sem_item_optimizer::update_hash_by_addr_refs): New function.
26701         (sem_item_optimizer::build_hash_based_classes): Use local hash.
26702         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26703         (sem_item::update_hash_by_local_refs): Likewise.
26704
26705 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26706
26707         PR ipa/65502
26708         * ipa-comdats.c (enqueue_references): Walk through thunks.
26709         (ipa_comdats): Likewise.
26710         (set_comdat_group_1): New function.
26711
26712 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26713
26714         PR ipa/65475
26715         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26716         non-polymorphic
26717
26718 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26719             Gerald Pfeifer  <gerald@pfeifer.com>
26720
26721         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26722
26723 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26724             Sandra Loosemore  <sandra@codesourcery.com>
26725
26726         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26727         function parameter declaration.
26728         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26729         Update arguments to nios2_adjust_call_address().
26730         (sibcall_internal): Rename from *sibcall.
26731         (sibcall_value_internal): Rename from *sibcall_value.
26732         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26733         (nios2_large_got_address): Add target temp reg parameter.
26734         (nios2_got_address): Adjust call to nios2_large_got_address, add
26735         force_reg around it.
26736         (nios2_load_pic_address): Add target temp reg parameter, replace call
26737         to nios2_got_address with corresponding code.
26738         (nios2_legitimize_constant_address): Update call to
26739         nios2_load_pic_address.
26740         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26741         to use temp reg for PIC loading purposes.
26742         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26743         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26744         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26745
26746 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26747
26748         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26749         usage of "the @option{...}".
26750         (-Wopenmp-simd): Likewise.
26751         (-fsanitize-recover): Likewise.
26752         (-fsanitize-undefined-trap-on-error): Likewise.
26753         (-flto): Likewise.
26754         (tracer-dynamic-coverage-feedback): Likewise.
26755         (reorder-block-duplicate-feedback): Likewise.
26756         (loop-unroll-jam-size): Likewise.
26757         (-B): Likewise.
26758         (-I-): Likewise.
26759         (-mabs=legacy): Likewise.
26760         (-mupper-regs-df): Likewise.
26761         (-mupper-regs-sf): Likewise.
26762         (-mpointers-to-nested-functions): Likewise.
26763
26764 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26765
26766         * doc/extend.texi (Cilk Plus Builtins): Add markup.
26767
26768 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26769
26770         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26771         additional index entries and cross-references.
26772         (-fchkp-check-incomplete-type): Likewise.
26773         (-fchkp-first-field-has-own-bounds): Likewise.
26774         (-fchkp-narrow-to-innermost-array): Likewise.
26775         (-fchkp-use-fast-string-functions): Likewise.
26776         (-fchkp-use-nochk-string-functions): Likewise.
26777         (-fchkp-use-static-const-bounds): Likewise.
26778         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26779         (-fchkp-instrument-marked-only): Likewise.
26780         (-fchkp-use-wrappers): Likewise.
26781         (-static-libmpx): Likewise.
26782         (-static-libmpxwrappers): Likewise.
26783         * doc/extend.texi (bnd_legacy): Likewise.
26784         (bnd_instrument): Likewise.
26785         (bnd_variable_size): Likewise.
26786         (Pointer Bounds Checker builtins): Likewise.
26787
26788 2015-03-21  Tom de Vries  <tom@codesourcery.com>
26789
26790         PR tree-optimization/65458
26791         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26792         * cgraph.h (cgraph_node): Add parallelized_function field.
26793         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26794         (input_overwrite_node): Read parallelized_function field.
26795         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26796         parallelized_function on cgraph_node for child_fn.
26797         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26798         Remove include of gt-tree-parloops.h.
26799         (parallelized_functions): Remove static variable.
26800         (parallelized_function_p): Rewrite using parallelized_function field of
26801         cgraph_node.
26802         (create_loop_fn): Remove adding to parallelized_functions.
26803         * Makefile.in (GTFILES): Remove tree-parloops.c
26804
26805 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
26806
26807         PR rtl-optimization/64366
26808         * lra.c (lra_update_insn_regno_info): Consider regs in
26809         CALL_INSN_FUNCTION_USAGE memory.
26810
26811 2015-03-20  Richard Biener  <rguenther@suse.de>
26812
26813         PR middle-end/64715
26814         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26815         for type comparison and gcc_checking_assert.
26816         (chrec_fold_plus_poly_poly): Likewise.
26817         (chrec_fold_multiply_poly_poly): Likewise.
26818         (chrec_convert_1): Likewise.
26819         * gimplify.c (gimplify_expr): Remove premature folding of
26820         &X + CST to &MEM[&X, CST].
26821
26822 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26823
26824         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26825         already is final.
26826         (ipa_inline): Recompute inline_failed codes.
26827         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26828         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26829         CIF_FINAL_ERROR.
26830
26831 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
26832
26833         PR rtl-optimization/60851
26834         * recog.c (constrain_operands): Accept a pseudo register before reload
26835         for LRA enabled targets.
26836
26837 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
26838
26839         PR target/65240
26840         * config/rs6000/predicates.md (easy_fp_constant): Remove special
26841         -ffast-math handling that kept non-0 constants live in the RTL
26842         until reload.  Remove logic testing the number of instructions it
26843         took to create a constant in a GPR that was never used, due to a
26844         test for soft-float earlier.
26845         (memory_fp_constant): Delete, no longer used.
26846
26847         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26848         alternatives for loading non-0 constants into GPRs for hard
26849         floating point that is no longer needed due to changes in
26850         easy_fp_constant.  Add support for loading 0.0 into GPRs.
26851         (mov<mode>_hardfloat32): Likewise.
26852         (mov<mode>_hardfloat64): Likewise.
26853         (mov<mode>_64bit_dm): Likewise.
26854         (movtd_64bit_nodm): Likewise.
26855         (pre-reload move FP constant define_split): Delete define_split,
26856         since it is no longer used.
26857         (extenddftf2_internal): Remove GHF constraints that are not valid
26858         for extenddftf2.
26859
26860 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
26861
26862         PR rtl-optimization/63491
26863         * lra-constraints.c (check_and_process_move): Use src instead of
26864         sreg.  Remove some dead code.
26865
26866 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
26867
26868         PR ipa/65380
26869         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26870         (sem_variable::merge): Likewise.
26871
26872 2015-03-19  Martin Liska  <mliska@suse.cz>
26873
26874         PR ipa/65465
26875         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26876         all fields of cgraph_thunk_info.
26877
26878 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
26879
26880         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26881         clone instrumented thunks.
26882
26883 2015-03-19  Richard Biener  <rguenther@suse.de>
26884
26885         Revert
26886         2015-03-10  Richard Biener  <rguenther@suse.de>
26887
26888         PR middle-end/63155
26889         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26890         * tree-ssa-coalesce.c: Include timevar.h.
26891         (attempt_coalesce): Handle graph being NULL.
26892         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26893         Split out abnormal coalescing to ...
26894         (perform_abnormal_coalescing): ... this function.
26895         (coalesce_ssa_name): Perform abnormal coalescing without computing
26896         live/conflict.
26897         (verify_ssa_coalescing_worker): New function.
26898         (verify_ssa_coalescing): Likewise.
26899
26900 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26901             Jakub Jelinek  <jakub@redhat.com>
26902
26903         PR sanitizer/65400
26904         * tsan.c (instrument_gimple): Clear tail call flag on
26905         calls.
26906
26907 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
26908
26909         PR sanitizer/65400
26910         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26911         call in the return bb.
26912         (find_split_points): Add RETURN_BB argument, don't call
26913         find_return_bb.
26914         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
26915         if true append TSAN_FUNC_EXIT internal call after the call to
26916         the split off function.
26917         (execute_split_functions): Call find_return_bb here.
26918         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26919         Adjust find_split_points and split_function calls.
26920
26921 2015-03-18  DJ Delorie  <dj@redhat.com>
26922
26923         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26924         (iorqi3_virt): Likewise.
26925
26926 2015-03-18  Tom de Vries  <tom@codesourcery.com>
26927
26928         * tree-parloops.c (parallelize_loops): Make static.
26929         * tree-parloops.h (parallelize_loops): Remove extern declaration.
26930
26931 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
26932
26933         PR middle-end/64491
26934         Revert:
26935         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
26936
26937         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
26938         condition would be removed due to undefined behaviour.
26939
26940 2015-03-18  Martin Liska  <mliska@suse.cz>
26941
26942         PR ipa/65432
26943         * cgraph.c (cgraph_node::get_create): Remove unnecessary
26944         xstrdup_for_dump wrapper.
26945         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
26946         sem_item::name.
26947         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
26948         with xstrdup_for_dump.
26949         (sem_variable::equals): Likewise.
26950         (sem_item_optimizer::read_section): Use symtab_node::name instead of
26951         sem_item::name.
26952         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
26953         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
26954         symtab_node::asm_name with xstrdup_for_dump.
26955         (congruence_class::dump): Use symtab_node::name instead of
26956         sem_item::name.
26957         * ipa-icf.h (symtab_node::name): Remove.
26958         (symtab_node::asm_name): Likewise.
26959
26960 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26961
26962         PR tree-optimization/65450
26963         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
26964         function.
26965         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
26966         it instead of duplicate_ssa_name_ptr_info.
26967
26968         PR target/65222
26969         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
26970
26971 2015-03-18  Richard Biener  <rguenther@suse.de>
26972
26973         * tree-data-ref.h (struct access_matrix): Remove.
26974         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
26975         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
26976         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
26977         (am_vector_index_for_loop): Likewise.
26978         (struct data_reference): Remove access_matrix member.
26979         (DR_ACCESS_MATRIX): Remove.
26980         (lambda_vector_new): Add comment.
26981         (lambda_matrix_new): Use XOBNEWVEC.
26982
26983 2015-03-18  Richard Biener  <rguenther@suse.de>
26984
26985         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
26986         (pass_ch::execute): Cleanup the CFG only if we did sth.
26987         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
26988
26989 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26990
26991         * expmed.c (synth_mult): Use std::swap instead of manually
26992         swapping algorithms.
26993
26994 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26995
26996         PR target/65078
26997         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
26998
26999 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
27000
27001         PR target/65296
27002         * config/avr/avr.opt (-nodevicelib): New option.
27003         * doc/invoke.texi (AVR Options): Document it.
27004         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27005         libgcc.a, libc.a, libm.a.
27006         * config/avr/specs.h: Same.
27007         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27008         which don't (directly) depend on the device.  Print more help.
27009         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27010         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27011         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27012         case of an error.
27013         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27014         for specs file name.
27015         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27016         * config/avr/avr-mcus.def: Adjust initializers and comments.
27017
27018 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
27019
27020         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27021         DECL_ONE_ONLY to check if decl is one only.
27022         * ipa-split.c (consider_split): Limit splitt of one only functions.
27023
27024 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
27025
27026         PR tree-optimization/65427
27027         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27028         functions.
27029         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27030
27031 2015-03-16  Marek Polacek  <polacek@redhat.com>
27032
27033         * cgraph.h (add_new_static_var): Remove declaration.
27034         * varpool.c (add_new_static_var): Remove function.
27035
27036 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
27037
27038         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27039         instead of vec<tree> * with vec_alloc and release for args.
27040         Adjust all users.
27041
27042         PR middle-end/65431
27043         * omp-low.c (delete_omp_context): Only splay_tree_delete
27044         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27045         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
27046
27047 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
27048
27049         PR sanitizer/64820
27050         * cfgexpand.c (align_base): New function.
27051         (alloc_stack_frame_space): Call it.
27052         (expand_stack_vars): Align prev_frame to be sure
27053         data->asan_vec elements aligned properly.
27054
27055 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
27056
27057         PR middle-end/65409
27058         * expr.c (store_field): Do not do a direct block copy if the source is
27059         a PARALLEL with BLKmode.
27060
27061 2015-03-16  Tom de Vries  <tom@codesourcery.com>
27062
27063         PR middle-end/65414
27064         Revert:
27065         2015-03-12  Tom de Vries  <tom@codesourcery.com>
27066
27067         PR rtl-optimization/64895
27068         * lra-lives.c (check_pseudos_live_through_calls): Use
27069         actual_call_used_reg_set instead of call_used_reg_set, if available.
27070
27071 2015-03-16  Alan Modra  <amodra@gmail.com>
27072
27073         PR target/63150
27074         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27075         Modify Z->r bswapdi splitter to use dest in place of scratch.
27076         In r->Z and Z->r bswapdi splitter rename word_high, word_low
27077         to word1, word2 and rearrange logic to suit.
27078         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27079         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
27080         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27081         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
27082         early clobber.
27083
27084 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
27085
27086         PR tree-optimization/65369
27087         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27088         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27089         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27090
27091         PR tree-optimization/65418
27092         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27093         are casts in the first PLUS_EXPR operand, ensure tbias and
27094         *totallowp are in the inner type.
27095
27096         PR rtl-optimization/65401
27097         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27098         argument.  If true, adjust_address_nv of x with big-endian
27099         correction for the mode widening to GET_MODE (y).
27100         (make_field_assignment): Don't do MEM mode widening here.
27101         Use MEM_P instead of GET_CODE == MEM.
27102
27103 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
27104
27105         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27106         the external decls.
27107
27108 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27109
27110         PR target/64600
27111         * config/arm/arm.c (arm_gen_constant, AND case): Use
27112         ARM_SIGN_EXTEND when constructing AND mask.
27113
27114 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27115
27116         * graph.c (print_graph_cfg): Make function names visible and append
27117         parenthesis to it.  Also make groups of basic blocks belonging to the
27118         same function visible.
27119
27120 2015-03-12  Richard Biener  <rguenther@suse.de>
27121
27122         PR middle-end/44563
27123         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27124         to avoid quadratic behavior with inline expansion splitting blocks.
27125         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27126         with the successor if the predecessor will be merged with it.
27127         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27128         entry block with its successor.
27129
27130 2015-03-13  Richard Biener  <rguenther@suse.de>
27131
27132         PR middle-end/44563
27133         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27134         (cleanup_tree_cfg_1): Do not call it.
27135         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27136         (fixup_noreturn_call): Mark the stmt as control altering.
27137         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27138         here.
27139         (pass_data_fixup_cfg): Produce a dump file.
27140         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27141         (need_noreturn_fixup): New global.
27142         (pass_dominator::execute): Fixup queued noreturn calls.
27143         (optimize_stmt): Queue calls that became noreturn for fixup.
27144         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27145         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27146         (el_to_fixup): New global.
27147         (eliminate_dom_walker::before_dom_childre): Queue calls that
27148         became noreturn for fixup.
27149         (eliminate): Fixup queued noreturn calls.
27150         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27151         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27152         (substitute_and_fold_dom_walker::before_dom_children): Queue
27153         alls that became noreturn for fixup.
27154         (substitute_and_fold): Fixup queued noreturn calls.
27155
27156 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
27157
27158         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27159         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27160         are building; for methods check ODR type of class they belong to if
27161         they may lead to a polymorphic call.
27162         (sem_function::compare_polymorphic_p): Be bit smarter about testing
27163         when function may lead to a polymorphic call.
27164         (sem_function::compare_type_list): Remove.
27165         (sem_variable::equals): Update use of compatible_types_p.
27166         (sem_variable::parse_tree_refs): Remove.
27167         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27168         cdtor.
27169         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27170         matching here.
27171         (func_checker::compatible_polymorphic_types_p): Break out from ...
27172         (unc_checker::compatible_types_p): ... here.
27173         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27174         Declare.
27175         (unc_checker::compatible_types_p): Update.
27176         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27177         Remove.
27178
27179 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27180
27181         PR rtl-optimization/65235
27182         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27183         When first element of vec_concat is const_int, calculate its size
27184         using second element.
27185
27186 2015-03-12  Richard Biener  <rguenther@suse.de>
27187
27188         PR middle-end/65270
27189         * fold-const.c (operand_equal_p): Fix ordering of resetting
27190         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27191
27192 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27193
27194         * config/s390/s390.c (s390_reorg): Move code to output nops after label
27195         to s390_reorg ().
27196         (s390_asm_output_function_label): Likewise.
27197         * config/s390/s390.c (s390_asm_output_function_label):
27198         Fix function label alignment with -mhtopatch.
27199         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27200         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27201         ("nop_2_byte"): New define_insn.
27202         ("nop_4_byte"): Likewise.
27203         ("nop_6_byte"): Likewise.
27204         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27205         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27206
27207 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27208
27209         PR target/65103
27210         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27211         register.
27212
27213 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27214
27215         PR target/65044
27216         * toplev.c (process_options): Restrict Pointer Bounds Checker
27217         usage with Address Sanitizer.
27218
27219 2015-03-12  Richard Biener  <rguenther@suse.de>
27220
27221         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27222         to split on.
27223         * omp-low.c (expand_omp_taskreg): Split block before removing
27224         the stmt.
27225         (expand_omp_target): Likewise.
27226         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27227         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27228         stmt to split_block.
27229
27230 2015-03-12  Tom de Vries  <tom@codesourcery.com>
27231
27232         PR rtl-optimization/64895
27233         * lra-lives.c (check_pseudos_live_through_calls): Use
27234         actual_call_used_reg_set instead of call_used_reg_set, if available.
27235
27236 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27237
27238         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
27239         (cgraph_node::remove): Likewise.
27240         (cgraph_node::get_untransformed_body): Likewise.
27241         * varpool.c (varpool_node::remove): Likewise.
27242         (varpool_node::get_constructor): Add sanity check.
27243
27244 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
27245
27246         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
27247         old GCC versions.
27248         (-fabi-compat-version): Likewise.
27249         (-ffriend-injection): Likewise.
27250         (-Wdeclaration-after-statement): Likewise.
27251         (-fomit-frame-pointer): Likewise.
27252         (-ftree-coalesce-inlined-vars): Likewise.
27253         (-fvisibility=): Likewise.
27254         * doc/extend.texi (Typeof): Likewise.
27255         (Zero Length): Likewise.
27256         (Escaped Newlines): Likewise.
27257         (Compound Literals): Likewise.
27258         (Function Attributes): Likewise.
27259         (Label Attributes): Likewise.
27260         (Type Attributes): Likewise.
27261         (Function Names): Likewise.
27262         (Other Builtins): Likewise.
27263         (Function Specific Option Pragmas): Likewise.
27264         (C++ Interface): Likewise.
27265
27266 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
27267
27268         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27269
27270 2015-03-11  Marek Polacek  <polacek@redhat.com>
27271
27272         PR tree-optimization/65388
27273         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27274
27275 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27276
27277         PR target/65296
27278         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27279         * configure: Regenerate.
27280         * config.in: Regenerate.
27281         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27282         [-mn-flash]: Document it.
27283         [__AVR_ARCH__]: Document avrtiny.
27284
27285         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27286         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27287         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27288
27289 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27290
27291         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27292
27293 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27294
27295         PR target/65242
27296         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27297         allow reloads of PLUS in floating point/VSX registers.
27298
27299 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
27300
27301         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27302         crypto_sha256_fast.
27303         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27304
27305 2015-03-11  Richard Biener  <rguenther@suse.de>
27306
27307         PR tree-optimization/65310
27308         * tree-sra.c (build_ref_for_offset): Also preserve larger
27309         alignment.
27310
27311 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
27312
27313         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27314
27315 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27316
27317         PR target/65368
27318         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27319         new define_expand.
27320         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27321
27322 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27323
27324         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27325         (sem_function::equals_wpa): ... here.
27326
27327 2015-03-10  Marek Polacek  <polacek@redhat.com>
27328             Jakub Jelinek  <jakub@redhat.com>
27329
27330         PR sanitizer/65367
27331         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27332         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
27333         separately.
27334
27335 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27336
27337         PR target/65286
27338         * config/rs6000/t-linux: For powerpc64* target set
27339         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27340
27341 2015-03-10  Richard Biener  <rguenther@suse.de>
27342
27343         PR middle-end/44563
27344         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27345         for redirect_all_calls.
27346
27347 2015-03-10  Marek Polacek  <polacek@redhat.com>
27348
27349         * gdbinit.in (pcfun): Define and document.
27350
27351 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
27352
27353         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27354         of libgomp-plugin.h.
27355         (find_target_compiler): Support a case when the path to gcc is
27356         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27357         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27358         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27359         libgomp-plugin.h.
27360         (main): Use GCC_INSTALL_NAME as target_driver_name.
27361         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27362         define.
27363         (mkoffload.o): Remove obsolete include path and defines.
27364         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27365
27366 2015-03-10  Richard Biener  <rguenther@suse.de>
27367
27368         PR middle-end/63155
27369         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27370         * tree-ssa-coalesce.c: Include timevar.h.
27371         (attempt_coalesce): Handle graph being NULL.
27372         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27373         Split out abnormal coalescing to ...
27374         (perform_abnormal_coalescing): ... this function.
27375         (coalesce_ssa_name): Perform abnormal coalescing without computing
27376         live/conflict.
27377         (verify_ssa_coalescing_worker): New function.
27378         (verify_ssa_coalescing): Likewise.
27379
27380 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27381
27382         PR target/65296
27383         * config.gcc (extra_options) [avr]: Remove.
27384         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27385         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27386         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27387
27388         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27389         (-mmcu=): Add Var and MissingArgError properties.
27390         (-march=): Remove.
27391         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27392         * config/avr/t-multilib: Regenerate.
27393         * config/avr/specs.h: New file.
27394         * config/avr/driver-avr.c: New file.
27395         * config/avr/genopt.sh: Remove file.
27396         * config/avr/avr-tables.opt: Remove file.
27397         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27398         * config/avr/avr-c.c: Same.
27399         * avr-arch.h: Same.
27400         (avr_current_device): Remove proto.
27401         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27402         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27403         (EXTRA_SPEC_FUNCTIONS): Define.
27404         (avr_devicespecs_file): New specs function proto.
27405         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27406         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27407         (avr_current_device): Remove definition and usage.
27408         (avr_set_core_architecture): New static function.
27409         (avr_option_override): Use it.
27410         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27411         (mcu_name): New static array.
27412         (comparator, avr_archs_str, avr_mcus_str): New static functions.
27413         (avr_inform_devices, avr_inform_core_architectures): New functions.
27414         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27415         (avrlibc.h) [WITH_AVRLIBC]: Include.
27416         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27417         (print_mcu): Rewrite from scratch.
27418         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27419         Forward to avr-specific specs defined in device-specs file.
27420         * config/avr/t-avr (driver-avr.o): New rule.
27421         (avr-devices.o): Depend on avr-arch.h.
27422         (avr-mcus): No more depend on avr-tables.opt.
27423         (avr-tables.opt): Remove rule.
27424         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27425
27426 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27427
27428         * c-family/c.opt (fchkp-use-wrappers): New.
27429         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27430         (chkp_wrap_function): New.
27431         (chkp_build_instrumented_fndecl): Support wrapped
27432         functions.
27433         * doc/invoke.texi (-fcheck-pointer-bounds): New.
27434         (-fchkp-check-incomplete-type): New.
27435         (-fchkp-first-field-has-own-bounds): New.
27436         (-fchkp-narrow-bounds): New.
27437         (-fchkp-narrow-to-innermost-array): New.
27438         (-fchkp-optimize): New.
27439         (-fchkp-use-fast-string-functions): New.
27440         (-fchkp-use-nochk-string-functions): New.
27441         (-fchkp-use-static-bounds): New.
27442         (-fchkp-use-static-const-bounds): New.
27443         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27444         (-fchkp-check-read): New.
27445         (-fchkp-check-write): New.
27446         (-fchkp-store-bounds): New.
27447         (-fchkp-instrument-calls): New.
27448         (-fchkp-instrument-marked-only): New.
27449         (-fchkp-use-wrappers): New.
27450         (-static-libmpx): New.
27451         (-static-libmpxwrappers): New.
27452
27453 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27454
27455         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27456         (CHKP_SPEC): Add wrappers library.
27457         * c-family/c.opt (static-libmpxwrappers): New.
27458
27459 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27460
27461         * config/i386/linux-common.h (LIBMPX_LIBS): New.
27462         (LIBMPX_SPEC): New.
27463         (CHKP_SPEC): New.
27464         * gcc.c (CHKP_SPEC): New.
27465         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27466         * c-family/c.opt (static-libmpx): New.
27467
27468 2015-03-10  Richard Biener  <rguenther@suse.de>
27469
27470         PR middle-end/44563
27471         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27472         for compare_type.
27473         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27474         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27475         (cgraph_add_edge_to_call_site_hash): Likewise.
27476         (cgraph_node::get_edge): Likewise.
27477         (cgraph_edge::set_call_stmt): Likewise.
27478         (cgraph_edge::remove_caller): Likewise.
27479
27480 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
27481
27482         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27483         (callee_saved_gpr_regs_size): ... this.
27484         (callee_saved_regs_first_regno): Rename to ...
27485         (callee_saved_first_gpr_regno): ... this.
27486         (callee_saved_regs_last_regno) Rename to ...
27487         (callee_saved_last_gpr_regno): ... this.
27488         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27489         variables.
27490         (nds32_initial_elimination_offset): Likewise.
27491         (nds32_expand_prologue): Likewise.
27492         (nds32_expand_epilogue): Likewise.
27493         (nds32_expand_prologue_v3push): Likewise.
27494         (nds32_expand_epilogue_v3pop): Likewise.
27495         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27496         Adjust renamed variables.
27497         (nds32_output_stack_pop): Likewise.
27498
27499 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27500
27501         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27502         code in comment.
27503
27504 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27505
27506         PR rtl-optimization/65321
27507         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27508         than shift mode.
27509         * var-tracking.c (use_narrower_mode): Likewise.
27510
27511 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27512
27513         PR tree-optimization/65355
27514         * varasm.c (notice_global_symbol): Do not produce RTL.
27515         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27516         anchor.
27517         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27518         check for section anchors.
27519
27520 2015-03-10  Alan Modra  <amodra@gmail.com>
27521
27522         PR target/65286
27523         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27524         to be single-arch by default.  Set cpu_is_64bit for powerpc64
27525         given --with-cpu=native.
27526         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27527         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27528         and powerpc64le.
27529         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27530         rs6000_isa_flags rather than TARGET_64BIT.
27531
27532 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
27533             Kaz Kojima  <kkojima@gcc.gnu.org>
27534
27535         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27536
27537 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
27538
27539         PR lto/65361
27540         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27541         on a TREE_BINFO, instead use BINFO_TYPE.
27542
27543 2015-03-09  Richard Biener  <rguenther@suse.de>
27544
27545         PR middle-end/65270
27546         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27547         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27548         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
27549         of that.  When comparing dereferences compare alignment.
27550         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27551
27552 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27553
27554         * ipa-inline-analysis.c (check_callers): Check
27555         node->can_remove_if_no_direct_calls_and_refs_p.
27556         (growth_likely_positive): Reorganize to call
27557         can_remove_if_no_direct_calls_p later.
27558         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27559         will_be_removed_from_program_if_no_direct_calls_p): Add
27560         will_inline parameter.
27561         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27562         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27563         Handle inliner case correctly.
27564
27565 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27566
27567         PR tree-optimization/63743
27568         * cfgexpand.c (reorder_operands): Also reorder if only second operand
27569         had its definition forwarded by TER.
27570
27571 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27572
27573         PR lto/65316
27574         * ipa-utils.h (types_odr_comparable): Add strict argument.
27575         * ipa-devirt.c: Fix whitespace;
27576         (odr_hasher): Remove.
27577         (odr_name_hasher, odr_vtable_hasher): New hashers.
27578         (can_be_name_hashed_p): New predicate.
27579         (hash_type_name): remove.
27580         (hash_odr_name): New.
27581         (odr_name_hasher::hash): new.
27582         (can_be_vtable_hashed_p): New.
27583         (hash_odr_vtable): New.
27584         (odr_vtable_hasher::hash): New.
27585         (types_same_for_odr): Add strict parameter.
27586         (types_odr_comparable): Likewise.
27587         (odr_name_hasher::equal): New.
27588         (odr_vtable_hasher::equal): New.
27589         (odr_name_hasher::remove): New.
27590         (odr_hash_type): Change to hash_table<odr_name_hasher>.
27591         (odr_vtable_hash_type): New.
27592         (odr_vtable_hash): New.
27593         (odr_subtypes_equivalent_p): Do strict comparsion.
27594         (add_type_duplicate): Merge type names; cleanup; avoid type
27595         duplicates.
27596         (register_odr_type): Initialize vtable hash.
27597         (build_type_inheritance_graph): Likewise
27598         (get_odr_type): Reorg to use two hashes.
27599         (dump_possible_polymorphic_call_targets): Move sanity check after debug
27600         output.
27601         (ipa_devirt): Dump type_inheritance_graph.
27602         (types_same_for_odr): Add strict mode.
27603
27604 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27605
27606         PR ipa/65334
27607         * cgraph.h (symtab_node): Add definition_alignment,
27608         can_increase_alignment_p and increase_alignment.
27609         * symtab.c (symtab_node::can_increase_alignment_p,
27610         increase_alignment_1, symtab_node::increase_alignment,
27611         symtab_node::definition_alignment): New.
27612         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27613         can_increase_alignment_p.
27614         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27615         * tree-vect-stmts.c (ensure_base_align): Likewise.
27616         * varasm.c (function_section_1): Use definition_alignment.
27617         (assemble_start_function): Likewise.
27618         (emit_local): likewise.
27619         (build_constant_desc): Likewsie.
27620         (output_constant_def_contents): Likewise.
27621         (place_block_symbol): Likewise.
27622         (output_object_block): Likewise.
27623
27624 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27625
27626         PR ipa/65316
27627         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27628         when outputting debug.
27629
27630 2015-03-07  Marek Polacek  <polacek@redhat.com>
27631             Martin Uecker  <uecker@eecs.berkeley.edu>
27632
27633         PR sanitizer/65280
27634         * doc/invoke.texi: Update description of -fsanitize=bounds.
27635
27636 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
27637
27638         * tree-ssa-phiopt.c (neg_replacement): Remove.
27639         (tree_ssa_phiopt_worker): Remove negate optimization.
27640
27641 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27642
27643         PR ipa/65302
27644         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27645
27646 2015-03-06  Richard Biener  <rguenther@suse.de>
27647
27648         PR middle-end/64928
27649         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27650         and liveout_obstack members.
27651         (calculate_live_on_exit): Remove.
27652         (calculate_live_ranges): Change declaration.
27653         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27654         (new_tree_live_info): Adjust.
27655         (calculate_live_ranges): Delete livein when not wanted.
27656         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27657         Deal with partly deleted live info.
27658         (loe_visit_block): Remove temporary bitmap by using
27659         bitmap_ior_and_compl_into.
27660         (live_worklist): Adjust accordingly.
27661         (calculate_live_on_exit): Make static.
27662         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27663         we do not need livein.
27664
27665 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
27666
27667         * real.c (real_from_string): Fix typo in assertion.
27668
27669 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
27670
27671         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27672         the patch.
27673
27674 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27675
27676         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27677
27678 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
27679
27680         PR target/64342
27681         * lra-assigns.c (find_hard_regno_for): Rename to
27682         find_hard_regno_for_1.  Add a new parameter.
27683         (find_hard_regno_for): New function using find_hard_regno_for_1.
27684
27685 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27686
27687         PR rtl-optimization/65067
27688         * expmed.c (store_bit_field, extract_bit_field): Reworked the
27689         strict volatile bitfield handling.
27690
27691 2015-03-05  Martin Liska  <mliska@suse.cz>
27692
27693         PR ipa/65318
27694         * ipa-icf.c (sem_variable::equals): Compare variables types.
27695
27696 2015-03-05  Richard Henderson  <rth@redhat.com>
27697
27698         PR target/65121
27699         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27700         correctly check weak symbol binding.
27701
27702 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
27703
27704         PR middle-end/65315
27705         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27706         needed alignment.
27707
27708 2015-03-05  Martin Liska  <mliska@suse.cz>
27709
27710         * ipa-inline.c (inline_small_functions): Set default value to
27711         prevent warning during bootstrap.
27712         * tree.h: Add pragma guard that ignores false positives during
27713         bootstrap.
27714
27715 2015-03-05  Richard Biener  <rguenther@suse.de>
27716
27717         PR tree-optimization/65310
27718         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27719         Properly preserve alignment of the base of the access.
27720
27721 2015-03-05  Richard Biener  <rguenther@suse.de>
27722
27723         PR ipa/65270
27724         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27725         Compare dependence info.
27726
27727 2015-03-05  Richard Biener  <rguenther@suse.de>
27728
27729         PR middle-end/65233
27730         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27731         tree-into-ssa.h.
27732         (walk_ssa_copies): Revert last chage.  Instead do not walk
27733         SSA names registered for SSA update.
27734
27735 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27736
27737         PR ipa/65270
27738         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27739         vtable references for their containing type.
27740         (sem_function::equals_wpa): Compare TYPE_RESTRICT
27741         and type attributes.
27742
27743 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
27744
27745         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27746         before negating it.
27747         * stor-layout.c (finalize_record_size): Revert latest change.
27748
27749 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
27750
27751         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27752
27753 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27754
27755         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27756         for correct comdat handling.
27757         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27758         Likewise.
27759         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27760         (used_from_object_file_p_worker): Remove.
27761         (cgraph_node::only_called_directly_or_alised): Add
27762         used_from_object_file_p.
27763         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27764         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27765         can_remove_if_no_direct_calls_and_refs_p.
27766
27767 2015-03-04  Nick Clifton  <nickc@redhat.com>
27768
27769         * config/rl78/rl78.h (enum reg_class): Remove real registers from
27770         General register class.
27771         * config/rl78/rl78-real.md: Replace general register constraints
27772         with real+virtual register constraints.
27773
27774 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27775
27776         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27777         from checking for -mhtm option.
27778
27779 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27780
27781         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27782         (struct ipa_sra_check_caller_data): Add has_thunk field.
27783         (ipa_sra_check_caller): Check for thunk.
27784         (ipa_sra_preliminary_function_checks): Give up on function with
27785         thunks.
27786         (ipa_early_sra): Use call_for_symbol_and_aliases.
27787
27788 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
27789
27790         PR target/65249
27791         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27792         called for __stack_chk_guard symbol.
27793
27794 2015-03-03  DJ Delorie  <dj@redhat.com>
27795
27796         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27797         inc/dec.
27798         (*addhi3_real): Likewise.
27799         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27800         pattern to match incrementing memory.
27801         * config/rl78/predicates.md (rl78_1_2_operand): New.
27802         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27803         it's the same and only mem.
27804         (rl78_alloc_physical_registers_op2): If there's effectively only
27805         one MEM, transcode it into HL.
27806         (rl78_far_p): Reject addresses that aren't legitimate.
27807
27808 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27809
27810         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27811         negating it.
27812
27813         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27814
27815 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27816
27817         Implement call0 ABI for xtensa
27818         * config/xtensa/constraints.md ("a" constraint): Include stack
27819         pointer in case of call0 ABI.
27820         ("q" constraint): Make empty in case of call0 ABI.
27821         ("D" constraint): Include stack pointer in case of call0 ABI.
27822         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27823         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27824         prototypes.
27825         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27826         variable.
27827         (xtensa_regno_to_class): Make it a local variable in the
27828         function xtensa_regno_to_class.
27829         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27830         macro, function prototype and implementation.
27831         (reg_nonleaf_alloc_order): Make it a local variable in the
27832         function order_regs_for_local_alloc.
27833         (xtensa_conditional_register_usage): New function.
27834         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27835         (xtensa_valid_move): Allow direct moves to stack pointer
27836         register in call0 ABI.
27837         (xtensa_setup_frame_addresses): Only spill register windows in
27838         windowed ABI.
27839         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27840         call0 ABI respectively.
27841         (xtensa_function_arg_1): Only mark a7 register for copying in
27842         windowed ABI.
27843         (xtensa_call_save_reg): New function.
27844         (compute_frame_size): Add space for callee saved register
27845         storage to the frame size in call0 ABI.
27846         (xtensa_expand_prologue): Generate code to set up stack frame
27847         and save callee-saved registers in call0 ABI.
27848         (xtensa_expand_epilogue): New function.
27849         (xtensa_set_return_address): New function.
27850         (xtensa_return_addr): Calculate return address in call0 ABI.
27851         (xtensa_builtin_saveregs): Only mark a7 register for copying and
27852         emit copying code in windowed ABI.
27853         (order_regs_for_local_alloc): Add preferred register allocation
27854         order for non-leaf function in call0 ABI.
27855         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27856         (xtensa_asm_trampoline_template): Add trampoline generation for
27857         call0 ABI.
27858         (xtensa_trampoline_init): Add trampoline initialization for
27859         call0 ABI.
27860         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27861         functions.
27862         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27863         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27864         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27865         ABI call-used registers.
27866         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27867         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27868         call0 ABI.
27869         (REG_CLASS_CONTENTS): Include all registers into the preferred
27870         reload registers set, adjust the set in the
27871         xtensa_conditional_register_usage.
27872         (xtensa_regno_to_class): Drop variable declaration.
27873         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27874         function.
27875         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27876         respectively.
27877         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27878         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27879         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27880         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27881         location in call0 ABI.
27882         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27883         stack adjustment size when handling exception.
27884         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27885         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27886         definitions.
27887         ("return" pattern): Generate ret.n/ret in call0 ABI.
27888         ("epilogue" pattern): Expand epilogue.
27889         ("nonlocal_goto" pattern): Use default in call0 ABI.
27890         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27891         emit eh_set_a0_* depending on ABI.
27892         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27893         ("eh_set_a0_call0", "blockage"): New patterns.
27894
27895 2015-03-03  Martin Liska  <mliska@suse.cz>
27896
27897         PR ipa/65287
27898         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27899
27900 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27901
27902         PR 65138/target
27903         * config/rs6000/rs6000-tables.opt: Regenerate table.
27904
27905 2015-03-03  Renlin Li  <renlin.li@arm.com>
27906
27907         * doc/md.texi (@item ^): Change ? into ^.
27908
27909 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
27910
27911         * doc/tm.texi: Regenerated.
27912
27913 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27914
27915         * builtins.c (expand_builtin_return_addr): Add
27916         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27917         surrounding #ifdef.
27918         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27919         definition to 1.
27920         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27921         Likewise.
27922         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27923         undefined.
27924         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27925         paragraph.
27926
27927 2015-03-03  Martin Jambor  <mjambor@suse.cz>
27928             Eric Botcazou  <ebotcazou@adacore.com>
27929
27930         * tree-sra.c (ipa_sra_check_caller_data): New type.
27931         (has_caller_p): Removed.
27932         (ipa_sra_check_caller): New function.
27933         (ipa_sra_preliminary_function_checks): Use it.
27934
27935 2015-03-03  Martin Liska  <mliska@suse.cz>
27936
27937         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
27938         instead of if branch.
27939
27940 2015-03-03  Martin Liska  <mliska@suse.cz>
27941
27942         PR ipa/65282
27943         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
27944
27945 2015-03-23  Jeff Law  <law@redhat.com>
27946
27947         PR tree-optimization/65241
27948         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
27949         hash table if INSERT is true.
27950
27951 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27952
27953         PR target/65296
27954         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
27955
27956 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27957
27958         PR target/64331
27959         * config/avr/avr.c (context.h, tree-pass.h): Include them.
27960         (avr_pass_data_recompute_notes): New static variable.
27961         (avr_pass_recompute_notes): New class.
27962         (avr_register_passes): New static function.
27963         (avr_option_override): Call it.
27964
27965 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27966
27967         Fix various problems with specs file generation.
27968
27969         PR target/65296
27970         * config.gcc (extra_gcc_objs) [avr]: Remove.
27971         * config/avr/driver-avr.c: Remove file.
27972         * config/avr/t-avr (driver-avr.o): Remove rule.
27973         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
27974         INCLUDES to build.  Depend on TM_H.
27975         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
27976         build warnings.  Fix non-matching types and non-existing %-codes.
27977         (tm.h): Include.
27978         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
27979         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
27980         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
27981         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
27982         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
27983         (LIBGCC_SPEC): Remove definitions.
27984
27985 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27986
27987         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
27988         to create a register in testing mode.
27989
27990 2015-03-03  Martin Liska  <mliska@suse.cz>
27991             Jan Hubicka  <hubicka@ucw.cz>
27992
27993         PR ipa/65263
27994         * cgraph.c (cgraph_node::has_thunk_p): New function.
27995         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
27996         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
27997         (sem_function::merge): Assert is changed.
27998
27999 2015-03-03  Martin Liska  <mliska@suse.cz>
28000             Martin Jambor  <mjambor@suse.cz>
28001
28002         PR ipa/65087
28003         * ipa-icf.c (sem_item_optimizer::execute): Change function
28004         return value to boolean.
28005         (sem_item_optimizer::merge_classes): Likewise.
28006         (ipa_icf_driver): Return TODO_remove_functions in case there's
28007         a merge operation processed.
28008         * ipa-icf.h: Change function return value to boolean.
28009
28010 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28011
28012         PR 65138/target
28013         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28014         processor type for 64-bit little endian PowerPC.
28015
28016         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28017         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
28018         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
28019         printing built-in mask so it does not pass NULL pointers.
28020
28021         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28022         -mcpu=powerpc64le.
28023
28024 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
28025
28026         PR target/58158
28027         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28028         !ISA_HAS_FP_CONDMOVE.
28029
28030 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
28031
28032         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28033         reload_completed.
28034
28035 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
28036
28037         * doc/invoke.texi (Options for Code Generation Conventions):
28038         Fix URL of DSO paper.
28039
28040 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28041
28042         PR ipa/65130
28043         * ipa-inline.c (check_callers): Looks for recursion.
28044         (inline_to_all_callers): Give up on uninlinable or recursive edges.
28045         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28046         summary of inline clones.
28047         (do_estimate_growth_1): Fix recursion check.
28048
28049 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28050
28051         PR ipa/64988
28052         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28053         comdat groups.
28054
28055 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28056             Aldy Hernandez  <aldyh@redhat.com>
28057
28058         PR lto/65276
28059         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28060         when checking TYPE_BINFO.
28061
28062 2015-03-02  Richard Biener  <rguenther@suse.de>
28063
28064         PR ipa/65270
28065         * ipa-icf-gimple.c: Include builtins.h.
28066         (func_checker::compare_memory_operand): Compare base alignment.
28067
28068 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28069
28070         PR target/65184
28071         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28072         are never passed by reference.
28073
28074 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28075
28076         PR target/65183
28077         * tree-chkp.c (chkp_check_lower): Don't check against
28078         zero bounds for already instrumented functions.
28079         (chkp_check_upper): Likewise.
28080         (chkp_fini): Clean pass local data to avoid wrong reusage.
28081
28082 2015-02-28  Martin Liska  <mliska@suse.cz>
28083             Jan Hubicka  <hubicka@ucw.cz>
28084
28085         * ipa-icf.c (sem_variable::equals): Improve debug output;
28086         get variable constructor.
28087         (sem_variable::parse): Do not filter out too early; give up on
28088         volatile and register vars.
28089         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28090         variables.
28091         * ipa-icf.h (sem_variable::init): Do not set ctor.
28092         (sem_variable::ctor): Remove.
28093
28094 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
28095
28096         PR middle-end/65233
28097         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28098
28099 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28100
28101         * ipa-icf.c: Include stor-layout.h
28102         (sem_function::compare_cgraph_references): Rename to ...
28103         (sem_item::compare_cgraph_references): ... this one.
28104         (sem_variable::equals_wpa): New function
28105         (sem_variable::equals): Do not check stuff already verified by
28106         equals_wpa.
28107         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28108         * ipa-icf.h (sem_item): Add compare_cgraph_references.
28109         (sem_function): Remove compare_cgraph_references.
28110         (sem_variable): Turns equals_wpa into non-inline.
28111
28112 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28113
28114         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28115         (sem_item::add_expr): New function.
28116         (sem_function::hash_stmt): Handle operands of most statements.
28117         (sem_variable::get_hash): Hash the actual constructor.
28118         * ipa-icf.h (sem_item): Add add_expr.
28119         (sem_function): Update prototype of hash_stmt
28120
28121 2015-02-28  Martin Liska  <mliska@suse.cz>
28122             Jan Hubicka  <hubicka@ucw.cz>
28123
28124         PR ipa/65245
28125         * ipa-icf-gimple.c (func_checker::compare_function_decl):
28126         Remove.
28127         (func_checker::compare_variable_decl): Skip symtab vars.
28128         (func_checker::compare_cst_or_decl): Update.
28129         * ipa-icf.c (sem_function::parse): Do not consider aliases.
28130         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28131         use correct symtab predicates.
28132         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28133         (sem_variable::parse):  Update comment.
28134         (sem_item_optimizer::build_graph): Consider ultimate aliases
28135         for references.
28136
28137 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28138
28139         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28140         of OBJ_TYPE_REF.
28141
28142 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28143
28144         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28145         (sem_variable::merge) Likewise.
28146
28147 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28148
28149         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28150         target; also match flag_ipa_devirt.
28151
28152 2015-03-01  Martin Liska  <mliska@suse.cz>
28153             Jan Hubicka  <hubicka@ucw.cz>
28154
28155         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28156         Validate variable alignment.
28157         * ipa-icf.c (sem_function::equals_private): Be more precise
28158         about non-common function attributes.
28159         (sem_variable::equals): Likewise.
28160
28161 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28162
28163         PR ipa/65237
28164         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28165         across COMDAT group boundary.
28166
28167 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28168
28169         PR ipa/65232
28170         * ipa-icf.c (clear_decl_rtl): New function.
28171         (sem_function::merge): Clear RTL before forming alias.
28172         (sem_variable::merge): Clear RTL before forming alias.
28173
28174 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28175
28176         PR ipa/65236
28177         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28178
28179 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
28180
28181         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28182         to neon_to_gp<q>.
28183
28184 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28185
28186         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28187         a typo in the description.
28188
28189 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28190
28191         PR target/64317
28192         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28193         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28194         * lra-constraints.c: Include "params.h".
28195         (EBB_PROBABILITY_CUTOFF): Use
28196         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28197         (lra_inheritance): Use '<' instead of '<=' for
28198         EBB_PROBABILITY_CUTOFF.
28199         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28200         Document change.
28201
28202 2015-02-27  Martin Liska  <mliska@suse.cz>
28203
28204         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28205         vector length condition.
28206
28207 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
28208
28209         * doc/extend.texi (x86 transactional memory intrinsics):
28210         Reorganize discussion of _xbegin.  Clarify that the return
28211         value is a bit mask.  Expand example and move to end of section.
28212
28213 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28214             Aldy Hernandez  <aldyh@redhat.com>
28215
28216         PR rtl-optimization/65220
28217         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28218
28219 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28220
28221         PR target/65032
28222         * lra-remat.c (update_scratch_ops): New.
28223         (do_remat): Call it.
28224         * lra.c (lra_register_new_scratch_op): New. Take code from ...
28225         (remove_scratches): ... here.
28226         * lra-int.h (lra_register_new_scratch_op): New prototype.
28227
28228 2015-02-27  Marek Polacek  <polacek@redhat.com>
28229
28230         PR c/65040
28231         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28232         -Wformat-signedness anymore.
28233
28234 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28235
28236         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
28237         function.
28238         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
28239
28240 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28241
28242         * config/s390/s390.c (enum s390_builtin):
28243         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
28244         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
28245         (s390_init_builtins): Generate new builtin functions.
28246         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
28247         (s390_sfpc, s390_efpc): New pattern definitions.
28248
28249 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28250
28251         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
28252         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
28253         (s390_builtin_decls): New array.
28254         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
28255         (s390_builtin_decl): New function.
28256         (TARGET_BUILTIN_DECL): Define macro.
28257
28258 2015-02-27  Richard Biener  <rguenther@suse.de>
28259
28260         PR middle-end/63175
28261         * builtins.c (get_object_alignment_2): Make sure to re-apply
28262         the ANDed mask after recursing to its operand gets us a new
28263         misalignment bit position.
28264
28265 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
28266             Martin Liska  <mliska@suse.cz>
28267
28268         PR bootstrap/65150
28269         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28270         Use address_matters_p.
28271         (redirect_all_callers, set_addressable): New functions.
28272         (sem_function::merge): Reorganize and fix merging issues.
28273         (sem_variable::merge): Likewise.
28274         (sem_variable::compare_sections): Remove.
28275         * common.opt (fmerge-all-constants, fmerge-constants): Remove
28276         Optimization flag.
28277         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28278         redirect them.
28279         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28280         decl is used.
28281         (address_matters_1): New function.
28282         (symtab_node::address_matters_p): New function.
28283         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28284         check for merged flag.
28285         * cgraph.h (address_matters_p): Declare.
28286         (symtab_node::address_taken_from_non_vtable_p): Remove.
28287         (symtab_node::address_can_be_compared_p): New method.
28288         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28289         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28290         Remove.
28291         (comdat_can_be_unshared_p_1) Use address_matters_p.
28292         (update_vtable_references): Fix formating.
28293         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28294         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28295         * cgraphclones.c: Preserve merged and icf_merged flags.
28296
28297 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
28298
28299         * doc/extend.texi (Function Attributes): Fix spelling and typos.
28300         (Label Attributes): Likewise.
28301         (Cilk Plus Builtins): Likewise.
28302         (ARC SIMD Built-in Functions): Likewise.
28303         (ARM C Language Extensions (ACLE)): Likewise.
28304         (PowerPC Built-in Functions): Likewise.
28305         (PowerPC Hardware Transactional Memory Built-in Functions):
28306         Likewise.
28307
28308 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28309
28310         PR tree-optimization/65216
28311         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28312         new stmt and new SSA_NAME for lhs whenever the arguments have
28313         changed and weren't just swapped.  Fix comment typo.
28314
28315         PR tree-optimization/65215
28316         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28317         for PDP endian targets.
28318         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28319         Fix up formatting issues.
28320         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
28321         size is smaller than the original, adjust MEM_REF offset by the
28322         difference of sizes.  Use is_gimple_mem_ref_addr instead of
28323         is_gimple_min_invariant test to avoid adding address temporaries.
28324
28325 2015-02-26  Martin Liska  <mliska@suse.cz>
28326             Jan Hubicka  <hubicka@ucw.cz>
28327
28328         PR ipa/64693
28329         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28330         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28331         (sem_item_optimizer::process_cong_reduction): Include division by
28332         sensitive references.
28333         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28334         * ipa-ref.c (ipa_ref::address_matters_p): New function.
28335         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28336
28337 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
28338
28339         PR target/65192
28340         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28341         Remove.
28342         * config/avr/avr.c: Same.
28343         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28344         Refuse any constant address not in 0..0xbf.
28345         * config/avr/avr.md (*mov<mode>, *movsf): Remove
28346         tiny_valid_direct_memory_access_range from insn conditions.
28347         (mov<mode>): Don't special-case expansion of avrtiny addresses.
28348
28349 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
28350
28351         PR target/61142
28352         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28353         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28354         * config/sh/predicates.md (const_logical_operand): New predicate.
28355         * config/sh/sh.md: Add new peephole2 patterns.
28356
28357 2015-02-26  Marek Polacek  <polacek@redhat.com>
28358
28359         PR ipa/65008
28360         * ipa-inline.c (early_inliner): Recompute inline parameters.
28361
28362 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28363
28364         PR target/65171
28365         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28366         instructions with TImode operands are included in the analysis.
28367
28368 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28369
28370         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28371         of an EDGE_FSM_THREAD.
28372
28373 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28374
28375         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28376
28377 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
28378
28379         PR debug/46102
28380         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28381
28382 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28383
28384         PR tree-optimization/65048
28385         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28386         (thread_through_all_blocks): Call valid_jump_thread_path.
28387         Remove invalid FSM jump-thread paths.
28388
28389 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28390
28391         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28392         (ipa_write_optimization_summaries): Likewise.
28393         * tree-streamer.h: Include data-streamer.h.
28394         (streamer_mode_table): Declare extern variable.
28395         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28396         * lto-streamer-out.c (lto_output_init_mode_table,
28397         lto_write_mode_table): New functions.
28398         (produce_asm_for_decls): Call lto_write_mode_table when streaming
28399         offloading LTO.
28400         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28401         (lto_create_simple_input_block): Add mode_table argument to the
28402         lto_input_block constructors.
28403         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28404         Likewise.
28405         * data-streamer-in.c (string_for_index): Likewise.
28406         * ipa-inline-analysis.c (inline_read_section): Likewise.
28407         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28408         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28409         * lto-streamer-in.c (lto_read_body_or_constructor,
28410         lto_input_toplevel_asms): Likewise.
28411         (lto_input_mode_table): New function.
28412         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28413         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28414         Use bp_pack_machine_mode.
28415         * real.h (struct real_format): Add name field.
28416         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28417         (class lto_input_block): Add mode_table member.
28418         (lto_input_block::lto_input_block): Add mode_table_ argument,
28419         initialize mode_table.
28420         (struct lto_file_decl_data): Add mode_table field.
28421         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28422         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28423         unpack_ts_decl_common_value_fields,
28424         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28425         * tree-streamer.c (streamer_mode_table): New variable.
28426         * real.c (ieee_single_format, mips_single_format,
28427         motorola_single_format, spu_single_format, ieee_double_format,
28428         mips_double_format, motorola_double_format,
28429         ieee_extended_motorola_format, ieee_extended_intel_96_format,
28430         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28431         ibm_extended_format, mips_extended_format, ieee_quad_format,
28432         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28433         decimal_single_format, decimal_double_format, decimal_quad_format,
28434         ieee_half_format, arm_half_format, real_internal_format): Add name
28435         field.
28436         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28437
28438 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
28439
28440         PR target/65161
28441         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28442         reordering for selective scheduling.
28443
28444 2015-02-26  Terry Guo  <terry.guo@arm.com>
28445
28446         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28447         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28448         (arm_arch_no_volatile_ce): Declare new global variable.
28449         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28450         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28451         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28452         (TARGET_NO_VOLATILE_CE): New macro.
28453         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28454         volatile memory access in IT block
28455
28456 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28457
28458         PR tree-optimization/61917
28459         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28460         that reduc_def_stmt is null.
28461
28462 2015-02-25  Martin Liska  <mliska@suse.cz>
28463
28464         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28465         hard register variables.
28466
28467 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28468
28469         PR target/64212
28470         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28471         (symtab::noninterposable_alias): Likewise.
28472
28473 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28474
28475         PR target/65167
28476         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28477         bounds registers.
28478         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28479
28480 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
28481
28482         PR target/64997
28483         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28484         as split condition; force split via '#' in output pattern.
28485
28486 2015-02-25  Richard Biener  <rguenther@suse.de>
28487             Kai Tietz  <ktietz@redhat.com>
28488
28489         PR tree-optimization/61917
28490         * tree-vect-loop.c (vectorizable_reduction): Allow
28491         vect_internal_def without reduction to exit graceful.
28492
28493 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28494
28495         PR target/65196
28496         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28497         only with NONDEBUG_INSN_P.
28498
28499 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28500
28501         Use variadic macros with avr-log.c.
28502
28503         * config/avr/avr-protos.h (avr_vdump): New prototype.
28504         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28505         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28506         * config/avr/avr-log.c: Adjust comments.
28507         (avr_vdump): New function.
28508         (avr_vadump): Pass caller as 2nd argument instead of format string.
28509         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28510         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28511
28512 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
28513
28514         PR lto/64374
28515         * target.def (target_option_stream_in): New target hook.
28516         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28517         targetm.target_option.post_stream_in if non-NULL.
28518         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28519         * doc/tm.texi: Updated.
28520         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28521         function.
28522         (TARGET_OPTION_POST_STREAM_IN): Redefine.
28523
28524 2015-02-24  Jeff Law  <law@redhat.com>
28525
28526         PR target/65117
28527         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28528         of operand 0 and operand 2.
28529         (zero_cost_loop_end, loop_end): Similarly.
28530
28531 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
28532
28533         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28534         CXX_MEM_STAT_INFO.
28535
28536 2015-02-24  DJ Delorie  <dj@redhat.com>
28537
28538         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28539         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28540         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28541         instead of hardcoding SImode.
28542
28543 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
28544
28545         * omp-low.c (create_omp_child_function): Tag entrypoint
28546         functions with a special attribute.
28547
28548 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28549
28550         PR target/65058
28551         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28552
28553 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
28554
28555         PR rtl-optimization/65123
28556         * lra-remat.c (operand_to_remat): Check hard regs in insn
28557         definition too.
28558
28559 2015-02-24  Nick Clifton  <nickc@redhat.com>
28560
28561         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28562         to the assembler.
28563
28564 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
28565
28566         PR libgomp/64625
28567         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28568         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28569         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28570         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28571         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28572         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28573         (BUILT_IN_GOACC_PARALLEL): Specify as
28574         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28575         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28576         * builtin-types.def
28577         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28578         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28579         Remove function types.
28580         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28581         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28582         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28583         New function types.
28584
28585 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
28586
28587         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28588
28589 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
28590
28591         PR tree-optimization/65170
28592         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28593         if val[1] < 0, clear also val[2] and return 3.
28594
28595 2015-02-24  Alan Modra  <amodra@gmail.com>
28596
28597         PR target/65172
28598         * config/rs6000/rs6000.c (get_memref_parts): Only return true
28599         when *base is a reg.  Handle nested plus addresses.  Simplify
28600         pre_modify test.
28601
28602 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
28603
28604         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28605         use natural alignment when optimizing for size.
28606
28607 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
28608
28609         PR target/65153
28610         * config/sh/sh.md (movsicc_true+3): Remove peephole.
28611         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28612         * config/sh/sh.c (replace_n_hard_rtx): Remove.
28613
28614 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
28615
28616         PR fortran/63427
28617         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28618         too big for a wide_int.  Implement missing wrapping operation.
28619
28620 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
28621
28622         PR target/65163
28623         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28624         instead of const_int 4294901760.
28625
28626 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
28627
28628         * config/avr/t-avr: Fix typo in comment.
28629
28630 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
28631
28632         * doc/rtl.texi (fma): Clarify documentation.
28633
28634 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
28635
28636         PR debug/58123
28637         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28638         over input_location.
28639
28640 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28641
28642         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28643         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28644         restrict alignments to absolute_biggest_alignment.
28645         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28646         Define.
28647         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28648         * doc/tm.texi: Regenerate.
28649         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28650
28651 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
28652
28653         PR target/64172
28654         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28655
28656 2015-02-20  Richard Biener  <rguenther@suse.de>
28657
28658         PR tree-optimization/65136
28659         * tree-ssa-propagate.c: Include cfgloop.h.
28660         (replace_phi_args_in): Avoid replacing loop latch edge PHI
28661         arguments with constants.
28662
28663 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
28664             Martin Liska  <mliska@suse.cz>
28665
28666         PR target/63892
28667         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28668         don't try to create_thunk if stdarg_p.  If
28669         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28670         redirect_callers if possible.
28671         (sem_item_optimizer::execute): Call unregister_hooks here...
28672         (ipa_icf_driver): ... instead of here.
28673
28674 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28675
28676         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28677         Mark operand 0 as earlyclobber in 2nd alternative.
28678         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28679         Write negated shift amount into QI lowpart operand 0 and use it
28680         in the shift step.
28681         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28682
28683 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28684
28685         * cgraph.h (clone_function_name_1): Declare.
28686         * cgraphclones.c (clone_function_name_1): New function.
28687         (clone_function_name): Use it.
28688         * lto-partition.c: Include "stringpool.h".
28689         (must_not_rename, maybe_rewrite_identifier)
28690         (validize_symbol_for_target): New static functions.
28691         (privatize_symbol_name): Use must_not_rename.
28692         (promote_symbol): Call validize_symbol_for_target.
28693         (lto_promote_cross_file_statics): Likewise.
28694         (lto_promote_statics_nonwpa): Likewise.
28695
28696 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
28697
28698         PR target/64452
28699         * config/avr/avr.md (pushhi_insn): New insn.
28700         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28701
28702 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28703             Jakub Jelinek  <jakub@redhat.com>
28704
28705         * tree-streamer.c (preload_common_nodes): Don't preload
28706         TI_VA_LIST* for offloading.
28707         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28708         in_lto_p.
28709
28710 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
28711
28712         * config/pa/pa.c (pa_emit_move_sequence): Always force
28713         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
28714         note on insn.
28715
28716         * config/pa/pa.c (pa_reloc_rw_mask): New function.
28717         (TARGET_ASM_RELOC_RW_MASK): Define.
28718         (pa_cannot_force_const_mem): Revert previous change.
28719
28720 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
28721             Jan Hubicka  <hubicka@ucw.cz>
28722
28723         PR ipa/65028
28724         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28725         across jump functions.
28726
28727 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
28728
28729         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28730
28731 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
28732
28733         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28734
28735 2015-02-19  Richard Henderson  <rth@redhat.com>
28736
28737         PR middle-end/65074
28738         * varasm.c (default_binds_local_p_2): Don't test node->definition;
28739         test DECL_EXTERNAL independent of symtab_node.
28740
28741 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
28742
28743         PR lto/65012
28744         * varpool.c (varpool_node::get_constructor): Return early
28745         if this->lto_file_data is NULL.
28746
28747 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28748
28749         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28750         (rank_for_schedule_debug): Update.
28751         (ready_sort): Make static.  Move sorting logic to ...
28752         (ready_sort_debug, ready_sort_real): New static functions.
28753         (schedule_block): Sort both debug insns and real insns in preparation
28754         for ready list trimming.  Improve debug output.
28755         * sched-int.h (ready_sort): Remove global declaration.
28756
28757 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
28758
28759         * ipa-icf.c (sem_function::equals_private): Adjust.
28760         (sem_function::bb_dict_test): Take a vec<int> * instead of
28761         auto_vec<int>.
28762         * ipa-icf.h (bb_dict_test): Likewise.
28763
28764 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28765
28766         PR gcov-profile/64634
28767         * tree-eh.c (frob_into_branch_around): Fix up typos
28768         in function comment.
28769         (lower_catch): Put eh_seq resulting from EH lowering of
28770         the cleanup sequence after the cleanup rather than before it.
28771
28772 2015-02-18  Tom de Vries  <tom@codesourcery.com>
28773
28774         * common.opt (fstdarg-opt): New option.
28775         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28776         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28777         (@item -fstdarg-opt): New item.
28778
28779 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28780
28781         PR target/65064
28782         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28783         for common symbols.
28784
28785 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28786
28787         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28788         insn-modes.h.
28789         (ALL_HOST_OBJS): Add mkoffload.o.
28790         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28791
28792 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
28793
28794         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28795         (compare_virtual_tables): Be smarter about skipping typeinfos;
28796         do sane output on virtual table table mismatch.
28797         (warn_odr): Be ready for forward declarations of enums;
28798         output sane info on base mismatch and virtual table mismatch.
28799         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28800         when only one type is polymorphic.
28801         (get_odr_type): Fix hashtable corruption.
28802         (dump_odr_type): Dump mangled names.
28803
28804 2015-02-18  Richard Biener  <rguenther@suse.de>
28805
28806         PR tree-optimization/65063
28807         * tree-predcom.c (determine_unroll_factor): Return 1 if we
28808         have replaced looparound PHIs.
28809
28810 2015-02-18  Martin Liska  <mliska@suse.cz>
28811
28812         * lto-streamer.c (lto_streamer_init): Encapsulate
28813         streamer_check_handled_ts_structures with checking macro.
28814
28815 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28816
28817         PR ipa/65087
28818         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28819         section if !implicit_section.
28820         (cgraph_node::create_version_clone_with_body): Likewise.
28821         * trans-mem.c (ipa_tm_create_version): Likewise.
28822
28823 2015-02-18  Richard Biener  <rguenther@suse.de>
28824
28825         PR tree-optimization/62217
28826         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28827         into BIVs.
28828
28829 2015-02-18  Marek Polacek  <polacek@redhat.com>
28830
28831         PR sanitizer/65081
28832         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28833         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28834         is in range [-16K, -1].  Don't issue run-time error if
28835         (ptr > ptr + offset).
28836
28837 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
28838
28839         * doc/install.texi (nvptx-*-none): New section.
28840         * doc/invoke.texi (Nvidia PTX Options): Likewise.
28841         * config/nvptx/nvptx.opt: Update.
28842
28843         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28844         (access_check): New functions, copied from
28845         config/i386/intelmic-mkoffload.c.
28846         (main): For non-installed testing, look in all COMPILER_PATHs for
28847         GCC_INSTALL_NAME.
28848
28849         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28850
28851 2015-02-18  Andrew Pinski  <apinski@cavium.com>
28852             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28853
28854         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28855         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28856
28857 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28858
28859         * ipa-visibility.c (function_and_variable_visibility): Only
28860         check locality if node is not already local.
28861         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28862         call_for_symbol_and_aliases instead of
28863         call_for_symbol_thunks_and_aliases.
28864         (ipa_inline): Likewise.
28865         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28866         first walk aliases.
28867         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28868         call_for_symbol_and_aliases.
28869         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28870         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28871         (ipa_propagate_frequency): Update.
28872         (ipa_profile): Add opt_for_fn gueards.
28873
28874 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28875
28876         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28877         * doc/invoke.texi (SH options): Document it.
28878         * config/sh/sh.c (sh_insn_length_adjustment): Check
28879         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28880
28881 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28882
28883         * common.opt (fipa-cp-alignment): New.
28884         * ipa-cp.c (ipcp_store_alignment_results): Check
28885         flag_ipa_cp_alignment.
28886         * opts.c (default_options_table): Enable -fipa-cp-alignment for
28887         -O2.
28888         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28889         * doc/invoke.texi: Document -fipa-cp-alignment.
28890
28891 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28892
28893         PR target/64793
28894         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28895         to nil.  Adjust comments.
28896
28897 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28898
28899         * ipa-visibility.c (function_and_variable_visibility): Only
28900         check locality if node is not already local.
28901         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28902         call_for_symbol_and_aliases instead of
28903         call_for_symbol_thunks_and_aliases.
28904         (ipa_inline): Likewise.
28905         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28906         first walk aliases.
28907         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28908         call_for_symbol_and_aliases.
28909         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28910         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28911         (ipa_propagate_frequency): Update.
28912         (ipa_profile): Add opt_for_fn guards.
28913
28914 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
28915
28916         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28917         skipping of "strange" tokens.
28918
28919 2015-02-17  Jeff Law  <law@redhat.com>
28920
28921         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
28922         obsolete comment.
28923
28924 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
28925
28926         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28927         as forcing a HARD_DEP between instructions, thereby
28928         disallowing rewriting to break dependencies.
28929
28930 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
28931
28932         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28933         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28934         variables in boundary that have no inlitalizer encoded and are
28935         not aliases.
28936         * varasm.c (default_binds_local_p_2): External definitions do not
28937         count as definitions here.
28938
28939 2015-02-16  Jeff Law  <law@redhat.com>
28940
28941         PR tree-optimization/64823
28942         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
28943         statements.
28944         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28945         threading through blocks with PHIs, but no statements.
28946         (thread_through_normal_block): Distinguish between blocks where
28947         we did not process all the statements and blocks with no statements.
28948
28949 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
28950             James Greenhalgh  <james.greenhalgh@arm.com>
28951
28952         PR ipa/64963
28953         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
28954         section if not linkonce.  Fix up formatting.
28955         (cgraph_node::create_version_clone_with_body): Copy section.
28956         * trans-mem.c (ipa_tm_create_version): Likewise.
28957
28958 2015-02-16  Richard Biener  <rguenther@suse.de>
28959
28960         PR tree-optimization/65077
28961         * tree-ssa-structalias.c (get_constraint_for_1): Handle
28962         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
28963         (find_func_aliases): Allow float values to carry pointers again.
28964
28965 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28966
28967         * doc/install.texi (Specific): Reorder targets list to put
28968         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
28969         from the top menu.
28970
28971 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28972             David Edelsohn  <dje.gcc@gmail.com>
28973
28974         PR target/65058
28975         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
28976         mapping class to external variable or function reference.
28977         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
28978         mapping class.
28979
28980 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
28981
28982         PR target/53348
28983         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
28984         ASM_WEAKEN_DECL if defined.
28985
28986 2015-02-16  Richard Biener  <rguenther@suse.de>
28987
28988         PR lto/65015
28989         * varasm.c (default_file_start): For LTO produced units
28990         emit <artificial> as file directive.
28991
28992 2015-02-16  Richard Biener  <rguenther@suse.de>
28993
28994         PR tree-optimization/63593
28995         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
28996         stmts and releasing SSA names until...
28997         (execute_pred_commoning): ... after processing all chains.
28998
28999 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
29000
29001         PR ipa/65059
29002         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29003         external functions.
29004
29005 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
29006
29007         * doc/bugreport.texi: Adjust section titles throughout the file
29008         to use "Title Case".
29009         * doc/extend.texi: Likewise.
29010         * doc/gcov.texi: Likewise.
29011         * doc/implement-c.texi: Likewise.
29012         * doc/implement-cxx.texi: Likewise.
29013         * doc/invoke.texi: Likewise.
29014         * doc/objc.texi: Likewise.
29015         * doc/standards.texi: Likewise.
29016         * doc/trouble.texi: Likewise.
29017
29018 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
29019
29020         * cgraph.h (symtab_node::has_aliases_p): Simplify.
29021         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29022         * tree.c (lookup_binfo_at_offset): Make static.
29023         (get_binfo_at_offset): Do not shadow offset; add explanatory
29024         comment.
29025
29026 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
29027
29028         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29029         for all floading point loads and stores except those using a register
29030         index address.
29031         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29032         to a register.
29033
29034 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
29035
29036         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29037         (do_estimate_growth_1): Record if any uninlinable edge was seen.
29038         (estimate_growth): Handle uninlinable edges correctly.
29039         (check_callers): New.
29040         (growth_likely_positive): Handle aliases correctly.
29041
29042 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
29043
29044         * ipa-chkp.c: Use iterate_direct_aliases.
29045         * symtab.c (resolution_used_from_other_file_p): Move inline.
29046         (symtab_node::create_reference): Fix formating.
29047         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29048         (symtab_node::iterate_reference): Move inline.
29049         (symtab_node::iterate_referring): Move inline.
29050         (symtab_node::iterate_direct_aliases): Move inline.
29051         (symtab_node::used_from_object_file_p_worker): Inline into ...
29052         (symtab_node::used_from_object_file_p): ... this one; move inline.
29053         (symtab_node::call_for_symbol_and_aliases): Move inline;
29054         use iterate_direct_aliases.
29055         (symtab_node::call_for_symbol_and_aliases_1): New method.
29056         (cgraph_node::call_for_symbol_and_aliases): Move inline;
29057         use iterate_direct_aliases.
29058         (cgraph_node::call_for_symbol_and_aliases_1): New method.
29059         (varpool_node::call_for_node_and_aliases): Rename to ...
29060         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29061         use iterate_direct_aliases.
29062         (varpool_node::call_for_symbol_and_aliases_1): New method.
29063         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29064         (ipa_discover_readonly_nonaddressable_var): Update.
29065         * ipa-devirt.c: Fix formating.
29066         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29067         Move inline.
29068         (cgraph_node::call_for_symbol_and_aliases): Move inline.
29069         (cgraph_node::call_for_symbol_and_aliases_1): New function..
29070         * cgraph.h (used_from_object_file_p_worker): Remove.
29071         (resolution_used_from_other_file_p): Move inline.
29072         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29073         (symtab_node::iterate_reference): Move inline.
29074         (symtab_node::iterate_referring): Move inline.
29075         (symtab_node::iterate_direct_aliases): Move inline.
29076         (symtab_node::used_from_object_file_p_worker): Inline into ...
29077         (symtab_node::used_from_object_file_p): Move inline.
29078         * tree-emutls.c (ipa_lower_emutls): Update.
29079         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29080         (varpool_node::call_for_node_and_aliases): Remove.
29081
29082 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
29083
29084         PR tree-optimization/62209
29085         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29086         op == range->exp, insert seq and gimplified code after labels
29087         instead of after the phi.
29088
29089 2015-02-13  Jeff Law  <law@redhat.com>
29090
29091         PR bootstrap/65060
29092         Revert my change for tree-optimization/64823.
29093
29094 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
29095
29096         PR tree-optimization/65053
29097         * tree-ssa-phiopt.c (value_replacement): When moving assign before
29098         cond, either reset VR on lhs or set it to phi result VR.
29099
29100 2015-02-13  Jeff Law  <law@redhat.com>
29101
29102         PR tree-optimization/64823
29103         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29104         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29105         threading through blocks with PHIs, but no statements.
29106         (thread_through_normal_block): Distinguish between blocks where
29107         we did not process all the statements and blocks with no statements.
29108
29109         PR rtl-optimization/47477
29110         * match.pd (convert (plus/minus (convert @0) (convert @1): New
29111         simplifier to narrow arithmetic.
29112
29113 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
29114
29115         PR ipa/65028
29116         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29117         polymorphic call info when type is not known to be preserved.
29118
29119 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
29120
29121         PR ipa/65028
29122         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29123         (inline_call): Use it.
29124
29125 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
29126
29127         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29128         GOMP_DEVICE_NVIDIA_PTX.
29129
29130 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
29131
29132         PR ipa/65034
29133         * stmt.c (emit_case_nodes): Use void_type_node instead of
29134         NULL_TREE as LABEL_DECL type.
29135
29136 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
29137
29138         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29139         constraints.
29140         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29141         symbolic references to data to be forced to constant memory on the
29142         SOM target.
29143
29144 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29145
29146         PR tree-optimization/65002
29147         * tree-cfg.c (pass_data_fixup_cfg): Don't update
29148         SSA on start.
29149         * tree-sra.c (some_callers_have_no_vuse_p): New.
29150         (ipa_early_sra): Reject functions whose callers
29151         assume function is read only.
29152
29153 2015-02-13  Richard Biener  <rguenther@suse.de>
29154
29155         PR lto/65015
29156         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29157         for LTO produced CUs.
29158
29159 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
29160
29161         PR tree-optimization/64705
29162         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29163         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29164         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29165         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29166         expand_simple_operations.
29167
29168 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29169             Richard Henderson  <rth@redhat.com>
29170
29171         PR rtl/32219
29172         * cgraphunit.c (cgraph_node::finalize_function): Set definition
29173         before notice_global_symbol.
29174         (varpool_node::finalize_decl): Likewise.
29175         * varasm.c (default_binds_local_p_2): Rename from
29176         default_binds_local_p_1, add weak_dominate argument.  Use direct
29177         returns instead of assigning to local variable.  Unify varpool and
29178         cgraph paths via symtab_node.  Reject undef weak variables before
29179         testing visibility.  Reorder tests for simplicity.
29180         (default_binds_local_p): Use default_binds_local_p_2.
29181         (default_binds_local_p_1): Likewise.
29182         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29183         via symtab_node.
29184         (default_elf_asm_output_external): Emit visibility when specified.
29185
29186 2015-02-13  Alan Modra  <amodra@gmail.com>
29187
29188         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29189         code setting up r11 for out-of-line fp restore.
29190
29191 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
29192
29193         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29194         (muser-mode): Likewise.
29195
29196 2015-02-13  Alan Modra  <amodra@gmail.com>
29197
29198         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29199         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29200
29201 2015-02-12  David Howells  <dhowells@redhat.com>
29202
29203         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29204         warning.
29205         * tree-ssa-uninit.c (dump_predicates): Likewise.
29206         * opts.c (print_filtered_help): Likewise.
29207
29208 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29209
29210         * dwarf2out.c (output_die): Use "%s", name instead of name to
29211         avoid -Wformat-security warning.
29212
29213         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29214         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29215         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29216         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29217
29218 2015-02-12  Jason Merrill  <jason@redhat.com>
29219
29220         * common.opt (-flifetime-dse): New.
29221
29222 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29223
29224         PR sanitizer/65019
29225         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29226
29227         PR tree-optimization/65014
29228         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29229         use original second operand of arg0 or arg1 instead of
29230         that adjusted by STRIP_NOPS.
29231
29232 2015-02-11  Jeff Law  <law@redhat.com>
29233
29234         PR target/63347
29235         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29236         that needs to be queued, just queue it for a single cycle.
29237
29238 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
29239
29240         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
29241         bodies of thunks; comment on why.
29242         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
29243         symbols are extern.
29244
29245 2015-02-11  Richard Henderson  <rth@redhat.com>
29246
29247         PR sanitize/65000
29248         * tree-eh.c (mark_reachable_handlers): Mark source and destination
29249         regions of __builtin_eh_copy_values.
29250
29251 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29252
29253         PR middle-end/65003
29254         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
29255         ultimate alias is MEM with SYMBOL_REF satisfying
29256         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
29257         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
29258
29259 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
29260
29261         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29262         "diagnostic-core.h".
29263         (main): Initialize progname, and call diagnostic_initialize.
29264
29265         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29266         instead of __OPENMP_TARGET__.
29267
29268         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29269         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29270         hard-coding PTX_ID.
29271
29272 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
29273
29274         * doc/sourcebuild.texi (pie_enabled): Document.
29275
29276 2015-02-11  Martin Liska  <mliska@suse.cz>
29277
29278         PR ipa/64813
29279         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29280         a return value for call to a function that is noreturn.
29281
29282 2015-02-11  Richard Biener  <rguenther@suse.de>
29283
29284         PR lto/65015
29285         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29286         and -fresolution.
29287
29288 2015-02-11  Andrew Pinski  <apinski@cavium.com>
29289
29290         PR target/64893
29291         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29292         Change the first argument type to size_type_node and add another
29293         size_type_node.
29294         (aarch64_simd_expand_builtin): Handle the new argument to
29295         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29296         print an out when the first two arguments are not
29297         nonzero integer constants.
29298         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29299         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29300
29301 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29302
29303         PR target/61925
29304         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29305         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29306         (ix86_set_current_function): Rewritten.
29307         (ix86_add_new_builtins): Temporarily clear current_target_pragma
29308         when creating builtin fndecls.
29309
29310 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29311
29312         PR ipa/65005
29313         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29314         function.
29315         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29316         have no comdat group.
29317         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29318         (lto_output_varpool_node): Always output alias info.
29319         (output_refs): Output refs of boundary aliases, too.
29320         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29321         (output_symtab): Output call eges in thunks in boundary.
29322         (get_alias_symbol): Remove.
29323         (input_node, input_varpool_node): Do not special case weakrefs.
29324         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29325         alias and thunks targets in the boundary; do not take removed symbols
29326         from their comdat groups.
29327         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29328         (cgraph_node::global_info): Remove.
29329         (cgraph_node::rtl_info): Look through aliases and thunks.
29330         * cgrpah.h (global_info): Remove.
29331         (non_local_p): Remove.
29332
29333 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29334             Sandra Loosemore  <sandra@codesourcery.com>
29335
29336         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29337         to inline asm.  List dialects in proper order.
29338
29339 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29340             Sandra Loosemore  <sandra@codesourcery.com>
29341
29342         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29343
29344 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29345
29346         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29347         modified) reference to Solaris.
29348
29349 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
29350
29351         * doc/extend.texi (Extended Asm): Fix typos.
29352
29353 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
29354
29355         PR sanitizer/65004
29356         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29357
29358 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
29359
29360         PR target/64661
29361         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29362         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29363         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29364         * config/sh/constraints.md (Ara, Add): New constraints.
29365         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29366         predicates.
29367         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29368         atomic_mem_operand_0.  Don't use force_reg on the memory address.
29369         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29370         Sra constraint.  Convert to insn_and_split.  Add workaround for
29371         PR 64974.
29372         (atomic_compare_and_swap<mode>_hard): Copy to
29373         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
29374         Use atomic_mem_operand_0 predicate.
29375         (atomic_compare_and_swap<mode>_soft_gusa,
29376         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29377         AraAdd constraints.
29378         (atomic_compare_and_swap<mode>_soft_tcb,
29379         atomic_compare_and_swap<mode>_soft_imask,
29380         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29381         atomic_mem_operand_0 predicate and SraSdd constraints.
29382         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29383         constraint.
29384         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29385         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
29386         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29387         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
29388         force_reg on the memory address.
29389         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29390         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29391         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29392         atomic_mem_operand_1 predicate and Sra constraint.
29393         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29394         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29395         Use atomic_mem_operand_1 predicate.
29396         (atomic_<fetchop_name><mode>_hard): Copy to
29397         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29398         Use atomic_mem_operand_1 predicate.
29399         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29400         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29401         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
29402         insn_and_split.  Use atomic_mem_operand_1 predicate.
29403         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29404         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
29405         Use atomic_mem_operand_1 predicate.
29406         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29407         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29408         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29409         in generated insn with original mem operand before emitting the insn.
29410         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29411         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29412         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29413         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29414         Use atomic_mem_operand_1 predicate and AraAdd constraints.
29415         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29416         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29417         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29418         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29419         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29420         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29421         atomic_not_fetch<mode>_soft_tcb,
29422         atomic_<fetchop_name>_fetch<mode>_soft_imask,
29423         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29424         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29425         Use atomic_mem_operand_1 predicate and SraSdd constraints.
29426
29427 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
29428
29429         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29430         and 3 earlyclobber operands.
29431
29432 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29433
29434         * common.opt (fstack-reuse): Mark as optimization.
29435
29436 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29437
29438         PR ipa/64982
29439         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29440
29441 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
29442
29443         PR tree-optimization/64326
29444         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29445
29446 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
29447
29448         PR gcov-profile/61889
29449         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29450
29451 2015-02-10  Richard Biener  <rguenther@suse.de>
29452
29453         PR tree-optimization/64995
29454         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29455         value we use is final.
29456         (visit_reference_op_store): Always valueize op.
29457         (visit_use): Properly valueize vuses.
29458
29459 2015-02-10  Richard Biener  <rguenther@suse.de>
29460
29461         PR tree-optimization/64909
29462         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29463         pass a scalar-stmt count estimate to the cost model.
29464         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29465
29466 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
29467
29468         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29469         enabled by default together with var-tracking.
29470
29471 2015-02-10  Nick Clifton  <nickc@redhat.com>
29472
29473         * config/rl78/rl78.c: Remove DIV attribute code accidentally
29474         included in previous rl78 commit.
29475
29476 2015-02-10  Richard Biener  <rguenther@suse.de>
29477
29478         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29479         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29480         return the bitpack.
29481
29482 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29483
29484         PR gcov-profile/61889
29485         * config.in: regenerate.
29486         * configure.in: Likewise.
29487         * configure.ac: Check for ftw.h.
29488         * gcov-tool.c: Check for ftw.h before using nftw.
29489
29490 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29491
29492         PR lto/64076
29493         * ipa-visibility.c (update_visibility_by_resolution_info): Only
29494         assert when not in lto mode.
29495
29496 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29497
29498         * ira-color.c (setup_left_conflict_sizes_p): Simplify
29499         initialization/assignment of conflict_size.
29500
29501 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
29502
29503         PR ipa/64978
29504         * ipa-cp.c (gather_caller_stats): Skip thunks.
29505         (propagate_constants_topo): Skip aliases.
29506
29507 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
29508
29509         PR target/64761
29510         * config/sh/sh.c (sh_option_override): Don't change
29511         -freorder-blocks-and-partition to -freorder-blocks even when
29512         unwinding is enabled.
29513         (sh_can_follow_jump): Return false if the followee jump is
29514         a crossing jump when -freorder-blocks-and-partition is specified.
29515         * config/sh/sh.md (*jump_compact_crossing): New insn.
29516
29517 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
29518             Kaz Kojima  <kkojima@gcc.gnu.org>
29519
29520         PR target/64761
29521         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29522         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29523         (sh_can_redirect_branch): Rename to ...
29524         (sh_can_follow_jump): ... this.  Constify argument types.
29525         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29526         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29527         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29528         * doc/tm.texi: Regenerate.
29529
29530 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29531
29532         PR sanitizer/64981
29533         * builtins.c (expand_builtin): Call targetm.expand_builtin
29534         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29535
29536 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29537
29538         PR ipa/61548
29539         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29540
29541 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29542
29543         PR ipa/63566
29544         * ipa-icf.c (set_local): New function.
29545         (sem_function::merge): Use it.
29546
29547 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29548
29549         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29550         (add_type_duplicate): Fix comparison of BINFOs.
29551
29552 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29553
29554         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29555         on getting VOID pointer.
29556
29557 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29558
29559         PR target/64979
29560         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29561         va_list escapes.
29562
29563 2015-02-09  Richard Biener  <rguenther@suse.de>
29564
29565         * genmatch.c (replace_id): Copy expr_type.
29566
29567 2015-02-09  Richard Biener  <rguenther@suse.de>
29568
29569         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29570         (streamer_write_tree_bitfields): Declare.
29571         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29572         properly unpack padding.
29573         (unpack_value_fields): Inline ...
29574         (streamer_read_tree_bitfields): ... here.
29575         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29576         and properly add padding bits.
29577         (streamer_pack_tree_bitfields): Fold into ...
29578         (streamer_write_tree_bitfields): ... this new function,
29579         exposing the bitpack object.
29580         * lto-streamer-out.c (lto_write_tree_1): Call
29581         streamer_write_tree_bitfields.
29582
29583 2015-02-09  Richard Biener  <rguenther@suse.de>
29584
29585         PR tree-optimization/54000
29586         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29587         (struct ivopts_data): Add loop_loc member.
29588         (tree_ssa_iv_optimize_loop): Dump loop location.
29589         (create_new_ivs): Likewise, also dump number of IVs generated.
29590
29591 2015-02-09  Martin Liska  <mliska@suse.cz>
29592
29593         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29594         just if not yet registered.
29595         (ipa_icf_generate_summary): Register callgraph hooks.
29596
29597 2015-02-08  Andrew Pinski  <apinski@cavium.com>
29598
29599         * config/aarch64/aarch64.c (gty_dummy): Delete.
29600
29601 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29602
29603         PR ipa/63566
29604         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29605         (cgraph_node::local_p): Remove thunk related FIXME.
29606
29607 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29608
29609         PR ipa/63566
29610         * i386.c (ix86_function_regparm): Look through aliases to see if callee
29611         is local and optimized.
29612         (ix86_function_sseregparm): Likewise; also use target's SSE math
29613         settings; error out instead of silently generating wrong code
29614         on mismatches.
29615         (init_cumulative_args): Look through aliases.
29616
29617 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29618
29619         PR ipa/63566
29620         * ipa-split.c (execute_split_functions): Split if function has aliases.
29621
29622 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29623
29624         PR ipa/63566
29625         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29626         aliases before trying to expand it.
29627         (cgraph_node::expand_thunk): Fix formating.
29628
29629 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
29630
29631         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29632         (Using Assembly Language with C): Expand introduction.
29633         (Basic Asm): Copy-edit.  Add more information about uses of
29634         basic asm.
29635         (Extended Asm): Copy-edit.  Document new escape syntax and
29636         %l[label] syntax.
29637         (Global Reg Vars): Copy-edit.
29638         (Local Reg Vars): Likewise.
29639
29640 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
29641
29642         PR debug/2714
29643         PR bootstrap/64256
29644         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29645         (DBX_CONTIN_CHAR): Define.
29646
29647 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
29648             Brian Rzycki  <b.rzycki@samsung.com>
29649
29650         PR tree-optimization/64878
29651         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29652         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29653         Stop recursion at loop phi nodes after having visited a loop phi node.
29654
29655 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29656
29657         * toplev.c (process_options): Change flag_ipa_ra before creating
29658         optimization_{default,current}_node.
29659
29660         PR ipa/64896
29661         * cgraphunit.c (cgraph_node::expand_thunk): If
29662         restype is not is_gimple_reg_type nor the thunk_fndecl
29663         returns aggregate_value_p, set restmp to a temporary variable
29664         instead of resdecl.
29665
29666 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
29667
29668         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29669
29670 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29671
29672         PR target/64205
29673         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29674         add a general secondary reload handler for SDmode, unless we have
29675         both read/write support for SDmode.
29676
29677 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29678
29679         PR middle-end/64937
29680         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29681         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29682         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29683         1 before, push it to abstract_vec.
29684         (dwarf2out_abstract_function): Adjust caller.  Don't call
29685         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29686         DECL_ABSTRACT_P flags for all abstract_vec elts.
29687
29688 2015-02-06  Renlin Li  <renlin.li@arm.com>
29689
29690         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29691         complex gimple.
29692         * tree-ssa.c (execute_update_addresses_taken): Likewise.
29693
29694 2015-02-06  Jeff Law  <law@redhat.com>
29695
29696         PR target/64889
29697         * config/h8300/h8300.c (push): New argument "in_prologue".
29698         Pass "in_prologue" along to "F".
29699         (h8300_push_pop): Corresponding changes.
29700         (h8300_expand_prologue): Likewise.
29701         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
29702
29703 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29704
29705         PR rtl-optimization/64957
29706         PR debug/64817
29707         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29708         IOR rather than for AND.
29709
29710 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
29711
29712         PR target/62631
29713         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29714         of shift-add and (add + shift) operations.  Rename local variable.
29715
29716 2015-02-05  Jeff Law  <law@redhat.com>
29717
29718         PR target/17306
29719         * config/h8300/constraints.md (U): Correctly dectect
29720         "eightbit_data" memory addresses.
29721         * config/h8300/h8300.c (eightbit_constant_address_p): Also
29722         handle (const (plus (symbol_ref (x)))) where x is declared
29723         as an 8-bit data memory address.
29724         * config/h8300/h8300.md (call, call_value): Correctly detect
29725         "funcvec" functions.
29726
29727         PR target/43264
29728         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29729         24 to 28 bits for the H8/300.
29730
29731 2015-02-06  Alan Modra  <amodra@gmail.com>
29732
29733         PR target/64876
29734         * config/rs6000/rs6000.c (chain_already_loaded): New function.
29735         (rs6000_call_aix): Use it.
29736
29737 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
29738
29739         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29740         check.
29741
29742 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
29743
29744         * config/h8300/constraints.md ("U" constraint): Use strict
29745         variant of REG_OK_FOR_BASE_P after reload has started.
29746
29747 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
29748
29749         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29750         define to zero if !TARGET_NEON.
29751         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29752
29753 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29754             Trevor Saunders  <tsaunders@mozilla.com>
29755
29756         PR ipa/61548
29757         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29758
29759 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29760
29761         PR ipa/61548
29762         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29763         when removing varpool nodes.
29764
29765 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29766
29767         PR ipa/61548
29768         * varpool.c (varpool_node::remove): Fix order of variables.
29769
29770 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29771
29772         PR ipa/64686
29773         * ipa-inline.c (inline_small_functions): Fix ordering issue between
29774         speculation resolution and key updates.
29775
29776 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29777
29778         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29779         about not letting any speculative edges unupdated.
29780
29781 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29782
29783         PR gcov/64123
29784         * gcov-io.c (gcov_var): Export.
29785
29786 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29787
29788         PR middle-end/64922
29789         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29790         edges that become speculative.
29791
29792 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29793
29794         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29795         or DW_LANG_Fortran08.
29796         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29797         DW_LANG_Fortran08.
29798         (gen_compile_unit_die): Handle "GNU Fortran2003" and
29799         "GNU Fortran2008" language strings.
29800         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29801         * langhooks.h (lang_GNU_Fortran): New prototype.
29802         * langhooks.c (lang_GNU_Fortran): New function.
29803         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29804         lang_GNU_Fortran.
29805
29806 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29807
29808         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29809         (RTX_OK_FOR_OLO10_P): Likewise.
29810
29811 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29812
29813         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29814
29815 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29816
29817         PR middle-end/64922
29818         * gimple.c: Include gimple-ssa.h.
29819         (maybe_remove_unused_call_args): New function.
29820         * gimple.h (maybe_remove_unused_call_args): Declare.
29821         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29822         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29823         * gimple-fold.c (gimple_fold_call): Likewise.
29824
29825 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29826
29827         PR rtl-optimization/64905
29828         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29829         pointer alignment if it isn't needed.
29830
29831 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29832
29833         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29834         cortex-a72.cortex-a53.
29835         * config/aarch64/aarch64-tune.md: Regenerate.
29836         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29837
29838 2015-02-04  Nick Clifton  <nickc@redhat.com>
29839
29840         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29841         inside a MEM.
29842
29843 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29844
29845         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29846         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29847         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29848         of DEF_BUILTIN.
29849         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29850         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29851         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29852         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29853         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29854         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29855         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29856         * tree-core.h (enum built_in_function): In between
29857         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29858         for builtins that use DEF_BUILTIN_CHKP macro.
29859
29860 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
29861
29862         PR debug/64817
29863         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29864         operands for tcc_comparison exprs.  Fix typos.
29865
29866         PR debug/64817
29867         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29868         of two XORs that have an intervening AND or IOR.
29869
29870         PR debug/64817
29871         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29872         simplification of XOR of AND to not allocate new rtx before
29873         committing to a simplification.
29874
29875 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29876
29877         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29878         manual swaps in all peepholes.
29879
29880 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29881
29882         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29883         of manual swapping implementation.
29884         (aarch64_expand_vec_perm_const_1): Likewise.
29885
29886 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
29887
29888         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29889         (generic_addrcost_table): Remove NAMED_PARAM.
29890         (cortexa57_addrcost_table): Likewise.
29891         (xgene1_addrcost_table): Likewise.
29892         (generic_regmove_table): Likewise.
29893         (cortexa53_regmove_table): Likewise.
29894         (xgene1_regmove_table): Likewise.
29895         (generic_vector_table): Likewise.
29896         (cortexa57_vector_table): Likewise.
29897         (xgene1_vector_table): Likewise.
29898         (generic_tunings): Likewise.
29899         (cortexa53_tunings): Likewise.
29900         (cortexa57_tunings): Likewise.
29901         (xgene1_tunings): Likewise.
29902
29903 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29904
29905         * config/arm/arm-cores.def: Add cortex-a72 and
29906         cortex-a72.cortex-a53.
29907         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29908         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29909         * config/arm/arm-tune.md: Regenerate.
29910         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29911         "cortex-a72.cortex-a53".
29912         * doc/invoke.texi (ARM Options/-mtune): Likewise.
29913
29914 2015-02-04  Nick Clifton  <nickc@redhat.com>
29915
29916         PR target/64408
29917         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29918         of accepted codes.
29919         (nonimmediate_di_operand): Likewise.
29920
29921         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29922         prefixes of known F5 using MSP430 MCUs.
29923
29924 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29925
29926         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29927         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29928         instead of __builtin_sqrt.
29929
29930 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
29931
29932         * varasm.c (do_assemble_alias): Follow transparent alias
29933         chain for target.
29934         (default_assemble_visibility): Follow transparent alias
29935         chain for decl name.
29936
29937 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29938
29939         PR middle-end/62103
29940         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
29941         to compute size of referenced value in the constant case.
29942
29943 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29944
29945         PR rtl-optimization/64756
29946         * cse.c (invalidate_dest): New function.
29947         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
29948         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
29949         invalidate and do not record it.
29950
29951 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
29952
29953         PR target/64660
29954         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
29955         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
29956         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
29957         atomic_nand<mode>_soft_tcb): New insns.
29958         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
29959         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
29960         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
29961         Split into atomic_not_fetchsi_hard if operands[0] is unused.
29962         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
29963         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29964         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
29965         atomic_not<mode>_hard if operands[0] is unused.
29966         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
29967         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
29968         if operands[0] is unused.
29969         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
29970         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
29971         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
29972         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29973         unused.
29974         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
29975         into atomic_not<mode>_soft_tcb if operands[0] is unused.
29976         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
29977         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
29978         if operands[0] is unused.
29979         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
29980         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
29981         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
29982         atomic_nand_fetchsi_hard if operands[0] is unused.
29983         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
29984         atomic_nand<mode>_hard if operands[0] is unused.
29985         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
29986         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
29987         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
29988         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29989         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
29990         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
29991         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
29992         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29993         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
29994         atomic_not<mode>_hard if operands[0] is unused.
29995         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
29996         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29997         unused.
29998         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
29999         into atomic_not<mode>_soft_tcb if operands[0] is unused.
30000         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
30001         atomic_nand<mode>_hard if operands[0] is unused.
30002         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
30003         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30004
30005 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
30006
30007         PR jit/64810
30008         * Makefile.in (GCC_OBJS): Add gcc-main.o.
30009         * gcc-main.c: New file, containing "main" taken from gcc.c.
30010         * gcc.c (do_self_spec): Free decoded_options.
30011         (class driver): Move declaration to gcc.h.
30012         (main): Move declaration and implementation to new file
30013         gcc-main.c.
30014         (driver_get_configure_time_options): New function.
30015         * gcc.h (class driver): Move this declaration here, from
30016         gcc.c.
30017         (driver_get_configure_time_options): New declaration.
30018
30019 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
30020
30021         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30022         cross-module inlining.
30023         * cgraph.h (cgraph_node): Add flag merged.
30024         * ipa-icf.c (sem_function::merge): Maintain it.
30025
30026 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
30027
30028         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30029         instead of OBJECT_P.
30030
30031 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
30032
30033         PR target/62631
30034         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30035         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30036         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30037         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30038
30039 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
30040
30041         PR other/63504
30042         * combine.c (reg_n_sets_max): New variable.
30043         (can_change_dest_mode, reg_nonzero_bits_for_combine,
30044         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30045         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30046         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30047         (rest_of_handle_combine): Initialize reg_n_sets_max.
30048
30049 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
30050
30051         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30052         if some always_inline was inlined, apply changes before inlining
30053         heuristically.
30054
30055 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
30056
30057         PR jit/64810
30058         * config/arm/arm.c (arm_option_override): Set
30059         arm_selected_arch/cpu/tune to NULL on entry.
30060
30061 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
30062             Andrew Pinski  <pinskia@gcc.gnu.org>
30063             Jakub Jelinek  <jakub@gcc.gnu.org>
30064
30065         PR target/64231
30066         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30067         integer typing for small model. Use IN_RANGE.
30068
30069 2015-02-02  Richard Biener  <rguenther@suse.de>
30070
30071         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30072         * tree-vrp.c (vrp_valueize_1): Likewise.
30073
30074 2015-02-02  Alan Modra  <amodra@gmail.com>
30075
30076         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30077         than mem for toc_restore.
30078         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30079         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30080         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30081
30082 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
30083
30084         PR target/64047
30085         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30086         explicit default options.
30087
30088 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
30089
30090         PR ipa/64872
30091         * ipa-utils.c (ipa_merge_profiles): Add release argument.
30092         * ipa-icf.c (sem_function::merge): Do not release body when merging.
30093         * ipa-utils.h (ipa_merge_profiles): Update prototype.
30094
30095 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
30096
30097         PR debug/64817
30098         * cfgexpand.c (deep_ter_debug_map): New variable.
30099         (avoid_deep_ter_for_debug): New function.
30100         (expand_debug_expr): If TERed SSA_NAME is in
30101         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30102         instead of trying to expand SSA_NAME's def stmt.
30103         (expand_debug_locations): When expanding debug bind
30104         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30105         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30106         value.
30107         (pass_expand::execute): Call avoid_deep_ter_for_debug on
30108         all debug bind stmts.  Delete deep_ter_debug_map after
30109         expand_debug_location if non-NULL and clear it.
30110
30111 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
30112
30113         PR target/64851
30114         * config/sh/sync.md (atomic_fetch_notsi_hard,
30115         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30116         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30117         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30118         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30119         atomic_not_fetch<mode>_soft_imask): New insns.
30120
30121 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30122
30123         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30124         (rank_for_schedule_debug): Split from ...
30125         (rank_for_schedule): ... this.
30126         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30127         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30128
30129 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30130
30131         * doc/md.texi (Machine Constraints): Alphabetize table by target.
30132         * doc/extend.texi (x86 Variable Attributes): Move section to
30133         correct alphabetization after renaming.
30134         (x86 Type Attributes): Likewise.
30135         (Target Builtins): Re-alphabetize menu.
30136         (x86 Built-in Functions): Move section to correct alphabetization
30137         after renaming.
30138         (x86 transactional memory intrinsics): Likewise.
30139         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30140         and x86 Windows Options in table and menu.
30141         (x86 Options): Move section to correct alphabetization after
30142         renaming.
30143         (x86 Windows Options): Likewise.
30144
30145 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30146
30147         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30148         preferred names of the architecture and its 32- and 64-bit
30149         variants.
30150         * doc/invoke.texi: Likewise.
30151         * doc/md.texi: Likewise.
30152
30153 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30154
30155         PR target/64882
30156         * config/i386/predicates.md (address_no_seg_operand): Reject
30157         non-CONST_INT_P operands in invalid mode.
30158
30159 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30160
30161         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30162         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
30163         * config/i386/predicates.md (address_no_seg_operand): Call
30164         address_operand with VOIDmode.
30165         (vsib_address_operand): Ditto.
30166         (address_mpx_no_base_operand): Ditto.
30167         (address_mpx_no_index_operand): Ditto.
30168
30169 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30170
30171         PR target/64688
30172         * lra-constraints.c (original_subreg_reg_mode): New.
30173         (simplify_operand_subreg): Try to simplify subreg of const.  Use
30174         original_subreg_reg_mode for it.
30175         (swap_operands): Update original_subreg_reg_mode.
30176         (curr_insn_transform): Set up original_subreg_reg_mode.
30177
30178 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30179
30180         PR target/64617
30181         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30182         function.
30183         (process_alt_operands): Use it.
30184         (curr_insn_transform): Check the optional reload pseudo class is
30185         ok for the mode.
30186
30187 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
30188
30189         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30190         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30191         prototype.
30192         * toplev.h (init_asm_output): Update comment on use of
30193         UNKNOWN_LOCATION with fatal_error.
30194         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30195         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30196         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30197         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30198         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30199         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30200         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30201         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30202         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30203         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30204         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30205         fatal_error changed to pass input_location as first argument.
30206
30207 2015-01-30  Martin Liska  <mliska@suse.cz>
30208
30209         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30210         in #pragma GCC diagnostic guards.
30211
30212 2015-01-30  Richard Biener  <rguenther@suse.de>
30213
30214         PR tree-optimization/64829
30215         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30216         not add a widening conversion pattern but hand off extra
30217         widenings to callers.
30218         (vect_recog_widen_mult_pattern): Handle extra widening produced
30219         by vect_handle_widen_op_by_const.
30220         (vect_recog_widen_shift_pattern): Likewise.
30221         (vect_pattern_recog_1): Remove excess vertical space in dumping.
30222         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30223         (vect_init_vector_1): Likewise.
30224         (vect_get_vec_def_for_operand): Likewise.
30225         (vect_finish_stmt_generation): Likewise.
30226         (vectorizable_load): Likewise.
30227         (vect_analyze_stmt): Likewise.
30228         (vect_is_simple_use): Likewise.
30229
30230 2015-01-29  Jeff Law  <law@redhat.com>
30231
30232         * combine.c (try_combine): Fix typo in comment.
30233
30234 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
30235
30236         PR target/64580
30237         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
30238         (rs6000_stack_info): Add assert.
30239         (rs6000_output_savres_externs): New function, split off from...
30240         (rs6000_output_function_prologue): ... here.  Do not call it for
30241         thunks.
30242
30243 2015-01-29  Jeff Law  <law@redhat.com>
30244
30245         PR target/15184
30246         * combine.c (try_combine): If I0 is a memory load and I3 a store
30247         to a related address, increase the "goodness" of doing a 4-insn
30248         combination with I0-I3.
30249         (make_field_assignment): Handle SUBREGs in the ior+and case.
30250
30251 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
30252
30253         PR tree-optimization/64746
30254         * tree-if-conv.c (mask_exists): New function.
30255         (predicate_mem_writes): Save created mask with given size for further
30256         use.
30257         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
30258         (ifcvt_repair_bool_pattern): Collect all statements that are root
30259         of bool pattern and use iterative algorithm to remove multiple uses
30260         of predicates, display number of required iterations.
30261
30262 2015-01-29  Richard Biener  <rguenther@suse.de>
30263
30264         PR tree-optimization/64853
30265         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30266         stmt will get simulated again.
30267         * tree-ssa-ccp.c (valueize_op_1): Likewise.
30268
30269 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30270
30271         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30272         return_in_pc.  Remove redundant assignments.
30273         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30274         (arm_expand_epilogue): Don't compare boolean with true in if condition.
30275
30276 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
30277
30278         * config/i386/i386.c (ix86_mode_after): Make static.
30279
30280 2015-01-29  Richard Biener  <rguenther@suse.de>
30281
30282         PR tree-optimization/64844
30283         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30284         dump cost model analysis.
30285         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30286         Do not register adjusted load/store costs here.
30287
30288 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30289             Uros Bizjak  <ubizjak@gmail.com>
30290
30291         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30292         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30293         using x86_use_pseudo_pic_reg.
30294         * config/i386/i386.c (ix86_conditional_register_usage): Remove
30295         support for fixed PIC register.
30296         (ix86_use_pseudo_pic_reg): Not static any more.
30297
30298 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30299
30300         PR middle-end/64805
30301         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30302         to avoid error in cgraph node verification.
30303
30304 2015-01-29  Marek Polacek  <polacek@redhat.com>
30305
30306         * doc/standards.texi: Reflect that the default for C is gnu11.
30307
30308 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
30309
30310         PR target/64761
30311         * reorg.c (switch_text_sections_between_p): New function.
30312         (relax_delay_slots): Call it when testing if the jump insn
30313         is removable.  Use targetm.can_follow_jump when testing if
30314         the conditional branch can follow an unconditional jump.
30315
30316 2015-01-27  Caroline Tice  <cmtice@google.com>
30317
30318         Committing VTV Cywin/Ming patch for Patrick Wollgast
30319         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30320         if -fvtable-verify=preinit/std is used.
30321         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30322         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30323         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30324         if -fvtable-verify=preinit/std is used.
30325         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30326         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30327         if -fvtable-verify=preinit/std is used.
30328         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30329         * config/i386/mingw32.h (LIB_SPEC): Likewise.
30330         * varasm.c (assemble_variable): Add code to properly set the comdat
30331         section and name for the .vtable_map_vars section in case the
30332         target is PE or COFF.
30333
30334 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30335
30336         PR ipa/64801
30337         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30338         make sane BB profile.
30339         (cgraph_node::expand_thunk): Make sane BB profile.
30340         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30341         * cgraph.h (init_lowered_empty_function): Update prototype.
30342         * config/i386/i386.c (make_resolver_func): Update call.
30343         * predict.c (gate): Disable branch prediction pass if
30344         profile is already there.
30345
30346 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30347
30348         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30349         * opth-gen.awk: Likewise.
30350         * common.opt: Mark flag_fp_contract_mode as Optimization.
30351
30352 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30353
30354         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30355         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30356
30357 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
30358
30359         PR target/64659
30360         * config/sh/predicates.md (atomic_arith_operand,
30361         atomic_logical_operand): Remove.
30362         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30363         (atomic_arith_operand_0): New predicate.
30364         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30365         Use atomic_arith_operand_0 for input values.
30366         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30367         atomic_compare_and_swap<mode>_soft_gusa,
30368         atomic_compare_and_swap<mode>_soft_tcb,
30369         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30370         arith_reg_operand instead of register_operand.
30371         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
30372         atomic_arith_operand_0 for newval input.
30373         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30374         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30375         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30376         arith_reg_operand instead of register_operand.
30377         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30378         fetchop_predicate_1, fetchop_constraint_1_llcs,
30379         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30380         fetchop_constraint_1_imask): New code iterator attributes.
30381         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30382         register_operand.  Use fetchop_predicate_1.
30383         (atomic_fetch_<fetchop_name>si_hard,
30384         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30385         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30386         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30387         and arith_reg_operand instead of register_operand.  Use
30388         fetchop_predicate_1, fetchop_constraint_1_gusa.
30389         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30390         and arith_reg_operand instead of register_operand.  Use
30391         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
30392         to allow R0 usage.
30393         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30394         and arith_reg_operand instead of register_operand.  Use
30395         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
30396         to allow R0 usage.
30397         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30398         register_operand.  Use atomic_logical_operand_1.
30399         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30400         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30401         arith_reg_operand instead of register_operand.
30402         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30403         Use arith_reg_dest and arith_reg_operand instead of register_operand.
30404         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
30405         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30406         register_operand.  Use fetchop_predicate_1.
30407         (atomic_<fetchop_name>_fetchsi_hard,
30408         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30409         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30410         fetchop_constraint_1_llcs.
30411         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30412         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30413         fetchop_constraint_1_gusa.
30414         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30415         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30416         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
30417         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30418         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30419         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
30420         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30421         register_operand.  Use atomic_logical_operand_1.
30422         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30423         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30424         arith_reg_operand instead of register_operand.
30425         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30426         arith_reg_operand instead of register_operand.  Use logical_operand
30427         and K08.  Adjust asm sequence to allow R0 usage.
30428         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30429         arith_reg_operand instead of register_operand.  Use logical_operand
30430         and K08.
30431
30432 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30433
30434         PR other/63504
30435         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30436         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30437         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30438         only get_full_len HOST_WIDE_INTs from get_val () array rather than
30439         all bits in *val_wide.
30440
30441 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
30442
30443         * varpool.c (tls_model_names): Fix names.
30444         (varpool_node::dump): Dump tls- prefix for tls models.
30445
30446 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
30447             Bernd Schmidt  <bernds@codesourcery.com>
30448             Nathan Sidwell  <nathan@codesourcery.com>
30449
30450         * config/nvptx/mkoffload.c: New file.
30451         * config/nvptx/t-nvptx: Add build rules for it.
30452         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30453         (extra_programs): Add mkoffload.
30454         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30455         function.
30456         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30457
30458 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
30459
30460         PR middle-end/64809
30461         * cfgexpand.c (reorder_operands): Skip debug gimples.
30462
30463 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
30464
30465         PR tree-optimization/64277
30466         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30467         range info when possible to refine estimation.
30468
30469 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30470
30471         PR tree-optimization/64718
30472         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30473         be a 16bit unsigned integer when n->range is 16.
30474         (bswap_replace): Convert src to that type if necessary for all bswap
30475         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
30476         set in pass_optimize_bswap::execute ().
30477
30478 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
30479
30480         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30481         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30482         integer and floating point variants.
30483         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30484
30485 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
30486
30487         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30488         for all vector modes.
30489
30490 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30491
30492         PR bootstrap/64612
30493         * doc/sourcebuild.texi (comdat_group): Document.
30494
30495 2015-01-28  Terry Guo  <terry.guo@arm.com>
30496
30497         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30498
30499 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
30500
30501         * toplev.c (print_version): Add param "show_global_state", and
30502         only print GGC and plugin information if it is true.
30503         (init_asm_output): Pass in "true" for the new param when calling
30504         print_version.
30505         (process_options): Likewise.
30506         (toplev::main): Likewise.
30507         * toplev.h (print_version): Add new param to decl.
30508
30509 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30510
30511         PR ipa/60871
30512         PR ipa/64139
30513         * tree.c (lookup_binfo_at_offset): New function.
30514         (get_binfo_at_offset): Use it.
30515
30516 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30517
30518         PR ipa/64282
30519         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30520         on vtable being vtable.
30521
30522 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30523
30524         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30525         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30526         -mhotpatch= option.
30527         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30528         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
30529         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30530         Renamed.
30531         (s390_hotpatch_trampoline_halfwords_max): Renamed.
30532         (s390_hotpatch_hw_max): New name.
30533         (s390_hotpatch_trampoline_halfwords): Renamed.
30534         (s390_hotpatch_hw_before_label): New name.
30535         (get_hotpatch_attribute): Removed.
30536         (s390_hotpatch_hw_after_label): New name.
30537         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30538         attribute.
30539         (s390_attribute_table): Ditto.
30540         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30541         (s390_function_num_hotpatch_hw): New name.
30542         Remove special handling of inline functions and hotpatching.
30543         Return number of nops before and after the function label.
30544         (s390_can_inline_p): Removed.
30545         (s390_asm_output_function_label): Emit a configurable number of nops
30546         after the function label.
30547         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30548         (TARGET_CAN_INLINE_P) Removed.
30549         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30550
30551 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30552             Jiong Wang  <jiong.wang@arm.com>
30553
30554         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30555         of scratch reg.
30556         (cb<optab><mode>1): Likewise.
30557         * config/aarch64/iterators.md (bcond): New define_code_attr.
30558
30559 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30560
30561         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30562         memory accesses.
30563
30564 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30565
30566         * config/s390/s390.c (s390_register_move_cost): Increase costs for
30567         FPR->GPR moves.
30568
30569 2015-01-27  Richard Biener  <rguenther@suse.de>
30570
30571         * tree-vrp.c (update_value_range): Intersect the range with
30572         old recorded SSA name range information.
30573
30574 2015-01-27  Nick Clifton  <nickc@redhat.com>
30575
30576         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30577         BC, DE and HL registers directly, not via AX.
30578         When decrementing the stack pointer by a large amount, transfer SP
30579         into AX and perform the subtraction there.
30580         (rl78_expand_epilogue): Perform the inverse of the above
30581         enhancements.
30582
30583 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30584
30585         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30586
30587 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30588             Yury Gribov  <y.gribov@samsung.com>
30589
30590         PR ubsan/64741
30591         * ubsan.c (ubsan_source_location): Refactor code.
30592         (ubsan_type_descriptor): Update type size. Refactor code.
30593
30594 2015-01-27  Richard Biener  <rguenther@suse.de>
30595
30596         PR tree-optimization/56273
30597         PR tree-optimization/59124
30598         PR tree-optimization/64277
30599         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30600         from the first VRP pass.
30601
30602 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30603
30604         PR ipa/64776
30605         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30606         handle the first argument in the same loop as all the other arguments.
30607
30608         PR rtl-optimization/61058
30609         * jump.c (cleanup_barriers): Update basic block boundaries
30610         if BLOCK_FOR_INSN is non-NULL on PREV.
30611
30612 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30613
30614         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30615         bounds narrowing, already instrumented calls and calls to
30616         not instrumentable functions.
30617
30618 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30619
30620         PR tree-optimization/64807
30621         * wide-int.cc (wi::divmod_internal): Clear
30622         b_dividend[dividend_blocks_needed].
30623
30624 2015-01-26  DJ Delorie  <dj@redhat.com>
30625
30626         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30627         volatile memory references.
30628
30629 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
30630
30631         PR target/49263
30632         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30633         remove_insn.
30634         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30635         shifts if it already fits into K08.
30636
30637 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30638
30639         PR ipa/64730
30640         * ipa-inline.c (inline_small_functions): Print "unknown" even
30641         if edge->call_stmt is non-NULL, but has builtins or unknown
30642         location.
30643
30644         PR middle-end/64421
30645         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30646         with asterisk, skip the first character.
30647
30648 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30649
30650         PR target/64806
30651         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30652         order change.
30653
30654 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
30655
30656         PR target/64795
30657         * config/i386/i386.md (*movdi_internal): Also check operand 0
30658         to determine TYPE_LEA operand.
30659         (*movsi_internal): Ditto.
30660
30661 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30662
30663         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30664         OPTION_MASK_QUAD_MEMORY_ATOMIC.
30665
30666 2015-01-26  Renlin Li  <renlin.li@arm.com>
30667
30668         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30669         the comment.
30670         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30671         for higher part.
30672
30673 2015-01-26  Richard Biener  <rguenther@suse.de>
30674
30675         PR middle-end/64764
30676         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30677         combining two BIT_AND_EXPR predicates.
30678
30679 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30680
30681         PR bootstrap/64754
30682         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30683
30684 2015-01-26  Terry Guo  <terry.guo@arm.com>
30685
30686         * config/arm/arm.c (arm_file_start): Update the assignment of
30687         Tag_ABI_HardFP_use.
30688
30689 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
30690
30691         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30692         pipeline model.
30693         config/arm/arm.md: Include the new Cortex-A57 model.
30694         (generic_sched): Don't use generic_sched when tuning for
30695         Cortex-A57.
30696
30697 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
30698             Uros Bizjak  <ubizjak@gmail.com>
30699
30700         * config/i386/i386.c (get_builtin_code_for_version): Add
30701         support for BMI and BMI2 multiversion functions.
30702
30703 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30704
30705         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30706         (extract_bit_field): Likewise.
30707         (extract_low_bits): Likewise.
30708         (expand_mult): Likewise.
30709         (expand_mult_highpart_adjust): Likewise.
30710
30711 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30712
30713         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30714         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30715         * config/i386/i386.c (processor_model): Add
30716         M_INTEL_COREI7_BROADWELL.
30717         (arch_names_table): Add "broadwell".
30718
30719 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
30720
30721         PR target/49263
30722         PR target/53987
30723         PR target/64345
30724         PR target/59533
30725         PR target/52933
30726         PR target/54236
30727         PR target/51244
30728         * config/sh/sh-protos.h
30729         (sh_extending_set_of_reg::can_use_as_unextended_reg,
30730         sh_extending_set_of_reg::use_as_unextended_reg,
30731         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30732         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30733         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30734         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30735         (sh_treg_insns): New class.
30736         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30737         (scope_counter): New class.
30738         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30739         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30740         sh_extending_set_of_reg::can_use_as_unextended_reg,
30741         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30742         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30743         sh_split_treg_set_expr): New functions.
30744         (addsubcosts): Handle treg_set_expr.
30745         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30746         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30747         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30748         (sh_insn_operands_modified_between_p): Make non-static.
30749         * config/sh/predicates.md (zero_extend_movu_operand): Allow
30750         simple_mem_operand in addition to displacement_mem_operand.
30751         (zero_extend_operand): Don't allow zero_extend_movu_operand.
30752         (treg_set_expr, treg_set_expr_not_const01,
30753         arith_reg_or_treg_set_expr): New predicates.
30754         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30755         arith_or_int_operand instead of logical_operand.  Convert to
30756         insn_and_split.  Try to optimize constant operand in splitter.
30757         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
30758         (*tstqi_t_zero): Delete.
30759         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30760         (tstsi_t_and_not): Delete.
30761         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30762         Convert to insn_and_split.
30763         (unnamed split, tstsi_t_zero_extract_xor,
30764         tstsi_t_zero_extract_subreg_xor_little,
30765         tstsi_t_zero_extract_subreg_xor_big): Delete.
30766         (*tstsi_t_shift_mask): New insn_and_split.
30767         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30768         to recombine with surrounding insns when splitting.
30769         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30770         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30771         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30772         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30773         (*cbranch_div0s: Delete.
30774         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30775         Try to recombine with surrounding insns when splitting.  Add operand
30776         order variants.
30777         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30778         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30779         *addc_r_r_msb, *addc_2r_msb): Delete.
30780         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
30781         order variant.
30782         (*addc_negreg_t): New insn_and_split.
30783         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30784         Try to recombine with surrounding insns when splitting.
30785         Add operand order variants.
30786         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30787         insn_and_split patterns.
30788         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
30789         surrounding insns when splitting.
30790         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30791         (*rotcl): Likewise.  Add zero_extract variant.
30792         (*ashrsi2_31): New insn_and_split.
30793         (*negc): Convert to insn_and_split.  Use treg_set_expr.
30794         (*zero_extend<mode>si2_disp_mem): Update comment.
30795         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30796         condition.
30797         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
30798         with surrounding insns when splitting.
30799         (any_treg_expr_to_reg): New insn_and_split.
30800         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30801         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30802         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30803         *zero_extract_2): New single bit zero extract patterns.
30804         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30805         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30806         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30807         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30808         set destination.
30809         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30810         register_operand for set source.
30811
30812 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
30813
30814         * i386.opt (prefetch_sse): New targetsave.
30815         * i386.c (ix86_function_specific_save): Save prefetch_sse.
30816         (ix86_function_specific_restore): Restore prefetch_sse and initialize
30817         ix86_cost/ix86_tune_cost.
30818
30819 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30820
30821         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30822         Support the JIT by using 0 as the language type.
30823
30824 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
30825
30826         PR target/64317
30827         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
30828         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30829         (mark_regno_live, process_bb_lives): Pass new parameter value to
30830         make_hard_regno_born.
30831
30832 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30833
30834         PR rtl-optimization/63637
30835         PR rtl-optimization/60663
30836         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30837         if elt->cost is MAX_COST for ASM_OPERANDS.
30838         (find_sets_in_insn): Fix up comment typo.
30839         (cse_insn): Don't set src_volatile for all non-volatile
30840         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30841         or with "memory" clobber.  Set elt->cost to MAX_COST
30842         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
30843         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30844
30845 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30846
30847         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30848         alternative 1.
30849
30850 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30851
30852         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30853         libgcc/config/i386/elf-lib.h.
30854
30855 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30856
30857         PR driver/64737
30858         * gcc.c (print_configuration): Don't print a blank line at the end
30859         here...
30860         (run_attempt): ... but here unstead.
30861
30862         PR middle-end/64734
30863         * omp-low.c (scan_sharing_clauses): Don't ignore
30864         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30865         on target data/update constructs.
30866
30867 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30868
30869         PR target/50928
30870         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30871         (DEBUG_RELOAD): Removed define.
30872         (m32c_limit_reload_class): Enable traces with if DEBUG0.
30873         (m32c_function_arg): Added a type cast.
30874         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30875         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30876         * config/m32c/bitops.md (andqi3_16): Likewise.
30877         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30878         (push_a01_l): Likewise.
30879
30880 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30881
30882         PR jit/64721
30883         * main.c (main): Construct toplev instances with init_signals=true.
30884         * toplev.c (general_init): Add param "init_signals", and use it to
30885         conditionalize the calls to signal and host_hooks.extra_signals.
30886         (toplev::toplev): Add param "init_signals".
30887         (toplev::main): When invoking general_init, pass m_init_signals
30888         to control whether signal-handlers are installed.
30889         * toplev.h (toplev::toplev): Add param "init_signals".
30890         (toplev::m_init_signals): New field.
30891
30892 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30893
30894         PR jit/64722
30895         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30896         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30897         latter may be affected by the former (e.g. on i686).
30898
30899 2015-01-23  Martin Liska  <mliska@suse.cz>
30900
30901         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30902         false positive during profiledbootstrap.
30903
30904 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30905
30906         PR libgomp/64672
30907         * lto-opts.c (lto_write_options): Output non-explicit conservative
30908         -fno-openacc.
30909         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30910         (append_compiler_options): Pass -fopenacc through.
30911
30912 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30913
30914         PR libgomp/64707
30915         * lto-opts.c (lto_write_options): Output non-explicit conservative
30916         -fno-openmp.
30917         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30918         (append_compiler_options): Pass -fopenmp through.
30919
30920 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30921
30922         PR debug/64511
30923         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30924         GTY markup.
30925
30926         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30927         * diagnostic.def (DK_ICE_NOBT): New kind.
30928         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30929         like DK_ICE, but never print backtrace.
30930         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30931         (internal_error_no_backtrace): New function.
30932         * gcc.c (execute): Use internal_error_no_backtrace instead of
30933         internal_error.
30934
30935 2015-01-22  Jeff Law  <law@redhat.com>
30936
30937         PR target/52076
30938         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
30939         improve code density for small immediate to memory case.
30940         (insv): Better handle bitfield assignments when the field is
30941         being set to all ones.
30942         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
30943         operand predicate.
30944
30945 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30946             Jakub Jelinek  <jakub@redhat.com>
30947
30948         PR middle-end/64729
30949         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
30950         for !TARGET_LIBC_PROVIDES_SSP version and
30951         -fstack-protector-{all,strong,explicit} otherwise.
30952         * config/freebsd.h (LINK_SSP_SPEC): Handle
30953         -fstack-protector-{strong,explicit}.
30954
30955 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
30956             H.J. Lu  <hongjiu.lu@intel.com>
30957
30958         PR ipa/64694
30959         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
30960         heap.
30961
30962 2015-01-22  Wei Mi  <wmi@google.com>
30963
30964         PR rtl-optimization/64557
30965         * dse.c (record_store): Call get_addr for mem_addr.
30966         (check_mem_read_rtx): Likewise.
30967
30968 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
30969
30970         * fold-const.c (const_binop): Add early return for non-tcc_binary.
30971
30972 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
30973
30974         * toplev.c (init_local_tick): Process the failure when read
30975         fails for random_seed.
30976
30977         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
30978         'pretty_name' to avoid memory overflow.
30979
30980 2015-01-22  Richard Biener  <rguenther@suse.de>
30981
30982         PR middle-end/64728
30983         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
30984         abnormal coalescing on undefined SSA names.
30985
30986 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
30987
30988         PR target/64688
30989         PR target/64477
30990         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
30991         for alternative 3.
30992         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
30993
30994 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
30995
30996         PR middle-end/63325
30997         * fold-const.c (fold_checksum_tree): Don't include value of
30998         expr->decl_with_vis.symtab_node in the checksum.
30999
31000 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31001
31002         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31003
31004 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31005
31006         PR driver/64690
31007         * gcc.c (insert_comments): New function.
31008         (try_generate_repro): Call it.
31009         (append_text): Removed.
31010
31011 2015-01-22  Richard Biener  <rguenther@suse.de>
31012
31013         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31014         with IL incompatible options.  Properly honor user optimize
31015         attributes.
31016
31017 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
31018
31019         PR rtl-optimization/64682
31020         * combine.c (distribute_notes): When moving a death note for
31021         a register that is set in the new I2, make sure to put it
31022         before that new I2.
31023
31024 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
31025
31026         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31027         not TARGET_DEFAULT.
31028
31029 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
31030
31031         PR debug/64511
31032         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31033         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31034         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31035
31036         PR sanitizer/64706
31037         * doc/invoke.texi (-fsanitize=vptr): Document.
31038
31039         PR rtl-optimization/62078
31040         * dse.c: Include cfgcleanup.h.
31041         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31042         anything call purge_all_dead_edges and cleanup_cfg at the end
31043         of the pass.
31044
31045 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
31046
31047         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31048         edges.
31049
31050 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31051
31052         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31053         decl attribute.
31054
31055 2015-01-21  David Sherwood  <david.sherwood@arm.com>
31056             Tejas Belagod <Tejas.Belagod@arm.com>
31057
31058         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31059         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31060         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31061         Removed.
31062
31063 2015-01-21  David Sherwood  <david.sherwood@arm.com>
31064             Tejas Belagod <Tejas.Belagod@arm.com>
31065
31066         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31067         (aarch64_reverse_mask): New decls.
31068         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31069         (insn_count): New mode_attr.
31070         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31071         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31072         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31073         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31074         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31075         (aarch64_simd_st4): New patterns.
31076         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31077         (aarch64_reverse_mask): New functions.
31078
31079 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
31080
31081         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31082         Declare.
31083         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31084         addressing modes for BE.
31085         (aarch64_print_operand): Add 'R' specifier.
31086         (aarch64_simd_disambiguate_copy): Delete.
31087         (aarch64_simd_emit_reg_reg_move): New function.
31088         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31089         in define_splits for structural moves.
31090         (mov<mode>): Use less restrictive predicates.
31091         (*aarch64_mov<mode>): Simplify and only allow for LE.
31092         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31093
31094 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
31095
31096         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31097
31098 2015-01-21  Richard Henderson  <rth@redhat.com>
31099
31100         PR target/64669
31101         * ccmp.c (used_in_cond_stmt_p): Remove.
31102         (expand_ccmp_expr): Don't use it.
31103
31104 2015-01-21  Nick Clifton  <nickc@redhat.com>
31105
31106         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31107         PARALLELs.
31108
31109 2015-01-21  Richard Biener  <rguenther@suse.de>
31110
31111         PR middle-end/64313
31112         * tree-core.h (builtin_info, builtin_info_type): Turn from
31113         an object with two arrays into an array of an object with
31114         decl and two flags, implicit_p and declared_p.
31115         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31116         set_builtin_decl, set_builtin_decl_implicit_p,
31117         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31118         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31119         * builtins.c (builtin_info): Adjust.
31120         * gimplify.c (gimplify_addr_expr): References to builtins
31121         that have been declared by the user makes them eligible for
31122         use by the compiler.  Call set_builtin_decl_implicit_p on them.
31123
31124 2015-01-20  Jeff Law  <law@redhat.com>
31125
31126         PR target/59946
31127         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31128         allow pc-relative addresses in operand predicates or constraints.
31129
31130 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
31131
31132         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31133         neon on aarch32 processors for stringops.
31134
31135 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31136
31137         PR ipa/63576
31138         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31139
31140 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31141
31142         PR lto/45375
31143         * ipa-inline.c: Include lto-streamer.h
31144         (report_inline_failed_reason): Output source file differences and
31145         flags on optimization/target node mismatch.
31146         (can_inline_edge_p): Consider caller to be the outer inline function;
31147         be less restrictive about matching opimize and optimize_size attributes.
31148         (inline_account_function_p): Break out from ...
31149         (inline_small_functions): ... here.
31150         * ipa-inline-transform.c (clone_inlined_nodes): Use
31151         inline_account_function_p.
31152         (inline_call): Use optimize attribution; use inline_account_function_p.
31153         (inline_transform): Use opt_for_fn.
31154         * ipa-inline.h (inline_account_function_p): Declare.
31155
31156 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
31157
31158         PR debug/64663
31159         * dwarf2out.c (decl_piece_node): Don't put bitsize into
31160         mode if bitsize <= 0.
31161         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31162         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31163         sizes and positions.
31164
31165 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
31166
31167         * config/nios2/nios2.c (nios2_asm_file_end): Implement
31168         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31169         needed.
31170         (TARGET_ASM_FILE_END): Define.
31171
31172 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31173
31174         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31175         (struct tune_params): Use the enum.
31176         * arm.c (arm_*_tune): Update.
31177         (arm_option_override): Update.
31178
31179 2015-01-20  Richard Biener  <rguenther@suse.de>
31180
31181         PR ipa/64684
31182         * ipa-reference.c (add_static_var): Inline ...
31183         (analyze_function): ... here after splitting out from ...
31184         (is_proper_for_analysis): ... this.
31185
31186 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
31187
31188         PR target/64149
31189         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31190         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31191         replace the conditional with it's true branch.
31192         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31193         (arm_lra_p): Remove.
31194
31195 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
31196
31197         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31198
31199 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31200
31201         * config/tilegx/mul-tables.c: Move symtab.h include after
31202         coretypes.h include.
31203         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31204         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31205         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31206         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31207         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31208
31209 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
31210
31211         PR bootstrap/64676
31212         Revert:
31213         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31214
31215         PR rtl-optimization/64081
31216         * loop-iv.c (def_pred_latch_p): New function.
31217         (latch_dominating_def): Allow specific cases with non-single
31218         definitions.
31219         (iv_get_reaching_def): Likewise.
31220         (check_complex_exit_p): New function.
31221         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31222         with exits not executing on any iteration.
31223
31224 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31225
31226         PR lto/45375
31227         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31228         to set branch cost.
31229
31230 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31231
31232         PR lto/45375
31233         * i386.c (gate): Check flag_expensive_optimizations and
31234         optimize_size.
31235         (ix86_option_override_internal): Drop optimize_size condition
31236         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31237         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
31238         MASK_PREFER_AVX128.
31239         (ix86_avx256_split_vector_move_misalign,
31240         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
31241         * sse.md (all uses of TARGET_PREFER_AVX128): Add
31242         optimize_insn_for_speed_p check.
31243
31244 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
31245
31246         * config/mips/mips.h (FP_ASM_SPEC): New define.
31247         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
31248         instead.
31249
31250 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
31251
31252         PR target/53988
31253         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31254         nullptr for insn when reaching the first insn.
31255         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
31256         (sh_insn_operands_modified_between_p): Add nullptr check.
31257         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
31258         sign extending mem load if the insn contains any UNSPEC or
31259         UNSPEC_VOLATILE.
31260
31261 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31262
31263         * params.def (inline-unit-growth): Drop to 15%.
31264         * invoke.texi (inline-unit-growth): Document change.
31265
31266 2015-01-19  Martin Liska  <mliska@suse.cz>
31267
31268         PR ipa/64668
31269         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31270         function for second argument of OBJ_TYPE_REF.
31271
31272 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31273
31274         PR ipa/64218
31275         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31276         whether function is an alias.
31277
31278 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31279
31280         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31281         cases.
31282
31283 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
31284
31285         PR rtl-optimization/64671
31286         * lra-remat.c (operand_to_remat): Don't consider jump and call
31287         insns.
31288
31289 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
31290
31291         PR target/59828
31292         * config/rs6000/default64.h: Include rs6000-cpus.def.
31293         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31294         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31295         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31296         and POWER8.
31297         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31298         POWER8.
31299         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31300         pseudo-op to specify assembler dialect.
31301
31302 2015-01-19  Martin Liska  <mliska@suse.cz>
31303
31304         PR ipa/64664
31305         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31306         Handle safe potentially removed nodes during filtering.
31307
31308 2015-01-19  Martin Liska  <mliska@suse.cz>
31309
31310         * doc/extend.texi (no_icf): Add new attribute description.
31311         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31312         where the pass attempts to merge a function with no_icf attribute.
31313
31314 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31315
31316         PR target/64532
31317         * doc/md.texi (ARM Options): Document register constraints.
31318
31319 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
31320             Andrew Pinski  <apinski@cavium.com>
31321
31322         PR target/64304
31323         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31324         (ashl<mode>3): Don't expand if operands[2] is not constant.
31325
31326 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31327
31328         PR target/64448
31329         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31330         Match xor-and-xor RTL pattern.
31331
31332 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31333
31334         PR rtl-optimization/64081
31335         * loop-iv.c (def_pred_latch_p): New function.
31336         (latch_dominating_def): Allow specific cases with non-single
31337         definitions.
31338         (iv_get_reaching_def): Likewise.
31339         (check_complex_exit_p): New function.
31340         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31341         with exits not executing on any iteration.
31342
31343 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
31344
31345         * common.opt (fgraphite): Fix a typo.
31346
31347 2015-01-19  Felix Yang  <felix.yang@huawei.com>
31348
31349         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31350         pattern.
31351         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31352         uminp, smax_nanp, smin_nanp): New builtins.
31353         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31354         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31355         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31356         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31357         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31358         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31359         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31360         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31361         vpminnms_f32): Rewrite using builtin functions.
31362
31363 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
31364
31365         PR libgomp/64625
31366         * omp-low.c (offload_symbol_decl): Remove variable.
31367         (get_offload_symbol_decl): Remove function.
31368         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31369         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31370         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31371         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31372         BUILT_IN_GOACC_UPDATE don't pass it at all.
31373
31374 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31375
31376         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31377         callers.
31378
31379 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31380
31381         * ipa-chkp.c (chkp_produce_thunks): Add early param
31382         to split thunks production into two passes.  Keep
31383         'always_inline' function bodies after the first pass.
31384         (pass_data_ipa_chkp_early_produce_thunks): New.
31385         (pass_ipa_chkp_early_produce_thunks): New.
31386         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31387         chkp_produce_thunks signature.
31388         (make_pass_ipa_chkp_early_produce_thunks): New.
31389         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31390         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31391         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31392
31393 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31394
31395         * cgraph.c (cgraph_node::dump): Dump profile flags.
31396
31397 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
31398
31399         PR target/64652
31400         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31401         reg appear first in the parallel.
31402
31403 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31404
31405         * ipa-reference.c (set_reference_optimization_summary,
31406         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31407         disabled.
31408         (ignore_module_statics): New static var.
31409         (propagate_bits): If ipa-reference is disabled, do not look into local
31410         properties.
31411         (analyze_function): Disable analysis when ipa_reference is disabled.
31412         (generate_summary): Do not dump when reference is disabled;
31413         collect vars accessed from functions with ipa-reference disabled.
31414         (get_read_write_all_from_node): When ipa-reference is disabled, use the
31415         node flags.
31416         (gate): Enable for LTO.
31417         (ignore_edge_p): New function.
31418         (propagate): Skip functions w/o ipa-reference analysis.
31419         * optc-save-gen.awk: Handle optimize_debug correctly.
31420         * opth-gen.awk: Likewise.
31421         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31422         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31423         fira-share-save-slots, fira-share-spill-slots,
31424         fmodulo-sched-allow-regmoves, fpartial-inlining,
31425         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31426         ftracer, ftree-parallelize-loops, fassociative-math,
31427         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31428         Optimization
31429         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31430         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31431         Optimization.
31432         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31433         Fix for IPA.
31434
31435 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31436
31437         PR ipa/64378
31438         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31439         flag correctly.
31440         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31441
31442 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
31443
31444         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31445         Remove duplicate option listings.
31446
31447 2015-01-18  Felix Yang  <felix.yang@huawei.com>
31448
31449         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31450         (autofdo_source_profile::get_callsite_total_count,
31451         function_instance::get_function_instance_by_decl,
31452         string_table::get_index, string_table::get_index_by_decl,
31453         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31454         Fix comment typos. Reformatting and minor code rearrangement.
31455
31456 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31457
31458         * config/rs6000/rs6000.md (probe_stack): Delete.
31459         (probe_stack_address): New.
31460
31461 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31462
31463         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31464         to test for 32-bit ABIs, not !TARGET_POWERPC64.
31465
31466 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31467
31468         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31469         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
31470         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
31471         snafu.
31472         (rs6000_libcall_value): Use the new function.
31473
31474 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
31475
31476         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31477
31478 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
31479
31480         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31481         implement a more precise life analysis for it during backward scan.
31482
31483 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
31484
31485         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31486
31487 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
31488
31489         PR rtl-optimization/52773
31490         * calls.c (emit_library_call_value): When pushing arguments use
31491         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31492         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
31493         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31494
31495 2015-01-17  Jeff Law  <law@redhat.com>
31496
31497         PR rtl-optimization/32790
31498         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31499         not ZERO_EXTEND in SET_DESTs.
31500
31501 2015-01-17  Alan Modra  <amodra@gmail.com>
31502
31503         * cprop.c (do_local_cprop): Revert last change.
31504
31505 2015-01-16  DJ Delorie  <dj@redhat.com>
31506             Nick Clifton  <nickc@redhat.com>
31507
31508         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31509         (addhi3_real): Likewise.  Fix [HL+0] syntax.
31510         (subqi3_real): Likewise.
31511         (subhi3_real): Likewise.
31512         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
31513         (cbranchhi4_real): Likewise.
31514         (cbranchhi4_real_inverted): Likewise.
31515         (cbranchsi4_real_lt): Likewise.
31516         (cbranchsi4_real_ge): Likewise.
31517         (cbranchsi4_real_ge): Likewise.
31518         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31519         (sub<mode>3_virt): Likewise.
31520         (cbranchqi4_virt): Likewise.
31521         (cbranchhi4_virt): Likewise.
31522         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31523         always use '[reg+imm]' even when imm is zero.
31524         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31525         (rl78_general_operand): New.
31526         (rl78_nonimmediate_operand): New.
31527         (rl78_nonfar_operand): Use them.
31528         (rl78_nonfar_nonimm_operand): Likewise.
31529         (rl78_stack_based_mem): Fix.
31530         * config/rl78/constraints.md (Ibqi): New.
31531         (IBqi): New.
31532         (Wsa): New.
31533         (Wsf): New.
31534         (Cs1): Fix.
31535         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31536         (iorqi3): Likewise.
31537         (xorqi3): Likewise.
31538         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31539
31540         * config/rl78/constrains (Qs8): New constraint.
31541         * config/rl78/rl78.c (rl78_flags_already_set): New function.
31542         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31543         * config/rl78/rl78-real.md (update_Z): New attribute.
31544         Update patterns to set it.
31545         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31546         shorter compare and branch sequence can be used.
31547         (cbranchhi4_real): Likewise.
31548         (cbranchhi4_real_inverted): Likewise.
31549
31550         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31551         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31552         address space.
31553         * config/rl78/rl78.c (rl78_get_name_encoding): New.
31554         (rl78_option_override): Allow -mes0 only if C.
31555         (characterize_address): Support subregs of symbol_refs.
31556         (rl78_addr_space_address_mode): Move.  Add __near.
31557         (rl78_far_p): Likewise.
31558         (rl78_addr_space_pointer_mode): Likewise.
31559         (rl78_as_legitimate_address): Likewise.
31560         (rl78_addr_space_subset_p): Likewise.
31561         (rl78_addr_space_convert): Likewise.
31562         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31563         symbols with -mes0.
31564         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
31565         addressing.
31566         (rl78_alloc_physical_registers_op1): Change logic to prefer
31567         symbol[BC] addressing.
31568         (frodata_section): New.
31569         (rl78_asm_init_sections): Initialize it.
31570         (rl78_select_section): Put __far readonly symbols in .frodata.
31571         (rl78_make_type_far): New.
31572         (rl78_insert_attributes): Force all readonly symbols to be
31573         __far when -mes0.
31574         (rl78_asm_out_integer): New.
31575         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31576         * config/rl78/rl78.opt (-mes0): New.
31577
31578         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31579         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31580         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31581         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31582         (rl78_saddr_p): New.
31583         (rl78_output_aligned_common): New.
31584         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31585         (rl78_handle_saddr_attribute): New.
31586         (rl78_handle_naked_attribute): New.
31587         (rl78_attribute_table): Add saddr.
31588         (rl78_print_operand_1): Don't print '!' on saddr operands.
31589         (rl78_print_operand_1): Strip encodings.
31590         (rl78_sfr_p): New.
31591         (rl78_strip_name_encoding): New.
31592         (rl78_attrlist_to_encoding): New.
31593         (rl78_encode_section_info): New.
31594         (rl78_asm_init_sections): New.
31595         (rl78_select_section): New.
31596         (rl78_output_labelref): New.
31597         (rl78_output_aligned_common): New.
31598         (rl78_asm_out_integer): New.
31599         (rl78_asm_ctor_dtor): New.
31600         (rl78_asm_constructor): New.
31601         (rl78_asm_destructor): New.
31602
31603         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31604         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31605         (transcode_memory_rtx): Update.
31606         (rl78_expand_epilogue): Use A_REG instead of 0.
31607
31608 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31609
31610         * config/arm/arm-protos.h (struct tune_params): New field
31611         sched_autopref_queue_depth.
31612         * config/arm/arm.c (sched-int.h): Include header.
31613         (arm_first_cycle_multipass_dfa_lookahead_guard,)
31614         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31615         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31616         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31617         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31618         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31619         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31620         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31621         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
31622         * config/arm/t-arm (arm.o): Update.
31623         * haifa-sched.c (update_insn_after_change): Update.
31624         (rank_for_schedule): Use auto-prefetcher model, if requested.
31625         (autopref_multipass_init): New static function.
31626         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31627         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31628         variable for debug dumps.
31629         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31630         (autopref_multipass_dfa_lookahead_guard): New global function that
31631         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31632         (init_h_i_d): Update.
31633         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31634         * sched-int.h (enum autopref_multipass_data_status): New const enum.
31635         (autopref_multipass_data_): Structure for auto-prefetcher data.
31636         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31637         (struct _haifa_insn_data:autopref_multipass_data): New field.
31638         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31639         (autopref_multipass_dfa_lookahead_guard): Declare.
31640
31641 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31642
31643         * rtlanal.c (get_base_term): Handle SCRATCH.
31644
31645 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31646
31647         * config/aarch64/aarch64.c
31648         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31649         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31650         * config/arm/arm.c
31651         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31652         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31653
31654 2015-01-17  Alan Modra  <amodra@gmail.com>
31655
31656         * cprop.c (do_local_cprop): Disallow replacement of fixed
31657         hard registers.
31658
31659 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31660
31661         PR target/62066
31662         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31663         early return 0.
31664
31665 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31666
31667         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31668         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31669
31670 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31671
31672         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31673         * config/arm/thumb1.md: ... Here.
31674
31675 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31676
31677         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31678         TImode for TARGET_32BIT.
31679
31680 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31681
31682         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31683         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31684         as ...
31685         (rs6000_abi_word_mode): New function.
31686
31687 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31688
31689         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31690         instead of UNITS_PER_WORD to describe the size of stack slots.
31691
31692 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31693
31694         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31695         as rs6000_promote_function_mode.  Move comment to there.
31696         (rs6000_promote_function_mode): New function.
31697
31698 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31699
31700         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31701         -mpowerpc64 is active.
31702
31703 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31704
31705         PR middle-end/64353
31706         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31707         virtuals on start.
31708
31709 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31710
31711         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31712         introduced in revision 219724.
31713
31714 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31715             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31716
31717         PR target/64263
31718         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31719         destination is not a GP reg.
31720         (*movdi_aarch64): Likewise.
31721
31722 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
31723
31724         PR target/64623
31725         * config/rs6000/default64.h: Revert ISA change.
31726
31727 2015-01-16  Richard Biener  <rguenther@suse.de>
31728
31729         PR middle-end/64614
31730         * tree-ssa-uninit.c: Include tree-cfg.h.
31731         (MAX_SWITCH_CASES): New define.
31732         (convert_control_dep_chain_into_preds): Handle switch statements.
31733         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31734         (normalize_one_pred_1): Do not split bit-manipulations.
31735         Record (x & CST).
31736
31737 2015-01-16  Richard Biener  <rguenther@suse.de>
31738
31739         PR tree-optimization/64568
31740         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31741         complex load rewriting for TARGET_MEM_REFs.
31742
31743 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
31744
31745         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31746
31747 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
31748
31749         PR target/64149
31750         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31751         variable.
31752         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31753         (aarch64_lra_p): Remove.
31754
31755 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31756
31757         PR target/64363
31758         * ipa-chkp.h (chkp_instrumentable_p): New.
31759         * ipa-chkp.c: Include tree-inline.h.
31760         (chkp_instrumentable_p): New.
31761         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31762         Fix processing of not instrumentable functions.
31763         (chkp_versioning): Use chkp_instrumentable_p. Warn about
31764         not instrumentable functions.
31765         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31766         chkp_instrumentable_p.
31767         * tree-inline.h (copy_forbidden): New.
31768         * tree-inline.c (copy_forbidden): Not static anymore.
31769
31770 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31771
31772         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31773         ptr1, ptr2 unused.
31774
31775 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31776
31777         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31778         type OP_OUT to OP_INOUT.
31779
31780 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31781
31782         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31783         (high x) y) to y if x and y have the same base.
31784
31785 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31786
31787         * config/arm/cortex-a57.md: New.
31788         * config/aarch64/aarch64.md: Include it.
31789         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31790         * config/aarch64/aarch64-tune.md: Regenerate.
31791
31792 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31793
31794         PR target/64015
31795         * ccmp.c (expand_ccmp_next): New function.
31796         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31797         and compare insn sequence.
31798         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31799         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31800         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31801         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31802         (*ccmp_ior): Changed to ccmp_ior<mode>.
31803         (cmp<mode>): New pattern.
31804         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31805         parameters.
31806         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31807
31808 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
31809
31810         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31811         _mm256_bsrli_epi128): New.
31812         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31813
31814 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31815
31816         * expmed.c (store_bit_field_using_insv): Improve warning message.
31817         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31818
31819 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31820
31821         PR rtl-optimization/64011
31822         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31823         there is partial overflow.
31824
31825 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31826
31827         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31828         prototype.
31829         (nds32_expand_epilogue_v3pop): Likewise.
31830         * config/nds32/nds32.md (sibcall): Define this for sibling call
31831         optimization.
31832         (sibcall_register): Likewise.
31833         (sibcall_immediate): Likewise.
31834         (sibcall_value): Likewise.
31835         (sibcall_value_register): Likewise.
31836         (sibcall_value_immediate): Likewise.
31837         (sibcall_epilogue): Likewise.
31838         (epilogue): Pass false to indicate this is not a sibcall epilogue.
31839         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31840         (nds32_expand_epilogue_v3pop): Likewise.
31841
31842 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31843
31844         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31845         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31846         (return_internal): New.
31847         (return): Define this named pattern.
31848         (simple_return): Define this named pattern.
31849         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31850         pattern instead of unspec_volatile_func_return.
31851         (nds32_expand_epilogue_v3pop): Likewise.
31852         (nds32_can_use_return_insn): New function.
31853
31854 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31855
31856         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31857         * config/nds32/nds32.md (pop25return): New.
31858         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31859         pop25return pattern.
31860
31861 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31862
31863         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31864         -mforbid-fp-as-gp, and -mex9 options.
31865
31866 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31867
31868         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31869         remove -mgp-direct option.
31870
31871 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31872
31873         * doc/invoke.texi (--param early-inlining-insns): Update default value.
31874         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31875
31876 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31877
31878         * ipa-inline.c (inline_small_functions): Work around hints
31879         cache issue.
31880
31881 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
31882
31883         PR target/59710
31884         * doc/invoke.texi (Option Summary): Document new Nios II
31885         -mgpopt= syntax.
31886         (Nios II Options): Likewise.
31887         * config/nios2/nios2.opt: Add -mgpopt= option support.
31888         Modify existing -mgpopt and -mno-gpopt options to be aliases.
31889         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31890         * config/nios2/nios2.c (nios2_option_override): Adjust
31891         -mgpopt defaulting.
31892         (nios2_in_small_data_p): Return true for explicit small data
31893         sections even with -G0.
31894         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31895         option choices.
31896
31897 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31898
31899         PR ipa/64612
31900         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31901         of comdat locals.
31902         (inline_call): Fix removal of aliases.
31903
31904 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
31905
31906         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31907         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31908         * opts.c (common_handle_option): Add -fsanitize=vptr.
31909         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31910         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31911         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31912         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31913         (ubsan_expand_vptr_ifn): New prototype.
31914         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31915         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31916         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31917         expand_LOOP_VECTORIZED): Make argument nameless, remove
31918         ATTRIBUTE_UNUSED.
31919         (expand_UBSAN_VPTR): New function.
31920         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31921         in fn spec.
31922         (UBSAN_VPTR): New internal function.
31923         * sanopt.c (tree_map_traits): Renamed to ...
31924         (sanopt_tree_map_traits): ... this.
31925         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31926         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31927         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
31928         (maybe_optimize_ubsan_vptr_ifn): New function.
31929         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31930         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
31931         -fsanitize=vptr.
31932         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31933         internal calls like pure functions for aliasing, even when they
31934         have other side-effects that prevent making them ECF_PURE.
31935         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
31936         (ubsan_expand_vptr_ifn): New function.
31937
31938 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
31939
31940         PR rtl-optimization/64110
31941         * stmt.c (parse_output_constraint): Process '^' and '$'.
31942         (parse_input_constraint): Ditto.
31943         * lra-constraints.c (process_alt_operands): Process the new
31944         constraints.
31945         * ira-costs.c (record_reg_classes): Process the new constraint
31946         '^'.
31947         * genoutput.c (indep_constraints): Add '^' and '$'.
31948         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
31949         * doc/md.texi: Add description of the new constraints.
31950
31951 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
31952             Bernd Schmidt  <bernds@codesourcery.com>
31953             Cesar Philippidis  <cesar@codesourcery.com>
31954             James Norris  <jnorris@codesourcery.com>
31955             Tom de Vries  <tom@codesourcery.com>
31956             Ilmir Usmanov  <i.usmanov@samsung.com>
31957             Dmitry Bocharnikov  <dmitry.b@samsung.com>
31958             Evgeny Gavrin  <e.gavrin@samsung.com>
31959             Jakub Jelinek  <jakub@redhat.com>
31960
31961         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
31962         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31963         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31964         New function types.
31965         * builtins.c: Include "gomp-constants.h".
31966         (expand_builtin_acc_on_device): New function.
31967         (expand_builtin, is_inexpensive_builtin): Handle
31968         BUILT_IN_ACC_ON_DEVICE.
31969         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
31970         New macros.
31971         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
31972         flag_openmp.
31973         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
31974         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
31975         i386/intelmic-offload.h.
31976         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
31977         to libgomp and its dependencies.
31978         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
31979         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
31980         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
31981         * config/ia64/hpux.h (LIB_SPEC): Likewise.
31982         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31983         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
31984         * doc/generic.texi: Update for OpenACC changes.
31985         * doc/gimple.texi: Likewise.
31986         * doc/invoke.texi: Likewise.
31987         * doc/sourcebuild.texi: Likewise.
31988         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
31989         GF_OMP_FOR_KIND_OACC_LOOP.
31990         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
31991         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
31992         GF_OMP_TARGET_KIND_OACC_UPDATE,
31993         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31994         Dump more data.
31995         * gimple.c: Update comments for OpenACC changes.
31996         * gimple.def: Likewise.
31997         * gimple.h: Likewise.
31998         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
31999         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32000         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32001         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32002         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32003         appropriate place.
32004         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32005         * gimplify.c: Include "gomp-constants.h".
32006         Update comments for OpenACC changes.
32007         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32008         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32009         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32010         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32011         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32012         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32013         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32014         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32015         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32016         OMP_CLAUSE_SEQ.
32017         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32018         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
32019         OMP_CLAUSE_SET_MAP_KIND.
32020         (gimplify_oacc_cache): New function.
32021         (gimplify_omp_for): Handle OACC_LOOP.
32022         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32023         OACC_DATA.
32024         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32025         OACC_EXIT_DATA, OACC_UPDATE.
32026         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32027         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32028         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32029         (gimplify_body): Consider flag_openacc next to flag_openmp.
32030         * lto-streamer-out.c: Include "gomp-constants.h".
32031         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32032         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32033         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32034         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32035         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32036         (BUILT_IN_ACC_ON_DEVICE): New builtins.
32037         * omp-low.c: Include "gomp-constants.h".
32038         Update comments for OpenACC changes.
32039         (struct omp_context): Add reduction_map, gwv_below, gwv_this
32040         members.
32041         (extract_omp_for_data, use_pointer_for_field, install_var_field)
32042         (new_omp_context, delete_omp_context, scan_sharing_clauses)
32043         (create_omp_child_function, scan_omp_for, scan_omp_target)
32044         (check_omp_nesting_restrictions, lower_reduction_clauses)
32045         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32046         Update for OpenACC changes.
32047         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32048         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32049         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32050         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32051         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32052         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
32053         OMP_CLAUSE_MAP_*.
32054         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32055         Handle GF_OMP_FOR_KIND_OACC_LOOP.
32056         (expand_omp_target, lower_omp_target): Handle
32057         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32058         GF_OMP_TARGET_KIND_OACC_UPDATE,
32059         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32060         GF_OMP_TARGET_KIND_OACC_DATA.
32061         (pass_expand_omp::execute, execute_lower_omp)
32062         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32063         flag_openmp.
32064         (offload_symbol_decl): New variable.
32065         (oacc_get_reduction_array_id, oacc_max_threads)
32066         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32067         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32068         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32069         (oacc_gimple_assign, oacc_initialize_reduction_data)
32070         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32071         functions.
32072         (is_targetreg_ctx): Remove function.
32073         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32074         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32075         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32076         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32077         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32078         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32079         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32080         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32081         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32082         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32083         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32084         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32085         * tree-core.h: Update comments for OpenACC changes.
32086         (enum omp_clause_map_kind): Remove.
32087         (struct tree_omp_clause): Change type of map_kind member from enum
32088         omp_clause_map_kind to unsigned char.
32089         * tree-inline.c: Update comments for OpenACC changes.
32090         * tree-nested.c: Likewise.  Include "gomp-constants.h".
32091         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32092         (convert_tramp_reference_stmt, convert_gimple_call): Update for
32093         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
32094         OMP_CLAUSE_SET_MAP_KIND.
32095         * tree-pretty-print.c: Include "gomp-constants.h".
32096         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32097         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32098         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32099         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32100         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32101         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
32102         instead of OMP_CLAUSE_MAP_*.
32103         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32104         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32105         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32106         * tree-streamer-in.c: Include "gomp-constants.h".
32107         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32108         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
32109         * tree-streamer-out.c: Include "gomp-constants.h".
32110         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32111         OMP_CLAUSE_MAP_*.
32112         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32113         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32114         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32115         * tree.c (omp_clause_num_ops): Update accordingly.
32116         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32117         Likewise.
32118         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32119         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32120         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32121         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32122         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32123         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32124         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32125         (OMP_CLAUSE_SET_MAP_KIND): New macro.
32126         * varpool.c (varpool_node::get_create): Consider flag_openacc next
32127         to flag_openmp.
32128         * config/i386/intelmic-offload.h: New file.
32129         * config/nvptx/offload.h: Likewise.
32130
32131 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32132
32133         * explow.h: Remove duplicate contents.
32134         * dojump.h: Likewise.
32135
32136 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
32137
32138         * arm.c (arm_xgene_tune): Add default initializer for instruction
32139         fusion.
32140
32141 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
32142
32143         PR ipa/64068
32144         PR ipa/64559
32145         * ipa.c (symbol_table::remove_unreachable_nodes):
32146         Do not put abstract origins into boundary.
32147
32148 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
32149
32150         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32151         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32152
32153 2015-01-15  Steve Ellcey  <sellcey@mips.com>
32154
32155         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32156         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32157         builtins.def, and chkp-builtins.def.
32158
32159 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
32160
32161         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32162         ISA 2.7 (POWER8).
32163
32164 2015-01-15  Richard Biener  <rguenther@suse.de>
32165
32166         PR tree-optimization/61743
32167         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32168         information on PHIs for some simple cases.
32169
32170 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32171
32172         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32173         Include xgene1.md.
32174         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32175         * config/arm/arm-cores.def (xgene1): New entry.
32176         * config/arm/arm-tables.opt: Regenerate.
32177         * config/arm/arm-tune.md: Regenerate.
32178         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32179
32180 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32181
32182         * tree-if-conv.c: Include hash-map.h.
32183         (aggressive_if_conv): New variable.
32184         (fold_build_cond_expr): Add simplification of non-zero condition.
32185         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32186         destination block is not always executed.
32187         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32188         than two predecessors if AGGRESSIVE_IF_CONV is true.
32189         (if_convertible_stmt_p): Fix commentary.
32190         (all_preds_critical_p): New function.
32191         (has_pred_critical_p): New function.
32192         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32193         BB can have more than two predecessors and all incoming edges can be
32194         critical.
32195         (predicate_bbs): Skip predication for loop exit block, use build2_loc
32196         to compute predicate for true edge.
32197         (find_phi_replacement_condition): Delete this function.
32198         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32199         Allow interchange PHI arguments if EXTENDED is false.
32200         Change check that block containing reduction statement candidate
32201         is predecessor of phi-block since phi may have more than two arguments.
32202         (phi_args_hash_traits): New helper structure.
32203         (struct phi_args_hash_traits): New type.
32204         (phi_args_hash_traits::hash): New function.
32205         (phi_args_hash_traits::equal_keys): New function.
32206         (gen_phi_arg_condition): New function.
32207         (predicate_scalar_phi): Add handling of phi nodes with more than two
32208         arguments, delete COND and TRUE_BB arguments, insert body of
32209         find_phi_replacement_condition to predicate ordinary phi nodes.
32210         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32211         delete call of find_phi_replacement_condition and invoke
32212         predicate_scalar_phi with two arguments.
32213         (insert_gimplified_predicates): Add assert that non-predicated block
32214         don't have statements to insert.
32215         (ifcvt_split_critical_edges): New function.
32216         (ifcvt_split_def_stmt): Likewise.
32217         (ifcvt_walk_pattern_tree): Likewise.
32218         (stmt_is_root_of_bool_pattern): Likewise.
32219         (ifcvt_repair_bool_pattern): Likewise.
32220         (ifcvt_local_dce): Likewise.
32221         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32222         is copy of inner or outer loop force_vectorize field, invoke
32223         ifcvt_split_critical_edges, ifcvt_local_dce and
32224         ifcvt_repair_bool_pattern for aggressive if-conversion.
32225
32226 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
32227
32228         * config/aarch64/aarch64.md: Include xgene1.md.
32229         * config/aarch64/xgene1.md: New file.
32230
32231 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32232
32233         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32234         xgene1 (APM XGene-1) core definition.
32235         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32236         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32237         * doc/invoke.texi: Document -mcpu=xgene1.
32238
32239 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32240
32241         * dojump.h: New header file.
32242         * explow.h: Likewise.
32243         * expr.h: Remove includes.
32244         Move expmed.c prototypes to expmed.h.
32245         Move dojump.c prototypes to dojump.h.
32246         Move alias.c prototypes to alias.h.
32247         Move explow.c prototypes to explow.h.
32248         Move calls.c prototypes to calls.h.
32249         Move emit-rtl.c prototypes to emit-rtl.h.
32250         Move varasm.c prototypes to varasm.h.
32251         Move stmt.c prototypes to stmt.h.
32252         (saved_pending_stack_adjust): Move to dojump.h.
32253         (adjust_address): Move to explow.h.
32254         (adjust_address_nv): Move to emit-rtl.h.
32255         (adjust_bitfield_address): Likewise.
32256         (adjust_bitfield_address_size): Likewise.
32257         (adjust_bitfield_address_nv): Likewise.
32258         (adjust_automodify_address_nv): Likewise.
32259         * explow.c (expr_size): Move to expr.c.
32260         (int_expr_size): Likewise.
32261         (tree_expr_size): Likewise.
32262         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32263         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32264         * genemit.c (main): Generate includes statistics.h, real.h,
32265         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32266         stmt.h.
32267         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32268         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32269         explow.h, emit-rtl.h, stmt.h.
32270         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32271         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32272         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32273         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32274         emit-rtl.h, varasm.h, stmt.h.
32275         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32276         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32277         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32278         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32279         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32280         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32281         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32282         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32283         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32284         tm.h tree.h varasm.h vec.h wide-int.h.
32285         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32286         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32287         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32288         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32289         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32290         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32291         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32292         * loop-iv.c: Likewise.
32293         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32294         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32295         statistics.h stmt.h tree.h varasm.h wide-int.h.
32296         * lra-constraints.c: Likewise.
32297         * lra-eliminations.c: Likewise.
32298         * lra-lives.c: Likewise.
32299         * lra-remat.c: Likewise.
32300         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32301         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32302         statistics.h stmt.h tree.h varasm.h wide-int.h.
32303         * hw-doloop.c: Likewise.
32304         * ira-color.c: Likewise.
32305         * ira-emit.c: Likewise.
32306         * loop-doloop.c: Likewise.
32307         * loop-invariant.c: Likewise.
32308         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32309         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32310         statistics.h stmt.h tree.h varasm.h wide-int.h.
32311         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32312         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32313         statistics.h stmt.h tree.h varasm.h wide-int.h.
32314         * combine-stack-adj.c: Likewise.
32315         * cse.c: Likewise.
32316         * ddg.c: Likewise.
32317         * ifcvt.c: Likewise.
32318         * ira-costs.c: Likewise.
32319         * jump.c: Likewise.
32320         * lra-coalesce.c: Likewise.
32321         * lra-spills.c: Likewise.
32322         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32323         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32324         stmt.h varasm.h wide-int.h.
32325         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32326         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32327         varasm.h.
32328         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32329         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32330         statistics.h stmt.h varasm.h wide-int.h.
32331         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32332         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32333         varasm.h wide-int.h.
32334         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32335         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32336         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32337         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32338         statistics.h stmt.h.
32339         * config/tilepro/tilepro.c: Likewise.
32340         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32341         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32342         * config/pdp11/pdp11.c: Likewise.
32343         * config/xtensa/xtensa.c: Likewise.
32344         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32345         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32346         varasm.h.
32347         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32348         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32349         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32350         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32351         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32352         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32353         * rtl-chkp.c: Likewise.
32354         * tree-chkp-opt.c: Likewise.
32355         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32356         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32357         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32358         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32359         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32360         statistics.h stmt.h.
32361         * tree-vect-data-refs.c: Likewise.
32362         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32363         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32364         rtl.h statistics.h stmt.h varasm.h.
32365         * internal-fn.c: Likewise.
32366         * ipa-icf-gimple.c: Likewise.
32367         * lto-section-out.c: Likewise.
32368         * tree-data-ref.c: Likewise.
32369         * tree-nested.c: Likewise.
32370         * tree-outof-ssa.c: Likewise.
32371         * tree-predcom.c: Likewise.
32372         * tree-pretty-print.c: Likewise.
32373         * tree-scalar-evolution.c: Likewise.
32374         * tree-ssa-strlen.c: Likewise.
32375         * tree-vect-loop.c: Likewise.
32376         * tree-vect-patterns.c: Likewise.
32377         * tree-vect-slp.c: Likewise.
32378         * tree-vect-stmts.c: Likewise.
32379         * tsan.c: Likewise.
32380         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32381         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32382         stmt.h.
32383         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32384         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32385         statistics.h stmt.h varasm.h.
32386         * loop-unroll.c: Likewise.
32387         * ubsan.c: Likewise.
32388         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32389         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32390         stmt.h varasm.h.
32391         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32392         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32393         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32394         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32395         statistics.h stmt.h.
32396         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32397         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32398         statistics.h stmt.h varasm.h.
32399         * gimple-match-head.c: Likewise.
32400         * lto-cgraph.c: Likewise.
32401         * lto-section-in.c: Likewise.
32402         * lto-streamer-in.c: Likewise.
32403         * lto-streamer-out.c: Likewise.
32404         * tree-affine.c: Likewise.
32405         * tree-cfg.c: Likewise.
32406         * tree-cfgcleanup.c: Likewise.
32407         * tree-if-conv.c: Likewise.
32408         * tree-into-ssa.c: Likewise.
32409         * tree-ssa-alias.c: Likewise.
32410         * tree-ssa-copyrename.c: Likewise.
32411         * tree-ssa-dse.c: Likewise.
32412         * tree-ssa-forwprop.c: Likewise.
32413         * tree-ssa-live.c: Likewise.
32414         * tree-ssa-math-opts.c: Likewise.
32415         * tree-ssa-pre.c: Likewise.
32416         * tree-ssa-sccvn.c: Likewise.
32417         * tree-tailcall.c: Likewise.
32418         * tree-vect-generic.c: Likewise.
32419         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32420         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32421         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32422         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32423         * varasm.c: Likewise.
32424         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32425         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32426         varasm.h.
32427         * init-regs.c: Likewise.
32428         * ira.c: Likewise.
32429         * omp-low.c: Likewise.
32430         * stack-ptr-mod.c: Likewise.
32431         * tree-ssa-reassoc.c: Likewise.
32432         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32433         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32434         varasm.h.
32435         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32436         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32437         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32438         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32439         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32440         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32441         * tree-ssa-phiopt.c: Likewise.
32442         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32443         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32444         * config/fr30/fr30.c: Likewise.
32445         * config/frv/frv.c: Likewise.
32446         * expr.c: Likewise.
32447         * final.c: Likewise.
32448         * optabs.c: Likewise.
32449         * passes.c: Likewise.
32450         * simplify-rtx.c: Likewise.
32451         * stmt.c: Likewise.
32452         * toplev.c: Likewise.
32453         * var-tracking.c: Likewise.
32454         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32455         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32456         * lower-subreg.c: Likewise.
32457         * postreload-gcse.c: Likewise.
32458         * ree.c: Likewise.
32459         * reginfo.c: Likewise.
32460         * store-motion.c: Likewise.
32461         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32462         fixed-value.h hashtab.h real.h stmt.h varasm.h.
32463         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32464         fixed-value.h hashtab.h statistics.h stmt.h.
32465         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32466         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32467         * except.c: Likewise.
32468         * explow.c: Likewise.
32469         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32470         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32471         varasm.h.
32472         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32473         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32474         * tree-ssa-structalias.c: Likewise.
32475         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32476         fixed-value.h insn-config.h real.h statistics.h.
32477         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32478         fixed-value.h insn-config.h real.h statistics.h stmt.h.
32479         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32480         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32481         * cfgbuild.c: Likewise.
32482         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32483         fixed-value.h real.h rtl.h statistics.h stmt.h.
32484         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32485         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32486         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32487         fixed-value.h real.h statistics.h stmt.h.
32488         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32489         fixed-value.h real.h statistics.h stmt.h varasm.h.
32490         * cprop.c: Likewise.
32491         * modulo-sched.c: Likewise.
32492         * postreload.c: Likewise.
32493         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32494         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32495         statistics.h stmt.h varasm.h.
32496         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32497         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32498         rtl.h statistics.h stmt.h varasm.h.
32499         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32500         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32501         varasm.h.
32502         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32503         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32504         varasm.h.
32505         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32506         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32507         varasm.h.
32508         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32509         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32510         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32511         function.h real.h statistics.h stmt.h varasm.h.
32512         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32513         insn-config.h real.h statistics.h stmt.h.
32514         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32515         statistics.h stmt.h.
32516         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32517         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32518         statistics.h stmt.h varasm.h.
32519         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32520         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32521         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32522         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32523         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32524         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32525         statistics.h stmt.h varasm.h.
32526         * ipa-polymorphic-call.c: Likewise.
32527         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32528         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32529         statistics.h stmt.h.
32530         * config/c6x/c6x.c: Likewise.
32531         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32532         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32533         statistics.h stmt.h varasm.h.
32534         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32535         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32536         stmt.h varasm.h.
32537         * ipa-split.c: Likewise.
32538         * tree-eh.c: Likewise.
32539         * tree-ssa-dce.c: Likewise.
32540         * tree-ssa-loop-niter.c: Likewise.
32541         * tree-vrp.c: Likewise.
32542         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32543         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32544         stmt.h.
32545         * config/nds32/nds32-fp-as-gp.c: Likewise.
32546         * config/nds32/nds32-intrinsic.c: Likewise.
32547         * config/nds32/nds32-isr.c: Likewise.
32548         * config/nds32/nds32-md-auxiliary.c: Likewise.
32549         * config/nds32/nds32-memory-manipulation.c: Likewise.
32550         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32551         * config/nds32/nds32-predicates.c: Likewise.
32552         * config/nds32/nds32.c: Likewise.
32553         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32554         fixed-value.h hashtab.h real.h statistics.h.
32555         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32556         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32557         * config/arm/arm.c: Likewise.
32558         * config/avr/avr.c: Likewise.
32559         * config/bfin/bfin.c: Likewise.
32560         * config/h8300/h8300.c: Likewise.
32561         * config/i386/i386.c: Likewise.
32562         * config/ia64/ia64.c: Likewise.
32563         * config/iq2000/iq2000.c: Likewise.
32564         * config/m32c/m32c.c: Likewise.
32565         * config/m32r/m32r.c: Likewise.
32566         * config/m68k/m68k.c: Likewise.
32567         * config/mcore/mcore.c: Likewise.
32568         * config/mep/mep.c: Likewise.
32569         * config/mips/mips.c: Likewise.
32570         * config/mn10300/mn10300.c: Likewise.
32571         * config/moxie/moxie.c: Likewise.
32572         * config/pa/pa.c: Likewise.
32573         * config/rl78/rl78.c: Likewise.
32574         * config/rx/rx.c: Likewise.
32575         * config/s390/s390.c: Likewise.
32576         * config/sh/sh.c: Likewise.
32577         * config/sparc/sparc.c: Likewise.
32578         * config/spu/spu.c: Likewise.
32579         * config/stormy16/stormy16.c: Likewise.
32580         * config/v850/v850.c: Likewise.
32581         * config/vax/vax.c: Likewise.
32582         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32583         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32584         * config/msp430/msp430.c: Likewise.
32585         * predict.c: Likewise.
32586         * value-prof.c: Likewise.
32587         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32588         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32589         * config/microblaze/microblaze.c: Likewise.
32590         * config/nios2/nios2.c: Likewise.
32591         * config/rs6000/rs6000.c: Likewise.
32592         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32593         insn-config.h real.h rtl.h statistics.h stmt.h.
32594         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32595         insn-config.h real.h statistics.h stmt.h.
32596         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32597         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32598         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32599         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32600         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32601         fixed-value.h real.h statistics.h stmt.h.
32602         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32603         fixed-value.h statistics.h stmt.h.
32604         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32605         stmt.h.
32606
32607 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
32608
32609         * gengtype.c (create_user_defined_type): Workaround
32610         -Wmaybe-uninitialized false positives.
32611         * cse.c (fold_rtx): Likewise.
32612         * loop-invariant.c (gain_for_invariant): Likewise.
32613
32614 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
32615
32616         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32617         set the memory attributes in all cases but clear MEM_EXPR if need be.
32618
32619 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32620
32621         PR tree-optimization/64434
32622         * cfgexpand.c (reorder_operands): New function.
32623         (expand_gimple_basic_block): Insert call of reorder_operands if
32624         optimized is true.
32625
32626 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
32627
32628         * config/mips/micromips.md (*swp): Remove explicit parallel.
32629         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32630         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32631         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32632         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32633         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32634         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32635         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32636         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32637         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32638         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32639         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32640         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32641         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32642         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32643         (mips_wrdsp): Likewise.
32644         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32645         parallel.
32646         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32647         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32648         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32649         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32650         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32651         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32652         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32653         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32654         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32655
32656 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32657
32658         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32659         (mips_print_operand): Support 'y' to print exact log2 in decimal
32660         of a const_int.
32661         * config/mips/mips.h (ISA_HAS_LSA): New define.
32662         (ISA_HAS_DLSA): Likewise.
32663         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32664         * config/mips/predicates.md (const_immlsa_operand): New predicate.
32665
32666 2015-01-15  Martin Liska  <mliska@suse.cz>
32667
32668         PR target/64377
32669         * optc-save-gen.awk: Add support for array types.
32670
32671 2015-01-15  Richard Biener  <rguenther@suse.de>
32672
32673         PR middle-end/64365
32674         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32675         for MEM_REF access functions with the same base can never partially
32676         overlap.
32677
32678 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
32679
32680         * common.opt: New option -fstack-protector-explicit.
32681         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32682         (stack_protect_decl_phase): Handle stack_protect attribute for
32683         explicit stack protection requests.
32684         (expand_used_vars): Similarly.
32685         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32686         * doc/extend.texi: Add documentation for "stack_protect" attribute.
32687         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32688
32689 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
32690
32691         PR target/53988
32692         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32693         reg-reg copies.
32694         (sh_extending_set_of_reg): New struct.
32695         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32696         sh_remove_reg_dead_or_unused_notes): New Declarations.
32697         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32698         sh_find_extending_set_of_reg, sh_split_tst_subregs,
32699         sh_extending_set_of_reg::use_as_extended_reg): New functions.
32700         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32701         convert to insn_and_split and use new function sh_split_tst_subregs.
32702
32703 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
32704
32705         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32706         option.
32707         (Optimization Options): Move -fuse-ld documentation to...
32708         (Link Options): ...here.
32709
32710 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32711
32712         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32713         offsets.
32714         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32715         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32716         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32717         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32718         instead of ZR for the memory operand of LL/SC.
32719         (compare_and_swap_12, sync_add<mode>): Likewise.
32720         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32721         (sync_new_<optab>_12, sync_nand_12): Likewise.
32722         (sync_old_nand_12, sync_new_nand_12): Likewise.
32723         (sync_sub<mode>, sync_old_add<mode>): Likewise.
32724         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32725         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32726         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32727         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32728         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32729         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32730         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32731         * doc/md.texi (ZC): Update description.
32732
32733 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32734
32735         * builtins.c (expand_builtin_atomic_exchange): Remove error when
32736         memory model is CONSUME.
32737         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32738         expand_builtin_atomic_store): Change invalid memory model errors to
32739         warnings.
32740         (expand_builtin_atomic_clear): Change invalid model errors to warnings
32741         and issue warning for CONSUME.
32742
32743 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
32744
32745         * lto-cgraph: Update function comments for
32746         lto_symtab_encoder_encode_*.
32747
32748 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32749
32750         * Makefile.in (site.exp): Do not set ENABLE_LTO.
32751
32752 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32753
32754         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32755         * lto-cgraph.c (select_what_to_stream): Remove argument, use
32756         lto_stream_offload_p instead.
32757         * lto-streamer.h (select_what_to_stream): Remove argument.
32758         * passes.c (ipa_write_summaries): Likewise.
32759         * tree-pass.h (ipa_write_summaries): Likewise.
32760
32761 2015-01-14  Richard Biener  <rguenther@suse.de>
32762
32763         PR tree-optimization/59354
32764         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32765         groups larger than the slp group size as having gaps.
32766
32767 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32768
32769         PR middle-end/59448
32770         * builtins.c (get_memmodel): Promote consume to acquire always.
32771
32772 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32773
32774         PR target/64386
32775         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32776         V32HImode.
32777
32778 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32779
32780         PR target/64393
32781         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32782         Enable AVX512BW.
32783         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32784         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32785         AVX512VBMI, as it implies AVX512BW.
32786
32787 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32788
32789         PR target/64387
32790         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32791         (vec_unpacks_hi_v16sf): Ditto.
32792
32793 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32794
32795         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32796         is not available.
32797
32798 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32799
32800         * doc/invoke.texi (mapcs): Mention deprecation.
32801         (mapcs-frame): Likewise.
32802
32803 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32804
32805         PR target/64453
32806         * config/arm/arm.c (callee_saved_reg_p): Define.
32807         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32808         register is callee saved instead of !call_used_regs[reg].
32809         (thumb1_compute_save_reg_mask): Likewise.
32810
32811 2015-01-14  Hale Wang  <hale.wang@arm.com>
32812
32813         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32814         Cortex-M7.
32815
32816 2015-01-14  Richard Biener  <rguenther@suse.de>
32817
32818         PR lto/64415
32819         * tree-inline.c (insert_debug_decl_map): Check destination
32820         function MAY_HAVE_DEBUG_STMTS.
32821         (insert_init_debug_bind): Likewise.
32822         (insert_init_stmt): Remove redundant check.
32823         (remap_gimple_stmt): Drop debug stmts if the destination
32824         function has var-tracking assignments disabled.
32825
32826 2015-01-14  Martin Liska  <mliska@suse.cz>
32827
32828         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32829         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32830
32831 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32832
32833         PR target/64460
32834         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32835         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32836
32837 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32838
32839         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32840         level from an ARCH; do not inject the default.
32841         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32842         MIPS_ISA_LEVEL_SPEC.
32843         (MIPS_ISA_NAN2008_SPEC): Update comment.
32844         (BASE_DRIVER_SELF_SPECS): Likewise.
32845         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32846         MIPS_DEFAULT_ISA_LEVEL_SPEC.
32847         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32848         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32849         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32850
32851 2015-01-14  Richard Biener  <rguenther@suse.de>
32852
32853         PR tree-optimization/64493
32854         PR tree-optimization/64495
32855         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32856         assign the proper vectorized PHI to the inner loop exit PHIs.
32857
32858 2015-01-14  Joey Ye  <joey.ye@arm.com>
32859
32860         * config/arm/arm.c (arm_compute_save_reg_mask):
32861         Do not save lr in case of tail call.
32862         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32863
32864 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
32865
32866         * tree-vrp.c (check_array_ref): Emit more warnings
32867         for warn_array_bounds >= 2.
32868         * common.opt: New option -Warray-bounds=.
32869         * doc/invoke.texi: Document -Warray-bounds=.
32870
32871 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32872
32873         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32874         (mforbid-fp-as-gp): Remove.
32875         (mex9): Remove.
32876         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32877         (nds32_symbol_load_store_p): Remove.
32878         (nds32_fp_as_gp_check_available): Clean up implementation.
32879         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32880         cases.
32881         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32882         fp-as-gp and ex9 cases.
32883
32884 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32885
32886         * tree-profile.c (init_ic_make_global_vars): Drop workaround
32887         for bintuils bug 14342.
32888         (init_ic_make_global_vars): Likewise.
32889         (gimple_init_edge_profiler): Likewise.
32890         (gimple_gen_ic_func_profiler): Likewise.
32891
32892 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32893
32894         * ipa-inline.c (inline_small_functions): Swap the operands in
32895         enum.
32896
32897 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32898
32899         PR ipa/64481
32900         * ipa-inline-analysis.c (node_growth_cache): Remove.
32901         (initialize_growth_caches): Do not initialize it.
32902         (free_growth_caches): Do not free it.
32903         (do_estimate_growth): Rename to ...
32904         (estimate_growth): ... this one; drop growth cache code.
32905         (growth_likely_positive): Always go the heuristics way.
32906         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32907         (reset_edge_caches): Do not reset node growth.
32908         (heap_edge_removal_hook): Do not maintain cache.
32909         (inline_small_functions): Likewise; strenghten sanity check.
32910         (ipa_inline): Do not maintain caches.
32911         * ipa-inline.h (node_growth_cache): Remove.
32912         (do_estimate_growth): Remove to ...
32913         (estimate_growth): this one; remove inline version.
32914         (reset_node_growth_cache): Remove.
32915
32916 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32917
32918         PR ipa/64565
32919         * ipa-inline.c (inline_small_functions): Update callee keys after
32920         resolving speculation
32921         (inline_small_functions): Always check monotonicity of the queue.
32922
32923 2015-01-13  Marek Polacek  <polacek@redhat.com>
32924
32925         PR middle-end/64391
32926         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32927
32928 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32929
32930         PR rtl-optimization/64286
32931         * ree.c (combine_reaching_defs): Move part of comment earlier,
32932         remove !SCALAR_INT_MODE_P check.
32933         (add_removable_extension): Don't add vector mode
32934         extensions if all uses of the source register aren't the same
32935         vector extensions.
32936
32937 2015-01-13  Renlin Li  <renlin.li@arm.com>
32938
32939         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
32940         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
32941
32942 2015-01-13  Martin Liska  <mliska@suse.cz>
32943
32944         * ipa-icf.c (sem_function::equals_private): Call new functions
32945         cl_target_option_print_diff and cl_optimization_print_diff.
32946         * optc-save-gen.awk (cl_target_option_print_diff): New function.
32947         (cl_optimization_print_diff): Likewise.
32948         * opth-gen.awk: Likewise.
32949
32950 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
32951
32952         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
32953         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
32954         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
32955         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
32956         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
32957         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
32958
32959 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32960
32961         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
32962         instead of src mode.
32963
32964 2015-01-13  Richard Biener  <rguenther@suse.de>
32965
32966         PR lto/64373
32967         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
32968         DECL_CONTEXT.
32969
32970 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32971
32972         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
32973         volatile mems.
32974         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
32975
32976 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32977
32978         PR middle-end/63974
32979         * cfgexpand.c (expand_computed_goto): Don't call
32980         convert_memory_address here.
32981
32982 2015-01-13  Richard Biener  <rguenther@suse.de>
32983
32984         PR tree-optimization/64406
32985         * tree-loop-distibution.c (pass_loop_distribution::execute):
32986         Reset the SCEV hashtable if we distributed anything.
32987
32988 2015-01-13  Richard Biener  <rguenther@suse.de>
32989
32990         PR tree-optimization/64404
32991         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
32992         SLP types for CSEd loads.
32993
32994 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32995
32996         PR tree-optimization/64436
32997         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
32998         merge of two symbolic numbers for a bitwise OR to ...
32999         (perform_symbolic_merge): This. Also fix computation of the range and
33000         end of the symbolic number corresponding to the result of a bitwise OR.
33001
33002 2015-01-13  Richard Biener  <rguenther@suse.de>
33003
33004         PR tree-optimization/64568
33005         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33006         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33007
33008 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33009
33010         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33011         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33012
33013 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33014
33015         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33016         target-specific symbol_ref flag.
33017         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33018         resides in rodata section.
33019         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33020         (nds32_encode_section_info): New function.
33021
33022 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33023
33024         * config/nds32/nds32.md (call): Use pseudo instruction bal which
33025         clobbers TA_REGNUM if large code model is specified.
33026         (call_register): Likewise.
33027         (call_immediate): Likewise.
33028         (call_value): Likewise.
33029         (call_value_register): Likewise.
33030         (call_value_immediate): Likewise.
33031
33032 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33033
33034         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33035         (TARGET_CMODEL_MEDIUM): New macro.
33036         (TARGET_CMODEL_LARGE): New macro.
33037         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33038         code model setting in assembly code.
33039
33040 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33041
33042         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33043         Remove MASK_GP_DIRECT flag.
33044         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33045         one of the multilib default options.
33046         * config/nds32/nds32.opt (mgp-direct): Remove.
33047         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33048         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
33049
33050 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33051
33052         * config/nds32/nds32.opt (mcmodel): Add new option.
33053         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33054         to describe code model.
33055
33056 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
33057
33058         PR target/64479
33059         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33060
33061 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
33062
33063         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33064         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33065         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33066         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33067         __builtin_sh_set_fpscr.
33068
33069 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33070
33071         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33072         after a funtion name just to indicate it is a function.
33073         ([-fsanitize-undefined-trap-on-error]): Likewise.
33074         ([-fdbg-cnt=]): Likewise.
33075         ([-mmemcpy]): Likewise.
33076         ([-mflush-func]): Likewise.
33077         ([-msynci]): Likewise.
33078
33079 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33080
33081         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33082         example.
33083
33084 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
33085
33086         PR tree-optimization/64563
33087         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33088         instead of != VR_VARYING.
33089
33090         PR target/64513
33091         * config/i386/i386.c (ix86_expand_prologue): Add
33092         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33093
33094         PR tree-optimization/64454
33095         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33096         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33097         for signed or [0, op1 - 1] for unsigned modulo.
33098         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33099         even if op1 does not satisfy integer_pow2p.
33100
33101         PR other/64370
33102         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33103
33104 2015-01-12  Jeff Law  <law@redhat.com>
33105
33106         PR target/64461
33107         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33108         (trunchiqi2, truncsihi2): Similarly.
33109
33110         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33111         rather than calling F.
33112
33113 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33114
33115         * tsan.c (instrument_expr): Use force_gimple_operand.
33116         Use may_be_nonaddressable_p instead of is_gimple_addressable.
33117
33118 2015-01-12  Richard Biener  <rguenther@suse.de>
33119
33120         PR tree-optimization/64530
33121         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33122         back dr1.
33123
33124 2015-01-12  Richard Biener  <rguenther@suse.de>
33125
33126         PR middle-end/64357
33127         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33128         latches properly.
33129
33130 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33131
33132         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33133         Cortex-A17 tuning parameters.
33134         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33135
33136 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33137
33138         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33139         * config/arm/arm.c (arm_macro_fusion_p): New function.
33140         (arm_macro_fusion_pair_p): Likewise.
33141         (TARGET_SCHED_MACRO_FUSION_P): Define.
33142         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33143         (ARM_FUSE_NOTHING): Likewise.
33144         (ARM_FUSE_MOVW_MOVT): Likewise.
33145         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33146         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33147         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33148         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33149         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33150         arm_cortex_a5_tune): Specify fuseable_ops value.
33151
33152 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
33153
33154         PR bootstrap/64561
33155         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33156         test for PIE with copy reloc.
33157         * configure: Regenerated.
33158
33159 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33160
33161         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33162         in gen_rtx_REG.
33163         (arm_tls_descseq_addr): Likewise.
33164         (arm_gen_movmemqi): Likewise.
33165         (arm_expand_epilogue_apcs_frame): Likewise.
33166         (arm_expand_epilogue): Likewise.
33167         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
33168         in gen_rtx_REG.
33169
33170 2015-01-12  Martin Liska  <mliska@suse.cz>
33171
33172         PR ipa/64550
33173         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33174         volatility for correct operands.
33175
33176 2015-01-12  Martin Liska  <mliska@suse.cz>
33177
33178         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33179         indication that a function is not leaf.
33180         (sem_function::compare_polymorphic_p): Likewise.
33181
33182 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33183
33184         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33185         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33186         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33187         fold-const.h, tree-check.h.
33188
33189 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33190
33191         PR ipa/63967
33192         PR ipa/64425
33193         * ipa-inline.c (compute_uninlined_call_time,
33194         compute_inlined_call_time): Use counts for extra precision when
33195         needed possible.
33196         (big_speedup_p): Fix formating.
33197         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33198         (relative_time_benefit): Remove.
33199         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33200         merge guessed and read profile paths.
33201         (inline_small_functions): Count only !optimize_size functions into
33202         initial size; be more lax about sanity check when profile is used;
33203         be sure to update inlined function profile when profile is read.
33204
33205 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33206
33207         PR ipa/63470
33208         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33209         cost when edge becomes direct.
33210         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33211         is resolved or when introducing new speculation.
33212
33213 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
33214
33215         PR ipa/64551
33216         PR ipa/64552
33217         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33218         '||' to fix typo issue.
33219
33220         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33221         accept and return NULL.
33222
33223 2015-01-12  Martin Liska  <mliska@suse.cz>
33224
33225         * cgraph.c (cgraph_edge::remove_callee): Move function to header
33226         file for being inlined.
33227         (cgraph_set_edge_callee): Delete.
33228         (cgraph_edge::redirect_callee): Move function to header file
33229         for being inlined.
33230         (cgraph_edge::make_direct): Use new function.
33231         (cgraph_edge::dump_edge_flags): New function created from
33232         static dump_edge_flags function.
33233         (cgraph_node::dump): Use new function.
33234         (cgraph_edge::verify_count_and_frequency): New function created
33235         from verify_edge_count_and_frequency.
33236         (cgraph_edge::verify_corresponds_to_fndecl): New function created
33237         from verify_edge_corresponds_to_fndecl.
33238         (verify_edge_corresponds_to_fndecl): Delete.
33239         (cgraph_node::verify_node): Use new function.
33240         * cgraph.h (cgraph_edge::set_callee): New function.
33241         (cgraph_edge::dump_edge_flags): Likewise.
33242         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
33243
33244 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
33245
33246         * ipa-utils.c (estimate_function_body_sizes): Do not
33247         free node params when called late with early=true.
33248
33249 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
33250
33251         * doc/md.texi (Instruction Patterns): Rewrite text for
33252         clarity.
33253         (Example): Likewise.
33254
33255 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
33256
33257         * doc/invoke.texi (Option Summary): Break long lines.
33258         [(-fdiagnostics-color)]: Put long literal in @smallexample
33259         instead of inline.
33260         [(-fsanitize-recover)]: Likewise.
33261         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33262         [(-ffast-math)]: Likewise.
33263         [(--param max-inline-insns-recursive)]: Likewise.
33264         [(--param max-inline-recursive-depth)]: Likewise.
33265         [(-mno-text-section-literals)]: Likewise.
33266
33267 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
33268
33269         * doc/install.texi: Update for libgomp being renamed from "GNU
33270         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33271         Runtime Library".
33272         * doc/sourcebuild.texi: Likewise.
33273
33274 2015-01-10  Anthony Green  <green@moxielogic.com>
33275
33276         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33277         mul.x availability for moxiebox configuration.
33278
33279 2015-01-09  Anthony Green  <green@moxielogic.com>
33280
33281         * config/moxie/moxie.md: Tabify assembly output.
33282
33283 2015-01-09  Anthony Green  <green@moxielogic.com>
33284
33285         * config/moxie/moxie.md (CC_REG): Correct register definition.
33286
33287 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
33288
33289         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33290         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
33291         of log files.
33292
33293 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33294
33295         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33296
33297 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
33298             Jakub Jelinek  <jakub@redhat.com>
33299
33300         PR middle-end/64412
33301         * lto-streamer.h (lto_stream_offload_p): New declaration.
33302         * lto-streamer.c (lto_stream_offload_p): New variable.
33303         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33304         at the same time as section_name_prefix.
33305         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33306         if lto_stream_offload_p.
33307         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33308         stream TREE_TARGET_OPTION if lto_stream_offload_p.
33309         (write_ts_function_decl_tree_pointers): Don't
33310         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33311         * tree-streamer-in.c (unpack_value_fields): Don't stream
33312         TREE_TARGET_OPTION in if ACCEL_COMPILER.
33313         (lto_input_ts_function_decl_tree_pointers): Don't stream
33314         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33315         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33316         instead of section_name_prefix string comparisons.
33317
33318 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
33319
33320         PR rtl-optimization/64536
33321         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33322         tablejumps.
33323
33324 2015-01-09  Michael Collison  <michael.collison@linaro.org>
33325
33326         PR tree-optimization/64322
33327         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33328         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33329
33330 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33331
33332         PR rtl-optimization/64539
33333         * regcprop.c (kill_clobbered_values): Factor out of ...
33334         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
33335         instead of note_stores with kill_clobbered_value.
33336
33337 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33338
33339          * ginclude/unwind-arm-common.h: Revert previous commit.
33340
33341 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33342
33343         * config.gcc (arm*-*-freebsd*): New configuration.
33344         * config/arm/freebsd.h: New file.
33345         * config.host: Add extra components for arm*-*-freebsd*.
33346         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33347         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33348
33349 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33350
33351         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33352         for -mcpu=e6500.
33353         * config/rs6000/t-rtems: Add e6500 multilibs.
33354
33355 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33356
33357         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33358         MPC8540.
33359
33360 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33361
33362         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33363         MULTILIB_EXCEPTIONS.
33364
33365 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33366
33367         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33368         MULTILIB_EXCEPTIONS.
33369
33370 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33371
33372         * config/arm/t-rtems-eabi: Rename to...
33373         * config/arm/t-rtems: ...this.
33374         * config/arm/rtems-eabi.h: Rename to...
33375         * config/arm/rtems.h: ...this.
33376         * config.gcc (arm*-*-rtems*): Reflect changes above.
33377
33378 2015-01-09  Richard Biener  <rguenther@suse.de>
33379
33380         PR tree-optimization/64410
33381         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33382         on the LHS.
33383         (execute_update_addresses_taken): Deal with that.
33384         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33385         loads/stores for complex variables.
33386
33387 2015-01-09  Martin Liska  <mliska@suse.cz>
33388
33389         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33390         name comparison.
33391         (func_checker::compare_memory_operand): New function.
33392         (func_checker::compare_operand): Split case to newly
33393         added functions.
33394         (func_checker::compare_cst_or_decl): New function.
33395         (func_checker::compare_gimple_call): Identify
33396         memory operands.
33397         (func_checker::compare_gimple_assign): Likewise.
33398         * ipa-icf-gimple.h: New function.
33399
33400 2015-01-09  Martin Liska  <mliska@suse.cz>
33401
33402         PR ipa/64503
33403         * sreal.c (sreal::dump): Change unsigned format to signed for
33404         m_exp value.
33405         (sreal::to_double): Replace exp2 with scalbln.
33406
33407 2015-01-09  Martin Liska  <mliska@suse.cz>
33408
33409         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33410         * ipa-icf.c (sem_function::equals_private): Add support for target and
33411         (sem_item_optimizer::merge_classes): Remove redundant function
33412         optimization flags comparison.
33413         * tree.h (target_opts_for_fn): New function.
33414
33415 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33416
33417         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33418
33419 2015-01-09  Kito Cheng  <kito@0xlab.org>
33420
33421         PR rtl-optimization/64348
33422         * lra-constraints.c (split_reg): Fix caller-save store/restore
33423         instruction generation.
33424
33425 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
33426
33427         PR gcov-profile/61790
33428         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33429         long long.  Fallback to int64_t if host doesn't have long long and
33430         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
33431
33432 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33433
33434         PR tree-optimization/63989
33435         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33436         from 1000 to 10000.
33437         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33438         (get_stridx): If we don't have a record for certain SSA_NAME,
33439         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33440         constant offset, call get_stridx_plus_constant.
33441         (get_stridx_plus_constant): New function.
33442         (zero_length_string): Don't use get_stridx here.
33443
33444         PR target/55023
33445         PR middle-end/64388
33446         * dse.c (struct insn_info): Mention frame_read set also
33447         before reload for tail calls on some targets.
33448         (scan_insn): Revert 2014-12-22 change.  Set frame_read
33449         also before reload for tail calls if
33450         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
33451         instead of add_non_frame_wild_read for non-const/memset
33452         tail calls after reload.
33453
33454 2015-01-08  Jason Merrill  <jason@redhat.com>
33455
33456         * ubsan.c (do_ubsan_in_current_function): New.
33457         (pass_ubsan::gate): Use it.
33458         * ubsan.h: Declare it.
33459         * convert.c (convert_to_integer): Use it.
33460
33461 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33462
33463         PR target/64338
33464         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33465         compare_code when it is unconditionally overwritten afterwards.
33466         Use ix86_reverse_condition instead of reverse_condition.  Don't
33467         change code if *reverse_condition* returned UNKNOWN and don't
33468         swap ct/cf and negate diff in that case.
33469
33470 2015-01-08  Mike Stump  <mikestump@comcast.net>
33471
33472         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33473         (pass_tsan_O0::gate): Likewise.
33474         * extend.texi (Function Attributes): Add no_sanitize_thread
33475         documentation.
33476
33477 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
33478
33479         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33480         for registering builtins.
33481         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33482         add -fopenmp to the argv_obstack used when invoking
33483         compile_for_target.
33484
33485         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33486         add "-m32" or "-m64" to argv_obstack.
33487         (generate_host_descr_file): Likewise, when invoking host_compiler.
33488         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33489         ld.
33490
33491 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33492
33493         * config/sh/sh-mem.cc: Use constant as second operand when emitting
33494         tstsi_t insns.
33495
33496 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33497
33498         PR target/55212
33499         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33500         constant load if constant operand fits into I08.
33501
33502 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33503
33504         PR sanitizer/64336
33505         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33506         and TREE_THIS_VOLATILE for MEM_REFs.
33507         (build5_stat): Fix up initialization of TREE_READONLY and
33508         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33509
33510 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
33511
33512         PR target/64533
33513         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33514         of r for the second alternative of the destination operand.
33515
33516 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
33517
33518         PR target/36557
33519         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33520
33521 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33522
33523         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33524         keywords.
33525         ([-fivar-visibility], [-fvisibility]): Likewise.
33526
33527 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33528
33529         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33530         the file where @code, @command, etc is more appropriate.
33531
33532 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
33533
33534         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33535         of -mrecip= documentation.
33536
33537 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33538
33539         PR target/64505
33540         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33541         correct reload handler if -m32 -mpowerpc64 is used.
33542
33543 2015-01-06  Tom de Vries  <tom@codesourcery.com>
33544
33545         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33546
33547 2015-01-08  Christian Bruel  <christian.bruel@st.com>
33548
33549         PR target/64507
33550         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33551
33552 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33553
33554         PR tree-optimization/63259
33555         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33556         if optab exists for 16bit byteswap.
33557
33558 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
33559
33560         * opts.c (common_handle_option): Add support for
33561         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33562         * doc/invoke.texi: Document -fno-sanitize=all,
33563         -f{,no-}sanitize-recover=all.  Document that
33564         -fsanitize=float-cast-overflow is not enabled
33565         by -fsanitize=undefined.  Fix up documentation
33566         of -f{,no-}sanitize-recover.
33567
33568 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33569
33570         * config.gcc: Add Visium support.
33571         * configure.ac: Likewise.
33572         * configure: Regenerate.
33573         * doc/extend.texi (interrupt attribute): Add Visium.
33574         * doc/invoke.texi: Document Visium options.
33575         * doc/install.texi: Document Visium target.
33576         * doc/md.texi: Document Visium constraints.
33577         * common/config/visium: New directory.
33578         * config/visium: Likewise.
33579
33580 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33581
33582         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33583         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33584
33585 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33586
33587         * combine.c (combine_validate_cost): Do not count the cost of a
33588         split I2 twice.  Do not display it twice in the dump, either.
33589
33590 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33591
33592         Revert parts of r219199.
33593         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33594         <inttypes.h>.
33595         ([-Wtraditional]): Restore markup on <limits.h>.
33596
33597 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
33598
33599         PR c++/31397
33600         * doc/invoke.texi: Document -Wsuggest-override.
33601
33602 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
33603
33604         PR rtl-optimization/64287
33605         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33606         (process_options): Disable flag_ipa_ra if profiling.
33607
33608 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
33609
33610         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33611
33612 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
33613
33614         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33615         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33616         put under #if TARGET_LOOPS guard.
33617
33618 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
33619
33620         * config/i386/i386.c (output_387_binary_op): Use std::swap.
33621
33622 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
33623
33624         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33625         * rtl.h (refers_to_regno_p): Add overload.
33626         * cse.c: Use it.
33627         * bt-load.c: Likewise.
33628         * combine.c: Likewise.
33629         * df-scan.c: Likewise.
33630         * sched-deps.c: Likewise.
33631         * config/s390/s390.c: Likewise.
33632         * config/m32r/m32r.c: Likewise.
33633         * config/rs6000/spe.md: Likewise.
33634         * config/rs6000/rs6000.c: Likewise.
33635         * config/pa/pa.c: Likewise.
33636         * config/stormy16/stormy16.c: Likewise.
33637         * config/cris/cris.c: Likewise.
33638         * config/arc/arc.md: Likewise.
33639         * config/arc/arc.c: Likewise.
33640         * config/sh/sh.md: Likewise.
33641         * config/sh/sh.c: Likewise.
33642         * config/frv/frv.c: Likewise.
33643
33644 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33645
33646         PR sanitizer/64265
33647         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33648         call as cleanup of the whole body.
33649         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33650         * tsan.c (replace_func_exit): New function.
33651         (instrument_func_exit): Moved earlier.
33652         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33653         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33654         been found.
33655         (tsan_pass): Don't call instrument_func_exit.
33656         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33657         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33658         inlining.
33659
33660         PR sanitizer/64344
33661         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33662         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33663         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
33664         if the result is integer_zerop, return NULL_TREE.
33665         * convert.c (convert_to_integer): Pass expr as ARG.
33666
33667         PR tree-optimization/64465
33668         * tree-inline.c (redirect_all_calls): During inlining
33669         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33670         changed the stmt to a non-throwing call.
33671
33672 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33673
33674         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33675         etc markup throughout the file.
33676
33677 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33678
33679         Enable experimental TSAN support for Ada.
33680         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33681
33682 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33683
33684         PR tree-optimization/64494
33685         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33686         clear SSA_NAME_ANTI_RANGE_P flag.
33687
33688 2015-01-05  Marek Polacek  <polacek@redhat.com>
33689
33690         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33691
33692 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33693
33694         Update copyright years.
33695
33696         * gcc.c (process_command): Update copyright notice dates.
33697         * gcov-dump.c: Ditto.
33698         * gcov.c: Ditto.
33699         * doc/cpp.texi: Bump @copying's copyright year.
33700         * doc/cppinternals.texi: Ditto.
33701         * doc/gcc.texi: Ditto.
33702         * doc/gccint.texi: Ditto.
33703         * doc/gcov.texi: Ditto.
33704         * doc/install.texi: Ditto.
33705         * doc/invoke.texi: Ditto.
33706
33707         * auto-profile.c, auto-profile.h: Fix up Copyright line.
33708
33709 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
33710
33711         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33712         verb tense, etc.
33713         ([-fvtable-verify], [-fvtv-debug]): Likewise.
33714         ([-Wabi]): Likewise.
33715         ([-fmessage-length]): Likewise.
33716         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33717         ([-Wno-discarded-qualifiers]): Likewise.
33718         ([-Wnodiscarded-array-qualifiers]): Likewise.
33719         ([-Wno-virtual-move-assign]): Likewise.
33720         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33721         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33722         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33723         ([-fsanitize-undefined-trap-on-error]): Likewise.
33724         ([-floop-interchange]): Likewise.
33725         ([-ftree-coalesce-inlined-vars]): Likewise.
33726         ([-fvect-cost-model]): Likewise.
33727         ([-flto]): Likewise.
33728         ([--param]): Likewise.
33729         (Spec Files): Likewise.
33730         ([-mstrict-align]): Likewise.
33731         ([-mfix-cortex-a53-835769]): Likewise.
33732         ([-march], [-mtune]): Likewise.
33733         ([-mpic-register]): Likewise.
33734         ([-munaligned-access]): Likewise.
33735         ([-msp8]): Likewise.
33736         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33737         (AVR Built-in Macros): Likewise.
33738         ([-mpreferred-stack-boundary]): Likewise.
33739         ([-mtune-crtl]): Likewise.
33740         ([-mashf]): Likewise.
33741         ([-mmcu=]): Likewise.
33742         ([-minrt]): Likewise.
33743         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33744         ([-mupper-regs]): Likewise.
33745         ([-matomic-model]): Likewise.
33746         ([-mdiv]): Likewise.
33747         ([-mzdcbranch]): Likewise.
33748         ([-mdisable-callt]): Likewise.
33749         ([-msoft-float]): Likewise.
33750         ([-m8byte-align]): Likewise.
33751         ([-fstack-reuse]): Likewise.
33752
33753 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33754
33755         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33756         Fix markup, light copy-editing.
33757         ([-fauto-profile]): Rewrite to fix formatting and content
33758         problems.
33759
33760 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33761
33762         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33763         Copy-edit description.
33764         ([-fisolate-erroneous-paths-attribute]): Likewise.
33765         * common.opt (fisolate-erroneous-paths-dereference):
33766         Copy-edit description.
33767         (fisolate-erroneous-paths-attribute): Likewise.
33768
33769 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33770
33771         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33772         tidy grammar.
33773
33774 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33775
33776         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33777         ([-fvtv-debug]): Likewise.
33778         ([-Wc++-compat]): Likewise.
33779         ([-Wc++11-compat]): Likewise.
33780         ([-Wc++14-compat]): Likewise.
33781         ([-Wno-sized-deallocation]): Likewise.
33782         ([-femit-class-debug-always]): Likewise.
33783         ([-femit-struct-debug-detailed]): Likewise.
33784         ([-fno-keep-inline-dllexport]): Likewise.
33785         ([-fira-algorithm]): Likewise.
33786         ([-fira-region]): Likewise.
33787         ([-flra-remat]): Likewise.
33788         ([-fipa-ra]): Likewise.
33789         ([-fhoist-adjacent-loads]): Likewise.
33790         ([-fisolate-erroneous-paths-dereference]): Likewise.
33791         ([-fisolate-erroneous-paths-attribute]): Likewise.
33792         ([-ftree-switch-conversion]): Likewise.
33793         ([-ftree-tail-merge]): Likewise.
33794         ([-ftree-loop-if-convert]): Likewise.
33795         ([-ftree-loop-if-convert-stores]): Likewise.
33796         ([-ftree-loop-distribution]): Likewise.
33797         ([-ftree-loop-distribute-patterns]): Likewise.
33798         ([-flto-compression-level]): Likewise.
33799         ([-flto-report]): Likewise.
33800         ([-flto-report-wpa]): Likewise.
33801         ([-fuse-linker-plugin]): Likewise.
33802         ([-mfix-cortex-a53-835769]): Likewise.
33803         ([-mno-fix-cortex-a53-835769]): Likewise.
33804         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33805         explicit listing; add a note to the discussion indicating they
33806         exist.  Reorder table to group similar options.  Add missing
33807         @opindex entries.  Add @need commands throughout the table to
33808         allow it to be split across multiple pages.
33809         ([-m8bit-idiv]): Fix @opindex.
33810         ([-mavx256-split-unaligned-load]): Likewise.
33811         ([-mavx256-split-unaligned-store]): Likewise.
33812         ([-mstack-protector-guard]): Likewise.
33813         ([-mcpu=]): Likewise.
33814         ([-mcpu]): Likewise.
33815         ([-mpointer-size=]): Likewise.
33816
33817 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
33818
33819         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33820         instead of `m' constraint.  Likewise for unnamed movb comparison
33821         patterns using reg_before_reload_operand predicate.
33822         * config/pa/predicates.md (reg_before_reload_operand): Tighten
33823         predicate to reject register index and LO_SUM DLT memory forms
33824         after reload.
33825
33826 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33827
33828         * doc/invoke.texi (Option Summary): Fix spelling of
33829         -fdevirtualize-at-ltrans.
33830         ([-fdevirtualize]): Fix markup.
33831         ([-fdevirtualize-speculatively]): Fix typo.
33832         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
33833         implementor-speaky.
33834         * common.opt (fdevirtualize-at-ltrans): Likewise.
33835         * ipa-devirt.c: Fix typos in comments throughout the file.
33836         (ipa_devirt): Fix typos in format strings for dump output.
33837
33838 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33839
33840         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33841         discussion of defaults, light copy-editing.
33842
33843 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33844
33845         * tsan.c (instrument_expr): corrected previous checkin.
33846
33847 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33848
33849         Instrument bit field and unaligned accesses for TSAN.
33850         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33851         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33852         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33853         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33854         unaligned memory regions.
33855
33856 2015-01-01  Anthony Green  <green@moxielogic.com>
33857
33858         * config/moxie/predicates.md (moxie_general_movsrc_operand):
33859         Restrict move source register offsets to 16 bits.
33860 \f
33861 Copyright (C) 2015 Free Software Foundation, Inc.
33862
33863 Copying and distribution of this file, with or without modification,
33864 are permitted in any medium without royalty provided the copyright
33865 notice and this notice are preserved.