Add make_restrict_var_constraints
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-10-26  Tom de Vries  <tom@codesourcery.com>
2
3         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4         factored out of ...
5         (intra_create_variable_infos): ... here.
6
7 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8
9         * tree-ssa-structalias.c (intra_create_variable_infos): Add
10         restrict_pointer_p and recursive_restrict_p variables.
11
12 2015-10-26  Tom de Vries  <tom@codesourcery.com>
13
14         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
15         get_vi_for_tree call.
16
17 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18
19         PR middle-end/67989
20         * optabs.c (expand_atomic_compare_and_swap): Handle case when
21         ptarget_oval or ptarget_bool are const0_rtx.
22
23 2015-10-26  Christian Bruel  <christian.bruel@st.com>
24
25         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
26         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
27         * cp/method.c (implicitly_declare_fn): Likewise.
28         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
29         * java/class.c (add_method_1): Likewise.
30
31 2015-10-26  Richard Biener  <rguenther@suse.de>
32
33         * alloc-pool.h (base_pool_allocator): Use placement new.
34         (base_pool_allocator::remove): Likewise.  Compute size outside of
35         flag_checking.
36
37 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
38
39         * builtins.c (do_real_to_int_conversion): New function.
40         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
41         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
42         arguments here.
43         * match.pd: Add rules previously handled by fold_fixed_mathfn
44         and fold_builtin_int_roundingfn.
45
46 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
47
48         * match.pd: Use macros to define built-in operator lists.
49
50 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
51             Richard Biener  <rguenther@suse.de>
52
53         * genmatch.c (dt_simplify::gen): Skip captures that are
54         part of the result.
55         (parser::parse_expr): Allow captures in results too.
56         * builtins.c (fold_builtin_cexp): Delete.
57         (fold_builtin_1): Handle constant cexp arguments here.
58         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
59
60 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
61
62         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
63         conditional compilation.
64         (base_pool_allocator::remove): Use flag_checking.
65
66 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
67
68         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
69
70         PR middle-end/68079
71         * dojump.c (do_compare_and_jump): Canonicalize both function and
72         method types.
73
74 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
75
76         PR target/68084
77         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
78         for =@ccae.
79
80 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
81
82         PR ipa/pr67600
83         * ipa-polymorphic-call.c
84         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
85         instance offset with offset of outer type.
86
87 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
88
89         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
90
91 2015-10-23  Caroline Tice  <cmtice@google.com>
92
93         (from Richard Biener
94         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
95         call to iterative_hash_host_wide_int.
96
97 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
98
99         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
100         Define as yes.
101
102 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
103
104         * tree-vect-generic.c (expand_vector_operations_1): Check
105         optab exists before use it.
106
107 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
108
109         * tree-vect-generic.c (expand_vector_condition): Avoid
110         uninitialized variable warning.
111
112 2015-10-23  Jeff Law  <law@redhat.com>
113
114         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
115         here.  Instead...
116         (execute_todo): Call it here.
117         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
118         statistics
119         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
120
121 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
122             Szabolcs Nagy  <szabolcs.nagy@arm.com>
123
124         * config.gcc (enable_secureplt): Add *-linux*-musl*.
125
126 2015-10-23  Jeff Law  <law@redhat.com>
127
128         PR tree-optimization/67830
129         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
130         Explicitly verify the mask has no bits outside the type of
131         the innermost operands.
132
133 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
134             Szabolcs Nagy  <szabolcs.nagy@arm.com>
135
136         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
137         (MUSL_DYNAMIC_LINKER64): Define.
138         (GNU_USER_DYNAMIC_LINKER32): Update.
139         (GNU_USER_DYNAMIC_LINKER64): Update.
140         (CHOOSE_DYNAMIC_LINKER): Update.
141
142         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
143         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
144         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
145         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
146         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
147         (CHOOSE_DYNAMIC_LINKER): Update.
148         (INCLUDE_DEFAULTS): Redefine.
149
150         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
151
152 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
153
154         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
155         comparing addresses.
156
157 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
158
159         * fold-const.c (operand_equal_p): Handle matching of vector
160         constructors.
161
162 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
163
164         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
165
166 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
167             Andrew Pinski  <apinski@cavium.com>
168
169         PR rtl-optimization/67736
170         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
171         of gen_lowpart.
172
173 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
174
175         PR middle-end/68066
176         * tree.c (build_truth_vector_type): Support BLK mode
177         returned for boolean vector.
178
179 2015-10-23  Alan Hayward <alan.hayward@arm.com>
180
181         PR tree-optimization/65947
182         * tree-vect-loop.c
183         (vect_is_simple_reduction_1): Find condition reductions.
184         (vect_model_reduction_cost): Add condition reduction costs.
185         (get_initial_def_for_reduction): Add condition reduction initial var.
186         (vect_create_epilog_for_reduction): Add condition reduction epilog.
187         (vectorizable_reduction): Condition reduction support.
188         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
189         * doc/sourcebuild.texi (Vector-specific attributes): Document
190         vect_max_reduc
191
192 2015-10-23  Richard Biener  <rguenther@suse.de>
193
194         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
195         and builtins.def.
196
197 2015-10-23  Richard Biener  <rguenther@suse.de>
198             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
199
200         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
201         into (A ^ B) - B to match.pd
202         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
203
204         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
205         New simplifier.
206         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
207         New simplifier.
208         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
209         New simplifier.
210         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
211         New simplifier.
212         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
213         INTEGER_CST@1)): New simplifier.
214
215 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
216
217         * builtins.c (integer_valued_real_p): Move to fold-const.c.
218         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
219         (fold_builtin_ceil, fold_builtin_round): Delete.
220         (fold_builtin_1): Handle constant trunc, floor, ceil and round
221         arguments here.
222         * convert.c (convert_to_real): Remove narrowing of rounding
223         functions.
224         * fold-const.h (integer_valued_real_unary_p)
225         (integer_valued_real_binary_p, integer_valued_real_call_p)
226         (integer_valued_real_single_p, integer_valued_real_p): Declare.
227         * fold-const.c (tree_single_nonnegative_warnv_p): Move
228         name_registered_for_update_p check to SSA_NAME case statement.
229         Don't call tree_simple_nonnegative_warnv_p for SSA names.
230         (integer_valued_real_unary_p, integer_valued_real_binary_p)
231         (integer_valued_real_call_p, integer_valued_real_single_p)
232         (integer_valued_real_invalid_p): New functions.
233         (integer_valued_real_p): Move from fold-const.c and rework
234         to call the functions above.  Handle SSA names.
235         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
236         * gimple-fold.c (gimple_assign_integer_valued_real_p)
237         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
238         (gimple_stmt_integer_valued_real_p): New functions.
239         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
240         Fold f(x)->x for the same f if x is known to be integer-valued.
241         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
242         the result.  Canonicalize floor(x) as trunc(x) if x is
243         nonnegative.
244
245 2015-10-23  Tom de Vries  <tom@codesourcery.com>
246
247         * tree-ssa-structalias.c (intra_create_variable_infos): Use
248         make_constraint_from.
249
250 2015-10-23  Tom de Vries  <tom@codesourcery.com>
251
252         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
253         setting of is_full_var in case of a single field.
254
255 2015-10-22  Martin Sebor  <msebor@redhat.com>
256
257         PR driver/68043
258         * config/i386/i386.opt: Add missing periods to the ends of sentences.
259         * config/msp430/msp430.opt: Same.
260
261 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
262
263         * doc/extend.exp (Global Register Variables): Rewrite.
264
265 2015-10-22  Jeff Law  <law@redhat.com>
266
267         * genattrtab.c (main): If we do not have any annul-true or annul-false
268         slots, then write out a dummy eligible_for_annul_true or
269         eligible_for_annul_false as needed.
270
271 2015-10-22  Nick Clifton  <nickc@redhat.com>
272
273         * config/msp430/msp430.opt: Add -msilicon-errata and
274         -msilicon-errata-warn.
275         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
276         assembler.
277         * doc/invoke.texi: Document new options.
278
279 2015-10-22  Richard Biener  <rguenther@suse.de>
280
281         PR tree-optimization/58497
282         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
283         (expand_vector_operations_1): Use it.  Lower operations on
284         all uniform vectors to scalar operations if the HW supports it.
285
286 2015-10-22  Richard Biener  <rguenther@suse.de>
287
288         PR tree-optimization/19049
289         PR tree-optimization/65962
290         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
291         to strided accesses if single-element interleaving doesn't work.
292
293 2015-10-22  Richard Biener  <rguenther@suse.de>
294
295         PR middle-end/68046
296         PR middle-end/61893
297         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
298         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
299         (expand_unop): Likewise.
300
301 2015-10-22  Richard Biener  <rguenther@suse.de>
302
303         * fold-const.c (fold_addr_of_array_ref_difference): Properly
304         convert operands before folding a MINUS_EXPR.
305         (fold_binary_loc): Move simplification of MINUS_EXPR on
306         converted POINTER_PLUS_EXPRs ...
307         * match.pd: ... here.
308
309 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
310
311         * builtins.c (fold_builtin_tan): Delete.
312         (fold_builtin_1): Handle constant tan arguments here.
313         * match.pd: Simplify (tan (atan x)) to x.
314
315 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
316
317         * builtins.c (fold_builtin_cproj): Delete.
318         (fold_builtin_1): Handle constant arguments here.
319         (build_complex_cproj): Move and rename to...
320         * tree.c: (build_complex_inf): ...this.
321         * tree.h (build_complex_inf): Declare.
322         * match.pd: Fold cproj(x)->x if x has no infinity.
323         Use build_complex_inf for existing cproj rules.
324
325 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
326
327         PR target/68015
328         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
329         already have a comparison result.
330
331 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
332
333         PR target/63304
334         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
335         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
336         (aarch64_classify_address): Likewise.
337         (aarch64_secondary_reload): Likewise.
338         (aarch64_override_options_after_change_1): Adjust.
339         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
340         Use aarch64_nopcrelative_literal_loads.
341         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
342         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
343         Declare.
344
345 2015-10-21  Martin Sebor  <msebor@redhat.com>
346
347         PR driver/68043
348         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
349         (print_filtered_help): Reference aliased option's name and encourage
350         readers to use it in preference to the alias if the former is not
351         documented.  Mention when using an option is diagnosed.
352         * gcc.c (display_help): End each sentence with a period.
353
354         * common.opt: End each sentence that describes an option with
355         a period.
356         * config/aarch64/aarch64.opt: Same.
357         * config/alpha/alpha.opt: Same.
358         * config/arc/arc.opt: Same.
359         * config/arm/arm.opt: Same.
360         * config/avr/avr.opt: Same.
361         * config/bfin/bfin.opt: Same.
362         * config/c6x/c6x.opt: Same.
363         * config/cr16/cr16.opt: Same.
364         * config/cris/cris.opt: Same.
365         * config/cris/linux.opt: Same.
366         * config/darwin.opt: Same.
367         * config/epiphany/epiphany.opt: Same.
368         * config/fr30/fr30.opt: Same.
369         * config/frv/frv.opt: Same.
370         * config/ft32/ft32.opt: Same.
371         * config/g.opt: Same.
372         * config/h8300/h8300.opt: Same.
373         * config/i386/cygming.opt: Same.
374         * config/i386/djgpp.opt: Same.
375         * config/i386/i386.opt: Same.
376         * config/i386/interix.opt: Same.
377         * config/i386/mingw-w64.opt: Same.
378         * config/i386/mingw.opt: Same.
379         * config/ia64/ia64.opt: Same.
380         * config/ia64/ilp32.opt: Same.
381         * config/iq2000/iq2000.opt: Same.
382         * config/linux.opt: Same.
383         * config/lm32/lm32.opt: Same.
384         * config/lynx.opt: Same.
385         * config/m32c/m32c.opt: Same.
386         * config/m32r/m32r.opt: Same.
387         * config/m68k/ieee.opt: Same.
388         * config/m68k/m68k.opt: Same.
389         * config/mcore/mcore.opt: Same.
390         * config/mep/mep.opt: Same.
391         * config/microblaze/microblaze.opt: Same.
392         * config/mips/mips.opt: Same.
393         * config/mmix/mmix.opt: Same.
394         * config/mn10300/mn10300.opt: Same.
395         * config/moxie/moxie.opt: Same.
396         * config/msp430/msp430.opt: Same.
397         * config/nios2/elf.opt: Same.
398         * config/nios2/nios2.opt: Same.
399         * config/nvptx/nvptx.opt: Same.
400         * config/pa/pa-hpux.opt: Same.
401         * config/pa/pa-hpux1010.opt: Same.
402         * config/pa/pa-hpux1111.opt: Same.
403         * config/pa/pa-hpux1131.opt: Same.
404         * config/pa/pa.opt: Same.
405         * config/pa/pa64-hpux.opt: Same.
406         * config/pdp11/pdp11.opt: Same.
407         * config/rl78/rl78.opt: Same.
408         * config/rs6000/476.opt: Same.
409         * config/rs6000/aix64.opt: Same.
410         * config/rs6000/darwin.opt: Same.
411         * config/rs6000/linux64.opt: Same.
412         * config/rs6000/rs6000.opt: Same.
413         * config/rs6000/sysv4.opt: Same.
414         * config/s390/s390.opt: Same.
415         * config/s390/tpf.opt: Same.
416         * config/sh/sh.opt: Same.
417         * config/sol2.opt: Same.
418         * config/sparc/long-double-switch.opt: Same.
419         * config/sparc/sparc.opt: Same.
420         * config/spu/spu.opt: Same.
421         * config/stormy16/stormy16.opt: Same.
422         * config/tilegx/tilegx.opt: Same.
423         * config/tilepro/tilepro.opt: Same.
424         * config/v850/v850.opt: Same.
425         * config/vax/vax.opt: Same.
426         * config/visium/visium.opt: Same.
427         * config/vms/vms.opt: Same.
428         * config/vxworks.opt: Same.
429         * config/xtensa/xtensa.opt: Same.
430
431 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
432             Sebastian Pop  <s.pop@samsung.com>
433
434         * graphite-scop-detection.c (parameter_index_in_region): Update call to
435         invariant_in_sese_p_rec.
436         * graphite-sese-to-poly.c (extract_affine): Same.
437         * sese.c (invariant_in_sese_p_rec): Pass in an extra
438         parameter has_vdefs.
439         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
440         variable depends on virtual definitions in the current region.
441         * sese.h (invariant_in_sese_p_rec): Update declaration.
442
443 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
444             Sebastian Pop  <s.pop@samsung.com>
445
446         * graphite-scop-detection.c (build_scops): Do not handle scops
447         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
448         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
449
450 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
451
452         * config.in: Regenerate.
453         * configure: Regenerate.
454         * configure.ac (CHECKING_P): Define.
455         * system.h: Use CHECKING_P.
456
457 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
458
459         PR ipa/67056
460         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
461         is negative we don't know the type.
462         (check_stmt_for_type_change): Skip constructors of non-polymorphic
463         types as those won't help devirutalization.
464
465 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
466
467         * fold-const.c (operand_equal_p): Add code matching empty constructors.
468
469 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
470
471         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
472         comments.
473         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
474         Add comments on sign of the result.
475         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
476         Recurse on operand #1 instead of operand #0.
477         <CEIL_MOD_EXPR>: Do not recurse.
478         <ROUND_MOD_EXPR>: Likewise.
479
480 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
481
482         * cfgrtl.c (pass_free_cfg::execute): Adjust.
483         * final.c (dbr_sequence_length): Always define.
484         (shorten_branches): Adjust.
485         * genattr-common.c (main): Always define DELAY_SLOTS.
486         * genattr.c (main): Unconditionally declare functions and define
487         macros related to delay slots.
488         * genattrtab.c (write_eligible_delay): Adjust.
489         (main): Always write out delay slot functions.
490         * opts.c (default_options_table): Adjust.
491         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
492         (redirect_with_delay_list_safe_p): Likewise.
493         (fill_simple_delay_slots): Likewise.
494         (fill_slots_from_thread): Likewise.
495         (make_return_insns): Likewise.
496         (dbr_schedule): Likewise.
497         (rest_of_handle_delay_slots): Likewise.
498         (pass_delay_slots::gate): Likewise.
499         * toplev.c (process_options): Likewise.
500
501 2015-10-21  Richard Henderson  <rth@redhat.com>
502
503         * targhooks.c (default_addr_space_pointer_mode): Remove check
504         for generic address space.
505         (default_addr_space_address_mode): Likewise.
506         (default_addr_space_valid_pointer_mode): Likewise.
507         (default_addr_space_legitimate_address_p): Likewise.
508         (default_addr_space_legitimize_address): Likewise.
509         * target.def (addr_space.pointer_mode): Update documentation
510         of default behavior.
511         (addr_space.address_mode): Likewise.
512         * tm.texi: Update.
513
514         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
515         address spaces.
516
517 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
518
519         * builtins.c (fold_builtin_cabs): Delete.
520         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
521         * match.pd: Add rules previously handled by fold_builtin_cabs.
522
523 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
524
525         * fold-const.h (fold_strip_sign_ops): Delete.
526         * fold-const.c (fold_strip_sign_ops): Likewise.
527         (fold_unary_loc, fold_binary_loc): Remove calls to it.
528         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
529         (fold_builtin_ccos): Delete.
530         (fold_builtin_pow): Don't call fold_strip_sign_ops.
531         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
532         Remove fndecl argument.
533         (fold_builtin_1): Update calls accordingly.  Handle constant
534         cos, cosh, ccos and ccosh here.
535
536 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
537
538         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
539         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
540         * common.opt (fssa-backprop): New option.
541         * fold-const.h (negate_mathfn_p): Declare.
542         * fold-const.c (negate_mathfn_p): Make public.
543         * timevar.def (TV_TREE_BACKPROP): New.
544         * tree-pass.h (make_pass_backprop): Declare.
545         * passes.def (pass_backprop): Add.
546         * gimple-ssa-backprop.c: New file.
547
548 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
549             Sebastian Pop  <s.pop@samsung.com>
550
551         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
552         Do not call create_empty_if_region_on_edge when cond_expr is true.
553         (translate_isl_ast_node_for): Check whether a guard has been generated.
554
555 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
556
557         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
558         (operator=): Removed.
559         (dr_info): Make alias_set number the last argument with default
560         value of invalid_alias_set.
561         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
562         of dr_info.
563         (rewrite_reductions_out_of_ssa): Iterate only through the
564         basic blocks which are inside region.
565         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
566         * sese.h (struct sese_l): Removed assignment operator.
567         (split_region_for_bb): Removed dead code.
568
569 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
570
571         * graphite-poly.h (struct dr_info): Removed conversion constructor.
572         (struct scop): Renamed scop::region to scop::scop_info
573         (scop_set_region): Same.
574         (SCOP_REGION): Removed
575         (SCOP_CONTEXT): Removed.
576         (POLY_SCOP_P): Removed.
577         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
578         Rename scop->region to scop->scop_info.
579         (add_parameters_to_ivs_params): Same.
580         (graphite_regenerate_ast_isl): Same.
581         * graphite-poly.c (new_scop): Same.
582         (free_scop): Same.
583         (print_scop_params): Same.
584         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
585         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
586         (dot_all_scops_1): Rename scop->region to scop->scop_info.
587         (scop_detection::nb_pbbs_in_loops): Same.
588         (find_scop_parameters): Same.
589         (try_generate_gimple_bb): Same.
590         (gather_bbs::before_dom_children): Same.
591         (gather_bbs::after_dom_children): Same.
592         (build_scops): Same.
593         * graphite-sese-to-poly.c (build_scop_scattering): Same.
594         (extract_affine_chrec): Same.
595         (extract_affine): Same.
596         (set_scop_parameter_dim): Same.
597         (build_loop_iteration_domains): Same.
598         (create_pw_aff_from_tree): Same.
599         (add_param_constraints): Same.
600         (build_scop_iteration_domain): Same.
601         (build_scop_drs): Same.
602         (analyze_drs_in_stmts): Same.
603         (insert_out_of_ssa_copy_on_edge): Same.
604         (rewrite_close_phi_out_of_ssa):Same.
605         (rewrite_reductions_out_of_ssa):Same.
606         (handle_scalar_deps_crossing_scop_limits):Same.
607         (rewrite_cross_bb_scalar_deps):Same.
608         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
609         (build_poly_scop):Same.
610         (build_alias_set): Use pointer to dr_info.
611         * graphite.c (print_graphite_scop_statistics):
612         (graphite_transform_loops):
613         * sese.h (struct sese_l): Remove conversion constructor.
614
615 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
616
617         PR middle-end/67966
618         * tree.c (verify_type): Verify that TYPE_MODE match
619         between TYPE_CANONICAL and type.
620         * expr.c (store_expr_with_bounds): Revert my previous change.
621         * expmed.c (store_bit_field_1): Revert prevoius change.
622         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
623         to match for all types.
624
625 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
626
627         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
628         nesting.
629
630 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
631
632         * doc/tm.texi: Regenerated.
633         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
634         * stor-layout.c (layout_type): Use mode to get vector mask size.
635         * target.def (get_mask_mode): New.
636         * targhooks.c (default_get_mask_mode): New.
637         * targhooks.h (default_get_mask_mode): New.
638         * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
639         for boolean vector.
640         * tree.c (MAX_BOOL_CACHED_PREC): New.
641         (nonstandard_boolean_type_cache): New.
642         (build_nonstandard_boolean_type): New.
643         (make_vector_type): Vector mask has no canonical type.
644         (build_truth_vector_type): New.
645         (build_same_sized_truth_vector_type): New.
646         (truth_type_for): Support vector masks.
647         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
648         (build_truth_vector_type): New.
649         (build_same_sized_truth_vector_type): New.
650         (build_nonstandard_boolean_type): New.
651         * tree-cfg.c (verify_gimple_comparison) Require boolean
652         vector type for vector comparison.
653         (verify_gimple_assign_ternary): Likewise.
654         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
655         condition operand.
656         * tree-vect-stmts.c (vectorizable_condition): Use boolean
657         vector type for vector comparison.
658         * tree-vect-generic.c (elem_op_func): Add new operand to hold
659         vector type.
660         (do_unop): Adjust to modified function type.
661         (do_binop): Likewise.
662         (do_plus_minus): Likewise.
663         (do_negate); Likewise.
664         (expand_vector_piecewise): Likewise.
665         (do_cond): Likewise.
666         (do_compare): Use comparison instead of condition.
667         (expand_vector_divmod): Use boolean vector type for comparison.
668         (expand_vector_operations_1): Skip scalar mask operations.
669
670 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
671
672         * omp-low.c (simd_clone_create): Set in_other_partition
673         for created clones.
674
675 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
676
677         * doc/extend.exp (Local Register Variables): Rewrite.
678
679 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
680
681         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
682         and x*x in cases where the operands are sign ops.  Extend these
683         rules to handle copysign as a sign op (including for cos, cosh
684         and pow, which already treated negate and abs as sign ops).
685
686 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
687
688         PR target/68018
689         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
690         for 64-bit MS_ABI targets also when default incoming stack boundary
691         is overriden.
692
693 2015-10-21  Richard Biener  <rguenther@suse.de>
694
695         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
696         cond stmts, enhanced and split out from ...
697         (vn_phi_eq): ... here.
698
699 2015-10-21  Richard Biener  <rguenther@suse.de>
700
701         PR middle-end/68031
702         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
703         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
704         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
705         make sure they are not registered for update.
706
707 2015-10-21  Richard Biener  <rguenther@suse.de>
708
709         PR tree-optimization/68026
710         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
711         unsigned VARYING values.
712
713 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
714
715         * asan.c (asan_emit_stack_protection): Don't pass local stack to
716         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
717         NULL and use local stack than.
718         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
719         in addition to __asan_init.
720         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
721         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
722         * asan.h (asan_intercepted_p): Handle new string builtins.
723         * ubsan.c (ubsan_use_new_style_p): New function.
724         (ubsan_instrument_float_cast): If location is unknown, assign
725         input_location to loc. Propagate loc to ubsan_create_data if
726         ubsan_use_new_style_p returned true.
727
728 2015-10-21  Jeff Law  <law@redhat.com>
729
730         * Makefile.in (OBJS): Remove sched-vis.c
731         * sched-vis.c: Removed.  Code moved into...
732         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
733         * rtl.h: Remove prototypes for functions now living in print-rtl.c
734         * print-rtl.h Add prototypes for new functions in print-rtl.c.
735         * auto-inc-dec.c: Include print-rtl.h
736         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
737         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
738
739         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
740         ATTRIBUTE_UNUSED.
741
742 2015-10-21  Richard Biener  <rguenther@suse.de>
743             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
744
745         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
746         to match.pd.
747         Move (a * (1 << b)) is (a << b) to match.pd.
748         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
749         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
750         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
751
752         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
753         New simplifier.
754         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
755         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
756         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
757         : New simplifier.
758         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
759         New simplifier.
760         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
761
762 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
763             Szabolcs Nagy  <szabolcs.nagy@arm.com>
764             Alan Modra  <amodra@gmail.com>
765
766         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
767         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
768         (LINK_SPEC): Add %(link_secure_plt).
769         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
770         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
771
772 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
773             Szabolcs Nagy  <szabolcs.nagy@arm.com>
774
775         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
776         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
777
778 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
779
780         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
781         New function.
782         (fusion_load_store): Use it.
783         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
784         ldp and stp in VD modes.
785         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
786         (store_pair<mode>, VD): Likewise.
787
788 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
789
790         PR rtl-optimization/67609
791         * lra-splill.c (lra_final_code_change): Don't remove all
792         sub-registers.
793
794 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
795
796         * simplify-rtx.c (simplify_binary_operation): If either operand was
797         a constant pool reference use them if all other simplifications failed.
798
799 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
800
801         * config/aarch64/aarch64.md
802         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
803         * config/aarch64/aarch64-simd.md
804         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
805         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
806         (aarch64_fpconst_pow_of_2): New function.
807         (aarch64_vec_fpconst_pow_of_2): Likewise.
808         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
809         prototype.
810         (aarch64_vec_fpconst_pow_of_2): Likewise.
811         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
812         (aarch64_fp_vec_pow2): Likewise.
813
814 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
815
816         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
817         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
818         * config/alpha/alpha.c (alpha_function_arg_advance): Update
819         ALPHA_ARG_SIZE usage.
820         (alpha_arg_partial_bytes): Ditto.
821
822 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
823
824         PR target/66810
825         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
826         error_mark_node decls.
827
828 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
829
830         PR target/67963
831         PR target/67985
832         * common/config/i386/i386-common.c (ix86_handle_option): Remove
833         OPT_miamcu handling.
834         * config/i386/i386.c (PTA_NO_80387): New macro.
835         (processor_alias_table): Add PTA_NO_80387 to lakemont.
836         (ix86_option_override_internal): Update MASK_80387 from
837         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
838         SSE math only if 80387 is supported.  Don't change
839         MASK_FLOAT_RETURNS.
840         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
841         80387 is supported.
842         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
843         if TARGET_80387 is true and TARGET_IAMCU is false.
844         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
845         is true and TARGET_IAMCU_P is false.
846
847 2015-10-20  Richard Biener  <rguenther@suse.de>
848
849         PR tree-optimization/68017
850         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
851
852 2015-10-20  Martin Liska  <mliska@suse.cz>
853
854         * cgraphclones.c (cgraph_node::create_virtual_clone):
855         Verify cgraph_node.local.versionable instead of calling
856         tree_versionable_function_p.
857         * ipa-cp.c (determine_versionability): Save the information
858         to ipa_node_params summary.
859         (ipcp_versionable_function_p): Use it.
860         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
861         (ipcp_generate_summary): Do not compute cgraph_node
862         versionability.
863         * ipa-inline-analysis.c (inline_generate_summary): Compute
864         versionability for all cgraph nodes.
865         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
866         ipa_node_params::versionability.
867         * ipa-prop.h (struct ipa_node_params): Declare it.
868
869 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
870
871         PR other/67868
872         * varasm.c (assemble_variable): Move special vtv handling to..
873         (handle_vtv_comdat_sections): .. here. New function.
874         (output_object_block): Handle vtv sections.
875
876 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
877
878         PR target/66912
879         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
880
881 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
882
883         * doc/extend.texi: Update documentation WRT inline functions.
884
885 2015-10-20  Alan Modra  <amodra@gmail.com>
886
887         PR go/66870
888         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
889         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
890         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
891
892 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
893
894         PR rtl-optimization/66790
895         * df.h (DF_MIR): New macro.
896         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
897         (DF_MIR_INFO_BB): New macro.
898         (DF_MIR_IN, DF_MIR_OUT): New macros.
899         (struct df_mir_bb_info): New.
900         (df_mir): New macro.
901         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
902         declarations.
903         (df_mir_get_bb_info): New.
904         * df-problems.c (struct df_mir_problem_data): New.
905         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
906         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
907         df_mir_confluence_0, df_mir_confluence_n,
908         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
909         df_mir_bottom_dump, df_mir_verify_solution_start,
910         df_mir_verify_solution_end): New.
911         (problem_MIR): New.
912         (df_mir_add_problem, df_mir_simulate_one_insn): New.
913         * timevar.def (TV_DF_MIR): New.
914         * ree.c: Include bitmap.h
915         (add_removable_extension): Add an INIT_REGS parameter.  Use it
916         to skip zero-extensions that may get an uninitialized register.
917         (find_removable_extensions): Compute must-initialized registers
918         using the MIR dataflow problem. Update the call to
919         add_removable_extension.
920         (find_and_remove_re): Call df_mir_add_problem.
921
922 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
923
924         * common/config/mn10300/mn10300-common.c
925         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
926         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
927
928 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
929
930         * doc/extend.texi (Explicit Register Variables): Simplify and
931         avoid unnecessary and confusion abbreviations.  Update cross
932         references.
933         doc/implement-c.tex: Update cross reference.
934
935 2015-10-19  Jeff Law  <law@redhat.com>
936
937         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
938         that create irreducible loops unless the path elimiantes a multiway
939         branch.
940
941 2015-10-19  Richard Biener  <rguenther@suse.de>
942
943         PR tree-optimization/67975
944         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
945         * tree-cfg.c (extract_true_false_controlled_edges): Split out
946         core worker from ...
947         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
948         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
949         instead of block number for PHIs with two or one args.
950         (vn_phi_eq): Compare edge predicates of PHIs that are in different
951         blocks.
952
953 2015-10-19  Richard Biener  <rguenther@suse.de>
954
955         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
956         (gimple_stmt_nonnegative_warnv_p): Use it.
957         * match.pd (CPROJ): New operator list.
958         (cproj (complex ...)): Move simplifications from ...
959         * builtins.c (fold_builtin_cproj): ... here.
960
961 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
962
963         * config/i386/i386.c (ix86_expand_vector_move): Use
964         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
965         alignment.
966
967 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
968
969         * doc/invoke.texi: Replace @optindex with @opindex.
970
971 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
972
973         PR target/67995
974         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
975         arch= is set,  clear all bits in x_ix86_isa_flags, except for
976         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
977
978 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
979
980         PR middle-end/68002
981         * common.opt (fkeep-static-functions): New option.
982         * doc/invoke.texi: Document it.
983         * cgraphunit.c (cgraph_node::finalize_function): Use it.
984
985 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
986
987         * sched-int.h (struct autopref_multipass_data_): Remove offset
988         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
989         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
990         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
991         (autopref_rank_data): New function.
992         (autopref_rank_for_schedule): Use it.
993         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
994
995 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
996
997         PR other/65800
998         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
999
1000 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1001
1002         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1003         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
1004         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1005         (STANDARD_STARTFILE_PREFIX_1): New.
1006         (STANDARD_STARTFILE_PREFIX_2): New.
1007
1008 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1009
1010         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1011         (darwin_driver_init): Note a version-min when provided on the c/l.
1012         * config/darwin.h (%darwin_minversion): Remove.
1013         * config/i386/darwin.h: Likewise.
1014         * config/rs6000/darwin.h: Likewise.
1015         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1016         rather than an arbitrary constant.
1017
1018 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1019
1020         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1021         PPC, detect conflicts between -arch and multilib settings.  Detect
1022         and warn about conflicts between multiple -arch definitions.
1023
1024 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
1025
1026         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1027
1028 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1029
1030         * lra-constraints.c (add_next_usage_insn): Change argument type
1031         from rtx to rtx_insn *.
1032
1033 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
1034
1035         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1036         for Lakemont.
1037
1038 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
1039
1040         * config/tilepro/gen-mul-tables.cc: Adjust include files.
1041         * config/tilegx/mul-tables.c: Regenerate.
1042         * config/tilepro/mul-tables.c: Regenerate.
1043
1044         * config/tilegx/tilegx-c.c: Adjust include files.
1045         * config/tilegx/tilegx.c: Likewise.
1046         * config/tilepro/tilepro-c.c: Likewise.
1047         * config/tilepro/tilepro.c: Likewise.
1048         * config/aarch64/aarch64-builtins.c: Likewise.
1049         * config/aarch64/aarch64.c: Likewise.
1050         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1051         * config/alpha/alpha.c: Likewise.
1052         * config/arc/arc.c: Likewise.
1053         * config/arm/aarch-common.c: Likewise.
1054         * config/arm/arm-builtins.c: Likewise.
1055         * config/arm/arm-c.c: Likewise.
1056         * config/arm/arm.c: Likewise.
1057         * config/avr/avr-c.c: Likewise.
1058         * config/avr/avr-devices.c: Likewise.
1059         * config/avr/avr-log.c: Likewise.
1060         * config/avr/avr.c: Likewise.
1061         * config/bfin/bfin.c: Likewise.
1062         * config/c6x/c6x.c: Likewise.
1063         * config/cr16/cr16.c: Likewise.
1064         * config/cris/cris.c: Likewise.
1065         * config/darwin-c.c: Likewise.
1066         * config/darwin-driver.c: Likewise.
1067         * config/darwin.c: Likewise.
1068         * config/default-c.c: Likewise.
1069         * config/epiphany/epiphany.c: Likewise.
1070         * config/epiphany/mode-switch-use.c: Likewise.
1071         * config/epiphany/resolve-sw-modes.c: Likewise.
1072         * config/fr30/fr30.c: Likewise.
1073         * config/frv/frv.c: Likewise.
1074         * config/ft32/ft32.c: Likewise.
1075         * config/glibc-c.c: Likewise.
1076         * config/h8300/h8300.c: Likewise.
1077         * config/i386/host-cygwin.c: Likewise.
1078         * config/i386/host-mingw32.c: Likewise.
1079         * config/i386/i386-c.c: Likewise.
1080         * config/i386/i386.c: Likewise.
1081         * config/i386/msformat-c.c: Likewise.
1082         * config/i386/winnt-cxx.c: Likewise.
1083         * config/i386/winnt-stubs.c: Likewise.
1084         * config/i386/winnt.c: Likewise.
1085         * config/ia64/ia64-c.c: Likewise.
1086         * config/ia64/ia64.c: Likewise.
1087         * config/iq2000/iq2000.c: Likewise.
1088         * config/lm32/lm32.c: Likewise.
1089         * config/m32c/m32c-pragma.c: Likewise.
1090         * config/m32c/m32c.c: Likewise.
1091         * config/m32r/m32r.c: Likewise.
1092         * config/mcore/mcore.c: Likewise.
1093         * config/mep/mep-pragma.c: Likewise.
1094         * config/mep/mep.c: Likewise.
1095         * config/microblaze/microblaze-c.c: Likewise.
1096         * config/microblaze/microblaze.c: Likewise.
1097         * config/mips/mips-tables.opt
1098         * config/mips/mips.c: Likewise.
1099         * config/mmix/mmix.c: Likewise.
1100         * config/mn10300/mn10300.c: Likewise.
1101         * config/moxie/moxie.c: Likewise.
1102         * config/msp430/msp430-c.c: Likewise.
1103         * config/msp430/msp430.c: Likewise.
1104         * config/nds32/nds32-cost.c: Likewise.
1105         * config/nds32/nds32-fp-as-gp.c: Likewise.
1106         * config/nds32/nds32-intrinsic.c: Likewise.
1107         * config/nds32/nds32-isr.c: Likewise.
1108         * config/nds32/nds32-md-auxiliary.c: Likewise.
1109         * config/nds32/nds32-memory-manipulation.c: Likewise.
1110         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1111         * config/nds32/nds32-predicates.c: Likewise.
1112         * config/nds32/nds32.c: Likewise.
1113         * config/nios2/nios2.c: Likewise.
1114         * config/nvptx/mkoffload.c: Likewise.
1115         * config/nvptx/nvptx.c: Likewise.
1116         * config/pa/pa.c: Likewise.
1117         * config/pdp11/pdp11.c: Likewise.
1118         * config/rl78/rl78-c.c: Likewise.
1119         * config/rl78/rl78.c: Likewise.
1120         * config/rs6000/host-darwin.c: Likewise.
1121         * config/rs6000/rs6000-c.c: Likewise.
1122         * config/rs6000/rs6000-linux.c: Likewise.
1123         * config/rs6000/rs6000.c: Likewise.
1124         * config/rx/rx.c: Likewise.
1125         * config/s390/s390-c.c: Likewise.
1126         * config/s390/s390.c: Likewise.
1127         * config/sh/sh-c.c: Likewise.
1128         * config/sh/sh-mem.cc: Likewise.
1129         * config/sh/sh.c: Likewise.
1130         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1131         * config/sh/sh_treg_combine.cc: Likewise.
1132         * config/sol2-c.c: Likewise.
1133         * config/sol2-cxx.c: Likewise.
1134         * config/sol2-stubs.c: Likewise.
1135         * config/sol2.c: Likewise.
1136         * config/sparc/sparc-c.c: Likewise.
1137         * config/sparc/sparc.c: Likewise.
1138         * config/spu/spu-c.c: Likewise.
1139         * config/spu/spu.c: Likewise.
1140         * config/stormy16/stormy16.c: Likewise.
1141         * config/v850/v850-c.c: Likewise.
1142         * config/v850/v850.c: Likewise.
1143         * config/vax/vax.c: Likewise.
1144         * config/visium/visium.c: Likewise.
1145         * config/vms/vms-c.c: Likewise.
1146         * config/vms/vms.c: Likewise.
1147         * config/vxworks.c: Likewise.
1148         * config/winnt-c.c: Likewise.
1149         * config/xtensa/xtensa.c: Likewise.
1150
1151 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1152
1153         PR target/67745
1154         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1155         (FUNCTION_BOUNDARY_P): New macro:
1156         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1157         New hook.
1158         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1159         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1160         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1161         * gcc/function.c (allocate_struct_function): Call
1162         relayout_function hook.
1163         * gcc/passes.c (rest_of_decl_compilation): Likewise.
1164
1165 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1166
1167         PR target/67745
1168         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1169         * config/arm/arm.c (arm_option_override_internal): Call
1170         arm_override_options_after_change_1.
1171         (arm_override_options_after_change): New function.
1172         (arm_override_options_after_change_1): Likewise.
1173         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1174
1175 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1176
1177         Revert:
1178         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1179         empty constructors.
1180
1181 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1182
1183         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1184         argument is an ADDR_EXPR.
1185
1186 2015-10-16  Richard Biener  <rguenther@suse.de>
1187
1188         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1189         and get rid of force_gimple_operand_gsi.
1190         (gimple_fold_builtin_memory_chk): Likewise.
1191         (gimple_fold_builtin_stxcpy_chk): Likewise.
1192         (rewrite_to_defined_overflow): Likewise.
1193         (gimple_convert_to_ptrofftype): New function.
1194         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1195
1196 2015-10-16  Richard Biener  <rguenther@suse.de>
1197
1198         * tree-nested.h (build_addr): Adjust prototype.
1199         * tree-nested.c (build_addr): Remove context argument and use
1200         mark_addressable.
1201         (get_static_chain): Adjust calls to build_addr.
1202         (convert_nl_goto_reference): Likewise.
1203         (convert_tramp_reference_op): Likewise.
1204         (finalize_nesting_tree_1): Likewise.
1205         * value-prof.c (gimple_ic): Likewise.
1206         * gimple-low.c (lower_builtin_setjmp): Likewise.
1207         * tree-parloops.c (take_address_of): Likewise.
1208         (create_call_for_reduction_1): Likewise.
1209         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1210         (gimple_gen_ic_func_profiler): Likewise.
1211
1212 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1213
1214         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1215         empty constructors.
1216
1217 2015-10-16  Michael Collison  <michael.collison@linaro.org>
1218             Andrew Pinski <andrew.pinski@caviumnetworks.com>
1219
1220         * match.pd ((x < y) && (x < z) -> x < min (y,z),
1221         (x > y) and (x > z) -> x > max (y,z))
1222
1223 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
1224             Szabolcs Nagy  <szabolcs.nagy@arm.com>
1225
1226         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1227         (DYNAMIC_LINKER): Renamed to ...
1228         (GLIBC_DYNAMIC_LINKER): This.
1229         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1230
1231 2015-10-15  Marek Polacek  <polacek@redhat.com>
1232
1233         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1234         gimple_call_builtin instead of is_gimple_call.
1235
1236 2015-10-15  Richard Biener  <rguenther@suse.de>
1237
1238         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1239
1240 2015-10-15  Richard Biener  <rguenther@suse.de>
1241
1242         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1243         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1244         * tree-vect-loop.c (get_initial_def_for_induction): Drop
1245         use of force_gimple_operand in favor of gimple_build.
1246         Use vect_get_new_ssa_name.
1247         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1248         (vectorizable_mask_load_store): Likewise.
1249         (vectorizable_call): Likewise.
1250         (vectorizable_store): Likewise.
1251         (vectorizable_load): Likewise.
1252         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
1253
1254 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
1255
1256         PR tree-optimization/67945
1257         * tree-pass.h (PROP_gimple_opt_math): New property flag.
1258         * generic-match-head.c (canonicalize_math_p): New function.
1259         * gimple-match-head.c: Include tree-pass.h.
1260         (canonicalize_math_p): New function.
1261         * match.pd: Group math built-in rules into simplifications
1262         and canonicalizations.  Guard the latter with canonicalize_math_p.
1263         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
1264         PROP_gimple_opt_math property.
1265
1266 2015-10-15  Marek Polacek  <polacek@redhat.com>
1267
1268         PR tree-optimization/67953
1269         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
1270
1271 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
1272
1273         * config.gcc: Recognize "." in architecture base name for AArch64.
1274
1275 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1276
1277         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1278         ROUND_UP macro.
1279         * config/mips/mips.c (mips_setup_incoming_varargs): Use
1280         ROUND_DOWN to calculate off.
1281         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1282         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1283         rounded_size.
1284
1285 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1286
1287         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1288
1289 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
1290             Torvald Riegel  <triegel@redhat.com>
1291
1292         PR target/67281
1293         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1294         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1295         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1296         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1297         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
1298         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1299         trechkpt, treclaim, tsr, ttest): New define_expands.
1300         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1301         __TM_FENCE__ for htm.
1302         * doc/extend.texi: Update documentation for htm builtins.
1303
1304 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1305
1306         PR target/67967
1307         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1308         REG_CFA_EXPRESSION to aligned SSE stores.
1309
1310 2015-10-14  Jeff Law  <law@redhat.com>
1311
1312         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1313         num_threaded_edges for successful FSM threads too.
1314
1315 2015-10-14  Richard Biener  <rguenther@suse.de>
1316
1317         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1318         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
1319         (vect_get_vec_def_for_operand): Remove unused parameter.
1320         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1321         (vect_create_epilog_for_reduction): Likewise.
1322         (vectorizable_reduction): Likewise.
1323         (vectorizable_live_operation): Likewise.
1324         * tree-vect-patterns.c (type_conversion_p): Likewise.
1325         (vect_recog_vector_vector_shift_pattern): Likewise.
1326         (check_bool_pattern): Likewise.
1327         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1328         (vect_analyze_slp_cost_1): Likewise.
1329         * tree-vect-stmts.c (process_use): Likewise.
1330         (vect_get_vec_def_for_operand): Do not handle reductions.
1331         (vect_get_vec_defs): Adjust.
1332         (vectorizable_mask_load_store): Likewise.
1333         (vectorizable_call): Likewise.
1334         (vectorizable_simd_clone_call): Likewise.
1335         (vect_get_loop_based_defs): Likewise.
1336         (vectorizable_conversion): Likewise.
1337         (vectorizable_assignment): Likewise.
1338         (vectorizable_shift): Likewise.
1339         (vectorizable_operation): Likewise.
1340         (vectorizable_store): Likewise.
1341         (vectorizable_load): Likewise.
1342         (vect_is_simple_cond): Likewise.
1343         (vectorizable_condition): Likewise.
1344         (vect_is_simple_use): Remove unused parameters.
1345         (vect_is_simple_use_1): Adjust and rename.
1346
1347 2015-10-14  Richard Biener  <rguenther@suse.de>
1348
1349         PR tree-optimization/67915
1350         * match.pd: Handle comparisons of addresses of STRING_CSTs.
1351         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1352         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1353         stmt folding in favor of GIMPLE one.
1354
1355 2015-10-14  Marek Polacek  <polacek@redhat.com>
1356
1357         PR tree-optimization/67815
1358         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1359         (reassociate_bb): Call it.
1360
1361 2015-10-14  Richard Biener  <rguenther@suse.de>
1362
1363         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1364         Reset info at start.
1365         (vect_analyze_group_access_1): Add debug print.
1366         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1367         (vect_compute_single_scalar_iteration_cost): ... to this.
1368         (vect_analyze_loop_2): Adjust.
1369         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1370         * tree-vectorizer.h: ... here.
1371         (add_stmt_info_to_vec): Remove.
1372         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1373
1374 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1375
1376         * targhooks.c (default_target_option_pragma_parse): Do not warn if
1377         called on behalf of "#pragma GCC pop_options".
1378
1379 2015-10-14  Tom de Vries  <tom@codesourcery.com>
1380
1381         * cfganal.c (verify_no_unreachable_blocks): New function.
1382         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1383         verify_no_unreachable_blocks.
1384         cfganal.h (verify_no_unreachable_blocks): Declare.
1385
1386 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
1387
1388         * common.opt: Add flag_checking.
1389         * system.h (CHECKING_P): Define.
1390
1391 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
1392             Aldy Hernandez  <aldyh@redhat.com>
1393             Ilya Verbin  <ilya.verbin@intel.com>
1394
1395         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1396         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1397         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1398         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1399         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1400         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1401         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1402         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1403         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1404         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1405         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1406         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1407         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1408         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1409         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1410         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1411         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1412         (struct cgraph_simd_clone_arg): Adjust comment.
1413         * coretypes.h (struct gomp_ordered): New forward decl.
1414         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1415         set critical clauses to it.
1416         (gimple_build_omp_ordered): Return gomp_ordered * instead of
1417         gimple *.  Add CLAUSES argument, set ordered clauses to it.
1418         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1419         GIMPLE_OMP_ORDERED.
1420         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1421         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1422         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
1423         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1424         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
1425         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1426         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
1427         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1428         renumber
1429         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1430         (gomp_critical): Add clauses field.
1431         (gomp_ordered): New struct.
1432         (is_a_helper <gomp_ordered *>::test): New inline.
1433         (gimple_build_omp_critical): Add CLAUSES argument.
1434         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
1435         instead of gimple *.
1436         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1437         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1438         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1439         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1440         inline functions.
1441         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1442         (dump_gimple_omp_target): Handle enter data and exit data.
1443         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1444         (dump_gimple_omp_critical): Print clauses.
1445         (dump_gimple_omp_ordered): New function.
1446         (dump_gimple_omp_task): Handle taskloop.
1447         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1448         GIMPLE_OMP_ORDERED.
1449         * gimple-walk.c (walk_gimple_op): Walk clauses on
1450         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1451         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1452         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1453         (struct gimplify_omp_ctx): Add loop_iter_var,
1454         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1455         and target_firstprivatize_array_bases fields.
1456         (delete_omp_context): Release loop_iter_var.
1457         (gimplify_bind_expr): Handle ORT_NONE.
1458         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1459         ORT_COMBINED_TARGET.
1460         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1461         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1462         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
1463         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
1464         ctx->target_map_scalars_firstprivate.
1465         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
1466         data sharing clauses.  For data sharing clause with VLA decl
1467         on omp target/target data don't add firstprivate for the pointer.
1468         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1469         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1470         the addition of ORT_COMBINED_TARGET.
1471         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
1472         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
1473         pointers as zero length array sections and
1474         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1475         data sharing.
1476         (omp_check_private): Handle omp_member_access_dummy_var vars.
1477         (find_decl_expr): New function.
1478         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
1479         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1480         Handle OMP_CLAUSE_GANG separately.  Handle
1481         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1482         clauses.  Diagnose linear clause on combined
1483         distribute {, parallel for} simd construct, unless it is the loop
1484         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1485         Handle map clauses with COMPONENT_REF.  Initialize
1486         ctx->target_map_scalars_firstprivate,
1487         ctx->target_firstprivatize_array_bases and
1488         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
1489         linear clause even to target region if combined.  Remove
1490         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1491         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
1492         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1493         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
1494         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1495         For linear clause on worksharing loop combined with parallel add
1496         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
1497         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
1498         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
1499         taskloop if needed.
1500         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1501         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1502         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1503         GOMP_MAP_POINTER.
1504         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
1505         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1506         in target body.  Handle removal of struct mapping if struct is not
1507         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
1508         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
1509         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
1510         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1511         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1512         clause appear together.  Handle
1513         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
1514         clause if it has map-type-modifier always.  Handle
1515         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1516         clauses.
1517         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1518         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1519         callers.
1520         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
1521         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
1522         iterators in doacross loops.
1523         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1524         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
1525         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
1526         for the addition of ORT_COMBINED_TARGET.
1527         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1528         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
1529         and OMP_TARGET_EXIT_DATA.
1530         (gimplify_omp_ordered): New function.
1531         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1532         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
1533         Gimplify clauses on OMP_CRITICAL.
1534         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1535         expand_GOMP_SIMD_ORDERED_END): New functions.
1536         * internal-fn.def (GOMP_SIMD_ORDERED_START,
1537         GOMP_SIMD_ORDERED_END): New internal functions.
1538         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1539         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1540         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1541         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1542         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1543         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1544         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1545         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1546         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1547         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1548         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1549         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1550         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1551         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1552         adjust type.
1553         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1554         GOMP_target_data_41, adjust type.
1555         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1556         GOMP_target_update_41, adjust type.
1557         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1558         field.
1559         (struct omp_for_data): Add ordered and simd_schedule fields.
1560         (omp_member_access_dummy_var, unshare_and_remap_1,
1561         unshare_and_remap, is_taskloop_ctx): New functions.
1562         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1563         (extract_omp_for_data): Handle taskloops and doacross loops
1564         and simd schedule modifier.
1565         (omp_adjust_chunk_size): New function.
1566         (get_ws_args_for): Use it.
1567         (lookup_sfield): Change first argument to splay_tree_key,
1568         add overload with first argument tree.
1569         (maybe_lookup_field): Likewise.
1570         (use_pointer_for_field): Handle omp_member_access_dummy_var.
1571         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1572         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1573         (build_outer_var_ref): Add LASTPRIVATE argument, handle
1574         taskloops and omp_member_access_dummy_var vars.
1575         (build_sender_ref): Change first argument to splay_tree_key,
1576         add overload with first argument tree.
1577         (install_var_field): For mask & 8 use &DECL_UID as key instead
1578         of the tree itself.
1579         (fixup_child_record_type): Const qualify *.omp_data_i.
1580         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1581         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1582         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1583         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1584         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1585         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1586         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1587         kinds.
1588         (add_taskreg_looptemp_clauses): New function.
1589         (scan_omp_parallel): Use it.
1590         (scan_omp_task): Likewise.
1591         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1592         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1593         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1594         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
1595         sandwiched taskloop constructs.  Type check
1596         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
1597         region.  Diagnose depend(source) or depend(sink:...) on
1598         target constructs or task/taskloop.
1599         (handle_simd_reference): Use get_name.
1600         (lower_rec_input_clauses): Likewise.  Ignore all
1601         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1602         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
1603         before passing it to omp_clause_{default,copy}_ctor.  Handle
1604         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
1605         lastprivate_firstprivate flag for linear that needs copyin and
1606         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1607         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1608         on taskloop lookup decl in outer context.  Pass true to
1609         build_outer_var_ref lastprivate argument.  Handle
1610         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1611         outside of outer taskloop for.
1612         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1613         OMP_CLAUSE_DECL.
1614         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1615         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
1616         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
1617         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
1618         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1619         abstract origin.  Handle omp_member_access_dummy_var vars.
1620         (expand_parallel_call): Use expand_omp_build_assign.
1621         (expand_task_call): Handle taskloop construct expansion.  Add
1622         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
1623         integers.  Add priority argument to GOMP_task* calls.  Or in
1624         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1625         GOMP_task call.
1626         (expand_omp_build_assign): Add prototype.  Add AFTER
1627         argument, if true emit statements after *GSI_P and continue linking.
1628         (expand_omp_taskreg): Adjust expand_task_call caller.
1629         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1630         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1631         zero_iter2_bb and first_zero_iter2 arguments, handle computation
1632         of counts even for ordered loops.
1633         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1634         (expand_omp_ordered_source, expand_omp_ordered_sink,
1635         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1636         functions.
1637         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
1638         clauses on worksharing loop.  Handle DOACROSS loop expansion.
1639         (expand_omp_for_static_nochunk): Handle linear clauses on
1640         worksharing loop.  Adjust expand_omp_for_init_counts
1641         callers.
1642         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
1643         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
1644         expand_omp_for_init_counts callers.
1645         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1646         functions.
1647         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1648         Handle doacross loops.
1649         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1650         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
1651         GOMP_target_{41,update_41,enter_exit_data} libcalls.
1652         (expand_omp): Don't expand ordered depend constructs here, record
1653         ord_stmt instead for later expand_omp_for_generic.
1654         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1655         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1656         clause as stand-alone directive.
1657         (lower_omp_ordered_clauses): New function.
1658         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1659         don't lower anything.
1660         (lower_omp_for_lastprivate): Use last _looptemp_ clause
1661         on taskloop for comparison.
1662         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
1663         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1664         expansion for linear adjustments.
1665         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1666         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1667         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
1668         to tree * pointing to the stmt's clauses.
1669         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1670         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1671         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1672         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1673         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1674         clauses.  Always use short kind and 8-bit align shift.
1675         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1676         (struct lower_omp_regimplify_operands_data): New type.
1677         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1678         New functions.
1679         (lower_omp_1): Use lower_omp_regimplify_operands instead of
1680         gimple_regimplify_operands.
1681         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1682         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1683         clause as stand-alone directive.
1684         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1685         (simd_clone_mangle): Mangle the various linear kinds
1686         per the new ABI.
1687         (simd_clone_adjust_argument_types): Handle
1688         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1689         (simd_clone_init_simd_arrays): Don't do anything for uval.
1690         (simd_clone_adjust): Handle
1691         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1692         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1693         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1694         * omp-low.h (omp_member_access_dummy_var): New prototype.
1695         * passes.def (pass_simduid_cleanup): Schedule another copy of the
1696         pass after all optimizations.
1697         * tree.c (omp_clause_code_name): Add entries for
1698         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1699         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1700         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
1701         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1702         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1703         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
1704         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1705         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1706         clauses.
1707         * tree-core.h (enum omp_clause_linear_kind): New.
1708         (struct tree_omp_clause): Change type of map_kind
1709         from unsigned char to unsigned int.  Add subcode.if_modifier
1710         and subcode.linear_kind fields.
1711         (enum omp_clause_code): Add
1712         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1713         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1714         (OMP_CLAUSE_REDUCTION): Document
1715         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1716         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1717         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1718         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
1719         operand.
1720         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
1721         operand.
1722         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1723         codes.
1724         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1725         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1726         char.
1727         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1728         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1729         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1730         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1731         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1732         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1733         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1734         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1735         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1736         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1737         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1738         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1739         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1740         * tree-inline.c (remap_gimple_stmt): Handle clauses on
1741         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
1742         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1743         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1744         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1745         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1746         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1747         (convert_local_omp_clauses): Likewise.
1748         * tree-pretty-print.c (dump_omp_clause): Handle
1749         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1750         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1751         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1752         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1753         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
1754         GOMP_MAP_FORCE_DEALLOC.  Handle
1755         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1756         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1757         and clauses on OMP_ORDERED and OMP_CRITICAL.
1758         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1759         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1760         (vectorize_loops): Adjust comments.
1761         (pass_simduid_cleanup::execute): Likewise.
1762         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1763         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1764         * wide-int.h (wi::gcd): New.
1765
1766 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1767
1768         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1769         (ix86_function_arg_advance): Ditto.
1770         (ix86_function_arg): Ditto.
1771         (ix86_gimplify_va_arg): Ditto.
1772         (ix86_class_max_nregs): Ditto.
1773         (inline_memory_move_cost): Ditto.
1774         (ix86_set_reg_reg_cost): Ditto.
1775         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1776
1777 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
1778
1779         PR middle-end/67912
1780         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1781
1782 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1783
1784         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1785         ROUND_UP macro and UNITS_PER_WORD * 2.
1786         * config/sparc/sparc.c (sparc_compute_frame_size):
1787         Use ROUND_UP and ROUND_DOWN macros where applicable.
1788         (function_arg_record_value, function_arg_record_value_1)
1789         (function_arg_record_value_1): Ditto.
1790         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1791         alignment to double-word.
1792         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1793         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1794         rounded_size.
1795
1796 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1797
1798         * gcc/rtl.h (print_insn): Fix prototype.
1799
1800 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1801
1802         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1803         -1.  Add assert that returned entry matches phi argument.
1804         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1805         free_stmt_vec_info_vec ...
1806         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
1807         with -1.
1808
1809 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1810
1811         PR tree-optimization/67909, 67947
1812         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1813         really skip the inner loop.
1814
1815 2015-10-13  Jeff Law  <law@redhat.com>
1816
1817         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1818         Allow single block jump threading paths.
1819
1820 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1821
1822         PR tree-optimization/67476
1823         * doc/invoke.texi (@item parloops-schedule): New item.
1824         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1825         * tree-parloops.c: Include params-enum.h.
1826         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1827
1828 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1829
1830         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1831         * params-enum.h: New file.
1832         * opts.c (handle_param): Handle case that param arg is a string.
1833         * params-list.h: Handle DEFPARAMENUM5 in params.def.
1834         * params.c (find_param): New function, factored out of ...
1835         (set_param_value): ... here.
1836         (param_string_value_p): New function.
1837         * params.h (struct param_info): Add value_names field.
1838         (find_param, param_string_value_p): Declare.
1839
1840 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1841
1842         PR tree-optimization/67476
1843         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1844
1845 2015-10-13  Richard Biener  <rguenther@suse.de>
1846
1847         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1848         the data dependence vector.
1849         (vect_peeling_hash_insert): Get the peeling hash table as argument.
1850         (vect_peeling_hash_get_lowest_cost): Likewise.
1851         (vect_enhance_data_refs_alignment): Adjust.
1852         (struct _vect_peel_info, struct _vect_peel_extended_info,
1853         struct peel_info_hasher): Move from ...
1854         * tree-vectorizer.h: ... here.
1855         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1856         (LOOP_VINFO_PEELING_HTAB): Likewise.
1857         (struct _loop_vec_info): Remove min_profitable_iters and
1858         peeling_htab members.
1859         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1860         here.
1861         (destroy_loop_vec_info): Adjust.
1862         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1863         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1864         to estimate alias versioning cost.
1865         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1866
1867 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
1868
1869         * real.h (real_isinteger): Declare.
1870         * real.c (real_isinteger): New function.
1871         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1872         if y is an even integer.
1873
1874 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1875
1876         revert:
1877         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1878         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1879         counts when these are more informative.
1880
1881 2015-10-12  Jeff Law  <law@redhat.com>
1882
1883         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1884         (fsm_find_control_stmt_paths): Change name of first argument to
1885         more accurately relfect what it really is.  Handle simplification
1886         of GIMPLE_COND after finding a thread path for NAME.
1887         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1888         nontrivial conditions to be handled by FSM threader.
1889         (thread_through_normal_block): Extract the name to looup via
1890         FSM threader from COND_EXPR.
1891
1892         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1893         restriction that traced SSA_NAME is a user variable.
1894
1895 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1896
1897         PR tree-optimization/67476
1898         * omp-low.c (expand_omp_for_generic): Add missing phis.
1899
1900 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1901
1902         PR tree-optimization/67476
1903         * omp-low.c (expand_omp_for_generic): Handle simple latch.
1904
1905 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
1906
1907         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1908         tables: add tbl3 and tbx4.
1909         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1910         (aarch64_tbx4v8qi): New.
1911         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1912         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1913         Rewrite using builtin functions.
1914         * config/aarch64/iterators.md (UNSPEC_TBX): New.
1915
1916 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1917
1918         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1919         ROUND_UP macro.
1920         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1921         Use ROUND_UP and ROUND_DOWN macros where applicable.
1922         (rs6000_darwin64_record_arg_flush): Ditto.
1923         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1924         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1925         rounded_size.
1926
1927 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1928
1929         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1930         (AARCH64_ROUND_DOWN): Ditto.
1931         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1932
1933 2015-10-12  Richard Biener  <rguenther@suse.de>
1934
1935         PR ipa/67783
1936         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1937         code that analyzes IVs on each stmt but in a cheaper way avoiding
1938         quadratic behavior.
1939
1940 2015-10-12  Nick Clifton  <nickc@redhat.com>
1941
1942         * config/msp430/msp430.c (msp430_mcu_names): Rename to
1943         msp430_mcu_data, add fields for ISA and hardware multiply
1944         support.  Import latest data from the devices.csv file.
1945         (msp430_override_option): Use the data from the new array.
1946         (msp430_use_f5_series_hwmult): Likewise.
1947         (use_32bit_hwmult): Likewise.
1948         (msp430_no_hwmult): Likewise.
1949         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
1950         MCU names.
1951         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
1952         not recognised then no hardware multiply support is assumed and
1953         that only the MSP430 ISA is allowed.
1954
1955 2015-10-12  Richard Biener  <rguenther@suse.de>
1956
1957         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
1958         related code ...
1959         (vect_analyze_loop_2): ... here.
1960
1961 2015-10-11  Jason Merrill  <jason@redhat.com>
1962
1963         PR c++/67557
1964         * expr.c (store_field): Call store_constructor directly when
1965         storing a CONSTRUCTOR into a target smaller than its type.
1966         Guard against unsafe bitwise copy.
1967
1968 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1969
1970         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1971         counts when these are more informative.
1972
1973 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1974
1975         * tree-profile.c (tree_profiling): Do not clear
1976         pure/const when not instrumenting.
1977         (pass tree_profile): Add dump of symtab.
1978
1979 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1980
1981         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
1982         addresses.
1983         (fold_addr_of_array_ref_difference): Likewise.
1984
1985 2015-10-11  Jeff Law  <law@redhat.com>
1986
1987         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
1988         tree-ssa-threadbackward.c.
1989         (fsm_find_control_statement_thread_paths): Likewise.
1990         (thread_through_normal_block): Break out FSM bits and move them
1991         into a new function in tree-ssa-threadbackward.c.  Call new function
1992         instead.
1993         Minimize header file usage.
1994         * tree-ssa-threadbackward.h: New file.
1995         * tree-ssa-threadbackward.c: Likewise.
1996         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
1997
1998 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
1999
2000         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2001
2002 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
2003
2004         PR rtl-optimization/67864
2005         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2006         fallthrough edges for conditional jumps.  Don't sort candidate
2007         edges if not optimizing for speed.
2008
2009 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2010
2011         * defaults.h (REVERSE_CONDITION): New default definition.
2012         * jump.c (reversed_comparison_code_parts): Adjust.
2013
2014 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2015
2016         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2017         check HARD_FRAME_POINTER_IS_ARG_POINTER.
2018
2019 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2020
2021         * defaults.h (FRAME_ADDR_RTX): New default definition.
2022         * builtins.c (expand_builtin_return_addr): Adjust.
2023
2024 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2025
2026         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2027         * builtins.c (expand_builtin_return_addr): Adjust.
2028
2029 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2030
2031         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2032         * builtins.c (expand_builtin_return_addr): Adjust.
2033         * doc/tm.texi: Likewise.
2034         * doc/tm.texi.in: Likewise.
2035         * except.c (expand_builtin_unwind_init): Likewise.
2036
2037 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2038
2039         * builtins.c (expand_builtin_return_addr): Adjust.
2040         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2041
2042 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
2043
2044         * tree.c (type_with_interoperable_signedness): New.
2045         (gimple_canonical_types_compatible_p): Use it.
2046         * tree.h (type_with_interoperable_signedness): Declare
2047
2048 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
2049
2050         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2051         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2052         when OEP_ADDRESS_OF is se.
2053
2054 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
2055             Sebastian Pop  <s.pop@samsung.com>
2056
2057         * graphite-dependences.c (scop_get_dependences): Add dump of the
2058         data dependence graph.
2059         * graphite-poly.c (print_isl_union_map): New.
2060         (debug_isl_union_map): New.
2061         * graphite-poly.h (print_isl_union_map): Declare.
2062         (debug_isl_union_map): Declare.
2063
2064 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
2065             Sebastian Pop  <s.pop@samsung.com>
2066
2067         * graphite-poly.c (print_iteration_domain): Remove verbosity.
2068         Remove OpenScop formatting.
2069         (print_iteration_domains): Same.
2070         (debug_iteration_domain): Same.
2071         (debug_iteration_domains): Same.
2072         (print_pdr): Same.
2073         (debug_pdr): Same.
2074         (dump_gbb_cases): Same.
2075         (dump_gbb_conditions): Same.
2076         (print_pdrs): Same.
2077         (debug_pdrs): Same.
2078         (print_pbb_body): Same.
2079         (print_pbb): Same.
2080         (print_scop_params): Same.
2081         (print_scop_context): Same.
2082         (print_scop): Same.
2083         (debug_pbb_domain): Same.
2084         (debug_pbb): Same.
2085         (debug_scop_context): Same.
2086         (debug_scop): Same.
2087         (debug_scop_params): Same.
2088         * graphite-poly.h: Same.
2089         * graphite.c (graphite_transform_loops): Same.
2090
2091 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2092
2093         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2094         call that isn't needed.
2095
2096 2015-10-09  Jeff Law  <law@redhat.com>
2097
2098         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2099         rather than moving each name to the freelist individually.
2100
2101 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
2102
2103         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2104         * frame-header-opt.c: New file.
2105         * config/mips/mips-proto.h (mips_register_frame_header_opt):
2106         Add prototype.
2107         * config/mips/mips.c (mips_compute_frame_info): Check
2108         optimize_call_stack flag.
2109         (mips_option_override): Register new frame_header_opt pass.
2110         (mips_frame_info, mips_int_mask, mips_shadow_set,
2111         machine_function): Move these types to...
2112         * config/mips/mips.h: here.
2113         (machine_function): Add does_not_use_frame_header and
2114         optimize_call_stack fields.
2115         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2116         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2117         Document new flags.
2118         * config/mips/mips.opt (mframe-header-opt): Add new option.
2119
2120 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
2121
2122         * config/i386/i386.c
2123         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2124         ROUND_DOWN where applicable.
2125
2126 2015-10-09  Jeff Law  <law@redhat.com>
2127
2128         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2129         correct statement.
2130
2131 2015-10-09  Renlin Li  <renlin.li@arm.com>
2132
2133         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2134         operands[0] and operands[2].
2135         (neon_vtrn<mode>_insn): Likewise.
2136         (neon_vzip<mode>_insn): Likewise.
2137
2138 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2139
2140         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2141         ((X & C2) << C1): Expand to...
2142         (X {&,^,|} C2 << C1): ...This.
2143         ((X & C2) >> C1): Expand to...
2144         (X {&,^,|} C2 >> C1): ...This.
2145
2146 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
2147
2148         PR target/67895
2149         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2150         Adjust embedded rounding/SAE specifier position.
2151         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2152         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2153         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2154         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2155         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2156         Likewise.
2157         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2158
2159 2015-10-09  Martin Jambor  <mjambor@suse.cz>
2160
2161         tree-optimization/67794
2162         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2163         between types of state,ents but accept original definitions as a
2164         parameter.
2165         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2166         iterate over definitions.
2167
2168 2015-10-09  James Norris  <jnorris@codesourcery.com>
2169
2170         * config/rs6000/rs6000.c (rs6000_offload_options): New.
2171         (TARGET_OFFLOAD_OPTIONS): New.
2172
2173 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
2174
2175         PR middle-end/67891
2176         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2177
2178         PR middle-end/67766
2179         * function.c (expand_function_end): Move return value
2180         promotion past the handling of PARALLELs and CONCATs.
2181
2182         PR rtl-optimization/67828
2183         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2184         (tree_may_unswitch_on): Don't unswitch on expressions
2185         involving undefined values.
2186
2187 2015-10-09  Richard Biener  <rguenther@suse.de>
2188
2189         * genmatch.c (print_operand): Fix formatting.
2190         (dt_node::append_simplify): Warn for multiple simplifiers
2191         that match the same pattern.
2192         * match.pd (log (exp @0)): Remove duplicates.
2193
2194 2015-10-09  Richard Biener  <rguenth@suse.de>
2195
2196         PR target/67366
2197         * gimple-fold.c (optabs-query.h): Include
2198         (gimple_fold_builtin_memory_op): Allow unaligned stores
2199         when movmisalign_optabs are available.
2200
2201 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2202
2203         PR target/67366
2204         * config/arm/arm.md (movmisalign<mode>): New.
2205         * config/arm/iterators.md (HSI): New.
2206
2207 2015-10-09  Richard Biener  <rguenther@suse.de>
2208
2209         PR tree-optimization/67891
2210         * gimple-match.h (gimple_simplified_result_is_gimple_val):
2211         New helper.
2212         (gimple_resimplify1): Declare.
2213         (gimple_resimplify2): Likewise.
2214         (gimple_resimplify3): Likewise.
2215         * gimple-match-head.c (gimple_resimplify1): Export.
2216         (gimple_resimplify2): Likewise.
2217         (gimple_resimplify3): Likewise.
2218         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2219         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2220         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2221         to avoid creating stmts without VN info.
2222
2223 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
2224
2225         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2226         of availability.
2227
2228 2015-10-08  Jeff Law  <law@redhat.com>
2229
2230         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2231         and release_ssa_name in two places.
2232         (gimple_stringop_fixed_value): Similarly.
2233
2234         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2235         release_defs.
2236
2237         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2238         unlink_stmt_vdef and release_ssa_name_fn.
2239
2240         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2241         release_defs.
2242
2243 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
2244
2245         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2246         SSE register save area to 16 bytes only if the incoming stack
2247         boundary is no less than 16 bytes.
2248
2249 2015-10-08  Jeff Law  <law@redhat.com>
2250
2251         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2252         release_ssa_name.  Fix typo in comment.
2253
2254 2015-10-08  Nathan Sidwell  <nathan@acm.org>
2255
2256         * config/nvptx/nvptx.h (struct machine_function): Add comment.
2257         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
2258         may return pointer as well as in memory.
2259         (nvptx_output_return): Likewise.
2260
2261 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2262
2263         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
2264         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
2265         * match.pd: Add rules previously handled by fold_builtin_sqrt
2266         and fold_builtin_cbrt.
2267
2268 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2269
2270         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
2271         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
2272         * fold-const.h (tree_unary_nonnegative_warnv_p)
2273         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2274         (tree_expr_nonnegative_warnv_p): Add depth parameters.
2275         * fold-const.c: Include gimple-fold.h and params.h.
2276         (tree_ssa_name_nonnegative_warnv_p): New function.
2277         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2278         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2279         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2280         Add a depth parameter and increment it for recursive calls to
2281         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
2282         to handle SSA names.
2283         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2284         (gimple_stmt_nonnegative_warnv_p): Declare.
2285         * tree-vrp.c (remove_range_assertions): Remove assert that condition
2286         cannot be proven false.
2287         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2288         (gimple_stmt_nonnegative_warnv_p): Move to...
2289         * gimple-fold.c: ...here.  Add depth parameters and pass them
2290         down to the tree routines.  Accept statements that aren't
2291         assignments or calls but just return false for them.
2292         (gimple_val_nonnegative_real_p): Delete.
2293         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2294         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2295         Check HONOR_NANs first.
2296
2297 2015-10-08  Martin Jambor  <mjambor@suse.cz>
2298
2299         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
2300         unnecessary MIN.
2301
2302 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2303
2304         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2305         in the tail of outer-loop.
2306
2307 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
2308
2309         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2310         return UI_NONE.
2311
2312 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2313
2314         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2315         "cfghooks.h", add prototypes for introduced new functions.
2316         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2317         checks on ability of loop unswitching to tree_unswitch_single_loop;
2318         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2319         on innermost loop check.
2320         (tree_unswitch_single_loop): Add all required checks on ability of
2321         loop unswitching under zero recursive level guard.
2322         (tree_unswitch_outer_loop): New function.
2323         (find_loop_guard): Likewise.
2324         (empty_bb_without_guard_p): Likewise.
2325         (used_outside_loop_p): Likewise.
2326         (get_vop_from_header): Likewise.
2327         (hoist_guard): Likewise.
2328         (check_exit_phi): Likewise.
2329
2330 2015-10-08  Marek Polacek  <polacek@redhat.com>
2331
2332         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2333         ops element.
2334
2335 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2336
2337         PR c/65345
2338         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2339         create_tmp_var_raw instead of create_tmp_var.
2340
2341 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
2342
2343         * expr.c (store_expr_with_bounds): Handle aggregate moves from
2344         BLKmode.
2345         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2346         to define gimple type system; compare aggregates only by size.
2347
2348 2015-10-07  Jeff Law  <law@redhat.com>
2349
2350         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2351         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2352         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
2353         unnecessarily.
2354
2355 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2356             Sebastian Pop  <s.pop@samsung.com>
2357
2358         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2359         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2360         (generate_isl_schedule): Same.
2361         * graphite-optimize-isl.c (scop_get_domains): Same.
2362         (apply_schedule_map_to_scop): Same.
2363         * graphite-poly.c (print_iteration_domains): Same.
2364         (remove_gbbs_in_scop): Same.
2365         (new_scop): Same.
2366         (free_scop): Same.
2367         (print_scop): Same.
2368         * graphite-poly.h (struct scop): Rename bbs to pbbs.
2369         (SCOP_BBS): Remove.
2370         * graphite-scop-detection.c (compare_bb_depths): Remove.
2371         (graphite_sort_dominated_info): Remove.
2372         (try_generate_gimple_bb): Move out of scop_detection.
2373         (all_non_dominated_preds_marked_p): Remove.
2374         (build_scop_bbs_1): Remove.
2375         (build_scop_bbs): Remove.
2376         (nb_pbbs_in_loops): Do not use SCOP_BBS.
2377         (find_scop_parameters): Same.
2378         (sese_dom_walker): Rename gather_bbs.
2379         (before_dom_children): Call try_generate_gimple_bb and collect gbb
2380         and pbb.
2381         (build_scops): Call gather_bbs.
2382         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2383         (add_conditions_to_constraints): Same.
2384         (build_scop_iteration_domain): Same.
2385         (build_scop_drs): Same.
2386         (new_pbb_from_pbb): Same.
2387         * sese.c (new_sese_info): Create bbs.
2388         * sese.h (struct sese_info_t): Add bbs.
2389
2390 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
2391
2392         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2393         encoding in 64-bit mode.
2394
2395 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
2396
2397         PR target/66697
2398         * config/i386/i386.c (ix86_option_override_internal): Always use
2399         8-byte minimum stack boundary in 64-bit mode.
2400         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2401         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2402         Add a REG_CFA_EXPRESSION note if needed.
2403         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2404         (ix86_handle_force_align_arg_pointer_attribute): New.
2405         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2406         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2407         with ix86_handle_force_align_arg_pointer_attribute.
2408         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2409
2410 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2411             Sebastian Pop  <s.pop@samsung.com>
2412
2413         * graphite-scop-detection.c (parameter_index_in_region): Remove
2414         use of SESE_ADD_PARAMS.
2415         (find_scop_parameters): Same.
2416         * sese.c (new_sese_info): Same.
2417         * sese.h (struct sese_info_t): Remove add_params.
2418         (SESE_ADD_PARAMS): Remove.
2419
2420 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2421             Sebastian Pop  <s.pop@samsung.com>
2422
2423         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2424         an sese_info_p.
2425         (copy_def): Same.
2426         (copy_internal_parameters): Same.
2427         (translate_isl_ast_to_gimple): Use an sese_l.
2428         (build_iv_mapping): Same.
2429         * graphite-poly.c (new_sese): Rename new_sese_info.
2430         (free_sese): Rename free_sese_info.
2431         * graphite-poly.h (struct scop): Use an sese_info_p.
2432         (scop_set_region): Same.
2433         * graphite-scop-detection.c (struct sese_l): Moved...
2434         (get_entry_bb): Moved...
2435         (get_exit_bb): Moved...
2436         (parameter_index_in_region_1): Use an sese_info_p.
2437         (parameter_index_in_region): Same.
2438         (scan_tree_for_params): Same.
2439         (find_params_in_bb): Same.
2440         (sese_dom_walker): Use an sese_l.
2441         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2442         (reduction_phi_p): Same.
2443         (parameter_index_in_region_1): Use an sese_info_p.
2444         (propagate_expr_outside_region): Use an sese_l.
2445         * graphite.c: Replace uses of SCOP_REGION.
2446         * sese.c (sese_record_loop): Use an sese_info_p.
2447         (build_sese_loop_nests): Same.
2448         (sese_build_liveouts_use): Same.
2449         (sese_build_liveouts_bb): Same.
2450         (sese_build_liveouts_bb): Same.
2451         (sese_bad_liveouts_use): Same.
2452         (sese_reset_debug_liveouts_bb): Same.
2453         (sese_build_liveouts): Same.
2454         (new_sese): Renamed new_sese_info.
2455         (free_sese): Renamed free_sese_info.
2456         (set_rename): Use an sese_info_p.
2457         (graphite_copy_stmts_from_block): Same.
2458         (copy_bb_and_scalar_dependences): Same.
2459         (outermost_loop_in_sese_1): Use an sese_l.
2460         (outermost_loop_in_sese): Same.
2461         (if_region_set_false_region): Use an sese_info_p.
2462         (move_sese_in_condition): Same.
2463         (scalar_evolution_in_region): Use an sese_l.
2464         * sese.h (struct sese_l): ... here.
2465         (SESE_ENTRY): Remove.
2466         (SESE_ENTRY_BB): Remove.
2467         (SESE_EXIT): Remove.
2468         (SESE_EXIT_BB): Remove.
2469         (sese_contains_loop): Use an sese_info_p.
2470         (sese_nb_params): Same.
2471         (bb_in_sese_p): Use an sese_l.
2472         (stmt_in_sese_p): Same.
2473         (defined_in_sese_p): Same.
2474         (loop_in_sese_p): Same.
2475         (sese_loop_depth): Same.
2476         (struct ifsese_s): Use an sese_info_p.
2477         (gbb_loop_at_index): Use an sese_l.
2478         (nb_common_loops): Same.
2479         (scev_analyzable_p): Same.
2480
2481 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2482
2483         * config/i386/i386.c (ix86_conditional_register_usage): Use
2484         CALL_USED_REGISTERS_MASK.
2485         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2486
2487 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2488
2489         PR bootstrap/67385
2490         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2491         * configure: Regenerated.
2492
2493 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2494
2495         PR target/67850
2496         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2497         (ix86_set_current_function): This.
2498         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2499
2500 2015-10-07  Richard Biener  <rguenther@suse.de>
2501
2502         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2503         (vinfo_for_stmt): Adjust.
2504         (set_vinfo_for_stmt): Likewise.
2505         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2506         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2507         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2508         of inner loop.
2509         (vect_analyze_loop_1): Remove.
2510         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2511         inner loop when vectorizing an outer loop by splitting out from ...
2512         (vect_analyze_loop_form): ... here.
2513
2514 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2515
2516         PR c/65345
2517         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2518         Use create_tmp_var_raw instead of create_tmp_var.
2519
2520 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
2521
2522         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2523         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2524         * real.c (CACHED_FRACTION): New helper macro.
2525         (dconst_third_ptr): Use it.
2526         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2527         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2528         dconst_sixth.
2529         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2530
2531 2015-10-06  Jeff Law  <law@redhat.com>
2532
2533         PR tree-optimization/67816
2534         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2535         from remove_jump_threads_starting_at.  Accept an edge rather than
2536         a basic block.
2537         * tree-ssa-threadupdate.c (removed_edges): New hash table.
2538         (remove_jump_threads_including): Note edges that get removed from
2539         the CFG for later pruning of jump threading paths including them.
2540         (thread_through_all_blocks): Remove paths which include edges that
2541         have been removed.
2542         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2543         on each outgoing edges when optimizing away a control statement.
2544
2545 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2546
2547         * reorg.c (emit_delay_sequence): Store list of delay slot insns
2548         in a vector instead of rtx_insn_list.
2549         (add_to_delay_list): Likewise.
2550         (delete_from_delay_slot): Likewise.
2551         (optimize_skip): Likewise.
2552         (redirect_with_delay_list_safe_p): Likewise.
2553         (check_annul_list_true_false): Likewise.
2554         (steal_delay_list_from_target): Likewise.
2555         (steal_delay_list_from_fallthrough): Likewise.
2556         (redundant_insn): Likewise.
2557         (fill_simple_delay_slots): Likewise.
2558         (fill_slots_from_thread): Likewise.
2559         (fill_eager_delay_slots): Likewise.
2560         (relax_delay_slots): Likewise.
2561
2562 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
2563
2564         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2565         For -mgpopt=local, also exclude unintialized common symbols.
2566         * doc/invoke.texi (Nios II Options): Document the change.
2567
2568 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2569
2570         * config/aarch64/iterators.md (vwcore): Add missing cases for
2571          V4HF/V8HF modes.
2572
2573 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2574             Sebastian Pop  <s.pop@samsung.com>
2575
2576         * graphite-poly.c (new_scop): Initialize drs.
2577         * graphite-poly.h (struct dr_info): New.
2578         (struct scop): Add drs.
2579         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2580         (pdr_add_memory_accesses): Same.
2581         (build_poly_dr): Same.
2582         (build_alias_set): Same.
2583         (build_scop_drs): Same.
2584         (build_pbb_drs): Remove.
2585         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2586         * tree-data-ref.h (data_reference): Remove alias_set.
2587
2588 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2589             Sebastian Pop  <s.pop@samsung.com>
2590
2591         * graphite-poly.c (free_data_refs_aux): Remove.
2592         (free_gimple_poly_bb): Do not call free_data_refs_aux.
2593         * graphite-poly.h (struct base_alias_pair): Remove.
2594         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2595         base_alias_pair and dr->aux.
2596         (build_alias_set): Same.
2597         * tree-data-ref.c (create_data_ref): Initialize alias_set.
2598         * tree-data-ref.h (data_reference): Add alias_set.
2599
2600 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2601             Sebastian Pop  <s.pop@samsung.com>
2602
2603         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2604         Do not set PDR_BASE_OBJECT_SET.
2605         * graphite-poly.h (poly_dr): Same.
2606         (PDR_BASE_OBJECT_SET): Remove.
2607         (new_poly_dr): Update decl.
2608         * graphite-sese-to-poly.c (build_poly_dr): Update call to
2609         new_poly_dr.
2610         (write_alias_graph_to_ascii_dimacs): Remove.
2611         (write_alias_graph_to_ascii_dot): Remove.
2612         (write_alias_graph_to_ascii_ecc): Remove.
2613         (dr_same_base_object_p): Remove.
2614         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
2615         code.
2616         (build_base_obj_set_for_drs): Remove.
2617         (dump_alias_graphs): Remove.
2618         (build_scop_drs): Remove dead code.
2619
2620 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2621             Peter Bergner  <bergner@vnet.ibm.com>
2622
2623         PR target/67808
2624         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2625         allow registers, but provide insns for the combiner to create for
2626         loads from memory. Separate VSX code from non-VSX code. For
2627         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2628         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2629         so that registers come before memory operations. Drop support from
2630         converting DFmode to TFmode, if the DFmode value is in a GPR
2631         register.
2632         (extenddftf2_fprs): Likewise.
2633         (extenddftf2_internal): Likewise.
2634         (extenddftf2_vsx): Likewise.
2635         (extendsftf2): In the expander, only allow registers, but provide
2636         insns for the combiner to create for stores and loads.
2637
2638 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2639
2640         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2641         from the decl parameter.
2642
2643 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
2644
2645         PR 67861
2646         * gimple-fold.c (gimple_fold_builtin): Add break after
2647         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2648
2649 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2650
2651         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2652         to scop->isl_context.
2653
2654 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2655
2656         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2657         (output_probe_stack_range): Rotate the loop and simplify.
2658         (thumb1_expand_prologue): Tweak sorry message.
2659         * config/arm/arm.md (probe_stack): Use bare string.
2660
2661 2015-10-06  Nick Clifton  <nickc@redhat.com>
2662
2663         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2664
2665 2015-10-06  Nick Clifton  <nickc@redhat.com>
2666
2667         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2668         (ATTR_PERSIST): New constant.
2669         (msp430_data_attr): New function - verifies an attribute that only
2670         applies to variables.
2671         (msp430_attributes): Add noinit and persistent attributes.
2672         (noinit_section): New variable.
2673         (presis_section): New variable.
2674         (TARGET_ASM_INIT_SECTIONS): Define.
2675         (msp430_init_sections): New function - initialises the noinit and
2676         persist section variables.
2677         (msp430_select_section): Add support for noinit and persist
2678         attributes.
2679         (msp430_section_type_flags): Likewise.
2680         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
2681         and persistent attributes.
2682
2683 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2684             Sebastian Pop  <s.pop@samsung.com>
2685
2686         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2687         (no_violations): Remove.
2688         (subtract_commutative_associative_deps): Remove.
2689         (compute_deps): Do not call subtract_commutative_associative_deps.
2690         (transform_is_safe): Remove.
2691         (graphite_legal_transform): Remove.
2692         * graphite-poly.h (graphite_legal_transform): Remove.
2693
2694 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
2695
2696         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2697         which are in this region are passed so gcc_assert and remove redundant
2698         computation.
2699         * sese.c (sese_build_liveouts): Pass only those bbs which are not
2700         in region.
2701         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2702         gcc_assert on that and remove unnecessary computation.
2703         (sese_build_liveouts_use): Same.
2704
2705 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2706
2707         * graphite-dependences.c (scop_get_reads): Renamed scop->context
2708         to scop->param_context.
2709         (scop_get_must_writes): Same.
2710         (scop_get_may_writes): Same.
2711         (scop_get_original_schedule): Same.
2712         (scop_get_transformed_schedule): Same.
2713         (subtract_commutative_associative_deps): Same.
2714         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2715         (generate_isl_context): Same.
2716         (generate_isl_schedule): Same.
2717         (scop_to_isl_ast): Same.
2718         (graphite_regenerate_ast_isl): Same.
2719         * graphite-optimize-isl.c (scop_get_domains): Same.
2720         (optimize_isl): Renamed scop->context to scop->param_context.
2721         * graphite-poly.c (new_poly_bb): Change the type of argument to
2722         gimple_poly_bb_p.
2723         (new_scop): Renamed scop->context to scop->param_context.
2724         (free_scop): Same.
2725         (print_scop_context): Same.
2726         * graphite-poly.h (new_poly_dr): Change the type of argument from
2727         void* to data_reference_p.
2728         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2729         (new_poly_bb): Change the type of argument from void* to
2730         gimple_poly_bb_p.
2731         (pbb_set_black_box): Same.
2732         (struct scop): Rename context to param_context, ctx to isl_context.
2733         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2734         Move declarations closer to assignment.
2735         (find_params_in_bb): Same.
2736         (find_scop_parameters): Same.
2737         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2738         Global to be used for statement IDs.
2739         (isl_id_for_pbb): Use ssa_name_version_typesize.
2740         (simple_copy_phi_p): Move declarations closer to assignment.
2741         (build_pbb_scattering_polyhedrons): Same.
2742         (build_scop_scattering): Same.
2743         (isl_id_for_ssa_name): Same.
2744         (extract_affine_name): Same.
2745         (extract_affine_int): Same.
2746         (extract_affine): Same.
2747         (set_scop_parameter_dim): Use renamed member.
2748         (build_loop_iteration_domains): Same.
2749         (add_param_constraints): Same.
2750         (build_scop_iteration_domain): Same.
2751         (pdr_add_data_dimensions): Same.
2752         (build_poly_dr): Same.
2753         (build_scop_drs): Move declarations closer to assignment.
2754         (analyze_drs_in_stmts): Same.
2755         (insert_out_of_ssa_copy): Same.
2756         (insert_out_of_ssa_copy_on_edge): Same.
2757         (propagate_expr_outside_region): Same.
2758         (rewrite_phi_out_of_ssa): Same.
2759         (rewrite_degenerate_phi): Same.
2760         (rewrite_reductions_out_of_ssa): Same.
2761         (rewrite_cross_bb_scalar_dependence): Same.
2762         (handle_scalar_deps_crossing_scop_limits): Same.
2763         (rewrite_cross_bb_scalar_deps): Same.
2764         * graphite.c (graphite_transform_loops): Use renamed member.
2765
2766 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
2767
2768         PR c/65345
2769         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2770         create_tmp_var_raw instead of create_tmp_var.
2771
2772 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2773
2774         PR c/65345
2775         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2776         Use create_tmp_var_raw instead of create_tmp_var.
2777
2778 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
2779
2780         PR target/67849
2781         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2782         split for upper-bank registers when target does not support
2783         AVX512VL.
2784         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2785         split when target does not support AVX512VL.
2786
2787 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
2788
2789         PR c/65345
2790         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2791         Adjust to use create_tmp_var_raw instead of create_tmp_var.
2792
2793 2015-10-06  Nick Clifton  <nickc@redhat.com>
2794
2795         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2796         multiplication.
2797
2798 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2799
2800         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2801         (case ${target}): Add znver1.
2802         * config/i386/cpuid.h(bit_CLZERO):  Define.
2803         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2804         -march=native recognize znver1 processors.
2805         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2806         znver1, clzero def_and_undef.
2807         * config/i386/i386.c (struct processor_costs znver1_cost): New.
2808         (m_znver1): New definition.
2809         (m_AMD_MULTIPLE): Includes m_znver1.
2810         (processor_target_table): Add znver1 entry.
2811         (ix86_target_string) : Add clzero entry.
2812         (static const char *const cpu_names): Add znver1 entry.
2813         (ix86_option_override_internal): Add znver1 instruction sets.
2814         (PTA_CLZERO) :  New definition.
2815         (ix86_option_override_internal): Handle new clzerooption.
2816         (ix86_issue_rate): Add znver1.
2817         (ix86_adjust_cost): Add znver1.
2818         (ia32_multipass_dfa_lookahead): Add znver1.
2819         (has_dispatch): Add znver1.
2820         * config/i386/i386.h (TARGET_znver1): New definition.
2821         (TARGET_CLZERO): Define.
2822         (TARGET_CLZERO_P): Define.
2823         (struct ix86_size_cost): Add TARGET_ZNVER1.
2824         (enum processor_type): Add PROCESSOR_znver1.
2825         * config/i386/i386.md (define_attr "cpu"): Add znver1.
2826         (set_attr znver1_decode): New definitions for znver1.
2827         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2828         (mclzero): New.
2829         * config/i386/mmx.md (set_attr znver1_decode): New definitions
2830         for znver1.
2831         * config/i386/sse.md (set_attr znver1_decode): Likewise.
2832         * config/i386/x86-tune.def:  Add znver1 tunings.
2833         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2834         * gcc/doc/invoke.texi: Add details about znver1
2835
2836 2015-10-06  Richard Biener  <rguenther@suse.de>
2837
2838         PR tree-optimization/67859
2839         * tree-ssa-pre.c (create_expression_by_pieces): Properly
2840         discard not inserted stmts.
2841
2842 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
2843
2844         * doc/extend.texi (Template Instantiation): Reorder options and
2845         de-emphasize -frepo.
2846         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2847         example instead of -frepo.
2848
2849 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2850
2851         PR c/65345
2852         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2853         use create_tmp_var_raw rather than create_tmp_var.
2854
2855 2015-10-06  Richard Biener  <rguenther@suse.de>
2856
2857         * tree-vectorizer.h (vec_info): New base class for...
2858         (_loop_vec_info): ... this and ...
2859         (_bb_vec_info): ... this.
2860         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2861         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2862         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2863         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2864         vect_destroy_datarefs): Adjust interface to take a vec_info *
2865         rather than both a loop_vec_info and a bb_vec_info argument.
2866         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2867         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2868         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2869         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2870         accordingly.
2871         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2872         (destroy_loop_vec_info, vect_analyze_loop_2,
2873         vect_is_simple_reduction_1, get_initial_def_for_induction,
2874         vect_create_epilog_for_reduction, vectorizable_reduction,
2875         vectorizable_live_operation, vect_transform_loop): Adjust.
2876         * tree-vect-patterns.c (type_conversion_p,
2877         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2878         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2879         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2880         check_bool_pattern, vect_recog_bool_pattern,
2881         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2882         * tree-vect-slp.c (vect_get_and_check_slp_defs,
2883         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2884         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2885         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2886         (new_bb_vec_info): Initialize base classs.
2887         * tree-vect-stmts.c (record_stmt_cost, process_use,
2888         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2889         vectorizable_mask_load_store, vectorizable_call,
2890         vectorizable_simd_clone_call, vectorizable_conversion,
2891         vectorizable_assignment, vectorizable_shift,
2892         vectorizable_operation, vectorizable_store,
2893         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2894         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2895         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2896
2897 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2898
2899         PR c/65345
2900         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2901         create_tmp_var_raw rather than create_tmp_var.
2902
2903 2015-10-05  Marek Polacek  <polacek@redhat.com>
2904
2905         * tree-ssa-loop-im.c
2906         (move_computations_dom_walker::before_dom_children): Don't set
2907         SSA_NAME_ANTI_RANGE_P.
2908         * tree-ssa-phiopt.c (value_replacement): Likewise.
2909
2910 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2911             Sebastian Pop  <s.pop@samsung.com>
2912
2913         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2914
2915 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2916             Sebastian Pop  <s.pop@samsung.com>
2917
2918         * graphite-poly.c (new_gimple_poly_bb): ... here.
2919         (free_data_refs_aux): ... here.
2920         (free_gimple_poly_bb): ... here.
2921         (remove_gbbs_in_scop): ... here.
2922         (new_scop): Call new_sese.
2923         (free_scop): Call remove_gbbs_in_scop and free_sese.
2924         * graphite-poly.h (base_alias_pair): ... here.
2925         (new_gimple_poly_bb): Declare.
2926         (free_gimple_poly_bb): Declare.
2927         * graphite-scop-detection.c (parameter_index_in_region_1):
2928         (parameter_index_in_region): ... here.
2929         (scan_tree_for_params): ... here.
2930         (find_params_in_bb): ... here.
2931         (find_scop_parameters): ... here.
2932         (build_scops): Call find_scop_parameters.
2933         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2934         (free_scops): Move...
2935         (single_pred_cond_non_loop_exit): Move...
2936         (sese_dom_walker::before_dom_children): Move...
2937         (sese_dom_walker::after_dom_children): Move...
2938         (build_poly_scop): Move...
2939         * graphite-sese-to-poly.h (base_alias_pair): Move...
2940         * graphite.c (free_scops): ... here.
2941
2942 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2943             Sebastian Pop  <s.pop@samsung.com>
2944
2945         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2946         (trivially_empty_bb_p): Move...
2947         (same_close_phi_node): Move...
2948         (new_gimple_poly_bb): Move...
2949         (compare_bb_depths): Move...
2950         (graphite_sort_dominated_info): Move...
2951         (remove_duplicate_close_phi): Move...
2952         (make_close_phi_nodes_unique): Move...
2953         (canonicalize_loop_closed_ssa): Move...
2954         (canonicalize_loop_closed_ssa_form): Move...
2955         (loop_ivs_can_be_represented): Move...
2956         (single_pred_cond_non_loop_exit): Move...
2957         (graphite_can_represent_init): Move...
2958         (graphite_can_represent_scev): Move...
2959         (stmt_has_simple_data_refs_p): Move...
2960         (stmt_has_side_effects):  Move...
2961         (graphite_can_represent_stmt): Move...
2962         (scop_detection): ... here.
2963         (sese_dom_walker): ... and here.
2964         (build_scops): Call all moved functions.
2965         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
2966         (all_non_dominated_preds_marked_p): Move...
2967         (build_scop_bbs_1): Move...
2968         (build_scop_bbs): Move...
2969         (set_scop_parameter_dim): Move...
2970         (nb_pbbs_in_loops): Move...
2971         (build_poly_scop): Do not call all the moved functions.
2972
2973 2015-10-05  Martin Jambor  <mjambor@suse.cz>
2974             Jan Hubicka  <hubicka@ucw.cz>
2975
2976         * ipa-cp.c (ipcp_alignment_lattice): New type.
2977         (ipcp_param_lattices): Use the above to represent alignment.
2978         (ipcp_alignment_lattice::print): New function.
2979         (print_all_lattices): Use it to print alignment information.
2980         (ipcp_alignment_lattice::top_p): New function.
2981         (ipcp_alignment_lattice::bottom_p): Likewise.
2982         (ipcp_alignment_lattice::set_to_bottom): Likewise.
2983         (ipcp_alignment_lattice::meet_with_1): Likewise.
2984         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
2985         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
2986         (initialize_node_lattices): Likewise.
2987         (propagate_alignment_accross_jump_function): Work with the new class
2988         for alignment lattices.
2989         (propagate_constants_accross_call): Pass only the alignment lattice to
2990         propagate_alignment_accross_jump_function.
2991         (ipcp_store_alignment_results): Work with the new class for alignment
2992         lattices.
2993
2994 2015-10-05  Marek Polacek  <polacek@redhat.com>
2995
2996         PR tree-optimization/67821
2997         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2998
2999 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
3000
3001         PR other/65021
3002         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3003         function to...
3004         (mkoffload_cleanup): ... this.  Adjust all users.
3005         (maybe_unlink): Look at save_temps and verbose flags instead of
3006         debug flag.
3007         (main): Parse "-save-temps" flag.
3008         (generate_target_descr_file, generate_target_offloadend_file)
3009         (generate_host_descr_file, prepare_target_image): Pass it on.
3010         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3011         (mkoffload_cleanup): New function.
3012         (maybe_unlink): Look at save_temps and verbose flags instead of
3013         debug flag.
3014         (main): Instead of calling utils_cleanup, register atexit handler
3015         for mkoffload_cleanup.
3016         (main): Parse "-save-temps" flag.
3017         (compile_native, main): Pass it on.
3018         * lto-wrapper.c (compile_offload_image): Likewise.
3019
3020 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3021
3022         * gimple.h (gimple_op_ptr): Require a non const gimple *.
3023         (gimple_assign_lhs_ptr): Likewise.
3024         (gimple_assign_rhs1_ptr): Likewise.
3025         (gimple_assign_rhs2_ptr): Likewise.
3026         (gimple_assign_rhs3_ptr): Likewise.
3027         (gimple_call_lhs_ptr): Likewise.
3028         (gimple_call_fn_ptr): Likewise.
3029         (gimple_call_chain_ptr): Likewise.
3030                 (gimple_call_arg_ptr): Likewise.
3031                 (gimple_cond_lhs_ptr): Likewise.
3032         (gimple_cond_rhs_ptr): Likewise.
3033         (gimple_switch_index_ptr): Likewise.
3034         (gimple_return_retval_ptr): Likewise.
3035
3036 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3037
3038         * gimple.h (gimple_asm_input_op_ptr): Remove.
3039         (gimple_asm_output_op_ptr): Likewise.
3040
3041 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3042
3043         * gimple.h (gimple_location_ptr): Remove.
3044         * tree-vrp.c (check_all_array_refs): Adjust.
3045
3046 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3047
3048         * tree-ssa-operands.c (build_uses): store tree * instead of
3049         tree.
3050         (finalize_ssa_uses): Adjust.
3051         (append_use): Likewise.
3052         (verify_ssa_operands): Likewise.
3053
3054 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3055
3056         * real.h (build_real_truncate): Declare.
3057         * tree.c (build_real_truncate): New function.
3058         (strip_float_extensions): Use it.
3059         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3060         (fold_builtin_hypot, fold_builtin_pow): Likewise.
3061         * match.pd: Likewise.
3062
3063 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3064            Jiong Wang  <jiong.wang@arm.com>
3065
3066         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3067
3068 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3069
3070         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3071         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3072         (aarch64_print_operand, aarch64_float_const_representable_p)
3073         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3074         instead of REAL_VALUE_FROM_CONST_DOUBLE.
3075         * config/arc/arc.c (arc_print_operand): Likewise.
3076         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3077         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3078         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3079         Likewise.
3080         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3081         (consttable_16): Likewise.
3082         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3083         * config/avr/avr.c (avr_print_operand): Likewise.
3084         * config/bfin/bfin.md: Likewise (in a define_split).
3085         * config/c6x/c6x.md: Likewise (in a define_split).
3086         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3087         (cr16_print_operand): Likewise.
3088         * config/cris/cris.c (cris_print_operand): Likewise.
3089         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3090         * config/fr30/fr30.c (fr30_print_operand): Likewise.
3091         (fr30_const_double_is_zero): Likewise.
3092         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3093         * config/frv/frv.md: Likewise (in a define_split).
3094         * config/frv/predicates.md (int_2word_operand): Likewise.
3095         * config/h8300/h8300.c (h8300_print_operand): Likewise.
3096         * config/i386/i386.c (standard_80387_constant_p): Likewise.
3097         (ix86_print_operand, ix86_split_to_parts): Likewise.
3098         * config/i386/i386.md: Likewise (in a define_split).
3099         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3100         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3101         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3102         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3103         (print_operand): Likewise.
3104         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3105         * config/mep/mep.md: Likewise (in define_split).
3106         * config/microblaze/microblaze.c (microblaze_const_double_ok)
3107         (print_operand): Likewise.
3108         * config/mips/mips.md (consttable_float): Likewise.
3109         * config/mmix/mmix.c (mmix_intval): Likewise.
3110         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3111         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3112         * config/pa/pa.c (pa_singlemove_string): Likewise.
3113         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3114         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3115         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3116         (output_toc): Likewise.
3117         * config/rs6000/rs6000.md: Likewise (in define_splits).
3118         * config/rx/rx.c (rx_print_operand): Likewise.
3119         * config/s390/s390.c (s390_output_pool_entry): Likewise.
3120         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3121         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3122         (and also in define_splits).
3123         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3124         (fp_high_losum_p): Likewise.
3125         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3126         (*movsf_high): Likewise.
3127         * config/spu/spu.c (const_double_to_hwint): Likewise.
3128         * config/v850/v850.c (const_double_split): Likewise.
3129         * config/vax/vax.c (vax_float_literal): Likewise.
3130         * config/visium/visium.c (visium_expand_copysign): Likewise.
3131         * config/visium/visium.md: Likewise (in define_split).
3132         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3133         * config/xtensa/xtensa.c (print_operand): Likewise.
3134         (xtensa_output_literal): Likewise.
3135         * cprop.c (implicit_set_cond_p): Likewise.
3136         * dwarf2out.c (insert_float): Likewise.
3137         * expmed.c (expand_mult, make_tree): Likewise.
3138         * expr.c (compress_float_constant): Likewise.
3139         * rtlanal.c (split_double): Likewise.
3140         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3141         (simplify_const_unary_operation, simplify_binary_operation_1)
3142         (simplify_const_binary_operation): Likewise.
3143         (simplify_const_relational_operation): Likewise.
3144         * varasm.c (output_constant_pool_2): Likewise.
3145
3146 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3147
3148         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3149         instead of CONST_DOUBLE_FROM_REAL_VALUE.
3150         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3151         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3152         instead of CONST_DOUBLE_FROM_REAL_VALUE.
3153         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3154         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3155         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3156         (ix86_emit_swsqrtsf): Likewise.
3157         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3158         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3159         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3160         * config/pa/pa.c (pa_expand_builtin): Likewise.
3161         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3162         (rs6000_scale_v2df): Likewise.
3163         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3164         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3165         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3166         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3167         (vec_ctul): Likewise.
3168         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3169         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3170         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3171         * cse.c (fold_rtx): Likewise.
3172         * emit-rtl.c (immed_double_const): Likewise (in comments).
3173         (init_emit_once): Likewise.
3174         * expr.c (compress_float_constant, expand_expr_real_1)
3175         (const_vector_from_tree): Likewise.
3176         * optabs.c (expand_float, expand_fix): Likewise.
3177         * reg-stack.c (reg_to_stack): Likewise.
3178         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3179         (simplify_const_unary_operation, simplify_binary_operation_1)
3180         (simplify_const_binary_operation, simplify_relational_operation)
3181         (simplify_immed_subreg): Likewise.
3182
3183 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3184
3185         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3186         * doc/tm.texi: Regenerate.
3187         * real.h (REAL_ARITHMETIC): Delete.
3188         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3189         (ix86_expand_round_sse4): Use real_arithmetic instead of
3190         REAL_ARITHMETIC.
3191         * config/i386/sse.md (round<mode>2): Likewise.
3192         * rtl.h (rtx_to_tree_code): Likewise (in comment).
3193         * explow.c (rtx_to_tree_code): Likewise (in comment).
3194         * match.pd: Likewise.
3195         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3196         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3197         (expand_pow_as_sqrts): Likewise.
3198         * tree-pretty-print.c (dump_generic_node): Remove code that
3199         was conditional on REAL_ARITHMETIC being undefined.
3200
3201 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3202
3203         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3204         * doc/tm.texi: Regenerate.
3205         * real.h (real_less): Declare.
3206         (REAL_VALUES_LESS): Delete.
3207         * real.c (real_less): New function.
3208         (real_compare): Use it.
3209         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3210         of REAL_VALUES_LESS.
3211         * config/microblaze/microblaze.c (microblaze_const_double_ok):
3212         Likewise.
3213         * fold-const.c (fold_convert_const_int_from_real): Likewise.
3214         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3215         (simplify_const_relational_operation): Likewise.
3216         * tree-call-cdce.c (check_pow): Likewise.
3217         (gen_conditions_for_pow_cst_base): Likewise.
3218
3219 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3220
3221         * real.h (REAL_VALUES_IDENTICAL): Delete.
3222         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3223         instead of REAL_VALUES_IDENTICAL.
3224         * fold-const.c (operand_equal_p): Likewise.
3225         * ipa-icf.c (sem_variable::equals): Likewise.
3226         * tree-complex.c (some_nonzerop): Likewise.
3227         (expand_complex_multiplication): Likewise.
3228         * tree.c (simple_cst_equal): Likewise.
3229         * varasm.c (compare_constant): Likewise.
3230
3231 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3232
3233         * real.h (real_equal): Declare.
3234         (REAL_VALUES_EQUAL): Delete.
3235         * real.c (real_equal): New function.
3236         (real_compare): Use it.
3237         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3238         * doc/tm.texi: Regenerate.
3239         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3240         real_equal instead of REAL_VALUES_EQUAL.
3241         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3242         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3243         (fp_const_from_val): Likewise.
3244         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3245         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3246         (floating_exact_log2): Likewise.
3247         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3248         * config/vax/vax.c (vax_float_literal): Likewise.
3249         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3250         * cprop.c (implicit_set_cond_p): Likewise.
3251         * expmed.c (expand_mult): Likewise.
3252         * fold-const.c (const_binop): Likewise.
3253         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3254         (simplify_const_binary_operation): Likewise.
3255         (simplify_const_relational_operation): Likewise.
3256         * tree-call-cdce.c (check_pow): Likewise.
3257         (gen_conditions_for_pow_cst_base): Likewise.
3258         * tree-inline.c (estimate_num_insns): Likewise.
3259         * tree-ssa-dom.c (record_equality): Likewise.
3260         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3261         (gimple_expand_builtin_pow): Likewise.
3262         (pass_optimize_widening_mul::execute): Likewise.
3263         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3264         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3265         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
3266
3267 2015-10-05  Richard Biener  <rguenther@suse.de>
3268
3269         PR ipa/67783
3270         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
3271         consider loop header PHI defs as IVs.
3272
3273 2015-10-05  Richard Biener  <rguenther@suse.de>
3274
3275         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3276         call handling ...
3277         (create_expression_by_pieces): ... here and build GIMPLE
3278         calls directly.  Use gimple_build API and avoid force_gimple_operand.
3279         (insert_into_preds_of_block): Simplify.
3280         (do_regular_insertion): Add comment.
3281
3282 2015-10-04  Jason Merrill  <jason@redhat.com>
3283
3284         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3285
3286 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
3287
3288         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3289         check for general register.
3290         (ix86_emit_save_regs): Ditto.
3291         (ix86_emit_save_regs_using_mov): Ditto.
3292         (ix86_emit_restore_regs_using_pop): Ditto.
3293         (ix86_emit_restore_regs_using_mov): Ditto.
3294
3295 2015-10-03  Marek Polacek  <polacek@redhat.com>
3296
3297         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3298         (insn-dfatab.o): Likewise.
3299
3300 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
3301
3302         * config.gcc (xtensa*-*-uclinux*): New configuration.
3303         * config/xtensa/uclinux.h: New file.
3304         * config/xtensa/uclinux.opt: New file.
3305
3306 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
3307
3308         * doc/cpp.texi (Standard Predefined Macros): Document value of
3309         __cplusplus for C++14.
3310
3311 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
3312
3313         * gcc.c (process_command): Use spec_machine rather than
3314         spec_host_machine to build tooldir_prefix2.
3315
3316 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3317             Bernd Schmidt  <bernds@codesourcery.com>
3318
3319         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3320         (Token, Stmt): Remove structs.
3321         (decls, vars, fns): Remove variables.
3322         (alloc_comment, append_stmt, is_keyword): Remove macros.
3323         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3324         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3325         (parse_init, parse_file): Remove functions.
3326         (read_file): Accept a pointer to a length and store into it.
3327         (process): Don't try to parse the input file, just write it out as
3328         a string, but looking for maps.  Also write out the length.
3329         (main): Don't use "-S" to compile PTX code.
3330
3331 2015-10-02  Jeff Law  <law@redhat.com>
3332
3333         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3334         fixups.
3335
3336 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3337
3338         PR target/67822
3339         * config/nvptx/mkoffload.c (main): Scan the argument vector for
3340         -fopenmp, and skip generating an offloading image if specified.
3341
3342 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
3343
3344         * system.h (ROUND_UP): New macro definition.
3345         (ROUND_DOWN): Ditto.
3346         * ggc-page.c (ROUND_UP): Remove local macro definition.
3347         (PAGE_ALIGN): Implement using ROUND_UP macro.
3348
3349         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3350         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3351         to align values.
3352         (ix86_compute_frame_layout): Ditto.
3353         (ix86_expand_prologue): Ditto.
3354         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3355         to round down values.
3356         (expand_set_or_movmem_via_rep): Ditto.
3357
3358 2015-10-02  Marek Polacek  <polacek@redhat.com>
3359
3360         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3361
3362 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
3363
3364         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3365         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3366         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3367         (free_gimple_bb): Renamed free_gimple_poly_bb.
3368         (try_generate_gimple_bb): Hoist loop invariant code.
3369         (analyze_drs_in_stmts): Same.
3370         (build_scop_drs): Call renamed functions.
3371         (new_pbb_from_pbb): Same.
3372         (scop_ivs_can_be_represented): Delete as functionality now moved to
3373         graphite-scop-detection.c
3374         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3375
3376 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
3377
3378         * graphite-scop-detection.c (stmt_has_side_effects): New function
3379           outlined from stmt_simple_for_scop_p.
3380         (graphite_can_represent_stmt): Same.
3381         (stmt_simple_for_scop_p): Moved code out of this function for better
3382         readability.
3383
3384 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3385
3386         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3387         F_AVX512IFMA.
3388         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3389
3390 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3391
3392         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3393
3394 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
3395
3396         PR rtl-optimization/67756
3397         * lra-constraints.c (match_reload): Add a new parameter.  Use it
3398         for creating a pseudo with the same value.
3399         (curr_insn_transform): Pass a new argument to match_reload.
3400
3401 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3402
3403         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3404         (expand_vec_perm_even_odd_1): Handle V64QImode.
3405         (ix86_expand_vec_perm_const_1): Try expansion with
3406         expand_vec_perm_even_odd_trunc as well.
3407         * config/i386/sse.md (VI124_AVX512F): Rename to ...
3408         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3409         to V54QI.
3410         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3411         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3412         to V32HI and V16SI.
3413         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3414         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3415         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3416         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3417         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3418         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3419
3420 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3421
3422         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3423         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3424
3425 2015-10-02  Jason Merrill  <jason@redhat.com>
3426
3427         PR c/59218
3428         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3429         (diagnose_tm_1_op): Also diagnose volatile accesses in
3430         transaction_safe function.
3431
3432 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
3433
3434         * system.h (malloc.h): Don't include obsolete header.
3435
3436 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3437
3438         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3439         (TLS_SECTION_ASM_FLAG): Delete.
3440
3441 2015-10-02  Marek Polacek  <polacek@redhat.com>
3442
3443         PR c/64249
3444         * doc/invoke.texi: Document -Wduplicated-cond.
3445         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3446         (insn-dfatab.o): Likewise.
3447         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3448         warning.
3449
3450 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
3451
3452         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3453         sequences.
3454
3455 2015-10-02  Renlin Li  <renlin.li@arm.com>
3456
3457         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3458
3459 2015-10-02  Renlin Li  <renlin.li@arm.com>
3460
3461         PR target/66776
3462         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3463
3464 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3465
3466         PR rtl-optimization/67786
3467         PR rtl-optimization/67787
3468         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3469         it modifies a reg used in the condition calculation.
3470
3471 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
3472
3473         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3474         alternatives for reads from memory and moves from general-purpose
3475         registers.
3476         (*aarch64_combinez_be<mode>): Likewise.
3477
3478 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
3479
3480         PR target/51726
3481         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3482         selectany within this function without need to keep attribute.
3483         (i386_pe_encode_section_info): Remove selectany-code.
3484
3485 2015-10-02  Richard Biener  <rguenther@suse.de>
3486
3487         * tree-ssa-sccvn.c (has_VN_INFO): New function.
3488         (free_scc_vn): Use it.
3489         (visit_use): Remove dead code and refactor to use gassign
3490         and use less indentation.
3491
3492 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3493
3494         PR target/67788
3495         PR target/67789
3496         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3497         (rs6000_cannot_copy_insn_p): New function.
3498         * config/rs6000/rs6000.md (cannot_copy): New attribute.
3499         (load_toc_v4_PIC_1_normal): Set cannot_copy.
3500         (load_toc_v4_PIC_1_476): Ditto.
3501
3502 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3503
3504         * graphite-scop-detection.c (struct sese_l): New conversion constructor
3505         so that this type can be pushed into a vec.
3506         (class scop_builder): use sese_l to collect scops.
3507         (get_scops): New getter function.
3508         (remove_intersecting_scops): Use sese_l instead of scops_p.
3509         (intersects): Same.
3510         (add_scop): Same.
3511         (subsumes): Same.
3512         (remove_subscops): Same.
3513         (build_scops): Add scops to vec<scops_p> once all the scops have been
3514         detected.
3515
3516 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3517
3518         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3519         Renamed type from gimple_bb_p to gimple_poly_bb_p.
3520         (translate_isl_ast_node_user): Same.
3521         * graphite-poly.c (new_poly_bb): Same.
3522         * graphite-poly.h (gbb_from_bb): Same.
3523         * sese.h: Same.
3524         * graphite-sese-to-poly.c (new_gimple_bb):
3525         gimple_bb_p -> gimple_poly_bb_p
3526         (build_scop_scattering): Same.
3527         (find_params_in_bb): Same.
3528         (add_conditions_to_domain): Same.
3529         (sese_dom_walker::before_dom_children): Same.
3530         (analyze_drs_in_stmts): Same.
3531         (new_pbb_from_pbb): Same.
3532         (free_data_refs_aux): New pointer to type base_alias_pair.
3533         * graphite-sese-to-poly.h: Same.
3534         * sese.c (if_region_set_false_region): Fixed Indentation.
3535         (move_sese_in_condition): Same.
3536
3537 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3538             Aditya Kumar  <aditya.k7@samsung.com>
3539
3540         PR tree-optimization/66980
3541         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3542         when data reference analysis has failed.
3543
3544 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3545             Aditya Kumar  <aditya.k7@samsung.com>
3546
3547         PR tree-optimization/67754
3548         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3549         scev analysis on the same loop nest as analyze_drs_in_stmts.
3550         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3551         renamed...
3552         (try_generate_gimple_bb): Call outermost_loop_in_sese.
3553         (analyze_drs_in_stmts): Same.
3554         * sese.c (outermost_loop_in_sese): ...here.
3555
3556 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3557             Aditya Kumar  <aditya.k7@samsung.com>
3558
3559         PR tree-optimization/67754
3560         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3561         recursion on the inner loops.
3562
3563 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3564
3565         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3566         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3567         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3568         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3569         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3570
3571 2015-10-01  Marek Polacek  <polacek@redhat.com>
3572
3573         PR c/65345
3574         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3575         create_tmp_var_raw rather than create_tmp_var.
3576
3577 2015-10-01  Marek Polacek  <polacek@redhat.com>
3578
3579         PR tree-optimization/67769
3580         * tree-ssa-phiopt.c (conditional_replacement): Call
3581         reset_flow_sensitive_info_in_bb.
3582         (minmax_replacement): Likewise.
3583         (abs_replacement): Likewise.
3584
3585 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3586
3587         * builtins.c: Don't include gomp-constants.h.
3588         (fold_builtin_1): Don't fold acc_on_device here.
3589         * gimple-fold.c: Include gomp-constants.h.
3590         (gimple_fold_builtin_acc_on_device): New.
3591         (gimple_fold_builtin): Call it.
3592
3593 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3594
3595         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3596         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3597
3598 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
3599
3600         * config/arm/aarch-common-protos.h
3601         (aarch_accumulator_forwarding): New.
3602         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3603         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3604         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3605         * config/arm/cortex-a53.md: Rewrite.
3606
3607 2015-10-01  Richard Biener  <rguenther@suse.de>
3608
3609         * gimple-match.h (mprts_hook): Declare.
3610         * gimple-match.head.c (mprts_hook): Define.
3611         (maybe_push_res_to_seq): Use new hook.
3612         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3613         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3614         (vn_ssa_aux::has_constants): Remove.
3615         * tree-ssa-sccvn.c: Include gimple-match.h.
3616         (VN_INFO_GET): Assert we don't re-use SSA names.
3617         (vn_get_expr_for): Remove.
3618         (expr_has_constants): Likewise.
3619         (stmt_has_constants): Likewise.
3620         (simplify_binary_expression): Likewise.
3621         (simplify_unary_expression): Likewise.
3622         (vn_lookup_simplify_result): New hook.
3623         (visit_copy): Adjust.
3624         (visit_reference_op_call): Likewise.
3625         (visit_phi): Likewise.
3626         (visit_use): Likewise.
3627         (process_scc): Likewise.
3628         (init_scc_vn): Likewise.
3629         (visit_reference_op_load): Likewise.  Use match-and-simplify and
3630         a gimple seq for inserted expressions.
3631         (try_to_simplify): Remove GENERIC stmt combining code.
3632         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3633         * tree-ssa-pre.c (eliminate_insert): Adjust.
3634         (eliminate_dom_walker::before_dom_children): Likewise.
3635
3636 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3637
3638         * doc/invoke.texi (Optimization Options): Add
3639         -freorder-blocks-algorithm=.
3640         (Optimize Options) <-O>: Add -freorder-blocks.
3641         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
3642         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3643         <-freorder-blocks>: Also enabled at levels -O and -Os.
3644         <-freorder-blocks-algorithm=>: Document new option.
3645
3646 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3647
3648         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3649         with flag_reorder_blocks_algorithm.
3650         * common.opt (freorder-blocks-algorithm=): New flag.
3651         (reorder_blocks_algorithm): New enum.
3652         * flag-types.h (reorder_blocks_algorithm): New enum.
3653         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3654         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3655
3656 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3657
3658         * bb-reorder.c: Add intro comment.
3659         (reorder_basic_blocks_software_trace_cache): Print a header to
3660         the dump file.
3661         (edge_order): New function.
3662         (reorder_basic_blocks_simple): New function.
3663         (reorder_basic_blocks): Choose between the STC and the simple
3664         algorithms (always choose the former).
3665
3666 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3667
3668         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3669         function, factored out from ...
3670         (reorder_basic_blocks): ... here.
3671
3672 2015-10-01  Tom de Vries  <tom@codesourcery.com>
3673
3674         * tree-cfg.c (dump_function_to_file): Dump function attributes using
3675         __attribute__(()) string.  Move dumping of function attributes to before
3676         function name.
3677
3678 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
3679
3680         PR target/66870
3681         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3682         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3683         based on gold linker version.
3684         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3685         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3686         * configure, config.in: Regenerate.
3687
3688 2015-10-01  Alan Modra  <amodra@gmail.com>
3689
3690         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3691         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3692         (rs6000_output_mi_thunk): Likewise.
3693
3694 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3695
3696         * config/nvptx/mkoffload.c (process): Change offload data format.
3697
3698 2015-09-30  Jeff Law  <law@redhat.com>
3699
3700         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3701         with constant conditions.
3702         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3703         (remove_ctrl_stmt_and_useless_edges): No longer static.
3704         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3705         (remove_ctrl_stmt_and_useless_edges): Likewise.
3706
3707 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3708             Cesar Philippidis  <cesar@codesourcery.com>
3709
3710         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3711         (TARGET_GOACC_VALIDATE_DIMS): Override.
3712         * target.def (TARGET_GOACC): New target hook prefix.
3713         (validate_dims): New hook.
3714         * targhooks.h (default_goacc_validate_dims): New.
3715         * omp-low.c (oacc_validate_dims): New.
3716         (execute_oacc_device_lower): New.
3717         (default_goacc_validate_dims): New.
3718         (pass_data_oacc_device_lower): New.
3719         (pass_oacc_device_lower): New pass.
3720         (make_pass_oacc_device_lower): New.
3721         * tree-pass.h (make_pass_oacc_device_lower): Declare.
3722         * passes.def (pass_oacc_device_lower): Add it.
3723         * doc/tm.texi: Rebuilt.
3724         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3725         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3726
3727 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3728
3729         PR rtl-optimization/67037
3730         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3731
3732 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
3733
3734         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3735         * passes.c: Include tree-ssanames.h.
3736         (execute_function_todo): Flush the pending free SSA_NAMEs after
3737         eliminating unreachable basic blocks.
3738         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3739         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3740         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3741         (flush_ssanames_freelist): New function.
3742         (release_ssaname_fn): Put released names on the queue.
3743         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3744         * tree-ssanames.h (flush_ssanames_freelist): Declare.
3745
3746 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3747
3748         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3749         (generate_target_descr_file, generate_target_offloadend_file)
3750         (generate_host_descr_file, prepare_target_image): Pass it on.
3751         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3752         (compile_native, main): Pass it on.
3753         * lto-wrapper.c (compile_offload_image): Likewise.
3754
3755 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3756             Ilya Verbin  <ilya.verbin@intel.com>
3757             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3758
3759         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3760         (prepare_target_image, main): Refactor argv building to use
3761         obstacks.
3762
3763 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3764
3765         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3766         * config/spu/spu.c (spu_expand_atomic_op): New function.
3767         * config/spu/spu.md (AINT): New mode iterator.
3768         (ATOMIC): New code iterator.
3769         (atomic_name, atomic_pred): New code predicates.
3770         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3771         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3772         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3773         "atomic_<atomic_name>_fetch<mode>"): Likewise.
3774
3775 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
3776
3777         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3778         debug insns.
3779         (scalar_chain::convert_reg): Likewise.
3780
3781 2015-09-30  Richard Biener  <rguenther@suse.de>
3782
3783         * builtins.c: Add comment that no new simplifications should
3784         be added here.
3785
3786 2015-09-30  Marek Polacek  <polacek@redhat.com>
3787
3788         PR tree-optimization/67690
3789         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3790         reset_flow_sensitive_info_in_bb.
3791         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3792         * tree-ssanames.c: Include "gimple-iterator.h".
3793         (reset_flow_sensitive_info_in_bb): New function.
3794         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3795
3796 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3797
3798         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3799         variable, replacing it with...
3800         (offload_abi): ... this new variable.  Adjust all users.
3801         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3802
3803 2015-09-30  Matthias Klose  <doko@ubuntu.com>
3804
3805         * configure.ac: Remove extraneous ;;.
3806         * configure: Regenerate.
3807
3808 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
3809
3810         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3811         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3812         predicate, disallow register for operand 2.
3813
3814 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
3815
3816         * graphite-dependences.c (scop_get_dependences): Moved in down
3817         in order to be visible to its caller.
3818         * graphite-poly.h: Removed compute_deps, and extend_schedule.
3819
3820 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3821             Aditya Kumar  <aditya.k7@samsung.com>
3822
3823         PR tree-optimization/67754
3824         * graphite-optimize-isl.c (optimize_isl): Call
3825         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3826
3827 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
3828
3829         * builtins.c (expand_builtin_acc_on_device): Delete.
3830         (expand_builtin): Don't call it.
3831         (fold_builtin_1): Fold acc_on_device.
3832
3833 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3834
3835         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3836         (ix86_nsaved_sseregs): Likewise.
3837
3838 2015-09-29  Jeff Law  <law@redhat.com>
3839
3840         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3841         computation of unused value.
3842
3843         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3844         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3845         inline macro expansion.
3846
3847         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3848
3849         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3850         (gen_shl_sext): Likewise.
3851         * config/sh/sh.md (divsi3): Likewise.
3852         (imm->ext_dest_operand splitter): Likewise.
3853
3854 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3855             Aditya Kumar  <aditya.k7@samsung.com>
3856
3857         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3858         (nb_data_writes_in_bb): Remove.
3859         (split_pbb): Remove.
3860         (split_reduction_stmt): Remove.
3861         (is_reduction_operation_p): Remove.
3862         (phi_contains_arg): Remove.
3863         (follow_ssa_with_commutative_ops): Remove.
3864         (detect_commutative_reduction_arg): Remove.
3865         (detect_commutative_reduction_assign): Remove.
3866         (follow_inital_value_to_phi): Remove.
3867         (edge_initial_value_for_loop_phi): Remove.
3868         (initial_value_for_loop_phi): Remove.
3869         (used_outside_reduction): Remove.
3870         (detect_commutative_reduction): Remove.
3871         (translate_scalar_reduction_to_array_for_stmt): Remove.
3872         (remove_phi): Remove.
3873         (dr_indices_valid_in_loop): Remove.
3874         (close_phi_written_to_memory): Remove.
3875         (translate_scalar_reduction_to_array): Remove.
3876         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3877         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3878         (rewrite_commutative_reductions_out_of_ssa): Remove.
3879         (build_poly_scop): Remove call to
3880         rewrite_commutative_reductions_out_of_ssa.
3881
3882 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
3883
3884         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3885         Add new insn types for vector load and store pairs.
3886         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3887         types "neon_ldp{,_q}".
3888         * config/arm/cortex-a57.md (neon_load_c): Add insn types
3889         "neon_ldp{,_q}".
3890         (neon_store_complex): Add insn types "neon_stp{,_q}".
3891         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3892         "neon_{ldp,stp}_q".
3893
3894 2015-09-29  Jeff Law  <law@redhat.com>
3895
3896         * config/rx/constraints.md (Int08): Fix undefined left shift
3897         behaviour.
3898         (Sint08, Sint16, Sint24): Likewise.
3899         * config/rx/rx.c (rx_get_stack_layout): Likewise.
3900
3901         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3902         behaviour.
3903
3904         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3905         left shift behaviour.
3906         * config/msp430/constraints.md ('L' constraint): Similarly.
3907         ('Ys' constraint): Similarly.
3908
3909 2015-09-29  Richard Biener  <rguenther@suse.de>
3910
3911         PR tree-optimization/67170
3912         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3913         the translate function pointer parameter to get the
3914         bool whether to disambiguate only by reference.
3915         (walk_non_aliased_vuses): Likewise.
3916         * tree-ssa-alias.c (maybe_skip_until): Adjust.
3917         (get_continuation_for_phi_1): Likewise.
3918         (get_continuation_for_phi): Likewise.
3919         (walk_non_aliased_vuses): Likewise.
3920         * tree-ssa-sccvn.c (const_parms): New bitmap.
3921         (vn_reference_lookup_3): Adjust for interface change.
3922         Disambiguate parameters pointing to readonly memory.
3923         (free_scc_vn): Free const_parms.
3924         (run_scc_vn): Initialize const_parms from a fn spec attribute.
3925
3926 2015-09-29  Richard Biener  <rguenther@suse.de>
3927
3928         PR tree-optimization/67741
3929         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3930         builtin calls with correct signature.
3931
3932 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
3933
3934         PR target/65105
3935         * config/i386/i386.c: Include dbgcnt.h.
3936         (has_non_address_hard_reg): New.
3937         (convertible_comparison_p): New.
3938         (scalar_to_vector_candidate_p): New.
3939         (remove_non_convertible_regs): New.
3940         (scalar_chain): New.
3941         (scalar_chain::scalar_chain): New.
3942         (scalar_chain::~scalar_chain): New.
3943         (scalar_chain::add_to_queue): New.
3944         (scalar_chain::mark_dual_mode_def): New.
3945         (scalar_chain::analyze_register_chain): New.
3946         (scalar_chain::add_insn): New.
3947         (scalar_chain::build): New.
3948         (scalar_chain::compute_convert_gain): New.
3949         (scalar_chain::replace_with_subreg): New.
3950         (scalar_chain::replace_with_subreg_in_insn): New.
3951         (scalar_chain::emit_conversion_insns): New.
3952         (scalar_chain::make_vector_copies): New.
3953         (scalar_chain::convert_reg): New.
3954         (scalar_chain::convert_op): New.
3955         (scalar_chain::convert_insn): New.
3956         (scalar_chain::convert): New.
3957         (convert_scalars_to_vector): New.
3958         (pass_data_stv): New.
3959         (pass_stv): New.
3960         (make_pass_stv): New.
3961         (ix86_option_override): Created and register stv pass.
3962         (flag_opts): Add -mstv.
3963         (ix86_option_override_internal): Likewise.
3964         * config/i386/i386.md (SWIM1248x): New.
3965         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
3966         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
3967         (*anddi3_doubleword): New.
3968         (*zext<mode>_doubleword): New.
3969         (*zextsi_doubleword): New.
3970         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
3971         (*<code>di3_doubleword): New.
3972         * config/i386/i386.opt (mstv): New.
3973         * dbgcnt.def (stv_conversion): New.
3974
3975 2015-09-29  Tom de Vries  <tom@codesourcery.com>
3976
3977         * tree-cfg.c (dump_function_to_file): Dump function attributes.
3978
3979 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3980
3981         PR target/67716
3982         * config/sh/sh.c (sh_override_options_after_change): New.
3983         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3984         (sh_option_override): Move align_loops, align_jumps and
3985         align_functions handling into sh_override_options_after_change.
3986
3987 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
3988
3989         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
3990         (nvptx_record_offload_symbol): Record function execution geometry.
3991         * config/nvptx/mkoffload.c (process): Include launch geometry in
3992         function data.
3993         * omp-low.c (oacc_launch_pack): New.
3994         (replace_oacc_fn_attrib): New.
3995         (set_oacc_fn_attrib): New.
3996         (get_oacc_fn_attrib): New.
3997         (expand_omp_target): Create keyed varargs for GOACC_parallel call
3998         generation.
3999         * omp-low.h (get_oacc_fn_attrib): Declare.
4000         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4001         (DEF_FUNCTION_TYPE_VAR_11): Delete.
4002         * tree.h (OMP_CLAUSE_EXPR): New.
4003         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4004
4005 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4006             Sebastian Pop  <s.pop@samsung.com>
4007
4008         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4009
4010 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4011             Sebastian Pop  <s.pop@samsung.com>
4012
4013         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4014         * graphite-scop-detection.c (struct sese_l): New type.
4015         (get_entry_bb): API for getting entry bb of SESE.
4016         (get_exit_bb): API for getting exit bb of SESE.
4017         (class debug_printer): New type.  Simple printer in debug mode.
4018         (trivially_empty_bb_p): New.  Return true when BB is empty or
4019         contains only debug instructions.
4020         (graphite_can_represent_expr): Call scalar_evoution_in_region
4021         instead of analyze_scalar_evolution.  Pass in scop instead of only
4022         the scop entry.
4023         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4024         scop entry.
4025         (stmt_simple_for_scop_p): Same.
4026         (harmful_stmt_in_bb): Same.
4027         (graphite_can_represent_loop): Deleted.
4028         (struct scopdet_info): Deleted.
4029         (scopdet_basic_block_info): Deleted.
4030         (build_scops_1): Deleted.
4031         (bb_in_sd_region): Deleted.
4032         (find_single_entry_edge): Deleted.
4033         (find_single_exit_edge): Deleted.
4034         (create_single_entry_edge): Deleted.
4035         (sd_region_without_exit): Deleted.
4036         (create_single_exit_edge): Deleted.
4037         (unmark_exit_edges): Deleted.
4038         (mark_exit_edges): Deleted.
4039         (create_sese_edges): Deleted.
4040         (build_graphite_scops): Deleted.
4041         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4042         (build_scops): Use the new scop_builder to build scops.
4043         (dot_all_scops_1): Use the new pretty printer.  Print loop father
4044         as well.
4045         (loop_body_is_valid_scop): New.  Return true if loop body is a
4046         valid scop.
4047         (class scop_builder): New.  Builds SCoPs for polyhedral
4048         optimizations.
4049         (scop_builder): New constructor.
4050         (static sese_l invalid_sese): sese_l with invalid edges.
4051         (get_sese): Get an sese (from a loop) if possible, invalid_sese
4052         otherwise.
4053         (get_nearest_dom_with_single_entry): Get nearest dominator of a
4054         basic_block with single entry.  Return NULL if we get to the
4055         beginning of a function.
4056         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4057         a basic_block with single exit.  Return NULL if we get to the
4058         beginning of a function.
4059         (print_sese): Pretty-print SESE.
4060         (merge_sese): Merge two SESEs if possible and return the new SESE.
4061         (build_scop_depth): Start building the SCoP within a loop nest.
4062         (build_scop_breadth): Start building the SCoP at a single loop
4063         depth.  Merge adjacent SESEs if valid.
4064         (can_represent_loop_1): Returns true if Graphite can represent
4065         loop inside SCoP.  Helper for can_represent_loop.
4066         (can_represent_loop): Returns true if Graphite can represent LOOP
4067         and all its nested loops in SCoP.
4068         (loop_is_valid_scop): Returns true if LOOP and all its nests
4069         constitute a valid SCoP.
4070         (region_has_one_loop): Returns true of a region has only one loop.
4071         (add_scop): Add SCoP to the list of valid scops.  Removes an
4072         already existing scop if it intersects with or subsumed by this one.
4073         (harmful_stmt_in_region): Returns true if SCoP has any statment
4074         which cannot be represented by Graphite.
4075         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4076         (remove_subscops): Remove any SCoP from the list of already found
4077         SCoPs, if subsumed by S1.
4078         (intersects): Return true if region bounded by SCoPs S1 and S2
4079         intersect.
4080         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4081         * graphite.c (print_graphite_scop_statistics):
4082         (print_graphite_statistics): Print SCoP info while debugging.
4083         (graphite_initialize): Early exit in case number of loops in a
4084         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4085         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4086         (graphite_finalize):
4087         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4088         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4089         (recompute_all_dominators): Recalculate POST_DOMINATORS.
4090         * tree-cfg.c (print_loops): Print the function name while printing
4091         loops.
4092
4093 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
4094             Sebastian Pop  <s.pop@samsung.com>
4095
4096         PR tree-optimization/67700
4097         * graphite-sese-to-poly.c (parameter_index_in_region): Call
4098         invariant_in_sese_p_rec.
4099         (extract_affine): Same.
4100         (rewrite_cross_bb_scalar_deps): Call update_ssa.
4101         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
4102         * sese.h (invariant_in_sese_p_rec): Declare.
4103
4104 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
4105
4106         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4107
4108 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
4109
4110         Revert:
4111         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4112                     Jiong Wang  <jiong.wang@arm.com>
4113
4114         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4115         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4116         (REG_CLASS_NAMES): Likewise.
4117         (REG_CLASS_CONTENTS): Likewise.
4118         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4119         (aarch64_register_move_cost): Likewise.
4120         (aarch64_load_symref_appropriately): Invoke the new added pattern if
4121         possible.
4122         * config/aarch64/constraints.md (Uc0): New constraint.
4123
4124 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
4125
4126         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4127
4128 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
4129
4130         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4131         SECTION_EXCLUDE in XO mapping class.
4132
4133 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
4134
4135         PR target/54236
4136         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4137         and handle ne and eq codes.
4138         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4139         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
4140         CONST_INT_P.  Use reverse_condition.
4141         (sh_split_treg_set_expr): Likewise.
4142
4143 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
4144
4145         * config/arm/types.md (type): Add rotate_imm.
4146         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4147         ROR immediate case.
4148         (*rorsi3_insn_uxtw): Likewise.
4149         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4150         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4151         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4152
4153 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4154
4155         PR rtl-optimization/67481
4156         * ifcvt.c (contains_ccmode_rtx_p): New function.
4157         (insn_valid_noce_process_p): Use it.
4158
4159 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4160
4161         PR rtl-optimization/67456
4162         PR rtl-optimization/67464
4163         PR rtl-optimization/67465
4164         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4165         move in the mode of x.  Handle combination of complex and simple
4166         block pairs as well as the case when one is empty.
4167
4168 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4169
4170         * doc/gimple.texi: Update references to gimple_statement_base.
4171         * gdbhooks.py: Likewise.
4172         * gimple.h: Likewise.
4173
4174 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4175
4176         * config/sparc/driver-sparc.c: map LEON to leon3
4177
4178 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4179
4180         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4181           and make it inverse to change default
4182         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4183           supervisor mode
4184         * doc/invoke.texi: Document change of default
4185
4186 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4187
4188         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4189         true on %f0 for a target without FPU.
4190         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4191         without FPU.
4192         (untyped_return): Do not load %f0 for a target without FPU.
4193
4194 2015-09-28  Andrew Pinski  <apinski@cavium.com>
4195
4196         * config/aarch64/aarch64.md (prefetch):
4197         Change the predicate of operand 0 to register_operand.
4198
4199 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
4200
4201         * config/i386/predicates.md (register_sse4nonimm_operand): New
4202         predicate.
4203         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4204         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4205         Use register_sse4nonimm_operand as operand 0 predicate.
4206         (*vec_extractv8hi_sse2): Remove insn pattern.
4207         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4208         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4209
4210 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
4211             Kaz Kojima  <kkojima@gcc.gnu.org>
4212
4213         PR target/67391
4214         * config/sh/sh-protos.h (sh_lra_p): Declare.
4215         * config/sh/sh.c (sh_lra_p): Make non-static.
4216         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4217         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
4218         Expand into addsi3_scr if operands[2] if needed.
4219         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
4220         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
4221         (addsi3_scr, *addsi3): New insn_and_split patterns.
4222
4223 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
4224
4225         PR rtl-optimization/64164
4226         PR tree-optimization/67312
4227         PR middle-end/67340
4228         PR middle-end/67490
4229         PR bootstrap/67597
4230         * cfgexpand.c (parm_in_stack_slot_p): Remove.
4231         (ssa_default_def_partition): Remove.
4232         (get_rtl_for_parm_ssa_default_def): Remove.
4233         (set_rtl): Check that RTL assignments match expectations.
4234         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
4235         default def location for params and results.  Record SSA names
4236         or types in REG and MEM attrs, respectively.
4237         (set_parm_rtl): New.
4238         (expand_one_ssa_partition): Drop logic that assigned MEMs with
4239         unassigned addresses.
4240         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4241         deferred stack alloc vars.
4242         (expand_used_vars): Skip partitions holding parm default defs.
4243         Move adjust_one_expanded_partition_var loop...
4244         (pass_expand::execute): ... here.  Drop redundant assert.
4245         Adjust comments before the final loop over all ssa names.
4246         Require assigned rtl of parms and results to match exactly.
4247         Reset its attributes to match them, not any other variables in
4248         the same partition.
4249         (expand_debug_expr): Use entry value for PARM's default defs
4250         only iff they have zero nondebug uses.
4251         * cfgexpand.h (parm_in_stack_slot_p): Remove.
4252         (get_rtl_for_parm_ssa_default_def): Remove.
4253         (set_parm_rtl): Declare.
4254         * doc/invoke.texi: Improve wording.
4255         * explow.c (promote_decl_mode): Fix promote_function_mode for
4256         result decls not by reference.
4257         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
4258         bypass TYPE_MODE to get the actual vector mode.
4259         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
4260         2015-08-19's changes as follows.  Drop include of
4261         basic-block.h and df.h.
4262         (rtl_for_parm): Remove.
4263         (maybe_reset_rtl_for_parm): Remove.
4264         (parm_in_unassigned_mem_p): Remove.
4265         (use_register_for_decl): Add logic for RESULT_DECLs matching
4266         assign_parms' behavior.
4267         (split_complex_args): Revert.
4268         (assign_parms_augmented_arg_list): Revert.  Add comment
4269         referencing the logic above.
4270         (assign_parm_adjust_stack_rtl): Revert.
4271         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
4272         of SET_DECL_RTL.  Set up a REG if the parm demands so.
4273         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
4274         calls into a single set_parm_rtl.  Set up a temporary RTL
4275         temporarily for expand_assignment.
4276         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
4277         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
4278         (assign_bounds): Revert.
4279         (assign_parms): Revert.  Use set_parm_rtl.
4280         (allocate_struct_function): Relayout result and parms of
4281         non-abstruct functions.
4282         (expand_function_start): Revert.  Use set_parm_rtl.  If the
4283         result is not a hard reg, create a pseudo from the promoted
4284         mode of the default def.  Promote static chain mode.
4285         * tree-outof-ssa.c (remove_ssa_form): Drop unused
4286         partition_has_default_def.  Set up
4287         partitions_for_parm_default_defs.
4288         (finish_out_of_ssa): Remove partition_has_default_def.
4289         Release partitions_for_parm_default_defs.
4290         * tree-outof-ssa.h (struct ssaexpand): Remove
4291         partition_has_default_def.  Add
4292         partitions_for_parm_default_defs.
4293         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4294         stor-layout.h.
4295         (build_ssa_conflict_graph): Fix conflict-detection of default
4296         defs of even unused default defs of params and results.
4297         (for_all_parms): New.
4298         (create_default_def): New.
4299         (register_default_def): New.
4300         (coalesce_with_default): New.
4301         (create_outofssa_var_map): Create default defs for all parms
4302         and results, and register their partitions.  Add GIMPLE_RETURN
4303         operands as coalesce candidates with results.  Add default
4304         defs of each parm or result as coalesce candidates with its
4305         other defs.  Mark each result def, and each default def of
4306         parms, as used_in_copy.
4307         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
4308         with the ssa names, even anonymous ones.  Drop
4309         parm_in_stack_slot_p calls.  Require same signedness and
4310         alignment.
4311         (coalesce_ssa_name): Add coalesce candidates for all defs of
4312         each parm and result, even unused ones.
4313         (parm_default_def_partition_arg): New type.
4314         (set_parm_default_def_partition): New.
4315         (get_parm_default_def_partitions): New.
4316         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4317         * tree-ssa-live.c (partition_view_init): Regard unused defs of
4318         parms and results as used.
4319         (verify_live_on_entry): Don't error out just because they're
4320         not live.
4321
4322 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
4323
4324         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4325         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4326         (output_fde): Don't output length for debug_frame on AIX.
4327         (output_call_frame_info): Don't output length for debug_frame on AIX.
4328         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4329         HAVE_XCOFF_DWARF_EXTRAS.
4330         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4331         HAVE_XCOFF_DWARF_EXTRAS.
4332         (output_compilation_unit_header): Don't output length on AIX.
4333         (output_pubnames): Don't output length on AIX.
4334         (output_aranges): Delete argument. Compute length locally. Don't
4335         output length on AIX.
4336         (output_line_info): Don't output length on AIX.
4337         (dwarf2out_finish): Don't compute aranges_length.
4338         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4339         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4340         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4341         symbol decoration for AIX.
4342         (rs6000_xcoff_debug_unwind_info): New.
4343         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4344         for SECTION_DEBUG.
4345         (rs6000_xcoff_declare_function_name): Emit different
4346         .function pseudo-op when DWARF2_DEBUG. Don't call
4347         xcoffout_declare_function for DWARF2_DEBUG.
4348         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4349         Redefine.
4350         * config/rs6000/aix71.h: New.
4351         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4352         locations support.
4353         * configure: Regenerate.
4354         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4355         DWARF support.
4356
4357 2015-09-26  Jeff Law  <law@redhat.com>
4358
4359         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4360         behaviour.
4361         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4362         behaviour.
4363
4364         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4365         behaviour
4366
4367         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4368         undefined behaviour.
4369
4370         * config/cris/cris.md (asrandb): Fix left shift undefined
4371         behaviour.
4372         (asrandw): Likewise.
4373
4374 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4375
4376         PR target/61578
4377         * lra-constarints.c (match_reload): Check presence of the input pseudo
4378         in the output operand.
4379
4380 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4381
4382         * doc/invoke.texi (-fsanitize): Minor wording tweak.
4383
4384 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4385
4386         * doc/invoke.texi (-fsanitize): Update URLs.
4387
4388 2015-09-25  Teresa Johnson  <tejohnson@google.com>
4389
4390         * opts.c (finish_options): Unset -freorder-blocks-and-partition
4391         if not using profile.
4392
4393 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4394
4395         PR pretty-print/67567
4396         * pretty-print.c (pp_string): Add gcc_checking_assert.
4397         * pretty-print.h (output_buffer_append_r): Likewise.
4398
4399 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4400
4401         PR target/67675
4402         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4403         addr2 individually.  Don't emit logical or insn if one is known to
4404         be aligned approriately.
4405         (sh_expand_cmpnstr): Likewise.
4406
4407 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
4408
4409         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4410         __builtin_aarch64_fp[sc]r arguments into a register.
4411
4412 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4413
4414         * config.gcc (x86_archs): Replace lakemount with lakemont.
4415         (with_cpu): Likewise.
4416         (with_arch): Likewise.
4417         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4418         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
4419         __tune_lakemount__ with __tune_lakemont__.
4420         * config/i386/i386.c (lakemount_cost): Renamed to ...
4421         (lakemont_cost): This.
4422         (m_LAKEMOUNT): Renamed to ...
4423         (m_LAKEMONT): This.
4424         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4425         (processor_target_table): Replace "lakemount" with "lakemont".
4426         (processor_alias_table): Likewise.
4427         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4428         PROCESSOR_LAKEMONT.
4429         (ix86_adjust_cost): Likewise.
4430         (ia32_multipass_dfa_lookahead): Likewise.
4431         * config/i386/i386.h (processor_type): Likewise.
4432         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4433         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
4434         Lakemount with Lakemont.
4435
4436 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
4437
4438         * config.gcc (x86_archs): Replace iamcu with lakemount.
4439         (with_cpu): Likewise.
4440         (with_arch): Likewise.
4441         * doc/invoke.texi: Likewise.
4442         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4443         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
4444         __tune_iamcu__ with __tune_lakemount__.
4445         * config/i386/i386.c (iamcu_cost): Renamed to ...
4446         (lakemount_cost): This.
4447         (m_IAMCU): Renamed to ...
4448         (m_LAKEMOUNT): This.
4449         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4450         (processor_target_table): Replace "iamcu" with "lakemount".
4451         (processor_alias_table): Likewise.
4452         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4453         PROCESSOR_LAKEMOUNT.
4454         (ix86_adjust_cost): Likewise.
4455         (ia32_multipass_dfa_lookahead): Likewise.
4456         * config/i386/i386.h (processor_type): Likewise.
4457         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4458
4459 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
4460
4461         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4462         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4463         Declare.
4464         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4465         (pa_expand_compare_and_swap_loop): New.
4466         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4467         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4468         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4469         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4470         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4471         Revise.
4472
4473 2015-09-24  Michael Collison  <michael.collison@linaro.org>
4474
4475         PR other/57195
4476         * read-md.c (read_name): Allow mode iterators inside angle
4477         brackets in rtl expressions.
4478
4479 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
4480
4481         PR target/61578
4482         * ira-color.c (update_allocno_cost): Add parameter.
4483         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
4484         parameter.
4485
4486 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4487
4488         PR driver/67640
4489         * opts-common.c (prune_options): Discard all -fdiagnostics-color
4490         but the last one, which is moved to the front to be processed
4491         first.
4492         * opts.c (enable_warning_as_error): Reject options that do not
4493         control warnings.
4494
4495 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4496
4497         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4498
4499 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4500
4501         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4502         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4503         (aarch64_cannot_force_const_mem): Likewise.
4504         (aarch64_classify_address): Likewise.
4505         (aarch64_classify_symbolic_expression): Likewise.
4506         (aarch64_print_operand): Likewise.
4507         (aarch64_classify_symbol): Likewise.
4508         (aarch64_mov_operand_p): Likewise.
4509         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4510         (aarch64_mov_operand): Likewise.
4511
4512 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
4513
4514         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4515         for info->spe_gp_size.
4516
4517 2015-09-24  Richard Biener  <rguenther@suse.de>
4518
4519         PR lto/67699
4520         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4521         abstract origins.
4522
4523 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
4524
4525         * tree-object-size.c (plus_stmt_object_size)
4526         (cond_expr_object_size): Change the formal parameters from gimple
4527         to gimple *.
4528         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4529         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4530         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4531
4532 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4533
4534         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4535         Check for ld -type pie on Solaris 11.x and 12.
4536         * configure: Regenerate.
4537         * config.in: Regenerate.
4538
4539         * gcc.c (LD_PIE_SPEC): Allow redefinition.
4540
4541         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4542         (STARTFILE_SPEC): Use it.
4543         (ENDFILE_CRTEND_SPEC): Define.
4544         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4545         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4546         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4547         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4548         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4549         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4550         (ENDFILE_ARCH_SPEC): Define.
4551         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4552
4553 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4554
4555         * configure.ac (gcc_cv_solaris_crts): New test.
4556         * configure. Regenerate.
4557         * config.in: Regenerate.
4558         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4559         HAVE_SOLARIS_CRTS variant.
4560
4561 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4562
4563         * tree-inline.h (count_insns_seq): Delete prototype.
4564         (estimate_num_insns_seq): Define prototype.
4565         * tree-inline.c (count_insns_seq): Delete.
4566         (estimate_num_insns_seq): Remove static qualifier.
4567         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4568         with estimate_num_insns_seq.
4569
4570 2015-09-24  Richard Biener  <rguenther@suse.de>
4571
4572         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4573         members.
4574         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4575         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
4576         offset.
4577         (ao_ref_init_from_vn_reference): Record clique and base in the
4578         built base.
4579         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4580
4581 2015-09-24  Richard Biener  <rguenther@suse.de>
4582
4583         PR tree-optimization/48885
4584         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4585         as not including any restrict tags from other pointers.
4586
4587 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4588
4589         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4590         character when appending to offload_targets.
4591
4592         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4593         offload targets by commas, not colons.
4594         * config.in: Regenerate.
4595         * configure: Likewise.
4596         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4597         instead of setting up the default offload targets here...
4598         (process_command): ..., do it here.
4599         libgomp/
4600         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4601         targets are separated by commas.
4602         * config.h.in: Regenerate.
4603
4604 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4605             Nathan Sidwell  <nathan@codesourcery.com>
4606
4607         * omp-low.h (omp_reduction_init_op): Declare.
4608         * omp-low.c (omp_reduction_init_op): New, broken out of ...
4609         (omp_reduction_init): ... here.  Call it.
4610         * tree-parloops.c (initialize_reductions): Use
4611         omp_reduction_init_op.
4612
4613 2015-09-23   Richard Biener  <rguenther@suse.de>
4614
4615         PR middle-end/67662
4616         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4617         undefined overflow unless they will cancel out.
4618
4619 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4620
4621         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4622         insn emit.
4623
4624 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4625
4626         PR c/49655
4627         * opts.h (write_langs): Declare.
4628         * opts-global.c (write_langs): Make it extern.
4629
4630 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
4631
4632         PR target/67391
4633         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4634         overlapping regs when matching the pattern.
4635
4636 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
4637
4638         * config/aarch64/aarch64-simd.md
4639         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4640         (aarch64_float_truncate_hi_v4sf_le): New.
4641         (aarch64_float_truncate_hi_v4sf_be): Likewise.
4642
4643 2015-09-23  Richard Biener  <rguenther@suse.de>
4644
4645         * tree-ssa-structalias.c (intra_create_variable_infos): Build
4646         representatives for all restrict qualified pointer destinations.
4647
4648 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4649
4650         * config/i386/i386.md (define_code_attr mshift): New.
4651         (define_mode_iterator SWI1248_AVX512BW): Rename ...
4652         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4653         only.
4654         (define_insn "*k<logic><mode>"): Use new iterator name.
4655         (define_insn "*<mshift><mode>3"): New.
4656
4657 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
4658
4659         PR middle-end/67649
4660         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4661         mark the block as accessible.
4662
4663 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
4664
4665         * function.c (thread_prologue_and_epilogue_insns): Delete
4666         orig_entry_edge argument to try_shrink_wrapping.
4667         * shrink-wrap.c (can_get_prologue): New function.
4668         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4669         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
4670         can_get_prologue where needed.  Remove code that finds a single
4671         edge for the prologue.  Remove code that tests if any reg clobbered
4672         by the prologue is live on the prologue edge.  Remove code that finds
4673         the new prologue edge after duplicating blocks.  Make a new prologue
4674         block and edge.
4675         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4676
4677 2015-09-22  Jeff Law  <law@redhat.com>
4678
4679         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4680         behavior.
4681
4682 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4683
4684         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
4685         -Wtemplates, -Wnamespaces): Document.
4686
4687 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4688
4689         PR tree-optimization/67671
4690         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4691         pointer references as restrict.
4692
4693 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
4694
4695         * config/nios2/nios2.c (nios2_legitimize_address): When handling
4696         'reg + reloc' cases, allow first operand to be non-REG, and use
4697         force_reg() to enforce address pattern.
4698
4699 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
4700
4701         PR target/67480
4702         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4703         (define_mode_iterator VI12_AVX_AVX512F): New.
4704         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4705         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4706         (define_insn "*<code><mode>3"): ... Into new pattern using
4707         VI12_AVX_AVX512F iterators without masking.
4708
4709 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4710
4711         * config.gcc: Support "skylake-avx512".
4712         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4713         PROCESSOR_SKYLAKE_AVX512.
4714         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4715         (processor_target_table): Add "skylake-avx512".
4716         (PTA_SKYLAKE_AVX512): Define.
4717         (ix86_option_override_internal): Add "skylake_avx512".
4718         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4719         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4720         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4721         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4722         * doc/invoke.texi (skylake-avx512): New.
4723
4724 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4725
4726         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4727         operand in pattern.
4728         (define_insn "kunpcksi"): Ditto.
4729         (define_insn "kunpckdi"): Ditto.
4730
4731 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4732
4733         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4734         iterator instead of fixed modes.
4735
4736 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4737
4738         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4739         Adjust declaration.
4740         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4741         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
4742         out_result.  Update to support update-fetch operations.
4743         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4744         Adjust for change to aarch64_gen_atomic_ldop.
4745         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4746         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4747         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4748         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4749         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4750
4751 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4752
4753         * config/aarch64/aarch64-protos.h
4754         (aarch64_atomic_ldop_supported_p): Declare.
4755         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4756         (enum aarch64_atomic_load_op_code): New.
4757         (aarch64_emit_atomic_load_op): New.
4758         (aarch64_gen_atomic_ldop): Update to support load-operate
4759         patterns.
4760         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4761         to an expander.
4762         (aarch64_atomic_<atomic_optab><mode>): New.
4763         (aarch64_atomic_<atomic_optab><mode>_lse): New.
4764         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4765         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4766         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4767
4768 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4769
4770         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4771         (UNSPECV_ATOMIC_LDOP_OR): New.
4772         (UNSPECV_ATOMIC_LDOP_BIC): New.
4773         (UNSPECV_ATOMIC_LDOP_XOR): New.
4774         (UNSPECV_ATOMIC_LDOP_PLUS): New.
4775         (ATOMIC_LDOP): New.
4776         (atomic_ldop): New.
4777         (aarch64_atomic_load<atomic_ldop><mode>): New.
4778
4779 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4780
4781         * config/aarch64/aarch64.md
4782         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4783         pattern.
4784
4785 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4786
4787         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4788         Declare.
4789         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4790         (aarch64_gen_atomic_ldop): New.
4791         (aarch64_split_atomic_op): Fix whitespace and add a comment.
4792         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4793         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4794         (atomic_exchange<mode>): Replace with an expander.
4795         (aarch64_atomic_exchange<mode>): New.
4796         (aarch64_atomic_exchange<mode>_lse): New.
4797         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4798         (aarch64_atomic_swp<mode>): New.
4799
4800 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4801
4802         * tree-inline.c (expand_call_inline): Use inform for extra note.
4803         Do not give a note with UNKNOWN_LOCATION.
4804         Replace input_location with gimple_location (stmt).
4805         Use true/false instead of TRUE/FALSE.
4806
4807 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4808
4809         PR tree-optimization/67666
4810         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4811         with single field non-conservative.
4812
4813 2015-09-21  David S. Miller  <davem@davemloft.net>
4814
4815         PR/67622
4816         Revert:
4817         2015-09-11  David S. Miller  <davem@davemloft.net>
4818
4819         * config/sparc/constraints.md: Make "U" constraint a real register
4820         constraint.
4821         * config/sparc/sparc.c (TARGET_LRA_P): Define.
4822         (D_MODES, DF_MODES): Add missing cast.
4823         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4824         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4825         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4826         cost to 8.
4827         * config/sparc/sparc.h (PROMOTE_MODE): Define.
4828         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4829         provide these insn when flag_pic.
4830
4831         2015-09-17  David S. Miller  <davem@davemloft.net>
4832
4833         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4834         Declare.
4835         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4836         function.
4837         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4838         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4839         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4840         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4841         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4842         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4843         provide when flag_pic.
4844
4845 2015-09-21  Jeff Law  <law@redhat.com>
4846
4847         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4848         behavior.
4849
4850 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4851
4852         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4853
4854 2015-09-21  Richard Biener  <rguenther@suse.de>
4855
4856         * passes.c (rest_of_decl_compilation): Do not call
4857         dwarf2out_early_global_decl for aliases.
4858
4859 2015-09-21  Richard Biener  <rguenther@suse.de>
4860
4861         PR debug/67664
4862         * dwarf2out.c (add_location_or_const_value_attribute): Remove
4863         attribute parameter.  Early exit if either DW_AT_const_value
4864         or DW_AT_location are present already.
4865         (gen_variable_die): Adjust caller.
4866         (dwarf2out_late_global_decl): Likewise.
4867
4868 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4869
4870         PR target/67657
4871         * config/sh/sh.c (sh_remove_overlapping_post_inc,
4872         sh_peephole_emit_move_insn): Add new functions.
4873         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4874         sh_peephole_emit_move_insn): Declere them.
4875         * config/sh/sh.md: Use them in various peephole2 patterns.
4876
4877 2015-09-21  Richard Biener  <rguenther@suse.de>
4878
4879         PR middle-end/67651
4880         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4881         address with -fno-delete-null-pointer-checks.
4882
4883 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
4884
4885         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4886         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4887         (reduc_uplus_v16qi): Remove.
4888
4889         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4890         (reduc_<VEC_reduc_name>_v2df): Remove.
4891         (reduc_<VEC_reduc_name>_v4sf): Remove.
4892         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4893
4894         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4895         gen_ function by removing * prefix.
4896         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4897
4898 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4899
4900         PR middle-end/60832
4901         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4902         Print i_bound without converting it to a tree.
4903
4904 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
4905
4906         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4907         operands[4] operands[5] swap with std::swap, removed tmp variable.
4908         (arm_evpc_neon_vzip): Replaced in0/in1 and
4909         out0/out1 swaps with std::swap, removed x variable.
4910         (arm_evpc_neon_vtrn): Replaced in0/int1 and
4911         out0/out1 swaos with std::swap, removed x variable.
4912         (arm_expand_vec_perm_const_1): Replaced
4913         d->op0/d->op1 swap with std::swap, removed x variable.
4914         (arm_evpc_neon_vuzp): Replaced in0/in1 and
4915         out0/out1 swaps with std::swap, removed x variable.
4916
4917 2015-09-21  Jonathan Yong  <10walls@gmail.com>
4918
4919         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4920         sysroot/usr/lib/32api for additional win32 libraries,
4921         fixes failing Cygwin bootstrapping.
4922
4923 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4924
4925         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4926
4927 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4928
4929         PR target/67126
4930         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4931         (*mov_t_msb_neg): Rewrite negc pattern.
4932
4933 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4934
4935         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4936         immediate generation code.
4937
4938 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4939
4940         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4941         redundant immediate generation code.
4942
4943 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4944
4945         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4946         (AARCH64_NUM_BITMASKS): Remove.
4947         (aarch64_bitmasks_cmp): Remove.
4948         (aarch64_build_bitmask_table): Remove.
4949
4950 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4951
4952         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
4953         slow immediate matching loops with a faster algorithm.
4954
4955 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4956
4957         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
4958         faster algorithm.
4959
4960 2015-09-20  Jeff Law  <law@redhat.com>
4961
4962         PR tree-optimization/47679
4963         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
4964         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
4965         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
4966         (thread_through_normal_block): Use record_temporary_equivalences.
4967
4968 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
4969
4970         * coretypes.h (gimple): Change typedef to be a forward declaration.
4971         * gimple.h (gimple_statement_base): rename to gimple.
4972         * (all functions and types using gimple): Adjust.
4973         * *.[ch]: Likewise.
4974
4975 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
4976             David Edelsohn  <dje.gcc@gmail.com>
4977
4978         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
4979         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4980         (EH_FRAME_THROUGH_COLLECT2): Define.
4981         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4982         (ASM_OUTPUT_DWARF_PCREL): Define.
4983         (ASM_OUTPUT_DWARF_DATAREL): Define.
4984
4985 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
4986
4987         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
4988         of TARGET_ELF32.
4989
4990 2015-09-18  Jeff Law  <law@redhat.com>
4991
4992         PR tree-optimization/47679
4993         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
4994         it here ...
4995         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
4996         object.  Update constructor.
4997         (pass_dominator::execute):  Corresponding chagnes to declaration
4998         and initialization of avail_exprs_stack.  Update constructor call
4999         for dom_opt_dom_walker object.
5000         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
5001         it down to children as needed.
5002         (record_equivalences_from_incoming_edge): Likewise.
5003         (eliminate_redundant_computations): Likewise.
5004         (record_equivalences_from_stmt): Likewise.
5005         (simplify_stmt_for_jump_threading): Likewise.
5006         (record_temporary_equivalences): Likewise.
5007         (optimize_stmt): Likewise.
5008         (dom_opt_dom_walker::thread_across_edge): Update access to
5009         avail_exprs_stack object and pass it to children as needed.
5010         (dom_opt_dom_walker::before_dom_children): Similarly.
5011         (dom_opt_dom_walker::after_dom_children): Similarly.
5012         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5013         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5014         Add avail_expr_stack argument.  Pass it to children as needed.
5015         (dummy_simplify): Likewise.
5016         (simplify_control_stmt_condition): Likewise.
5017         (thread_around_empty_blocks): Likewise.
5018         (thread_through_normal_block): Likewise.
5019         (thread_across_edge): Likewise.
5020         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5021         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5022
5023         PR tree-optimization/47679
5024         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
5025         it here ...
5026         (dom_opt_dom_walker): New private member holding the const_and_copies
5027         object.  Update constructor.
5028         (pass_dominator::execute): Corresponding changes to declaration
5029         and initialization of const_and_copies.  Update constructor call
5030         for the dom_opt_dom_walker object.
5031         (record_temporary_equivalences): Accept const_and_copies argument
5032         pass it down to children as needed.
5033         (record_equality): Likewise.
5034         (record_equivalences_from_incoming_edge): Likewise.
5035         (cprop_into_successor_phis, optimize_stmt): Likewise.
5036         (eliminate_redundant_computations): Likewise.
5037         (dom_opt_dom_walker::thread_across_edge): Update access to
5038         const_and_copies object and pass it to children as needed.
5039         (dom_opt_dom_walker::before_dom_children): Similarly.
5040         (dom_opt_dom_walker::after_dom_children): Similarly.
5041
5042         PR tree-optimization/47679
5043         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
5044         it into the avail_exprs_stack class.
5045         (pass_dominator::execute): Corresponding changes to declaration
5046         and initialization of avail_exprs.  Pass avail_exprs to
5047         dump_dominator_optimization_stats.
5048         (record_cond): Extract avail_exprs from avail_exprs_stack.
5049         (lookup_avail_expr): Similarly.
5050         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
5051         position in file.
5052         (dump_dominator_optimization_stats): Make static and prototype.
5053         Add argument for the hash table to dump.
5054         (debug_dominator_optimization_stats): Remove.
5055         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5056         prototype.
5057         (debug_dominator_optimization_stats): Similarly.
5058         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5059         "void" in prototype for pop_to_marker method.  Add accessor method
5060         for the underlying avail_exprs table.
5061
5062         * tree-ssa-threadedge.c: Remove trailing whitespace.
5063
5064 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
5065
5066         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5067         unsigned.
5068         (pa_ldil_cint_p): Likewise.
5069         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5070         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5071         Update callers.
5072         * config/pa/pa.md: Likewise.
5073
5074 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
5075
5076         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5077         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5078         (diagnostic_show_locus): Likewise.
5079         (diagnostic_print_caret_line): Likewise.
5080         * diagnostic-show-locus.c: New file.
5081
5082 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
5083
5084         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5085         "back" parameter. Declare label in #if block.
5086
5087 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
5088
5089         PR middle-end/67619
5090         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5091         the address to a register.
5092
5093 2015-09-18  Jeff Law  <law@redhat.com>
5094
5095         PR tree-optimization/47679
5096         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5097         * tree-ssa-dom.c: Remove unnecessary header includes.
5098         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5099         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5100         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5101         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5102         (pass_phi_only_cprop::execute): Likewise.
5103         (make_pass_phi_only_cprop): Likewise.
5104         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
5105         uses of file scoped statics by passing the required objects
5106         as parameters wherever needed.
5107
5108 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
5109             David Edelsohn  <dje.gcc@gmail.com>
5110
5111         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5112         EH_FRAME_THROUGH_COLLECT2.
5113         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5114         DW_EH_PE_datarel.
5115         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5116         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
5117         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5118         * except.c (switch_to_exception_section): Use a read-only section
5119         even if EH_FRAME_SECTION_NAME is undefined.
5120         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5121         * collect2.c (write_c_file_stat): Provide dbase on AIX.
5122         (scan_prog_file): Don't export __dso_handle nor
5123         __gcc_unwind_dbase.
5124         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5125         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5126         (ASM_OUTPUT_DWARF_PCREL): Define.
5127         (ASM_OUTPUT_DWARF_DATAREL): Define.
5128         (EH_FRAME_THROUGH_COLLECT2): Define.
5129         (EH_FRAME_IN_DATA_SECTION): Delete.
5130         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5131         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5132         Declare.
5133         (rs6000_asm_output_dwarf_datarel): Declare.
5134         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5135         (rs6000_aix_asm_output_dwarf_datarel): New.
5136         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5137         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5138         (EH_FRAME_THROUGH_COLLECT2): Define.
5139         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5140         (EH_FRAME_THROUGH_COLLECT2): Define.
5141         (EH_TABLES_CAN_BE_READ_ONLY): Define.
5142         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5143         (EH_FRAME_THROUGH_COLLECT2): New.
5144         (ASM_OUTPUT_DWARF_DATAREL): New.
5145         * doc/tm.texi: Regenerate.
5146
5147 2015-09-18  Richard Biener  <rguenther@suse.de>
5148
5149         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5150         we're in early phase.
5151         (schedule_generic_params_dies_gen): Likewise.
5152         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5153         work as possible, retaining unhandled cases.
5154         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5155         clear out generic_type_instances at the end.
5156         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5157         (dwarf2out_early_finish): ... here.  Do most of
5158         gen_remaining_tmpl_value_param_die_attribute here.
5159
5160 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
5161
5162         PR tree-optimization/67283
5163         * tree-sra.c (type_consists_of_records_p): Rename to...
5164         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5165         (completely_scalarize_record): Rename to...
5166         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5167         (scalarize_elem): New.
5168         (analyze_all_variable_accesses): Follow renamings.
5169
5170 2015-09-18  Richard Biener  <rguenther@suse.de>
5171
5172         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5173         in early-dwarf.
5174
5175 2015-09-18  Richard Biener  <rguenther@suse.de>
5176
5177         PR tree-optimization/66142
5178         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5179         treat MEM[&x] and x the same.
5180         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5181         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5182         when we simplified sth.
5183         (vn_reference_maybe_forwprop_address): Likewise.
5184         (valueize_refs_1): When we simplified through
5185         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5186         set valueized_anything to true.
5187         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5188         one ref kills the other instead of just a offset-based test.
5189         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5190         for the operand_equal_p test to compare bases and also compare
5191         sizes.
5192
5193 2015-09-17  Christian Bruel  <christian.bruel@st.com>
5194
5195         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5196
5197 2015-09-17  Richard Henderson  <rth@redhat.com>
5198
5199         PR libstdc++/65913
5200         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5201         pointers that encode the alignment of the object.
5202
5203 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5204
5205         PR rtl-optimization/66790
5206         * df-problems.c (LIVE): Amend documentation.
5207
5208 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
5209
5210         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5211         and optabs-tree.o.
5212         (GTFILES): Replace optabs.c with optabs-libfunc.c.
5213         * genopinit.c (main): Add an include guard to insn-opinit.h.
5214         Protect the rtx_code parts with NUM_RTX_CODE.
5215         * optabs.h: Split parts out to...
5216         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5217         * optabs.c: Split parts out to...
5218         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5219         * cilk-common.c: Include optabs-query.h rather than optabs.h.
5220         * fold-const.c: Likewise.
5221         * target-globals.c: Likewise.
5222         * tree-if-conv.c: Likewise.
5223         * tree-ssa-forwprop.c: Likewise.
5224         * tree-ssa-loop-prefetch.c: Likewise.
5225         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5226         Remove unncessary include files.
5227         * tree-ssa-phiopt.c: Likewise.
5228         * tree-ssa-reassoc.c: Likewise.
5229         * tree-switch-conversion.c: Likewise.
5230         * tree-vect-data-refs.c: Likewise.
5231         * tree-vect-generic.c: Likewise.
5232         * tree-vect-loop.c: Likewise.
5233         * tree-vect-patterns.c: Likewise.
5234         * tree-vect-slp.c: Likewise.
5235         * tree-vect-stmts.c: Likewise.
5236         * tree-vrp.c: Likewise.
5237         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5238         rather than optabs.h.
5239         * expr.c: Include optabs-tree.h.
5240         * function.c: Likewise.
5241
5242 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5243
5244         PR middle-end/65958
5245         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5246         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5247         * config/arm/arm.c: Include common/common-target.h.
5248         (use_return_insn): Return 0 if the static chain register was saved
5249         above a non-APCS frame.
5250         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5251         (struct scratch_reg): New.
5252         (get_scratch_register_on_entry): New function.
5253         (release_scratch_register_on_entry): Likewise.
5254         (arm_emit_probe_stack_range): Likewise.
5255         (output_probe_stack_range): Likewise.
5256         (arm_expand_prologue): Factor out code dealing with the IP register
5257         for nested function and adjust it for stack checking.
5258         Invoke arm_emit_probe_stack_range if static builtin stack checking
5259         is enabled.
5260         (thumb1_expand_prologue): Sorry out if static builtin stack checking
5261         is enabled.
5262         (arm_expand_epilogue): Add the saved static chain register, if any, to
5263         the amount of pre-pushed registers to pop.
5264         (arm_frame_pointer_required): Return true if static stack checking is
5265         enabled and we want to catch the exception with the EABI unwinder.
5266         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
5267         (UNSPEC_PROBE_STACK_RANGE): Likewise.
5268         * config/arm/arm.md (probe_stack): New insn.
5269         (probe_stack_range): Likewise.
5270
5271 2015-09-17  Richard Biener  <rguenther@suse.de>
5272
5273         * genmatch.c (parser::parse_expr): Improve error message
5274         for mis-placed flags.
5275
5276 2015-09-17  Richard Biener  <rguenther@suse.de>
5277
5278         * passes.c (rest_of_decl_compilation): Always call early_global_decl
5279         debug hook when we created a varpool node.
5280         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5281         dwarf2out_early_global_decl, when not just add location or
5282         value attributes to existing DIEs.
5283
5284 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
5285
5286         * config/aarch64/aarch64.md (copysigndf3): New.
5287         (copysignsf3): Likewise.
5288
5289 2015-09-17  David S. Miller  <davem@davemloft.net>
5290
5291         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5292         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5293         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5294         (HARD_REGNO_CALLER_SAVE_MODE): Define.
5295         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5296         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5297         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5298         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5299         provide when flag_pic.
5300
5301 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5302
5303         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5304         object_allocator change.
5305
5306 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5307
5308         PR tree-optimization/66388
5309         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5310         (dump_iv): Dump no_overflow information.
5311         (alloc_iv): Initialize new field for struct iv.
5312         (mark_bivs): Count number of no_overflow bivs.
5313         (find_deriving_biv_for_expr, record_biv_for_address_use): New
5314         functions.
5315         (idx_find_step): Call new functions above.
5316         (add_candidate_1, add_candidate): New paramter.
5317         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5318         (get_computation_aff): Simplify convertion of cand for BIV.
5319         (get_computation_cost_at): Step cand's base if necessary.
5320
5321 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5322
5323         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5324         parameter.
5325         (tree_simplify_using_condition): Ditto.
5326         (simplify_using_initial_conditions): Ditto.
5327         (loop_exits_before_overflow): Pass new argument to function
5328         simplify_using_initial_conditions.  Remove case for type conversions
5329         simplification.
5330         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5331         parameter.
5332         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5333         in iv base using loop initial conditions.
5334
5335 2015-09-16  Jeff Law  <law@redhat.com>
5336
5337         PR tree-optimization/47679
5338         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5339         (free_all_edge_infos): Use it.
5340         (allocate_edge_info): Free preexisting edge info data.
5341         (pass_dominator::execute): Set up initial edge info structures.
5342         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5343         thread_across_edge.
5344         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5345         If non-null, then push/pop markers appropriately.
5346         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5347         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5348         thread-across_edge.
5349
5350 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
5351
5352         * config/ft32/ft32.c: Fix the memory address space predicate.
5353
5354 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5355
5356         PR target/67573
5357         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5358         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5359
5360 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5361
5362         * toplev.h (check_global_declaration): Remove declaration.
5363         * toplev.c (check_global_declaration): Move to ...
5364         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5365         (analyze_functions): Update call.
5366
5367 2015-09-16  David S. Miller  <davem@davemloft.net>
5368
5369         * lra-constraints.c (simplify_operand_subreg): Do not assume that
5370         lowpart of a SUBREG has offset zero.
5371
5372 2015-09-16  Jeff Law  <law@redhat.com>
5373
5374         PR tree-optimization/47679
5375         * tree-ssa-dom.c (enum expr_kind): Moved from here to
5376         tree-ssa-scopedtables.h.
5377         (struct hashable_expr, class expr_hash_elt): Likewise.
5378         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5379         Move associated methods into tree-ssa-scopedtables.c.
5380         (avail_expr_hash, initialize_expr_from_cond): Similarly.
5381         (hashable_expr_equal_p, add_expr_commutative): Likewise.
5382         (add_hashable_expr): Likewise.
5383         (record_cond): Delete element directly.
5384         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5385         private copy ctor and assignment operator methods.
5386         (expr_elt_hasher): Inline trivial methods.
5387         (initialize_expr_from_cond): Prototype.
5388         * tree-ssa-scopedtables.c: Add necessary includes, functions and
5389         methods that were previously in tree-ssa-dom.c.  Improve various
5390         comments.
5391
5392 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
5393
5394         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5395
5396 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
5397
5398         PR bootstrap/67587
5399         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5400         fixup_partitions.
5401
5402 2015-09-16  Richard Biener  <rguenther@suse.de>
5403
5404         PR middle-end/67253
5405         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5406         location of possibly shared trees.
5407
5408 2015-09-16  Richard Biener  <rguenther@suse.de>
5409
5410         PR middle-end/67271
5411         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5412
5413 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
5414
5415         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5416         offset and size computations instead of HOST_WIDE_INT.
5417
5418 2015-09-16  Richard Biener  <rguenther@suse.de>
5419
5420         PR middle-end/67442
5421         * fold-const.c (extract_muldiv_1): Properly extend multiplication
5422         result before builting a tree via wide_int_to_tree.
5423
5424 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
5425
5426         * Makefile.in: Add memory-block.cc
5427         (pool_allocator::initialize): Use fixed block size.
5428         (pool_allocator::release): Use memory_block_pool.
5429         (pool_allocator::allocate): Likewise.
5430         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5431         object pools.
5432         * cfg.c (initialize_original_copy_tables): Likewise.
5433         * cselib.c (elt_list_pool, elt_loc_list_pool,
5434         cselib_val_pool): Likewise.
5435         * df-problems.c (df_chain_alloc): Likewise.
5436         * df-scan.c (df_scan_alloc): Likewise.
5437         * dse.c (cse_store_info_pool, rtx_store_info_pool,
5438         read_info_type_pool, insn_info_type_pool, bb_info_pool,
5439         group_info_pool, deferred_change_pool): Likewise.
5440         * et-forest.c (et_nodes, et_occurrences): Likewise.
5441         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5442         ipcp_agg_lattice_pool): Likewise.
5443         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5444         * ipa-profile.c (histogram_pool): Likewise.
5445         * ipa-prop.c (ipa_refdesc_pool): Likewise.
5446         * ira-build.c (live_range_pool, allocno_pool, object_pool,
5447         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5448         * ira-color.c (update_cost_record_pool): Likewise.
5449         * lra-lives.c (lra_live_range_pool): Likewise.
5450         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5451         * memory-block.cc: New file.
5452         * memory-block.h: New file.
5453         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5454         * sched-deps.c (sched_deps_init): Likewise.
5455         * sel-sched-ir.c (sched_lists_pool): Likewise.
5456         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5457         * tree-sra.c (access_pool): Likewise.
5458         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5459         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5460         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5461         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5462         * tree-ssa-strlen.c (strinfo_pool): Likewise.
5463         * tree-ssa-structalias.c (variable_info_pool): Likewise.
5464         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5465         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5466
5467 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5468
5469         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5470         definition.
5471         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5472         call0 ABI.
5473
5474 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5475
5476         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5477         to pass TLS call argument, according to current ABI.
5478         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5479         callx0 for TLS call, according to current ABI.
5480
5481 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5482
5483         * tree-eh.c (lower_try_finally_dup_block): Clear location information
5484         on stack restore statements.
5485         (decide_copy_try_finally): Do not consider a stack restore statement as
5486         coming from sources.
5487
5488 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
5489
5490         * config/alpha/alpha.c (alpha_expand_block_clear): Use
5491         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5492
5493 2015-09-15  Jeff Law  <law@redhat.com>
5494
5495         PR tree-optimization/47679
5496         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5497         methods and private members.
5498         (avail_exprs_stack): Similarly.  Change type of global
5499         from a pair of expr_hash_elt_t to the new class.
5500         (expr_elt_hasher::hash): Corresponding changes.
5501         (expr_elt_hasher::equal): Similarly.
5502         (avail_expr_hash): Similarly.
5503         (pass_dominator::execute): Similarly.
5504         (dom_opt_dom_walker::thread_across_edge): Similarly.
5505         (record_cond): Similarly.
5506         (dom_opt_dom_walker::before_dom_children): Similarly.
5507         (dom_opt_dom_walker::after_dom_children): Similarly.
5508         (lookup_avail_expr): Likewise.
5509         (initialize_hash_element): Now a expr_hash_elt constructor.
5510         (initialize_hash_element_from_expr): Similarly.
5511         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5512         (free_expr_hash_elt): Call dtor for the element.
5513         (remove_local_expressions_from_table): Now the "pop_to_marker"
5514         method in the available_exprs_stack class.
5515         (avail_expr_stack::record_expr): Method factored out.
5516         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5517         Fix formatting.
5518         (hashable_expr_equal_p): Fix formatting.
5519
5520 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
5521
5522         * input.h (location_get_source_line): Drop "expanded_location"
5523         param in favor of a file and line number.
5524         * input.c (location_get_source_line): Likewise.
5525         (dump_location_info): Update for change in signature of
5526         location_get_source_line.
5527         * diagnostic.c (diagnostic_print_caret_line): Likewise.
5528
5529 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5530
5531         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5532         Bump to 4KB for SJLJ exceptions.
5533         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
5534         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5535         * doc/tm.texi: Regenerate.
5536
5537 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5538
5539         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5540         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
5541         Update prototype.
5542
5543 2015-09-15  Richard Biener  <rguenther@suse.de>
5544
5545         PR tree-optimization/67470
5546         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5547         structure for PHI hoisting by inserting a forwarder block
5548         if appropriate.
5549
5550 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5551
5552         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5553         (arm_option_print): New function.
5554
5555 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5556
5557         PR target/52144
5558         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5559         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5560         Remove flags parameter.
5561         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5562         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5563         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5564         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5565         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5566         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5567         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5568         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5569
5570 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5571
5572         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5573
5574         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5575         AARCH64_VALID_SIMD_DREG_MODE.
5576
5577 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5578
5579         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5580         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5581         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5582         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5583         aarch64_ld4_lane<mode>): Combine together, making...
5584         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5585         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5586         aarch64_st4_lane<mode>): Combine together, making...
5587         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5588         * config/aarch64/iterators.md (nregs): Add comment.
5589
5590 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5591
5592         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5593         Change operand mode from <V_TWO_ELEM> to BLK.
5594         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5595         (aarch64_vec_store_lanesoi_lane<mode): Likewise
5596         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5597         (aarch64_ld2_lane<mode>): Likewise.
5598         (aarch64_st2_lane<VQ:mode>): Likewise.
5599         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5600
5601 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5602
5603         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5604         Change operand mode from <V_FOUR_ELEM> to BLK.
5605         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5606         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5607         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5608         (aarch64_ld4_lane<mode>): Likewise.
5609         (aarch64_st4_lane<mode>): Likewise.
5610         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5611
5612 2015-09-15  Richard Biener  <rguenther@suse.de>
5613
5614         PR middle-end/67563
5615         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5616         transfer EH info from old to new stmt.
5617         (replace_call_with_value): Likewise.
5618         (replace_call_with_call_and_fold): Likewise.
5619         (gimple_fold_builtin_memory_op): Likewise.
5620         (gimple_fold_builtin_memset): Likewise.
5621         (gimple_fold_builtin_stpcpy): Likewise.
5622         (gimple_fold_call): Likewise.
5623
5624 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5625
5626         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5627         comment.
5628         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5629         (aarch64_simd_intEI_type_node): Likewise.
5630         (aarch64_simd_builtin_std_type): Remove EImode case.
5631         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5632         * config/aarch64/aarch64-modes.def: Remove EImode.
5633
5634 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5635
5636         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5637         Change operand mode from <V_THREE_ELEM> to BLK.
5638         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5639         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5640         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5641         (aarch64_ld3_lane<mode>): Likewise.
5642         (aarch64_st3_lane<mode>): Likewise.
5643         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5644
5645 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5646
5647         * config/aarch64/aarch64-simd.md
5648         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5649         Change all TImode operands to BLKmode.
5650         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5651         Change all EImode operands to BLKmode.
5652         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5653         Change all OImode operands to BLKmode.
5654
5655         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5656         and call set_mem_size.
5657         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5658
5659         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5660
5661 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5662
5663         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5664         to...
5665         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5666
5667         (vec_store_lanesci_lane<mode>): Rename to...
5668         (aarch64_vec_store_lanesci_lane<mode>): ...this.
5669
5670         (vec_store_lanesxi_lane<mode>): Rename to...
5671         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5672
5673         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5674         aarch64_st4_lane<mode>): Follow renaming.
5675
5676 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5677
5678         * config/s390/s390.c (s390_const_operand_ok): Add missing
5679         brackets.
5680
5681 2015-09-15  Richard Biener  <rguenther@suse.de>
5682
5683         PR lto/67568
5684         * lto-streamer.h (lto_location_cache::current_sysp): Properly
5685         initialize.
5686         * lto-streamer-out.c (clear_line_info): Likewise.
5687
5688 2015-09-15  Richard Biener  <rguenther@suse.de>
5689
5690         * doc/match-and-simplify.texi: Fix wording.
5691
5692 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
5693
5694         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5695         unnecessary type conversion in op1.
5696
5697 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5698
5699         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5700         (dup_block_and_redirect): Delete function.
5701         (can_dup_for_shrink_wrapping): New function.
5702         (fix_fake_fallthrough_edge): New function.
5703         (try_shrink_wrapping): Rewrite function.
5704         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5705
5706 2015-09-14  Rich Felker  <dalias@libc.org>
5707
5708         * configure.ac: Change target pattern for sh TLS support
5709         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5710         * configure: Regenerate.
5711
5712 2015-09-14  Jeff Law  <law@redhat.com>
5713
5714         PR tree-optimization/47679
5715         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5716         type rather than void *.
5717
5718 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5719
5720         PR fortran/67460
5721         * diagnostic.c (diagnostic_initialize): Do not set
5722         some_warnings_are_errors.
5723         (diagnostic_finish): Use DK_WERROR count instead.
5724         (diagnostic_report_diagnostic): Do not set
5725         some_warnings_are_errors.
5726         * diagnostic.h (struct diagnostic_context): Remove
5727         some_warnings_are_errors.
5728
5729 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
5730
5731         * config/sparc/predicates.md (const_all_ones_operand): Use
5732         CONSTM1_RTX to simplify definition.
5733
5734 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
5735
5736         PR target/67061
5737         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5738         Handle call insns.
5739
5740 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
5741
5742         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5743         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5744         OPT_fshow_column to handled saved option cases.
5745         (append_compiler_options): Do not skip the above added options.
5746
5747 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5748
5749         PR target/63304
5750         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5751         nopcrelative_literal_loads.
5752         (aarch64_classify_address): Likewise.
5753         (aarch64_constant_pool_reload_icode): Define.
5754         (aarch64_secondary_reload): Handle secondary reloads for
5755         literal pools.
5756         (aarch64_override_options): Handle nopcrelative_literal_loads.
5757         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5758         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5759         Define.
5760         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5761         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5762         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5763         predicate.
5764         * doc/invoke.texi (mpc-relative-literal-loads): Document.
5765
5766 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
5767
5768         PR middle-end/67401
5769         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5770         sync_compare_and_swap_optab libcall to target_oval.
5771
5772 2015-09-14  Marek Polacek  <polacek@redhat.com>
5773
5774         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5775         value.
5776         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5777
5778 2015-09-11  Mark Wielaard  <mjw@redhat.com>
5779
5780         PR c/28901
5781         * toplev.c (check_global_declaration): Check and use
5782         warn_unused_const_variable.
5783         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5784         (-Wunused-variable): Remove non-constant. For C implies
5785         -Wunused-const-variable.
5786         (-Wunused-const-variable): New.
5787
5788 2015-09-14  Richard Biener  <rguenther@suse.de>
5789
5790         * doc/match-and-simplify.texi: Update for changed syntax
5791         of inner ifs and the new switch expression.
5792
5793 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
5794
5795         * config/i386/haswell.md: New file describing Haswell pipeline.
5796         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5797         haswell-like processors.
5798         (ix86_reassociation_width): Increase reassociation width for 64-bit
5799         Haswell processor family.
5800         * config/i386/i386.md: Introduce haswell cpu and include new md file.
5801
5802 2015-09-14  Richard Biener  <rguenther@suse.de>
5803
5804         * doc/match-and-simplify.texi: Fixup some formatting issues
5805         and document the 's' flag.
5806
5807 2015-09-13  Olivier Hainque  <hainque@adacore.com>
5808             Eric Botcazou  <ebotcazou@adacore.com>
5809
5810         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5811         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
5812         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5813         (TARGET_CPU_gr5): Likewise.
5814         (TARGET_CPU_gr6): Likewise.
5815         (MULTILIB_DEFAULTS): Likewise.
5816         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5817         for mcpu=gr5 and mcpu=gr6.
5818         (MULTILIB_DIRNAMES): Adjust accordingly.
5819
5820 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5821
5822         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5823         (mem_ref_p): Likewise.
5824         (outermost_indep_loop): Adjust.
5825         (mem_ref_in_stmt): Likewise.
5826         (determine_max_movement): Likewise.
5827         (mem_ref_alloc): Likewise.
5828         (record_mem_ref_loc): Likewise.
5829         (set_ref_stored_in_loop): Likewise.
5830         (mark_ref_stored): Likewise.
5831         (gather_mem_refs_stmt): Likewise.
5832         (mem_refs_may_alias_p): Likewise.
5833         (for_all_locs_in_loop): Likewise.
5834         (struct rewrite_mem_ref_loc): Likewise.
5835         (rewrite_mem_refs): Likewise.
5836         (struct first_mem_ref_loc_1): Likewise.
5837         (first_mem_ref_loc): Likewise.
5838         (struct sm_set_flag_if_changed): Likewise.
5839         (execute_sm_if_changed_flag_set): Likewise.
5840         (execute_sm): Likewise.
5841         (hoist_memory_references):
5842         (struct ref_always_accessed): Likewise.
5843         (ref_always_accessed_p): Likewise.
5844         (refs_independent_p): Likewise.
5845         (record_dep_loop): Likewise.
5846         (ref_indep_loop_p_1): Likewise.
5847         (ref_indep_loop_p_2): Likewise.
5848         (ref_indep_loop_p): Likewise.
5849         (can_sm_ref_p): Likewise.
5850         (find_refs_for_sm): Likewise.
5851         (tree_ssa_lim_finalize): Likewise.
5852
5853 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5854
5855         * dwarf2out.c (dw_attr_ref): Remove typedef.
5856         (dw_line_info_ref): Likewise.
5857         (pubname_ref): Likewise.
5858         (dw_ranges_ref): Likewise.
5859         (dw_ranges_by_label_ref): Likewise.
5860         (comdat_type_node_ref): Likewise.
5861         (get_AT): Adjust.
5862         (get_AT_low_pc): Likewise.
5863         (get_AT_hi_pc): Likewise.
5864         (get_AT_string): Likewise.
5865         (get_AT_flag): Likewise.
5866         (get_AT_unsigned): Likewise.
5867         (get_AT_ref): Likewise.
5868         (get_AT_file): Likewise.
5869         (remove_AT): Likewise.
5870         (print_die): Likewise.
5871         (check_die): Likewise.
5872         (die_checksum): Likewise.
5873         (attr_checksum_ordered): Likewise.
5874         (struct checksum_attributes): Likewise.
5875         (collect_checksum_attributes): Likewise.
5876         (die_checksum_ordered): Likewise.
5877         (same_die_p): Likewise.
5878         (is_declaration_die): Likewise.
5879         (clone_die): Likewise.
5880         (clone_as_declaration): Likewise.
5881         (copy_declaration_context): Likewise.
5882         (break_out_comdat_types): Likewise.
5883         (copy_decls_walk): Likewise.
5884         (output_location_lists): Likewise.
5885         (external_ref_hasher::hash): Likewise.
5886         (optimize_external_refs_1): Likewise.
5887         (build_abbrev_table): Likewise.
5888         (size_of_die): Likewise.
5889         (unmark_all_dies): Likewise.
5890         (size_of_pubnames): Likewise.
5891         (output_die_abbrevs): Likewise.
5892         (output_die): Likewise.
5893         (output_pubnames): Likewise.
5894         (add_ranges_num): Likewise.
5895         (add_ranges_by_labels): Likewise.
5896         (add_high_low_attributes): Likewise.
5897         (gen_producer_string): Likewise.
5898         (dwarf2out_set_name): Likewise.
5899         (new_line_info_table): Likewise.
5900         (prune_unused_types_walk_attribs): Likewise.
5901         (prune_unused_types_update_strings): Likewise.
5902         (prune_unused_types): Likewise.
5903         (resolve_addr): Likewise.
5904         (optimize_location_lists_1): Likewise.
5905         (index_location_lists): Likewise.
5906         (dwarf2out_finish): Likewise.
5907
5908 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5909
5910         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5911
5912 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5913
5914         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5915         (dump_asserts_for): Adjust.
5916         (register_new_assert_for): Likewise.
5917         (process_assert_insertions): Likewise.
5918         (insert_range_assertions): Likewise.
5919
5920 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5921
5922         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5923         and remove typedef.
5924         (new_temp_expr_table): Adjust.
5925         (free_temp_expr_table): Likewise.
5926         (version_to_be_replaced_p): Likewise.
5927         (make_dependent_on_partition): Likewise.
5928         (add_to_partition_kill_list): Likewise.
5929         (remove_from_partition_kill_list): Likewise.
5930         (add_dependence): Likewise.
5931         (finished_with_expr): Likewise.
5932         (process_replaceable): Likewise.
5933         (kill_expr): Likewise.
5934         (kill_virtual_exprs): Likewise.
5935         (mark_replaceable): Likewise.
5936         (find_replaceable_in_bb): Likewise.
5937         (find_replaceable_exprs): Likewise.
5938         (debug_ter): Likewise.
5939
5940 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5941
5942         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5943         (struct btr_user): Rename from btr_user_s.
5944         (struct btr_def): Rename from btr_def_s.
5945         (find_btr_def_group): Adjust.
5946         (add_btr_def): Likewise.
5947         (new_btr_user): Likewise.
5948         (note_other_use_this_block): Likewise.
5949         (compute_defs_uses_and_gen): Likewise.
5950         (link_btr_uses): Likewise.
5951         (build_btr_def_use_webs): Likewise.
5952         (block_at_edge_of_live_range_p): Likewise.
5953         (btr_def_live_range): Likewise.
5954         (combine_btr_defs): Likewise.
5955         (move_btr_def): Likewise.
5956         (migrate_btr_def): Likewise.
5957         (migrate_btr_defs): Likewise.
5958
5959 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5960
5961         * var-tracking.c (shared_hash_def): Rename to shared_hash.
5962         (shared_hash): Remove typedef.
5963         (struct dataflow_set): Adjust.
5964         (shared_hash_unshare): Likewise.
5965         (dataflow_set_merge): Likewise.
5966         (vt_initialize): Likewise.
5967         (vt_finalize): Likewise.
5968
5969 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5970
5971         * var-tracking.c (struct location_chain): Rename from
5972         location_chain_def.
5973         (struct variable_part): Adjust.
5974         (variable_htab_free): Likewise.
5975         (unshare_variable): Likewise.
5976         (get_init_value): Likewise.
5977         (get_addr_from_local_cache): Likewise.
5978         (drop_overlapping_mem_locs): Likewise.
5979         (val_reset): Likewise.
5980         (struct variable_union_info): Likewise.
5981         (variable_union): Likewise.
5982         (find_loc_in_1pdv): Likewise.
5983         (insert_into_intersection): Likewise.
5984         (intersect_loc_chains): Likewise.
5985         (canonicalize_loc_order_check): Likewise.
5986         (canonicalize_values_mark): Likewise.
5987         (canonicalize_values_star): Likewise.
5988         (canonicalize_vars_star): Likewise.
5989         (variable_merge_over_cur): Likewise.
5990         (remove_duplicate_values): Likewise.
5991         (variable_post_merge_new_vals): Likewise.
5992         (variable_post_merge_perm_vals): Likewise.
5993         (find_mem_expr_in_1pdv): Likewise.
5994         (dataflow_set_preserve_mem_locs): Likewise.
5995         (dataflow_set_remove_mem_locs): Likewise.
5996         (variable_part_different_p): Likewise.
5997         (onepart_variable_different_p): Likewise.
5998         (find_src_set_src): Likewise.
5999         (dump_var): Likewise.
6000         (set_slot_part): Likewise.
6001         (clobber_slot_part): Likewise.
6002         (delete_slot_part): Likewise.
6003         (vt_expand_var_loc_chain): Likewise.
6004         (emit_note_insn_var_location): Likewise.
6005         (vt_finalize): Likewise.
6006
6007 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6008
6009         * dse.c (store_info_t): Remove typedef.
6010         (group_info_t): Likewise.
6011         (const_group_info_t): Likewise.
6012         (deferred_change_t): Likewise.
6013         (get_group_info): Adjust.
6014         (free_store_info): Likewise.
6015         (canon_address): Likewise.
6016         (clear_rhs_from_active_local_stores): Likewise.
6017         (record_store): Likewise.
6018         (replace_read): Likewise.
6019         (check_mem_read_rtx): Likewise.
6020         (scan_insn): Likewise.
6021         (remove_useless_values): Likewise.
6022         (dse_step1): Likewise.
6023         (dse_step2_init): Likewise.
6024         (dse_step2_nospill): Likewise.
6025         (scan_stores_nospill): Likewise.
6026         (scan_reads_nospill): Likewise.
6027         (dse_step3_exit_block_scan): Likewise.
6028         (dse_step3): Likewise.
6029         (dse_step5_nospill): Likewise.
6030         (dse_step6): Likewise.
6031
6032 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6033
6034         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6035         (alias_set_entry): Remove typedef.
6036         (alias_set_subset_of): Adjust.
6037         (alias_sets_conflict_p): Likewise.
6038         (init_alias_set_entry): Likewise.
6039         (get_alias_set): Likewise.
6040         (new_alias_set): Likewise.
6041         (record_alias_subset): Likewise.
6042
6043 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
6044
6045         * doc/install.texi (Downloading the source): Mark up
6046         contrib/download_prerequisites properly and drop leading "./".
6047
6048 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6049
6050         * config/arc/arc.h: Remove define of STRUCT_VALUE.
6051         * config/lm32/lm32.h: Likewise.
6052         * config/mep/mep.h: Likewise.
6053         * config/visium/visium.h: Likewise.
6054         * system.h: Poison STRUCT_VALUE macro.
6055
6056 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
6057
6058         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6059         CONSTANT_P operands.
6060
6061 2015-09-11  David S. Miller  <davem@davemloft.net>
6062
6063         * config/sparc/constraints.md: Make "U" constraint a real register
6064         constraint.
6065         * config/sparc/sparc.c (TARGET_LRA_P): Define.
6066         (D_MODES, DF_MODES): Add missing cast.
6067         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6068         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6069         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6070         cost to 8.
6071         * config/sparc/sparc.h (PROMOTE_MODE): Define.
6072         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6073         provide these insn when flag_pic.
6074
6075 2015-09-11  Jeff Law  <law@redhat.com>
6076
6077         PR tree-optimization/47679
6078         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6079         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6080         member with m_.  Update inline member functions as necessary.  Add
6081         toplevel comment.
6082         * tree-ssa-scopedtables.c: Update const_and_copies's member
6083         functions to use m_ prefix to access the stack.
6084
6085 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
6086
6087         * graphite-optimize-isl.c (disable_tiling): Remove.
6088         (get_schedule_for_band): Do not use disable_tiling.
6089         (get_prevector_map): Delete function.
6090         (enable_polly_vector): Remove.
6091         (get_schedule_for_band_list): Remove dead code.
6092
6093 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
6094
6095         * graphite-optimize-isl.c (get_tile_map): Refactor.
6096         (get_schedule_for_band): Same.
6097         (getScheduleForBand): Same.
6098         (get_prevector_map): Same.
6099         (get_schedule_for_band_list): Same.
6100         (get_schedule_map): Same.
6101         (get_single_map): Same.
6102         (apply_schedule_map_to_scop): Same.
6103         (optimize_isl): Same.
6104
6105 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6106
6107         PR target/63304
6108         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6109         (movtf): Delete.
6110         * config/aarch64/iterators.md (GPF_TF_F16): New.
6111         (GPF_F16): Delete.
6112
6113 2015-09-10  Nathan Sidwell  <nathan@acm.org>
6114
6115         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6116         (nvptx_reorg): Adjust comments.
6117
6118 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
6119
6120         PR bootstrap/67363
6121         * configure.ac: Check if setenv and unsetenv are declared.
6122         * configure: Rebuild.
6123         * config.in: Rebuild.
6124         * system.h: Declare setenv and unsetenv if not declared.
6125
6126 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6127
6128         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6129         commentary to simplify permute mask adjustment equation.
6130         (special_handling_values): Add SH_VPERM.
6131         (const_load_sequence_p): New function.
6132         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6133         the mask loaded from the constant pool.
6134         (adjust_vperm): New function.
6135         (handle_special_swappables): Call adjust_vperm.
6136         (dump_swap_insn_table): Handle SH_VPERM.
6137
6138 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
6139
6140         * shrink-wrap.c (requires_stack_frame_p): Remove static.
6141         * shrink-wrap.h (requires_stack_frame_p): Put back.
6142
6143 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
6144
6145         * reload1.c (elimination_costs_in_insn): Locally turn
6146         -Wmaybe-uninitialized into a warning.
6147
6148 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
6149
6150         * shrink-wrap.c (requires_stack_frame_p): Make static.
6151         (prepare_shrink_wrap): Likewise.
6152         (dup_block_and_redirect): Likewise.
6153         * shrink-wrap.h: Remove declarations of those functions.
6154
6155 2015-09-10  Mark Wielaard  <mjw@redhat.com>
6156
6157         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6158
6159 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
6160
6161         PR target/67506
6162         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6163         missing simplify_gen_subreg.
6164
6165 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6166
6167         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6168         the vector element is bigger than 64 bit.
6169
6170 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6171
6172         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6173         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6174
6175 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6176
6177         * config/s390/s390.c: Add V1TImode to constant pool modes.
6178
6179 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6180
6181         PR target/67439
6182         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6183         predicate.  Set predicable_short_it attr to "no".
6184
6185 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
6186
6187         PR rtl-optimization/67421
6188         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6189         left wide shift tranformation.
6190
6191 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
6192
6193         * common/config/arc/arc-common.c: Remove references to A5.
6194         * config/arc/arc-opts.h: Likewise.
6195         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6196         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6197         * config/arc/t-arc-newlib: Likewise.
6198
6199 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
6200
6201         * config/arc/arc.md (length): Fix attribute length for conditional
6202         executed instructions with long immediate.
6203
6204 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6205
6206         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6207         type for second alternative.
6208
6209 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
6210
6211         * doc/invoke.texi (Downloading GCC): Mention
6212         contrib/download_prerequisites script.
6213
6214 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
6215
6216         PR c++/67523
6217         * gimplify.c (gimplify_omp_for): If inner stmt is not found
6218         for combined loop, assert seen_error () and return GS_ERROR.
6219
6220         PR middle-end/67521
6221         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6222         if decl is already in outer->variables.
6223
6224         PR middle-end/67517
6225         * gimplify.c (gimplify_scan_omp_clauses): Instead of
6226         asserting that decl is not specified in octx->variables,
6227         break out of the loop if it is.
6228
6229         PR c++/67514
6230         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6231         iterator is not explicitly determined, but is defined inside
6232         of the combined workshare region, handle it like if it has
6233         DECL_EXPR in OMP_FOR_PRE_BODY.
6234
6235 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6236
6237         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6238         (*cmp<mode>): Add assembler spacing.
6239         (setcc_int<mode>, set_cc_float<mode>): Likewise.
6240         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6241         level.
6242         (write_func_decl_from_insn): Refactor argument loops & comma emission.
6243         (nvptx_expand_call): Likewise.
6244         (nvptx_output_call_insn): Likewise.
6245         (nvptx_reorg_subreg): Add spacing.
6246
6247 2015-09-09  Marek Polacek  <polacek@redhat.com>
6248
6249         PR middle-end/67512
6250         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6251         for comparisons.
6252
6253 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
6254
6255         PR c++/53184
6256         * doc/invoke.texi ([Wsubobject-linkage]): Document.
6257
6258 2015-09-09  Tom de Vries  <tom@codesourcery.com>
6259
6260         * params-list.h: Add missing copyright notice.
6261
6262 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6263
6264         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
6265         sel_truesi, not andsi.
6266
6267 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6268
6269         * config/arm/arm.md (*subsi3_compare0): Rename to...
6270         (subsi3_compare0): ... This.
6271         (modsi3): New define_expand.
6272         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
6273         when operand is power of 2.
6274
6275 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6276
6277         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6278         (*neg<mode>2_compare0): Rename to...
6279         (neg<mode>2_compare0): ... This.
6280         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6281         Move check for speed inside the if-then-elses.  Reflect
6282         CSNEG sequence in MOD by power of 2 case.
6283
6284 2015-09-09  Alan Modra  <amodra@gmail.com>
6285
6286         PR target/67378
6287         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6288         reload replacement for PRE_MODIFY address reg.
6289
6290 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
6291
6292         PR tree-optimization/53852
6293         * config.in: Regenerate.
6294         * configure: Regenerate.
6295         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6296         * graphite-optimize-isl.c (optimize_isl): Stop computation when
6297         PARAM_MAX_ISL_OPERATIONS is reached.
6298         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6299         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6300         result equal to isl_stat_ok as the status now can be isl_error_quota.
6301         (subtract_commutative_associative_deps): Same.
6302         (compute_deps): Same.
6303
6304 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
6305             Sebastian Pop  <s.pop@samsung.com>
6306
6307         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6308         Return the parameter if it was saved in corresponding
6309         parameter_rename_map of the region.
6310         (copy_def): Copy def from sese region to the newly created region.
6311         (copy_internal_parameters): Copy all the internal parameters defined
6312         within a region to the newly created region.
6313         (graphite_regenerate_ast_isl): Copy parameters to the new region before
6314         translating isl to gimple.
6315         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6316         the loop-nest does not have any data-references.
6317         (build_graphite_scops): Create a scop only when there is at least one
6318         loop inside it.
6319         (contains_only_close_phi_nodes): Deleted.
6320         (print_graphite_scop_statistics): Deleted
6321         (print_graphite_statistics): Deleted
6322         (limit_scops): Deleted.
6323         (build_scops): Removed call to limit_scops.
6324         * sese.c (new_sese): Construct.
6325         (free_sese): Destruct.
6326         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6327         added.
6328         (set_rename): Pass sese region so that parameters inside the region can
6329         be added to its parameter_rename_map.
6330         (rename_uses): Pass sese region.
6331         (graphite_copy_stmts_from_block): Do not copy parameters that have been
6332         generated in the header of the scop. For each SSA_NAME in the
6333         parameter_rename_map rename its usage.
6334         (invariant_in_sese_p_rec): Return false if tree t is defined outside
6335         sese region.
6336         (scalar_evolution_in_region): If the tree t is invariant just return t.
6337         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6338         struct sese to keep track of all the parameters which need renaming.
6339         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6340         any data-refs.
6341         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6342
6343 2015-09-08  Tom de Vries  <tom@codesourcery.com>
6344
6345         * Makefile.in (generated_files): Add params.list.
6346         (params.list, s-params.list): Add rule.
6347         * params.h (enum compiler_param): Include params-list.h.  Move define
6348         DEFPARAM, include params.def and undef DEFPARAM ...
6349         * params-list.h: ... here.  New file.
6350
6351 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
6352
6353         * pretty-print.h (printer_fn): Fix typo in comment.
6354
6355 2015-09-07  Jeff Law  <law@redhat.com>
6356
6357         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6358
6359 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6360
6361         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6362         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6363         (arm_neon_fp16_hw): New.
6364
6365 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6366
6367         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6368         UNITS_PER_WORD >= 4.
6369
6370 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6371
6372         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6373         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6374         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6375         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6376         (aarch64_float_extend_lo_v2df): Rename to...
6377         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6378
6379         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6380         (float_extend_lo): Add v4sf.
6381
6382         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6383         * config/aarch64/iterators.md (VQ_HSF): New iterator.
6384         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6385         (Vwide): New mode_attr.
6386
6387 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6388
6389         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6390         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6391         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6392         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6393         V4HF and V8HF variants to iterator.
6394
6395         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6396
6397         * config/aarch64/iterators.md (VDQF_F16): New.
6398         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6399
6400 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6401
6402         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6403         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6404         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6405         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6406         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6407         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6408         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6409         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6410         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6411         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6412         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6413         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6414         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6415         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6416         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6417         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6418         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6419         vld1q_dup_f16): New.
6420
6421 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6422
6423         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6424         Reparameterize to...
6425         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6426         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6427         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6428
6429         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6430         v8hf variant.
6431         (float_truncate_lo_): Use BUILTIN_VDF iterator.
6432
6433         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6434
6435         * config/aarch64/iterators.md (VDF, Vdtype): New.
6436         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6437
6438 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6439
6440         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6441         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6442         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6443         Add __builtin_aarch64_simd_hf.
6444         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6445         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6446         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6447         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6448         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6449         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6450         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6451         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6452         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6453
6454         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6455         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6456         (VDC, Vdbl): Add V4HF.
6457
6458 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6459
6460         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6461         V4HFmode and V8HFmode.
6462         (aarch64_split_simd_move): Add case for V8HFmode.
6463         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6464         (aarch64_simd_builtin_std_type): Handle HFmode.
6465         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6466
6467         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6468         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6469         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6470
6471         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6472         Float16x8_t.
6473
6474         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6475         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6476         New typedefs.
6477         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6478         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6479         vst1q_lane_f16): New.
6480         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6481         (VALLDI_F16, VALL_F16): New.
6482         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6483         Add cases for V4HF and V8HF.
6484         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6485
6486 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6487
6488         * config/arm/arm-builtins.c (VAR11, VAR12): New.
6489         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6490         vld4_dup): Add v4hf variant.
6491         (vget_high, vget_low): Add v8hf variant.
6492         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6493         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6494         v4hf and v8hf variants.
6495
6496         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6497         (VDX): Add V4HF.
6498         (V_DOUBLE): Add case for V4HF.
6499         (VQX): Add V8HF.
6500         (V_HALF): Add case for V8HF.
6501         (VDQX): Add V4HF, V8HF.
6502         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6503         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6504
6505         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6506         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6507         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6508         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6509         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6510         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6511         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6512         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6513         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6514
6515         (neon_vcreate, neon_vreinterpretv8qi<mode>,
6516         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6517         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6518         Change VDX to VD_RE.
6519
6520         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6521         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6522         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6523
6524         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6525         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6526         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6527         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6528         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6529         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6530         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6531         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6532         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6533
6534 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6535
6536         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6537         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6538         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6539         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6540         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6541         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6542         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6543         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6544         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6545         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6546         New.
6547
6548 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6549
6550         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6551
6552         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6553
6554         * config/arm/arm-builtins.c (v8hf_UP): New.
6555         (arm_init_simd_builtin_types): Initialise Float16x8_t.
6556
6557         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6558
6559         * config/arm/arm_neon.h (float16x8_t): New typedef.
6560
6561 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6562
6563         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6564         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6565         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6566         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6567         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6568         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6569         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6570         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6571         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6572         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6573
6574 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
6575
6576         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6577         non-alphanumeric characters in the symbol name.
6578
6579 2015-09-07  Marek Polacek  <polacek@redhat.com>
6580
6581         PR inline-asm/67448
6582         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6583         a memory input.
6584
6585 2015-09-07  Marek Polacek  <polacek@redhat.com>
6586
6587         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6588
6589 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
6590
6591         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6592         not warn.
6593
6594 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
6595
6596         PR middle-end/67452
6597         * tree-ssa-live.c: Include cfgloop.h.
6598         (remove_unused_locals): Clear loop->simduid if simduid is about
6599         to be removed from cfun->local_decls.
6600
6601 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6602
6603         PR target/65210
6604         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6605         attribute as well.
6606
6607 2015-09-04  Tom de Vries  <tom@codesourcery.com>
6608
6609         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6610
6611 2015-09-04  Jeff Law  <law@redhat.com>
6612
6613         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6614         unnecessary constructor.  It's now trivial and implemented inside...
6615         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6616         constructor.  Add comments to various methods.  Remove unused
6617         private fields.
6618         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6619         * tree-vrp.c (identify_jump_threads): Likewise.
6620         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6621         indentation issues.
6622         (thread_across_edge): Similarly.
6623         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6624         arguments in constructor call.
6625
6626 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
6627
6628         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6629         temp path contains a '-'.
6630
6631 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6632             Petr Murzin  <petr.murzin@intel.com>
6633             Kirill Yukhin  <kirill.yukhin@intel.com>
6634
6635         * config/i386/i386-builtin-types.def
6636         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6637         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6638         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6639         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6640         * config/i386/i386.c
6641         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6642         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6643         IX86_BUILTIN_SCATTERALTDIV16SI.
6644         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6645         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6646         __builtin_ia32_scatteraltdiv8si.
6647         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6648         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6649         IX86_BUILTIN_SCATTERALTDIV16SI.
6650         (ix86_vectorize_builtin_scatter): New.
6651         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6652         ix86_vectorize_builtin_scatter.
6653
6654 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6655             Petr Murzin  <petr.murzin@intel.com>
6656             Kirill Yukhin  <kirill.yukhin@intel.com>
6657
6658         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6659         * doc/tm.texi: Regenerate.
6660         * target.def: Add scatter builtin.
6661         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6662         for loads/stores in case of gather/scatter accordingly.
6663         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6664         STMT_VINFO_GATHER_P(S).
6665         (vect_check_gather): Rename to ...
6666         (vect_check_gather_scatter): this.
6667         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6668         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6669         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6670         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6671         variable and new checkings for it accordingly.
6672         * tree-vect-stmts.c
6673         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6674         STMT_VINFO_GATHER_P(S).
6675         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6676         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6677
6678 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6679
6680         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6681         define_insn.
6682         (mulv16qi3): New define_expand.
6683
6684 2015-09-03  Martin Sebor  <msebor@redhat.com>
6685
6686         PR c/66516
6687         * doc/extend.texi (Other Builtins): Document when the address
6688         of a built-in function can be taken.
6689
6690 2015-09-03  Richard Biener  <rguenther@suse.de>
6691
6692         * dwarf2out.c (flush_limbo_die_list): Split out from ...
6693         (dwarf2out_early_finish): ... here.
6694         (dwarf2out_finish): Do not call dwarf2out_early_finish but
6695         flush_limbo_die_list.  Assert we have no deferred asm names.
6696
6697 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6698
6699         * optabs.c (expand_binop): Don't create a broadcast vector with a
6700         source element wider than the inner mode.
6701
6702 2015-09-03  Richard Biener  <rguenther@suse.de>
6703
6704         * varasm.c (output_constant): Use fold_convert instead of
6705         wide_int_to_tree.
6706
6707 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6708
6709         PR tree-optimization/65637
6710         * omp-low.c (expand_omp_for_static_chunk): Handle case that
6711         fin_bb has 2 predecessors.
6712
6713 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6714
6715         PR tree-optimization/65637
6716         * omp-low.c (find_phi_with_arg_on_edge): New function.
6717         (expand_omp_for_static_chunk): Fix inner loop phi.
6718
6719 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6720
6721         PR tree-optimization/65637
6722         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6723         that head is NULL.
6724
6725 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6726
6727         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6728
6729 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6730
6731         * doc/invoke.texi (parloops-chunk-size): Add item.
6732         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6733         * tree-parloops.c: Include params.h.
6734         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6735         param parloops-chunk-size is used.
6736
6737 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6738
6739         PR middle-end/67351
6740         * fold-const.c (fold_binary_loc) : Move
6741         Transform (x >> c) << c into x & (-1<<c) or
6742         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6743         types using simplify and match.
6744         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6745         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6746
6747 2015-09-03  Richard Biener  <rguenther@suse.de>
6748
6749         PR ipa/66705
6750         * tree-ssa-structalias.c (ctor_for_analysis): New function.
6751         (create_variable_info_for_1): Use ctor_for_analysis instead
6752         of get_constructor.
6753         (create_variable_info_for): Likewise.
6754
6755 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
6756
6757         PR ipa/67280
6758         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6759         in new callgraph edge.
6760
6761 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
6762
6763         PR target/59810
6764         PR target/63652
6765         PR target/63653
6766         * config/aarch64/aarch64-simd.md
6767         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6768         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6769         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6770         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6771
6772 2015-09-02  Alan Modra  <amodra@gmail.com>
6773
6774         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6775         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6776         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6777
6778 2015-09-02  Alan Modra  <amodra@gmail.com>
6779
6780         PR target/67417
6781         * config/rs6000/predicates.md (current_file_function_operand): Don't
6782         return true for weak symbols.
6783         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6784
6785 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
6786             Andrew Bennett  <andrew.bennett@imgtec.com>
6787
6788         * config/mips/mips-opts.h (mips_cb_setting): New enum.
6789         * config/mips/mips-protos.h: Add definitions for
6790         mips_output_jump and mips_output_equal_conditional_branch
6791         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6792         JIC instruction.
6793         (mips_emit_compare): Add support for the MIPS R6 conditional
6794         compact branches.
6795         (mips_process_sync_loop): Likewise.
6796         (mips_output_order_conditional_branch): Likewise.
6797         (mips16_build_call_stub): Change MIPS_CALL to
6798         mips_output_jump.
6799         (mips_print_operand_punctuation): Update 's' case to only
6800         apply to micromips r2.
6801         (mips_adjust_insn_length): Add support for forbidden slot
6802         hazards.
6803         (mips_avoid_hazard): Likewise.
6804         (mips_reorg_process_insns): Likewise.
6805         (mips_output_jump): New function.
6806         (mips_output_equal_conditional_branch): Likewise.
6807         (mips_output_conditional_branch): Use jrc/bc if compact
6808         branch support is enabled.  Ensure the forbidden slots
6809         between the two branch instructions is filled with a nop.
6810         (mips_option_override): Add support to process the compact
6811         branch option and set the correct defaults.  Prevent
6812         non-explict relocs being using for MIPS R6.
6813         (mips_trampoline_init): Add compact branch support.
6814         (mips_mult_zero_zero_cost): Allow zero initialisation of
6815         accumulators with TARGET_DSP.
6816         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6817         (TARGET_CB_MAYBE): New define.
6818         (TARGET_CB_ALWAYS): New define.
6819         (ISA_HAS_DELAY_SLOTS): New define.
6820         (ISA_HAS_COMPACT_BRANCHES): New define.
6821         (ISA_HAS_JRC): New define.
6822         (MIPS_BRANCH_C): New define.
6823         (MIPS_CALL): Removed.
6824         (MICROMIPS_J): Removed.
6825         * config/mips/mips.md (compact_form): New attr.
6826         (hazard): Add support for forbidden slots.
6827         (define_delay): Add support for compact branches.
6828         (*branch_order<mode>): Likewise.
6829         (*branch_order<mode>_inverted): Likewise.
6830         (*branch_equality<mode>): Likewise.
6831         (*branch_equality<mode>_inverted): Likewise.
6832         (*jump_absolute): Likewise.
6833         (*jump_pic): Likewise.
6834         (indirect_jump): Use mips_output_jump to produce assembly output.
6835         (tablejump_<mode>"): Likewise.
6836         (*<optab>"): Likewise.
6837         (<optab>_internal): Likewise.
6838         (sibcall_internal): Likewise.
6839         (sibcall_value_internal): Likewise.
6840         (sibcall_value_multiple_internal): Likewise.
6841         (call_internal): Likewise.
6842         (call_split): Likewise.
6843         (call_internal_direct): Likewise.
6844         (call_direct_split): Likewise.
6845         (call_value_internal): Likewise.
6846         (call_value_split): Likewise.
6847         (call_value_internal_direct): Likewise.
6848         (call_value_direct_split): Likewise.
6849         (call_value_multiple_internal): Likewise.
6850         (call_value_multiple_split): Likewise.
6851         (mips_get_fcsr_mips16_<mode>): Likewise.
6852         (mips_set_fcsr_mips16_<mode>): Likewise.
6853         (tls_get_tp_mips16_<mode>): Likewise.
6854         * config/mips/mips.opt: Add -mcompact-branches option.
6855         * config/mips/predicates.md (order_operator): Ensure the
6856         conditional compact branches are only used if the ISA them.
6857         * doc/invoke.texi: Document -mcompact-branches option.
6858
6859 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
6860
6861         PR target/61578
6862         * lra-lives.c (process_bb_lives): Process move pseudos with the
6863         same value for copies and preferences
6864         * lra-constraints.c (match_reload): Create match reload pseudo
6865         with the same value from single dying input pseudo.
6866
6867 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6868
6869         PR target/67405
6870         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6871
6872 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
6873
6874         * trans-mem.c: Add contributed-by.
6875         * trans-mem.h: Same.
6876
6877 2015-09-01  Richard Biener  <rguenther@suse.de>
6878
6879         * expr.c (expand_expr_real_1): For expanding TERed defs
6880         set the current location to that of the def if not UNKNOWN.
6881
6882 2015-09-01  David Sherwood  <david.sherwood@arm.com>
6883
6884         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6885
6886 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6887
6888         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6889         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
6890         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6891         Include rtl-iter.h.
6892         (noce_simple_bbs): New function.
6893         (noce_try_move): Bail if basic blocks are not simple.
6894         (noce_try_store_flag): Likewise.
6895         (noce_try_store_flag_constants): Likewise.
6896         (noce_try_addcc): Likewise.
6897         (noce_try_store_flag_mask): Likewise.
6898         (noce_try_cmove): Likewise.
6899         (noce_try_minmax): Likewise.
6900         (noce_try_abs): Likewise.
6901         (noce_try_sign_mask): Likewise.
6902         (noce_try_bitop): Likewise.
6903         (bbs_ok_for_cmove_arith): New function.
6904         (noce_emit_all_but_last): Likewise.
6905         (noce_emit_insn): Likewise.
6906         (noce_emit_bb): Likewise.
6907         (noce_try_cmove_arith): Handle non-simple basic blocks.
6908         (insn_valid_noce_process_p): New function.
6909         (contains_mem_rtx_p): Likewise.
6910         (bb_valid_for_noce_process_p): Likewise.
6911         (noce_process_if_block): Allow non-simple basic blocks
6912         where appropriate.
6913
6914 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
6915
6916         * tree-ssa-dom.c (record_equivalences_from_phis,
6917         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6918         (lookup_avail_expr): Likewise, and remove comment and unused temp.
6919
6920 2015-09-01  Nick Clifton  <nickc@redhat.com>
6921
6922         * config/msp430/msp430.opt (mcpu): Fix typo.
6923
6924 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6925
6926         * config/aarch64/aarch64.c (aarch64_set_current_function):
6927         Re-layout any vector parameters have non-simd layout.
6928         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6929         Delete.
6930         (aarch64_simd_expand_args): Delete call to the above.
6931
6932 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
6933
6934         * doc/invoke.texi (asan-stack): Add space before option.
6935
6936 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6937
6938         * tree.h (zerop): New function.
6939         * tree.c (zerop): Likewise.
6940         (element_precision): Handle expressions.
6941         * match.pd (define_predicates): Add zerop.
6942         (x <= +Inf): Fix comment.
6943         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6944         * fold-const.c (fold_binary_loc): ... here. Remove.
6945
6946 2015-08-31  Richard Biener  <rguenther@suse.de>
6947
6948         PR middle-end/67381
6949         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
6950
6951 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6952
6953         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
6954         (CEXPI): New operator list.
6955         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
6956         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
6957         Converted from ...
6958         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
6959
6960 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6961
6962         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
6963         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
6964         parameter.
6965         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
6966         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
6967         (rewrite_into_loop_closed_ssa): ... here.
6968         (replace_uses_in_dominated_bbs): Remove function.
6969         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
6970         rewrite_into_loop_closed_ssa_1.
6971
6972 2015-08-31  Michael Matz  <matz@suse.de>
6973
6974         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
6975         enter entry and exit blocks for reverse post order.
6976
6977 2015-08-31  Richard Biener  <rguenther@suse.de>
6978
6979         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
6980         (lto_location_cache::current_sysp): Likewise.
6981         (output_block::current_sysp): Likewise.
6982         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
6983         (lto_location_cache::apply_location_cache): Properly record
6984         system header locations.
6985         (lto_location_cache::input_location): Input whether a file
6986         is a system header.
6987         * lto-streamer-out.c (lto_output_location): Stream whether a file
6988         is a system header.
6989
6990 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6991
6992         PR bootstrap/67363
6993         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
6994
6995 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6996
6997         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
6998         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
6999         Improve function header comments.
7000
7001 2015-08-30  Michael Collison  <michael.collison@linaro.org>
7002
7003         PR other/67320
7004         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7005         standard names
7006
7007 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7008
7009         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7010         special_handling bitfield.
7011         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7012         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7013         that represents a general xxpermdi.
7014         (insn_is_swappable_p): Add handling for vec_concat of two
7015         doublewords, which maps to a specific xxpermdi.
7016         (adjust_xxpermdi): New function.
7017         (adjust_concat): Likewise.
7018         (handle_special_swappables): Call adjust_xxpermdi and
7019         adjust_concat.
7020         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7021
7022 2015-08-30  Rich Felker <dalias@libc.org>
7023
7024         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7025         case instead of sh[123456ble]-*-*.
7026
7027 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
7028
7029         * ira.c (print_unform_and_important_classes,
7030         print_translated_classes): Remove reg_class_names static array.
7031         (print_unform_and_important_classes): Rename to ...
7032         (print_uniform_and_important_classes): ... this.
7033         (ira_debug_allocno_classes): Update accordingly.
7034
7035 2015-08-29  Tom de Vries  <tom@codesourcery.com>
7036
7037         PR tree-optimization/46193
7038         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7039         clause.
7040
7041 2015-08-28  Jeff Law  <law@redhat.com>
7042
7043         PR lto/66752
7044         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7045         unable to find X NE 0 in the tables, return X as the simplified
7046         condition.
7047         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7048         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
7049         to VISISTED_BBS.
7050         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7051         after removing the control flow statement and unnecessary edges.
7052
7053 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
7054
7055         Revert:
7056         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7057
7058         PR tree-optimization/67283
7059         * tree-sra.c (type_consists_of_records_p): Rename to...
7060         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7061
7062         (completely_scalarize_record): Rename to...
7063         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7064         code to:
7065         (scalarize_elem): New.
7066
7067 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
7068
7069         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7070         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7071         (aarch64_symbol_type): Likewise.
7072         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7073         Likewise.
7074         (aarch64_expand_mov_immediate): Likewise.
7075         (aarch64_print_operand): Likewise.
7076         (aarch64_classify_tls_symbol): Likewise.
7077
7078 2015-08-28  Richard Biener  <rguenther@suse.de>
7079
7080         * cgraphunit.c (symbol_table::compile): Move early debug generation
7081         and finish...
7082         (symbol_table::finalize_compilation_unit): ... back here and
7083         add a !seen_error () guard.
7084
7085 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7086
7087         * toplev.c (process_options): Do not use flag_loop_block,
7088         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
7089         flag_loop_optimize_isl.
7090
7091 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7092
7093         * Makefile.in (OBJS): Remove graphite-blocking.o and
7094         graphite-interchange.o.
7095         * common.opt (floop-strip-mine, floop-interchange, floop-block):
7096         Alias of floop-nest-optimize.
7097         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7098         Document as alias of -floop-nest-optimize.
7099         * graphite-blocking.c: Remove.
7100         * graphite-interchange.c: Remove.
7101         * graphite-optimize-isl.c: Include dumpfile.h.
7102         (getScheduleForBand): Add dump for tiled loops.  Use
7103         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7104         * graphite-poly.c (scop_max_loop_depth): Remove.
7105         (print_scattering_function_1): Remove.
7106         (print_scattering_function): Remove.
7107         (print_scattering_functions): Remove.
7108         (debug_scattering_function): Remove.
7109         (debug_scattering_functions): Remove.
7110         (apply_poly_transforms): Remove use of flag_loop_block,
7111         flag_loop_strip_mine, and flag_loop_interchange.
7112         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7113         PBB_ORIGINAL.
7114         (print_pdr_access_layout): Remove.
7115         (print_pdr): Print ISL representation.
7116         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7117         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7118         (free_scop): Same.
7119         (openscop_print_pbb_domain): Remove.
7120         (print_pbb): Remove call to print_scattering_function.
7121         (openscop_print_scop_context): Remove.
7122         (print_scop_context): Do not print matrices anymore.
7123         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7124         SCOP_TRANSFORMED_SCHEDULE.
7125         (print_isl_set): Add printing of a new line.
7126         (print_isl_map): Same.
7127         (print_isl_aff): Same.
7128         (print_isl_constraint): Same.
7129         (loop_to_lst): Remove.
7130         (scop_to_lst): Remove.
7131         (lst_indent_to): Remove.
7132         (print_lst): Remove.
7133         (debug_lst): Remove.
7134         (dot_lst_1): Remove.
7135         (dot_lst): Remove.
7136         (reverse_loop_at_level): Remove.
7137         (reverse_loop_for_pbbs): Remove.
7138         * graphite-poly.h (pdr_dim_iter_domain): Remove.
7139         (pdr_nb_params): Remove.
7140         (pdr_alias_set_dim): Remove.
7141         (pdr_subscript_dim): Remove.
7142         (pdr_iterator_dim): Remove.
7143         (pdr_parameter_dim): Remove.
7144         (same_pdr_p): Remove.
7145         (struct poly_scattering): Remove.
7146         (struct poly_bb): Remove _original, _transformed, _saved.
7147         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7148         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7149         (PBB_NB_LOCAL_VARIABLES): Remove.
7150         (PBB_NB_SCATTERING_TRANSFORM): Remove.
7151         (schedule_to_scattering): Remove.
7152         (number_of_write_pdrs): Remove.
7153         (pbb_dim_iter_domain): Remove.
7154         (pbb_nb_params): Remove.
7155         (pbb_nb_scattering_orig): Remove.
7156         (pbb_nb_scattering_transform): Remove.
7157         (pbb_nb_dynamic_scattering_transform): Remove.
7158         (pbb_nb_local_vars): Remove.
7159         (pbb_iterator_dim): Remove.
7160         (pbb_parameter_dim): Remove.
7161         (psco_scattering_dim): Remove.
7162         (psct_scattering_dim): Remove.
7163         (psct_local_var_dim): Remove.
7164         (psco_iterator_dim): Remove.
7165         (psct_iterator_dim): Remove.
7166         (psco_parameter_dim): Remove.
7167         (psct_parameter_dim): Remove.
7168         (psct_dynamic_dim): Remove.
7169         (psct_static_dim): Remove.
7170         (psct_add_local_variable): Remove.
7171         (new_lst_loop): Remove.
7172         (new_lst_stmt): Remove.
7173         (free_lst): Remove.
7174         (copy_lst): Remove.
7175         (lst_add_loop_under_loop): Remove.
7176         (lst_depth): Remove.
7177         (lst_dewey_number): Remove.
7178         (lst_dewey_number_at_depth): Remove.
7179         (lst_pred): Remove.
7180         (lst_succ): Remove.
7181         (lst_find_pbb): Remove.
7182         (find_lst_loop): Remove.
7183         (lst_find_first_pbb): Remove.
7184         (lst_empty_p): Remove.
7185         (lst_find_last_pbb): Remove.
7186         (lst_contains_p): Remove.
7187         (lst_contains_pbb): Remove.
7188         (lst_create_nest): Remove.
7189         (lst_remove_from_sequence): Remove.
7190         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7191         (lst_niter_for_loop): Remove.
7192         (pbb_update_scattering): Remove.
7193         (lst_update_scattering_under): Remove.
7194         (lst_update_scattering): Remove.
7195         (lst_insert_in_sequence): Remove.
7196         (lst_replace): Remove.
7197         (lst_substitute_3): Remove.
7198         (lst_distribute_lst): Remove.
7199         (lst_remove_all_before_including_pbb): Remove.
7200         (lst_remove_all_before_excluding_pbb): Remove.
7201         (struct scop): Remove original_schedule, transformed_schedule, and
7202         saved_schedule.
7203         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7204         (SCOP_SAVED_SCHEDULE): Remove.
7205         (poly_scattering_new): Remove.
7206         (poly_scattering_free): Remove.
7207         (poly_scattering_copy): Remove.
7208         (store_scattering_pbb): Remove.
7209         (store_lst_schedule): Remove.
7210         (restore_lst_schedule): Remove.
7211         (store_scattering): Remove.
7212         (restore_scattering_pbb): Remove.
7213         (restore_scattering): Remove.
7214         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7215         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
7216         compute the scattering polyhedron dimension from the dimension of
7217         pbb->domain.
7218         (build_scop_scattering): Update call to
7219         build_pbb_scattering_polyhedrons.
7220         (build_poly_scop): Remove call to scop_to_lst.
7221         * graphite.c (graphite_transform_loops): Add call to print_scop.
7222         (gate_graphite_transforms): Remove use of flag_loop_block,
7223         flag_loop_interchange, and flag_loop_strip_mine.
7224
7225 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7226
7227         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7228         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7229         -floop-nest-optimize.
7230         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7231         (generate_luj_sepclass): Remove.
7232         (generate_luj_options): Remove.
7233         (set_options): Remove opt_luj.
7234         (scop_to_isl_ast): Remove opt_luj.
7235         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7236         flag_loop_unroll_jam.
7237         (getPrevectorMap_full): Remove.
7238         (getScheduleForBandList): Remove map_sepcl.
7239         (getScheduleMap): Same.
7240         (apply_schedule_map_to_scop): Remove sepcl.
7241         (optimize_isl): Same.
7242         * graphite-poly.c (apply_poly_transforms): Remove check for
7243         flag_loop_unroll_jam.
7244         (new_poly_bb): Remove map_sepclass.
7245         * graphite-poly.h (struct poly_bb): Same.
7246         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7247         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7248         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7249         * toplev.c (process_options): Remove flag_loop_unroll_jam.
7250
7251 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
7252
7253         PR target/67317
7254         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
7255         (addqi3_cc): Ditto.
7256         (UNSPEC_ADD_CARRY): Remove.
7257         (addqi3_cconly_overflow): New expander.
7258         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
7259         Adjust for changed add<mode>3_carry.
7260         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
7261         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
7262         (<plusminus_insn><mode>3_carry): Remove expander.
7263         (*<plusminus_insn><mode>3_carry): Split insn pattern to
7264         add<mode>3_carry and sub<mode>3_carry.
7265         (plusminus_carry_mnemonic): Remove code attribute.
7266         (add<mode>3_carry): Canonicalize insn pattern.
7267         (*addsi3_carry_zext): Ditto.
7268         (sub<mode>3_carry): Ditto.
7269         (*subsi3_carry_zext): Ditto.
7270         (adcx<mode>3): Remove insn pattern.
7271         (addcarry<mode>): New insn pattern.
7272         (subborrow<mode>): Ditto.
7273         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
7274         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7275         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7276         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7277         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7278         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7279         Rewrite expander to not clobber carry flag chains.
7280
7281 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
7282
7283         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7284         instead of a rotate.
7285
7286 2015-08-27  Marek Polacek  <polacek@redhat.com>
7287
7288         PR middle-end/67005
7289         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7290         an entry into an irreducible region.
7291
7292 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7293
7294         * configure: Regenerate.
7295
7296 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7297
7298         PR tree-optimization/67283
7299         * tree-sra.c (type_consists_of_records_p): Rename to...
7300         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7301
7302         (completely_scalarize_record): Rename to...
7303         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7304         (scalarize_elem): New.
7305
7306 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7307
7308         * tree-sra.c (completely_scalarize_var): Rename to...
7309         (create_total_scalarization_access): ... Here. Drop call to
7310         completely_scalarize_record.
7311
7312         (analyze_all_variable_accesses): Replace completely_scalarize_var
7313         with create_total_scalarization_access and completely_scalarize_record.
7314
7315 2015-08-27  Alan Modra  <amodra@gmail.com>
7316
7317         PR target/67356
7318         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7319         for operand 1.
7320
7321 2015-08-27  Richard Biener  <rguenther@suse.de>
7322
7323         * passes.c (rest_of_decl_compilation): Guard early_global_decl
7324         call with !seen_error ().
7325         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7326         early debug generation and finish...
7327         (symbol_table::compile): ... here to put it after a !seen_error ()
7328         guard.
7329
7330 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7331
7332         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7333         Solaris 12+.
7334
7335 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7336             Andre Vieira  <andre.simoesdiasvieira@arm.com>
7337
7338         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7339         (*cb<optab><mode>1): Likewise.
7340         (*tb<optab><mode>1): Likewise.
7341         (*cb<optab><mode>1): Likewise.
7342         * config/aarch64/iterators.md (inv_cb): New code attribute.
7343         (inv_tb): Likewise.
7344         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7345         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7346
7347 2015-08-27  Richard Biener  <rguenther@suse.de>
7348
7349         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7350
7351 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7352
7353         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7354         trap to fix ICE.
7355
7356 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7357
7358         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7359         Add declaration.
7360
7361         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7362         comment.
7363         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7364         floating point in VSX registers.
7365         (rs6000_output_move_128bit): Always print out the set insn if we
7366         can't generate an appropriate 128-bit move.
7367         (rs6000_generate_compare): Add support for IEEE 128-bit floating
7368         point in VSX registers comparisons.
7369         (rs6000_expand_float128_convert): Likewise.
7370
7371         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7372         predicate for only GPR hard registers.
7373
7374         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7375         modes to iterators. Add new iterators for moving 128-bit values in
7376         scalar FPR registers and VSX registers.
7377         (FMOVE128): Likewise.
7378         (FMOVE128_FPR): Likewise.
7379         (FMOVE128_GPR): Likewise.
7380         (FMOVE128_VSX): Likewise.
7381         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7382         in VSX registers.
7383         (IFKF): Likewise.
7384         (IBM128): Likewise.
7385         (TFIFKF): Likewise.
7386         (RELOAD): Add IEEE 128-bit floating point modes.
7387         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7388         floating point in VSX registers modes.
7389         (signbit<mode>2, IBM128 iterator): Likewise.
7390         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7391         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7392         (negtf2): Likewise.
7393         (neg<mode>2, TFIFKF iterator): Likewise.
7394         (negtf2_internal): Likewise.
7395         (abstf2): Likewise.
7396         (abs<mode>2, TFIFKF iterator): Likewise.
7397         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7398         VSX insn support for negate, absolute value, and negative absolute
7399         value.
7400         (ieee_128bit_vsx_neg<mode>2): Likewise.
7401         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7402         (ieee_128bit_vsx_abs<mode>2): Likewise.
7403         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7404         (ieee_128bit_vsx_nabs<mode>2): Likewise.
7405         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7406         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7407         floating point in VSX registers.
7408         (unpack<mode>_dm): Likewise.
7409         (unpack<mode>_nodm): Likewise.
7410         (pack<mode>): Likewise.
7411         (unpackv1ti): Likewise.
7412         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7413         (packv1ti): Likewise.
7414         (pack<mode>, FMOVE128_VSX iterator): Likewise.
7415         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7416         registers.
7417         (extenddftf2_internal): Likewise.
7418         (trunctfdf2): Likewise.
7419         (trunctfdf2_internal2): Likewise.
7420         (fix_trunc_helper): Likewise.
7421         (fix_trunctfdi2"): Likewise.
7422         (floatditf2): Likewise.
7423         (floatuns<mode>tf2): Likewise.
7424         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7425         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7426         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7427         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7428         (float<SDI:mode><IFKF:mode>2): Likewise.
7429         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7430
7431 2015-08-26  Renlin Li  <renlin.li@arm.com>
7432
7433         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7434
7435 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7436             Jiong Wang  <jiong.wang@arm.com>
7437
7438         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7439         (tlsie_tiny_<mode>): New define_insn.
7440         (tlsie_tiny_sidi): Likewise.
7441         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7442         SYMBOL_TINY_TLSIE.
7443         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7444         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7445         SYMBOL_TINY_TLSIE.
7446         (aarch64_expand_mov_immediate): Likewise.
7447         (aarch64_print_operand): Likewise.
7448         (arch64_classify_tls_symbol): Likewise.
7449
7450 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7451
7452         * config/arm/arm-arches.def: Replace single value flags with
7453         an initializer built from ARM_FSET_MAKE_CPU1.
7454         * config/arm/arm-cores.def: Likewise.
7455         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7456         derivation from the ARM_CORE macro definition, use the given value
7457         instead.
7458         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7459         ARM_ARCH macro definition, use the given value instead.
7460
7461 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7462
7463         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7464         feature set.
7465         (struct builtin_description): Replace field mask with field
7466         features.
7467         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7468         (IWMMXT2_BUILTIN): Likewise.
7469         (IWMMXT2_BUILTIN2): Likewise.
7470         (FP_BUILTIN): Likewise.
7471         (CRC32_BUILTIN): Likewise.
7472         (CRYPTO_BUILTIN): Likewise.
7473         (iwmmx_mbuiltin): Likewise.
7474         (iwmmx2_mbuiltin): Likewise.
7475         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7476         struct builtin_description.
7477
7478 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7479
7480         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7481         (struct builtin_description): Change type of mask to unsigned
7482         long.
7483         * config/arm/arm-protos.h (insn_flags): Declare as type
7484         arm_feature_set.
7485         (tune_flags): Likewise.
7486         * config/arm/arm.c (feature_count): New.
7487         (insn_flags): Define as type arm_feature_set.
7488         (tune_flags): Likewise.
7489         (struct processors): Define field flags as type arm_feature_set.
7490         (all_cores): Update for change to struct processors.
7491         (all_architectures): Likewise.
7492         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7493         macros.
7494         (arm_option_override_internal): Likewise.
7495         (arm_option_override): Likewise.
7496
7497 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7498             Jiong Wang  <jiong.wang@arm.com>
7499
7500         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7501         tls size for tiny, small, large memory model.
7502         (aarch64_load_symref_appropriately): Support new symbol types.
7503         (aarch64_expand_mov_immediate): Likewise.
7504         (aarch64_print_operand): Likewise.
7505         (aarch64_classify_tls_symbol): Likewise.
7506         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7507         (aarch64_symbol_type): Likewise.
7508         * config/aarch64/aarch64.md (tlsle): Deleted.
7509         (tlsle12_<mode>): New define_insn.
7510         (tlsle24_<mode>): Likewise.
7511         (tlsle32_<mode>): Likewise.
7512         (tlsle48_<mode>): Likewise.
7513         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7514         "aarch64_tlsle32".
7515
7516 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7517
7518         * config/arm/arm-protos.h (FL_NONE): New.
7519         (FL_ANY): New.
7520         (arm_feature_set): New.
7521         (ARM_FSET_MAKE): New.
7522         (ARM_FSET_MAKE_CPU1): New.
7523         (ARM_FSET_MAKE_CPU2): New.
7524         (ARM_FSET_CPU1): New.
7525         (ARM_FSET_CPU2): New.
7526         (ARM_FSET_EMPTY): New.
7527         (ARM_FSET_ANY): New.
7528         (ARM_FSET_HAS_CPU1): New.
7529         (ARM_FSET_HAS_CPU2): New.
7530         (ARM_FSET_HAS_CPU): New.
7531         (ARM_FSET_ADD_CPU1): New.
7532         (ARM_FSET_ADD_CPU2): New.
7533         (ARM_FSET_DEL_CPU1): New.
7534         (ARM_FSET_DEL_CPU2): New.
7535         (ARM_FSET_UNION): New.
7536         (ARM_FSET_INTER): New.
7537         (ARM_FSET_XOR): New.
7538         (ARM_FSET_EXCLUDE): New.
7539         (AFM_FSET_IS_EMPTY): New.
7540         (ARM_FSET_CPU_SUBSET): New.
7541
7542 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7543
7544         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7545         SYMBOL_TLSLE to SYMBOL_TLSLE24.
7546         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7547         Likewise.
7548         (aarch64_expand_mov_immediate): Likewise.
7549         (aarch64_print_operand): Likewise.
7550         (aarch64_classify_symbol): Likewise.
7551
7552 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7553
7554         * config/aarch64/aarch64.opt (mtls-size): New entry.
7555         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7556         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7557         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7558
7559 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7560
7561         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7562         ARM_CORE entry.  Fix some white-space.
7563         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7564         ARM_CORE definition.
7565
7566 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7567
7568         * fold-const.c (fold_binary_loc) : Move Optimize
7569         root(x)*root(y) as root(x*y) to match.pd.
7570         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7571         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7572         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7573         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7574         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7575         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7576         (mult (exps:s @0) (exps:s @1)) : New simplifier.
7577         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7578         (rdiv @0 (exps:s @1)) : New simplifier.
7579
7580 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
7581
7582         * gcc.c (driver::finalize): Only assign to extra_specs if
7583         [EXTRA_SPECS].
7584
7585 2015-08-25  Marek Polacek  <polacek@redhat.com>
7586
7587         PR middle-end/67330
7588         * varasm.c (declare_weak): Return after giving an error.
7589
7590 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
7591
7592         * gcc-main.c (main): Add params to driver ctor.
7593         * gcc.c (class env_manager): New.
7594         (env): New global.
7595         (env_manager::init): New.
7596         (env_manager::get): New.
7597         (env_manager::xput): New.
7598         (env_manager::restore): New.
7599         Poison getenv and putenv.
7600         (DEFAULT_TARGET_SYSTEM_ROOT): New.
7601         (target_system_root): Update initialization to use
7602         DEFAULT_TARGET_SYSTEM_ROOT.
7603         (struct spec_list): Add field "default_ptr".
7604         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7605         (init_spec): Likewise.
7606         (set_spec): Clear field "default_ptr".
7607         (read_specs): Free "spec" and "buffer".
7608         (xputenv): Reimplement in terms of env_manager.
7609         (process_command): Replace ::getenv calls with calls to the
7610         env_manager singleton.
7611         (process_brace_body): Free string in three places.
7612         (driver::driver): New.
7613         (driver::~driver): New.
7614         (used_arg): Convert from a function to...
7615         (class used_arg_t): ...this class, and...
7616         (used_arg): ...this new global instance.
7617         (used_arg_t::finalize): New function.
7618         (getenv_spec_function): Add "const" to local "value".  Replace
7619         ::getenv call with call to the env_manager singleton.
7620         (path_prefix_reset): New function.
7621         (driver::finalize): New function.
7622         * gcc.h (driver::driver): New.
7623         (driver::~driver): New.
7624         (driver::finalize): New.
7625
7626 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7627
7628         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7629         target doesn't have one.
7630
7631 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7632
7633         PR target/67346
7634         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7635
7636 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7637
7638         PR target/67344
7639         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7640         a define_insn, remove second alternative.
7641
7642 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
7643             Joseph Myers  <joseph@codesourcery.com>
7644
7645         * gcc.c (struct switchstr): Expand comment.
7646
7647 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7648
7649         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7650         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7651
7652 2015-08-25  Richard Biener  <rguenther@suse.de>
7653
7654         PR middle-end/67306
7655         * genmatch.c (expr::gen_transform): Verify the result of
7656         builtin_decl_implicit.
7657         (dt_simplify::gen_1): Likewise.
7658
7659 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7660
7661         * config/arm/constraints.md: Also list Cs and US ARM-specific
7662         constraints as used.
7663
7664 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7665
7666         PR target/66609
7667         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7668         UNSPEC_PCREL.
7669         (nonpic_symbol_mentioned_p): Likewise.
7670         (sh_delegitimize_address): Likewise.
7671         (sh_function_ok_for_sibcall): Take into account weak symbols.
7672         (sh_expand_sym_label2reg): New.
7673         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7674         * config/sh/sh.md (UNSPEC_PCREL): New enum.
7675         (call_pcrel): Use sh_expand_sym_label2reg.
7676         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7677         (symPCREL_label2reg) New expand.
7678
7679 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7680
7681         * graphite-poly.c: Change type of region from void* to sese.
7682         * graphite-poly.h (struct scop): Changing the type of scop::region
7683         from void* to sese. Change accessor macro accordingly.
7684         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7685
7686 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7687
7688         * graphite-scop-detection.c (stmt_simple_for_scop_p):
7689         Constrain only on INTEGER_TYPE.
7690
7691 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7692
7693         PR target/67211
7694         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7695         -mefficient-unaligned-vsx on ISA 2.7.
7696
7697         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7698         option to a masked option.
7699
7700         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7701         logic for -mefficient-unaligned-vsx so that it is set via an arch
7702         ISA option, instead of being set if -mtune=power8 is set. Move
7703         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7704         near other default option handling.
7705
7706 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7707
7708         * genflags.c (gen_macro): Delete.
7709         (gen_proto): Don't create GEN.*CALL.* macros.
7710         * gensupport.h (get_file_location): Declare.
7711         * gensupport.c (rtx_locs): New variable.
7712         (read_md_rtx): Record rtx locations.
7713         (get_file_location): New function.
7714         * target-insns.def (call, call_pop, call_value, call_value_pop)
7715         (sibcall, sibcall_value): New patterns.
7716         * gentarget-def.c (parse_argument): New function.
7717         (def_target_insn): Use it.  Handle optional operands.  Raise an
7718         error if an .md pattern has the wrong number of operands for the
7719         pattern name.  Remove the names of unused operands from the prototype.
7720         * builtins.c (expand_builtin_apply): Use targetm functions
7721         instead of HAVE_call_value and GEN_CALL_VALUE.
7722         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
7723         and sibcall_value_pop.
7724         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7725         of GEN_CALL.
7726         * config/alpha/alpha.md (untyped_call): Likewise.
7727         * config/iq2000/iq2000.md (untyped_call): Likewise.
7728         * config/m68k/m68k.md (untyped_call): Likewise.
7729         * config/mips/mips.md (untyped_call): Likewise.
7730         * config/pa/pa.md (untyped_call): Likewise.
7731         * config/rs6000/rs6000.md (untyped_call): Likewise.
7732         * config/sparc/sparc.md (untyped_call): Likewise.
7733         * config/tilegx/tilegx.md (untyped_call): Likewise.
7734         * config/tilepro/tilepro.md (untyped_call): Likewise.
7735         * config/visium/visium.md (untyped_call): Likewise.
7736         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7737         gen_call_value instead of GEN_CALL_VALUE.
7738         * config/arm/arm.md (untyped_call): Likewise.
7739         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7740         GEN_CALL.
7741
7742 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7743
7744         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7745         (have_cbranchcc4): New variable.
7746         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7747         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7748         (if_convert): Initialize have_cbranchcc4.
7749
7750 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7751
7752         * builtins.c (expand_cmpstrn): Rename to...
7753         (expand_cmpstrn_or_cmpmem): ...this.
7754         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7755         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7756         Remove mode argument.
7757         (expand_builtin): Update accordingly.
7758
7759 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7760
7761         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7762         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
7763         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7764         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7765         Add predicates for operands 0 and 3.
7766         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7767         operand.
7768         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7769         immediate_operand to nonmemory_operand.
7770
7771 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7772
7773         * df-scan.c (df_insn_info_init_fields): New function, split out
7774         from...
7775         (df_insn_create_insn_record): ...here.
7776         (df_insn_info_free_fields): New function, split out from...
7777         (df_insn_info_delete): ...here.
7778         (df_insn_rescan): Use the new functions instead of freeing and
7779         reallocating the df_insn_info.
7780
7781 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7782
7783         * doc/install.texi (Binaries): Remove links no longer valid.
7784
7785 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7786
7787         * config/nvptx/mkoffload.c (process): Replace
7788         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7789
7790 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
7791
7792         PR target/67329
7793         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7794
7795 2015-08-24  Renlin Li  <renlin.li@arm.com>
7796
7797         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7798         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7799         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7800         * config/arm/constraints.md ("j"): Add check for high code.
7801
7802 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7803
7804         PR tree-optimization/65468
7805         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7806         chunk_size is one.
7807
7808 2015-08-24  Nathan Sidwell  <nathan@acm.org>
7809
7810         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7811         change to nvptx_type_from_mode call. Use arg_promotion for both
7812         split and non-split args.
7813
7814 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7815
7816         * target-insns.def (movstr): New pattern.
7817         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7818         (expand_movstr): Use targetm rather than HAVE_movstr/
7819         CODE_FOR_movstr.
7820
7821 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7822
7823         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7824         cast syntax.
7825
7826 2015-08-24  Andrew Pinski  <apinski@cavium.com>
7827
7828         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7829         AARCH64_EXTRA_TUNING_OPTION.
7830         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7831         New enum.
7832         (aarch64_extra_tuning_flags): Base the shifted value on the index
7833         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7834         * config/aarch64/aarch64.c: Remove the last argument to
7835         AARCH64_EXTRA_TUNING_OPTION.
7836
7837 2015-08-23  Nathan Sidwell  <nathan@acm.org>
7838
7839         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7840         decls.
7841         (nvptx_declare_function_name): Insert formatting tabs for
7842         consistency.
7843
7844 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7845
7846         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7847         parm_decl, rather than generating a dummy default def in cfun.
7848         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
7849         ssa_name from cfun and child_fn do not share a stmt as def stmt.
7850         (move_stmt_op): Handle PARM_DECl.
7851         (gather_ssa_name_hash_map_from): New function.
7852         (move_sese_region_to_fn): Add default defs for function params, and add
7853         them to vars_map.  Release copied ssa names.
7854         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7855
7856 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7857
7858         * doc/sourcebuild.texi: Rename vect_no_int_max with
7859         vect_no_int_min_max.  Update description.
7860
7861 2015-08-22  Andrew Pinski  <apinski@cavium.com>
7862
7863          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7864         * config/aarch64/aarch64-protos.h
7865         (aarch64_fusion_pairs_index): New enum.
7866         (aarch64_fusion_pairs): Base the shifted value on the index instead
7867         Rewrite AARCH64_FUSE_ALL to be based on the end index.
7868         of the argument to AARCH64_FUSION_PAIR.
7869         * config/aarch64/aarch64.c: Remove the last argument to
7870         AARCH64_FUSION_PAIR.
7871
7872 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
7873
7874         * dominance.c (new_zero_array): Define.
7875         (dom_info): Redefine as class with proper encapsulation.
7876         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7877         Add new members.
7878         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
7879         allocations/deallocations.  Pass function as parameter (instead of
7880         using cfun).
7881         (dom_info::get_idom): Define accessor method.
7882         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7883         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
7884         (calculate_dominance_info): Adjust to use dom_info class.
7885         (verify_dominators): Likewise.
7886
7887 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
7888
7889         * print-rtl.c (print_rtx): Check the correct range for
7890         flag_dump_unnumbered_links to behave as documented.
7891
7892         PR rtl-optimization/67227
7893         PR rtl-optimization/64164
7894         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7895         (nonoverlapping_memrefs_p): Test offsets and sizes when given
7896         identical gimple_reg exprs.
7897
7898 2015-08-21  Nathan Sidwell  <nathan@acm.org>
7899
7900         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7901         expansion.
7902         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7903         crtl->stack_alignment_needed to determine alignment.
7904         (nvptx_get_drap_rtx): New.
7905         (TARGET_GET_DRAP_RTX): Override.
7906         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7907
7908 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7909
7910         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7911
7912 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7913
7914         * configure.ac: Remove uwin* cases.
7915         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7916         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7917         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7918         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7919         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7920         i[34567]86-*-uwin*, powerpc-*-beos*.
7921
7922 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
7923
7924         * gencodes.c (gencodes): Print the comma for the preceding
7925         enum value rather than the current one.  Use aliased enum values
7926         rather than #defines for compiled-out patterns.
7927         (main): Update accordingly.  Replace LAST_INSN_CODE with
7928         NUM_INSN_CODES.
7929         * lra.c (insn_code_data): Update accordingly.
7930         (finish_insn_code_data_once, get_static_insn_data): Likewise.
7931         * recog.h (target_recog): Likewise.
7932         (preprocess_insn_constraints): Change parameter to unsigned int.
7933         * recog.c (preprocess_insn_constraints): Likewise.
7934         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7935         * tree-vect-stmts.c (vectorizable_operation): Simplify.
7936
7937 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7938
7939         PR rtl-optimization/61657
7940         * loop-iv.c (iv_number_of_iterations): Declare up and down as
7941         unsigned.  Remove superflous uint64_t cast.
7942
7943 2014-08-21  Felix Yang  <felix.yang@huawei.com>
7944             Jiji Jiang  <jiangjiji@huawei.com>
7945
7946         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7947         argument and get builtin function code directly from CALL.
7948         (gimple_stringop_fixed_value): Modified accordingly.
7949         (gimple_stringops_transform, gimple_stringops_values_to_profile):
7950         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
7951
7952 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7953
7954         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
7955
7956 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7957
7958         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
7959         to match.pd.
7960         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
7961         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
7962         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
7963         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
7964         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
7965         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
7966         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
7967         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
7968         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
7969         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
7970
7971         * match.pd (SIN ) : New Operator.
7972         (TAN) : New Operator.
7973         (mult (SQRT@1 @0) @1) : New simplifier.
7974         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
7975         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7976         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7977         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
7978         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
7979         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
7980         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
7981         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
7982         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
7983         (rdiv @0 (POW:s @1 @2)) : New simplifier.
7984
7985 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
7986
7987         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
7988         loop if EXPR is simplified to const value.
7989
7990 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
7991
7992         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7993         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
7994
7995 2015-08-21  Richard Biener  <rguenther@suse.de>
7996
7997         PR middle-end/67285
7998         * gimple-fold.c (replace_stmt_with_simplification): Assert
7999         seq is empty when replacing a call with itself but different
8000         arguments.
8001         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8002         a call require that it is const.
8003
8004 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8005
8006         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8007         * builtins.c (get_object_alignment_2): Adjust.
8008         * varasm.c (align_variable): Likewise.
8009         (get_variable_align): Likewise.
8010         (build_constant_desc): Likewise.
8011         (force_const_mem): Likewise.
8012         * doc/tm.texi.in: Likewise.
8013         * doc/tm.texi: Regenerate.
8014
8015 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8016
8017         * genconfig.c (main): Always define HAVE_cc0.
8018         * recog.c (rest_of_handle_peephole2): Adjust.
8019
8020 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8021
8022         * reorg.c (relax_delay_slots): Don't use #if to check value of
8023         HAVE_cc0.
8024
8025 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8026
8027         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8028         * targhooks.c (default_have_conditional_execution): Adjust.
8029
8030 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
8031
8032         * rtl.h (rtvec_all_equal_p): Declare.
8033         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8034         * rtl.c (rtvec_all_equal_p): New function.
8035         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8036         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8037         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8038         * config/arm/arm.c (neon_vdup_constant): Likewise.
8039         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8040         * config/tilegx/constraints.md (W, Y): Likewise.
8041         * config/tilepro/constraints.md (W, Y): Likewise.
8042         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8043         (classify_immediate): Use unwrap_const_vec_duplicate.
8044         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8045         (reg_or_v2s8bit_operand): Likewise.
8046         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8047         (reg_or_v4s8bit_operand): Likewise.
8048
8049 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8050
8051         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8052         (vec_shasigma_be): New #define.
8053         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8054         (VPMSUMH): Likewise.
8055         (VPMSUMW): Likewise.
8056         (VPMSUMD): Likewise.
8057         (VPMSUM): New BU_P8V_OVERLOAD_2.
8058         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8059         entries for VEC_MADD and VEC_VPMSUM.
8060
8061 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
8062
8063         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8064         Multiply argument avr_n_flash by 64 to match unit of "KiB".
8065         (avr_pgm_check_var_decl): Same.
8066
8067 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
8068
8069         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8070         initialization of HFmode scalar type (float16_t) to...
8071         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8072         code.
8073
8074         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8075
8076         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8077         having an -mfp16-format.
8078
8079 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
8080
8081         * config/i386/predicates.md (vector_all_ones_operand): Use
8082         CONSTM1_RTX to simplify definition.
8083
8084 2015-08-20  Richard Biener  <rguenther@suse.de>
8085
8086         * toplev.c (compile_file): Remove loop calling late_global_decl
8087         on all symbols.
8088         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8089         on decls we assembled.
8090
8091 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
8092
8093         * common/config/aarch64/aarch64-common.c
8094         (AARCH64_CPU_NAME_LENGTH): Delete.
8095         (aarch64_option_extension): New.
8096         (all_extensions): Likewise.
8097         (processor_name_to_arch): Likewise.
8098         (arch_to_arch_name): Likewise.
8099         (all_cores): New.
8100         (all_architectures): Likewise.
8101         (aarch64_get_extension_string_for_isa_flags): Likewise.
8102         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8103         architecture names.
8104         * config/aarch64/aarch64-protos.h
8105         (aarch64_get_extension_string_for_isa_flags): New.
8106         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8107         (aarch64_option_print): Get the string to print from
8108         aarch64_get_extension_string_for_isa_flags.
8109         (aarch64_declare_function_name): Likewise.
8110         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8111         (MCPU_TO_MARCH_SPEC): This.
8112         (ASM_CPU_SPEC): Use it.
8113         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8114         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8115         (EXTRA_SPEC_FUNCTIONS): Use it.
8116
8117 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
8118
8119         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8120         expansion when !ISA_HAS_LWL_LWR.
8121         (mips_block_move_straight): Update the size of elements copied to
8122         account for alignment when !ISA_HAS_LWL_LWR.
8123         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8124
8125 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8126
8127         * expr.c (expand_expr_real_2): Check gimple statement during
8128         LSHIFT_EXPR expand.
8129
8130 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
8131
8132         * common.opt (fstack-protector): Initialize to -1.
8133         (fstack-protector-all): Likewise.
8134         (fstack-protector-strong): Likewise.
8135         (fstack-protector-explicit): Likewise.
8136         * configure.ac: Add --enable-default-ssp.
8137         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
8138         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8139         -1.
8140         * doc/install.texi: Document --enable-default-ssp.
8141         * config.in: Regenerated.
8142         * configure: Likewise.
8143
8144 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
8145
8146         PR rtl-optimization/64164
8147         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8148         (parm_in_stack_slot_p): ... this.  Disregard mode, what
8149         matters is whether the parm will live in a pseudo or a stack
8150         slot.
8151         (expand_one_ssa_partition): Deal with params without a default
8152         def.  Disregard mode.
8153         * cfgexpand.h: Renamed function declaration.
8154         * tree-ssa-coalesce.c: Adjust.
8155         * function.c (split_complex_args): Allocate stack slot for
8156         unassigned parms before splitting.
8157         (parm_in_unassigned_mem_p): New.  Use it instead of
8158         parm_maybe_byref_p throughout this file.
8159         (assign_parm_setup_block): Use it.  Accept pseudos in the
8160         expand-assigned rtl.
8161         (assign_parm_setup_reg): Drop BLKmode requirement.
8162         (assign_parm_setup_stack): Allocate and fill in the address of
8163         unassigned MEM parms.
8164
8165 2015-08-19  David Sherwood  <david.sherwood@arm.com>
8166
8167         * genmodes.c (emit_mode_unit_size_inline): New function.
8168         (emit_mode_unit_precision_inline): New function.
8169         (emit_insn_modes_h): Emit new #define.  Emit new functions.
8170         (emit_mode_unit_size): New function.
8171         (emit_mode_unit_precision): New function.
8172         (emit_mode_adjustments): Add mode_unit_size adjustments.
8173         (emit_insn_modes_c): Emit new arrays.
8174         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8175         use new inline methods.
8176
8177 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8178
8179         * config/aarch64/aarch64.c (bit_count): Delete prototype
8180         and definition.
8181         (aarch64_print_operand): Use popcount_hwi instead of the above.
8182
8183 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8184
8185         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8186         comment.
8187
8188 2015-08-19  Marek Polacek  <polacek@redhat.com>
8189
8190         PR middle-end/67133
8191         * gimple-ssa-isolate-paths.c
8192         (insert_trap_and_remove_trailing_statements): Rename to ...
8193         (insert_trap): ... this.  Don't remove trailing statements; split
8194         block instead.
8195         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8196
8197 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
8198
8199         PR other/67042
8200         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8201         conditionalize the whole on __GNUC__.  Add fallback code
8202         depending neither on undefined nor implementation-defined behaviour.
8203
8204 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8205
8206         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8207         whitespaces with tab.
8208
8209 2015-08-19  Florian Weimer  <fweimer@redhat.com>
8210
8211         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8212         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8213         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8214         Move Name_Ids instantiation to the Prj.Proc package, to avoid
8215         trampolines.
8216
8217 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8218
8219         * config/arm/arm.c (bounds_check): Use %wd print format
8220         for HOST_WIDE_INT arguments.
8221
8222 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
8223
8224         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8225         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8226         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8227         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8228         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8229         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8230         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8231         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8232         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8233         typedefs.
8234
8235 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
8236
8237         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8238         function.c, graphite-scop-detection.c, haifa-sched.c,
8239         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8240         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8241         varasm.c: Remove typedefs of structs.
8242
8243 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8244
8245         * config/rs6000/altivec.h (vec_adde): New define.
8246         (vec_addec): Likewise.
8247         (vec_double): Likewise.
8248         (vec_bperm): Likewise.
8249         (vec_gb): Likewise.
8250         * config/rs6000/rs6000-builtin.def (ADDE): New
8251         BU_ALTIVEC_OVERLOAD_3.
8252         (ADDEC): Likewise.
8253         (DOUBLE): New BU_VSX_OVERLOAD_1.
8254         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
8255         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
8256         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
8257         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
8258         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
8259         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
8260         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
8261         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
8262         and P8V_BUILTIN_VEC_VBPERMQ.
8263
8264 2015-08-18  Jason Merrill  <jason@redhat.com>
8265
8266         * print-tree.c (print_node): Handle TREE_BINFO.
8267
8268 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8269
8270         PR middle-end/36757
8271         * builtins.c (expand_builtin_signbit): Add asserts to make sure
8272         we can expand BUILT_IN_SIGNBIT inline.
8273         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
8274         * doc/extend.texi: Document the type-generic __builtin_signbit.
8275
8276 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
8277
8278         PR rtl-optimization/67218
8279         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8280         (simplify_unary_operation_1): Use it.
8281
8282 2015-08-18  Marek Polacek  <polacek@redhat.com>
8283
8284         PR middle-end/67222
8285         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8286         if the call isn't valid.
8287         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8288         gimple_call_builtin_p.
8289         (call_may_clobber_ref_p_1): Likewise.
8290         (stmt_kills_ref_p): Likewise.
8291
8292 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
8293
8294         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8295         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8296         (mips_hard_regno_scratch_ok): Likewise.
8297         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8298         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8299
8300 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
8301
8302         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8303         (determine_value_range): Call refine_value_range_using_guard for
8304         each loop initial condition to improve value range.
8305
8306 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
8307
8308         * config/i386/i386.c: Remove include of fibheap.h.
8309
8310 2015-08-17  Richard Biener  <rguenther@suse.de>
8311
8312         PR tree-optimization/67221
8313         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8314         (sccvn_dom_walker::before_dom_children): Mark backedges of
8315         non-executable blocks as not executable.
8316
8317 2015-08-17  David Sherwood  <david.sherwood@arm.com>
8318
8319         * config/arm/arm.c (neon_element_bits): Replace call to
8320         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8321         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8322         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8323         (neon_vdup_lane<mode>): Likewise.
8324         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8325         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8326         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8327         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8328         * config/spu/spu.c (arith_immediate_p): Likewise.
8329         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8330         * expr.c (expand_expr_real_2): Likewise.
8331         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8332         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8333         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8334         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8335         New variable.
8336         * fold-const.c (fold_binary_loc): Replace call to
8337         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8338         GET_MODE_UNIT_PRECISION (m).
8339
8340 2015-08-17  Mike Stump  <mikestump@comcast.net>
8341
8342         * config/arm/arm.c (arm_block_move_unaligned_straight):
8343         Emit normal move instead of unaligned load when source or destination
8344         are appropriately aligned.
8345
8346 2015-08-17  Richard Biener  <rguenther@suse.de>
8347             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8348
8349         PR middle-end/16107
8350         * match.pd (div (coss (op @0) : New simplifier.
8351
8352 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
8353
8354         PR rtl-optimization/64164
8355         PR bootstrap/66978
8356         PR middle-end/66983
8357         PR rtl-optimization/67000
8358         PR middle-end/67034
8359         PR middle-end/67035
8360         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8361         * tree-ssa-copyrename.c: Removed.
8362         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8363         -ftree-coalesce-vars.
8364         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8365         * common.opt (ftree-copyrename): Ignore.
8366         (ftree-coalesce-inlined-vars): Likewise.
8367         * doc/invoke.texi: Remove the ignored options above.
8368         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8369         * tree-ssa-coalesce.h: ... here.
8370         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8371         headers required by it.
8372         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8373         across variables when flag_tree_coalesce_vars.  Check register
8374         use and promoted modes to allow coalescing.  Do not coalesce
8375         maybe-byref parms with SSA_NAMEs of other variables, or
8376         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
8377         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8378         with its member functions to tree-ssa-coalesce.c.
8379         (var_map_base_init): Likewise.  Renamed to
8380         compute_samebase_partition_bases.
8381         (partition_view_normal): Drop want_bases parameter.
8382         (partition_view_bitmap): Likewise.
8383         * tree-ssa-live.h: Adjust declarations.
8384         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8385         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8386         default defs at the entry point.
8387         (dump_part_var_map): New.
8388         (compute_optimized_partition_bases): New, called by...
8389         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8390         of compute_samebase_partition_bases.  Adjust.
8391         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8392         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8393         (ssa_default_def_partition): New.
8394         (get_rtl_for_parm_ssa_default_def): New.
8395         (align_local_variable, add_stack_var): Support anonymous SSA
8396         names.
8397         (defer_stack_allocation): Likewise.  Declare earlier.
8398         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8399         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8400         Do no record deferred-allocation marker in
8401         SA.partition_to_pseudo.
8402         (expand_stack_vars): Adjust check for the marker in it.
8403         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8404         redundant MEM attr setting.
8405         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8406         from...
8407         (expand_one_stack_var): ... this.  New wrapper to check and
8408         skip already expanded SSA partitions.
8409         (record_alignment_for_reg_var): New, factored out of...
8410         (expand_one_var): ... this.
8411         (expand_one_ssa_partition): New.
8412         (adjust_one_expanded_partition_var): New.
8413         (expand_one_register_var): Check and skip already expanded SSA
8414         partitions.
8415         (expand_used_vars): Don't create DECLs for anonymous SSA
8416         names.  Expand all SSA partitions, then adjust all SSA names.
8417         (pass::execute): Replace the loops that set
8418         SA.partition_to_pseudo from partition leaders and cleared
8419         DECL_RTL for multi-location variables, and that which used to
8420         rename vars and set attrs, with one that clears DECL_RTL and
8421         checks that PARMs and RESULTs default_defs match DECL_RTL.
8422         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8423         * emit-rtl.c: Include stor-layout.h.
8424         (set_reg_attrs_for_parm): Handle NULL decl.
8425         (set_reg_attrs_for_decl_rtl): Take mode from expression if
8426         it's not a DECL.
8427         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8428         rather than its possibly-NULL DECL.
8429         * explow.c (promote_ssa_mode): New.
8430         * explow.h (promote_ssa_mode): Declare.
8431         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8432         (read_complex_part): Export.
8433         * expr.h (read_complex_part): Declare.
8434         * cfgexpand.h (parm_maybe_byref_p): Declare.
8435         * function.c: Include cfgexpand.h.
8436         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8437         (use_register_for_parm_decl): Wrapper for the above to
8438         special-case the result_ptr.
8439         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8440         (split_complex_args): Take assign_parm_data_all argument.
8441         Pass it to rtl_for_parm.  Set up rtl and context for split
8442         args.  Reset complex parm before fetching its default decl
8443         rtl.
8444         (assign_parms_unsplit_complex): Use the default-def complex
8445         parm rtl if it matches the components.
8446         (assign_parms_augmented_arg_list): Adjust.
8447         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8448         multiple locations.  Recognize split complex args.
8449         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8450         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8451         (assign_parm_setup_block): Prefer SSA-assigned location, and
8452         fill in its address if the memory location of a maybe-byref
8453         parm was not assigned by cfgexpand.
8454         (assign_parm_setup_reg): Likewise.  Adjust its mode as
8455         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
8456         sure passed_pointer parms don't need conversion.  Copy address
8457         or value as needed.
8458         (assign_parm_setup_stack): Prefer SSA-assigned location.
8459         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8460         rtl before testing for pointer bounds.  Special-case result_ptr.
8461         (expand_function_start): Maybe reset DECL_RTL of result.
8462         Prefer SSA-assigned location for result and static chain.
8463         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
8464         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
8465         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8466         anonymous SSA names.  Use promote_ssa_mode.
8467         (get_temp_reg): Likewise.
8468         (remove_ssa_form): Adjust.
8469         * stor-layout.c (layout_decl): Don't set mem attributes of
8470         non-MEMs.
8471         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8472         and get its reg_usage for reg invalidation.
8473         (compute_bb_dataflow): Pass it insn.
8474         (emit_notes_in_bb): Likewise.
8475
8476 2015-08-14  Marek Polacek  <polacek@redhat.com>
8477
8478         * tree-core.h (tree_base): Fix typo.
8479
8480 2015-08-14  Marek Polacek  <polacek@redhat.com>
8481
8482         PR middle-end/67133
8483         * gimple.c (infer_nonnull_range_by_attribute): Check that the
8484         nonnull argument position is not outside function arguments.
8485
8486 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
8487
8488         PR target/67143
8489         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8490         'lconst_atomic' with 'const_atomic'.
8491         (atomic_fetch_<optab><mode>): Likewise.
8492         (atomic_<optab>_fetch<mode>): Likewise.
8493         * config/aarch64/iterators.md (lconst-atomic): Move below
8494         'const_atomic'.
8495         (const_atomic): New.
8496
8497 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
8498             Bernd Schmidt  <bernds@codesourcery.com>
8499
8500         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8501         debug options.
8502         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8503         (DWARF2_DEBUGGING_INFO): Don't define.
8504         * debug.h (dwarf2_lineno_debug_hooks): Declare.
8505         * toplev.c (process_options): Add a case for it.
8506         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8507         (dwarf2out_init): Skip most initializations if
8508         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8509         case.
8510         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8511         DWARF2_LINENO_DEBUGGING_INFO.
8512         * opts.c (set_debug_level): Likewise.
8513
8514 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
8515
8516         * config/arm/types.md (is_neon_type): Add missing types.
8517
8518 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
8519
8520         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8521         for skylake.
8522         * config/i386/i386.c (PTA_SKYLAKE): New macros.
8523         (processor_alias_table): Add skylake description.
8524         (enum processor_model): Add skylake processor.
8525         (arch_names_table): Add skylake record.
8526         * doc/invoke.texi: Add skylake item.
8527
8528 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
8529
8530         * ira-int.h: Include recog.h.
8531         * ira-build.c: Don't include recog.h.
8532         * ira-color.c: Likewise.
8533         * ira-conflicts.c: Likewise.
8534         * ira-costs.c: Likewise.
8535         * ira-emit.c: Likewise.
8536         * ira-lives.c: Likewise.
8537         * ira.c: Likewise.
8538         * sched-deps.c: Likewise.
8539         * sel-sched.c: Likewise.
8540         * target-globals.c: Likewise.
8541
8542 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8543
8544         PR bootstrap/55035
8545         * reload1.c (elimination_costs_in_insn): Make it obvious to the
8546         compiler that the n_dups and n_operands loop bounds are invariant.
8547
8548 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8549
8550         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8551         expressions in A and B.
8552
8553 2015-08-13  Richard Biener  <rguenther@suse.de>
8554
8555         * tree.c (nonnull_arg_p): Move from ...
8556         * tree-vrp.c (nonnull_arg_p): ... here.
8557         * tree.h (nonnull_arg_p): Declare.
8558         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8559         here, register ptr != 0 for nonnull_arg_p pointer arguments.
8560         Properly initialize static chain and by-reference result pointer.
8561         (run_scc_vn): Adjust.
8562
8563 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8564
8565         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8566         TUNE_I6400.
8567
8568 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8569
8570         * config/aarch64/aarch64-protos.h
8571         (aarch64_gen_atomic_cas): Declare.
8572         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8573         Choose appropriate instruction pattern for the target.
8574         (aarch64_gen_atomic_cas): New.
8575         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8576         (atomic_compare_and_swap<mode>_1): Rename to
8577         aarch64_compare_and_swap<mode>.  Fix some indentation.
8578         (aarch64_compare_and_swap<mode>_lse): New.
8579         (aarch64_atomic_cas<mode>): New.
8580
8581 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8582
8583         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8584         (TARGET_LSE): New.
8585
8586 2015-08-13  Richard Biener  <rguenther@suse.de>
8587
8588         PR tree-optimization/67191
8589         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8590         assert we value-numbered last stmts operand because it can validly
8591         trigger for unreachable code.
8592
8593 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8594
8595         PR rtl-optimization/67103
8596         * ifcvt.c (noce_try_store_flag_constants): Move
8597         x = (-(test != 0) & (b - a)) + a transformation to...
8598         (noce_try_cmove): ... Here.  Try it if normal conditional
8599         move fails.
8600
8601 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8602
8603         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8604         pseudo-processors.
8605         * config/mips/mips.md (processor): Remove w32 and w64.
8606
8607 2015-08-13  Richard Biener  <rguenther@suse.de>
8608
8609         PR tree-optimization/66502
8610         PR tree-optimization/67167
8611         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8612         backedge arguments.
8613         (vn_phi_lookup): Adjust.
8614         (vn_phi_insert): Likewise.
8615         (visit_phi): Prefer to value-number to another PHI node
8616         over value-numbering to a PHI argument.
8617         (init_scc_vn): Mark DFS back edges.
8618
8619 2015-08-13  Richard Biener  <rguenther@suse.de>
8620
8621         * gimple.h (gcall::code_): New constant static member.
8622         (gcond::code_): Likewise.
8623         * gimple.c (gcall::code_): Define.
8624         (gcond::code_): Likewise.
8625         (is_a_helper <const gcond *>): Add.
8626         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8627         and forward to a new gcall overload with less checking and a
8628         cheaper way to access the operand.
8629         (gimple_call_lhs_ptr): Likewise.
8630         (gimple_call_set_lhs): Likewise.
8631         (gimple_call_internal_p): Likewise.
8632         (gimple_call_with_bounds_p): Likewise.
8633         (gimple_call_set_with_bounds): Likewise.
8634         (gimple_call_internal_fn): Likewise.
8635         (gimple_call_set_ctrl_altering): Likewise.
8636         (gimple_call_ctrl_altering_p): Likewise.
8637         (gimple_call_fntype): Likewise.
8638         (gimple_call_fn): Likewise.
8639         (gimple_call_fn_ptr): Likewise.
8640         (gimple_call_set_fndecl): Likewise.
8641         (gimple_call_fndecl): Likewise.
8642         (gimple_call_chain): Likewise.
8643         (gimple_call_num_args): Likewise.
8644         (gimple_call_arg): Likewise.
8645         (gimple_call_arg_ptr): Likewise.
8646         (gimple_call_set_arg): Likewise.
8647         (gimple_call_noreturn_p): Likewise.
8648         (gimple_cond_code): Likewise.
8649         (gimple_cond_lhs): Likewise.
8650         (gimple_cond_rhs): Likewise.
8651         (gimple_has_lhs): Reduce checking.
8652
8653 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8654
8655         PR middle-end/25529
8656         * match.pd (div (mult @0 @1) @1) : New simplifier.
8657
8658 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8659
8660         PR target/67071
8661         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8662         predicate to allow construction of vector constants using the
8663         VSLDOI vector shift instruction.
8664
8665         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8666         declaration.
8667
8668         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8669         the number of bytes to be shifted left and filled in with either
8670         all zero or all one bits.
8671         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8672         methods exist.
8673         (output_vec_const_move): On power8, generate XXLORC to generate
8674         a vector constant with all 1's. Do a split if we need to use a
8675         VSLDOI instruction.
8676
8677         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8678         properly test for the MSB.
8679
8680         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8681         vector constants that can be created with VSLDOI.
8682
8683 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8684
8685         revert:
8686         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8687         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8688         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8689         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8690         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8691         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8692         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8693         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8694         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8695
8696 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
8697
8698         * config/xtensa/constraints.md (define_constraint "Y"): New
8699         constraint.
8700         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8701         * config/xtensa/linux.h (ASM_SPEC): Likewise.
8702         * config/xtensa/predicates.md (move_operand): Match constants
8703         and symbols in the presence of TARGET_AUTO_LITPOOLS.
8704         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8705         immediate references to TLS data.
8706         (xtensa_emit_move_sequence): Don't force constants to memory in
8707         the presence of TARGET_AUTO_LITPOOLS.
8708         (print_operand): Add 'y' format, same as default, but capable of
8709         printing SF mode constants as well.
8710         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8711         (movsf_internal): Add movi pattern that loads literal.
8712         (movsf, movdf): Don't force constants to memory in the presence
8713         of TARGET_AUTO_LITPOOLS.
8714         (movdf_internal): Add 'Y' constraint.
8715         * config/xtensa/xtensa.opt (mauto-litpools): New option.
8716         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8717
8718 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8719
8720         * config/arm/arm-fpus.def: Replace booleans with feature flags.
8721         Update comment.
8722         * config/arm/arm.c (ARM_FPU): Update macro.
8723         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8724         (TARGET_FP16): Likewise.
8725         (TARGET_CRYPTO): Likewise.
8726         (TARGET_NEON): Likewise.
8727         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
8728         field features.
8729
8730 2015-08-12  Tom de Vries  <tom@codesourcery.com>
8731
8732         PR other/67092
8733         PR other/67098
8734         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
8735         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8736         accordingly.  Mention default for --with-stage1-ldflags.
8737
8738 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8739
8740         * config/arm/arm.h (arm_fpu_feature_set): New.
8741         (ARM_FPU_FSET_HAS): New.
8742         (FPU_FL_NONE): New.
8743         (FPU_FL_NEON): New.
8744         (FPU_FL_FP16): New.
8745         (FPU_FL_CRYPTO): New.
8746
8747 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8748
8749         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8750         after -mcmodel=large -fPIC sorry.
8751
8752 2015-08-12  Richard Biener  <rguenther@suse.de>
8753
8754         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8755         comparison operand order and commutative ternary op operand order.
8756         (sccvn_dom_walker::cond_stack): New state to track temporary
8757         expressions.
8758         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8759         no longer valid.
8760         (sccvn_dom_walker::record_cond): Add a single temporary conditional
8761         expression.
8762         (sccvn_dom_walker::record_conds): Add a temporary conditional
8763         expressions and all related expressions also true/false.
8764         (sccvn_dom_walker::before_dom_children): Record temporary
8765         expressions based on the controlling condition of a single
8766         predecessor.  When trying to simplify a conditional statement
8767         lookup expressions we might have inserted earlier.
8768
8769 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
8770
8771         PR target/67127
8772         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8773         to ARM core registers.
8774
8775 2015-08-12  Nathan Sidwell  <nathan@acm.org>
8776
8777         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8778         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8779
8780 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
8781
8782         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8783         line with comments.
8784         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8785
8786 2015-08-12  Richard Biener  <rguenther@suse.de>
8787
8788         * gimple.h (remove_pointer): New trait.
8789         (GIMPLE_CHECK2): New inline template function.
8790         (gassign::code_): New constant static member.
8791         (is_a_helper<const gassign *>): Add.
8792         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8793         and forward to a new gassign overload with less checking and a
8794         cheaper way to access the operand.
8795         (gimple_assign_lhs_ptr): Likewise.
8796         (gimple_assign_set_lhs): Likewise.
8797         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8798         Likewise.
8799         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8800         Likewise.
8801         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8802         Likewise.
8803         (gimple_assign_rhs_code): Likewise.
8804         * gimple.c (gassign::code_): Define.
8805
8806 2015-08-12  Richard Biener  <rguenther@suse.de>
8807
8808         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8809         Eliminate edges marked as not executable by SCCVN.
8810         * tree-ssa-sccvn.c: Include gimple-iterator.h.
8811         (cond_dom_walker): Rename to sccvn_dom_walker.
8812         (sccvn_dom_walker::before_dom_children): Value-number defs
8813         of all stmts.
8814         (run_scc_vn): Remove loop value-numbering all SSA names.
8815         Drop not visited SSA names to varying.
8816
8817 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8818
8819         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8820         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8821         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8822         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8823         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8824         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8825         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8826         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8827         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8828
8829 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
8830
8831         PR target/66954
8832         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8833         to enum feature_priority and feature_list.
8834         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8835         and isa_names_table.
8836
8837 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
8838
8839         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8840         vect_induction_def.
8841
8842 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8843
8844         PR c/66098
8845         PR c/66711
8846         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8847         account when deciding what was the command-line status.
8848
8849 2015-08-11  Nathan Sidwell  <nathan@acm.org>
8850
8851         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8852
8853         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8854         we're not the only contributor to target phi.
8855
8856 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
8857
8858         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8859         FIXED_REG0.
8860
8861 2015-08-11  Tom de Vries  <tom@codesourcery.com>
8862
8863         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8864
8865 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8866
8867         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8868         with CPU_SLM.
8869         * config/i386/i386.md (cpu): Remove knl.
8870
8871 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8872
8873         PR libgomp/65742
8874         PR middle-end/66332
8875         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8876         open-coded sequence.
8877         * omp-low.c (oacc_process_reduction_data): Remove handline of
8878         GOMP_DEVICE_HOST_NONSHM.
8879
8880         * lto-streamer-in.c (lto_input_mode_table): Adjust to
8881         GET_MODE_INNER changes.
8882
8883 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8884             Ilya Verbin  <ilya.verbin@intel.com>
8885
8886         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8887
8888 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8889
8890         * doc/options.texi (EnabledBy): Document that the argument must be
8891         a Common option.
8892         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8893         Not enabled by -Wall.
8894         * optc-gen.awk: Give nicer error messages. Detect if the argument
8895         of EnabledBy is not a Common option.
8896         * common.opt (Wnull-dereference): Not enabled by -Wall.
8897         * opt-functions.awk (lang_enabled_by): Nicer error messages.
8898
8899 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8900
8901         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8902         model == 0x4f as Broadwell.
8903
8904 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8905
8906         PR rtl-optimization/67028
8907         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
8908         Add test to see if a const_int fits in the new mode.
8909
8910 2015-08-07  DJ Delorie  <dj@redhat.com>
8911
8912         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8913
8914 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8915
8916         PR rtl-optimization/67029
8917         * ira-color.c: Include "recog.h" before including "ira-int.h".
8918         * target-globals.c: Likewise.
8919         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8920         adds an alternative_mask argument and use it instead of
8921         preferred_alternatives.
8922         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8923         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8924         * sched-deps.c: Include "ira-int.h" after including "ira.h".
8925         (sched_analyze_insn): Update call to
8926         ira_implicitly_set_insn_hard_regs.
8927         * sel-sched.c: Include "ira-int.h" after including "ira.h".
8928         (implicit_clobber_conflict_p): Update call to
8929         ira_implicitly_set_insn_hard_regs.
8930
8931 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8932
8933         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8934
8935 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
8936
8937         PR target/67002
8938         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8939         currently_expanding_to_rtl is set.
8940
8941 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
8942
8943         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8944         * configure: Regenerate.
8945
8946 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8947             Jiong Wang  <jiong.wang@arm.com>
8948
8949         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8950         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8951         (REG_CLASS_NAMES): Likewise.
8952         (REG_CLASS_CONTENTS): Likewise.
8953         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8954         (aarch64_register_move_cost): Likewise.
8955         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8956         possible.
8957         * config/aarch64/constraints.md (Uc0): New constraint.
8958
8959 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8960
8961         * config/aarch64/constraints.md (Usf): Add the test of
8962         aarch64_is_noplt_call_p.
8963
8964 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8965
8966         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
8967         declaration.
8968         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
8969         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
8970         (call_symbol): Likewise.
8971
8972 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8973
8974         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
8975         for vectorizing multiplication patterns.
8976         * tree-vectorizer.h: Adjust the number of patterns.
8977
8978 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8979
8980         * config/i386/sse.md (*vec_concatv2df): Declare added
8981         alternatives as sselog type.
8982
8983 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8984
8985         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
8986         all GPRs.
8987
8988 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8989
8990         * config/s390/s390.c (s390_expand_tbegin): Expand either
8991         tbegin_1_z13 or tbegin_1 depending on VX flag.
8992         * config/s390/s390.md ("tbegin_1_z13"): New expander.
8993
8994 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8995
8996         * config/s390/s390.opt: Clarify description for -mzvector
8997         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
8998         -mzvector.
8999
9000 2015-08-06  Richard Biener  <rguenther@suse.de>
9001
9002         * gimple.h (gimple_call_set_fn): Access op member directly.
9003         (gimple_call_chain_ptr): Likewise.
9004         (gimple_call_set_chain): Likewise.
9005         (gimple_cond_lhs_ptr): Likewise.
9006         (gimple_cond_set_lhs): Likewise.
9007         (gimple_cond_rhs_ptr): Likewise.
9008         (gimple_cond_set_rhs): Likewise.
9009         (gimple_cond_true_label): Likewise.
9010         (gimple_cond_set_true_label): Likewise.
9011         (gimple_cond_set_false_label): Likewise.
9012         (gimple_cond_false_label): Likewise.
9013         (gimple_label_label): Likewise.
9014         (gimple_label_set_label): Likewise.
9015         (gimple_goto_set_dest): Likewise.
9016         (gimple_asm_input_op): Likewise.
9017         (gimple_asm_input_op_ptr): Likewise.
9018         (gimple_asm_set_input_op): Likewise.
9019         (gimple_asm_output_op): Likewise.
9020         (gimple_asm_output_op_ptr): Likewise.
9021         (gimple_asm_set_output_op): Likewise.
9022         (gimple_asm_clobber_op): Likewise.
9023         (gimple_asm_set_clobber_op): Likewise.
9024         (gimple_asm_label_op): Likewise.
9025         (gimple_asm_set_label_op): Likewise.
9026         (gimple_switch_index): Likewise.
9027         (gimple_switch_index_ptr): Likewise.
9028         (gimple_return_retval_ptr): Likewise.
9029         (gimple_return_retval): Likewise.
9030         (gimple_return_set_retval): Likewise.
9031         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
9032         (gimple_switch_label): Likewise.
9033         (gimple_switch_set_label): Likewise.
9034
9035 2015-08-06  Richard Biener  <rguenther@suse.de>
9036
9037         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9038         bool comparison canonicalization and restrict to integers.
9039
9040 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
9041
9042         * coretypes.h (enum symbol_visibility): Relocate here.
9043         * flag-types.h (enum symbol_visibility): Remove.
9044         * tree-core.h (enum symbol_visibility): Remove.
9045
9046 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
9047
9048         PR target/66870
9049         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9050         for no_split_stack function attribute along with
9051         flag_split_stack.
9052         (rs6000_expand_split_stack_prologue): Likewise.
9053
9054 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9055             Jeff Law  <law@redhat.com>
9056
9057         PR c/16351
9058         * doc/invoke.texi (Wnull-dereference): New.
9059         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9060         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9061         Warn for potential NULL dereferences.
9062         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9063         * ubsan.c (instrument_nonnull_arg): Call
9064         infer_nonnull_range_by_attribute.
9065         (instrument_nonnull_return): Likewise.
9066         * common.opt (Wnull-dereference); New.
9067         * gimple.c (infer_nonnull_range): Remove bool arguments.
9068         (infer_nonnull_range_by_dereference): New.
9069         (infer_nonnull_range_by_attribute): New.
9070         * gimple.h: Update declarations.
9071
9072 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9073
9074         * gensupport.c (sequence_num): Replace with...
9075         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9076         ...these new variables.
9077         (init_rtx_reader_args_cb): Update accordingly.
9078         (get_num_code_insns): Likewise.
9079         (read_md_rtx): Rework to use a while loop and get_c_test.
9080         Use the new counters.  Remove redundant DEFINE_SUBST case.
9081         * genoutput.c (gen_split): Delete.
9082         (main): Don't call it.
9083
9084 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9085
9086         * gensupport.h (get_c_test): Declare.
9087         * gensupport.c (get_c_test): New function.
9088         * genconditions.c (main): Use it.
9089         * genrecog.c (validate_pattern): Likewise.
9090         (match_pattern_1): Likewise.  Remove c_test argument.
9091         (match_pattern): Update accordingly and remove c_test argument.
9092         (main): Update accordingly.
9093
9094 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9095
9096         * gensupport.h (get_num_insn_codes): Declare.
9097         * gensupport.c (get_num_insn_codes): New function.
9098         * genattrtab.c (optimize_attrs): Rename max_insn_code to
9099         num_insn_codes.
9100         (main): Likewise.  Use get_num_insn_codes.
9101         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9102
9103 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9104
9105         PR middle-end/66311
9106         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9107         is zero- rather than sign-extended.
9108
9109 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
9110
9111         * target-insns.def (can_extend): Delete.
9112
9113 2015-08-05  Richard Biener  <rguenther@suse.de>
9114
9115         PR tree-optimization/67121
9116         * tree-if-conv.c (combine_blocks): Clear range-info produced
9117         by stmts no longer executed conditionally.
9118
9119 2015-08-05  Nick Clifton  <nickc@redhat.com>
9120
9121         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9122         to allow identical far pointers to remain.
9123
9124 2015-08-05  Richard Biener  <rguenther@suse.de>
9125
9126         PR middle-end/67120
9127         * match.pd: Compare address bases with == if they are decls
9128         or SSA names, not operand_equal_p.  Otherwise fail.
9129
9130 2015-08-05  Richard Biener  <rguenther@suse.de>
9131
9132         PR tree-optimization/67055
9133         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9134         NULL gimple_block.
9135
9136         * g++.dg/torture/pr67055.C: New testcase.
9137
9138 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
9139
9140         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9141         noavx512vl.
9142         (define_attr "enabled"): Handle avx521vl and noavx512vl.
9143         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9144         AVX-512 alternative out of SSE.
9145         (define_insn "*vec_concatv2df"): Ditto.
9146
9147 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
9148
9149         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9150         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9151         CODE_FOR_avx_ptestv4di.
9152         * config/i386/sse.md (define_mode_iterator V_AVX): New.
9153         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9154         (define_insn "avx_ptest256"): Merge this ...
9155         (define_insn "sse4_1_ptest"): And this ...
9156         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9157
9158 2015-08-05  Richard Biener  <rguenther@suse.de>
9159
9160         PR tree-optimization/67109
9161         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9162         against too big groups.  Print whether this is a load or store
9163         group.  Rename from ...
9164         (vect_analyze_group_access): ... this which is now a wrapper
9165         dissolving an invalid group.
9166         (vect_analyze_data_ref_accesses): Print whether this is a load
9167         or store group.
9168
9169 2015-08-05  Richard Biener  <rguenther@suse.de>
9170
9171         PR middle-end/67107
9172         * match.pd: Guard const_binop result checking against NULL_TREE
9173         result.
9174
9175 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
9176
9177         * cse.c (cse_insn): Restoring old behaviour for src_eqv
9178          when dest and value in the REG_EQUAL are same and dest
9179          is STRICT_LOW_PART.
9180
9181 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
9182
9183         * config/moxie/moxie.h (PRINT_OPERAND,
9184           PRINT_OPERAND_ADDRESS): Remove macros.
9185         * config/moxie/moxie-protos.h (moxie_print_operand,
9186           moxie_print_operand_address): Remove declaration.
9187         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9188           TARGET_PRINT_OPERAND_ADDRESS): Define.
9189           (moxie_print_operand, moxie_print_operand_address): Make static.
9190
9191 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9192
9193         PR target/66731
9194         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9195         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9196
9197 2015-08-04  Richard Biener  <rguenther@suse.de>
9198
9199         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9200         generated code.
9201         (dt_operand::gen_gimple_expr): Adjust.
9202
9203 2015-08-04  Richard Biener  <rguenther@suse.de>
9204
9205         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9206         bool compares on RHS.
9207         * match.pd: Add X ==/!= !X is false/true pattern.
9208
9209 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
9210
9211         * config/aarch64/aarch64.c: Change inner loop statement cost
9212         to be consistent with other targets.
9213
9214 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
9215
9216         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9217         targets.
9218
9219 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
9220
9221         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9222         (machine_function): Remove pseudos field.
9223
9224 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9225
9226         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9227         Exit early and use target_option_current_node if processing current
9228         pragma.
9229
9230 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9231
9232         * doc/extend.texi (AArch64 Function Attributes): New node.
9233         (AArch64 Pragmas): Likewise.
9234
9235 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9236
9237         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9238         Initialize simd builtins if TARGET_SIMD.
9239         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9240         Make sure that the builtins are initialized only once no matter how
9241         many times the function is called.
9242         (aarch64_init_builtins): Unconditionally initialize crc builtins.
9243         (aarch64_relayout_simd_param): New function.
9244         (aarch64_simd_expand_args): Use above during argument expansion.
9245         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9246         simd builtins if TARGET_SIMD.
9247         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9248         prototype.
9249         (aarch64_relayout_simd_types): Likewise.
9250
9251 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9252
9253         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
9254         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
9255         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
9256         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9257         static keyword.
9258         (aarch64_reset_previous_fndecl): New function.
9259         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
9260         the string.
9261         * config/aarch64/aarch64-c.c: New file.
9262         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
9263         Push and pop options at beginning and end.  Remove ifdef
9264         __ARM_FEATURE_CRC32.
9265         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
9266         Add pragma +nothing+simd and +nothing+crypto where appropriate.
9267         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
9268         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
9269         Define prototype.
9270         (aarch64_register_pragmas): Likewise.
9271         (aarch64_reset_previous_fndecl): Likewise.
9272         (aarch64_process_target_attr): Likewise.
9273         (aarch64_override_options_internal): Likewise.
9274
9275 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9276
9277         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9278         New function.
9279         (aarch64_can_inline_p): Likewise.
9280         (TARGET_CAN_INLINE_P): Define.
9281
9282 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9283
9284         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9285         Remove static.  Handle OPT_mgeneral_regs_only,
9286         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9287         OPT_momit_leaf_frame_pointer.
9288         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9289         (aarch64_attr_opt_type): New enum.
9290         (aarch64_attribute_info): New struct.
9291         (aarch64_handle_attr_arch): New function.
9292         (aarch64_handle_attr_cpu): Likewise.
9293         (aarch64_handle_attr_tune): Likewise.
9294         (aarch64_handle_attr_isa_flags): Likewise.
9295         (aarch64_attributes): New table.
9296         (aarch64_process_one_target_attr): New function.
9297         (num_occurences_in_str): Likewise.
9298         (aarch64_process_target_attr): Likewise.
9299         (aarch64_option_valid_attribute_p): Likewise.
9300         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9301         * config/aarch64/aarch64-protos.h: Include input.h
9302         (aarch64_handle_option): Declare prototype.
9303
9304 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9305
9306         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9307         * config/aarch64/aarch64.c: Include target-globals.h
9308         (aarch64_previous_fndecl): New variable.
9309         (aarch64_set_current_function): New function.
9310         (TARGET_SET_CURRENT_FUNCTION): Define.
9311
9312 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9313
9314         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9315         (explicit_arch): Likewise.
9316         (x_aarch64_isa_flags): Likewise.
9317         (mgeneral-regs-only): Mark as Save.
9318         (mfix-cortex-a53-835769): Likewise.
9319         (mcmodel=): Likewise.
9320         (mstrict-align): Likewise.
9321         (momit-leaf-frame-pointer): Likewise.
9322         (mtls-dialect): Likewise.
9323         (master=): Likewise.
9324         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9325         (aarch64_isa_flags): Remove extern declaration.
9326         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9327         to indicate success or failure.
9328         (aarch64_validate_march): Likewise.
9329         (aarch64_validate_mtune): Likewise.
9330         (aarch64_isa_flags): Delete.
9331         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9332         instead of aarch64_isa_flags.
9333         (aarch64_get_tune_cpu): New function.
9334         (aarch64_get_arch): Likewise.
9335         (aarch64_override_options): Use above and set up explicit_tune_core
9336         and explicit_arch.
9337         (aarch64_print_extension): Move earlier in file.  Add isa_flags
9338         argument and use that instead of the global aarch64_isa_flags.
9339         (aarch64_option_save): New function.
9340         (aarch64_option_restore): Likewise.
9341         (aarch64_option_print): Likewise.
9342         (aarch64_declare_function_name): Likewise.
9343         (aarch64_start_file): Delete.
9344         (TARGET_ASM_FILE_START): Do not define.
9345         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9346         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9347         Declare prototype.
9348
9349 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9350
9351         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9352         flag_omit_leaf_frame_pointer to 2.
9353
9354 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9355
9356         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9357         define to 0 or 1.
9358         (TARGET_FIX_ERR_A53_835769): New macro.
9359         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9360         handling of opts->x_aarch64_fix_a53_err835769.
9361         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9362         than aarch64_fix_a53_err835769.
9363         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9364         * config/aarch64/aarch64-linux.h: Likewise.
9365
9366 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
9367
9368         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9369         ix86_expand_int_movcc as boolean.
9370
9371 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9372
9373         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9374         (aarch64_cpu_string): Likewise.
9375         (aarch64_tune_string): Likewise.
9376         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9377         (aarch64_parse_extension): Return aarch64_parse_opt_result.
9378         Add extra argument to put result into.
9379         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
9380         (aarch64_parse_cpu): Add arguments to put results into. Return
9381         aarch64_parse_opt_result.
9382         (aarch64_parse_tune): Likewise.
9383         (aarch64_override_options_after_change_1): New function.
9384         (aarch64_override_options_internal): New function.
9385         (aarch64_validate_mcpu): Likewise.
9386         (aarch64_validate_march): Likewise.
9387         (aarch64_validate_mtune): Likewise.
9388         (aarch64_override_options): Update to reflect above changes.
9389         Move some logic into aarch64_override_options_internal.
9390         Initialize target_option_default_node and target_option_current_node.
9391         (aarch64_override_options_after_change): Move logic into
9392         aarch64_override_options_after_change_1 and call it with global_options.
9393         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9394         flag values from that.
9395
9396 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9397
9398         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9399         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9400         * config/aarch64/aarch64.c (struct processor): Add arch field.
9401         (all_architectures): Handle above, move above all_cores.
9402         (all_cores): Handle above.
9403         (aarch64_parse_arch): Handle above changes.
9404         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9405         above.  Update comments.
9406         (armv8.1-a): Likewise.
9407         * config/aarch64/aarch64-cores.def: Update according to above.
9408         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9409         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9410         aarch64_arch_driver_info.
9411
9412 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9413
9414         * config/aarch64/aarch64.c (struct processor): Add ident field.
9415         Rename core sched_core.
9416         (all_cores): Handle above changes.
9417         (all_architectures): Likewise.
9418         (aarch64_parse_arch): Likewise.
9419         (aarch64_override_options): Likewise.
9420
9421 2015-08-04  Richard Biener  <rguenther@suse.de>
9422
9423         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9424         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9425         comparisons embedded in [VEC_]COND_EXPRs.
9426
9427 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
9428
9429         * tree-if-conv.c: Fix various typos in comments.
9430         * tree-vect-stmts.c: Likewise.
9431
9432 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9433
9434         PR tree-optimization/67043
9435         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9436         preheader after hoisting invariant in it.
9437         (find_defs): Force recomputation of all luids.
9438
9439 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
9440
9441         * config/rs6000/htm.md (tabort.): Restrict the source operand to
9442         using a base register.
9443
9444 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
9445
9446         * main.c (main): Pass in NULL for toplev's external_timer.
9447         * timevar.c: Include coretypes.h.
9448         (class timer::named_items): New.
9449         (timer::named_items::named_items): New.
9450         (timer::named_items::~named_items): New.
9451         (timer::named_items::push): New.
9452         (timer::named_items::pop): New.
9453         (timer::named_items::print): New.
9454         (timer::timer): Initialize field "m_jit_client_items".
9455         (timer::~timer): New.
9456         (timer::push): Move bulk of implementation to...
9457         (timer::push_internal): ...here.  New function.
9458         (timer::pop): Move bulk of implementation to...
9459         (timer::pop_internal): ...here.  New function.
9460         (timer::push_client_item): New.
9461         (timer::pop_client_item): New.
9462         (timer::print_row): New function, taken from timer::print.
9463         (timer::print): Print "GCC items" header if we also have client
9464         items.  Move row-printing to timer::print_row.  Print any client
9465         items.
9466         (timer::get_topmost_item_name): New method.
9467         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9468         (TV_JIT_CLIENT_CODE): New.
9469         * timevar.h (timer::push_client_item): New declaration.
9470         (timer::pop_client_item): New declaration.
9471         (timer::get_topmost_item_name): New method.
9472         (timer::push_internal): New declaration.
9473         (timer::pop_internal): New declaration.
9474         (timer::print_row): New declaration.
9475         (timer::named_items): New declaration.
9476         (timer::m_jit_client_items): New field.
9477         (timer): Add friend class named_items.
9478         (auto_timevar::auto_timevar): Add timer param.
9479         (auto_timevar::~auto_timevar): Use field "m_timer".
9480         (auto_timevar::m_timer): New field.
9481         * toplev.c (initialize_rtl): Add g_timer as param when
9482         constructing auto_timevar instance.
9483         (toplev::toplev): Add "external_timer" param, and use it to
9484         initialize the "g_timer" global if non-NULL.
9485         (toplev::~toplev): If this created "g_timer", delete it.
9486         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9487         with "external_timer" timer *.
9488
9489 2015-08-03  Alexander Basov <coohpt@gmail.com>
9490
9491         PR middle-end/64744
9492         PR middle-end/48470
9493         PR middle-end/43404
9494         * cfgexpand.c (expand_one_var): Add check if stack is going to
9495         be used in naked function.
9496         * expr.c (expand_expr_addr_expr_1): Remove excess checking
9497         whether expression should not reside in MEM.
9498         * function.c (use_register_for_decl): Do not use registers for
9499         non-register things (volatile, float, BLKMode) in naked functions.
9500
9501 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
9502
9503         PR target/67060
9504         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9505         Adjust splits to match new pattern.
9506
9507 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9508
9509         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9510         (VEC_M): Likewise.
9511         (VEC_N): Likewise.
9512         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9513         point in VSX registers.
9514
9515         * config/rs6000/constraints.md (wb constraint): Document unused
9516         w<x> constraint.
9517         (we constraint): Likewise.
9518         (wo constraint): Likewise.
9519         (wp constraint): New constraint for IEEE 128-bit floating point in
9520         VSX registers.
9521         (wq constraint): Likewise.
9522
9523         * config/rs6000/predicates.md (easy_fp_constant): Add support for
9524         IEEE 128-bit floating point in VSX registers.
9525         (easy_scalar_constant): Likewise.
9526
9527         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9528         constraints (wp, wq) for IEEE 128-bit floating point in VSX
9529         registers.
9530         (rs6000_init_hard_regno_mode_ok): Likewise.
9531
9532         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9533         floating point in VSX registers.
9534         (VSX_L): Likewise.
9535         (VSX_M): Likewise.
9536         (VSX_M2): Likewise.
9537         (VSm): Likewise.
9538         (VSs): Likewise.
9539         (VSr): Likewise.
9540         (VSa): Likewise.
9541         (VSv): Likewise.
9542         (vsx_le_permute_<mode>): Add support to properly swap bytes for
9543         IEEE 128-bit floating point in VSX registers on little endian.
9544         (vsx_le_undo_permute_<mode>): Likewise.
9545         (vsx_le_perm_load_<mode>): Likewise.
9546         (vsx_le_perm_store_<mode>): Likewise.
9547         (splitters for IEEE 128-bit fp moves): Likewise.
9548
9549         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9550         wq constraints.
9551
9552         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9553         floating point in VSX registers.
9554         (VM2): Likewise.
9555
9556         * doc/md.text (Machine Constraints): Document wp and wq
9557         constraints on PowerPC.
9558
9559 2015-08-03  Jeff Law  <law@redhat.com>
9560
9561         PR middle-end/66314
9562         PR gcov-profile/66899
9563         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9564         iterate over the jump threading paths when an element in the
9565         jump threading paths array is eliminated.
9566
9567 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
9568
9569         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9570
9571 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
9572
9573         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9574         is_use_properly_guarded the variable def_preds.  Free its
9575         contents before returning.
9576         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9577         (is_use_properly_guarded): Replace local variable def_preds with
9578         a parameter.  Adjust accordingly.  Only update *def_preds if it's
9579         the empty vector.
9580
9581 2015-08-03  Richard Biener  <rguenther@suse.de>
9582
9583         * genmatch.c (simplify::for_subst_vec): New member.
9584         (binary_ok): New helper for for lowering.
9585         (lower_for): Delay substituting operators into result expressions
9586         if we can merge the results eventually again.
9587         (capture_info::walk_result): Adjust for user_id appearing as
9588         result expression operator.
9589         (expr::gen_transform): Likewise.
9590         (dt_simplify::gen_1): Likewise.
9591         (dt_simplify::gen): Pass not substituted operators to tail
9592         functions or initialize local variable with it.
9593         (decision_tree::gen): Adjust function signature.
9594         * match.pd: Fix tests against global code and add default
9595         cases to switch stmts.
9596
9597 2015-08-03  Richard Biener  <rguenther@suse.de>
9598
9599         * genmatch.c (dt_simplify::gen): Create captures array
9600         with an initializer.
9601
9602 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9603
9604         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9605         the host compiler is affected by placement new aliasing bug.
9606         * configure: Regenerate.
9607         * Makefile.in (ALIASING_FLAGS): New variable.
9608         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9609
9610 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9611
9612         PR target/66731
9613         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9614         (negmulsf3_vfp): Likewise.
9615         (muldf3negdf_vfp): Disable for -frounding-math.
9616         (mulsf3negsf_vfp): Likewise.
9617         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9618         fix MULT cost with -frounding-math.
9619
9620 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9621
9622         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9623         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9624         explicit.  Prefer to add the flag whenever possible.
9625         (noce_process_if_block): Try noce_try_store_flag_constants before
9626         noce_try_cmove.
9627
9628 2015-08-03  Richard Biener  <rguenther@suse.de>
9629
9630         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9631         New hash-map to record equivalent transforms.
9632         (dt_node::analyze): Populate the equivalent transforms hash-map.
9633         (dt_simplify::info): Add reference to hash-map entry.
9634         (dt_simplify::gen): If we have split out a function for the
9635         transform, generate a call to it.
9636         (sinfo_hashmap_traits::hash): New function.
9637         (compare_op): New helper function for ...
9638         (sinfo_hashmap_traits::equal_keys): ... this new function.
9639         (decision_tree::gen): Split out common equivalent transforms
9640         into functions.
9641
9642 2015-08-03  Richard Biener  <rguenther@suse.de>
9643
9644         * gimple-fold.c (fold_gimple_assign): Remove folding of
9645         the comparison in COND_EXPRs.
9646
9647 2015-08-03  Richard Biener  <rguenther@suse.de>
9648
9649         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9650         on the rhs of assignments first simplify the embedded
9651         GENERIC condition.
9652
9653 2015-08-03  Richard Biener  <rguenther@suse.de>
9654
9655         PR tree-optimization/66917
9656         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9657         field.
9658         (DR_VECT_AUX): New macro.
9659         (set_dr_misalignment): Adjust.
9660         (dr_misalignment): Likewise.
9661         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9662         Compute whether the base is at least element aligned.
9663         * tree-vect-stmts.c (ensure_base_align): Adjust.
9664         (vectorizable_store): If the base is not element aligned
9665         preserve alignment of the original access if misalignment is unknown.
9666         (vectorizable_load): Likewise.
9667
9668 2015-08-02  Martin Sebor  <msebor@redhat.com>
9669
9670         * c-family/c.opt (-Wframe-address): New warning option.
9671         * doc/invoke.texi (Wframe-address): Document it.
9672         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9673         Clarify possible effects of calling the functions with non-zero
9674         arguments and mention -Wframe-address.
9675         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9676
9677 2015-08-01  Michael Collison  <michael.collison@linaro.org
9678             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9679
9680         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9681         (*arm_umin_cmp): Likewise.
9682
9683 2015-08-01  Caroline Tice  <cmtice@google.com>
9684
9685         PR 66521
9686         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9687         global variables.
9688         (vtbl_find_mangled_name):  New function.
9689         (vtbl_register_mangled_name):  New function.
9690         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
9691         mangled name in mangled name vectors.
9692         (find_or_create_vtbl_map_node):  Ditto.
9693         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
9694         update recursion_depth on function entry; pass it to every recursive
9695         call; automatically exit if depth > 25 (give up looking at that point).
9696         (verify_bb_vtables):  Initialize recursion_depth and pass it to
9697         var_is_used_for_virtual_call_p.
9698         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9699         global variable decls.
9700         (vtbl_register_mangled_name): New extern function decl.
9701
9702 2015-08-01  Tom de Vries  <tom@codesourcery.com>
9703
9704         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9705         function.
9706         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9707         Declare.
9708         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9709         operation_no_trapping_overflow.  Allow non-overflow operations.
9710         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9711         operations.
9712
9713 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9714
9715         PR target/67049
9716         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9717
9718 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9719
9720         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9721         Enable for TARGET_32BIT.
9722         (*if_move_neg): Likewise.
9723
9724 2015-07-31  Nick Clifton  <nickc@redhat.com>
9725
9726         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9727         Returns true for __model__.
9728         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9729
9730 2015-07-31  Alan Modra  <amodra@gmail.com>
9731
9732         PR target/66870
9733         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9734         (rs6000_emit_prologue): Set it.
9735         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9736
9737 2015-07-31  Richard Biener  <rguenther@suse.de>
9738
9739         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9740         -> X == (C1 ^ C2) which is already implemented in match.pd.
9741         Remove redundant dispatching to fold_relational_const.
9742         Move unordered self and NaN compares ...
9743         * match.pd: ... as patterns here.  Remove some stray captures
9744         and add a comment.
9745
9746 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
9747
9748         * config/i386/i386.c
9749         (bdesc_special_args): Convert mask type from signed to unsigned for
9750         masked builtins.
9751         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9752         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9753         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9754         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9755         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9756         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9757         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9758         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9759         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9760         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9761         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9762         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9763         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9764         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9765         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9766         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9767         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9768         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9769         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9770         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9771         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9772         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9773         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9774         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9775         * config/i386/i386-builtin-types.def
9776         (V16QI_FTYPE_V16SI): Remove.
9777         (V8DF_FTYPE_V8SI): Ditto.
9778         (V8HI_FTYPE_V8DI): Ditto.
9779         (V8SI_FTYPE_V8DI): Ditto.
9780         (V8SF_FTYPE_V8DF): Ditto.
9781         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9782         (V16HI_FTYPE_V16SI): Ditto.
9783         (V16SF_FTYPE_V16HI): Ditto.
9784         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9785         (V16SF_FTYPE_V16SI): Ditto.
9786         (V4DI_FTYPE_V4DI): Ditto.
9787         (V16SI_FTYPE_V16SF): Ditto.
9788         (V16SF_FTYPE_FLOAT): Ditto.
9789         (V8DF_FTYPE_DOUBLE): Ditto.
9790         (V8DI_FTYPE_INT64): Ditto.
9791         (V8DI_FTYPE_V4DI): Ditto.
9792         (V16QI_FTYPE_V8DI): Ditto.
9793         (UINT_FTYPE_V4SF): Ditto.
9794         (UINT64_FTYPE_V4SF): Ditto.
9795         (UINT_FTYPE_V2DF): Ditto.
9796         (UINT64_FTYPE_V2DF): Ditto.
9797         (V16SI_FTYPE_V16SI): Ditto.
9798         (V8DI_FTYPE_V8DI): Ditto.
9799         (V16SI_FTYPE_PV4SI): Ditto.
9800         (V16SF_FTYPE_PV4SF): Ditto.
9801         (V8DI_FTYPE_PV2DI): Ditto.
9802         (V8DF_FTYPE_PV2DF): Ditto.
9803         (V4DI_FTYPE_PV2DI): Ditto.
9804         (V4DF_FTYPE_PV2DF): Ditto.
9805         (V16SI_FTYPE_PV2SI): Ditto.
9806         (V16SF_FTYPE_PV2SF): Ditto.
9807         (V8DI_FTYPE_PV4DI): Ditto.
9808         (V8DF_FTYPE_PV4DF): Ditto.
9809         (V8SF_FTYPE_FLOAT): Ditto.
9810         (V4SF_FTYPE_FLOAT): Ditto.
9811         (V4DF_FTYPE_DOUBLE): Ditto.
9812         (V8SF_FTYPE_PV4SF): Ditto.
9813         (V8SI_FTYPE_PV4SI): Ditto.
9814         (V4SI_FTYPE_PV2SI): Ditto.
9815         (V8SF_FTYPE_PV2SF): Ditto.
9816         (V8SI_FTYPE_PV2SI): Ditto.
9817         (V16SF_FTYPE_PV8SF): Ditto.
9818         (V16SI_FTYPE_PV8SI): Ditto.
9819         (V8DI_FTYPE_V8SF): Ditto.
9820         (V4DI_FTYPE_V4SF): Ditto.
9821         (V2DI_FTYPE_V4SF): Ditto.
9822         (V64QI_FTYPE_QI): Ditto.
9823         (V32HI_FTYPE_HI): Ditto.
9824         (V8UHI_FTYPE_V8UHI): Ditto.
9825         (V16UHI_FTYPE_V16UHI): Ditto.
9826         (V32UHI_FTYPE_V32UHI): Ditto.
9827         (V2UDI_FTYPE_V2UDI): Ditto.
9828         (V4UDI_FTYPE_V4UDI): Ditto.
9829         (V8UDI_FTYPE_V8UDI): Ditto.
9830         (V4USI_FTYPE_V4USI): Ditto.
9831         (V8USI_FTYPE_V8USI): Ditto.
9832         (V16USI_FTYPE_V16USI): Ditto.
9833         (V2DF_FTYPE_V2DF_UINT64): Ditto.
9834         (V2DI_FTYPE_V2DF_V2DF): Ditto.
9835         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9836         (V8DF_FTYPE_V8DF_V8DI): Ditto.
9837         (V4SF_FTYPE_V4SF_UINT64): Ditto.
9838         (V4SI_FTYPE_V4SF_V4SF): Ditto.
9839         (V16SF_FTYPE_V16SF_V16SI): Ditto.
9840         (V64QI_FTYPE_V32HI_V32HI): Ditto.
9841         (V32HI_FTYPE_V16SI_V16SI): Ditto.
9842         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9843         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9844         (V32HI_FTYPE_V64QI_V64QI): Ditto.
9845         (V32HI_FTYPE_V32HI_V32HI): Ditto.
9846         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9847         (V16SI_FTYPE_V16SI_V4SI): Ditto.
9848         (V16SI_FTYPE_V16SI_V16SI): Ditto.
9849         (V16SI_FTYPE_V32HI_V32HI): Ditto.
9850         (V16SI_FTYPE_V16SI_SI): Ditto.
9851         (V8DI_FTYPE_V8DI_V8DI): Ditto.
9852         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9853         (V8DI_FTYPE_V16SI_V16SI): Ditto.
9854         (V8DI_FTYPE_V8DI_V2DI): Ditto.
9855         (QI_FTYPE_QI): Ditto.
9856         (SI_FTYPE_SI): Ditto.
9857         (DI_FTYPE_DI): Ditto.
9858         (QI_FTYPE_QI_QI): Ditto.
9859         (QI_FTYPE_QI_INT): Ditto.
9860         (HI_FTYPE_HI_INT): Ditto.
9861         (SI_FTYPE_SI_INT): Ditto.
9862         (DI_FTYPE_DI_INT): Ditto.
9863         (HI_FTYPE_V16QI_V16QI): Ditto.
9864         (SI_FTYPE_V32QI_V32QI): Ditto.
9865         (DI_FTYPE_V64QI_V64QI): Ditto.
9866         (QI_FTYPE_V8HI_V8HI): Ditto.
9867         (HI_FTYPE_V16HI_V16HI): Ditto.
9868         (SI_FTYPE_V32HI_V32HI): Ditto.
9869         (QI_FTYPE_V4SI_V4SI): Ditto.
9870         (QI_FTYPE_V8SI_V8SI): Ditto.
9871         (QI_FTYPE_V2DI_V2DI): Ditto.
9872         (QI_FTYPE_V4DI_V4DI): Ditto.
9873         (QI_FTYPE_V8DI_V8DI): Ditto.
9874         (HI_FTYPE_V16SI_V16SI): Ditto.
9875         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9876         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9877         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9878         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9879         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9880         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9881         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9882         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9883         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9884         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9885         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9886         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9887         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9888         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9889         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9890         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9891         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9892         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9893         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9894         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9895         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9896         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9897         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9898         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9899         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9900         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9901         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9902         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9903         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9904         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9905         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9906         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9907         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9908         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9909         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9910         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9911         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9912         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9913         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9914         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9915         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9916         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9917         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9918         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9919         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9920         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9921         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9922         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9923         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9924         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9925         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9926         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9927         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9928         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9929         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9930         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9931         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9932         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9933         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9934         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9935         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9936         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9937         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9938         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9939         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9940         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9941         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9942         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9943         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9944         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9945         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9946         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9947         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9948         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9949         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9950         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9951         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
9952         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
9953         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
9954         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9955         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9956         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
9957         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
9958         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
9959         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9960         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
9961         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
9962         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9963         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9964         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9965         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
9966         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9967         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
9968         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
9969         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9970         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9971         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9972         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9973         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
9974         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
9975         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
9976         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9977         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9978         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9979         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9980         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
9981         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
9982         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
9983         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
9984         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9985         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9986         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9987         (HI_FTYPE_HI): Ditto.
9988         (HI_FTYPE_V16QI): Ditto.
9989         (SI_FTYPE_V32QI): Ditto.
9990         (DI_FTYPE_V64QI): Ditto.
9991         (QI_FTYPE_V8HI): Ditto.
9992         (HI_FTYPE_V16HI): Ditto.
9993         (SI_FTYPE_V32HI): Ditto.
9994         (QI_FTYPE_V4SI): Ditto.
9995         (QI_FTYPE_V8SI): Ditto.
9996         (HI_FTYPE_V16SI): Ditto.
9997         (QI_FTYPE_V2DI): Ditto.
9998         (QI_FTYPE_V4DI): Ditto.
9999         (QI_FTYPE_V8DI): Ditto.
10000         (V16QI_FTYPE_HI): Ditto.
10001         (V32QI_FTYPE_SI): Ditto.
10002         (V64QI_FTYPE_DI): Ditto.
10003         (V8HI_FTYPE_QI): Ditto.
10004         (V16HI_FTYPE_HI): Ditto.
10005         (V32HI_FTYPE_SI): Ditto.
10006         (V4SI_FTYPE_QI): Ditto.
10007         (V4SI_FTYPE_HI): Ditto.
10008         (V8SI_FTYPE_QI): Ditto.
10009         (V8SI_FTYPE_HI): Ditto.
10010         (V2DI_FTYPE_QI): Ditto.
10011         (V4DI_FTYPE_QI): Ditto.
10012         (HI_FTYPE_HI_HI): Ditto.
10013         (SI_FTYPE_SI_SI): Ditto.
10014         (DI_FTYPE_DI_DI): Ditto.
10015         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10016         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10017         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10018         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10019         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10020         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10021         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10022         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10023         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10024         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10025         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10026         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10027         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10028         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10029         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10030         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10031         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10032         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10033         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10034         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10035         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10036         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10037         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10038         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10039         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10040         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10041         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10042         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10043         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10044         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10045         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10046         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10047         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10048         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10049         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10050         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10051         (V16SI_FTYPE_HI): Ditto.
10052         (V8DI_FTYPE_QI): Ditto.
10053         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10054         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10055         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10056         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10057         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10058         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10059         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10060         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10061         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10062         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10063         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10064         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10065         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10066         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10067         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10068         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10069         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10070         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10071         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10072         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10073         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10074         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10075         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10076         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10077         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10078         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10079         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10080         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10081         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10082         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10083         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10084         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10085         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10086         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10087         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10088         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10089         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10090         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10091         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10092         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10093         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10094         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10095         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10096         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10097         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10098         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10099         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10100         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10101         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10102         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10103         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10104         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10105         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10106         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10107         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10108         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10109         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10110         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10111         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10112         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10113         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10114         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10115         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10116         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10117         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10118         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10119         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10120         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10121         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10122         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10123         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10124         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10125         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10126         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10127         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10128         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10129         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10130         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10131         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10132         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10133         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10134         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10135         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10136         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10137         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10138         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10139         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10140         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10141         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10142         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10143         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10144         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10145         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10146         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10147         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10148         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10149         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10150         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10151         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10152         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10153         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10154         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10155         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10156         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10157         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10158         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10159         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10160         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10161         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10162         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10163         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10164         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10165         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10166         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10167         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10168         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10169         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10170         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10171         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10172         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10173         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10174         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10175         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10176         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10177         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10178         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10179         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10180         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10181         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10182         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10183         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10184         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10185         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10186         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10187         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10188         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10189         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10190         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10191         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10192         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10193         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10194         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10195         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10196         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10197         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10198         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10199         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10200         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10201         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10202         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10203         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10204         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10205         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10206         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10207         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10208         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10209         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10210         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10211         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10212         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10213         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10214         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10215         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10216         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10217         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10218         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10219         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10220         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10221         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10222         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10223         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10224         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10225         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10226         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10227         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10228         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10229         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10230         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10231         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10232         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10233         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10234         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10235         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10236         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10237         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10238         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10239         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10240         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10241         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10242         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10243         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10244         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10245         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10246         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10247         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10248         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10249         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10250         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10251         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10252         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10253         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10254         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10255         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10256         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10257         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10258         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10259         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10260         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10261         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10262         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10263         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10264         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10265         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10266         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
10267         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10268         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10269         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10270         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10271         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10272         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10273         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10274         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10275         (QI_FTYPE_V8DF_INT_QI): Ditto.
10276         (QI_FTYPE_V4DF_INT_QI): Ditto.
10277         (QI_FTYPE_V2DF_INT_QI): Ditto.
10278         (HI_FTYPE_V16SF_INT_HI): Ditto.
10279         (QI_FTYPE_V8SF_INT_QI): Ditto.
10280         (QI_FTYPE_V4SF_INT_QI): Ditto.
10281         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10282
10283 2015-07-31  Richard Biener  <rguenther@suse.de>
10284
10285         * gimple-fold.c (fold_gimple_assign): Remove folding of
10286         GIMPLE_BINARY_RHS.
10287
10288 2015-07-31  Tom de Vries  <tom@codesourcery.com>
10289
10290         PR tree-optimization/66846
10291         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10292         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10293         (expand_omp_target) [ENABLE_CHECKING]: Same.
10294         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10295         cfun if !LOOPS_NEED_FIXUP.
10296         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
10297         that omp_for already has its own loop struct.
10298         * tree-parloops.c (create_phi_for_local_result)
10299         (create_call_for_reduction): Handle simple latch bb.
10300         (create_parallel_loop): Add simple latch bb to preserve
10301         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
10302         (gen_parallel_loop): Remove call to cancel_loop_tree.
10303         (parallelize_loops): Skip loops that are inner loops of parallelized
10304         loops.
10305         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10306         verify_loop_structure.
10307
10308 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10309
10310         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10311         * config/v850/v850.md (RV_REGNUM): New constants.
10312         * config/v850/v850.c (v850_libcall_value): New functions.
10313         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10314         (TARGET_LIBCALL_VALUE): Define.
10315
10316 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10317
10318         * rtl.h (lowpart_subreg): Move in file.
10319         * loop-iv.c (lowpart_subreg): Move to...
10320         * simplify-rtx.c (lowpart_subreg): ...here.
10321           (simplify_binary_operation_1): Use lowpart_subreg instead of
10322           simplify_gen_subreg.
10323         * expr.c (expand_expr_real_2): Ditto.
10324         * emit-rtl.c (gen_lowpart_common): Ditto.
10325         * combine.c (gen_lowpart_for_combine): Ditto.
10326         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10327           expand_debug_source_expr): Ditto.
10328
10329 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
10330
10331         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10332         (expand_builtin_atomic_clear): Remove support for atomic_clear
10333         pattern.
10334
10335 2015-07-30  Richard Biener  <rguenther@suse.de>
10336
10337         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10338         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10339         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
10340         redundant operand canonicalization.
10341
10342 2015-07-30  David Sherwood  <david.sherwood@arm.com>
10343
10344         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10345         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10346         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10347         * config/arm/arm.c (neon_valid_immediate): Likewise.
10348         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10349         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10350         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10351         (expand_vec_perm_vpshufb2_vpermq): Likewise.
10352         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10353         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10354         * config/i386/sse.md
10355         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10356         (*ssse3_palignr<mode>_perm): Likewise.
10357         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10358         * config/spu/spu.c (arith_immediate_p): Likewise.
10359         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10360         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10361
10362 2015-07-30  Richard Biener  <rguenther@suse.de>
10363
10364         * genmatch.c (decision_tree::gen_gimple): Merge with ...
10365         (decision_tree::gen_generic): ... this into ...
10366         (decision_tree::gen): ... this.
10367         (main): Adjust callers.
10368
10369 2015-07-30  Richard Biener  <rguenther@suse.de>
10370
10371         * genmatch.c (verbose): New global.
10372         (warning_at): Add overload with source_location.
10373         (capture_info::capture_info): Add bool whether generating gimple
10374         or generic.  Add gimple member.
10375         (capture_info::cinfo): Add capture member.
10376         (capture_info::walk_match): Record capture.  Warn on
10377         non-captured leafs.
10378         (capture_info::walk_c_expr): Add more fragments captures cannot
10379         escape through.  Warn on escaped captures.
10380         (dt_simplify::gen_1): Warn on operands we force to have no
10381         side-effects.
10382         (main): Initialize verbose.
10383         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10384
10385 2015-07-30  Richard Biener  <rguenther@suse.de>
10386
10387         PR middle-end/67053
10388         * match.pd: Allow both operands to independently have conversion
10389         when simplifying compares of addresses.
10390
10391 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
10392
10393         PR target/66217
10394         PR target/67045
10395         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10396         around those cases that need one.
10397
10398 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
10399
10400         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10401
10402 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10403
10404         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10405         New.  Copied from config/i386/gnu-user.h.
10406         (ASM_COMMENT_START): Likewise.
10407         (DBX_REGISTER_NUMBER): Likewise.
10408
10409 2015-07-29  Richard Biener  <rguenther@suse.de>
10410
10411         * gimple-fold.c (fold_gimple_cond): Remove.
10412         (fold_stmt_1): Do not call it.
10413
10414 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
10415
10416         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10417         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10418
10419         * config/aarch64/aarch64-modes.def: Add HFmode.
10420
10421         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10422         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10423
10424         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10425         aarch64_promoted_type): New.
10426
10427         (aarch64_float_const_representable_p): Disable HFmode.
10428         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10429         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10430         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10431
10432         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10433         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10434
10435         * config/aarch64/iterators.md (GPF_F16): New.
10436
10437 2015-07-29  Richard Biener  <rguenther@suse.de>
10438
10439         * match.pd: Merge address comparison patterns and make them
10440         handle some more cases.
10441
10442 2015-07-29  Richard Biener  <rguenther@suse.de>
10443
10444         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10445         (parser::parse_capture): Add bool argument on whether to reject
10446         unknown captures.
10447         (parser::parse_expr): Adjust.
10448         (parser::parse_op): Likewise.
10449         (parser::parse_pattern): Likewise.
10450
10451 2015-07-29  Richard Biener  <rguenther@suse.de>
10452
10453         * gimple-fold.c (has_use_on_stmt): New function.
10454         (replace_stmt_with_simplification): Use it to allow
10455         abnormals originally referenced in the stmt.
10456         (fold_stmt_1): Canonicalize operand order.
10457
10458 2015-07-28  David Sherwood  <david.sherwood@arm.com>
10459
10460         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10461         GET_MODE_INNER unconditionally.
10462         * config/spu/spu.c (arith_immediate_p): Likewise.
10463         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10464         * expmed.c (synth_mult): Remove check for VOIDmode result from
10465         GET_MODE_INNER.
10466         (expand_mult_const): Likewise.
10467         * fold-const.c (fold_binary_loc): Replace call to element_precision
10468         with call to GET_MODE_PRECISION.
10469         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10470         m->name.
10471         (emit_mode_inner): Likewise.
10472         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10473         result check.
10474         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10475         (GET_MODE_UNIT_PRECISION): Likewise.
10476         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10477         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10478         * stor-layout.c (bitwise_type_for_mode): Update assert.
10479         (element_precision): Remove.
10480
10481 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10482
10483         * target-insns.def (reload_load_address): New targetm instruction
10484         pattern.
10485         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10486
10487 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10488
10489         * target-insns.def (atomic_test_and_set): New targetm instruction
10490         pattern.
10491         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10492         HAVE_*/gen_* interface.
10493
10494 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10495
10496         * target-insns.def (can_extend, ptr_extend): New targetm instruction
10497         patterns.
10498         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10499         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10500         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10501         * rtlanal.c (nonzero_bits1): Likewise.
10502         (num_sign_bit_copies1): Likewise.
10503
10504 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10505
10506         * target-insns.def (eh_return): New targetm instruction pattern.
10507         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10508         interface.
10509         * function.c (thread_prologue_and_epilogue_insns): Remove
10510         preprocessor condition.
10511
10512 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10513
10514         * target-insns.def (indirect_jump): New targetm instruction pattern.
10515         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10516         interface.
10517
10518 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10519
10520         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10521         instead of nonimmediate_operand.  Remove C condiition.
10522
10523 2015-07-28  Richard Biener  <rguenther@suse.de>
10524
10525         * match.pd: Add more simplification of address comparisons.
10526
10527 2015-07-28  Richard Biener  <rguenther@suse.de>
10528
10529         * match.pd: Re-order two cases in comparison with max/min
10530         value simplification to make it apply for bools.
10531
10532 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10533
10534         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10535         Handle simple SIGN_EXTEND or ZERO_EXTEND.
10536         (aarch64_rtx_costs): Properly strip extend or extract before
10537         passing down to rtx costs again.
10538
10539 2015-07-28  Nick Clifton  <nickc@redhat.com>
10540
10541         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10542         Optimizes the case where -mes0 is active and a constant symbolic
10543         address is used.
10544         * config/rl78/rl78-protos.h: Prototype the new function.
10545         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10546
10547 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10548
10549         * tree-parloops.c (reduc_stmt_res): New function.
10550         (initialize_reductions, add_field_for_reduction)
10551         (create_phi_for_local_result, create_loads_for_reductions)
10552         (create_stores_for_reduction, build_new_reduction): Handle case that
10553         reduc_stmt is a phi.
10554         (gather_scalar_reductions): Allow double_reduc reductions.
10555
10556 2015-07-28  Richard Biener  <rguenther@suse.de>
10557
10558         * fold-const.c (fold_comparison): Remove equality folding
10559         of decl addresses ...
10560         * match.pd: ... here and merge with existing pattern.
10561
10562 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10563
10564         PR tree-optimization/66828
10565         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10566         from int64_t to uint64_t.
10567
10568 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10569
10570         * opts-common.c (read_cmdline_option): List DriverOnly enum values
10571         as valid only in the error message of the driver, not in the
10572         messages of the language compilers.
10573
10574 2015-07-27  Tom de Vries  <tom@codesourcery.com>
10575
10576         * tree-parloops.c (gather_scalar_reductions): Simplify function
10577         structure.
10578
10579 2015-07-27  Marek Polacek  <polacek@redhat.com>
10580
10581         * ipa-devirt.c (types_same_for_odr): Fix typo.
10582
10583 2015-07-27  Jason Merrill  <jason@redhat.com>
10584
10585         PR debug/66468
10586         * dwarf2out.c (gen_inlined_subroutine_die): Check
10587         cgraph_function_possibly_inlined_p.
10588
10589 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10590
10591         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10592         Place integer variant first.
10593         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10594
10595 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10596
10597         PR/63870
10598         * config/arm/arm-builtins.c (enum arm_builtins):
10599         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10600         (ARM_BUILTIN_NEON_BASE): Rename macro to....
10601         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10602         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10603         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10604
10605 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10606
10607         PR/63870
10608         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10609         Add qualifier_lane_index.
10610         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10611         (arm_getlane_qualifiers): Use qualifier_lane_index.
10612         (arm_lanemac_qualifiers): Rename to...
10613         (arm_mac_n_qualifiers): ...this.
10614         (LANEMAC_QUALIFIERS): Rename to...
10615         (MAC_N_QUALIFIERS): ...this.
10616         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10617         (arm_setlane_qualifiers): Use qualifier_lane_index.
10618         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10619         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10620         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10621         (arm_expand_neon_builtin): Handle qualifier_lane_index.
10622
10623         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10624         * config/arm/arm.c (bounds_check): Likewise, improve error message.
10625         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10626         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10627         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10628         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10629         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10630         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10631         qualifiers to TERNOP_IMM.
10632         (vdup_lane): Change qualifiers to GETLANE.
10633         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10634         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10635         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10636         vqdmlsl_n): Change qualifiers to MAC_N.
10637
10638         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10639         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10640         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10641         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10642         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10643         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10644         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10645         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10646         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10647         Remove call to neon_lane_bounds.
10648
10649 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10650
10651         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10652         Place integer variant first.
10653
10654 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
10655
10656         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10657         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10658         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10659         for armv6kz targets.
10660         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10661         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10662         (FL_FOR_ARCH6ZK): Remove.
10663         (FL_FOR_ARCH6KZ): New.
10664         (arm_arch6zk): New declaration.
10665         * config/arm/arm-tables.opt: Regenerate.
10666         * config/arm/arm.c (arm_arch6kz): New.
10667         (arm_option_override): Set arm_arch6kz.
10668         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10669         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10670         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10671
10672 2015-07-27  Marek Polacek  <polacek@redhat.com>
10673
10674         PR c++/66555
10675         PR c/54979
10676         * doc/invoke.texi: Document -Wtautological-compare.
10677
10678 2015-07-27  Richard Biener  <rguenther@suse.de>
10679
10680         * genmatch.c (decision_tree::gen_gimple): Split out large
10681         subtrees into separate functions.
10682         (decision_tree::gen_generic): Likewise.
10683
10684 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
10685
10686         * config/alpha/alpha.c: Use SUBREG_P predicate.
10687         * config/alpha/predicates.md: Ditto.
10688
10689 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10690
10691         * config.host (s390*-*-*): Include driver-native.c only when
10692         building with s390* as host *and* target.
10693
10694 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
10695
10696         PR target/66930
10697         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10698         T bit register modified_between_p check.
10699
10700 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10701
10702         * config/i386/i386.c: Use SUBREG_P predicate.
10703         * config/i386/i386.md: Ditto.
10704         * config/i386/sse.md: Ditto.
10705         * config/i386/predicates.md: Ditto.
10706
10707 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10708
10709         PR target/67004
10710         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10711         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10712
10713 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10714
10715         * Makefile.in: Remove use of TREEBROWSER.
10716         * config.in: Regenerated.
10717         * configure: Regenerated.
10718         * configure.ac: Remove definition of TREEBROWSER.
10719         * tree-browser.c: Removed.
10720         * tree-browser.def: Removed.
10721
10722 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10723
10724         * graphite-scop-detection.c: Include gimple-pretty-print.h.
10725         (stmt_simple_for_scop_p): Print when a stmt is not handled in
10726         Graphite.
10727         (scopdet_basic_block_info): Print when a loop or bb cannot be
10728         represented in Graphite.
10729
10730 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10731
10732         PR target/66648
10733         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10734         execution guard when min_size is less than size_needed.
10735
10736 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10737
10738         * doc/install.texi: Document supported versions of ISL.
10739
10740 2015-07-25  Jeff Law  <law@redhat.com>
10741
10742         Revert:
10743         PR lto/66752
10744         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10745         unable to find X NE 0 in the tables, return X as the simplified
10746         condition.
10747         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10748         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10749         to VISISTED_BBS.  */
10750         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10751         after removing the control flow statement and unnecessary edges.
10752
10753 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
10754
10755         Revert:
10756         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10757
10758         PR rtl-optimization/64164
10759         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10760         * tree-ssa-copyrename.c: Removed.
10761         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10762         -ftree-coalesce-vars.
10763         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10764         * common.opt (ftree-copyrename): Ignore.
10765         (ftree-coalesce-inlined-vars): Likewise.
10766         * doc/invoke.texi: Remove the ignored options above.
10767         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10768         * tree-ssa-coalesce.h: ... here.
10769         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10770         headers required by it.
10771         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10772         across variables when flag_tree_coalesce_vars.  Check register
10773         use and promoted modes to allow coalescing.  Moved to
10774         tree-ssa-coalesce.c.
10775         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10776         with its member functions to tree-ssa-coalesce.c.
10777         (var_map_base_init): Likewise.  Renamed to
10778         compute_samebase_partition_bases.
10779         (partition_view_normal): Drop want_bases parameter.
10780         (partition_view_bitmap): Likewise.
10781         * tree-ssa-live.h: Adjust declarations.
10782         * tree-ssa-coalesce.c: Include explow.h.
10783         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10784         default defs at the entry point.
10785         (dump_part_var_map): New.
10786         (compute_optimized_partition_bases): New, called by...
10787         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10788         of compute_samebase_partition_bases.  Adjust.
10789         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10790         * cfgexpand.c (leader_merge): New.
10791         (get_rtl_for_parm_ssa_default_def): New.
10792         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10793         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10794         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10795         redundant MEM attr setting.
10796         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10797         from...
10798         (expand_one_stack_var): ... this.  New wrapper to check and
10799         skip already expanded SSA partitions.
10800         (record_alignment_for_reg_var): New, factored out of...
10801         (expand_one_var): ... this.
10802         (expand_one_ssa_partition): New.
10803         (adjust_one_expanded_partition_var): New.
10804         (expand_one_register_var): Check and skip already expanded SSA
10805         partitions.
10806         (expand_used_vars): Don't create DECLs for anonymous SSA
10807         names.  Expand all SSA partitions, then adjust all SSA names.
10808         (pass::execute): Replace the loops that set
10809         SA.partition_to_pseudo from partition leaders and cleared
10810         DECL_RTL for multi-location variables, and that which used to
10811         rename vars and set attrs, with one that clears DECL_RTL and
10812         checks that PARMs and RESULTs default_defs match DECL_RTL.
10813         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10814         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10815         * explow.c (promote_ssa_mode): New.
10816         * explow.h (promote_ssa_mode): Declare.
10817         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10818         * function.c: Include cfgexpand.h.
10819         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10820         (use_register_for_parm_decl): Wrapper for the above to
10821         special-case the result_ptr.
10822         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10823         (split_complex_args): Take assign_parm_data_all argument.
10824         Pass it to rtl_for_parm.  Set up rtl and context for split
10825         args.
10826         (assign_parms_augmented_arg_list): Adjust.
10827         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10828         multiple locations.  Recognize split complex args.
10829         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10830         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10831         (assign_parm_setup_block): Prefer SSA-assigned location.
10832         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10833         if stack_parm is NULL.
10834         (assign_parm_setup_stack): Prefer SSA-assigned location.
10835         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10836         rtl before testing for pointer bounds.  Special-case result_ptr.
10837         (expand_function_start): Maybe reset DECL_RTL of result.
10838         Prefer SSA-assigned location for result and static chain.
10839         Factor out DECL_RESULT and SET_DECL_RTL.
10840         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10841         anonymous SSA names.  Use promote_ssa_mode.
10842         (get_temp_reg): Likewise.
10843         (remove_ssa_form): Adjust.
10844         * stor-layout.c (layout_decl): Don't set mem attributes of
10845         non-MEMs.
10846         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10847         and get its reg_usage for reg invalidation.
10848         (compute_bb_dataflow): Pass it insn.
10849         (emit_notes_in_bb): Likewise.
10850
10851 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10852
10853         * config/i386/i386.c (ix86_va_start): Remove
10854         unneeded !TARGET_64BIT check.
10855         (ix86_gimplify_va_arg): Ditto.
10856
10857 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10858
10859         * graphite-sese-to-poly.c (build_poly_scop): Always call
10860         rewrite_commutative_reductions_out_of_ssa.
10861
10862 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10863
10864         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10865         flag_associative_math to FLOAT_TYPE_P.  Honour
10866         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10867
10868 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10869
10870         PR c++/64079
10871         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10872         and "%qD" in warning_at instead of "%q+D" in warning.
10873
10874 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10875
10876         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10877         (ix86_function_abi): Cleanup.
10878
10879 2015-07-24  Michael Darling  <darlingm@gmail.com>
10880
10881         PR other/66259
10882         * acinclude.m4: Reflects renaming of configure.in to configure.ac
10883         * configure: Likewise
10884         * configure.ac: Likewise
10885         * doc/install.texi: Likewise
10886         * doc/tm.texi: Likewise
10887         * doc/tm.texi.in: Likewise
10888
10889 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10890
10891         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10892         manually swapping values.
10893         * cse.c (fold_rtx): Likewise.
10894         * lra-eliminations.c (form_sum): Likewise.
10895
10896 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10897
10898         PR target/64003
10899         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10900         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10901         (*jcc_1, *jcc_2, jump, simple_return_internal)
10902         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10903         Set length_nobnd attribute instead of length attribute.
10904         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10905         (length_nobnd): Remove attribute.
10906         (length): Remove length_nobnd processing.
10907
10908 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
10909
10910         * gimplify.c (omp_default_clause): New function.  Reorganize flow
10911         for clarity. Broken out of ...
10912         (omp_notice_variable): ... here.
10913
10914 2015-07-24  Gary Funck  <gary@intrepid.com>
10915
10916         PR middle-end/66984
10917         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10918         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10919
10920 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10921
10922         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10923         exit-first loop transform.
10924
10925 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10926
10927         PR 66714
10928         * tree-cfg.c (struct replace_decls_d): New struct.
10929         (replace_block_vars_by_duplicates_1): New function.
10930         (replace_block_vars_by_duplicates): Use it to replace the decls
10931         in the value exprs by duplicates.
10932
10933 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10934
10935         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10936         -shared, -symbolic, -rdynamic.
10937
10938 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10939
10940         PR target/65711
10941         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10942         -dynamic-linker within %{!static %{!shared, and -rdynamic within
10943         %{!static.
10944
10945 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
10946
10947         PR ipa/66566
10948         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10949         edge summary is available.
10950
10951 2015-07-24  Richard Biener  <rguenther@suse.de>
10952
10953         * genmatch.c (struct dt_node): Add statistic fields.
10954         (dt_node::analyze): New method.
10955         (decision_tree::gen_gimple): Call analyze on the root node
10956         and print statistics to stderr.
10957         (decision_tree::gen_generic): Likewise.
10958
10959 2015-07-24  Richard Biener  <rguenther@suse.de>
10960
10961         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
10962         against the highest or lowest possible integer ...
10963         * match.pd: ... as patterns here.
10964
10965 2015-07-24  Richard Biener  <rguenther@suse.de>
10966
10967         * genmatch.c (struct capture_info): Add same_as field.
10968         (capture_info::capture_info): Initialize same_as.
10969         (capture_info::walk_match): Compute same_as.
10970         (capture_info::walk_result): Compute stuff for the leader.
10971         (capture_info::walk_c_expr): Likewise.
10972         (dt_simplify::gen_1): Only look at leaders when deciding
10973         to force no side-effects or emit side-effects of omitted operands.
10974
10975 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10976
10977         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
10978         reg note to the GPR -> FPR save instructions.
10979
10980 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10981
10982         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
10983         cheaper.
10984         (s390_expand_insv): Don't generate risbg pattern for constant zero
10985         sources.
10986         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
10987         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
10988         splitters.
10989
10990 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10991
10992         * config/s390/s390.c (s390_reorg): Clean up handling of processors
10993         with
10994         -mtune=
10995         (s390_issue_rate): Likewise.
10996         (s390_sched_reorder): Likewise.
10997         (s390_sched_variable_issue): Likewise.
10998         (s390_loop_unroll_adjust): Likewise.
10999         (s390_option_override):  Likewise.
11000
11001 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11002
11003         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11004         processor capabilities with -march=native.
11005         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11006         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
11007         (S390_TARGET_BITS_STRING): Macro to simplify specs.
11008
11009 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11010
11011         * config/s390/s390.c (s390_issue_rate): Handle
11012         PROCESSOR_2094_Z9_EC.
11013         (s390_option_override): Likewise.
11014         (s390_adjust_priority): Likewise.
11015
11016 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11017
11018         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11019         when cross compiling.
11020
11021 2015-07-24  Richard Biener  <rguenther@suse.de>
11022
11023         * fold-const.c (maybe_canonicalize_comparison_1): Move
11024         A code CST canonicalization ...
11025         * match.pd: ... to a pattern here.
11026
11027 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
11028
11029         Revert:
11030         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11031         PR target/63521
11032         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11033         (HONOR_REG_ALLOC_ORDER): Define.
11034
11035 2015-07-24  Richard Biener  <rguenther@suse.de>
11036
11037         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11038         * fold-const.c (fold_comparison): Move parameter does not
11039         alias &local simplification ...
11040         * match.pd: ... as a pattern here.
11041
11042 2015-07-24  Richard Biener  <rguenther@suse.de>
11043
11044         * gimple-fold.c (replace_stmt_with_simplification): Special-case
11045         valueizing call operands.
11046         * gimple-match-head.c (maybe_push_res_to_seq): Take
11047         number of call arguments from ops array.
11048         (do_valueize): New function.
11049         (gimple_simplify): Return true if valueization changed
11050         any operand even if the result didn't simplify further.
11051
11052 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11053
11054         PR middle-end/25530
11055         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11056
11057 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11058
11059         PR middle-end/25529
11060         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11061
11062 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11063
11064         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11065         instruction.
11066
11067 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11068
11069         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11070         clean up.
11071
11072 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
11073
11074         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11075         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
11076         targets here.
11077         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11078         ms_va_list_type_node initialization.
11079
11080 2015-07-23  Jeff Law  <law@redhat.com>
11081
11082         PR lto/66752
11083         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11084         unable to find X NE 0 in the tables, return X as the simplified
11085         condition.
11086         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11087         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
11088         to VISISTED_BBS.  */
11089         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11090         after removing the control flow statement and unnecessary edges.
11091
11092 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11093
11094         * tree-pass.h (get_current_pass_name): Removed.
11095
11096 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
11097
11098         PR rtl-optimization/64164
11099         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11100         * tree-ssa-copyrename.c: Removed.
11101         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11102         -ftree-coalesce-vars.
11103         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11104         * common.opt (ftree-copyrename): Ignore.
11105         (ftree-coalesce-inlined-vars): Likewise.
11106         * doc/invoke.texi: Remove the ignored options above.
11107         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11108         * tree-ssa-coalesce.h: ... here.
11109         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11110         headers required by it.
11111         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11112         across variables when flag_tree_coalesce_vars.  Check register
11113         use and promoted modes to allow coalescing.  Moved to
11114         tree-ssa-coalesce.c.
11115         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11116         with its member functions to tree-ssa-coalesce.c.
11117         (var_map_base_init): Likewise.  Renamed to
11118         compute_samebase_partition_bases.
11119         (partition_view_normal): Drop want_bases parameter.
11120         (partition_view_bitmap): Likewise.
11121         * tree-ssa-live.h: Adjust declarations.
11122         * tree-ssa-coalesce.c: Include explow.h.
11123         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11124         default defs at the entry point.
11125         (dump_part_var_map): New.
11126         (compute_optimized_partition_bases): New, called by...
11127         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11128         of compute_samebase_partition_bases.  Adjust.
11129         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11130         * cfgexpand.c (leader_merge): New.
11131         (get_rtl_for_parm_ssa_default_def): New.
11132         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11133         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11134         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11135         redundant MEM attr setting.
11136         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11137         from...
11138         (expand_one_stack_var): ... this.  New wrapper to check and
11139         skip already expanded SSA partitions.
11140         (record_alignment_for_reg_var): New, factored out of...
11141         (expand_one_var): ... this.
11142         (expand_one_ssa_partition): New.
11143         (adjust_one_expanded_partition_var): New.
11144         (expand_one_register_var): Check and skip already expanded SSA
11145         partitions.
11146         (expand_used_vars): Don't create DECLs for anonymous SSA
11147         names.  Expand all SSA partitions, then adjust all SSA names.
11148         (pass::execute): Replace the loops that set
11149         SA.partition_to_pseudo from partition leaders and cleared
11150         DECL_RTL for multi-location variables, and that which used to
11151         rename vars and set attrs, with one that clears DECL_RTL and
11152         checks that PARMs and RESULTs default_defs match DECL_RTL.
11153         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11154         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11155         * explow.c (promote_ssa_mode): New.
11156         * explow.h (promote_ssa_mode): Declare.
11157         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11158         * function.c: Include cfgexpand.h.
11159         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11160         (use_register_for_parm_decl): Wrapper for the above to
11161         special-case the result_ptr.
11162         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11163         (split_complex_args): Take assign_parm_data_all argument.
11164         Pass it to rtl_for_parm.  Set up rtl and context for split
11165         args.
11166         (assign_parms_augmented_arg_list): Adjust.
11167         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11168         multiple locations.  Recognize split complex args.
11169         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11170         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11171         (assign_parm_setup_block): Prefer SSA-assigned location.
11172         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11173         if stack_parm is NULL.
11174         (assign_parm_setup_stack): Prefer SSA-assigned location.
11175         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11176         rtl before testing for pointer bounds.  Special-case result_ptr.
11177         (expand_function_start): Maybe reset DECL_RTL of result.
11178         Prefer SSA-assigned location for result and static chain.
11179         Factor out DECL_RESULT and SET_DECL_RTL.
11180         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11181         anonymous SSA names.  Use promote_ssa_mode.
11182         (get_temp_reg): Likewise.
11183         (remove_ssa_form): Adjust.
11184         * stor-layout.c (layout_decl): Don't set mem attributes of
11185         non-MEMs.
11186         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11187         and get its reg_usage for reg invalidation.
11188         (compute_bb_dataflow): Pass it insn.
11189         (emit_notes_in_bb): Likewise.
11190
11191 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
11192
11193         PR target/66217
11194         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11195         prototype.
11196         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11197         (rs6000_emit_2insn_and): Handle dot forms.
11198         * config/rs6000/rs6000.md (and<mode>3): Adjust.
11199         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
11200         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11201
11202 2015-07-23  Richard Biener  <rguenther@suse.de>
11203
11204         * generic-match-head.c: Include cgraph.h.
11205         * gimple-match-head.c: Likewise.
11206         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11207         SSA names.
11208         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11209         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
11210         pattern.
11211
11212 2015-07-23  Richard Biener  <rguenther@suse.de>
11213
11214         * gimple-fold.c (fold_gimple_cond): Do not require folding
11215         results to pass valid_gimple_rhs_p.
11216         * tree-cfg.h (fold_cond_expr_cond): Remove.
11217         * tree-cfg.c (fold_cond_expr_cond): Likewise.
11218         (make_edges): Do not call it.
11219         * tree-inline.c (tree_function_versioning): Likewise.
11220
11221 2015-07-23  Tom de Vries  <tom@codesourcery.com>
11222
11223         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11224         vect_force_simple_reduction.
11225         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11226         (vect_is_simple_reduction_1): Add and handle
11227         need_wrapping_integral_overflow parameter.
11228         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11229         need_wrapping_integral_overflow parameter.
11230         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11231         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11232         decl.
11233
11234 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
11235
11236         PR tree-optimization/66926,66951
11237         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11238         INNER_LOOP and fix up condition for renaming virtual operands.
11239
11240 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11241
11242         * combine.c (try_combine): Use std::swap instead of manually
11243         swapping.
11244
11245 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
11246
11247         * config/mips/i6400.md: New file.
11248         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11249         (mips64r6): Likewise.
11250         (i6400): Define.
11251         * config/mips/mips-tables.opt: Regenerate.
11252         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11253         (mips_issue_rate): Add support for i6400.
11254         (mips_multipass_dfa_lookahead): Likewise.
11255         * config/mips/mips.h (TUNE_I6400): Define.
11256         * config/mips/mips.md: Include i6400.md.
11257         (processor): Add i6400.
11258         * doc/invoke.texi (-march=@var{arch}): Add i6400.
11259
11260 2015-07-23  Richard Biener  <rguenther@suse.de>
11261
11262         PR middle-end/66916
11263         * match.pd: Guard widen and sign-change comparison simplification
11264         with single_use.
11265
11266 2015-07-23  Richard Biener  <rguenther@suse.de>
11267
11268         PR tree-optimization/66945
11269         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
11270         ::before_dom_children): Force the propagators idea of
11271         non-executable edges to materialize, not what the folder
11272         chooses.
11273
11274 2015-07-23  Richard Biener  <rguenther@suse.de>
11275
11276         * gimple.h (gimple_cond_make_false): Use 0 != 0.
11277         (gimple_cond_make_true): Use 1 != 0.
11278
11279 2015-07-22  DJ Delorie  <dj@redhat.com>
11280
11281         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11282         slashes.
11283
11284         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11285         (ashrhi3): Likewise.
11286         (lshrhi3): Likewise.
11287         (movhi): Take advantage of zero-extend to load small constants.
11288         (movpsi): Likewise.
11289         (and<mode>3): Likewise.
11290         (zero_extendqihi2): Likewise.
11291         (zero_extendqisi2): New.
11292         * config/msp430/constraints.md (N,O): New.
11293         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11294
11295 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
11296
11297         PR target/66954
11298         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11299         to enum feature_priority and feature_list.
11300         (fold_builtin_cpu): Add F_AES to enum processor_features
11301         and isa_names_table.
11302
11303 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11304
11305         PR driver/66737
11306         * config/i386/linux-common.h (MPX_SPEC): Use linker option
11307         for 64bit target only.
11308
11309 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11310
11311         * config/nvptx/nvptx.c: Expand some comments.
11312
11313 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
11314
11315         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11316         (cortex_a53_advsimd): ...This.
11317
11318 2015-07-22  Richard Biener  <rguenther@suse.de>
11319
11320         * genmatch.c (expr::gen_transform): Clarify error message
11321         and display location.
11322
11323 2015-07-22  Richard Biener  <rguenther@suse.de>
11324
11325         * genmatch.c (struct operand): Add location member.
11326         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11327         constructors.
11328         (struct simplify): Remove match_location and result_location
11329         members.
11330         (elsehwere): Adjust.
11331
11332 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
11333
11334         * config/mips/m5100.md: New file.
11335         * config/mips/mips-cpus.def (m5100, m5101): Define.
11336         * config/mips/mips-tables.opt: Regenerate.
11337         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11338         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11339         -march=m5101 to -mips32r5.
11340         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11341         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11342         !-msoft-float.
11343         * config/mips/mips.md: Include m5100.md.
11344         (processor): Add m5100.
11345         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11346
11347 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
11348
11349         * config/mips/mips-cpus.def (interaptiv): Define.
11350         * config/mips/mips-tables.opt: Regenerate.
11351         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11352         -mips32r2.
11353         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11354         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11355
11356 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11357
11358         PR target/63521
11359         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11360         (HONOR_REG_ALLOC_ORDER): Define.
11361
11362 2015-07-22  Richard Biener  <rguenther@suse.de>
11363
11364         PR tree-optimization/66952
11365         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11366         blocks we end up executing unconditionally reset all SSA
11367         info such as range and alignment.
11368         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11369         * tree-ssanames.c (reset_flow_sensitive_info): New function.
11370
11371 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11372
11373         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11374         typo in attribute.
11375
11376 2015-07-22  Richard Biener  <rguenther@suse.de>
11377
11378         * genmatch.c (parser::parse_result): Properly handle
11379         match with result operands and conditions.
11380
11381 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11382
11383         PR target/63870
11384         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11385         Add qualifier_struct_load_store_lane_index.
11386         (aarch64_types_loadstruct_lane_qualifiers): Use
11387         qualifier_struct_load_store_lane_index for lane index argument for
11388         last argument.
11389         (aarch64_types_storestruct_lane_qualifiers): Ditto.
11390         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11391         (aarch64_simd_expand_args): Add new argument describing mode of
11392         builtin. Check lane bounds for arguments with
11393         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11394         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11395         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11396         (aarch64_simd_expand_builtin): Handle arguments with
11397         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11398         aarch64_simd_expand_args.
11399         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11400         vst[234]_lane with BUILTIN_VALLDIF.
11401         * config/aarch64/aarch64-simd.md:
11402         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11403         endianness reversal on lane index.
11404         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11405         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11406         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11407         (vec_store_lanesci_lane<mode>): Ditto.
11408         (vec_store_lanesxi_lane<mode>): Ditto.
11409         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11410         reversal of lane index.
11411         (aarch64_ld3_lane<mode>): Ditto.
11412         (aarch64_ld4_lane<mode>): Ditto.
11413         (aarch64_st2_lane<mode>): Ditto.
11414         (aarch64_st3_lane<mode>): Ditto.
11415         (aarch64_st4_lane<mode>): Ditto.
11416         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11417         to qmode. Add new mode parameter. Update uses.
11418         (__LD3_LANE_FUNC): Ditto.
11419         (__LD4_LANE_FUNC): Ditto.
11420         (__ST2_LANE_FUNC): Ditto.
11421         (__ST3_LANE_FUNC): Ditto.
11422         (__ST4_LANE_FUNC): Ditto.
11423
11424 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
11425
11426         * doc/invoke.texi (Language Independent Options): Rename node to
11427         Diagnostic Message Formatting Options.
11428
11429 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
11430
11431         PR ipa/66424.
11432         * lra-remat.c (operand_to_remat): Prevent using insns with input
11433         subregs processed separately by IRA.
11434
11435 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
11436
11437         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11438         straight loops.
11439         (single_imm_use): Check for iterator node.
11440         (num_imm_uses): Likewise.
11441         * tree-ssa-operands.c (has_zero_uses_1): Delete.
11442         (single_imm_use_1): Check for iterator node.
11443
11444 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
11445             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11446
11447         * configure.ac: Add check for new options in isl-0.15.
11448         * config.in, configure: Rebuilt.
11449         * graphite-blocking.c: Include <isl/constraint.h>
11450         * graphite-interchange.c,  graphite-poly.c: Likewise.
11451         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11452         * graphite.c: Likewise.
11453         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11454         <isl/union_set.h>.
11455         * graphite-dependences.c: Include <isl/constraint.h>.
11456         (max_number_of_out_dimensions): Returns isl_stat.
11457         (extend_schedule_1): Likewise
11458         (extend_schedule): Corresponding changes.
11459         * graphite-optimize-isl.c: Include <isl/constraint.h> and
11460         <isl/union_set.h>.
11461         (getSingleMap): Change return type of isl_stat.
11462         (optimize_isl): Conditionally use
11463         isl_options_set_schedule_serialize_sccs.
11464         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11465         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11466
11467 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
11468
11469         PR target/66956
11470         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11471         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11472
11473 2015-07-21  Richard Biener  <rguenther@suse.de>
11474
11475         PR tree-optimization/66948
11476         * genmatch.c (capture_info::walk_match): Also recurse to
11477         captures.  Properly compute expr state from captures of
11478         captures.
11479         * match.pd: Add single-use guards to
11480         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11481
11482 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
11483
11484         * config/nvptx/mkoffload.c (process): Add static destructor call.
11485
11486 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11487
11488         PR middle-end/66915
11489         * match.pd (A - B -> A + (-B)): Don't allow folding
11490         when type if a fixed-point type.
11491
11492 2015-07-20  DJ Delorie  <dj@redhat.com>
11493
11494         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11495         (iorqi3_real): Likewise for set1.
11496
11497 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
11498
11499         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11500         for !TARGET_64BIT.
11501
11502 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
11503
11504         * graphite-isl-ast-to-gimple.c:
11505         Refactor so that each function can access 'region'. This will help
11506         maintain a parameter rename_map within a region.
11507
11508 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11509
11510         * config/rs6000/rs6000.md (*lt0_disi): New.
11511
11512 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11513
11514         PR target/66217
11515         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
11516         "available letters" comment.
11517         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11518         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11519         and_2rld_operand):  Delete.
11520         (and_operand): Adjust.
11521         (rotate_mask_operator): New.
11522         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11523         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11524         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11525         extract_ME): Delete.
11526         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11527         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11528         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11529         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11530         rs6000_emit_2insn_and): New.
11531         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11532         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11533         includes_rldic_lshift_p, includes_rldicr_lshift_p,
11534         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11535         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11536         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11537         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11538         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11539         rs6000_emit_2insn_and): New.
11540         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11541         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11542         handling.
11543         <NOT>: Don't fall through to next case.
11544         <AND>: Handle the various rotate-and-mask cases directly.
11545         <IOR>: Always cost as one insn.
11546         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11547         (and<mode>3): Adjust expander for the new patterns.
11548         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11549         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11550         (*and<mode>3_imm_dot_shifted): New.
11551         (*and<mode>3_mask): Delete, rewrite as ...
11552         (and<mode>3_mask): ... New.
11553         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11554         (andsi3_internal0_nomc): Delete.
11555         (*andsi3_internal6): Delete.
11556         (*and<mode>3_2insn): New.
11557         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11558         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11559         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11560         *insvdi_internal3): Delete.
11561         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11562         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11563         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11564         *ior<mode>_mask): New.
11565         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11566         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11567         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11568         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11569         Delete.
11570         (ashr<mode>3): Delete expander.
11571         (*ashr<mode>3): Rename to ...
11572         (ashr<mode>3): ... This.
11573         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11574         (*rotldi3_internal4, *rotldi3_internal5 and split,
11575         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11576         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11577         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11578         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11579         (splitter for loading a mask): Adjust.
11580         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11581
11582 2015-07-20  Marek Polacek  <polacek@redhat.com>
11583
11584         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11585         output_add_clobbers, output_added_clobbers_hard_reg_p,
11586         gen_rtx_scratch): Remove declarations.
11587
11588 2015-07-20  Marek Polacek  <polacek@redhat.com>
11589
11590         PR c++/55095
11591         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11592
11593 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11594
11595         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11596         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11597
11598 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11599
11600         * combine.c (combine_simplify_rtx): Move simplification step
11601         before various transformations/substitutions.
11602
11603 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
11604
11605         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11606         (struct int_traits): Likewise.
11607
11608 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11609
11610         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11611         function to vmsdbgout_function_decl.
11612
11613 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11614
11615         PR target/66922
11616         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11617         from misaligned positions.
11618         (ix86_expand_pinsr): Reject insertions to misaligned positions.
11619
11620 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
11621
11622         PR middle-end/46851
11623         PR middle-end/60340
11624         * Makefile.in: Removed omega.o.
11625         * common.opt: Document flag fcheck-data-deps as deprecated.
11626         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11627         its associated params: omega-max-vars, omega-max-geqs,
11628         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11629         omega-max-keys, omega-eliminate-redundant-constraints.
11630         * doc/loop.texi: Remove all the section on Omega.
11631         * graphite-blocking.c: Include missing params.h: it used to be
11632         included through tree-data-ref.h and omega.h.
11633         * graphite-isl-ast-to-gimple.c: Same.
11634         * graphite-optimize-isl.c: Same.
11635         * graphite-sese-to-poly.c: Same.
11636         * graphite.c: Same.
11637         * omega.c: Remove.
11638         * omega.h: Remove.
11639         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11640         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11641         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11642         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11643         * passes.def: Remove pass_check_data_deps.
11644         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11645         (dump_conflict_function): Same.
11646         (dump_subscript): Same.
11647         (print_direction_vector): Same.
11648         (print_dir_vectors): Same.
11649         (print_lambda_vector): Same.
11650         (print_dist_vectors): Same.
11651         (dump_data_dependence_relation): Same.
11652         (dump_data_dependence_relations): Same.
11653         (dump_dist_dir_vectors): Same.
11654         (dump_ddrs): Same.
11655         (init_omega_eq_with_af): Removed.
11656         (omega_extract_distance_vectors): Removed.
11657         (omega_setup_subscript): Removed.
11658         (init_omega_for_ddr_1): Removed.
11659         (init_omega_for_ddr): Removed.
11660         (ddr_consistent_p): Removed.
11661         (compute_affine_dependence): Do not use omega to check data
11662         dependences.
11663         (compute_data_dependences_for_bb): Removed.
11664         (analyze_all_data_dependences): Removed.
11665         (tree_check_data_deps): Removed.
11666         * tree-data-ref.h: Do not include omega.h.
11667         (compute_data_dependences_for_bb): Removed.
11668         (tree_check_data_deps): Removed.
11669         * tree-ssa-loop.c (pass_check_data_deps): Removed.
11670         (make_pass_check_data_deps): Removed.
11671         * tree-ssa-phiopt.c: Include params.h.
11672         * tree-vect-data-refs.c: Same.
11673         * tree-vect-slp.c: Same.
11674
11675 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11676
11677         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11678         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
11679         (mem->fpreg splitters): Ditto.
11680         (general_operand->nonimmediate_operand splitter): Use explicit modes.
11681         Disable DFmode for TARGET_64BIT.
11682
11683 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11684
11685         PR target/66906
11686         * config/i386/i386.c (ix86_expand_prologue): Replicate static
11687         chain on the stack.
11688
11689 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11690
11691         * config/nvptx/mkoffload.c (process): Constify host data.
11692         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11693         Constify host data.
11694         (generate_host_descr_file): Likewise.
11695
11696 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
11697             Sebastian Pop  <s.pop@samsung.com>
11698
11699         PR middle-end/61929
11700         * graphite-dependences.c (add_pdr_constraints): Renamed
11701         pdr->extent to pdr->subscript_sizes.
11702         * graphite-interchange.c (build_linearized_memory_access): Add
11703         back all gcc_assert's that the "isl_int to isl_val conversion"
11704         patch has removed.  Refactored.
11705         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11706         * graphite-poly.c (new_poly_dr): Same.
11707         (free_poly_dr): Same.
11708         * graphite-poly.h (struct poly_dr): Same.
11709         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11710         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11711         * graphite-scop-detection.h: Fix space.
11712         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11713         back all gcc_assert's removed by a previous patch.
11714         (wrap): Remove the_isl_ctx global variable that the same patch has
11715         added.
11716         (build_loop_iteration_domains): Same.
11717         (add_param_constraints): Same.
11718         (pdr_add_data_dimensions): Same.  Refactored.
11719         (build_poly_dr): Renamed extent to subscript_sizes.
11720
11721 2015-07-17  Marek Polacek  <polacek@redhat.com>
11722
11723         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11724         * match.pd: ... here.
11725
11726 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11727
11728         * config/nvptx/mkoffload.c (process): Constify target data.
11729         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11730         Constify target data.
11731         (generate_target_offloadend_file): Likewise.
11732
11733 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
11734
11735         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11736         to allow renaming of PHI arguments on edges incoming from outer
11737         loop header, add corresponding check before start PHI iterator.
11738         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11739         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11740         with true force_vectorize.  Set-up dominator for outer loop too.
11741         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11742         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11743         was marked with force_vectorize and has restricted cfg.
11744         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11745         inner loop.
11746         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11747         do peeling for outer loops.
11748
11749 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
11750             Matthias Klose  <doko@ubuntu.com>
11751
11752         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11753         build-sysroot, sysroot from the `Miscenalleous configure options' to
11754         the `Directories' section and strip trailing `/' from with_sysroot.
11755         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11756         * configure: Regenerated.
11757
11758 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11759
11760         PR target/66824
11761         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11762         (TARGET_HARD_DF_REGS): Ditto.
11763         (TARGET_HARD_XF_REGS): Ditto.
11764         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11765         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11766         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11767         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11768         (*movsf_internal): Add alternatives 16 and 17. Enable
11769         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11770
11771 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11772
11773         PR rtl-optimization/66891
11774         * calls.c (expand_call): Wrap precompute_register_parameters with
11775         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11776
11777 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11778
11779         * config/nvptx/mkoffload.c (process): Constify mapping variables.
11780         Define target data struct and initialize it.
11781
11782 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
11783
11784         PR rtl-optimization/66626
11785         * ira.h (emit-rtl.h): Include.
11786         (non_spilled_static_chain_regno_p): New.
11787         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11788         unless it is non spilled static chain pseudo.
11789         (assign_hard_rego): Spill memory profitable allocno unless it is
11790         non spilled static chain pseudo.
11791         (allocno_spill_priority_compare): Put non spilled static chain
11792         pseudo at the end of sorted array.
11793         (improve_allocation): Do nothing if we have static chain and
11794         non-local goto.
11795         (allocno__priority_compare_func): Put non spilled static chain
11796         pseudo at the beginning of sorted array.
11797         (move_spill_restore): Ignore non spilled static chain pseudo.
11798         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11799         to non spilled static chain pseudo.
11800         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11801         pseudo at the beginning of sorted array.
11802         (spill_for): Spill non spilled static chain pseudo last.
11803         * lra-constraints.c (lra_constraints): Remove static chain pseudo
11804         check for equivalence.
11805
11806 2015-07-16  Martin Liska  <mliska@suse.cz>
11807
11808         PR ipa/66896.
11809         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11810         dst_ctx if it does not exist.
11811
11812 2015-07-16  Martin Liska  <mliska@suse.cz>
11813
11814         * hash-set.h (remove): New function.
11815         (iterator): New iteration class for hash_set.
11816
11817 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11818
11819         * genattrtab.c (make_canonical): Add a file_location parameter.
11820         Use fatal_at rather than fatal.
11821         (get_attr_value): Likewise.  Update call to make_canonical.
11822         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11823         (make_internal_attr): Update calls accordingly.
11824
11825 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11826
11827         * read-md.h (message_with_line, error_with_line): Delete.
11828         * read-md.c (message_with_line, error_with_line): Delete.
11829         * gensupport.h: Include read-md.h.
11830         (md_rtx_info): New structure.
11831         (read_md_rtx): Use it.  Return a bool success value.
11832         * gensupport.c (read_md_rtx): Likewise.
11833         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11834         (main): Update after interface changes.
11835         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11836         (main): Update after interface changes.
11837         * genattrtab.c (insn_code_number): Delete.
11838         (optimize_attrs): Add a max_insn_code parameter and use it instead
11839         of insn_code_number.
11840         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11841         Use *_at rather than *_with_line functions.
11842         (gen_insn): Likewise.
11843         (gen_delay): Likewise.
11844         (gen_insn_reserv): Likewise.
11845         (gen_bypass): Take an md_rtx_info rather than an rtx.
11846         (main): Update after interface changes.  Use a local max_insn_code
11847         variable instead of insn_code_number.
11848         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11849         an rtx.  Use fatal_at rather than fatal.
11850         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11851         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11852         (gen_absence_set, gen_final_absence_set, gen_automaton)
11853         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11854         (main): Update after interface changes.
11855         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11856         and code number.
11857         (main): Update after interface changes.
11858         * genconditions.c (main): Use new read_md_rtx interface.
11859         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11860         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11861         (main): Update after interface changes.
11862         * genemit.c (insn_code_number, insn_index_number): Delete.
11863         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11864         Use fatal_at rather than fatal.
11865         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
11866         rather than fatal.
11867         (gen_split): Likewise.
11868         (main): Update after interface changes.
11869         * genextract.c (line_no): Delete.
11870         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11871         Update call to walk_rtx.
11872         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
11873         rather than message_with_line.
11874         (walk_rtx): Add an md_rtx_info argument.  Update call to
11875         VEC_safe_set_locstr.
11876         (main): Update after interface changes.
11877         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11878         and lineno.  Use error_at rather than separate message_with_line
11879         calls and have_error assignments.
11880         (main): Update after interface changes.
11881         * genmddump.c (main): Use new read_md_rtx interface.
11882         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11883         (main): Update after interface changes.
11884         * genoutput.c (next_code_number): Delete.
11885         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11886         (gen_peephole, gen_expand, gen_split): Likewise.
11887         (note_constraint): Likewise.  Use *_at rather than *_with_line
11888         functions.
11889         (main): Update after interface changes.
11890         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11891         rtx and lineno.
11892         (main): Update after interface changes.
11893         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11894         than an rtx and lineno.
11895         (process_define_constraint): Likewise.
11896         (process_define_register_constraint): Likewise.
11897         (main): Update after interface changes.
11898         * genrecog.c (next_insn_code, pattern_lineno): Delete.
11899         (validate_pattern): Replace top-level rtx with an md_rtx_info.
11900         Use *_at rather than *_with_line functions.
11901         (match_pattern_2): Likewise.
11902         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11903         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11904         Use *_at rather than *_with_line functions.
11905         * gentarget-def.c (add_insn): New function.
11906         (main): Use it.  Use new read_md_rtx interface.
11907
11908 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11909
11910         * gensupport.h (compute_test_codes): Take a file_location rather
11911         than a line number.
11912         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
11913         rather than *_with_line functions.
11914         (process_define_predicate): Update call to compute_test_codes.
11915         * genpreds.c (validate_exp): Take a file_location rather than a
11916         line number.  Use *_at functions rather than *_with_line functions.
11917         (process_define_predicate): Update call to validate_exp.
11918         (constraint_data): Replace lineno field with a file_location.
11919         (add_constraint): Take a file_location rather than a line number.
11920         Use *_at functions rather than *_with_line functions.  Fix error
11921         message for address constraints.  Update after changes to
11922         validate_exp, constraint_data and compute_test_codes.
11923         (process_define_constraint): Update accordingly.
11924         (process_define_register_constraint): Likewise.
11925
11926 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11927
11928         * genoutput.c (data): Use a file_location to record the source
11929         position.
11930         (nothing): Delete.
11931         (idata, idata_end): Remove initialization.
11932         (constraint_data): Replace lineno with a file_location.
11933         (output_insn_data): Update after changes to data.
11934         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11935         (scan_operands): Likewise, using *_at rather than *_with_line
11936         functions.
11937         (process_template): Likewise.
11938         (validate_insn_alternatives): Likewise.
11939         (validate_insn_operands): Likewise.
11940         (validate_optab_operands): Likewise.
11941         (init_insn_for_nothing): Initialize idata and idata_end.
11942         (note_constraint): Update after changes to constraint_data,
11943         using at rather than with_line functions.
11944         (mdep_constraint_len): Take a file_location rather than a
11945         line number.  Use at rather than with_line functions.
11946
11947 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11948
11949         * read-md.h (fatal_at): Declare.
11950         * read-md.c (fatal_at): New function.
11951         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
11952         to record the source position.
11953         (check_attr_test): Take a file_location instead of a line number.
11954         Use fatal_at instead of fatal.
11955         (check_attr_value): Update after above changes, using "at"
11956         rather than "with_line" reporting functions.
11957         (convert_set_attr_alternative): Likewise.
11958         (gen_attr): Likewise.
11959         (check_defs): Likewise.  Don't assign to read_md_filename.
11960         (gen_insn): Update initialization after above changes.
11961         (gen_delay): Likewise.
11962         (write_insn_cases): Print the filename for a define_peephole.
11963         (gen_insn_reserv): Take a line number as argument and update
11964         the call to check_attr_test.
11965         (main): Pass a line number to gen_insn_reserv.
11966
11967 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11968
11969         * read-md.h (file_location): New structure.
11970         (directive_handler_t): Take a file_location rather than a line number.
11971         (message_at, error_at): Declare.
11972         (read_skip_construct): Delete.
11973         * read-md.c (message_with_line_1): Replace with...
11974         (message_at_1): ...this new function.
11975         (message_at, error_at): New functions.
11976         (message_with_line, error_with_line): Update to use message_at_1.
11977         (handle_enum): Take a file_location rather than a line number
11978         and use error_at for error reporting.
11979         (handle_include): Likewise.
11980         (read_skip_construct): Likewise.  Make static.
11981         (handle_file): Update after above changes.  Pass a file_location
11982         rather than a line number to handle_directive.
11983         * gensupport.c (queue_elem): Replace separate filename and lineno
11984         with a file_location.
11985         (queue_pattern): Replace filename and lineno arguments with a
11986         file_location.  Update after change to queue_elem.
11987         (process_define_predicate): Replace lineno argument with a
11988         file_location and use error_at for error reporting.  Update
11989         after above changes.
11990         (process_rtx): Likewise.
11991         (subst_pattern_match): Likewise.
11992         (get_alternatives_number): Likewise.
11993         (alter_predicate_for_insn): Likewise.
11994         (rtx_handle_directive): Likewise.
11995         (is_predicable): Update after above changes, using error_at rather
11996         than error_with_line.
11997         (has_subst_attribute): Likewise.
11998         (identify_predicable_attribute): Likewise.
11999         (alter_attrs_for_subst_insn): Likewise.
12000         (process_one_cond_exec): Likewise.
12001         (process_substs_on_one_elem): Likewise.
12002         (process_define_subst): Likewise.
12003         (check_define_attr_duplicates): Likewise.
12004         (read_md_rtx): Update after change to queue_elem.
12005
12006 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12007
12008         * genoutput.c (next_index_number): Delete.
12009         (data): Remove index_number.
12010         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12011         (main): Remove manipulation of next_index_number.
12012
12013 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
12014
12015         * genattrtab.c (check_attr_value): Remove handling of null attrs.
12016         (make_canonical): Likewise.
12017
12018 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
12019
12020         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12021         instead of adjust_address_nv.
12022         (restore_stack_nonlocal): Likewise.
12023         (nonlocal_goto): Likewise.
12024
12025 2015-07-16  Tom de Vries  <tom@codesourcery.com>
12026
12027         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12028         not have a corresponding loop header phi.
12029
12030 2015-07-16  Tom de Vries  <tom@codesourcery.com>
12031
12032         * tree-parloops.c (create_loads_for_reductions): Handle case that
12033         reduction is unused.
12034
12035 2015-07-16  Richard Biener  <rguenther@suse.de>
12036
12037         PR tree-optimization/66894
12038         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12039         about deriving NE_EXPR from truncated values.
12040
12041 2015-07-16  Martin Liska  <mliska@suse.cz>
12042
12043         * alloc-pool.h
12044         (object_allocator): Add new class.
12045         (pool_allocator::initialize): Use the underlying class.
12046         (pool_allocator::allocate): Likewise.
12047         (pool_allocator::remove): Likewise.
12048         (operator new): A new generic allocator.
12049         * asan.c (struct asan_mem_ref): Remove unused members.
12050         (asan_mem_ref_new): Replace new operator with
12051         object_allocator::allocate.
12052         (free_mem_ref_resources): Change deallocation.
12053         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12054         with object_allocator.
12055         * config/sh/sh.c (add_constant): Replace new operator with
12056         object_allocator::allocate.
12057         (sh_reorg): Change call to a release method.
12058         * cselib.c (struct elt_list): Remove unused members.
12059         (new_elt_list): Replace new operator with
12060         object_allocator::allocate.
12061         (new_elt_loc_list): Likewise.
12062         (new_cselib_val): Likewise.
12063         (unchain_one_elt_list): Change delete operator with remove method.
12064         (unchain_one_elt_loc_list): Likewise.
12065         (unchain_one_value): Likewise.
12066         (cselib_finish): Release newly added static allocators.
12067         * cselib.h (struct cselib_val): Remove unused members.
12068         (struct elt_loc_list): Likewise.
12069         * df-problems.c (df_chain_alloc): Replace pool_allocator with
12070         object_allocator.
12071         * df-scan.c (struct df_scan_problem_data): Likewise.
12072         (df_scan_alloc): Likewise.
12073         * df.h (struct dataflow): Likewise.
12074         * dse.c (struct read_info_type): Likewise.
12075         (struct insn_info_type): Likewise.
12076         (struct dse_bb_info_type): Likewise.
12077         (struct group_info): Likewise.
12078         (struct deferred_change): Likewise.
12079         (get_group_info): Likewise.
12080         (delete_dead_store_insn): Likewise.
12081         (free_read_records): Likewise.
12082         (replace_read): Likewise.
12083         (check_mem_read_rtx): Likewise.
12084         (scan_insn): Likewise.
12085         (dse_step1): Likewise.
12086         (dse_step7): Likewise.
12087         * et-forest.c (struct et_occ): Remove unused members.
12088         (et_new_occ): Use allocate instead of new operator.
12089         (et_new_tree): Likewise.
12090         (et_free_tree): Call release method explicitly.
12091         (et_free_tree_force): Likewise.
12092         (et_free_pools): Likewise.
12093         (et_split): Use remove instead of delete operator.
12094         * et-forest.h (struct et_node): Remove unused members.
12095         * ipa-cp.c: Change pool_allocator to object_allocator.
12096         * ipa-inline-analysis.c: Likewise.
12097         * ipa-profile.c: Likewise.
12098         * ipa-prop.c: Likewise.
12099         * ipa-prop.h: Likewise.
12100         * ira-build.c (initiate_cost_vectors): Cast return value.
12101         (ira_allocate_cost_vector): Likewise.
12102         * ira-color.c (struct update_cost_record): Remove unused members.
12103         * lra-int.h (struct lra_live_range): Likewise.
12104         (struct lra_copy): Likewise.
12105         (struct lra_insn_reg): Likewise.
12106         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12107         * lra.c (new_insn_reg): Replace new operator with allocate method.
12108         (free_insn_regs): Same for operator delete.
12109         (finish_insn_regs): Release new static allocator.
12110         (finish_insn_recog_data): Likewise.
12111         (lra_free_copies): Replace delete operator with remove method.
12112         (lra_create_copy): Replace operator new with allocate method.
12113         (invalidate_insn_data_regno_info): Same for remove method.
12114         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12115         (free_debug_insn_changes): Replace delete operator with remove method.
12116         (replace_oldest_value_reg): Replace operator new with allocate method.
12117         (pass_cprop_hardreg::execute): Release new static variable.
12118         * sched-deps.c (sched_deps_init): Change pool_allocator to
12119         object_allocator.
12120         * sel-sched-ir.c: Likewise.
12121         * sel-sched-ir.h: Likewise.
12122         * stmt.c (expand_case): Likewise.
12123         (expand_sjlj_dispatch_table): Likewise.
12124         * tree-sra.c (struct access): Remove unused members.
12125         (struct assign_link): Likewise.
12126         (sra_deinitialize): Release newly added static pools.
12127         (create_access_1):Replace operator new with allocate method.
12128         (build_accesses_from_assign): Likewise.
12129         (create_artificial_child_access): Likewise.
12130         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12131         pool_allocator to object_allocator.
12132         * tree-ssa-pre.c: Likewise.
12133         * tree-ssa-reassoc.c: Likewise.
12134         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12135         * tree-ssa-strlen.c: Likewise.
12136         * tree-ssa-structalias.c: Likewise.
12137         * var-tracking.c (onepart_pool_allocate): New function.
12138         (unshare_variable): Use the newly added function.
12139         (variable_merge_over_cur): Likewise.
12140         (variable_from_dropped): Likewise.
12141         (variable_was_changed): Likewise.
12142         (set_slot_part): Likewise.
12143         (emit_notes_for_differences_1): Likewise.
12144         (vt_finalize): Release newly added static pools.
12145
12146 2015-07-16  Martin Jambor  <mjambor@suse.cz>
12147
12148         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
12149         all uses.  Fix two typos in its general comment.
12150         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
12151
12152 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
12153
12154         * config/i386/linux-common.h (LINK_MPX): New.
12155         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12156         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12157         indicating '-z bndplt' support by linker.
12158         * configure: Regenerate.
12159         * config.in: Regenerate.
12160
12161 2015-07-16  Richard Biener  <rguenther@suse.de>
12162
12163         * fold-const.c (fold_widened_comparison): Remove.
12164         (fold_sign_changed_comparison): Likewise.
12165         (fold_comparison): Move widened and sign-changed comparison
12166         simplification ...
12167         * match.pd: ... to patterns here.
12168         * generic-match-head.c: Include target.h.
12169         * gimple-match-head.c: Likewise.
12170
12171 2015-07-16  Richard Biener  <rguenther@suse.de>
12172
12173         * tree-ssa-dom.c (dom_valueize): New function.
12174         (record_temporary_equivalences): Also record equivalences
12175         for dominating stmts that have uses of equivalences we are
12176         about to record.
12177
12178 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
12179
12180         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12181         add_autoinc_candidates.
12182         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12183         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12184         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12185         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12186         Call new function.
12187         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12188         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12189         Remove parameter struct iv*.  Call add_autoinc_candidates here.
12190         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12191         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12192         Call new function.
12193         (find_iv_candidates): Call new functions.
12194
12195 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
12196
12197         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12198         uninitialized-variable warning.
12199
12200 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12201
12202         PR target/65249
12203         * config/sh/sh.md (movdi): Split simple reg move to two movsi
12204         when the destination is R0.
12205
12206 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
12207
12208         PR target/66866
12209         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12210         * config/i386/i386.c (ix86_expand_pextr): New function.
12211         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
12212         for non-lowpart subregs.
12213         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12214         (insv<mode>): Use SWI248 mode iterator.
12215         (insv<mode>_1): Ditto.
12216
12217 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12218             Sebastian Pop  <s.pop@samsung.com>
12219
12220         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12221         iterator to use_stmt.
12222
12223 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12224             Sebastian Pop <s.pop@samsung.com>
12225
12226         * graphite-scop-detection.c (build_scops_1): Discard scops for
12227         which entry==exit.
12228
12229 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12230             Sebastian Pop <s.pop@samsung.com>
12231
12232         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12233         case of a return statement in scop.
12234
12235 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12236             Sebastian Pop <s.pop@samsung.com>
12237
12238         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12239         INTEGER_TYPE parameters.
12240         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12241         VECTOR_CST in scan_tree_for_params.
12242         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12243
12244 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12245
12246         * gimple-pretty-print.h: Don't include pretty-print.h.
12247         * tree-streamer.h: Don't include lto-streamer.h.
12248         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12249         * gimple-streamer-in.c: Remove redundant includes.
12250         * gimple-streamer-out.c: Likewise.
12251         * ipa-devirt.c: Likewise.
12252         * ipa-icf.c: Likewise.
12253         * ipa-inline-analysis.c: Likewise.
12254         * ipa-polymorphic-call.c: Likewise.
12255         * ipa-profile.c: Likewise.
12256         * ipa-prop.c: Likewise.
12257         * ipa-pure-const.c: Likewise.
12258         * lto-cgraph.c: Likewise.
12259         * lto-streamer-in.c: Likewise.
12260         * lto-streamer-out.c: Likewise.
12261         * lto-streamer.c: Likewise.
12262         * tree-streamer-in.c: Likewise.
12263         * tree-streamer-out.c: Likewise.
12264         * tree-streamer.c: Likewise.
12265
12266 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12267
12268         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
12269         include input.h.
12270         * opts.c: Remove multiline #include comment.
12271
12272 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
12273
12274         * config/nvptx/mkoffload.c (process): Add C++ protection to
12275         emitted code.
12276
12277 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12278
12279         PR target/66854
12280         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12281         null before IEEE 128-bit floating point support patch.
12282
12283 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12284
12285         * simplify-rtx.c (simplify_ternary_operation): Add simplification
12286         for (!c) != {0,...,0} ? a : b for vector modes.
12287
12288 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
12289             Martin Jambor  <mjambor@suse.cz>
12290
12291         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12292         struct func_body_info* instead of struct ipa_node_params*, expecting
12293         fbi->info to be filled in.  Replace throughout.  Adjust call to
12294         ipa_load_from_parm_agg.
12295         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12296         instead of struct ipa_node_params*.  Adjust calls to other functions
12297         so that they pass either fbi or fbi->info.
12298         (set_switch_stmt_execution_predicate): Likewise.
12299         (will_be_nonconstant_predicate): Likewise.
12300         (compute_bb_predicates): Likewise.
12301         (estimate_function_body_sizes): Move asserts earlier.  Fill in
12302         struct func_body_info, replace parms_info with fbi.info.  Adjust
12303         calls to functions that now accept struct func_body_info.
12304         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12305         (struct func_body_info): Likewise.
12306         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12307         remove static.  Adjust callers.
12308         (ipa_load_from_parm_agg): Remove.
12309         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12310         (func_body_info): Likewise.
12311         (ipa_load_from_parm_agg): Adjust prototype.
12312
12313 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12314
12315         * gensupport.c (rtx_handle_directive): Adjust.
12316         * read-rtl.c (apply_iterators): Take vector to add rtxs to
12317         instead of expr list rtx.
12318         (add_define_attr_for_define_subst): Likewise.
12319         (add_define_subst_attr): Likewise.
12320         (read_subst_mapping): Likewise.
12321         (read_rtx): Likewise.
12322         * rtl.h (read_rtx): Adjust.
12323
12324 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12325
12326         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12327
12328 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12329
12330         PR target/58066
12331         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12332         (*tls_local_dynamic_base_64_<mode>): Ditto.
12333         (*tls_local_dynamic_base_64_largepic): Ditto.
12334         (tls_global_dynamic_64_<mode>): Update expander pattern.
12335         (tls_local_dynamic_base_64_<mode>): Ditto.
12336
12337 2015-07-15  Richard Biener  <rguenther@suse.de>
12338
12339         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12340         and bool_var == 1 -> bool_var simplifications ...
12341         * match.pd: ... to patterns here.  Factor out negate_expr_p
12342         cases from the A - B -> A + (-B) patterns as negate_expr_p
12343         predicate and add a -(A + B) -> (-B) - A pattern.
12344
12345 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12346
12347         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12348
12349 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
12350             Robert Suchanek  <robert.suchanek@imgtec.com>
12351
12352         * config/mips/mips.c (mips_int_mask): New enum.
12353         (mips_shadow_set): Likewise.
12354         (int_mask): New variable.
12355         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12356         (machine_function): Add int_mask and use_shadow_register_set.
12357         (mips_attribute_table): Add attribute handlers for interrupt and
12358         use_shadow_register_set.
12359         (mips_interrupt_mask): New static function.
12360         (mips_handle_interrupt_attr): Likewise.
12361         (mips_handle_use_shadow_register_set_attr): Likewise.
12362         (mips_use_shadow_register_set): Change return type to enum
12363         mips_shadow_set.  Add argument handling for use_shadow_register_set
12364         attribute.
12365         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12366         compare with mips_shadow_set enum.
12367         (mips_compute_frame_info): Add interrupt mask and
12368         use_shadow_register_set to per-function information structure.
12369         Add a stack slot for EPC unconditionally.
12370         (mips_expand_prologue): Compare use_shadow_register_set value
12371         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
12372         masked interrupt register but in EIC mode use K0 and save Cause in K0.
12373         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
12374         copying the stack pointer from the shadow register set.
12375         * config/mips/mips.h (SR_IM0): New define.
12376         * config/mips/mips.md (mips_rdpgpr): Rename to...
12377         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
12378         * doc/extend.texi (Declaring Attributes of Functions): Document
12379         optional arguments for interrupt and use_shadow_register_set
12380         attributes.
12381
12382 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12383
12384         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12385         interrupt attribute.
12386         (mips_expand_prologue): Disable the floating point unit in an ISR.
12387         * config/mips/mips.h (SR_COP1): New define.
12388
12389 2015-07-15  Richard Biener  <rguenther@suse.de>
12390
12391         * genmatch.c (parser::peek, parser::peek_ident): Add argument
12392         to tell how many tokens to peek ahead (default 1).
12393         (parser::eat_token, parser::eat_ident): Return token consumed.
12394         (parser::parse_result): Parse new switch statement.
12395         * match.pd: Use case statements where appropriate.
12396
12397 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12398
12399         PR rtl-optimization/58066
12400         * calls.c (expand_call): Precompute register parameters before stack
12401         alignment is performed.
12402
12403 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12404
12405         PR rtl-optimization/66838
12406         * postreload.c (reload_cse_move2add): Also process
12407         CALL_INSN_FUNCTION_USAGE when resetting information of
12408         call-clobbered registers.
12409
12410 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12411             Cesar Philippidis  <cesar@codesourcery.com>
12412             Chung-Lin Tang  <cltang@codesourcery.com>
12413
12414         * config/nios2/constraints.md (U, v): New constraints.
12415         * config/nios2/predicates.md (rdprs_dcache_operand): New.
12416         (ldstex_memory_operand): New.
12417         * config/nios2/sync.md: New file.
12418         * config/nios2/nios2.md (unspecv): Add new builtin function
12419         UNSPECV codes.
12420         (rdprs, flushd, flushda, wrpie, eni): New patterns.
12421         (top-level): Include sync.md.
12422         * config/nios2/nios2.c (N2_FTYPES): Add function types for
12423         new builtins.
12424         (N2_BUILTINS): Add arch field setting, add new builtins.
12425         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12426         for arch field.
12427         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12428         Also handle ldex/stex/ldsex/stsex builtins.
12429         (nios2_expand_rdprs_builtin): New function.
12430         (nios2_expand_cache_builtin): New function.
12431         (nios2_expand_wrpie_builtin): New function.
12432         (nios2_expand_eni_builtin): New function.
12433         (nios2_expand_builtin): Add arch field handling and new builtin
12434         cases.
12435         * doc/extend.texi (Altera Nios II Built-in Functions): Document
12436         new builtins.
12437         * doc/md.texi (Machine Constraints): Document U and v constraints.
12438
12439 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12440             Cesar Philippidis  <cesar@codesourcery.com>
12441             Chung-Lin Tang  <cltang@codesourcery.com>
12442
12443         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12444         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12445         callee_save_reg_size and uses_anonymous_args fields.
12446         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12447         (nios2_create_cfa_notes): New function.
12448         (nios2_adjust_stack): New function for adjusting stack.
12449         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12450         Use nios2_adjust_stack.
12451         (nios2_expand_epilogue): Likewise.
12452         (nios2_expand_return): New function.
12453         (nios2_can_use_return_insn): Update for CDX pop.n usage.
12454         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12455         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12456         * config/nios2/nios2.md (return): Use nios2_expand_return.
12457
12458 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12459             Cesar Philippidis  <cesar@codesourcery.com>
12460             Chung-Lin Tang  <cltang@codesourcery.com>
12461
12462         * config/nios2/predicates.md (pop_operation): New.
12463         (ldwm_operation, stwm_operation): New.
12464         (nios2_hard_register_operand): New.
12465         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12466         (ldstwm_operation_p): Declare.
12467         (gen_ldstwm_peep): Declare.
12468         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12469         (base_reg_adjustment_p): New.
12470         (pop_operation_p): New.
12471         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12472         (nios2_ldstwm_regset_p): New.
12473         (ldstwm_operation_p): New.
12474         (gen_ldst): New.
12475         (nios2_ldst_parallel): New.
12476         (struct ldswm_operand): Declare.
12477         (compare_ldstwm_operands): New.
12478         (can_use_cdx_ldstw): New.
12479         (gen_ldstwm_peep): New.
12480         * config/nios2/nios2-ldstwm.sml: New.
12481         * config/nios2/nios2.md: Include ldstwm.md.
12482         * config/nios2/ldstwm.md: Generated.
12483
12484 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12485             Cesar Philippidis  <cesar@codesourcery.com>
12486             Chung-Lin Tang  <cltang@codesourcery.com>
12487
12488         * config/nios2/nios2.h (LABEL_ALIGN): Define.
12489         (REG_ALLOC_ORDER): Define.
12490         (ADJUST_REG_ALLOC_ORDER): Define.
12491         (HONOR_REG_ALLOC_ORDER): Define.
12492         (CDX_REG_P): Define.
12493         (ANDCLEAR_INT): Define.
12494         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12495         (nios2_label_align): Declare.
12496         (nios2_cdx_narrow_form_p): Declare.
12497         (nios2_adjust_reg_alloc_order): Declare.
12498         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12499         operation.
12500         (nios2_large_unspec_reloc_p): New function, split from...
12501         (nios2_legitimate_pic_operand_p): ...here.
12502         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12503         (nios2_print_operand_punct_valid_p): New.
12504         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
12505         (split_mem_address): New.
12506         (split_alu_insn): New.
12507         (cdxreg): New.
12508         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12509         (enum nios2_add_insn_kind): New.
12510         (nios2_add_insn_names, nios2_add_insn_narrow): New.
12511         (nios2_add_insn_classify): New.
12512         (nios2_add_insn_asm): New.
12513         (nios2_cdx_narrow_form_p): New.
12514         (label_align, min_labelno, max_labelno): New.
12515         (nios2_reorg): New.
12516         (nios2_label_align): New.
12517         (nios2_adjust_reg_alloc_order): New.
12518         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12519         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12520         * config/nios2/constraints.md (P): New constraint.
12521         * config/nios2/predicates.md (const_and_operand): New.
12522         (and_operand): New.
12523         (stack_memory_operand): New.
12524         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12525         (length): Update to use nios2_cdx_narrow_form_p().
12526         (type): Add new insn type values.
12527         (control, alu, st, ld, shift): Update insn reservations with
12528         new insn type values.
12529         (*high, *lo_sum): Define new insn patterns for constant generation.
12530         (movqi_internal, movhi_internal, movsi_internal): Reduce
12531         alternatives, update asm template to handle CDX variants, update
12532         type attributes.
12533         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12534         template, update type attributes.
12535         (extendhisi2, extendqi<mode>2): Likewise.
12536         (addsi3): Change to use function for asm string.
12537         (subsi3): Add CDX notation to asm template, update type attributes.
12538         (negsi3, one_cmplsi3): Likewise.
12539         (andsi3): New pattern, specialized from logical patterns.
12540         (<code>si3): Remove and case, combine alternatives, update asm
12541         template.
12542         (<shift_op>si3): Add CDX notation, update type attributes.
12543         (rotrsi3): Update type attribute.
12544         (*merge, extzv, insv): New insn patterns.
12545         (return): Change to define_expand.
12546         (simple_return): Add CDX notation, update type attributes.
12547         (indirect_jump): Add CDX notation.
12548         (jump): Update asm cases, update length attribute expression.
12549         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12550         (nios2_cbranch): Update asm cases and length attribute expression
12551         to handle CDX variants.
12552         (nios2_cmp<code>): Update asm template.
12553         (nop): Add CDX notation, update type attributes.
12554         (trap): Add CDX notation.
12555         (ctrapsi4): Update asm cases and length attribute expression to
12556         handle CDX variant.
12557         * doc/md.texi (Machine Constraints): Document P 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.h (SMALL_INT12): New macro.
12564         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12565         (nios2_valid_addr_expr_p): Use it.
12566         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12567         with implicit "io" instructions on R2.
12568         * config/nios2/constraints.md (w): New constraint.
12569         * config/nios2/predicates.md (ldstio_memory_operand): New.
12570         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12571         operand predicate and constraint.
12572         (ld<bh>io_signed, st<bhw>io>): Likewise.
12573         * doc/md.texi (Machine Constraints): Document w constraint.
12574
12575 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12576             Cesar Philippidis  <cesar@codesourcery.com>
12577             Chung-Lin Tang  <cltang@codesourcery.com>
12578
12579         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12580         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12581         Nios II architecture level.
12582         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12583         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12584         (OPTION_DEFAULT_SPECS): Define.
12585         (ASM_SPEC): Add -march= spec strings.
12586         * config/nios2/nios2.c (nios2_option_override): Check for
12587         conflicts involving new options.
12588         * config.gcc (nios2*-*-*): Support --with-arch=.
12589         * doc/invoke.texi (Option Summary, Nios II Options): Document
12590         -march=, -mbmx, and -mcdx.
12591
12592 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
12593
12594         PR rtl-optimization/66626
12595         * lra-constraints.c (lra_constraints): Prevent equivalence
12596         substitution for static chain pseudo in functions with nonlocal
12597         goto.
12598
12599 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12600
12601         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12602         (nios2_emit_stack_limit_check): Add size parameter.  Handle
12603         -fstack-limit-symbol as well as -fstack-limit-register.
12604         (nios2_expand_prologue): Emit only a single stack limit check,
12605         even if multiple stack adjustments are required.
12606         (nios2_option_override): Diagnose unsupported combination of -fpic
12607         and -stack-limit-symbol.
12608
12609 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12610
12611         * Makefile.in (top_srcdir): New.
12612         * configure.ac: Use AM_ZLIB.
12613         * configure: Regeneated.
12614
12615 2015-07-14  Matthias Klose  <doko@ubuntu.com>
12616
12617         PR target/66840
12618         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12619
12620 2015-07-14  Richard Biener  <rguenther@suse.de>
12621
12622         PR tree-optimization/66863
12623         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12624         what we record for conversion use stmt lhs inequalities.
12625
12626 2015-07-14  Richard Biener  <rguenther@suse.de>
12627
12628         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12629         (decision_tree::gen_gimple): Likewise.
12630
12631 2015-07-14  Tom de Vries  <tom@codesourcery.com>
12632
12633         * gcc.c (greater_than_spec_func): Declare forward.
12634         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12635         -ftree-parallelize-loops={0,1}.
12636         (static_spec_functions): Add greater_than_spec_func function with name
12637         "gt".
12638         (greater_than_spec_func): New function.
12639
12640 2015-07-14  Richard Biener  <rguenther@suse.de>
12641
12642         * tree-ssa-dom.c (record_temporary_equivalences): Merge
12643         wideing type conversion case from record_equivalences_from_incoming_edge
12644         and use record_equality to record equivalences.
12645         (record_equivalences_from_incoming_edge): Call
12646         record_temporary_equivalences.
12647
12648 2015-07-14  Richard Biener  <rguenther@suse.de>
12649
12650         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12651         (struct if_expr): New.
12652         (struct with_expr): Likewise.
12653         (is_a_helper): Add helpers for if_expr and with_expr.
12654         (struct simplify): Add simplify_kind enum and member.  Remove
12655         ifexpr_vec member.
12656         (simplify::simplify): Adjust.
12657         (lower_commutative): Adjust.
12658         (lower_opt_convert): Likewise.
12659         (lower_cond): Likewise.
12660         (replace_id): Handle with_expr and if_expr.
12661         (lower_for): Adjust.
12662         (dt_simplify::gen_1): New recursive worker, split out from ...
12663         (dt_simplify::gen): ... here.  Deal with if and with expansion
12664         recursively.
12665         (capture_info::capture_info): Take context argument
12666         (capture_info::walk_result): Only analyze specific result.
12667         (parser::parse_result): New function.
12668         (parser::parse_simplify): Adjust to parse ifs with then end
12669         else case.
12670         (parser::parse_if): Simplify.
12671         (parser::parse_pattern): Pass down simplify kind.
12672         * match.pd: Convert if structure to new syntax.
12673
12674 2015-07-13  Marek Polacek  <polacek@redhat.com>
12675
12676         * rtl.c (rtx_equal_p_cb): Fix typo.
12677
12678 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
12679
12680         * omega.h: Don't include config.h, don't include params.h again if
12681         omega.h has already been included.
12682         * graphite-poly.h: Include sese.h.
12683         * graphite.c: Don't include sese.h, remove needless includes and
12684         minimize includes outside #ifdef HAVE_isl block.
12685         * graphite-blocking.c: Don't include sese.h, remove needless includes,
12686         and wrap entire file in #ifdef HAVE_isl
12687         * graphite-dependences.c: Likewise.
12688         * graphite-interchange.c: Likewise.
12689         * graphite-isl-ast-to-gimple.c: Likewise.
12690         * graphite-optimize-isl.c: Likewise.
12691         * graphite-poly.c: Likewise.
12692         * graphite-scop-detection.c: Likewise.
12693         * graphite-sese-to-poly.c: Likewise.
12694
12695 2015-07-13  Tom de Vries  <tom@codesourcery.com>
12696
12697         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12698
12699 2015-07-13  Renlin Li  <renlin.li@arm.com>
12700
12701         PR rtl/66556
12702         * simplify-rtx.c (simplify_const_relational_operation): Add
12703         side_effects_p checks.
12704
12705 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
12706
12707         * bitmap.h: Fix double word typos.
12708         * builtins.c: Same.
12709         * calls.c: Same.
12710         * cfgloopmanip.c: Same.
12711         * cgraph.c: Same.
12712         * cgraph.h: Same.
12713         * cgraphclones.c: Same.
12714         * combine.c: Same.
12715         * config/aarch64/aarch64-protos.h: Same.
12716         * config/aarch64/aarch64.c: Same.
12717         * config/aarch64/aarch64.md: Same.
12718         * config/arm/arm.md: Same.
12719         * config/arm/arm1020e.md: Same.
12720         * config/arm/arm1026ejs.md: Same.
12721         * config/arm/arm926ejs.md: Same.
12722         * config/arm/fa526.md: Same.
12723         * config/arm/fa606te.md: Same.
12724         * config/arm/fa626te.md: Same.
12725         * config/arm/fa726te.md: Same.
12726         * config/arm/fmp626.md: Same.
12727         * config/darwin.c: Same.
12728         * config/epiphany/epiphany.c: Same.
12729         * config/frv/frv.c: Same.
12730         * config/ft32/ft32.c: Same.
12731         * config/gnu-user.h: Same.
12732         * config/h8300/constraints.md: Same.
12733         * config/i386/i386.c: Same.
12734         * config/i386/i386.md: Same.
12735         * config/iq2000/iq2000.md: Same.
12736         * config/mips/mips.c: Same.
12737         * config/mmix/mmix.md: Same.
12738         * config/moxie/moxie.c: Same.
12739         * config/nds32/nds32.md: Same.
12740         * config/pa/pa.h: Same.
12741         * config/rs6000/aix.h: Same.
12742         * config/rs6000/rs6000.h: Same.
12743         * config/sh/sh.c: Same.
12744         * config/tilegx/tilegx.md: Same.
12745         * config/tilepro/gen-mul-tables.cc: Same.
12746         * cse.c: Same.
12747         * dbxout.c: Same.
12748         * doc/invoke.texi: Same.
12749         * dse.c: Same.
12750         * dwarf2out.c: Same.
12751         * final.c: Same.
12752         * gcc.c: Same.
12753         * genmatch.c: Same.
12754         * gimplify.c: Same.
12755         * hash-table.h: Same.
12756         * internal-fn.c: Same.
12757         * ipa-cp.c: Same.
12758         * ipa-devirt.c: Same.
12759         * ipa-icf.c: Same.
12760         * ipa-icf.h: Same.
12761         * ipa-profile.c: Same.
12762         * ipa-prop.c: Same.
12763         * ipa-prop.h: Same.
12764         * ira.c: Same.
12765         * omp-low.c: Same.
12766         * reg-stack.c: Same.
12767         * regcprop.c: Same.
12768         * reorg.c: Same.
12769         * rtl.h: Same.
12770         * sbitmap.h: Same.
12771         * tree-eh.c: Same.
12772         * tree-inline.c: Same.
12773         * tree-sra.c: Same.
12774         * tree-ssa-dom.c: Same.
12775         * tree-ssa-loop-ivopts.c: Same.
12776         * tree-ssa-structalias.c: Same.
12777         * tree-ssa-tail-merge.c: Same.
12778         * tree-ssa-ter.c: Same.
12779         * tree-ssa-threadupdate.c: Same.
12780         * tree-ssa-uninit.c: Same.
12781         * tree-ssanames.c: Same.
12782         * tree-vect-loop-manip.c: Same.
12783         * tree-vrp.c: Same.
12784         * tree.c: Same.
12785         * valtrack.c: Same.
12786         * vec.h: Same.
12787
12788 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12789
12790         PR middle-end/66726
12791         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12792         tree_ssa_phiopt_worker): Call it.
12793
12794 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12795
12796         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12797         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12798         REG_EQUAL note.
12799
12800 2015-07-11  Marek Polacek  <polacek@redhat.com>
12801
12802         PR middle-end/66353
12803         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12804         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12805         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12806         rather than bb_has_abnormal_call_pred.
12807         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12808         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12809         rather than bb_has_abnormal_call_pred.
12810
12811 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
12812
12813         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12814         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12815         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12816         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12817         v850_legitimate_address_p): New functions.
12818         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12819
12820 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
12821
12822         PR target/66819
12823         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12824         indirect sibcall with register arguments if register available
12825         for argument passing.
12826         (init_cumulative_args): Set cfun->machine->arg_reg_available
12827         to (cum->nregs > 0) or to true if function has a variable
12828         argument list.
12829         (function_arg_advance_32): Set cfun->machine->arg_reg_available
12830         to false if cum->nregs <= 0.
12831         * config/i386/i386.h (machine_function): Add arg_reg_available.
12832
12833 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12834
12835         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12836         and gen_higpart instead of gen_rtx_SUBREG.
12837         * config/i386/i386.md
12838         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12839         (read-modify peephole2): Use gen_lowpart instead of
12840         gen_rtx_SUBREG for operand 5.
12841
12842 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12843
12844         * config/tilepro/gen-mul-tables.cc (main): Change include list for
12845         generated files.
12846         * config/tilepro/mul-tables.c: Regenerate.
12847         * config/tilegx/mul-tables.c: Regenerate.
12848
12849 2015-07-10  Richard Biener  <rguenther@suse.de>
12850
12851         * fold-const.c (distribute_bit_expr): Remove.
12852         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12853         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12854         to A & (B | C) and simplifying A << C1 << C2 to ...
12855         * match.pd: ... patterns here.
12856
12857 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
12858
12859         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12860         Mark mem as READONLY and NOTRAP for PIC symbol.
12861
12862 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12863
12864         * gimple-predict.h: New file.
12865         (gimple_predict_predictor, gimple_predict_set_predictor,
12866         gimple_predict_outcome, gimple_predict_set_outcome,
12867         gimple_build_predict): Relocate here.
12868         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12869         gimple_predict_outcome, gimple_predict_set_outcome): Move to
12870         gimple-predict.h.
12871         * gimple.c (gimple_build_predict): Move to gimple-predict.h
12872         * basic-block.h: Don't include cfghooks.h.
12873         * backend.h: Don't include predict.h.
12874         * cfghooks.h: Include predict.h.
12875         * gimple-pretty-print.c: Include gimple-predict.h.
12876         * gimplify.c: Likwise.
12877         * predict.c: Adjust includes.
12878         * tree-inline.c: Likewise.
12879         * asan.c: Likewise.
12880         * auto-inc-dec.c: Likewise.
12881         * auto-profile.c: Likewise.
12882         * bb-reorder.c: Likewise.
12883         * builtins.c: Likewise.
12884         * caller-save.c: Likewise.
12885         * calls.c: Likewise.
12886         * cfganal.c: Likewise.
12887         * cfgbuild.c: Likewise.
12888         * cfg.c: Likewise.
12889         * cfgcleanup.c: Likewise.
12890         * cfgexpand.c: Likewise.
12891         * cfghooks.c: Likewise.
12892         * cfgloopanal.c: Likewise.
12893         * cfgloop.c: Likewise.
12894         * cfgloopmanip.c: Likewise.
12895         * cfgrtl.c: Likewise.
12896         * cgraph.c: Likewise.
12897         * cgraphunit.c: Likewise.
12898         * combine.c: Likewise.
12899         * cprop.c: Likewise.
12900         * cse.c: Likewise.
12901         * dce.c: Likewise.
12902         * dojump.c: Likewise.
12903         * dse.c: Likewise.
12904         * except.c: Likewise.
12905         * expmed.c: Likewise.
12906         * expr.c: Likewise.
12907         * final.c: Likewise.
12908         * fold-const.c: Likewise.
12909         * function.c: Likewise.
12910         * fwprop.c: Likewise.
12911         * gcc-plugin.h: Likewise.
12912         * gcse.c: Likewise.
12913         * genattrtab.c: Likewise.
12914         * genemit.c: Likewise.
12915         * gengtype.c: Likewise.
12916         * genopinit.c: Likewise.
12917         * genoutput.c: Likewise.
12918         * genpreds.c: Likewise.
12919         * genrecog.c: Likewise.
12920         * gimple-fold.c: Likewise.
12921         * gimple-iterator.c: Likewise.
12922         * gimple-ssa-isolate-paths.c: Likewise.
12923         * gimple-ssa-strength-reduction.c: Likewise.
12924         * graph.c: Likewise.
12925         * graphite-blocking.c: Likewise.
12926         * graphite.c: Likewise.
12927         * graphite-dependences.c: Likewise.
12928         * graphite-interchange.c: Likewise.
12929         * graphite-isl-ast-to-gimple.c: Likewise.
12930         * graphite-optimize-isl.c: Likewise.
12931         * graphite-poly.c: Likewise.
12932         * graphite-scop-detection.c: Likewise.
12933         * graphite-sese-to-poly.c: Likewise.
12934         * haifa-sched.c: Likewise.
12935         * ifcvt.c: Likewise.
12936         * internal-fn.c: Likewise.
12937         * ipa-cp.c: Likewise.
12938         * ipa-profile.c: Likewise.
12939         * ipa-split.c: Likewise.
12940         * ipa-utils.c: Likewise.
12941         * ira-build.c: Likewise.
12942         * ira-color.c: Likewise.
12943         * ira-conflicts.c: Likewise.
12944         * ira-costs.c: Likewise.
12945         * ira-emit.c: Likewise.
12946         * ira-lives.c: Likewise.
12947         * jump.c: Likewise.
12948         * loop-doloop.c: Likewise.
12949         * loop-init.c: Likewise.
12950         * loop-invariant.c: Likewise.
12951         * loop-unroll.c: Likewise.
12952         * lower-subreg.c: Likewise.
12953         * lra-assigns.c: Likewise.
12954         * lra.c: Likewise.
12955         * lra-coalesce.c: Likewise.
12956         * lra-constraints.c: Likewise.
12957         * lra-lives.c: Likewise.
12958         * lto-cgraph.c: Likewise.
12959         * lto-streamer-in.c: Likewise.
12960         * mode-switching.c: Likewise.
12961         * modulo-sched.c: Likewise.
12962         * omp-low.c: Likewise.
12963         * optabs.c: Likewise.
12964         * passes.c: Likewise.
12965         * postreload.c: Likewise.
12966         * postreload-gcse.c: Likewise.
12967         * profile.c: Likewise.
12968         * recog.c: Likewise.
12969         * regstat.c: Likewise.
12970         * reload1.c: Likewise.
12971         * reorg.c: Likewise.
12972         * rtlanal.c: Likewise.
12973         * sched-ebb.c: Likewise.
12974         * sel-sched-ir.c: Likewise.
12975         * sese.c: Likewise.
12976         * shrink-wrap.c: Likewise.
12977         * simplify-rtx.c: Likewise.
12978         * stmt.c: Likewise.
12979         * store-motion.c: Likewise.
12980         * tracer.c: Likewise.
12981         * trans-mem.c: Likewise.
12982         * tree-call-cdce.c: Likewise.
12983         * tree-cfg.c: Likewise.
12984         * tree-cfgcleanup.c: Likewise.
12985         * tree-chkp.c: Likewise.
12986         * tree-complex.c: Likewise.
12987         * tree-eh.c: Likewise.
12988         * tree-if-conv.c: Likewise.
12989         * tree-loop-distribution.c: Likewise.
12990         * tree-outof-ssa.c: Likewise.
12991         * tree-parloops.c: Likewise.
12992         * tree-predcom.c: Likewise.
12993         * tree-pretty-print.c: Likewise.
12994         * tree-profile.c: Likewise.
12995         * tree-sra.c: Likewise.
12996         * tree-ssa.c: Likewise.
12997         * tree-ssa-coalesce.c: Likewise.
12998         * tree-ssa-dce.c: Likewise.
12999         * tree-ssa-dom.c: Likewise.
13000         * tree-ssa-forwprop.c: Likewise.
13001         * tree-ssa-ifcombine.c: Likewise.
13002         * tree-ssa-loop-ch.c: Likewise.
13003         * tree-ssa-loop-im.c: Likewise.
13004         * tree-ssa-loop-ivcanon.c: Likewise.
13005         * tree-ssa-loop-ivopts.c: Likewise.
13006         * tree-ssa-loop-manip.c: Likewise.
13007         * tree-ssa-loop-prefetch.c: Likewise.
13008         * tree-ssa-loop-unswitch.c: Likewise.
13009         * tree-ssa-math-opts.c: Likewise.
13010         * tree-ssa-phiopt.c: Likewise.
13011         * tree-ssa-pre.c: Likewise.
13012         * tree-ssa-reassoc.c: Likewise.
13013         * tree-ssa-sink.c: Likewise.
13014         * tree-ssa-tail-merge.c: Likewise.
13015         * tree-ssa-threadedge.c: Likewise.
13016         * tree-ssa-threadupdate.c: Likewise.
13017         * tree-switch-conversion.c: Likewise.
13018         * tree-tailcall.c: Likewise.
13019         * tree-vect-data-refs.c: Likewise.
13020         * tree-vect-loop.c: Likewise.
13021         * tree-vect-loop-manip.c: Likewise.
13022         * tree-vectorizer.c: Likewise.
13023         * tree-vrp.c: Likewise.
13024         * ubsan.c: Likewise.
13025         * value-prof.c: Likewise.
13026         * varasm.c: Likewise.
13027         * var-tracking.c: Likewise.
13028         * config/aarch64/aarch64-builtins.c: Likewise.
13029         * config/aarch64/aarch64.c: Likewise.
13030         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13031         * config/alpha/alpha.c: Likewise.
13032         * config/arc/arc.c: Likewise.
13033         * config/arm/arm.c: Likewise.
13034         * config/avr/avr.c: Likewise.
13035         * config/bfin/bfin.c: Likewise.
13036         * config/c6x/c6x.c: Likewise.
13037         * config/cr16/cr16.c: Likewise.
13038         * config/cris/cris.c: Likewise.
13039         * config/darwin.c: Likewise.
13040         * config/darwin-c.c: Likewise.
13041         * config/epiphany/epiphany.c: Likewise.
13042         * config/epiphany/mode-switch-use.c: Likewise.
13043         * config/epiphany/resolve-sw-modes.c: Likewise.
13044         * config/fr30/fr30.c: Likewise.
13045         * config/frv/frv.c: Likewise.
13046         * config/ft32/ft32.c: Likewise.
13047         * config/h8300/h8300.c: Likewise.
13048         * config/i386/i386.c: Likewise.
13049         * config/i386/winnt.c: Likewise.
13050         * config/ia64/ia64.c: Likewise.
13051         * config/iq2000/iq2000.c: Likewise.
13052         * config/lm32/lm32.c: Likewise.
13053         * config/m32c/m32c.c: Likewise.
13054         * config/m32r/m32r.c: Likewise.
13055         * config/m68k/m68k.c: Likewise.
13056         * config/mcore/mcore.c: Likewise.
13057         * config/mep/mep.c: Likewise.
13058         * config/microblaze/microblaze.c: Likewise.
13059         * config/mips/mips.c: Likewise.
13060         * config/mmix/mmix.c: Likewise.
13061         * config/mn10300/mn10300.c: Likewise.
13062         * config/moxie/moxie.c: Likewise.
13063         * config/msp430/msp430.c: Likewise.
13064         * config/nds32/nds32.c: Likewise.
13065         * config/nds32/nds32-cost.c: Likewise.
13066         * config/nds32/nds32-fp-as-gp.c: Likewise.
13067         * config/nds32/nds32-intrinsic.c: Likewise.
13068         * config/nds32/nds32-isr.c: Likewise.
13069         * config/nds32/nds32-md-auxiliary.c: Likewise.
13070         * config/nds32/nds32-memory-manipulation.c: Likewise.
13071         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13072         * config/nds32/nds32-predicates.c: Likewise.
13073         * config/nios2/nios2.c: Likewise.
13074         * config/nvptx/nvptx.c: Likewise.
13075         * config/pa/pa.c: Likewise.
13076         * config/pdp11/pdp11.c: Likewise.
13077         * config/rl78/rl78.c: Likewise.
13078         * config/rs6000/rs6000.c: Likewise.
13079         * config/rx/rx.c: Likewise.
13080         * config/s390/s390.c: Likewise.
13081         * config/sh/sh.c: Likewise.
13082         * config/sh/sh-mem.cc: Likewise.
13083         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13084         * config/sh/sh_treg_combine.cc: Likewise.
13085         * config/sparc/sparc.c: Likewise.
13086         * config/spu/spu.c: Likewise.
13087         * config/stormy16/stormy16.c: Likewise.
13088         * config/tilegx/tilegx.c: Likewise.
13089         * config/tilepro/tilepro.c: Likewise.
13090         * config/v850/v850.c: Likewise.
13091         * config/vax/vax.c: Likewise.
13092         * config/visium/visium.c: Likewise.
13093         * config/xtensa/xtensa.c: Likewise.
13094
13095 2015-07-10  Richard Biener  <rguenther@suse.de>
13096
13097         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13098         (decision_tree::gen_gimple): Likewise.
13099         (decision_tree::gen_generic): Likewise.
13100
13101 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
13102
13103         PR target/66813
13104         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13105         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13106
13107 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
13108
13109         PR middle-end/66820
13110         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13111         or ORT_TASK contexts.
13112         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13113         is non-zero.
13114
13115 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13116
13117         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13118         above function.
13119
13120 2015-07-10  Tom de Vries  <tom@codesourcery.com>
13121
13122         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13123         insert nit + 1 bound.
13124
13125 2015-07-10  Richard Biener  <rguenther@suse.de>
13126
13127         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13128         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13129         (if_convertible_loop_p_1): For this always compute bb predicates.
13130         (if_convertible_loop_p): And free them.
13131
13132 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13133
13134         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13135         in dump message.
13136
13137 2015-07-10  Richard Biener  <rguenther@suse.de>
13138
13139         PR tree-optimization/66823
13140         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13141         inverted predicate.
13142
13143 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
13144
13145         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13146         to handle mips[32|64]r3 and mips[32|64]r5.
13147
13148 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
13149
13150         PR middle-end/66633
13151         * tree-nested.c (get_static_chain): Or in a flag into
13152         info->static_chain_added.
13153         (get_frame_field, get_nonlocal_debug_decl): Likewise.
13154         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13155         2015-07-01 changes.
13156         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13157         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13158         add it to clauses.
13159
13160         PR tree-optimization/66718
13161         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13162         field.
13163         (vect_simd_lane_linear): New function.
13164         (vectorizable_simd_clone_call): Support using linear arguments for
13165         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13166
13167 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13168
13169         PR target/66821
13170         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13171
13172 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13173
13174         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13175         Use machine mode, not enum machine_mode in the prototype.
13176
13177         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13178         classify 128-bit floating point support.
13179         (FLOAT128_IBM_P): Likewise.
13180         (FLOAT128_VECTOR_P): Likewise.
13181         (FLOAT128_2REG_P): Likewise.
13182         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13183         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13184         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13185         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13186
13187         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13188         tests against TFmode/TDmode, since those modes do not use VSX
13189         addresses.
13190         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13191         support.
13192         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13193         tests against TFmode, etc.
13194         (invalid_e500_subreg): Add tests against IFmode/KFmode.
13195         (reg_offset_addressing_ok_p): Likewise.
13196         (rs6000_legitimate_offset_address_p): Likewise.
13197         (rs6000_legitimize_address): Likewise.
13198         (rs6000_legitimize_reload_address): Likewise.
13199         (rs6000_legitimate_address_p): Clean up tests against TFmode and
13200         TDmode to use the new helper macros, which will include IFmode and
13201         KFmode.
13202         (rs6000_emit_move): Likewise.
13203         (rs6000_darwin64_record_arg_recurse): Likewise.
13204         (print_operand): Likewise.
13205         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13206         that uses a single vector register as a vector and not as a
13207         floating point register in terms of the calling sequence.
13208         (rs6000_discover_homogeneous_aggregate): Likewise.
13209         (rs6000_return_in_memory): Likewise.
13210         (init_cumulative_args): Likewise.
13211         (rs6000_function_arg_boundary): Likewise.
13212         (rs6000_function_arg_advance_1): Likewise.
13213         (rs6000_function_arg): Likewise.
13214         (rs6000_pass_by_reference): Likewise.
13215         (rs6000_gimplify_va_arg): Likewise.
13216         (rs6000_secondary_reload_memory): Use machine_mode not enum
13217         machine mode.
13218         (rs6000_split_multireg_move): Use new helper macros.
13219         (spe_func_has_64bit_regs_p): Likewise.
13220         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13221         (output_toc): Use new helper macros.
13222         (rs6000_register_move_cost): Likewise.
13223         (rs6000_function_value): Add IEEE 128-bit floating point calling
13224         sequence support.
13225         (rs6000_libcall_value): Likewise.
13226         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13227         floating point support.
13228         (rs6000_vector_mode_supported_p): Likewise.
13229
13230 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
13231
13232         PR rtl-optimization/66782
13233         * lra-int.h (struct lra_insn_recog_data): Add comment about
13234         clobbered hard regs for arg_hard_regs.
13235         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13236         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13237         Add condition for processing used hard regs.
13238         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13239         Process clobbered hard regs.
13240
13241 2015-07-09  Michael Matz  <matz@suse.de>
13242
13243         * genmatch.c (fprintf_indent): New function.
13244         (operand::gen_transform): Add indent parameter.
13245         (expr::gen_transform, c_expr::gen_transform,
13246         capture::gen_transform): Ditto and use fprintf_indent.
13247         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13248         (dt_operand::gen, dt_operand::gen_predicate,
13249         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13250         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13251         (decision_tree::gen_gimple): Adjust calls and indent generated
13252         code.
13253         (decision_tree::gen_generic): Ditto.
13254         (write_predicate): Ditto.
13255
13256 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13257
13258         PR target/66814
13259         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
13260         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
13261         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
13262         {GENERAL,SSE,MMX}_REG_P where appropriate.
13263
13264 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13265
13266         * lto-streamer.h: Don't include target.h and alloc-pool.h.
13267         * builtins.c: Adjust includes.
13268         * gimple.c: Likewise.
13269         * ipa-icf.c: Likewise.
13270         * lto-opts.c: Likewise.
13271         * ipa-reference.c: Likewise.
13272         * lto-section-out.c: Likewise.
13273         * lto-streamer-in.c: Likewise.
13274         * lto-streamer-out.c: Likewise.
13275         * opts-global.c: Likewise.
13276         * symtab.c: Likewise.
13277         * tree-chkp.c: Likewise.
13278         * tree-ssa-live.c: Likewise.
13279         * tree-streamer-in.c: Likewise.
13280         * tree-streamer-out.c: Likewise.
13281         * config/darwin.c: Likewise.
13282         * config/i386/winnt.c: Likewise.
13283
13284 2015-07-09  Richard Biener  <rguenther@suse.de>
13285
13286         * genmatch.c (struct expr): Add force_single_use flag.
13287         (expr::expr): Add copy constructor.
13288         (capture_info::walk_match): Gather force_single_use captures.
13289         (expr::gen_transform): Use possibly NULLified sequence.
13290         (dt_simplify::gen): Apply single-use restrictions by NULLifying
13291         seq if any constrained expr is not single-use.
13292         (parser::parse_expr): Refactor to allow multiple flags.  Handle
13293         's' flag to force an expression have a single-use if the pattern
13294         simplifies to more than one statement.
13295         * match.pd: Convert most single_use conditionals to :s flags.
13296
13297 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13298
13299         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13300         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13301         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13302
13303 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13304
13305         * flags.h: Don't include flag-types.h or options.h.
13306         * opts-common.c: Adjust includes.
13307         * opts-global.c: Likewise.
13308         * common/config/epiphany/epiphany-common.c: Likewise.
13309
13310 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13311
13312         PR target/66818
13313         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13314         for IA MCU.
13315
13316 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13317
13318         PR target/66817
13319         * config/i386/i386.c (ix86_return_in_memory): Return true
13320         if int_size_in_bytes returns negative for IA MCU.
13321
13322 2015-07-09  Marek Polacek  <polacek@redhat.com>
13323
13324         PR tree-optimization/66718
13325         * Makefile.in (OBJS): Add gimple-laddress.o.
13326         * passes.def: Schedule pass_laddress.
13327         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13328         * tree-pass.h (make_pass_laddress): Declare.
13329         * gimple-laddress.c: New file.
13330
13331 2015-07-09  Richard Biener  <rguenther@suse.de>
13332
13333         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13334
13335 2015-07-09  Richard Biener  <rguenther@suse.de>
13336
13337         PR tree-optimization/66807
13338         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13339
13340 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
13341
13342         * function.c (stack_protect_epilogue): Use if rather than switch for
13343         check targetm.have_stack_protect_test.
13344
13345 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13346
13347         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13348         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13349         * config/arc/arc.h: Likewise.
13350         * config/arm/arm.h: Likewise.
13351         * config/bfin/bfin.h: Likewise.
13352         * config/epiphany/epiphany.h: Likewise.
13353         * config/frv/frv.h: Likewise.
13354         * config/ia64/ia64.h: Likewise.
13355         * config/iq2000/iq2000.h: Likewise.
13356         * config/lm32/lm32.h: Likewise.
13357         * config/m32r/m32r.h: Likewise.
13358         * config/mcore/mcore.h: Likewise.
13359         * config/mep/mep.h: Likewise.
13360         * config/microblaze/microblaze.h: Likewise.
13361         * config/mips/mips.h: Likewise.
13362         * config/mmix/mmix.h: Likewise.
13363         * config/mn10300/mn10300.h: Likewise.
13364         * config/nds32/nds32.h: Likewise.
13365         * config/nios2/nios2.h: Likewise.
13366         * config/pa/pa.h: Likewise.
13367         * config/rl78/rl78.h: Likewise.
13368         * config/sh/sh.h: Likewise.
13369         * config/sparc/sparc.h: Likewise.
13370         * config/stormy16/stormy16.h: Likewise.
13371         * config/tilegx/tilegx.h: Likewise.
13372         * config/tilepro/tilepro.h: Likewise.
13373         * config/v850/v850.h: Likewise.
13374         * config/xtensa/xtensa.h: Likewise.
13375         * doc/tm.texi: Regenerate.
13376         * doc/tm.texi.in: Adjust.
13377         * combine.c (simplify_set): Likewise.
13378         (simplify_comparison): Likewise.
13379         * expr.c (store_constructor): Likewise.
13380         * internal-fn.c (expand_arith_overflow): Likewise.
13381         * reload.c (push_reload): Likewise.
13382         (find_reloads): Likewise.
13383         (find_reloads_subreg_address): Likewise.
13384         * reload1.c (eliminate_regs_1): Likewise.
13385         * rtlanal.c (nonzero_bits1): Likewise.
13386         (num_sign_bit_copies1): Likewise.
13387         * simplify-rtx.c (simplify_truncation): Likewise.
13388
13389 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13390
13391         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13392         of AUTO_INC_DEC with the preprocessor.
13393         * combine.c (combine_instructions): Likewise.
13394         (can_combine_p): Likewise.
13395         (try_combine): Likewise.
13396         * emit-rtl.c (try_split): Likewise.
13397         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13398         * lower-subreg.c (resolve_simple_move): Likewise.
13399         * lra.c (update_inc_notes): Likewise.
13400         * recog.c (asm_operand_ok): Likewise.
13401         (constrain_operands): Likewise.
13402         * regrename.c (scan_rtx_address): Likewise.
13403         * reload.c (update_auto_inc_notes): Likewise.
13404         (reg_inc_found_and_valid_p): Likewise.
13405         * reload1.c (reload): Likewise.
13406         (emit_input_reload_insns): Likewise.
13407         (delete_output_reload): Likewise.
13408         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13409         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13410
13411 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13412
13413         * rtl.h: Always define AUTO_INC_DEC.
13414         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13415         * combine.c (combine_instructions): Likewise.
13416         (can_combine_p): Likewise.
13417         (try_combine): Likewise.
13418         * emit-rtl.c (try_split): Likewise.
13419         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13420         * lower-subreg.c (resolve_simple_move): Likewise.
13421         * lra.c (update_inc_notes): Likewise.
13422         * recog.c (asm_operand_ok): Likewise.
13423         (constrain_operands): Likewise.
13424         * regrename.c (scan_rtx_address): Likewise.
13425         * reload.c (update_auto_inc_notes): Likewise.
13426         (find_equiv_reg): Likewise.
13427         * reload1.c (reload): Likewise.
13428         (reload_as_needed): Likewise.
13429         (choose_reload_regs): Likewise.
13430         (emit_input_reload_insns): Likewise.
13431         (delete_output_reload): Likewise.
13432         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13433         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13434
13435 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13436
13437         * combine.c (can_combine_def_p): Don't check the value of
13438         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13439         (combinable_i3pat): Likewise.
13440         (mark_used_regs_combine): Likewise.
13441         * regrename.c (rename_chains): Likewise.
13442         * reload.c (find_reloads_address): Likewise.
13443         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13444
13445 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13446
13447         * combine.c (update_rsp_from_reg_equal): Don't check if
13448         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13449         (reg_nonzero_bits_for_combine): Likewise.
13450         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13451         1.
13452         * config/frv/frv.h: Likewise.
13453         * config/lm32/lm32.h: Likewise.
13454         * config/mep/mep.h: Likewise.
13455         * config/mips/mips.h: Likewise.
13456         * config/rs6000/rs6000.h: Likewise.
13457         * config/sh/sh.h: Likewise.
13458         * config/tilegx/tilegx.h (enum reg_class): Likewise.
13459         * config/tilepro/tilepro.h: Likewise.
13460         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13461         * doc/tm.texi: Regenerate.
13462         * doc/tm.texi.in: Adjust.
13463         * rtlanal.c (nonzero_bits1): Likewise.
13464
13465 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13466
13467         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13468         with the preprocessor.
13469         (combine_instructions): Likewise.
13470         (try_combine): Likewise.
13471         (subst): Likewise.
13472         (distribute_notes): Likewise.
13473
13474 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13475
13476         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13477         defined.
13478         (simplify_set): Likewise.
13479         * cse.c (cse_insn): Likewise.
13480         * fold-const.c (fold_single_bit_test): Likewise.
13481         (fold_unary_loc): Likewise.
13482         * postreload.c (reload_cse_simplify_set): Likewise.
13483         (reload_cse_simplify_operands): Likewise.
13484
13485 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
13486
13487         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13488         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13489
13490 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13491
13492         PR target/66746
13493         * config/i386/x86intrin.h: Include <adxintrin.h> even if
13494         __iamcu__ is defined.
13495
13496 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13497
13498         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13499
13500 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
13501
13502         PR target/66523
13503         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13504         names from preservation.
13505
13506 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13507
13508         PR target/66806
13509         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13510         change for IAMCU.
13511         (function_arg_advance_32): Don't pass vectors in registers for
13512         IAMCU.
13513         (function_arg_32): Likewise.
13514         (ix86_return_in_memory): Don't return vectors in registers for
13515         IAMCU.
13516
13517 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13518
13519         PR middle-end/66334
13520         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13521         hard regno live at the start of BB with incoming abnormal edges.
13522         * lra-lives.c (process_bb_lives): Ditto.
13523
13524 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
13525
13526         PR libgomp/65099
13527         * config/nvptx/mkoffload.c (main): Create an offload image only in
13528         64-bit configurations.
13529
13530 2015-07-08  Martin Liska  <mliska@suse.cz>
13531
13532         PR bootstrap/66744
13533         * tree-sra.c (create_access_1): Call ctor without brackets.
13534         (create_artificial_child_access): Likewise.
13535
13536 2015-07-08  Richard Biener  <rguenther@suse.de>
13537
13538         PR tree-optimization/66793
13539         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13540         Properly split the block after stmts ending it.
13541
13542 2015-07-08  Richard Biener  <rguenther@suse.de>
13543
13544         PR tree-optimization/66794
13545         * passes.c (execute_function_todo): Assert that post-dominators
13546         are not computed.
13547         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13548         Free post-dominators.
13549
13550 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13551
13552         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13553         with early exit.
13554
13555 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13556
13557         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13558         more than or equal 8 and less than 32 when optimizing for size.
13559
13560 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13561
13562         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13563         COSTS_N_INSNS (1) and increment it appropriately throughout the
13564         function.
13565
13566 2015-07-08  Richard Biener  <rguenther@suse.de>
13567
13568         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13569
13570 2015-07-08  Alan Modra  <amodra@gmail.com>
13571
13572         * target.def (rtx_costs): Remove "code" param, add "mode".
13573         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13574         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
13575         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13576         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
13577         call.  Track mode when given in rtx.
13578         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
13579         (default_address_cost): Pass Pmode to rtx_cost.
13580         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13581         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13582         with NULL set.
13583         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
13584         (notreg_cost): Add mode param.  Use it.
13585         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
13586         mode param and pass to set_src_cost.  Update all calls.
13587         (hash_scan_set): Formatting.
13588         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13589         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13590         * hooks.h: Ditto.
13591         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13592         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13593         emit_store_flag): Update set_src_cost and rtx_cost calls.
13594         * auto-inc-dec.c (attempt_change): Likewise.
13595         * calls.c (precompute_register_parameters): Likewise.
13596         * combine.c (expand_compound_operation, make_extraction,
13597         force_to_mode, distribute_and_simplify_rtx): Likewise.
13598         * dojump.c (prefer_and_bit_test): Likewise.
13599         * dse.c (find_shift_sequence): Likewise.
13600         * expr.c (compress_float_constant): Likewise.
13601         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13602         * ifcvt.c (noce_try_sign_mask): Likewise.
13603         * loop-doloop.c (doloop_optimize): Likewise.
13604         * loop-invariant.c (create_new_invariant): Likewise.
13605         * lower-subreg.c (shift_cost, compute_costs): Likewise.
13606         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13607         lshift_cheap_p): Likewise.
13608         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13609         try_replace_in_use, reload_cse_move2add): Likewise.
13610         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13611         Likewise.
13612         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13613         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13614         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13615         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13616         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13617         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
13618         to rtx_cost calls.
13619         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13620         * config/arc/arc.c (arc_rtx_costs): Likewise.
13621         * config/arm/arm.c (arm_rtx_costs): Likewise.
13622         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13623         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13624         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13625         * config/cris/cris.c (cris_rtx_costs): Likewise.
13626         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13627         * config/frv/frv.c (frv_rtx_costs): Likewise.
13628         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13629         * config/i386/i386.c (ix86_rtx_costs): Likewise.
13630         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13631         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13632         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13633         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13634         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13635         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13636         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13637         * config/mep/mep.c (mep_rtx_cost): Likewise.
13638         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13639         * config/mips/mips.c (mips_rtx_costs): Likewise.
13640         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13641         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13642         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13643         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13644         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13645         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13646         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13647         * config/pa/pa.c (hppa_rtx_costs): Likewise.
13648         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13649         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13650         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13651         * config/s390/s390.c (s390_rtx_costs): Likewise.
13652         * config/sh/sh.c (sh_rtx_costs): Likewise.
13653         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13654         * config/spu/spu.c (spu_rtx_costs): Likewise.
13655         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13656         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13657         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13658         * config/v850/v850.c (v850_rtx_costs): Likewise.
13659         * config/vax/vax.c (vax_rtx_costs): Likewise.
13660         * config/visium/visium.c (visium_rtx_costs): Likewise.
13661         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13662         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13663         "code" param, and pass as outer_code to first rtx_cost call.  Pass
13664         mode to rtx_cost calls.
13665         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13666         calls.
13667         (aarch64_rtx_costs_wrapper): Update.
13668         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13669         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13670         rtx_cost calls.
13671         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13672         and rtx_cost calls.
13673         (avr_operand_rtx_cost): Similarly.
13674         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13675         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13676         * config/mips/mips.c (mips_stack_address_p): Comment typo.
13677         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13678         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13679         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13680         rtx_cost.
13681         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13682         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13683         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13684         * doc/tm.texi: Regenerate.
13685
13686 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
13687
13688         * tree-core.h: Include symtab.h.
13689         * rtl.h: Include hard-reg-set.h but not flags.h.
13690         (HARD_CONST): Remove condition compilation involving HARD_CONST since
13691         hard-reg-set.h is always included.
13692         * regs.h: Don't include hard-reg-set.h or rtl.h.
13693         * cfg.h: Include dominance.h.
13694         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13695         * backend.h: New.  Aggregate commonly used backend header files.
13696         * gimple-ssa.h: Don't include tree-hasher.h.
13697         * ssa.h: New.  Aggregate commonly used SSA header files.
13698         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13699         * sel-sched-ir.h: Flatten includes.
13700         * lra-int.h: Flatten completely.
13701         * sel-sched-dump.h: Flatten includes.
13702         * ira-int.h: Flatten includes.
13703         * gimple-streamer.h: Remove all includes.
13704         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13705         * resource.h: Flatten hard-reg-set.h and df.h.
13706         * sched-int.h: Flatten insn-arrt.h and df.h.
13707         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13708         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13709         * genattrtab.c (write_header): Adjust generated includes.
13710         * genautomata.c (main): Likewise.
13711         * genconditions.c (write-header): Likewise.
13712         * genemit.c (main): Likewise.
13713         * gengtype.c (open_base_files): Likewise.
13714         * genopinit.c (main): Likewise.
13715         * genoutput.c (output_prologue): Likewise.
13716         * genpeep.c (main): Likewise.
13717         * genpreds.c (write_insn_preds_c): Likewise.
13718         * genrecog.c (write_header): Likewise.
13719         * alias.c: Adjust includes.
13720         * asan.c: Likewise.
13721         * attribs.c: Likewise.
13722         * auto-inc-dec.c: Likewise.
13723         * auto-profile.c: Likewise.
13724         * bb-reorder.c: Likewise.
13725         * bt-load.c: Likewise.
13726         * builtins.c: Likewise.
13727         * caller-save.c: Likewise.
13728         * calls.c: Likewise.
13729         * ccmp.c: Likewise.
13730         * cfg.c: Likewise.
13731         * cfganal.c: Likewise.
13732         * cfgbuild.c: Likewise.
13733         * cfgcleanup.c: Likewise.
13734         * cfgexpand.c: Likewise.
13735         * cfghooks.c: Likewise.
13736         * cfgloop.c: Likewise.
13737         * cfgloopanal.c: Likewise.
13738         * cfgloopmanip.c: Likewise.
13739         * cfgrtl.c: Likewise.
13740         * cgraph.c: Likewise.
13741         * cgraphbuild.c: Likewise.
13742         * cgraphclones.c: Likewise.
13743         * cgraphunit.c: Likewise.
13744         * cilk-common.c: Likewise.
13745         * combine-stack-adj.c: Likewise.
13746         * combine.c: Likewise.
13747         * compare-elim.c: Likewise.
13748         * convert.c: Likewise.
13749         * coverage.c: Likewise.
13750         * cppbuiltin.c: Likewise.
13751         * cprop.c: Likewise.
13752         * cse.c: Likewise.
13753         * cselib.c: Likewise.
13754         * data-streamer-in.c: Likewise.
13755         * data-streamer-out.c: Likewise.
13756         * data-streamer.c: Likewise.
13757         * dbxout.c: Likewise.
13758         * dce.c: Likewise.
13759         * ddg.c: Likewise.
13760         * debug.c: Likewise.
13761         * df-core.c: Likewise.
13762         * df-problems.c: Likewise.
13763         * df-scan.c: Likewise.
13764         * dfp.c: Likewise.
13765         * dojump.c: Likewise.
13766         * dominance.c: Likewise.
13767         * domwalk.c: Likewise.
13768         * double-int.c: Likewise.
13769         * dse.c: Likewise.
13770         * dumpfile.c: Likewise.
13771         * dwarf2asm.c: Likewise.
13772         * dwarf2cfi.c: Likewise.
13773         * dwarf2out.c: Likewise.
13774         * emit-rtl.c: Likewise.
13775         * et-forest.c: Likewise.
13776         * except.c: Likewise.
13777         * explow.c: Likewise.
13778         * expmed.c: Likewise.
13779         * expr.c: Likewise.
13780         * final.c: Likewise.
13781         * fixed-value.c: Likewise.
13782         * fold-const.c: Likewise.
13783         * function.c: Likewise.
13784         * fwprop.c: Likewise.
13785         * gcc-plugin.h: Likewise.
13786         * gcse-common.c: Likewise.
13787         * gcse.c: Likewise.
13788         * generic-match-head.c: Likewise.
13789         * ggc-page.c: Likewise.
13790         * gimple-builder.c: Likewise.
13791         * gimple-expr.c: Likewise.
13792         * gimple-fold.c: Likewise.
13793         * gimple-iterator.c: Likewise.
13794         * gimple-low.c: Likewise.
13795         * gimple-match-head.c: Likewise.
13796         * gimple-pretty-print.c: Likewise.
13797         * gimple-ssa-isolate-paths.c: Likewise.
13798         * gimple-ssa-strength-reduction.c: Likewise.
13799         * gimple-streamer-in.c: Likewise.
13800         * gimple-streamer-out.c: Likewise.
13801         * gimple-walk.c: Likewise.
13802         * gimple.c: Likewise.
13803         * gimplify-me.c: Likewise.
13804         * gimplify.c: Likewise.
13805         * godump.c: Likewise.
13806         * graph.c: Likewise.
13807         * graphite-blocking.c: Likewise.
13808         * graphite-dependences.c: Likewise.
13809         * graphite-interchange.c: Likewise.
13810         * graphite-isl-ast-to-gimple.c: Likewise.
13811         * graphite-optimize-isl.c: Likewise.
13812         * graphite-poly.c: Likewise.
13813         * graphite-scop-detection.c: Likewise.
13814         * graphite-sese-to-poly.c: Likewise.
13815         * graphite.c: Likewise.
13816         * haifa-sched.c: Likewise.
13817         * hw-doloop.c: Likewise.
13818         * ifcvt.c: Likewise.
13819         * init-regs.c: Likewise.
13820         * internal-fn.c: Likewise.
13821         * ipa-chkp.c: Likewise.
13822         * ipa-comdats.c: Likewise.
13823         * ipa-cp.c: Likewise.
13824         * ipa-devirt.c: Likewise.
13825         * ipa-icf-gimple.c: Likewise.
13826         * ipa-icf.c: Likewise.
13827         * ipa-inline-analysis.c: Likewise.
13828         * ipa-inline-transform.c: Likewise.
13829         * ipa-inline.c: Likewise.
13830         * ipa-polymorphic-call.c: Likewise.
13831         * ipa-profile.c: Likewise.
13832         * ipa-prop.c: Likewise.
13833         * ipa-pure-const.c: Likewise.
13834         * ipa-ref.c: Likewise.
13835         * ipa-reference.c: Likewise.
13836         * ipa-split.c: Likewise.
13837         * ipa-utils.c: Likewise.
13838         * ipa-visibility.c: Likewise.
13839         * ipa.c: Likewise.
13840         * ira-build.c: Likewise.
13841         * ira-color.c: Likewise.
13842         * ira-conflicts.c: Likewise.
13843         * ira-costs.c: Likewise.
13844         * ira-emit.c: Likewise.
13845         * ira-lives.c: Likewise.
13846         * ira.c: Likewise.
13847         * jump.c: Likewise.
13848         * langhooks.c: Likewise.
13849         * lcm.c: Likewise.
13850         * loop-doloop.c: Likewise.
13851         * loop-init.c: Likewise.
13852         * loop-invariant.c: Likewise.
13853         * loop-iv.c: Likewise.
13854         * loop-unroll.c: Likewise.
13855         * lower-subreg.c: Likewise.
13856         * lra-assigns.c: Likewise.
13857         * lra-coalesce.c: Likewise.
13858         * lra-constraints.c: Likewise.
13859         * lra-eliminations.c: Likewise.
13860         * lra-lives.c: Likewise.
13861         * lra-remat.c: Likewise.
13862         * lra-spills.c: Likewise.
13863         * lra.c: Likewise.
13864         * lto-cgraph.c: Likewise.
13865         * lto-compress.c: Likewise.
13866         * lto-opts.c: Likewise.
13867         * lto-section-in.c: Likewise.
13868         * lto-section-out.c: Likewise.
13869         * lto-streamer-in.c: Likewise.
13870         * lto-streamer-out.c: Likewise.
13871         * lto-streamer.c: Likewise.
13872         * mcf.c: Likewise.
13873         * mode-switching.c: Likewise.
13874         * modulo-sched.c: Likewise.
13875         * omega.c: Likewise.
13876         * omp-low.c: Likewise.
13877         * optabs.c: Likewise.
13878         * opts-global.c: Likewise.
13879         * passes.c: Likewise.
13880         * plugin.c: Likewise.
13881         * postreload-gcse.c: Likewise.
13882         * postreload.c: Likewise.
13883         * predict.c: Likewise.
13884         * print-rtl.c: Likewise.
13885         * print-tree.c: Likewise.
13886         * profile.c: Likewise.
13887         * real.c: Likewise.
13888         * realmpfr.c: Likewise.
13889         * recog.c: Likewise.
13890         * ree.c: Likewise.
13891         * reg-stack.c: Likewise.
13892         * regcprop.c: Likewise.
13893         * reginfo.c: Likewise.
13894         * regrename.c: Likewise.
13895         * regstat.c: Likewise.
13896         * reload.c: Likewise.
13897         * reload1.c: Likewise.
13898         * reorg.c: Likewise.
13899         * resource.c: Likewise.
13900         * rtl-chkp.c: Likewise.
13901         * rtlanal.c: Likewise.
13902         * rtlhooks.c: Likewise.
13903         * sanopt.c: Likewise.
13904         * sched-deps.c: Likewise.
13905         * sched-ebb.c: Likewise.
13906         * sched-rgn.c: Likewise.
13907         * sched-vis.c: Likewise.
13908         * sdbout.c: Likewise.
13909         * sel-sched-dump.c: Likewise.
13910         * sel-sched-ir.c: Likewise.
13911         * sel-sched.c: Likewise.
13912         * sese.c: Likewise.
13913         * shrink-wrap.c: Likewise.
13914         * simplify-rtx.c: Likewise.
13915         * stack-ptr-mod.c: Likewise.
13916         * stmt.c: Likewise.
13917         * stor-layout.c: Likewise.
13918         * store-motion.c: Likewise.
13919         * stringpool.c: Likewise.
13920         * symtab.c: Likewise.
13921         * target-globals.c: Likewise.
13922         * targhooks.c: Likewise.
13923         * toplev.c: Likewise.
13924         * tracer.c: Likewise.
13925         * trans-mem.c: Likewise.
13926         * tree-affine.c: Likewise.
13927         * tree-browser.c: Likewise.
13928         * tree-call-cdce.c: Likewise.
13929         * tree-cfg.c: Likewise.
13930         * tree-cfgcleanup.c: Likewise.
13931         * tree-chkp-opt.c: Likewise.
13932         * tree-chkp.c: Likewise.
13933         * tree-chrec.c: Likewise.
13934         * tree-complex.c: Likewise.
13935         * tree-data-ref.c: Likewise.
13936         * tree-dfa.c: Likewise.
13937         * tree-diagnostic.c: Likewise.
13938         * tree-dump.c: Likewise.
13939         * tree-eh.c: Likewise.
13940         * tree-emutls.c: Likewise.
13941         * tree-if-conv.c: Likewise.
13942         * tree-inline.c: Likewise.
13943         * tree-into-ssa.c: Likewise.
13944         * tree-iterator.c: Likewise.
13945         * tree-loop-distribution.c: Likewise.
13946         * tree-nested.c: Likewise.
13947         * tree-nrv.c: Likewise.
13948         * tree-object-size.c: Likewise.
13949         * tree-outof-ssa.c: Likewise.
13950         * tree-parloops.c: Likewise.
13951         * tree-phinodes.c: Likewise.
13952         * tree-predcom.c: Likewise.
13953         * tree-pretty-print.c: Likewise.
13954         * tree-profile.c: Likewise.
13955         * tree-scalar-evolution.c: Likewise.
13956         * tree-sra.c: Likewise.
13957         * tree-ssa-address.c: Likewise.
13958         * tree-ssa-alias.c: Likewise.
13959         * tree-ssa-ccp.c: Likewise.
13960         * tree-ssa-coalesce.c: Likewise.
13961         * tree-ssa-copy.c: Likewise.
13962         * tree-ssa-copyrename.c: Likewise.
13963         * tree-ssa-dce.c: Likewise.
13964         * tree-ssa-dom.c: Likewise.
13965         * tree-ssa-dse.c: Likewise.
13966         * tree-ssa-forwprop.c: Likewise.
13967         * tree-ssa-ifcombine.c: Likewise.
13968         * tree-ssa-live.c: Likewise.
13969         * tree-ssa-loop-ch.c: Likewise.
13970         * tree-ssa-loop-im.c: Likewise.
13971         * tree-ssa-loop-ivcanon.c: Likewise.
13972         * tree-ssa-loop-ivopts.c: Likewise.
13973         * tree-ssa-loop-manip.c: Likewise.
13974         * tree-ssa-loop-niter.c: Likewise.
13975         * tree-ssa-loop-prefetch.c: Likewise.
13976         * tree-ssa-loop-unswitch.c: Likewise.
13977         * tree-ssa-loop.c: Likewise.
13978         * tree-ssa-math-opts.c: Likewise.
13979         * tree-ssa-operands.c: Likewise.
13980         * tree-ssa-phiopt.c: Likewise.
13981         * tree-ssa-phiprop.c: Likewise.
13982         * tree-ssa-pre.c: Likewise.
13983         * tree-ssa-propagate.c: Likewise.
13984         * tree-ssa-reassoc.c: Likewise.
13985         * tree-ssa-sccvn.c: Likewise.
13986         * tree-ssa-scopedtables.c: Likewise.
13987         * tree-ssa-sink.c: Likewise.
13988         * tree-ssa-strlen.c: Likewise.
13989         * tree-ssa-structalias.c: Likewise.
13990         * tree-ssa-tail-merge.c: Likewise.
13991         * tree-ssa-ter.c: Likewise.
13992         * tree-ssa-threadedge.c: Likewise.
13993         * tree-ssa-threadupdate.c: Likewise.
13994         * tree-ssa-uncprop.c: Likewise.
13995         * tree-ssa-uninit.c: Likewise.
13996         * tree-ssa.c: Likewise.
13997         * tree-ssanames.c: Likewise.
13998         * tree-stdarg.c: Likewise.
13999         * tree-streamer-in.c: Likewise.
14000         * tree-streamer-out.c: Likewise.
14001         * tree-streamer.c: Likewise.
14002         * tree-switch-conversion.c: Likewise.
14003         * tree-tailcall.c: Likewise.
14004         * tree-vect-data-refs.c: Likewise.
14005         * tree-vect-generic.c: Likewise.
14006         * tree-vect-loop-manip.c: Likewise.
14007         * tree-vect-loop.c: Likewise.
14008         * tree-vect-patterns.c: Likewise.
14009         * tree-vect-slp.c: Likewise.
14010         * tree-vect-stmts.c: Likewise.
14011         * tree-vectorizer.c: Likewise.
14012         * tree-vrp.c: Likewise.
14013         * tree.c: Likewise.
14014         * tsan.c: Likewise.
14015         * ubsan.c: Likewise.
14016         * valtrack.c: Likewise.
14017         * value-prof.c: Likewise.
14018         * var-tracking.c: Likewise.
14019         * varasm.c: Likewise.
14020         * varpool.c: Likewise.
14021         * vmsdbgout.c: Likewise.
14022         * vtable-verify.c: Likewise.
14023         * web.c: Likewise.
14024         * wide-int.cc: Likewise.
14025         * xcoffout.c: Likewise.
14026         * config/aarch64/aarch64-builtins.c: Likewise.
14027         * config/aarch64/aarch64.c: Likewise.
14028         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14029         * config/alpha/alpha.c: Likewise.
14030         * config/arc/arc.c: Likewise.
14031         * config/arm/aarch-common.c: Likewise.
14032         * config/arm/arm-builtins.c: Likewise.
14033         * config/arm/arm-c.c: Likewise.
14034         * config/arm/arm.c: Likewise.
14035         * config/avr/avr-c.c: Likewise.
14036         * config/avr/avr-log.c: Likewise.
14037         * config/avr/avr.c: Likewise.
14038         * config/bfin/bfin.c: Likewise.
14039         * config/c6x/c6x.c: Likewise.
14040         * config/cr16/cr16.c: Likewise.
14041         * config/cris/cris.c: Likewise.
14042         * config/darwin-c.c: Likewise.
14043         * config/darwin.c: Likewise.
14044         * config/epiphany/epiphany.c: Likewise.
14045         * config/epiphany/mode-switch-use.c: Likewise.
14046         * config/epiphany/resolve-sw-modes.c: Likewise.
14047         * config/fr30/fr30.c: Likewise.
14048         * config/frv/frv.c: Likewise.
14049         * config/ft32/ft32.c: Likewise.
14050         * config/h8300/h8300.c: Likewise.
14051         * config/i386/i386-c.c: Likewise.
14052         * config/i386/i386.c: Likewise.
14053         * config/i386/msformat-c.c: Likewise.
14054         * config/i386/winnt-cxx.c: Likewise.
14055         * config/i386/winnt-stubs.c: Likewise.
14056         * config/i386/winnt.c: Likewise.
14057         * config/ia64/ia64-c.c: Likewise.
14058         * config/ia64/ia64.c: Likewise.
14059         * config/iq2000/iq2000.c: Likewise.
14060         * config/lm32/lm32.c: Likewise.
14061         * config/m32c/m32c-pragma.c: Likewise.
14062         * config/m32c/m32c.c: Likewise.
14063         * config/m32r/m32r.c: Likewise.
14064         * config/m68k/m68k.c: Likewise.
14065         * config/mcore/mcore.c: Likewise.
14066         * config/mep/mep-pragma.c: Likewise.
14067         * config/mep/mep.c: Likewise.
14068         * config/microblaze/microblaze-c.c: Likewise.
14069         * config/microblaze/microblaze.c: Likewise.
14070         * config/mips/mips.c: Likewise.
14071         * config/mmix/mmix.c: Likewise.
14072         * config/mn10300/mn10300.c: Likewise.
14073         * config/moxie/moxie.c: Likewise.
14074         * config/msp430/msp430-c.c: Likewise.
14075         * config/msp430/msp430.c: Likewise.
14076         * config/nds32/nds32-cost.c: Likewise.
14077         * config/nds32/nds32-fp-as-gp.c: Likewise.
14078         * config/nds32/nds32-intrinsic.c: Likewise.
14079         * config/nds32/nds32-isr.c: Likewise.
14080         * config/nds32/nds32-md-auxiliary.c: Likewise.
14081         * config/nds32/nds32-memory-manipulation.c: Likewise.
14082         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14083         * config/nds32/nds32-predicates.c: Likewise.
14084         * config/nds32/nds32.c: Likewise.
14085         * config/nios2/nios2.c: Likewise.
14086         * config/nvptx/nvptx.c: Likewise.
14087         * config/pa/pa.c: Likewise.
14088         * config/pdp11/pdp11.c: Likewise.
14089         * config/rl78/rl78-c.c: Likewise.
14090         * config/rl78/rl78.c: Likewise.
14091         * config/rs6000/rs6000-c.c: Likewise.
14092         * config/rs6000/rs6000.c: Likewise.
14093         * config/rx/rx.c: Likewise.
14094         * config/s390/s390-c.c: Likewise.
14095         * config/s390/s390.c: Likewise.
14096         * config/sh/sh-c.c: Likewise.
14097         * config/sh/sh-mem.cc: Likewise.
14098         * config/sh/sh.c: Likewise.
14099         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14100         * config/sh/sh_treg_combine.cc: Likewise.
14101         * config/sol2-c.c: Likewise.
14102         * config/sol2-cxx.c: Likewise.
14103         * config/sol2-stubs.c: Likewise.
14104         * config/sol2.c: Likewise.
14105         * config/sparc/sparc-c.c: Likewise.
14106         * config/sparc/sparc.c: Likewise.
14107         * config/spu/spu-c.c: Likewise.
14108         * config/spu/spu.c: Likewise.
14109         * config/stormy16/stormy16.c: Likewise.
14110         * config/tilegx/mul-tables.c: Likewise.
14111         * config/tilegx/tilegx-c.c: Likewise.
14112         * config/tilegx/tilegx.c: Likewise.
14113         * config/tilepro/mul-tables.c: Likewise.
14114         * config/tilepro/tilepro-c.c: Likewise.
14115         * config/tilepro/tilepro.c: Likewise.
14116         * config/v850/v850-c.c: Likewise.
14117         * config/v850/v850.c: Likewise.
14118         * config/vax/vax.c: Likewise.
14119         * config/visium/visium.c: Likewise.
14120         * config/vms/vms-c.c: Likewise.
14121         * config/vms/vms.c: Likewise.
14122         * config/vxworks.c: Likewise.
14123         * config/xtensa/xtensa.c: Likewise.
14124
14125 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
14126
14127         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14128         Remove operand constraints.  Change operand 2 predicate to
14129         nonmemory operand.  Limit const_int values to mode bitsize.  Only
14130         allow const_int values less than 32 when optimizing for size.
14131         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14132         Remove operand constraints.
14133         (*bt<mode>): Use SImode for const_int values less than 32.
14134         (regmode): Remove mode attribute.
14135
14136 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
14137
14138         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14139         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14140           moxie_legitimate_address_p): New functions.
14141           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14142
14143 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14144
14145         PR tree-optimization/66642
14146         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14147         header comment.  Rename split_edge variable to edge_at_split.  Split
14148         exit edge to create new loop exit bb.  Insert loop exit phis in new
14149         loop exit bb.
14150
14151 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14152
14153         * tree-cfg.c (get_virtual_phi): New function.
14154         * tree-cfg.h (get_virtual_phi): Declare.
14155         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14156         (rewrite_virtuals_into_loop_closed_ssa): New function.
14157         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14158         Declare.
14159         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14160         (transform_to_exit_first_loop_alt): Use
14161         rewrite_virtuals_into_loop_closed_ssa.
14162
14163 2015-07-07  Richard Biener  <rguenther@suse.de>
14164
14165         * fold-const.c (fold_binary_loc): Move
14166         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14167         * match.pd: ... here.
14168         Add (X * C1) % C2 -> 0 simplification pattern derived from
14169         extract_muldiv_1.
14170
14171 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
14172
14173         PR target/66780
14174         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14175         change for target/65249.
14176
14177 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
14178
14179         * symtab.c (address_matters_1): Fix typo in comment above.
14180         (can_increase_alignment_p): Likewise.
14181
14182 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14183
14184         * function.c (free_after_compilation): Clear PROP_cfg in
14185         f->curr_properties.
14186
14187 2015-07-07  Richard Biener  <rguenther@suse.de>
14188
14189         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14190         add which use to.
14191         (add_control_edge): Remove excessive vertical space in dumping.
14192         (process_ssa_edge_worklist): Simulate at most one statement and
14193         return whether we did.  Do not simulate PHIs if they are in a
14194         BB not yet simulated.
14195         (ssa_propagate): Adjust to always drain the BB worklist whenever
14196         a BB is available there, likewise the VARYING edges list before
14197         the interesting edge list.
14198
14199 2015-07-07  Christian Bruel  <christian.bruel@st.com>
14200
14201         PR target/52144
14202         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14203
14204 2015-07-07  Richard Biener  <rguenther@suse.de>
14205
14206         PR middle-end/66739
14207         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14208         A - B.
14209
14210 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14211
14212         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
14213         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
14214         Copy operand 0 to a temporary if !ext_register_operand.  Remove
14215         ancient extract_bit_field workaround.
14216         (insv<mode>_1): Rename from mov<mode>_insv_1.
14217         (*insvqi): Rename from *movqi_insv_2.
14218         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14219         for renamed insvsi_1.
14220         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14221
14222 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14223
14224         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
14225         call to nvptx_reorg_subreg.
14226
14227 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
14228
14229         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14230         * graphite-dependencies.c, graphite-interchange.c,
14231         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14232         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14233         Likewise.
14234
14235 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
14236
14237         * match.pd: Remove element_mode inside HONOR_*.
14238         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14239         (~X | X -> -1, ~X ^ X -> -1): Merge.
14240         * tree.c (build_each_one_cst): New function.
14241         * tree.h (build_each_one_cst): Likewise.
14242
14243 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14244
14245         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14246         PROCESSOR_IAMCU.
14247
14248 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
14249
14250         * config.gcc <mips*-*-*>: Add fused-madd.opt.
14251         * config/mips/mips.opt (mfused-madd): Remove.
14252         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14253         * config/mips/mips.h (TARGET_MIPS8000): New.
14254         (ISA_HAS_FP_MADD4_MSUB4): Remove.
14255         (ISA_HAS_FP_MADDF_MSUBF): Remove.
14256         (ISA_HAS_FP_MADD3_MSUB3): Remove.
14257         (ISA_HAS_NMADD4_NMSUB4): Remove.
14258         (ISA_HAS_NMADD3_NMSUB3): Remove.
14259         (ISA_HAS_FUSED_MADD4): New.
14260         (ISA_HAS_UNFUSED_MADD4): New.
14261         (ISA_HAS_FUSED_MADDF): New.
14262         (ISA_HAS_FUSED_MADD3): New.
14263         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
14264         (*fma<mode>4_madd3) New.
14265         (*fma<mode>4_madd4) New.
14266         (*fma<mode>4_maddf) New.
14267         (fms<mode>4) New.
14268         (*fms<mode>4_msub3) New.
14269         (*fms<mode>4_msub4) New.
14270         (fnma<mode>4) New.
14271         (*fnma<mode>4_nmadd3) New.
14272         (*fnma<mode>4_nmadd4) New.
14273         (fnms<mode>4) New.
14274         (*fnms<mode>4_nmsub3) New.
14275         (*fnms<mode>4_nmsub4) New.
14276         (*madd4<mode>) Modify to be unfused only.
14277         (*msub4<mode>) Modify to be unfused only.
14278         (*nmadd4<mode>) Modify to be unfused only.
14279         (*nmsub4<mode>) Modify to be unfused only.
14280         (*madd3<mode>) Remove.
14281         (*msub3<mode>) Remove.
14282         (*nmadd3<mode>) Remove.
14283         (*nmsub3<mode>) Remove.
14284         (*nmadd3<mode>_fastmath) Remove.
14285         (*nmsub3<mode>_fastmath) Remove.
14286         (*nmadd4<mode>_fastmath) Update condition.
14287         (*nmsub4<mode>_fastmath) Update condition.
14288
14289 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14290
14291         PR target/65956
14292         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14293         alignment attribute, exploring one level down for records and arrays.
14294
14295 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14296
14297         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
14298         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
14299         Copy operand 1 to a temporary if !ext_register_operand.  Remove
14300         ancient extract_bit_field workaround.
14301         (*extv<mode>): Rename from *mov<mode>_extv_1.
14302         (*extvqi): Rename from *movqi_extv_1.
14303         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
14304         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
14305         to a temporary if !ext_register_operand.  Remove ancient
14306         extract_bit_field workaround.
14307         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14308         (*extzvqi): Rename from *movqi_extzv_2.
14309         (*testqi_ext_3): Remove modes from const_int_operand predicated
14310         operands.  Add "n" constraint.
14311         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14312         operand.  Add "J" constraint.
14313         (*btsq, *btrq, *btcq peephole2s): Remove mode from
14314         const_0_to_63 predicated operand.
14315         (regmode): New insn attribute.
14316         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
14317         to nonmemory_operand.  Use regmode insn attribute.
14318         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14319         (*jcc_bt<mode>_mask): Remove mode from operand 3.
14320         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14321         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14322         operands.  Use "N" constraint instead of "n".
14323
14324 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14325
14326         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14327
14328 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14329
14330         PR target/66749
14331         * config/i386/i386.c (iamcu_cost): New.
14332         (m_IAMCU): Likewise.
14333         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14334         (processor_target_table): Add an entry for "iamcu".
14335         (processor_alias_table): Likewise.
14336         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14337         (ix86_adjust_cost): Likewise.
14338         (ia32_multipass_dfa_lookahead): Likewise.
14339         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14340         * config/i386/x86-tune.def: Updated for m_IAMCU.
14341
14342 2015-07-06  Richard Biener  <rguenther@suse.de>
14343
14344         PR tree-optimization/66772
14345         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14346         values are available in the PHI node BB when there are
14347         still unexecutable edges.
14348
14349 2015-07-06  Richard Biener  <rguenther@suse.de>
14350
14351         PR tree-optimization/66767
14352         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14353         Make sure to build the alignment test on a SSA name without
14354         final alignment info valid only if the alignment test
14355         evaluates to true.
14356
14357 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14358
14359         PR target/66620
14360         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14361         loop start when inserting LSETUP.
14362
14363 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14364
14365         PR target/53383
14366         * config/i386/i386.c (ix86_option_override_internal): Allow
14367         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14368
14369 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14370
14371         * read-md.c (decimal_string): Rename to ...
14372         (md_decimal_string): ... this.
14373         (handle_enum): Reflect this.
14374
14375 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14376
14377         PR target/66731
14378         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14379
14380 2015-07-06  Richard Biener  <rguenther@suse.de>
14381
14382         PR middle-end/66759
14383         * match.pd: Add missing constraint of y to REAL_CST in
14384         REAL_CST - x CMP y to y - CST CMP x simplification.
14385
14386 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
14387
14388         PR tree-optimization/66757
14389         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14390
14391 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
14392             Sandra Loosemore <sandra@codesourcery.com>
14393
14394         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14395         Delete extern declaration.
14396         (gprel_constant_p): Add extern declaration.
14397         * config/nios2/constraints.md ("S"): Use gprel_constant_p
14398         instead of nios2_symbol_ref_in_small_data_p.
14399         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14400         (nios2_symbol_ref_in_small_data_p): Make static.
14401         (gprel_constant_p): Make non-static.
14402
14403 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14404
14405         * doc/fragments.texi (Target Fragment): Convert debian.org
14406         link to use https.
14407         * doc/install.texi (Configuration): Ditto.
14408
14409 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
14410
14411         PR tree-optimization/66718
14412         * tree-vect-stmts.c (vectorizable_call): Replace uses of
14413         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14414
14415         PR tree-optimization/66718
14416         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14417         vectorizable_load, vectorizable_condition): Move vectype,
14418         nunits, ncopies computation after checking what kind of statement
14419         stmt is.
14420
14421 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14422
14423         * target-insns.def (extv, extzv, insv): New targetm instruction
14424         patterns.
14425         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14426         interface.
14427         * recog.c (simplify_while_replacing): Likewise.
14428
14429 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14430
14431         * target-insns.def (doloop_begin, doloop_end): New targetm
14432         instruction patterns.
14433         * loop-init.c: Include target.h.
14434         (pass_loop2::gate): Use the new targetm patterns instead of
14435         HAVE_*/gen_* interface.
14436         (pass_rtl_doloop::gate): Likewise.
14437         (pass_rtl_doloop::execute): Remove preprocessor condition.
14438         * hw-doloop.c: Build unconditionally.
14439         * loop-doloop.c: Likewise.
14440         (doloop_optimize): Use the new targetm patterns instead of
14441         HAVE_*/gen_* interface.
14442         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14443         * modulo-sched.c (doloop_register_get): Likewise.
14444
14445 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14446
14447         * target-insns.def (clear_cache): New targetm instruction pattern.
14448         * builtins.c (expand_builtin___clear_cache): Use it instead of
14449         HAVE_*/gen_* interface.
14450
14451 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14452
14453         * target-insns.def (allocate_stack, check_stack, probe_stack)
14454         (probe_stack_address, split_stack_prologue, split_stack_space_check):
14455         New targetm instruction patterns.
14456         * explow.c (allocate_dynamic_stack_space): Use them instead of
14457         HAVE_*/gen_* interface.
14458         (emit_stack_probe): Likewise.
14459         (probe_stack_range): Likewise.
14460         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14461
14462 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14463
14464         * target-insns.def (stack_protect_set, stack_protect_test): New
14465         targetm instruction patterns.
14466         * cfgexpand.c (stack_protect_prologue): Use them instead of
14467         HAVE_*/gen_* interface.
14468         * function.c (stack_protect_epilogue): Likewise.
14469
14470 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14471
14472         * expr.h (gen_move_insn_uncast): Delete.
14473         * expr.c (gen_move_insn_uncast): Delete.
14474
14475 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14476
14477         * target-insns.def (restore_stack_block, restore_stack_function)
14478         (restore_stack_nonlocal, save_stack_block, save_stack_function)
14479         (save_stack_nonlocal): New targetm instruction patterns.
14480         * builtins.c (expand_builtin_apply): Use them instead of
14481         HAVE_*/gen_* interface.
14482         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14483
14484 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14485
14486         * target-insns.def (trap): New targetm instruction pattern.
14487         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14488         interface.
14489         * explow.c (allocate_dynamic_stack_space): Likewise.
14490         * ifcvt.c (find_if_header): Likewise.
14491
14492 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14493
14494         * target-insns.def (prefetch): New targetm instruction pattern.
14495         * tree-ssa-loop-prefetch.c: Include targeth.
14496         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14497         of HAVE_*/gen_* interface.
14498         * builtins.c (expand_builtin_prefetch): Likewise.
14499         * toplev.c (process_options): Likewise.
14500
14501 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14502
14503         * target-insns.def (untyped_call, untyped_return): New targetm
14504         instruction patterns.
14505         * builtins.c (expand_builtin_apply): Use them instead of
14506         HAVE_*/gen_* interface.
14507         (result_vector): Define unconditionally.
14508
14509 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14510
14511         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14512         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14513         (nonlocal_goto_receiver): New targetm instruction patterns.
14514         * builtins.c (expand_builtin_setjmp_setup): Use them instead
14515         of HAVE_*/gen_* interface.
14516         (expand_builtin_setjmp_receiver): Likewise.
14517         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14518         * except.c (expand_dw2_landing_pad_for_region): Likewise.
14519
14520 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14521
14522         * target.def: Add code_for_* hooks.
14523         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14524         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14525         * target-insns.def (casesi, tablejump): New targetm instruction
14526         patterns.
14527         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14528         (do_tablejump): Likewise.
14529         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14530         (expand_sjlj_dispatch_table): Likewise.
14531         * targhooks.c (default_case_values_threshold): Likewise.
14532
14533 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
14534
14535         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14536         Use rtx_insn * instead of rtx.
14537         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14538         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14539         (nios2_call_tls_get_addr): Likewise.
14540         (nios2_emit_expensive_div): Likewise.
14541         (nios2_emit_move_sequence): Change return type to bool.
14542         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14543         Change return type to bool.
14544
14545 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14546
14547         PR target/66747
14548         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14549
14550 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
14551
14552         PR target/66114
14553         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14554         of register_operand.  Remove constraint.
14555
14556 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
14557
14558         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14559         the first argument.
14560
14561 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
14562
14563         * attribs.c (decl_attributes): Guard inform with the return value
14564         of the preceding warning.
14565
14566 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14567
14568         * doc/invoke.texi (moverride): Move to correct section.
14569
14570 2015-07-03  Richard Biener  <rguenther@suse.de>
14571
14572         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14573         Copy from tree.c
14574         (dt_operand::gen_gimple_expr): After valueizing operands
14575         re-canonicalize operand order for commutative tree codes.
14576
14577 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
14578
14579         PR target/66746.
14580         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14581         is defined.
14582         (__crc32w): Likewise.
14583         (__crc32d): Likewise.
14584         (__rdpmc): Likewise.
14585         (__rdtscp): Likewise.
14586         (_rdpmc): Likewise.
14587         (_rdtscp): Likewise.
14588         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14589         is defined.
14590
14591 2015-07-03  Richard Biener  <rguenther@suse.de>
14592
14593         * fold-const.c (fold_mathfn_compare): Remove.
14594         (fold_inf_compare): Likewise.
14595         (fold_comparison): Move floating point comparison simplifications...
14596         * match.pd: ... to patterns here.  Introduce simple_comparisons
14597         operator list and use it for patterns formerly in fold_comparison.
14598
14599 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14600
14601         PR tree-optimization/66119
14602         * toplev.c (process_options): Don't set up default values for
14603         the sra_max_scalarization_size_{speed,size} parameters.
14604         * tree-sra (analyze_all_variable_accesses): If no values
14605         have been set for the sra_max_scalarization_size_{speed,size}
14606         parameters, call get_move_ratio to get target defaults.
14607
14608 2015-07-03  Richard Biener  <rguenther@suse.de>
14609
14610         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14611         * match.pd: ... here.
14612
14613 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
14614
14615         PR target/37072
14616         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14617         is not actually the default on FreeBSD.
14618
14619 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14620
14621         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14622         definition.
14623         (CMPGE_8HI): Likewise.
14624         (CMPGE_4SI): Likewise.
14625         (CMPGE_2DI): Likewise.
14626         (CMPGE_U16QI): Likewise.
14627         (CMPGE_U8HI): Likewise.
14628         (CMPGE_U4SI): Likewise.
14629         (CMPGE_U2DI): Likewise.
14630         (CMPLE_16QI): Likewise.
14631         (CMPLE_8HI): Likewise.
14632         (CMPLE_4SI): Likewise.
14633         (CMPLE_2DI): Likewise.
14634         (CMPLE_U16QI): Likewise.
14635         (CMPLE_U8HI): Likewise.
14636         (CMPLE_U4SI): Likewise.
14637         (CMPLE_U2DI): Likewise.
14638         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14639         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14640         ALTIVEC_BUILTIN_VEC_CMPLE.
14641         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14642         floating-point vector modes.
14643         (vector_nlt<mode>): New define_expand.
14644         (vector_nltu<mode>): Likewise.
14645         (vector_ngt<mode>): Likewise.
14646         (vector_ngtu<mode>): Likewise.
14647
14648 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14649
14650         PR rtl-optimization/66706
14651         * combine.c (make_compound_operation): If an AND of SUBREG of
14652         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14653
14654 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
14655
14656         * tree-pass.h (make_pass_ch_vect): New.
14657         * passes.def: Add pass_ch_vect just before pass_if_conversion.
14658
14659         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14660         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14661         make_pass_ch_vect): New.
14662         (pass_ch): Extend ch_base.
14663
14664         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14665         (ch_base::copy_headers): ...here.
14666
14667 2015-07-02  Richard Biener  <rguenther@suse.de>
14668
14669         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14670         * fold-const.c (get_pointer_modulus_and_residue): Remove.
14671         (fold_binary_loc): Implement (T)ptr & CST in terms of
14672         get_pointer_alignment_1.
14673         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14674         Make sure to build the alignment test on a SSA name without
14675         final alignment info valid only after the prologue.
14676
14677 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
14678
14679         * config/cris/cris.md ("epilogue"): Remove condition.
14680         ("prologue"): Ditto.
14681
14682 2015-07-02  Richard Biener  <rguenther@suse.de>
14683
14684         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14685         parameter to record a condition that is false.
14686         (record_conditions): When recording an extra NE_EXPR that is
14687         true also record a EQ_EXPR that is false.
14688
14689 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
14690
14691         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14692         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14693         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
14694         (set_iv, find_interesting_uses_address, add_candidate_1): New
14695         argument to alloc_iv.
14696         (find_interesting_uses_op, find_interesting_uses_cond): Don't
14697         duplicate struct iv.
14698         (free_loop_data): Don't free struct iv explicitly.
14699         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14700
14701 2015-07-01  DJ Delorie  <dj@redhat.com>
14702
14703         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14704         (LIB_SPEC): Add.
14705         (SUPPORTS_DISCRIMINATOR): Define.
14706
14707 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14708
14709         PR bootstrap/66685
14710         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14711         there are no CALLs in the same pattern.
14712
14713 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14714
14715         PR rtl-optimization/61047
14716         * rtlanal.c (get_initial_register_offset): New function.
14717         (rtx_addr_can_trap_p_1): Check offsets of stack references.
14718
14719 2015-07-01  Richard Biener  <rguenther@suse.de>
14720
14721         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14722         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14723         ~X CMP C -> X CMP' ~C to ...
14724         * match.pd: ... patterns here.
14725
14726 2015-07-01  Nick Clifton  <nickc@redhat.com>
14727
14728         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14729         a 16-bit value into a 20-bit memory slot.
14730
14731 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14732
14733         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14734         "aarch64_tiny", "aarch64_small", "aarch64_large",
14735         "aarch64_little_endian", "aarch64_big_endian".
14736
14737 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14738
14739         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14740         Document "aarch64_small_fpic".
14741
14742 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14743
14744         * configure.ac: Add check for aarch64 assembler -fpic relocation
14745         modifier support.
14746         * configure: Regenerate.
14747         * config.in: Regenerate.
14748         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14749         to -fPIC if not support of -fpic relocation modifier in assembler.
14750
14751 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14752
14753         PR bootstrap/66685
14754         * rtl.c (classify_insn): Handle returns in PARALLELs.
14755
14756 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
14757
14758         PR middle-end/66633
14759         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14760         to true if the function is nested and if not optimizing.
14761         (convert_local_omp_clauses): Initialize need_frame to true if the
14762         function contains nested functions and if not optimizing.
14763
14764 2015-07-01  Richard Biener  <rguenther@suse.de>
14765
14766         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14767         (X & Y) ^ Y -> ~X & Y transforms to ...
14768         * match.pd: ... here.
14769
14770 2015-07-01  Richard Biener <rguenther@suse.de>
14771
14772         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14773         of converts to avoid uninteresting noise from the conversion
14774         simplifying patterns.
14775
14776 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
14777
14778         * config/c6x/c6x.c (try_rename_operands): Do not depend on
14779         gcc_assert evaluating its argument for side-effect.
14780
14781 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14782
14783         PR target/64833
14784         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14785         flag_pic is set.
14786
14787 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14788
14789         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14790         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14791         (hash_scc): Add this_ref_p and ref_p parameters and pass them
14792         to the inner DFS walk.
14793
14794 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14795
14796         * target-insns.def (jump): New targetm instruction pattern.
14797         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14798         instead of gen_jump.
14799         (fix_up_crossing_landing_pad): Likewise.
14800         (add_labels_and_missing_jumps): Likewise.
14801         (fix_crossing_conditional_branches): Likewise.
14802         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14803         (force_nonfallthru_and_redirect): Likewise.
14804         * cse.c (cse_insn): Likewise.
14805         * expmed.c (expand_divmod): Likewise.
14806         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14807         * haifa-sched.c (init_before_recovery): Likewise.
14808         (sched_create_recovery_edges): Likewise.
14809         * ifcvt.c (find_cond_trap): Likewise.
14810         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14811         (expand_float, expand_fix): Likewise.
14812         * stmt.c (emit_jump): Likewise.
14813
14814 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14815
14816         * defaults.h (HAVE_load_multiple, gen_load_multiple)
14817         (HAVE_store_multiple, gen_store_multiple): Delete.
14818         * target-insns.def (load_multiple, store_multiple): New targetm
14819         instruction patterns.
14820         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14821         of HAVE_*/gen_* interface.
14822
14823 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14824
14825         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14826         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14827         (gen_mem_signal_fence): Delete.
14828         * target-insns.def (mem_signal_fence, mem_thread_fence)
14829         (memory_barrier): New targetm instruction patterns.
14830         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14831         interface.
14832         (expand_mem_signal_fence): Likewise.
14833
14834 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14835
14836         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14837         * target-insns.def (epilogue, prologue, sibcall_prologue): New
14838         targetm instruction patterns.
14839         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14840         interface.
14841         * calls.c (expand_call): Likewise.
14842         * cfgrtl.c (cfg_layout_finalize): Likewise.
14843         * df-scan.c (df_get_entry_block_def_set): Likewise.
14844         (df_get_exit_block_use_set): Likewise.
14845         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14846         * final.c (final_start_function): Likewise.
14847         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14848         (reposition_prologue_and_epilogue_notes): Likewise.
14849         * reorg.c (find_end_label): Likewise.
14850         * toplev.c (process_options): Likewise.
14851
14852 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
14853
14854         * typed-splay-tree.h: New file.
14855
14856 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
14857
14858         PR debug/66691
14859         * lra-int.h (lra_substitute_pseudo): Add a parameter.
14860         (lra_substitute_pseudo_within_insn): Ditto.
14861         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
14862         of constant.
14863         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
14864         to lra_substitute_pseudo.
14865         * lra-lives.c (process_bb_lives): Add an argument to
14866         lra_substitute_pseudo_within_insn call.
14867         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14868         argument to lra_substitute_pseudo and
14869         lra_substitute_pseudo_within_insn calls.
14870         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14871
14872 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14873
14874         * configure: Regenerated.
14875
14876 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14877
14878         * config.gcc: Support i[34567]86-*-elfiamcu target.
14879         * config/i386/iamcu.h: New.
14880         * config/i386/i386.opt: Add -miamcu.
14881         * doc/invoke.texi: Document -miamcu.
14882         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
14883         off x87/MMX/SSE/AVX codegen for -miamcu.
14884         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14885         __iamcu/__iamcu__ for -miamcu.
14886         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14887         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14888         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14889         * config/i386/i386.c (ix86_option_override_internal): Ignore and
14890         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
14891         MCU by default.  Default long double to 64-bit for Intel MCU.
14892         Turn on -freg-struct-return for Intel MCU.  Issue an error when
14893         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14894         AVX is turned on.
14895         (function_arg_advance_32): Pass value whose size is no larger
14896         than 8 bytes in registers for Intel MCU.
14897         (function_arg_32): Likewise.
14898         (ix86_return_in_memory): Return value whose size is no larger
14899         than 8 bytes in registers for Intel MCU.
14900         (iamcu_alignment): New function.
14901         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14902         true.
14903         (ix86_local_alignment): Don't increase alignment for Intel MCU.
14904         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14905         true.
14906
14907 2015-06-30  Marek Polacek  <polacek@redhat.com>
14908
14909         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
14910         both operands of the resulting expression.
14911
14912         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
14913         the final expression with the operand's type and then convert
14914         it to the type of the expression.
14915
14916 2015-06-30  Richard Biener  <rguenther@suse.de>
14917
14918         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14919         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14920         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14921         * match.pd: ... to patterns here.
14922
14923 2015-06-30  Richard Biener  <rguenther@suse.de>
14924
14925         PR tree-optimization/66704
14926         * tree-vect-data-refs.c (vect_setup_realignment): Use
14927         make_ssa_name for non-SSA name source.
14928
14929 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14930
14931         PR middle-end/66702
14932         * omp-low.c (simd_clone_adjust): Handle addressable linear
14933         or uniform parameters or non-gimple type uniform parameters.
14934
14935 2015-06-30  Richard Biener  <rguenther@suse.de>
14936
14937         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14938         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14939         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14940         * match.pd: ... here.
14941         Add a few cases of A - B -> A + (-B) when B "easily" negates.
14942         Move (x & y) | x -> x and friends before
14943         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14944
14945 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14946
14947         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14948         -mfix-ut699 is not specified.
14949         (leon3_load): Rename into...
14950         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
14951         is specified.
14952
14953 2015-06-30  Marek Polacek  <polacek@redhat.com>
14954
14955         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
14956         * match.pd: ... here.
14957
14958 2015-06-30  Richard Biener  <rguenther@suse.de>
14959
14960         * target-insns.def (canonicalize_funcptr_for_compare): Add.
14961         * fold-const.c (build_range_check): Replace uses of
14962         HAVE_canonicalize_funcptr_for_compare.
14963         (fold_widened_comparison): Likewise.
14964         (fold_sign_changed_comparison): Likewise.
14965         * dojump.c: Include "target.h".
14966         (do_compare_and_jump): Replace uses of
14967         HAVE_canonicalize_funcptr_for_compare and
14968         gen_canonicalize_funcptr_for_compare.
14969         * expr.c (do_store_flag): Likewise.
14970
14971 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14972
14973         PR tree-optimization/66652
14974         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
14975         max_loop_iterations to determine if nit + 1 overflows.
14976
14977 2015-06-30  Richard Biener  <rguenther@suse.de>
14978
14979         * tree-vrp.c (register_edge_assert_for_2): Also register
14980         asserts for dominating conversion results.
14981
14982 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
14983
14984         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
14985         field in struct iv.
14986
14987 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
14988
14989         PR target/66509
14990         * configure.ac: Fix filds and fildq test for 64-bit.
14991         * configure: Regenerated.
14992
14993 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
14994
14995         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
14996         (nvptx_reorg): Here.  Keep the non-subreg pieces.
14997
14998 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
14999
15000         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15001         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15002
15003 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
15004
15005         * config/i386/i386.md (*jcc_1): Use %! in asm template.
15006         Set attribute "length_nobnd" instead of "length".
15007         (*jcc_2): Ditto.
15008         (jump): Ditto.
15009         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15010
15011 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
15012
15013         * config/nios2/nios2.c (nios2_delegitimize_address): Make
15014         assert less restrictive.
15015
15016 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15017
15018         PR fortran/66605
15019         * cgraphunit.c (cgraph_node::finalize_function): Do not call
15020         do_warn_unused_parameter.
15021         * function.c (do_warn_unused_parameter): Move from here.
15022         * function.h (do_warn_unused_parameter): Do not declare.
15023
15024 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15025
15026         PR target/65697
15027         * gcc.target/arm/armv-sync-comp-swap.c: New.
15028         * gcc.target/arm/armv-sync-op-acquire.c: New.
15029         * gcc.target/arm/armv-sync-op-full.c: New.
15030         * gcc.target/arm/armv-sync-op-release.c: New.
15031
15032 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15033
15034         PR target/65697
15035         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15036         initial acquire barrier with final barrier.
15037
15038 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15039
15040         PR target/65697
15041         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15042         initial acquire barrier with final barrier.
15043
15044 2015-06-29  Richard Henderson  <rth@redhat.com>
15045
15046         * config/i386/constraints.md (Bf): New constraint.
15047         * config/i386/i386-c.c (ix86_target_macros): Define
15048         __GCC_ASM_FLAG_OUTPUTS__.
15049         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15050         as flags outputs.
15051         * doc/extend.texi (FlagOutputOperands): Document them.
15052
15053 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
15054
15055         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15056         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15057         unspec name.
15058         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15059         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15060         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15061         (aarch64_symbol_context): Ditto.
15062         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15063         and use new pattern name.
15064         (aarch64_expand_mov_immediate): Ditto.
15065         (aarch64_print_operand): Ditto.
15066         (aarch64_classify_tls_symbol): Ditto.
15067
15068 2015-06-29  Marek Polacek  <polacek@redhat.com>
15069             Marc Glisse  <marc.glisse@inria.fr>
15070
15071         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15072         * match.pd: ... pattern here.
15073
15074 2015-06-29  Tom de Vries  <tom@codesourcery.com>
15075
15076         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15077         function structure.
15078
15079 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15080
15081         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15082         feature description, split out the native option, add a link to
15083         the feature documentation, rearrange and slightly rewrite text.
15084         (Aarch64 options, -mcpu): Likewise.
15085         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
15086         +rdma implies Adv. SIMD.
15087
15088 2015-06-29  Marek Polacek  <polacek@redhat.com>
15089
15090         PR c/66322
15091         * function.c (stack_protect_epilogue): Remove a cast to int.
15092         * doc/invoke.texi: Update -Wswitch-bool description.
15093
15094 2015-06-29  Richard Biener  <rguenther@suse.de>
15095
15096         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15097         * fold-const.c (fold_binary_loc): Move &A - &B simplification
15098         via ptr_difference_const ...
15099         * match.pd: ... here.
15100         When matching (X ^ Y) == Y also match with swapped operands.
15101
15102 2015-06-29  Richard Biener  <rguenther@suse.de>
15103
15104         * lto-streamer.h (LTO_major_version): Bump to 5.
15105
15106 2015-06-29  Richard Biener  <rguenther@suse.de>
15107
15108         PR tree-optimization/66677
15109         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15110         STMT_VINFO_VEC_STMT clobbering less strict.
15111
15112 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
15113
15114         PR middle-end/64130
15115         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15116         division, compute max and min when value ranges for dividend and
15117         divisor are available.
15118
15119 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
15120             Sandra Loosemore <sandra@codesourcery.com>
15121
15122         * regrename.h (regrename_do_replace): Change to return bool.
15123         * regrename.c (rename_chains): Check return value of
15124         regname_do_replace.
15125         (regrename_do_replace): Re-validate the modified insns and
15126         return bool status.
15127         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15128         Update to match rename_chains changes.
15129         * config/c6x/c6x.c (try_rename_operands): Assert that
15130         regrename_do_replace returns true.
15131
15132 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
15133
15134         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15135         operand 2 here.  Use copy_addr_to_reg to copy non-index
15136         register operand 2 to a temporary.
15137         (<mode>_stx): Ditto for operand 1.
15138         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15139         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15140         (ix86_store_bounds): Ditto.
15141
15142 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
15143
15144         * print-tree.c (print_node) [TREE_VEC]: Print its length.
15145
15146 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
15147
15148         * gimple.c (gimple_call_set_fndecl): Remove.
15149         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15150         build1_loc directly instead of build_fold_addr_expr_loc.
15151
15152 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15153
15154         * hash-map.h (hash_map::traverse): Use the definition of the
15155         Key typedef rather than the typedef itself.
15156
15157 2015-06-26  Martin Jambor  <mjambor@suse.cz>
15158
15159         PR debug/66301
15160         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15161         NULL instead of calling dump_enabled_p.
15162
15163 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15164
15165         * config/aarch64/aarch64.opt: (override): New.
15166         * doc/invoke.texi (override): Document.
15167         * config/aarch64/aarch64.c (aarch64_flag_desc): New
15168         (aarch64_fusible_pairs): Likewise.
15169         (aarch64_tuning_flags): Likewise.
15170         (aarch64_tuning_override_function): Likewise.
15171         (aarch64_tuning_override_functions): Likewise.
15172         (aarch64_parse_one_option_token): Likewise.
15173         (aarch64_parse_boolean_options): Likewise.
15174         (aarch64_parse_fuse_string): Likewise.
15175         (aarch64_parse_tune_string): Likewise.
15176         (aarch64_parse_one_override_token): Likewise.
15177         (aarch64_parse_override_string): Likewise.
15178         (aarch64_override_options): Parse the -override string if it
15179         is present.
15180
15181 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15182
15183         * config/aarch64/aarch64-protos.h (tune_params): Remove
15184         const from members.
15185         (aarch64_tune_params): Remove const, change to no longer be
15186         a pointer.
15187         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15188         change to no longer be a pointer, initialize to generic_tunings.
15189         (aarch64_min_divisions_for_recip_mul): Change dereference of
15190         aarch64_tune_params to member access.
15191         (aarch64_reassociation_width): Likewise.
15192         (aarch64_rtx_mult_cost): Likewise.
15193         (aarch64_address_cost): Likewise.
15194         (aarch64_branch_cost): Likewise.
15195         (aarch64_rtx_costs): Likewise.
15196         (aarch64_register_move_cost): Likewise.
15197         (aarch64_memory_move_cost): Likewise.
15198         (aarch64_sched_issue_rate): Likewise.
15199         (aarch64_builtin_vectorization_cost): Likewise.
15200         (aarch64_override_options): Take a copy of the selected tuning
15201         struct in to aarch64_tune_params, rather than just setting
15202         a pointer, change dereferences of aarch64_tune_params to member
15203         accesses.
15204         (aarch64_override_options_after_change): Change dereferences of
15205         aarch64_tune_params to member access.
15206         (aarch64_macro_fusion_p): Likewise.
15207         (aarch_macro_fusion_pair_p): Likewise.
15208         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15209
15210 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15211
15212         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15213         (aarch64_tune_flags): Likewise.
15214         (AARCH64_TUNE_FMA_STEERING): Likewise.
15215         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15216         to AARCH64_FL_USE_FMA_STEERING_PASS.
15217         (cortex-a57.cortex-a53): Likewise.
15218         (cortex-a72): Use cortexa72_tunings.
15219         (cortex-a72.cortex-a53): Likewise.
15220         (exynos-m1): Likewise.
15221         * config/aarch64/aarch64-protos.h (tune_params): Add
15222         a field: extra_tuning_flags.
15223         * config/aarch64/aarch64-tuning-flags.def: New.
15224         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15225         (aarch64_extra_tuning_flags): Likewise.
15226         (aarch64_tune_params): Declare here.
15227         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15228         (cortexa53_tunings): Likewise.
15229         (cortexa57_tunings): Likewise.
15230         (thunderx_tunings): Likewise.
15231         (xgene1_tunings): Likewise.
15232         (cortexa72_tunings): New.
15233         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15234          (gate): Check against aarch64_tune_params.
15235         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15236         aarch64-protos.h.
15237
15238 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15239
15240         * config/aarch64/aarch64-fusion-pairs.def: New.
15241         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15242         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15243         aarch64_fusion_pairs.
15244         (AARCH64_FUSE_MOV_MOVK): Likewise.
15245         (AARCH64_FUSE_ADRP_ADD): Likewise.
15246         (AARCH64_FUSE_MOVK_MOVK): Likewise.
15247         (AARCH64_FUSE_ADRP_LDR): Likewise.
15248         (AARCH64_FUSE_CMP_BRANCH): Likewise.
15249
15250 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15251
15252         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15253         SYMBOL_SMALL_GOT_28K.
15254         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
15255         relocation modifiers.
15256         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
15257         (ldr_got_small_28k_<mode>): New.
15258         (ldr_got_small_28k_sidi): New.
15259         * config/aarch64/iterators.md (got_modifier): New mode iterator.
15260         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
15261         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15262         SYMBOL_SMALL_GOT_28K.
15263         (aarch64_rtx_costs): Add costs for new instruction sequences.
15264         (initialize_aarch64_code_model): Initialize new model.
15265         (aarch64_classify_symbol): Recognize new model and new symbol classification.
15266         (aarch64_asm_preferred_eh_data_format): Support new model.
15267         (aarch64_load_symref_appropriately): Generate new instruction
15268         sequences for -fpic.
15269         (TARGET_USE_PSEUDO_PIC_REG): New definition.
15270         (aarch64_use_pseudo_pic_reg): New function.
15271
15272 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15273
15274         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15275         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15276         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15277         (aarch64_expand_mov_immediate): Ditto.
15278         (aarch64_print_operand): Ditto.
15279         (aarch64_classify_symbol): Ditto.
15280
15281 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
15282
15283         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15284
15285 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
15286
15287         PR bootstrap/66638
15288         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15289         assertion failed.  Remove assertion itself.
15290
15291 2015-06-26  Richard Biener  <rguenther@suse.de>
15292
15293         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15294         and -A CMP CST -> A CMP -CST which is redundant with a pattern
15295         in match.pd.
15296         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15297         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15298         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15299         * match.pd: ... patterns here.
15300
15301 2015-06-26  Marek Polacek  <polacek@redhat.com>
15302
15303         * match.pd ((x | y) & ~(x & y) -> x ^ y,
15304         (x | y) & (~x ^ y) -> x & y): New patterns.
15305
15306 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15307
15308         * rtl.h (emit): Add an optional boolean parameter to control
15309         whether barriers are emitted.
15310         * emit-rtl.c (emit): Likewise.
15311         * gensupport.c (get_emit_function): Return null rather than "emit".
15312         * genemit.c (gen_emit_seq): Handle the null return value.
15313         Don't emit barriers after the final instruction in the sequence.
15314         * gentarget-def.c (main): Don't emit barriers after the instruction.
15315
15316 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15317
15318         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15319         TARGET_UNIFIED_ASM.
15320
15321 2015-06-26  Richard Biener  <rguenther@suse.de>
15322
15323         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15324
15325 2015-06-26  Richard Biener  <rguenther@suse.de>
15326
15327         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15328         irrespective on whether the inner operation has a single use
15329         of both off are constant.
15330
15331 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
15332             Segher Boessenkool  <segher@kernel.crashing.org>
15333
15334         PR target/66412
15335         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15336         before doing PUT_MODE or PUT_CODE on operands to avoid
15337         in-place RTX modification.
15338
15339 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15340
15341         * gentarget-def.c (def_target_insn): Cast return of strtol to
15342         unsigned int.
15343
15344 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15345
15346         * gimple.h (gimple_call_set_fn): Move inline function.
15347         * gimple.c (gimple_call_set_fn): Relocate here.
15348
15349 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
15350
15351         PR target/65979
15352         PR target/66611
15353         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15354         the replacement insn will work.
15355
15356 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15357
15358         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15359         by default.
15360
15361 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15362
15363         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15364         * cgraph.h: Include ipa-ref.h and plugin-api.h.
15365         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15366         (symtab_node::address_can_be_compared_p): Move function.
15367         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15368         definition here.
15369         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15370         * auto-profile.c: Likewise.
15371         * bb-reorder.c: Likewise.
15372         * builtins.c: Likewise.
15373         * calls.c: Likewise.
15374         * cfgexpand.c: Likewise.
15375         * cgraphbuild.c: Likewise.
15376         * cgraphclones.c: Likewise.
15377         * cgraphunit.c: Likewise.
15378         * combine.c: Likewise.
15379         * coverage.c: Likewise.
15380         * data-streamer-in.c: Likewise.
15381         * data-streamer-out.c: Likewise.
15382         * data-streamer.c: Likewise.
15383         * dbxout.c: Likewise.
15384         * dwarf2out.c: Likewise.
15385         * except.c: Likewise.
15386         * expr.c: Likewise.
15387         * final.c: Likewise.
15388         * fold-const.c: Likewise.
15389         * ggc-page.c: Likewise.
15390         * gimple-fold.c: Likewise.
15391         * gimple-iterator.c: Likewise.
15392         * gimple-pretty-print.c: Likewise.
15393         * gimple-streamer-in.c: Likewise.
15394         * gimple-streamer-out.c: Likewise.
15395         * gimple.c: Likewise.
15396         * gimplify.c: Likewise.
15397         * ipa-chkp.c: Likewise.
15398         * ipa-comdats.c: Likewise.
15399         * ipa-cp.c: Likewise.
15400         * ipa-devirt.c: Likewise.
15401         * ipa-icf-gimple.c: Likewise.
15402         * ipa-icf.c: Likewise.
15403         * ipa-inline-analysis.c: Likewise.
15404         * ipa-inline-transform.c: Likewise.
15405         * ipa-inline.c: Likewise.
15406         * ipa-polymorphic-call.c: Likewise.
15407         * ipa-profile.c: Likewise.
15408         * ipa-prop.c: Likewise.
15409         * ipa-pure-const.c: Likewise.
15410         * ipa-ref.c: Likewise.
15411         * ipa-reference.c: Likewise.
15412         * ipa-split.c: Likewise.
15413         * ipa-utils.c: Likewise.
15414         * ipa-visibility.c: Likewise.
15415         * ipa.c: Likewise.
15416         * langhooks.c: Likewise.
15417         * lto-cgraph.c: Likewise.
15418         * lto-compress.c: Likewise.
15419         * lto-opts.c: Likewise.
15420         * lto-section-in.c: Likewise.
15421         * lto-section-out.c: Likewise.
15422         * lto-streamer-in.c: Likewise.
15423         * lto-streamer-out.c: Likewise.
15424         * lto-streamer.c: Likewise.
15425         * omp-low.c: Likewise.
15426         * opts-global.c: Likewise.
15427         * passes.c: Likewise.
15428         * predict.c: Likewise.
15429         * print-tree.c: Likewise.
15430         * profile.c: Likewise.
15431         * ree.c: Likewise.
15432         * sanopt.c: Likewise.
15433         * stor-layout.c: Likewise.
15434         * symtab.c: Likewise.
15435         * toplev.c: Likewise.
15436         * trans-mem.c: Likewise.
15437         * tree-cfg.c: Likewise.
15438         * tree-chkp.c: Likewise.
15439         * tree-eh.c: Likewise.
15440         * tree-emutls.c: Likewise.
15441         * tree-inline.c: Likewise.
15442         * tree-nested.c: Likewise.
15443         * tree-parloops.c: Likewise.
15444         * tree-pretty-print.c: Likewise.
15445         * tree-profile.c: Likewise.
15446         * tree-sra.c: Likewise.
15447         * tree-ssa-alias.c: Likewise.
15448         * tree-ssa-live.c: Likewise.
15449         * tree-ssa-loop-ivcanon.c: Likewise.
15450         * tree-ssa-loop-ivopts.c: Likewise.
15451         * tree-ssa-pre.c: Likewise.
15452         * tree-ssa-sccvn.c: Likewise.
15453         * tree-ssa-strlen.c: Likewise.
15454         * tree-ssa-structalias.c: Likewise.
15455         * tree-streamer-in.c: Likewise.
15456         * tree-streamer-out.c: Likewise.
15457         * tree-streamer.c: Likewise.
15458         * tree-switch-conversion.c: Likewise.
15459         * tree-tailcall.c: Likewise.
15460         * tree-vect-data-refs.c: Likewise.
15461         * tree-vect-stmts.c: Likewise.
15462         * tree-vectorizer.c: Likewise.
15463         * tree.c: Likewise.
15464         * tsan.c: Likewise.
15465         * ubsan.c: Likewise.
15466         * value-prof.c: Likewise.
15467         * varasm.c: Likewise.
15468         * varpool.c: Likewise.
15469         * config/arm/arm.c: Likewise.
15470         * config/bfin/bfin.c: Likewise.
15471         * config/c6x/c6x.c: Likewise.
15472         * config/cris/cris.c: Likewise.
15473         * config/darwin-c.c: Likewise.
15474         * config/darwin.c: Likewise.
15475         * config/i386/i386.c: Likewise.
15476         * config/i386/winnt.c: Likewise.
15477         * config/microblaze/microblaze.c: Likewise.
15478         * config/mips/mips.c: Likewise.
15479         * config/rs6000/rs6000.c: Likewise.
15480         * config/rx/rx.c: Likewise.
15481         * config/s390/s390.c: Likewise.
15482         * config/tilegx/mul-tables.c: Likewise.
15483
15484 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15485
15486         * config/aarch64/aarch64.c, config/alpha/alpha.c,
15487         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15488         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15489         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15490         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15491         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15492         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15493         config/microblaze/microblaze.c, config/mips/mips.c,
15494         config/mmix/mmix.c, config/mn10300/mn10300.c,
15495         config/moxie/moxie.c, config/msp430/msp430.c,
15496         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15497         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15498         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15499         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15500         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15501         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15502         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15503         target-def.h include.
15504         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
15505
15506 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15507
15508         * Makefile.in (TARGET_DEF): Add target-insns.def.
15509         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15510         (build/gentarget-def.o): New rule.
15511         (genprogrtl): Add target-def.
15512         * target-insns.def, gentarget-def.c: New files.
15513         * target.def: Add targetm.have_* and targetm.gen_* hooks,
15514         based on the contents of target-insns.def.
15515         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15516         (HAVE_return, gen_return): Delete.
15517         * target-def.h: Include insn-target-def.h.
15518         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15519         instead of direct calls.  Rely on them to do the appropriate assertions.
15520         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
15521         (convert_jumps_to_returns): Use targetm interface instead of
15522         direct calls.
15523         (thread_prologue_and_epilogue_insns): Likewise.
15524         * reorg.c (find_end_label, dbr_schedule): Likewise.
15525         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15526         * shrink-wrap.c (convert_to_simple_return): Likewise.
15527         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15528
15529 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15530
15531         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15532         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15533         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15534         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15535         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15536         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15537         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15538         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15539         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15540         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15541         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15542         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15543         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15544         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15545         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15546         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15547         includes to end.
15548
15549 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15550
15551         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15552         (unbounded_int_hashmap_traits::key_type): Likewise.
15553         * hash-map.h (hash_map): Get the key type from the traits.
15554         * hash-traits.h (default_hash_traits): By default, inherit from the
15555         template parameter.
15556         * alias.c (alias_set_traits): Delete.
15557         (alias_set_entry_d::children): Use alias_set_hash as the first
15558         template parameter.
15559         (record_alias_subset): Update accordingly.
15560         * except.c (tree_hash_traits): Delete.
15561         (type_to_runtime_map): Use tree_hash as the first template parameter.
15562         (init_eh): Update accordingly.
15563         * genmatch.c (capture_id_map_hasher): Delete.
15564         (cid_map_t): Use nofree_string_hash as first template parameter.
15565         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15566         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15567         Use symbol_compare_hash as the first template parameter in
15568         subdivide_hash_map.
15569         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15570         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15571         template parameter.
15572         * passes.c (pass_registry_hasher): Delete.
15573         (name_to_pass_map): Use nofree_string_hash as the first template
15574         parameter.
15575         (register_pass_name): Update accordingly.
15576         * sanopt.c (sanopt_tree_map_traits): Delete.
15577         (sanopt_tree_triplet_map_traits): Delete.
15578         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15579         template parameter.
15580         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15581         the first template parameter.
15582         * sese.c (rename_map_hasher): Delete.
15583         (rename_map_type): Use tree_ssa_name_hash as the first template
15584         parameter.
15585         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15586         (function_summary::m_map): Use map_hash as the first template
15587         parameter.
15588         (function_summary::release): Update accordingly.
15589         * tree-if-conv.c (phi_args_hash_traits): Delete.
15590         (predicate_scalar_phi): Use tree_operand_hash as the first template
15591         parameter to phi_arg_map.
15592         * tree-inline.h (dependence_hasher): Delete.
15593         (copy_body_data::dependence_map): Use dependence_hash as the first
15594         template parameter.
15595         * tree-inline.c (remap_dependence_clique): Update accordingly.
15596         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15597         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15598         parameter.
15599         (addr_stridxptr): Update accordingly.
15600         * value-prof.c (profile_id_traits): Delete.
15601         (cgraph_node_map): Use profile_id_hash as the first template
15602         parameter.
15603         (init_node_map): Update accordingly.
15604         * config/alpha/alpha.c (string_traits): Delete.
15605         (machine_function::links): Use nofree_string_hash as the first
15606         template parameter.
15607         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15608         * config/m32c/m32c.c (pragma_traits): Delete.
15609         (pragma_htab): Use nofree_string_hash as the first template parameter.
15610         (m32c_note_pragma_address): Update accordingly.
15611         * config/mep/mep.c (pragma_traits): Delete.
15612         (pragma_htab): Use nofree_string_hash as the first template parameter.
15613         (mep_note_pragma_flag): Update accordingly.
15614         * config/mips/mips.c (mips16_flip_traits): Delete.
15615         (mflip_mips16_htab): Use nofree_string_hash as the first template
15616         parameter.
15617         (mflip_mips16_use_mips16_p): Update accordingly.
15618         (local_alias_traits): Delete.
15619         (mips16_local_aliases): Use nofree_string_hash as the first template
15620         parameter.
15621         (mips16_local_alias): Update accordingly.
15622
15623 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15624
15625         * hash-map-traits.h (default_hashmap_traits): Delete.
15626
15627 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15628
15629         * hash-map-traits.h (unbounded_hashmap_traits): New class.
15630         (unbounded_int_hashmap_traits): Likewise.
15631         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15632
15633 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15634
15635         * ipa-icf.h (symbol_compare_hash): New class.
15636         (symbol_compare_hashmap_traits): Use it.
15637         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15638         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15639         (mem_alloc_description::reverse_mem_map_t): Remove redundant
15640         default_hashmap_traits.
15641         * sanopt.c (sanopt_tree_triplet_hash): New class.
15642         (sanopt_tree_triplet_map_traits): Use it.
15643
15644 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15645
15646         * gengtype-parse.c (require_template_declaration): Allow '+' in
15647         template parameters.  Consolidate cases.
15648         * hash-traits.h (int_hash): New class.
15649         * alias.c (alias_set_hash): New structure.
15650         (alias_set_traits): Use it.
15651         * symbol-summary.h (function_summary::map_hash): New class.
15652         (function_summary::summary_hashmap_traits): Use it.
15653         * tree-inline.h (dependence_hash): New class.
15654         (dependence_hasher): Use it.
15655         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15656         * value-prof.c (profile_id_hash): New class.
15657         (profile_id_traits): Use it.
15658
15659 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15660
15661         * config/mips/mips.c (mips16_flip_traits): Use it.
15662         (local_alias_traits, mips16_local_aliases): Convert from a map of
15663         rtxes to a map of symbol names.
15664         (mips16_local_alias): Update accordingly.
15665
15666 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15667
15668         * hash-traits.h (string_hash, nofree_string_hash): New classes.
15669         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15670         * passes.c (pass_registry_hasher): Likewise.
15671         * config/alpha/alpha.c (string_traits): Likewise.
15672         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15673         * config/m32c/m32c.c (pragma_traits): Likewise.
15674         * config/mep/mep.c (pragma_traits): Likewise.
15675
15676 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15677
15678         * tree-hash-traits.h (tree_hash): New class.
15679         * except.c: Include tree-hash-traits.h.
15680         (tree_hash_traits): Use tree_hash.
15681
15682 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15683
15684         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15685         * sese.c: Include tree-hash-traits.h.
15686         (rename_map_hasher): Use tree_ssa_name_hasher.
15687
15688 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15689
15690         * tree-hash-traits.h (tree_decl_hash): New class.
15691         * tree-ssa-strlen.c: Include tree-hash-traits.h.
15692         (stridxlist_hash_traits): Use tree_decl_hash.
15693
15694 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15695
15696         * tree-hash-traits.h: New file.
15697         (tree_operand_hash): New class.
15698         * sanopt.c: Include tree-hash-traits.h.
15699         (sanopt_tree_map_traits): Use tree_operand_hash.
15700         * tree-if-conv.c: Include tree-hash-traits.h.
15701         (phi_args_hash_traits): Use tree_operand_hash.
15702         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15703         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15704
15705 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15706
15707         * hash-map-traits.h: Include hash-traits.h.
15708         (simple_hashmap_traits): New class.
15709         * mem-stats.h (hash_map): Change the default traits to
15710         simple_hashmap_traits<default_hash_traits<Key> >.
15711
15712 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15713
15714         * hash-table.h: Update comments.
15715
15716 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15717
15718         * hash-traits.h (default_hash_traits): New structure.
15719         * hash-set.h (default_hashset_traits): Delete.
15720         (hash_set): Use default_hash_traits<Key> instead of
15721         default_hashset_traits.  Delete hash_entry type and use Key directly.
15722         * ipa-devirt.c (pair_traits): Delete.
15723         (default_hash_traits <type_pair>): Override.
15724         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15725         (odr_types_equivalent_p, add_type_duplicate): Likewise.
15726
15727 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15728
15729         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15730
15731 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15732
15733         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15734         (has_is_empty, is_empty_helper): Delete.
15735         (has_mark_deleted, mark_deleted_helper): Delete.
15736         (has_mark_empty, mark_empty_helper): Delete.
15737         (hash_table::is_deleted): Call the Descriptor unconditionally.
15738         (hash_table::is_empty): Likewise.
15739         (hash_table::mark_deleted): Likewise.
15740         (hash_table::mark_empty): Likewise.
15741
15742 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15743
15744         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
15745         redundant typedefs and members.
15746         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
15747         redundant typedefs.
15748         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15749         * ipa-devirt.c (odr_name_hasher): Likewise.
15750         (polymorphic_call_target_hasher): Likewise.
15751         * ira-costs.c (cost_classes_hasher): Likewise.
15752         * statistics.c (stats_counter_hasher): Likewise.
15753         * trans-mem.c (log_entry_hasher): Likewise.
15754         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15755         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15756         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15757         * var-tracking.c (variable_hasher): Likewise.
15758         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15759         Remove redundant typedefs and members.
15760
15761 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15762
15763         * hash-traits.h (ggc_cache_hasher): Rename to...
15764         (ggc_cache_remove): ...this and remove typedefs.
15765         (ggc_cache_ptr_hash): New class.
15766         * hash-table.h: Update commentary.
15767         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15768         rather than ggc_cache_hasher.
15769         (const_wide_int_hasher, reg_attr_hasher): Likewise.
15770         (const_double_hasher, const_fixed_hasher): Likewise.
15771         * function.c (insn_cache_hasher): Likewise.
15772         * trans-mem.c (tm_wrapper_hasher): Likewise.
15773         * tree.h (tree_decl_map_cache_hasher): Likewise.
15774         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15775         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15776         * ubsan.c (tree_type_map_cache_hasher): Likewise.
15777         * varasm.c (tm_clone_hasher): Likewise.
15778         * config/i386/i386.c (dllimport_hasher): Likewise.
15779         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15780         (tree_hasher): Likewise.
15781
15782 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15783
15784         * hash-traits.h (ggc_hasher): Rename to...
15785         (ggc_remover): ...this and remove typedefs.
15786         (ggc_cache_hasher): Update accordingly.  Add typedefs.
15787         (ggc_ptr_hash): New class.
15788         * hash-table.h: Update comment.
15789         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15790         ggc_hasher.
15791         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15792         (tree_descriptor_hasher): Likewise.
15793         * cgraph.c (function_version_hasher): Likewise.
15794         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15795         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15796         (dw_loc_list_hasher, addr_hasher): Likewise.
15797         * function.h (used_type_hasher): Likewise.
15798         * function.c (temp_address_hasher): Likewise.
15799         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15800         * libfuncs.h (libfunc_hasher): Likewise.
15801         * lto-streamer.h (decl_state_hasher): Likewise.
15802         * optabs.c (libfunc_decl_hasher): Likewise.
15803         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15804         * varasm.c (section_hasher, object_block_hasher): Likewise.
15805         (const_rtx_desc_hasher): Likewise.
15806         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15807         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15808
15809 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15810
15811         * hash-traits.h (free_ptr_hash): New class.
15812         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15813         rather than typed_free_remove.  Remove redudant typedefs.
15814         (external_ref_hasher): Likewise.
15815         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15816         (ehspec_hasher): Likewise.
15817         * ggc-common.c (saving_hasher): Likewise.
15818         * gimplify.c (gimplify_hasher): Likewise.
15819         * haifa-sched.c (delay_i2_hasher): Likewise.
15820         * loop-invariant.c (invariant_expr_hasher): Likewise.
15821         * loop-iv.c (biv_entry_hasher): Likewise.
15822         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15823         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15824         * tree-cfg.c (locus_discrim_hasher): Likewise.
15825         * tree-eh.c (finally_tree_hasher): Likewise.
15826         * tree-into-ssa.c (var_info_hasher): Likewise.
15827         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15828         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15829         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15830         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15831         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15832         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15833         (shared_bitmap_hasher): Likewise.
15834         * tree-ssa-threadupdate.c (redirection_data): Likewise.
15835         * tree-vectorizer.h (peel_info_hasher): Likewise.
15836         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15837         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15838
15839 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15840
15841         * hash-table.h: Update comments.
15842         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15843         (nofree_ptr_hash): New class.
15844         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15845         than typed_noop_remove.  Remove redudant typedefs.
15846         * attribs.c (attribute_hasher): Likewise.
15847         * cfg.c (bb_copy_hasher): Likewise.
15848         * cselib.c (cselib_hasher): Likewise.
15849         * dse.c (invariant_group_base_hasher): Likewise.
15850         * dwarf2cfi.c (trace_info_hasher): Likewise.
15851         * dwarf2out.c (macinfo_entry_hasher): Likewise.
15852         (comdat_type_hasher, loc_list_hasher): Likewise.
15853         * gcse.c (pre_ldst_expr_hasher): Likewise.
15854         * genmatch.c (id_base): Likewise.
15855         * genrecog.c (test_pattern_hasher): Likewise.
15856         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15857         * haifa-sched.c (delay_i1_hasher): Likewise.
15858         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15859         * ipa-icf.h (congruence_class_group_hash): Likewise.
15860         * ipa-profile.c (histogram_hash): Likewise.
15861         * ira-color.c (allocno_hard_regs_hasher): Likewise.
15862         * lto-streamer.h (string_slot_hasher): Likewise.
15863         * lto-streamer.c (tree_entry_hasher): Likewise.
15864         * plugin.c (event_hasher): Likewise.
15865         * postreload-gcse.c (expr_hasher): Likewise.
15866         * store-motion.c (st_expr_hasher): Likewise.
15867         * tree-sra.c (uid_decl_hasher): Likewise.
15868         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15869         (ssa_name_var_hash): Likewise.
15870         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15871         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15872         * tree-ssa-pre.c (pre_expr_d): Likewise.
15873         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15874         * vtable-verify.h (registration_hasher): Likewise.
15875         * vtable-verify.c (vtbl_map_hasher): Likewise.
15876         * config/arm/arm.c (libcall_hasher): Likewise.
15877         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15878         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15879         * config/sol2.c (comdat_entry_hasher): Likewise.
15880         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15881         (print_fold_checksum, fold_checksum_tree): Likewise.
15882         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15883         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15884         (fold_build_call_array_loc): Likewise.
15885         * tree-ssa-ccp.c (gimple_htab): Likewise.
15886         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15887         rather than pointer_type.
15888
15889 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15890
15891         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15892         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15893
15894 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15895
15896         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15897         (ggc_hasher::ggc_mx): Likewise.
15898         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
15899         that duplicate ggc_hasher ones.
15900
15901 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15902
15903         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15904         (gt_cleare_cache): Check here for deleted and empty entries.
15905         Replace handle_cache_entry with a call to keep_cache_entry.
15906         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15907         (ggc_cache_hasher::keep_cache_entry): New function.
15908         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15909         (tm_wrapper_hasher::keep_cache_entry): New function.
15910         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15911         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15912         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15913         (type_cache_hasher::keep_cache_entry): New function.
15914         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15915         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15916         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15917         (tree_type_map_cache_hasher::keep_cache_entry): New function.
15918         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15919         (tm_clone_hasher::keep_cache_entry): New function.
15920         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15921         (dllimport_hasher::keep_cache_entry): New function.
15922
15923 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15924
15925         * hash-table.h: Include hash-traits.h.
15926         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15927         (ggc_cache_hasher): Move to...
15928         * hash-traits.h: ...this new file.
15929
15930 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15931
15932         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15933         struct cl_optimization.
15934         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15935         * tree.c (make_node_stat): Allocate cl_optimization struct.
15936         (copy_node_stat): Allocate and copy cl_optimization struct.
15937
15938 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15939
15940         * function.h (struct incoming_args): Move struct.
15941         (pass_by_reference, reference_callee_copied): Remove prototypes.
15942         * emit-rtl.h (struct incoming_args): Relocate struct here.
15943         * calls.h (pass_by_reference, reference_callee_copied): Relocate
15944         prototypes here.
15945         * function.c (pass_by_reference, reference_callee_copied): Move.
15946         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15947         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15948         * ipa-chkp.c: Include calls.h.
15949
15950 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
15951
15952         * alias.h (alias_set_type): Move typedef.
15953         * coretypes.h (alias_set_type): Relocate typedef here.
15954         * rtl.h: Don't include alias.h.
15955
15956 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15957
15958         * cgraph.h (cgraph_rtl_info): Move to rtl.h
15959         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
15960         and instance.
15961         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
15962         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
15963         doesn't exist.
15964         * calls.c: Include hard-reg-set.h before rtl.h.
15965         * ira.c: Likewise.
15966
15967 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
15968             Vladimir Makarov  <vmakarov@redhat.com>
15969
15970         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
15971         Add assert.
15972
15973 2015-06-25  Richard Biener  <rguenther@suse.de>
15974
15975         * fold-const.c (fold_binary_loc): Move simplification of
15976         (X <<>> C1) & C2 ...
15977         * match.pd: ... here.
15978
15979 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
15980
15981         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
15982
15983 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15984
15985         * match.pd: Add patterns for vec_conds between 1 and 0.
15986
15987 2015-06-25  Richard Biener  <rguenther@suse.de>
15988
15989         * tree-vect-stmts.c (vectorizable_conversion): Do not set
15990         STMT_VINFO_VEC_STMT for SLP.
15991         (vectorizable_store): Likewise.
15992         (vectorizable_load): Likewise.
15993         (vect_transform_stmt): Catch SLP vectorization clobbering
15994         STMT_VINFO_VEC_STMT.
15995
15996 2015-06-25  Richard Biener  <rguenther@suse.de>
15997
15998         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
15999         dumping.
16000         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16001         cleanup resulting dead code and parameters.
16002         (vect_transform_slp_perm_load): Adjust.
16003
16004 2015-06-25  Nick Clifton  <nickc@redhat.com>
16005
16006         * config/bfin/bfin.c (bfin_expand_prologue): Set
16007         current_function_static_stack_size if flag_stack_usage_info is set.
16008         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16009         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16010         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16011         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16012
16013 2015-06-25  Tom de Vries  <tom@codesourcery.com>
16014
16015         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16016         comment that the generated IV is unsigned.
16017
16018 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16019
16020         PR target/29693
16021         * config/arm/arm.c (arm_dbx_register_number): Return
16022         DWARF_FRAME_REGISTERS by default.
16023
16024 2015-06-25  Tom de Vries  <tom@codesourcery.com>
16025
16026         * dominance.c (calculate_dominance_info): Fix verify_dominators call
16027         argument.  Call verify_dominator when reusing dominator info.
16028
16029 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16030
16031         PR target/66563
16032         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16033         an additional element of the unspec vector.  Modify indices
16034         of operands.
16035         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16036         * config/sh/sh.c (prepare_move_operands): Pass incremented
16037         const_int to gen_GOTaddr2picreg.
16038         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16039
16040 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16041
16042         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16043         Condition on TARGET_FLOAT.
16044
16045 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16046
16047         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16048         and (no)crypto.
16049
16050 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
16051
16052         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16053
16054         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16055         aarch64_err_no_fpadvsimd.
16056
16057         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16058         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16059         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16060         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16061         Turn error into assert, test TARGET_FLOAT.
16062         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16063         TARGET_FLOAT.
16064
16065 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
16066
16067         PR debug/66482
16068         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16069
16070 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
16071
16072         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16073
16074 2015-06-24  Renlin Li <renlin.li@arm.com>
16075
16076         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16077         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16078
16079 2015-06-24  Richard Biener  <rguenther@suse.de>
16080
16081         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16082         (main): Likewise.
16083         (lower_opt_convert): Support lowering of conditional view_convert.
16084         (parser::parse_operation): Likewise.
16085         (parser::parse_for): Likewise.
16086
16087 2015-06-24  Renlin Li  <renlin.li@arm.com>
16088
16089         * varasm.c (emit_local): Use unsigned int for align variable.
16090
16091 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16092
16093         PR target/63408
16094         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16095         for negative numbers.
16096
16097 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16098
16099         PR rtl-optimization/66306
16100         * reload.c (find_reloads): Swap the match_dup info for
16101         commutative operands.
16102
16103 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16104
16105         * config/s390/vx-builtins.md
16106         ("vec_scatter_element<mode>_<non_vec_int>")
16107         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16108         attribute with bhfgq.
16109
16110 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16111
16112         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16113
16114 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16115
16116         * config/s390/s390-builtin-types.def: Add flag to indicate the
16117         options under which the function type is needed.
16118         * config/s390/s390-builtins.def: Add flag to indicate the options
16119         under which the builtin is enabled.
16120         * config/s390/s390-builtins.h: Add flags parameter to macro
16121         definitions.
16122         (bflags_for_builtin): New function.
16123         (flags_for_builtin): Renamed to ...
16124         (opflags_for_builtin): ... this.
16125         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16126         flags_for_builtin to bflags_for_builtin and
16127         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16128         * config/s390/s390.c: Add initialization of bflags_builtin and
16129         opflags_builtin arrays.
16130         Remove code for flags_builtin.
16131         (s390_init_builtins): Only create builtin function types if one of
16132         their flags is active.
16133         Only create builtins if all of their flags are active.
16134         (s390_expand_builtin): Rename flags_for_builtin to
16135         opflags_for_builtin.
16136
16137 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16138
16139         * config/s390/vecintrin.h: Remove internal builtins.
16140
16141 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16142
16143         * config/s390/s390.c (s390_secondary_reload): Fix check for
16144         GENERAL_REGS register class.
16145
16146 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16147
16148         * config/s390/s390.c (s390_support_vector_misalignment): Call
16149         default implementation for !TARGET_VX.
16150
16151 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16152
16153         * config/s390/s390.c (s390_legitimate_constant_p): Add
16154         TARGET_VX check.
16155
16156 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16157
16158         * config/s390/s390.c (s390_vector_abi): New variable definition.
16159         (s390_check_type_for_vector_abi): New function.
16160         (TARGET_ASM_FILE_END): New macro definition.
16161         (s390_asm_file_end): New function.
16162         (s390_function_arg): Call s390_check_type_for_vector_abi.
16163         (s390_gimplify_va_arg): Likewise.
16164         * configure: Regenerate.
16165         * configure.ac: Check for .gnu_attribute Binutils feature.
16166
16167 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
16168
16169         PR target/65803
16170         * config/bfin/bfin.c (hwloop_optimize): Initialize
16171         JUMP_LABEL for newly created jump.
16172
16173 2015-06-23  Tristan Gingold  <gingold@adacore.com>
16174
16175         * collect-utils.c (collect_wait): Unlink the response file here
16176         instead of...
16177         (do_wait): ...here.
16178         (utils_cleanup): ...and here.
16179
16180 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
16181
16182         * df-scan.c: Don't include target-def.h.
16183         * targhooks.c: Likewise.
16184         * config/arm/arm-c.c: Likewise.
16185         * config/i386/i386-c.c: Likewise.
16186         * config/nds32/nds32-cost.c: Likewise.
16187         * config/nds32/nds32-fp-as-gp.c: Likewise.
16188         * config/nds32/nds32-intrinsic.c: Likewise.
16189         * config/nds32/nds32-isr.c: Likewise.
16190         * config/nds32/nds32-md-auxiliary.c: Likewise.
16191         * config/nds32/nds32-memory-manipulation.c: Likewise.
16192         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16193         * config/nds32/nds32-predicates.c: Likewise.
16194
16195 2015-06-23  Richard Biener  <rguenther@suse.de>
16196
16197         PR tree-optimization/66636
16198         * tree-vect-stmts.c (vectorizable_store): Properly compute the
16199         def type for further defs for strided stores.
16200
16201 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
16202
16203         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16204         conditional selects.
16205         (setcc_int<mode>, setcc_float<mode>): Reformat.
16206
16207 2015-06-23  Marek Polacek  <polacek@redhat.com>
16208
16209         * match.pd ((x + y) - (x | y) -> x & y,
16210         (x + y) - (x & y) -> x | y): New patterns.
16211
16212 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
16213
16214         PR 65711
16215         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16216         '-dynamic-linker' within %{!shared: ...}.
16217
16218 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
16219
16220         PR target/66560
16221         * config/i386/predicates.md (addsub_vm_operator): New predicate.
16222         (addsub_vs_operator): Ditto.
16223         (addsub_vs_parallel): Ditto.
16224         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16225         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16226         Put minus RTX before plus and adjust vec_merge selector.
16227         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16228         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16229         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16230         (addsub vec_merge splitters): New combiner splitters.
16231         (addsub vec_select/vec_concat splitters): Ditto.
16232
16233 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
16234
16235         PR tree-optimization/66449
16236         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16237         POINTER_PLUS_EXPR for pointers.
16238
16239 2015-06-23  Alan Modra  <amodra@gmail.com>
16240
16241         * rtlanal.c (commutative_operand_precedence): Correct comments.
16242         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16243         declaration.  Return an int.  Distinguish REG,REG return from
16244         others.
16245         (struct simplify_plus_minus_op_data): Make local to function.
16246         (simplify_plus_minus): Don't set canonicalized if merely sorting
16247         registers.  Avoid packing ops if nothing changes.  White space fixes.
16248
16249 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
16250
16251         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16252         -fdump-ada-spec is passed but not if -fsyntax-only is.
16253
16254 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
16255
16256         PR bootstrap/63740
16257         * lra-lives.c (process_bb_lives): Check insn copying the same
16258         reload pseudo and don't create a copy for it.
16259
16260 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16261
16262         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
16263         for cond_stmt.
16264
16265 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16266
16267         * builtins.def (DEF_GOMP_BUILTIN): Test
16268         'flag_tree_parallelize_loops > 1' instead of
16269         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
16270
16271 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16272
16273         * dominance.c (calculate_dominance_info): Verify dominators if
16274         early-out.
16275
16276 2015-06-22  Marek Polacek  <polacek@redhat.com>
16277
16278         * match.pd ((x ^ y) ^ (x | y) -> x & y,
16279         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16280         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16281         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16282
16283 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
16284
16285         PR target/65871
16286         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16287         cost of embedded comparison.
16288
16289 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16290
16291         PR target/65914
16292         * config/rs6000/predicates.md (altivec_register_operand): Permit
16293         virtual stack registers.
16294         (vsx_register_operand): Likewise.
16295         (vfloat_operand): Likewise.
16296         (vint_operand): Likewise.
16297         (vlogical_operand): Likewise.
16298
16299 2015-06-22  Richard Biener  <rguenther@suse.de>
16300
16301         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16302         and single_scalar_iteration_cost members.
16303         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16304         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16305         (vect_get_single_scalar_iteration_cost): Remove.
16306         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16307         Use LOOP_VINFO_SCALAR_ITERATION_COST.
16308         * tree-vect-loop.c (destroy_loop_vec_info): Free
16309         scalar_cost_vec.
16310         (vect_get_single_scalar_iteration_cost): Compute result into
16311         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16312         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
16313         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16314         (vect_estimate_min_profitable_iters): Use them.
16315
16316 2015-06-22  Christian Bruel  <christian.bruel@st.com>
16317
16318         PR target/52144
16319         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16320         (TARGET_INSERT_ATTRIBUTES): Define.
16321         (thumb_flipper): New var.
16322         * config/arm/arm.opt (-mflip-thumb): New switch.
16323
16324 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16325             Martin Liska  <mliska@suse.cz>
16326
16327         PR ipa/65908
16328         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16329         construction of arg_types.
16330         (sem_function::sem_function): Likewise.
16331         (sem_function::~sem_function): Remove destruction of arg_types.
16332         (sem_function::compatible_parm_types_p): New function.
16333         (sem_function::equals_wpa): Reorg matching of return values
16334         and parameter types.
16335         (sem_function::equals_private): Reorg mathcing of argument types.
16336         (sem_function::parse_tree_args): Remove.
16337         * ipa-icf.h (init_wpa): Do not call it.
16338         (parse_tree_args): Remove.
16339         (compatible_parm_types_p): Declare.
16340         (result_type): Remove.
16341         (arg_types): Remove.
16342
16343 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16344
16345         PR ipa/66351
16346         * ipa-polymorphic-call.c
16347         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16348         initializing alias oracle; fix formating; set base_alias_set if it
16349         is known.
16350
16351 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
16352
16353         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16354         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16355         (find_inc): Likewise.
16356         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16357         swapping.
16358         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16359         * df-scan.c (df_swap_refs): Remove.
16360         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16361         * dominance.c (link_roots): Use std::swap instead of manually swapping.
16362         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16363         * fold-const.c (fold_relational_const): Likewise.
16364         * genattrtab.c (simplify_test_exp): Likewise.
16365         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16366         gimple_simplify): Likewise.
16367         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16368         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16369         * ipa-devirt.c (add_type_duplicate): Likewise.
16370         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16371         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16372         * lra.c (lra_create_copy): Likewise.
16373         * lto-streamer-out.c (DFS::DFS): Likewise.
16374         * modulo-sched.c (get_sched_window): Likewise.
16375         * omega.c (omega_pretty_print_problem): Likewise.
16376         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16377         * reload1.c (reloads_unique_chain_p): Likewise.
16378         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16379         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16380         use std::swap.
16381         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16382         manually swapping.
16383         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16384         predicate_mem_writes): Likewise.
16385         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16386         * tree-predcom.c (combine_chains): Likewise.
16387         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16388         refs_may_alias_p_1): Likewise.
16389         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16390         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16391         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16392         number_of_iterations_cond): Likewise.
16393         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16394         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16395         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16396         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16397         * tree-vrp.c (extract_range_from_binary_expr_1,
16398         extract_range_from_unary_expr_1): Likewise.
16399
16400 2015-06-20  Marek Polacek  <polacek@redhat.com>
16401
16402         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16403
16404 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
16405
16406         PR target/66591
16407         * config/sh/sh.c (prepare_move_operands): Replace subreg
16408         index term with R0 for base and index addressing.
16409
16410 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
16411
16412         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16413         op1 is an fp zero.
16414         (movsf_aarch64): Change condition from register_operand to
16415         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
16416         load1.  Change type for alternative 7 to store1.
16417         (movdf_aarch64): Likewise.
16418
16419 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
16420
16421         * config/vax/vax.md: Adjust sign/zero extend patterns to
16422         handle SUBREGs in operands[1].
16423
16424 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16425
16426         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16427         of manually swapping.
16428         (expand_vec_perm_interleave2): Likewise.
16429
16430 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
16431
16432         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16433         reuse bounds created for abnormal ssa names.
16434
16435 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
16436
16437         * config/nvptx/nvptx.md (allocate_stack): Rename to...
16438         (allocate_stack_<mode>): ... this, and add :P on both
16439         match_operand and unspec.
16440         (allocate_stack): New expander.
16441
16442 2015-06-19  Christian Bruel  <christian.bruel@st.com>
16443
16444         PR target/66541
16445         PR target/52144
16446         * config/arm/arm.c (arm_set_current_function): Handle
16447         explicit default options.
16448
16449 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16450
16451         * config/i386/i386.md (*movsicc_noc_zext): New insn.
16452         (zero-extended cmove with mem peephole2): New pattern.
16453         (cmove with mem peephole2): Merge patterns.
16454
16455 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16456
16457         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16458
16459 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
16460
16461         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16462         * config/mips/mips.md (*madd4<mode>): Ditto.
16463         (*nmadd3<mode>) Ditto.
16464         (*nmadd4<mode>_fastmath): Ditto.
16465         (*nmadd3<mode>_fastmath): Ditto.
16466         (*nmsub4<mode>): Ditto.
16467         (*nmsub3<mode>): Ditto.
16468         (*nmsub4<mode>_fastmath): Ditto.
16469         (*nmsub3<mode>_fastmath): Ditto.
16470
16471 2015-06-18  Michael Matz  <matz@suse.de>
16472
16473         PR middle-end/66253
16474         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16475         grouped strided stores.
16476         (vectorizable_load): Don't use the DR from first_stmt in
16477         the non-SLP grouped strided case.
16478
16479 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16480
16481         PR target/66569
16482         * function.c (assign_bounds): Add arguments assign_regs,
16483         assign_special, assign_bt.
16484         (assign_parms): For vararg functions handle bounds in BT
16485         and special slots after incoming vararg bounds.
16486
16487 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16488
16489         PR middle-end/66568
16490         * cfgexpand.c (expand_return): Handle missing bounds.
16491         (expand_gimple_stmt_1): Likewise.
16492         * tree-chkp.c (chkp_expand_zero_bounds): New.
16493         * tree-chkp.h (chkp_expand_zero_bounds): New.
16494
16495 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16496
16497         PR middle-end/66567
16498         * ipa-chkp.c (chkp_maybe_create_clone): Require
16499         functions to be instrumentable.
16500         * tree-chkp.c (chkp_replace_function_pointer): Use
16501         chkp_instrumentable_p instead of attribute check.
16502
16503 2015-06-18  Richard Biener  <rguenther@suse.de>
16504
16505         PR tree-optimization/66510
16506         * tree-vect-stmts.c (vectorizable_load): Properly compute the
16507         number of vector loads for SLP permuted loads.
16508         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16509         check the stride for loop vectorization.
16510         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16511         vectorization factor.
16512         (vect_analyze_group_access): If the group size is not a power
16513         of two require a epilogue loop.
16514         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16515         compute and optimizing and alias test pruning after final
16516         vectorization factor computation.
16517         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16518         vector alignment.
16519         (vect_transform_slp_perm_load): Properly compute the original
16520         number of vector load stmts.
16521
16522 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16523
16524         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16525         "unlikely character , in @var" warning.
16526
16527 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
16528
16529         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16530         (ix86_function_arg_advance): Ditto.
16531         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
16532
16533 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16534
16535         * function.h (struct rtl_data): Remove struct and accessor macros.
16536         * emit-rtl.h (struct rtl_data): Relocate to here.
16537         * Makefile.in (GTFILES): Add emit-rtl.h.
16538         * df-core.c: Include emit-rtl.h.
16539         * genattrtab.c: Likewise.
16540         * genconditions.c: Likewise.
16541         * genpreds.c: Likewise.
16542         * genrecog.c: Likewise.
16543         * regcprop.c: Likewise.
16544         * resource.c: Likewise.
16545         * sched-rgn.c: Likewise.
16546         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16547         * config/i386/winnt.c: Likewise.
16548
16549 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
16550
16551         PR middle-end/66429
16552         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16553         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
16554         and has_force_vectorize_loops flags from cfun into
16555         child_cfun.
16556         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16557         if simduid is non-NULL.
16558         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16559         * passes.def (pass_simduid_cleanup): Add new pass after loop
16560         passes.
16561         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16562         indirection from htab argument's type.
16563         (shrink_simd_arrays): New function.
16564         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
16565         Don't call adjust_simduid_builtins if there are no loops.
16566         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16567         (pass_simduid_cleanup::execute): New method.
16568         (make_pass_simduid_cleanup): New function.
16569
16570 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
16571
16572         * tree-core.h (tree_target_option): Make opts field a pointer to a
16573         cl_target_option instead of an instance of the struct.
16574         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16575         the structure.
16576         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16577         TARGET_OPTION_NODE.
16578         (copy_node_stat): Allocate and copy struct cl_target_option.
16579
16580 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16581
16582         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16583         Remove conditional exposure of prototypes.
16584         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16585         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
16586         definitions in tree.h with functions.
16587         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16588         anon_aggrname_p.
16589         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16590
16591 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
16592
16593         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16594         (*cmp<mode>_signed): ... this.
16595         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16596         (*cmp<mode>_unsigned): ... this.  Remove %b.
16597
16598 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16599
16600         * coretypes.h: Include input.h and as-a.h.
16601         * rtl.h: Include input.h and as-a.h for generator files.
16602         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16603         * vec.c: Don't include diagnostic-core.h.
16604         * alias.c: Do not include input.h, line-map.h or is-a.h.
16605         * asan.c: Likewise.
16606         * attribs.c: Likewise.
16607         * auto-inc-dec.c: Likewise.
16608         * auto-profile.c: Likewise.
16609         * bb-reorder.c: Likewise.
16610         * bt-load.c: Likewise.
16611         * builtins.c: Likewise.
16612         * caller-save.c: Likewise.
16613         * calls.c: Likewise.
16614         * ccmp.c: Likewise.
16615         * cfg.c: Likewise.
16616         * cfganal.c: Likewise.
16617         * cfgbuild.c: Likewise.
16618         * cfgcleanup.c: Likewise.
16619         * cfgexpand.c: Likewise.
16620         * cfghooks.c: Likewise.
16621         * cfgloop.c: Likewise.
16622         * cfgloop.h: Likewise.
16623         * cfgloopanal.c: Likewise.
16624         * cfgloopmanip.c: Likewise.
16625         * cfgrtl.c: Likewise.
16626         * cgraph.c: Likewise.
16627         * cgraphbuild.c: Likewise.
16628         * cgraphclones.c: Likewise.
16629         * cgraphunit.c: Likewise.
16630         * cilk-common.c: Likewise.
16631         * combine-stack-adj.c: Likewise.
16632         * combine.c: Likewise.
16633         * compare-elim.c: Likewise.
16634         * convert.c: Likewise.
16635         * coverage.c: Likewise.
16636         * cppbuiltin.c: Likewise.
16637         * cprop.c: Likewise.
16638         * cse.c: Likewise.
16639         * cselib.c: Likewise.
16640         * data-streamer-in.c: Likewise.
16641         * data-streamer-out.c: Likewise.
16642         * data-streamer.c: Likewise.
16643         * dbxout.c: Likewise.
16644         * dce.c: Likewise.
16645         * ddg.c: Likewise.
16646         * debug.c: Likewise.
16647         * df-core.c: Likewise.
16648         * df-problems.c: Likewise.
16649         * df-scan.c: Likewise.
16650         * df.h: Likewise.
16651         * dfp.c: Likewise.
16652         * diagnostic-core.h: Likewise.
16653         * diagnostic.c: Likewise.
16654         * dojump.c: Likewise.
16655         * dominance.c: Likewise.
16656         * domwalk.c: Likewise.
16657         * double-int.c: Likewise.
16658         * dse.c: Likewise.
16659         * dumpfile.c: Likewise.
16660         * dumpfile.h: Likewise.
16661         * dwarf2asm.c: Likewise.
16662         * dwarf2cfi.c: Likewise.
16663         * dwarf2out.c: Likewise.
16664         * emit-rtl.c: Likewise.
16665         * et-forest.c: Likewise.
16666         * except.c: Likewise.
16667         * explow.c: Likewise.
16668         * expmed.c: Likewise.
16669         * expr.c: Likewise.
16670         * final.c: Likewise.
16671         * fixed-value.c: Likewise.
16672         * fold-const.c: Likewise.
16673         * function.c: Likewise.
16674         * fwprop.c: Likewise.
16675         * gcc-plugin.h: Likewise.
16676         * gcse.c: Likewise.
16677         * generic-match-head.c: Likewise.
16678         * ggc-page.c: Likewise.
16679         * gimple-builder.c: Likewise.
16680         * gimple-expr.c: Likewise.
16681         * gimple-fold.c: Likewise.
16682         * gimple-iterator.c: Likewise.
16683         * gimple-low.c: Likewise.
16684         * gimple-match-head.c: Likewise.
16685         * gimple-pretty-print.c: Likewise.
16686         * gimple-ssa-isolate-paths.c: Likewise.
16687         * gimple-ssa-strength-reduction.c: Likewise.
16688         * gimple-streamer-in.c: Likewise.
16689         * gimple-streamer-out.c: Likewise.
16690         * gimple-streamer.h: Likewise.
16691         * gimple-walk.c: Likewise.
16692         * gimple.c: Likewise.
16693         * gimplify-me.c: Likewise.
16694         * gimplify.c: Likewise.
16695         * godump.c: Likewise.
16696         * graph.c: Likewise.
16697         * graphite-blocking.c: Likewise.
16698         * graphite-dependences.c: Likewise.
16699         * graphite-interchange.c: Likewise.
16700         * graphite-isl-ast-to-gimple.c: Likewise.
16701         * graphite-optimize-isl.c: Likewise.
16702         * graphite-poly.c: Likewise.
16703         * graphite-scop-detection.c: Likewise.
16704         * graphite-sese-to-poly.c: Likewise.
16705         * graphite.c: Likewise.
16706         * haifa-sched.c: Likewise.
16707         * hw-doloop.c: Likewise.
16708         * ifcvt.c: Likewise.
16709         * init-regs.c: Likewise.
16710         * input.c: Likewise.
16711         * internal-fn.c: Likewise.
16712         * ipa-chkp.c: Likewise.
16713         * ipa-comdats.c: Likewise.
16714         * ipa-cp.c: Likewise.
16715         * ipa-devirt.c: Likewise.
16716         * ipa-icf-gimple.c: Likewise.
16717         * ipa-icf.c: Likewise.
16718         * ipa-inline-analysis.c: Likewise.
16719         * ipa-inline-transform.c: Likewise.
16720         * ipa-inline.c: Likewise.
16721         * ipa-polymorphic-call.c: Likewise.
16722         * ipa-profile.c: Likewise.
16723         * ipa-prop.c: Likewise.
16724         * ipa-pure-const.c: Likewise.
16725         * ipa-ref.c: Likewise.
16726         * ipa-reference.c: Likewise.
16727         * ipa-split.c: Likewise.
16728         * ipa-utils.c: Likewise.
16729         * ipa-visibility.c: Likewise.
16730         * ipa.c: Likewise.
16731         * ira-build.c: Likewise.
16732         * ira-color.c: Likewise.
16733         * ira-conflicts.c: Likewise.
16734         * ira-costs.c: Likewise.
16735         * ira-emit.c: Likewise.
16736         * ira-lives.c: Likewise.
16737         * ira.c: Likewise.
16738         * jump.c: Likewise.
16739         * langhooks.c: Likewise.
16740         * lcm.c: Likewise.
16741         * loop-doloop.c: Likewise.
16742         * loop-init.c: Likewise.
16743         * loop-invariant.c: Likewise.
16744         * loop-iv.c: Likewise.
16745         * loop-unroll.c: Likewise.
16746         * lower-subreg.c: Likewise.
16747         * lra-assigns.c: Likewise.
16748         * lra-coalesce.c: Likewise.
16749         * lra-constraints.c: Likewise.
16750         * lra-eliminations.c: Likewise.
16751         * lra-lives.c: Likewise.
16752         * lra-remat.c: Likewise.
16753         * lra-spills.c: Likewise.
16754         * lra.c: Likewise.
16755         * lto-cgraph.c: Likewise.
16756         * lto-compress.c: Likewise.
16757         * lto-opts.c: Likewise.
16758         * lto-section-in.c: Likewise.
16759         * lto-section-out.c: Likewise.
16760         * lto-streamer-in.c: Likewise.
16761         * lto-streamer-out.c: Likewise.
16762         * lto-streamer.c: Likewise.
16763         * mcf.c: Likewise.
16764         * mode-switching.c: Likewise.
16765         * modulo-sched.c: Likewise.
16766         * omega.c: Likewise.
16767         * omp-low.c: Likewise.
16768         * optabs.c: Likewise.
16769         * opts-global.c: Likewise.
16770         * opts.h: Likewise.
16771         * passes.c: Likewise.
16772         * plugin.c: Likewise.
16773         * postreload-gcse.c: Likewise.
16774         * postreload.c: Likewise.
16775         * predict.c: Likewise.
16776         * pretty-print.h: Likewise.
16777         * print-rtl.c: Likewise.
16778         * print-tree.c: Likewise.
16779         * profile.c: Likewise.
16780         * real.c: Likewise.
16781         * realmpfr.c: Likewise.
16782         * recog.c: Likewise.
16783         * ree.c: Likewise.
16784         * reg-stack.c: Likewise.
16785         * regcprop.c: Likewise.
16786         * reginfo.c: Likewise.
16787         * regrename.c: Likewise.
16788         * regstat.c: Likewise.
16789         * reload.c: Likewise.
16790         * reload1.c: Likewise.
16791         * reorg.c: Likewise.
16792         * resource.c: Likewise.
16793         * rtl-chkp.c: Likewise.
16794         * rtl-error.c: Likewise.
16795         * rtlanal.c: Likewise.
16796         * rtlhooks.c: Likewise.
16797         * sanopt.c: Likewise.
16798         * sched-deps.c: Likewise.
16799         * sched-ebb.c: Likewise.
16800         * sched-rgn.c: Likewise.
16801         * sched-vis.c: Likewise.
16802         * sdbout.c: Likewise.
16803         * sel-sched-dump.c: Likewise.
16804         * sel-sched-ir.c: Likewise.
16805         * sel-sched.c: Likewise.
16806         * sese.c: Likewise.
16807         * shrink-wrap.c: Likewise.
16808         * simplify-rtx.c: Likewise.
16809         * stack-ptr-mod.c: Likewise.
16810         * statistics.c: Likewise.
16811         * stmt.c: Likewise.
16812         * stor-layout.c: Likewise.
16813         * store-motion.c: Likewise.
16814         * streamer-hooks.c: Likewise.
16815         * stringpool.c: Likewise.
16816         * symtab.c: Likewise.
16817         * target-globals.c: Likewise.
16818         * targhooks.c: Likewise.
16819         * toplev.c: Likewise.
16820         * tracer.c: Likewise.
16821         * trans-mem.c: Likewise.
16822         * tree-affine.c: Likewise.
16823         * tree-browser.c: Likewise.
16824         * tree-call-cdce.c: Likewise.
16825         * tree-cfg.c: Likewise.
16826         * tree-cfgcleanup.c: Likewise.
16827         * tree-chkp-opt.c: Likewise.
16828         * tree-chkp.c: Likewise.
16829         * tree-chrec.c: Likewise.
16830         * tree-complex.c: Likewise.
16831         * tree-data-ref.c: Likewise.
16832         * tree-dfa.c: Likewise.
16833         * tree-diagnostic.c: Likewise.
16834         * tree-dump.c: Likewise.
16835         * tree-eh.c: Likewise.
16836         * tree-emutls.c: Likewise.
16837         * tree-if-conv.c: Likewise.
16838         * tree-inline.c: Likewise.
16839         * tree-into-ssa.c: Likewise.
16840         * tree-iterator.c: Likewise.
16841         * tree-loop-distribution.c: Likewise.
16842         * tree-nested.c: Likewise.
16843         * tree-nrv.c: Likewise.
16844         * tree-object-size.c: Likewise.
16845         * tree-outof-ssa.c: Likewise.
16846         * tree-parloops.c: Likewise.
16847         * tree-phinodes.c: Likewise.
16848         * tree-predcom.c: Likewise.
16849         * tree-pretty-print.c: Likewise.
16850         * tree-profile.c: Likewise.
16851         * tree-scalar-evolution.c: Likewise.
16852         * tree-sra.c: Likewise.
16853         * tree-ssa-address.c: Likewise.
16854         * tree-ssa-alias.c: Likewise.
16855         * tree-ssa-ccp.c: Likewise.
16856         * tree-ssa-coalesce.c: Likewise.
16857         * tree-ssa-copy.c: Likewise.
16858         * tree-ssa-copyrename.c: Likewise.
16859         * tree-ssa-dce.c: Likewise.
16860         * tree-ssa-dom.c: Likewise.
16861         * tree-ssa-dse.c: Likewise.
16862         * tree-ssa-forwprop.c: Likewise.
16863         * tree-ssa-ifcombine.c: Likewise.
16864         * tree-ssa-live.c: Likewise.
16865         * tree-ssa-loop-ch.c: Likewise.
16866         * tree-ssa-loop-im.c: Likewise.
16867         * tree-ssa-loop-ivcanon.c: Likewise.
16868         * tree-ssa-loop-ivopts.c: Likewise.
16869         * tree-ssa-loop-manip.c: Likewise.
16870         * tree-ssa-loop-niter.c: Likewise.
16871         * tree-ssa-loop-prefetch.c: Likewise.
16872         * tree-ssa-loop-unswitch.c: Likewise.
16873         * tree-ssa-loop.c: Likewise.
16874         * tree-ssa-math-opts.c: Likewise.
16875         * tree-ssa-operands.c: Likewise.
16876         * tree-ssa-phiopt.c: Likewise.
16877         * tree-ssa-phiprop.c: Likewise.
16878         * tree-ssa-pre.c: Likewise.
16879         * tree-ssa-propagate.c: Likewise.
16880         * tree-ssa-reassoc.c: Likewise.
16881         * tree-ssa-sccvn.c: Likewise.
16882         * tree-ssa-scopedtables.c: Likewise.
16883         * tree-ssa-sink.c: Likewise.
16884         * tree-ssa-strlen.c: Likewise.
16885         * tree-ssa-structalias.c: Likewise.
16886         * tree-ssa-tail-merge.c: Likewise.
16887         * tree-ssa-ter.c: Likewise.
16888         * tree-ssa-threadedge.c: Likewise.
16889         * tree-ssa-threadupdate.c: Likewise.
16890         * tree-ssa-uncprop.c: Likewise.
16891         * tree-ssa-uninit.c: Likewise.
16892         * tree-ssa.c: Likewise.
16893         * tree-ssanames.c: Likewise.
16894         * tree-stdarg.c: Likewise.
16895         * tree-streamer-in.c: Likewise.
16896         * tree-streamer-out.c: Likewise.
16897         * tree-streamer.c: Likewise.
16898         * tree-switch-conversion.c: Likewise.
16899         * tree-tailcall.c: Likewise.
16900         * tree-vect-data-refs.c: Likewise.
16901         * tree-vect-generic.c: Likewise.
16902         * tree-vect-loop-manip.c: Likewise.
16903         * tree-vect-loop.c: Likewise.
16904         * tree-vect-patterns.c: Likewise.
16905         * tree-vect-slp.c: Likewise.
16906         * tree-vect-stmts.c: Likewise.
16907         * tree-vectorizer.c: Likewise.
16908         * tree-vrp.c: Likewise.
16909         * tree.c: Likewise.
16910         * tsan.c: Likewise.
16911         * ubsan.c: Likewise.
16912         * valtrack.c: Likewise.
16913         * value-prof.c: Likewise.
16914         * var-tracking.c: Likewise.
16915         * varasm.c: Likewise.
16916         * varpool.c: Likewise.
16917         * vmsdbgout.c: Likewise.
16918         * vtable-verify.c: Likewise.
16919         * web.c: Likewise.
16920         * wide-int.cc: Likewise.
16921         * xcoffout.c: Likewise.
16922         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16923         * common/common-targhooks.c: Likewise.
16924         * config/aarch64/aarch64-builtins.c: Likewise.
16925         * config/aarch64/aarch64.c: Likewise.
16926         * config/alpha/alpha.c: Likewise.
16927         * config/arc/arc.c: Likewise.
16928         * config/arm/aarch-common.c: Likewise.
16929         * config/arm/arm-builtins.c: Likewise.
16930         * config/arm/arm-c.c: Likewise.
16931         * config/arm/arm.c: Likewise.
16932         * config/avr/avr-c.c: Likewise.
16933         * config/avr/avr-log.c: Likewise.
16934         * config/avr/avr.c: Likewise.
16935         * config/bfin/bfin.c: Likewise.
16936         * config/c6x/c6x.c: Likewise.
16937         * config/cr16/cr16.c: Likewise.
16938         * config/cris/cris.c: Likewise.
16939         * config/darwin-c.c: Likewise.
16940         * config/darwin.c: Likewise.
16941         * config/default-c.c: Likewise.
16942         * config/epiphany/epiphany.c: Likewise.
16943         * config/epiphany/mode-switch-use.c: Likewise.
16944         * config/epiphany/resolve-sw-modes.c: Likewise.
16945         * config/fr30/fr30.c: Likewise.
16946         * config/frv/frv.c: Likewise.
16947         * config/ft32/ft32.c: Likewise.
16948         * config/glibc-c.c: Likewise.
16949         * config/h8300/h8300.c: Likewise.
16950         * config/i386/i386-c.c: Likewise.
16951         * config/i386/i386.c: Likewise.
16952         * config/i386/msformat-c.c: Likewise.
16953         * config/i386/winnt-cxx.c: Likewise.
16954         * config/i386/winnt-stubs.c: Likewise.
16955         * config/i386/winnt.c: Likewise.
16956         * config/ia64/ia64-c.c: Likewise.
16957         * config/ia64/ia64.c: Likewise.
16958         * config/iq2000/iq2000.c: Likewise.
16959         * config/lm32/lm32.c: Likewise.
16960         * config/m32c/m32c-pragma.c: Likewise.
16961         * config/m32c/m32c.c: Likewise.
16962         * config/m32r/m32r.c: Likewise.
16963         * config/m68k/m68k.c: Likewise.
16964         * config/mcore/mcore.c: Likewise.
16965         * config/mep/mep-pragma.c: Likewise.
16966         * config/mep/mep.c: Likewise.
16967         * config/microblaze/microblaze-c.c: Likewise.
16968         * config/microblaze/microblaze.c: Likewise.
16969         * config/mips/mips.c: Likewise.
16970         * config/mmix/mmix.c: Likewise.
16971         * config/mn10300/mn10300.c: Likewise.
16972         * config/moxie/moxie.c: Likewise.
16973         * config/msp430/msp430-c.c: Likewise.
16974         * config/msp430/msp430.c: Likewise.
16975         * config/nds32/nds32-cost.c: Likewise.
16976         * config/nds32/nds32-fp-as-gp.c: Likewise.
16977         * config/nds32/nds32-intrinsic.c: Likewise.
16978         * config/nds32/nds32-isr.c: Likewise.
16979         * config/nds32/nds32-md-auxiliary.c: Likewise.
16980         * config/nds32/nds32-memory-manipulation.c: Likewise.
16981         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16982         * config/nds32/nds32-predicates.c: Likewise.
16983         * config/nds32/nds32.c: Likewise.
16984         * config/nios2/nios2.c: Likewise.
16985         * config/nvptx/nvptx.c: Likewise.
16986         * config/pa/pa.c: Likewise.
16987         * config/pdp11/pdp11.c: Likewise.
16988         * config/rl78/rl78-c.c: Likewise.
16989         * config/rl78/rl78.c: Likewise.
16990         * config/rs6000/rs6000-c.c: Likewise.
16991         * config/rs6000/rs6000.c: Likewise.
16992         * config/rx/rx.c: Likewise.
16993         * config/s390/s390-c.c: Likewise.
16994         * config/s390/s390.c: Likewise.
16995         * config/sh/sh-c.c: Likewise.
16996         * config/sh/sh-mem.cc: Likewise.
16997         * config/sh/sh.c: Likewise.
16998         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16999         * config/sh/sh_treg_combine.cc: Likewise.
17000         * config/sol2-c.c: Likewise.
17001         * config/sol2-cxx.c: Likewise.
17002         * config/sol2-stubs.c: Likewise.
17003         * config/sol2.c: Likewise.
17004         * config/sparc/sparc-c.c: Likewise.
17005         * config/sparc/sparc.c: Likewise.
17006         * config/spu/spu-c.c: Likewise.
17007         * config/spu/spu.c: Likewise.
17008         * config/stormy16/stormy16.c: Likewise.
17009         * config/tilegx/mul-tables.c: Likewise.
17010         * config/tilegx/tilegx-c.c: Likewise.
17011         * config/tilegx/tilegx.c: Likewise.
17012         * config/tilepro/mul-tables.c: Likewise.
17013         * config/tilepro/tilepro-c.c: Likewise.
17014         * config/tilepro/tilepro.c: Likewise.
17015         * config/v850/v850-c.c: Likewise.
17016         * config/v850/v850.c: Likewise.
17017         * config/vax/vax.c: Likewise.
17018         * config/visium/visium.c: Likewise.
17019         * config/vms/vms-c.c: Likewise.
17020         * config/vms/vms.c: Likewise.
17021         * config/vxworks.c: Likewise.
17022         * config/winnt-c.c: Likewise.
17023         * config/xtensa/xtensa.c: Likewise.
17024
17025 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
17026
17027         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17028         function.
17029         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17030
17031 2015-06-17  Richard Biener  <rguenther@suse.de>
17032
17033         PR tree-optimization/66251
17034         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17035         stmts for SLP strided stores.
17036
17037         Revert
17038         2015-05-22  Richard Biener  <rguenther@suse.de>
17039
17040         PR tree-optimization/66251
17041         * tree-vect-stmts.c (vectorizable_conversion): Properly
17042         set STMT_VINFO_VEC_STMT even for the SLP case.
17043
17044         2015-05-26  Michael Matz  <matz@suse.de>
17045
17046         PR middle-end/66251
17047         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17048         STMT_VINFO_VEC_STMT, also with SLP.
17049
17050 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
17051
17052         PR target/56766
17053         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17054         (*avx_addsubv4df3_1s): Ditto.
17055         (*sse3_addsubv2df3_1): Ditto.
17056         (*sse3_addsubv2df3_1s): Ditto.
17057         (*avx_addsubv8sf3_1): Ditto.
17058         (*avx_addsubv8sf3_1s): Ditto.
17059         (*sse3_addsubv4sf3_1): Ditto.
17060         (*sse3_addsubv4sf3_1s): Ditto.
17061
17062 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
17063
17064         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17065         (SYSROOT_SUFFIX_SPEC): Update.
17066         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17067         (STARTFILE_PREFIX_SPEC): Update.
17068         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17069         (MULTILIB_REQUIRED): New.
17070         (MULTILIB_OSDIRNAMES): New.
17071         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17072         (MULTILIB_REQUIRED): New.
17073         (MULTILIB_OSDIRNAMES): New.
17074
17075 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
17076
17077         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17078         * config/aarch64/aarch64-options-extensions.def: Update "fP",
17079         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
17080         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17081         (AARCH64_FL_PAN): New.
17082         (AARCH64_FL_LOR): New.
17083         (AARCH64_FL_RDMA): New.
17084         (AARCH64_FL_FOR_ARCH8_1): New.
17085         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17086         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17087
17088 2015-06-16  Martin Liska  <mliska@suse.cz>
17089
17090         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17091         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17092         guard.
17093
17094 2015-06-16  Richard Biener  <rguenther@suse.de>
17095
17096         * tree-vect-stmts.c (vectorizable_store): Adjust.
17097         (vectorizable_load): Likewise.
17098         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17099         Simplify.
17100         (vect_create_data_ref_ptr): Likewise.
17101         (bump_vector_ptr): Adjust.
17102
17103 2015-06-16  Richard Biener  <rguenther@suse.de>
17104
17105         * tree-vect-stmts.c (vectorizable_load): Properly start loads
17106         with the first element if this is grouped loads.
17107
17108 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
17109
17110         * config/arm/arm-protos.h (struct tune_params): Rename
17111         log_op_non_sc to log_op_non_short_circuit, and rename enum
17112         values to expand SC to SHORT_CIRCUIT.
17113         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17114         to LOG_OP_NON_SHORT_CIRCUIT.
17115         (arm_fastmul_tune):Likewise
17116         (arm_strongarm_tune): Likewise.
17117         (arm_xscale_tune): Likewise.
17118         (arm_9e_tune): Likewise.
17119         (arm_marvell_pj4_tune): Likewise.
17120         (arm_v6t2_tune): Likewise.
17121         (arm_cortex_tune): Likewise.
17122         (arm_cortex_a8_tune): Likewise.
17123         (arm_cortex_a7_tune): Likewise.
17124         (arm_cortex_a15_tune): Likewise.
17125         (arm_cortex_a53_tune): Likewise.
17126         (arm_cortex_a57_tune): Likewise.
17127         (arm_xgene1_tune): Likewise.
17128         (arm_cortex_a5_tune): Likewise.
17129         (arm_cortex_a9_tune): Likewise.
17130         (arm_cortex_a12_tune): Likewise.
17131         (arm_v7m_tune): Likewise.
17132         (arm_cortex_m7_tune): Likewise.
17133         (arm_v6m_tune): Likewise.
17134         (arm_fa726te_tune): Likewise.
17135
17136 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
17137
17138         * altivec.md: Delete UNSPEC_VMLADDUHM.
17139         (mulv4si3_p8): New pattern.
17140         (mulv4si3): Use it for POWER8.
17141         (mulv8hi3): Use vmladduhm with zero addend.
17142         (altivec_vmladduhm): Descriptive RTL.
17143
17144 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
17145
17146         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17147         to use neon_move instead of mov_imm.
17148         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17149         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17150
17151         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17152         aarch64_float_const_zero_rtx_p check before TFmode check.
17153         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17154         an fp zero.
17155         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
17156         code and attributes to match.  Change condition from register_operand
17157         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
17158         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
17159         to store2.
17160
17161 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
17162
17163         PR debug/66535
17164         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17165         there is no parent.
17166
17167 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
17168
17169         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17170         HOST_WIDE_INT parameter.
17171
17172 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
17173
17174         PR ipa/66181
17175         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17176         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17177         TYPE_NO_FORCE_BLK.
17178         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17179
17180 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
17181
17182         * rtl.h (classify_insn): Declare.
17183         * emit-rtl.c (classify_insn): Move to...
17184         * rtl.c: ...here and add generator support.
17185         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17186         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17187         * genemit.c (gen_emit_seq): New function.
17188         (gen_expand, gen_split): Use it.
17189
17190 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
17191
17192         * tree.c (make_vector_stat): Fix comment to state that the
17193         function returns a VECTOR_CST.
17194
17195 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
17196
17197         * gensupport.h (add_implicit_parallel): Declare.
17198         * genrecog.c (add_implicit_parallel): Move to...
17199         * gensupport.c (add_implicit_parallel): ...here.
17200         (process_one_cond_exec): Use it.
17201         * genemit.c (gen_insn): Likewise.
17202
17203 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
17204
17205         PR bootstrap/66448
17206         * passes.c (rest_of_decl_compilation): Do not register globals for
17207         early debug if they are declared in built-ins.
17208
17209 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
17210
17211         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17212
17213 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17214
17215         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17216         manually swapping.
17217         (noce_try_cmove_arith): Likewise.
17218         (noce_get_alt_condition): Likewise.
17219
17220 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17221
17222         * common/config/i386/i386-common.c
17223         (OPTION_MASK_ISA_MWAITX_SET): New.
17224         (ix86_handle_option): Handle mwaitx.
17225         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17226         (x86_64-*-*): Likewise.
17227         * config/i386/mwaitxintrin.h: New header.
17228         * config/i386/cpuid.h (bit_MWAITX):  Define.
17229         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17230         MWAITX support.
17231         * config/i386/i386.opt (mwaitx): New.
17232         * config/i386/i386-builtin-types.def
17233         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17234         * config/i386/i386-c.c: Define __MWAITX__ if needed.
17235         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17236         (PTA_MWAITX): New.
17237         (ix86_option_override_internal): Handle new option.
17238         (processor_alias_table): Added PTA_MWAITX.
17239         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17240         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17241         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17242         IX86_BUILTIN_MONITORX  built-ins.
17243         * config/i386/i386.h (TARGET_MWAITX): New.
17244         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17245         UNSPEC_MONITORX.
17246         (mwaitx):  New pattern.
17247         (monitorx_<mode>): New pattern.
17248         * config/i386/x86intrin.h: Include mwaitxintrin.h.
17249         * doc/extend.texi: Document monitorx and mwaitx builtins.
17250         * doc/invoke.texi: Document -mmwaitx option.
17251
17252 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
17253
17254         * emit-rtl.c (need_atomic_barrier_p): Mask model with
17255         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
17256
17257 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17258
17259         * dbxout.c (xcoff_debug_hooks): Provide a function for
17260         register_main_translation_unit hook.
17261
17262 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17263
17264         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
17265         variants cases from switch.
17266         (rs6000_post_atomic_barrier): Same.
17267         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
17268         (rs6000_expand_atomic_exchange): Same.
17269         (rs6000_expand_atomic_op): Same.
17270         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
17271         SYNC variants cases from switch.
17272         (atomic_load): Same.
17273         (atomic_store): Same.
17274
17275 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
17276
17277         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17278         CONST_INT for goto.
17279
17280 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
17281
17282         PR bootstrap/66448
17283         * dwarf2out.c (check_die): Check for common duplicate attributes.
17284         (add_location_or_const_value_attribute): Do not add duplicate
17285         attributes.
17286         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17287         time around.
17288         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17289         (gen_type_die_with_usage): Call check_die.
17290         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17291
17292 2015-06-11  Jason Merrill  <jason@redhat.com>
17293
17294         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17295         dies.
17296
17297 2015-06-11  Marek Polacek  <polacek@redhat.com>
17298
17299         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17300
17301 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
17302
17303         PR bootstrap/66252
17304         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17305         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17306         (*addx_extend_sp32): Fix pasto.
17307         (*subx_extend): Rename into...
17308         (*subx_extend_sp32): ...this.
17309         (*adddi3_extend_sp32): Add earlyclobber.
17310         (*subdi3_insn_sp32): Likewise.
17311         (*subdi3_extend_sp32): Likewise.
17312         (*and_not_di_sp32): Likewise.
17313         (*or_not_di_sp32): Likewise.
17314         (*xor_not_di_sp32): Likewise.
17315         (*negdi2_sp32): Likewise.
17316         (*one_cmpldi2_sp32): Likewise.
17317
17318 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
17319
17320         * debug.h (struct gcc_debug_hooks): Add a
17321         register_main_translation_unit hook.
17322         * debug.c (do_nothing_debug_hooks): Provide a function for this
17323         new hook.
17324         * dbxout.c (dbx_debug_hooks): Likewise.
17325         * sdbout.c (sdb_debug_hooks): Likewise.
17326         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17327         * dwarf2out.c (main_translation_unit): New global variable.
17328         (dwarf2out_register_main_translation_unit): New function
17329         implementing the new hook.
17330         (dwarf2_debug_hooks): Assign
17331         dwarf2out_register_main_translation_unit to this new hook.
17332         (dwarf2out_init): Associate any main translation unit to
17333         comp_unit_die ().
17334
17335 2015-06-11  Marek Polacek  <polacek@redhat.com>
17336
17337         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17338
17339 2015-06-11  Marek Polacek  <polacek@redhat.com>
17340
17341         * match.pd: Use single_use throughout.
17342
17343 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17344
17345         * config/arm/arm.c (arm_option_params_internal): When optimising
17346         for speed set max_insns_skipped when arm_restrict_it.
17347
17348 2015-06-11  Christian Bruel  <christian.bruel@st.com>
17349
17350         PR target/52144
17351         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17352          macros in ...
17353         (arm_cpu_builtins): New function.
17354         (arm_pragma_target_parse): Call arm_cpu_builtins.
17355         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17356         (arm_register_target_pragmas): Likewise.
17357         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17358          Call arm_register_target_pragmas.
17359         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17360         (arm_pragma_target_parse): Likewise.
17361
17362 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17363
17364         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17365         of the second operand.
17366
17367 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
17368
17369         PR target/66473
17370         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17371         to prepare mask operand for AVX512 modes.
17372
17373 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17374
17375         PR target/66474
17376         * doc/md.texi (Machine Constraints): Document that on the PowerPC
17377         if you use a constraint that targets a VSX register, you must use
17378         %x<n> in the template.
17379
17380 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
17381
17382         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17383         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17384         (define_insn "trap"): New definition.
17385
17386 2015-06-10  Richard Biener  <rguenther@suse.de>
17387
17388         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17389         out from ...
17390         (vect_supported_load_permutation_p): ... here.  Handle
17391         supportable permutations in reductions.
17392         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17393         for vectorizing strided group loads.
17394
17395 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
17396
17397         PR target/66470
17398         * config/i386/i386.c (ix86_split_long_move): For collisions
17399         involving direct tls segment refs, move the UNSPEC_TP possibly
17400         wrapped in ZERO_EXTEND out of the address for lea, to each of
17401         the memory loads.
17402
17403 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17404
17405         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17406         dmb sy. Adjust tabs.
17407
17408 2015-06-10  Tom de Vries  <tom@codesourcery.com>
17409
17410         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17411
17412 2015-06-10  Martin Liska  <mliska@suse.cz>
17413
17414         PR bootstrap/66471
17415         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17416         all enum values in mem_alloc_origin.
17417         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17418         name.
17419         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17420         * bitmap.c (bitmap_register): Likewise.
17421         (dump_bitmap_statistics): Likewise.
17422         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17423         (ggc_record_overhead): Likewise.
17424         * hash-map.h: Likewise.
17425         * hash-set.h: Likewise.
17426         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17427         * hash-table.h: Likewise.
17428         * vec.c (vec_prefix::register_overhead): Likewise.
17429         (vec_prefix::release_overhead): Likewise.
17430         (dump_vec_loc_statistics): Likewise.
17431
17432 2015-06-09  Christian Bruel  <christian.bruel@st.com>
17433
17434         PR target/52144
17435         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17436         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17437         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17438         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17439         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17440         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17441         (arm_valid_target_attribute_p): Likewise.
17442         (arm_set_current_function, arm_can_inline_p): Likewise.
17443         (arm_valid_target_attribute_rec): Likewise.
17444         (arm_previous_fndecl): New variable.
17445         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17446         (TARGET_CAN_INLINE_P): Define.
17447         (arm_asm_trampoline_template): Emit mode.
17448         (arm_file_start): Don't set unified syntax.
17449         (arm_declare_function_name): Set unified syntax and mode.
17450         (arm_option_override): Init target_option_default_node.
17451         and target_option_current_node.
17452         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17453         (*call_symbol): Likewise.
17454         * doc/extend.texi: Document ARM/Thumb target attribute.
17455         * doc/invoke.texi: Likewise.
17456
17457 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17458
17459         Revert:
17460         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17461         PR rtl-optimization/64164
17462         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17463         * tree-ssa-copyrename.c: Removed.
17464         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17465         -ftree-coalesce-vars.
17466         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17467         * common.opt (ftree-copyrename): Ignore.
17468         (ftree-coalesce-inlined-vars): Likewise.
17469         * doc/invoke.texi: Remove the ignored options above.
17470         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17471         * tree-ssa-coalesce.h: ... here.
17472         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17473         headers required by it.
17474         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17475         across variables when flag_tree_coalesce_vars.  Check register
17476         use and promoted modes to allow coalescing.  Moved to
17477         tree-ssa-coalesce.c.
17478         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17479         with its member functions to tree-ssa-coalesce.c.
17480         (var_map_base_init): Likewise.  Renamed to
17481         compute_samebase_partition_bases.
17482         (partition_view_normal): Drop want_bases parameter.
17483         (partition_view_bitmap): Likewise.
17484         * tree-ssa-live.h: Adjust declarations.
17485         * tree-ssa-coalesce.c: Include explow.h.
17486         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17487         default defs at the entry point.
17488         (dump_part_var_map): New.
17489         (compute_optimized_partition_bases): New, called by...
17490         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17491         of compute_samebase_partition_bases.  Adjust.
17492         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17493         * cfgexpand.c (leader_merge): New.
17494         (get_rtl_for_parm_ssa_default_def): New.
17495         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17496         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17497         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17498         redundant MEM attr setting.
17499         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17500         from...
17501         (expand_one_stack_var): ... this.  New wrapper to check and
17502         skip already expanded SSA partitions.
17503         (record_alignment_for_reg_var): New, factored out of...
17504         (expand_one_var): ... this.
17505         (expand_one_ssa_partition): New.
17506         (adjust_one_expanded_partition_var): New.
17507         (expand_one_register_var): Check and skip already expanded SSA
17508         partitions.
17509         (expand_used_vars): Don't create DECLs for anonymous SSA
17510         names.  Expand all SSA partitions, then adjust all SSA names.
17511         (pass::execute): Replace the loops that set
17512         SA.partition_to_pseudo from partition leaders and cleared
17513         DECL_RTL for multi-location variables, and that which used to
17514         rename vars and set attrs, with one that clears DECL_RTL and
17515         checks that PARMs and RESULTs default_defs match DECL_RTL.
17516         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17517         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17518         * explow.c (promote_ssa_mode): New.
17519         * explow.h (promote_ssa_mode): Declare.
17520         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17521         * function.c: Include cfgexpand.h.
17522         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17523         (use_register_for_parm_decl): Wrapper for the above to
17524         special-case the result_ptr.
17525         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17526         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17527         multiple locations.
17528         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17529         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17530         (assign_parm_setup_block): Prefer SSA-assigned location.
17531         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17532         if stack_parm is NULL.
17533         (assign_parm_setup_stack): Prefer SSA-assigned location.
17534         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17535         rtl before testing for pointer bounds.  Special-case result_ptr.
17536         (expand_function_start): Maybe reset DECL_RTL of result.
17537         Prefer SSA-assigned location for result and static chain.
17538         Factor out DECL_RESULT and SET_DECL_RTL.
17539         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17540         anonymous SSA names.  Use promote_ssa_mode.
17541         (get_temp_reg): Likewise.
17542         (remove_ssa_form): Adjust.
17543         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17544         and get its reg_usage for reg invalidation.
17545         (compute_bb_dataflow): Pass it insn.
17546         (emit_notes_in_bb): Likewise.
17547         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17548         fail assert on conversion between unsigned types.
17549
17550 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17551
17552         PR tree-optimization/65460
17553         * omp-low.c (expand_omp_target): Set parallelized_function on
17554         cgraph_node for child_fn.
17555
17556 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17557
17558         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17559         parallelized_function before add_new_function.
17560
17561 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
17562
17563         * gcc-plugin.h: Move decls to plugin.h and include it.
17564         * plugin.h: Relocate decls from gcc-plugin.h
17565         * ggc-page.c: Include required header files.
17566         * passes.c: Likewise.
17567         * cgraphunit.c: Likewise.
17568
17569 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17570
17571         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17572
17573 2015-06-09  Jason Merrill  <jason@redhat.com>
17574
17575         PR bootstrap/66448
17576         * toplev.c (check_global_declaration): Don't warn about a clone.
17577
17578 2015-06-09  Marek Polacek  <polacek@redhat.com>
17579
17580         PR tree-optimization/66299
17581         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17582         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17583         patterns.
17584
17585 2015-06-09  Richard Biener  <rguenther@suse.de>
17586
17587         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17588         (vect_analyze_slp_instance): Instead do not falsely drop
17589         load permutations.
17590
17591 2015-06-09  Richard Biener  <rguenther@suse.de>
17592
17593         PR middle-end/66423
17594         * match.pd: Handle A % (unsigned)(1 << B).
17595
17596 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
17597
17598         * varasm.c (output_object_block_htab): Remove.
17599         (output_object_block_compare): New.
17600         (output_object_blocks): Sort named object_blocks before outputting
17601         them.
17602
17603 2015-06-09  Richard Biener  <rguenther@suse.de>
17604
17605         PR tree-optimization/66419
17606         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17607         consider GROUP_GAP when detecting a perfect subchain.
17608
17609 2015-06-09  Nick Clifton  <nickc@redhat.com>
17610
17611         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17612         place read only data in the .frodata section.
17613
17614 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
17615
17616         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17617         (atomic_store<mode>): Likewise.
17618
17619 2015-06-09  Richard Biener  <rguenther@suse.de>
17620
17621         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17622
17623 2015-06-09  Richard Biener  <rguenther@suse.de>
17624
17625         PR middle-end/66413
17626         * tree-inline.c (insert_init_debug_bind): Unshare value.
17627
17628 2015-06-09  Richard Biener  <rguenther@suse.de>
17629
17630         PR tree-optimization/66396
17631         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17632         Rename virtual operands.
17633
17634 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17635
17636         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17637         always return false.
17638
17639 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17640
17641         PR rtl-optimization/64164
17642         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17643         * tree-ssa-copyrename.c: Removed.
17644         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17645         -ftree-coalesce-vars.
17646         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17647         * common.opt (ftree-copyrename): Ignore.
17648         (ftree-coalesce-inlined-vars): Likewise.
17649         * doc/invoke.texi: Remove the ignored options above.
17650         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17651         * tree-ssa-coalesce.h: ... here.
17652         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17653         headers required by it.
17654         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17655         across variables when flag_tree_coalesce_vars.  Check register
17656         use and promoted modes to allow coalescing.  Moved to
17657         tree-ssa-coalesce.c.
17658         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17659         with its member functions to tree-ssa-coalesce.c.
17660         (var_map_base_init): Likewise.  Renamed to
17661         compute_samebase_partition_bases.
17662         (partition_view_normal): Drop want_bases parameter.
17663         (partition_view_bitmap): Likewise.
17664         * tree-ssa-live.h: Adjust declarations.
17665         * tree-ssa-coalesce.c: Include explow.h.
17666         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17667         default defs at the entry point.
17668         (dump_part_var_map): New.
17669         (compute_optimized_partition_bases): New, called by...
17670         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17671         of compute_samebase_partition_bases.  Adjust.
17672         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17673         * cfgexpand.c (leader_merge): New.
17674         (get_rtl_for_parm_ssa_default_def): New.
17675         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17676         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17677         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17678         redundant MEM attr setting.
17679         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17680         from...
17681         (expand_one_stack_var): ... this.  New wrapper to check and
17682         skip already expanded SSA partitions.
17683         (record_alignment_for_reg_var): New, factored out of...
17684         (expand_one_var): ... this.
17685         (expand_one_ssa_partition): New.
17686         (adjust_one_expanded_partition_var): New.
17687         (expand_one_register_var): Check and skip already expanded SSA
17688         partitions.
17689         (expand_used_vars): Don't create DECLs for anonymous SSA
17690         names.  Expand all SSA partitions, then adjust all SSA names.
17691         (pass::execute): Replace the loops that set
17692         SA.partition_to_pseudo from partition leaders and cleared
17693         DECL_RTL for multi-location variables, and that which used to
17694         rename vars and set attrs, with one that clears DECL_RTL and
17695         checks that PARMs and RESULTs default_defs match DECL_RTL.
17696         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17697         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17698         * explow.c (promote_ssa_mode): New.
17699         * explow.h (promote_ssa_mode): Declare.
17700         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17701         * function.c: Include cfgexpand.h.
17702         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17703         (use_register_for_parm_decl): Wrapper for the above to
17704         special-case the result_ptr.
17705         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17706         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17707         multiple locations.
17708         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17709         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17710         (assign_parm_setup_block): Prefer SSA-assigned location.
17711         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17712         if stack_parm is NULL.
17713         (assign_parm_setup_stack): Prefer SSA-assigned location.
17714         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17715         rtl before testing for pointer bounds.  Special-case result_ptr.
17716         (expand_function_start): Maybe reset DECL_RTL of result.
17717         Prefer SSA-assigned location for result and static chain.
17718         Factor out DECL_RESULT and SET_DECL_RTL.
17719         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17720         anonymous SSA names.  Use promote_ssa_mode.
17721         (get_temp_reg): Likewise.
17722         (remove_ssa_form): Adjust.
17723         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17724         and get its reg_usage for reg invalidation.
17725         (compute_bb_dataflow): Pass it insn.
17726         (emit_notes_in_bb): Likewise.
17727         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17728         fail assert on conversion between unsigned types.
17729
17730 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17731
17732         PR debug/58315
17733         * tree-inline.c (reset_debug_binding): New.
17734         (reset_debug_bindings): Likewise.
17735         (expand_call_inline): Call it.
17736
17737 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17738
17739         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17740         TYPE_STRING_FLAG.
17741
17742 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17743
17744         * lto-streamer-out.c (lto_output_location): Stream
17745         reserved locations correctly.
17746         * lto-streamer-in.c (lto_output_location): Likewise.
17747
17748 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
17749
17750         * coretypes.h: Include hash-table.h and hash-set.h for host files.
17751         * ggc.h: Don't include statistics.h>
17752         * hash-map.h: Remove all includes.
17753         * hash-set.h: Likewise.
17754         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17755         the include list. Remove <new>.
17756         * inchash.h: Remove all includes.
17757         * mem-stats.h: Likewise.
17758         * vec.h: No special processing for generators or ggc.
17759         * alias.c : Adjust include files.
17760         * alloc-pool.c : Likewise.
17761         * alloc-pool.h : Likewise.
17762         * asan.c : Likewise.
17763         * attribs.c : Likewise.
17764         * auto-inc-dec.c : Likewise.
17765         * auto-profile.c : Likewise.
17766         * bb-reorder.c : Likewise.
17767         * bitmap.c : Likewise.
17768         * bitmap.h : Likewise.
17769         * bt-load.c : Likewise.
17770         * builtins.c : Likewise.
17771         * caller-save.c : Likewise.
17772         * calls.c : Likewise.
17773         * ccmp.c : Likewise.
17774         * cfg.c : Likewise.
17775         * cfganal.c : Likewise.
17776         * cfgbuild.c : Likewise.
17777         * cfgcleanup.c : Likewise.
17778         * cfgexpand.c : Likewise.
17779         * cfghooks.c : Likewise.
17780         * cfgloop.c : Likewise.
17781         * cfgloop.h : Likewise.
17782         * cfgloopanal.c : Likewise.
17783         * cfgloopmanip.c : Likewise.
17784         * cfgrtl.c : Likewise.
17785         * cgraph.c : Likewise.
17786         * cgraphbuild.c : Likewise.
17787         * cgraphclones.c : Likewise.
17788         * cgraphunit.c : Likewise.
17789         * cilk-common.c : Likewise.
17790         * combine-stack-adj.c : Likewise.
17791         * combine.c : Likewise.
17792         * compare-elim.c : Likewise.
17793         * context.c : Likewise.
17794         * convert.c : Likewise.
17795         * coverage.c : Likewise.
17796         * cppbuiltin.c : Likewise.
17797         * cprop.c : Likewise.
17798         * cse.c : Likewise.
17799         * cselib.c : Likewise.
17800         * data-streamer-in.c : Likewise.
17801         * data-streamer-out.c : Likewise.
17802         * data-streamer.c : Likewise.
17803         * data-streamer.h : Likewise.
17804         * dbxout.c : Likewise.
17805         * dce.c : Likewise.
17806         * ddg.c : Likewise.
17807         * debug.c : Likewise.
17808         * df-core.c : Likewise.
17809         * df-problems.c : Likewise.
17810         * df-scan.c : Likewise.
17811         * df.h : Likewise.
17812         * dfp.c : Likewise.
17813         * dojump.c : Likewise.
17814         * dominance.c : Likewise.
17815         * domwalk.c : Likewise.
17816         * double-int.c : Likewise.
17817         * dse.c : Likewise.
17818         * dumpfile.c : Likewise.
17819         * dwarf2asm.c : Likewise.
17820         * dwarf2cfi.c : Likewise.
17821         * dwarf2out.c : Likewise.
17822         * emit-rtl.c : Likewise.
17823         * et-forest.c : Likewise.
17824         * except.c : Likewise.
17825         * except.h : Likewise.
17826         * explow.c : Likewise.
17827         * expmed.c : Likewise.
17828         * expr.c : Likewise.
17829         * final.c : Likewise.
17830         * fixed-value.c : Likewise.
17831         * fold-const.c : Likewise.
17832         * function.c : Likewise.
17833         * fwprop.c : Likewise.
17834         * gcc-plugin.h : Likewise.
17835         * gcc.c : Likewise.
17836         * gcse-common.c : Likewise.
17837         * gcse.c : Likewise.
17838         * genattrtab.c : Likewise.
17839         * genautomata.c : Likewise.
17840         * genconditions.c : Likewise.
17841         * genemit.c : Likewise.
17842         * generic-match-head.c : Likewise.
17843         * genextract.c : Likewise.
17844         * gengtype-state.c : Likewise.
17845         * gengtype.c : Likewise.
17846         * genhooks.c : Likewise.
17847         * genmatch.c : Likewise.
17848         * genmodes.c : Likewise.
17849         * genrecog.c : Likewise.
17850         * gensupport.c : Likewise.
17851         * ggc-common.c : Likewise.
17852         * ggc-internal.h : Likewise.
17853         * ggc-none.c : Likewise.
17854         * ggc-page.c : Likewise.
17855         * gimple-builder.c : Likewise.
17856         * gimple-expr.c : Likewise.
17857         * gimple-fold.c : Likewise.
17858         * gimple-iterator.c : Likewise.
17859         * gimple-low.c : Likewise.
17860         * gimple-match-head.c : Likewise.
17861         * gimple-pretty-print.c : Likewise.
17862         * gimple-ssa-isolate-paths.c : Likewise.
17863         * gimple-ssa-strength-reduction.c : Likewise.
17864         * gimple-ssa.h : Likewise.
17865         * gimple-streamer-in.c : Likewise.
17866         * gimple-streamer-out.c : Likewise.
17867         * gimple-streamer.h : Likewise.
17868         * gimple-walk.c : Likewise.
17869         * gimple.c : Likewise.
17870         * gimplify-me.c : Likewise.
17871         * gimplify.c : Likewise.
17872         * godump.c : Likewise.
17873         * graph.c : Likewise.
17874         * graphds.c : Likewise.
17875         * graphite-blocking.c : Likewise.
17876         * graphite-dependences.c : Likewise.
17877         * graphite-interchange.c : Likewise.
17878         * graphite-isl-ast-to-gimple.c : Likewise.
17879         * graphite-optimize-isl.c : Likewise.
17880         * graphite-poly.c : Likewise.
17881         * graphite-scop-detection.c : Likewise.
17882         * graphite-sese-to-poly.c : Likewise.
17883         * graphite.c : Likewise.
17884         * haifa-sched.c : Likewise.
17885         * hard-reg-set.h : Likewise.
17886         * hw-doloop.c : Likewise.
17887         * ifcvt.c : Likewise.
17888         * inchash.c : Likewise.
17889         * incpath.c : Likewise.
17890         * init-regs.c : Likewise.
17891         * input.c : Likewise.
17892         * internal-fn.c : Likewise.
17893         * ipa-chkp.c : Likewise.
17894         * ipa-comdats.c : Likewise.
17895         * ipa-cp.c : Likewise.
17896         * ipa-devirt.c : Likewise.
17897         * ipa-icf-gimple.c : Likewise.
17898         * ipa-icf.c : Likewise.
17899         * ipa-inline-analysis.c : Likewise.
17900         * ipa-inline-transform.c : Likewise.
17901         * ipa-inline.c : Likewise.
17902         * ipa-polymorphic-call.c : Likewise.
17903         * ipa-profile.c : Likewise.
17904         * ipa-prop.c : Likewise.
17905         * ipa-pure-const.c : Likewise.
17906         * ipa-ref.c : Likewise.
17907         * ipa-reference.c : Likewise.
17908         * ipa-split.c : Likewise.
17909         * ipa-utils.c : Likewise.
17910         * ipa-visibility.c : Likewise.
17911         * ipa.c : Likewise.
17912         * ira-build.c : Likewise.
17913         * ira-color.c : Likewise.
17914         * ira-conflicts.c : Likewise.
17915         * ira-costs.c : Likewise.
17916         * ira-emit.c : Likewise.
17917         * ira-lives.c : Likewise.
17918         * ira.c : Likewise.
17919         * jump.c : Likewise.
17920         * langhooks.c : Likewise.
17921         * lcm.c : Likewise.
17922         * libfuncs.h : Likewise.
17923         * lists.c : Likewise.
17924         * loop-doloop.c : Likewise.
17925         * loop-init.c : Likewise.
17926         * loop-invariant.c : Likewise.
17927         * loop-iv.c : Likewise.
17928         * loop-unroll.c : Likewise.
17929         * lower-subreg.c : Likewise.
17930         * lra-assigns.c : Likewise.
17931         * lra-coalesce.c : Likewise.
17932         * lra-constraints.c : Likewise.
17933         * lra-eliminations.c : Likewise.
17934         * lra-lives.c : Likewise.
17935         * lra-remat.c : Likewise.
17936         * lra-spills.c : Likewise.
17937         * lra.c : Likewise.
17938         * lto-cgraph.c : Likewise.
17939         * lto-compress.c : Likewise.
17940         * lto-opts.c : Likewise.
17941         * lto-section-in.c : Likewise.
17942         * lto-section-out.c : Likewise.
17943         * lto-streamer-in.c : Likewise.
17944         * lto-streamer-out.c : Likewise.
17945         * lto-streamer.c : Likewise.
17946         * lto-streamer.h : Likewise.
17947         * mcf.c : Likewise.
17948         * mode-switching.c : Likewise.
17949         * modulo-sched.c : Likewise.
17950         * omega.c : Likewise.
17951         * omp-low.c : Likewise.
17952         * optabs.c : Likewise.
17953         * opts-global.c : Likewise.
17954         * opts.h : Likewise.
17955         * passes.c : Likewise.
17956         * plugin.c : Likewise.
17957         * postreload-gcse.c : Likewise.
17958         * postreload.c : Likewise.
17959         * predict.c : Likewise.
17960         * print-rtl.c : Likewise.
17961         * print-tree.c : Likewise.
17962         * profile.c : Likewise.
17963         * read-md.c : Likewise.
17964         * read-md.h : Likewise.
17965         * read-rtl.c : Likewise.
17966         * real.c : Likewise.
17967         * realmpfr.c : Likewise.
17968         * recog.c : Likewise.
17969         * ree.c : Likewise.
17970         * reg-stack.c : Likewise.
17971         * regcprop.c : Likewise.
17972         * reginfo.c : Likewise.
17973         * regrename.c : Likewise.
17974         * regstat.c : Likewise.
17975         * reload.c : Likewise.
17976         * reload1.c : Likewise.
17977         * reorg.c : Likewise.
17978         * resource.c : Likewise.
17979         * rtl-chkp.c : Likewise.
17980         * rtl.c : Likewise.
17981         * rtl.h : Likewise.
17982         * rtlanal.c : Likewise.
17983         * rtlhash.c : Likewise.
17984         * rtlhash.h : Likewise.
17985         * rtlhooks.c : Likewise.
17986         * sanopt.c : Likewise.
17987         * sched-deps.c : Likewise.
17988         * sched-ebb.c : Likewise.
17989         * sched-rgn.c : Likewise.
17990         * sched-vis.c : Likewise.
17991         * sdbout.c : Likewise.
17992         * sel-sched-dump.c : Likewise.
17993         * sel-sched-ir.c : Likewise.
17994         * sel-sched-ir.h : Likewise.
17995         * sel-sched.c : Likewise.
17996         * sese.c : Likewise.
17997         * shrink-wrap.c : Likewise.
17998         * shrink-wrap.h : Likewise.
17999         * simplify-rtx.c : Likewise.
18000         * stack-ptr-mod.c : Likewise.
18001         * statistics.c : Likewise.
18002         * stmt.c : Likewise.
18003         * stor-layout.c : Likewise.
18004         * store-motion.c : Likewise.
18005         * stringpool.c : Likewise.
18006         * symtab.c : Likewise.
18007         * target-globals.c : Likewise.
18008         * targhooks.c : Likewise.
18009         * tlink.c : Likewise.
18010         * toplev.c : Likewise.
18011         * tracer.c : Likewise.
18012         * trans-mem.c : Likewise.
18013         * tree-affine.c : Likewise.
18014         * tree-affine.h : Likewise.
18015         * tree-browser.c : Likewise.
18016         * tree-call-cdce.c : Likewise.
18017         * tree-cfg.c : Likewise.
18018         * tree-cfgcleanup.c : Likewise.
18019         * tree-chkp-opt.c : Likewise.
18020         * tree-chkp.c : Likewise.
18021         * tree-chrec.c : Likewise.
18022         * tree-complex.c : Likewise.
18023         * tree-data-ref.c : Likewise.
18024         * tree-dfa.c : Likewise.
18025         * tree-diagnostic.c : Likewise.
18026         * tree-dump.c : Likewise.
18027         * tree-eh.c : Likewise.
18028         * tree-eh.h : Likewise.
18029         * tree-emutls.c : Likewise.
18030         * tree-hasher.h : Likewise.
18031         * tree-if-conv.c : Likewise.
18032         * tree-inline.c : Likewise.
18033         * tree-inline.h : Likewise.
18034         * tree-into-ssa.c : Likewise.
18035         * tree-iterator.c : Likewise.
18036         * tree-loop-distribution.c : Likewise.
18037         * tree-nested.c : Likewise.
18038         * tree-nrv.c : Likewise.
18039         * tree-object-size.c : Likewise.
18040         * tree-outof-ssa.c : Likewise.
18041         * tree-parloops.c : Likewise.
18042         * tree-phinodes.c : Likewise.
18043         * tree-predcom.c : Likewise.
18044         * tree-pretty-print.c : Likewise.
18045         * tree-profile.c : Likewise.
18046         * tree-scalar-evolution.c : Likewise.
18047         * tree-sra.c : Likewise.
18048         * tree-ssa-address.c : Likewise.
18049         * tree-ssa-alias.c : Likewise.
18050         * tree-ssa-ccp.c : Likewise.
18051         * tree-ssa-coalesce.c : Likewise.
18052         * tree-ssa-copy.c : Likewise.
18053         * tree-ssa-copyrename.c : Likewise.
18054         * tree-ssa-dce.c : Likewise.
18055         * tree-ssa-dom.c : Likewise.
18056         * tree-ssa-dse.c : Likewise.
18057         * tree-ssa-forwprop.c : Likewise.
18058         * tree-ssa-ifcombine.c : Likewise.
18059         * tree-ssa-live.c : Likewise.
18060         * tree-ssa-loop-ch.c : Likewise.
18061         * tree-ssa-loop-im.c : Likewise.
18062         * tree-ssa-loop-ivcanon.c : Likewise.
18063         * tree-ssa-loop-ivopts.c : Likewise.
18064         * tree-ssa-loop-manip.c : Likewise.
18065         * tree-ssa-loop-niter.c : Likewise.
18066         * tree-ssa-loop-prefetch.c : Likewise.
18067         * tree-ssa-loop-unswitch.c : Likewise.
18068         * tree-ssa-loop.c : Likewise.
18069         * tree-ssa-math-opts.c : Likewise.
18070         * tree-ssa-operands.c : Likewise.
18071         * tree-ssa-phiopt.c : Likewise.
18072         * tree-ssa-phiprop.c : Likewise.
18073         * tree-ssa-pre.c : Likewise.
18074         * tree-ssa-propagate.c : Likewise.
18075         * tree-ssa-reassoc.c : Likewise.
18076         * tree-ssa-sccvn.c : Likewise.
18077         * tree-ssa-scopedtables.c : Likewise.
18078         * tree-ssa-sink.c : Likewise.
18079         * tree-ssa-strlen.c : Likewise.
18080         * tree-ssa-structalias.c : Likewise.
18081         * tree-ssa-tail-merge.c : Likewise.
18082         * tree-ssa-ter.c : Likewise.
18083         * tree-ssa-threadedge.c : Likewise.
18084         * tree-ssa-threadupdate.c : Likewise.
18085         * tree-ssa-uncprop.c : Likewise.
18086         * tree-ssa-uninit.c : Likewise.
18087         * tree-ssa.c : Likewise.
18088         * tree-ssanames.c : Likewise.
18089         * tree-stdarg.c : Likewise.
18090         * tree-streamer-in.c : Likewise.
18091         * tree-streamer-out.c : Likewise.
18092         * tree-streamer.c : Likewise.
18093         * tree-streamer.h : Likewise.
18094         * tree-switch-conversion.c : Likewise.
18095         * tree-tailcall.c : Likewise.
18096         * tree-vect-data-refs.c : Likewise.
18097         * tree-vect-generic.c : Likewise.
18098         * tree-vect-loop-manip.c : Likewise.
18099         * tree-vect-loop.c : Likewise.
18100         * tree-vect-patterns.c : Likewise.
18101         * tree-vect-slp.c : Likewise.
18102         * tree-vect-stmts.c : Likewise.
18103         * tree-vectorizer.c : Likewise.
18104         * tree-vectorizer.h : Likewise.
18105         * tree-vrp.c : Likewise.
18106         * tree.c : Likewise.
18107         * tsan.c : Likewise.
18108         * ubsan.c : Likewise.
18109         * valtrack.c : Likewise.
18110         * valtrack.h : Likewise.
18111         * value-prof.c : Likewise.
18112         * var-tracking.c : Likewise.
18113         * varasm.c : Likewise.
18114         * varpool.c : Likewise.
18115         * vec.c: Likewise.
18116         * vmsdbgout.c : Likewise.
18117         * vtable-verify.c : Likewise.
18118         * vtable-verify.h : Likewise.
18119         * web.c : Likewise.
18120         * wide-int.cc : Likewise.
18121         * xcoffout.c : Likewise.
18122         * config/aarch64/aarch64-builtins.c : Likewise.
18123         * config/aarch64/aarch64.c : Likewise.
18124         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18125         * config/alpha/alpha.c : Likewise.
18126         * config/arc/arc.c : Likewise.
18127         * config/arm/aarch-common.c : Likewise.
18128         * config/arm/arm-builtins.c : Likewise.
18129         * config/arm/arm-c.c : Likewise.
18130         * config/arm/arm.c : Likewise.
18131         * config/avr/avr-c.c : Likewise.
18132         * config/avr/avr-log.c : Likewise.
18133         * config/avr/avr.c : Likewise.
18134         * config/bfin/bfin.c : Likewise.
18135         * config/c6x/c6x.c : Likewise.
18136         * config/cr16/cr16.c : Likewise.
18137         * config/cris/cris.c : Likewise.
18138         * config/darwin-c.c : Likewise.
18139         * config/darwin.c : Likewise.
18140         * config/default-c.c : Likewise.
18141         * config/epiphany/epiphany.c : Likewise.
18142         * config/epiphany/mode-switch-use.c : Likewise.
18143         * config/epiphany/resolve-sw-modes.c : Likewise.
18144         * config/fr30/fr30.c : Likewise.
18145         * config/frv/frv.c : Likewise.
18146         * config/ft32/ft32.c : Likewise.
18147         * config/glibc-c.c : Likewise.
18148         * config/h8300/h8300.c : Likewise.
18149         * config/i386/i386-c.c : Likewise.
18150         * config/i386/i386.c : Likewise.
18151         * config/i386/msformat-c.c : Likewise.
18152         * config/i386/winnt-cxx.c : Likewise.
18153         * config/i386/winnt-stubs.c : Likewise.
18154         * config/i386/winnt.c : Likewise.
18155         * config/ia64/ia64-c.c : Likewise.
18156         * config/ia64/ia64.c : Likewise.
18157         * config/iq2000/iq2000.c : Likewise.
18158         * config/lm32/lm32.c : Likewise.
18159         * config/m32c/m32c-pragma.c : Likewise.
18160         * config/m32c/m32c.c : Likewise.
18161         * config/m32r/m32r.c : Likewise.
18162         * config/m68k/m68k.c : Likewise.
18163         * config/mcore/mcore.c : Likewise.
18164         * config/mep/mep-pragma.c : Likewise.
18165         * config/mep/mep.c : Likewise.
18166         * config/microblaze/microblaze-c.c : Likewise.
18167         * config/microblaze/microblaze.c : Likewise.
18168         * config/mips/mips.c : Likewise.
18169         * config/mmix/mmix.c : Likewise.
18170         * config/mn10300/mn10300.c : Likewise.
18171         * config/moxie/moxie.c : Likewise.
18172         * config/msp430/msp430-c.c : Likewise.
18173         * config/msp430/msp430.c : Likewise.
18174         * config/nds32/nds32-cost.c : Likewise.
18175         * config/nds32/nds32-fp-as-gp.c : Likewise.
18176         * config/nds32/nds32-intrinsic.c : Likewise.
18177         * config/nds32/nds32-isr.c : Likewise.
18178         * config/nds32/nds32-md-auxiliary.c : Likewise.
18179         * config/nds32/nds32-memory-manipulation.c : Likewise.
18180         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18181         * config/nds32/nds32-predicates.c : Likewise.
18182         * config/nds32/nds32.c : Likewise.
18183         * config/nios2/nios2.c : Likewise.
18184         * config/nvptx/nvptx.c : Likewise.
18185         * config/pa/pa.c : Likewise.
18186         * config/pdp11/pdp11.c : Likewise.
18187         * config/rl78/rl78-c.c : Likewise.
18188         * config/rl78/rl78.c : Likewise.
18189         * config/rs6000/rs6000-c.c : Likewise.
18190         * config/rs6000/rs6000.c : Likewise.
18191         * config/rx/rx.c : Likewise.
18192         * config/s390/s390-c.c : Likewise.
18193         * config/s390/s390.c : Likewise.
18194         * config/sh/sh-c.c : Likewise.
18195         * config/sh/sh-mem.cc : Likewise.
18196         * config/sh/sh.c : Likewise.
18197         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18198         * config/sh/sh_treg_combine.cc : Likewise.
18199         * config/sol2-c.c : Likewise.
18200         * config/sol2-cxx.c : Likewise.
18201         * config/sol2-stubs.c : Likewise.
18202         * config/sol2.c : Likewise.
18203         * config/sparc/sparc-c.c : Likewise.
18204         * config/sparc/sparc.c : Likewise.
18205         * config/spu/spu-c.c : Likewise.
18206         * config/spu/spu.c : Likewise.
18207         * config/stormy16/stormy16.c : Likewise.
18208         * config/tilegx/mul-tables.c : Likewise.
18209         * config/tilegx/tilegx-c.c : Likewise.
18210         * config/tilegx/tilegx.c : Likewise.
18211         * config/tilepro/mul-tables.c : Likewise.
18212         * config/tilepro/tilepro-c.c : Likewise.
18213         * config/tilepro/tilepro.c : Likewise.
18214         * config/v850/v850-c.c : Likewise.
18215         * config/v850/v850.c : Likewise.
18216         * config/vax/vax.c : Likewise.
18217         * config/visium/visium.c : Likewise.
18218         * config/vms/vms-c.c : Likewise.
18219         * config/vms/vms.c : Likewise.
18220         * config/vxworks.c : Likewise.
18221         * config/winnt-c.c : Likewise.
18222         * config/xtensa/xtensa.c : Likewise.
18223
18224 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
18225
18226         PR lto/65378
18227         * ipa-utils.h (warn_types_mismatch): Update prototype.
18228         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18229         parameters.
18230         (type_mismatch_p): New function.
18231         (warn_types_mismatch): Reorg to work better on non-C++ types.
18232         (odr_types_equivalent_p): Add loc1/loc2 parameters.
18233         (add_type_duplicate): Update.
18234
18235 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18236
18237         PR rtl-optimization/66444
18238         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18239         call_used_regs.
18240
18241 2015-06-08  Richard Biener  <rguenther@suse.de>
18242
18243         PR tree-optimization/66422
18244         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18245         block after inserted gcc_unreachable.
18246
18247 2015-06-08  Nick Clifton  <nickc@redhat.com>
18248
18249         * config/rx/rx.c (rx_function_value): Do not promote vector types.
18250         (rx_promote_function_mode): Likewise.
18251         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18252
18253 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
18254
18255         * genattrtab.c (insn_alternatives): Change type from int *
18256         to uint64_t *.
18257         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
18258         (get_attr_value): Change type of num_alt to uint64_t.
18259         (compute_alternative_mask): Change return type from
18260         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
18261         (make_alternative_compare, mk_attr_alt): Change argument type
18262         from int to uint64_t.
18263         (simplify_test_exp): Change type of i from int to uint64_t.
18264         Shift ((uint64_t) 1) instead of 1 up.
18265         (main): Adjust oballocvec first argument from int to uint64_t.
18266         Shift ((uint64_t) 1) instead of 1 up.
18267
18268 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
18269
18270         PR other/65366
18271         * gdbhooks.py: Import sys.
18272         (intptr): New function.  Replace int(...) by intptr(...).
18273
18274 2015-06-08  Richard Biener  <rguenther@suse.de>
18275
18276         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18277         adjustment for gaps at the end of a SLP load group properly.
18278         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18279         all permutations we can generate.
18280         (vect_transform_slp_perm_load): Use the correct group-size.
18281
18282 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
18283
18284         * genmatch.c (expr::gen_transform): For conditions, guess the type
18285         from the second operand.
18286
18287 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18288
18289         PR tree-optimization/66442
18290         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18291         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18292         if the loop latch is not a singleton.  Use
18293         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18294
18295 2015-06-08  Marek Polacek  <polacek@redhat.com>
18296
18297         PR sanitizer/66452
18298         * toplev.c (check_global_declaration): Don't warn about artificial
18299         decls.
18300
18301 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18302
18303         PR tree-optimization/66436
18304         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18305         dump file.
18306         * gimplify.c: Add tree-dump.h include.
18307         (gimplify_function_tree): Dump function to gimple dump file.
18308         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18309         dump file.
18310
18311 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18312
18313         PR tree-optimization/66435
18314         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18315         function.
18316
18317 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
18318
18319         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18320         of ptr_type_node to not be ptr_to_node.
18321         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18322         TREE_TYPE of pointers.
18323         * gimple-expr.c (useless_type_conversion): Reorder the check for
18324         function pointers and TYPE_CANONICAL.
18325
18326 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
18327
18328         PR bootstrap/66319
18329         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18330         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18331         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18332         later.
18333         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18334         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18335         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18336         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18337         and non iso if unix2003.
18338
18339 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
18340
18341         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18342
18343 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
18344
18345         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18346         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18347         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18348         except.c, final.c, function.c, gcse-common.c, genemit.c,
18349         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18350         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18351         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18352         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18353         more derived ones.
18354
18355 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
18356
18357         * combine.c (combine_split_insns): Remove cast.
18358         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18359         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18360         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18361         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18362         * genemit.c (gen_split): Change return type of generated functions to
18363         rtx_insn.
18364         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18365         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18366         gen_peephole2_* functions.
18367         (print_subroutine, main): Likewise.
18368         * recog.c (peephole2_optimize): Remove cast.
18369         (peep2_next_insn): Promote return type to rtx_insn.
18370         * recog.h (peep2_next_insn): Fix prototype.
18371         * rtl.h (try_split, split_insns): Likewise.
18372
18373 2015-06-06  DJ Delorie  <dj@redhat.com>
18374
18375         * config/msp430/msp430.c (msp430_asm_integer): Support addition
18376         and subtraction too.
18377
18378 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18379
18380         PR target/66410
18381         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18382         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18383         instead of Snd.  Disparage Sid/z alternative with '^'.
18384
18385 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
18386
18387         * dwarf2out.c: Remove deferred_locations*.
18388         (dwarf2_debug_hooks): Add early_finish hook.
18389         Remove global_decl hook.
18390         Add early_global_decl and late_global_decl hook.
18391         New global early_dwarf.
18392         New structure set_early_dwarf.
18393         (output_die): Indicate whether a DIE was generated early
18394         when generating assembly with -dA.
18395         (struct limbo_die_struct): Document created_for field.
18396         Remove file_table_last_lookup.
18397         (remove_AT): Return TRUE if successful.
18398         (remove_child_TAG): Clear die_parent.
18399         (reparent_child): New function abstracted from...
18400         (splice_child_die): ...here.
18401         (new_die): ICE if a DIE ends up in limbo too late.
18402         (check_die): New.
18403         (defer_location): Remove.
18404         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18405         (fill_variable_array_bounds): New.
18406         (decl_start_label): Call fill_variable_array_bounds.
18407         (gen_formal_parameter_die): Rewrite to reuse previously generated
18408         DIEs.
18409         (gen_subprogram_die): Same.
18410         (gen_variable_die): Same.
18411         (gen_const_die): Same.
18412         (gen_label_die): Same.
18413         (gen_lexical_block_die): Same.
18414         (decl_will_get_specification_p): New.
18415         (local_function_static): New.
18416         (gen_struct_or_union_type_die): Fill in variable-length fields.
18417         (gen_typedef_die): Fill in variable-length typedefs.
18418         (gen_tagged_type_die): Gracefully return on error_mark_node.
18419         Handle re-entrancy.
18420         (gen_type_die_with_usage): Handle variable-length types.
18421         Remove duplicate code for ARRAY_TYPE case.
18422         (process_scope_var): Only process imported modules during early
18423         dwarf.
18424         (dwarf2out_early_global_decl): New.
18425         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18426         (dwarf2out_type_decl): Set early_dwarf while calling
18427         dwarf2out_decl.
18428         (dwarf2out_decl): Verify that we did not recreate a previously
18429         generated DIE.
18430         Do not return on DECL_EXTERNALs in VAR_DECLs.
18431         Abstract some code to local_function_static.
18432         (lookup_filename): Remove use of file_table_last_lookup.
18433         Gracefully exit on missing file_name.
18434         (dwarf2out_finish): Verify limbo list.
18435         Remove deferred_locations_list use.
18436         Move deferred_asm_name and limbo flushing to...
18437         (dwarf2out_early_finish): ...here.  New.
18438         (dwarf2out_c_finalize): Remove set of deferred_location_list,
18439         deferred_asm_name, and file_table_last_lookup.
18440         * cgraph.h (referred_to_p): Add default argument.
18441         * cgraphunit.c (referred_to_p): Add and handle include_self
18442         argument.
18443         (analyze_functions): Add first_time argument.
18444         Call check_global_declaration for all symbols.
18445         Call late_global_decl for nodes for moribund nodes.
18446         (finalize_compilation_unit): Add new argument to
18447         analyze_functions.
18448         Call early_global_decl for functions.
18449         Call early_finish debug hook.
18450         * dbxout.c (dbxout_early_global_decl): New.
18451         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
18452         (dbx_debug_hooks): Add new hooks.
18453         (xcoff_debug_hooks): Same.
18454         * debug.c (do_nothing_debug_hooks): Add early_finish field.
18455         Add early and late debug hooks.
18456         Remove global_decl hook.
18457         * debug.h (struct gcc_debug_hooks): Add early_finish,
18458         early_global_decl, and late_global_decl fields.
18459         Remove global_decl field.
18460         Document gcc_debug_hooks.
18461         * gengtype.c (output_typename): Remove.
18462         * godump.c (go_early_global_decl): New.
18463         (go_late_global_decl): New.
18464         (go_global_decl): Remove.
18465         (dump_go_spec_init): Remove global_decl.  Add
18466         {early,late}_global_decl.
18467         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18468         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18469         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18470         (write_global_declarations): Remove.
18471         (global_decl_processing): New.
18472         * langhooks.h (struct lang_hooks_for_decls): Remove
18473         final_write_globals field.
18474         Add post_compilation_parsing_cleanups field.
18475         * passes.c (rest_of_decl_compilation): Call early_global_decl.
18476         * sdbout.c: Add early and late_global_decl hooks.  Remove
18477         sdbout_global_decl hook.
18478         Add early_finish field for sdb_debug_hooks.
18479         (sdbout_global_decl): Remove.
18480         (sdbout_early_global_decl): New.
18481         (sdbout_late_global_decl): New.
18482         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18483         * toplev.c (check_global_declaration): Rename from
18484         check_global_declaration_1.
18485         Adapt to use symtab infrastructure.
18486         (check_global_declarations): Remove.
18487         (emit_debug_global_declarations): Remove.
18488         (compile_file): Remove call to final_write_globals langhook.
18489         Run the actual compilation process.
18490         Perform any post compilation parser cleanups.
18491         Generate late debug info.
18492         * toplev.h (check_global_declaration): New.
18493         (check_global_declaration_1): Remove.
18494         (check_global_declarations): Remove.
18495         (write_global_declarations): Remove.
18496         (emit_debug_global_declarations): Remove.
18497         (global_decl_processing): New.
18498         * tree-core.h (struct tree_block): Add DIE field.
18499         * tree.h (BLOCK_DIE): New.
18500         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18501         throughout.
18502         (vmsdbgout_early_global_decl): New.
18503         (vmsdbgout_late_global_decl): New.
18504         Add early_finish debug hook field to vmsdbg_debug_hooks.
18505         Remove vmsdbgout_decl to vmsdbgout_function_decl.
18506         Add early and late_global_decl debug hooks.
18507
18508 2015-06-05  Julian Brown  <julian@codesourcery.com>
18509             Sandra Loosemore  <sandra@codesourcery.com>
18510
18511         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18512         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18513         to print-sysroot-suffix.sh script.
18514
18515 2015-06-05  Tom de Vries  <tom@codesourcery.com>
18516
18517         merge from gomp4 branch:
18518         2015-05-28  Tom de Vries  <tom@codesourcery.com>
18519
18520         PR tree-optimization/65443
18521         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18522         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18523         (try_transform_to_exit_first_loop_alt): New function.
18524         (transform_to_exit_first_loop): Use
18525         try_transform_to_exit_first_loop_alt.
18526
18527 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
18528
18529         * builtins.c (expand_builtin_atomic_compare_exchange): Call
18530         emit_cmp_and_jump_insns with the mode of target.
18531
18532 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18533
18534         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18535
18536 2015-06-04  DJ Delorie  <dj@redhat.com>
18537
18538         * config/msp430/msp430.md (movsi_s): New.  Special case for
18539         storing a 20-bit symbol into a 32-bit register.
18540         * config/msp430/msp430.c (msp430_subreg): Add support for it.
18541         * config/msp430/predicates.md (msp430_symbol_operand): New.
18542
18543 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
18544
18545         * c-family/c-common.c (noplt): New attribute.
18546         (handle_noplt_attribute): New handler.
18547         * calls.c (prepare_call_address): Check for noplt
18548         attribute.
18549         * config/i386/i386.c (ix86_expand_call): Check
18550         for noplt attribute.
18551         (ix86_nopic_noplt_attribute_p): New function.
18552         (ix86_output_call_insn): Output indirect call for non-pic
18553         no plt calls.
18554         * doc/extend.texi (noplt): Document new attribute.
18555         * doc/invoke.texi: Document new attribute.
18556
18557 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
18558
18559         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18560         real.h, and fixed-value.h when included in host source files.
18561         * double-int.h: Remove redundant #includes listed above.
18562         * fixed-value.h: Likewise.
18563         * real.h: Likewise.
18564         * wide-int.h: Likewise.
18565         * inchash.h: Likewise.
18566         * rtl.h: Add some include files When included from a generator file.
18567         * target.h: Remove wide-int.h and insn-modes.h from the include list.
18568         * internal-fn.h: Don't include coretypes.h.
18569         * alias.c: Adjust includes for restructured coretypes.h.
18570         * asan.c: Likewise.
18571         * attribs.c: Likewise.
18572         * auto-inc-dec.c: Likewise.
18573         * auto-profile.c: Likewise.
18574         * bb-reorder.c: Likewise.
18575         * bt-load.c: Likewise.
18576         * builtins.c: Likewise.
18577         * caller-save.c: Likewise.
18578         * calls.c: Likewise.
18579         * ccmp.c: Likewise.
18580         * cfg.c: Likewise.
18581         * cfganal.c: Likewise.
18582         * cfgbuild.c: Likewise.
18583         * cfgcleanup.c: Likewise.
18584         * cfgexpand.c: Likewise.
18585         * cfghooks.c: Likewise.
18586         * cfgloop.c: Likewise.
18587         * cfgloop.h: Likewise.
18588         * cfgloopanal.c: Likewise.
18589         * cfgloopmanip.c: Likewise.
18590         * cfgrtl.c: Likewise.
18591         * cgraph.c: Likewise.
18592         * cgraphbuild.c: Likewise.
18593         * cgraphclones.c: Likewise.
18594         * cgraphunit.c: Likewise.
18595         * cilk-common.c: Likewise.
18596         * combine-stack-adj.c: Likewise.
18597         * combine.c: Likewise.
18598         * compare-elim.c: Likewise.
18599         * convert.c: Likewise.
18600         * coverage.c: Likewise.
18601         * cppbuiltin.c: Likewise.
18602         * cprop.c: Likewise.
18603         * cse.c: Likewise.
18604         * cselib.c: Likewise.
18605         * data-streamer-in.c: Likewise.
18606         * data-streamer-out.c: Likewise.
18607         * data-streamer.c: Likewise.
18608         * dbxout.c: Likewise.
18609         * dce.c: Likewise.
18610         * ddg.c: Likewise.
18611         * debug.c: Likewise.
18612         * df-core.c: Likewise.
18613         * df-problems.c: Likewise.
18614         * df-scan.c: Likewise.
18615         * df.h: Likewise.
18616         * dfp.c: Likewise.
18617         * dojump.c: Likewise.
18618         * dominance.c: Likewise.
18619         * domwalk.c: Likewise.
18620         * double-int.c: Likewise.
18621         * dse.c: Likewise.
18622         * dumpfile.c: Likewise.
18623         * dwarf2asm.c: Likewise.
18624         * dwarf2cfi.c: Likewise.
18625         * dwarf2out.c: Likewise.
18626         * dwarf2out.h: Likewise.
18627         * emit-rtl.c: Likewise.
18628         * et-forest.c: Likewise.
18629         * except.c: Likewise.
18630         * explow.c: Likewise.
18631         * expmed.c: Likewise.
18632         * expr.c: Likewise.
18633         * final.c: Likewise.
18634         * fixed-value.c: Likewise.
18635         * fold-const.c: Likewise.
18636         * function.c: Likewise.
18637         * fwprop.c: Likewise.
18638         * gcc-plugin.h: Likewise.
18639         * gcse.c: Likewise.
18640         * generic-match-head.c: Likewise.
18641         * ggc-page.c: Likewise.
18642         * gimple-builder.c: Likewise.
18643         * gimple-expr.c: Likewise.
18644         * gimple-fold.c: Likewise.
18645         * gimple-iterator.c: Likewise.
18646         * gimple-low.c: Likewise.
18647         * gimple-match-head.c: Likewise.
18648         * gimple-pretty-print.c: Likewise.
18649         * gimple-ssa-isolate-paths.c: Likewise.
18650         * gimple-ssa-strength-reduction.c: Likewise.
18651         * gimple-streamer-in.c: Likewise.
18652         * gimple-streamer-out.c: Likewise.
18653         * gimple-streamer.h: Likewise.
18654         * gimple-walk.c: Likewise.
18655         * gimple.c: Likewise.
18656         * gimplify-me.c: Likewise.
18657         * gimplify.c: Likewise.
18658         * godump.c: Likewise.
18659         * graph.c: Likewise.
18660         * graphite-blocking.c: Likewise.
18661         * graphite-dependences.c: Likewise.
18662         * graphite-interchange.c: Likewise.
18663         * graphite-isl-ast-to-gimple.c: Likewise.
18664         * graphite-optimize-isl.c: Likewise.
18665         * graphite-poly.c: Likewise.
18666         * graphite-scop-detection.c: Likewise.
18667         * graphite-sese-to-poly.c: Likewise.
18668         * graphite.c: Likewise.
18669         * haifa-sched.c: Likewise.
18670         * hooks.h: Likewise.
18671         * hw-doloop.c: Likewise.
18672         * ifcvt.c: Likewise.
18673         * incpath.c: Likewise.
18674         * init-regs.c: Likewise.
18675         * internal-fn.c: Likewise.
18676         * ipa-chkp.c: Likewise.
18677         * ipa-comdats.c: Likewise.
18678         * ipa-cp.c: Likewise.
18679         * ipa-devirt.c: Likewise.
18680         * ipa-icf-gimple.c: Likewise.
18681         * ipa-icf.c: Likewise.
18682         * ipa-inline-analysis.c: Likewise.
18683         * ipa-inline-transform.c: Likewise.
18684         * ipa-inline.c: Likewise.
18685         * ipa-polymorphic-call.c: Likewise.
18686         * ipa-profile.c: Likewise.
18687         * ipa-prop.c: Likewise.
18688         * ipa-pure-const.c: Likewise.
18689         * ipa-ref.c: Likewise.
18690         * ipa-reference.c: Likewise.
18691         * ipa-split.c: Likewise.
18692         * ipa-utils.c: Likewise.
18693         * ipa-visibility.c: Likewise.
18694         * ipa.c: Likewise.
18695         * ira-build.c: Likewise.
18696         * ira-color.c: Likewise.
18697         * ira-conflicts.c: Likewise.
18698         * ira-costs.c: Likewise.
18699         * ira-emit.c: Likewise.
18700         * ira-lives.c: Likewise.
18701         * ira.c: Likewise.
18702         * jump.c: Likewise.
18703         * langhooks.c: Likewise.
18704         * lcm.c: Likewise.
18705         * loop-doloop.c: Likewise.
18706         * loop-init.c: Likewise.
18707         * loop-invariant.c: Likewise.
18708         * loop-iv.c: Likewise.
18709         * loop-unroll.c: Likewise.
18710         * lower-subreg.c: Likewise.
18711         * lra-assigns.c: Likewise.
18712         * lra-coalesce.c: Likewise.
18713         * lra-constraints.c: Likewise.
18714         * lra-eliminations.c: Likewise.
18715         * lra-lives.c: Likewise.
18716         * lra-remat.c: Likewise.
18717         * lra-spills.c: Likewise.
18718         * lra.c: Likewise.
18719         * lto-cgraph.c: Likewise.
18720         * lto-compress.c: Likewise.
18721         * lto-opts.c: Likewise.
18722         * lto-section-in.c: Likewise.
18723         * lto-section-out.c: Likewise.
18724         * lto-streamer-in.c: Likewise.
18725         * lto-streamer-out.c: Likewise.
18726         * lto-streamer.c: Likewise.
18727         * mcf.c: Likewise.
18728         * mode-switching.c: Likewise.
18729         * modulo-sched.c: Likewise.
18730         * omega.c: Likewise.
18731         * omp-low.c: Likewise.
18732         * optabs.c: Likewise.
18733         * opts-global.c: Likewise.
18734         * passes.c: Likewise.
18735         * plugin.c: Likewise.
18736         * postreload-gcse.c: Likewise.
18737         * postreload.c: Likewise.
18738         * predict.c: Likewise.
18739         * print-rtl.c: Likewise.
18740         * print-tree.c: Likewise.
18741         * profile.c: Likewise.
18742         * real.c: Likewise.
18743         * realmpfr.c: Likewise.
18744         * realmpfr.h: Likewise.
18745         * recog.c: Likewise.
18746         * ree.c: Likewise.
18747         * reg-stack.c: Likewise.
18748         * regcprop.c: Likewise.
18749         * reginfo.c: Likewise.
18750         * regrename.c: Likewise.
18751         * regs.h: Likewise.
18752         * regstat.c: Likewise.
18753         * reload.c: Likewise.
18754         * reload1.c: Likewise.
18755         * reorg.c: Likewise.
18756         * resource.c: Likewise.
18757         * rtl-chkp.c: Likewise.
18758         * rtlanal.c: Likewise.
18759         * rtlhooks.c: Likewise.
18760         * sanopt.c: Likewise.
18761         * sched-deps.c: Likewise.
18762         * sched-ebb.c: Likewise.
18763         * sched-rgn.c: Likewise.
18764         * sched-vis.c: Likewise.
18765         * sdbout.c: Likewise.
18766         * sel-sched-dump.c: Likewise.
18767         * sel-sched-ir.c: Likewise.
18768         * sel-sched.c: Likewise.
18769         * sese.c: Likewise.
18770         * shrink-wrap.c: Likewise.
18771         * shrink-wrap.h: Likewise.
18772         * simplify-rtx.c: Likewise.
18773         * stack-ptr-mod.c: Likewise.
18774         * statistics.c: Likewise.
18775         * stmt.c: Likewise.
18776         * stor-layout.c: Likewise.
18777         * store-motion.c: Likewise.
18778         * stringpool.c: Likewise.
18779         * symtab.c: Likewise.
18780         * target-globals.c: Likewise.
18781         * targhooks.c: Likewise.
18782         * toplev.c: Likewise.
18783         * tracer.c: Likewise.
18784         * trans-mem.c: Likewise.
18785         * tree-affine.c: Likewise.
18786         * tree-affine.h: Likewise.
18787         * tree-browser.c: Likewise.
18788         * tree-call-cdce.c: Likewise.
18789         * tree-cfg.c: Likewise.
18790         * tree-cfgcleanup.c: Likewise.
18791         * tree-chkp-opt.c: Likewise.
18792         * tree-chkp.c: Likewise.
18793         * tree-chrec.c: Likewise.
18794         * tree-complex.c: Likewise.
18795         * tree-data-ref.c: Likewise.
18796         * tree-dfa.c: Likewise.
18797         * tree-diagnostic.c: Likewise.
18798         * tree-dump.c: Likewise.
18799         * tree-eh.c: Likewise.
18800         * tree-emutls.c: Likewise.
18801         * tree-if-conv.c: Likewise.
18802         * tree-inline.c: Likewise.
18803         * tree-into-ssa.c: Likewise.
18804         * tree-iterator.c: Likewise.
18805         * tree-loop-distribution.c: Likewise.
18806         * tree-nested.c: Likewise.
18807         * tree-nrv.c: Likewise.
18808         * tree-object-size.c: Likewise.
18809         * tree-outof-ssa.c: Likewise.
18810         * tree-parloops.c: Likewise.
18811         * tree-phinodes.c: Likewise.
18812         * tree-predcom.c: Likewise.
18813         * tree-pretty-print.c: Likewise.
18814         * tree-pretty-print.h: Likewise.
18815         * tree-profile.c: Likewise.
18816         * tree-scalar-evolution.c: Likewise.
18817         * tree-sra.c: Likewise.
18818         * tree-ssa-address.c: Likewise.
18819         * tree-ssa-alias.c: Likewise.
18820         * tree-ssa-ccp.c: Likewise.
18821         * tree-ssa-coalesce.c: Likewise.
18822         * tree-ssa-copy.c: Likewise.
18823         * tree-ssa-copyrename.c: Likewise.
18824         * tree-ssa-dce.c: Likewise.
18825         * tree-ssa-dom.c: Likewise.
18826         * tree-ssa-dse.c: Likewise.
18827         * tree-ssa-forwprop.c: Likewise.
18828         * tree-ssa-ifcombine.c: Likewise.
18829         * tree-ssa-live.c: Likewise.
18830         * tree-ssa-loop-ch.c: Likewise.
18831         * tree-ssa-loop-im.c: Likewise.
18832         * tree-ssa-loop-ivcanon.c: Likewise.
18833         * tree-ssa-loop-ivopts.c: Likewise.
18834         * tree-ssa-loop-manip.c: Likewise.
18835         * tree-ssa-loop-niter.c: Likewise.
18836         * tree-ssa-loop-prefetch.c: Likewise.
18837         * tree-ssa-loop-unswitch.c: Likewise.
18838         * tree-ssa-loop.c: Likewise.
18839         * tree-ssa-loop.h: Likewise.
18840         * tree-ssa-math-opts.c: Likewise.
18841         * tree-ssa-operands.c: Likewise.
18842         * tree-ssa-phiopt.c: Likewise.
18843         * tree-ssa-phiprop.c: Likewise.
18844         * tree-ssa-pre.c: Likewise.
18845         * tree-ssa-propagate.c: Likewise.
18846         * tree-ssa-reassoc.c: Likewise.
18847         * tree-ssa-sccvn.c: Likewise.
18848         * tree-ssa-scopedtables.c: Likewise.
18849         * tree-ssa-sink.c: Likewise.
18850         * tree-ssa-strlen.c: Likewise.
18851         * tree-ssa-structalias.c: Likewise.
18852         * tree-ssa-tail-merge.c: Likewise.
18853         * tree-ssa-ter.c: Likewise.
18854         * tree-ssa-threadedge.c: Likewise.
18855         * tree-ssa-threadupdate.c: Likewise.
18856         * tree-ssa-uncprop.c: Likewise.
18857         * tree-ssa-uninit.c: Likewise.
18858         * tree-ssa.c: Likewise.
18859         * tree-ssanames.c: Likewise.
18860         * tree-stdarg.c: Likewise.
18861         * tree-streamer-in.c: Likewise.
18862         * tree-streamer-out.c: Likewise.
18863         * tree-streamer.c: Likewise.
18864         * tree-switch-conversion.c: Likewise.
18865         * tree-tailcall.c: Likewise.
18866         * tree-vect-data-refs.c: Likewise.
18867         * tree-vect-generic.c: Likewise.
18868         * tree-vect-loop-manip.c: Likewise.
18869         * tree-vect-loop.c: Likewise.
18870         * tree-vect-patterns.c: Likewise.
18871         * tree-vect-slp.c: Likewise.
18872         * tree-vect-stmts.c: Likewise.
18873         * tree-vectorizer.c: Likewise.
18874         * tree-vrp.c: Likewise.
18875         * tree.c: Likewise.
18876         * tsan.c: Likewise.
18877         * ubsan.c: Likewise.
18878         * valtrack.c: Likewise.
18879         * value-prof.c: Likewise.
18880         * var-tracking.c: Likewise.
18881         * varasm.c: Likewise.
18882         * varpool.c: Likewise.
18883         * vmsdbgout.c: Likewise.
18884         * vtable-verify.c: Likewise.
18885         * web.c: Likewise.
18886         * wide-int-print.cc: Likewise.
18887         * wide-int-print.h: Likewise.
18888         * wide-int.cc: Likewise.
18889         * xcoffout.c: Likewise.
18890         * config/aarch64/aarch64-builtins.c: Likewise.
18891         * config/aarch64/aarch64.c: Likewise.
18892         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18893         * config/alpha/alpha.c: Likewise.
18894         * config/arc/arc.c: Likewise.
18895         * config/arm/aarch-common.c: Likewise.
18896         * config/arm/arm-builtins.c: Likewise.
18897         * config/arm/arm-c.c: Likewise.
18898         * config/arm/arm.c: Likewise.
18899         * config/avr/avr-c.c: Likewise.
18900         * config/avr/avr-log.c: Likewise.
18901         * config/avr/avr.c: Likewise.
18902         * config/bfin/bfin.c: Likewise.
18903         * config/c6x/c6x.c: Likewise.
18904         * config/cr16/cr16.c: Likewise.
18905         * config/cris/cris.c: Likewise.
18906         * config/darwin-c.c: Likewise.
18907         * config/darwin.c: Likewise.
18908         * config/default-c.c: Likewise.
18909         * config/epiphany/epiphany.c: Likewise.
18910         * config/epiphany/mode-switch-use.c: Likewise.
18911         * config/epiphany/resolve-sw-modes.c: Likewise.
18912         * config/fr30/fr30.c: Likewise.
18913         * config/frv/frv.c: Likewise.
18914         * config/ft32/ft32.c: Likewise.
18915         * config/glibc-c.c: Likewise.
18916         * config/h8300/h8300.c: Likewise.
18917         * config/i386/i386-c.c: Likewise.
18918         * config/i386/i386.c: Likewise.
18919         * config/i386/msformat-c.c: Likewise.
18920         * config/i386/winnt-cxx.c: Likewise.
18921         * config/i386/winnt-stubs.c: Likewise.
18922         * config/i386/winnt.c: Likewise.
18923         * config/ia64/ia64-c.c: Likewise.
18924         * config/ia64/ia64.c: Likewise.
18925         * config/iq2000/iq2000.c: Likewise.
18926         * config/lm32/lm32.c: Likewise.
18927         * config/m32c/m32c-pragma.c: Likewise.
18928         * config/m32c/m32c.c: Likewise.
18929         * config/m32r/m32r.c: Likewise.
18930         * config/m68k/m68k.c: Likewise.
18931         * config/mcore/mcore.c: Likewise.
18932         * config/mep/mep-pragma.c: Likewise.
18933         * config/mep/mep.c: Likewise.
18934         * config/microblaze/microblaze-c.c: Likewise.
18935         * config/microblaze/microblaze.c: Likewise.
18936         * config/mips/mips.c: Likewise.
18937         * config/mmix/mmix.c: Likewise.
18938         * config/mn10300/mn10300.c: Likewise.
18939         * config/moxie/moxie.c: Likewise.
18940         * config/msp430/msp430-c.c: Likewise.
18941         * config/msp430/msp430.c: Likewise.
18942         * config/nds32/nds32-cost.c: Likewise.
18943         * config/nds32/nds32-fp-as-gp.c: Likewise.
18944         * config/nds32/nds32-intrinsic.c: Likewise.
18945         * config/nds32/nds32-isr.c: Likewise.
18946         * config/nds32/nds32-md-auxiliary.c: Likewise.
18947         * config/nds32/nds32-memory-manipulation.c: Likewise.
18948         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18949         * config/nds32/nds32-predicates.c: Likewise.
18950         * config/nds32/nds32.c: Likewise.
18951         * config/nios2/nios2.c: Likewise.
18952         * config/nvptx/nvptx.c: Likewise.
18953         * config/pa/pa.c: Likewise.
18954         * config/pdp11/pdp11.c: Likewise.
18955         * config/rl78/rl78-c.c: Likewise.
18956         * config/rl78/rl78.c: Likewise.
18957         * config/rs6000/rs6000-c.c: Likewise.
18958         * config/rs6000/rs6000.c: Likewise.
18959         * config/rx/rx.c: Likewise.
18960         * config/s390/s390-c.c: Likewise.
18961         * config/s390/s390.c: Likewise.
18962         * config/sh/sh-c.c: Likewise.
18963         * config/sh/sh-mem.cc: Likewise.
18964         * config/sh/sh.c: Likewise.
18965         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18966         * config/sh/sh_treg_combine.cc: Likewise.
18967         * config/sol2-c.c: Likewise.
18968         * config/sol2-cxx.c: Likewise.
18969         * config/sol2-stubs.c: Likewise.
18970         * config/sol2.c: Likewise.
18971         * config/sparc/sparc-c.c: Likewise.
18972         * config/sparc/sparc.c: Likewise.
18973         * config/spu/spu-c.c: Likewise.
18974         * config/spu/spu.c: Likewise.
18975         * config/stormy16/stormy16.c: Likewise.
18976         * config/tilegx/mul-tables.c: Likewise.
18977         * config/tilegx/tilegx-c.c: Likewise.
18978         * config/tilegx/tilegx.c: Likewise.
18979         * config/tilepro/mul-tables.c: Likewise.
18980         * config/tilepro/tilepro-c.c: Likewise.
18981         * config/tilepro/tilepro.c: Likewise.
18982         * config/v850/v850-c.c: Likewise.
18983         * config/v850/v850.c: Likewise.
18984         * config/vax/vax.c: Likewise.
18985         * config/visium/visium.c: Likewise.
18986         * config/vms/vms-c.c: Likewise.
18987         * config/vms/vms.c: Likewise.
18988         * config/vxworks.c: Likewise.
18989         * config/winnt-c.c: Likewise.
18990         * config/xtensa/xtensa.c: Likewise.
18991         * common/config/bfin/bfin-common.c: Likewise.
18992
18993 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
18994
18995         * tree.h (tree_code_for_canonical_type_merging): New function.
18996         * tree.c (gimple_canonical_types_compatible_p): Use
18997         tree_code_for_canonical_type_merging..
18998
18999 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19000
19001         PR c++/66192
19002         PR target/66200
19003         * doc/tm.texi: Regenerate.
19004         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19005         * target.def (TARGET_RELAXED_ORDERING): Likewise.
19006         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19007         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19008         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19009         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19010         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19011         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19012         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19013
19014 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19015
19016         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19017         register fma steering pass.
19018         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19019         AARCH64_TUNE_FMA_STEERING.
19020
19021 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
19022
19023         * tree.c (verify_type_variant): Verify that type and variant is
19024         compatible.
19025         (gimple_canonical_types_compatible_p): Look for main variants.
19026
19027 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19028
19029         * config.gcc (powerpc*-*-*): Add support for a new configure
19030         option --with-advance-toolchain=<xxx> which overrides using the
19031         default header files, libraries and dynamic linker.
19032
19033         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19034         specs to support the configure --with-advance-toolchain=<xxx>
19035         option.
19036         (INCLUDE_EXTRA_SPEC): Likewise.
19037         (LINK_OS_EXTRA_SPEC32): Likewise.
19038         (LINK_OK_EXTRA_SPEC64): Likewise.
19039         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19040         (DYNAMIC_LINKER_PREFIX): Likewise.
19041         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19042         toolchain support.
19043         (GLIBC_DYNAMIC_LINKER32): Likewise.
19044         (GLIBC_DYNAMIC_LINKER64): Likewise.
19045         (LINK_OS_LINUX_SPEC32): Likewise.
19046         (LINK_OS_LINUX_SPEC64): Likewise.
19047
19048         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19049         configuration option.
19050
19051 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
19052
19053         PR target/66275
19054         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19055         to determine current function ABI.
19056         (ix86_function_value_regno_p): Ditto.
19057
19058 2015-06-03  Martin Liska  <mliska@suse.cz>
19059
19060         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19061         * bitmap.h (struct bitmap_usage): Likewise.
19062         * ggc-common.c (struct ggc_usage): Likewise.
19063         * mem-stats.h (struct mem_location): Likewise.
19064         (struct mem_usage): Likewise.
19065         * vec.c (struct vec_usage): Likewise.
19066
19067 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
19068
19069         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19070         -Bsymbolic.
19071
19072 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
19073
19074         * doc/plugins.texi (enum plugin_event): New event.
19075         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19076         and PLUGIN_FINISH_FUNCTION.
19077         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19078         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19079
19080 2015-06-03  Richard Biener  <rguenther@suse.de>
19081
19082         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19083         compute GROUP_GAP for the first element.
19084         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19085         on in-group gaps.
19086
19087 2015-06-03  Nick Clifton  <nickc@redhat.com>
19088
19089         * config/rl78/rl78-real.md: Add peepholes to avoid a register
19090         copy when calling a function.
19091         * config/rl78/rl78.c (need_to_save): Do not push the frame
19092         pointer in an interrupt handler prologue if it is never used.
19093
19094 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19095
19096         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19097
19098 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
19099
19100         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19101         reference when cloning alias node.
19102
19103 2015-06-03  Martin Liska  <mliska@suse.cz>
19104
19105         * alloc-pool.h (struct pool_usage): Correct space padding.
19106         * ggc-page.c (ggc_print_statistics): Align columns in a report.
19107         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19108         * tree.c (dump_tree_statistics): Align columns in a report.
19109
19110 2015-06-03  Martin Liska  <mliska@suse.cz>
19111
19112         * alloc-pool.c (allocate_pool_descriptor): Remove.
19113         (struct pool_output_info): Likewise.
19114         (print_alloc_pool_statistics): Likewise.
19115         (dump_alloc_pool_statistics): Likewise.
19116         * alloc-pool.h (struct pool_usage): New struct.
19117         (pool_allocator::initialize): Change usage of memory statistics
19118         to a new interface.
19119         (pool_allocator::release): Likewise.
19120         (pool_allocator::allocate): Likewise.
19121         (pool_allocator::remove): Likewise.
19122         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19123         for a pool allocator.
19124         * mem-stats.h (struct mem_location): Add new ctor.
19125         (struct mem_usage): Add counter for number of
19126         instances.
19127         (mem_alloc_description::register_descriptor): New overload of
19128         * mem-stats.h (mem_location::to_string): New function.
19129         * bitmap.h (struct bitmap_usage): Use this new function.
19130         * ggc-common.c (struct ggc_usage): Likewise.
19131         the function.
19132
19133 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19134
19135         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19136         of GCC_INSN_FLAGS_H block.
19137
19138 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19139
19140         * explow.c (plus_constant): Update check after force_const_mem call
19141         to see if the value returned is not a NULL_RTX.
19142
19143 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
19144
19145         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19146         remove instumentation thunks calling reachable functions.
19147         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19148         * lto/lto-partition.c (privatize_symbol_name_1): New.
19149         (privatize_symbol_name): Privatize both decl and orig_decl
19150         names for instrumented functions.
19151         * cgraph.c (cgraph_node::verify_node): Add transparent
19152         alias chain check for instrumented node.
19153
19154 2015-06-03  Marek Polacek  <polacek@redhat.com>
19155
19156         PR c/64223
19157         PR c/29358
19158         * tree.c (attribute_value_equal): Handle attribute format.
19159         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19160
19161 2015-06-03  Richard Biener  <rguenther@suse.de>
19162
19163         PR tree-optimization/63916
19164         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19165         Forward-propagate non-invariant addresses by splicing their
19166         reference ops if the result isn't going to be used by PRE.
19167         (vn_reference_lookup_3): Remove pointless assert.
19168
19169 2015-06-03  Richard Biener  <rguenther@suse.de>
19170
19171         PR tree-optimization/66375
19172         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19173         add to the evolution before following SSA edges.
19174
19175 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
19176
19177         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19178         (dump_use, dump_cand, find_induction_variables): Pass new argument
19179         to dump_iv.
19180         (record_use): Preserve the ssa name information in IV.
19181
19182 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19183
19184         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19185         NO_MODE_TEST.
19186         (add_mode_tests): Don't add mode tests if the predicate only
19187         accepts scalar constant integers.  Otherwise, allow the mode
19188         of "op" to be VOIDmode if the predicate does accept such integers.
19189
19190 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
19191
19192         PR target/66258
19193         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19194         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19195         (aarch64_secondary_reload): Likewise
19196         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19197         to !TARGET_FLOAT.
19198         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19199         Likewise.
19200
19201 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
19202             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19203
19204         PR target/65768
19205         * cprop.c (try_replace_reg): Check cost of constants before propagating.
19206
19207 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19208
19209         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19210         provide access to the IBM extended double floating point mode if
19211         long double is IEEE 128-bit floating point.
19212         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19213         point if long double is the IBM extended double type.
19214
19215         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19216         enable adding IEEE 128-bit floating point support.
19217         (-mfloat128-software): Likewise.
19218         (-mfloat128-sw): Likewise.
19219
19220         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19221         128-bit floating point types to occupy any register if
19222         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
19223         -mfloat128-software is enabled.
19224         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19225         support.
19226         (rs6000_option_override_internal): Add -mfloat128-* support.
19227         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19228
19229         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19230         and float128 type nodes.
19231         (ieee128_float_type_node): Likewise.
19232         (ibm128_float_type_node): Likewise.
19233
19234 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19235
19236         PR target/66136
19237         * config/aarch64/geniterators.sh: Rewrite in awk.
19238
19239 2015-06-02  Martin Liska  <mliska@suse.cz>
19240
19241         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19242         values to avoid -Wmaybe-uninitialized errors.
19243
19244 2015-06-02  Richard Biener  <rguenther@suse.de>
19245
19246         PR debug/65549
19247         * dwarf2out.c (lookup_context_die): New function.
19248         (resolve_addr): Avoid forcing a full DIE for the
19249         target of a DW_TAG_GNU_call_site during late compilation.
19250         Instead create a stub DIE without a type if we have a
19251         context DIE present.
19252
19253 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
19254
19255         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
19256
19257 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19258
19259         PR tree-optimization/48052
19260         * cfgloop.h (struct control_iv): New.
19261         (struct loop): New field control_ivs.
19262         * tree-ssa-loop-niter.c : Include "stor-layout.h".
19263         (number_of_iterations_lt): Set no_overflow information.
19264         (number_of_iterations_exit): Init control iv in niter struct.
19265         (record_control_iv): New.
19266         (estimate_numbers_of_iterations_loop): Call record_control_iv.
19267         (loop_exits_before_overflow): New.  Interface factored out of
19268         scev_probably_wraps_p.
19269         (scev_probably_wraps_p): Factor loop niter related code into
19270         loop_exits_before_overflow.
19271         (free_numbers_of_iterations_estimates_loop): Free control ivs.
19272         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
19273
19274 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19275
19276         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19277         the target doesn't belong to the current function.
19278
19279 2015-06-02  Marek Polacek  <polacek@redhat.com>
19280
19281         PR middle-end/66345
19282         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19283         get_maxval_strlen does not produce an INTEGER_CST.
19284
19285 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
19286
19287         * config/arc/constraints.md: Use lower-case names in match_code.
19288         * config/mmix/constraints.md: Likewise.
19289
19290 2015-06-02  Richard Biener  <rguenther@suse.de>
19291
19292         PR tree-optimization/65961
19293         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19294         check and clarify dump message.
19295         (vect_build_slp_tree): If all children are built up from scalars
19296         build up the parent from scalars instead.
19297         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19298
19299 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
19300
19301         PR other/65366
19302         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
19303         instead of print ... .
19304
19305 2015-06-02  Alan Modra  <amodra@gmail.com>
19306
19307         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19308         2014-08-11 change.
19309
19310 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19311
19312         PR tree-optimization/52563
19313         PR tree-optimization/62173
19314         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
19315         (alloc_iv, set_iv): New parameter.
19316         (determine_biv_step): Delete.
19317         (find_bivs): Inline original determine_biv_step.  Pass new
19318         argument to set_iv.
19319         (idx_find_step): Use no_overflow information for conversion.
19320         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19321         resolve_mixers handle folded_casts.
19322         (instantiate_scev_name): Change bool parameter to bool pointer.
19323         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19324         (instantiate_array_ref, instantiate_scev_not): Ditto.
19325         (instantiate_scev_3, instantiate_scev_2): Ditto.
19326         (instantiate_scev_1, instantiate_scev_r): Ditto.
19327         (instantiate_scev_convert, ): Change parameter.  Pass argument
19328         to chrec_convert_aggressive.
19329         (instantiate_scev): Change argument.
19330         (resolve_mixers): New parameter and set it.
19331         (scev_const_prop): New argument.
19332         * tree-scalar-evolution.h (resolve_mixers): New parameter.
19333         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19334         of chrec_conert_1.
19335         (chrec_convert): New parameter.  Move definition below.
19336         (chrec_convert_aggressive): New parameter and set it.  Call
19337         convert_affine_scev.
19338         * tree-chrec.h (chrec_convert): New parameter.
19339         (chrec_convert_aggressive): Ditto.
19340
19341 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19342
19343         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19344         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19345         the LHS of a no-return call if its type has variable size.
19346         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19347         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19348
19349 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
19350
19351         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19352         * config.in: Regenerate.
19353
19354 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19355
19356         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19357         consecutive accesses within outer-loop with force_vectorize
19358         for references with zero step in inner-loop.
19359
19360 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19361
19362         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19363         rather than from gcc/build directory.
19364
19365 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19366
19367         PR target/65697
19368         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19369         for __sync memory models, emit initial loads and final barriers as
19370         appropriate.
19371
19372 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19373
19374         PR target/65697
19375         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19376         (aarch64_split_atomic_op): Check for __sync memory models, emit
19377         appropriate initial loads and final barriers.
19378
19379 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19380
19381         * Makefile.in: Fix gcov dependencies that should
19382         not point to a build folder.
19383
19384 2015-06-01  Richard Biener  <rguenther@suse.de>
19385
19386         Revert
19387         2015-05-29  Richard Biener  <rguenther@suse.de>
19388
19389         PR tree-optimization/66314
19390         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19391         parameter that says which loop the new block belongs to.
19392         (ssa_create_duplicates): Blocks duplicated for the threaded
19393         path belong to the loop of the thread destination.
19394
19395 2015-06-01  Martin Liska  <mliska@suse.cz>
19396
19397         * sched-deps.c: Include pool-alloc.h before
19398         cselib.h header file is included.
19399
19400 2015-06-01  Richard Biener  <rguenther@suse.de>
19401
19402         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19403         functions.
19404
19405 2015-06-01  Martin Liska  <mliska@suse.cz>
19406
19407         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19408         a function local variable.
19409
19410 2015-06-01  Martin Liska  <mliska@suse.cz>
19411
19412         * alloc-pool.c (create_alloc_pool): Remove.
19413         (empty_alloc_pool): Likewise.
19414         (free_alloc_pool): Likewise.
19415         (free_alloc_pool_if_empty): Likewise.
19416         (pool_alloc): Likewise.
19417         (pool_free): Likewise.
19418         * alloc-pool.h: Remove old declarations.
19419
19420 2015-06-01  Martin Liska  <mliska@suse.cz>
19421
19422         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19423         (ira_create_object): Likewise.
19424         (ira_create_allocno): Likewise.
19425         (ira_create_live_range): Likewise.
19426         (copy_live_range): Likewise.
19427         (ira_finish_live_range): Likewise.
19428         (ira_free_allocno_costs): Likewise.
19429         (finish_allocno): Likewise.
19430         (finish_allocnos): Likewise.
19431         (initiate_prefs): Likewise.
19432         (ira_create_pref): Likewise.
19433         (finish_pref): Likewise.
19434         (finish_prefs): Likewise.
19435         (initiate_copies): Likewise.
19436         (ira_create_copy): Likewise.
19437         (finish_copy): Likewise.
19438         (finish_copies): Likewise.
19439         (finish_prefs): Likewise.
19440
19441 2015-06-01  Martin Liska  <mliska@suse.cz>
19442
19443         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19444         (allocate_and_init_ipcp_value): Likewise.
19445         (ipcp_lattice::add_value): Likewise.
19446         (merge_agg_lats_step): Likewise.
19447         (ipcp_driver): Likewise.
19448         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19449         (ipa_free_all_structures_after_iinln): Likewise.
19450         * ipa-prop.h: Likewise.
19451
19452 2015-06-01  Martin Liska  <mliska@suse.cz>
19453
19454         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19455         pool allocator.
19456         (set_hint_predicate): Likewise.
19457         (inline_summary_alloc): Likewise.
19458         (reset_inline_edge_summary): Likewise.
19459         (reset_inline_summary): Likewise.
19460         (set_cond_stmt_execution_predicate): Likewise.
19461         (set_switch_stmt_execution_predicate): Likewise.
19462         (compute_bb_predicates): Likewise.
19463         (estimate_function_body_sizes): Likewise.
19464         (inline_free_summary): Likewise.
19465
19466 2015-06-01  Martin Liska  <mliska@suse.cz>
19467
19468         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19469         (ipa_edge_duplication_hook): Likewise.
19470         (ipa_free_all_structures_after_ipa_cp): Likewise.
19471         (ipa_free_all_structures_after_iinln): Likewise.
19472
19473 2015-06-01  Martin Liska  <mliska@suse.cz>
19474
19475         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19476         (ipa_profile_generate_summary): Likewise.
19477         (ipa_profile_read_summary): Likewise.
19478         (ipa_profile): Likewise.
19479
19480 2015-06-01  Martin Liska  <mliska@suse.cz>
19481
19482         * tree-ssa-structalias.c (new_var_info): Use new type-based
19483         pool allocator.
19484         (new_constraint): Likewise.
19485         (init_alias_vars): Likewise.
19486         (delete_points_to_sets): Likewise.
19487
19488 2015-06-01  Martin Liska  <mliska@suse.cz>
19489
19490         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19491         (free_strinfo): Likewise.
19492         (pass_strlen::execute): Likewise.
19493
19494 2015-06-01  Martin Liska  <mliska@suse.cz>
19495
19496         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19497         pool allocator.
19498         (vn_reference_insert_pieces): Likewise.
19499         (vn_phi_insert): Likewise.
19500         (visit_reference_op_call): Likewise.
19501         (copy_phi): Likewise.
19502         (copy_reference): Likewise.
19503         (process_scc): Likewise.
19504         (allocate_vn_table): Likewise.
19505         (free_vn_table): Likewise.
19506
19507 2015-06-01  Martin Liska  <mliska@suse.cz>
19508
19509         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19510         pool allocator.
19511         (add_repeat_to_ops_vec): Likewise.
19512         (get_ops): Likewise.
19513         (maybe_optimize_range_tests): Likewise.
19514         (init_reassoc): Likewise.
19515         (fini_reassoc): Likewise.
19516
19517 2015-06-01  Martin Liska  <mliska@suse.cz>
19518
19519         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19520         pool allocator.
19521         (bitmap_set_new): Likewise.
19522         (get_or_alloc_expr_for_constant): Likewise.
19523         (get_or_alloc_expr_for): Likewise.
19524         (phi_translate_1): Likewise.
19525         (compute_avail): Likewise.
19526         (init_pre): Likewise.
19527         (fini_pre): Likewise.
19528
19529 2015-06-01  Martin Liska  <mliska@suse.cz>
19530
19531         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19532         (delete_dep_node): Likewise.
19533         (create_deps_list): Likewise.
19534         (free_deps_list): Likewise.
19535         (sched_deps_init): Likewise.
19536         (sched_deps_finish): Likewise.
19537
19538 2015-06-01  Martin Liska  <mliska@suse.cz>
19539
19540         * regcprop.c (free_debug_insn_changes): Use new type-based
19541         pool allocator.
19542         (replace_oldest_value_reg): Likewise.
19543         (pass_cprop_hardreg::execute): Likewise.
19544
19545 2015-06-01  Martin Liska  <mliska@suse.cz>
19546
19547         * ira-build.c (initiate_cost_vectors): Use new type-based
19548         pool allocator.
19549         (ira_allocate_cost_vector): Likewise.
19550         (ira_free_cost_vector): Likewise.
19551         (finish_cost_vectors): Likewise.
19552
19553 2015-06-01  Martin Liska  <mliska@suse.cz>
19554
19555         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19556         pool allocator.
19557         (free_sched_pools): Likewise.
19558         * sel-sched-ir.h (_list_alloc): Likewise.
19559         (_list_remove): Likewise.
19560
19561 2015-06-01  Martin Liska  <mliska@suse.cz>
19562
19563         * stmt.c (add_case_node): Use new type-based pool allocator.
19564         (expand_case): Likewise.
19565         (expand_sjlj_dispatch_table): Likewise.
19566
19567 2015-06-01  Martin Liska  <mliska@suse.cz>
19568
19569         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19570         (free_bb): Likewise.
19571         (pass_cse_reciprocals::execute): Likewise.
19572
19573 2015-06-01  Martin Liska  <mliska@suse.cz>
19574
19575         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19576         (sra_deinitialize) Likewise.
19577         (create_access_1) Likewise.
19578         (build_accesses_from_assign) Likewise.
19579         (create_artificial_child_access) Likewise.
19580
19581 2015-06-01  Martin Liska  <mliska@suse.cz>
19582
19583         * dse.c (get_group_info):Use new type-based pool allocator.
19584         (dse_step0) Likewise.
19585         (free_store_info) Likewise.
19586         (delete_dead_store_insn) Likewise.
19587         (free_read_records) Likewise.
19588         (record_store) Likewise.
19589         (replace_read) Likewise.
19590         (check_mem_read_rtx) Likewise.
19591         (scan_insn) Likewise.
19592         (dse_step1) Likewise.
19593         (dse_step7) Likewise.
19594
19595 2015-06-01  Martin Liska  <mliska@suse.cz>
19596
19597         * df-scan.c (struct df_scan_problem_data):Use new type-based
19598         pool allocator.
19599         (df_scan_free_internal) Likewise.
19600         (df_scan_alloc) Likewise.
19601         (df_grow_reg_info) Likewise.
19602         (df_free_ref) Likewise.
19603         (df_insn_create_insn_record) Likewise.
19604         (df_mw_hardreg_chain_delete) Likewise.
19605         (df_insn_info_delete) Likewise.
19606         (df_free_collection_rec) Likewise.
19607         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19608         (df_sort_and_compress_mws) Likewise.
19609         (df_ref_create_structure) Likewise.
19610         (df_ref_record) Likewise.
19611
19612 2015-06-01  Martin Liska  <mliska@suse.cz>
19613
19614         * df-problems.c (df_chain_create):Use new type-based pool allocator.
19615         (df_chain_unlink_1) Likewise.
19616         (df_chain_unlink) Likewise.
19617         (df_chain_remove_problem) Likewise.
19618         (df_chain_alloc) Likewise.
19619         (df_chain_free) Likewise.
19620         * df.h (struct dataflow) Likewise.
19621
19622 2015-06-01  Martin Liska  <mliska@suse.cz>
19623
19624         * cselib.c (new_elt_list):Use new type-based pool allocator.
19625         (new_elt_loc_list) Likewise.
19626         (unchain_one_elt_list) Likewise.
19627         (unchain_one_elt_loc_list) Likewise.
19628         (unchain_one_value) Likewise.
19629         (new_cselib_val) Likewise.
19630         (cselib_init) Likewise.
19631         (cselib_finish) Likewise.
19632
19633 2015-06-01  Martin Liska  <mliska@suse.cz>
19634
19635         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19636         (sh_reorg) Likewise.
19637
19638 2015-06-01  Martin Liska  <mliska@suse.cz>
19639
19640         * cfg.c (initialize_original_copy_tables):Use new type-based
19641         pool allocator.
19642         (free_original_copy_tables) Likewise.
19643         (copy_original_table_clear) Likewise.
19644         (copy_original_table_set) Likewise.
19645
19646 2015-06-01  Martin Liska  <mliska@suse.cz>
19647
19648         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19649         pool allocator.
19650         (asan_mem_ref_new) Likewise.
19651         (free_mem_ref_resources) Likewise.
19652
19653 2015-06-01  Martin Liska  <mliska@suse.cz>
19654
19655         * var-tracking.c (variable_htab_free):Use new type-based
19656         pool allocator.
19657         (attrs_list_clear) Likewise.
19658         (attrs_list_insert) Likewise.
19659         (attrs_list_copy) Likewise.
19660         (shared_hash_unshare) Likewise.
19661         (shared_hash_destroy) Likewise.
19662         (unshare_variable) Likewise.
19663         (var_reg_delete_and_set) Likewise.
19664         (var_reg_delete) Likewise.
19665         (var_regno_delete) Likewise.
19666         (drop_overlapping_mem_locs) Likewise.
19667         (variable_union) Likewise.
19668         (insert_into_intersection) Likewise.
19669         (canonicalize_values_star) Likewise.
19670         (variable_merge_over_cur) Likewise.
19671         (dataflow_set_merge) Likewise.
19672         (remove_duplicate_values) Likewise.
19673         (variable_post_merge_new_vals) Likewise.
19674         (dataflow_set_preserve_mem_locs) Likewise.
19675         (dataflow_set_remove_mem_locs) Likewise.
19676         (variable_from_dropped) Likewise.
19677         (variable_was_changed) Likewise.
19678         (set_slot_part) Likewise.
19679         (clobber_slot_part) Likewise.
19680         (delete_slot_part) Likewise.
19681         (loc_exp_insert_dep) Likewise.
19682         (notify_dependents_of_changed_value) Likewise.
19683         (emit_notes_for_differences_1) Likewise.
19684         (vt_emit_notes) Likewise.
19685         (vt_initialize) Likewise.
19686         (vt_finalize) Likewise.
19687
19688 2015-06-01  Martin Liska  <mliska@suse.cz>
19689
19690         * ira-color.c (init_update_cost_records):Use new type-based
19691         pool allocator.
19692         (get_update_cost_record) Likewise.
19693         (free_update_cost_record_list) Likewise.
19694         (finish_update_cost_records) Likewise.
19695         (initiate_cost_update) Likewise.
19696
19697 2015-06-01  Martin Liska  <mliska@suse.cz>
19698
19699         * lra.c (init_insn_regs): Use new type-based pool allocator.
19700         (new_insn_reg) Likewise.
19701         (free_insn_reg) Likewise.
19702         (free_insn_regs) Likewise.
19703         (finish_insn_regs) Likewise.
19704         (init_insn_recog_data) Likewise.
19705         (init_reg_info) Likewise.
19706         (finish_reg_info) Likewise.
19707         (lra_free_copies) Likewise.
19708         (lra_create_copy) Likewise.
19709         (invalidate_insn_data_regno_info) Likewise.
19710
19711 2015-06-01  Martin Liska  <mliska@suse.cz>
19712
19713         * lra-lives.c (free_live_range): Use new type-based pool allocator.
19714         (free_live_range_list) Likewise.
19715         (create_live_range) Likewise.
19716         (copy_live_range) Likewise.
19717         (lra_merge_live_ranges) Likewise.
19718         (remove_some_program_points_and_update_live_ranges) Likewise.
19719         (lra_live_ranges_init) Likewise.
19720         (lra_live_ranges_finish) Likewise.
19721
19722 2015-06-01  Martin Liska  <mliska@suse.cz>
19723
19724         * et-forest.c (et_new_occ): Use new type-based pool allocator.
19725         (et_new_tree): Likewise.
19726         (et_free_tree): Likewise.
19727         (et_free_tree_force): Likewise.
19728         (et_free_pools): Likewise.
19729         (et_split): Likewise.
19730
19731 2015-06-01  Martin Liska  <mliska@suse.cz>
19732
19733         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19734         to header file.
19735         * alloc-pool.h (pool_allocator::pool_allocator): New function.
19736         (pool_allocator::release): Likewise.
19737         (inline pool_allocator::release_if_empty): Likewise.
19738         (inline pool_allocator::~pool_allocator): Likewise.
19739         (pool_allocator::allocate): Likewise.
19740         (pool_allocator::remove): Likewise.
19741
19742 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19743
19744         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19745         in comment.
19746
19747 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19748
19749         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19750         to fusible_ops.
19751         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19752         (arm_macro_fusion_p): Likewise.
19753         (arm_macro_fusion_pair_p): Likewise.
19754
19755 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19756
19757         * config/aarch64/aarch64-protos.h (tune_params): Rename
19758         fuseable_ops to fusible_ops.
19759         * config/aarch64/aarch64.c (generic_tunings): Rename
19760         fuseable_ops to fusible_ops.
19761         (cortexa53_tunings): Likewise.
19762         (cortexa57_tunings): Likewise.
19763         (thunderx_tunings): Likewise.
19764         (xgene1_tunings): Likewise.
19765         (aarch64_macro_fusion_p): Likewise.
19766         (aarch64_macro_fusion_pair_p): Likewise.
19767
19768 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19769
19770         * config/s390/driver-native.c: New file.
19771         * config/s390/x-native: New file.
19772         * config.host: Add new files for s390.
19773         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19774         and -march=native
19775         * config.gcc: Likewise.
19776         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19777         * config/s390/s390-opts.h (enum processor_type): Ditto.
19778         * config/s390/s390.c (s390_option_override): Catch unhandled
19779         PROCESSOR_NATIVE
19780
19781 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
19782
19783         PR target/65527
19784         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19785         redirection for instrumented calls.
19786         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19787         (append_compiler_options): Append -fcheck-pointer-bounds.
19788         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19789         (chkp_redirect_edge): New.
19790         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19791         (chkp_redirect_edge): New.
19792
19793 2015-06-01  Richard Biener  <rguenther@suse.de>
19794
19795         PR tree-optimization/66280
19796         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19797         def-use walking.
19798
19799 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19800
19801         * config/aarch64/aarch64.md
19802         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19803         logic_shift_imm.
19804
19805 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19806
19807         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19808         Remove obsolete kludge.
19809
19810 2015-06-01  Richard Biener  <rguenther@suse.de>
19811
19812         * tree-ssa-reassoc.c (get_rank): Simplify.
19813
19814 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
19815
19816         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19817         * configure: Regenerated.
19818
19819 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
19820
19821         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19822         issue (add space between string literal and macro).
19823         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19824
19825 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
19826
19827         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19828         implict or explicit -fPIE or -fpie.
19829
19830 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
19831
19832         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19833
19834 2015-05-28  DJ Delorie  <dj@redhat.com>
19835
19836         * expmed.c (extract_bit_field_1): Avoid clobbering a
19837         yet-to-be-used base/index register.
19838
19839 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
19840
19841         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19842         (alias_stats): Add num_universal.
19843         (alias_set_subset_of): Special case pointers; be ready for NULL
19844         children.
19845         (alias_sets_conflict_p): Special case pointers; be ready for NULL
19846         children.
19847         (init_alias_set_entry): Break out from ...
19848         (record_alias_subset): ... here; propagate new fields;
19849         allocate children only when really needed.
19850         (get_alias_set): Do less generous pointer globbing.
19851         (dump_alias_stats_in_alias_c): Update statistics.
19852
19853 2015-05-30  Alan Modra  <amodra@gmail.com>
19854
19855         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19856         correct block for use of r12.
19857         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19858
19859 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19860
19861         PR target/66215
19862         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19863         with -mhotpatch=.
19864
19865 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
19866
19867         PR tree-optimization/66142
19868         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19869         virtual phis that feed themselves.
19870
19871 2015-05-29  Richard Biener  <rguenther@suse.de>
19872
19873         PR tree-optimization/66314
19874         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19875         parameter that says which loop the new block belongs to.
19876         (ssa_create_duplicates): Blocks duplicated for the threaded
19877         path belong to the loop of the thread destination.
19878
19879 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19880
19881         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19882         to cleanup-saved-temps.
19883         * doc/sourcebuild.texi (Clean up generated test files): Expand
19884         introduction.
19885         (dg-keep-saved-temps): Document new proc.
19886         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19887         cleanup-saved-temps): Remove.
19888
19889 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
19890
19891         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19892         gcc_AC_CHECK_DECLS.
19893         * configure: Regenerate.
19894
19895 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19896
19897         * config/nios2/linux.h (CPP_SPEC): Define.
19898
19899 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19900
19901         * config/microblaze/linux.h (CPP_SPEC): Define.
19902
19903 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19904
19905         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19906         -pthread is specified.
19907
19908 2015-05-28  Richard Biener  <rguenther@suse.de>
19909
19910         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19911         (vect_fixup_scalar_cycles_with_patterns): Likewise.
19912         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19913         after pattern recog.
19914         (vect_create_epilog_for_reduction): Properly handle reductions
19915         with patterns.
19916         (vectorizable_reduction): Likewise.
19917         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19918         reduction chains.
19919         (vect_get_constant_vectors): Create the correct number of
19920         initial values for reductions.
19921         (vect_schedule_slp_instance): Handle reduction chains that are
19922         type changing properly.
19923         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19924
19925 2015-05-28  Richard Biener  <rguenther@suse.de>
19926
19927         PR tree-optimization/66142
19928         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19929         values better in memcpy destination handling.  Handle non-aliasing
19930         we discover here.
19931
19932 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
19933
19934         PR target/63810
19935         * config/darwin-c.c (version_components): New global enum.
19936         (parse_version, version_as_legacy_macro)
19937         (version_as_modern_macro, macosx_version_as_macro): New functions.
19938         (version_as_macro): Remove.
19939         (darwin_cpp_builtins): Use new function.
19940
19941 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
19942
19943         * builtins.c (expand_builtin_acc_on_device): Mark parameters
19944         with ATTRIBUTE_UNUSED.
19945
19946 2015-05-28  Julian Brown  <julian@codesourcery.com>
19947
19948         PR libgomp/65742
19949
19950         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
19951         sequence for !ACCEL_COMPILER.
19952
19953 2015-05-28  Nick Clifton  <nickc@redhat.com>
19954
19955         * config/rx/rx.c (push_regs): New function.  Extracts code from...
19956         (rx_expand_prologue): ... here.  Use push_regs to push even small
19957         spans of registers.
19958         (pop_regs): New function.
19959         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
19960         registers.
19961
19962 2015-05-28  Richard Biener  <rguenther@suse.de>
19963
19964         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
19965         member.
19966         (SLP_INSTANCE_BODY_COST_VEC): Remove.
19967         (vect_update_slp_costs_according_to_vf): Likewise.
19968         (vect_slp_analyze_operations): Update prototype.
19969         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
19970         vect_update_slp_costs_according_to_vf, adjust.
19971         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
19972         (vect_analyze_slp_cost_1): Likewise.
19973         (vect_analyze_slp_cost): Likewise.  Properly deal with
19974         widening reduction ops.  Commit body costs.
19975         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
19976         cost for loops from here.
19977         (vect_slp_analyze_operations): But do it from here when
19978         the vectorization factor is known and stmts are analyzed.
19979         (vect_bb_vectorization_profitable_p): Simplify.
19980         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
19981         (vect_update_slp_costs_according_to_vf): Remove.
19982
19983 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
19984             H.J. Lu  <hongjiu.lu@intel.com>
19985
19986         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
19987         (BUILD_CFLAGS): Likewise.
19988         (BUILD_CXXFLAGS): Likewise.
19989         (LINKER): Add @NO_PIE_FLAG@.
19990         (BUILD_LDFLAGS): Likewise.
19991         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
19992         --enable-default-pie.
19993         * common.opt (fPIE): Initialize to -1.
19994         (fpie): Likewise.
19995         (no-pie): New option.
19996         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
19997         * configure.ac: Add --enable-default-pie.
19998         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
19999         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
20000         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
20001         * gcc.c (NO_PIE_SPEC): New.
20002         (PIE_SPEC): Likewise.
20003         (NO_FPIE1_SPEC): Likewise.
20004         (FPIE1_SPEC): Likewise.
20005         (NO_FPIE2_SPEC): Likewise.
20006         (FPIE2_SPEC): Likewise.
20007         (NO_FPIE2_SPEC): Likewise.
20008         (FPIE_SPEC): Likewise.
20009         (NO_FPIE_SPEC): Likewise.
20010         (NO_FPIC1_SPEC): Likewise.
20011         (FPIC1_SPEC): Likewise.
20012         (NO_FPIC2_SPEC): Likewise.
20013         (FPIC2_SPEC): Likewise.
20014         (NO_FPIC2_SPEC): Likewise.
20015         (FPIC_SPEC): Likewise.
20016         (NO_FPIC_SPEC): Likewise.
20017         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20018         (FPIE1_OR_FPIC1_SPEC): Likewise.
20019         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20020         (FPIE2_OR_FPIC2_SPEC): Likewise.
20021         (NO_FPIE_AND_FPIC_SPEC): Likewise.
20022         (FPIE_OR_FPIC_SPEC): Likewise.
20023         (LD_PIE_SPEC): Likewise.
20024         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
20025         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20026         * config/darwin.h (PIE_SPEC): Renamed to ...
20027         (DARWIN_PIE_SPEC): This.
20028         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20029         * config/darwin9.h (PIE_SPEC): Renamed to ...
20030         (DARWIN_PIE_SPEC): This.
20031         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20032         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20033         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20034         FPIE2_OR_FPIC2_SPEC.
20035         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20036         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20037         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20038         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20039         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20040         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20041         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20042         * config/m32r/m32r.h (ASM_SPEC): Likewise.
20043         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20044         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20045         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20046         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20047         * config/sparc/linux.h (ASM_SPEC): Likewise.
20048         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20049         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20050         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20051         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20052         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20053         * config/sparc/sparc.h (ASM_SPEC): Likewise.
20054         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20055         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20056         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20057         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20058         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20059         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20060         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20061         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20062         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20063         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20064         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20065         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20066         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20067         * config/vax/linux.h (ASM_SPEC): Likewise.
20068         * doc/install.texi: Document --enable-default-pie.
20069         * doc/invoke.texi: Document -no-pie.
20070         * config.in: Regenerated.
20071         * configure: Likewise.
20072
20073 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20074
20075         PR rtl-optimization/66168
20076         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20077         can_move_invariant_reg.
20078
20079 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
20080
20081         PR target/66148
20082         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20083         REG_EQUAL note when doing insert.
20084
20085         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20086         instead of "%d" for 'o' operand.
20087
20088 2015-05-27  Nathan Sidwell  <nathan@acm.org>
20089
20090         PR c++/66270
20091         * tree.c (build_pointer_type_for_mode): Canonical type does not
20092         inherit can_alias_all.
20093         (build_reference_type_for_mode): Likewise.
20094
20095 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20096
20097         * expr.h (array_at_struct_end_p): Move to...
20098         (array_ref_element_size): Likewise.
20099         (component_ref_field_offset): Likewise.
20100         * tree.h (array_ref_element_size): ...here.
20101         (array_at_struct_end_p): Likewise.
20102         (component_ref_field_offset): Likewise.
20103         * expr.c (array_ref_element_size): Move to...
20104         (array_ref_low_bound): Likewise.
20105         (array_at_struct_end_p): Likewise.
20106         (array_ref_up_bound): Likewise.
20107         (component_ref_field_offset): Likewise.
20108         * tree.c (array_ref_element_size): ...here.
20109         (array_ref_low_bound): Likewise.
20110         (array_ref_up_bound): Likewise.
20111         (array_at_struct_end_p): Likewise.
20112         (component_ref_field_offset): Likewise.
20113
20114 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20115             Szabolcs Nagy  <szabolcs.nagy@arm.com>
20116
20117         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20118
20119 2015-05-27  Jason Merrill  <jason@redhat.com>
20120
20121         PR bootstrap/66304
20122         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20123         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20124         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20125
20126 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
20127
20128         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20129         is true.
20130
20131         * statistics.c (statistics_fini_pass): Print pass name.
20132
20133 2015-05-27  Richard Biener  <rguenther@suse.de>
20134
20135         PR tree-optimization/66272
20136         Revert parts of
20137         2014-08-15  Richard Biener  <rguenther@suse.de>
20138
20139         PR tree-optimization/62031
20140         * tree-data-ref.c (dr_analyze_indices): Do not set
20141         DR_UNCONSTRAINED_BASE.
20142         (dr_may_alias_p): All indirect accesses have to go the
20143         formerly DR_UNCONSTRAINED_BASE path.
20144         * tree-data-ref.h (struct indices): Remove
20145         unconstrained_base member.
20146         (DR_UNCONSTRAINED_BASE): Remove.
20147
20148 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
20149
20150         * dwarf2out.c: Remove block_map.
20151         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20152         (gen_lexical_block_die): Same.
20153         (dwarf2out_function_decl): Remove block_map use.
20154         (dwarf2out_c_finalize): Same.
20155         * tree-core.h (struct tree_block): Add die field.
20156         * tree.h (BLOCK_DIE): New.
20157
20158 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20159
20160         PR target/65358
20161         * expr.c (memory_load_overlap): New function.
20162         (emit_push_insn): When pushing partial args to the stack would
20163         clobber the register part load the overlapping part into a pseudo
20164         and put it into the hard reg after pushing.  Change return type
20165         to bool.  Add bool argument.
20166         * expr.h (emit_push_insn): Change return type to bool.
20167         Add bool argument.
20168         * calls.c (expand_call): Cancel sibcall optimization when encountering
20169         partial argument on targets with ARGS_GROW_DOWNWARD and
20170         !STACK_GROWS_DOWNWARD.
20171         (emit_library_call_value_1): Update callsite of emit_push_insn.
20172         (store_one_arg): Likewise.
20173
20174 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20175
20176         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20177
20178 2015-05-27  Martin Liska  <mliska@suse.cz>
20179
20180         * Makefile.in: Add additional dependencies related to memory report
20181         enhancement.
20182         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20183         * bitmap.c (struct bitmap_descriptor_d): Remove.
20184         (struct loc): Likewise.
20185         (struct bitmap_desc_hasher): Likewise.
20186         (bitmap_desc_hasher::hash): Likewise.
20187         (bitmap_desc_hasher::equal): Likewise.
20188         (get_bitmap_descriptor): Likewise.
20189         (bitmap_register): User new memory descriptor API.
20190         (register_overhead): Likewise.
20191         (bitmap_find_bit): Register nsearches and search_iter statistics.
20192         (struct bitmap_output_info): Remove.
20193         (print_statistics): Likewise.
20194         (dump_bitmap_statistics): Use new memory descriptor.
20195         * bitmap.h (struct bitmap_usage): New class.
20196         * genmatch.c: Extend header file inclusion.
20197         * genpreds.c: Likewise.
20198         * ggc-common.c (struct ggc_usage): New class.
20199         (struct ggc_loc_desc_hasher): Remove.
20200         (ggc_loc_desc_hasher::hash): Likewise.
20201         (ggc_loc_desc_hasher::equal): Likewise.
20202         (struct ggc_ptr_hash_entry): Likewise.
20203         (struct ptr_hash_hasher): Likewise.
20204         (ptr_hash_hasher::hash): Likewise.
20205         (ptr_hash_hasher::equal): Likewise.
20206         (make_loc_descriptor): Likewise.
20207         (ggc_prune_ptr): Likewise.
20208         (dump_ggc_loc_statistics): Use new memory descriptor.
20209         (ggc_record_overhead): Likewise.
20210         (ggc_free_overhead): Likewise.
20211         (final_cmp_statistic): Remove.
20212         (cmp_statistic): Likewise.
20213         (ggc_add_statistics): Liekwise.
20214         (ggc_prune_overhead_list): Likewise.
20215         * hash-map-traits.h: New file.
20216         * hash-map.h (struct default_hashmap_traits): Move the traits to a
20217         separate header file.
20218         * hash-set.h: Pass memory statistics info to ctor.
20219         * hash-table.c (void dump_hash_table_loc_statistics): New function.
20220         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20221         (hash_table::~hash_table): Register memory release operation.
20222         (hash_table::alloc_entries): Handle memory allocation operation.
20223         (hash_table::expand): Likewise.
20224         * inchash.c (iterative_hash_hashval_t): Move implementation to header
20225         file.
20226         (iterative_hash_host_wide_int): Likewise.
20227         * inchash.h (class hash): Likewise.
20228         * mem-stats-traits.h: New file.
20229         * mem-stats.h: New file.
20230         (mem_location): Add new class.
20231         (mem_usage): Likewise.
20232         (mem_alloc_description): Likewise.
20233         * sese.c: Add new header file inclusision.
20234         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20235         and hash_set.
20236         * tree-sra.c: Add new header file inclusision.
20237         * vec.c (struct vec_descriptor): Remove.
20238         (hash_descriptor): Likewise.
20239         (struct vec_usage): Likewise.
20240         (struct ptr_hash_entry): Likewise.
20241         (hash_ptr): Likewise.
20242         (eq_ptr): Likewise.
20243         (vec_prefix::register_overhead): Use new memory descriptor API.
20244         (vec_prefix::release_overhead): Likewise.
20245         (add_statistics): Remove.
20246         (dump_vec_loc_statistics): Use new memory descriptor API.
20247         * vec.h (struct vec_prefix): Likewise.
20248         (va_heap::reserve): Likewise.
20249         (va_heap::release): Likewise.
20250         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20251
20252 2015-05-27  Richard Biener  <rguenther@suse.de>
20253
20254         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
20255         earlier and remove ??? comment.
20256         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
20257         and got called from loop analysis bail out.  Always pass the SLP
20258         node to the vectorizable_* functions.
20259         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
20260         the premature SLP check here.
20261         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
20262         detected SLP stmts.
20263         (vect_detect_hybrid_slp_1): Likewise.
20264
20265 2015-05-26  Jeff Law  <law@redhat.com>
20266
20267         * combine.c (find_split_point): Verify that the shift count is a
20268         constant when choosing (plus (ashift ...)) as a split point.
20269
20270         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
20271         No functional changes.
20272
20273 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
20274
20275         * ipa-polymorphic-call.c
20276         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20277         case when call target is already known.
20278
20279 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
20280
20281         PR target/65979
20282         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20283         take into account the case that operands[1] and operands[2]
20284         are the same register.
20285
20286 2015-05-26  Michael Matz  <matz@suse.de>
20287
20288         PR middle-end/66251
20289
20290         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20291         stores.
20292         (vect_create_vectorized_demotion_stmts): Always set
20293         STMT_VINFO_VEC_STMT, also with SLP.
20294         (vectorizable_store): Handle strided group stores.
20295
20296 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20297
20298         PR target/66049
20299         * config/aarch64/aarch64.md
20300         (*adds_shift_imm_<mode>):  New pattern.
20301         (*subs_shift_imm_<mode>):  Likewise.
20302         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
20303         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20304         (*add_uxt<mode>_shift2): Likewise.
20305         (*add_uxtsi_shift2_uxtw): Likewise.
20306         (*sub_uxt<mode>_shift2): Likewise.
20307         (*sub_uxtsi_shift2_uxtw): Likewise.
20308
20309 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
20310
20311         * config/rs6000/constraints.md (Y, U): Use match_test.
20312
20313 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20314
20315         PR target/52144
20316         * config/arm/arm.c (arm_option_check_internal)
20317         (arm_option_params_internal): Check opts->target_flags to set macros.
20318         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20319         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20320         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20321         (builtin_define): Replaced with def_or_undef_macro.
20322         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20323         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20324         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20325         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20326         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20327         (TARGET_ARM_FEATURE_LDREX_P)
20328         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20329         * config/arm/arm-c.c (def_or_undef_macro): New function.
20330         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20331
20332 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20333
20334         * c-common.h (builtin_define_with_int_value)
20335         (builtin_define_type_sizeof): Declare.
20336         * c-cppbuiltin.c (builtin_define_with_int_value)
20337         (builtin_define_type_sizeof): Externalize.
20338         (builtin_define_std): Cleanup declaration.
20339         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20340         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20341         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20342         (builtin_define, builtin_assert): New macros.
20343
20344 2015-05-26  Richard Biener  <rguenther@suse.de>
20345
20346         PR tree-optimization/66142
20347         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20348         MEM_REFs for the same base address.
20349
20350 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20351
20352         PR ipa/66181
20353         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20354
20355 2015-05-26  Jason Merrill  <jason@redhat.com>
20356
20357         * configure.ac: Set CXXFLAGS for ISL test.
20358         * configure: Regenerate.
20359
20360         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
20361         strstr and basename.
20362         * configure: Regenerate.
20363
20364 2015-05-26  Richard Biener  <rguenther@suse.de>
20365
20366         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20367         X % C -> X & (C - 1) for C being a power-of two to ...
20368         * match.pd: ... patterns.
20369
20370 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
20371
20372         * match.pd (swapped_tcc_comparison): New operator list.
20373         (-A CMP -B): New simplification.
20374         * fold-const.c (fold_comparison): Remove corresponding code.
20375
20376 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20377
20378         * caller-save.c (init_caller_save): Base temporary register numbers
20379         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20380         * cfgloopanal.c (init_set_costs): Likewise.
20381         * dojump.c (prefer_and_bit_test): Likewise.
20382         * expr.c (init_expr_target): Likewise.
20383         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20384         * lower-subreg.c (init_lower_subreg): Likewise.
20385         * postreload.c (reload_cse_regs_1): Likewise.
20386
20387 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20388
20389         * gensupport.h (compute_test_codes): Declare.
20390         * gensupport.c (compute_predicate_codes): Rename to...
20391         (compute_test_codes): ...this.  Generalize error message.
20392         (process_define_predicate): Update accordingly.
20393         * genpreds.c (compute_maybe_allows): Delete.
20394         (add_constraint): Use compute_test_codes to determine whether
20395         something can accept a SUBREG, REG or MEM.
20396
20397 2015-05-26  Torvald Riegel  <triegel@redhat.com>
20398
20399         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20400         'memory model' to align with C++11; fix description of memory orders;
20401         fix a few typos.
20402
20403 2015-05-26  Richard Biener  <rguenther@suse.de>
20404
20405         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20406         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
20407         detect whether we apply SLP.  Remove call to
20408         vect_update_slp_costs_according_to_vf.
20409         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20410         vect_update_slp_costs_according_to_vf from here.  Dispatch
20411         to vect_slp_analyze_operations to analyze SLP stmts.
20412         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20413         unused bb_vec_info parameter, adjust assert.
20414         (vect_slp_analyze_operations): Pass in the slp instance tree
20415         instead of bb_vec_info.
20416         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20417         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20418
20419 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20420
20421         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20422         Q_REGS.  Expand comment.
20423         (REG_CLASS_NAMES): Ditto.
20424         (REG_CLASS_CONTENTS): Ditto.
20425
20426 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
20427
20428         PR target/66274
20429         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20430         when LEGACY_INT_REGNO_P is processed.
20431
20432 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20433
20434         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20435
20436 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20437
20438         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20439         register if not marked dead/unused, before return.
20440
20441 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20442
20443         PR lto/66180
20444         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20445         is set; check for assembler name at LTO time.
20446         (type_in_anonymous_namespace): Remove hacks, check that all
20447         anonymous types are called "<anon>"
20448         (odr_type_p): Simplify; add check for "<anon>"
20449         (odr_subtypes_equivalent): Add odr_type_p check.
20450         * tree.c (need_assembler_name_p): Even anonymous namespace needs
20451         assembler name.
20452
20453 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20454
20455         * ipa-utils.h (method_class_type): Remove.
20456         * cgraphunit.c (walk_polymorphic_call_targets): Use
20457         TYPE_METHOD_BASETYPE.
20458         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20459         on main variants only.
20460         (method_class_type): Remove.
20461         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20462         (build_type_inheritance_graph): Likewise.
20463         * ipa-icf.c (sem_function::equals_wpa): Likewise.
20464         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20465         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20466
20467 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20468
20469         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20470         is_typedef_decl, typedef_variant_p): Constify.
20471         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20472         is_typedef_decl, typedef_variant_p): Constify.
20473
20474 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20475
20476         * defaults.h (gen_tablejump): New function.
20477         (HAVE_tablejump): Add default value.
20478         * expr.c: Adjust.
20479         * stmt.c: Likewise.
20480
20481 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20482
20483         * defaults.h (gen_store_multiple): New function.
20484         (HAVE_store_multiple): Add default value.
20485         * expr.c (move_block_from_reg): Adjust.
20486
20487 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20488
20489         * defaults.h (gen_load_multiple): New function.
20490         (HAVE_load_multiple): Add default value.
20491         * expr.c (move_block_to_reg): Adjust.
20492
20493 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20494
20495         * defaults.h (gen_mem_signal_fence): New function.
20496         (HAVE_mem_signal_fence): Add default value.
20497         * optabs.c: Adjust.
20498
20499 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20500
20501         * defaults.h (gen_memory_barrier): New function.
20502         (HAVE_memory_barrier): Add default value.
20503         * optabs.c: Adjust.
20504
20505 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20506
20507         * defaults.h (gen_mem_thread_fence): New function.
20508         (HAVE_mem_thread_fence): Add default definition.
20509         * optabs.c: Adjust.
20510
20511 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20512
20513         * combine.c (find_split_point): Check the value of HAVE_lo_sum
20514         instead of if it is defined.
20515         (combine_simplify_rtx): Likewise.
20516         * lra-constraints.c (process_address_1): Likewise.
20517         * config/darwin.c: Adjust.
20518         * genconfig.c (main): Always define HAVE_lo_sum.
20519
20520 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20521
20522         * genmatch.c (parser::parse_operation): Reject expanding
20523         operator-list inside 'for'.
20524
20525 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20526
20527         * genmatch.c (parser::parse_for): Reject iterator if used as
20528         operator-list.
20529
20530 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20531
20532         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20533         after end of id-list.
20534
20535 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20536
20537         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20538         we do not try to compute canonical type for type that does not need
20539         alias set.
20540         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20541         FUNCITON_TYPE.
20542         * tree.h (type_with_alias_set_p): New.
20543
20544 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20545
20546         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
20547         function attributes.
20548         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20549
20550 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
20551
20552         * Makefile.in (check_gcc_parallelize): Delete.
20553         (lang_checks_parallelized): Update comment.
20554
20555 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
20556
20557         PR rtl-optimization/66237
20558         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20559         location of an "as_a" cast.
20560
20561 2015-05-22  Jeff Law  <law@redhat.com>
20562
20563         * config/pa/pa.md (non-canonical shift-add insns): Remove.
20564         (peepholes with non-canonical RTL sources): Remove.
20565         (peepholes for indexed stores of FP regs in integer modes): Match and
20566         generate canonical RTL.
20567
20568 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20569
20570         PR tree-optimization/63387
20571         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20572         ((x ord x) & (y ord y) -> (x ord y),
20573         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20574         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20575         vectors like scalars.
20576
20577 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20578
20579         * convert.c (convert_to_integer, convert_to_vector): Include the
20580         types in the error message.
20581
20582 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20583
20584         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20585         simplifications.
20586
20587 2015-05-22  Jeff Law  <law@redhat.com>
20588
20589         * config/pa/pa.md (integer_indexed_store splitters): Use
20590         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
20591         insns -- adjusting the constant 2nd operand accordingly.
20592
20593         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20594         (plus (ashift X log2) Y) if it is a split point.
20595
20596         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20597         out of hppa_legitimize_address to handle both forms of a multiply
20598         by 2, 4 or 8.
20599         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20600         Always generate the ASHIFT variant as the result is not directly
20601         used in a MEM.  Update comments and refactor slightly to improve
20602         readability.
20603
20604 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20605
20606         PR target/65491
20607         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20608         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
20609         (aarch64_composite_type_p): Return false if given type and mode are
20610         for a short vector.
20611
20612 2015-05-22  Richard Biener  <rguenther@suse.de>
20613
20614         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20615         member.
20616         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20617         patterns when determining whether SLP is pure.
20618         (vect_is_slp_reduction): Remove check for pattern stmts.
20619         (vect_is_simple_reduction_1): Remove dead code.
20620         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20621         (vect_get_and_check_slp_defs): Pass in the stmt number.
20622         Allow the first def in a reduction to be not a pattern stmt when
20623         the rest of the stmts def are patterns.
20624         (vect_build_slp_tree_1): Allow tcc_expression codes like
20625         SAD_EXPR and DOT_PROD_EXPR.
20626         (vect_build_slp_tree): Adjust.
20627         (vect_analyze_slp): Refactor and move BB vect error message ...
20628         (vect_slp_analyze_bb_1): ... here.
20629
20630 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
20631
20632         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20633         for CSWTCH temporary.
20634
20635 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20636
20637         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20638         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
20639         unknown unspecs.
20640
20641 2015-05-22  Richard Biener  <rguenther@suse.de>
20642
20643         PR tree-optimization/66251
20644         * tree-vect-stmts.c (vectorizable_conversion): Properly
20645         set STMT_VINFO_VEC_STMT even for the SLP case.
20646
20647 2015-05-22  Marek Polacek  <polacek@redhat.com>
20648
20649         * doc/extend.texi: Use @pxref instead of @xref.
20650
20651 2015-05-22  hiraditya  <hiraditya@msn.com>
20652
20653         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20654         redundant if.
20655
20656 2015-05-22  Richard Biener  <rguenther@suse.de>
20657
20658         PR tree-optimization/65701
20659         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20660         Move peeling cost models into one place.  Peel for alignment
20661         for single loads only if an aligned load is cheaper than
20662         an unaligned load.
20663
20664 2015-05-22  Marek Polacek  <polacek@redhat.com>
20665
20666         PR c/47043
20667         * doc/extend.texi (Enumerator Attributes): New section.
20668         Document syntax of enumerator attributes.
20669
20670 2015-05-22  Richard Biener  <rguenther@suse.de>
20671
20672         * tree-vect-loop.c (get_reduction_op): New function.
20673         (vect_model_reduction_cost): Use it, add reduc_index parameter.
20674         Make ready for BB reductions.
20675         (vect_create_epilog_for_reduction): Use get_reduction_op.
20676         (vectorizable_reduction): Init reduc_index to a valid value.
20677         Adjust vect_model_reduction_cost call.
20678         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20679         operand for reduction defaults.  Add SAD_EXPR support.
20680         Assert we have a neutral op for SLP reductions.
20681         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20682         walking pattern stmt ops only recurse to SSA names.
20683
20684 2015-05-22  Richard Biener  <rguenther@suse.de>
20685
20686         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20687         assert with guard, remove check on detected reduction.
20688         (vect_recog_sad_pattern): Likewise.
20689         (vect_recog_widen_sum_pattern): Likewise.
20690
20691 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20692
20693         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20694         __always_inline__ attribute.
20695         (vaesdq_u8): Likewise.
20696         (vaesmcq_u8): Likewise.
20697         (vaesimcq_u8): Likewise.
20698         (vsha1cq_u32): Likewise.
20699         (vsha1mq_u32): Likewise.
20700         (vsha1pq_u32): Likewise.
20701         (vsha1h_u32): Likewise.
20702         (vsha1su0q_u32): Likewise.
20703         (vsha1su1q_u32): Likewise.
20704         (vsha256hq_u32): Likewise.
20705         (vsha256h2q_u32): Likewise.
20706         (vsha256su0q_u32): Likewise.
20707         (vsha256su1q_u32): Likewise.
20708         (vmull_p64): Likewise.
20709         (vmull_high_p64): Likewise.
20710
20711 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20712
20713         * final.c (final_scan_insn): Don't check HAVE_peephole with the
20714         preprocessor.
20715         * output.h: Likewise.
20716         * genconfig.c (main): Alwways define HAVE_peephole.
20717         * genpeep.c: Don't emit checks of HAVE_peephole.
20718
20719 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20720
20721         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20722         check HAVE_conditional_move with the preprocessor.
20723
20724 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20725
20726         * genconfig.c (main): Always define HAVE_conditional_move.
20727         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20728         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20729         is defined.
20730
20731 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20732
20733         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20734         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20735         and FRAME_POINTER_REGNUM with the preprocessor.
20736
20737 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20738
20739         * defaults.h: Add default for STACK_PUSH_CODE.
20740         * expr.c: Don't redefine STACK_PUSH_CODE.
20741         * recog.c: Likewise.
20742
20743 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20744
20745         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20746         sched-deps.c: Use if instead of preprocessor checks with
20747         STACK_GROWS_DOWNWARD.
20748
20749 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20750
20751         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20752         is defined.
20753         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20754         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20755         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20756         * doc/tm.texi: Regenerate.
20757
20758 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20759
20760         PR target/66232
20761         * config/i386/constraints.md (Bg): New constraint for GOT memory
20762         operand.
20763         * config/i386/i386.md (*call_got_x32): New pattern.
20764         (*call_value_got_x32): Likewise.
20765         * config/i386/predicates.md (GOT_memory_operand): New predicate.
20766
20767 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
20768
20769         PR tree-optimization/66233
20770         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20771         Simplify.
20772
20773 2015-05-21  Jeff Law  <law@redhat.com>
20774
20775         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20776         than MULT for shadd sequences.
20777
20778 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
20779
20780         * alias.c (alias_stats): New static var.
20781         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20782         (dump_alias_stats_in_alias_c): New function.
20783         * alias.h (dump_alias_stats_in_alias_c): Declare.
20784         * tree-ssa-alias.c (dump_alias_stats): Call it.
20785
20786 2015-05-08  Michael Matz  <matz@suse.de>
20787
20788         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20789         to strided_p.
20790         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20791         (STMT_VINFO_STRIDED_P): ... this.
20792         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20793         (vect_verify_datarefs_alignment): Likewise.
20794         (vect_enhance_data_refs_alignment): Likewise.
20795         (vect_analyze_data_ref_access): Likewise.
20796         (vect_analyze_data_refs): Accept strided stores.
20797         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20798         (vect_model_load_cost): Adjust for macro rename.
20799         (vectorizable_mask_load_store): Likewise.
20800         (vectorizable_load): Likewise.
20801         (vectorizable_store): Open code strided stores.
20802
20803 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20804
20805         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20806         Document sqrt_insn.
20807
20808 2015-05-21  Richard Biener  <rguenther@suse.de>
20809
20810         PR c++/66211
20811         * match.pd: Guard pattern optimzing (int)(float)int
20812         conversions to apply only on GIMPLE.
20813
20814 2015-05-21  Jeff Law  <law@redhat.com>
20815
20816         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20817         multiply-accumulate/shift-add insn generation.
20818
20819 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
20820
20821         PR target/54236
20822         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20823         operands[1] are the same.
20824
20825 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
20826
20827         PR middle-end/66221
20828         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20829         build_distinct_type_copy to copy bounds.
20830
20831 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20832
20833         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20834         Change to unsigned int.
20835
20836 2015-05-20  Jeff Law  <law@redhat.com>
20837
20838         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20839         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20840         (pa_shadd_constant_p): Allow constants for shadd insns rather
20841         than valid scaling constants for memory addresses.
20842         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20843         * config/pa/predicates.md (mem_shadd_operand): New predicate.
20844         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20845         (shift-add insns using ASHIFT): New patterns.
20846
20847 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
20848
20849         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20850         feasible.
20851         (fix_up_fall_thru_edges): Likewise.
20852         (fix_crossing_conditional_branches): Likewise. Promote jump targets
20853         from to rtx_insn to rtx_code_label where feasible.
20854         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20855         gen_move_insn (returned type changed to rtx_insn).
20856         * builtins.c (expand_errno_check): Fix arguments of
20857         do_compare_rtx_and_jump (now expects rtx_code_label).
20858         (expand_builtin_acc_on_device): Likewise.
20859         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20860         invert_jump (now exprects rtx_jump_insn).
20861         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20862         (construct_init_block): Use rtx_code_label.
20863         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20864         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20865         calling redirect_jump.
20866         (patch_jump_insn): Likewise.
20867         (redirect_branch_edge): Likewise.
20868         (force_nonfallthru_and_redirect): Likewise.
20869         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20870         when suitable.
20871         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20872         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20873         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20874         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20875         to store the value retured by gen_label_rtx.
20876         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20877         rtx_jump_insn.
20878         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20879         (split_branches): Fix calls of redirect_jump.
20880         * dojump.c (jumpifnot): Promote argument type from rtx to
20881         rtx_code_label.
20882         (jumpifnot_1): Likewise.
20883         (jumpif): Likewise.
20884         (jumpif_1): Likewise.
20885         (do_jump_1): Likewise.
20886         (do_jump): Likewise. Use rtx_code_label when feasible.
20887         (do_jump_by_parts_greater_rtx): Likewise.
20888         (do_jump_by_parts_zero_rtx): Likewise.
20889         (do_jump_by_parts_equality_rtx): Likewise.
20890         (do_compare_rtx_and_jump): Likewise.
20891         * dojump.h: Update function prototypes.
20892         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20893         returns rtx_insn).
20894         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20895         rtx_jump_insn.
20896         (emit_label_before): Likewise.
20897         (emit_jump_insn_after_noloc): Likewise.
20898         (emit_jump_insn_after_setloc): Likewise.
20899         (emit_jump_insn_after): Likewise
20900         (emit_jump_insn_before_setloc): Likewise.
20901         (emit_jump_insn_before): Likewise.
20902         (emit_label_before): Promote return type to rtx_code_label.
20903         (emit_label): Likewise.
20904         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20905         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20906         gen_move_insn.
20907         (emit_stack_restore): Likewise.
20908         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20909         (do_cmp_and_jump): Likewise.
20910         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20911         from rtx to rtx_code_label.
20912         (gen_move_insn_uncast): New function.
20913         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20914         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20915         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20916         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20917         invert_jump_1 and redirect_jump_1.
20918         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20919         do_compare_rtx_and_jump.
20920         (expand_addsub_overflow): Likewise.
20921         (expand_neg_overflow): Likewise.
20922         (expand_mul_overflow): Likewise.
20923         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20924         return value of gen_move_insn.
20925         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20926         * loop-doloop.c (add_test): Use rtx_code_label.
20927         (doloop_modify): Likewise.
20928         (doloop_optimize): Likewise.
20929         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20930         * lra-constraints.c (emit_spill_move): Remove cast of value returned
20931         by gen_move_insn.
20932         (inherit_reload_reg): Add cast when calling dump_insn_slim.
20933         (split_reg): Likewise.
20934         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20935         gen_move_insn.
20936         * optabs.c (expand_binop_directly): Remove casts of values returned by
20937         maybe_gen_insn.
20938         (expand_unop_direct): Likewise.
20939         (expand_abs): Likewise.
20940         (maybe_emit_unop_insn): Likewise.
20941         (maybe_gen_insn): Promote return type to rtx_insn.
20942         * optabs.h: Update prototype of maybe_gen_insn.
20943         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20944         redundant cast.
20945         * recog.c (struct peep2_insn_data): Promote type of insn field to
20946         rtx_insn.
20947         (peep2_reinit_state): Use NULL instead of NULL_RTX.
20948         (peep2_attempt): Remove casts of insn in peep2_insn_data.
20949         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20950         * recog.h (struct insn_gen_fn): Promote return types of function
20951         pointers and operator ().from rtx to rtx_insn.
20952         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
20953         (fill_eager_delay_slots): Likewise.
20954         (relax_delay_slots): Likewise.
20955         (make_return_insns): Likewise.
20956         (dbr_schedule): Likewise.
20957         (optimize_skips): Likewise.
20958         (reorg_redirect_jump): Likewise.
20959         (fill_slots_from_thread): Likewise.
20960         * reorg.h: Update prototypes.
20961         * resource.c (find_dead_or_set_registers): Use dyn_cast to
20962         rtx_jump_insn instead of check.  Use it's jump_target method.
20963         * rtl.h (rtx_jump_insn::jump_label): Define new method.
20964         (rtx_jump_insn::jump_target): Define new method.
20965         (rtx_jump_insn::set_jump_target): Define new method.
20966         * rtlanal.c (tablejump_p): Promote type of one local variable.
20967         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
20968         (sched_analyze_insn): Likewise.
20969         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
20970         (print_insn): Likewise.
20971         * stmt.c (label_rtx): Promote return type to rtx_insn.
20972         (force_label_rtx): Likewise.
20973         (jump_target_rtx): Define new function.
20974         (expand_label): Use it, get rid of one cast.
20975         (expand_naked_return): Promote rtx to rtx_code_label.
20976         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
20977         (expand_case): Use rtx_code_label instread of rtx where feasible.
20978         (expand_sjlj_dispatch_table): Likewise.
20979         (emit_case_nodes): Likewise.
20980         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
20981         * store-motion.c (insert_store): Make use of new return type of
20982         gen_move_insn and remove a cast.
20983         (replace_store_insn): Likewise.
20984
20985 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
20986
20987         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
20988         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
20989
20990 2015-05-20  Jeff Law  <law@redhat.com>
20991
20992         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
20993         dispose of the jump thread path when the jump threading
20994         opportunity is cancelled.
20995
20996 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20997
20998         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
20999         when printing the caret character.
21000
21001 2015-05-20  Marek Polacek  <polacek@redhat.com>
21002
21003         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21004
21005 2015-05-20  Marek Polacek  <polacek@redhat.com>
21006
21007         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21008         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21009         * gimple-fold.c (canonicalize_bool): Likewise.
21010         (same_bool_result_p): Likewise.
21011         * tree-if-conv.c (parse_predicate): Likewise.
21012
21013 2015-05-20  Marek Polacek  <polacek@redhat.com>
21014
21015         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21016         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21017
21018 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21019
21020         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21021         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21022         values.
21023
21024 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
21025
21026         * config/mips/mips.h (micromips_globals): Declare.
21027
21028 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
21029
21030         * timevar.def (TV_INITIALIZE_RTL): New.
21031         * toplev.c (initialize_rtl): Use an auto_timevar to account this
21032         function's time to TV_INITIALIZE_RTL.
21033
21034 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
21035
21036         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21037         gimple_build_nop calls.
21038         (chkp_find_bounds_for_elem): Likewise.
21039         (chkp_get_zero_bounds): Likewise.
21040         (chkp_get_none_bounds): Likewise.
21041         (chkp_get_bounds_by_definition): Likewise.
21042         (chkp_generate_extern_var_bounds): Likewise.
21043         (chkp_get_bounds_for_decl_addr): Likewise.
21044         (chkp_get_bounds_for_string_cst): Likewise.
21045
21046 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
21047
21048         PR tree-optimization/65447
21049         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21050         (dump_use, dump_uses): Support to dump sub use.
21051         (record_use): New parameters to support sub use.  Remove call to
21052         dump_use.
21053         (record_sub_use, record_group_use): New functions.
21054         (compute_max_addr_offset, split_all_small_groups): New functions.
21055         (group_address_uses, rewrite_use_address): New functions.
21056         (strip_offset): New declaration.
21057         (find_interesting_uses_address): Call record_group_use.
21058         (add_candidate): New assertion.
21059         (infinite_cost_p): Move definition forward.
21060         (add_costs): Check INFTY cost and return immediately.
21061         (get_computation_cost_at): Clear setup cost and dependent bitmap
21062         for sub uses.
21063         (determine_use_iv_cost_address): Compute cost for sub uses.
21064         (rewrite_use_address_1): Rename from old rewrite_use_address.
21065         (free_loop_data): Free sub uses.
21066         (tree_ssa_iv_optimize_loop): Call group_address_uses.
21067
21068 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
21069             Jim Wilson  <jim.wilson@linaro.org>
21070
21071         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21072         new  fields loadv and storev.
21073         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21074         Initialize loadv and storev.
21075         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21076         (cortexa53_extra_costs): Likewise.
21077         (cortexa57_extra_costs): Likewise.
21078         (xgene1_extra_costs): Likewise.
21079         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21080         rtx_costs.
21081
21082 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
21083
21084         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21085          storev.
21086         (cortexa8_extra_costs): Likewise.
21087         (cortexa5_extra_costs): Likewise.
21088         (cortexa7_extra_costs): Likewise.
21089         (cortexa12_extra_costs): Likewise.
21090         (cortexa15_extra_costs): Likewise.
21091         (v7m_extra_costs): Likewise.
21092
21093 2015-05-20  Jeff Law  <law@redhat.com>
21094
21095         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21096         instead of open-coded version.  Also delete the jump thread created
21097         within this function.
21098
21099 2015-05-20  Alan Modra  <amodra@gmail.com>
21100
21101         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21102         stack adjusting insn.  Formatting.
21103         (rs6000_emit_prologue): Track stack adjusting insn, and use of
21104         r12.  If possible, emit first -fsplit-stack arg pointer insn
21105         before stack adjust.  Don't use r12 to save cr if split-stack.
21106
21107 2015-05-20  Alan Modra  <amodra@gmail.com>
21108
21109         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21110         Define.
21111         (rs6000_supports_split_stack): New function.
21112         * gcc/config/rs6000/rs6000.c (machine_function): Add
21113         split_stack_arg_pointer.
21114         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21115         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21116         rather than virtual_incoming_args_rtx.
21117         (rs6000_va_start): Likewise.
21118         (split_stack_arg_pointer_used_p): New function.
21119         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21120         (morestack_ref): New var.
21121         (gen_add3_const, rs6000_expand_split_stack_prologue,
21122         rs6000_internal_arg_pointer, rs6000_live_on_entry,
21123         rs6000_split_stack_space_check): New functions.
21124         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21125         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21126         (UNSPECV_SPLIT_STACK_RETURN): Define.
21127         (split_stack_prologue, load_split_stack_limit,
21128         load_split_stack_limit_di, load_split_stack_limit_si,
21129         split_stack_return, split_stack_space_check): New expands and insns.
21130         * gcc/config/rs6000/rs6000-protos.h
21131         (rs6000_expand_split_stack_prologue): Declare.
21132         (rs6000_split_stack_space_check): Declare.
21133
21134 2015-05-20  Alan Modra  <amodra@gmail.com>
21135
21136         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21137         (direct_return): Test vrsave_size rather than vrsave_mask.
21138         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
21139         (rs6000_emit_epilogue): Likewise.
21140
21141 2015-05-20  Alan Modra  <amodra@gmail.com>
21142
21143         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21144         when not saving registers.
21145         (debug_stack_info): Adjust to omit printing unused offsets,
21146         as before.
21147         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21148         expression.
21149
21150 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21151
21152         PR c++/65835
21153         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21154         value_type to const char *.
21155
21156 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
21157
21158         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21159         to build a biarch toolchain again.
21160
21161 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21162
21163         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21164         or implicit declarations.
21165         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21166         into it.
21167         (get_odr_type): Check type has linkage before adding bases.
21168         (register_odr_type): Check that type has linkage before adding it.
21169         (type_known_to_have_no_deriavations_p): Rename to ..
21170         (type_known_to_have_no_derivations_p): This one.
21171         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21172         (type_known_to_have_no_derivations_p): This one.
21173         * ipa-polymorphic-call.c
21174         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21175         type has linkage.
21176
21177 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21178
21179         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21180         (layout_type): Use RECORD_OR_UNION_TYPE_P.
21181
21182 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21183
21184         * config/s390/s390.c (s390_vector_bool_type_p): New function.
21185         (s390_invalid_binary_op): New function.
21186         (TARGET_INVALID_BINARY_OP): Define macro.
21187
21188 2015-05-19  David Sherwood  <david.sherwood@arm.com>
21189
21190         * loop-invariant.c (create_new_invariant): Don't calculate address cost
21191         if mode is not a scalar integer.
21192         (get_inv_cost): Increase computational cost for unused invariants.
21193
21194 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21195
21196         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
21197         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
21198         * config/s390/s390-builtin-types.def: New file.
21199         * config/s390/s390-builtins.def: New file.
21200         * config/s390/s390-builtins.h: New file.
21201         * config/s390/s390-c.c: New file.
21202         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21203         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21204         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21205         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21206         prototypes.
21207         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21208         Include.
21209         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21210         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21211         variable definitions.
21212         (s390_const_operand_ok): New function.
21213         (s390_expand_builtin): Rewrite.
21214         (s390_init_builtins): New function.
21215         (s390_handle_vectorbool_attribute): New function.
21216         (s390_attribute_table): Add s390_vector_bool attribute.
21217         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21218         (s390_branch_condition_mask): Generate masks for new modes.
21219         (s390_expand_vec_compare_cc): New function.
21220         (s390_mangle_type): Add mangling for vector bool types.
21221         (enum s390_builtin): Remove.
21222         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21223         efpc builtins.
21224         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21225         s390_cpu_cpp_builtins.
21226         (REGISTER_TARGET_PRAGMAS): New macro.
21227         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21228         (insn_cmp mode attribute): Add new CC modes.
21229         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21230         (lcbb): New pattern definition.
21231         * config/s390/s390intrin.h: Include vecintrin.h.
21232         * config/s390/t-s390: New file.
21233         * config/s390/vecintrin.h: New file.
21234         * config/s390/vector.md: Include vx-builtins.md.
21235         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21236         support.
21237
21238 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21239
21240         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21241         CCVFHE.
21242         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21243         (s390_select_ccmode): Likewise.
21244         (s390_canonicalize_comparison): Swap operands if necessary.
21245         (s390_expand_vec_compare_scalar): Expand DFmode compare using
21246         single element vector instructions.
21247         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21248         (s390_branch_condition_mask): Generate CC masks for the new modes.
21249         * config/s390/s390.md (v0, vf, vd): New mode attributes.
21250         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21251         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21252         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21253         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
21254         (*extend<DSF:mode><BFP:mode>2): New insn definition.
21255         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
21256         (extend<DSF:mode><BFP:mode>2): Turn into expander.
21257         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
21258         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
21259         (sqrt<mode>2): Add vector instruction.
21260
21261 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21262
21263         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
21264         constraints.
21265         * config/s390/predicates.md (const0_operand, constm1_operand)
21266         (constable_operand): Accept vector operands.
21267         * config/s390/s390-modes.def: Add supported vector modes.
21268         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
21269         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
21270         (s390_bytemask_vector_p, s390_expand_vec_strlen)
21271         (s390_expand_vec_compare, s390_expand_vcond)
21272         (s390_expand_vec_init): Add prototypes.
21273         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
21274         (s390_vector_mode_supported_p): New function.
21275         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21276         (s390_contiguous_bitmask_vector_p): New function.
21277         (s390_bytemask_vector_p): New function.
21278         (s390_split_ok_p): Vector regs don't work either.
21279         (regclass_map): Add VEC_REGS.
21280         (s390_legitimate_constant_p): Handle vector constants.
21281         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21282         (legitimate_reload_vector_constant_p): New function.
21283         (s390_preferred_reload_class): Handle CONST_VECTOR.
21284         (s390_reload_symref_address):  Likewise.
21285         (s390_secondary_reload): Vector memory instructions only support
21286         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
21287         (s390_emit_ccraw_jump): New function.
21288         (s390_expand_vec_strlen): New function.
21289         (s390_expand_vec_compare): New function.
21290         (s390_expand_vcond): New function.
21291         (s390_expand_vec_init): New function.
21292         (s390_dwarf_frame_reg_mode): New function.
21293         (print_operand): Handle addresses with 'O' and 'R' constraints.
21294         (NR_C_MODES, constant_modes): Add vector modes.
21295         (s390_output_pool_entry): Handle vector constants.
21296         (s390_hard_regno_mode_ok): Handle vector registers.
21297         (s390_class_max_nregs): Likewise.
21298         (s390_cannot_change_mode_class): New function.
21299         (s390_invalid_arg_for_unprototyped_fn): New function.
21300         (s390_function_arg_vector): New function.
21301         (s390_function_arg_float): Remove size variable.
21302         (s390_pass_by_reference): Handle vector arguments.
21303         (s390_function_arg_advance): Likewise.
21304         (s390_function_arg): Likewise.
21305         (s390_return_in_memory): Vector values are returned in a VR if
21306         possible.
21307         (s390_function_and_libcall_value): Handle vector arguments.
21308         (s390_gimplify_va_arg): Likewise.
21309         (s390_call_saved_register_used): Consider the arguments named.
21310         (s390_conditional_register_usage): Disable v16-v31 for non-vec
21311         targets.
21312         (s390_preferred_simd_mode): New function.
21313         (s390_support_vector_misalignment): New function.
21314         (s390_vector_alignment): New function.
21315         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21316         (TARGET_VECTOR_MODE_SUPPORTED_P)
21317         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21318         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21319         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21320         (TARGET_VECTOR_ALIGNMENT): Define target macro.
21321         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21322         (FIRST_PSEUDO_REGISTER): Increase value.
21323         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21324         (VECTOR_REG_P): Define macros.
21325         (FIXED_REGISTERS, CALL_USED_REGISTERS)
21326         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21327         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21328         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21329         Add vector registers.
21330         (CANNOT_CHANGE_MODE_CLASS): Call C function.
21331         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21332         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21333         memory.
21334         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21335         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21336         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21337         (VR*_REGNUM): New constants.
21338         (ALL): New mode iterator.
21339         (INTALL): Remove mode iterator.
21340         Include vector.md.
21341         (movti): Implement TImode moves for VRs.
21342         Disable TImode splitter for VR targets.
21343         Implement splitting TImode GPR<->VR moves.
21344         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21345         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21346         reload<mode>_la_in, reload<mode>_la_out.
21347         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21348         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21349         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21350         (mov<mode> SF SD): Prefer lder, lde for loading.
21351         Add lrl and strl instructions.
21352         Add vector instructions.
21353         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21354         Call s390_expand_vec_strlen on z13.
21355         (*cc_to_int): Change predicate to nonimmediate_operand.
21356         (addti3): Rename to *addti3.  New expander.
21357         (subti3): Rename to *subti3.  New expander.
21358         * config/s390/vector.md: New file.
21359
21360 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21361
21362         * common/config/s390/s390-common.c (processor_flags_table): Add
21363         z13.
21364         * config.gcc: Add z13.
21365         * config/s390/s390-opts.h (enum processor_type): Add
21366         PROCESSOR_2964_Z13.
21367         * config/s390/s390.c (s390_adjust_priority): Check for
21368         PROCESSOR_2964_Z13.
21369         (s390_reorg): Likewise.
21370         (s390_sched_reorder): Likewise.
21371         (s390_sched_variable_issue): Likewise.
21372         (s390_loop_unroll_adjust): Likewise.
21373         (s390_option_override): Likewise. Default to -mvx when available.
21374         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21375         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21376         (TARGET_VX_ABI): Define macros.
21377         macros.
21378         (TARGET_DEFAULT): Add MASK_OPT_VX.
21379         * config/s390/s390.md ("cpu" attribute): Add z13.
21380         ("cpu_facility" attribute): Add vec.
21381         * config/s390/s390.opt (processor_type): Add z13.
21382         (mvx): New options.
21383         * doc/invoke.texi: Add z13 option for -march.
21384
21385 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21386
21387         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21388         mode check to make sure that only scalar integer values are
21389         accepted.
21390
21391 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21392
21393         * tree.c (verify_type_variant): Fix #undef.
21394         (gimple_canonical_types_compatible_p): Move here from lto.c
21395         (verify_type): Verify TYPE_CANONICAL compatibility.
21396         * tree.h (gimple_canonical_types_compatible_p): Declare.
21397
21398 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21399
21400         PR middle-end/66199
21401         * tree.h (OMP_TEAMS_COMBINED): Define.
21402         * gimplify.c (enum gimplify_omp_var_data): Add
21403         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21404         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21405         (omp_notice_variable): Accept both ORT_TEAMS
21406         and ORT_COMBINED_TEAMS.  Don't recurse if
21407         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21408         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21409         GOVD_FIRSTPRIVATE.
21410         (omp_no_lastprivate): New function.
21411         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21412         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21413         notice_outer and set appropriate bits, otherwise make
21414         sure default(none) combined constructs won't complain.
21415         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21416         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21417         omp_no_lastprivate either remove the clause or turn it
21418         into OMP_CLAUSE_PRIVATE.
21419         (gimplify_omp_for): Fix up handling of implicit
21420         lastprivate or linear iterators.
21421         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21422         ORT_COMBINED_TEAMS.
21423         * omp-low.c (lower_omp_for_lastprivate): For combined
21424         for simd use fd.loop.n2 from the for rather than simd.
21425
21426 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21427
21428         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21429         instead of gen_rtx_raw_REG.
21430         (cris_expand_epilogue): Likewise.
21431         * config/microblaze/microblaze.c (microblaze_classify_address):
21432         Likewise.
21433         * config/sparc/sparc.md: Likewise.
21434
21435 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
21436
21437         * config/alpha/alpha.c (alpha_legitimize_reload_address)
21438         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21439         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21440         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21441         Use CASE_CONST_SCALAR_INT.
21442         (print_operand) <case 'M'>: Use mode_width_operand to check the
21443         value of the constant.
21444         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21445         * config/alpha/predicates.md (input_operand): Use general_operand
21446         instead of match_code as operand check.
21447         (symbolic_operand): Use match_code with subexpression digits.
21448         * config/alpha/constraints.md (Q): Ditto.
21449
21450 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21451
21452         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21453
21454 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21455
21456         * config/s390/s390.c (s390_secondary_reload): Fix check for
21457         load/store relative.
21458
21459 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21460
21461         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
21462         alternative_mask to uint64_t.
21463
21464 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21465
21466         PR tree-optimization/66187
21467         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21468         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
21469         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21470
21471 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
21472
21473         * diagnostic.c (diagnostic_report_current_module): Strengthen
21474         local "new_map" from const line_map * to
21475         const line_map_ordinary *.
21476         * genmatch.c (error_cb): Likewise for local "map".
21477         (output_line_directive): Likewise for local "map".
21478         * input.c (expand_location_1): Likewise for local "map".
21479         Pass NULL rather than &map to
21480         linemap_unwind_to_first_non_reserved_loc, since the value is never
21481         read from there, and the value written back not read from here.
21482         (is_location_from_builtin_token): Strengthen local "map" from
21483         const line_map * to const line_map_ordinary *.
21484         (dump_location_info): Strengthen locals "map" from
21485         line_map *, one to const line_map_ordinary *, the other
21486         to const line_map_macro *.
21487         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21488         const line_map * to const line_map_macro *.
21489         (maybe_unwind_expanded_macro_loc): Add a call to
21490         linemap_check_macro when writing to the "map" field of the
21491         loc_map_pair.
21492         Introduce local const line_map_ordinary * "ord_map", using it in
21493         place of "map" in the part of the function where we know we have
21494         an ordinary map.  Strengthen local "m" from const line_map * to
21495         const line_map_ordinary *.
21496
21497 2015-05-19  Nick Clifton  <nickc@redhat.com>
21498
21499         PR target/66156
21500         * config/msp430/msp430.md (zero_extendhisi2): Add support for
21501         separate source and destination registers.
21502
21503 2015-05-19  Richard Biener  <rguenther@suse.de>
21504
21505         PR tree-optimization/66165
21506         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21507         for no load permutation.
21508
21509         PR tree-optimization/66185
21510         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21511         when building the SLP node from scalars.
21512
21513 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21514             Tristan Gingold  <gingold@adacore.com>
21515
21516         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21517         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21518         (expand_stack_restore): Call record_new_stack_level.
21519         (expand_stack_save): Do not call do_pending_stack_adjust.
21520         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21521         * calls.c (expand_call): Call record_new_stack_level for alloca.
21522         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21523         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21524         (update_sjlj_context): New global function.
21525         * except.h (update_sjlj_context): Declare.
21526         * explow.c (record_new_stack_level): New global function.
21527         (allocate_dynamic_stack_space): Call record_new_stack_level.
21528         * explow.h (record_new_stack_level): Declare.
21529         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21530         * cfgrtl.c (duplicate_insn_chain): Likewise.
21531
21532 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21533
21534         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21535         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21536         STACK_GROWS_DOWNWARD as normal if.
21537         (expand_call): Likewise.
21538
21539 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
21540
21541         PR target/54236
21542         * config/sh/sh.md (*round_int_even): New insn_and_split and
21543         accompanying new unnamed split.
21544
21545 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21546
21547         * bitmap.c (bitmap_set_range): Handle count==1 specially.
21548         (bitmap_clear_range): Likewise.
21549         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21550         bitmap_set_range unconditionally.
21551         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21552         * df-scan.c (df_mark_reg): Likewise.
21553         * haifa-sched.c (setup_ref_regs): Likewise.
21554         * sched-rgn.c (update_live_1): Likewise.
21555
21556 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21557
21558         * regs.h (END_HARD_REGNO): Delete.
21559         (END_REGNO): Move to...
21560         * rtl.h: ...here.
21561         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21562         * caller-save.c (mark_set_regs): Likewise.
21563         * combine.c (move_deaths, distribute_notes): Likewise.
21564         * cse.c (invalidate, invalidate_for_call): Likewise.
21565         * df-scan.c (df_ref_record): Likewise.
21566         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21567         (record_last_reg_set_info): Likewise.
21568         * reg-stack.c (convert_regs_exit): Likewise.
21569         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21570         * resource.c (update_live_status): Likewise.
21571         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21572
21573 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21574
21575         * rtl.h (reg_info): Add an nregs field.
21576         (REG_NREGS): Use it.
21577         (SET_REGNO_RAW): Delete.
21578         (set_regno_raw): New function.
21579         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21580         (END_REGNO): Redefine in terms of REG_NREGS.
21581         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21582         SET_REGNO_RAW.
21583         * emit-rtl.c (set_mode_and_regno): Likewise.
21584         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21585         instead of SET_REGNO_RAW.
21586
21587 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21588
21589         * rtl.h (PUT_MODE_RAW): New macro.
21590         (PUT_REG_NOTE_KIND): Use it.
21591         (set_mode_and_regno): Declare.
21592         (gen_raw_REG): Change regno to "unsigned int".
21593         (gen_rtx_REG): Change "unsigned" to "unsigned int".
21594         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21595         use set_mode_and_regno to change the mode of registers.
21596         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21597         * emit-rtl.c (set_mode_and_regno): New function.
21598         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
21599         * caller-save.c (reg_save_code): Use set_mode_and_regno.
21600         * expr.c (init_expr_target): Likewise.
21601         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21602         * postreload.c (reload_cse_simplify_operands): Likewise.
21603
21604 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21605
21606         * caller-save.c (init_caller_save): Use word_mode and
21607         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21608         * expr.c (init_expr_target): Likewise.
21609         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21610         * postreload.c (reload_cse_regs_1): Likewise.
21611
21612 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21613
21614         * rtl.def (REG): Change format to "r".
21615         * rtl.h (rtunion): Remove rt_reg.
21616         (reg_info): New structure.
21617         (rtx_def): Add reg field to main union.
21618         (X0REGATTR): Delete.
21619         (REG_CHECK): New macro.
21620         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21621         * rtl.c (rtx_format): Document "r".
21622         (rtx_code_size): Handle REG specially.
21623         * gengenrtl.c (special_format): Return true for formats
21624         that include 'r'.
21625         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21626         Deal with REG_ATTRS after the field loop.
21627         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21628         * expmed.c (init_expmed): Call gen_raw_REG instead of
21629         gen_rtx_raw_REG.
21630         * expr.c (init_expr_target): Likewise.
21631         * regcprop.c (maybe_mode_change): Likewise.
21632         * varasm.c (make_decl_rtl): Likewise.
21633         * final.c (leaf_renumber_regs_insn): Return early after
21634         handling REGs.
21635         * genemit.c (gen_exp): Handle 'r' fields.
21636         * genpeep.c (match_rtx): Likewise.
21637         * gensupport.c (subst_pattern_match): Likewise.
21638         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21639         (alter_constraints, subst_dup): Likewise.
21640         * read-rtl.c (read_rtx_code): Likewise.
21641         * print-rtl.c (print_rtx): Likewise.
21642         * genrecog.c (find_operand, find_matching_operand): Likewise.
21643         (validate_pattern, match_pattern_2): Likewise.
21644         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21645         (rtx_test::regno_field): New function.
21646         (operator ==, safe_to_hoist_p, transition_parameter_type)
21647         (parameter_type_string, print_parameter_value)
21648         (print_nonbool_test, print_test): Handle new enum values.
21649         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21650         * lra-constraints.c (operands_match_p): Likewise.
21651
21652 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21653
21654         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21655         Change type of new_regno to unsigned int.
21656         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21657         new_regno to unsigned int.
21658         (df_ref_change_reg_with_loc): Remove old_regno parameter.
21659         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
21660         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21661         (SET_REGNO_RAW): Add space after ",".
21662
21663 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21664
21665         * rtl.h (REG_NREGS): New macro
21666         * alias.c (record_set): Use it.
21667         * cfgcleanup.c (mark_effect): Likewise.
21668         * combine.c (likely_spilled_retval_1): Likewise.
21669         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21670         (move_deaths, distribute_notes): Likewise.
21671         * cselib.c (cselib_record_set): Likewise.
21672         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21673         * df-scan.c (df_mark_reg): Likewise.
21674         * dse.c (look_for_hardregs): Likewise.
21675         * dwarf2out.c (reg_loc_descriptor): Likewise.
21676         (multiple_reg_loc_descriptor): Likewise.
21677         * expr.c (write_complex_part, read_complex_part): Likewise.
21678         (emit_move_complex): Likewise.
21679         * haifa-sched.c (setup_ref_regs): Likewise.
21680         * ira-lives.c (mark_hard_reg_live): Likewise.
21681         * lra.c (lra_set_insn_recog_data): Likewise.
21682         * mode-switching.c (create_pre_exit): Likewise.
21683         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21684         (reload_combine_recognize_pattern): Likewise.
21685         (reload_combine_note_use, move2add_record_mode): Likewise.
21686         (reload_cse_move2add): Likewise.
21687         * reg-stack.c (subst_stack_regs_pat): Likewise.
21688         * regcprop.c (kill_value, copy_value): Likewise.
21689         (copyprop_hardreg_forward_1): Likewise.
21690         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21691         (build_def_use): Likewise.
21692         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21693         (deps_analyze_insn): Likewise.
21694         * sched-rgn.c (check_live_1, update_live_1): Likewise.
21695         * sel-sched.c (count_occurrences_equiv): Likewise.
21696         * valtrack.c (dead_debug_insert_temp): Likewise.
21697
21698 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21699
21700         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21701         * dse.c (note_add_store): Likewise.
21702         * ira-lives.c (mark_hard_reg_dead): Likewise.
21703         * loop-invariant.c (mark_reg_store): Likewise.
21704         (mark_reg_death): Likewise.
21705         * postreload.c (reload_combine): Likewise.
21706         (reload_combine_note_store): Likewise.
21707         (reload_combine_note_use): Likewise.
21708         * recog.c (peep2_reg_dead_p): Likewise.
21709
21710 2015-05-19  Alan Modra  <amodra@gmail.com>
21711
21712         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21713         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21714         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21715         unused predicates.
21716         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21717         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
21718         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21719         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21720
21721 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
21722
21723         * config/mips/mips.md (JOIN_MODE): New mode iterator.
21724         (join2_load_Store<JOIN_MODE:mode>): New pattern.
21725         (join2_loadhi): Likewise.
21726         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21727         load-load and store-stores.
21728         * config/mips/mips.opt (mload-store-pairs): New option.
21729         (TARGET_LOAD_STORE_PAIRS): New macro.
21730         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21731         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21732         * config/mips/mips.c (mips_load_store_bonding_p): New function.
21733
21734 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
21735
21736         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21737         explicit swaps.
21738         * dojump.c (do_compare_rtx_and_jump): Likewise.
21739         * expmed.c (emit_store_flag_1): Likewise.
21740         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21741         * final.c (sprint_ul): Use std::reverse for reversing a string.
21742         * fold-const.c (extract_muldiv_1): Use std::swap.
21743         * genmodes.c (emit_mode_int_n): Likewise.
21744         * ifcvt.c (dead_or_predicable): Likewise.
21745         * ira-build.c (ira_merge_live_ranges): Likewise.
21746         (swap_allocno_copy_ends_if_necessary): Likewise.
21747         * ira.c (ira_setup_alts): Likewise.
21748         * loop-iv.c (iv_analyze_expr): Likewise.
21749         (implies_p): Likewise.
21750         (canon_condition): Likewise.
21751         * lra-constraints.c (swap_operands): Likewise.
21752         * lra-lives.c (lra_merge_live_ranges): Likewise.
21753         * omega.c (swap): Remove.
21754         (bswap): Remove.
21755         (omega_unprotect_1): Use std::swap.
21756         (omega_solve_geq): Likewise.
21757         * optabs.c (expand_binop_directly): Likewise.
21758         (expand_binop): Likewise.
21759         (emit_conditional_move): Likewise.
21760         (emit_conditional_add): Likewise.
21761         * postreload.c (reload_cse_simplify_operands): Likewise.
21762         * reg-stack.c (emit_swap_insn): Likewise.
21763         (swap_to_top): Likewise.
21764         (compare_for_stack_reg): Likewise.
21765         (subst_asm_stack_regs): Likewise.
21766         * reload.c (find_reloads): Likewise.
21767         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21768         * sel-sched.c (invoke_reorder_hooks): Likewise.
21769         (create_block_for_bookkeeping): Likewise.
21770         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21771         (lambda_matrix_right_hermite): Use std::swap.
21772         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21773         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21774         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21775         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21776         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21777         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21778         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21779         * tree-vrp.c (compare_ranges): Likewise.
21780         * var-tracking.c (add_with_sets): Likewise.
21781         (vt_find_locations): Likewise.
21782
21783 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
21784
21785         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21786         pie executables.
21787         (FBSD_ENDFILE_SPEC): Likewise.
21788         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21789         config/freebsd-spec.h.
21790         (ENDFILE_SPEC): Likewise.
21791
21792 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
21793             Richard Henderson  <rth@redhat.com>
21794
21795         PR target/57032
21796         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21797         Check for a memory location that is not a reference (using an AND)
21798         to an unaligned location here.
21799         * config/alpha/predicates.md (normal_memory_operand): Remove.
21800
21801 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
21802
21803         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21804         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21805
21806 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21807
21808         * config/mips/mips.c (micromips_globals): New variable.
21809         (mips_set_compression_mode): Save and reinitialize target-dependent
21810         state for microMIPS.
21811
21812 2015-05-18  Martin Liska  <mliska@suse.cz>
21813
21814         * dbgcnt.def: Add new counter.
21815         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21816
21817 2015-05-18  Martin Liska  <mliska@suse.cz>
21818
21819         * dbgcnt.def: Sort counters.
21820         * opts.c (common_handle_option): Do not compile if
21821         -fdbg-cnt-list is enabled.
21822
21823 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21824
21825         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21826         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
21827         address operator to va_list operand.
21828         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21829         unconditionally.
21830         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21831         operand.
21832         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21833         * config/s390/s390.c (s390_gimplify_va_arg): Same.
21834         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21835
21836 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21837
21838         * tree-ssa-tail-merge.c: Fix whitespace.
21839
21840 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
21841
21842         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21843         cortex-a17, and cortex-a17.cortex-a7.
21844
21845 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
21846
21847         PR target/54236
21848         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21849
21850 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
21851
21852         PR target/66174
21853         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21854         QImode inner modes for TARGET_AVX512BW.  Force mask operand
21855         to a register for AVX512F modes.
21856
21857 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21858
21859         * toplev.c (emit_debug_global_declarations): Do not output debug info
21860         when doing slim LTO objects.
21861
21862 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21863
21864         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21865         odr_types_equivalent_p): Declare.
21866         (odr_type_p): Use gcc_checking_assert.
21867         (type_in_anonymous_namespace_p) Declare.
21868         (type_with_linkage_p): Declare.
21869         * common.opt (Wlto-type-mismatch): New warning.
21870         * ipa-devirt.c (compound_type_base): New function.
21871         (odr_or_derived_type_p): New function.
21872         (odr_types_equivalent_p): New function.
21873         (add_type_duplicate): Simplify.
21874         (type_with_linkage_p): Add hack to prevent false positives on C types
21875         (type_in_anonymous_namespace_p): Likewise.
21876         * tree.c (need_assembler_name_p): Use type_with_linkage.
21877         * tree.h (type_in_anonymous_namespace_p): Remove.
21878         * doc/invoke.texi (-Wlto-type-mismatch): Document
21879
21880 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21881
21882         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21883         (verify_type): Verify STRING_FLAG.
21884
21885 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21886
21887         PR fortran/44054
21888         * tree-pretty-print.c (percent_K_format): Replace locus pointer
21889         with accessor function.
21890         * tree-diagnostic.c (diagnostic_report_current_function): Use
21891         diagnostic_location function.
21892         (maybe_unwind_expanded_macro_loc): Likewise.
21893         (virt_loc_aware_diagnostic_finalizer): Likewise.
21894         (default_tree_printer): Replace locus pointer with accessor function.
21895         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21896         (diagnostic_set_info_translated): Initialize second location.
21897         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21898         (diagnostic_show_locus): Handle two locations. Call
21899         diagnostic_print_caret_line.
21900         (diagnostic_print_caret_line): New.
21901         (default_diagnostic_starter): Use diagnostic_location function.
21902         (diagnostic_report_diagnostic): Use diagnostic_location function.
21903         (verbatim): Do not set text.locus.
21904         * diagnostic.h (struct diagnostic_info): Remove location field.
21905         (struct diagnostic_context): Make caret_chars an array of two.
21906         (diagnostic_location): New inline.
21907         (diagnostic_expand_location): Handle two locations.
21908         (diagnostic_same_line): New inline.
21909         (diagnostic_print_caret_line): Declare.
21910         (CARET_LINE_MARGIN): New constant.
21911         * pretty-print.c (pp_printf): Do not set text.locus.
21912         (pp_verbatim): Do not set text.locus.
21913         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21914         (struct text_info): Replace locus pointer with locations
21915         array. Add accessor functions.
21916
21917 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
21918             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21919
21920         PR target/65768
21921         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21922         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21923          large constants in register instead of splitting them.
21924
21925 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
21926
21927         PR target/66140
21928         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21929         replacements in memory addresses.
21930         (get_unaligned_address): Ditto.
21931
21932 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
21933
21934         * config/ft32/*: New files for FT32 port.
21935         * doc/install.texi: Add FT32 information.
21936         * doc/invoke.texi: Add FT32 information.
21937         * doc/md.texi: Add FT32 information.
21938         * doc/contrib.texi: Self added.
21939
21940 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
21941
21942         PR tree-optimization/64454
21943         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21944         (-1 - A -> ~A): Remove unnecessary condition.
21945
21946 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
21947
21948         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21949         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21950         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
21951
21952 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
21953
21954         * ipa-chkp.h (chkp_wrap_function): New.
21955         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
21956         (chkp_wrap_function_name): New.
21957         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
21958         to get wrapper name.
21959         * lto-cgraph.c: Include ipa-chkp.h.
21960         (input_cgraph_1): Avoid alias chain for wrappers.
21961
21962 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
21963
21964         PR middle-end/66134
21965         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
21966         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
21967
21968 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21969
21970         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
21971         (AARCH64_FL_SLOWMUL): Delete.
21972         (AARCH64_FL_CRC): Redefine to 1<<3.
21973         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
21974
21975 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21976
21977         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
21978         casting.
21979
21980 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21981
21982         * config/alpha/alpha.md (extendqidi2): Use general_operand
21983         instead of some_operand for operand[1] predicate.
21984         (extendhidi2): Ditto.
21985         (cbranchdi4): Use general_operand instead of some_operand
21986         for operand[1] and operands[2] predicates.
21987         (cstoredi4): Ditto.
21988         * config/alpha/predicates.md (some_operand): Remove unused predicate.
21989         (some_ni_operand): Ditto.
21990
21991 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21992
21993         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
21994         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
21995         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
21996         low part of the constant using alpha_emit_set_const_1.
21997         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
21998
21999 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
22000
22001         * varasm.c (output_constant_pool_1): Pass down alignment from
22002         constant pool entry's descriptor to output_constant_pool_2.
22003         (output_object_block): Add comment prior to call to
22004         output_constant_pool_1.
22005
22006 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
22007
22008         PR rtl-optimization/65862
22009         * target.def (ira_change_pseudo_allocno_class): New hook.
22010         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22011         value of the hook.
22012         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22013         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22014         hook.
22015         * ira-costs.c (find_costs_and_classes): Call the hook and change
22016         classes when it is necessary.
22017         * doc/tm.texi: Update.
22018
22019 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
22020
22021         * config/i386/i386.md (sibcall_memory): Check that register with
22022         callee address is not also used as one of the arguments, instead
22023         of checking that it is not live after the sibcall.
22024         (sibcall_pop_memory): Ditto.
22025         (sibcall_value_memory): Ditto.
22026         (sibcall_value_pop_memory): Ditto.
22027
22028 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
22029
22030         * generic-match-head.c (types_match): Handle non-types.
22031         * gimple-match-head.c (types_match): Likewise.
22032         * match.pd: Remove unnecessary TREE_TYPE for types_match.
22033
22034 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
22035
22036         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22037         (csneg3<mode>_insn): Enable expansion of pattern.
22038
22039 2015-05-14  Nick Clifton  <nickc@redhat.com>
22040
22041         * config/rl78/rl78.c (rl78_select_section): Select the correct
22042         default section based upon the category of the decl.
22043
22044 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22045
22046         PR rtl-optimization/30967
22047         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22048         destination mode for the cost of scc patterns.
22049
22050 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
22051
22052         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22053         using SWIM248 mode iterator.
22054         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22055         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
22056         for operand[2] constraint.
22057         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22058
22059 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22060
22061         PR middle-end/66133
22062         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22063         make sure it is never noreturn, even when the task body does not
22064         return.
22065         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22066         right before GIMPLE_OMP_RETURN.
22067         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22068         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
22069         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22070
22071 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22072
22073         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22074         * tree-ssa-math-opts.c: Include params.h
22075         (pow_synth_sqrt_info): New struct.
22076         (representable_as_half_series_p): New function.
22077         (get_fn_chain): Likewise.
22078         (print_nested_fn): Likewise.
22079         (dump_fractional_sqrt_sequence): Likewise.
22080         (dump_integer_part): Likewise.
22081         (expand_pow_as_sqrts): Likewise.
22082         (gimple_expand_builtin_pow): Use above to attempt to expand
22083         pow as series of square roots.  Removed now unused variables.
22084
22085 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
22086
22087         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22088         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22089         Remove *p0 and *p1 arguments.  Rewrite function.
22090         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22091         (alpha_split_const_mov): Update calls to alpha_extract_integer and
22092         alpha_emit_set_long_const.
22093         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22094         (alpha_output_mi_thunk_osf): Ditto.
22095         * config/alpha/alpha.md (movti): Do not check operands[1]
22096         for CONST_DOUBLE.
22097
22098 2015-05-13  Richard Biener  <rguenther@suse.de>
22099
22100         PR tree-optimization/66129
22101         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22102         commutative.
22103         (vect_schedule_slp_instance): Fix typo.
22104
22105 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
22106
22107         * common.opt (fdump-internal-locations): New option.
22108         * input.c: Include diagnostic-core.h.
22109         (get_end_location): New function.
22110         (write_digit): New function.
22111         (write_digit_row): New function.
22112         (dump_location_range): New function.
22113         (dump_labelled_location_range): New function.
22114         (dump_location_info): New function.
22115         * input.h (dump_location_info): New prototype.
22116         * toplev.c (compile_file): Handle flag_dump_locations.
22117
22118 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
22119
22120         * gimple-expr.h (is_gimple_constant): Reorder.
22121         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22122
22123 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22124
22125         * combine.c (simplify_set): When generating a CC set, if the
22126         source already is in the correct mode, do not wrap it in a
22127         compare.  Simplify the rest of that code.
22128
22129 2015-05-13  Richard Biener  <rguenther@suse.de>
22130
22131         PR tree-optimization/66123
22132         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22133         a taken edge.
22134
22135 2015-05-13  Richard Biener  <rguenther@suse.de>
22136
22137         PR middle-end/66110
22138         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22139         specially.
22140         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22141
22142 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22143
22144         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22145         * aclocal.m4: Regenerated with automake-1.11.6.
22146
22147 2015-05-13  Tom de Vries  <tom@codesourcery.com>
22148
22149         PR tree-optimization/66010
22150         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22151         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22152         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
22153         and rval based on do_deref.
22154
22155 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22156
22157         PR target/65103
22158         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22159         link time constants into adress expressions and therefore set
22160         their cost to 0.
22161
22162 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22163
22164         PR target/66112
22165         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22166         Use SWI248 iterator instead of SWI.
22167         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
22168         Use eq_attr "alternative" "0" instead of match_test in
22169         length_immediate attribute computation.
22170         (*mulvhi4, *mulvhi4_1): New define_insns.
22171
22172         PR target/66112
22173         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22174         SIGNED to get precision of non-negative value.
22175
22176 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22177
22178         PR target/66048
22179         * function.c (diddle_return_value_1): Process bounds first.
22180         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22181         register.
22182
22183 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22184
22185         PR rtl-optimization/64616
22186         * loop-invariant.c (can_move_invariant_reg): New.
22187         (move_invariant_reg): Call above new function to decide whether
22188         instruction can just be moved, skipping creation of temporary
22189         register.
22190
22191 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22192
22193         PR target/pr66047.c
22194         * i386.c (ix86_function_sseregparm): Only return -1 if local function
22195         with implied regparm is called from -mno-sse function.
22196         (init_cumulative_args): Output error if ix86_function_sseregparm
22197         return -1 and SSE register would be needed.
22198         (function_arg_advance_32): Likewise.
22199         (function_arg_32): Likewise.
22200         * i386.h (ix86_args): Add decl field.
22201
22202 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22203
22204         PR ipa/65873
22205         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22206         inlines across optimization boundary.
22207
22208 2015-05-12  Jason Merrill  <jason@redhat.com>
22209
22210         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22211         string literal and macro name.
22212
22213 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
22214
22215         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22216         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22217         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22218
22219 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22220
22221         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22222         (-Wmisleading-indentation): New option.
22223         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22224
22225 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
22226
22227         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22228         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22229         (alpha_extract_integer): Ditto.
22230         (alpha_legitimate_constant_p): Ditto.
22231         (alpha_split_tmode_pair): Ditto.
22232         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22233         (alpha_expand_mov): Ditto.
22234         (print_operand): Remove handling of 'H' modifier.
22235         <case 'm'>: Remove CONST_DOUBLE handling.
22236         (summarize_insn): Handle CONST_WIDE_INT.
22237         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22238         (anddi3): Ditto.
22239         (movti): Handle CONST_WIDE_INT.
22240         * config/alpha/constraints.md ('H'): Remove constraint definition.
22241         ('G'): Do not match MODE_FLOAT class.
22242         * config/alpha/predicates.md (const0_operand): Also match
22243         const_wide_int.
22244         (non_add_const_operand): Ditto.
22245         (non_zero_const_operand): Ditto.
22246         (some_operand): Ditto.
22247         (input_operand): Ditto.  Handle CONST_WIDE_INT.
22248         (and_operand): Do not match const_double.
22249         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22250
22251 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
22252
22253         PR target/65697
22254         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
22255         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
22256         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
22257         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
22258         is_mm_seq_cst, is_mm_sync): New accessor functions.
22259         * builtins.c (expand_builtin_sync_operation,
22260         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
22261         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
22262         (get_memmodel,  expand_builtin_atomic_compare_exchange,
22263         expand_builtin_atomic_load, expand_builtin_atomic_store,
22264         expand_builtin_atomic_clear): Use new accessor routines.
22265         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
22266         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
22267         (maybe_emit_sync_lock_test_and_set): Use new accessors and
22268         MEMMODEL_SYNC_ACQUIRE.
22269         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
22270         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
22271         expand_atomic_store): Use new accessors.
22272         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
22273         * tsan.c (instrument_builtin_call): Update check for memory model beyond
22274         final enum to use MEMMODEL_LAST.
22275         * c-family/c-common.c: Use new accessor for memmodel_base.
22276         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22277         accessors.
22278         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22279         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22280         mem_thread_fence, *dmb): Likewise.
22281         * config/alpha/alpha.c (alpha_split_compare_and_swap,
22282         alpha_split_compare_and_swap_12): Likewise.
22283         * config/arm/arm.c (arm_expand_compare_and_swap,
22284         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22285         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22286         atomic_loaddi): Likewise.
22287         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22288         Likewise.
22289         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22290         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22291         use new accessors.
22292         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22293         atomic_store<mode>, atomic_compare_and_swap<mode>,
22294         atomic_exchange<mode>): Use new accessors.
22295         * config/mips/mips.c (mips_process_sync_loop): Likewise.
22296         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22297         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22298         rs6000_post_atomic_barrier): Add new cases.
22299         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22300         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22301         (atomic_load<mode>): Add new cases and use new accessors.
22302         (store_quadpti): Add new cases.
22303         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22304         accessors.
22305         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22306         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22307         model, not 8.
22308
22309 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22310
22311         * ipa-devirt.c (type_with_linkage_p): New function.
22312         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22313         type has linkage.
22314         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22315         (can_be_name_hashed_p): Simplify.
22316         (hash_odr_name): Check that type has linkage before checking if it is
22317         anonymous.
22318         (types_same_for_odr): Likewise.
22319         (odr_name_hasher::equal): Likewise.
22320         (odr_subtypes_equivalent_p): Likewise.
22321         (warn_types_mismatch): Likewise.
22322         (get_odr_type): Likewise.
22323         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22324         * ipa-utils.h (odr_type_p): Move offline.
22325         * tree.c (need_assembler_name_p): Fix handling of types
22326         without linkages.
22327         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22328
22329 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22330
22331         * timevar.c (timevar_enable): Delete in favor of...
22332         (g_timer): New global.
22333         (struct timevar_def): Move to timevar.h inside class timer.
22334         (struct timevar_stack_def): Likewise.
22335         (timevars): Delete global in favor of field "m_timevars" within
22336         class timer in timevar.h
22337         (stack): Likewise, in favor of field "m_stack".
22338         (unused_stack_instances): Likewise, in favor of field
22339         "m_unused_stack_instances".
22340         (start_time): Likewise, in favor of field "m_start_time".
22341         (get_time): Eliminate check for timevar_enable.
22342         (timer::timer): New function, built from part of timevar_init.
22343         (timevar_init): Rewrite idempotency test from using
22344         "timevar_enable" bool to using dynamic allocation of "g_timer".
22345         Move rest of implementation into timer's constructor.
22346         (timevar_push_1): Rename to...
22347         (timer::push): ...this, adding "m_" prefixes to variables that
22348         are now fields of timer.
22349         (timevar_pop_1): Likewise, rename to...
22350         (timer::pop): ...this, and add "m_" prefixes.
22351         (timevar_start): Replace test for "timevar_enable" with one for
22352         "g_timer", and move bulk of implementation to...
22353         (timer::start): ...here, adding "m_" prefixes.
22354         (timevar_stop): Likewise, from here...
22355         (timer::stop): ...to here.
22356         (timevar_cond_start): Likewise, from here...
22357         (timer::cond_start): ...to here.
22358         (timevar_cond_stop): Likewise, from here...
22359         (timer::cond_stop): ...to here.
22360         (validate_phases): Rename to...
22361         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
22362         locals "total" and "tv" const.
22363         (timevar_print): Rename to...
22364         (timer::print): ...this, and add "m_" prefixes.  Make locals
22365         "total" and "tv" const.  Eliminate test for timevar_enable.
22366         * timevar.h (timevar_enable): Eliminate.
22367         (g_timer): New declaration.
22368         (timevar_push_1): Eliminate.
22369         (timevar_pop_1): Eliminate.
22370         (timevar_print): Eliminate.
22371         (class timer): New class.
22372         (timevar_push): Rewrite to use g_timer.
22373         (timevar_pop): Likewise.
22374         * toplev.c (toplev::~toplev): Likewise.
22375
22376 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
22377
22378         * arm-protos.h (arm_sched_autopref): Delete.
22379         (tune_params): Re-organize, use enums for flag values.
22380         (FUSE_OPS): New macro.
22381         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22382         (ARM_PREFETCH_BENEFICIAL): Likewise.
22383         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22384         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22385         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22386         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22387         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22388         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
22389         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22390         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22391         format.
22392         (arm_option_override, thumb2_reorg, arm_print_tune_info)
22393         (aarch_macro_fusion_pair_p): Update uses of current_tune.
22394         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22395
22396 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
22397
22398         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22399         "break".
22400
22401 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
22402             Sandra Loosemore <sandra@codesourcery.com>
22403
22404         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22405         value.
22406         (REG_CLASS_NAMES): Add "IJMP_REGS".
22407         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22408         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22409         use new "c" register constraint.
22410         * config/nios2/constraint.md (c): New register constraint
22411         corresponding to IJMP_REGS.
22412
22413 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22414
22415         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22416         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22417         define_splits): Delete, revamp, transmogrify into ...
22418         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22419         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22420         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22421         New.
22422
22423 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22424
22425         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22426         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22427
22428 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22429
22430         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22431         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22432         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22433         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22434         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22435         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22436         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22437         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22438         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22439         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22440         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22441         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22442         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22443         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22444         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22445         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22446         and 30 corresponding splitters): Delete.
22447
22448 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22449
22450         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22451         zero_extract.
22452
22453 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22454
22455         * combine.c (recog_for_combine_1): New function, factored out
22456         from recog_for_combine.
22457         (change_zero_ext): New function.
22458         (recog_for_combine): If recog fails, try again with the pattern
22459         modified by change_zero_ext; if that still fails, restore the
22460         pattern.
22461
22462 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22463
22464         * combine.c (get_undo_marker): New function.
22465         (undo_to_marker): New function, largely factored out from ...
22466         (undo_all): ... this.  Adjust.
22467
22468 2015-05-12  Richard Biener  <rguenther@suse.de>
22469
22470         PR tree-optimization/66101
22471         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22472         fixup if we turn a loop exit edge to a fallthru edge.
22473
22474 2015-05-12  Richard Biener  <rguenther@suse.de>
22475
22476         PR tree-optimization/37021
22477         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22478         (SLP_TREE_TWO_OPERATORS): New define.
22479         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22480         SLP_TREE_TWO_OPERATORS.
22481         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22482         SLP node.
22483         (vect_build_slp_tree): Adjust.
22484         (vect_analyze_slp_cost_1): Likewise.
22485         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22486         emitting two vector stmts and mixing the results.
22487
22488 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22489
22490         * call.c (print_z_candidates): Remove dead code.
22491
22492 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22493
22494         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22495         and zEC12_simple_fp.
22496         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22497         to 1.
22498
22499 2015-05-12  Tom de Vries  <tom@codesourcery.com>
22500
22501         PR tree-optimization/66010
22502         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22503         ifn_va_arg.
22504         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22505         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
22506         va_lists are passed, and remove corresponding handling.
22507         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
22508         do_deref argument to ifn_va_arg.
22509         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22510         ifn_va_arg.
22511
22512 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22513
22514         PR target/65955
22515         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22516         REG before taking its REGNO.
22517
22518 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22519
22520         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22521         rsp->sign_bit_copies and rsp->nonzero_bits into ...
22522         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
22523         present to get more accurate information about the number of sign bit
22524         copies and non zero bits.
22525
22526 2015-05-12  Richard Biener  <rguenther@suse.de>
22527
22528         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22529         do not allow unrolling.
22530
22531 2015-05-11  Richard Henderson  <rth@redhat.com>
22532
22533         * config/i386/i386-modes.def (CCP): New.
22534         * config/i386/i386.c (put_condition_code): Handle it.
22535         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22536
22537 2015-05-11  Richard Henderson  <rth@redhat.com>
22538
22539         * target.def (md_asm_clobbers): Replace with...
22540         (md_asm_adjust): this.
22541         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22542         (TARGET_MD_ASM_ADJUST): New.
22543         * tm.texi: Rebuild.
22544         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22545         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22546         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22547
22548         * cfgexpand.c (check_operand_nalternatives): Accept vector of
22549         constraints instead of lists of outputs and inputs.
22550         (expand_asm_stmt): Save and restore input_location around the
22551         body of the function.  Move asm data into vectors instead of
22552         building tree lists.  Generate cleanup sequences as needed,
22553         rather than waiting til the end.  Use new md_asm_adjust hook.
22554
22555         * config/vxworks.c: Include vec.h before target.h.
22556         * gimple.c: Likewise.
22557         * incpath.c: Likewise.
22558         * mode-switching.c: Likewise.
22559
22560         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22561         (cris_md_asm_adjust): this.
22562         (TARGET_MD_ASM_CLOBBERS): Remove.
22563         (TARGET_MD_ASM_ADJUST): New.
22564         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22565         (ix86_md_asm_adjust): this.
22566         (TARGET_MD_ASM_CLOBBERS): Remove.
22567         (TARGET_MD_ASM_ADJUST): New.
22568         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22569         (mn10300_md_asm_adjust): this.
22570         (TARGET_MD_ASM_CLOBBERS): Remove.
22571         (TARGET_MD_ASM_ADJUST): New.
22572         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22573         (rs6000_md_asm_adjust): this.
22574         (TARGET_MD_ASM_CLOBBERS): Remove.
22575         (TARGET_MD_ASM_ADJUST): New.
22576         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22577         (visium_md_asm_adjust): this.
22578         (TARGET_MD_ASM_CLOBBERS): Remove.
22579         (TARGET_MD_ASM_ADJUST): New.
22580
22581 2015-05-11  Richard Henderson  <rth@redhat.com>
22582
22583         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22584         if noutputs is zero.
22585         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22586
22587         * cfgexpand.c (expand_asm_operands): Merge into...
22588         (expand_asm_stmt): ... here.
22589
22590         * cfgexpand.c (expand_asm_operands): Don't call
22591         resolve_asm_operand_names.
22592         * stmt.c (resolve_asm_operand_names): Clarify block comment.
22593
22594 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
22595
22596         * dwarf2out.c (gen_member_die): Sanity check that we access
22597         TYPE_MAIN_VARIANT for TYPE_METHODS.
22598         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22599         checking TYPE_METHODS.
22600         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22601         if non-null.
22602         (build_distinct_type_copy): Clear TYPE_METHODS.
22603         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22604         (verify_type): Allow TYPE_METHODS to be error_mark_node.
22605         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22606
22607 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22608
22609         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22610         (emit_pattern_before_setloc): Likewise.
22611
22612 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22613
22614         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22615         for define_peephole2s.
22616         (get_peephole2_pattern): New function.
22617         (main): Use it.  Call validate_pattern.
22618
22619 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22620
22621         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22622         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22623         (Last callee saved reg is different for AVR_TINY architecture)
22624
22625 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22626
22627         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22628         when looking for memory references.
22629
22630 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22631
22632         PR target/65753
22633         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22634         via function pointers.
22635
22636 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22637
22638         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22639         indirect call by forcing address into a pseudo with -fno-plt.
22640         * common.opt (flag_plt): New option.
22641         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22642         ([-fno-plt]): Document.
22643
22644 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
22645
22646         PR bootstrap/66105
22647         * config/rs6000/option-defaults.h: Add space between string literal
22648         and macro name.
22649
22650 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22651
22652         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22653         accross ARM targets.
22654
22655 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22656
22657         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22658         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22659
22660 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22661
22662         PR rtl-optimization/66076
22663         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22664         Don't grow the heap array if it is already big enough from a
22665         previous iteration.
22666
22667 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22668
22669         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22670         (is_called_in_ARM_mode): Remove.
22671         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22672         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22673         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22674          arm_declare_function_name.
22675
22676 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22677
22678         * config/arm/arm.c (arm_option_override): Reoganized and split into :
22679         (arm_option_params_internal); New function.
22680         (arm_option_check_internal): New function.
22681         (arm_option_override_internal): New function.
22682         (thumb_code, thumb1_code): Remove.
22683         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22684         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22685         (thumb_code, thumb1_code): Remove.
22686         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22687
22688 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22689
22690         * config/alpha/alpha.c (alpha_emit_set_const_1)
22691         (alpha_emit_set_long_const, alpha_extract_integer)
22692         (alpha_legitimate_constant_p, alpha_split_const_mov)
22693         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22694         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22695         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22696         HOST_WIDE_INT_1U.
22697         * config/alpha/predicates.md (mode_mask_operand): Do not match
22698         const_double RTX.
22699         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22700         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22701         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22702         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22703         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22704
22705 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
22706
22707         PR target/65780
22708         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22709         default_binds_local_p_2.
22710         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22711         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22712
22713 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22714
22715         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22716
22717 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22718
22719         Patch by Richard Biener
22720         * coverage.c (coverage_obj_init): Delay building of type variant
22721         until the type is finished.
22722
22723 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22724
22725         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22726         mismatch between C and C++ type; compoare correctly ARG_TYPES
22727         for non-prototypes and output correctly parameter index for METHOD_TYPE.
22728         (odr_types_equivalent_p): Fix wording of warning about attributes;
22729         it is OK to match prototype and non-prototype.
22730
22731 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22732
22733         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22734         TYPE_ARG_TYPES list.
22735         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22736         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22737
22738 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22739
22740         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22741         * tree.h (is_lang_specific): Constify.
22742
22743 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
22744
22745         PR tree-optimization/64454
22746         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22747         Rewrite.
22748
22749 2015-05-08  Jason Merrill  <jason@redhat.com>
22750
22751         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22752         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22753         config/darwin.h, config/darwin9.h, config/elfos.h,
22754         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22755         config/microblaze/microblaze.h, config/mips/mips.h,
22756         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22757         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22758         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22759         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22760         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22761         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22762         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22763         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22764         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22765         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22766         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22767         between string literal and macro name.
22768
22769 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22770
22771         * jump.c: Change argument types to rtx_insn *.
22772         * rtl.h: Adjust.
22773
22774 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22775
22776         * lra-constraints.c: Change argument type to rtx_insn *.
22777
22778 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22779
22780         * df-problems.c: Change argument type to rtx_insn *.
22781
22782 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22783
22784         * combine.c: Change argument type to rtx_insn *.
22785
22786 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22787
22788         * rtl.h: Adjust.
22789         * rtlanal.c: Change argument type to rtx_insn *.
22790
22791 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22792
22793         * sched-deps.c: Change argument types to rtx_insn *.
22794         * sched-int.h: Adjust.
22795
22796 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22797
22798         * dwarf2cfi.c: Change argument type to rtx_insn *.
22799
22800 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22801
22802         * ira.c (decrease_live_ranges_number): Changetype of local
22803         variable to rtx_insn *.
22804         * recog.c: Change argument types to rtx_insn *.
22805         * recog.h: Adjust.
22806
22807 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22808
22809         * reorg.c: Change argument types to rtx_insn *.
22810
22811 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22812
22813         * ira-color.c: Change argument types to rtx_insn *.
22814         * lra-eliminations.c: Likewise.
22815         * ira.h: Adjust.
22816
22817 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22818
22819         * gcse.c: Change argument types to rtx_insn *.
22820
22821 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22822
22823         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22824
22825 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22826
22827         * emit-rtl.c (emit_debug_insn_before): Change argument type to
22828         rtx_insn *.
22829         * rtl.h: Adjust.
22830
22831 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22832
22833         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22834         * rtl.h: Adjust.
22835
22836 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22837
22838         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22839         * rtl.h: Adjust.
22840
22841 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22842
22843         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22844         * rtl.h: Adjust.
22845
22846 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22847
22848         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22849         * rtl.h: Adjust.
22850
22851 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22852
22853         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22854         to rtx_insn *.
22855         * rtl.h: Adjust.
22856
22857 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22858
22859         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22860         to rtx_insn *.
22861         * rtl.h: Likewise.
22862
22863 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22864
22865         * except.c (can_nonlocal_goto): Change type of argument to
22866         rtx_insn *.
22867         * rtl.h: Adjust.
22868
22869 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22870
22871         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22872         * rtl.h: Adjust.
22873
22874 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22875
22876         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22877         * cfgrtl.c (can_delete_label_p): Adjust.
22878         * rtl.h: likewise.
22879
22880 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22881
22882         * reorg.c (stop_search_p): Change argument to rtx_insn *.
22883
22884 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22885
22886         * except.c (make_reg_eh_region_note): Change argument to
22887         rtx_insn *.
22888         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22889         * except.h: Adjust.
22890
22891 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22892
22893         * mode-switching.c (commit_mode_sets): Change type of local
22894         variable from rtx to rtx_insn *.
22895
22896 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
22897
22898         * doc/install.texi (--enable-languages): Add missing jit and lto info.
22899         Add ^ to grep command.
22900         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22901         arg to last gimple_simplify declaration.  Add missing gimple_build
22902         declaration for built-in function case with four tree args.
22903
22904 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22905             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22906
22907         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22908         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22909         (GNU_USER_DYNAMIC_LINKERN32): Update.
22910
22911 2015-05-08  Richard Biener  <rguenther@suse.de>
22912
22913         PR tree-optimization/66036
22914         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22915         Handle strided group loads.
22916         (vect_verify_datarefs_alignment): Likewise.
22917         (vect_enhance_data_refs_alignment): Likewise.
22918         (vect_analyze_group_access): Likewise.
22919         (vect_analyze_data_ref_access): Likewise.
22920         (vect_analyze_data_ref_accesses): Likewise.
22921         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22922         (vectorizable_load): Likewise.
22923
22924 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
22925
22926         * config/rs6000/rs6000.md: Require operand inequality in one
22927         of the peepholes.
22928
22929 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
22930             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22931
22932         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22933         from (set ...).
22934         * config/rx/rx.md (movdi, movdf): Likewise.
22935         Likewise for define_peephole2s.
22936
22937 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22938
22939         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22940         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22941         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22942         vtst_u64): Rewrite using gcc vector extensions.
22943
22944 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22945
22946         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22947         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22948
22949 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22950
22951         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
22952
22953 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22954
22955         * config/glibc-stdint.h (OPTION_MUSL): Define.
22956         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
22957         Change the definition based on OPTION_MUSL for 64 bit targets.
22958         * config/linux.h (OPTION_MUSL): Redefine.
22959         * config/alpha/linux.h (OPTION_MUSL): Redefine.
22960         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
22961         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
22962
22963 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22964             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22965
22966         * config.gcc (LIBC_MUSL): New tm_defines macro.
22967         * config/linux.h (OPTION_MUSL): Define.
22968         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
22969         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
22970         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22971         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22972         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22973         * config/linux.opt (mmusl): New option.
22974         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
22975         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22976         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22977         * configure: Regenerate.
22978
22979 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
22980             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22981
22982         PR target/48904
22983         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
22984         * config/i386/knetbsd-gnu64.h: New file.
22985
22986 2015-05-08  Marek Polacek  <polacek@redhat.com>
22987
22988         PR c/64918
22989         * doc/invoke.texi: Document -Woverride-init-side-effects.
22990
22991 2015-05-07  Marek Polacek  <polacek@redhat.com>
22992
22993         PR c/65179
22994         * doc/invoke.texi: Document -Wshift-negative-value.
22995
22996 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
22997
22998         * gcov-tool.c (do_merge): Refactore to remove int ret.
22999         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23000         !type == FUNC to type != FUNC.
23001         * reload.h (struct target_reload): Changee to type of
23002         x_spill_indirect_levels from bool to unsigned char.
23003
23004 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
23005
23006         * rtl.h (always_void_p): New function.
23007         * gengenrtl.c (always_void_p): Likewise.
23008         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23009         with code foo are always VOIDmode.
23010         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23011         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23012         compare-elim.c, config/aarch64/aarch64.c,
23013         config/aarch64/aarch64.md, config/alpha/alpha.c,
23014         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23015         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23016         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23017         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23018         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23019         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23020         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23021         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23022         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23023         config/ia64/vect.md, config/iq2000/iq2000.c,
23024         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23025         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23026         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23027         config/mep/mep.c, config/microblaze/microblaze.c,
23028         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23029         config/mn10300/mn10300.c, config/msp430/msp430.c,
23030         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23031         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23032         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23033         config/rs6000/altivec.md, config/rs6000/rs6000.c,
23034         config/rs6000/rs6000.md, config/rs6000/vector.md,
23035         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23036         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23037         config/sh/sh.md, config/sh/sh_treg_combine.cc,
23038         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23039         config/spu/spu.md, config/stormy16/stormy16.c,
23040         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23041         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23042         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23043         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23044         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23045         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23046         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23047         var-tracking.c: Update calls accordingly.
23048
23049 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
23050
23051         PR middle-end/192
23052         PR middle-end/54303
23053         * varasm.c (function_mergeable_rodata_prefix): New function.
23054         (mergeable_string_section): Use it.
23055         (mergeable_constant_section): Use it.
23056
23057 2015-05-07  Jeff Law  <law@redhat.com>
23058
23059         PR target/39726
23060         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23061         simplifier to narrow arithmetic.
23062         * generic-match-head.c: (types_match, single_use): New functions.
23063         * gimple-match-head.c: (types_match, single_use): New functions.
23064
23065 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23066
23067         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23068         rtx type.
23069
23070 2015-05-07  Richard Biener  <rguenther@suse.de>
23071
23072         PR tree-optimization/66002
23073         * passes.def: Schedule another pass_merge_phi after ifcombine, right
23074         before phiopt.
23075
23076 2015-05-07  Marek Polacek  <polacek@redhat.com>
23077             Martin Uecker  <uecker@eecs.berkeley.edu>
23078
23079         * doc/invoke.texi: Document -fsanitize=bounds-strict.
23080         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23081         into SANITIZE_NONDEFAULT.
23082         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23083
23084 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
23085
23086         PR target/66015
23087         * config/alpha/alpha.c (alpha_override_options_after_change): New.
23088         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23089         (alpha_override_options): Move align_loops, align_jumps and
23090         align_functions handling into alpha_override_options_after_change.
23091
23092 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
23093             Chris Jones  <chrisj@nvidia.com>
23094             Joshua Conner  <jconner@nvidia.com>
23095
23096         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23097         linking of crtfastmath.o.
23098         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23099
23100 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
23101
23102         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23103         (cstore<mode>4_unsigned_imm): New expander.
23104         (cstore<mode>4): Remove empty constraint strings.  Use the new
23105         expanders.
23106
23107 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
23108
23109         PR target/64208
23110         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23111         alternatives.
23112
23113 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23114
23115         * config/aarch64/geniterators.sh: Use standard BRE in sed.
23116
23117 2015-05-06  Alan Modra  <amodra@gmail.com>
23118
23119         PR target/66033
23120         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23121         (UNSPEC_NOP): Define.
23122         (reload_vsx_from_gpr<mode>): Add missing DONE.
23123         (reload_gpr_from_vsx<mode>): Likewise.
23124         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23125         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23126
23127 2015-05-06  Christian Bruel  <christian.bruel@st.com>
23128
23129         PR target/66015
23130         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23131         align_jumps, align_functions into aarch64_override_options_after_change.
23132
23133 2015-05-06  Richard Biener  <rguenther@suse.de>
23134
23135         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23136         vect_transform_slp_perm_load to check if we support a permutation
23137         for basic-block vectorization.
23138
23139 2015-05-06  Nick Clifton  <nickc@redhat.com>
23140
23141         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23142         used, even if it is not being used as a frame pointer.
23143
23144 2015-05-05  Jason Merrill  <jason@redhat.com>
23145
23146         * dwarf2out.c (gen_member_die): Don't emit anything for an
23147         anonymous class constructor.
23148
23149 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
23150
23151         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23152         that it reflects the block structure.
23153         (afdo_propagate_edge): Likewise.
23154         (afdo_calculate_branch_prob): Likewise.
23155         (afdo_annotate_cfg): Likewise.
23156         * cfgcleanup.c (equal_different_set_p): Likewise.
23157         (try_crossjump_to_edge): Likewise.
23158         * cgraph.c (cgraph_node::verify_node): Likewise.
23159         * cgraphunit.c (expand_all_functions): Likewise.
23160         * config/i386/i386.c (ix86_expand_copysign): Likewise.
23161         (exact_dependency_1): Likewise.
23162         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23163         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23164         * gensupport.c (process_define_subst): Likewise.
23165         * lto-wrapper.c (merge_and_complain): Likewise.
23166         * tree-if-conv.c (if_convertible_bb_p): Likewise.
23167         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23168         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23169         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23170         * tree-vect-loop.c (vectorizable_reduction): Likewise.
23171         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23172         * tree-vect-stmts.c (vectorizable_shift): Likewise.
23173         * tree-vrp.c (vrp_finalize): Likewise.
23174         * tree.c (variably_modified_type_p): Likewise.
23175
23176 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
23177
23178         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23179         on darwin12 and later.
23180         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23181         file to pass -rdynamic on darwin12 and later.
23182         * config/darwin.opt (rdynamic): Add.
23183
23184 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23185
23186         * doc/extend.texi (C Extensions): Update menu for moved Variable
23187         Attributes and Type Attributes sections.
23188
23189 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23190
23191         PR target/65990
23192         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23193         if rep_8byte stringop strategy was specified for 32-bit target.
23194
23195 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
23196
23197         PR target/65915
23198         * config/i386/i386.md (vector convert to float spltiter): Check for
23199         xmm16+, when splitting scalar float conversion.
23200         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23201
23202 2015-05-05  Nick Clifton  <nickc@redhat.com>
23203
23204         * config/msp430/msp430-opts.h (enum msp430_regions): New.
23205         * config/msp430/msp430.c (msp430_override_options): Complain if
23206         -mcode-region or -mdata-region is used on a non MSP430X.
23207         (msp430_section_attr): New function.  Checks lower, upper and
23208         either attributes.
23209         (msp430_attribute_table): Add lower, upper and either.
23210         (gen_prefix): New function.  Generates a prefix for a section
23211         name.
23212         (msp430_select_section): New function - handles the choice of
23213         section for an object.  Takes into account memory region
23214         attributes and options.
23215         (msp430_function_section): Use gen_prefix.
23216         (TARGET_SECTION_TYPE_FLAGS): Define.
23217         (msp430_section_type_flags): New function.
23218         (TARGET_ASM_UNIQUE_SECTION): Define.
23219         (msp430_unique_section): New function.
23220         (msp430_output_aligned_decl_common): New function.
23221         (msp430_do_not_relax_short_jumps): New function.
23222         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23223         Define.
23224         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23225         * config/msp430/msp430-protos.h
23226         (msp430_do_not_relax_short_jumps): New prototype.
23227         (msp430_output_aligned_decl_common): New prototype.
23228         * config/msp430/msp430.md (length): New attribute.
23229         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23230         then use a long code sequence for short jumps.
23231         * config/msp430/msp430.opt (mcode-region): New.
23232         (mdata-region): New.
23233         * doc/invoke.texi: Document new options.
23234         * doc/extend.texi: Document new attributes.
23235
23236 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23237
23238         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23239         (tune_params): Add field branch_costs.
23240         (aarch64_branch_cost): Declare.
23241         * gcc/config/aarch64.c (generic_branch_cost): New.
23242         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23243         (cortexa53_tunings): Likewise.
23244         (cortexa57_tunings): Likewise.
23245         (thunderx_tunings): Likewise.
23246         (xgene1_tunings): Likewise.
23247         (aarch64_branch_cost): Define.
23248         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23249
23250 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23251
23252         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23253         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
23254         * config/i386/i386.md: Ditto.
23255         * config/i386/winnt.c: Ditto.
23256
23257 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23258
23259         * doc/extend.texi (__atomic Builtins): Move implementation details
23260         to the end of the description, rewrite opening paragraphs, state
23261         difference with __sync builtins, state C11/C++11 assumptions,
23262         weaken itemized descriptions, add explanation of memory model
23263         behaviour, expand description of compare-exchange, simplify text.
23264
23265 2015-05-05  Renlin Li  <renlin.li@arm.com>
23266
23267         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
23268
23269 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
23270
23271         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
23272         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23273         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
23274         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23275         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23276         * configure: Regenerate.
23277         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23278         * doc/install.texi (aarch64*-*-*): Document new
23279         --enable-fix-cortex-a53-843419 option.
23280         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23281         and -mno-fix-cortex-a53-843419 options.
23282
23283 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23284
23285         PR target/65871
23286         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23287
23288 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
23289
23290         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23291         fix overactive TYPE_MIN_VALUE check and add FIXME for type
23292         compatibility problems.
23293
23294 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23295
23296         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23297         constraints.
23298         (cbranchsi4_reg): New.
23299         * config/microblaze/microblaze.c
23300         (microblaze_expand_conditional_branch_reg): New.
23301         * config/microblaze/microblaze-protos.h
23302         (microblaze_expand_conditional_branch_reg): New prototype.
23303
23304 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23305
23306         * config/microblaze/microblaze.md (peephole2): New.
23307
23308 2015-05-04  Jeff Law  <law@redhat.com>
23309
23310         Revert:
23311         2015-05-04  Jeff Law  <law@redhat.com>
23312
23313         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23314         simplifier to narrow arithmetic.
23315         * generic-match-head.c: (types_match, single_use): New functions.
23316         * gimple-match-head.c: (types_match, single_use): New functions.
23317
23318 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
23319
23320         PR target/65987
23321         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23322         (split_branches): Likewise.
23323
23324 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
23325
23326         * common.opt (fdelete-null-pointer-checks): Init to -1.
23327         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23328         override flag_delete_null_pointer_checks default.
23329         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23330         behavior re address zero.  Better document target-specific behavior.
23331         (-fisolate-errneous-paths-dereference): Mention relationship to
23332         -fdelete-null-pointer-checks.
23333
23334 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23335
23336         PR tree-optimization/65984
23337         * ubsan.c: Include tree-cfg.h.
23338         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23339         stmt_could_throw_p test, rename can_throw variable to ends_bb.
23340
23341 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23342
23343         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23344         to CONST_DOUBLE_P predicate.
23345         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23346         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23347         allow only operands that satisfy standard_sse_constant_p predicate.
23348         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23349         to CONST_DOUBLE_P predicate.
23350
23351 2015-05-04  Jeff Law  <law@redhat.com>
23352
23353         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23354         simplifier to narrow arithmetic.
23355         * generic-match-head.c: (types_match, single_use): New functions.
23356         * gimple-match-head.c: (types_match, single_use): New functions.
23357
23358 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
23359
23360         * config/arm/arm.c: Restore bootstrap.
23361
23362 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23363
23364         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23365         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23366         as CONST_WIDE_INT, not CONST_DOUBLE.
23367         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23368         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23369         (ix86_find_base_term): Do not check for CONST_DOUBLE.
23370         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23371         (ix86_build_signbit_mask): Rewrite using wide ints.
23372         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23373         (ix86_rtx_costs): Handle CONST_WIDE_INT.
23374         (find_constant): Ditto.
23375         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23376         using gen_int_mode.
23377         * config/i386/predicates.md (x86_64_immediate_operand)
23378         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23379         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23380         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23381         (const0_operand): Also match const_wide_int.
23382         (constm1_operand): Ditto.
23383         (const1_operand): Ditto.
23384
23385 2015-05-04  Richard Biener  <rguenther@suse.de>
23386
23387         PR tree-optimization/65965
23388         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23389         store groups at gaps.
23390
23391 2015-05-04  Richard Biener  <rguenther@suse.de>
23392
23393         PR tree-optimization/65935
23394         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23395         then make sure to apply that swapping to the IL.
23396
23397 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23398
23399         * Makefile.in (PATCHLEVEL_c): New variable.
23400         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23401         expand the same way as if DEVPHASE_c was non-empty.
23402
23403 2015-05-04  Kai Tietz  <ktietz@redhat.com>
23404
23405         PR target/65559
23406         * lto-wrapper.c (run_gcc): Open filename
23407         in binary-mode.
23408
23409 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
23410
23411         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
23412         sections up in file, to immediately after the Function Attributes
23413         section.
23414
23415 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
23416
23417         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23418
23419 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23420
23421         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23422         (insert_partition_copy_on_edge): Adjust.
23423         (insert_rtx_to_part_on_edge): Likewise.
23424         (insert_part_to_rtx_on_edge): Likewise.
23425
23426 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23427
23428         * function.c (set_return_jump_label): Change type of argument to
23429         rtx_insn *.
23430         * function.h (set_return_jump_label): Adjust.
23431
23432 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23433
23434         * reload.h (struct reg_equivs_t): Change type of init to
23435         rtx_insn *.
23436         * ira.c (fix_reg_equiv_init): Adjust.
23437         * reload1.c (eliminate_regs_1): Likewise.
23438         (init_eliminable_invariants): Likewise.
23439
23440 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23441
23442         * cselib.c (fp_setter_insn): Take a rtx_insn *.
23443         * cselib.h (fp_setter_insn): Adjust.
23444
23445 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23446
23447         * recog.c (struct validate_replace_src_data): Change type of
23448         insn field to rtx_insn *.
23449         (validate_replace_src_group): Change type of argument to rtx_insn *.
23450         * recog.h (validate_replace_src_group): Adjust.
23451
23452 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23453
23454         * haifa-sched.c: Change the type of some variables to rtx_insn *.
23455         * sched-deps.c: Likewise.
23456         * sched-int.h: Likewise.
23457         * sched-rgn.c: Likewise.
23458         * sel-sched.c: Likewise.
23459
23460 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23461
23462         to rtx_insn *.
23463         * config/i386/i386.c: Change the type of some arguments to
23464         rtx_insn *.
23465         * config/arm/arm.c: Likewise.
23466
23467 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23468
23469         * lra-constraints.c: Change type of some arguments to rtx_insn *.
23470
23471 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23472
23473         * regcprop.c (kill_autoinc_value): Change type of argument to
23474         rtx_insn *.
23475
23476 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23477
23478         * genrecog.c (print_subroutine): Adjust.
23479         * recog.c (get_bool_attr_mask_uncached): Likewise.
23480         * recog.h (struct recog_data_d): Change the type of insn to
23481         rtx_insn *.
23482
23483 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23484
23485         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23486
23487 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23488
23489         * df-problems.c (df_set_note): Change type of argument to
23490         rtx_insn *.
23491
23492 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23493
23494         * builtins.c (expand_builtin_trap): Change type of local
23495         variable to rtx_insn *.
23496         (add_sched_insns_for_speculation): Likewise.
23497         (ix86_emit_save_regs): Likewise.
23498         (get_scratch_register_on_entry): Likewise.
23499         (ix86_emit_restore_reg_using_pop): Likewise.
23500         (ix86_emit_leave): Likewise.
23501         (ix86_emit_restore_regs_using_mov): Likewise.
23502         (ix86_expand_epilogue): Likewise.
23503         Likewise.
23504         (rl78_alloc_physical_registers_umul): Likewise.
23505         * cselib.c (discard_useless_locs): Likewise.
23506         (cselib_invalidate_regno): Likewise.
23507         (cselib_invalidate_mem): Likewise.
23508         * function.c (expand_function_start): Likewise.
23509         (emit_use_return_register_into_block): Likewise.
23510         * gcse.c: Likewise.
23511         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23512         * ifcvt.c (noce_get_alt_condition): Likewise.
23513         * loop-doloop.c (doloop_condition_get): Likewise.
23514         * lra-constraints.c (inherit_in_ebb): Likewise.
23515         * modulo-sched.c (sms_schedule_by_order): Likewise.
23516         * recog.c (next_insn_tests_no_inequality): Likewise.
23517         * reorg.c (emit_delay_sequence): Likewise.
23518         (update_reg_dead_notes): Likewise.
23519         (fix_reg_dead_note): Likewise.
23520         (fill_slots_from_thread): Likewise.
23521         (delete_computation): Likewise.
23522
23523 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
23524
23525         * doc/extend.texi (Variable Attributes): Add menu and proper
23526         @nodes to subsections.  Move Microsoft Windows attributes to
23527         their own subsection.
23528         (Type Attributes): Reorganize introduction to remove duplicate
23529         list of attributes.  Add menu and proper @nodes to subsections.
23530         Alphabetize the main table of common attributes.
23531
23532 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
23533
23534         * match.pd: New simplification patterns.
23535         (x + (x & 1))  -> ((x + 1) & ~1)
23536         (x & ~(x & y)) -> ((x & ~y))
23537         (x | ~(x | y)) -> ((x | ~y))
23538
23539 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23540
23541         * target.def (attribute_table): Mention that struct attribute_spec
23542         is defined in tree-core.h rather than tree.h
23543         * doc/tm.texi: Regenerate.
23544
23545 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
23546
23547         * genrecog.c (test): Rename to rtx_test.  Update rest of file
23548         accordingly.
23549
23550 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23551
23552         PR translation/65959
23553         * params.h (DEFPARAM): Rename msgid to nocmsgid.
23554
23555 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23556
23557         * gcc/config/aarch64/aarch64-protos.h (tune_params):
23558         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23559         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23560         Return value depending on target.
23561         (generic_tunings): Initialize new target settings.
23562         (cortexa53_tunings): Likewise.
23563         (cortexa57_tunings): Likewise.
23564         (thunderx_tunings): Likewise.
23565         (xgene1_tunings): Likewise.
23566
23567 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23568
23569         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23570         Make Cortex-A53 shift costs more accurate.
23571
23572 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23573
23574         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23575         UNSIGNED_FLOAT.
23576
23577 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23578
23579         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23580         Calculate cost of op0 and op1 in PLUS and MINUS cases.
23581
23582 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23583
23584         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23585         Add cost of op0 in the compare-with-fpzero case.
23586
23587 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
23588
23589         * builtins.c (fold_builtin_1): Remove spurious second
23590         semicolon.
23591         * cgraph.h (symtab_node::get_availability): Likewise.
23592         * opts.c (common_handle_option): Remove spurious second semicolon.
23593         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23594         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23595
23596 2015-04-30  Caroline Tice  <cmtice@google.com>
23597
23598         PR gcov-profile/65929
23599         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23600         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23601         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23602         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23603         * doc/tm.texi: Regenerate.
23604         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
23605         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23606         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
23607         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23608
23609 2015-04-30  Marek Polacek  <polacek@redhat.com>
23610
23611         * varasm.c (handle_cache_entry): Fix logic.
23612
23613 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23614
23615         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23616         (*extrsi5_insn_uxtw_alt): Likewise.
23617         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23618         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23619         operations.
23620
23621 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23622
23623         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23624         fabd in ABS case.
23625
23626 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23627
23628         * config/aarch64/aarch64.md
23629         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23630         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23631         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23632         appropriately.  Handle alternative EON form.
23633
23634 2015-04-30  Renlin Li  <renlin.li@arm.com>
23635
23636         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23637         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23638
23639 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23640
23641         PR ipa/65873
23642         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23643         -fstrict-aliasing boundaries.
23644
23645 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23646
23647         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23648         and [SU]MNEGL patterns.
23649
23650 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23651
23652         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23653         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23654         combined arithmetic-shift ops.  Properly handle all shift and extend
23655         operations that can occur in combination with PLUS/MINUS.
23656         Rename maybe_fma to compound_p.
23657         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23658         arithmetic and shift operations.
23659
23660 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23661
23662         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23663         rather than arith_shift cost when costing ADD/MINUS of an
23664         extended value.
23665
23666 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23667
23668         PR lto/65948
23669         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23670         to itself.
23671
23672 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
23673
23674         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23675         are for the same position.
23676
23677 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
23678
23679         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
23680         vectorize_loops.
23681         (vectorize_loops): Use it.
23682
23683 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23684
23685         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23686         for aggregate types.
23687         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23688         type to be non_ODR.
23689         * tree.c (need_assembler_name_p): Compute mangled name for
23690         non-fundamental types and integer types.
23691
23692 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
23693
23694         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23695         manual swaps.
23696         * expr.c (expand_expr_real_2): Likewise.
23697
23698 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23699
23700         * tree.c (build_common_builtin_nodes): Do not build
23701         __builtin_alloca_with_align as equivalent of library alloca.
23702
23703 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23704
23705         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23706         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23707         bugus variants.
23708         * tree.c: Include print-tree.h and ipa-utils.h
23709         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23710         (free_lang_data_in_cgraph): Call verify_type.
23711         (verify_type_variant): New function.
23712         (verify_type): New function.
23713         * tree.h (verify_type): Declare.
23714
23715 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
23716
23717         * config/mips/mips-cpus.def: (mips4): Change default processor
23718         from PROCESSOR_R8000 to PROCESSOR_R10000.
23719
23720 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23721
23722         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23723         la/jalr instead of jal.
23724
23725 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
23726
23727         PR target/65871
23728         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23729         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23730         (setcc+movzbl peephole2): Check also clobbered reg.
23731         (setcc+andl peephole2): Ditto.
23732
23733 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23734
23735         PR libgomp/65099
23736         * config/nvptx/mkoffload.c (target_ilp32): New variable.
23737         (main): Set it depending on "-foffload-abi=[...]".
23738         (compile_native, main): Use it to pass "-m32" or "-m64" to the
23739         compiler.
23740
23741 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23742
23743         PR target/65770
23744         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23745         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23746         Flip lane index back at assembly time for bigendian.
23747
23748 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23749
23750         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23751         * gimplify.c (gimplify_omp_workshare): Use it.
23752
23753 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23754
23755         * Makefile.in (build/genrecog.o): Depend on inchash.h.
23756         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23757         build/inchash.o
23758         * genrecog.c: Rewrite most of the code except for the third page.
23759
23760 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23761
23762         * inchash.h, inchash.c: Include bconfig.h for build objects.
23763         * Makefile.in (build/inchash.o): New rule.
23764
23765 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
23766
23767         PR target/65924
23768         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23769         number in type attribute expression.
23770
23771 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23772
23773         * loop-iv.c (canon_condition): Generalize to all types of integer
23774         constant.
23775
23776 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
23777
23778         * gimple-walk.c: Prune duplicate or unneeded includes.
23779         (walk_gimple_asm): Only call parse_input_constraint or
23780         parse_output_constraint if their findings are used.
23781         Honour parse_input_constraint and parse_output_constraint
23782         result.
23783
23784 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23785
23786         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23787
23788 2015-04-29  Tom de Vries  <tom@codesourcery.com>
23789
23790         PR tree-optimization/65893
23791         * passes.def (pass_all_optimizations): Move pass_stdarg to after
23792         pass_dce.
23793
23794 2015-04-29  Richard Biener  <rguenther@suse.de>
23795
23796         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23797         compute GROUP_SIZE for basic-block SLP.
23798         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23799         take into account gaps.
23800         (vect_get_mask_element): Properly reject references to previous
23801         vectors.
23802         (vect_transform_slp_perm_load): Likewise.
23803
23804 2015-04-29  Christian Bruel  <christian.bruel@st.com>
23805
23806         PR target/64835
23807         * config/i386/i386.c (ix86_default_align): New function.
23808         (ix86_override_options_after_change): Call ix86_default_align.
23809         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23810         (ix86_override_options_after_change): New function.
23811
23812 2015-04-28  Jeff Law  <law@redhat.com>
23813
23814         * tree-ssa-dom.c (record_equality); Fix comment typos.
23815
23816 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23817
23818         PR tree-optimization/65887
23819         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23820
23821 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
23822
23823         * doc/extend.texi (Declaring Attributes of Functions): Split into
23824         subsections by target.  Alphabetize the table of common attributes.
23825         Rewrite some of the introductory text to reflect the new structure.
23826         Update some cross-references to point to the new subsections.
23827         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
23828         duplicate copies in the discussion of function, label, and type
23829         attributes.
23830
23831 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
23832
23833         PR bootstrap/65910
23834         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23835
23836 2015-04-28  Jason Merrill  <jason@redhat.com>
23837
23838         PR c++/65734
23839         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23840         (finalize_type_size): Respect TYPE_USER_ALIGN.
23841         (layout_type) [ARRAY_TYPE]: Likewise.
23842
23843 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
23844
23845         * config/arm/arm.md (*arm_movt): Fix type attribute.
23846         (*cmpsi_shiftsi): Likewise.
23847         (*cmpsi_shiftsi_swp): Likewise.
23848         (*movsicc_insn): Likewise.
23849         (*cond_move): Likewise.
23850         (*if_plus_move): Likewise.
23851         (*if_move_plus): Likewise.
23852         (*if_arith_move): Likewise.
23853         (*if_move_arith): Likewise.
23854         (*if_shift_move): Likewise.
23855         (*if_move_shift): Likewise.
23856         (*arm_movtas_ze): Likewise.
23857         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23858         redundancy and type attribute.
23859         (*thumb2_movsi_insn): Fix type attribute.
23860         (*thumb2_addsi_short): Likewise.
23861         (thumb2_addsi3_compare0): Likewise.
23862         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23863         attributes accordingly.
23864
23865 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
23866
23867         PR other/65911
23868         * function.c (pad_to_arg_alignment): Add parentheses.
23869
23870 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
23871
23872         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23873         libgcc/config/frv/elf-lib.h.
23874
23875 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23876
23877         * tree-call-cdce.c: Fix example in header comment.
23878
23879 2015-04-28  Richard Biener  <rguenther@suse.de>
23880
23881         PR tree-optimization/62283
23882         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23883         fails fatally and we are vectorizing a basic-block simply
23884         cause the child to be constructed piecewise.
23885         (vect_analyze_slp_cost_1): Adjust.
23886         (vect_detect_hybrid_slp_stmts): Likewise.
23887         (vect_bb_slp_scalar_cost): Likewise.
23888         (vect_get_constant_vectors): For piecewise constructed
23889         constants place them after the last def.
23890         (vect_get_slp_defs): Adjust.
23891         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23892         externals for basic-block vectorization.
23893
23894 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23895
23896         PR target/63503
23897         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23898         aarch64-*-*.
23899         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23900         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23901         (AARCH64_TUNE_FMA_STEERING): Likewise.
23902         * config/aarch64/aarch64-cores.def: Set
23903         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23904         FMUL/FMADD instructions.
23905         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23906         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
23907         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23908         * config/aarch64/cortex-a57-fma-steering.h: New file.
23909         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23910
23911 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
23912
23913         * gensupport.c (std_preds): Add missing codes to address_operand entry.
23914
23915 2015-04-28  Richard Biener  <rguenther@suse.de>
23916
23917         PR tree-optimization/65851
23918         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23919         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
23920         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
23921         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23922         (ccp_visit_phi_node): Adjust.
23923         (evaluate_stmt): For simplifications to SSA names return its
23924         lattice value if that isn't VARYING.  Return immediately when
23925         simplified to a constant.
23926         (visit_assignment): Adjust.
23927         (ccp_visit_stmt): Likewise.
23928
23929 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23930
23931         PR tree-optimization/65818
23932         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23933         evaluated.
23934
23935 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23936
23937         * calls.c (save_fixed_argument_area): Don't check
23938         ARGS_GROW_DOWNWARD with the preprocessor.
23939         (restore_fixed_argument_area): Likewise.
23940         (mem_overlaps_already_clobbered_arg_p): Likewise.
23941         (check_sibcall_argument_overlap): Likewise.
23942         (expand_call): Likewise.
23943         (emit_library_call_value_1): Likewise.
23944         (store_one_arg): Likewise.
23945         * function.c (assign_parms): Likewise.
23946         (locate_and_pad_parm): Likewise.
23947         (pad_to_arg_alignment): Likewise.
23948         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23949
23950 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23951
23952         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
23953         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
23954         * calls.c (save_fixed_argument_area): Don't chekc if
23955         ARGS_GROW_DOWNWARD is defined.
23956         (restore_fixed_argument_area): Likewise.
23957         (mem_overlaps_already_clobbered_arg_p): Likewise.
23958         (check_sibcall_argument_overlap): Likewise.
23959         (expand_call): Likewise.
23960         (emit_library_call_value_1): Likewise.
23961         (store_one_arg): Likewise.
23962         * function.c (assign_parms): Likewise.
23963         (locate_and_pad_parm): Likewise.
23964         (pad_to_arg_alignment): Likewise.
23965         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23966
23967 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23968
23969         * defaults.h (gen_epilogue): New function.
23970         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
23971         defined.
23972         * cfgrtl.c (cfg_layout_finalize): Likewise.
23973         * df-scan.c: Likewise.
23974         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23975         (reposition_prologue_and_epilogue_notes): Likewise.
23976         * reorg.c (find_end_label): Likewise.
23977         * toplev.c: Likewise.
23978
23979 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23980
23981         * bb-reorder.c (HAVE_return): Don't check if its undefined.
23982         * defaults.h (gen_simple_return): New function.
23983         (gen_simple_return): Likewise.
23984         (HAVE_return): Add default definition to false.
23985         (HAVE_simple_return): Likewise.
23986         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
23987         HAVE_return and HAVE_simple_return are defined.
23988         * function.c (gen_return_pattern): Likewise.
23989         (convert_jumps_to_returns): Likewise.
23990         (thread_prologue_and_epilogue_insns): Likewise.
23991         * reorg.c (find_end_label): Likewise.
23992         (dbr_schedule): Likewise.
23993         * shrink-wrap.c: Likewise.
23994         * shrink-wrap.h: Likewise.
23995
23996 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23997
23998         * defaults.h (EPILOGUE_USES): Add default definition of false.
23999         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24000         * resource.c (init_resource_info): Likewise.
24001
24002 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24003
24004         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24005         to false.
24006         * dwarf2out.c (field_byte_offset): REmove check if
24007         PCC_BITFIELD_TYPE_MATTERS is defined.
24008         * stor-layout.c (layout_decl): Likewise.
24009         (update_alignment_for_field): Likewise.
24010         (place_field): Likewise.
24011
24012 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24013
24014         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24015         true.
24016         * regrename.c (check_new_reg_p): Remove check if
24017         HARD_REGNO_RENAME_OK is defined.
24018         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24019
24020 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24021
24022         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24023         * cse.c (fold_rtx): Likewise.
24024         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24025         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24026         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24027         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24028         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24029         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24030         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24031         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24032         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24033         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24034         * Likewise.
24035         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24036         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24037         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24038         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24039         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24040         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24041         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24042         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24043         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24044         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24045         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24046         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24047         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24048         * doc/tm.texi: Regenerate.
24049         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24050         either true or false.
24051
24052 2015-04-27  Jeff Law  <law@redhat.com>
24053
24054         PR tree-optimization/65217
24055         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24056         of them has a single use, make sure it is the LHS of the implied
24057         copy.
24058
24059 2015-04-28  Alan Modra  <amodra@gmail.com>
24060
24061         PR target/65810
24062         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24063         (offsettable_ok_by_alignment): Use minimum of decl and toc
24064         pointer alignment.  Replace dead code with assertion.
24065         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
24066         case if size exceeds toc pointer alignment.
24067         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24068         (rs6000_emit_move): Likewise.
24069         * configure.ac: Add linker toc pointer alignment check.
24070         * configure: Regenerate.
24071         * config.in: Regenerate.
24072
24073 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
24074
24075         * config.gcc: Add h8300-*-linux.
24076         * config/h8300/linux.h: New.
24077         * config/h8300/t-linux: New.
24078         * config/h8300/h8300.c (h8300_option_override): Normal mode
24079         is not supported for h8300-*-linux.
24080         (h8300_file_start): Target priority change.
24081         (get_shift_alg): Likewise.
24082         (h8300_shift_need_scratch_p): Likewise.
24083         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24084         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24085
24086 2015-04-27  Caroline Tice  <cmtice@google.com>
24087
24088         * final.c (final_scan_insn):  Output cold_function_name as function
24089         type.
24090         * varasm.c (cold_function_name):  Make global.
24091         (assemble_start_function):  Re-set cold_function_name.
24092         (assemble_end_function): Output cold partition size.
24093         * varasm.h (cold_function_name):  Declare global.
24094
24095 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
24096
24097         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24098         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24099         constraint.
24100         (*movxi_internal_avx512f): Ditto.
24101         (define_split): Check for xmm16+, when splitting scalar float_extend.
24102         (*extendsfdf2_mixed): Use "v" constraint.
24103         (define_split): Check for xmm16+, when splitting scalar float_truncate.
24104         (*truncdfsf_fast_sse): Use "v" constraint.
24105         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24106         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24107         (define_peephole2): Check for xmm16+, when converting scalar
24108         float_truncate.
24109         (define_peephole2): Check for xmm16+, when converting scalar
24110         float_extend.
24111         (*fop_<mode>_comm_mixed): Use "v" constraint.
24112         (*fop_<mode>_comm_sse): Ditto.
24113         (*fop_<mode>_1_mixed): Ditto.
24114         (*sqrt<mode>2_sse): Ditto.
24115         (*ieee_s<ieee_maxmin><mode>3): Ditto.
24116
24117 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24118
24119         * combine.c (simplify_if_then_else): Use std::swap instead
24120         of manually swapping.
24121         (known_cond): Likewise.
24122         (simplify_comparison): Likewise.
24123
24124 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
24125
24126         PR target/64579
24127         * config/rs6000/htm.md: Remove all define_expands.
24128         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24129         UNSPECV_HTM_TABORTWCI): Remove.
24130         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24131         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24132         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24133         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24134         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24135         tabortwci_internal): Remove define_insns.
24136         (tabort<wd>c, tabort<wd>ci): New define_insns.
24137         (tabort): Use gpc_reg_operand.
24138         (tcheck): Remove operand.
24139         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24140         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24141         expected value.
24142         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24143         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
24144         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24145         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24146         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24147         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24148         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24149         (tcheck): Remove builtin argument.
24150         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24151         not TARGET_64BIT.
24152         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
24153         tabortdc and tabortdci builtins when not in 64-bit mode.
24154         Modify code to handle the loss of the HTM define_expands.
24155         Emit code to copy the CR register to TARGET.
24156         (htm_init_builtins): Modify code to handle the loss of the HTM
24157         define_expands.
24158         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24159         (RS6000_BTC_64BIT): Likewise.
24160         (RS6000_BTC_CR): New macro.
24161         * doc/extend.texi: Update documentation for htm builtins.
24162
24163 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24164
24165         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24166         of manually swapping.
24167         (simplify_associative_operation): Likewise.
24168         (simplify_binary_operation): Likewise.
24169         (simplify_plus_minus): Likewise.
24170         (simplify_relational_operation): Likewise.
24171         (simplify_ternary_operation): Likewise.
24172
24173 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24174
24175         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24176         (xs_hi_nonmemory_operand): Remove error.
24177         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24178         general_operand rather than xs_hi_general_operand.
24179
24180 2015-04-27  Richard Biener  <rguenther@suse.de>
24181
24182         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24183         (record_equivalences_from_stmt): Valueize rhs.
24184         (record_equality): Canonicalize x and y order via
24185         tree_swap_operands_p.  Do not swap operands for same loop depth.
24186
24187 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
24188
24189         PR target/65296
24190         PR target/65895
24191         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24192         Add hint how to use own spec file.
24193
24194 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
24195
24196         PR tree-optimization/65875
24197         * tree-vrp.c (update_value_range): If in is_new case setting
24198         old_vr to VR_VARYING, also set new_vr to it.  Remove
24199         old_vr->type == VR_VARYING test.
24200         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24201         SSA_PROP_INTERESTING if update_value_range returned true,
24202         but new range is VR_VARYING.
24203
24204 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24205
24206         * combine.c (sign_extend_short_imm): New.
24207         (set_nonzero_bits_and_sign_copies): Use above new function for sign
24208         extension of src short immediate.
24209         (reg_nonzero_bits_for_combine): Likewise for tem.
24210
24211 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24212
24213         * stor-layout.c (self_referential_component_ref_p): New predicate.
24214         (copy_self_referential_tree_r): Use it.
24215         (self_referential_size): Punt for simple operations directly involving
24216         self-referential component references.
24217         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24218
24219 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24220
24221         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24222
24223 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24224
24225         * vec.h (vec): Make splice arguments const.  Update definitions
24226         accordingly.
24227
24228 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
24229
24230         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24231         alternatives.
24232
24233 2015-04-26  Tom de Vries  <tom@codesourcery.com>
24234
24235         PR tree-optimization/65826
24236         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24237
24238 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
24239
24240         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24241         (*madd3<mode>): Ditto.
24242         (*msub4<mode>): Ditto.
24243         (*msub3<mode>): Ditto.
24244         (*nmadd4<mode>): Ditto.
24245         (*nmadd3<mode>): Ditto.
24246         (*nmadd4<mode>_fastmath): Ditto.
24247         (*nmadd3<mode>_fastmath): Ditto.
24248         (*nmsub4<mode>): Ditto.
24249         (*nmsub3<mode>): Ditto.
24250         (*nmsub4<mode>_fastmath): Ditto.
24251         (*nmsub3<mode>_fastmath): Ditto.
24252
24253 2015-04-24  Jason Merrill  <jason@redhat.com>
24254
24255         PR c++/50800
24256         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
24257         down when building TYPE_CANONICAL.
24258         (build_pointer_type_for_mode): Likewise.
24259
24260 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
24261
24262         * genrecog.c (validate_pattern): Check matching constraint refers
24263         to a lower numbered operand.
24264
24265 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24266
24267         PR target/65849
24268         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
24269         save to independent variables use the Save attribute.  This will
24270         allow these options to be modified with the #pragma/attribute
24271         target support.
24272         (-mallow-movmisalign): Likewise.
24273         (-mallow-df-permute): Likewise.
24274         (-msched-groups): Likewise.
24275         (-malways-hint): Likewise.
24276         (-malign-branch-targets): Likewise.
24277         (-mvectorize-builtins): Likewise.
24278         (-msave-toc-indirect): Likewise.
24279
24280         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24281         can be set via the #pragma/attribute target support.
24282         (rs6000_opt_vars): Likewise.
24283         (rs6000_inner_target_options): If VSX was set, also set
24284         -mno-avoid-indexed-addresses.
24285
24286 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24287
24288         * config/arm/iterators.md (shiftable_ops): Rename to...
24289         (SHIFTABLE_OPS): ... This.  Update use in comments.
24290         (ior_xor): Rename to...
24291         (IOR_XOR): ... This.
24292         (vqh_ops): Rename to...
24293         (VQH_OPS): ... This.
24294         (vqhs_ops): Rename to...
24295         (VQHS_OPS): ... This.
24296         (rshifts): Rename to...
24297         (RSHIFTS): ... This.
24298         (returns): Rename to...
24299         (RETURNS): ... This.
24300         * config/arm/arm.md: Update uses of the above.
24301         * config/arm/neon.md: Likewise.
24302
24303 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24304
24305         * config.host (case ${host}): Add aarch64*-*-linux case.
24306         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24307         fields to all the cores.
24308         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24309         Add MCPU_MTUNE_NATIVE_SPECS.
24310         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24311         field to all extensions.
24312         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24313         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24314         Adjust definition of AARCH64_OPT_EXTENSION.
24315         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24316         (MCPU_MTUNE_NATIVE_SPECS): Define.
24317         * config/aarch64/driver-aarch64.c: New file.
24318         * config/aarch64/x-arch64: New file.
24319         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24320         -mtune and -march.
24321
24322 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24323             Wei Mi  <wmi@google.com>
24324
24325         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24326         * config/i386/i386.c (extract_base_offset_in_addr): New function.
24327         (ix86_operands_ok_for_move_multiple): Ditto.
24328         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24329         (movlpd/movhpd to movupd peephole2): Ditto.
24330
24331 2015-04-24  Marek Polacek  <polacek@redhat.com>
24332
24333         PR c/61534
24334         * input.h (from_macro_expansion_at): Define.
24335
24336         PR c/63357
24337         * doc/invoke.texi: Update description of -Wlogical-op.
24338
24339 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24340
24341         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24342         ternary operator in fprintf and harmonize spacing.
24343
24344 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24345
24346         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24347         Mark operand1 commutative.
24348
24349 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24350
24351         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24352         input operands in memory.
24353         (*vec_concatv2si_sse4_1): Ditto.
24354         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24355         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24356         register_operand.
24357         (vec_extract_hi_v32hi): Ditto.
24358         (vec_extract_hi_v64hi): Ditto.
24359         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24360
24361 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24362             Steven Bosscher <steven@gcc.gnu.org>
24363
24364         PR rtl-optimization/34503
24365         * cprop.c (cprop_reg_p): New.
24366         (hash_scan_set): Use above function to check if register can be
24367         propagated.
24368         (find_avail_set): Return up to two sets, one whose source is a
24369         register and one whose source is a constant.  Sets are returned in an
24370         array passed as parameter rather than as a return value.
24371         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
24372         sets returned by find_avail_set, starting with the one whose source is
24373         a constant. Use cprop_reg_p to check if register can be propagated.
24374         (do_local_cprop): Use cprop_reg_p to check if register can be
24375         propagated.
24376         (implicit_set_cond_p): Likewise.
24377
24378 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24379
24380         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24381         (sem_function::equals): IGNORED_NODES parameter is now unused;
24382         update call of equals_private.
24383         (sem_function::equals_private): Do not call equals_wpa; skip
24384         gimple body matching if there is no body.
24385         (sem_function::init): Add logic to hash tthunk info.
24386         (sem_function::parse): Also parse thunks.
24387         * ipa-icf.h (equals_private): Update declaration.
24388
24389 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24390
24391         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24392         asterisk from name so this can be generated directly.
24393         (*altivec_stvx_<mode>_internal): Likewise.
24394         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24395         that this is never called during or after reload/lra.
24396         (rs6000_frame_related): Remove split_reg
24397         argument and logic that references it.
24398         (emit_frame_save): Remove last parameter from call to
24399         rs6000_frame_related.
24400         (rs6000_emit_prologue): Remove last parameter from eight calls to
24401         rs6000_frame_related.  Force generation of stvx instruction for
24402         Altivec register saves.  Remove split_reg handling, which is no
24403         longer needed.
24404         (rs6000_emit_epilogue):  Force generation of lvx instruction for
24405         Altivec register restores.
24406
24407 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24408
24409         * config/rs6000/rs6000.opt (mcrypto): Change option description to
24410         match category changes in ISA 2.07B.
24411
24412 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24413
24414         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24415         iterators.
24416         (cmp_op, cmp_type): New code attributes.
24417         (NEON_VCMP, NEON_VACMP): New int iterators.
24418         (cmp_op_unsp): New int attribute.
24419         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24420         (neon_vceq<mode>): Delete.
24421         (neon_vc<cmp_op><mode>_insn): New pattern.
24422         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24423         (neon_vcgeu<mode>): Delete.
24424         (neon_vcle<mode>): Likewise.
24425         (neon_vclt<mode>: Likewise.
24426         (neon_vcage<mode>): Likewise.
24427         (neon_vcagt<mode>): Likewise.
24428         (neon_vca<cmp_op><mode>): New define_expand.
24429         (neon_vca<cmp_op><mode>_insn): New pattern.
24430         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24431
24432 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24433
24434         * tree.h (attribute_value_equal): Declare.
24435         * tree.c (attribute_value_equal): Export.
24436
24437 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24438
24439         * ipa-icf.c (sem_item::compare_attributes): New function.
24440         (sem_item::compare_referenced_symbol_properties): Compare variable
24441         attributes.
24442         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24443         (sem_function::param_used_p): New function.
24444         (sem_function::equals_wpa): Fix attribute comparsion; match
24445         parameter type codes; do not compare paremter flags when
24446         they are not used; compare edge flags; compare indirect calls.
24447         (sem_item::update_hash_by_addr_refs): Hash reference type.
24448         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24449         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24450         reference use type.
24451         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24452         * ipa-icf.h (compare_attributes, param_used_p): Declare.
24453
24454 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24455
24456         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24457         cleanup.
24458         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24459         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24460         (sem_item::compare_referenced_symbol_properties): New.
24461         (sem_item::hash_referenced_symbol_properties): New.
24462         (sem_item::compare_cgraph_references): Rename to ...
24463         (sem_item::compare_symbol_references): ... this one; use
24464         compare_referenced_symbol_properties.
24465         (sem_function::equals_wpa): Do not compare
24466         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24467         DECL_IS_OPERATOR_NEW; compare pointer sizes.
24468         (sem_item::update_hash_by_addr_refs): Call
24469         hash_referenced_symbol_properties.
24470         (sem_item::update_hash_by_local_refs): Cleanup.
24471         (sem_function::merge): Do not mix up symbol properties.
24472         (sem_variable::equals_wpa): Use compare_symbol_references.
24473         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24474         (sem_item::hash_referenced_symbol_properties): New.
24475         (sem_item::compare_symbol_references): New.
24476         (sem_item::compare_cgraph_references): Remove.
24477
24478 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
24479
24480         PR target/26702
24481         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24482         Emit size of local.
24483
24484 2015-04-23  Nick Clifton  <nickc@redhat.com>
24485
24486         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24487         ATTRIBUTE_UNUSED to x parameter.
24488         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24489
24490 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24491
24492         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24493         TARGET_CRYPTO to TARGET_P8_VECTOR>
24494         (crypto_vpermxor_<mode>): Likewise.
24495         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24496         (BU_CRYPTO_3A): Likewise.
24497         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24498         (BU_CRYPTO_OVERLOAD_3A): New #define.
24499         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24500         (VPMSUMH): Likewise.
24501         (VPMSUMW): Likewise.
24502         (VPMSUMD): Likewise.
24503         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24504         (VPERMXOR_V4SI): Likewise.
24505         (VPERMXOR_V8HI): Likewise.
24506         (VPERMXOR_V16QI): Likewise.
24507         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24508         BU_CRYPTO_OVERLOAD_2A.
24509         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24510         BU_CRYPTO_OVERLOAD_3A.
24511         * config/rs6000/rs6000.opt (mcrypto): Change description of
24512         option.
24513
24514 2015-04-23  Richard Biener  <rguenther@suse.de>
24515
24516         * passes.def: Remove copy propagation passes run directly after CCP.
24517         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24518         SSA names.
24519         (ccp_visit_phi_node): Rework to handle first executable edge
24520         specially.
24521
24522 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
24523
24524         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24525         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24526         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24527         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24528         (thumb_legimitimize_reload_address): Remove.
24529         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24530         Remove.
24531         (thumb_legimitimize_reload_address): Remove.
24532
24533 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24534
24535         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24536
24537 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24538
24539         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24540         MAX_LDM_STM_OPS.
24541         (store_multiple): Likewise.
24542
24543 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24544
24545         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24546         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24547         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24548         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24549         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24550         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24551         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24552         Specify issue_rate value.
24553         (arm_issue_rate): Look up issue rate from tuning structs. Remove
24554         large switch statement.
24555         (arm_marvell_pj4_tune): New struct.
24556         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24557         struct.
24558
24559 2015-04-23  Richard Biener  <rguenther@suse.de>
24560
24561         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24562         (vect_find_last_store_in_slp_instance): Rename to ...
24563         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24564         (vect_analyze_slp_cost_1): Use vector_load for constant defs
24565         and vec_construct for external defs when estimating prologue cost.
24566         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24567         Compute costs here only when vectorizing loops.
24568         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24569         have been determined.
24570         (vect_schedule_slp_instance): Simplify vectorized code placement
24571         and prepare for in-BB external defs.
24572         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24573         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24574         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24575         guard.
24576         (vect_model_load_cost): Likewise.
24577         (vectorizable_store): Instead add it here.
24578         (vectorizable_load): Likewise.
24579         (vect_is_simple_use): Dump def type textually.
24580
24581 2015-04-23  Richard Biener  <rguenther@suse.de>
24582
24583         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24584         * cfgloop.c (verify_loop_structure): Verify the root loop node.
24585         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24586         instead of get_eh_region_from_lp_number.
24587         * loop-init.c (fix_loop_structure): If we removed a loop, reset
24588         the SCEV cache.
24589
24590 2015-04-23  Anton Blanchard  <anton@samba.org>
24591
24592         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24593         need for -mprofile-kernel to save LR to stack.
24594
24595 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24596
24597         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24598         adjustments.
24599         (insn_is_swappable_p): Return 1 for a convert from double to
24600         single precision when all of its uses are splats of BE element
24601         zero.
24602
24603 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24604
24605         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24606
24607 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24608
24609         PR target/65456
24610         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
24611         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24612         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24613         option.
24614         (rs6000_builtin_mask_for_load): Return 0 for targets with
24615         efficient unaligned VSX accesses so that the vectorizer will use
24616         direct unaligned loads.
24617         (rs6000_builtin_support_vector_misalignment): Always return true
24618         for targets with efficient unaligned VSX accesses.
24619         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24620         stores on targets with efficient unaligned VSX accesses is almost
24621         always the same as the cost of an aligned load or store, so model
24622         it that way.
24623         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24624         unaligned vectors if we have efficient unaligned VSX accesses.
24625         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24626         undocumented option.
24627
24628 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24629
24630         Revert:
24631         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24632
24633         * config.gcc (LIBC_MUSL): New tm_defines macro.
24634         * config/linux.h (OPTION_MUSL): Define.
24635         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24636         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24637         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24638
24639         * config/linux.opt (mmusl): New option.
24640         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24641         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24642
24643         * configure: Regenerate.
24644
24645 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24646
24647         * config.gcc (LIBC_MUSL): New tm_defines macro.
24648         * config/linux.h (OPTION_MUSL): Define.
24649         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24650         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24651         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24652
24653         * config/linux.opt (mmusl): New option.
24654         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24655         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24656
24657         * configure: Regenerate.
24658
24659 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
24660
24661         * doc/invoke.texi (-fsanitize-sections): Update description.
24662         * asan.c (set_sanitized_sections): Parse incoming arg.
24663         (section_sanitized_p): Support wildcards.
24664
24665 2015-04-22  Tom de Vries  <tom@codesourcery.com>
24666
24667         PR tree-optimization/65823
24668         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24669         equality between ap_copy and ap.
24670
24671 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24672
24673         PR target/47098
24674         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24675
24676 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24677
24678         PR target/47122
24679         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24680
24681 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24682
24683         PR target/55144
24684         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24685         remove already contained t-files.
24686
24687 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24688
24689         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24690         Remove unneeded forward declarations.
24691         (suitable_for_tail_call_opt_p): Commentary typo fix.
24692
24693 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24694
24695         * varasm.c (emit_bss): Remove redundant guard.
24696
24697 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24698
24699         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24700
24701 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24702
24703         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24704
24705 2015-04-22  Hale Wang  <hale.wang@arm.com>
24706             Terry Guo  <terry.guo@arm.com>
24707
24708         PR rtl-optimization/64818
24709         * combine.c (can_combine_p): Don't combine user-specified
24710         register if it is in an asm input.
24711
24712 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
24713
24714         PR ipa/65076
24715         * passes.def (early_optimizations): Add pass_dse.
24716
24717 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24718
24719         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24720         * reorg.c (redundant_insn): Remove ifdef
24721         INSN_REFERENCES_ARE_DELAYED.
24722         * resource.c (mark_referenced_resources): Likewise.
24723
24724 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24725
24726         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24727         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24728         * resource.c (mark_set_resources): Likewise.
24729
24730 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24731
24732         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24733         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24734         (flow_find_head_matching_sequence): Likewise.
24735         (try_head_merge_bb): Likewise.
24736         * combine.c (can_combine_p): Likewise.
24737         (try_combine): Likewise.
24738         (distribute_notes): Likewise.
24739         * df-problems.c (can_move_insns_across): Likewise.
24740         * final.c (final): Likewise.
24741         * gcse.c (insert_insn_end_basic_block): Likewise.
24742         * ira.c (find_moveable_pseudos): Likewise.
24743         * reorg.c (try_merge_delay_insns): Likewise.
24744         (fill_simple_delay_slots): Likewise.
24745         (fill_slots_from_thread): Likewise.
24746         * sched-deps.c (sched_analyze_2): Likewise.
24747
24748 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24749
24750         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24751         PIC_OFFSET_TABLE_REGNUM.
24752
24753 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24754
24755         * alias.c (init_alias_target): Remove ifdef
24756         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24757         * df-scan.c (df_insn_refs_collect): Likewise.
24758         (df_get_regular_block_artificial_uses): Likewise.
24759         (df_get_eh_block_artificial_uses): Likewise.
24760         (df_get_entry_block_def_set): Likewise.
24761         (df_get_exit_block_use_set): Likewise.
24762         * emit-rtl.c (gen_rtx_REG): Likewise.
24763         * ira.c (ira_setup_eliminable_regset): Likewise.
24764         * reginfo.c (init_reg_sets_1): Likewise.
24765         * regrename.c (rename_chains): Likewise.
24766         * reload1.c (reload): Likewise.
24767         (eliminate_regs_in_insn): Likewise.
24768         * resource.c (mark_referenced_resources): Likewise.
24769         (init_resource_info): Likewise.
24770
24771 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24772
24773         * defaults.h (MASK_RETURN_ADDR): New definition.
24774         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24775         MASK_RETURN_ADDR.
24776
24777 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24778
24779         * defaults.h (RETURN_ADDR_OFFSET): New definition.
24780         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24781         RETURN_ADDR_OFFSET.
24782         (expand_builtin_frob_return_addr): Likewise.
24783
24784 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24785
24786         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24787         (try_redirect_by_replacing_jump): Likewise.
24788         (rtl_tidy_fallthru_edge): Likewise.
24789         * combine.c (insn_a_feeds_b): Likewise.
24790         (find_split_point): Likewise.
24791         (simplify_set): Likewise.
24792         * cprop.c (cprop_jump): Likewise.
24793         * cse.c (cse_extended_basic_block): Likewise.
24794         * df-problems.c (can_move_insns_across): Likewise.
24795         * function.c (emit_use_return_register_into_block): Likewise.
24796         * haifa-sched.c (sched_init): Likewise.
24797         * ira.c (find_moveable_pseudos): Likewise.
24798         * loop-invariant.c (find_invariant_insn): Likewise.
24799         * lra-constraints.c (curr_insn_transform): Likewise.
24800         * postreload.c (reload_combine_recognize_const_pattern):
24801         * Likewise.
24802         * reload.c (find_reloads): Likewise.
24803         * reorg.c (delete_scheduled_jump): Likewise.
24804         (steal_delay_list_from_target): Likewise.
24805         (steal_delay_list_from_fallthrough): Likewise.
24806         (redundant_insn): Likewise.
24807         (fill_simple_delay_slots): Likewise.
24808         (fill_slots_from_thread): Likewise.
24809         (delete_computation): Likewise.
24810         * sched-rgn.c (add_branch_dependences): Likewise.
24811
24812 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24813
24814         * genconfig.c (main): Always define HAVE_cc0.
24815         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24816         HAVE_cc0.
24817         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24818         (flow_find_head_matching_sequence): Likewise.
24819         (try_head_merge_bb): Likewise.
24820         * cfgrtl.c (rtl_merge_blocks): Likewise.
24821         (try_redirect_by_replacing_jump): Likewise.
24822         (rtl_tidy_fallthru_edge): Likewise.
24823         * combine.c (do_SUBST_MODE): Likewise.
24824         (insn_a_feeds_b): Likewise.
24825         (combine_instructions): Likewise.
24826         (can_combine_p): Likewise.
24827         (try_combine): Likewise.
24828         (find_split_point): Likewise.
24829         (subst): Likewise.
24830         (simplify_set): Likewise.
24831         (distribute_notes): Likewise.
24832         * cprop.c (cprop_jump): Likewise.
24833         * cse.c (cse_extended_basic_block): Likewise.
24834         * df-problems.c (can_move_insns_across): Likewise.
24835         * final.c (final): Likewise.
24836         (final_scan_insn): Likewise.
24837         * function.c (emit_use_return_register_into_block): Likewise.
24838         * gcse.c (insert_insn_end_basic_block): Likewise.
24839         * haifa-sched.c (sched_init): Likewise.
24840         * ira.c (find_moveable_pseudos): Likewise.
24841         * loop-invariant.c (find_invariant_insn): Likewise.
24842         * lra-constraints.c (curr_insn_transform): Likewise.
24843         * optabs.c (prepare_cmp_insn): Likewise.
24844         * postreload.c (reload_combine_recognize_const_pattern):
24845         * Likewise.
24846         * reload.c (find_reloads): Likewise.
24847         (find_reloads_address_1): Likewise.
24848         * reorg.c (delete_scheduled_jump): Likewise.
24849         (steal_delay_list_from_target): Likewise.
24850         (steal_delay_list_from_fallthrough): Likewise.
24851         (try_merge_delay_insns): Likewise.
24852         (redundant_insn): Likewise.
24853         (fill_simple_delay_slots): Likewise.
24854         (fill_slots_from_thread): Likewise.
24855         (delete_computation): Likewise.
24856         (relax_delay_slots): Likewise.
24857         * sched-deps.c (sched_analyze_2): Likewise.
24858         * sched-rgn.c (add_branch_dependences): Likewise.
24859
24860 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24861
24862         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24863         that is trivially ded on non cc0 targets.
24864         (simplify_set): Likewise.
24865         (mark_used_regs_combine): Likewise.
24866         * cse.c (new_basic_block): Likewise.
24867         (fold_rtx): Likewise.
24868         (cse_insn): Likewise.
24869         (cse_extended_basic_block): Likewise.
24870         (set_live_p): Likewise.
24871         * rtlanal.c (canonicalize_condition): Likewise.
24872         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24873
24874 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24875
24876         * conditions.h: Define macros even if HAVE_cc0 is undefined.
24877         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24878         * final.c: Likewise.
24879         * jump.c: Likewise.
24880         * recog.c: Likewise.
24881         * recog.h: Declare functions even when HAVE_cc0 is undefined.
24882         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24883
24884 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24885
24886         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24887         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24888         * builtins.c (expand_builtin): Remove check if
24889         EH_RETURN_DATA_REGNO is defined.
24890         * df-scan.c (df_bb_refs_collect): Likewise.
24891         (df_get_exit_block_use_set): Likewise.
24892         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24893         * ira-lives.c (process_bb_node_lives): Likewise.
24894         * lra-lives.c (process_bb_lives): Likewise.
24895
24896 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24897
24898         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24899         FIRST_PSEUDO_REG): New.
24900         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24901         (ARG_POINTER_REGNUM): Define to ARGP_REG.
24902         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24903         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24904         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24905         (FIRST_INT_REG): New.
24906         (LAST_INT_REG): New.
24907         (FIRST_*_REG): Define using *_REG.
24908         (LAST_*_REG): Ditto.
24909         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24910         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24911         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24912
24913 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24914
24915         * expmed.c: (synth_mult): Only assume overlapping
24916         shift with previous steps in alg_sub_t_m2 case.
24917
24918 2015-04-21  Richard Biener  <rguenther@suse.de>
24919
24920         PR tree-optimization/65650
24921         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24922         transitions involving copies.
24923         (set_lattice_value): Adjust for copy lattice state.
24924         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24925         if that doesn't dominate the merge point.
24926         (bit_value_unop): Adjust what we treat as varying mask.
24927         (bit_value_binop): Likewise.
24928         (bit_value_assume_aligned): Likewise.
24929         (evaluate_stmt): When we simplified to a SSA name record a copy
24930         instead of dropping to varying.
24931         (visit_assignment): Simplify.
24932
24933         * gimple-match.h (gimple_simplify): Add another callback.
24934         * gimple-fold.c (fold_stmt_1): Adjust caller.
24935         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24936         for the 2nd callback.
24937         * gimple-match-head.c (gimple_simplify): Add a callback that is
24938         used to valueize the stmt operands and use it that way.
24939
24940 2015-04-21  Richard Biener  <rguenther@suse.de>
24941
24942         PR tree-optimization/65788
24943         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24944
24945 2015-04-21  Richard Biener  <rguenther@suse.de>
24946
24947         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24948         vec_construct cost by vec_stmt_cost.
24949
24950 2015-04-21  Richard Biener  <rguenther@suse.de>
24951
24952         * cfghooks.h (create_basic_block): Replace with two overloads
24953         for RTL and GIMPLE.
24954         (split_block): Likewise.
24955         * cfghooks.c (split_block): Rename to ...
24956         (split_block_1): ... this.
24957         (split_block): Add two type-safe overloads for RTL and GIMPLE.
24958         (split_block_after_labels): Call split_block_1.
24959         (create_basic_block): Rename to ...
24960         (create_basic_block_1): ... this.
24961         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
24962         (create_empty_bb): Call create_basic_block_1.
24963         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
24964         split_block_after_labels.
24965         * omp-low.c (expand_parallel_call): Likewise.
24966         (expand_omp_target): Likewise.
24967         (simd_clone_adjust): Likewise.
24968         * tree-chkp.c (chkp_get_entry_block): Likewise.
24969         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
24970         create_basic_block overload.
24971         (cgraph_node::expand_thunk): Likewise.
24972         * tree-cfg.c (make_blocks): Likewise.
24973         (handle_abnormal_edges): Likewise.
24974         * tree-inline.c (copy_bb): Likewise.
24975
24976 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24977
24978         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
24979         New pattern.
24980         (*xor_one_cmplsidi3_ze): Likewise.
24981
24982 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24983
24984         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
24985         use df_remove_problem rather than manually removing problems, leaving
24986         holes in df->problems_in_order[].
24987
24988 2015-04-21  Tom de Vries  <tom@codesourcery.com>
24989
24990         PR tree-optimization/65802
24991         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
24992
24993 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24994
24995         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
24996         Increase to 128.
24997         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
24998         at '.'.  Assert that there's enough space for everything.
24999
25000 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
25001
25002         PR tree-optimization/64950
25003         Revert:
25004         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
25005
25006         PR target/41089
25007         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25008         as volatile.
25009
25010 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
25011
25012         PR rtl-optimization/64916
25013         * cfgcleanup.c (values_equal_p): New function.
25014         (can_replace_by): Use it.
25015
25016 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
25017
25018         PR c++/65801
25019         * doc/invoke.texi ([-Wnarrowing]): Update.
25020
25021 2015-04-20  Jeff Law  <law@redhat.com>
25022
25023         PR tree-optimization/65658
25024         * tree-ssa-threadupdate.c (redirection_block_p): Remove
25025         redundant test for GIMPLE_ASSIGN in last change.
25026
25027 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
25028
25029         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25030         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25031         (legitimize_tls_address): Ditto.
25032         (ix86_expand_move): Ditto.
25033         (ix86_expand_binary_operator): Remove reload_in_progress checks.
25034         (ix86_expand_unary_operator): Ditto.
25035         * config/i386/predicates.md (index_register_operand): Ditto.
25036
25037 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
25038
25039         * reorg.c (try_merge_delay_insns): Improve correctness checking
25040         for targets with multiple delay slots.
25041
25042 2015-04-20  Jeff Law  <law@redhat.com>
25043
25044         PR tree-optimization/65658
25045         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25046         statements too.
25047
25048 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
25049
25050         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25051         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25052         Delete.
25053
25054 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
25055
25056         PR debug/65807
25057         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25058
25059 2015-04-20  Richard Biener  <rguenther@suse.de>
25060
25061         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25062         * gimple-fold.c (gimple_build_valueize): New function.
25063         (gimple_build): Always use gimple_build_valueize as valueize hook.
25064
25065 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
25066
25067         PR target/64134
25068         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25069         and overwrite variable parts if <= 1/2 the elements are variable.
25070
25071 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
25072
25073         PR rtl-optimization/65805
25074         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25075         Don't use difference of offset and previous offset if
25076         update_sp_offset is non-zero.
25077         (eliminate_regs_in_insn): Ditto.
25078         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25079         lra_eliminate_regs_1 call.
25080         * lra-constraints.c (get_equiv_with_elimination): Ditto.
25081
25082 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
25083
25084         * hash-table.h: Remove version of hash_table that stored value_type *.
25085         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25086         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25087         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25088         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25089         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25090         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25091         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25092         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25093         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25094         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25095         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25096         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25097         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25098         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25099         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25100         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25101
25102 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25103             Jakub Jelinek  <jakub@redhat.com>
25104
25105         PR target/65787
25106         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25107         subsequent SH_NONE operand does not overwrite an existing *special
25108         value.
25109         (adjust_extract): Handle case where a vec_extract operation is
25110         wrapped in a PARALLEL.
25111
25112 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25113
25114         PR target/65780
25115         * config/i386/i386.c (ix86_binds_local_p): Define only if
25116         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25117
25118 2015-04-17  Jeff Law  <law@redhat.com>
25119
25120         PR tree-optimization/47679
25121         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25122         * tree-ssa-scopedtables.c: New file.
25123         * tree-ssa-scopedtables.h: New file.
25124         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25125         (const_and_copies): Change name/type.
25126         (record_const_or_copy): Move into tree-ssa-scopedtables.c
25127         (record_const_or_copy_1): Similarly.
25128         (restore_vars_to_original_value): Similarly.
25129         (pass_dominator::execute): Create and destroy const_and_copies table.
25130         (thread_across_edge): Update passing of const_and_copies.
25131         (record_temporary_equivalence): Use method calls rather than
25132         manipulating const_and_copies directly.
25133         (record_equality, cprop_into_successor_phis): Similarly.
25134         (dom_opt_dom_walker::before_dom_children): Similarly.
25135         (dom_opt_dom_walker::after_dom_children): Similarly.
25136         (eliminate_redundant_computations): Similarly.
25137         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25138         (record_temporary_equivalence): Likewise.
25139         (invalidate_equivalences): Likewise.
25140         (record_temporary_equivalences_from_phis): Update due to type
25141         change of const_and_copies.  Use method calls rather than
25142         manipulating the stack directly.
25143         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25144         (thread_through_normal_block, thread_across_edge): Likewise.
25145         (thread_across_edge): Likewise.
25146         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25147         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
25148         of equiv_stack.
25149         (identify_jump_threads): Update due to type change of equiv_stack.
25150         (finalize_jump_threads): Delete the equiv_stack when complete.
25151
25152 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
25153
25154         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25155         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25156         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25157
25158 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
25159
25160         PR target/65535
25161         * config.gcc: Exit with a comment when we do not have a major version
25162         number for the FreeBSD target.
25163
25164 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25165
25166         PR target/65689
25167         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25168         maybe_allows_mem bitfields.
25169         (maybe_allows_none_start, maybe_allows_none_end,
25170         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25171         maybe_allows_mem_end): New variables.
25172         (compute_maybe_allows): New function.
25173         (add_constraint): Use it to initialize maybe_allows_reg and
25174         maybe_allows_mem fields.
25175         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25176         is_address constraints such that those that allow neither mem nor
25177         reg come first, then those that only allow reg but not mem, then
25178         those that only allow mem but not reg, then the rest.
25179         (write_allows_reg_mem_function): New function.
25180         (write_tm_preds_h): Call it.
25181         * stmt.c (parse_output_constraint, parse_input_constraint): Use
25182         the generated insn_extra_constraint_allows_reg_mem function
25183         instead of always setting *allows_reg = true; *allows_mem = true;
25184         for unknown extra constraints.
25185
25186 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25187
25188         PR target/65780
25189         * output.h (default_binds_local_p_3): New.
25190         * varasm.c (default_binds_local_p_3): Make it public.  Take an
25191         argument to indicate if common symbol may be local.  If common
25192         symbol may be local, treat non-external variable as defined
25193         locally.
25194         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25195         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25196         * config/i386/i386.c (ix86_binds_local_p): New.
25197         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25198         ix86_binds_local_p.
25199
25200 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25201
25202         PR debug/65771
25203         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25204         trying mem_loc_descriptor on XEXP (rtl, 0).
25205
25206 2015-04-17  Martin Liska  <mliska@suse.cz>
25207
25208         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25209         Release symbol_compare_collection.
25210         * ipa-reference.c: Add TODO that a vector should be released.
25211
25212 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25213
25214         PR target/65296
25215         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25216         to new AVR-LibC file layout (bug #44574).
25217         (*avrlibc_devicelib): Same.
25218         * config/avr/avr-mcus.def: Adjust comments.
25219         * config/avr/avr.opt (nodevicelib): Adjust help.
25220
25221 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
25222
25223         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25224
25225 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
25226
25227         PR c++/64527
25228         * gimplify.c (gimplify_init_constructor): Always emit a
25229         side-effecting constructor.
25230
25231 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25232
25233         PR tree-optimization/64950
25234         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25235         in cfun->curr_properties.
25236         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25237         if we generate an IFN_VA_ARG.
25238         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25239         function if PROP_gimple_lva is not set in src function.
25240
25241 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25242             Michael Matz  <matz@suse.de>
25243
25244         PR tree-optimization/64950
25245         * gimple-iterator.c (update_modified_stmts): Remove static.
25246         * gimple-iterator.h (update_modified_stmts): Declare.
25247         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25248         (gimplify_va_arg_internal): New function.
25249         (gimplify_va_arg_expr): Use IFN_VA_ARG.
25250         * gimplify.h (gimplify_va_arg_internal): Declare.
25251         * internal-fn.c (expand_VA_ARG): New unreachable function.
25252         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25253         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
25254         (expand_ifn_va_arg): New function.
25255         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
25256         (pass_stdarg::execute): Call expand_ifn_va_arg.
25257         (pass_data_lower_vaarg): New pass_data.
25258         (pass_lower_vaarg): New gimple_opt_pass.
25259         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
25260         (make_pass_lower_vaarg): New function.
25261         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
25262         properties_required field.
25263         * passes.def (all_passes): Add pass_lower_vaarg.
25264         * tree-pass.h (PROP_gimple_lva): Add define.
25265         (make_pass_lower_vaarg): Declare.
25266
25267 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25268
25269         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
25270         * calls.c (call_expr_flags): Same.
25271
25272 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25273
25274         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25275         (pass_stdarg::execute): ... here.
25276
25277 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25278             Michael Matz  <matz@suse.de>
25279
25280         * tree-cfg.c (make_blocks_1): Factor out of ...
25281         (make_blocks): ... here.
25282         (make_edges_bb): Factor out of ...
25283         (make_edges): ... here.
25284         (gimple_find_sub_bbs): New function.
25285         * tree-cfg.h (gimple_find_sub_bbs): Declare.
25286
25287 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25288
25289         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25290
25291 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
25292
25293         * asan.c (set_sanitized_sections): New function.
25294         (section_sanitized_p): Ditto.
25295         (asan_protect_global): Optionally sanitize user-defined
25296         sections.
25297         * asan.h (set_sanitized_sections): Declare new function.
25298         * common.opt (fsanitize-sections): New option.
25299         * doc/invoke.texi (-fsanitize-sections): Document new option.
25300         * opts-global.c (handle_common_deferred_options): Handle new
25301         option.
25302
25303 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25304
25305         PR debug/65771
25306         * dwarf2out.c (loc_list_from_tree): Return NULL
25307         for DEBUG_EXPR_DECL.
25308
25309 2015-04-17  Christian Bruel  <christian.bruel@st.com>
25310
25311         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25312         same attributes.
25313
25314 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25315
25316         * ira-color.c (setup_left_conflict_sizes_p): Do not process
25317         node itself when computing left conflict subnode size.
25318
25319 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25320
25321         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25322         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25323         *fop_<mode>_1_sse using enabled attribute.  Use
25324         register_mixssei387nonimm_operand operand 1 predicate. Change
25325         alternative 3 constraints from "x" to "v".
25326
25327 2015-04-16  Richard Biener  <rguenther@suse.de>
25328
25329         PR tree-optimization/65774
25330         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25331         bit-value tracking on.
25332
25333 2015-04-16  Richard Biener  <rguenther@suse.de>
25334
25335         PR tree-optimization/64277
25336         * tree-vrp.c (check_array_ref): Fix anti-range handling,
25337         simplify upper bound handling.
25338         (search_for_addr_array): Simplify.
25339         (check_array_bounds): Handle ADDR_EXPRs here.
25340         (check_all_array_refs): Simplify.
25341
25342 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25343
25344         * config/i386/i386.c (print_reg): Rewrite function.
25345
25346 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25347
25348         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25349         Invert the condition.
25350
25351 2015-04-16  Renlin Li  <renlin.li@arm.com>
25352
25353         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25354         simplifications for UNSIGNED_FLOAT.
25355
25356 2015-04-16  Nick Clifton  <nickc@redhat.com>
25357
25358         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25359         MUL_UNINIT.
25360         (enum rl78_cpu_type): New.
25361         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25362         (umulhi3_shift_virt): Remove m constraint from operand 1.
25363         (umulqihi3_virt): Likewise.
25364         * config/rl78/rl78.c (rl78_option_override): Add code to process
25365         -mcpu and -mmul options.
25366         (rl78_alloc_physical_registers): Add code to handle divhi and
25367         divsi valloc attributes.
25368         (set_origin): Likewise.
25369         * config/rl78/rl78.h (RL78_MUL_G14): Define.
25370         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25371         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25372         __RL78_Gxx__.
25373         (ASM_SPEC): Pass -mcpu on to assembler.
25374         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25375         (mulqi3_rl78): Likewise.
25376         (mulhi3_g13): Likewise.
25377         (mulhi3): Generate the G13 or G14 versions of the insn directly.
25378         (mulsi3): Likewise.
25379         (mulhi3_g14): Add clobbers of AX and BC.
25380         (mulsi3_g14): Likewise.
25381         (mulsi3_g13): Likewise.
25382         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25383         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25384         * config/rl78/rl78.opt (mmul): Initialise value to
25385         RL78_MUL_UNINIT.
25386         (mcpu): New option.
25387         (m13, m14, mrl78): New option aliases.
25388         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25389         (MULTILIB_DIRNAMES): Add g13 and g14.
25390         * doc/invoke.texi: Document -mcpu and -mmul options.
25391
25392 2015-04-16  Richard Biener  <rguenther@suse.de>
25393
25394         * tree-ssa-ccp.c (likely_value): See if we have operands that
25395         are marked as never simulate again and return CONSTANT in this
25396         case.
25397         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25398         not have any operands that will be simulated again as
25399         not being simulated again.
25400
25401 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
25402
25403         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25404         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25405         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25406         attribute.
25407         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25408         enabled attribute.
25409         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25410         *float<SWI48:mode><MODEF:mode>2_sse.
25411         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25412         enabled attribute.
25413         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25414         enabled attribute.
25415
25416 2015-04-15  Tom de Vries  <tom@codesourcery.com>
25417
25418         PR other/65487
25419         * function.c (push_dummy_function): New function.
25420         (init_dummy_function_start): Use push_dummy_function.
25421         (pop_dummy_function): New function.  Factored out of ...
25422         (expand_dummy_function_end): ... here.
25423         * function.h (push_dummy_function, pop_dummy_function): Declare.
25424         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25425         pop_dummy_function.
25426         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25427
25428 2015-04-15  Jeff Law  <law@redhat.com>
25429
25430         PR tree-optimization/47679
25431         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25432         need for forward declaration in upcoming changes.
25433         (record_conditions, record_edge_info): Likewise.
25434
25435         PR rtl-optimization/42522
25436         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25437         SIGN_EXTRACT as a whole object rather than simplifying
25438         its operand.
25439
25440 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
25441
25442         PR ipa/65765
25443         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25444         and GIMPLE_PREDICT use break instead of return true. For
25445         GIMPLE_EH_DISPATCH, compare dispatch region.
25446
25447 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
25448
25449         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
25450         details about the implementation.  Make clear preference for
25451         __atomic builtins.  Reduce possibility of future change.
25452
25453 2015-04-15  Nick Clifton  <nickc@redhat.com>
25454
25455         * config/rx/rx.opt (mallow-string-insns): New option.
25456         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25457         builtin if string instructions are denied.
25458         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25459         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25460         appropriate.
25461         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25462         * config/rx/rx.md (movstr): Enable pattern only if string
25463         instructions are allowed.
25464         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25465         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25466         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25467         (MULTILIB_DIRNAMES): Add no-strings.
25468         * doc/invoke.texi: Document -mno-allow-string-insns.
25469
25470 2015-04-15  Alan Modra  <amodra@gmail.com>
25471
25472         PR target/65408
25473         PR target/58744
25474         PR middle-end/36043
25475         * calls.c (load_register_parameters): Don't load past end of
25476         mem unless suitably aligned.
25477
25478 2015-04-15  Nick Clifton  <nickc@redhat.com>
25479
25480         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25481         decrement instruction as being frame related.
25482         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25483         based addresses.
25484         If zero extending a function address enclose the operation in
25485         %code(...).
25486         (rl78_preferred_reload_class): New function.
25487         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25488         * config/rl78/rl78.md: Remove useless constraints in expanders.
25489         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25490         (mulhi3_rl78): Likewise.
25491         (mulhi3_g13): Likewise.
25492         (mulsi3_rl78): Likewise.
25493         (es_addr): Move to before the multiply patterns.
25494
25495 2015-04-15  Alan Modra  <amodra@gmail.com>
25496
25497         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25498         and sequence_stack.  Add seq.
25499         (seq_stack): Delete.
25500         * function.c (prepare_function_start): Don't access x_last_insn.
25501         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25502         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25503         * emit_rtl.c (start_sequence, push_topmost_sequence,
25504         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25505         sequence accessors.
25506         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25507         remove_insn): Likewise.  Simplify.
25508         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25509         and pop_topmost_sequence.
25510         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
25511         debug insns.
25512         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25513
25514 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
25515
25516         PR target/65729
25517         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25518         the assertiion.
25519
25520 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25521
25522         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25523         (LEGACY_INT_REGNO_P): Ditto.
25524         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25525         (ANY_MASK_REG_P): Remove.
25526         (BND_REG_P): Rename from ANY_BND_REG_P.
25527         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25528         legacy integer registers.  Do not handle MMX_REG_P in a special way.
25529         Merge 64byte and 32byte SSE handling.
25530
25531 2015-04-14  Nick Clifton  <nickc@redhat.com>
25532
25533         * expr.c (expand_assignment): Force an address offset computation
25534         into a register before changing its mode.
25535         (expand_expr_real_1): Likewise.
25536
25537 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
25538
25539         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25540         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25541         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25542         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25543         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25544         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25545         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25546         and __aarch64_vget_lane_any.
25547
25548 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
25549
25550         PR rtl-optimization/65761
25551         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25552         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25553
25554 2015-04-14  Richard Biener  <rguenther@suse.de>
25555
25556         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25557         (graphite_can_represent_scev): Use POINTER_TYPE_P.
25558
25559 2015-04-14  Richard Biener  <rguenther@suse.de>
25560
25561         PR tree-optimization/65758
25562         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25563         against -1.
25564         (ccp_lattice_meet): Likewise.
25565         (bit_value_unop): Likewise.
25566         (bit_value_binop): Likewise.
25567         (bit_value_assume_aligned): Likewise.
25568
25569 2015-04-14  Christian Bruel  <christian.bruel@st.com>
25570
25571         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25572         function.
25573
25574 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
25575
25576         PR tree-optimization/63387
25577         * match.pd ((x unord x) | (y unord y) -> (x unord y),
25578         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25579
25580 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25581
25582         * config/i386/predicates.md (any_QIreg_operand): Rename from
25583         q_regs_operand.  Do not process subregs.
25584         (QIreg_operand): Use QI_REGNO_P predicate.
25585         (ext_QIreg_operand): Ditto.
25586         (ext_register_operand): Ditto.
25587         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25588         (AND splitters): Ditto.
25589         (AND with -65536 splitter): Add SWI48 mode for operand 0.
25590         (AND with -256 splitter): Use any_QIreg_operand predicate and
25591         SWI248 mode for operand 0.
25592         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25593         mode for operand 0.
25594         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25595
25596 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
25597
25598         * doc/plugins.texi: Rewrite first introductory paragraph.
25599
25600 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25601
25602         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25603         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25604
25605 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25606
25607         * ipa-profie.c (ipa_profile): Check number of parameters
25608         and possible polymorphic call targets before
25609         devirtualizing.
25610
25611 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
25612
25613         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25614         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25615
25616 2015-04-13  Richard Biener  <rguenther@suse.de>
25617
25618         PR tree-optimization/65204
25619         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25620         takens for bit-CCP.
25621
25622 2015-04-13  Richard Biener  <rguenther@suse.de>
25623
25624         PR target/65660
25625         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25626         and cond_not_taken_branch_cost to 4 and 2.
25627         (bdver2_cost): Likewise.
25628         (bdver3_cost): Likewise.
25629         (bdver4_cost): Likewise.
25630
25631 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25632
25633         * hash-table.h (hash_table constructor): Add mem stats.
25634         (alloc_entries): Likewise.
25635
25636 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25637
25638         * ipa-cp.c (ipcp_driver): Relase prev_edge.
25639         * passes.c (execute_one_pass): Only add transform if pass has one.
25640
25641 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
25642
25643         * config/i386/i386.c (ix86_option_override_internal): Don't set
25644         -fprefetch-loop-arrays if optimizing for size.
25645
25646 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25647             Gerald Pfeifer  <gerald@pfeifer.com>
25648
25649         * doc/contrib.texi (Contributors): Add Martin Jambor and
25650         Michael Matz.
25651
25652 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
25653
25654         * BASE-VER: Set to 6.0.0.
25655
25656         PR tree-optimization/65747
25657         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25658         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25659
25660 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25661
25662         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25663         sentence.  Improve grammar.
25664
25665 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25666
25667         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25668
25669 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25670
25671         PR ipa/65743
25672         * ipa-inline-transform.c (speculation_removed): Remove static var.
25673         (check_speculations): New function.
25674         (clone_inlined_nodes): Do not check spculations.
25675         (inline_call): Call check_speculations.
25676         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25677         consider non-invariants.
25678
25679 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25680             Martin Liska  <mliska@suse.cz>
25681
25682         PR ipa/65722
25683         * ipa-icf.c (sem_item::compare_cgraph_references): function and
25684         variable can not match.
25685         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25686         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25687
25688 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
25689
25690         PR tree-optimization/65735
25691         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25692         Remove visited_phis argument, add visited_bbs, avoid recursing into the
25693         same bb rather than just into the same phi node.
25694         (thread_through_normal_block): Adjust caller.
25695
25696 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25697
25698         * doc/contrib.texi (Contributors): Add Ira Rosen.
25699
25700 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
25701
25702         * gcov.c (find_source): Fix miswording in error message.
25703         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25704         (ix86_expand_sse_comi_round): Fix typo in error message.
25705
25706 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25707
25708         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25709
25710 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
25711
25712         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25713
25714 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25715
25716         PR target/65710
25717         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25718         Print bad_spills_num and insn_pseudos_num.
25719
25720 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25721
25722         PR target/65694
25723         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25724         when creating +1 values for SImode.
25725
25726 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25727
25728         PR target/65729
25729         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25730         assert.
25731
25732 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
25733             Iain Sandoe  <iain@codesourcery.com>
25734
25735         PR target/65351
25736         * configure: Regenerate.
25737
25738 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25739
25740         PR target/65671
25741         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25742
25743 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
25744
25745         * doc/contrib.texi (Contributors): Add John Marino.
25746
25747 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25748
25749         PR tree-optimization/65709
25750         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25751         TREE_TYPE (TREE_TYPE (t)).
25752
25753 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
25754
25755         PR target/65710
25756         * lra-int.h (lra_bad_spill_regno_start): New.
25757         * lra.c (lra_bad_spill_regno_start): New.
25758         (lra): Set up lra_bad_spill_regno_start.  Set up
25759         lra_constraint_new_regno_start unconditionally.
25760         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25761         spill preferences.
25762
25763 2015-04-09  Marek Polacek  <polacek@redhat.com>
25764             Jakub Jelinek  <jakub@redhat.com>
25765
25766         PR middle-end/65554
25767         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25768         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25769         of STRIP_NOPS.
25770
25771 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
25772
25773         PR rtl-optimization/65693
25774         * combine.c (is_parallel_of_n_reg_sets): Move outside of
25775         #ifndef HAVE_cc0.
25776
25777 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
25778
25779         PR target/65296
25780         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25781         device specs file if "device-specs%s" didn't resolve to a path.
25782
25783 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25784
25785         PR target/65676
25786         * config/i386/i386.c (fixup_modeless_constant): New.
25787         (ix86_expand_args_builtin): Fixup modeless constant operand.
25788         (ix86_expand_round_builtin): Ditto.
25789         (ix86_expand_special_args_builtin): Ditto.
25790         (ix86_expand_builtin): Ditto.
25791
25792 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25793
25794         PR target/65693
25795         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25796         any pow2 integer in between 2 and 0x80000000U inclusive.
25797
25798 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
25799
25800         PR rtl-optimization/65693
25801         * combine.c (is_parallel_of_n_reg_sets): Change first argument
25802         from an rtx_insn * to an rtx.
25803         (try_combine): Adjust both callers.  Use it once more.
25804
25805 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25806
25807         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25808         (chkp_make_static_const_bounds): Search existing
25809         symbol by assembler name.  Use make_decl_one_only.
25810         (chkp_get_zero_bounds_var): Remove node search which
25811         is now performed in chkp_make_static_const_bounds.
25812         (chkp_get_none_bounds_var): Likewise.
25813
25814 2015-04-08  Michael Witten  <mfwitten@gmail.com>
25815
25816         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25817         to an example.
25818
25819 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25820
25821         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25822
25823 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25824
25825         * doc/extend.texi (__sync Builtins): Fix grammar.
25826
25827 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25828
25829         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25830
25831 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25832
25833         * varasm.c (emit_local): Move definition of align.
25834
25835 2015-04-08  Julian Brown  <julian@codesourcery.com>
25836
25837         * config/nvptx/mkoffload.c (process): Support variable mapping.
25838
25839 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
25840
25841         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25842         alpha_links **.
25843         (alpha_write_one_linkage): Correct typo.
25844
25845 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25846
25847         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25848
25849 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25850
25851         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25852
25853 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25854
25855         * tree-chkp.h (chkp_insert_retbnd_call): New.
25856         * tree-chkp.c (chkp_insert_retbnd_call): New.
25857         * ipa-split.c (insert_bndret_call_after): Remove.
25858         (split_function): Use chkp_insert_retbnd_call.
25859         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25860         bounds for instrumented functions.
25861
25862 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
25863
25864         PR ipa/65540
25865         * calls.c (initialize_argument_information): When producing tail
25866         call also turn SSA_NAMES passed by references to original PARM_DECLs
25867
25868 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
25869
25870         PR target/65648
25871         * lra-remat.c (do_remat): Process input and non-input insn
25872         registers separately.
25873
25874 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25875
25876         PR debug/65678
25877         * valtrack.c (debug_lowpart_subreg): New function.
25878         (dead_debug_insert_temp): Use it.
25879
25880         PR middle-end/65680
25881         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25882         into signed HOST_WIDE_INT the same as negative bit_offset.
25883
25884 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
25885
25886         * ipa-comdats.c (ipa_comdats): Visit all thunks
25887         to set proper comdat group.
25888
25889 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25890
25891         PR target/65489
25892         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25893         on constants for NEON VSTRUCT modes.
25894
25895 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25896             Iain Sandoe  <iain@codesourcery.com>
25897
25898         PR target/65351
25899         * configure: Regenerate.
25900
25901 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25902
25903         PR target/65614
25904         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25905         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25906         that LFD is used to load double constants instead of LFS.  Add
25907         defaults for all costs structures.  Add comments for missing
25908         initialization fields.
25909         (size32_cost): Likewise.
25910         (size64_cost): Likewise.
25911         (rs64a_cost): Likewise.
25912         (mpccore_cost): Likewise.
25913         (ppc403_cost): Likewise.
25914         (ppc405_cost): Likewise.
25915         (ppc440_cost): Likewise.
25916         (ppc476_cost): Likewise.
25917         (ppc601_cost): Likewise.
25918         (ppc603_cost): Likewise.
25919         (ppc604_cost): Likewise.
25920         (ppc604e_cost): Likewise.
25921         (ppc620_cost): Likewise.
25922         (ppc630_cost): Likewise.
25923         (ppccell_cost): Likewise.
25924         (ppc750_cost): Likewise.
25925         (ppc7450_cost): Likewise.
25926         (ppc8540_cost): Likewise.
25927         (ppce300c2c3_cost): Likewise.
25928         (ppce500mc_cost): Likewise.
25929         (ppce500mc64_cost): Likewise.
25930         (ppce5500_cost): Likewise.
25931         (ppce6500_cost): Likewise.
25932         (titan_cost): Likewise.
25933         (power4_cost): Likewise.
25934         (power6_cost): Likewise.
25935         (power7_cost): Likewise.
25936         (power8_cost): Likewise.
25937         (ppca2_cost): Likewise.
25938         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25939
25940         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25941         instead of XXLOR to copy SFmode to clear out dirty bits created
25942         when SFmode denormals are generated.
25943         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25944         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25945
25946 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25947
25948         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25949         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25950         * config/aarch64/aarch64-tune.md: Regenerate.
25951
25952 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25953
25954         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
25955         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
25956         * config/arm/arm-cores.def (exynos-m1): New core.
25957         * config/arm/arm-tune.md: Regenerate.
25958         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
25959         * config/arm/bpabi.h: Likewise.
25960
25961 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25962
25963         * ipa-cp (set_single_call_flag): Remove too
25964         restrictive assert.
25965
25966 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
25967
25968         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
25969         GOMP_offload_unregister from the destructor.
25970
25971 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25972
25973         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
25974         flags for instrumentation thunk.
25975         (chkp_produce_thunks): Likewise.
25976
25977 2015-04-05  Martin Liska  <mliska@suse.cz>
25978
25979         PR ipa/65665
25980         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
25981         has computed data structure.
25982         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25983
25984 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
25985
25986         * invoke.texi (inline-unit-growth): Increase growth to 20%
25987         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
25988
25989 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
25990
25991         PR target/65647
25992         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
25993         value checking.
25994         (lra_rematerialization_iter): New.
25995         * lra.c (lra): Initialize lra_rematerialization_iter.
25996         Stop updating lra_constraint_new_regno_start after switching of
25997         inheritance and rematerialization.
25998         * lra-remat.c (lra_rematerialization_iter): New.
25999         (lra_remat): Add printing pass iteration.  Do rematerialization
26000         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26001
26002 2015-04-04  Richard Biener  <rguenther@suse.de>
26003
26004         PR tree-optimization/64909
26005         PR tree-optimization/65660
26006         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26007         to take a cost vector for scalar iteration cost.
26008         (vect_get_single_scalar_iteration_cost): Likewise.
26009         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26010         Compute the scalar iteration cost into a cost vector.
26011         (vect_get_known_peeling_cost): Use the scalar cost vector to
26012         account for the cost of the peeled iterations.
26013         (vect_estimate_min_profitable_iters): Likewise.
26014         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26015         Likewise.
26016
26017 2015-04-04  Alan Modra  <amodra@gmail.com>
26018
26019         PR target/65576
26020         PR target/65240
26021         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26022         0.0 constant unless TARGET_VSX.
26023         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26024         alternative.
26025
26026 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26027
26028         PR ipa/65654
26029         * ipa-inline-transform.c (inline_call): Skip sanity check to work
26030         around the ICE
26031
26032 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26033
26034         PR ipa/65655
26035         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26036         speculative indirect edges to avoid ordering issue.
26037
26038 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
26039
26040         PR ipa/65076
26041         * ipa-inline.c (edge_badness): Add combined size to the denominator.
26042
26043 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
26044
26045         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26046         TYPE_ARTIFICIAL on the .omp_data* types.
26047
26048 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26049
26050         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26051         instrumentation thunks.
26052
26053 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26054
26055         * config/i386/i386.c (ix86_expand_call): Avoid nested
26056         PARALLEL in returned call value.
26057
26058 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26059
26060         * lto-cgraph.c (input_cgraph_1): Always link instrumented
26061         assembler name with original one.
26062
26063 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26064
26065         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26066
26067 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26068
26069         Revert parts of r216820.
26070         * config/i386/i386.md (movqi_internal): Correct type calculation
26071         for alternatives 3 and 5.
26072
26073 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
26074
26075         PR preprocessor/61977
26076         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26077         predefine __vector/__bool/__pixel macros nor context sensitive
26078         macros for CLK_ASM.
26079         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26080
26081 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
26082
26083         * config/pa/pa.c (pa_output_move_double): Directly handle register
26084         indexed memory operand.  Simplify handling of scaled register indexed
26085         memory operands.
26086
26087 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26088
26089         PR driver/65444
26090         * config/i386/linux-common.h (MPX_SPEC): New.
26091         (CHKP_SPEC): Add MPX_SPEC.
26092         * doc/invoke.texi (-fcheck-pointer-boudns): Document
26093         possible issues with '-z bndplt' support in linker.
26094
26095 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
26096
26097         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26098         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26099         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26100         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26101         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26102
26103 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
26104
26105         * config/i386/sync.md (UNSPEC_MOVA): Remove.
26106         (atomic_load<mode>): Change operand 0 predicate to
26107         nonimmediate_operand and fix up the destination when needed.
26108         Use UNSPEC_LDA.
26109         (atomic_loaddi_fpu): Use UNSPEC_LDA.
26110         (atomic_store<mode>): Change operand 1 predicate to
26111         nonimmendate_operand and move the source to register when needed.
26112         Use UNSPEC_STA.
26113         (atomic_store<mode>_1): Use UNSPEC_STA.
26114         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26115         Fix moves from memory operand.  Use UNSPEC_STA.
26116
26117 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26118
26119         * expmed.c (strict_volatile_bitfield_p): Check that the access will
26120         not cross a MODESIZE boundary.
26121         (store_bit_field, extract_bit_field): Added assertions in the
26122         strict volatile bitfields code path.
26123
26124 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26125
26126         PR target/65624
26127         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26128         Increase args array size by one to avoid buffer overflow.
26129
26130 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
26131
26132         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26133         split_part.
26134         * ipa-inline.c (edge_badness): Add wrapper penalty.
26135         (sum_callers): Move up.
26136         (inline_small_functions): Set single_caller.
26137         * ipa-inline.h (inline_summary): Add single_caller.
26138         * ipa-split.c (split_function): Set split_part.
26139         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26140         * cgraph.h (cgraph_node): Add split_part.
26141
26142 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
26143
26144         PR target/58945
26145         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26146         Do not split operands 0 and operands 2 to halfmode.
26147         (atomic_compare_and_swap<mode>): Update for
26148         atomic_compare_and_swap<dwi>_doubleword changes.
26149
26150 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
26151
26152         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26153         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26154         no caching is done.
26155
26156 2015-03-31  Martin Liska  <mliska@suse.cz>
26157
26158         PR ipa/65557
26159         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26160         has already filled up function summary.
26161         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26162
26163 2015-03-31  Richard Biener  <rguenther@suse.de>
26164
26165         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26166         of types.
26167
26168 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26169
26170         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26171         nested functions.
26172         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26173         (s390_asm_output_function_label): Adapt to new signature of
26174         s390_function_num_hotpatch_hw
26175         Optimise the code generating assembler output.
26176         Add comments to assembler file.
26177
26178 2015-03-31  Richard Biener  <rguenther@suse.de>
26179
26180         PR middle-end/65626
26181         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26182         of the noreturn call so it is last and cleanup_control_flow_bb
26183         can do the CFG part.
26184
26185 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
26186
26187         PR target/65531
26188         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26189         same_comdat_group for external symbols.
26190         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26191         infinite same_comdat_group traversal loop.
26192
26193 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
26194
26195         PR plugins/61176
26196         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26197         automatically to $headers.
26198
26199 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
26200
26201         PR ipa/65610
26202         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26203         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26204         function.
26205         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26206         Use it.
26207         * ipa-prop.c (param_type_may_change_p): Likewise.
26208         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26209         (remove_unused_scope_block_p): Add in_ctor_dtor_block
26210         argument.  Before inlining, preserve
26211         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26212         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
26213         recursive calls.
26214         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26215
26216 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26217
26218         PR ipa/65076
26219         * ipa-inline.c (edge_badness): Base denominator on callee's
26220         grwoth squared.
26221
26222 2015-03-27  Martin Jambor  <mjambor@suse.cz>
26223
26224         PR ipa/65478
26225         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26226         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26227         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26228         node_calling_single_call.
26229         * ipa-cp.c (count_callers): New function.
26230         (set_single_call_flag): Likewise.
26231         (initialize_node_lattices): Count callers and set single_flag_call if
26232         necessary.
26233         (incorporate_penalties): New function.
26234         (good_cloning_opportunity_p): Use it, dump new flags.
26235         (propagate_constants_topo): Set node_within_scc flag if appropriate.
26236         * doc/invoke.texi (ipa-cp-recursion-penalty,
26237         ipa-cp-single-call-pentalty): Document.
26238
26239 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26240
26241         PR ipa/65588
26242         * symtab.c (symtab_node::get_partitioning_class): Register vars
26243         are duplicated.
26244         * varpool.c (symbol_table::output_variables) Do not assemble unefined
26245         decls for non-symbols.
26246
26247 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26248
26249         PR target/65248
26250         * output.h (default_binds_local_p_2): New.
26251         * varasm.c (default_binds_local_p_2): Renamed to ...
26252         (default_binds_local_p_3): This.  Don't return true on protected
26253         data symbol if protected data may be external.
26254         (default_binds_local_p): Use default_binds_local_p_3.
26255         (default_binds_local_p_1): Likewise.
26256         (default_binds_local_p_2): New.
26257         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
26258         default_binds_local_p_2 if TARGET_MACHO is undefined.
26259
26260 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
26261
26262         PR target/65593
26263         * config/i386/i386.c (legitimize_pic_address): If base
26264         is SYMBOL_REF or LABEL_REF using %rip addressing, force
26265         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
26266
26267 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26268
26269         PR target/65531
26270         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
26271         comdat groups.
26272
26273 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26274
26275         PR ipa/65600
26276         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26277         of optimized out indirect call.
26278         (redirect_to_unreachable): Always build symbol table node for
26279         BUILT_IN_UNREACHABLE
26280
26281 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26282
26283         PR target/65407
26284         * ira-costs.c (record_reg_classes): Process all constraint string
26285         containing 0-9.
26286
26287 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
26288
26289         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26290         memory_operand.
26291
26292         PR target/65052
26293         * config/c6x/constraints.md (S3): New constraint.
26294         * config/c6x/c6x.md (real_jump): Use it.
26295
26296 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26297
26298         PR middle-end/65595
26299         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26300         do redirection if the call is not optimized out.
26301
26302 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
26303
26304         PR target/65495
26305         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26306         (fchkp-check-incomplete-type): Add LTO.
26307         (fchkp-zero-input-bounds-for-main): Likewise.
26308         (fchkp-first-field-has-own-bounds): Likewise.
26309         (fchkp-narrow-bounds): Likewise.
26310         (fchkp-narrow-to-innermost-array): Likewise.
26311         (fchkp-use-static-bounds): Likewise.
26312         (fchkp-use-static-const-bounds): Likewise.
26313         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26314
26315 2015-03-27  Marek Polacek  <polacek@redhat.com>
26316
26317         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26318
26319 2015-03-27  Marek Polacek  <polacek@redhat.com>
26320
26321         PR sanitizer/65583
26322         * ubsan.c (ubsan_create_edge): New function.
26323         (instrument_bool_enum_load): Call it.
26324         (instrument_nonnull_arg): Likewise.
26325         (instrument_nonnull_return): Likewise.
26326         (instrument_object_size): Likewise.
26327
26328 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26329
26330         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26331         auto_vec.
26332
26333 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26334
26335         PR lto/65536
26336         * lto-streamer.h (class lto_location_cache): New.
26337         (struct data_in): Add location_cache.
26338         (lto_input_location): Update prototype.
26339         (stream_input_location_now): New.
26340         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26341         pointer to location.
26342         (stream_input_location): Update.
26343         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26344         (warn_odr): Apply location cache before warning.
26345         (lto_input_location): Update prototype.
26346         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26347         Use stream_input_location_now.
26348         * lto-streamer-in.c (lto_location_cache::current_cache): New static
26349         variable.
26350         (lto_location_cache::cmp_loc): New function.
26351         (lto_location_cache::apply_location_cache): New function.
26352         (lto_location_cache::accept_location_cache): New function.
26353         (lto_location_cache::revert_location_cache): New function.
26354         (lto_location_cache::input_location): New function.
26355         (lto_input_location): Do location caching.
26356         (stream_input_location_now): New function.
26357         (input_eh_region, input_struct_function_base): Use
26358         stream_input_location_now.
26359         (lto_data_in_create): use new.
26360         (lto_data_in_delete): Use delete.
26361         * tree-streamer-in.c (unpack_ts_block_value_fields,
26362         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26363         lto_input_ts_exp_tree_pointers): Update for cached location api.
26364
26365 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26366
26367         PR ipa/65076
26368         * passes.def: Add pass_nothrow.
26369         * ipa-pure-const.c: (pass_data_nothrow): New.
26370         (pass_nothrow): New.
26371         (pass_nothrow::execute): New.
26372         (make_pass_nothrow): New.
26373         * tree-pass.h (make_pass_nothrow): Declare.
26374
26375 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26376
26377         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26378         edge to change by speculation resolution or redirection.
26379         (edge_set_predicate): Likewise.
26380         (inline_summary_t::duplicate): Likewise.
26381         (remap_edge_summaries): Likewise.
26382
26383 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26384
26385         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26386         New macros.
26387         (can_inline_edge_p): Relax option matching for always inline functions.
26388
26389 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
26390
26391         PR target/65561
26392         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26393         Check operand 4 and operand 0 for equality.
26394         (avx512f_vextract<shuffletype>32x4_1_maskm):
26395         Check operand 6 and operand 0 for equality.
26396         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26397         for equality.
26398         (vec_extract_hi_<mode>_maskm): Ditto.
26399
26400 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26401
26402         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26403         dead calls back to live.
26404         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26405         cross check to ...
26406         (cgraph_node::verify_node): ... here; verify only callee edges,
26407         not caller.
26408         * cif-code.def (CILK_SPAWN): New code.
26409
26410 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26411
26412         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26413         (edge_set_predicate): Use it to mark unreachable edges.
26414         (inline_summary_t::duplicate): Remove unnecesary code.
26415         (remap_edge_summaries): Likewise.
26416         (dump_inline_summary): Report contains_cilk_spawn.
26417         (compute_inline_parameters): Compute contains_cilk_spawn.
26418         (inline_read_section, inline_write_summary): Stream
26419         contains_cilk_spawn.
26420         * ipa-inline.c (can_inline_edge_p): Do not touch
26421         DECL_STRUCT_FUNCTION that may not be available;
26422         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26423         remove check for callee_fun->can_throw_non_call_exceptions and
26424         replace it by optimization attribute check; check for flag_exceptions.
26425         * ipa-inline-transform.c (inline_call): Maintain
26426         DECL_FUNCTION_PERSONALITY
26427         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26428
26429 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26430
26431         PR tree-optimization/65551
26432         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26433         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26434
26435 2015-03-26  Richard Biener  <rguenther@suse.de>
26436
26437         PR middle-end/65555
26438         * tree-cfg.c (verify_gimple_call): Do not require a call to
26439         have no LHS if it wasn't recognized as control altering yet.
26440
26441 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26442
26443         PR tree-optimization/64715
26444         * passes.def: Add another instance of pass_object_sizes before ccp1.
26445         * tree-object-size.c (pass_object_sizes::execute): In
26446         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26447         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26448         __bos result and the computed constant.  Remove redundant
26449         checks, obsoleted by gimple_call_builtin_p test.
26450
26451         * var-tracking.c (variable_tracking_main_1): Don't track
26452         variables for targetm.no_register_allocation targets.
26453
26454 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
26455
26456         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26457         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26458
26459 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26460
26461         PR target/65569
26462         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26463         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
26464         0.0 is correctly setup.
26465         (extenddftf2_internal): Likewise.
26466
26467 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
26468
26469         PR tree-optimization/65177
26470         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26471         (bb_in_bbs): New.
26472         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
26473         edges not adjacent on the path to the original code.
26474
26475 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
26476
26477         PR bootstrap/65537
26478         * doc/install.texi (Building a native compiler): Document new
26479         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
26480         configuration assumes that the host supports the linker plugin.
26481
26482 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26483
26484         PR target/65508
26485         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26486         chain for generated call.
26487
26488 2015-03-25  Richard Biener  <rguenther@suse.de>
26489
26490         * passes.c (pass_manager::execute_early_local_passes): Guard
26491         execution of pass_chkp_instrumentation_passes with
26492         flag_check_pointer_bounds.
26493         (pass_chkp_instrumentation_passes::gate): Likewise.
26494
26495 2015-03-25  Martin Liska  <mliska@suse.cz>
26496
26497         PR tree-optimization/65538
26498         * symbol-summary.h (function_summary::~function_summary):
26499         Relese memory for allocated summaries.
26500         (function_summary::release): New function.
26501
26502 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
26503
26504         PR lto/65515
26505         * lto-streamer-out.c (DFS::worklist): New struct.
26506         (DFS::worklist_vec): New data member.
26507         (DFS::next_dfs_num): Remove.
26508         (DFS::DFS): Rewritten using worklist instead of recursion,
26509         using most of code from DFS::DFS_write_tree.
26510         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26511         pass it to DFS_write_tree calls.
26512         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26513         quick initial checks push it into worklist_vec and return.
26514
26515 2015-03-25  Richard Biener  <rguenther@suse.de>
26516
26517         PR middle-end/65519
26518         * genmatch.c (expr::gen_transform): Re-write to avoid
26519         using gimple_build.
26520
26521 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26522
26523         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26524
26525 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26526
26527         * config/arm/arm.opt (print_tune_info): New option.
26528         * config/arm/arm.c (arm_print_tune_info): New function.
26529         (arm_file_start): Call arm_print_tune_info.
26530         * config/arm/arm-protos.h (struct tune_params): Add comment.
26531         * doc/invoke.texi (@item -mprint-tune-info): New item.
26532         (-mtune): mention it in ARM Option Summary.
26533
26534 2015-03-25  DJ Delorie  <dj@redhat.com>
26535
26536         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26537         correct clause.
26538
26539 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
26540             Martin Liska  <mliska@suse.cz>
26541
26542         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26543         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26544         (sem_item::add_type): New function.
26545         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26546         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26547         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26548         (sem_function::equals_wpa): Fix typo.
26549         * ipa-icf.h (sem_item::add_type): New function.
26550         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26551         order.
26552
26553 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
26554
26555         PR tree-optimization/65533
26556         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26557         with swapped operands, call vect_free_slp_tree on
26558         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26559         vector.
26560
26561 2015-03-24  Richard Biener  <rguenther@suse.de>
26562
26563         PR middle-end/65517
26564         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26565         for fixup if necessary.
26566
26567 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
26568
26569         * doc/extend.texi (Function Attributes): Add @cindex entries
26570         for all attributes and regularize their format.  Delete text
26571         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
26572         information about "eightbit_data", "tiny_data", and "model"
26573         variable attributes to the Variable Attributes section.  Fix
26574         some obvious typos and copy-editing issues.
26575         (Variable Attributes, Type Attributes): Likewise add/fix
26576         @cindex entries for all attributes.
26577
26578 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26579
26580         PR target/65523
26581         * tree-chkp.c (chkp_build_returned_bound): Ignore
26582         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26583
26584 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
26585
26586         PR target/65505
26587         * config/sh/predicates.md (simple_mem_operand,
26588         displacement_mem_operand): Add test for reg.
26589         (short_displacement_mem_operand): Test for displacement_mem_operand
26590         before invoking sh_disp_addr_displacement.
26591         * config/sh/constraints.md (Sdd, Sra): Simplify.
26592         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26593         Remove redundant displacement_mem_operand tests.
26594
26595 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
26596
26597         PR target/65296
26598         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26599         the same -mmcu=MCU more than once.
26600
26601 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26602
26603         PR bootstrap/65522
26604         * ipa-devirt.c: Remove duplicate demangle.h include.
26605
26606         PR target/65504
26607         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26608         on the pseudo.
26609         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26610         REG_POINTER on *destptr after adjusting it for prologue size.
26611
26612         PR ipa/65521
26613         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26614         ultimate_alias_target ()->order ints instead of
26615         ultimate_alias_target () pointers.
26616
26617 2015-03-23  Richard Biener  <rguenther@suse.de>
26618
26619         PR tree-optimization/65518
26620         * tree-vect-stmts.c (vectorizable_load): Reject single-element
26621         interleaving cases we generate absymal code for.
26622
26623 2015-03-23  Richard Biener  <rguenther@suse.de>
26624
26625         PR tree-optimization/65494
26626         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26627         matches here.
26628         (vect_analyze_slp_instance): But do that here, always and once.
26629
26630 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26631
26632         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26633         adding T or multiplying by T+1 and subracting T.
26634
26635 2015-03-22  Jeff Law  <law@redhat.com>
26636
26637         PR rtl-optimization/64317
26638         * Makefile.in (OBJS): Add gcse-common.c
26639         * gcse.c: Include gcse-common.h
26640         (struct modify_pair_s): Move structure definition to gcse-common.h
26641         (compute_transp): Move function to gcse-common.c.
26642         (canon_list_insert): Similarly.
26643         (record_last_mem_set_info): Break out some code and put it into
26644         gcse-common.c.  Call into the new common code.
26645         (compute_local_properties): Pass additional arguments to compute_transp.
26646         * postreload-gcse.c: Include gcse-common.h and df.h
26647         (modify_mem_list_set, blocks_with_calls): New variables.
26648         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26649         (get_bb_avail_insn): Pass in the expression index too.
26650         (alloc_mem): Allocate memory for the new bitmaps and lists.
26651         (free_mem): Free memory for the new bitmaps and lists.
26652         (insert_expr_in_table): Record a bitmap index for each entry we
26653         add to the table.
26654         (record_last_mem_set_info): Call into common code in gcse-common.c.
26655         (get_bb_avail_insn): If no available insn was found in the requested
26656         BB.  If BB has a single predecessor, see if the expression is
26657         transparent in BB and available in that single predecessor.
26658         (compute_expr_transp): New wrapper for compute_transp.
26659         (eliminate_partially_redundant_load): Pass expression's bitmap_index
26660         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
26661         (gcse_after_reload_main): If there are elements in the hash table,
26662         then compute transparency for all the elements in the hash table.
26663         * gcse-common.h: New file.
26664         * gcse-common.c: New file.
26665
26666 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
26667
26668         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26669         as an adjective.
26670         (System Headers): Likewise.
26671         (Ifdef): Likewise.
26672         (Traditional macros): Likewise.
26673         (Invocation): Likewise.
26674         (Option Index): Likewise.
26675         * doc/cppopts.texi (-M): Likewise.
26676         (-finput-charset): Likewise.
26677         (--help): Likewise.
26678         * doc.invoke.texi (AVR Options): Likewise.
26679         (V850 Options): Likewise.
26680
26681 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
26682
26683         PR ipa/65475
26684         * ipa-devirt.c: Include demangle.h
26685         (odr_type_d): Add field rtti_broken.
26686         (odr_subtypes_equivalent_p): Do not require name to match.
26687         (compare_virtual_tables): Fix typo; if type already has ODR violation,
26688         bypass the tests; be ready for function referneces in vtables that are
26689         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26690         (warn_odr): Give up for nameless types.
26691         (warn_types_mismatch): Report mismatch in mangled names;
26692         report mismatch in anonymous namespaces; look into component types to
26693         give useful error; report when mismatch is dragged in from other ODR
26694         type.
26695         (odr_types_equivalent_p): Match types for being polymorphic; avoid
26696         duplicated diagnostics.
26697         (add_type_duplicate): Reorder checks so more informative ones come
26698         first; fix typo; do not output "the extra base is defined here" when
26699         we did not warn.
26700         (BINFO_N_BASE_BINFOS): Relax sanity check.
26701
26702 2015-03-22  Martin Liska  <mliska@suse.cz>
26703             Jakub Jelinek  <jakub@redhat.com>
26704
26705         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26706         masks that can potentially include a builtin.
26707         (ix86_add_new_builtins): Introduce fast filter for isa values
26708         that cannot trigger builtin inclusion.
26709
26710 2015-03-22  Martin Liska  <mliska@suse.cz>
26711
26712         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26713         (sem_item::update_hash_by_local_refs): Likewise.
26714         (sem_variable::get_hash): Empty line is fixed.
26715         (sem_item_optimizer::execute): Include adding of hash references.
26716         (sem_item_optimizer::update_hash_by_addr_refs): New function.
26717         (sem_item_optimizer::build_hash_based_classes): Use local hash.
26718         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26719         (sem_item::update_hash_by_local_refs): Likewise.
26720
26721 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26722
26723         PR ipa/65502
26724         * ipa-comdats.c (enqueue_references): Walk through thunks.
26725         (ipa_comdats): Likewise.
26726         (set_comdat_group_1): New function.
26727
26728 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26729
26730         PR ipa/65475
26731         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26732         non-polymorphic
26733
26734 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26735             Gerald Pfeifer  <gerald@pfeifer.com>
26736
26737         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26738
26739 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26740             Sandra Loosemore  <sandra@codesourcery.com>
26741
26742         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26743         function parameter declaration.
26744         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26745         Update arguments to nios2_adjust_call_address().
26746         (sibcall_internal): Rename from *sibcall.
26747         (sibcall_value_internal): Rename from *sibcall_value.
26748         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26749         (nios2_large_got_address): Add target temp reg parameter.
26750         (nios2_got_address): Adjust call to nios2_large_got_address, add
26751         force_reg around it.
26752         (nios2_load_pic_address): Add target temp reg parameter, replace call
26753         to nios2_got_address with corresponding code.
26754         (nios2_legitimize_constant_address): Update call to
26755         nios2_load_pic_address.
26756         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26757         to use temp reg for PIC loading purposes.
26758         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26759         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26760         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26761
26762 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26763
26764         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26765         usage of "the @option{...}".
26766         (-Wopenmp-simd): Likewise.
26767         (-fsanitize-recover): Likewise.
26768         (-fsanitize-undefined-trap-on-error): Likewise.
26769         (-flto): Likewise.
26770         (tracer-dynamic-coverage-feedback): Likewise.
26771         (reorder-block-duplicate-feedback): Likewise.
26772         (loop-unroll-jam-size): Likewise.
26773         (-B): Likewise.
26774         (-I-): Likewise.
26775         (-mabs=legacy): Likewise.
26776         (-mupper-regs-df): Likewise.
26777         (-mupper-regs-sf): Likewise.
26778         (-mpointers-to-nested-functions): Likewise.
26779
26780 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26781
26782         * doc/extend.texi (Cilk Plus Builtins): Add markup.
26783
26784 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26785
26786         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26787         additional index entries and cross-references.
26788         (-fchkp-check-incomplete-type): Likewise.
26789         (-fchkp-first-field-has-own-bounds): Likewise.
26790         (-fchkp-narrow-to-innermost-array): Likewise.
26791         (-fchkp-use-fast-string-functions): Likewise.
26792         (-fchkp-use-nochk-string-functions): Likewise.
26793         (-fchkp-use-static-const-bounds): Likewise.
26794         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26795         (-fchkp-instrument-marked-only): Likewise.
26796         (-fchkp-use-wrappers): Likewise.
26797         (-static-libmpx): Likewise.
26798         (-static-libmpxwrappers): Likewise.
26799         * doc/extend.texi (bnd_legacy): Likewise.
26800         (bnd_instrument): Likewise.
26801         (bnd_variable_size): Likewise.
26802         (Pointer Bounds Checker builtins): Likewise.
26803
26804 2015-03-21  Tom de Vries  <tom@codesourcery.com>
26805
26806         PR tree-optimization/65458
26807         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26808         * cgraph.h (cgraph_node): Add parallelized_function field.
26809         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26810         (input_overwrite_node): Read parallelized_function field.
26811         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26812         parallelized_function on cgraph_node for child_fn.
26813         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26814         Remove include of gt-tree-parloops.h.
26815         (parallelized_functions): Remove static variable.
26816         (parallelized_function_p): Rewrite using parallelized_function field of
26817         cgraph_node.
26818         (create_loop_fn): Remove adding to parallelized_functions.
26819         * Makefile.in (GTFILES): Remove tree-parloops.c
26820
26821 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
26822
26823         PR rtl-optimization/64366
26824         * lra.c (lra_update_insn_regno_info): Consider regs in
26825         CALL_INSN_FUNCTION_USAGE memory.
26826
26827 2015-03-20  Richard Biener  <rguenther@suse.de>
26828
26829         PR middle-end/64715
26830         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26831         for type comparison and gcc_checking_assert.
26832         (chrec_fold_plus_poly_poly): Likewise.
26833         (chrec_fold_multiply_poly_poly): Likewise.
26834         (chrec_convert_1): Likewise.
26835         * gimplify.c (gimplify_expr): Remove premature folding of
26836         &X + CST to &MEM[&X, CST].
26837
26838 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26839
26840         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26841         already is final.
26842         (ipa_inline): Recompute inline_failed codes.
26843         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26844         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26845         CIF_FINAL_ERROR.
26846
26847 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
26848
26849         PR rtl-optimization/60851
26850         * recog.c (constrain_operands): Accept a pseudo register before reload
26851         for LRA enabled targets.
26852
26853 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
26854
26855         PR target/65240
26856         * config/rs6000/predicates.md (easy_fp_constant): Remove special
26857         -ffast-math handling that kept non-0 constants live in the RTL
26858         until reload.  Remove logic testing the number of instructions it
26859         took to create a constant in a GPR that was never used, due to a
26860         test for soft-float earlier.
26861         (memory_fp_constant): Delete, no longer used.
26862
26863         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26864         alternatives for loading non-0 constants into GPRs for hard
26865         floating point that is no longer needed due to changes in
26866         easy_fp_constant.  Add support for loading 0.0 into GPRs.
26867         (mov<mode>_hardfloat32): Likewise.
26868         (mov<mode>_hardfloat64): Likewise.
26869         (mov<mode>_64bit_dm): Likewise.
26870         (movtd_64bit_nodm): Likewise.
26871         (pre-reload move FP constant define_split): Delete define_split,
26872         since it is no longer used.
26873         (extenddftf2_internal): Remove GHF constraints that are not valid
26874         for extenddftf2.
26875
26876 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
26877
26878         PR rtl-optimization/63491
26879         * lra-constraints.c (check_and_process_move): Use src instead of
26880         sreg.  Remove some dead code.
26881
26882 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
26883
26884         PR ipa/65380
26885         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26886         (sem_variable::merge): Likewise.
26887
26888 2015-03-19  Martin Liska  <mliska@suse.cz>
26889
26890         PR ipa/65465
26891         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26892         all fields of cgraph_thunk_info.
26893
26894 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
26895
26896         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26897         clone instrumented thunks.
26898
26899 2015-03-19  Richard Biener  <rguenther@suse.de>
26900
26901         Revert
26902         2015-03-10  Richard Biener  <rguenther@suse.de>
26903
26904         PR middle-end/63155
26905         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26906         * tree-ssa-coalesce.c: Include timevar.h.
26907         (attempt_coalesce): Handle graph being NULL.
26908         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26909         Split out abnormal coalescing to ...
26910         (perform_abnormal_coalescing): ... this function.
26911         (coalesce_ssa_name): Perform abnormal coalescing without computing
26912         live/conflict.
26913         (verify_ssa_coalescing_worker): New function.
26914         (verify_ssa_coalescing): Likewise.
26915
26916 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26917             Jakub Jelinek  <jakub@redhat.com>
26918
26919         PR sanitizer/65400
26920         * tsan.c (instrument_gimple): Clear tail call flag on
26921         calls.
26922
26923 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
26924
26925         PR sanitizer/65400
26926         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26927         call in the return bb.
26928         (find_split_points): Add RETURN_BB argument, don't call
26929         find_return_bb.
26930         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
26931         if true append TSAN_FUNC_EXIT internal call after the call to
26932         the split off function.
26933         (execute_split_functions): Call find_return_bb here.
26934         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26935         Adjust find_split_points and split_function calls.
26936
26937 2015-03-18  DJ Delorie  <dj@redhat.com>
26938
26939         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26940         (iorqi3_virt): Likewise.
26941
26942 2015-03-18  Tom de Vries  <tom@codesourcery.com>
26943
26944         * tree-parloops.c (parallelize_loops): Make static.
26945         * tree-parloops.h (parallelize_loops): Remove extern declaration.
26946
26947 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
26948
26949         PR middle-end/64491
26950         Revert:
26951         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
26952
26953         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
26954         condition would be removed due to undefined behaviour.
26955
26956 2015-03-18  Martin Liska  <mliska@suse.cz>
26957
26958         PR ipa/65432
26959         * cgraph.c (cgraph_node::get_create): Remove unnecessary
26960         xstrdup_for_dump wrapper.
26961         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
26962         sem_item::name.
26963         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
26964         with xstrdup_for_dump.
26965         (sem_variable::equals): Likewise.
26966         (sem_item_optimizer::read_section): Use symtab_node::name instead of
26967         sem_item::name.
26968         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
26969         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
26970         symtab_node::asm_name with xstrdup_for_dump.
26971         (congruence_class::dump): Use symtab_node::name instead of
26972         sem_item::name.
26973         * ipa-icf.h (symtab_node::name): Remove.
26974         (symtab_node::asm_name): Likewise.
26975
26976 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26977
26978         PR tree-optimization/65450
26979         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
26980         function.
26981         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
26982         it instead of duplicate_ssa_name_ptr_info.
26983
26984         PR target/65222
26985         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
26986
26987 2015-03-18  Richard Biener  <rguenther@suse.de>
26988
26989         * tree-data-ref.h (struct access_matrix): Remove.
26990         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
26991         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
26992         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
26993         (am_vector_index_for_loop): Likewise.
26994         (struct data_reference): Remove access_matrix member.
26995         (DR_ACCESS_MATRIX): Remove.
26996         (lambda_vector_new): Add comment.
26997         (lambda_matrix_new): Use XOBNEWVEC.
26998
26999 2015-03-18  Richard Biener  <rguenther@suse.de>
27000
27001         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27002         (pass_ch::execute): Cleanup the CFG only if we did sth.
27003         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27004
27005 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27006
27007         * expmed.c (synth_mult): Use std::swap instead of manually
27008         swapping algorithms.
27009
27010 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
27011
27012         PR target/65078
27013         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27014
27015 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
27016
27017         PR target/65296
27018         * config/avr/avr.opt (-nodevicelib): New option.
27019         * doc/invoke.texi (AVR Options): Document it.
27020         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27021         libgcc.a, libc.a, libm.a.
27022         * config/avr/specs.h: Same.
27023         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27024         which don't (directly) depend on the device.  Print more help.
27025         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27026         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27027         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27028         case of an error.
27029         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27030         for specs file name.
27031         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27032         * config/avr/avr-mcus.def: Adjust initializers and comments.
27033
27034 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
27035
27036         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27037         DECL_ONE_ONLY to check if decl is one only.
27038         * ipa-split.c (consider_split): Limit splitt of one only functions.
27039
27040 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
27041
27042         PR tree-optimization/65427
27043         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27044         functions.
27045         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27046
27047 2015-03-16  Marek Polacek  <polacek@redhat.com>
27048
27049         * cgraph.h (add_new_static_var): Remove declaration.
27050         * varpool.c (add_new_static_var): Remove function.
27051
27052 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
27053
27054         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27055         instead of vec<tree> * with vec_alloc and release for args.
27056         Adjust all users.
27057
27058         PR middle-end/65431
27059         * omp-low.c (delete_omp_context): Only splay_tree_delete
27060         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27061         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
27062
27063 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
27064
27065         PR sanitizer/64820
27066         * cfgexpand.c (align_base): New function.
27067         (alloc_stack_frame_space): Call it.
27068         (expand_stack_vars): Align prev_frame to be sure
27069         data->asan_vec elements aligned properly.
27070
27071 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
27072
27073         PR middle-end/65409
27074         * expr.c (store_field): Do not do a direct block copy if the source is
27075         a PARALLEL with BLKmode.
27076
27077 2015-03-16  Tom de Vries  <tom@codesourcery.com>
27078
27079         PR middle-end/65414
27080         Revert:
27081         2015-03-12  Tom de Vries  <tom@codesourcery.com>
27082
27083         PR rtl-optimization/64895
27084         * lra-lives.c (check_pseudos_live_through_calls): Use
27085         actual_call_used_reg_set instead of call_used_reg_set, if available.
27086
27087 2015-03-16  Alan Modra  <amodra@gmail.com>
27088
27089         PR target/63150
27090         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27091         Modify Z->r bswapdi splitter to use dest in place of scratch.
27092         In r->Z and Z->r bswapdi splitter rename word_high, word_low
27093         to word1, word2 and rearrange logic to suit.
27094         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27095         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
27096         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27097         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
27098         early clobber.
27099
27100 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
27101
27102         PR tree-optimization/65369
27103         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27104         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27105         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27106
27107         PR tree-optimization/65418
27108         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27109         are casts in the first PLUS_EXPR operand, ensure tbias and
27110         *totallowp are in the inner type.
27111
27112         PR rtl-optimization/65401
27113         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27114         argument.  If true, adjust_address_nv of x with big-endian
27115         correction for the mode widening to GET_MODE (y).
27116         (make_field_assignment): Don't do MEM mode widening here.
27117         Use MEM_P instead of GET_CODE == MEM.
27118
27119 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
27120
27121         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27122         the external decls.
27123
27124 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27125
27126         PR target/64600
27127         * config/arm/arm.c (arm_gen_constant, AND case): Use
27128         ARM_SIGN_EXTEND when constructing AND mask.
27129
27130 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27131
27132         * graph.c (print_graph_cfg): Make function names visible and append
27133         parenthesis to it.  Also make groups of basic blocks belonging to the
27134         same function visible.
27135
27136 2015-03-12  Richard Biener  <rguenther@suse.de>
27137
27138         PR middle-end/44563
27139         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27140         to avoid quadratic behavior with inline expansion splitting blocks.
27141         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27142         with the successor if the predecessor will be merged with it.
27143         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27144         entry block with its successor.
27145
27146 2015-03-13  Richard Biener  <rguenther@suse.de>
27147
27148         PR middle-end/44563
27149         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27150         (cleanup_tree_cfg_1): Do not call it.
27151         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27152         (fixup_noreturn_call): Mark the stmt as control altering.
27153         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27154         here.
27155         (pass_data_fixup_cfg): Produce a dump file.
27156         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27157         (need_noreturn_fixup): New global.
27158         (pass_dominator::execute): Fixup queued noreturn calls.
27159         (optimize_stmt): Queue calls that became noreturn for fixup.
27160         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27161         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27162         (el_to_fixup): New global.
27163         (eliminate_dom_walker::before_dom_childre): Queue calls that
27164         became noreturn for fixup.
27165         (eliminate): Fixup queued noreturn calls.
27166         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27167         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27168         (substitute_and_fold_dom_walker::before_dom_children): Queue
27169         alls that became noreturn for fixup.
27170         (substitute_and_fold): Fixup queued noreturn calls.
27171
27172 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
27173
27174         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27175         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27176         are building; for methods check ODR type of class they belong to if
27177         they may lead to a polymorphic call.
27178         (sem_function::compare_polymorphic_p): Be bit smarter about testing
27179         when function may lead to a polymorphic call.
27180         (sem_function::compare_type_list): Remove.
27181         (sem_variable::equals): Update use of compatible_types_p.
27182         (sem_variable::parse_tree_refs): Remove.
27183         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27184         cdtor.
27185         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27186         matching here.
27187         (func_checker::compatible_polymorphic_types_p): Break out from ...
27188         (unc_checker::compatible_types_p): ... here.
27189         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27190         Declare.
27191         (unc_checker::compatible_types_p): Update.
27192         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27193         Remove.
27194
27195 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27196
27197         PR rtl-optimization/65235
27198         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27199         When first element of vec_concat is const_int, calculate its size
27200         using second element.
27201
27202 2015-03-12  Richard Biener  <rguenther@suse.de>
27203
27204         PR middle-end/65270
27205         * fold-const.c (operand_equal_p): Fix ordering of resetting
27206         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27207
27208 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27209
27210         * config/s390/s390.c (s390_reorg): Move code to output nops after label
27211         to s390_reorg ().
27212         (s390_asm_output_function_label): Likewise.
27213         * config/s390/s390.c (s390_asm_output_function_label):
27214         Fix function label alignment with -mhtopatch.
27215         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27216         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27217         ("nop_2_byte"): New define_insn.
27218         ("nop_4_byte"): Likewise.
27219         ("nop_6_byte"): Likewise.
27220         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27221         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27222
27223 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27224
27225         PR target/65103
27226         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27227         register.
27228
27229 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27230
27231         PR target/65044
27232         * toplev.c (process_options): Restrict Pointer Bounds Checker
27233         usage with Address Sanitizer.
27234
27235 2015-03-12  Richard Biener  <rguenther@suse.de>
27236
27237         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27238         to split on.
27239         * omp-low.c (expand_omp_taskreg): Split block before removing
27240         the stmt.
27241         (expand_omp_target): Likewise.
27242         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27243         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27244         stmt to split_block.
27245
27246 2015-03-12  Tom de Vries  <tom@codesourcery.com>
27247
27248         PR rtl-optimization/64895
27249         * lra-lives.c (check_pseudos_live_through_calls): Use
27250         actual_call_used_reg_set instead of call_used_reg_set, if available.
27251
27252 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27253
27254         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
27255         (cgraph_node::remove): Likewise.
27256         (cgraph_node::get_untransformed_body): Likewise.
27257         * varpool.c (varpool_node::remove): Likewise.
27258         (varpool_node::get_constructor): Add sanity check.
27259
27260 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
27261
27262         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
27263         old GCC versions.
27264         (-fabi-compat-version): Likewise.
27265         (-ffriend-injection): Likewise.
27266         (-Wdeclaration-after-statement): Likewise.
27267         (-fomit-frame-pointer): Likewise.
27268         (-ftree-coalesce-inlined-vars): Likewise.
27269         (-fvisibility=): Likewise.
27270         * doc/extend.texi (Typeof): Likewise.
27271         (Zero Length): Likewise.
27272         (Escaped Newlines): Likewise.
27273         (Compound Literals): Likewise.
27274         (Function Attributes): Likewise.
27275         (Label Attributes): Likewise.
27276         (Type Attributes): Likewise.
27277         (Function Names): Likewise.
27278         (Other Builtins): Likewise.
27279         (Function Specific Option Pragmas): Likewise.
27280         (C++ Interface): Likewise.
27281
27282 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
27283
27284         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27285
27286 2015-03-11  Marek Polacek  <polacek@redhat.com>
27287
27288         PR tree-optimization/65388
27289         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27290
27291 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27292
27293         PR target/65296
27294         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27295         * configure: Regenerate.
27296         * config.in: Regenerate.
27297         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27298         [-mn-flash]: Document it.
27299         [__AVR_ARCH__]: Document avrtiny.
27300
27301         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27302         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27303         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27304
27305 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27306
27307         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27308
27309 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27310
27311         PR target/65242
27312         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27313         allow reloads of PLUS in floating point/VSX registers.
27314
27315 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
27316
27317         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27318         crypto_sha256_fast.
27319         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27320
27321 2015-03-11  Richard Biener  <rguenther@suse.de>
27322
27323         PR tree-optimization/65310
27324         * tree-sra.c (build_ref_for_offset): Also preserve larger
27325         alignment.
27326
27327 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
27328
27329         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27330
27331 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27332
27333         PR target/65368
27334         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27335         new define_expand.
27336         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27337
27338 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27339
27340         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27341         (sem_function::equals_wpa): ... here.
27342
27343 2015-03-10  Marek Polacek  <polacek@redhat.com>
27344             Jakub Jelinek  <jakub@redhat.com>
27345
27346         PR sanitizer/65367
27347         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27348         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
27349         separately.
27350
27351 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27352
27353         PR target/65286
27354         * config/rs6000/t-linux: For powerpc64* target set
27355         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27356
27357 2015-03-10  Richard Biener  <rguenther@suse.de>
27358
27359         PR middle-end/44563
27360         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27361         for redirect_all_calls.
27362
27363 2015-03-10  Marek Polacek  <polacek@redhat.com>
27364
27365         * gdbinit.in (pcfun): Define and document.
27366
27367 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
27368
27369         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27370         of libgomp-plugin.h.
27371         (find_target_compiler): Support a case when the path to gcc is
27372         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27373         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27374         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27375         libgomp-plugin.h.
27376         (main): Use GCC_INSTALL_NAME as target_driver_name.
27377         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27378         define.
27379         (mkoffload.o): Remove obsolete include path and defines.
27380         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27381
27382 2015-03-10  Richard Biener  <rguenther@suse.de>
27383
27384         PR middle-end/63155
27385         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27386         * tree-ssa-coalesce.c: Include timevar.h.
27387         (attempt_coalesce): Handle graph being NULL.
27388         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27389         Split out abnormal coalescing to ...
27390         (perform_abnormal_coalescing): ... this function.
27391         (coalesce_ssa_name): Perform abnormal coalescing without computing
27392         live/conflict.
27393         (verify_ssa_coalescing_worker): New function.
27394         (verify_ssa_coalescing): Likewise.
27395
27396 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27397
27398         PR target/65296
27399         * config.gcc (extra_options) [avr]: Remove.
27400         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27401         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27402         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27403
27404         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27405         (-mmcu=): Add Var and MissingArgError properties.
27406         (-march=): Remove.
27407         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27408         * config/avr/t-multilib: Regenerate.
27409         * config/avr/specs.h: New file.
27410         * config/avr/driver-avr.c: New file.
27411         * config/avr/genopt.sh: Remove file.
27412         * config/avr/avr-tables.opt: Remove file.
27413         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27414         * config/avr/avr-c.c: Same.
27415         * avr-arch.h: Same.
27416         (avr_current_device): Remove proto.
27417         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27418         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27419         (EXTRA_SPEC_FUNCTIONS): Define.
27420         (avr_devicespecs_file): New specs function proto.
27421         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27422         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27423         (avr_current_device): Remove definition and usage.
27424         (avr_set_core_architecture): New static function.
27425         (avr_option_override): Use it.
27426         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27427         (mcu_name): New static array.
27428         (comparator, avr_archs_str, avr_mcus_str): New static functions.
27429         (avr_inform_devices, avr_inform_core_architectures): New functions.
27430         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27431         (avrlibc.h) [WITH_AVRLIBC]: Include.
27432         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27433         (print_mcu): Rewrite from scratch.
27434         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27435         Forward to avr-specific specs defined in device-specs file.
27436         * config/avr/t-avr (driver-avr.o): New rule.
27437         (avr-devices.o): Depend on avr-arch.h.
27438         (avr-mcus): No more depend on avr-tables.opt.
27439         (avr-tables.opt): Remove rule.
27440         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27441
27442 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27443
27444         * c-family/c.opt (fchkp-use-wrappers): New.
27445         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27446         (chkp_wrap_function): New.
27447         (chkp_build_instrumented_fndecl): Support wrapped
27448         functions.
27449         * doc/invoke.texi (-fcheck-pointer-bounds): New.
27450         (-fchkp-check-incomplete-type): New.
27451         (-fchkp-first-field-has-own-bounds): New.
27452         (-fchkp-narrow-bounds): New.
27453         (-fchkp-narrow-to-innermost-array): New.
27454         (-fchkp-optimize): New.
27455         (-fchkp-use-fast-string-functions): New.
27456         (-fchkp-use-nochk-string-functions): New.
27457         (-fchkp-use-static-bounds): New.
27458         (-fchkp-use-static-const-bounds): New.
27459         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27460         (-fchkp-check-read): New.
27461         (-fchkp-check-write): New.
27462         (-fchkp-store-bounds): New.
27463         (-fchkp-instrument-calls): New.
27464         (-fchkp-instrument-marked-only): New.
27465         (-fchkp-use-wrappers): New.
27466         (-static-libmpx): New.
27467         (-static-libmpxwrappers): New.
27468
27469 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27470
27471         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27472         (CHKP_SPEC): Add wrappers library.
27473         * c-family/c.opt (static-libmpxwrappers): New.
27474
27475 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27476
27477         * config/i386/linux-common.h (LIBMPX_LIBS): New.
27478         (LIBMPX_SPEC): New.
27479         (CHKP_SPEC): New.
27480         * gcc.c (CHKP_SPEC): New.
27481         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27482         * c-family/c.opt (static-libmpx): New.
27483
27484 2015-03-10  Richard Biener  <rguenther@suse.de>
27485
27486         PR middle-end/44563
27487         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27488         for compare_type.
27489         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27490         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27491         (cgraph_add_edge_to_call_site_hash): Likewise.
27492         (cgraph_node::get_edge): Likewise.
27493         (cgraph_edge::set_call_stmt): Likewise.
27494         (cgraph_edge::remove_caller): Likewise.
27495
27496 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
27497
27498         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27499         (callee_saved_gpr_regs_size): ... this.
27500         (callee_saved_regs_first_regno): Rename to ...
27501         (callee_saved_first_gpr_regno): ... this.
27502         (callee_saved_regs_last_regno) Rename to ...
27503         (callee_saved_last_gpr_regno): ... this.
27504         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27505         variables.
27506         (nds32_initial_elimination_offset): Likewise.
27507         (nds32_expand_prologue): Likewise.
27508         (nds32_expand_epilogue): Likewise.
27509         (nds32_expand_prologue_v3push): Likewise.
27510         (nds32_expand_epilogue_v3pop): Likewise.
27511         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27512         Adjust renamed variables.
27513         (nds32_output_stack_pop): Likewise.
27514
27515 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27516
27517         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27518         code in comment.
27519
27520 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27521
27522         PR rtl-optimization/65321
27523         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27524         than shift mode.
27525         * var-tracking.c (use_narrower_mode): Likewise.
27526
27527 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27528
27529         PR tree-optimization/65355
27530         * varasm.c (notice_global_symbol): Do not produce RTL.
27531         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27532         anchor.
27533         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27534         check for section anchors.
27535
27536 2015-03-10  Alan Modra  <amodra@gmail.com>
27537
27538         PR target/65286
27539         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27540         to be single-arch by default.  Set cpu_is_64bit for powerpc64
27541         given --with-cpu=native.
27542         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27543         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27544         and powerpc64le.
27545         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27546         rs6000_isa_flags rather than TARGET_64BIT.
27547
27548 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
27549             Kaz Kojima  <kkojima@gcc.gnu.org>
27550
27551         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27552
27553 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
27554
27555         PR lto/65361
27556         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27557         on a TREE_BINFO, instead use BINFO_TYPE.
27558
27559 2015-03-09  Richard Biener  <rguenther@suse.de>
27560
27561         PR middle-end/65270
27562         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27563         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27564         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
27565         of that.  When comparing dereferences compare alignment.
27566         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27567
27568 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27569
27570         * ipa-inline-analysis.c (check_callers): Check
27571         node->can_remove_if_no_direct_calls_and_refs_p.
27572         (growth_likely_positive): Reorganize to call
27573         can_remove_if_no_direct_calls_p later.
27574         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27575         will_be_removed_from_program_if_no_direct_calls_p): Add
27576         will_inline parameter.
27577         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27578         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27579         Handle inliner case correctly.
27580
27581 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27582
27583         PR tree-optimization/63743
27584         * cfgexpand.c (reorder_operands): Also reorder if only second operand
27585         had its definition forwarded by TER.
27586
27587 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27588
27589         PR lto/65316
27590         * ipa-utils.h (types_odr_comparable): Add strict argument.
27591         * ipa-devirt.c: Fix whitespace;
27592         (odr_hasher): Remove.
27593         (odr_name_hasher, odr_vtable_hasher): New hashers.
27594         (can_be_name_hashed_p): New predicate.
27595         (hash_type_name): remove.
27596         (hash_odr_name): New.
27597         (odr_name_hasher::hash): new.
27598         (can_be_vtable_hashed_p): New.
27599         (hash_odr_vtable): New.
27600         (odr_vtable_hasher::hash): New.
27601         (types_same_for_odr): Add strict parameter.
27602         (types_odr_comparable): Likewise.
27603         (odr_name_hasher::equal): New.
27604         (odr_vtable_hasher::equal): New.
27605         (odr_name_hasher::remove): New.
27606         (odr_hash_type): Change to hash_table<odr_name_hasher>.
27607         (odr_vtable_hash_type): New.
27608         (odr_vtable_hash): New.
27609         (odr_subtypes_equivalent_p): Do strict comparsion.
27610         (add_type_duplicate): Merge type names; cleanup; avoid type
27611         duplicates.
27612         (register_odr_type): Initialize vtable hash.
27613         (build_type_inheritance_graph): Likewise
27614         (get_odr_type): Reorg to use two hashes.
27615         (dump_possible_polymorphic_call_targets): Move sanity check after debug
27616         output.
27617         (ipa_devirt): Dump type_inheritance_graph.
27618         (types_same_for_odr): Add strict mode.
27619
27620 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27621
27622         PR ipa/65334
27623         * cgraph.h (symtab_node): Add definition_alignment,
27624         can_increase_alignment_p and increase_alignment.
27625         * symtab.c (symtab_node::can_increase_alignment_p,
27626         increase_alignment_1, symtab_node::increase_alignment,
27627         symtab_node::definition_alignment): New.
27628         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27629         can_increase_alignment_p.
27630         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27631         * tree-vect-stmts.c (ensure_base_align): Likewise.
27632         * varasm.c (function_section_1): Use definition_alignment.
27633         (assemble_start_function): Likewise.
27634         (emit_local): likewise.
27635         (build_constant_desc): Likewsie.
27636         (output_constant_def_contents): Likewise.
27637         (place_block_symbol): Likewise.
27638         (output_object_block): Likewise.
27639
27640 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27641
27642         PR ipa/65316
27643         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27644         when outputting debug.
27645
27646 2015-03-07  Marek Polacek  <polacek@redhat.com>
27647             Martin Uecker  <uecker@eecs.berkeley.edu>
27648
27649         PR sanitizer/65280
27650         * doc/invoke.texi: Update description of -fsanitize=bounds.
27651
27652 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
27653
27654         * tree-ssa-phiopt.c (neg_replacement): Remove.
27655         (tree_ssa_phiopt_worker): Remove negate optimization.
27656
27657 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27658
27659         PR ipa/65302
27660         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27661
27662 2015-03-06  Richard Biener  <rguenther@suse.de>
27663
27664         PR middle-end/64928
27665         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27666         and liveout_obstack members.
27667         (calculate_live_on_exit): Remove.
27668         (calculate_live_ranges): Change declaration.
27669         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27670         (new_tree_live_info): Adjust.
27671         (calculate_live_ranges): Delete livein when not wanted.
27672         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27673         Deal with partly deleted live info.
27674         (loe_visit_block): Remove temporary bitmap by using
27675         bitmap_ior_and_compl_into.
27676         (live_worklist): Adjust accordingly.
27677         (calculate_live_on_exit): Make static.
27678         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27679         we do not need livein.
27680
27681 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
27682
27683         * real.c (real_from_string): Fix typo in assertion.
27684
27685 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
27686
27687         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27688         the patch.
27689
27690 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27691
27692         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27693
27694 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
27695
27696         PR target/64342
27697         * lra-assigns.c (find_hard_regno_for): Rename to
27698         find_hard_regno_for_1.  Add a new parameter.
27699         (find_hard_regno_for): New function using find_hard_regno_for_1.
27700
27701 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27702
27703         PR rtl-optimization/65067
27704         * expmed.c (store_bit_field, extract_bit_field): Reworked the
27705         strict volatile bitfield handling.
27706
27707 2015-03-05  Martin Liska  <mliska@suse.cz>
27708
27709         PR ipa/65318
27710         * ipa-icf.c (sem_variable::equals): Compare variables types.
27711
27712 2015-03-05  Richard Henderson  <rth@redhat.com>
27713
27714         PR target/65121
27715         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27716         correctly check weak symbol binding.
27717
27718 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
27719
27720         PR middle-end/65315
27721         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27722         needed alignment.
27723
27724 2015-03-05  Martin Liska  <mliska@suse.cz>
27725
27726         * ipa-inline.c (inline_small_functions): Set default value to
27727         prevent warning during bootstrap.
27728         * tree.h: Add pragma guard that ignores false positives during
27729         bootstrap.
27730
27731 2015-03-05  Richard Biener  <rguenther@suse.de>
27732
27733         PR tree-optimization/65310
27734         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27735         Properly preserve alignment of the base of the access.
27736
27737 2015-03-05  Richard Biener  <rguenther@suse.de>
27738
27739         PR ipa/65270
27740         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27741         Compare dependence info.
27742
27743 2015-03-05  Richard Biener  <rguenther@suse.de>
27744
27745         PR middle-end/65233
27746         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27747         tree-into-ssa.h.
27748         (walk_ssa_copies): Revert last chage.  Instead do not walk
27749         SSA names registered for SSA update.
27750
27751 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27752
27753         PR ipa/65270
27754         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27755         vtable references for their containing type.
27756         (sem_function::equals_wpa): Compare TYPE_RESTRICT
27757         and type attributes.
27758
27759 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
27760
27761         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27762         before negating it.
27763         * stor-layout.c (finalize_record_size): Revert latest change.
27764
27765 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
27766
27767         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27768
27769 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27770
27771         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27772         for correct comdat handling.
27773         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27774         Likewise.
27775         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27776         (used_from_object_file_p_worker): Remove.
27777         (cgraph_node::only_called_directly_or_alised): Add
27778         used_from_object_file_p.
27779         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27780         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27781         can_remove_if_no_direct_calls_and_refs_p.
27782
27783 2015-03-04  Nick Clifton  <nickc@redhat.com>
27784
27785         * config/rl78/rl78.h (enum reg_class): Remove real registers from
27786         General register class.
27787         * config/rl78/rl78-real.md: Replace general register constraints
27788         with real+virtual register constraints.
27789
27790 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27791
27792         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27793         from checking for -mhtm option.
27794
27795 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27796
27797         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27798         (struct ipa_sra_check_caller_data): Add has_thunk field.
27799         (ipa_sra_check_caller): Check for thunk.
27800         (ipa_sra_preliminary_function_checks): Give up on function with
27801         thunks.
27802         (ipa_early_sra): Use call_for_symbol_and_aliases.
27803
27804 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
27805
27806         PR target/65249
27807         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27808         called for __stack_chk_guard symbol.
27809
27810 2015-03-03  DJ Delorie  <dj@redhat.com>
27811
27812         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27813         inc/dec.
27814         (*addhi3_real): Likewise.
27815         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27816         pattern to match incrementing memory.
27817         * config/rl78/predicates.md (rl78_1_2_operand): New.
27818         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27819         it's the same and only mem.
27820         (rl78_alloc_physical_registers_op2): If there's effectively only
27821         one MEM, transcode it into HL.
27822         (rl78_far_p): Reject addresses that aren't legitimate.
27823
27824 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27825
27826         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27827         negating it.
27828
27829         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27830
27831 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27832
27833         Implement call0 ABI for xtensa
27834         * config/xtensa/constraints.md ("a" constraint): Include stack
27835         pointer in case of call0 ABI.
27836         ("q" constraint): Make empty in case of call0 ABI.
27837         ("D" constraint): Include stack pointer in case of call0 ABI.
27838         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27839         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27840         prototypes.
27841         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27842         variable.
27843         (xtensa_regno_to_class): Make it a local variable in the
27844         function xtensa_regno_to_class.
27845         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27846         macro, function prototype and implementation.
27847         (reg_nonleaf_alloc_order): Make it a local variable in the
27848         function order_regs_for_local_alloc.
27849         (xtensa_conditional_register_usage): New function.
27850         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27851         (xtensa_valid_move): Allow direct moves to stack pointer
27852         register in call0 ABI.
27853         (xtensa_setup_frame_addresses): Only spill register windows in
27854         windowed ABI.
27855         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27856         call0 ABI respectively.
27857         (xtensa_function_arg_1): Only mark a7 register for copying in
27858         windowed ABI.
27859         (xtensa_call_save_reg): New function.
27860         (compute_frame_size): Add space for callee saved register
27861         storage to the frame size in call0 ABI.
27862         (xtensa_expand_prologue): Generate code to set up stack frame
27863         and save callee-saved registers in call0 ABI.
27864         (xtensa_expand_epilogue): New function.
27865         (xtensa_set_return_address): New function.
27866         (xtensa_return_addr): Calculate return address in call0 ABI.
27867         (xtensa_builtin_saveregs): Only mark a7 register for copying and
27868         emit copying code in windowed ABI.
27869         (order_regs_for_local_alloc): Add preferred register allocation
27870         order for non-leaf function in call0 ABI.
27871         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27872         (xtensa_asm_trampoline_template): Add trampoline generation for
27873         call0 ABI.
27874         (xtensa_trampoline_init): Add trampoline initialization for
27875         call0 ABI.
27876         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27877         functions.
27878         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27879         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27880         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27881         ABI call-used registers.
27882         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27883         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27884         call0 ABI.
27885         (REG_CLASS_CONTENTS): Include all registers into the preferred
27886         reload registers set, adjust the set in the
27887         xtensa_conditional_register_usage.
27888         (xtensa_regno_to_class): Drop variable declaration.
27889         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27890         function.
27891         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27892         respectively.
27893         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27894         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27895         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27896         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27897         location in call0 ABI.
27898         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27899         stack adjustment size when handling exception.
27900         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27901         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27902         definitions.
27903         ("return" pattern): Generate ret.n/ret in call0 ABI.
27904         ("epilogue" pattern): Expand epilogue.
27905         ("nonlocal_goto" pattern): Use default in call0 ABI.
27906         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27907         emit eh_set_a0_* depending on ABI.
27908         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27909         ("eh_set_a0_call0", "blockage"): New patterns.
27910
27911 2015-03-03  Martin Liska  <mliska@suse.cz>
27912
27913         PR ipa/65287
27914         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27915
27916 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27917
27918         PR 65138/target
27919         * config/rs6000/rs6000-tables.opt: Regenerate table.
27920
27921 2015-03-03  Renlin Li  <renlin.li@arm.com>
27922
27923         * doc/md.texi (@item ^): Change ? into ^.
27924
27925 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
27926
27927         * doc/tm.texi: Regenerated.
27928
27929 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27930
27931         * builtins.c (expand_builtin_return_addr): Add
27932         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27933         surrounding #ifdef.
27934         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27935         definition to 1.
27936         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27937         Likewise.
27938         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27939         undefined.
27940         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27941         paragraph.
27942
27943 2015-03-03  Martin Jambor  <mjambor@suse.cz>
27944             Eric Botcazou  <ebotcazou@adacore.com>
27945
27946         * tree-sra.c (ipa_sra_check_caller_data): New type.
27947         (has_caller_p): Removed.
27948         (ipa_sra_check_caller): New function.
27949         (ipa_sra_preliminary_function_checks): Use it.
27950
27951 2015-03-03  Martin Liska  <mliska@suse.cz>
27952
27953         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
27954         instead of if branch.
27955
27956 2015-03-03  Martin Liska  <mliska@suse.cz>
27957
27958         PR ipa/65282
27959         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
27960
27961 2015-03-23  Jeff Law  <law@redhat.com>
27962
27963         PR tree-optimization/65241
27964         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
27965         hash table if INSERT is true.
27966
27967 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27968
27969         PR target/65296
27970         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
27971
27972 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27973
27974         PR target/64331
27975         * config/avr/avr.c (context.h, tree-pass.h): Include them.
27976         (avr_pass_data_recompute_notes): New static variable.
27977         (avr_pass_recompute_notes): New class.
27978         (avr_register_passes): New static function.
27979         (avr_option_override): Call it.
27980
27981 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27982
27983         Fix various problems with specs file generation.
27984
27985         PR target/65296
27986         * config.gcc (extra_gcc_objs) [avr]: Remove.
27987         * config/avr/driver-avr.c: Remove file.
27988         * config/avr/t-avr (driver-avr.o): Remove rule.
27989         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
27990         INCLUDES to build.  Depend on TM_H.
27991         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
27992         build warnings.  Fix non-matching types and non-existing %-codes.
27993         (tm.h): Include.
27994         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
27995         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
27996         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
27997         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
27998         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
27999         (LIBGCC_SPEC): Remove definitions.
28000
28001 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
28002
28003         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28004         to create a register in testing mode.
28005
28006 2015-03-03  Martin Liska  <mliska@suse.cz>
28007             Jan Hubicka  <hubicka@ucw.cz>
28008
28009         PR ipa/65263
28010         * cgraph.c (cgraph_node::has_thunk_p): New function.
28011         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28012         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28013         (sem_function::merge): Assert is changed.
28014
28015 2015-03-03  Martin Liska  <mliska@suse.cz>
28016             Martin Jambor  <mjambor@suse.cz>
28017
28018         PR ipa/65087
28019         * ipa-icf.c (sem_item_optimizer::execute): Change function
28020         return value to boolean.
28021         (sem_item_optimizer::merge_classes): Likewise.
28022         (ipa_icf_driver): Return TODO_remove_functions in case there's
28023         a merge operation processed.
28024         * ipa-icf.h: Change function return value to boolean.
28025
28026 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28027
28028         PR 65138/target
28029         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28030         processor type for 64-bit little endian PowerPC.
28031
28032         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28033         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
28034         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
28035         printing built-in mask so it does not pass NULL pointers.
28036
28037         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28038         -mcpu=powerpc64le.
28039
28040 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
28041
28042         PR target/58158
28043         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28044         !ISA_HAS_FP_CONDMOVE.
28045
28046 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
28047
28048         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28049         reload_completed.
28050
28051 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
28052
28053         * doc/invoke.texi (Options for Code Generation Conventions):
28054         Fix URL of DSO paper.
28055
28056 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28057
28058         PR ipa/65130
28059         * ipa-inline.c (check_callers): Looks for recursion.
28060         (inline_to_all_callers): Give up on uninlinable or recursive edges.
28061         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28062         summary of inline clones.
28063         (do_estimate_growth_1): Fix recursion check.
28064
28065 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28066
28067         PR ipa/64988
28068         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28069         comdat groups.
28070
28071 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
28072             Aldy Hernandez  <aldyh@redhat.com>
28073
28074         PR lto/65276
28075         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28076         when checking TYPE_BINFO.
28077
28078 2015-03-02  Richard Biener  <rguenther@suse.de>
28079
28080         PR ipa/65270
28081         * ipa-icf-gimple.c: Include builtins.h.
28082         (func_checker::compare_memory_operand): Compare base alignment.
28083
28084 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28085
28086         PR target/65184
28087         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28088         are never passed by reference.
28089
28090 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28091
28092         PR target/65183
28093         * tree-chkp.c (chkp_check_lower): Don't check against
28094         zero bounds for already instrumented functions.
28095         (chkp_check_upper): Likewise.
28096         (chkp_fini): Clean pass local data to avoid wrong reusage.
28097
28098 2015-02-28  Martin Liska  <mliska@suse.cz>
28099             Jan Hubicka  <hubicka@ucw.cz>
28100
28101         * ipa-icf.c (sem_variable::equals): Improve debug output;
28102         get variable constructor.
28103         (sem_variable::parse): Do not filter out too early; give up on
28104         volatile and register vars.
28105         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28106         variables.
28107         * ipa-icf.h (sem_variable::init): Do not set ctor.
28108         (sem_variable::ctor): Remove.
28109
28110 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
28111
28112         PR middle-end/65233
28113         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28114
28115 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28116
28117         * ipa-icf.c: Include stor-layout.h
28118         (sem_function::compare_cgraph_references): Rename to ...
28119         (sem_item::compare_cgraph_references): ... this one.
28120         (sem_variable::equals_wpa): New function
28121         (sem_variable::equals): Do not check stuff already verified by
28122         equals_wpa.
28123         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28124         * ipa-icf.h (sem_item): Add compare_cgraph_references.
28125         (sem_function): Remove compare_cgraph_references.
28126         (sem_variable): Turns equals_wpa into non-inline.
28127
28128 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28129
28130         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28131         (sem_item::add_expr): New function.
28132         (sem_function::hash_stmt): Handle operands of most statements.
28133         (sem_variable::get_hash): Hash the actual constructor.
28134         * ipa-icf.h (sem_item): Add add_expr.
28135         (sem_function): Update prototype of hash_stmt
28136
28137 2015-02-28  Martin Liska  <mliska@suse.cz>
28138             Jan Hubicka  <hubicka@ucw.cz>
28139
28140         PR ipa/65245
28141         * ipa-icf-gimple.c (func_checker::compare_function_decl):
28142         Remove.
28143         (func_checker::compare_variable_decl): Skip symtab vars.
28144         (func_checker::compare_cst_or_decl): Update.
28145         * ipa-icf.c (sem_function::parse): Do not consider aliases.
28146         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28147         use correct symtab predicates.
28148         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28149         (sem_variable::parse):  Update comment.
28150         (sem_item_optimizer::build_graph): Consider ultimate aliases
28151         for references.
28152
28153 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28154
28155         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28156         of OBJ_TYPE_REF.
28157
28158 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28159
28160         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28161         (sem_variable::merge) Likewise.
28162
28163 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28164
28165         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28166         target; also match flag_ipa_devirt.
28167
28168 2015-03-01  Martin Liska  <mliska@suse.cz>
28169             Jan Hubicka  <hubicka@ucw.cz>
28170
28171         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28172         Validate variable alignment.
28173         * ipa-icf.c (sem_function::equals_private): Be more precise
28174         about non-common function attributes.
28175         (sem_variable::equals): Likewise.
28176
28177 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28178
28179         PR ipa/65237
28180         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28181         across COMDAT group boundary.
28182
28183 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28184
28185         PR ipa/65232
28186         * ipa-icf.c (clear_decl_rtl): New function.
28187         (sem_function::merge): Clear RTL before forming alias.
28188         (sem_variable::merge): Clear RTL before forming alias.
28189
28190 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28191
28192         PR ipa/65236
28193         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28194
28195 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
28196
28197         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28198         to neon_to_gp<q>.
28199
28200 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28201
28202         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28203         a typo in the description.
28204
28205 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28206
28207         PR target/64317
28208         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28209         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28210         * lra-constraints.c: Include "params.h".
28211         (EBB_PROBABILITY_CUTOFF): Use
28212         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28213         (lra_inheritance): Use '<' instead of '<=' for
28214         EBB_PROBABILITY_CUTOFF.
28215         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28216         Document change.
28217
28218 2015-02-27  Martin Liska  <mliska@suse.cz>
28219
28220         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28221         vector length condition.
28222
28223 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
28224
28225         * doc/extend.texi (x86 transactional memory intrinsics):
28226         Reorganize discussion of _xbegin.  Clarify that the return
28227         value is a bit mask.  Expand example and move to end of section.
28228
28229 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28230             Aldy Hernandez  <aldyh@redhat.com>
28231
28232         PR rtl-optimization/65220
28233         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28234
28235 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28236
28237         PR target/65032
28238         * lra-remat.c (update_scratch_ops): New.
28239         (do_remat): Call it.
28240         * lra.c (lra_register_new_scratch_op): New. Take code from ...
28241         (remove_scratches): ... here.
28242         * lra-int.h (lra_register_new_scratch_op): New prototype.
28243
28244 2015-02-27  Marek Polacek  <polacek@redhat.com>
28245
28246         PR c/65040
28247         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28248         -Wformat-signedness anymore.
28249
28250 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28251
28252         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
28253         function.
28254         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
28255
28256 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28257
28258         * config/s390/s390.c (enum s390_builtin):
28259         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
28260         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
28261         (s390_init_builtins): Generate new builtin functions.
28262         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
28263         (s390_sfpc, s390_efpc): New pattern definitions.
28264
28265 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28266
28267         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
28268         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
28269         (s390_builtin_decls): New array.
28270         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
28271         (s390_builtin_decl): New function.
28272         (TARGET_BUILTIN_DECL): Define macro.
28273
28274 2015-02-27  Richard Biener  <rguenther@suse.de>
28275
28276         PR middle-end/63175
28277         * builtins.c (get_object_alignment_2): Make sure to re-apply
28278         the ANDed mask after recursing to its operand gets us a new
28279         misalignment bit position.
28280
28281 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
28282             Martin Liska  <mliska@suse.cz>
28283
28284         PR bootstrap/65150
28285         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28286         Use address_matters_p.
28287         (redirect_all_callers, set_addressable): New functions.
28288         (sem_function::merge): Reorganize and fix merging issues.
28289         (sem_variable::merge): Likewise.
28290         (sem_variable::compare_sections): Remove.
28291         * common.opt (fmerge-all-constants, fmerge-constants): Remove
28292         Optimization flag.
28293         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28294         redirect them.
28295         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28296         decl is used.
28297         (address_matters_1): New function.
28298         (symtab_node::address_matters_p): New function.
28299         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28300         check for merged flag.
28301         * cgraph.h (address_matters_p): Declare.
28302         (symtab_node::address_taken_from_non_vtable_p): Remove.
28303         (symtab_node::address_can_be_compared_p): New method.
28304         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28305         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28306         Remove.
28307         (comdat_can_be_unshared_p_1) Use address_matters_p.
28308         (update_vtable_references): Fix formating.
28309         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28310         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28311         * cgraphclones.c: Preserve merged and icf_merged flags.
28312
28313 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
28314
28315         * doc/extend.texi (Function Attributes): Fix spelling and typos.
28316         (Label Attributes): Likewise.
28317         (Cilk Plus Builtins): Likewise.
28318         (ARC SIMD Built-in Functions): Likewise.
28319         (ARM C Language Extensions (ACLE)): Likewise.
28320         (PowerPC Built-in Functions): Likewise.
28321         (PowerPC Hardware Transactional Memory Built-in Functions):
28322         Likewise.
28323
28324 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28325
28326         PR tree-optimization/65216
28327         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28328         new stmt and new SSA_NAME for lhs whenever the arguments have
28329         changed and weren't just swapped.  Fix comment typo.
28330
28331         PR tree-optimization/65215
28332         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28333         for PDP endian targets.
28334         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28335         Fix up formatting issues.
28336         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
28337         size is smaller than the original, adjust MEM_REF offset by the
28338         difference of sizes.  Use is_gimple_mem_ref_addr instead of
28339         is_gimple_min_invariant test to avoid adding address temporaries.
28340
28341 2015-02-26  Martin Liska  <mliska@suse.cz>
28342             Jan Hubicka  <hubicka@ucw.cz>
28343
28344         PR ipa/64693
28345         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28346         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28347         (sem_item_optimizer::process_cong_reduction): Include division by
28348         sensitive references.
28349         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28350         * ipa-ref.c (ipa_ref::address_matters_p): New function.
28351         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28352
28353 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
28354
28355         PR target/65192
28356         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28357         Remove.
28358         * config/avr/avr.c: Same.
28359         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28360         Refuse any constant address not in 0..0xbf.
28361         * config/avr/avr.md (*mov<mode>, *movsf): Remove
28362         tiny_valid_direct_memory_access_range from insn conditions.
28363         (mov<mode>): Don't special-case expansion of avrtiny addresses.
28364
28365 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
28366
28367         PR target/61142
28368         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28369         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28370         * config/sh/predicates.md (const_logical_operand): New predicate.
28371         * config/sh/sh.md: Add new peephole2 patterns.
28372
28373 2015-02-26  Marek Polacek  <polacek@redhat.com>
28374
28375         PR ipa/65008
28376         * ipa-inline.c (early_inliner): Recompute inline parameters.
28377
28378 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28379
28380         PR target/65171
28381         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28382         instructions with TImode operands are included in the analysis.
28383
28384 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28385
28386         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28387         of an EDGE_FSM_THREAD.
28388
28389 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28390
28391         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28392
28393 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
28394
28395         PR debug/46102
28396         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28397
28398 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28399
28400         PR tree-optimization/65048
28401         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28402         (thread_through_all_blocks): Call valid_jump_thread_path.
28403         Remove invalid FSM jump-thread paths.
28404
28405 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28406
28407         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28408         (ipa_write_optimization_summaries): Likewise.
28409         * tree-streamer.h: Include data-streamer.h.
28410         (streamer_mode_table): Declare extern variable.
28411         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28412         * lto-streamer-out.c (lto_output_init_mode_table,
28413         lto_write_mode_table): New functions.
28414         (produce_asm_for_decls): Call lto_write_mode_table when streaming
28415         offloading LTO.
28416         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28417         (lto_create_simple_input_block): Add mode_table argument to the
28418         lto_input_block constructors.
28419         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28420         Likewise.
28421         * data-streamer-in.c (string_for_index): Likewise.
28422         * ipa-inline-analysis.c (inline_read_section): Likewise.
28423         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28424         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28425         * lto-streamer-in.c (lto_read_body_or_constructor,
28426         lto_input_toplevel_asms): Likewise.
28427         (lto_input_mode_table): New function.
28428         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28429         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28430         Use bp_pack_machine_mode.
28431         * real.h (struct real_format): Add name field.
28432         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28433         (class lto_input_block): Add mode_table member.
28434         (lto_input_block::lto_input_block): Add mode_table_ argument,
28435         initialize mode_table.
28436         (struct lto_file_decl_data): Add mode_table field.
28437         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28438         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28439         unpack_ts_decl_common_value_fields,
28440         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28441         * tree-streamer.c (streamer_mode_table): New variable.
28442         * real.c (ieee_single_format, mips_single_format,
28443         motorola_single_format, spu_single_format, ieee_double_format,
28444         mips_double_format, motorola_double_format,
28445         ieee_extended_motorola_format, ieee_extended_intel_96_format,
28446         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28447         ibm_extended_format, mips_extended_format, ieee_quad_format,
28448         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28449         decimal_single_format, decimal_double_format, decimal_quad_format,
28450         ieee_half_format, arm_half_format, real_internal_format): Add name
28451         field.
28452         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28453
28454 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
28455
28456         PR target/65161
28457         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28458         reordering for selective scheduling.
28459
28460 2015-02-26  Terry Guo  <terry.guo@arm.com>
28461
28462         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28463         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28464         (arm_arch_no_volatile_ce): Declare new global variable.
28465         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28466         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28467         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28468         (TARGET_NO_VOLATILE_CE): New macro.
28469         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28470         volatile memory access in IT block
28471
28472 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28473
28474         PR tree-optimization/61917
28475         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28476         that reduc_def_stmt is null.
28477
28478 2015-02-25  Martin Liska  <mliska@suse.cz>
28479
28480         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28481         hard register variables.
28482
28483 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28484
28485         PR target/64212
28486         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28487         (symtab::noninterposable_alias): Likewise.
28488
28489 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28490
28491         PR target/65167
28492         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28493         bounds registers.
28494         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28495
28496 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
28497
28498         PR target/64997
28499         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28500         as split condition; force split via '#' in output pattern.
28501
28502 2015-02-25  Richard Biener  <rguenther@suse.de>
28503             Kai Tietz  <ktietz@redhat.com>
28504
28505         PR tree-optimization/61917
28506         * tree-vect-loop.c (vectorizable_reduction): Allow
28507         vect_internal_def without reduction to exit graceful.
28508
28509 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28510
28511         PR target/65196
28512         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28513         only with NONDEBUG_INSN_P.
28514
28515 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28516
28517         Use variadic macros with avr-log.c.
28518
28519         * config/avr/avr-protos.h (avr_vdump): New prototype.
28520         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28521         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28522         * config/avr/avr-log.c: Adjust comments.
28523         (avr_vdump): New function.
28524         (avr_vadump): Pass caller as 2nd argument instead of format string.
28525         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28526         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28527
28528 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
28529
28530         PR lto/64374
28531         * target.def (target_option_stream_in): New target hook.
28532         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28533         targetm.target_option.post_stream_in if non-NULL.
28534         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28535         * doc/tm.texi: Updated.
28536         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28537         function.
28538         (TARGET_OPTION_POST_STREAM_IN): Redefine.
28539
28540 2015-02-24  Jeff Law  <law@redhat.com>
28541
28542         PR target/65117
28543         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28544         of operand 0 and operand 2.
28545         (zero_cost_loop_end, loop_end): Similarly.
28546
28547 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
28548
28549         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28550         CXX_MEM_STAT_INFO.
28551
28552 2015-02-24  DJ Delorie  <dj@redhat.com>
28553
28554         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28555         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28556         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28557         instead of hardcoding SImode.
28558
28559 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
28560
28561         * omp-low.c (create_omp_child_function): Tag entrypoint
28562         functions with a special attribute.
28563
28564 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28565
28566         PR target/65058
28567         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28568
28569 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
28570
28571         PR rtl-optimization/65123
28572         * lra-remat.c (operand_to_remat): Check hard regs in insn
28573         definition too.
28574
28575 2015-02-24  Nick Clifton  <nickc@redhat.com>
28576
28577         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28578         to the assembler.
28579
28580 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
28581
28582         PR libgomp/64625
28583         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28584         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28585         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28586         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28587         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28588         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28589         (BUILT_IN_GOACC_PARALLEL): Specify as
28590         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28591         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28592         * builtin-types.def
28593         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28594         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28595         Remove function types.
28596         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28597         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28598         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28599         New function types.
28600
28601 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
28602
28603         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28604
28605 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
28606
28607         PR tree-optimization/65170
28608         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28609         if val[1] < 0, clear also val[2] and return 3.
28610
28611 2015-02-24  Alan Modra  <amodra@gmail.com>
28612
28613         PR target/65172
28614         * config/rs6000/rs6000.c (get_memref_parts): Only return true
28615         when *base is a reg.  Handle nested plus addresses.  Simplify
28616         pre_modify test.
28617
28618 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
28619
28620         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28621         use natural alignment when optimizing for size.
28622
28623 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
28624
28625         PR target/65153
28626         * config/sh/sh.md (movsicc_true+3): Remove peephole.
28627         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28628         * config/sh/sh.c (replace_n_hard_rtx): Remove.
28629
28630 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
28631
28632         PR fortran/63427
28633         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28634         too big for a wide_int.  Implement missing wrapping operation.
28635
28636 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
28637
28638         PR target/65163
28639         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28640         instead of const_int 4294901760.
28641
28642 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
28643
28644         * config/avr/t-avr: Fix typo in comment.
28645
28646 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
28647
28648         * doc/rtl.texi (fma): Clarify documentation.
28649
28650 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
28651
28652         PR debug/58123
28653         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28654         over input_location.
28655
28656 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28657
28658         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28659         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28660         restrict alignments to absolute_biggest_alignment.
28661         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28662         Define.
28663         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28664         * doc/tm.texi: Regenerate.
28665         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28666
28667 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
28668
28669         PR target/64172
28670         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28671
28672 2015-02-20  Richard Biener  <rguenther@suse.de>
28673
28674         PR tree-optimization/65136
28675         * tree-ssa-propagate.c: Include cfgloop.h.
28676         (replace_phi_args_in): Avoid replacing loop latch edge PHI
28677         arguments with constants.
28678
28679 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
28680             Martin Liska  <mliska@suse.cz>
28681
28682         PR target/63892
28683         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28684         don't try to create_thunk if stdarg_p.  If
28685         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28686         redirect_callers if possible.
28687         (sem_item_optimizer::execute): Call unregister_hooks here...
28688         (ipa_icf_driver): ... instead of here.
28689
28690 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28691
28692         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28693         Mark operand 0 as earlyclobber in 2nd alternative.
28694         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28695         Write negated shift amount into QI lowpart operand 0 and use it
28696         in the shift step.
28697         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28698
28699 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28700
28701         * cgraph.h (clone_function_name_1): Declare.
28702         * cgraphclones.c (clone_function_name_1): New function.
28703         (clone_function_name): Use it.
28704         * lto-partition.c: Include "stringpool.h".
28705         (must_not_rename, maybe_rewrite_identifier)
28706         (validize_symbol_for_target): New static functions.
28707         (privatize_symbol_name): Use must_not_rename.
28708         (promote_symbol): Call validize_symbol_for_target.
28709         (lto_promote_cross_file_statics): Likewise.
28710         (lto_promote_statics_nonwpa): Likewise.
28711
28712 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
28713
28714         PR target/64452
28715         * config/avr/avr.md (pushhi_insn): New insn.
28716         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28717
28718 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28719             Jakub Jelinek  <jakub@redhat.com>
28720
28721         * tree-streamer.c (preload_common_nodes): Don't preload
28722         TI_VA_LIST* for offloading.
28723         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28724         in_lto_p.
28725
28726 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
28727
28728         * config/pa/pa.c (pa_emit_move_sequence): Always force
28729         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
28730         note on insn.
28731
28732         * config/pa/pa.c (pa_reloc_rw_mask): New function.
28733         (TARGET_ASM_RELOC_RW_MASK): Define.
28734         (pa_cannot_force_const_mem): Revert previous change.
28735
28736 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
28737             Jan Hubicka  <hubicka@ucw.cz>
28738
28739         PR ipa/65028
28740         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28741         across jump functions.
28742
28743 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
28744
28745         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28746
28747 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
28748
28749         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28750
28751 2015-02-19  Richard Henderson  <rth@redhat.com>
28752
28753         PR middle-end/65074
28754         * varasm.c (default_binds_local_p_2): Don't test node->definition;
28755         test DECL_EXTERNAL independent of symtab_node.
28756
28757 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
28758
28759         PR lto/65012
28760         * varpool.c (varpool_node::get_constructor): Return early
28761         if this->lto_file_data is NULL.
28762
28763 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28764
28765         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28766         (rank_for_schedule_debug): Update.
28767         (ready_sort): Make static.  Move sorting logic to ...
28768         (ready_sort_debug, ready_sort_real): New static functions.
28769         (schedule_block): Sort both debug insns and real insns in preparation
28770         for ready list trimming.  Improve debug output.
28771         * sched-int.h (ready_sort): Remove global declaration.
28772
28773 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
28774
28775         * ipa-icf.c (sem_function::equals_private): Adjust.
28776         (sem_function::bb_dict_test): Take a vec<int> * instead of
28777         auto_vec<int>.
28778         * ipa-icf.h (bb_dict_test): Likewise.
28779
28780 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28781
28782         PR gcov-profile/64634
28783         * tree-eh.c (frob_into_branch_around): Fix up typos
28784         in function comment.
28785         (lower_catch): Put eh_seq resulting from EH lowering of
28786         the cleanup sequence after the cleanup rather than before it.
28787
28788 2015-02-18  Tom de Vries  <tom@codesourcery.com>
28789
28790         * common.opt (fstdarg-opt): New option.
28791         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28792         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28793         (@item -fstdarg-opt): New item.
28794
28795 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28796
28797         PR target/65064
28798         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28799         for common symbols.
28800
28801 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28802
28803         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28804         insn-modes.h.
28805         (ALL_HOST_OBJS): Add mkoffload.o.
28806         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28807
28808 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
28809
28810         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28811         (compare_virtual_tables): Be smarter about skipping typeinfos;
28812         do sane output on virtual table table mismatch.
28813         (warn_odr): Be ready for forward declarations of enums;
28814         output sane info on base mismatch and virtual table mismatch.
28815         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28816         when only one type is polymorphic.
28817         (get_odr_type): Fix hashtable corruption.
28818         (dump_odr_type): Dump mangled names.
28819
28820 2015-02-18  Richard Biener  <rguenther@suse.de>
28821
28822         PR tree-optimization/65063
28823         * tree-predcom.c (determine_unroll_factor): Return 1 if we
28824         have replaced looparound PHIs.
28825
28826 2015-02-18  Martin Liska  <mliska@suse.cz>
28827
28828         * lto-streamer.c (lto_streamer_init): Encapsulate
28829         streamer_check_handled_ts_structures with checking macro.
28830
28831 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28832
28833         PR ipa/65087
28834         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28835         section if !implicit_section.
28836         (cgraph_node::create_version_clone_with_body): Likewise.
28837         * trans-mem.c (ipa_tm_create_version): Likewise.
28838
28839 2015-02-18  Richard Biener  <rguenther@suse.de>
28840
28841         PR tree-optimization/62217
28842         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28843         into BIVs.
28844
28845 2015-02-18  Marek Polacek  <polacek@redhat.com>
28846
28847         PR sanitizer/65081
28848         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28849         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28850         is in range [-16K, -1].  Don't issue run-time error if
28851         (ptr > ptr + offset).
28852
28853 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
28854
28855         * doc/install.texi (nvptx-*-none): New section.
28856         * doc/invoke.texi (Nvidia PTX Options): Likewise.
28857         * config/nvptx/nvptx.opt: Update.
28858
28859         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28860         (access_check): New functions, copied from
28861         config/i386/intelmic-mkoffload.c.
28862         (main): For non-installed testing, look in all COMPILER_PATHs for
28863         GCC_INSTALL_NAME.
28864
28865         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28866
28867 2015-02-18  Andrew Pinski  <apinski@cavium.com>
28868             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28869
28870         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28871         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28872
28873 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28874
28875         * ipa-visibility.c (function_and_variable_visibility): Only
28876         check locality if node is not already local.
28877         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28878         call_for_symbol_and_aliases instead of
28879         call_for_symbol_thunks_and_aliases.
28880         (ipa_inline): Likewise.
28881         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28882         first walk aliases.
28883         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28884         call_for_symbol_and_aliases.
28885         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28886         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28887         (ipa_propagate_frequency): Update.
28888         (ipa_profile): Add opt_for_fn gueards.
28889
28890 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28891
28892         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28893         * doc/invoke.texi (SH options): Document it.
28894         * config/sh/sh.c (sh_insn_length_adjustment): Check
28895         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28896
28897 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28898
28899         * common.opt (fipa-cp-alignment): New.
28900         * ipa-cp.c (ipcp_store_alignment_results): Check
28901         flag_ipa_cp_alignment.
28902         * opts.c (default_options_table): Enable -fipa-cp-alignment for
28903         -O2.
28904         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28905         * doc/invoke.texi: Document -fipa-cp-alignment.
28906
28907 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28908
28909         PR target/64793
28910         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28911         to nil.  Adjust comments.
28912
28913 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28914
28915         * ipa-visibility.c (function_and_variable_visibility): Only
28916         check locality if node is not already local.
28917         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28918         call_for_symbol_and_aliases instead of
28919         call_for_symbol_thunks_and_aliases.
28920         (ipa_inline): Likewise.
28921         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28922         first walk aliases.
28923         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28924         call_for_symbol_and_aliases.
28925         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28926         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28927         (ipa_propagate_frequency): Update.
28928         (ipa_profile): Add opt_for_fn guards.
28929
28930 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
28931
28932         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28933         skipping of "strange" tokens.
28934
28935 2015-02-17  Jeff Law  <law@redhat.com>
28936
28937         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
28938         obsolete comment.
28939
28940 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
28941
28942         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28943         as forcing a HARD_DEP between instructions, thereby
28944         disallowing rewriting to break dependencies.
28945
28946 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
28947
28948         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28949         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28950         variables in boundary that have no inlitalizer encoded and are
28951         not aliases.
28952         * varasm.c (default_binds_local_p_2): External definitions do not
28953         count as definitions here.
28954
28955 2015-02-16  Jeff Law  <law@redhat.com>
28956
28957         PR tree-optimization/64823
28958         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
28959         statements.
28960         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28961         threading through blocks with PHIs, but no statements.
28962         (thread_through_normal_block): Distinguish between blocks where
28963         we did not process all the statements and blocks with no statements.
28964
28965 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
28966             James Greenhalgh  <james.greenhalgh@arm.com>
28967
28968         PR ipa/64963
28969         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
28970         section if not linkonce.  Fix up formatting.
28971         (cgraph_node::create_version_clone_with_body): Copy section.
28972         * trans-mem.c (ipa_tm_create_version): Likewise.
28973
28974 2015-02-16  Richard Biener  <rguenther@suse.de>
28975
28976         PR tree-optimization/65077
28977         * tree-ssa-structalias.c (get_constraint_for_1): Handle
28978         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
28979         (find_func_aliases): Allow float values to carry pointers again.
28980
28981 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28982
28983         * doc/install.texi (Specific): Reorder targets list to put
28984         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
28985         from the top menu.
28986
28987 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28988             David Edelsohn  <dje.gcc@gmail.com>
28989
28990         PR target/65058
28991         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
28992         mapping class to external variable or function reference.
28993         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
28994         mapping class.
28995
28996 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
28997
28998         PR target/53348
28999         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29000         ASM_WEAKEN_DECL if defined.
29001
29002 2015-02-16  Richard Biener  <rguenther@suse.de>
29003
29004         PR lto/65015
29005         * varasm.c (default_file_start): For LTO produced units
29006         emit <artificial> as file directive.
29007
29008 2015-02-16  Richard Biener  <rguenther@suse.de>
29009
29010         PR tree-optimization/63593
29011         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29012         stmts and releasing SSA names until...
29013         (execute_pred_commoning): ... after processing all chains.
29014
29015 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
29016
29017         PR ipa/65059
29018         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29019         external functions.
29020
29021 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
29022
29023         * doc/bugreport.texi: Adjust section titles throughout the file
29024         to use "Title Case".
29025         * doc/extend.texi: Likewise.
29026         * doc/gcov.texi: Likewise.
29027         * doc/implement-c.texi: Likewise.
29028         * doc/implement-cxx.texi: Likewise.
29029         * doc/invoke.texi: Likewise.
29030         * doc/objc.texi: Likewise.
29031         * doc/standards.texi: Likewise.
29032         * doc/trouble.texi: Likewise.
29033
29034 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
29035
29036         * cgraph.h (symtab_node::has_aliases_p): Simplify.
29037         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29038         * tree.c (lookup_binfo_at_offset): Make static.
29039         (get_binfo_at_offset): Do not shadow offset; add explanatory
29040         comment.
29041
29042 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
29043
29044         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29045         for all floading point loads and stores except those using a register
29046         index address.
29047         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29048         to a register.
29049
29050 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
29051
29052         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29053         (do_estimate_growth_1): Record if any uninlinable edge was seen.
29054         (estimate_growth): Handle uninlinable edges correctly.
29055         (check_callers): New.
29056         (growth_likely_positive): Handle aliases correctly.
29057
29058 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
29059
29060         * ipa-chkp.c: Use iterate_direct_aliases.
29061         * symtab.c (resolution_used_from_other_file_p): Move inline.
29062         (symtab_node::create_reference): Fix formating.
29063         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29064         (symtab_node::iterate_reference): Move inline.
29065         (symtab_node::iterate_referring): Move inline.
29066         (symtab_node::iterate_direct_aliases): Move inline.
29067         (symtab_node::used_from_object_file_p_worker): Inline into ...
29068         (symtab_node::used_from_object_file_p): ... this one; move inline.
29069         (symtab_node::call_for_symbol_and_aliases): Move inline;
29070         use iterate_direct_aliases.
29071         (symtab_node::call_for_symbol_and_aliases_1): New method.
29072         (cgraph_node::call_for_symbol_and_aliases): Move inline;
29073         use iterate_direct_aliases.
29074         (cgraph_node::call_for_symbol_and_aliases_1): New method.
29075         (varpool_node::call_for_node_and_aliases): Rename to ...
29076         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29077         use iterate_direct_aliases.
29078         (varpool_node::call_for_symbol_and_aliases_1): New method.
29079         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29080         (ipa_discover_readonly_nonaddressable_var): Update.
29081         * ipa-devirt.c: Fix formating.
29082         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29083         Move inline.
29084         (cgraph_node::call_for_symbol_and_aliases): Move inline.
29085         (cgraph_node::call_for_symbol_and_aliases_1): New function..
29086         * cgraph.h (used_from_object_file_p_worker): Remove.
29087         (resolution_used_from_other_file_p): Move inline.
29088         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29089         (symtab_node::iterate_reference): Move inline.
29090         (symtab_node::iterate_referring): Move inline.
29091         (symtab_node::iterate_direct_aliases): Move inline.
29092         (symtab_node::used_from_object_file_p_worker): Inline into ...
29093         (symtab_node::used_from_object_file_p): Move inline.
29094         * tree-emutls.c (ipa_lower_emutls): Update.
29095         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29096         (varpool_node::call_for_node_and_aliases): Remove.
29097
29098 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
29099
29100         PR tree-optimization/62209
29101         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29102         op == range->exp, insert seq and gimplified code after labels
29103         instead of after the phi.
29104
29105 2015-02-13  Jeff Law  <law@redhat.com>
29106
29107         PR bootstrap/65060
29108         Revert my change for tree-optimization/64823.
29109
29110 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
29111
29112         PR tree-optimization/65053
29113         * tree-ssa-phiopt.c (value_replacement): When moving assign before
29114         cond, either reset VR on lhs or set it to phi result VR.
29115
29116 2015-02-13  Jeff Law  <law@redhat.com>
29117
29118         PR tree-optimization/64823
29119         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29120         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29121         threading through blocks with PHIs, but no statements.
29122         (thread_through_normal_block): Distinguish between blocks where
29123         we did not process all the statements and blocks with no statements.
29124
29125         PR rtl-optimization/47477
29126         * match.pd (convert (plus/minus (convert @0) (convert @1): New
29127         simplifier to narrow arithmetic.
29128
29129 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
29130
29131         PR ipa/65028
29132         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29133         polymorphic call info when type is not known to be preserved.
29134
29135 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
29136
29137         PR ipa/65028
29138         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29139         (inline_call): Use it.
29140
29141 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
29142
29143         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29144         GOMP_DEVICE_NVIDIA_PTX.
29145
29146 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
29147
29148         PR ipa/65034
29149         * stmt.c (emit_case_nodes): Use void_type_node instead of
29150         NULL_TREE as LABEL_DECL type.
29151
29152 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
29153
29154         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29155         constraints.
29156         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29157         symbolic references to data to be forced to constant memory on the
29158         SOM target.
29159
29160 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29161
29162         PR tree-optimization/65002
29163         * tree-cfg.c (pass_data_fixup_cfg): Don't update
29164         SSA on start.
29165         * tree-sra.c (some_callers_have_no_vuse_p): New.
29166         (ipa_early_sra): Reject functions whose callers
29167         assume function is read only.
29168
29169 2015-02-13  Richard Biener  <rguenther@suse.de>
29170
29171         PR lto/65015
29172         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29173         for LTO produced CUs.
29174
29175 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
29176
29177         PR tree-optimization/64705
29178         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29179         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29180         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29181         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29182         expand_simple_operations.
29183
29184 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29185             Richard Henderson  <rth@redhat.com>
29186
29187         PR rtl/32219
29188         * cgraphunit.c (cgraph_node::finalize_function): Set definition
29189         before notice_global_symbol.
29190         (varpool_node::finalize_decl): Likewise.
29191         * varasm.c (default_binds_local_p_2): Rename from
29192         default_binds_local_p_1, add weak_dominate argument.  Use direct
29193         returns instead of assigning to local variable.  Unify varpool and
29194         cgraph paths via symtab_node.  Reject undef weak variables before
29195         testing visibility.  Reorder tests for simplicity.
29196         (default_binds_local_p): Use default_binds_local_p_2.
29197         (default_binds_local_p_1): Likewise.
29198         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29199         via symtab_node.
29200         (default_elf_asm_output_external): Emit visibility when specified.
29201
29202 2015-02-13  Alan Modra  <amodra@gmail.com>
29203
29204         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29205         code setting up r11 for out-of-line fp restore.
29206
29207 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
29208
29209         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29210         (muser-mode): Likewise.
29211
29212 2015-02-13  Alan Modra  <amodra@gmail.com>
29213
29214         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29215         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29216
29217 2015-02-12  David Howells  <dhowells@redhat.com>
29218
29219         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29220         warning.
29221         * tree-ssa-uninit.c (dump_predicates): Likewise.
29222         * opts.c (print_filtered_help): Likewise.
29223
29224 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29225
29226         * dwarf2out.c (output_die): Use "%s", name instead of name to
29227         avoid -Wformat-security warning.
29228
29229         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29230         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29231         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29232         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29233
29234 2015-02-12  Jason Merrill  <jason@redhat.com>
29235
29236         * common.opt (-flifetime-dse): New.
29237
29238 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29239
29240         PR sanitizer/65019
29241         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29242
29243         PR tree-optimization/65014
29244         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29245         use original second operand of arg0 or arg1 instead of
29246         that adjusted by STRIP_NOPS.
29247
29248 2015-02-11  Jeff Law  <law@redhat.com>
29249
29250         PR target/63347
29251         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29252         that needs to be queued, just queue it for a single cycle.
29253
29254 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
29255
29256         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
29257         bodies of thunks; comment on why.
29258         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
29259         symbols are extern.
29260
29261 2015-02-11  Richard Henderson  <rth@redhat.com>
29262
29263         PR sanitize/65000
29264         * tree-eh.c (mark_reachable_handlers): Mark source and destination
29265         regions of __builtin_eh_copy_values.
29266
29267 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29268
29269         PR middle-end/65003
29270         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
29271         ultimate alias is MEM with SYMBOL_REF satisfying
29272         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
29273         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
29274
29275 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
29276
29277         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29278         "diagnostic-core.h".
29279         (main): Initialize progname, and call diagnostic_initialize.
29280
29281         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29282         instead of __OPENMP_TARGET__.
29283
29284         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29285         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29286         hard-coding PTX_ID.
29287
29288 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
29289
29290         * doc/sourcebuild.texi (pie_enabled): Document.
29291
29292 2015-02-11  Martin Liska  <mliska@suse.cz>
29293
29294         PR ipa/64813
29295         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29296         a return value for call to a function that is noreturn.
29297
29298 2015-02-11  Richard Biener  <rguenther@suse.de>
29299
29300         PR lto/65015
29301         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29302         and -fresolution.
29303
29304 2015-02-11  Andrew Pinski  <apinski@cavium.com>
29305
29306         PR target/64893
29307         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29308         Change the first argument type to size_type_node and add another
29309         size_type_node.
29310         (aarch64_simd_expand_builtin): Handle the new argument to
29311         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29312         print an out when the first two arguments are not
29313         nonzero integer constants.
29314         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29315         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29316
29317 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29318
29319         PR target/61925
29320         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29321         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29322         (ix86_set_current_function): Rewritten.
29323         (ix86_add_new_builtins): Temporarily clear current_target_pragma
29324         when creating builtin fndecls.
29325
29326 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29327
29328         PR ipa/65005
29329         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29330         function.
29331         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29332         have no comdat group.
29333         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29334         (lto_output_varpool_node): Always output alias info.
29335         (output_refs): Output refs of boundary aliases, too.
29336         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29337         (output_symtab): Output call eges in thunks in boundary.
29338         (get_alias_symbol): Remove.
29339         (input_node, input_varpool_node): Do not special case weakrefs.
29340         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29341         alias and thunks targets in the boundary; do not take removed symbols
29342         from their comdat groups.
29343         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29344         (cgraph_node::global_info): Remove.
29345         (cgraph_node::rtl_info): Look through aliases and thunks.
29346         * cgrpah.h (global_info): Remove.
29347         (non_local_p): Remove.
29348
29349 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29350             Sandra Loosemore  <sandra@codesourcery.com>
29351
29352         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29353         to inline asm.  List dialects in proper order.
29354
29355 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29356             Sandra Loosemore  <sandra@codesourcery.com>
29357
29358         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29359
29360 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29361
29362         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29363         modified) reference to Solaris.
29364
29365 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
29366
29367         * doc/extend.texi (Extended Asm): Fix typos.
29368
29369 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
29370
29371         PR sanitizer/65004
29372         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29373
29374 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
29375
29376         PR target/64661
29377         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29378         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29379         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29380         * config/sh/constraints.md (Ara, Add): New constraints.
29381         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29382         predicates.
29383         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29384         atomic_mem_operand_0.  Don't use force_reg on the memory address.
29385         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29386         Sra constraint.  Convert to insn_and_split.  Add workaround for
29387         PR 64974.
29388         (atomic_compare_and_swap<mode>_hard): Copy to
29389         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
29390         Use atomic_mem_operand_0 predicate.
29391         (atomic_compare_and_swap<mode>_soft_gusa,
29392         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29393         AraAdd constraints.
29394         (atomic_compare_and_swap<mode>_soft_tcb,
29395         atomic_compare_and_swap<mode>_soft_imask,
29396         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29397         atomic_mem_operand_0 predicate and SraSdd constraints.
29398         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29399         constraint.
29400         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29401         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
29402         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29403         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
29404         force_reg on the memory address.
29405         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29406         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29407         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29408         atomic_mem_operand_1 predicate and Sra constraint.
29409         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29410         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29411         Use atomic_mem_operand_1 predicate.
29412         (atomic_<fetchop_name><mode>_hard): Copy to
29413         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29414         Use atomic_mem_operand_1 predicate.
29415         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29416         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29417         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
29418         insn_and_split.  Use atomic_mem_operand_1 predicate.
29419         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29420         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
29421         Use atomic_mem_operand_1 predicate.
29422         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29423         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29424         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29425         in generated insn with original mem operand before emitting the insn.
29426         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29427         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29428         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29429         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29430         Use atomic_mem_operand_1 predicate and AraAdd constraints.
29431         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29432         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29433         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29434         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29435         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29436         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29437         atomic_not_fetch<mode>_soft_tcb,
29438         atomic_<fetchop_name>_fetch<mode>_soft_imask,
29439         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29440         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29441         Use atomic_mem_operand_1 predicate and SraSdd constraints.
29442
29443 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
29444
29445         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29446         and 3 earlyclobber operands.
29447
29448 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29449
29450         * common.opt (fstack-reuse): Mark as optimization.
29451
29452 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29453
29454         PR ipa/64982
29455         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29456
29457 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
29458
29459         PR tree-optimization/64326
29460         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29461
29462 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
29463
29464         PR gcov-profile/61889
29465         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29466
29467 2015-02-10  Richard Biener  <rguenther@suse.de>
29468
29469         PR tree-optimization/64995
29470         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29471         value we use is final.
29472         (visit_reference_op_store): Always valueize op.
29473         (visit_use): Properly valueize vuses.
29474
29475 2015-02-10  Richard Biener  <rguenther@suse.de>
29476
29477         PR tree-optimization/64909
29478         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29479         pass a scalar-stmt count estimate to the cost model.
29480         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29481
29482 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
29483
29484         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29485         enabled by default together with var-tracking.
29486
29487 2015-02-10  Nick Clifton  <nickc@redhat.com>
29488
29489         * config/rl78/rl78.c: Remove DIV attribute code accidentally
29490         included in previous rl78 commit.
29491
29492 2015-02-10  Richard Biener  <rguenther@suse.de>
29493
29494         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29495         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29496         return the bitpack.
29497
29498 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29499
29500         PR gcov-profile/61889
29501         * config.in: regenerate.
29502         * configure.in: Likewise.
29503         * configure.ac: Check for ftw.h.
29504         * gcov-tool.c: Check for ftw.h before using nftw.
29505
29506 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29507
29508         PR lto/64076
29509         * ipa-visibility.c (update_visibility_by_resolution_info): Only
29510         assert when not in lto mode.
29511
29512 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29513
29514         * ira-color.c (setup_left_conflict_sizes_p): Simplify
29515         initialization/assignment of conflict_size.
29516
29517 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
29518
29519         PR ipa/64978
29520         * ipa-cp.c (gather_caller_stats): Skip thunks.
29521         (propagate_constants_topo): Skip aliases.
29522
29523 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
29524
29525         PR target/64761
29526         * config/sh/sh.c (sh_option_override): Don't change
29527         -freorder-blocks-and-partition to -freorder-blocks even when
29528         unwinding is enabled.
29529         (sh_can_follow_jump): Return false if the followee jump is
29530         a crossing jump when -freorder-blocks-and-partition is specified.
29531         * config/sh/sh.md (*jump_compact_crossing): New insn.
29532
29533 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
29534             Kaz Kojima  <kkojima@gcc.gnu.org>
29535
29536         PR target/64761
29537         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29538         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29539         (sh_can_redirect_branch): Rename to ...
29540         (sh_can_follow_jump): ... this.  Constify argument types.
29541         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29542         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29543         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29544         * doc/tm.texi: Regenerate.
29545
29546 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29547
29548         PR sanitizer/64981
29549         * builtins.c (expand_builtin): Call targetm.expand_builtin
29550         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29551
29552 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29553
29554         PR ipa/61548
29555         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29556
29557 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29558
29559         PR ipa/63566
29560         * ipa-icf.c (set_local): New function.
29561         (sem_function::merge): Use it.
29562
29563 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29564
29565         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29566         (add_type_duplicate): Fix comparison of BINFOs.
29567
29568 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29569
29570         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29571         on getting VOID pointer.
29572
29573 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29574
29575         PR target/64979
29576         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29577         va_list escapes.
29578
29579 2015-02-09  Richard Biener  <rguenther@suse.de>
29580
29581         * genmatch.c (replace_id): Copy expr_type.
29582
29583 2015-02-09  Richard Biener  <rguenther@suse.de>
29584
29585         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29586         (streamer_write_tree_bitfields): Declare.
29587         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29588         properly unpack padding.
29589         (unpack_value_fields): Inline ...
29590         (streamer_read_tree_bitfields): ... here.
29591         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29592         and properly add padding bits.
29593         (streamer_pack_tree_bitfields): Fold into ...
29594         (streamer_write_tree_bitfields): ... this new function,
29595         exposing the bitpack object.
29596         * lto-streamer-out.c (lto_write_tree_1): Call
29597         streamer_write_tree_bitfields.
29598
29599 2015-02-09  Richard Biener  <rguenther@suse.de>
29600
29601         PR tree-optimization/54000
29602         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29603         (struct ivopts_data): Add loop_loc member.
29604         (tree_ssa_iv_optimize_loop): Dump loop location.
29605         (create_new_ivs): Likewise, also dump number of IVs generated.
29606
29607 2015-02-09  Martin Liska  <mliska@suse.cz>
29608
29609         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29610         just if not yet registered.
29611         (ipa_icf_generate_summary): Register callgraph hooks.
29612
29613 2015-02-08  Andrew Pinski  <apinski@cavium.com>
29614
29615         * config/aarch64/aarch64.c (gty_dummy): Delete.
29616
29617 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29618
29619         PR ipa/63566
29620         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29621         (cgraph_node::local_p): Remove thunk related FIXME.
29622
29623 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29624
29625         PR ipa/63566
29626         * i386.c (ix86_function_regparm): Look through aliases to see if callee
29627         is local and optimized.
29628         (ix86_function_sseregparm): Likewise; also use target's SSE math
29629         settings; error out instead of silently generating wrong code
29630         on mismatches.
29631         (init_cumulative_args): Look through aliases.
29632
29633 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29634
29635         PR ipa/63566
29636         * ipa-split.c (execute_split_functions): Split if function has aliases.
29637
29638 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29639
29640         PR ipa/63566
29641         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29642         aliases before trying to expand it.
29643         (cgraph_node::expand_thunk): Fix formating.
29644
29645 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
29646
29647         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29648         (Using Assembly Language with C): Expand introduction.
29649         (Basic Asm): Copy-edit.  Add more information about uses of
29650         basic asm.
29651         (Extended Asm): Copy-edit.  Document new escape syntax and
29652         %l[label] syntax.
29653         (Global Reg Vars): Copy-edit.
29654         (Local Reg Vars): Likewise.
29655
29656 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
29657
29658         PR debug/2714
29659         PR bootstrap/64256
29660         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29661         (DBX_CONTIN_CHAR): Define.
29662
29663 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
29664             Brian Rzycki  <b.rzycki@samsung.com>
29665
29666         PR tree-optimization/64878
29667         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29668         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29669         Stop recursion at loop phi nodes after having visited a loop phi node.
29670
29671 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29672
29673         * toplev.c (process_options): Change flag_ipa_ra before creating
29674         optimization_{default,current}_node.
29675
29676         PR ipa/64896
29677         * cgraphunit.c (cgraph_node::expand_thunk): If
29678         restype is not is_gimple_reg_type nor the thunk_fndecl
29679         returns aggregate_value_p, set restmp to a temporary variable
29680         instead of resdecl.
29681
29682 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
29683
29684         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29685
29686 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29687
29688         PR target/64205
29689         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29690         add a general secondary reload handler for SDmode, unless we have
29691         both read/write support for SDmode.
29692
29693 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29694
29695         PR middle-end/64937
29696         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29697         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29698         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29699         1 before, push it to abstract_vec.
29700         (dwarf2out_abstract_function): Adjust caller.  Don't call
29701         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29702         DECL_ABSTRACT_P flags for all abstract_vec elts.
29703
29704 2015-02-06  Renlin Li  <renlin.li@arm.com>
29705
29706         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29707         complex gimple.
29708         * tree-ssa.c (execute_update_addresses_taken): Likewise.
29709
29710 2015-02-06  Jeff Law  <law@redhat.com>
29711
29712         PR target/64889
29713         * config/h8300/h8300.c (push): New argument "in_prologue".
29714         Pass "in_prologue" along to "F".
29715         (h8300_push_pop): Corresponding changes.
29716         (h8300_expand_prologue): Likewise.
29717         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
29718
29719 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29720
29721         PR rtl-optimization/64957
29722         PR debug/64817
29723         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29724         IOR rather than for AND.
29725
29726 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
29727
29728         PR target/62631
29729         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29730         of shift-add and (add + shift) operations.  Rename local variable.
29731
29732 2015-02-05  Jeff Law  <law@redhat.com>
29733
29734         PR target/17306
29735         * config/h8300/constraints.md (U): Correctly dectect
29736         "eightbit_data" memory addresses.
29737         * config/h8300/h8300.c (eightbit_constant_address_p): Also
29738         handle (const (plus (symbol_ref (x)))) where x is declared
29739         as an 8-bit data memory address.
29740         * config/h8300/h8300.md (call, call_value): Correctly detect
29741         "funcvec" functions.
29742
29743         PR target/43264
29744         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29745         24 to 28 bits for the H8/300.
29746
29747 2015-02-06  Alan Modra  <amodra@gmail.com>
29748
29749         PR target/64876
29750         * config/rs6000/rs6000.c (chain_already_loaded): New function.
29751         (rs6000_call_aix): Use it.
29752
29753 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
29754
29755         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29756         check.
29757
29758 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
29759
29760         * config/h8300/constraints.md ("U" constraint): Use strict
29761         variant of REG_OK_FOR_BASE_P after reload has started.
29762
29763 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
29764
29765         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29766         define to zero if !TARGET_NEON.
29767         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29768
29769 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29770             Trevor Saunders  <tsaunders@mozilla.com>
29771
29772         PR ipa/61548
29773         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29774
29775 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29776
29777         PR ipa/61548
29778         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29779         when removing varpool nodes.
29780
29781 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29782
29783         PR ipa/61548
29784         * varpool.c (varpool_node::remove): Fix order of variables.
29785
29786 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29787
29788         PR ipa/64686
29789         * ipa-inline.c (inline_small_functions): Fix ordering issue between
29790         speculation resolution and key updates.
29791
29792 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29793
29794         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29795         about not letting any speculative edges unupdated.
29796
29797 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29798
29799         PR gcov/64123
29800         * gcov-io.c (gcov_var): Export.
29801
29802 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29803
29804         PR middle-end/64922
29805         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29806         edges that become speculative.
29807
29808 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29809
29810         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29811         or DW_LANG_Fortran08.
29812         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29813         DW_LANG_Fortran08.
29814         (gen_compile_unit_die): Handle "GNU Fortran2003" and
29815         "GNU Fortran2008" language strings.
29816         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29817         * langhooks.h (lang_GNU_Fortran): New prototype.
29818         * langhooks.c (lang_GNU_Fortran): New function.
29819         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29820         lang_GNU_Fortran.
29821
29822 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29823
29824         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29825         (RTX_OK_FOR_OLO10_P): Likewise.
29826
29827 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29828
29829         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29830
29831 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29832
29833         PR middle-end/64922
29834         * gimple.c: Include gimple-ssa.h.
29835         (maybe_remove_unused_call_args): New function.
29836         * gimple.h (maybe_remove_unused_call_args): Declare.
29837         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29838         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29839         * gimple-fold.c (gimple_fold_call): Likewise.
29840
29841 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29842
29843         PR rtl-optimization/64905
29844         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29845         pointer alignment if it isn't needed.
29846
29847 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29848
29849         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29850         cortex-a72.cortex-a53.
29851         * config/aarch64/aarch64-tune.md: Regenerate.
29852         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29853
29854 2015-02-04  Nick Clifton  <nickc@redhat.com>
29855
29856         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29857         inside a MEM.
29858
29859 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29860
29861         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29862         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29863         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29864         of DEF_BUILTIN.
29865         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29866         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29867         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29868         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29869         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29870         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29871         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29872         * tree-core.h (enum built_in_function): In between
29873         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29874         for builtins that use DEF_BUILTIN_CHKP macro.
29875
29876 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
29877
29878         PR debug/64817
29879         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29880         operands for tcc_comparison exprs.  Fix typos.
29881
29882         PR debug/64817
29883         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29884         of two XORs that have an intervening AND or IOR.
29885
29886         PR debug/64817
29887         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29888         simplification of XOR of AND to not allocate new rtx before
29889         committing to a simplification.
29890
29891 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29892
29893         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29894         manual swaps in all peepholes.
29895
29896 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29897
29898         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29899         of manual swapping implementation.
29900         (aarch64_expand_vec_perm_const_1): Likewise.
29901
29902 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
29903
29904         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29905         (generic_addrcost_table): Remove NAMED_PARAM.
29906         (cortexa57_addrcost_table): Likewise.
29907         (xgene1_addrcost_table): Likewise.
29908         (generic_regmove_table): Likewise.
29909         (cortexa53_regmove_table): Likewise.
29910         (xgene1_regmove_table): Likewise.
29911         (generic_vector_table): Likewise.
29912         (cortexa57_vector_table): Likewise.
29913         (xgene1_vector_table): Likewise.
29914         (generic_tunings): Likewise.
29915         (cortexa53_tunings): Likewise.
29916         (cortexa57_tunings): Likewise.
29917         (xgene1_tunings): Likewise.
29918
29919 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29920
29921         * config/arm/arm-cores.def: Add cortex-a72 and
29922         cortex-a72.cortex-a53.
29923         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29924         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29925         * config/arm/arm-tune.md: Regenerate.
29926         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29927         "cortex-a72.cortex-a53".
29928         * doc/invoke.texi (ARM Options/-mtune): Likewise.
29929
29930 2015-02-04  Nick Clifton  <nickc@redhat.com>
29931
29932         PR target/64408
29933         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29934         of accepted codes.
29935         (nonimmediate_di_operand): Likewise.
29936
29937         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29938         prefixes of known F5 using MSP430 MCUs.
29939
29940 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29941
29942         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29943         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29944         instead of __builtin_sqrt.
29945
29946 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
29947
29948         * varasm.c (do_assemble_alias): Follow transparent alias
29949         chain for target.
29950         (default_assemble_visibility): Follow transparent alias
29951         chain for decl name.
29952
29953 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29954
29955         PR middle-end/62103
29956         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
29957         to compute size of referenced value in the constant case.
29958
29959 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29960
29961         PR rtl-optimization/64756
29962         * cse.c (invalidate_dest): New function.
29963         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
29964         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
29965         invalidate and do not record it.
29966
29967 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
29968
29969         PR target/64660
29970         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
29971         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
29972         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
29973         atomic_nand<mode>_soft_tcb): New insns.
29974         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
29975         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
29976         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
29977         Split into atomic_not_fetchsi_hard if operands[0] is unused.
29978         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
29979         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29980         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
29981         atomic_not<mode>_hard if operands[0] is unused.
29982         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
29983         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
29984         if operands[0] is unused.
29985         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
29986         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
29987         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
29988         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29989         unused.
29990         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
29991         into atomic_not<mode>_soft_tcb if operands[0] is unused.
29992         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
29993         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
29994         if operands[0] is unused.
29995         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
29996         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
29997         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
29998         atomic_nand_fetchsi_hard if operands[0] is unused.
29999         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
30000         atomic_nand<mode>_hard if operands[0] is unused.
30001         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
30002         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30003         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
30004         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30005         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
30006         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30007         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30008         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30009         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
30010         atomic_not<mode>_hard if operands[0] is unused.
30011         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30012         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30013         unused.
30014         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
30015         into atomic_not<mode>_soft_tcb if operands[0] is unused.
30016         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
30017         atomic_nand<mode>_hard if operands[0] is unused.
30018         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
30019         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30020
30021 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
30022
30023         PR jit/64810
30024         * Makefile.in (GCC_OBJS): Add gcc-main.o.
30025         * gcc-main.c: New file, containing "main" taken from gcc.c.
30026         * gcc.c (do_self_spec): Free decoded_options.
30027         (class driver): Move declaration to gcc.h.
30028         (main): Move declaration and implementation to new file
30029         gcc-main.c.
30030         (driver_get_configure_time_options): New function.
30031         * gcc.h (class driver): Move this declaration here, from
30032         gcc.c.
30033         (driver_get_configure_time_options): New declaration.
30034
30035 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
30036
30037         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30038         cross-module inlining.
30039         * cgraph.h (cgraph_node): Add flag merged.
30040         * ipa-icf.c (sem_function::merge): Maintain it.
30041
30042 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
30043
30044         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30045         instead of OBJECT_P.
30046
30047 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
30048
30049         PR target/62631
30050         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30051         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30052         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30053         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30054
30055 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
30056
30057         PR other/63504
30058         * combine.c (reg_n_sets_max): New variable.
30059         (can_change_dest_mode, reg_nonzero_bits_for_combine,
30060         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30061         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30062         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30063         (rest_of_handle_combine): Initialize reg_n_sets_max.
30064
30065 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
30066
30067         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30068         if some always_inline was inlined, apply changes before inlining
30069         heuristically.
30070
30071 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
30072
30073         PR jit/64810
30074         * config/arm/arm.c (arm_option_override): Set
30075         arm_selected_arch/cpu/tune to NULL on entry.
30076
30077 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
30078             Andrew Pinski  <pinskia@gcc.gnu.org>
30079             Jakub Jelinek  <jakub@gcc.gnu.org>
30080
30081         PR target/64231
30082         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30083         integer typing for small model. Use IN_RANGE.
30084
30085 2015-02-02  Richard Biener  <rguenther@suse.de>
30086
30087         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30088         * tree-vrp.c (vrp_valueize_1): Likewise.
30089
30090 2015-02-02  Alan Modra  <amodra@gmail.com>
30091
30092         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30093         than mem for toc_restore.
30094         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30095         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30096         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30097
30098 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
30099
30100         PR target/64047
30101         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30102         explicit default options.
30103
30104 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
30105
30106         PR ipa/64872
30107         * ipa-utils.c (ipa_merge_profiles): Add release argument.
30108         * ipa-icf.c (sem_function::merge): Do not release body when merging.
30109         * ipa-utils.h (ipa_merge_profiles): Update prototype.
30110
30111 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
30112
30113         PR debug/64817
30114         * cfgexpand.c (deep_ter_debug_map): New variable.
30115         (avoid_deep_ter_for_debug): New function.
30116         (expand_debug_expr): If TERed SSA_NAME is in
30117         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30118         instead of trying to expand SSA_NAME's def stmt.
30119         (expand_debug_locations): When expanding debug bind
30120         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30121         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30122         value.
30123         (pass_expand::execute): Call avoid_deep_ter_for_debug on
30124         all debug bind stmts.  Delete deep_ter_debug_map after
30125         expand_debug_location if non-NULL and clear it.
30126
30127 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
30128
30129         PR target/64851
30130         * config/sh/sync.md (atomic_fetch_notsi_hard,
30131         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30132         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30133         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30134         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30135         atomic_not_fetch<mode>_soft_imask): New insns.
30136
30137 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30138
30139         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30140         (rank_for_schedule_debug): Split from ...
30141         (rank_for_schedule): ... this.
30142         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30143         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30144
30145 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30146
30147         * doc/md.texi (Machine Constraints): Alphabetize table by target.
30148         * doc/extend.texi (x86 Variable Attributes): Move section to
30149         correct alphabetization after renaming.
30150         (x86 Type Attributes): Likewise.
30151         (Target Builtins): Re-alphabetize menu.
30152         (x86 Built-in Functions): Move section to correct alphabetization
30153         after renaming.
30154         (x86 transactional memory intrinsics): Likewise.
30155         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30156         and x86 Windows Options in table and menu.
30157         (x86 Options): Move section to correct alphabetization after
30158         renaming.
30159         (x86 Windows Options): Likewise.
30160
30161 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30162
30163         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30164         preferred names of the architecture and its 32- and 64-bit
30165         variants.
30166         * doc/invoke.texi: Likewise.
30167         * doc/md.texi: Likewise.
30168
30169 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30170
30171         PR target/64882
30172         * config/i386/predicates.md (address_no_seg_operand): Reject
30173         non-CONST_INT_P operands in invalid mode.
30174
30175 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30176
30177         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30178         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
30179         * config/i386/predicates.md (address_no_seg_operand): Call
30180         address_operand with VOIDmode.
30181         (vsib_address_operand): Ditto.
30182         (address_mpx_no_base_operand): Ditto.
30183         (address_mpx_no_index_operand): Ditto.
30184
30185 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30186
30187         PR target/64688
30188         * lra-constraints.c (original_subreg_reg_mode): New.
30189         (simplify_operand_subreg): Try to simplify subreg of const.  Use
30190         original_subreg_reg_mode for it.
30191         (swap_operands): Update original_subreg_reg_mode.
30192         (curr_insn_transform): Set up original_subreg_reg_mode.
30193
30194 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30195
30196         PR target/64617
30197         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30198         function.
30199         (process_alt_operands): Use it.
30200         (curr_insn_transform): Check the optional reload pseudo class is
30201         ok for the mode.
30202
30203 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
30204
30205         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30206         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30207         prototype.
30208         * toplev.h (init_asm_output): Update comment on use of
30209         UNKNOWN_LOCATION with fatal_error.
30210         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30211         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30212         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30213         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30214         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30215         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30216         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30217         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30218         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30219         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30220         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30221         fatal_error changed to pass input_location as first argument.
30222
30223 2015-01-30  Martin Liska  <mliska@suse.cz>
30224
30225         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30226         in #pragma GCC diagnostic guards.
30227
30228 2015-01-30  Richard Biener  <rguenther@suse.de>
30229
30230         PR tree-optimization/64829
30231         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30232         not add a widening conversion pattern but hand off extra
30233         widenings to callers.
30234         (vect_recog_widen_mult_pattern): Handle extra widening produced
30235         by vect_handle_widen_op_by_const.
30236         (vect_recog_widen_shift_pattern): Likewise.
30237         (vect_pattern_recog_1): Remove excess vertical space in dumping.
30238         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30239         (vect_init_vector_1): Likewise.
30240         (vect_get_vec_def_for_operand): Likewise.
30241         (vect_finish_stmt_generation): Likewise.
30242         (vectorizable_load): Likewise.
30243         (vect_analyze_stmt): Likewise.
30244         (vect_is_simple_use): Likewise.
30245
30246 2015-01-29  Jeff Law  <law@redhat.com>
30247
30248         * combine.c (try_combine): Fix typo in comment.
30249
30250 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
30251
30252         PR target/64580
30253         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
30254         (rs6000_stack_info): Add assert.
30255         (rs6000_output_savres_externs): New function, split off from...
30256         (rs6000_output_function_prologue): ... here.  Do not call it for
30257         thunks.
30258
30259 2015-01-29  Jeff Law  <law@redhat.com>
30260
30261         PR target/15184
30262         * combine.c (try_combine): If I0 is a memory load and I3 a store
30263         to a related address, increase the "goodness" of doing a 4-insn
30264         combination with I0-I3.
30265         (make_field_assignment): Handle SUBREGs in the ior+and case.
30266
30267 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
30268
30269         PR tree-optimization/64746
30270         * tree-if-conv.c (mask_exists): New function.
30271         (predicate_mem_writes): Save created mask with given size for further
30272         use.
30273         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
30274         (ifcvt_repair_bool_pattern): Collect all statements that are root
30275         of bool pattern and use iterative algorithm to remove multiple uses
30276         of predicates, display number of required iterations.
30277
30278 2015-01-29  Richard Biener  <rguenther@suse.de>
30279
30280         PR tree-optimization/64853
30281         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30282         stmt will get simulated again.
30283         * tree-ssa-ccp.c (valueize_op_1): Likewise.
30284
30285 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30286
30287         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30288         return_in_pc.  Remove redundant assignments.
30289         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30290         (arm_expand_epilogue): Don't compare boolean with true in if condition.
30291
30292 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
30293
30294         * config/i386/i386.c (ix86_mode_after): Make static.
30295
30296 2015-01-29  Richard Biener  <rguenther@suse.de>
30297
30298         PR tree-optimization/64844
30299         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30300         dump cost model analysis.
30301         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30302         Do not register adjusted load/store costs here.
30303
30304 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30305             Uros Bizjak  <ubizjak@gmail.com>
30306
30307         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30308         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30309         using x86_use_pseudo_pic_reg.
30310         * config/i386/i386.c (ix86_conditional_register_usage): Remove
30311         support for fixed PIC register.
30312         (ix86_use_pseudo_pic_reg): Not static any more.
30313
30314 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30315
30316         PR middle-end/64805
30317         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30318         to avoid error in cgraph node verification.
30319
30320 2015-01-29  Marek Polacek  <polacek@redhat.com>
30321
30322         * doc/standards.texi: Reflect that the default for C is gnu11.
30323
30324 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
30325
30326         PR target/64761
30327         * reorg.c (switch_text_sections_between_p): New function.
30328         (relax_delay_slots): Call it when testing if the jump insn
30329         is removable.  Use targetm.can_follow_jump when testing if
30330         the conditional branch can follow an unconditional jump.
30331
30332 2015-01-27  Caroline Tice  <cmtice@google.com>
30333
30334         Committing VTV Cywin/Ming patch for Patrick Wollgast
30335         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30336         if -fvtable-verify=preinit/std is used.
30337         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30338         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30339         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30340         if -fvtable-verify=preinit/std is used.
30341         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30342         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30343         if -fvtable-verify=preinit/std is used.
30344         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30345         * config/i386/mingw32.h (LIB_SPEC): Likewise.
30346         * varasm.c (assemble_variable): Add code to properly set the comdat
30347         section and name for the .vtable_map_vars section in case the
30348         target is PE or COFF.
30349
30350 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30351
30352         PR ipa/64801
30353         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30354         make sane BB profile.
30355         (cgraph_node::expand_thunk): Make sane BB profile.
30356         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30357         * cgraph.h (init_lowered_empty_function): Update prototype.
30358         * config/i386/i386.c (make_resolver_func): Update call.
30359         * predict.c (gate): Disable branch prediction pass if
30360         profile is already there.
30361
30362 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30363
30364         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30365         * opth-gen.awk: Likewise.
30366         * common.opt: Mark flag_fp_contract_mode as Optimization.
30367
30368 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30369
30370         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30371         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30372
30373 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
30374
30375         PR target/64659
30376         * config/sh/predicates.md (atomic_arith_operand,
30377         atomic_logical_operand): Remove.
30378         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30379         (atomic_arith_operand_0): New predicate.
30380         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30381         Use atomic_arith_operand_0 for input values.
30382         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30383         atomic_compare_and_swap<mode>_soft_gusa,
30384         atomic_compare_and_swap<mode>_soft_tcb,
30385         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30386         arith_reg_operand instead of register_operand.
30387         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
30388         atomic_arith_operand_0 for newval input.
30389         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30390         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30391         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30392         arith_reg_operand instead of register_operand.
30393         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30394         fetchop_predicate_1, fetchop_constraint_1_llcs,
30395         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30396         fetchop_constraint_1_imask): New code iterator attributes.
30397         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30398         register_operand.  Use fetchop_predicate_1.
30399         (atomic_fetch_<fetchop_name>si_hard,
30400         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30401         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30402         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30403         and arith_reg_operand instead of register_operand.  Use
30404         fetchop_predicate_1, fetchop_constraint_1_gusa.
30405         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30406         and arith_reg_operand instead of register_operand.  Use
30407         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
30408         to allow R0 usage.
30409         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30410         and arith_reg_operand instead of register_operand.  Use
30411         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
30412         to allow R0 usage.
30413         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30414         register_operand.  Use atomic_logical_operand_1.
30415         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30416         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30417         arith_reg_operand instead of register_operand.
30418         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30419         Use arith_reg_dest and arith_reg_operand instead of register_operand.
30420         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
30421         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30422         register_operand.  Use fetchop_predicate_1.
30423         (atomic_<fetchop_name>_fetchsi_hard,
30424         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30425         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30426         fetchop_constraint_1_llcs.
30427         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30428         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30429         fetchop_constraint_1_gusa.
30430         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30431         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30432         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
30433         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30434         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30435         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
30436         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30437         register_operand.  Use atomic_logical_operand_1.
30438         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30439         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30440         arith_reg_operand instead of register_operand.
30441         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30442         arith_reg_operand instead of register_operand.  Use logical_operand
30443         and K08.  Adjust asm sequence to allow R0 usage.
30444         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30445         arith_reg_operand instead of register_operand.  Use logical_operand
30446         and K08.
30447
30448 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30449
30450         PR other/63504
30451         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30452         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30453         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30454         only get_full_len HOST_WIDE_INTs from get_val () array rather than
30455         all bits in *val_wide.
30456
30457 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
30458
30459         * varpool.c (tls_model_names): Fix names.
30460         (varpool_node::dump): Dump tls- prefix for tls models.
30461
30462 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
30463             Bernd Schmidt  <bernds@codesourcery.com>
30464             Nathan Sidwell  <nathan@codesourcery.com>
30465
30466         * config/nvptx/mkoffload.c: New file.
30467         * config/nvptx/t-nvptx: Add build rules for it.
30468         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30469         (extra_programs): Add mkoffload.
30470         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30471         function.
30472         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30473
30474 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
30475
30476         PR middle-end/64809
30477         * cfgexpand.c (reorder_operands): Skip debug gimples.
30478
30479 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
30480
30481         PR tree-optimization/64277
30482         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30483         range info when possible to refine estimation.
30484
30485 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30486
30487         PR tree-optimization/64718
30488         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30489         be a 16bit unsigned integer when n->range is 16.
30490         (bswap_replace): Convert src to that type if necessary for all bswap
30491         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
30492         set in pass_optimize_bswap::execute ().
30493
30494 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
30495
30496         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30497         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30498         integer and floating point variants.
30499         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30500
30501 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
30502
30503         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30504         for all vector modes.
30505
30506 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30507
30508         PR bootstrap/64612
30509         * doc/sourcebuild.texi (comdat_group): Document.
30510
30511 2015-01-28  Terry Guo  <terry.guo@arm.com>
30512
30513         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30514
30515 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
30516
30517         * toplev.c (print_version): Add param "show_global_state", and
30518         only print GGC and plugin information if it is true.
30519         (init_asm_output): Pass in "true" for the new param when calling
30520         print_version.
30521         (process_options): Likewise.
30522         (toplev::main): Likewise.
30523         * toplev.h (print_version): Add new param to decl.
30524
30525 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30526
30527         PR ipa/60871
30528         PR ipa/64139
30529         * tree.c (lookup_binfo_at_offset): New function.
30530         (get_binfo_at_offset): Use it.
30531
30532 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30533
30534         PR ipa/64282
30535         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30536         on vtable being vtable.
30537
30538 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30539
30540         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30541         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30542         -mhotpatch= option.
30543         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30544         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
30545         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30546         Renamed.
30547         (s390_hotpatch_trampoline_halfwords_max): Renamed.
30548         (s390_hotpatch_hw_max): New name.
30549         (s390_hotpatch_trampoline_halfwords): Renamed.
30550         (s390_hotpatch_hw_before_label): New name.
30551         (get_hotpatch_attribute): Removed.
30552         (s390_hotpatch_hw_after_label): New name.
30553         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30554         attribute.
30555         (s390_attribute_table): Ditto.
30556         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30557         (s390_function_num_hotpatch_hw): New name.
30558         Remove special handling of inline functions and hotpatching.
30559         Return number of nops before and after the function label.
30560         (s390_can_inline_p): Removed.
30561         (s390_asm_output_function_label): Emit a configurable number of nops
30562         after the function label.
30563         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30564         (TARGET_CAN_INLINE_P) Removed.
30565         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30566
30567 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30568             Jiong Wang  <jiong.wang@arm.com>
30569
30570         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30571         of scratch reg.
30572         (cb<optab><mode>1): Likewise.
30573         * config/aarch64/iterators.md (bcond): New define_code_attr.
30574
30575 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30576
30577         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30578         memory accesses.
30579
30580 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30581
30582         * config/s390/s390.c (s390_register_move_cost): Increase costs for
30583         FPR->GPR moves.
30584
30585 2015-01-27  Richard Biener  <rguenther@suse.de>
30586
30587         * tree-vrp.c (update_value_range): Intersect the range with
30588         old recorded SSA name range information.
30589
30590 2015-01-27  Nick Clifton  <nickc@redhat.com>
30591
30592         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30593         BC, DE and HL registers directly, not via AX.
30594         When decrementing the stack pointer by a large amount, transfer SP
30595         into AX and perform the subtraction there.
30596         (rl78_expand_epilogue): Perform the inverse of the above
30597         enhancements.
30598
30599 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30600
30601         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30602
30603 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30604             Yury Gribov  <y.gribov@samsung.com>
30605
30606         PR ubsan/64741
30607         * ubsan.c (ubsan_source_location): Refactor code.
30608         (ubsan_type_descriptor): Update type size. Refactor code.
30609
30610 2015-01-27  Richard Biener  <rguenther@suse.de>
30611
30612         PR tree-optimization/56273
30613         PR tree-optimization/59124
30614         PR tree-optimization/64277
30615         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30616         from the first VRP pass.
30617
30618 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30619
30620         PR ipa/64776
30621         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30622         handle the first argument in the same loop as all the other arguments.
30623
30624         PR rtl-optimization/61058
30625         * jump.c (cleanup_barriers): Update basic block boundaries
30626         if BLOCK_FOR_INSN is non-NULL on PREV.
30627
30628 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30629
30630         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30631         bounds narrowing, already instrumented calls and calls to
30632         not instrumentable functions.
30633
30634 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30635
30636         PR tree-optimization/64807
30637         * wide-int.cc (wi::divmod_internal): Clear
30638         b_dividend[dividend_blocks_needed].
30639
30640 2015-01-26  DJ Delorie  <dj@redhat.com>
30641
30642         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30643         volatile memory references.
30644
30645 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
30646
30647         PR target/49263
30648         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30649         remove_insn.
30650         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30651         shifts if it already fits into K08.
30652
30653 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30654
30655         PR ipa/64730
30656         * ipa-inline.c (inline_small_functions): Print "unknown" even
30657         if edge->call_stmt is non-NULL, but has builtins or unknown
30658         location.
30659
30660         PR middle-end/64421
30661         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30662         with asterisk, skip the first character.
30663
30664 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30665
30666         PR target/64806
30667         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30668         order change.
30669
30670 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
30671
30672         PR target/64795
30673         * config/i386/i386.md (*movdi_internal): Also check operand 0
30674         to determine TYPE_LEA operand.
30675         (*movsi_internal): Ditto.
30676
30677 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30678
30679         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30680         OPTION_MASK_QUAD_MEMORY_ATOMIC.
30681
30682 2015-01-26  Renlin Li  <renlin.li@arm.com>
30683
30684         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30685         the comment.
30686         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30687         for higher part.
30688
30689 2015-01-26  Richard Biener  <rguenther@suse.de>
30690
30691         PR middle-end/64764
30692         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30693         combining two BIT_AND_EXPR predicates.
30694
30695 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30696
30697         PR bootstrap/64754
30698         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30699
30700 2015-01-26  Terry Guo  <terry.guo@arm.com>
30701
30702         * config/arm/arm.c (arm_file_start): Update the assignment of
30703         Tag_ABI_HardFP_use.
30704
30705 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
30706
30707         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30708         pipeline model.
30709         config/arm/arm.md: Include the new Cortex-A57 model.
30710         (generic_sched): Don't use generic_sched when tuning for
30711         Cortex-A57.
30712
30713 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
30714             Uros Bizjak  <ubizjak@gmail.com>
30715
30716         * config/i386/i386.c (get_builtin_code_for_version): Add
30717         support for BMI and BMI2 multiversion functions.
30718
30719 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30720
30721         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30722         (extract_bit_field): Likewise.
30723         (extract_low_bits): Likewise.
30724         (expand_mult): Likewise.
30725         (expand_mult_highpart_adjust): Likewise.
30726
30727 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30728
30729         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30730         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30731         * config/i386/i386.c (processor_model): Add
30732         M_INTEL_COREI7_BROADWELL.
30733         (arch_names_table): Add "broadwell".
30734
30735 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
30736
30737         PR target/49263
30738         PR target/53987
30739         PR target/64345
30740         PR target/59533
30741         PR target/52933
30742         PR target/54236
30743         PR target/51244
30744         * config/sh/sh-protos.h
30745         (sh_extending_set_of_reg::can_use_as_unextended_reg,
30746         sh_extending_set_of_reg::use_as_unextended_reg,
30747         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30748         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30749         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30750         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30751         (sh_treg_insns): New class.
30752         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30753         (scope_counter): New class.
30754         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30755         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30756         sh_extending_set_of_reg::can_use_as_unextended_reg,
30757         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30758         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30759         sh_split_treg_set_expr): New functions.
30760         (addsubcosts): Handle treg_set_expr.
30761         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30762         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30763         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30764         (sh_insn_operands_modified_between_p): Make non-static.
30765         * config/sh/predicates.md (zero_extend_movu_operand): Allow
30766         simple_mem_operand in addition to displacement_mem_operand.
30767         (zero_extend_operand): Don't allow zero_extend_movu_operand.
30768         (treg_set_expr, treg_set_expr_not_const01,
30769         arith_reg_or_treg_set_expr): New predicates.
30770         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30771         arith_or_int_operand instead of logical_operand.  Convert to
30772         insn_and_split.  Try to optimize constant operand in splitter.
30773         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
30774         (*tstqi_t_zero): Delete.
30775         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30776         (tstsi_t_and_not): Delete.
30777         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30778         Convert to insn_and_split.
30779         (unnamed split, tstsi_t_zero_extract_xor,
30780         tstsi_t_zero_extract_subreg_xor_little,
30781         tstsi_t_zero_extract_subreg_xor_big): Delete.
30782         (*tstsi_t_shift_mask): New insn_and_split.
30783         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30784         to recombine with surrounding insns when splitting.
30785         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30786         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30787         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30788         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30789         (*cbranch_div0s: Delete.
30790         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30791         Try to recombine with surrounding insns when splitting.  Add operand
30792         order variants.
30793         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30794         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30795         *addc_r_r_msb, *addc_2r_msb): Delete.
30796         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
30797         order variant.
30798         (*addc_negreg_t): New insn_and_split.
30799         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30800         Try to recombine with surrounding insns when splitting.
30801         Add operand order variants.
30802         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30803         insn_and_split patterns.
30804         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
30805         surrounding insns when splitting.
30806         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30807         (*rotcl): Likewise.  Add zero_extract variant.
30808         (*ashrsi2_31): New insn_and_split.
30809         (*negc): Convert to insn_and_split.  Use treg_set_expr.
30810         (*zero_extend<mode>si2_disp_mem): Update comment.
30811         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30812         condition.
30813         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
30814         with surrounding insns when splitting.
30815         (any_treg_expr_to_reg): New insn_and_split.
30816         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30817         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30818         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30819         *zero_extract_2): New single bit zero extract patterns.
30820         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30821         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30822         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30823         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30824         set destination.
30825         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30826         register_operand for set source.
30827
30828 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
30829
30830         * i386.opt (prefetch_sse): New targetsave.
30831         * i386.c (ix86_function_specific_save): Save prefetch_sse.
30832         (ix86_function_specific_restore): Restore prefetch_sse and initialize
30833         ix86_cost/ix86_tune_cost.
30834
30835 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30836
30837         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30838         Support the JIT by using 0 as the language type.
30839
30840 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
30841
30842         PR target/64317
30843         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
30844         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30845         (mark_regno_live, process_bb_lives): Pass new parameter value to
30846         make_hard_regno_born.
30847
30848 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30849
30850         PR rtl-optimization/63637
30851         PR rtl-optimization/60663
30852         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30853         if elt->cost is MAX_COST for ASM_OPERANDS.
30854         (find_sets_in_insn): Fix up comment typo.
30855         (cse_insn): Don't set src_volatile for all non-volatile
30856         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30857         or with "memory" clobber.  Set elt->cost to MAX_COST
30858         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
30859         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30860
30861 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30862
30863         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30864         alternative 1.
30865
30866 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30867
30868         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30869         libgcc/config/i386/elf-lib.h.
30870
30871 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30872
30873         PR driver/64737
30874         * gcc.c (print_configuration): Don't print a blank line at the end
30875         here...
30876         (run_attempt): ... but here unstead.
30877
30878         PR middle-end/64734
30879         * omp-low.c (scan_sharing_clauses): Don't ignore
30880         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30881         on target data/update constructs.
30882
30883 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30884
30885         PR target/50928
30886         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30887         (DEBUG_RELOAD): Removed define.
30888         (m32c_limit_reload_class): Enable traces with if DEBUG0.
30889         (m32c_function_arg): Added a type cast.
30890         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30891         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30892         * config/m32c/bitops.md (andqi3_16): Likewise.
30893         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30894         (push_a01_l): Likewise.
30895
30896 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30897
30898         PR jit/64721
30899         * main.c (main): Construct toplev instances with init_signals=true.
30900         * toplev.c (general_init): Add param "init_signals", and use it to
30901         conditionalize the calls to signal and host_hooks.extra_signals.
30902         (toplev::toplev): Add param "init_signals".
30903         (toplev::main): When invoking general_init, pass m_init_signals
30904         to control whether signal-handlers are installed.
30905         * toplev.h (toplev::toplev): Add param "init_signals".
30906         (toplev::m_init_signals): New field.
30907
30908 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30909
30910         PR jit/64722
30911         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30912         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30913         latter may be affected by the former (e.g. on i686).
30914
30915 2015-01-23  Martin Liska  <mliska@suse.cz>
30916
30917         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30918         false positive during profiledbootstrap.
30919
30920 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30921
30922         PR libgomp/64672
30923         * lto-opts.c (lto_write_options): Output non-explicit conservative
30924         -fno-openacc.
30925         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30926         (append_compiler_options): Pass -fopenacc through.
30927
30928 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30929
30930         PR libgomp/64707
30931         * lto-opts.c (lto_write_options): Output non-explicit conservative
30932         -fno-openmp.
30933         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30934         (append_compiler_options): Pass -fopenmp through.
30935
30936 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30937
30938         PR debug/64511
30939         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30940         GTY markup.
30941
30942         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30943         * diagnostic.def (DK_ICE_NOBT): New kind.
30944         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30945         like DK_ICE, but never print backtrace.
30946         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30947         (internal_error_no_backtrace): New function.
30948         * gcc.c (execute): Use internal_error_no_backtrace instead of
30949         internal_error.
30950
30951 2015-01-22  Jeff Law  <law@redhat.com>
30952
30953         PR target/52076
30954         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
30955         improve code density for small immediate to memory case.
30956         (insv): Better handle bitfield assignments when the field is
30957         being set to all ones.
30958         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
30959         operand predicate.
30960
30961 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30962             Jakub Jelinek  <jakub@redhat.com>
30963
30964         PR middle-end/64729
30965         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
30966         for !TARGET_LIBC_PROVIDES_SSP version and
30967         -fstack-protector-{all,strong,explicit} otherwise.
30968         * config/freebsd.h (LINK_SSP_SPEC): Handle
30969         -fstack-protector-{strong,explicit}.
30970
30971 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
30972             H.J. Lu  <hongjiu.lu@intel.com>
30973
30974         PR ipa/64694
30975         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
30976         heap.
30977
30978 2015-01-22  Wei Mi  <wmi@google.com>
30979
30980         PR rtl-optimization/64557
30981         * dse.c (record_store): Call get_addr for mem_addr.
30982         (check_mem_read_rtx): Likewise.
30983
30984 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
30985
30986         * fold-const.c (const_binop): Add early return for non-tcc_binary.
30987
30988 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
30989
30990         * toplev.c (init_local_tick): Process the failure when read
30991         fails for random_seed.
30992
30993         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
30994         'pretty_name' to avoid memory overflow.
30995
30996 2015-01-22  Richard Biener  <rguenther@suse.de>
30997
30998         PR middle-end/64728
30999         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31000         abnormal coalescing on undefined SSA names.
31001
31002 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
31003
31004         PR target/64688
31005         PR target/64477
31006         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31007         for alternative 3.
31008         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31009
31010 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
31011
31012         PR middle-end/63325
31013         * fold-const.c (fold_checksum_tree): Don't include value of
31014         expr->decl_with_vis.symtab_node in the checksum.
31015
31016 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31017
31018         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31019
31020 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31021
31022         PR driver/64690
31023         * gcc.c (insert_comments): New function.
31024         (try_generate_repro): Call it.
31025         (append_text): Removed.
31026
31027 2015-01-22  Richard Biener  <rguenther@suse.de>
31028
31029         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31030         with IL incompatible options.  Properly honor user optimize
31031         attributes.
31032
31033 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
31034
31035         PR rtl-optimization/64682
31036         * combine.c (distribute_notes): When moving a death note for
31037         a register that is set in the new I2, make sure to put it
31038         before that new I2.
31039
31040 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
31041
31042         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31043         not TARGET_DEFAULT.
31044
31045 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
31046
31047         PR debug/64511
31048         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31049         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31050         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31051
31052         PR sanitizer/64706
31053         * doc/invoke.texi (-fsanitize=vptr): Document.
31054
31055         PR rtl-optimization/62078
31056         * dse.c: Include cfgcleanup.h.
31057         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31058         anything call purge_all_dead_edges and cleanup_cfg at the end
31059         of the pass.
31060
31061 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
31062
31063         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31064         edges.
31065
31066 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31067
31068         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31069         decl attribute.
31070
31071 2015-01-21  David Sherwood  <david.sherwood@arm.com>
31072             Tejas Belagod <Tejas.Belagod@arm.com>
31073
31074         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31075         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31076         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31077         Removed.
31078
31079 2015-01-21  David Sherwood  <david.sherwood@arm.com>
31080             Tejas Belagod <Tejas.Belagod@arm.com>
31081
31082         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31083         (aarch64_reverse_mask): New decls.
31084         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31085         (insn_count): New mode_attr.
31086         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31087         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31088         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31089         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31090         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31091         (aarch64_simd_st4): New patterns.
31092         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31093         (aarch64_reverse_mask): New functions.
31094
31095 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
31096
31097         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31098         Declare.
31099         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31100         addressing modes for BE.
31101         (aarch64_print_operand): Add 'R' specifier.
31102         (aarch64_simd_disambiguate_copy): Delete.
31103         (aarch64_simd_emit_reg_reg_move): New function.
31104         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31105         in define_splits for structural moves.
31106         (mov<mode>): Use less restrictive predicates.
31107         (*aarch64_mov<mode>): Simplify and only allow for LE.
31108         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31109
31110 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
31111
31112         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31113
31114 2015-01-21  Richard Henderson  <rth@redhat.com>
31115
31116         PR target/64669
31117         * ccmp.c (used_in_cond_stmt_p): Remove.
31118         (expand_ccmp_expr): Don't use it.
31119
31120 2015-01-21  Nick Clifton  <nickc@redhat.com>
31121
31122         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31123         PARALLELs.
31124
31125 2015-01-21  Richard Biener  <rguenther@suse.de>
31126
31127         PR middle-end/64313
31128         * tree-core.h (builtin_info, builtin_info_type): Turn from
31129         an object with two arrays into an array of an object with
31130         decl and two flags, implicit_p and declared_p.
31131         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31132         set_builtin_decl, set_builtin_decl_implicit_p,
31133         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31134         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31135         * builtins.c (builtin_info): Adjust.
31136         * gimplify.c (gimplify_addr_expr): References to builtins
31137         that have been declared by the user makes them eligible for
31138         use by the compiler.  Call set_builtin_decl_implicit_p on them.
31139
31140 2015-01-20  Jeff Law  <law@redhat.com>
31141
31142         PR target/59946
31143         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31144         allow pc-relative addresses in operand predicates or constraints.
31145
31146 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
31147
31148         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31149         neon on aarch32 processors for stringops.
31150
31151 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31152
31153         PR ipa/63576
31154         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31155
31156 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31157
31158         PR lto/45375
31159         * ipa-inline.c: Include lto-streamer.h
31160         (report_inline_failed_reason): Output source file differences and
31161         flags on optimization/target node mismatch.
31162         (can_inline_edge_p): Consider caller to be the outer inline function;
31163         be less restrictive about matching opimize and optimize_size attributes.
31164         (inline_account_function_p): Break out from ...
31165         (inline_small_functions): ... here.
31166         * ipa-inline-transform.c (clone_inlined_nodes): Use
31167         inline_account_function_p.
31168         (inline_call): Use optimize attribution; use inline_account_function_p.
31169         (inline_transform): Use opt_for_fn.
31170         * ipa-inline.h (inline_account_function_p): Declare.
31171
31172 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
31173
31174         PR debug/64663
31175         * dwarf2out.c (decl_piece_node): Don't put bitsize into
31176         mode if bitsize <= 0.
31177         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31178         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31179         sizes and positions.
31180
31181 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
31182
31183         * config/nios2/nios2.c (nios2_asm_file_end): Implement
31184         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31185         needed.
31186         (TARGET_ASM_FILE_END): Define.
31187
31188 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31189
31190         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31191         (struct tune_params): Use the enum.
31192         * arm.c (arm_*_tune): Update.
31193         (arm_option_override): Update.
31194
31195 2015-01-20  Richard Biener  <rguenther@suse.de>
31196
31197         PR ipa/64684
31198         * ipa-reference.c (add_static_var): Inline ...
31199         (analyze_function): ... here after splitting out from ...
31200         (is_proper_for_analysis): ... this.
31201
31202 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
31203
31204         PR target/64149
31205         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31206         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31207         replace the conditional with it's true branch.
31208         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31209         (arm_lra_p): Remove.
31210
31211 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
31212
31213         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31214
31215 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31216
31217         * config/tilegx/mul-tables.c: Move symtab.h include after
31218         coretypes.h include.
31219         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31220         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31221         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31222         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31223         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31224
31225 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
31226
31227         PR bootstrap/64676
31228         Revert:
31229         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31230
31231         PR rtl-optimization/64081
31232         * loop-iv.c (def_pred_latch_p): New function.
31233         (latch_dominating_def): Allow specific cases with non-single
31234         definitions.
31235         (iv_get_reaching_def): Likewise.
31236         (check_complex_exit_p): New function.
31237         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31238         with exits not executing on any iteration.
31239
31240 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31241
31242         PR lto/45375
31243         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31244         to set branch cost.
31245
31246 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31247
31248         PR lto/45375
31249         * i386.c (gate): Check flag_expensive_optimizations and
31250         optimize_size.
31251         (ix86_option_override_internal): Drop optimize_size condition
31252         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31253         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
31254         MASK_PREFER_AVX128.
31255         (ix86_avx256_split_vector_move_misalign,
31256         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
31257         * sse.md (all uses of TARGET_PREFER_AVX128): Add
31258         optimize_insn_for_speed_p check.
31259
31260 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
31261
31262         * config/mips/mips.h (FP_ASM_SPEC): New define.
31263         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
31264         instead.
31265
31266 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
31267
31268         PR target/53988
31269         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31270         nullptr for insn when reaching the first insn.
31271         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
31272         (sh_insn_operands_modified_between_p): Add nullptr check.
31273         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
31274         sign extending mem load if the insn contains any UNSPEC or
31275         UNSPEC_VOLATILE.
31276
31277 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31278
31279         * params.def (inline-unit-growth): Drop to 15%.
31280         * invoke.texi (inline-unit-growth): Document change.
31281
31282 2015-01-19  Martin Liska  <mliska@suse.cz>
31283
31284         PR ipa/64668
31285         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31286         function for second argument of OBJ_TYPE_REF.
31287
31288 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31289
31290         PR ipa/64218
31291         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31292         whether function is an alias.
31293
31294 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31295
31296         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31297         cases.
31298
31299 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
31300
31301         PR rtl-optimization/64671
31302         * lra-remat.c (operand_to_remat): Don't consider jump and call
31303         insns.
31304
31305 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
31306
31307         PR target/59828
31308         * config/rs6000/default64.h: Include rs6000-cpus.def.
31309         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31310         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31311         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31312         and POWER8.
31313         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31314         POWER8.
31315         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31316         pseudo-op to specify assembler dialect.
31317
31318 2015-01-19  Martin Liska  <mliska@suse.cz>
31319
31320         PR ipa/64664
31321         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31322         Handle safe potentially removed nodes during filtering.
31323
31324 2015-01-19  Martin Liska  <mliska@suse.cz>
31325
31326         * doc/extend.texi (no_icf): Add new attribute description.
31327         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31328         where the pass attempts to merge a function with no_icf attribute.
31329
31330 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31331
31332         PR target/64532
31333         * doc/md.texi (ARM Options): Document register constraints.
31334
31335 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
31336             Andrew Pinski  <apinski@cavium.com>
31337
31338         PR target/64304
31339         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31340         (ashl<mode>3): Don't expand if operands[2] is not constant.
31341
31342 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31343
31344         PR target/64448
31345         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31346         Match xor-and-xor RTL pattern.
31347
31348 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31349
31350         PR rtl-optimization/64081
31351         * loop-iv.c (def_pred_latch_p): New function.
31352         (latch_dominating_def): Allow specific cases with non-single
31353         definitions.
31354         (iv_get_reaching_def): Likewise.
31355         (check_complex_exit_p): New function.
31356         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31357         with exits not executing on any iteration.
31358
31359 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
31360
31361         * common.opt (fgraphite): Fix a typo.
31362
31363 2015-01-19  Felix Yang  <felix.yang@huawei.com>
31364
31365         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31366         pattern.
31367         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31368         uminp, smax_nanp, smin_nanp): New builtins.
31369         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31370         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31371         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31372         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31373         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31374         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31375         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31376         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31377         vpminnms_f32): Rewrite using builtin functions.
31378
31379 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
31380
31381         PR libgomp/64625
31382         * omp-low.c (offload_symbol_decl): Remove variable.
31383         (get_offload_symbol_decl): Remove function.
31384         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31385         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31386         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31387         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31388         BUILT_IN_GOACC_UPDATE don't pass it at all.
31389
31390 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31391
31392         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31393         callers.
31394
31395 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31396
31397         * ipa-chkp.c (chkp_produce_thunks): Add early param
31398         to split thunks production into two passes.  Keep
31399         'always_inline' function bodies after the first pass.
31400         (pass_data_ipa_chkp_early_produce_thunks): New.
31401         (pass_ipa_chkp_early_produce_thunks): New.
31402         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31403         chkp_produce_thunks signature.
31404         (make_pass_ipa_chkp_early_produce_thunks): New.
31405         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31406         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31407         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31408
31409 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31410
31411         * cgraph.c (cgraph_node::dump): Dump profile flags.
31412
31413 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
31414
31415         PR target/64652
31416         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31417         reg appear first in the parallel.
31418
31419 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31420
31421         * ipa-reference.c (set_reference_optimization_summary,
31422         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31423         disabled.
31424         (ignore_module_statics): New static var.
31425         (propagate_bits): If ipa-reference is disabled, do not look into local
31426         properties.
31427         (analyze_function): Disable analysis when ipa_reference is disabled.
31428         (generate_summary): Do not dump when reference is disabled;
31429         collect vars accessed from functions with ipa-reference disabled.
31430         (get_read_write_all_from_node): When ipa-reference is disabled, use the
31431         node flags.
31432         (gate): Enable for LTO.
31433         (ignore_edge_p): New function.
31434         (propagate): Skip functions w/o ipa-reference analysis.
31435         * optc-save-gen.awk: Handle optimize_debug correctly.
31436         * opth-gen.awk: Likewise.
31437         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31438         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31439         fira-share-save-slots, fira-share-spill-slots,
31440         fmodulo-sched-allow-regmoves, fpartial-inlining,
31441         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31442         ftracer, ftree-parallelize-loops, fassociative-math,
31443         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31444         Optimization
31445         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31446         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31447         Optimization.
31448         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31449         Fix for IPA.
31450
31451 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31452
31453         PR ipa/64378
31454         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31455         flag correctly.
31456         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31457
31458 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
31459
31460         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31461         Remove duplicate option listings.
31462
31463 2015-01-18  Felix Yang  <felix.yang@huawei.com>
31464
31465         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31466         (autofdo_source_profile::get_callsite_total_count,
31467         function_instance::get_function_instance_by_decl,
31468         string_table::get_index, string_table::get_index_by_decl,
31469         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31470         Fix comment typos. Reformatting and minor code rearrangement.
31471
31472 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31473
31474         * config/rs6000/rs6000.md (probe_stack): Delete.
31475         (probe_stack_address): New.
31476
31477 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31478
31479         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31480         to test for 32-bit ABIs, not !TARGET_POWERPC64.
31481
31482 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31483
31484         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31485         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
31486         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
31487         snafu.
31488         (rs6000_libcall_value): Use the new function.
31489
31490 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
31491
31492         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31493
31494 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
31495
31496         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31497         implement a more precise life analysis for it during backward scan.
31498
31499 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
31500
31501         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31502
31503 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
31504
31505         PR rtl-optimization/52773
31506         * calls.c (emit_library_call_value): When pushing arguments use
31507         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31508         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
31509         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31510
31511 2015-01-17  Jeff Law  <law@redhat.com>
31512
31513         PR rtl-optimization/32790
31514         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31515         not ZERO_EXTEND in SET_DESTs.
31516
31517 2015-01-17  Alan Modra  <amodra@gmail.com>
31518
31519         * cprop.c (do_local_cprop): Revert last change.
31520
31521 2015-01-16  DJ Delorie  <dj@redhat.com>
31522             Nick Clifton  <nickc@redhat.com>
31523
31524         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31525         (addhi3_real): Likewise.  Fix [HL+0] syntax.
31526         (subqi3_real): Likewise.
31527         (subhi3_real): Likewise.
31528         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
31529         (cbranchhi4_real): Likewise.
31530         (cbranchhi4_real_inverted): Likewise.
31531         (cbranchsi4_real_lt): Likewise.
31532         (cbranchsi4_real_ge): Likewise.
31533         (cbranchsi4_real_ge): Likewise.
31534         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31535         (sub<mode>3_virt): Likewise.
31536         (cbranchqi4_virt): Likewise.
31537         (cbranchhi4_virt): Likewise.
31538         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31539         always use '[reg+imm]' even when imm is zero.
31540         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31541         (rl78_general_operand): New.
31542         (rl78_nonimmediate_operand): New.
31543         (rl78_nonfar_operand): Use them.
31544         (rl78_nonfar_nonimm_operand): Likewise.
31545         (rl78_stack_based_mem): Fix.
31546         * config/rl78/constraints.md (Ibqi): New.
31547         (IBqi): New.
31548         (Wsa): New.
31549         (Wsf): New.
31550         (Cs1): Fix.
31551         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31552         (iorqi3): Likewise.
31553         (xorqi3): Likewise.
31554         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31555
31556         * config/rl78/constrains (Qs8): New constraint.
31557         * config/rl78/rl78.c (rl78_flags_already_set): New function.
31558         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31559         * config/rl78/rl78-real.md (update_Z): New attribute.
31560         Update patterns to set it.
31561         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31562         shorter compare and branch sequence can be used.
31563         (cbranchhi4_real): Likewise.
31564         (cbranchhi4_real_inverted): Likewise.
31565
31566         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31567         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31568         address space.
31569         * config/rl78/rl78.c (rl78_get_name_encoding): New.
31570         (rl78_option_override): Allow -mes0 only if C.
31571         (characterize_address): Support subregs of symbol_refs.
31572         (rl78_addr_space_address_mode): Move.  Add __near.
31573         (rl78_far_p): Likewise.
31574         (rl78_addr_space_pointer_mode): Likewise.
31575         (rl78_as_legitimate_address): Likewise.
31576         (rl78_addr_space_subset_p): Likewise.
31577         (rl78_addr_space_convert): Likewise.
31578         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31579         symbols with -mes0.
31580         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
31581         addressing.
31582         (rl78_alloc_physical_registers_op1): Change logic to prefer
31583         symbol[BC] addressing.
31584         (frodata_section): New.
31585         (rl78_asm_init_sections): Initialize it.
31586         (rl78_select_section): Put __far readonly symbols in .frodata.
31587         (rl78_make_type_far): New.
31588         (rl78_insert_attributes): Force all readonly symbols to be
31589         __far when -mes0.
31590         (rl78_asm_out_integer): New.
31591         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31592         * config/rl78/rl78.opt (-mes0): New.
31593
31594         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31595         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31596         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31597         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31598         (rl78_saddr_p): New.
31599         (rl78_output_aligned_common): New.
31600         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31601         (rl78_handle_saddr_attribute): New.
31602         (rl78_handle_naked_attribute): New.
31603         (rl78_attribute_table): Add saddr.
31604         (rl78_print_operand_1): Don't print '!' on saddr operands.
31605         (rl78_print_operand_1): Strip encodings.
31606         (rl78_sfr_p): New.
31607         (rl78_strip_name_encoding): New.
31608         (rl78_attrlist_to_encoding): New.
31609         (rl78_encode_section_info): New.
31610         (rl78_asm_init_sections): New.
31611         (rl78_select_section): New.
31612         (rl78_output_labelref): New.
31613         (rl78_output_aligned_common): New.
31614         (rl78_asm_out_integer): New.
31615         (rl78_asm_ctor_dtor): New.
31616         (rl78_asm_constructor): New.
31617         (rl78_asm_destructor): New.
31618
31619         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31620         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31621         (transcode_memory_rtx): Update.
31622         (rl78_expand_epilogue): Use A_REG instead of 0.
31623
31624 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31625
31626         * config/arm/arm-protos.h (struct tune_params): New field
31627         sched_autopref_queue_depth.
31628         * config/arm/arm.c (sched-int.h): Include header.
31629         (arm_first_cycle_multipass_dfa_lookahead_guard,)
31630         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31631         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31632         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31633         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31634         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31635         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31636         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31637         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
31638         * config/arm/t-arm (arm.o): Update.
31639         * haifa-sched.c (update_insn_after_change): Update.
31640         (rank_for_schedule): Use auto-prefetcher model, if requested.
31641         (autopref_multipass_init): New static function.
31642         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31643         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31644         variable for debug dumps.
31645         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31646         (autopref_multipass_dfa_lookahead_guard): New global function that
31647         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31648         (init_h_i_d): Update.
31649         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31650         * sched-int.h (enum autopref_multipass_data_status): New const enum.
31651         (autopref_multipass_data_): Structure for auto-prefetcher data.
31652         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31653         (struct _haifa_insn_data:autopref_multipass_data): New field.
31654         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31655         (autopref_multipass_dfa_lookahead_guard): Declare.
31656
31657 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31658
31659         * rtlanal.c (get_base_term): Handle SCRATCH.
31660
31661 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31662
31663         * config/aarch64/aarch64.c
31664         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31665         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31666         * config/arm/arm.c
31667         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31668         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31669
31670 2015-01-17  Alan Modra  <amodra@gmail.com>
31671
31672         * cprop.c (do_local_cprop): Disallow replacement of fixed
31673         hard registers.
31674
31675 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31676
31677         PR target/62066
31678         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31679         early return 0.
31680
31681 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31682
31683         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31684         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31685
31686 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31687
31688         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31689         * config/arm/thumb1.md: ... Here.
31690
31691 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31692
31693         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31694         TImode for TARGET_32BIT.
31695
31696 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31697
31698         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31699         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31700         as ...
31701         (rs6000_abi_word_mode): New function.
31702
31703 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31704
31705         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31706         instead of UNITS_PER_WORD to describe the size of stack slots.
31707
31708 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31709
31710         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31711         as rs6000_promote_function_mode.  Move comment to there.
31712         (rs6000_promote_function_mode): New function.
31713
31714 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31715
31716         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31717         -mpowerpc64 is active.
31718
31719 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31720
31721         PR middle-end/64353
31722         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31723         virtuals on start.
31724
31725 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31726
31727         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31728         introduced in revision 219724.
31729
31730 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31731             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31732
31733         PR target/64263
31734         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31735         destination is not a GP reg.
31736         (*movdi_aarch64): Likewise.
31737
31738 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
31739
31740         PR target/64623
31741         * config/rs6000/default64.h: Revert ISA change.
31742
31743 2015-01-16  Richard Biener  <rguenther@suse.de>
31744
31745         PR middle-end/64614
31746         * tree-ssa-uninit.c: Include tree-cfg.h.
31747         (MAX_SWITCH_CASES): New define.
31748         (convert_control_dep_chain_into_preds): Handle switch statements.
31749         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31750         (normalize_one_pred_1): Do not split bit-manipulations.
31751         Record (x & CST).
31752
31753 2015-01-16  Richard Biener  <rguenther@suse.de>
31754
31755         PR tree-optimization/64568
31756         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31757         complex load rewriting for TARGET_MEM_REFs.
31758
31759 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
31760
31761         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31762
31763 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
31764
31765         PR target/64149
31766         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31767         variable.
31768         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31769         (aarch64_lra_p): Remove.
31770
31771 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31772
31773         PR target/64363
31774         * ipa-chkp.h (chkp_instrumentable_p): New.
31775         * ipa-chkp.c: Include tree-inline.h.
31776         (chkp_instrumentable_p): New.
31777         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31778         Fix processing of not instrumentable functions.
31779         (chkp_versioning): Use chkp_instrumentable_p. Warn about
31780         not instrumentable functions.
31781         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31782         chkp_instrumentable_p.
31783         * tree-inline.h (copy_forbidden): New.
31784         * tree-inline.c (copy_forbidden): Not static anymore.
31785
31786 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31787
31788         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31789         ptr1, ptr2 unused.
31790
31791 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31792
31793         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31794         type OP_OUT to OP_INOUT.
31795
31796 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31797
31798         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31799         (high x) y) to y if x and y have the same base.
31800
31801 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31802
31803         * config/arm/cortex-a57.md: New.
31804         * config/aarch64/aarch64.md: Include it.
31805         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31806         * config/aarch64/aarch64-tune.md: Regenerate.
31807
31808 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31809
31810         PR target/64015
31811         * ccmp.c (expand_ccmp_next): New function.
31812         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31813         and compare insn sequence.
31814         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31815         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31816         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31817         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31818         (*ccmp_ior): Changed to ccmp_ior<mode>.
31819         (cmp<mode>): New pattern.
31820         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31821         parameters.
31822         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31823
31824 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
31825
31826         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31827         _mm256_bsrli_epi128): New.
31828         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31829
31830 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31831
31832         * expmed.c (store_bit_field_using_insv): Improve warning message.
31833         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31834
31835 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31836
31837         PR rtl-optimization/64011
31838         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31839         there is partial overflow.
31840
31841 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31842
31843         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31844         prototype.
31845         (nds32_expand_epilogue_v3pop): Likewise.
31846         * config/nds32/nds32.md (sibcall): Define this for sibling call
31847         optimization.
31848         (sibcall_register): Likewise.
31849         (sibcall_immediate): Likewise.
31850         (sibcall_value): Likewise.
31851         (sibcall_value_register): Likewise.
31852         (sibcall_value_immediate): Likewise.
31853         (sibcall_epilogue): Likewise.
31854         (epilogue): Pass false to indicate this is not a sibcall epilogue.
31855         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31856         (nds32_expand_epilogue_v3pop): Likewise.
31857
31858 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31859
31860         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31861         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31862         (return_internal): New.
31863         (return): Define this named pattern.
31864         (simple_return): Define this named pattern.
31865         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31866         pattern instead of unspec_volatile_func_return.
31867         (nds32_expand_epilogue_v3pop): Likewise.
31868         (nds32_can_use_return_insn): New function.
31869
31870 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31871
31872         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31873         * config/nds32/nds32.md (pop25return): New.
31874         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31875         pop25return pattern.
31876
31877 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31878
31879         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31880         -mforbid-fp-as-gp, and -mex9 options.
31881
31882 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31883
31884         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31885         remove -mgp-direct option.
31886
31887 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31888
31889         * doc/invoke.texi (--param early-inlining-insns): Update default value.
31890         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31891
31892 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31893
31894         * ipa-inline.c (inline_small_functions): Work around hints
31895         cache issue.
31896
31897 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
31898
31899         PR target/59710
31900         * doc/invoke.texi (Option Summary): Document new Nios II
31901         -mgpopt= syntax.
31902         (Nios II Options): Likewise.
31903         * config/nios2/nios2.opt: Add -mgpopt= option support.
31904         Modify existing -mgpopt and -mno-gpopt options to be aliases.
31905         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31906         * config/nios2/nios2.c (nios2_option_override): Adjust
31907         -mgpopt defaulting.
31908         (nios2_in_small_data_p): Return true for explicit small data
31909         sections even with -G0.
31910         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31911         option choices.
31912
31913 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31914
31915         PR ipa/64612
31916         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31917         of comdat locals.
31918         (inline_call): Fix removal of aliases.
31919
31920 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
31921
31922         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31923         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31924         * opts.c (common_handle_option): Add -fsanitize=vptr.
31925         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31926         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31927         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31928         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31929         (ubsan_expand_vptr_ifn): New prototype.
31930         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31931         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31932         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31933         expand_LOOP_VECTORIZED): Make argument nameless, remove
31934         ATTRIBUTE_UNUSED.
31935         (expand_UBSAN_VPTR): New function.
31936         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31937         in fn spec.
31938         (UBSAN_VPTR): New internal function.
31939         * sanopt.c (tree_map_traits): Renamed to ...
31940         (sanopt_tree_map_traits): ... this.
31941         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31942         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31943         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
31944         (maybe_optimize_ubsan_vptr_ifn): New function.
31945         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31946         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
31947         -fsanitize=vptr.
31948         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31949         internal calls like pure functions for aliasing, even when they
31950         have other side-effects that prevent making them ECF_PURE.
31951         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
31952         (ubsan_expand_vptr_ifn): New function.
31953
31954 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
31955
31956         PR rtl-optimization/64110
31957         * stmt.c (parse_output_constraint): Process '^' and '$'.
31958         (parse_input_constraint): Ditto.
31959         * lra-constraints.c (process_alt_operands): Process the new
31960         constraints.
31961         * ira-costs.c (record_reg_classes): Process the new constraint
31962         '^'.
31963         * genoutput.c (indep_constraints): Add '^' and '$'.
31964         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
31965         * doc/md.texi: Add description of the new constraints.
31966
31967 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
31968             Bernd Schmidt  <bernds@codesourcery.com>
31969             Cesar Philippidis  <cesar@codesourcery.com>
31970             James Norris  <jnorris@codesourcery.com>
31971             Tom de Vries  <tom@codesourcery.com>
31972             Ilmir Usmanov  <i.usmanov@samsung.com>
31973             Dmitry Bocharnikov  <dmitry.b@samsung.com>
31974             Evgeny Gavrin  <e.gavrin@samsung.com>
31975             Jakub Jelinek  <jakub@redhat.com>
31976
31977         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
31978         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31979         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31980         New function types.
31981         * builtins.c: Include "gomp-constants.h".
31982         (expand_builtin_acc_on_device): New function.
31983         (expand_builtin, is_inexpensive_builtin): Handle
31984         BUILT_IN_ACC_ON_DEVICE.
31985         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
31986         New macros.
31987         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
31988         flag_openmp.
31989         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
31990         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
31991         i386/intelmic-offload.h.
31992         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
31993         to libgomp and its dependencies.
31994         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
31995         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
31996         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
31997         * config/ia64/hpux.h (LIB_SPEC): Likewise.
31998         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31999         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32000         * doc/generic.texi: Update for OpenACC changes.
32001         * doc/gimple.texi: Likewise.
32002         * doc/invoke.texi: Likewise.
32003         * doc/sourcebuild.texi: Likewise.
32004         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32005         GF_OMP_FOR_KIND_OACC_LOOP.
32006         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32007         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32008         GF_OMP_TARGET_KIND_OACC_UPDATE,
32009         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32010         Dump more data.
32011         * gimple.c: Update comments for OpenACC changes.
32012         * gimple.def: Likewise.
32013         * gimple.h: Likewise.
32014         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32015         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32016         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32017         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32018         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32019         appropriate place.
32020         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32021         * gimplify.c: Include "gomp-constants.h".
32022         Update comments for OpenACC changes.
32023         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32024         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32025         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32026         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32027         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32028         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32029         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32030         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32031         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32032         OMP_CLAUSE_SEQ.
32033         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32034         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
32035         OMP_CLAUSE_SET_MAP_KIND.
32036         (gimplify_oacc_cache): New function.
32037         (gimplify_omp_for): Handle OACC_LOOP.
32038         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32039         OACC_DATA.
32040         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32041         OACC_EXIT_DATA, OACC_UPDATE.
32042         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32043         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32044         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32045         (gimplify_body): Consider flag_openacc next to flag_openmp.
32046         * lto-streamer-out.c: Include "gomp-constants.h".
32047         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32048         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32049         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32050         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32051         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32052         (BUILT_IN_ACC_ON_DEVICE): New builtins.
32053         * omp-low.c: Include "gomp-constants.h".
32054         Update comments for OpenACC changes.
32055         (struct omp_context): Add reduction_map, gwv_below, gwv_this
32056         members.
32057         (extract_omp_for_data, use_pointer_for_field, install_var_field)
32058         (new_omp_context, delete_omp_context, scan_sharing_clauses)
32059         (create_omp_child_function, scan_omp_for, scan_omp_target)
32060         (check_omp_nesting_restrictions, lower_reduction_clauses)
32061         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32062         Update for OpenACC changes.
32063         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32064         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32065         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32066         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32067         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32068         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
32069         OMP_CLAUSE_MAP_*.
32070         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32071         Handle GF_OMP_FOR_KIND_OACC_LOOP.
32072         (expand_omp_target, lower_omp_target): Handle
32073         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32074         GF_OMP_TARGET_KIND_OACC_UPDATE,
32075         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32076         GF_OMP_TARGET_KIND_OACC_DATA.
32077         (pass_expand_omp::execute, execute_lower_omp)
32078         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32079         flag_openmp.
32080         (offload_symbol_decl): New variable.
32081         (oacc_get_reduction_array_id, oacc_max_threads)
32082         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32083         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32084         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32085         (oacc_gimple_assign, oacc_initialize_reduction_data)
32086         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32087         functions.
32088         (is_targetreg_ctx): Remove function.
32089         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32090         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32091         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32092         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32093         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32094         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32095         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32096         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32097         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32098         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32099         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32100         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32101         * tree-core.h: Update comments for OpenACC changes.
32102         (enum omp_clause_map_kind): Remove.
32103         (struct tree_omp_clause): Change type of map_kind member from enum
32104         omp_clause_map_kind to unsigned char.
32105         * tree-inline.c: Update comments for OpenACC changes.
32106         * tree-nested.c: Likewise.  Include "gomp-constants.h".
32107         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32108         (convert_tramp_reference_stmt, convert_gimple_call): Update for
32109         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
32110         OMP_CLAUSE_SET_MAP_KIND.
32111         * tree-pretty-print.c: Include "gomp-constants.h".
32112         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32113         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32114         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32115         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32116         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32117         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
32118         instead of OMP_CLAUSE_MAP_*.
32119         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32120         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32121         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32122         * tree-streamer-in.c: Include "gomp-constants.h".
32123         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32124         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
32125         * tree-streamer-out.c: Include "gomp-constants.h".
32126         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32127         OMP_CLAUSE_MAP_*.
32128         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32129         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32130         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32131         * tree.c (omp_clause_num_ops): Update accordingly.
32132         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32133         Likewise.
32134         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32135         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32136         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32137         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32138         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32139         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32140         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32141         (OMP_CLAUSE_SET_MAP_KIND): New macro.
32142         * varpool.c (varpool_node::get_create): Consider flag_openacc next
32143         to flag_openmp.
32144         * config/i386/intelmic-offload.h: New file.
32145         * config/nvptx/offload.h: Likewise.
32146
32147 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32148
32149         * explow.h: Remove duplicate contents.
32150         * dojump.h: Likewise.
32151
32152 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
32153
32154         * arm.c (arm_xgene_tune): Add default initializer for instruction
32155         fusion.
32156
32157 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
32158
32159         PR ipa/64068
32160         PR ipa/64559
32161         * ipa.c (symbol_table::remove_unreachable_nodes):
32162         Do not put abstract origins into boundary.
32163
32164 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
32165
32166         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32167         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32168
32169 2015-01-15  Steve Ellcey  <sellcey@mips.com>
32170
32171         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32172         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32173         builtins.def, and chkp-builtins.def.
32174
32175 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
32176
32177         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32178         ISA 2.7 (POWER8).
32179
32180 2015-01-15  Richard Biener  <rguenther@suse.de>
32181
32182         PR tree-optimization/61743
32183         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32184         information on PHIs for some simple cases.
32185
32186 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32187
32188         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32189         Include xgene1.md.
32190         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32191         * config/arm/arm-cores.def (xgene1): New entry.
32192         * config/arm/arm-tables.opt: Regenerate.
32193         * config/arm/arm-tune.md: Regenerate.
32194         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32195
32196 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32197
32198         * tree-if-conv.c: Include hash-map.h.
32199         (aggressive_if_conv): New variable.
32200         (fold_build_cond_expr): Add simplification of non-zero condition.
32201         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32202         destination block is not always executed.
32203         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32204         than two predecessors if AGGRESSIVE_IF_CONV is true.
32205         (if_convertible_stmt_p): Fix commentary.
32206         (all_preds_critical_p): New function.
32207         (has_pred_critical_p): New function.
32208         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32209         BB can have more than two predecessors and all incoming edges can be
32210         critical.
32211         (predicate_bbs): Skip predication for loop exit block, use build2_loc
32212         to compute predicate for true edge.
32213         (find_phi_replacement_condition): Delete this function.
32214         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32215         Allow interchange PHI arguments if EXTENDED is false.
32216         Change check that block containing reduction statement candidate
32217         is predecessor of phi-block since phi may have more than two arguments.
32218         (phi_args_hash_traits): New helper structure.
32219         (struct phi_args_hash_traits): New type.
32220         (phi_args_hash_traits::hash): New function.
32221         (phi_args_hash_traits::equal_keys): New function.
32222         (gen_phi_arg_condition): New function.
32223         (predicate_scalar_phi): Add handling of phi nodes with more than two
32224         arguments, delete COND and TRUE_BB arguments, insert body of
32225         find_phi_replacement_condition to predicate ordinary phi nodes.
32226         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32227         delete call of find_phi_replacement_condition and invoke
32228         predicate_scalar_phi with two arguments.
32229         (insert_gimplified_predicates): Add assert that non-predicated block
32230         don't have statements to insert.
32231         (ifcvt_split_critical_edges): New function.
32232         (ifcvt_split_def_stmt): Likewise.
32233         (ifcvt_walk_pattern_tree): Likewise.
32234         (stmt_is_root_of_bool_pattern): Likewise.
32235         (ifcvt_repair_bool_pattern): Likewise.
32236         (ifcvt_local_dce): Likewise.
32237         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32238         is copy of inner or outer loop force_vectorize field, invoke
32239         ifcvt_split_critical_edges, ifcvt_local_dce and
32240         ifcvt_repair_bool_pattern for aggressive if-conversion.
32241
32242 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
32243
32244         * config/aarch64/aarch64.md: Include xgene1.md.
32245         * config/aarch64/xgene1.md: New file.
32246
32247 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32248
32249         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32250         xgene1 (APM XGene-1) core definition.
32251         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32252         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32253         * doc/invoke.texi: Document -mcpu=xgene1.
32254
32255 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32256
32257         * dojump.h: New header file.
32258         * explow.h: Likewise.
32259         * expr.h: Remove includes.
32260         Move expmed.c prototypes to expmed.h.
32261         Move dojump.c prototypes to dojump.h.
32262         Move alias.c prototypes to alias.h.
32263         Move explow.c prototypes to explow.h.
32264         Move calls.c prototypes to calls.h.
32265         Move emit-rtl.c prototypes to emit-rtl.h.
32266         Move varasm.c prototypes to varasm.h.
32267         Move stmt.c prototypes to stmt.h.
32268         (saved_pending_stack_adjust): Move to dojump.h.
32269         (adjust_address): Move to explow.h.
32270         (adjust_address_nv): Move to emit-rtl.h.
32271         (adjust_bitfield_address): Likewise.
32272         (adjust_bitfield_address_size): Likewise.
32273         (adjust_bitfield_address_nv): Likewise.
32274         (adjust_automodify_address_nv): Likewise.
32275         * explow.c (expr_size): Move to expr.c.
32276         (int_expr_size): Likewise.
32277         (tree_expr_size): Likewise.
32278         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32279         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32280         * genemit.c (main): Generate includes statistics.h, real.h,
32281         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32282         stmt.h.
32283         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32284         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32285         explow.h, emit-rtl.h, stmt.h.
32286         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32287         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32288         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32289         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32290         emit-rtl.h, varasm.h, stmt.h.
32291         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32292         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32293         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32294         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32295         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32296         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32297         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32298         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32299         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32300         tm.h tree.h varasm.h vec.h wide-int.h.
32301         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32302         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32303         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32304         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32305         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32306         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32307         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32308         * loop-iv.c: Likewise.
32309         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32310         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32311         statistics.h stmt.h tree.h varasm.h wide-int.h.
32312         * lra-constraints.c: Likewise.
32313         * lra-eliminations.c: Likewise.
32314         * lra-lives.c: Likewise.
32315         * lra-remat.c: Likewise.
32316         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32317         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32318         statistics.h stmt.h tree.h varasm.h wide-int.h.
32319         * hw-doloop.c: Likewise.
32320         * ira-color.c: Likewise.
32321         * ira-emit.c: Likewise.
32322         * loop-doloop.c: Likewise.
32323         * loop-invariant.c: Likewise.
32324         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32325         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32326         statistics.h stmt.h tree.h varasm.h wide-int.h.
32327         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32328         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32329         statistics.h stmt.h tree.h varasm.h wide-int.h.
32330         * combine-stack-adj.c: Likewise.
32331         * cse.c: Likewise.
32332         * ddg.c: Likewise.
32333         * ifcvt.c: Likewise.
32334         * ira-costs.c: Likewise.
32335         * jump.c: Likewise.
32336         * lra-coalesce.c: Likewise.
32337         * lra-spills.c: Likewise.
32338         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32339         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32340         stmt.h varasm.h wide-int.h.
32341         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32342         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32343         varasm.h.
32344         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32345         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32346         statistics.h stmt.h varasm.h wide-int.h.
32347         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32348         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32349         varasm.h wide-int.h.
32350         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32351         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32352         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32353         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32354         statistics.h stmt.h.
32355         * config/tilepro/tilepro.c: Likewise.
32356         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32357         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32358         * config/pdp11/pdp11.c: Likewise.
32359         * config/xtensa/xtensa.c: Likewise.
32360         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32361         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32362         varasm.h.
32363         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32364         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32365         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32366         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32367         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32368         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32369         * rtl-chkp.c: Likewise.
32370         * tree-chkp-opt.c: Likewise.
32371         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32372         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32373         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32374         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32375         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32376         statistics.h stmt.h.
32377         * tree-vect-data-refs.c: Likewise.
32378         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32379         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32380         rtl.h statistics.h stmt.h varasm.h.
32381         * internal-fn.c: Likewise.
32382         * ipa-icf-gimple.c: Likewise.
32383         * lto-section-out.c: Likewise.
32384         * tree-data-ref.c: Likewise.
32385         * tree-nested.c: Likewise.
32386         * tree-outof-ssa.c: Likewise.
32387         * tree-predcom.c: Likewise.
32388         * tree-pretty-print.c: Likewise.
32389         * tree-scalar-evolution.c: Likewise.
32390         * tree-ssa-strlen.c: Likewise.
32391         * tree-vect-loop.c: Likewise.
32392         * tree-vect-patterns.c: Likewise.
32393         * tree-vect-slp.c: Likewise.
32394         * tree-vect-stmts.c: Likewise.
32395         * tsan.c: Likewise.
32396         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32397         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32398         stmt.h.
32399         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32400         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32401         statistics.h stmt.h varasm.h.
32402         * loop-unroll.c: Likewise.
32403         * ubsan.c: Likewise.
32404         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32405         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32406         stmt.h varasm.h.
32407         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32408         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32409         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32410         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32411         statistics.h stmt.h.
32412         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32413         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32414         statistics.h stmt.h varasm.h.
32415         * gimple-match-head.c: Likewise.
32416         * lto-cgraph.c: Likewise.
32417         * lto-section-in.c: Likewise.
32418         * lto-streamer-in.c: Likewise.
32419         * lto-streamer-out.c: Likewise.
32420         * tree-affine.c: Likewise.
32421         * tree-cfg.c: Likewise.
32422         * tree-cfgcleanup.c: Likewise.
32423         * tree-if-conv.c: Likewise.
32424         * tree-into-ssa.c: Likewise.
32425         * tree-ssa-alias.c: Likewise.
32426         * tree-ssa-copyrename.c: Likewise.
32427         * tree-ssa-dse.c: Likewise.
32428         * tree-ssa-forwprop.c: Likewise.
32429         * tree-ssa-live.c: Likewise.
32430         * tree-ssa-math-opts.c: Likewise.
32431         * tree-ssa-pre.c: Likewise.
32432         * tree-ssa-sccvn.c: Likewise.
32433         * tree-tailcall.c: Likewise.
32434         * tree-vect-generic.c: Likewise.
32435         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32436         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32437         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32438         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32439         * varasm.c: Likewise.
32440         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32441         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32442         varasm.h.
32443         * init-regs.c: Likewise.
32444         * ira.c: Likewise.
32445         * omp-low.c: Likewise.
32446         * stack-ptr-mod.c: Likewise.
32447         * tree-ssa-reassoc.c: Likewise.
32448         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32449         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32450         varasm.h.
32451         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32452         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32453         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32454         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32455         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32456         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32457         * tree-ssa-phiopt.c: Likewise.
32458         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32459         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32460         * config/fr30/fr30.c: Likewise.
32461         * config/frv/frv.c: Likewise.
32462         * expr.c: Likewise.
32463         * final.c: Likewise.
32464         * optabs.c: Likewise.
32465         * passes.c: Likewise.
32466         * simplify-rtx.c: Likewise.
32467         * stmt.c: Likewise.
32468         * toplev.c: Likewise.
32469         * var-tracking.c: Likewise.
32470         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32471         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32472         * lower-subreg.c: Likewise.
32473         * postreload-gcse.c: Likewise.
32474         * ree.c: Likewise.
32475         * reginfo.c: Likewise.
32476         * store-motion.c: Likewise.
32477         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32478         fixed-value.h hashtab.h real.h stmt.h varasm.h.
32479         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32480         fixed-value.h hashtab.h statistics.h stmt.h.
32481         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32482         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32483         * except.c: Likewise.
32484         * explow.c: Likewise.
32485         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32486         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32487         varasm.h.
32488         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32489         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32490         * tree-ssa-structalias.c: Likewise.
32491         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32492         fixed-value.h insn-config.h real.h statistics.h.
32493         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32494         fixed-value.h insn-config.h real.h statistics.h stmt.h.
32495         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32496         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32497         * cfgbuild.c: Likewise.
32498         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32499         fixed-value.h real.h rtl.h statistics.h stmt.h.
32500         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32501         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32502         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32503         fixed-value.h real.h statistics.h stmt.h.
32504         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32505         fixed-value.h real.h statistics.h stmt.h varasm.h.
32506         * cprop.c: Likewise.
32507         * modulo-sched.c: Likewise.
32508         * postreload.c: Likewise.
32509         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32510         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32511         statistics.h stmt.h varasm.h.
32512         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32513         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32514         rtl.h statistics.h stmt.h varasm.h.
32515         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32516         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32517         varasm.h.
32518         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32519         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32520         varasm.h.
32521         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32522         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32523         varasm.h.
32524         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32525         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32526         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32527         function.h real.h statistics.h stmt.h varasm.h.
32528         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32529         insn-config.h real.h statistics.h stmt.h.
32530         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32531         statistics.h stmt.h.
32532         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32533         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32534         statistics.h stmt.h varasm.h.
32535         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32536         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32537         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32538         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32539         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32540         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32541         statistics.h stmt.h varasm.h.
32542         * ipa-polymorphic-call.c: Likewise.
32543         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32544         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32545         statistics.h stmt.h.
32546         * config/c6x/c6x.c: Likewise.
32547         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32548         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32549         statistics.h stmt.h varasm.h.
32550         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32551         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32552         stmt.h varasm.h.
32553         * ipa-split.c: Likewise.
32554         * tree-eh.c: Likewise.
32555         * tree-ssa-dce.c: Likewise.
32556         * tree-ssa-loop-niter.c: Likewise.
32557         * tree-vrp.c: Likewise.
32558         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32559         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32560         stmt.h.
32561         * config/nds32/nds32-fp-as-gp.c: Likewise.
32562         * config/nds32/nds32-intrinsic.c: Likewise.
32563         * config/nds32/nds32-isr.c: Likewise.
32564         * config/nds32/nds32-md-auxiliary.c: Likewise.
32565         * config/nds32/nds32-memory-manipulation.c: Likewise.
32566         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32567         * config/nds32/nds32-predicates.c: Likewise.
32568         * config/nds32/nds32.c: Likewise.
32569         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32570         fixed-value.h hashtab.h real.h statistics.h.
32571         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32572         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32573         * config/arm/arm.c: Likewise.
32574         * config/avr/avr.c: Likewise.
32575         * config/bfin/bfin.c: Likewise.
32576         * config/h8300/h8300.c: Likewise.
32577         * config/i386/i386.c: Likewise.
32578         * config/ia64/ia64.c: Likewise.
32579         * config/iq2000/iq2000.c: Likewise.
32580         * config/m32c/m32c.c: Likewise.
32581         * config/m32r/m32r.c: Likewise.
32582         * config/m68k/m68k.c: Likewise.
32583         * config/mcore/mcore.c: Likewise.
32584         * config/mep/mep.c: Likewise.
32585         * config/mips/mips.c: Likewise.
32586         * config/mn10300/mn10300.c: Likewise.
32587         * config/moxie/moxie.c: Likewise.
32588         * config/pa/pa.c: Likewise.
32589         * config/rl78/rl78.c: Likewise.
32590         * config/rx/rx.c: Likewise.
32591         * config/s390/s390.c: Likewise.
32592         * config/sh/sh.c: Likewise.
32593         * config/sparc/sparc.c: Likewise.
32594         * config/spu/spu.c: Likewise.
32595         * config/stormy16/stormy16.c: Likewise.
32596         * config/v850/v850.c: Likewise.
32597         * config/vax/vax.c: Likewise.
32598         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32599         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32600         * config/msp430/msp430.c: Likewise.
32601         * predict.c: Likewise.
32602         * value-prof.c: Likewise.
32603         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32604         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32605         * config/microblaze/microblaze.c: Likewise.
32606         * config/nios2/nios2.c: Likewise.
32607         * config/rs6000/rs6000.c: Likewise.
32608         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32609         insn-config.h real.h rtl.h statistics.h stmt.h.
32610         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32611         insn-config.h real.h statistics.h stmt.h.
32612         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32613         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32614         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32615         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32616         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32617         fixed-value.h real.h statistics.h stmt.h.
32618         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32619         fixed-value.h statistics.h stmt.h.
32620         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32621         stmt.h.
32622
32623 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
32624
32625         * gengtype.c (create_user_defined_type): Workaround
32626         -Wmaybe-uninitialized false positives.
32627         * cse.c (fold_rtx): Likewise.
32628         * loop-invariant.c (gain_for_invariant): Likewise.
32629
32630 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
32631
32632         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32633         set the memory attributes in all cases but clear MEM_EXPR if need be.
32634
32635 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32636
32637         PR tree-optimization/64434
32638         * cfgexpand.c (reorder_operands): New function.
32639         (expand_gimple_basic_block): Insert call of reorder_operands if
32640         optimized is true.
32641
32642 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
32643
32644         * config/mips/micromips.md (*swp): Remove explicit parallel.
32645         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32646         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32647         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32648         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32649         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32650         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32651         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32652         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32653         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32654         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32655         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32656         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32657         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32658         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32659         (mips_wrdsp): Likewise.
32660         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32661         parallel.
32662         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32663         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32664         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32665         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32666         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32667         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32668         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32669         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32670         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32671
32672 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32673
32674         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32675         (mips_print_operand): Support 'y' to print exact log2 in decimal
32676         of a const_int.
32677         * config/mips/mips.h (ISA_HAS_LSA): New define.
32678         (ISA_HAS_DLSA): Likewise.
32679         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32680         * config/mips/predicates.md (const_immlsa_operand): New predicate.
32681
32682 2015-01-15  Martin Liska  <mliska@suse.cz>
32683
32684         PR target/64377
32685         * optc-save-gen.awk: Add support for array types.
32686
32687 2015-01-15  Richard Biener  <rguenther@suse.de>
32688
32689         PR middle-end/64365
32690         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32691         for MEM_REF access functions with the same base can never partially
32692         overlap.
32693
32694 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
32695
32696         * common.opt: New option -fstack-protector-explicit.
32697         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32698         (stack_protect_decl_phase): Handle stack_protect attribute for
32699         explicit stack protection requests.
32700         (expand_used_vars): Similarly.
32701         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32702         * doc/extend.texi: Add documentation for "stack_protect" attribute.
32703         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32704
32705 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
32706
32707         PR target/53988
32708         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32709         reg-reg copies.
32710         (sh_extending_set_of_reg): New struct.
32711         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32712         sh_remove_reg_dead_or_unused_notes): New Declarations.
32713         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32714         sh_find_extending_set_of_reg, sh_split_tst_subregs,
32715         sh_extending_set_of_reg::use_as_extended_reg): New functions.
32716         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32717         convert to insn_and_split and use new function sh_split_tst_subregs.
32718
32719 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
32720
32721         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32722         option.
32723         (Optimization Options): Move -fuse-ld documentation to...
32724         (Link Options): ...here.
32725
32726 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32727
32728         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32729         offsets.
32730         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32731         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32732         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32733         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32734         instead of ZR for the memory operand of LL/SC.
32735         (compare_and_swap_12, sync_add<mode>): Likewise.
32736         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32737         (sync_new_<optab>_12, sync_nand_12): Likewise.
32738         (sync_old_nand_12, sync_new_nand_12): Likewise.
32739         (sync_sub<mode>, sync_old_add<mode>): Likewise.
32740         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32741         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32742         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32743         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32744         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32745         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32746         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32747         * doc/md.texi (ZC): Update description.
32748
32749 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32750
32751         * builtins.c (expand_builtin_atomic_exchange): Remove error when
32752         memory model is CONSUME.
32753         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32754         expand_builtin_atomic_store): Change invalid memory model errors to
32755         warnings.
32756         (expand_builtin_atomic_clear): Change invalid model errors to warnings
32757         and issue warning for CONSUME.
32758
32759 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
32760
32761         * lto-cgraph: Update function comments for
32762         lto_symtab_encoder_encode_*.
32763
32764 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32765
32766         * Makefile.in (site.exp): Do not set ENABLE_LTO.
32767
32768 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32769
32770         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32771         * lto-cgraph.c (select_what_to_stream): Remove argument, use
32772         lto_stream_offload_p instead.
32773         * lto-streamer.h (select_what_to_stream): Remove argument.
32774         * passes.c (ipa_write_summaries): Likewise.
32775         * tree-pass.h (ipa_write_summaries): Likewise.
32776
32777 2015-01-14  Richard Biener  <rguenther@suse.de>
32778
32779         PR tree-optimization/59354
32780         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32781         groups larger than the slp group size as having gaps.
32782
32783 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32784
32785         PR middle-end/59448
32786         * builtins.c (get_memmodel): Promote consume to acquire always.
32787
32788 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32789
32790         PR target/64386
32791         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32792         V32HImode.
32793
32794 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32795
32796         PR target/64393
32797         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32798         Enable AVX512BW.
32799         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32800         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32801         AVX512VBMI, as it implies AVX512BW.
32802
32803 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32804
32805         PR target/64387
32806         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32807         (vec_unpacks_hi_v16sf): Ditto.
32808
32809 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32810
32811         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32812         is not available.
32813
32814 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32815
32816         * doc/invoke.texi (mapcs): Mention deprecation.
32817         (mapcs-frame): Likewise.
32818
32819 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32820
32821         PR target/64453
32822         * config/arm/arm.c (callee_saved_reg_p): Define.
32823         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32824         register is callee saved instead of !call_used_regs[reg].
32825         (thumb1_compute_save_reg_mask): Likewise.
32826
32827 2015-01-14  Hale Wang  <hale.wang@arm.com>
32828
32829         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32830         Cortex-M7.
32831
32832 2015-01-14  Richard Biener  <rguenther@suse.de>
32833
32834         PR lto/64415
32835         * tree-inline.c (insert_debug_decl_map): Check destination
32836         function MAY_HAVE_DEBUG_STMTS.
32837         (insert_init_debug_bind): Likewise.
32838         (insert_init_stmt): Remove redundant check.
32839         (remap_gimple_stmt): Drop debug stmts if the destination
32840         function has var-tracking assignments disabled.
32841
32842 2015-01-14  Martin Liska  <mliska@suse.cz>
32843
32844         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32845         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32846
32847 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32848
32849         PR target/64460
32850         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32851         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32852
32853 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32854
32855         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32856         level from an ARCH; do not inject the default.
32857         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32858         MIPS_ISA_LEVEL_SPEC.
32859         (MIPS_ISA_NAN2008_SPEC): Update comment.
32860         (BASE_DRIVER_SELF_SPECS): Likewise.
32861         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32862         MIPS_DEFAULT_ISA_LEVEL_SPEC.
32863         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32864         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32865         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32866
32867 2015-01-14  Richard Biener  <rguenther@suse.de>
32868
32869         PR tree-optimization/64493
32870         PR tree-optimization/64495
32871         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32872         assign the proper vectorized PHI to the inner loop exit PHIs.
32873
32874 2015-01-14  Joey Ye  <joey.ye@arm.com>
32875
32876         * config/arm/arm.c (arm_compute_save_reg_mask):
32877         Do not save lr in case of tail call.
32878         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32879
32880 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
32881
32882         * tree-vrp.c (check_array_ref): Emit more warnings
32883         for warn_array_bounds >= 2.
32884         * common.opt: New option -Warray-bounds=.
32885         * doc/invoke.texi: Document -Warray-bounds=.
32886
32887 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32888
32889         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32890         (mforbid-fp-as-gp): Remove.
32891         (mex9): Remove.
32892         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32893         (nds32_symbol_load_store_p): Remove.
32894         (nds32_fp_as_gp_check_available): Clean up implementation.
32895         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32896         cases.
32897         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32898         fp-as-gp and ex9 cases.
32899
32900 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32901
32902         * tree-profile.c (init_ic_make_global_vars): Drop workaround
32903         for bintuils bug 14342.
32904         (init_ic_make_global_vars): Likewise.
32905         (gimple_init_edge_profiler): Likewise.
32906         (gimple_gen_ic_func_profiler): Likewise.
32907
32908 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32909
32910         * ipa-inline.c (inline_small_functions): Swap the operands in
32911         enum.
32912
32913 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32914
32915         PR ipa/64481
32916         * ipa-inline-analysis.c (node_growth_cache): Remove.
32917         (initialize_growth_caches): Do not initialize it.
32918         (free_growth_caches): Do not free it.
32919         (do_estimate_growth): Rename to ...
32920         (estimate_growth): ... this one; drop growth cache code.
32921         (growth_likely_positive): Always go the heuristics way.
32922         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32923         (reset_edge_caches): Do not reset node growth.
32924         (heap_edge_removal_hook): Do not maintain cache.
32925         (inline_small_functions): Likewise; strenghten sanity check.
32926         (ipa_inline): Do not maintain caches.
32927         * ipa-inline.h (node_growth_cache): Remove.
32928         (do_estimate_growth): Remove to ...
32929         (estimate_growth): this one; remove inline version.
32930         (reset_node_growth_cache): Remove.
32931
32932 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32933
32934         PR ipa/64565
32935         * ipa-inline.c (inline_small_functions): Update callee keys after
32936         resolving speculation
32937         (inline_small_functions): Always check monotonicity of the queue.
32938
32939 2015-01-13  Marek Polacek  <polacek@redhat.com>
32940
32941         PR middle-end/64391
32942         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32943
32944 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32945
32946         PR rtl-optimization/64286
32947         * ree.c (combine_reaching_defs): Move part of comment earlier,
32948         remove !SCALAR_INT_MODE_P check.
32949         (add_removable_extension): Don't add vector mode
32950         extensions if all uses of the source register aren't the same
32951         vector extensions.
32952
32953 2015-01-13  Renlin Li  <renlin.li@arm.com>
32954
32955         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
32956         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
32957
32958 2015-01-13  Martin Liska  <mliska@suse.cz>
32959
32960         * ipa-icf.c (sem_function::equals_private): Call new functions
32961         cl_target_option_print_diff and cl_optimization_print_diff.
32962         * optc-save-gen.awk (cl_target_option_print_diff): New function.
32963         (cl_optimization_print_diff): Likewise.
32964         * opth-gen.awk: Likewise.
32965
32966 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
32967
32968         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
32969         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
32970         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
32971         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
32972         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
32973         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
32974
32975 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32976
32977         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
32978         instead of src mode.
32979
32980 2015-01-13  Richard Biener  <rguenther@suse.de>
32981
32982         PR lto/64373
32983         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
32984         DECL_CONTEXT.
32985
32986 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32987
32988         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
32989         volatile mems.
32990         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
32991
32992 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32993
32994         PR middle-end/63974
32995         * cfgexpand.c (expand_computed_goto): Don't call
32996         convert_memory_address here.
32997
32998 2015-01-13  Richard Biener  <rguenther@suse.de>
32999
33000         PR tree-optimization/64406
33001         * tree-loop-distibution.c (pass_loop_distribution::execute):
33002         Reset the SCEV hashtable if we distributed anything.
33003
33004 2015-01-13  Richard Biener  <rguenther@suse.de>
33005
33006         PR tree-optimization/64404
33007         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33008         SLP types for CSEd loads.
33009
33010 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33011
33012         PR tree-optimization/64436
33013         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33014         merge of two symbolic numbers for a bitwise OR to ...
33015         (perform_symbolic_merge): This. Also fix computation of the range and
33016         end of the symbolic number corresponding to the result of a bitwise OR.
33017
33018 2015-01-13  Richard Biener  <rguenther@suse.de>
33019
33020         PR tree-optimization/64568
33021         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33022         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33023
33024 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33025
33026         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33027         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33028
33029 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33030
33031         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33032         target-specific symbol_ref flag.
33033         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33034         resides in rodata section.
33035         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33036         (nds32_encode_section_info): New function.
33037
33038 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33039
33040         * config/nds32/nds32.md (call): Use pseudo instruction bal which
33041         clobbers TA_REGNUM if large code model is specified.
33042         (call_register): Likewise.
33043         (call_immediate): Likewise.
33044         (call_value): Likewise.
33045         (call_value_register): Likewise.
33046         (call_value_immediate): Likewise.
33047
33048 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33049
33050         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33051         (TARGET_CMODEL_MEDIUM): New macro.
33052         (TARGET_CMODEL_LARGE): New macro.
33053         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33054         code model setting in assembly code.
33055
33056 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33057
33058         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33059         Remove MASK_GP_DIRECT flag.
33060         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33061         one of the multilib default options.
33062         * config/nds32/nds32.opt (mgp-direct): Remove.
33063         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33064         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
33065
33066 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
33067
33068         * config/nds32/nds32.opt (mcmodel): Add new option.
33069         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33070         to describe code model.
33071
33072 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
33073
33074         PR target/64479
33075         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33076
33077 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
33078
33079         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33080         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33081         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33082         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33083         __builtin_sh_set_fpscr.
33084
33085 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33086
33087         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33088         after a funtion name just to indicate it is a function.
33089         ([-fsanitize-undefined-trap-on-error]): Likewise.
33090         ([-fdbg-cnt=]): Likewise.
33091         ([-mmemcpy]): Likewise.
33092         ([-mflush-func]): Likewise.
33093         ([-msynci]): Likewise.
33094
33095 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33096
33097         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33098         example.
33099
33100 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
33101
33102         PR tree-optimization/64563
33103         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33104         instead of != VR_VARYING.
33105
33106         PR target/64513
33107         * config/i386/i386.c (ix86_expand_prologue): Add
33108         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33109
33110         PR tree-optimization/64454
33111         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33112         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33113         for signed or [0, op1 - 1] for unsigned modulo.
33114         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33115         even if op1 does not satisfy integer_pow2p.
33116
33117         PR other/64370
33118         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33119
33120 2015-01-12  Jeff Law  <law@redhat.com>
33121
33122         PR target/64461
33123         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33124         (trunchiqi2, truncsihi2): Similarly.
33125
33126         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33127         rather than calling F.
33128
33129 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33130
33131         * tsan.c (instrument_expr): Use force_gimple_operand.
33132         Use may_be_nonaddressable_p instead of is_gimple_addressable.
33133
33134 2015-01-12  Richard Biener  <rguenther@suse.de>
33135
33136         PR tree-optimization/64530
33137         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33138         back dr1.
33139
33140 2015-01-12  Richard Biener  <rguenther@suse.de>
33141
33142         PR middle-end/64357
33143         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33144         latches properly.
33145
33146 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33147
33148         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33149         Cortex-A17 tuning parameters.
33150         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33151
33152 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33153
33154         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33155         * config/arm/arm.c (arm_macro_fusion_p): New function.
33156         (arm_macro_fusion_pair_p): Likewise.
33157         (TARGET_SCHED_MACRO_FUSION_P): Define.
33158         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33159         (ARM_FUSE_NOTHING): Likewise.
33160         (ARM_FUSE_MOVW_MOVT): Likewise.
33161         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33162         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33163         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33164         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33165         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33166         arm_cortex_a5_tune): Specify fuseable_ops value.
33167
33168 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
33169
33170         PR bootstrap/64561
33171         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33172         test for PIE with copy reloc.
33173         * configure: Regenerated.
33174
33175 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33176
33177         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33178         in gen_rtx_REG.
33179         (arm_tls_descseq_addr): Likewise.
33180         (arm_gen_movmemqi): Likewise.
33181         (arm_expand_epilogue_apcs_frame): Likewise.
33182         (arm_expand_epilogue): Likewise.
33183         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
33184         in gen_rtx_REG.
33185
33186 2015-01-12  Martin Liska  <mliska@suse.cz>
33187
33188         PR ipa/64550
33189         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33190         volatility for correct operands.
33191
33192 2015-01-12  Martin Liska  <mliska@suse.cz>
33193
33194         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33195         indication that a function is not leaf.
33196         (sem_function::compare_polymorphic_p): Likewise.
33197
33198 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33199
33200         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33201         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33202         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33203         fold-const.h, tree-check.h.
33204
33205 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33206
33207         PR ipa/63967
33208         PR ipa/64425
33209         * ipa-inline.c (compute_uninlined_call_time,
33210         compute_inlined_call_time): Use counts for extra precision when
33211         needed possible.
33212         (big_speedup_p): Fix formating.
33213         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33214         (relative_time_benefit): Remove.
33215         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33216         merge guessed and read profile paths.
33217         (inline_small_functions): Count only !optimize_size functions into
33218         initial size; be more lax about sanity check when profile is used;
33219         be sure to update inlined function profile when profile is read.
33220
33221 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33222
33223         PR ipa/63470
33224         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33225         cost when edge becomes direct.
33226         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33227         is resolved or when introducing new speculation.
33228
33229 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
33230
33231         PR ipa/64551
33232         PR ipa/64552
33233         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33234         '||' to fix typo issue.
33235
33236         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33237         accept and return NULL.
33238
33239 2015-01-12  Martin Liska  <mliska@suse.cz>
33240
33241         * cgraph.c (cgraph_edge::remove_callee): Move function to header
33242         file for being inlined.
33243         (cgraph_set_edge_callee): Delete.
33244         (cgraph_edge::redirect_callee): Move function to header file
33245         for being inlined.
33246         (cgraph_edge::make_direct): Use new function.
33247         (cgraph_edge::dump_edge_flags): New function created from
33248         static dump_edge_flags function.
33249         (cgraph_node::dump): Use new function.
33250         (cgraph_edge::verify_count_and_frequency): New function created
33251         from verify_edge_count_and_frequency.
33252         (cgraph_edge::verify_corresponds_to_fndecl): New function created
33253         from verify_edge_corresponds_to_fndecl.
33254         (verify_edge_corresponds_to_fndecl): Delete.
33255         (cgraph_node::verify_node): Use new function.
33256         * cgraph.h (cgraph_edge::set_callee): New function.
33257         (cgraph_edge::dump_edge_flags): Likewise.
33258         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
33259
33260 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
33261
33262         * ipa-utils.c (estimate_function_body_sizes): Do not
33263         free node params when called late with early=true.
33264
33265 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
33266
33267         * doc/md.texi (Instruction Patterns): Rewrite text for
33268         clarity.
33269         (Example): Likewise.
33270
33271 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
33272
33273         * doc/invoke.texi (Option Summary): Break long lines.
33274         [(-fdiagnostics-color)]: Put long literal in @smallexample
33275         instead of inline.
33276         [(-fsanitize-recover)]: Likewise.
33277         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33278         [(-ffast-math)]: Likewise.
33279         [(--param max-inline-insns-recursive)]: Likewise.
33280         [(--param max-inline-recursive-depth)]: Likewise.
33281         [(-mno-text-section-literals)]: Likewise.
33282
33283 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
33284
33285         * doc/install.texi: Update for libgomp being renamed from "GNU
33286         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33287         Runtime Library".
33288         * doc/sourcebuild.texi: Likewise.
33289
33290 2015-01-10  Anthony Green  <green@moxielogic.com>
33291
33292         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33293         mul.x availability for moxiebox configuration.
33294
33295 2015-01-09  Anthony Green  <green@moxielogic.com>
33296
33297         * config/moxie/moxie.md: Tabify assembly output.
33298
33299 2015-01-09  Anthony Green  <green@moxielogic.com>
33300
33301         * config/moxie/moxie.md (CC_REG): Correct register definition.
33302
33303 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
33304
33305         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33306         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
33307         of log files.
33308
33309 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33310
33311         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33312
33313 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
33314             Jakub Jelinek  <jakub@redhat.com>
33315
33316         PR middle-end/64412
33317         * lto-streamer.h (lto_stream_offload_p): New declaration.
33318         * lto-streamer.c (lto_stream_offload_p): New variable.
33319         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33320         at the same time as section_name_prefix.
33321         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33322         if lto_stream_offload_p.
33323         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33324         stream TREE_TARGET_OPTION if lto_stream_offload_p.
33325         (write_ts_function_decl_tree_pointers): Don't
33326         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33327         * tree-streamer-in.c (unpack_value_fields): Don't stream
33328         TREE_TARGET_OPTION in if ACCEL_COMPILER.
33329         (lto_input_ts_function_decl_tree_pointers): Don't stream
33330         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33331         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33332         instead of section_name_prefix string comparisons.
33333
33334 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
33335
33336         PR rtl-optimization/64536
33337         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33338         tablejumps.
33339
33340 2015-01-09  Michael Collison  <michael.collison@linaro.org>
33341
33342         PR tree-optimization/64322
33343         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33344         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33345
33346 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33347
33348         PR rtl-optimization/64539
33349         * regcprop.c (kill_clobbered_values): Factor out of ...
33350         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
33351         instead of note_stores with kill_clobbered_value.
33352
33353 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33354
33355          * ginclude/unwind-arm-common.h: Revert previous commit.
33356
33357 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33358
33359         * config.gcc (arm*-*-freebsd*): New configuration.
33360         * config/arm/freebsd.h: New file.
33361         * config.host: Add extra components for arm*-*-freebsd*.
33362         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33363         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33364
33365 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33366
33367         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33368         for -mcpu=e6500.
33369         * config/rs6000/t-rtems: Add e6500 multilibs.
33370
33371 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33372
33373         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33374         MPC8540.
33375
33376 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33377
33378         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33379         MULTILIB_EXCEPTIONS.
33380
33381 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33382
33383         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33384         MULTILIB_EXCEPTIONS.
33385
33386 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33387
33388         * config/arm/t-rtems-eabi: Rename to...
33389         * config/arm/t-rtems: ...this.
33390         * config/arm/rtems-eabi.h: Rename to...
33391         * config/arm/rtems.h: ...this.
33392         * config.gcc (arm*-*-rtems*): Reflect changes above.
33393
33394 2015-01-09  Richard Biener  <rguenther@suse.de>
33395
33396         PR tree-optimization/64410
33397         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33398         on the LHS.
33399         (execute_update_addresses_taken): Deal with that.
33400         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33401         loads/stores for complex variables.
33402
33403 2015-01-09  Martin Liska  <mliska@suse.cz>
33404
33405         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33406         name comparison.
33407         (func_checker::compare_memory_operand): New function.
33408         (func_checker::compare_operand): Split case to newly
33409         added functions.
33410         (func_checker::compare_cst_or_decl): New function.
33411         (func_checker::compare_gimple_call): Identify
33412         memory operands.
33413         (func_checker::compare_gimple_assign): Likewise.
33414         * ipa-icf-gimple.h: New function.
33415
33416 2015-01-09  Martin Liska  <mliska@suse.cz>
33417
33418         PR ipa/64503
33419         * sreal.c (sreal::dump): Change unsigned format to signed for
33420         m_exp value.
33421         (sreal::to_double): Replace exp2 with scalbln.
33422
33423 2015-01-09  Martin Liska  <mliska@suse.cz>
33424
33425         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33426         * ipa-icf.c (sem_function::equals_private): Add support for target and
33427         (sem_item_optimizer::merge_classes): Remove redundant function
33428         optimization flags comparison.
33429         * tree.h (target_opts_for_fn): New function.
33430
33431 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33432
33433         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33434
33435 2015-01-09  Kito Cheng  <kito@0xlab.org>
33436
33437         PR rtl-optimization/64348
33438         * lra-constraints.c (split_reg): Fix caller-save store/restore
33439         instruction generation.
33440
33441 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
33442
33443         PR gcov-profile/61790
33444         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33445         long long.  Fallback to int64_t if host doesn't have long long and
33446         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
33447
33448 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33449
33450         PR tree-optimization/63989
33451         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33452         from 1000 to 10000.
33453         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33454         (get_stridx): If we don't have a record for certain SSA_NAME,
33455         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33456         constant offset, call get_stridx_plus_constant.
33457         (get_stridx_plus_constant): New function.
33458         (zero_length_string): Don't use get_stridx here.
33459
33460         PR target/55023
33461         PR middle-end/64388
33462         * dse.c (struct insn_info): Mention frame_read set also
33463         before reload for tail calls on some targets.
33464         (scan_insn): Revert 2014-12-22 change.  Set frame_read
33465         also before reload for tail calls if
33466         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
33467         instead of add_non_frame_wild_read for non-const/memset
33468         tail calls after reload.
33469
33470 2015-01-08  Jason Merrill  <jason@redhat.com>
33471
33472         * ubsan.c (do_ubsan_in_current_function): New.
33473         (pass_ubsan::gate): Use it.
33474         * ubsan.h: Declare it.
33475         * convert.c (convert_to_integer): Use it.
33476
33477 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33478
33479         PR target/64338
33480         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33481         compare_code when it is unconditionally overwritten afterwards.
33482         Use ix86_reverse_condition instead of reverse_condition.  Don't
33483         change code if *reverse_condition* returned UNKNOWN and don't
33484         swap ct/cf and negate diff in that case.
33485
33486 2015-01-08  Mike Stump  <mikestump@comcast.net>
33487
33488         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33489         (pass_tsan_O0::gate): Likewise.
33490         * extend.texi (Function Attributes): Add no_sanitize_thread
33491         documentation.
33492
33493 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
33494
33495         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33496         for registering builtins.
33497         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33498         add -fopenmp to the argv_obstack used when invoking
33499         compile_for_target.
33500
33501         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33502         add "-m32" or "-m64" to argv_obstack.
33503         (generate_host_descr_file): Likewise, when invoking host_compiler.
33504         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33505         ld.
33506
33507 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33508
33509         * config/sh/sh-mem.cc: Use constant as second operand when emitting
33510         tstsi_t insns.
33511
33512 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33513
33514         PR target/55212
33515         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33516         constant load if constant operand fits into I08.
33517
33518 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33519
33520         PR sanitizer/64336
33521         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33522         and TREE_THIS_VOLATILE for MEM_REFs.
33523         (build5_stat): Fix up initialization of TREE_READONLY and
33524         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33525
33526 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
33527
33528         PR target/64533
33529         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33530         of r for the second alternative of the destination operand.
33531
33532 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
33533
33534         PR target/36557
33535         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33536
33537 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33538
33539         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33540         keywords.
33541         ([-fivar-visibility], [-fvisibility]): Likewise.
33542
33543 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33544
33545         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33546         the file where @code, @command, etc is more appropriate.
33547
33548 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
33549
33550         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33551         of -mrecip= documentation.
33552
33553 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33554
33555         PR target/64505
33556         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33557         correct reload handler if -m32 -mpowerpc64 is used.
33558
33559 2015-01-06  Tom de Vries  <tom@codesourcery.com>
33560
33561         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33562
33563 2015-01-08  Christian Bruel  <christian.bruel@st.com>
33564
33565         PR target/64507
33566         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33567
33568 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33569
33570         PR tree-optimization/63259
33571         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33572         if optab exists for 16bit byteswap.
33573
33574 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
33575
33576         * opts.c (common_handle_option): Add support for
33577         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33578         * doc/invoke.texi: Document -fno-sanitize=all,
33579         -f{,no-}sanitize-recover=all.  Document that
33580         -fsanitize=float-cast-overflow is not enabled
33581         by -fsanitize=undefined.  Fix up documentation
33582         of -f{,no-}sanitize-recover.
33583
33584 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33585
33586         * config.gcc: Add Visium support.
33587         * configure.ac: Likewise.
33588         * configure: Regenerate.
33589         * doc/extend.texi (interrupt attribute): Add Visium.
33590         * doc/invoke.texi: Document Visium options.
33591         * doc/install.texi: Document Visium target.
33592         * doc/md.texi: Document Visium constraints.
33593         * common/config/visium: New directory.
33594         * config/visium: Likewise.
33595
33596 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33597
33598         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33599         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33600
33601 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33602
33603         * combine.c (combine_validate_cost): Do not count the cost of a
33604         split I2 twice.  Do not display it twice in the dump, either.
33605
33606 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33607
33608         Revert parts of r219199.
33609         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33610         <inttypes.h>.
33611         ([-Wtraditional]): Restore markup on <limits.h>.
33612
33613 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
33614
33615         PR c++/31397
33616         * doc/invoke.texi: Document -Wsuggest-override.
33617
33618 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
33619
33620         PR rtl-optimization/64287
33621         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33622         (process_options): Disable flag_ipa_ra if profiling.
33623
33624 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
33625
33626         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33627
33628 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
33629
33630         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33631         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33632         put under #if TARGET_LOOPS guard.
33633
33634 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
33635
33636         * config/i386/i386.c (output_387_binary_op): Use std::swap.
33637
33638 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
33639
33640         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33641         * rtl.h (refers_to_regno_p): Add overload.
33642         * cse.c: Use it.
33643         * bt-load.c: Likewise.
33644         * combine.c: Likewise.
33645         * df-scan.c: Likewise.
33646         * sched-deps.c: Likewise.
33647         * config/s390/s390.c: Likewise.
33648         * config/m32r/m32r.c: Likewise.
33649         * config/rs6000/spe.md: Likewise.
33650         * config/rs6000/rs6000.c: Likewise.
33651         * config/pa/pa.c: Likewise.
33652         * config/stormy16/stormy16.c: Likewise.
33653         * config/cris/cris.c: Likewise.
33654         * config/arc/arc.md: Likewise.
33655         * config/arc/arc.c: Likewise.
33656         * config/sh/sh.md: Likewise.
33657         * config/sh/sh.c: Likewise.
33658         * config/frv/frv.c: Likewise.
33659
33660 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33661
33662         PR sanitizer/64265
33663         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33664         call as cleanup of the whole body.
33665         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33666         * tsan.c (replace_func_exit): New function.
33667         (instrument_func_exit): Moved earlier.
33668         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33669         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33670         been found.
33671         (tsan_pass): Don't call instrument_func_exit.
33672         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33673         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33674         inlining.
33675
33676         PR sanitizer/64344
33677         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33678         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33679         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
33680         if the result is integer_zerop, return NULL_TREE.
33681         * convert.c (convert_to_integer): Pass expr as ARG.
33682
33683         PR tree-optimization/64465
33684         * tree-inline.c (redirect_all_calls): During inlining
33685         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33686         changed the stmt to a non-throwing call.
33687
33688 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33689
33690         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33691         etc markup throughout the file.
33692
33693 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33694
33695         Enable experimental TSAN support for Ada.
33696         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33697
33698 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33699
33700         PR tree-optimization/64494
33701         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33702         clear SSA_NAME_ANTI_RANGE_P flag.
33703
33704 2015-01-05  Marek Polacek  <polacek@redhat.com>
33705
33706         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33707
33708 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33709
33710         Update copyright years.
33711
33712         * gcc.c (process_command): Update copyright notice dates.
33713         * gcov-dump.c: Ditto.
33714         * gcov.c: Ditto.
33715         * doc/cpp.texi: Bump @copying's copyright year.
33716         * doc/cppinternals.texi: Ditto.
33717         * doc/gcc.texi: Ditto.
33718         * doc/gccint.texi: Ditto.
33719         * doc/gcov.texi: Ditto.
33720         * doc/install.texi: Ditto.
33721         * doc/invoke.texi: Ditto.
33722
33723         * auto-profile.c, auto-profile.h: Fix up Copyright line.
33724
33725 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
33726
33727         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33728         verb tense, etc.
33729         ([-fvtable-verify], [-fvtv-debug]): Likewise.
33730         ([-Wabi]): Likewise.
33731         ([-fmessage-length]): Likewise.
33732         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33733         ([-Wno-discarded-qualifiers]): Likewise.
33734         ([-Wnodiscarded-array-qualifiers]): Likewise.
33735         ([-Wno-virtual-move-assign]): Likewise.
33736         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33737         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33738         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33739         ([-fsanitize-undefined-trap-on-error]): Likewise.
33740         ([-floop-interchange]): Likewise.
33741         ([-ftree-coalesce-inlined-vars]): Likewise.
33742         ([-fvect-cost-model]): Likewise.
33743         ([-flto]): Likewise.
33744         ([--param]): Likewise.
33745         (Spec Files): Likewise.
33746         ([-mstrict-align]): Likewise.
33747         ([-mfix-cortex-a53-835769]): Likewise.
33748         ([-march], [-mtune]): Likewise.
33749         ([-mpic-register]): Likewise.
33750         ([-munaligned-access]): Likewise.
33751         ([-msp8]): Likewise.
33752         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33753         (AVR Built-in Macros): Likewise.
33754         ([-mpreferred-stack-boundary]): Likewise.
33755         ([-mtune-crtl]): Likewise.
33756         ([-mashf]): Likewise.
33757         ([-mmcu=]): Likewise.
33758         ([-minrt]): Likewise.
33759         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33760         ([-mupper-regs]): Likewise.
33761         ([-matomic-model]): Likewise.
33762         ([-mdiv]): Likewise.
33763         ([-mzdcbranch]): Likewise.
33764         ([-mdisable-callt]): Likewise.
33765         ([-msoft-float]): Likewise.
33766         ([-m8byte-align]): Likewise.
33767         ([-fstack-reuse]): Likewise.
33768
33769 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33770
33771         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33772         Fix markup, light copy-editing.
33773         ([-fauto-profile]): Rewrite to fix formatting and content
33774         problems.
33775
33776 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33777
33778         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33779         Copy-edit description.
33780         ([-fisolate-erroneous-paths-attribute]): Likewise.
33781         * common.opt (fisolate-erroneous-paths-dereference):
33782         Copy-edit description.
33783         (fisolate-erroneous-paths-attribute): Likewise.
33784
33785 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33786
33787         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33788         tidy grammar.
33789
33790 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33791
33792         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33793         ([-fvtv-debug]): Likewise.
33794         ([-Wc++-compat]): Likewise.
33795         ([-Wc++11-compat]): Likewise.
33796         ([-Wc++14-compat]): Likewise.
33797         ([-Wno-sized-deallocation]): Likewise.
33798         ([-femit-class-debug-always]): Likewise.
33799         ([-femit-struct-debug-detailed]): Likewise.
33800         ([-fno-keep-inline-dllexport]): Likewise.
33801         ([-fira-algorithm]): Likewise.
33802         ([-fira-region]): Likewise.
33803         ([-flra-remat]): Likewise.
33804         ([-fipa-ra]): Likewise.
33805         ([-fhoist-adjacent-loads]): Likewise.
33806         ([-fisolate-erroneous-paths-dereference]): Likewise.
33807         ([-fisolate-erroneous-paths-attribute]): Likewise.
33808         ([-ftree-switch-conversion]): Likewise.
33809         ([-ftree-tail-merge]): Likewise.
33810         ([-ftree-loop-if-convert]): Likewise.
33811         ([-ftree-loop-if-convert-stores]): Likewise.
33812         ([-ftree-loop-distribution]): Likewise.
33813         ([-ftree-loop-distribute-patterns]): Likewise.
33814         ([-flto-compression-level]): Likewise.
33815         ([-flto-report]): Likewise.
33816         ([-flto-report-wpa]): Likewise.
33817         ([-fuse-linker-plugin]): Likewise.
33818         ([-mfix-cortex-a53-835769]): Likewise.
33819         ([-mno-fix-cortex-a53-835769]): Likewise.
33820         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33821         explicit listing; add a note to the discussion indicating they
33822         exist.  Reorder table to group similar options.  Add missing
33823         @opindex entries.  Add @need commands throughout the table to
33824         allow it to be split across multiple pages.
33825         ([-m8bit-idiv]): Fix @opindex.
33826         ([-mavx256-split-unaligned-load]): Likewise.
33827         ([-mavx256-split-unaligned-store]): Likewise.
33828         ([-mstack-protector-guard]): Likewise.
33829         ([-mcpu=]): Likewise.
33830         ([-mcpu]): Likewise.
33831         ([-mpointer-size=]): Likewise.
33832
33833 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
33834
33835         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33836         instead of `m' constraint.  Likewise for unnamed movb comparison
33837         patterns using reg_before_reload_operand predicate.
33838         * config/pa/predicates.md (reg_before_reload_operand): Tighten
33839         predicate to reject register index and LO_SUM DLT memory forms
33840         after reload.
33841
33842 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33843
33844         * doc/invoke.texi (Option Summary): Fix spelling of
33845         -fdevirtualize-at-ltrans.
33846         ([-fdevirtualize]): Fix markup.
33847         ([-fdevirtualize-speculatively]): Fix typo.
33848         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
33849         implementor-speaky.
33850         * common.opt (fdevirtualize-at-ltrans): Likewise.
33851         * ipa-devirt.c: Fix typos in comments throughout the file.
33852         (ipa_devirt): Fix typos in format strings for dump output.
33853
33854 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33855
33856         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33857         discussion of defaults, light copy-editing.
33858
33859 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33860
33861         * tsan.c (instrument_expr): corrected previous checkin.
33862
33863 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33864
33865         Instrument bit field and unaligned accesses for TSAN.
33866         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33867         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33868         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33869         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33870         unaligned memory regions.
33871
33872 2015-01-01  Anthony Green  <green@moxielogic.com>
33873
33874         * config/moxie/predicates.md (moxie_general_movsrc_operand):
33875         Restrict move source register offsets to 16 bits.
33876 \f
33877 Copyright (C) 2015 Free Software Foundation, Inc.
33878
33879 Copying and distribution of this file, with or without modification,
33880 are permitted in any medium without royalty provided the copyright
33881 notice and this notice are preserved.